1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.66 for gdbmobj 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 185 if (eval "$as_required") 2>/dev/null; then : 186 as_have_required=yes 187else 188 as_have_required=no 189fi 190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 192else 193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 194as_found=false 195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 196do 197 IFS=$as_save_IFS 198 test -z "$as_dir" && as_dir=. 199 as_found=: 200 case $as_dir in #( 201 /*) 202 for as_base in sh bash ksh sh5; do 203 # Try only shells that exist, to save several forks. 204 as_shell=$as_dir/$as_base 205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 CONFIG_SHELL=$as_shell as_have_required=yes 208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 209 break 2 210fi 211fi 212 done;; 213 esac 214 as_found=false 215done 216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 218 CONFIG_SHELL=$SHELL as_have_required=yes 219fi; } 220IFS=$as_save_IFS 221 222 223 if test "x$CONFIG_SHELL" != x; then : 224 # We cannot yet assume a decent shell, so we have to provide a 225 # neutralization value for shells without unset; and this also 226 # works around shells that cannot unset nonexistent variables. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: courier-users@lists.sourceforge.net about your system, 243$0: including any error possibly output before this 244$0: message. Then install a modern shell, or manually run 245$0: the script under such a shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error STATUS ERROR [LINENO LOG_FD] 371# ---------------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with STATUS, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539SHELL=${CONFIG_SHELL-/bin/sh} 540 541 542test -n "$DJDIR" || exec 7<&0 </dev/null 543exec 6>&1 544 545# Name of the host. 546# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 547# so uname gets run too. 548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 549 550# 551# Initializations. 552# 553ac_default_prefix=/usr/local 554ac_clean_files= 555ac_config_libobj_dir=. 556LIBOBJS= 557cross_compiling=no 558subdirs= 559MFLAGS= 560MAKEFLAGS= 561 562# Identity of this package. 563PACKAGE_NAME='gdbmobj' 564PACKAGE_TARNAME='gdbmobj' 565PACKAGE_VERSION='0.10' 566PACKAGE_STRING='gdbmobj 0.10' 567PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 568PACKAGE_URL='' 569 570ac_unique_file="gdbmobj.c" 571# Factoring default headers for most tests. 572ac_includes_default="\ 573#include <stdio.h> 574#ifdef HAVE_SYS_TYPES_H 575# include <sys/types.h> 576#endif 577#ifdef HAVE_SYS_STAT_H 578# include <sys/stat.h> 579#endif 580#ifdef STDC_HEADERS 581# include <stdlib.h> 582# include <stddef.h> 583#else 584# ifdef HAVE_STDLIB_H 585# include <stdlib.h> 586# endif 587#endif 588#ifdef HAVE_STRING_H 589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 590# include <memory.h> 591# endif 592# include <string.h> 593#endif 594#ifdef HAVE_STRINGS_H 595# include <strings.h> 596#endif 597#ifdef HAVE_INTTYPES_H 598# include <inttypes.h> 599#endif 600#ifdef HAVE_STDINT_H 601# include <stdint.h> 602#endif 603#ifdef HAVE_UNISTD_H 604# include <unistd.h> 605#endif" 606 607ac_subst_vars='am__EXEEXT_FALSE 608am__EXEEXT_TRUE 609LTLIBOBJS 610LIBOBJS 611FOUND_GDBM_FALSE 612FOUND_GDBM_TRUE 613LIBGDBM 614CXXCPP 615OTOOL64 616OTOOL 617LIPO 618NMEDIT 619DSYMUTIL 620RANLIB 621AR 622OBJDUMP 623LN_S 624NM 625ac_ct_DUMPBIN 626DUMPBIN 627LD 628FGREP 629SED 630host_os 631host_vendor 632host_cpu 633host 634build_os 635build_vendor 636build_cpu 637build 638LIBTOOL 639am__fastdepCXX_FALSE 640am__fastdepCXX_TRUE 641CXXDEPMODE 642ac_ct_CXX 643CXXFLAGS 644CXX 645EGREP 646GREP 647CPP 648am__fastdepCC_FALSE 649am__fastdepCC_TRUE 650CCDEPMODE 651AMDEPBACKSLASH 652AMDEP_FALSE 653AMDEP_TRUE 654am__quote 655am__include 656DEPDIR 657OBJEXT 658EXEEXT 659ac_ct_CC 660CPPFLAGS 661LDFLAGS 662CFLAGS 663CC 664am__untar 665am__tar 666AMTAR 667am__leading_dot 668SET_MAKE 669AWK 670mkdir_p 671MKDIR_P 672INSTALL_STRIP_PROGRAM 673STRIP 674install_sh 675MAKEINFO 676AUTOHEADER 677AUTOMAKE 678AUTOCONF 679ACLOCAL 680VERSION 681PACKAGE 682CYGPATH_W 683am__isrc 684INSTALL_DATA 685INSTALL_SCRIPT 686INSTALL_PROGRAM 687target_alias 688host_alias 689build_alias 690LIBS 691ECHO_T 692ECHO_N 693ECHO_C 694DEFS 695mandir 696localedir 697libdir 698psdir 699pdfdir 700dvidir 701htmldir 702infodir 703docdir 704oldincludedir 705includedir 706localstatedir 707sharedstatedir 708sysconfdir 709datadir 710datarootdir 711libexecdir 712sbindir 713bindir 714program_transform_name 715prefix 716exec_prefix 717PACKAGE_URL 718PACKAGE_BUGREPORT 719PACKAGE_STRING 720PACKAGE_VERSION 721PACKAGE_TARNAME 722PACKAGE_NAME 723PATH_SEPARATOR 724SHELL' 725ac_subst_files='' 726ac_user_opts=' 727enable_option_checking 728enable_dependency_tracking 729enable_shared 730enable_static 731with_pic 732enable_fast_install 733with_gnu_ld 734enable_libtool_lock 735' 736 ac_precious_vars='build_alias 737host_alias 738target_alias 739CC 740CFLAGS 741LDFLAGS 742LIBS 743CPPFLAGS 744CPP 745CXX 746CXXFLAGS 747CCC 748CXXCPP' 749 750 751# Initialize some variables set by options. 752ac_init_help= 753ac_init_version=false 754ac_unrecognized_opts= 755ac_unrecognized_sep= 756# The variables have the same names as the options, with 757# dashes changed to underlines. 758cache_file=/dev/null 759exec_prefix=NONE 760no_create= 761no_recursion= 762prefix=NONE 763program_prefix=NONE 764program_suffix=NONE 765program_transform_name=s,x,x, 766silent= 767site= 768srcdir= 769verbose= 770x_includes=NONE 771x_libraries=NONE 772 773# Installation directory options. 774# These are left unexpanded so users can "make install exec_prefix=/foo" 775# and all the variables that are supposed to be based on exec_prefix 776# by default will actually change. 777# Use braces instead of parens because sh, perl, etc. also accept them. 778# (The list follows the same order as the GNU Coding Standards.) 779bindir='${exec_prefix}/bin' 780sbindir='${exec_prefix}/sbin' 781libexecdir='${exec_prefix}/libexec' 782datarootdir='${prefix}/share' 783datadir='${datarootdir}' 784sysconfdir='${prefix}/etc' 785sharedstatedir='${prefix}/com' 786localstatedir='${prefix}/var' 787includedir='${prefix}/include' 788oldincludedir='/usr/include' 789docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 790infodir='${datarootdir}/info' 791htmldir='${docdir}' 792dvidir='${docdir}' 793pdfdir='${docdir}' 794psdir='${docdir}' 795libdir='${exec_prefix}/lib' 796localedir='${datarootdir}/locale' 797mandir='${datarootdir}/man' 798 799ac_prev= 800ac_dashdash= 801for ac_option 802do 803 # If the previous option needs an argument, assign it. 804 if test -n "$ac_prev"; then 805 eval $ac_prev=\$ac_option 806 ac_prev= 807 continue 808 fi 809 810 case $ac_option in 811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 812 *) ac_optarg=yes ;; 813 esac 814 815 # Accept the important Cygnus configure options, so we can diagnose typos. 816 817 case $ac_dashdash$ac_option in 818 --) 819 ac_dashdash=yes ;; 820 821 -bindir | --bindir | --bindi | --bind | --bin | --bi) 822 ac_prev=bindir ;; 823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 824 bindir=$ac_optarg ;; 825 826 -build | --build | --buil | --bui | --bu) 827 ac_prev=build_alias ;; 828 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 829 build_alias=$ac_optarg ;; 830 831 -cache-file | --cache-file | --cache-fil | --cache-fi \ 832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 833 ac_prev=cache_file ;; 834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 836 cache_file=$ac_optarg ;; 837 838 --config-cache | -C) 839 cache_file=config.cache ;; 840 841 -datadir | --datadir | --datadi | --datad) 842 ac_prev=datadir ;; 843 -datadir=* | --datadir=* | --datadi=* | --datad=*) 844 datadir=$ac_optarg ;; 845 846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 847 | --dataroo | --dataro | --datar) 848 ac_prev=datarootdir ;; 849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 851 datarootdir=$ac_optarg ;; 852 853 -disable-* | --disable-*) 854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 855 # Reject names that are not valid shell variable names. 856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 857 as_fn_error $? "invalid feature name: $ac_useropt" 858 ac_useropt_orig=$ac_useropt 859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 860 case $ac_user_opts in 861 *" 862"enable_$ac_useropt" 863"*) ;; 864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 865 ac_unrecognized_sep=', ';; 866 esac 867 eval enable_$ac_useropt=no ;; 868 869 -docdir | --docdir | --docdi | --doc | --do) 870 ac_prev=docdir ;; 871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 872 docdir=$ac_optarg ;; 873 874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 875 ac_prev=dvidir ;; 876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 877 dvidir=$ac_optarg ;; 878 879 -enable-* | --enable-*) 880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 881 # Reject names that are not valid shell variable names. 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 883 as_fn_error $? "invalid feature name: $ac_useropt" 884 ac_useropt_orig=$ac_useropt 885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 case $ac_user_opts in 887 *" 888"enable_$ac_useropt" 889"*) ;; 890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 891 ac_unrecognized_sep=', ';; 892 esac 893 eval enable_$ac_useropt=\$ac_optarg ;; 894 895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 897 | --exec | --exe | --ex) 898 ac_prev=exec_prefix ;; 899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 901 | --exec=* | --exe=* | --ex=*) 902 exec_prefix=$ac_optarg ;; 903 904 -gas | --gas | --ga | --g) 905 # Obsolete; use --with-gas. 906 with_gas=yes ;; 907 908 -help | --help | --hel | --he | -h) 909 ac_init_help=long ;; 910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 911 ac_init_help=recursive ;; 912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 913 ac_init_help=short ;; 914 915 -host | --host | --hos | --ho) 916 ac_prev=host_alias ;; 917 -host=* | --host=* | --hos=* | --ho=*) 918 host_alias=$ac_optarg ;; 919 920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 921 ac_prev=htmldir ;; 922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 923 | --ht=*) 924 htmldir=$ac_optarg ;; 925 926 -includedir | --includedir | --includedi | --included | --include \ 927 | --includ | --inclu | --incl | --inc) 928 ac_prev=includedir ;; 929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 930 | --includ=* | --inclu=* | --incl=* | --inc=*) 931 includedir=$ac_optarg ;; 932 933 -infodir | --infodir | --infodi | --infod | --info | --inf) 934 ac_prev=infodir ;; 935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 936 infodir=$ac_optarg ;; 937 938 -libdir | --libdir | --libdi | --libd) 939 ac_prev=libdir ;; 940 -libdir=* | --libdir=* | --libdi=* | --libd=*) 941 libdir=$ac_optarg ;; 942 943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 944 | --libexe | --libex | --libe) 945 ac_prev=libexecdir ;; 946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 947 | --libexe=* | --libex=* | --libe=*) 948 libexecdir=$ac_optarg ;; 949 950 -localedir | --localedir | --localedi | --localed | --locale) 951 ac_prev=localedir ;; 952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 953 localedir=$ac_optarg ;; 954 955 -localstatedir | --localstatedir | --localstatedi | --localstated \ 956 | --localstate | --localstat | --localsta | --localst | --locals) 957 ac_prev=localstatedir ;; 958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 960 localstatedir=$ac_optarg ;; 961 962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 963 ac_prev=mandir ;; 964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 965 mandir=$ac_optarg ;; 966 967 -nfp | --nfp | --nf) 968 # Obsolete; use --without-fp. 969 with_fp=no ;; 970 971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 972 | --no-cr | --no-c | -n) 973 no_create=yes ;; 974 975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 977 no_recursion=yes ;; 978 979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 981 | --oldin | --oldi | --old | --ol | --o) 982 ac_prev=oldincludedir ;; 983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 986 oldincludedir=$ac_optarg ;; 987 988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 989 ac_prev=prefix ;; 990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 991 prefix=$ac_optarg ;; 992 993 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 994 | --program-pre | --program-pr | --program-p) 995 ac_prev=program_prefix ;; 996 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 998 program_prefix=$ac_optarg ;; 999 1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1001 | --program-suf | --program-su | --program-s) 1002 ac_prev=program_suffix ;; 1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1005 program_suffix=$ac_optarg ;; 1006 1007 -program-transform-name | --program-transform-name \ 1008 | --program-transform-nam | --program-transform-na \ 1009 | --program-transform-n | --program-transform- \ 1010 | --program-transform | --program-transfor \ 1011 | --program-transfo | --program-transf \ 1012 | --program-trans | --program-tran \ 1013 | --progr-tra | --program-tr | --program-t) 1014 ac_prev=program_transform_name ;; 1015 -program-transform-name=* | --program-transform-name=* \ 1016 | --program-transform-nam=* | --program-transform-na=* \ 1017 | --program-transform-n=* | --program-transform-=* \ 1018 | --program-transform=* | --program-transfor=* \ 1019 | --program-transfo=* | --program-transf=* \ 1020 | --program-trans=* | --program-tran=* \ 1021 | --progr-tra=* | --program-tr=* | --program-t=*) 1022 program_transform_name=$ac_optarg ;; 1023 1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1025 ac_prev=pdfdir ;; 1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1027 pdfdir=$ac_optarg ;; 1028 1029 -psdir | --psdir | --psdi | --psd | --ps) 1030 ac_prev=psdir ;; 1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1032 psdir=$ac_optarg ;; 1033 1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1035 | -silent | --silent | --silen | --sile | --sil) 1036 silent=yes ;; 1037 1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1039 ac_prev=sbindir ;; 1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1041 | --sbi=* | --sb=*) 1042 sbindir=$ac_optarg ;; 1043 1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1046 | --sharedst | --shareds | --shared | --share | --shar \ 1047 | --sha | --sh) 1048 ac_prev=sharedstatedir ;; 1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1052 | --sha=* | --sh=*) 1053 sharedstatedir=$ac_optarg ;; 1054 1055 -site | --site | --sit) 1056 ac_prev=site ;; 1057 -site=* | --site=* | --sit=*) 1058 site=$ac_optarg ;; 1059 1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1061 ac_prev=srcdir ;; 1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1063 srcdir=$ac_optarg ;; 1064 1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1066 | --syscon | --sysco | --sysc | --sys | --sy) 1067 ac_prev=sysconfdir ;; 1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1070 sysconfdir=$ac_optarg ;; 1071 1072 -target | --target | --targe | --targ | --tar | --ta | --t) 1073 ac_prev=target_alias ;; 1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1075 target_alias=$ac_optarg ;; 1076 1077 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1078 verbose=yes ;; 1079 1080 -version | --version | --versio | --versi | --vers | -V) 1081 ac_init_version=: ;; 1082 1083 -with-* | --with-*) 1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1085 # Reject names that are not valid shell variable names. 1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1087 as_fn_error $? "invalid package name: $ac_useropt" 1088 ac_useropt_orig=$ac_useropt 1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1090 case $ac_user_opts in 1091 *" 1092"with_$ac_useropt" 1093"*) ;; 1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1095 ac_unrecognized_sep=', ';; 1096 esac 1097 eval with_$ac_useropt=\$ac_optarg ;; 1098 1099 -without-* | --without-*) 1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1101 # Reject names that are not valid shell variable names. 1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1103 as_fn_error $? "invalid package name: $ac_useropt" 1104 ac_useropt_orig=$ac_useropt 1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1106 case $ac_user_opts in 1107 *" 1108"with_$ac_useropt" 1109"*) ;; 1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1111 ac_unrecognized_sep=', ';; 1112 esac 1113 eval with_$ac_useropt=no ;; 1114 1115 --x) 1116 # Obsolete; use --with-x. 1117 with_x=yes ;; 1118 1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1120 | --x-incl | --x-inc | --x-in | --x-i) 1121 ac_prev=x_includes ;; 1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1124 x_includes=$ac_optarg ;; 1125 1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1128 ac_prev=x_libraries ;; 1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1131 x_libraries=$ac_optarg ;; 1132 1133 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1134Try \`$0 --help' for more information" 1135 ;; 1136 1137 *=*) 1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1139 # Reject names that are not valid shell variable names. 1140 case $ac_envvar in #( 1141 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1143 esac 1144 eval $ac_envvar=\$ac_optarg 1145 export $ac_envvar ;; 1146 1147 *) 1148 # FIXME: should be removed in autoconf 3.0. 1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1153 ;; 1154 1155 esac 1156done 1157 1158if test -n "$ac_prev"; then 1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1160 as_fn_error $? "missing argument to $ac_option" 1161fi 1162 1163if test -n "$ac_unrecognized_opts"; then 1164 case $enable_option_checking in 1165 no) ;; 1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1168 esac 1169fi 1170 1171# Check all directory arguments for consistency. 1172for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1173 datadir sysconfdir sharedstatedir localstatedir includedir \ 1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1175 libdir localedir mandir 1176do 1177 eval ac_val=\$$ac_var 1178 # Remove trailing slashes. 1179 case $ac_val in 1180 */ ) 1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1182 eval $ac_var=\$ac_val;; 1183 esac 1184 # Be sure to have absolute directory names. 1185 case $ac_val in 1186 [\\/$]* | ?:[\\/]* ) continue;; 1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1188 esac 1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1190done 1191 1192# There might be people who depend on the old broken behavior: `$host' 1193# used to hold the argument of --host etc. 1194# FIXME: To remove some day. 1195build=$build_alias 1196host=$host_alias 1197target=$target_alias 1198 1199# FIXME: To remove some day. 1200if test "x$host_alias" != x; then 1201 if test "x$build_alias" = x; then 1202 cross_compiling=maybe 1203 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1204 If a cross compiler is detected then cross compile mode will be used" >&2 1205 elif test "x$build_alias" != "x$host_alias"; then 1206 cross_compiling=yes 1207 fi 1208fi 1209 1210ac_tool_prefix= 1211test -n "$host_alias" && ac_tool_prefix=$host_alias- 1212 1213test "$silent" = yes && exec 6>/dev/null 1214 1215 1216ac_pwd=`pwd` && test -n "$ac_pwd" && 1217ac_ls_di=`ls -di .` && 1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1219 as_fn_error $? "working directory cannot be determined" 1220test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1221 as_fn_error $? "pwd does not report name of working directory" 1222 1223 1224# Find the source files, if location was not specified. 1225if test -z "$srcdir"; then 1226 ac_srcdir_defaulted=yes 1227 # Try the directory containing this script, then the parent directory. 1228 ac_confdir=`$as_dirname -- "$as_myself" || 1229$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1230 X"$as_myself" : 'X\(//\)[^/]' \| \ 1231 X"$as_myself" : 'X\(//\)$' \| \ 1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1233$as_echo X"$as_myself" | 1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1235 s//\1/ 1236 q 1237 } 1238 /^X\(\/\/\)[^/].*/{ 1239 s//\1/ 1240 q 1241 } 1242 /^X\(\/\/\)$/{ 1243 s//\1/ 1244 q 1245 } 1246 /^X\(\/\).*/{ 1247 s//\1/ 1248 q 1249 } 1250 s/.*/./; q'` 1251 srcdir=$ac_confdir 1252 if test ! -r "$srcdir/$ac_unique_file"; then 1253 srcdir=.. 1254 fi 1255else 1256 ac_srcdir_defaulted=no 1257fi 1258if test ! -r "$srcdir/$ac_unique_file"; then 1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1261fi 1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1263ac_abs_confdir=`( 1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1265 pwd)` 1266# When building in place, set srcdir=. 1267if test "$ac_abs_confdir" = "$ac_pwd"; then 1268 srcdir=. 1269fi 1270# Remove unnecessary trailing slashes from srcdir. 1271# Double slashes in file names in object file debugging info 1272# mess up M-x gdb in Emacs. 1273case $srcdir in 1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1275esac 1276for ac_var in $ac_precious_vars; do 1277 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1278 eval ac_env_${ac_var}_value=\$${ac_var} 1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1281done 1282 1283# 1284# Report the --help message. 1285# 1286if test "$ac_init_help" = "long"; then 1287 # Omit some internal or obsolete options to make the list less imposing. 1288 # This message is too long to be a string in the A/UX 3.1 sh. 1289 cat <<_ACEOF 1290\`configure' configures gdbmobj 0.10 to adapt to many kinds of systems. 1291 1292Usage: $0 [OPTION]... [VAR=VALUE]... 1293 1294To assign environment variables (e.g., CC, CFLAGS...), specify them as 1295VAR=VALUE. See below for descriptions of some of the useful variables. 1296 1297Defaults for the options are specified in brackets. 1298 1299Configuration: 1300 -h, --help display this help and exit 1301 --help=short display options specific to this package 1302 --help=recursive display the short help of all the included packages 1303 -V, --version display version information and exit 1304 -q, --quiet, --silent do not print \`checking ...' messages 1305 --cache-file=FILE cache test results in FILE [disabled] 1306 -C, --config-cache alias for \`--cache-file=config.cache' 1307 -n, --no-create do not create output files 1308 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1309 1310Installation directories: 1311 --prefix=PREFIX install architecture-independent files in PREFIX 1312 [$ac_default_prefix] 1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1314 [PREFIX] 1315 1316By default, \`make install' will install all the files in 1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1318an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1319for instance \`--prefix=\$HOME'. 1320 1321For better control, use the options below. 1322 1323Fine tuning of the installation directories: 1324 --bindir=DIR user executables [EPREFIX/bin] 1325 --sbindir=DIR system admin executables [EPREFIX/sbin] 1326 --libexecdir=DIR program executables [EPREFIX/libexec] 1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1330 --libdir=DIR object code libraries [EPREFIX/lib] 1331 --includedir=DIR C header files [PREFIX/include] 1332 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1335 --infodir=DIR info documentation [DATAROOTDIR/info] 1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1337 --mandir=DIR man documentation [DATAROOTDIR/man] 1338 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbmobj] 1339 --htmldir=DIR html documentation [DOCDIR] 1340 --dvidir=DIR dvi documentation [DOCDIR] 1341 --pdfdir=DIR pdf documentation [DOCDIR] 1342 --psdir=DIR ps documentation [DOCDIR] 1343_ACEOF 1344 1345 cat <<\_ACEOF 1346 1347Program names: 1348 --program-prefix=PREFIX prepend PREFIX to installed program names 1349 --program-suffix=SUFFIX append SUFFIX to installed program names 1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1351 1352System types: 1353 --build=BUILD configure for building on BUILD [guessed] 1354 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1355_ACEOF 1356fi 1357 1358if test -n "$ac_init_help"; then 1359 case $ac_init_help in 1360 short | recursive ) echo "Configuration of gdbmobj 0.10:";; 1361 esac 1362 cat <<\_ACEOF 1363 1364Optional Features: 1365 --disable-option-checking ignore unrecognized --enable/--with options 1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1368 --disable-dependency-tracking speeds up one-time build 1369 --enable-dependency-tracking do not reject slow dependency extractors 1370 --enable-shared[=PKGS] build shared libraries [default=yes] 1371 --enable-static[=PKGS] build static libraries [default=yes] 1372 --enable-fast-install[=PKGS] 1373 optimize for fast installation [default=yes] 1374 --disable-libtool-lock avoid locking (might break parallel builds) 1375 1376Optional Packages: 1377 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1378 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1379 --with-pic try to use only PIC/non-PIC objects [default=use 1380 both] 1381 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1382 1383Some influential environment variables: 1384 CC C compiler command 1385 CFLAGS C compiler flags 1386 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1387 nonstandard directory <lib dir> 1388 LIBS libraries to pass to the linker, e.g. -l<library> 1389 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1390 you have headers in a nonstandard directory <include dir> 1391 CPP C preprocessor 1392 CXX C++ compiler command 1393 CXXFLAGS C++ compiler flags 1394 CXXCPP C++ preprocessor 1395 1396Use these variables to override the choices made by `configure' or to help 1397it to find libraries and programs with nonstandard names/locations. 1398 1399Report bugs to <courier-users@lists.sourceforge.net>. 1400_ACEOF 1401ac_status=$? 1402fi 1403 1404if test "$ac_init_help" = "recursive"; then 1405 # If there are subdirs, report their specific --help. 1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1407 test -d "$ac_dir" || 1408 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1409 continue 1410 ac_builddir=. 1411 1412case "$ac_dir" in 1413.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1414*) 1415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1416 # A ".." for each directory in $ac_dir_suffix. 1417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1418 case $ac_top_builddir_sub in 1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1421 esac ;; 1422esac 1423ac_abs_top_builddir=$ac_pwd 1424ac_abs_builddir=$ac_pwd$ac_dir_suffix 1425# for backward compatibility: 1426ac_top_builddir=$ac_top_build_prefix 1427 1428case $srcdir in 1429 .) # We are building in place. 1430 ac_srcdir=. 1431 ac_top_srcdir=$ac_top_builddir_sub 1432 ac_abs_top_srcdir=$ac_pwd ;; 1433 [\\/]* | ?:[\\/]* ) # Absolute name. 1434 ac_srcdir=$srcdir$ac_dir_suffix; 1435 ac_top_srcdir=$srcdir 1436 ac_abs_top_srcdir=$srcdir ;; 1437 *) # Relative name. 1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1439 ac_top_srcdir=$ac_top_build_prefix$srcdir 1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1441esac 1442ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1443 1444 cd "$ac_dir" || { ac_status=$?; continue; } 1445 # Check for guested configure. 1446 if test -f "$ac_srcdir/configure.gnu"; then 1447 echo && 1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1449 elif test -f "$ac_srcdir/configure"; then 1450 echo && 1451 $SHELL "$ac_srcdir/configure" --help=recursive 1452 else 1453 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1454 fi || ac_status=$? 1455 cd "$ac_pwd" || { ac_status=$?; break; } 1456 done 1457fi 1458 1459test -n "$ac_init_help" && exit $ac_status 1460if $ac_init_version; then 1461 cat <<\_ACEOF 1462gdbmobj configure 0.10 1463generated by GNU Autoconf 2.66 1464 1465Copyright (C) 2010 Free Software Foundation, Inc. 1466This configure script is free software; the Free Software Foundation 1467gives unlimited permission to copy, distribute and modify it. 1468_ACEOF 1469 exit 1470fi 1471 1472## ------------------------ ## 1473## Autoconf initialization. ## 1474## ------------------------ ## 1475 1476# ac_fn_c_try_compile LINENO 1477# -------------------------- 1478# Try to compile conftest.$ac_ext, and return whether this succeeded. 1479ac_fn_c_try_compile () 1480{ 1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1482 rm -f conftest.$ac_objext 1483 if { { ac_try="$ac_compile" 1484case "(($ac_try" in 1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1486 *) ac_try_echo=$ac_try;; 1487esac 1488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1489$as_echo "$ac_try_echo"; } >&5 1490 (eval "$ac_compile") 2>conftest.err 1491 ac_status=$? 1492 if test -s conftest.err; then 1493 grep -v '^ *+' conftest.err >conftest.er1 1494 cat conftest.er1 >&5 1495 mv -f conftest.er1 conftest.err 1496 fi 1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1498 test $ac_status = 0; } && { 1499 test -z "$ac_c_werror_flag" || 1500 test ! -s conftest.err 1501 } && test -s conftest.$ac_objext; then : 1502 ac_retval=0 1503else 1504 $as_echo "$as_me: failed program was:" >&5 1505sed 's/^/| /' conftest.$ac_ext >&5 1506 1507 ac_retval=1 1508fi 1509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1510 as_fn_set_status $ac_retval 1511 1512} # ac_fn_c_try_compile 1513 1514# ac_fn_c_try_cpp LINENO 1515# ---------------------- 1516# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1517ac_fn_c_try_cpp () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 if { { ac_try="$ac_cpp conftest.$ac_ext" 1521case "(($ac_try" in 1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1523 *) ac_try_echo=$ac_try;; 1524esac 1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1526$as_echo "$ac_try_echo"; } >&5 1527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1528 ac_status=$? 1529 if test -s conftest.err; then 1530 grep -v '^ *+' conftest.err >conftest.er1 1531 cat conftest.er1 >&5 1532 mv -f conftest.er1 conftest.err 1533 fi 1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1535 test $ac_status = 0; } >/dev/null && { 1536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1537 test ! -s conftest.err 1538 }; then : 1539 ac_retval=0 1540else 1541 $as_echo "$as_me: failed program was:" >&5 1542sed 's/^/| /' conftest.$ac_ext >&5 1543 1544 ac_retval=1 1545fi 1546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1547 as_fn_set_status $ac_retval 1548 1549} # ac_fn_c_try_cpp 1550 1551# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1552# ------------------------------------------------------- 1553# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1554# the include files in INCLUDES and setting the cache variable VAR 1555# accordingly. 1556ac_fn_c_check_header_mongrel () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 if eval "test \"\${$3+set}\"" = set; then : 1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1561$as_echo_n "checking for $2... " >&6; } 1562if eval "test \"\${$3+set}\"" = set; then : 1563 $as_echo_n "(cached) " >&6 1564fi 1565eval ac_res=\$$3 1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1567$as_echo "$ac_res" >&6; } 1568else 1569 # Is the header compilable? 1570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1571$as_echo_n "checking $2 usability... " >&6; } 1572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1573/* end confdefs.h. */ 1574$4 1575#include <$2> 1576_ACEOF 1577if ac_fn_c_try_compile "$LINENO"; then : 1578 ac_header_compiler=yes 1579else 1580 ac_header_compiler=no 1581fi 1582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1584$as_echo "$ac_header_compiler" >&6; } 1585 1586# Is the header present? 1587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1588$as_echo_n "checking $2 presence... " >&6; } 1589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1590/* end confdefs.h. */ 1591#include <$2> 1592_ACEOF 1593if ac_fn_c_try_cpp "$LINENO"; then : 1594 ac_header_preproc=yes 1595else 1596 ac_header_preproc=no 1597fi 1598rm -f conftest.err conftest.$ac_ext 1599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1600$as_echo "$ac_header_preproc" >&6; } 1601 1602# So? What about this header? 1603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1604 yes:no: ) 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1606$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1608$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1609 ;; 1610 no:yes:* ) 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1612$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1614$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1616$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1618$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1620$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1621( $as_echo "## -------------------------------------------------- ## 1622## Report this to courier-users@lists.sourceforge.net ## 1623## -------------------------------------------------- ##" 1624 ) | sed "s/^/$as_me: WARNING: /" >&2 1625 ;; 1626esac 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1628$as_echo_n "checking for $2... " >&6; } 1629if eval "test \"\${$3+set}\"" = set; then : 1630 $as_echo_n "(cached) " >&6 1631else 1632 eval "$3=\$ac_header_compiler" 1633fi 1634eval ac_res=\$$3 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1636$as_echo "$ac_res" >&6; } 1637fi 1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1639 1640} # ac_fn_c_check_header_mongrel 1641 1642# ac_fn_c_try_run LINENO 1643# ---------------------- 1644# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1645# that executables *can* be run. 1646ac_fn_c_try_run () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 if { { ac_try="$ac_link" 1650case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655$as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_link") 2>&5 1657 ac_status=$? 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1660 { { case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_try") 2>&5 1667 ac_status=$? 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; }; }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: program exited with status $ac_status" >&5 1673 $as_echo "$as_me: failed program was:" >&5 1674sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=$ac_status 1677fi 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_run 1683 1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1685# ------------------------------------------------------- 1686# Tests whether HEADER exists and can be compiled using the include files in 1687# INCLUDES, setting the cache variable VAR accordingly. 1688ac_fn_c_check_header_compile () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692$as_echo_n "checking for $2... " >&6; } 1693if eval "test \"\${$3+set}\"" = set; then : 1694 $as_echo_n "(cached) " >&6 1695else 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697/* end confdefs.h. */ 1698$4 1699#include <$2> 1700_ACEOF 1701if ac_fn_c_try_compile "$LINENO"; then : 1702 eval "$3=yes" 1703else 1704 eval "$3=no" 1705fi 1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1707fi 1708eval ac_res=\$$3 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1710$as_echo "$ac_res" >&6; } 1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1712 1713} # ac_fn_c_check_header_compile 1714 1715# ac_fn_c_try_link LINENO 1716# ----------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_c_try_link () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 rm -f conftest.$ac_objext conftest$ac_exeext 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { 1738 test -z "$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 } && test -s conftest$ac_exeext && { 1741 test "$cross_compiling" = yes || 1742 $as_test_x conftest$ac_exeext 1743 }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1753 # interfere with the next link command; also delete a directory that is 1754 # left behind by Apple's compiler. We do this before executing the actions. 1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1757 as_fn_set_status $ac_retval 1758 1759} # ac_fn_c_try_link 1760 1761# ac_fn_cxx_try_compile LINENO 1762# ---------------------------- 1763# Try to compile conftest.$ac_ext, and return whether this succeeded. 1764ac_fn_cxx_try_compile () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 rm -f conftest.$ac_objext 1768 if { { ac_try="$ac_compile" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_compile") 2>conftest.err 1776 ac_status=$? 1777 if test -s conftest.err; then 1778 grep -v '^ *+' conftest.err >conftest.er1 1779 cat conftest.er1 >&5 1780 mv -f conftest.er1 conftest.err 1781 fi 1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1783 test $ac_status = 0; } && { 1784 test -z "$ac_cxx_werror_flag" || 1785 test ! -s conftest.err 1786 } && test -s conftest.$ac_objext; then : 1787 ac_retval=0 1788else 1789 $as_echo "$as_me: failed program was:" >&5 1790sed 's/^/| /' conftest.$ac_ext >&5 1791 1792 ac_retval=1 1793fi 1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1795 as_fn_set_status $ac_retval 1796 1797} # ac_fn_cxx_try_compile 1798 1799# ac_fn_c_check_func LINENO FUNC VAR 1800# ---------------------------------- 1801# Tests whether FUNC exists, setting the cache variable VAR accordingly 1802ac_fn_c_check_func () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1806$as_echo_n "checking for $2... " >&6; } 1807if eval "test \"\${$3+set}\"" = set; then : 1808 $as_echo_n "(cached) " >&6 1809else 1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1811/* end confdefs.h. */ 1812/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1814#define $2 innocuous_$2 1815 1816/* System header to define __stub macros and hopefully few prototypes, 1817 which can conflict with char $2 (); below. 1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1819 <limits.h> exists even on freestanding compilers. */ 1820 1821#ifdef __STDC__ 1822# include <limits.h> 1823#else 1824# include <assert.h> 1825#endif 1826 1827#undef $2 1828 1829/* Override any GCC internal prototype to avoid an error. 1830 Use char because int might match the return type of a GCC 1831 builtin and then its argument prototype would still apply. */ 1832#ifdef __cplusplus 1833extern "C" 1834#endif 1835char $2 (); 1836/* The GNU C library defines this for functions which it implements 1837 to always fail with ENOSYS. Some functions are actually named 1838 something starting with __ and the normal name is an alias. */ 1839#if defined __stub_$2 || defined __stub___$2 1840choke me 1841#endif 1842 1843int 1844main () 1845{ 1846return $2 (); 1847 ; 1848 return 0; 1849} 1850_ACEOF 1851if ac_fn_c_try_link "$LINENO"; then : 1852 eval "$3=yes" 1853else 1854 eval "$3=no" 1855fi 1856rm -f core conftest.err conftest.$ac_objext \ 1857 conftest$ac_exeext conftest.$ac_ext 1858fi 1859eval ac_res=\$$3 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1861$as_echo "$ac_res" >&6; } 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1863 1864} # ac_fn_c_check_func 1865 1866# ac_fn_cxx_try_cpp LINENO 1867# ------------------------ 1868# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1869ac_fn_cxx_try_cpp () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 if { { ac_try="$ac_cpp conftest.$ac_ext" 1873case "(($ac_try" in 1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1875 *) ac_try_echo=$ac_try;; 1876esac 1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1878$as_echo "$ac_try_echo"; } >&5 1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1880 ac_status=$? 1881 if test -s conftest.err; then 1882 grep -v '^ *+' conftest.err >conftest.er1 1883 cat conftest.er1 >&5 1884 mv -f conftest.er1 conftest.err 1885 fi 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; } >/dev/null && { 1888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1889 test ! -s conftest.err 1890 }; then : 1891 ac_retval=0 1892else 1893 $as_echo "$as_me: failed program was:" >&5 1894sed 's/^/| /' conftest.$ac_ext >&5 1895 1896 ac_retval=1 1897fi 1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1899 as_fn_set_status $ac_retval 1900 1901} # ac_fn_cxx_try_cpp 1902 1903# ac_fn_cxx_try_link LINENO 1904# ------------------------- 1905# Try to link conftest.$ac_ext, and return whether this succeeded. 1906ac_fn_cxx_try_link () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 rm -f conftest.$ac_objext conftest$ac_exeext 1910 if { { ac_try="$ac_link" 1911case "(($ac_try" in 1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1913 *) ac_try_echo=$ac_try;; 1914esac 1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1916$as_echo "$ac_try_echo"; } >&5 1917 (eval "$ac_link") 2>conftest.err 1918 ac_status=$? 1919 if test -s conftest.err; then 1920 grep -v '^ *+' conftest.err >conftest.er1 1921 cat conftest.er1 >&5 1922 mv -f conftest.er1 conftest.err 1923 fi 1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1925 test $ac_status = 0; } && { 1926 test -z "$ac_cxx_werror_flag" || 1927 test ! -s conftest.err 1928 } && test -s conftest$ac_exeext && { 1929 test "$cross_compiling" = yes || 1930 $as_test_x conftest$ac_exeext 1931 }; then : 1932 ac_retval=0 1933else 1934 $as_echo "$as_me: failed program was:" >&5 1935sed 's/^/| /' conftest.$ac_ext >&5 1936 1937 ac_retval=1 1938fi 1939 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1940 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1941 # interfere with the next link command; also delete a directory that is 1942 # left behind by Apple's compiler. We do this before executing the actions. 1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1945 as_fn_set_status $ac_retval 1946 1947} # ac_fn_cxx_try_link 1948 1949# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1950# ------------------------------------------- 1951# Tests whether TYPE exists after having included INCLUDES, setting cache 1952# variable VAR accordingly. 1953ac_fn_c_check_type () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957$as_echo_n "checking for $2... " >&6; } 1958if eval "test \"\${$3+set}\"" = set; then : 1959 $as_echo_n "(cached) " >&6 1960else 1961 eval "$3=no" 1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1963/* end confdefs.h. */ 1964$4 1965int 1966main () 1967{ 1968if (sizeof ($2)) 1969 return 0; 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_compile "$LINENO"; then : 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977$4 1978int 1979main () 1980{ 1981if (sizeof (($2))) 1982 return 0; 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 1989else 1990 eval "$3=yes" 1991fi 1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1993fi 1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1995fi 1996eval ac_res=\$$3 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1998$as_echo "$ac_res" >&6; } 1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2000 2001} # ac_fn_c_check_type 2002cat >config.log <<_ACEOF 2003This file contains any messages produced by compilers while 2004running configure, to aid debugging if configure makes a mistake. 2005 2006It was created by gdbmobj $as_me 0.10, which was 2007generated by GNU Autoconf 2.66. Invocation command line was 2008 2009 $ $0 $@ 2010 2011_ACEOF 2012exec 5>>config.log 2013{ 2014cat <<_ASUNAME 2015## --------- ## 2016## Platform. ## 2017## --------- ## 2018 2019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2020uname -m = `(uname -m) 2>/dev/null || echo unknown` 2021uname -r = `(uname -r) 2>/dev/null || echo unknown` 2022uname -s = `(uname -s) 2>/dev/null || echo unknown` 2023uname -v = `(uname -v) 2>/dev/null || echo unknown` 2024 2025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2026/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2027 2028/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2029/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2031/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2032/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2033/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2034/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2035 2036_ASUNAME 2037 2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2039for as_dir in $PATH 2040do 2041 IFS=$as_save_IFS 2042 test -z "$as_dir" && as_dir=. 2043 $as_echo "PATH: $as_dir" 2044 done 2045IFS=$as_save_IFS 2046 2047} >&5 2048 2049cat >&5 <<_ACEOF 2050 2051 2052## ----------- ## 2053## Core tests. ## 2054## ----------- ## 2055 2056_ACEOF 2057 2058 2059# Keep a trace of the command line. 2060# Strip out --no-create and --no-recursion so they do not pile up. 2061# Strip out --silent because we don't want to record it for future runs. 2062# Also quote any args containing shell meta-characters. 2063# Make two passes to allow for proper duplicate-argument suppression. 2064ac_configure_args= 2065ac_configure_args0= 2066ac_configure_args1= 2067ac_must_keep_next=false 2068for ac_pass in 1 2 2069do 2070 for ac_arg 2071 do 2072 case $ac_arg in 2073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2075 | -silent | --silent | --silen | --sile | --sil) 2076 continue ;; 2077 *\'*) 2078 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2079 esac 2080 case $ac_pass in 2081 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2082 2) 2083 as_fn_append ac_configure_args1 " '$ac_arg'" 2084 if test $ac_must_keep_next = true; then 2085 ac_must_keep_next=false # Got value, back to normal. 2086 else 2087 case $ac_arg in 2088 *=* | --config-cache | -C | -disable-* | --disable-* \ 2089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2091 | -with-* | --with-* | -without-* | --without-* | --x) 2092 case "$ac_configure_args0 " in 2093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2094 esac 2095 ;; 2096 -* ) ac_must_keep_next=true ;; 2097 esac 2098 fi 2099 as_fn_append ac_configure_args " '$ac_arg'" 2100 ;; 2101 esac 2102 done 2103done 2104{ ac_configure_args0=; unset ac_configure_args0;} 2105{ ac_configure_args1=; unset ac_configure_args1;} 2106 2107# When interrupted or exit'd, cleanup temporary files, and complete 2108# config.log. We remove comments because anyway the quotes in there 2109# would cause problems or look ugly. 2110# WARNING: Use '\'' to represent an apostrophe within the trap. 2111# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2112trap 'exit_status=$? 2113 # Save into config.log some information that might help in debugging. 2114 { 2115 echo 2116 2117 $as_echo "## ---------------- ## 2118## Cache variables. ## 2119## ---------------- ##" 2120 echo 2121 # The following way of writing the cache mishandles newlines in values, 2122( 2123 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2124 eval ac_val=\$$ac_var 2125 case $ac_val in #( 2126 *${as_nl}*) 2127 case $ac_var in #( 2128 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2129$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2130 esac 2131 case $ac_var in #( 2132 _ | IFS | as_nl) ;; #( 2133 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2134 *) { eval $ac_var=; unset $ac_var;} ;; 2135 esac ;; 2136 esac 2137 done 2138 (set) 2>&1 | 2139 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2140 *${as_nl}ac_space=\ *) 2141 sed -n \ 2142 "s/'\''/'\''\\\\'\'''\''/g; 2143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2144 ;; #( 2145 *) 2146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2147 ;; 2148 esac | 2149 sort 2150) 2151 echo 2152 2153 $as_echo "## ----------------- ## 2154## Output variables. ## 2155## ----------------- ##" 2156 echo 2157 for ac_var in $ac_subst_vars 2158 do 2159 eval ac_val=\$$ac_var 2160 case $ac_val in 2161 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2162 esac 2163 $as_echo "$ac_var='\''$ac_val'\''" 2164 done | sort 2165 echo 2166 2167 if test -n "$ac_subst_files"; then 2168 $as_echo "## ------------------- ## 2169## File substitutions. ## 2170## ------------------- ##" 2171 echo 2172 for ac_var in $ac_subst_files 2173 do 2174 eval ac_val=\$$ac_var 2175 case $ac_val in 2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2177 esac 2178 $as_echo "$ac_var='\''$ac_val'\''" 2179 done | sort 2180 echo 2181 fi 2182 2183 if test -s confdefs.h; then 2184 $as_echo "## ----------- ## 2185## confdefs.h. ## 2186## ----------- ##" 2187 echo 2188 cat confdefs.h 2189 echo 2190 fi 2191 test "$ac_signal" != 0 && 2192 $as_echo "$as_me: caught signal $ac_signal" 2193 $as_echo "$as_me: exit $exit_status" 2194 } >&5 2195 rm -f core *.core core.conftest.* && 2196 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2197 exit $exit_status 2198' 0 2199for ac_signal in 1 2 13 15; do 2200 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2201done 2202ac_signal=0 2203 2204# confdefs.h avoids OS command line length limits that DEFS can exceed. 2205rm -f -r conftest* confdefs.h 2206 2207$as_echo "/* confdefs.h */" > confdefs.h 2208 2209# Predefined preprocessor variables. 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_NAME "$PACKAGE_NAME" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2217_ACEOF 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE_VERSION "$PACKAGE_VERSION" 2221_ACEOF 2222 2223cat >>confdefs.h <<_ACEOF 2224#define PACKAGE_STRING "$PACKAGE_STRING" 2225_ACEOF 2226 2227cat >>confdefs.h <<_ACEOF 2228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2229_ACEOF 2230 2231cat >>confdefs.h <<_ACEOF 2232#define PACKAGE_URL "$PACKAGE_URL" 2233_ACEOF 2234 2235 2236# Let the site file select an alternate cache file if it wants to. 2237# Prefer an explicitly selected file to automatically selected ones. 2238ac_site_file1=NONE 2239ac_site_file2=NONE 2240if test -n "$CONFIG_SITE"; then 2241 # We do not want a PATH search for config.site. 2242 case $CONFIG_SITE in #(( 2243 -*) ac_site_file1=./$CONFIG_SITE;; 2244 */*) ac_site_file1=$CONFIG_SITE;; 2245 *) ac_site_file1=./$CONFIG_SITE;; 2246 esac 2247elif test "x$prefix" != xNONE; then 2248 ac_site_file1=$prefix/share/config.site 2249 ac_site_file2=$prefix/etc/config.site 2250else 2251 ac_site_file1=$ac_default_prefix/share/config.site 2252 ac_site_file2=$ac_default_prefix/etc/config.site 2253fi 2254for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2255do 2256 test "x$ac_site_file" = xNONE && continue 2257 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2259$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2260 sed 's/^/| /' "$ac_site_file" >&5 2261 . "$ac_site_file" \ 2262 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2264as_fn_error $? "failed to load site script $ac_site_file 2265See \`config.log' for more details" "$LINENO" 5; } 2266 fi 2267done 2268 2269if test -r "$cache_file"; then 2270 # Some versions of bash will fail to source /dev/null (special files 2271 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2272 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2274$as_echo "$as_me: loading cache $cache_file" >&6;} 2275 case $cache_file in 2276 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2277 *) . "./$cache_file";; 2278 esac 2279 fi 2280else 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2282$as_echo "$as_me: creating cache $cache_file" >&6;} 2283 >$cache_file 2284fi 2285 2286# Check that the precious variables saved in the cache have kept the same 2287# value. 2288ac_cache_corrupted=false 2289for ac_var in $ac_precious_vars; do 2290 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2291 eval ac_new_set=\$ac_env_${ac_var}_set 2292 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2293 eval ac_new_val=\$ac_env_${ac_var}_value 2294 case $ac_old_set,$ac_new_set in 2295 set,) 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2297$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2298 ac_cache_corrupted=: ;; 2299 ,set) 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2301$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2302 ac_cache_corrupted=: ;; 2303 ,);; 2304 *) 2305 if test "x$ac_old_val" != "x$ac_new_val"; then 2306 # differences in whitespace do not lead to failure. 2307 ac_old_val_w=`echo x $ac_old_val` 2308 ac_new_val_w=`echo x $ac_new_val` 2309 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2311$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2312 ac_cache_corrupted=: 2313 else 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2315$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2316 eval $ac_var=\$ac_old_val 2317 fi 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2319$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2321$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2322 fi;; 2323 esac 2324 # Pass precious variables to config.status. 2325 if test "$ac_new_set" = set; then 2326 case $ac_new_val in 2327 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2328 *) ac_arg=$ac_var=$ac_new_val ;; 2329 esac 2330 case " $ac_configure_args " in 2331 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2332 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2333 esac 2334 fi 2335done 2336if $ac_cache_corrupted; then 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2340$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2341 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2342fi 2343## -------------------- ## 2344## Main body of script. ## 2345## -------------------- ## 2346 2347ac_ext=c 2348ac_cpp='$CPP $CPPFLAGS' 2349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2351ac_compiler_gnu=$ac_cv_c_compiler_gnu 2352 2353 2354 2355>confdefs.h # Kill PACKAGE_ macros 2356 2357 2358am__api_version='1.11' 2359 2360ac_aux_dir= 2361for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2362 if test -f "$ac_dir/install-sh"; then 2363 ac_aux_dir=$ac_dir 2364 ac_install_sh="$ac_aux_dir/install-sh -c" 2365 break 2366 elif test -f "$ac_dir/install.sh"; then 2367 ac_aux_dir=$ac_dir 2368 ac_install_sh="$ac_aux_dir/install.sh -c" 2369 break 2370 elif test -f "$ac_dir/shtool"; then 2371 ac_aux_dir=$ac_dir 2372 ac_install_sh="$ac_aux_dir/shtool install -c" 2373 break 2374 fi 2375done 2376if test -z "$ac_aux_dir"; then 2377 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2378fi 2379 2380# These three variables are undocumented and unsupported, 2381# and are intended to be withdrawn in a future Autoconf release. 2382# They can cause serious problems if a builder's source tree is in a directory 2383# whose full name contains unusual characters. 2384ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2385ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2386ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2387 2388 2389# Find a good install program. We prefer a C program (faster), 2390# so one script is as good as another. But avoid the broken or 2391# incompatible versions: 2392# SysV /etc/install, /usr/sbin/install 2393# SunOS /usr/etc/install 2394# IRIX /sbin/install 2395# AIX /bin/install 2396# AmigaOS /C/install, which installs bootblocks on floppy discs 2397# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2398# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2399# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2400# OS/2's system install, which has a completely different semantic 2401# ./install, which can be erroneously created by make from ./install.sh. 2402# Reject install programs that cannot install multiple files. 2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2404$as_echo_n "checking for a BSD-compatible install... " >&6; } 2405if test -z "$INSTALL"; then 2406if test "${ac_cv_path_install+set}" = set; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2410for as_dir in $PATH 2411do 2412 IFS=$as_save_IFS 2413 test -z "$as_dir" && as_dir=. 2414 # Account for people who put trailing slashes in PATH elements. 2415case $as_dir/ in #(( 2416 ./ | .// | /[cC]/* | \ 2417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2418 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2419 /usr/ucb/* ) ;; 2420 *) 2421 # OSF1 and SCO ODT 3.0 have their own names for install. 2422 # Don't use installbsd from OSF since it installs stuff as root 2423 # by default. 2424 for ac_prog in ginstall scoinst install; do 2425 for ac_exec_ext in '' $ac_executable_extensions; do 2426 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2427 if test $ac_prog = install && 2428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2429 # AIX install. It has an incompatible calling convention. 2430 : 2431 elif test $ac_prog = install && 2432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2433 # program-specific install script used by HP pwplus--don't use. 2434 : 2435 else 2436 rm -rf conftest.one conftest.two conftest.dir 2437 echo one > conftest.one 2438 echo two > conftest.two 2439 mkdir conftest.dir 2440 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2441 test -s conftest.one && test -s conftest.two && 2442 test -s conftest.dir/conftest.one && 2443 test -s conftest.dir/conftest.two 2444 then 2445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2446 break 3 2447 fi 2448 fi 2449 fi 2450 done 2451 done 2452 ;; 2453esac 2454 2455 done 2456IFS=$as_save_IFS 2457 2458rm -rf conftest.one conftest.two conftest.dir 2459 2460fi 2461 if test "${ac_cv_path_install+set}" = set; then 2462 INSTALL=$ac_cv_path_install 2463 else 2464 # As a last resort, use the slow shell script. Don't cache a 2465 # value for INSTALL within a source directory, because that will 2466 # break other packages using the cache if that directory is 2467 # removed, or if the value is a relative name. 2468 INSTALL=$ac_install_sh 2469 fi 2470fi 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2472$as_echo "$INSTALL" >&6; } 2473 2474# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2475# It thinks the first close brace ends the variable substitution. 2476test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2477 2478test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2479 2480test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2481 2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2483$as_echo_n "checking whether build environment is sane... " >&6; } 2484# Just in case 2485sleep 1 2486echo timestamp > conftest.file 2487# Reject unsafe characters in $srcdir or the absolute working directory 2488# name. Accept space and tab only in the latter. 2489am_lf=' 2490' 2491case `pwd` in 2492 *[\\\"\#\$\&\'\`$am_lf]*) 2493 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2494esac 2495case $srcdir in 2496 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2497 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2498esac 2499 2500# Do `set' in a subshell so we don't clobber the current shell's 2501# arguments. Must try -L first in case configure is actually a 2502# symlink; some systems play weird games with the mod time of symlinks 2503# (eg FreeBSD returns the mod time of the symlink's containing 2504# directory). 2505if ( 2506 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2507 if test "$*" = "X"; then 2508 # -L didn't work. 2509 set X `ls -t "$srcdir/configure" conftest.file` 2510 fi 2511 rm -f conftest.file 2512 if test "$*" != "X $srcdir/configure conftest.file" \ 2513 && test "$*" != "X conftest.file $srcdir/configure"; then 2514 2515 # If neither matched, then we have a broken ls. This can happen 2516 # if, for instance, CONFIG_SHELL is bash and it inherits a 2517 # broken ls alias from the environment. This has actually 2518 # happened. Such a system could not be considered "sane". 2519 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2520alias in your environment" "$LINENO" 5 2521 fi 2522 2523 test "$2" = conftest.file 2524 ) 2525then 2526 # Ok. 2527 : 2528else 2529 as_fn_error $? "newly created file is older than distributed files! 2530Check your system clock" "$LINENO" 5 2531fi 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2533$as_echo "yes" >&6; } 2534test "$program_prefix" != NONE && 2535 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2536# Use a double $ so make ignores it. 2537test "$program_suffix" != NONE && 2538 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2539# Double any \ or $. 2540# By default was `s,x,x', remove it if useless. 2541ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2542program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2543 2544# expand $ac_aux_dir to an absolute path 2545am_aux_dir=`cd $ac_aux_dir && pwd` 2546 2547if test x"${MISSING+set}" != xset; then 2548 case $am_aux_dir in 2549 *\ * | *\ *) 2550 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2551 *) 2552 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2553 esac 2554fi 2555# Use eval to expand $SHELL 2556if eval "$MISSING --run true"; then 2557 am_missing_run="$MISSING --run " 2558else 2559 am_missing_run= 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2561$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2562fi 2563 2564if test x"${install_sh}" != xset; then 2565 case $am_aux_dir in 2566 *\ * | *\ *) 2567 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2568 *) 2569 install_sh="\${SHELL} $am_aux_dir/install-sh" 2570 esac 2571fi 2572 2573# Installed binaries are usually stripped using `strip' when the user 2574# run `make install-strip'. However `strip' might not be the right 2575# tool to use in cross-compilation environments, therefore Automake 2576# will honor the `STRIP' environment variable to overrule this program. 2577if test "$cross_compiling" != no; then 2578 if test -n "$ac_tool_prefix"; then 2579 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2580set dummy ${ac_tool_prefix}strip; ac_word=$2 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2582$as_echo_n "checking for $ac_word... " >&6; } 2583if test "${ac_cv_prog_STRIP+set}" = set; then : 2584 $as_echo_n "(cached) " >&6 2585else 2586 if test -n "$STRIP"; then 2587 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2588else 2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2590for as_dir in $PATH 2591do 2592 IFS=$as_save_IFS 2593 test -z "$as_dir" && as_dir=. 2594 for ac_exec_ext in '' $ac_executable_extensions; do 2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2596 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2598 break 2 2599 fi 2600done 2601 done 2602IFS=$as_save_IFS 2603 2604fi 2605fi 2606STRIP=$ac_cv_prog_STRIP 2607if test -n "$STRIP"; then 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2609$as_echo "$STRIP" >&6; } 2610else 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2612$as_echo "no" >&6; } 2613fi 2614 2615 2616fi 2617if test -z "$ac_cv_prog_STRIP"; then 2618 ac_ct_STRIP=$STRIP 2619 # Extract the first word of "strip", so it can be a program name with args. 2620set dummy strip; ac_word=$2 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2622$as_echo_n "checking for $ac_word... " >&6; } 2623if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2624 $as_echo_n "(cached) " >&6 2625else 2626 if test -n "$ac_ct_STRIP"; then 2627 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2628else 2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630for as_dir in $PATH 2631do 2632 IFS=$as_save_IFS 2633 test -z "$as_dir" && as_dir=. 2634 for ac_exec_ext in '' $ac_executable_extensions; do 2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2636 ac_cv_prog_ac_ct_STRIP="strip" 2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2638 break 2 2639 fi 2640done 2641 done 2642IFS=$as_save_IFS 2643 2644fi 2645fi 2646ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2647if test -n "$ac_ct_STRIP"; then 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2649$as_echo "$ac_ct_STRIP" >&6; } 2650else 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2652$as_echo "no" >&6; } 2653fi 2654 2655 if test "x$ac_ct_STRIP" = x; then 2656 STRIP=":" 2657 else 2658 case $cross_compiling:$ac_tool_warned in 2659yes:) 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2662ac_tool_warned=yes ;; 2663esac 2664 STRIP=$ac_ct_STRIP 2665 fi 2666else 2667 STRIP="$ac_cv_prog_STRIP" 2668fi 2669 2670fi 2671INSTALL_STRIP_PROGRAM="install -s -m 555 -s" 2672 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2674$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2675if test -z "$MKDIR_P"; then 2676 if test "${ac_cv_path_mkdir+set}" = set; then : 2677 $as_echo_n "(cached) " >&6 2678else 2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2680for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2681do 2682 IFS=$as_save_IFS 2683 test -z "$as_dir" && as_dir=. 2684 for ac_prog in mkdir gmkdir; do 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2687 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2688 'mkdir (GNU coreutils) '* | \ 2689 'mkdir (coreutils) '* | \ 2690 'mkdir (fileutils) '4.1*) 2691 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2692 break 3;; 2693 esac 2694 done 2695 done 2696 done 2697IFS=$as_save_IFS 2698 2699fi 2700 2701 test -d ./--version && rmdir ./--version 2702 if test "${ac_cv_path_mkdir+set}" = set; then 2703 MKDIR_P="$ac_cv_path_mkdir -p" 2704 else 2705 # As a last resort, use the slow shell script. Don't cache a 2706 # value for MKDIR_P within a source directory, because that will 2707 # break other packages using the cache if that directory is 2708 # removed, or if the value is a relative name. 2709 MKDIR_P="$ac_install_sh -d" 2710 fi 2711fi 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2713$as_echo "$MKDIR_P" >&6; } 2714 2715mkdir_p="$MKDIR_P" 2716case $mkdir_p in 2717 [\\/$]* | ?:[\\/]*) ;; 2718 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2719esac 2720 2721for ac_prog in gawk mawk nawk awk 2722do 2723 # Extract the first word of "$ac_prog", so it can be a program name with args. 2724set dummy $ac_prog; ac_word=$2 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2726$as_echo_n "checking for $ac_word... " >&6; } 2727if test "${ac_cv_prog_AWK+set}" = set; then : 2728 $as_echo_n "(cached) " >&6 2729else 2730 if test -n "$AWK"; then 2731 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2732else 2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH 2735do 2736 IFS=$as_save_IFS 2737 test -z "$as_dir" && as_dir=. 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2740 ac_cv_prog_AWK="$ac_prog" 2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745 done 2746IFS=$as_save_IFS 2747 2748fi 2749fi 2750AWK=$ac_cv_prog_AWK 2751if test -n "$AWK"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2753$as_echo "$AWK" >&6; } 2754else 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756$as_echo "no" >&6; } 2757fi 2758 2759 2760 test -n "$AWK" && break 2761done 2762 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2764$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2765set x ${MAKE-make} 2766ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2767if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 cat >conftest.make <<\_ACEOF 2771SHELL = /bin/sh 2772all: 2773 @echo '@@@%%%=$(MAKE)=@@@%%%' 2774_ACEOF 2775# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2776case `${MAKE-make} -f conftest.make 2>/dev/null` in 2777 *@@@%%%=?*=@@@%%%*) 2778 eval ac_cv_prog_make_${ac_make}_set=yes;; 2779 *) 2780 eval ac_cv_prog_make_${ac_make}_set=no;; 2781esac 2782rm -f conftest.make 2783fi 2784if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2786$as_echo "yes" >&6; } 2787 SET_MAKE= 2788else 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2790$as_echo "no" >&6; } 2791 SET_MAKE="MAKE=${MAKE-make}" 2792fi 2793 2794rm -rf .tst 2>/dev/null 2795mkdir .tst 2>/dev/null 2796if test -d .tst; then 2797 am__leading_dot=. 2798else 2799 am__leading_dot=_ 2800fi 2801rmdir .tst 2>/dev/null 2802 2803if test "`cd $srcdir && pwd`" != "`pwd`"; then 2804 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2805 # is not polluted with repeated "-I." 2806 am__isrc=' -I$(srcdir)' 2807 # test to see if srcdir already configured 2808 if test -f $srcdir/config.status; then 2809 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2810 fi 2811fi 2812 2813# test whether we have cygpath 2814if test -z "$CYGPATH_W"; then 2815 if (cygpath --version) >/dev/null 2>/dev/null; then 2816 CYGPATH_W='cygpath -w' 2817 else 2818 CYGPATH_W=echo 2819 fi 2820fi 2821 2822 2823# Define the identity of the package. 2824 PACKAGE='gdbmobj' 2825 VERSION='0.10' 2826 2827 2828# Some tools Automake needs. 2829 2830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2831 2832 2833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2834 2835 2836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2837 2838 2839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2840 2841 2842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2843 2844# We need awk for the "check" target. The system "awk" is bad on 2845# some platforms. 2846# Always define AMTAR for backward compatibility. 2847 2848AMTAR=${AMTAR-"${am_missing_run}tar"} 2849 2850am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2851 2852 2853 2854 2855 2856ac_config_headers="$ac_config_headers config.h" 2857 2858 2859DEPDIR="${am__leading_dot}deps" 2860 2861ac_config_commands="$ac_config_commands depfiles" 2862 2863 2864am_make=${MAKE-make} 2865cat > confinc << 'END' 2866am__doit: 2867 @echo this is the am__doit target 2868.PHONY: am__doit 2869END 2870# If we don't find an include directive, just comment out the code. 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2872$as_echo_n "checking for style of include used by $am_make... " >&6; } 2873am__include="#" 2874am__quote= 2875_am_result=none 2876# First try GNU make style include. 2877echo "include confinc" > confmf 2878# Ignore all kinds of additional output from `make'. 2879case `$am_make -s -f confmf 2> /dev/null` in #( 2880*the\ am__doit\ target*) 2881 am__include=include 2882 am__quote= 2883 _am_result=GNU 2884 ;; 2885esac 2886# Now try BSD make style include. 2887if test "$am__include" = "#"; then 2888 echo '.include "confinc"' > confmf 2889 case `$am_make -s -f confmf 2> /dev/null` in #( 2890 *the\ am__doit\ target*) 2891 am__include=.include 2892 am__quote="\"" 2893 _am_result=BSD 2894 ;; 2895 esac 2896fi 2897 2898 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2900$as_echo "$_am_result" >&6; } 2901rm -f confinc confmf 2902 2903# Check whether --enable-dependency-tracking was given. 2904if test "${enable_dependency_tracking+set}" = set; then : 2905 enableval=$enable_dependency_tracking; 2906fi 2907 2908if test "x$enable_dependency_tracking" != xno; then 2909 am_depcomp="$ac_aux_dir/depcomp" 2910 AMDEPBACKSLASH='\' 2911fi 2912 if test "x$enable_dependency_tracking" != xno; then 2913 AMDEP_TRUE= 2914 AMDEP_FALSE='#' 2915else 2916 AMDEP_TRUE='#' 2917 AMDEP_FALSE= 2918fi 2919 2920 2921ac_ext=c 2922ac_cpp='$CPP $CPPFLAGS' 2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2925ac_compiler_gnu=$ac_cv_c_compiler_gnu 2926if test -n "$ac_tool_prefix"; then 2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2928set dummy ${ac_tool_prefix}gcc; ac_word=$2 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930$as_echo_n "checking for $ac_word... " >&6; } 2931if test "${ac_cv_prog_CC+set}" = set; then : 2932 $as_echo_n "(cached) " >&6 2933else 2934 if test -n "$CC"; then 2935 ac_cv_prog_CC="$CC" # Let the user override the test. 2936else 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2944 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948done 2949 done 2950IFS=$as_save_IFS 2951 2952fi 2953fi 2954CC=$ac_cv_prog_CC 2955if test -n "$CC"; then 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2957$as_echo "$CC" >&6; } 2958else 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960$as_echo "no" >&6; } 2961fi 2962 2963 2964fi 2965if test -z "$ac_cv_prog_CC"; then 2966 ac_ct_CC=$CC 2967 # Extract the first word of "gcc", so it can be a program name with args. 2968set dummy gcc; ac_word=$2 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970$as_echo_n "checking for $ac_word... " >&6; } 2971if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2972 $as_echo_n "(cached) " >&6 2973else 2974 if test -n "$ac_ct_CC"; then 2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2976else 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2984 ac_cv_prog_ac_ct_CC="gcc" 2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988done 2989 done 2990IFS=$as_save_IFS 2991 2992fi 2993fi 2994ac_ct_CC=$ac_cv_prog_ac_ct_CC 2995if test -n "$ac_ct_CC"; then 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2997$as_echo "$ac_ct_CC" >&6; } 2998else 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000$as_echo "no" >&6; } 3001fi 3002 3003 if test "x$ac_ct_CC" = x; then 3004 CC="" 3005 else 3006 case $cross_compiling:$ac_tool_warned in 3007yes:) 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3010ac_tool_warned=yes ;; 3011esac 3012 CC=$ac_ct_CC 3013 fi 3014else 3015 CC="$ac_cv_prog_CC" 3016fi 3017 3018if test -z "$CC"; then 3019 if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3021set dummy ${ac_tool_prefix}cc; ac_word=$2 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if test "${ac_cv_prog_CC+set}" = set; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3037 ac_cv_prog_CC="${ac_tool_prefix}cc" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047CC=$ac_cv_prog_CC 3048if test -n "$CC"; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3050$as_echo "$CC" >&6; } 3051else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 3057 fi 3058fi 3059if test -z "$CC"; then 3060 # Extract the first word of "cc", so it can be a program name with args. 3061set dummy cc; ac_word=$2 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063$as_echo_n "checking for $ac_word... " >&6; } 3064if test "${ac_cv_prog_CC+set}" = set; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if test -n "$CC"; then 3068 ac_cv_prog_CC="$CC" # Let the user override the test. 3069else 3070 ac_prog_rejected=no 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3079 ac_prog_rejected=yes 3080 continue 3081 fi 3082 ac_cv_prog_CC="cc" 3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086done 3087 done 3088IFS=$as_save_IFS 3089 3090if test $ac_prog_rejected = yes; then 3091 # We found a bogon in the path, so make sure we never use it. 3092 set dummy $ac_cv_prog_CC 3093 shift 3094 if test $# != 0; then 3095 # We chose a different compiler from the bogus one. 3096 # However, it has the same basename, so the bogon will be chosen 3097 # first if we set CC to just the basename; use the full file name. 3098 shift 3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3100 fi 3101fi 3102fi 3103fi 3104CC=$ac_cv_prog_CC 3105if test -n "$CC"; then 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3107$as_echo "$CC" >&6; } 3108else 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3110$as_echo "no" >&6; } 3111fi 3112 3113 3114fi 3115if test -z "$CC"; then 3116 if test -n "$ac_tool_prefix"; then 3117 for ac_prog in cl.exe 3118 do 3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3120set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3122$as_echo_n "checking for $ac_word... " >&6; } 3123if test "${ac_cv_prog_CC+set}" = set; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if test -n "$CC"; then 3127 ac_cv_prog_CC="$CC" # Let the user override the test. 3128else 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138 break 2 3139 fi 3140done 3141 done 3142IFS=$as_save_IFS 3143 3144fi 3145fi 3146CC=$ac_cv_prog_CC 3147if test -n "$CC"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3149$as_echo "$CC" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 3156 test -n "$CC" && break 3157 done 3158fi 3159if test -z "$CC"; then 3160 ac_ct_CC=$CC 3161 for ac_prog in cl.exe 3162do 3163 # Extract the first word of "$ac_prog", so it can be a program name with args. 3164set dummy $ac_prog; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$ac_ct_CC"; then 3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3180 ac_cv_prog_ac_ct_CC="$ac_prog" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190ac_ct_CC=$ac_cv_prog_ac_ct_CC 3191if test -n "$ac_ct_CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3193$as_echo "$ac_ct_CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200 test -n "$ac_ct_CC" && break 3201done 3202 3203 if test "x$ac_ct_CC" = x; then 3204 CC="" 3205 else 3206 case $cross_compiling:$ac_tool_warned in 3207yes:) 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3210ac_tool_warned=yes ;; 3211esac 3212 CC=$ac_ct_CC 3213 fi 3214fi 3215 3216fi 3217 3218 3219test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221as_fn_error $? "no acceptable C compiler found in \$PATH 3222See \`config.log' for more details" "$LINENO" 5; } 3223 3224# Provide some information about the compiler. 3225$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3226set X $ac_compile 3227ac_compiler=$2 3228for ac_option in --version -v -V -qversion; do 3229 { { ac_try="$ac_compiler $ac_option >&5" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3235$as_echo "$ac_try_echo"; } >&5 3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3237 ac_status=$? 3238 if test -s conftest.err; then 3239 sed '10a\ 3240... rest of stderr output deleted ... 3241 10q' conftest.err >conftest.er1 3242 cat conftest.er1 >&5 3243 fi 3244 rm -f conftest.er1 conftest.err 3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3246 test $ac_status = 0; } 3247done 3248 3249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251 3252int 3253main () 3254{ 3255 3256 ; 3257 return 0; 3258} 3259_ACEOF 3260ac_clean_files_save=$ac_clean_files 3261ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3262# Try to create an executable without -o first, disregard a.out. 3263# It will help us diagnose broken compilers, and finding out an intuition 3264# of exeext. 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3266$as_echo_n "checking whether the C compiler works... " >&6; } 3267ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3268 3269# The possible output files: 3270ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3271 3272ac_rmfiles= 3273for ac_file in $ac_files 3274do 3275 case $ac_file in 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3278 esac 3279done 3280rm -f $ac_rmfiles 3281 3282if { { ac_try="$ac_link_default" 3283case "(($ac_try" in 3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285 *) ac_try_echo=$ac_try;; 3286esac 3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3288$as_echo "$ac_try_echo"; } >&5 3289 (eval "$ac_link_default") 2>&5 3290 ac_status=$? 3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3292 test $ac_status = 0; }; then : 3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3294# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3295# in a Makefile. We should not override ac_cv_exeext if it was cached, 3296# so that the user can short-circuit this test for compilers unknown to 3297# Autoconf. 3298for ac_file in $ac_files '' 3299do 3300 test -f "$ac_file" || continue 3301 case $ac_file in 3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3303 ;; 3304 [ab].out ) 3305 # We found the default executable, but exeext='' is most 3306 # certainly right. 3307 break;; 3308 *.* ) 3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3310 then :; else 3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3312 fi 3313 # We set ac_cv_exeext here because the later test for it is not 3314 # safe: cross compilers may not add the suffix if given an `-o' 3315 # argument, so we may need to know it at that point already. 3316 # Even if this section looks crufty: it has the advantage of 3317 # actually working. 3318 break;; 3319 * ) 3320 break;; 3321 esac 3322done 3323test "$ac_cv_exeext" = no && ac_cv_exeext= 3324 3325else 3326 ac_file='' 3327fi 3328if test -z "$ac_file"; then : 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331$as_echo "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3336as_fn_error 77 "C compiler cannot create executables 3337See \`config.log' for more details" "$LINENO" 5; } 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3340$as_echo "yes" >&6; } 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3343$as_echo_n "checking for C compiler default output file name... " >&6; } 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3345$as_echo "$ac_file" >&6; } 3346ac_exeext=$ac_cv_exeext 3347 3348rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3349ac_clean_files=$ac_clean_files_save 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3351$as_echo_n "checking for suffix of executables... " >&6; } 3352if { { ac_try="$ac_link" 3353case "(($ac_try" in 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355 *) ac_try_echo=$ac_try;; 3356esac 3357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3358$as_echo "$ac_try_echo"; } >&5 3359 (eval "$ac_link") 2>&5 3360 ac_status=$? 3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3362 test $ac_status = 0; }; then : 3363 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3364# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3365# work properly (i.e., refer to `conftest.exe'), while it won't with 3366# `rm'. 3367for ac_file in conftest.exe conftest conftest.*; do 3368 test -f "$ac_file" || continue 3369 case $ac_file in 3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3372 break;; 3373 * ) break;; 3374 esac 3375done 3376else 3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3379as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3380See \`config.log' for more details" "$LINENO" 5; } 3381fi 3382rm -f conftest conftest$ac_cv_exeext 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3384$as_echo "$ac_cv_exeext" >&6; } 3385 3386rm -f conftest.$ac_ext 3387EXEEXT=$ac_cv_exeext 3388ac_exeext=$EXEEXT 3389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391#include <stdio.h> 3392int 3393main () 3394{ 3395FILE *f = fopen ("conftest.out", "w"); 3396 return ferror (f) || fclose (f) != 0; 3397 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402ac_clean_files="$ac_clean_files conftest.out" 3403# Check that the compiler produces executables we can run. If not, either 3404# the compiler is broken, or we cross compile. 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3406$as_echo_n "checking whether we are cross compiling... " >&6; } 3407if test "$cross_compiling" != yes; then 3408 { { ac_try="$ac_link" 3409case "(($ac_try" in 3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3411 *) ac_try_echo=$ac_try;; 3412esac 3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3414$as_echo "$ac_try_echo"; } >&5 3415 (eval "$ac_link") 2>&5 3416 ac_status=$? 3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3418 test $ac_status = 0; } 3419 if { ac_try='./conftest$ac_cv_exeext' 3420 { { case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3425$as_echo "$ac_try_echo"; } >&5 3426 (eval "$ac_try") 2>&5 3427 ac_status=$? 3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3429 test $ac_status = 0; }; }; then 3430 cross_compiling=no 3431 else 3432 if test "$cross_compiling" = maybe; then 3433 cross_compiling=yes 3434 else 3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437as_fn_error $? "cannot run C compiled programs. 3438If you meant to cross compile, use \`--host'. 3439See \`config.log' for more details" "$LINENO" 5; } 3440 fi 3441 fi 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3444$as_echo "$cross_compiling" >&6; } 3445 3446rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3447ac_clean_files=$ac_clean_files_save 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3449$as_echo_n "checking for suffix of object files... " >&6; } 3450if test "${ac_cv_objext+set}" = set; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455 3456int 3457main () 3458{ 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464rm -f conftest.o conftest.obj 3465if { { ac_try="$ac_compile" 3466case "(($ac_try" in 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468 *) ac_try_echo=$ac_try;; 3469esac 3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3471$as_echo "$ac_try_echo"; } >&5 3472 (eval "$ac_compile") 2>&5 3473 ac_status=$? 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; }; then : 3476 for ac_file in conftest.o conftest.obj conftest.*; do 3477 test -f "$ac_file" || continue; 3478 case $ac_file in 3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3481 break;; 3482 esac 3483done 3484else 3485 $as_echo "$as_me: failed program was:" >&5 3486sed 's/^/| /' conftest.$ac_ext >&5 3487 3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3490as_fn_error $? "cannot compute suffix of object files: cannot compile 3491See \`config.log' for more details" "$LINENO" 5; } 3492fi 3493rm -f conftest.$ac_cv_objext conftest.$ac_ext 3494fi 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3496$as_echo "$ac_cv_objext" >&6; } 3497OBJEXT=$ac_cv_objext 3498ac_objext=$OBJEXT 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3500$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3501if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505/* end confdefs.h. */ 3506 3507int 3508main () 3509{ 3510#ifndef __GNUC__ 3511 choke me 3512#endif 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_compiler_gnu=yes 3520else 3521 ac_compiler_gnu=no 3522fi 3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524ac_cv_c_compiler_gnu=$ac_compiler_gnu 3525 3526fi 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3528$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3529if test $ac_compiler_gnu = yes; then 3530 GCC=yes 3531else 3532 GCC= 3533fi 3534ac_test_CFLAGS=${CFLAGS+set} 3535ac_save_CFLAGS=$CFLAGS 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3537$as_echo_n "checking whether $CC accepts -g... " >&6; } 3538if test "${ac_cv_prog_cc_g+set}" = set; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 ac_save_c_werror_flag=$ac_c_werror_flag 3542 ac_c_werror_flag=yes 3543 ac_cv_prog_cc_g=no 3544 CFLAGS="-g" 3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main () 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556if ac_fn_c_try_compile "$LINENO"; then : 3557 ac_cv_prog_cc_g=yes 3558else 3559 CFLAGS="" 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562 3563int 3564main () 3565{ 3566 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571if ac_fn_c_try_compile "$LINENO"; then : 3572 3573else 3574 ac_c_werror_flag=$ac_save_c_werror_flag 3575 CFLAGS="-g" 3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577/* end confdefs.h. */ 3578 3579int 3580main () 3581{ 3582 3583 ; 3584 return 0; 3585} 3586_ACEOF 3587if ac_fn_c_try_compile "$LINENO"; then : 3588 ac_cv_prog_cc_g=yes 3589fi 3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3591fi 3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3593fi 3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3595 ac_c_werror_flag=$ac_save_c_werror_flag 3596fi 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3598$as_echo "$ac_cv_prog_cc_g" >&6; } 3599if test "$ac_test_CFLAGS" = set; then 3600 CFLAGS=$ac_save_CFLAGS 3601elif test $ac_cv_prog_cc_g = yes; then 3602 if test "$GCC" = yes; then 3603 CFLAGS="-g -O2" 3604 else 3605 CFLAGS="-g" 3606 fi 3607else 3608 if test "$GCC" = yes; then 3609 CFLAGS="-O2" 3610 else 3611 CFLAGS= 3612 fi 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3615$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3616if test "${ac_cv_prog_cc_c89+set}" = set; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 ac_cv_prog_cc_c89=no 3620ac_save_CC=$CC 3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622/* end confdefs.h. */ 3623#include <stdarg.h> 3624#include <stdio.h> 3625#include <sys/types.h> 3626#include <sys/stat.h> 3627/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3628struct buf { int x; }; 3629FILE * (*rcsopen) (struct buf *, struct stat *, int); 3630static char *e (p, i) 3631 char **p; 3632 int i; 3633{ 3634 return p[i]; 3635} 3636static char *f (char * (*g) (char **, int), char **p, ...) 3637{ 3638 char *s; 3639 va_list v; 3640 va_start (v,p); 3641 s = g (p, va_arg (v,int)); 3642 va_end (v); 3643 return s; 3644} 3645 3646/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3647 function prototypes and stuff, but not '\xHH' hex character constants. 3648 These don't provoke an error unfortunately, instead are silently treated 3649 as 'x'. The following induces an error, until -std is added to get 3650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3651 array size at least. It's necessary to write '\x00'==0 to get something 3652 that's true only with -std. */ 3653int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3654 3655/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3656 inside strings and character constants. */ 3657#define FOO(x) 'x' 3658int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3659 3660int test (int i, double x); 3661struct s1 {int (*f) (int a);}; 3662struct s2 {int (*f) (double a);}; 3663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3664int argc; 3665char **argv; 3666int 3667main () 3668{ 3669return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3670 ; 3671 return 0; 3672} 3673_ACEOF 3674for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3676do 3677 CC="$ac_save_CC $ac_arg" 3678 if ac_fn_c_try_compile "$LINENO"; then : 3679 ac_cv_prog_cc_c89=$ac_arg 3680fi 3681rm -f core conftest.err conftest.$ac_objext 3682 test "x$ac_cv_prog_cc_c89" != "xno" && break 3683done 3684rm -f conftest.$ac_ext 3685CC=$ac_save_CC 3686 3687fi 3688# AC_CACHE_VAL 3689case "x$ac_cv_prog_cc_c89" in 3690 x) 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3692$as_echo "none needed" >&6; } ;; 3693 xno) 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3695$as_echo "unsupported" >&6; } ;; 3696 *) 3697 CC="$CC $ac_cv_prog_cc_c89" 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3699$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3700esac 3701if test "x$ac_cv_prog_cc_c89" != xno; then : 3702 3703fi 3704 3705ac_ext=c 3706ac_cpp='$CPP $CPPFLAGS' 3707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3709ac_compiler_gnu=$ac_cv_c_compiler_gnu 3710 3711depcc="$CC" am_compiler_list= 3712 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3714$as_echo_n "checking dependency style of $depcc... " >&6; } 3715if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3719 # We make a subdir and do the tests there. Otherwise we can end up 3720 # making bogus files that we don't know about and never remove. For 3721 # instance it was reported that on HP-UX the gcc test will end up 3722 # making a dummy file named `D' -- because `-MD' means `put the output 3723 # in D'. 3724 mkdir conftest.dir 3725 # Copy depcomp to subdir because otherwise we won't find it if we're 3726 # using a relative directory. 3727 cp "$am_depcomp" conftest.dir 3728 cd conftest.dir 3729 # We will build objects and dependencies in a subdirectory because 3730 # it helps to detect inapplicable dependency modes. For instance 3731 # both Tru64's cc and ICC support -MD to output dependencies as a 3732 # side effect of compilation, but ICC will put the dependencies in 3733 # the current directory while Tru64 will put them in the object 3734 # directory. 3735 mkdir sub 3736 3737 am_cv_CC_dependencies_compiler_type=none 3738 if test "$am_compiler_list" = ""; then 3739 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3740 fi 3741 am__universal=false 3742 case " $depcc " in #( 3743 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3744 esac 3745 3746 for depmode in $am_compiler_list; do 3747 # Setup a source with many dependencies, because some compilers 3748 # like to wrap large dependency lists on column 80 (with \), and 3749 # we should not choose a depcomp mode which is confused by this. 3750 # 3751 # We need to recreate these files for each test, as the compiler may 3752 # overwrite some of them when testing with obscure command lines. 3753 # This happens at least with the AIX C compiler. 3754 : > sub/conftest.c 3755 for i in 1 2 3 4 5 6; do 3756 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3757 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3758 # Solaris 8's {/usr,}/bin/sh. 3759 touch sub/conftst$i.h 3760 done 3761 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3762 3763 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3764 # mode. It turns out that the SunPro C++ compiler does not properly 3765 # handle `-M -o', and we need to detect this. Also, some Intel 3766 # versions had trouble with output in subdirs 3767 am__obj=sub/conftest.${OBJEXT-o} 3768 am__minus_obj="-o $am__obj" 3769 case $depmode in 3770 gcc) 3771 # This depmode causes a compiler race in universal mode. 3772 test "$am__universal" = false || continue 3773 ;; 3774 nosideeffect) 3775 # after this tag, mechanisms are not by side-effect, so they'll 3776 # only be used when explicitly requested 3777 if test "x$enable_dependency_tracking" = xyes; then 3778 continue 3779 else 3780 break 3781 fi 3782 ;; 3783 msvisualcpp | msvcmsys) 3784 # This compiler won't grok `-c -o', but also, the minuso test has 3785 # not run yet. These depmodes are late enough in the game, and 3786 # so weak that their functioning should not be impacted. 3787 am__obj=conftest.${OBJEXT-o} 3788 am__minus_obj= 3789 ;; 3790 none) break ;; 3791 esac 3792 if depmode=$depmode \ 3793 source=sub/conftest.c object=$am__obj \ 3794 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3795 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3796 >/dev/null 2>conftest.err && 3797 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3799 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3801 # icc doesn't choke on unknown options, it will just issue warnings 3802 # or remarks (even with -Werror). So we grep stderr for any message 3803 # that says an option was ignored or not supported. 3804 # When given -MP, icc 7.0 and 7.1 complain thusly: 3805 # icc: Command line warning: ignoring option '-M'; no argument required 3806 # The diagnosis changed in icc 8.0: 3807 # icc: Command line remark: option '-MP' not supported 3808 if (grep 'ignoring option' conftest.err || 3809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3810 am_cv_CC_dependencies_compiler_type=$depmode 3811 break 3812 fi 3813 fi 3814 done 3815 3816 cd .. 3817 rm -rf conftest.dir 3818else 3819 am_cv_CC_dependencies_compiler_type=none 3820fi 3821 3822fi 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3824$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3825CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3826 3827 if 3828 test "x$enable_dependency_tracking" != xno \ 3829 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3830 am__fastdepCC_TRUE= 3831 am__fastdepCC_FALSE='#' 3832else 3833 am__fastdepCC_TRUE='#' 3834 am__fastdepCC_FALSE= 3835fi 3836 3837 3838 3839ac_ext=c 3840ac_cpp='$CPP $CPPFLAGS' 3841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3843ac_compiler_gnu=$ac_cv_c_compiler_gnu 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3845$as_echo_n "checking how to run the C preprocessor... " >&6; } 3846# On Suns, sometimes $CPP names a directory. 3847if test -n "$CPP" && test -d "$CPP"; then 3848 CPP= 3849fi 3850if test -z "$CPP"; then 3851 if test "${ac_cv_prog_CPP+set}" = set; then : 3852 $as_echo_n "(cached) " >&6 3853else 3854 # Double quotes because CPP needs to be expanded 3855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3856 do 3857 ac_preproc_ok=false 3858for ac_c_preproc_warn_flag in '' yes 3859do 3860 # Use a header file that comes with gcc, so configuring glibc 3861 # with a fresh cross-compiler works. 3862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3863 # <limits.h> exists even on freestanding compilers. 3864 # On the NeXT, cc -E runs the code through the compiler's parser, 3865 # not just through cpp. "Syntax error" is here to catch this case. 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868#ifdef __STDC__ 3869# include <limits.h> 3870#else 3871# include <assert.h> 3872#endif 3873 Syntax error 3874_ACEOF 3875if ac_fn_c_try_cpp "$LINENO"; then : 3876 3877else 3878 # Broken: fails on valid input. 3879continue 3880fi 3881rm -f conftest.err conftest.$ac_ext 3882 3883 # OK, works on sane cases. Now check whether nonexistent headers 3884 # can be detected and how. 3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3886/* end confdefs.h. */ 3887#include <ac_nonexistent.h> 3888_ACEOF 3889if ac_fn_c_try_cpp "$LINENO"; then : 3890 # Broken: success on invalid input. 3891continue 3892else 3893 # Passes both tests. 3894ac_preproc_ok=: 3895break 3896fi 3897rm -f conftest.err conftest.$ac_ext 3898 3899done 3900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3901rm -f conftest.err conftest.$ac_ext 3902if $ac_preproc_ok; then : 3903 break 3904fi 3905 3906 done 3907 ac_cv_prog_CPP=$CPP 3908 3909fi 3910 CPP=$ac_cv_prog_CPP 3911else 3912 ac_cv_prog_CPP=$CPP 3913fi 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3915$as_echo "$CPP" >&6; } 3916ac_preproc_ok=false 3917for ac_c_preproc_warn_flag in '' yes 3918do 3919 # Use a header file that comes with gcc, so configuring glibc 3920 # with a fresh cross-compiler works. 3921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3922 # <limits.h> exists even on freestanding compilers. 3923 # On the NeXT, cc -E runs the code through the compiler's parser, 3924 # not just through cpp. "Syntax error" is here to catch this case. 3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3926/* end confdefs.h. */ 3927#ifdef __STDC__ 3928# include <limits.h> 3929#else 3930# include <assert.h> 3931#endif 3932 Syntax error 3933_ACEOF 3934if ac_fn_c_try_cpp "$LINENO"; then : 3935 3936else 3937 # Broken: fails on valid input. 3938continue 3939fi 3940rm -f conftest.err conftest.$ac_ext 3941 3942 # OK, works on sane cases. Now check whether nonexistent headers 3943 # can be detected and how. 3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3945/* end confdefs.h. */ 3946#include <ac_nonexistent.h> 3947_ACEOF 3948if ac_fn_c_try_cpp "$LINENO"; then : 3949 # Broken: success on invalid input. 3950continue 3951else 3952 # Passes both tests. 3953ac_preproc_ok=: 3954break 3955fi 3956rm -f conftest.err conftest.$ac_ext 3957 3958done 3959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3960rm -f conftest.err conftest.$ac_ext 3961if $ac_preproc_ok; then : 3962 3963else 3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3966as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3967See \`config.log' for more details" "$LINENO" 5; } 3968fi 3969 3970ac_ext=c 3971ac_cpp='$CPP $CPPFLAGS' 3972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3974ac_compiler_gnu=$ac_cv_c_compiler_gnu 3975 3976 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3978$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3979if test "${ac_cv_path_GREP+set}" = set; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 if test -z "$GREP"; then 3983 ac_path_GREP_found=false 3984 # Loop through the user's path and test for each of PROGNAME-LIST 3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3987do 3988 IFS=$as_save_IFS 3989 test -z "$as_dir" && as_dir=. 3990 for ac_prog in grep ggrep; do 3991 for ac_exec_ext in '' $ac_executable_extensions; do 3992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3994# Check for GNU ac_path_GREP and select it if it is found. 3995 # Check for GNU $ac_path_GREP 3996case `"$ac_path_GREP" --version 2>&1` in 3997*GNU*) 3998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3999*) 4000 ac_count=0 4001 $as_echo_n 0123456789 >"conftest.in" 4002 while : 4003 do 4004 cat "conftest.in" "conftest.in" >"conftest.tmp" 4005 mv "conftest.tmp" "conftest.in" 4006 cp "conftest.in" "conftest.nl" 4007 $as_echo 'GREP' >> "conftest.nl" 4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4010 as_fn_arith $ac_count + 1 && ac_count=$as_val 4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4012 # Best one so far, save it but keep looking for a better one 4013 ac_cv_path_GREP="$ac_path_GREP" 4014 ac_path_GREP_max=$ac_count 4015 fi 4016 # 10*(2^10) chars as input seems more than enough 4017 test $ac_count -gt 10 && break 4018 done 4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4020esac 4021 4022 $ac_path_GREP_found && break 3 4023 done 4024 done 4025 done 4026IFS=$as_save_IFS 4027 if test -z "$ac_cv_path_GREP"; then 4028 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4029 fi 4030else 4031 ac_cv_path_GREP=$GREP 4032fi 4033 4034fi 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4036$as_echo "$ac_cv_path_GREP" >&6; } 4037 GREP="$ac_cv_path_GREP" 4038 4039 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4041$as_echo_n "checking for egrep... " >&6; } 4042if test "${ac_cv_path_EGREP+set}" = set; then : 4043 $as_echo_n "(cached) " >&6 4044else 4045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4046 then ac_cv_path_EGREP="$GREP -E" 4047 else 4048 if test -z "$EGREP"; then 4049 ac_path_EGREP_found=false 4050 # Loop through the user's path and test for each of PROGNAME-LIST 4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4052for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4053do 4054 IFS=$as_save_IFS 4055 test -z "$as_dir" && as_dir=. 4056 for ac_prog in egrep; do 4057 for ac_exec_ext in '' $ac_executable_extensions; do 4058 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4060# Check for GNU ac_path_EGREP and select it if it is found. 4061 # Check for GNU $ac_path_EGREP 4062case `"$ac_path_EGREP" --version 2>&1` in 4063*GNU*) 4064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4065*) 4066 ac_count=0 4067 $as_echo_n 0123456789 >"conftest.in" 4068 while : 4069 do 4070 cat "conftest.in" "conftest.in" >"conftest.tmp" 4071 mv "conftest.tmp" "conftest.in" 4072 cp "conftest.in" "conftest.nl" 4073 $as_echo 'EGREP' >> "conftest.nl" 4074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4076 as_fn_arith $ac_count + 1 && ac_count=$as_val 4077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4078 # Best one so far, save it but keep looking for a better one 4079 ac_cv_path_EGREP="$ac_path_EGREP" 4080 ac_path_EGREP_max=$ac_count 4081 fi 4082 # 10*(2^10) chars as input seems more than enough 4083 test $ac_count -gt 10 && break 4084 done 4085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4086esac 4087 4088 $ac_path_EGREP_found && break 3 4089 done 4090 done 4091 done 4092IFS=$as_save_IFS 4093 if test -z "$ac_cv_path_EGREP"; then 4094 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4095 fi 4096else 4097 ac_cv_path_EGREP=$EGREP 4098fi 4099 4100 fi 4101fi 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4103$as_echo "$ac_cv_path_EGREP" >&6; } 4104 EGREP="$ac_cv_path_EGREP" 4105 4106 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4108$as_echo_n "checking for ANSI C header files... " >&6; } 4109if test "${ac_cv_header_stdc+set}" = set; then : 4110 $as_echo_n "(cached) " >&6 4111else 4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113/* end confdefs.h. */ 4114#include <stdlib.h> 4115#include <stdarg.h> 4116#include <string.h> 4117#include <float.h> 4118 4119int 4120main () 4121{ 4122 4123 ; 4124 return 0; 4125} 4126_ACEOF 4127if ac_fn_c_try_compile "$LINENO"; then : 4128 ac_cv_header_stdc=yes 4129else 4130 ac_cv_header_stdc=no 4131fi 4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4133 4134if test $ac_cv_header_stdc = yes; then 4135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4137/* end confdefs.h. */ 4138#include <string.h> 4139 4140_ACEOF 4141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4142 $EGREP "memchr" >/dev/null 2>&1; then : 4143 4144else 4145 ac_cv_header_stdc=no 4146fi 4147rm -f conftest* 4148 4149fi 4150 4151if test $ac_cv_header_stdc = yes; then 4152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155#include <stdlib.h> 4156 4157_ACEOF 4158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4159 $EGREP "free" >/dev/null 2>&1; then : 4160 4161else 4162 ac_cv_header_stdc=no 4163fi 4164rm -f conftest* 4165 4166fi 4167 4168if test $ac_cv_header_stdc = yes; then 4169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4170 if test "$cross_compiling" = yes; then : 4171 : 4172else 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175#include <ctype.h> 4176#include <stdlib.h> 4177#if ((' ' & 0x0FF) == 0x020) 4178# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4179# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4180#else 4181# define ISLOWER(c) \ 4182 (('a' <= (c) && (c) <= 'i') \ 4183 || ('j' <= (c) && (c) <= 'r') \ 4184 || ('s' <= (c) && (c) <= 'z')) 4185# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4186#endif 4187 4188#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4189int 4190main () 4191{ 4192 int i; 4193 for (i = 0; i < 256; i++) 4194 if (XOR (islower (i), ISLOWER (i)) 4195 || toupper (i) != TOUPPER (i)) 4196 return 2; 4197 return 0; 4198} 4199_ACEOF 4200if ac_fn_c_try_run "$LINENO"; then : 4201 4202else 4203 ac_cv_header_stdc=no 4204fi 4205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4206 conftest.$ac_objext conftest.beam conftest.$ac_ext 4207fi 4208 4209fi 4210fi 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4212$as_echo "$ac_cv_header_stdc" >&6; } 4213if test $ac_cv_header_stdc = yes; then 4214 4215$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4216 4217fi 4218 4219# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4220for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4221 inttypes.h stdint.h unistd.h 4222do : 4223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4224ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4225" 4226if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4227 cat >>confdefs.h <<_ACEOF 4228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4229_ACEOF 4230 4231fi 4232 4233done 4234 4235 4236 4237 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4238if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4239 MINIX=yes 4240else 4241 MINIX= 4242fi 4243 4244 4245 if test "$MINIX" = yes; then 4246 4247$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4248 4249 4250$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4251 4252 4253$as_echo "#define _MINIX 1" >>confdefs.h 4254 4255 fi 4256 4257 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4259$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4260if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265 4266# define __EXTENSIONS__ 1 4267 $ac_includes_default 4268int 4269main () 4270{ 4271 4272 ; 4273 return 0; 4274} 4275_ACEOF 4276if ac_fn_c_try_compile "$LINENO"; then : 4277 ac_cv_safe_to_define___extensions__=yes 4278else 4279 ac_cv_safe_to_define___extensions__=no 4280fi 4281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4282fi 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4284$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4285 test $ac_cv_safe_to_define___extensions__ = yes && 4286 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4287 4288 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4289 4290 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4291 4292 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4293 4294 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4295 4296 4297ac_ext=c 4298ac_cpp='$CPP $CPPFLAGS' 4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4301ac_compiler_gnu=$ac_cv_c_compiler_gnu 4302if test -n "$ac_tool_prefix"; then 4303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4304set dummy ${ac_tool_prefix}gcc; ac_word=$2 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4306$as_echo_n "checking for $ac_word... " >&6; } 4307if test "${ac_cv_prog_CC+set}" = set; then : 4308 $as_echo_n "(cached) " >&6 4309else 4310 if test -n "$CC"; then 4311 ac_cv_prog_CC="$CC" # Let the user override the test. 4312else 4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4314for as_dir in $PATH 4315do 4316 IFS=$as_save_IFS 4317 test -z "$as_dir" && as_dir=. 4318 for ac_exec_ext in '' $ac_executable_extensions; do 4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4320 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4322 break 2 4323 fi 4324done 4325 done 4326IFS=$as_save_IFS 4327 4328fi 4329fi 4330CC=$ac_cv_prog_CC 4331if test -n "$CC"; then 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4333$as_echo "$CC" >&6; } 4334else 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4336$as_echo "no" >&6; } 4337fi 4338 4339 4340fi 4341if test -z "$ac_cv_prog_CC"; then 4342 ac_ct_CC=$CC 4343 # Extract the first word of "gcc", so it can be a program name with args. 4344set dummy gcc; ac_word=$2 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4346$as_echo_n "checking for $ac_word... " >&6; } 4347if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 if test -n "$ac_ct_CC"; then 4351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4352else 4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4354for as_dir in $PATH 4355do 4356 IFS=$as_save_IFS 4357 test -z "$as_dir" && as_dir=. 4358 for ac_exec_ext in '' $ac_executable_extensions; do 4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4360 ac_cv_prog_ac_ct_CC="gcc" 4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4362 break 2 4363 fi 4364done 4365 done 4366IFS=$as_save_IFS 4367 4368fi 4369fi 4370ac_ct_CC=$ac_cv_prog_ac_ct_CC 4371if test -n "$ac_ct_CC"; then 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4373$as_echo "$ac_ct_CC" >&6; } 4374else 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4376$as_echo "no" >&6; } 4377fi 4378 4379 if test "x$ac_ct_CC" = x; then 4380 CC="" 4381 else 4382 case $cross_compiling:$ac_tool_warned in 4383yes:) 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4386ac_tool_warned=yes ;; 4387esac 4388 CC=$ac_ct_CC 4389 fi 4390else 4391 CC="$ac_cv_prog_CC" 4392fi 4393 4394if test -z "$CC"; then 4395 if test -n "$ac_tool_prefix"; then 4396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4397set dummy ${ac_tool_prefix}cc; ac_word=$2 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4399$as_echo_n "checking for $ac_word... " >&6; } 4400if test "${ac_cv_prog_CC+set}" = set; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 if test -n "$CC"; then 4404 ac_cv_prog_CC="$CC" # Let the user override the test. 4405else 4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407for as_dir in $PATH 4408do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4413 ac_cv_prog_CC="${ac_tool_prefix}cc" 4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4415 break 2 4416 fi 4417done 4418 done 4419IFS=$as_save_IFS 4420 4421fi 4422fi 4423CC=$ac_cv_prog_CC 4424if test -n "$CC"; then 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4426$as_echo "$CC" >&6; } 4427else 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4429$as_echo "no" >&6; } 4430fi 4431 4432 4433 fi 4434fi 4435if test -z "$CC"; then 4436 # Extract the first word of "cc", so it can be a program name with args. 4437set dummy cc; ac_word=$2 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4439$as_echo_n "checking for $ac_word... " >&6; } 4440if test "${ac_cv_prog_CC+set}" = set; then : 4441 $as_echo_n "(cached) " >&6 4442else 4443 if test -n "$CC"; then 4444 ac_cv_prog_CC="$CC" # Let the user override the test. 4445else 4446 ac_prog_rejected=no 4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4448for as_dir in $PATH 4449do 4450 IFS=$as_save_IFS 4451 test -z "$as_dir" && as_dir=. 4452 for ac_exec_ext in '' $ac_executable_extensions; do 4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4455 ac_prog_rejected=yes 4456 continue 4457 fi 4458 ac_cv_prog_CC="cc" 4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4460 break 2 4461 fi 4462done 4463 done 4464IFS=$as_save_IFS 4465 4466if test $ac_prog_rejected = yes; then 4467 # We found a bogon in the path, so make sure we never use it. 4468 set dummy $ac_cv_prog_CC 4469 shift 4470 if test $# != 0; then 4471 # We chose a different compiler from the bogus one. 4472 # However, it has the same basename, so the bogon will be chosen 4473 # first if we set CC to just the basename; use the full file name. 4474 shift 4475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4476 fi 4477fi 4478fi 4479fi 4480CC=$ac_cv_prog_CC 4481if test -n "$CC"; then 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4483$as_echo "$CC" >&6; } 4484else 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4486$as_echo "no" >&6; } 4487fi 4488 4489 4490fi 4491if test -z "$CC"; then 4492 if test -n "$ac_tool_prefix"; then 4493 for ac_prog in cl.exe 4494 do 4495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4496set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4498$as_echo_n "checking for $ac_word... " >&6; } 4499if test "${ac_cv_prog_CC+set}" = set; then : 4500 $as_echo_n "(cached) " >&6 4501else 4502 if test -n "$CC"; then 4503 ac_cv_prog_CC="$CC" # Let the user override the test. 4504else 4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4506for as_dir in $PATH 4507do 4508 IFS=$as_save_IFS 4509 test -z "$as_dir" && as_dir=. 4510 for ac_exec_ext in '' $ac_executable_extensions; do 4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4514 break 2 4515 fi 4516done 4517 done 4518IFS=$as_save_IFS 4519 4520fi 4521fi 4522CC=$ac_cv_prog_CC 4523if test -n "$CC"; then 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4525$as_echo "$CC" >&6; } 4526else 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4528$as_echo "no" >&6; } 4529fi 4530 4531 4532 test -n "$CC" && break 4533 done 4534fi 4535if test -z "$CC"; then 4536 ac_ct_CC=$CC 4537 for ac_prog in cl.exe 4538do 4539 # Extract the first word of "$ac_prog", so it can be a program name with args. 4540set dummy $ac_prog; ac_word=$2 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4542$as_echo_n "checking for $ac_word... " >&6; } 4543if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if test -n "$ac_ct_CC"; then 4547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4548else 4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4550for as_dir in $PATH 4551do 4552 IFS=$as_save_IFS 4553 test -z "$as_dir" && as_dir=. 4554 for ac_exec_ext in '' $ac_executable_extensions; do 4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4556 ac_cv_prog_ac_ct_CC="$ac_prog" 4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4558 break 2 4559 fi 4560done 4561 done 4562IFS=$as_save_IFS 4563 4564fi 4565fi 4566ac_ct_CC=$ac_cv_prog_ac_ct_CC 4567if test -n "$ac_ct_CC"; then 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4569$as_echo "$ac_ct_CC" >&6; } 4570else 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4572$as_echo "no" >&6; } 4573fi 4574 4575 4576 test -n "$ac_ct_CC" && break 4577done 4578 4579 if test "x$ac_ct_CC" = x; then 4580 CC="" 4581 else 4582 case $cross_compiling:$ac_tool_warned in 4583yes:) 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4586ac_tool_warned=yes ;; 4587esac 4588 CC=$ac_ct_CC 4589 fi 4590fi 4591 4592fi 4593 4594 4595test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4597as_fn_error $? "no acceptable C compiler found in \$PATH 4598See \`config.log' for more details" "$LINENO" 5; } 4599 4600# Provide some information about the compiler. 4601$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4602set X $ac_compile 4603ac_compiler=$2 4604for ac_option in --version -v -V -qversion; do 4605 { { ac_try="$ac_compiler $ac_option >&5" 4606case "(($ac_try" in 4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4608 *) ac_try_echo=$ac_try;; 4609esac 4610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4611$as_echo "$ac_try_echo"; } >&5 4612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4613 ac_status=$? 4614 if test -s conftest.err; then 4615 sed '10a\ 4616... rest of stderr output deleted ... 4617 10q' conftest.err >conftest.er1 4618 cat conftest.er1 >&5 4619 fi 4620 rm -f conftest.er1 conftest.err 4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4622 test $ac_status = 0; } 4623done 4624 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4626$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4627if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4628 $as_echo_n "(cached) " >&6 4629else 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631/* end confdefs.h. */ 4632 4633int 4634main () 4635{ 4636#ifndef __GNUC__ 4637 choke me 4638#endif 4639 4640 ; 4641 return 0; 4642} 4643_ACEOF 4644if ac_fn_c_try_compile "$LINENO"; then : 4645 ac_compiler_gnu=yes 4646else 4647 ac_compiler_gnu=no 4648fi 4649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4650ac_cv_c_compiler_gnu=$ac_compiler_gnu 4651 4652fi 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4654$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4655if test $ac_compiler_gnu = yes; then 4656 GCC=yes 4657else 4658 GCC= 4659fi 4660ac_test_CFLAGS=${CFLAGS+set} 4661ac_save_CFLAGS=$CFLAGS 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4663$as_echo_n "checking whether $CC accepts -g... " >&6; } 4664if test "${ac_cv_prog_cc_g+set}" = set; then : 4665 $as_echo_n "(cached) " >&6 4666else 4667 ac_save_c_werror_flag=$ac_c_werror_flag 4668 ac_c_werror_flag=yes 4669 ac_cv_prog_cc_g=no 4670 CFLAGS="-g" 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672/* end confdefs.h. */ 4673 4674int 4675main () 4676{ 4677 4678 ; 4679 return 0; 4680} 4681_ACEOF 4682if ac_fn_c_try_compile "$LINENO"; then : 4683 ac_cv_prog_cc_g=yes 4684else 4685 CFLAGS="" 4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4687/* end confdefs.h. */ 4688 4689int 4690main () 4691{ 4692 4693 ; 4694 return 0; 4695} 4696_ACEOF 4697if ac_fn_c_try_compile "$LINENO"; then : 4698 4699else 4700 ac_c_werror_flag=$ac_save_c_werror_flag 4701 CFLAGS="-g" 4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4703/* end confdefs.h. */ 4704 4705int 4706main () 4707{ 4708 4709 ; 4710 return 0; 4711} 4712_ACEOF 4713if ac_fn_c_try_compile "$LINENO"; then : 4714 ac_cv_prog_cc_g=yes 4715fi 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4717fi 4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4719fi 4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4721 ac_c_werror_flag=$ac_save_c_werror_flag 4722fi 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4724$as_echo "$ac_cv_prog_cc_g" >&6; } 4725if test "$ac_test_CFLAGS" = set; then 4726 CFLAGS=$ac_save_CFLAGS 4727elif test $ac_cv_prog_cc_g = yes; then 4728 if test "$GCC" = yes; then 4729 CFLAGS="-g -O2" 4730 else 4731 CFLAGS="-g" 4732 fi 4733else 4734 if test "$GCC" = yes; then 4735 CFLAGS="-O2" 4736 else 4737 CFLAGS= 4738 fi 4739fi 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4741$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4742if test "${ac_cv_prog_cc_c89+set}" = set; then : 4743 $as_echo_n "(cached) " >&6 4744else 4745 ac_cv_prog_cc_c89=no 4746ac_save_CC=$CC 4747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749#include <stdarg.h> 4750#include <stdio.h> 4751#include <sys/types.h> 4752#include <sys/stat.h> 4753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4754struct buf { int x; }; 4755FILE * (*rcsopen) (struct buf *, struct stat *, int); 4756static char *e (p, i) 4757 char **p; 4758 int i; 4759{ 4760 return p[i]; 4761} 4762static char *f (char * (*g) (char **, int), char **p, ...) 4763{ 4764 char *s; 4765 va_list v; 4766 va_start (v,p); 4767 s = g (p, va_arg (v,int)); 4768 va_end (v); 4769 return s; 4770} 4771 4772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4773 function prototypes and stuff, but not '\xHH' hex character constants. 4774 These don't provoke an error unfortunately, instead are silently treated 4775 as 'x'. The following induces an error, until -std is added to get 4776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4777 array size at least. It's necessary to write '\x00'==0 to get something 4778 that's true only with -std. */ 4779int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4780 4781/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4782 inside strings and character constants. */ 4783#define FOO(x) 'x' 4784int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4785 4786int test (int i, double x); 4787struct s1 {int (*f) (int a);}; 4788struct s2 {int (*f) (double a);}; 4789int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4790int argc; 4791char **argv; 4792int 4793main () 4794{ 4795return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4796 ; 4797 return 0; 4798} 4799_ACEOF 4800for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4802do 4803 CC="$ac_save_CC $ac_arg" 4804 if ac_fn_c_try_compile "$LINENO"; then : 4805 ac_cv_prog_cc_c89=$ac_arg 4806fi 4807rm -f core conftest.err conftest.$ac_objext 4808 test "x$ac_cv_prog_cc_c89" != "xno" && break 4809done 4810rm -f conftest.$ac_ext 4811CC=$ac_save_CC 4812 4813fi 4814# AC_CACHE_VAL 4815case "x$ac_cv_prog_cc_c89" in 4816 x) 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4818$as_echo "none needed" >&6; } ;; 4819 xno) 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4821$as_echo "unsupported" >&6; } ;; 4822 *) 4823 CC="$CC $ac_cv_prog_cc_c89" 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4825$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4826esac 4827if test "x$ac_cv_prog_cc_c89" != xno; then : 4828 4829fi 4830 4831ac_ext=c 4832ac_cpp='$CPP $CPPFLAGS' 4833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4835ac_compiler_gnu=$ac_cv_c_compiler_gnu 4836 4837depcc="$CC" am_compiler_list= 4838 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4840$as_echo_n "checking dependency style of $depcc... " >&6; } 4841if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4842 $as_echo_n "(cached) " >&6 4843else 4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4845 # We make a subdir and do the tests there. Otherwise we can end up 4846 # making bogus files that we don't know about and never remove. For 4847 # instance it was reported that on HP-UX the gcc test will end up 4848 # making a dummy file named `D' -- because `-MD' means `put the output 4849 # in D'. 4850 mkdir conftest.dir 4851 # Copy depcomp to subdir because otherwise we won't find it if we're 4852 # using a relative directory. 4853 cp "$am_depcomp" conftest.dir 4854 cd conftest.dir 4855 # We will build objects and dependencies in a subdirectory because 4856 # it helps to detect inapplicable dependency modes. For instance 4857 # both Tru64's cc and ICC support -MD to output dependencies as a 4858 # side effect of compilation, but ICC will put the dependencies in 4859 # the current directory while Tru64 will put them in the object 4860 # directory. 4861 mkdir sub 4862 4863 am_cv_CC_dependencies_compiler_type=none 4864 if test "$am_compiler_list" = ""; then 4865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4866 fi 4867 am__universal=false 4868 case " $depcc " in #( 4869 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4870 esac 4871 4872 for depmode in $am_compiler_list; do 4873 # Setup a source with many dependencies, because some compilers 4874 # like to wrap large dependency lists on column 80 (with \), and 4875 # we should not choose a depcomp mode which is confused by this. 4876 # 4877 # We need to recreate these files for each test, as the compiler may 4878 # overwrite some of them when testing with obscure command lines. 4879 # This happens at least with the AIX C compiler. 4880 : > sub/conftest.c 4881 for i in 1 2 3 4 5 6; do 4882 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4883 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4884 # Solaris 8's {/usr,}/bin/sh. 4885 touch sub/conftst$i.h 4886 done 4887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4888 4889 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4890 # mode. It turns out that the SunPro C++ compiler does not properly 4891 # handle `-M -o', and we need to detect this. Also, some Intel 4892 # versions had trouble with output in subdirs 4893 am__obj=sub/conftest.${OBJEXT-o} 4894 am__minus_obj="-o $am__obj" 4895 case $depmode in 4896 gcc) 4897 # This depmode causes a compiler race in universal mode. 4898 test "$am__universal" = false || continue 4899 ;; 4900 nosideeffect) 4901 # after this tag, mechanisms are not by side-effect, so they'll 4902 # only be used when explicitly requested 4903 if test "x$enable_dependency_tracking" = xyes; then 4904 continue 4905 else 4906 break 4907 fi 4908 ;; 4909 msvisualcpp | msvcmsys) 4910 # This compiler won't grok `-c -o', but also, the minuso test has 4911 # not run yet. These depmodes are late enough in the game, and 4912 # so weak that their functioning should not be impacted. 4913 am__obj=conftest.${OBJEXT-o} 4914 am__minus_obj= 4915 ;; 4916 none) break ;; 4917 esac 4918 if depmode=$depmode \ 4919 source=sub/conftest.c object=$am__obj \ 4920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4922 >/dev/null 2>conftest.err && 4923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4927 # icc doesn't choke on unknown options, it will just issue warnings 4928 # or remarks (even with -Werror). So we grep stderr for any message 4929 # that says an option was ignored or not supported. 4930 # When given -MP, icc 7.0 and 7.1 complain thusly: 4931 # icc: Command line warning: ignoring option '-M'; no argument required 4932 # The diagnosis changed in icc 8.0: 4933 # icc: Command line remark: option '-MP' not supported 4934 if (grep 'ignoring option' conftest.err || 4935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4936 am_cv_CC_dependencies_compiler_type=$depmode 4937 break 4938 fi 4939 fi 4940 done 4941 4942 cd .. 4943 rm -rf conftest.dir 4944else 4945 am_cv_CC_dependencies_compiler_type=none 4946fi 4947 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4950$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4952 4953 if 4954 test "x$enable_dependency_tracking" != xno \ 4955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4956 am__fastdepCC_TRUE= 4957 am__fastdepCC_FALSE='#' 4958else 4959 am__fastdepCC_TRUE='#' 4960 am__fastdepCC_FALSE= 4961fi 4962 4963 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4965$as_echo_n "checking for library containing strerror... " >&6; } 4966if test "${ac_cv_search_strerror+set}" = set; then : 4967 $as_echo_n "(cached) " >&6 4968else 4969 ac_func_search_save_LIBS=$LIBS 4970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972 4973/* Override any GCC internal prototype to avoid an error. 4974 Use char because int might match the return type of a GCC 4975 builtin and then its argument prototype would still apply. */ 4976#ifdef __cplusplus 4977extern "C" 4978#endif 4979char strerror (); 4980int 4981main () 4982{ 4983return strerror (); 4984 ; 4985 return 0; 4986} 4987_ACEOF 4988for ac_lib in '' cposix; do 4989 if test -z "$ac_lib"; then 4990 ac_res="none required" 4991 else 4992 ac_res=-l$ac_lib 4993 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4994 fi 4995 if ac_fn_c_try_link "$LINENO"; then : 4996 ac_cv_search_strerror=$ac_res 4997fi 4998rm -f core conftest.err conftest.$ac_objext \ 4999 conftest$ac_exeext 5000 if test "${ac_cv_search_strerror+set}" = set; then : 5001 break 5002fi 5003done 5004if test "${ac_cv_search_strerror+set}" = set; then : 5005 5006else 5007 ac_cv_search_strerror=no 5008fi 5009rm conftest.$ac_ext 5010LIBS=$ac_func_search_save_LIBS 5011fi 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5013$as_echo "$ac_cv_search_strerror" >&6; } 5014ac_res=$ac_cv_search_strerror 5015if test "$ac_res" != no; then : 5016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5017 5018fi 5019 5020for ac_prog in gawk mawk nawk awk 5021do 5022 # Extract the first word of "$ac_prog", so it can be a program name with args. 5023set dummy $ac_prog; ac_word=$2 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5025$as_echo_n "checking for $ac_word... " >&6; } 5026if test "${ac_cv_prog_AWK+set}" = set; then : 5027 $as_echo_n "(cached) " >&6 5028else 5029 if test -n "$AWK"; then 5030 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5031else 5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5033for as_dir in $PATH 5034do 5035 IFS=$as_save_IFS 5036 test -z "$as_dir" && as_dir=. 5037 for ac_exec_ext in '' $ac_executable_extensions; do 5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5039 ac_cv_prog_AWK="$ac_prog" 5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5041 break 2 5042 fi 5043done 5044 done 5045IFS=$as_save_IFS 5046 5047fi 5048fi 5049AWK=$ac_cv_prog_AWK 5050if test -n "$AWK"; then 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5052$as_echo "$AWK" >&6; } 5053else 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5055$as_echo "no" >&6; } 5056fi 5057 5058 5059 test -n "$AWK" && break 5060done 5061 5062ac_ext=cpp 5063ac_cpp='$CXXCPP $CPPFLAGS' 5064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5067if test -z "$CXX"; then 5068 if test -n "$CCC"; then 5069 CXX=$CCC 5070 else 5071 if test -n "$ac_tool_prefix"; then 5072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5073 do 5074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5075set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5077$as_echo_n "checking for $ac_word... " >&6; } 5078if test "${ac_cv_prog_CXX+set}" = set; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 if test -n "$CXX"; then 5082 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5083else 5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5085for as_dir in $PATH 5086do 5087 IFS=$as_save_IFS 5088 test -z "$as_dir" && as_dir=. 5089 for ac_exec_ext in '' $ac_executable_extensions; do 5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5091 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5093 break 2 5094 fi 5095done 5096 done 5097IFS=$as_save_IFS 5098 5099fi 5100fi 5101CXX=$ac_cv_prog_CXX 5102if test -n "$CXX"; then 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5104$as_echo "$CXX" >&6; } 5105else 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5107$as_echo "no" >&6; } 5108fi 5109 5110 5111 test -n "$CXX" && break 5112 done 5113fi 5114if test -z "$CXX"; then 5115 ac_ct_CXX=$CXX 5116 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5117do 5118 # Extract the first word of "$ac_prog", so it can be a program name with args. 5119set dummy $ac_prog; ac_word=$2 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5121$as_echo_n "checking for $ac_word... " >&6; } 5122if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 if test -n "$ac_ct_CXX"; then 5126 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5127else 5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5129for as_dir in $PATH 5130do 5131 IFS=$as_save_IFS 5132 test -z "$as_dir" && as_dir=. 5133 for ac_exec_ext in '' $ac_executable_extensions; do 5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5135 ac_cv_prog_ac_ct_CXX="$ac_prog" 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5137 break 2 5138 fi 5139done 5140 done 5141IFS=$as_save_IFS 5142 5143fi 5144fi 5145ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5146if test -n "$ac_ct_CXX"; then 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5148$as_echo "$ac_ct_CXX" >&6; } 5149else 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5151$as_echo "no" >&6; } 5152fi 5153 5154 5155 test -n "$ac_ct_CXX" && break 5156done 5157 5158 if test "x$ac_ct_CXX" = x; then 5159 CXX="g++" 5160 else 5161 case $cross_compiling:$ac_tool_warned in 5162yes:) 5163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5165ac_tool_warned=yes ;; 5166esac 5167 CXX=$ac_ct_CXX 5168 fi 5169fi 5170 5171 fi 5172fi 5173# Provide some information about the compiler. 5174$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5175set X $ac_compile 5176ac_compiler=$2 5177for ac_option in --version -v -V -qversion; do 5178 { { ac_try="$ac_compiler $ac_option >&5" 5179case "(($ac_try" in 5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5181 *) ac_try_echo=$ac_try;; 5182esac 5183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5184$as_echo "$ac_try_echo"; } >&5 5185 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5186 ac_status=$? 5187 if test -s conftest.err; then 5188 sed '10a\ 5189... rest of stderr output deleted ... 5190 10q' conftest.err >conftest.er1 5191 cat conftest.er1 >&5 5192 fi 5193 rm -f conftest.er1 conftest.err 5194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5195 test $ac_status = 0; } 5196done 5197 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5199$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5200if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204/* end confdefs.h. */ 5205 5206int 5207main () 5208{ 5209#ifndef __GNUC__ 5210 choke me 5211#endif 5212 5213 ; 5214 return 0; 5215} 5216_ACEOF 5217if ac_fn_cxx_try_compile "$LINENO"; then : 5218 ac_compiler_gnu=yes 5219else 5220 ac_compiler_gnu=no 5221fi 5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5223ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5224 5225fi 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5227$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5228if test $ac_compiler_gnu = yes; then 5229 GXX=yes 5230else 5231 GXX= 5232fi 5233ac_test_CXXFLAGS=${CXXFLAGS+set} 5234ac_save_CXXFLAGS=$CXXFLAGS 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5236$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5237if test "${ac_cv_prog_cxx_g+set}" = set; then : 5238 $as_echo_n "(cached) " >&6 5239else 5240 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5241 ac_cxx_werror_flag=yes 5242 ac_cv_prog_cxx_g=no 5243 CXXFLAGS="-g" 5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5245/* end confdefs.h. */ 5246 5247int 5248main () 5249{ 5250 5251 ; 5252 return 0; 5253} 5254_ACEOF 5255if ac_fn_cxx_try_compile "$LINENO"; then : 5256 ac_cv_prog_cxx_g=yes 5257else 5258 CXXFLAGS="" 5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261 5262int 5263main () 5264{ 5265 5266 ; 5267 return 0; 5268} 5269_ACEOF 5270if ac_fn_cxx_try_compile "$LINENO"; then : 5271 5272else 5273 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5274 CXXFLAGS="-g" 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277 5278int 5279main () 5280{ 5281 5282 ; 5283 return 0; 5284} 5285_ACEOF 5286if ac_fn_cxx_try_compile "$LINENO"; then : 5287 ac_cv_prog_cxx_g=yes 5288fi 5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5290fi 5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5292fi 5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5295fi 5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5297$as_echo "$ac_cv_prog_cxx_g" >&6; } 5298if test "$ac_test_CXXFLAGS" = set; then 5299 CXXFLAGS=$ac_save_CXXFLAGS 5300elif test $ac_cv_prog_cxx_g = yes; then 5301 if test "$GXX" = yes; then 5302 CXXFLAGS="-g -O2" 5303 else 5304 CXXFLAGS="-g" 5305 fi 5306else 5307 if test "$GXX" = yes; then 5308 CXXFLAGS="-O2" 5309 else 5310 CXXFLAGS= 5311 fi 5312fi 5313ac_ext=c 5314ac_cpp='$CPP $CPPFLAGS' 5315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5317ac_compiler_gnu=$ac_cv_c_compiler_gnu 5318 5319depcc="$CXX" am_compiler_list= 5320 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5322$as_echo_n "checking dependency style of $depcc... " >&6; } 5323if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5327 # We make a subdir and do the tests there. Otherwise we can end up 5328 # making bogus files that we don't know about and never remove. For 5329 # instance it was reported that on HP-UX the gcc test will end up 5330 # making a dummy file named `D' -- because `-MD' means `put the output 5331 # in D'. 5332 mkdir conftest.dir 5333 # Copy depcomp to subdir because otherwise we won't find it if we're 5334 # using a relative directory. 5335 cp "$am_depcomp" conftest.dir 5336 cd conftest.dir 5337 # We will build objects and dependencies in a subdirectory because 5338 # it helps to detect inapplicable dependency modes. For instance 5339 # both Tru64's cc and ICC support -MD to output dependencies as a 5340 # side effect of compilation, but ICC will put the dependencies in 5341 # the current directory while Tru64 will put them in the object 5342 # directory. 5343 mkdir sub 5344 5345 am_cv_CXX_dependencies_compiler_type=none 5346 if test "$am_compiler_list" = ""; then 5347 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5348 fi 5349 am__universal=false 5350 case " $depcc " in #( 5351 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5352 esac 5353 5354 for depmode in $am_compiler_list; do 5355 # Setup a source with many dependencies, because some compilers 5356 # like to wrap large dependency lists on column 80 (with \), and 5357 # we should not choose a depcomp mode which is confused by this. 5358 # 5359 # We need to recreate these files for each test, as the compiler may 5360 # overwrite some of them when testing with obscure command lines. 5361 # This happens at least with the AIX C compiler. 5362 : > sub/conftest.c 5363 for i in 1 2 3 4 5 6; do 5364 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5365 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5366 # Solaris 8's {/usr,}/bin/sh. 5367 touch sub/conftst$i.h 5368 done 5369 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5370 5371 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5372 # mode. It turns out that the SunPro C++ compiler does not properly 5373 # handle `-M -o', and we need to detect this. Also, some Intel 5374 # versions had trouble with output in subdirs 5375 am__obj=sub/conftest.${OBJEXT-o} 5376 am__minus_obj="-o $am__obj" 5377 case $depmode in 5378 gcc) 5379 # This depmode causes a compiler race in universal mode. 5380 test "$am__universal" = false || continue 5381 ;; 5382 nosideeffect) 5383 # after this tag, mechanisms are not by side-effect, so they'll 5384 # only be used when explicitly requested 5385 if test "x$enable_dependency_tracking" = xyes; then 5386 continue 5387 else 5388 break 5389 fi 5390 ;; 5391 msvisualcpp | msvcmsys) 5392 # This compiler won't grok `-c -o', but also, the minuso test has 5393 # not run yet. These depmodes are late enough in the game, and 5394 # so weak that their functioning should not be impacted. 5395 am__obj=conftest.${OBJEXT-o} 5396 am__minus_obj= 5397 ;; 5398 none) break ;; 5399 esac 5400 if depmode=$depmode \ 5401 source=sub/conftest.c object=$am__obj \ 5402 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5403 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5404 >/dev/null 2>conftest.err && 5405 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5406 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5407 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5408 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5409 # icc doesn't choke on unknown options, it will just issue warnings 5410 # or remarks (even with -Werror). So we grep stderr for any message 5411 # that says an option was ignored or not supported. 5412 # When given -MP, icc 7.0 and 7.1 complain thusly: 5413 # icc: Command line warning: ignoring option '-M'; no argument required 5414 # The diagnosis changed in icc 8.0: 5415 # icc: Command line remark: option '-MP' not supported 5416 if (grep 'ignoring option' conftest.err || 5417 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5418 am_cv_CXX_dependencies_compiler_type=$depmode 5419 break 5420 fi 5421 fi 5422 done 5423 5424 cd .. 5425 rm -rf conftest.dir 5426else 5427 am_cv_CXX_dependencies_compiler_type=none 5428fi 5429 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5432$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5433CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5434 5435 if 5436 test "x$enable_dependency_tracking" != xno \ 5437 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5438 am__fastdepCXX_TRUE= 5439 am__fastdepCXX_FALSE='#' 5440else 5441 am__fastdepCXX_TRUE='#' 5442 am__fastdepCXX_FALSE= 5443fi 5444 5445 5446case `pwd` in 5447 *\ * | *\ *) 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5449$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5450esac 5451 5452 5453 5454macro_version='2.2.10' 5455macro_revision='1.3175' 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469ltmain="$ac_aux_dir/ltmain.sh" 5470 5471# Make sure we can run config.sub. 5472$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5473 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5474 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5476$as_echo_n "checking build system type... " >&6; } 5477if test "${ac_cv_build+set}" = set; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 ac_build_alias=$build_alias 5481test "x$ac_build_alias" = x && 5482 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5483test "x$ac_build_alias" = x && 5484 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5485ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5486 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5487 5488fi 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5490$as_echo "$ac_cv_build" >&6; } 5491case $ac_cv_build in 5492*-*-*) ;; 5493*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5494esac 5495build=$ac_cv_build 5496ac_save_IFS=$IFS; IFS='-' 5497set x $ac_cv_build 5498shift 5499build_cpu=$1 5500build_vendor=$2 5501shift; shift 5502# Remember, the first character of IFS is used to create $*, 5503# except with old shells: 5504build_os=$* 5505IFS=$ac_save_IFS 5506case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5507 5508 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5510$as_echo_n "checking host system type... " >&6; } 5511if test "${ac_cv_host+set}" = set; then : 5512 $as_echo_n "(cached) " >&6 5513else 5514 if test "x$host_alias" = x; then 5515 ac_cv_host=$ac_cv_build 5516else 5517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5519fi 5520 5521fi 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5523$as_echo "$ac_cv_host" >&6; } 5524case $ac_cv_host in 5525*-*-*) ;; 5526*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5527esac 5528host=$ac_cv_host 5529ac_save_IFS=$IFS; IFS='-' 5530set x $ac_cv_host 5531shift 5532host_cpu=$1 5533host_vendor=$2 5534shift; shift 5535# Remember, the first character of IFS is used to create $*, 5536# except with old shells: 5537host_os=$* 5538IFS=$ac_save_IFS 5539case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5540 5541 5542# Backslashify metacharacters that are still active within 5543# double-quoted strings. 5544sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5545 5546# Same as above, but do not quote variable references. 5547double_quote_subst='s/\(["`\\]\)/\\\1/g' 5548 5549# Sed substitution to delay expansion of an escaped shell variable in a 5550# double_quote_subst'ed string. 5551delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5552 5553# Sed substitution to delay expansion of an escaped single quote. 5554delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5555 5556# Sed substitution to avoid accidental globbing in evaled expressions 5557no_glob_subst='s/\*/\\\*/g' 5558 5559ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5560ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5561ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5562 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5564$as_echo_n "checking how to print strings... " >&6; } 5565# Test print first, because it will be a builtin if present. 5566if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5567 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5568 ECHO='print -r --' 5569elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5570 ECHO='printf %s\n' 5571else 5572 # Use this function as a fallback that always works. 5573 func_fallback_echo () 5574 { 5575 eval 'cat <<_LTECHO_EOF 5576$1 5577_LTECHO_EOF' 5578 } 5579 ECHO='func_fallback_echo' 5580fi 5581 5582# func_echo_all arg... 5583# Invoke $ECHO with all args, space-separated. 5584func_echo_all () 5585{ 5586 $ECHO "" 5587} 5588 5589case "$ECHO" in 5590 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5591$as_echo "printf" >&6; } ;; 5592 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5593$as_echo "print -r" >&6; } ;; 5594 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5595$as_echo "cat" >&6; } ;; 5596esac 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5612$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5613if test "${ac_cv_path_SED+set}" = set; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5617 for ac_i in 1 2 3 4 5 6 7; do 5618 ac_script="$ac_script$as_nl$ac_script" 5619 done 5620 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5621 { ac_script=; unset ac_script;} 5622 if test -z "$SED"; then 5623 ac_path_SED_found=false 5624 # Loop through the user's path and test for each of PROGNAME-LIST 5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5626for as_dir in $PATH 5627do 5628 IFS=$as_save_IFS 5629 test -z "$as_dir" && as_dir=. 5630 for ac_prog in sed gsed; do 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5633 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5634# Check for GNU ac_path_SED and select it if it is found. 5635 # Check for GNU $ac_path_SED 5636case `"$ac_path_SED" --version 2>&1` in 5637*GNU*) 5638 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5639*) 5640 ac_count=0 5641 $as_echo_n 0123456789 >"conftest.in" 5642 while : 5643 do 5644 cat "conftest.in" "conftest.in" >"conftest.tmp" 5645 mv "conftest.tmp" "conftest.in" 5646 cp "conftest.in" "conftest.nl" 5647 $as_echo '' >> "conftest.nl" 5648 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5650 as_fn_arith $ac_count + 1 && ac_count=$as_val 5651 if test $ac_count -gt ${ac_path_SED_max-0}; then 5652 # Best one so far, save it but keep looking for a better one 5653 ac_cv_path_SED="$ac_path_SED" 5654 ac_path_SED_max=$ac_count 5655 fi 5656 # 10*(2^10) chars as input seems more than enough 5657 test $ac_count -gt 10 && break 5658 done 5659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5660esac 5661 5662 $ac_path_SED_found && break 3 5663 done 5664 done 5665 done 5666IFS=$as_save_IFS 5667 if test -z "$ac_cv_path_SED"; then 5668 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5669 fi 5670else 5671 ac_cv_path_SED=$SED 5672fi 5673 5674fi 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5676$as_echo "$ac_cv_path_SED" >&6; } 5677 SED="$ac_cv_path_SED" 5678 rm -f conftest.sed 5679 5680test -z "$SED" && SED=sed 5681Xsed="$SED -e 1s/^X//" 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5694$as_echo_n "checking for fgrep... " >&6; } 5695if test "${ac_cv_path_FGREP+set}" = set; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5699 then ac_cv_path_FGREP="$GREP -F" 5700 else 5701 if test -z "$FGREP"; then 5702 ac_path_FGREP_found=false 5703 # Loop through the user's path and test for each of PROGNAME-LIST 5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5705for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5706do 5707 IFS=$as_save_IFS 5708 test -z "$as_dir" && as_dir=. 5709 for ac_prog in fgrep; do 5710 for ac_exec_ext in '' $ac_executable_extensions; do 5711 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5712 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5713# Check for GNU ac_path_FGREP and select it if it is found. 5714 # Check for GNU $ac_path_FGREP 5715case `"$ac_path_FGREP" --version 2>&1` in 5716*GNU*) 5717 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5718*) 5719 ac_count=0 5720 $as_echo_n 0123456789 >"conftest.in" 5721 while : 5722 do 5723 cat "conftest.in" "conftest.in" >"conftest.tmp" 5724 mv "conftest.tmp" "conftest.in" 5725 cp "conftest.in" "conftest.nl" 5726 $as_echo 'FGREP' >> "conftest.nl" 5727 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5729 as_fn_arith $ac_count + 1 && ac_count=$as_val 5730 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5731 # Best one so far, save it but keep looking for a better one 5732 ac_cv_path_FGREP="$ac_path_FGREP" 5733 ac_path_FGREP_max=$ac_count 5734 fi 5735 # 10*(2^10) chars as input seems more than enough 5736 test $ac_count -gt 10 && break 5737 done 5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5739esac 5740 5741 $ac_path_FGREP_found && break 3 5742 done 5743 done 5744 done 5745IFS=$as_save_IFS 5746 if test -z "$ac_cv_path_FGREP"; then 5747 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5748 fi 5749else 5750 ac_cv_path_FGREP=$FGREP 5751fi 5752 5753 fi 5754fi 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5756$as_echo "$ac_cv_path_FGREP" >&6; } 5757 FGREP="$ac_cv_path_FGREP" 5758 5759 5760test -z "$GREP" && GREP=grep 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780# Check whether --with-gnu-ld was given. 5781if test "${with_gnu_ld+set}" = set; then : 5782 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5783else 5784 with_gnu_ld=no 5785fi 5786 5787ac_prog=ld 5788if test "$GCC" = yes; then 5789 # Check if gcc -print-prog-name=ld gives a path. 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5791$as_echo_n "checking for ld used by $CC... " >&6; } 5792 case $host in 5793 *-*-mingw*) 5794 # gcc leaves a trailing carriage return which upsets mingw 5795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5796 *) 5797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5798 esac 5799 case $ac_prog in 5800 # Accept absolute paths. 5801 [\\/]* | ?:[\\/]*) 5802 re_direlt='/[^/][^/]*/\.\./' 5803 # Canonicalize the pathname of ld 5804 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5805 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5806 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5807 done 5808 test -z "$LD" && LD="$ac_prog" 5809 ;; 5810 "") 5811 # If it fails, then pretend we aren't using GCC. 5812 ac_prog=ld 5813 ;; 5814 *) 5815 # If it is relative, then search for the first ld in PATH. 5816 with_gnu_ld=unknown 5817 ;; 5818 esac 5819elif test "$with_gnu_ld" = yes; then 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5821$as_echo_n "checking for GNU ld... " >&6; } 5822else 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5824$as_echo_n "checking for non-GNU ld... " >&6; } 5825fi 5826if test "${lt_cv_path_LD+set}" = set; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 if test -z "$LD"; then 5830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5831 for ac_dir in $PATH; do 5832 IFS="$lt_save_ifs" 5833 test -z "$ac_dir" && ac_dir=. 5834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5835 lt_cv_path_LD="$ac_dir/$ac_prog" 5836 # Check to see if the program is GNU ld. I'd rather use --version, 5837 # but apparently some variants of GNU ld only accept -v. 5838 # Break only if it was the GNU/non-GNU ld that we prefer. 5839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5840 *GNU* | *'with BFD'*) 5841 test "$with_gnu_ld" != no && break 5842 ;; 5843 *) 5844 test "$with_gnu_ld" != yes && break 5845 ;; 5846 esac 5847 fi 5848 done 5849 IFS="$lt_save_ifs" 5850else 5851 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5852fi 5853fi 5854 5855LD="$lt_cv_path_LD" 5856if test -n "$LD"; then 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5858$as_echo "$LD" >&6; } 5859else 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5861$as_echo "no" >&6; } 5862fi 5863test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5865$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5866if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5870case `$LD -v 2>&1 </dev/null` in 5871*GNU* | *'with BFD'*) 5872 lt_cv_prog_gnu_ld=yes 5873 ;; 5874*) 5875 lt_cv_prog_gnu_ld=no 5876 ;; 5877esac 5878fi 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5880$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5881with_gnu_ld=$lt_cv_prog_gnu_ld 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5892$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5893if test "${lt_cv_path_NM+set}" = set; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$NM"; then 5897 # Let the user override the test. 5898 lt_cv_path_NM="$NM" 5899else 5900 lt_nm_to_check="${ac_tool_prefix}nm" 5901 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5902 lt_nm_to_check="$lt_nm_to_check nm" 5903 fi 5904 for lt_tmp_nm in $lt_nm_to_check; do 5905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5906 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5907 IFS="$lt_save_ifs" 5908 test -z "$ac_dir" && ac_dir=. 5909 tmp_nm="$ac_dir/$lt_tmp_nm" 5910 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5911 # Check to see if the nm accepts a BSD-compat flag. 5912 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5913 # nm: unknown option "B" ignored 5914 # Tru64's nm complains that /dev/null is an invalid object file 5915 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5916 */dev/null* | *'Invalid file or object type'*) 5917 lt_cv_path_NM="$tmp_nm -B" 5918 break 5919 ;; 5920 *) 5921 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5922 */dev/null*) 5923 lt_cv_path_NM="$tmp_nm -p" 5924 break 5925 ;; 5926 *) 5927 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5928 continue # so that we can try to find one that supports BSD flags 5929 ;; 5930 esac 5931 ;; 5932 esac 5933 fi 5934 done 5935 IFS="$lt_save_ifs" 5936 done 5937 : ${lt_cv_path_NM=no} 5938fi 5939fi 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5941$as_echo "$lt_cv_path_NM" >&6; } 5942if test "$lt_cv_path_NM" != "no"; then 5943 NM="$lt_cv_path_NM" 5944else 5945 # Didn't find any BSD compatible name lister, look for dumpbin. 5946 if test -n "$DUMPBIN"; then : 5947 # Let the user override the test. 5948 else 5949 if test -n "$ac_tool_prefix"; then 5950 for ac_prog in dumpbin "link -dump" 5951 do 5952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5953set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5955$as_echo_n "checking for $ac_word... " >&6; } 5956if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 if test -n "$DUMPBIN"; then 5960 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5961else 5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5963for as_dir in $PATH 5964do 5965 IFS=$as_save_IFS 5966 test -z "$as_dir" && as_dir=. 5967 for ac_exec_ext in '' $ac_executable_extensions; do 5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5969 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5971 break 2 5972 fi 5973done 5974 done 5975IFS=$as_save_IFS 5976 5977fi 5978fi 5979DUMPBIN=$ac_cv_prog_DUMPBIN 5980if test -n "$DUMPBIN"; then 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5982$as_echo "$DUMPBIN" >&6; } 5983else 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5985$as_echo "no" >&6; } 5986fi 5987 5988 5989 test -n "$DUMPBIN" && break 5990 done 5991fi 5992if test -z "$DUMPBIN"; then 5993 ac_ct_DUMPBIN=$DUMPBIN 5994 for ac_prog in dumpbin "link -dump" 5995do 5996 # Extract the first word of "$ac_prog", so it can be a program name with args. 5997set dummy $ac_prog; ac_word=$2 5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5999$as_echo_n "checking for $ac_word... " >&6; } 6000if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 if test -n "$ac_ct_DUMPBIN"; then 6004 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6005else 6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6007for as_dir in $PATH 6008do 6009 IFS=$as_save_IFS 6010 test -z "$as_dir" && as_dir=. 6011 for ac_exec_ext in '' $ac_executable_extensions; do 6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6013 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6015 break 2 6016 fi 6017done 6018 done 6019IFS=$as_save_IFS 6020 6021fi 6022fi 6023ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6024if test -n "$ac_ct_DUMPBIN"; then 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6026$as_echo "$ac_ct_DUMPBIN" >&6; } 6027else 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6029$as_echo "no" >&6; } 6030fi 6031 6032 6033 test -n "$ac_ct_DUMPBIN" && break 6034done 6035 6036 if test "x$ac_ct_DUMPBIN" = x; then 6037 DUMPBIN=":" 6038 else 6039 case $cross_compiling:$ac_tool_warned in 6040yes:) 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6043ac_tool_warned=yes ;; 6044esac 6045 DUMPBIN=$ac_ct_DUMPBIN 6046 fi 6047fi 6048 6049 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6050 *COFF*) 6051 DUMPBIN="$DUMPBIN -symbols" 6052 ;; 6053 *) 6054 DUMPBIN=: 6055 ;; 6056 esac 6057 fi 6058 6059 if test "$DUMPBIN" != ":"; then 6060 NM="$DUMPBIN" 6061 fi 6062fi 6063test -z "$NM" && NM=nm 6064 6065 6066 6067 6068 6069 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6071$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6072if test "${lt_cv_nm_interface+set}" = set; then : 6073 $as_echo_n "(cached) " >&6 6074else 6075 lt_cv_nm_interface="BSD nm" 6076 echo "int some_variable = 0;" > conftest.$ac_ext 6077 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6078 (eval "$ac_compile" 2>conftest.err) 6079 cat conftest.err >&5 6080 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6081 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6082 cat conftest.err >&5 6083 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6084 cat conftest.out >&5 6085 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6086 lt_cv_nm_interface="MS dumpbin" 6087 fi 6088 rm -f conftest* 6089fi 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6091$as_echo "$lt_cv_nm_interface" >&6; } 6092 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6094$as_echo_n "checking whether ln -s works... " >&6; } 6095LN_S=$as_ln_s 6096if test "$LN_S" = "ln -s"; then 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6098$as_echo "yes" >&6; } 6099else 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6101$as_echo "no, using $LN_S" >&6; } 6102fi 6103 6104# find the maximum length of command line arguments 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6106$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6107if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 i=0 6111 teststring="ABCD" 6112 6113 case $build_os in 6114 msdosdjgpp*) 6115 # On DJGPP, this test can blow up pretty badly due to problems in libc 6116 # (any single argument exceeding 2000 bytes causes a buffer overrun 6117 # during glob expansion). Even if it were fixed, the result of this 6118 # check would be larger than it should be. 6119 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6120 ;; 6121 6122 gnu*) 6123 # Under GNU Hurd, this test is not required because there is 6124 # no limit to the length of command line arguments. 6125 # Libtool will interpret -1 as no limit whatsoever 6126 lt_cv_sys_max_cmd_len=-1; 6127 ;; 6128 6129 cygwin* | mingw* | cegcc*) 6130 # On Win9x/ME, this test blows up -- it succeeds, but takes 6131 # about 5 minutes as the teststring grows exponentially. 6132 # Worse, since 9x/ME are not pre-emptively multitasking, 6133 # you end up with a "frozen" computer, even though with patience 6134 # the test eventually succeeds (with a max line length of 256k). 6135 # Instead, let's just punt: use the minimum linelength reported by 6136 # all of the supported platforms: 8192 (on NT/2K/XP). 6137 lt_cv_sys_max_cmd_len=8192; 6138 ;; 6139 6140 mint*) 6141 # On MiNT this can take a long time and run out of memory. 6142 lt_cv_sys_max_cmd_len=8192; 6143 ;; 6144 6145 amigaos*) 6146 # On AmigaOS with pdksh, this test takes hours, literally. 6147 # So we just punt and use a minimum line length of 8192. 6148 lt_cv_sys_max_cmd_len=8192; 6149 ;; 6150 6151 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6152 # This has been around since 386BSD, at least. Likely further. 6153 if test -x /sbin/sysctl; then 6154 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6155 elif test -x /usr/sbin/sysctl; then 6156 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6157 else 6158 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6159 fi 6160 # And add a safety zone 6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6163 ;; 6164 6165 interix*) 6166 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6167 lt_cv_sys_max_cmd_len=196608 6168 ;; 6169 6170 osf*) 6171 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6172 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6173 # nice to cause kernel panics so lets avoid the loop below. 6174 # First set a reasonable default. 6175 lt_cv_sys_max_cmd_len=16384 6176 # 6177 if test -x /sbin/sysconfig; then 6178 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6179 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6180 esac 6181 fi 6182 ;; 6183 sco3.2v5*) 6184 lt_cv_sys_max_cmd_len=102400 6185 ;; 6186 sysv5* | sco5v6* | sysv4.2uw2*) 6187 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6188 if test -n "$kargmax"; then 6189 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6190 else 6191 lt_cv_sys_max_cmd_len=32768 6192 fi 6193 ;; 6194 *) 6195 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6196 if test -n "$lt_cv_sys_max_cmd_len"; then 6197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6199 else 6200 # Make teststring a little bigger before we do anything with it. 6201 # a 1K string should be a reasonable start. 6202 for i in 1 2 3 4 5 6 7 8 ; do 6203 teststring=$teststring$teststring 6204 done 6205 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6206 # If test is not a shell built-in, we'll probably end up computing a 6207 # maximum length that is only half of the actual maximum length, but 6208 # we can't tell. 6209 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6210 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6211 test $i != 17 # 1/2 MB should be enough 6212 do 6213 i=`expr $i + 1` 6214 teststring=$teststring$teststring 6215 done 6216 # Only check the string length outside the loop. 6217 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6218 teststring= 6219 # Add a significant safety factor because C++ compilers can tack on 6220 # massive amounts of additional arguments before passing them to the 6221 # linker. It appears as though 1/2 is a usable value. 6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6223 fi 6224 ;; 6225 esac 6226 6227fi 6228 6229if test -n $lt_cv_sys_max_cmd_len ; then 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6231$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6232else 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6234$as_echo "none" >&6; } 6235fi 6236max_cmd_len=$lt_cv_sys_max_cmd_len 6237 6238 6239 6240 6241 6242 6243: ${CP="cp -f"} 6244: ${MV="mv -f"} 6245: ${RM="rm -f"} 6246 6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6248$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6249# Try some XSI features 6250xsi_shell=no 6251( _lt_dummy="a/b/c" 6252 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6253 = c,a/b,, \ 6254 && eval 'test $(( 1 + 1 )) -eq 2 \ 6255 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6256 && xsi_shell=yes 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6258$as_echo "$xsi_shell" >&6; } 6259 6260 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6262$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6263lt_shell_append=no 6264( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6265 >/dev/null 2>&1 \ 6266 && lt_shell_append=yes 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6268$as_echo "$lt_shell_append" >&6; } 6269 6270 6271if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6272 lt_unset=unset 6273else 6274 lt_unset=false 6275fi 6276 6277 6278 6279 6280 6281# test EBCDIC or ASCII 6282case `echo X|tr X '\101'` in 6283 A) # ASCII based system 6284 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6285 lt_SP2NL='tr \040 \012' 6286 lt_NL2SP='tr \015\012 \040\040' 6287 ;; 6288 *) # EBCDIC based system 6289 lt_SP2NL='tr \100 \n' 6290 lt_NL2SP='tr \r\n \100\100' 6291 ;; 6292esac 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6303$as_echo_n "checking for $LD option to reload object files... " >&6; } 6304if test "${lt_cv_ld_reload_flag+set}" = set; then : 6305 $as_echo_n "(cached) " >&6 6306else 6307 lt_cv_ld_reload_flag='-r' 6308fi 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6310$as_echo "$lt_cv_ld_reload_flag" >&6; } 6311reload_flag=$lt_cv_ld_reload_flag 6312case $reload_flag in 6313"" | " "*) ;; 6314*) reload_flag=" $reload_flag" ;; 6315esac 6316reload_cmds='$LD$reload_flag -o $output$reload_objs' 6317case $host_os in 6318 darwin*) 6319 if test "$GCC" = yes; then 6320 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6321 else 6322 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6323 fi 6324 ;; 6325esac 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335if test -n "$ac_tool_prefix"; then 6336 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6337set dummy ${ac_tool_prefix}objdump; ac_word=$2 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6339$as_echo_n "checking for $ac_word... " >&6; } 6340if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6341 $as_echo_n "(cached) " >&6 6342else 6343 if test -n "$OBJDUMP"; then 6344 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6345else 6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6347for as_dir in $PATH 6348do 6349 IFS=$as_save_IFS 6350 test -z "$as_dir" && as_dir=. 6351 for ac_exec_ext in '' $ac_executable_extensions; do 6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6353 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6355 break 2 6356 fi 6357done 6358 done 6359IFS=$as_save_IFS 6360 6361fi 6362fi 6363OBJDUMP=$ac_cv_prog_OBJDUMP 6364if test -n "$OBJDUMP"; then 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6366$as_echo "$OBJDUMP" >&6; } 6367else 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369$as_echo "no" >&6; } 6370fi 6371 6372 6373fi 6374if test -z "$ac_cv_prog_OBJDUMP"; then 6375 ac_ct_OBJDUMP=$OBJDUMP 6376 # Extract the first word of "objdump", so it can be a program name with args. 6377set dummy objdump; ac_word=$2 6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6379$as_echo_n "checking for $ac_word... " >&6; } 6380if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6381 $as_echo_n "(cached) " >&6 6382else 6383 if test -n "$ac_ct_OBJDUMP"; then 6384 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6385else 6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6387for as_dir in $PATH 6388do 6389 IFS=$as_save_IFS 6390 test -z "$as_dir" && as_dir=. 6391 for ac_exec_ext in '' $ac_executable_extensions; do 6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6393 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6395 break 2 6396 fi 6397done 6398 done 6399IFS=$as_save_IFS 6400 6401fi 6402fi 6403ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6404if test -n "$ac_ct_OBJDUMP"; then 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6406$as_echo "$ac_ct_OBJDUMP" >&6; } 6407else 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6409$as_echo "no" >&6; } 6410fi 6411 6412 if test "x$ac_ct_OBJDUMP" = x; then 6413 OBJDUMP="false" 6414 else 6415 case $cross_compiling:$ac_tool_warned in 6416yes:) 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6419ac_tool_warned=yes ;; 6420esac 6421 OBJDUMP=$ac_ct_OBJDUMP 6422 fi 6423else 6424 OBJDUMP="$ac_cv_prog_OBJDUMP" 6425fi 6426 6427test -z "$OBJDUMP" && OBJDUMP=objdump 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6438$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6439if test "${lt_cv_deplibs_check_method+set}" = set; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 lt_cv_file_magic_cmd='$MAGIC_CMD' 6443lt_cv_file_magic_test_file= 6444lt_cv_deplibs_check_method='unknown' 6445# Need to set the preceding variable on all platforms that support 6446# interlibrary dependencies. 6447# 'none' -- dependencies not supported. 6448# `unknown' -- same as none, but documents that we really don't know. 6449# 'pass_all' -- all dependencies passed with no checks. 6450# 'test_compile' -- check by making test program. 6451# 'file_magic [[regex]]' -- check by looking for files in library path 6452# which responds to the $file_magic_cmd with a given extended regex. 6453# If you have `file' or equivalent on your system and you're not sure 6454# whether `pass_all' will *always* work, you probably want this one. 6455 6456case $host_os in 6457aix[4-9]*) 6458 lt_cv_deplibs_check_method=pass_all 6459 ;; 6460 6461beos*) 6462 lt_cv_deplibs_check_method=pass_all 6463 ;; 6464 6465bsdi[45]*) 6466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6467 lt_cv_file_magic_cmd='/usr/bin/file -L' 6468 lt_cv_file_magic_test_file=/shlib/libc.so 6469 ;; 6470 6471cygwin*) 6472 # func_win32_libid is a shell function defined in ltmain.sh 6473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6474 lt_cv_file_magic_cmd='func_win32_libid' 6475 ;; 6476 6477mingw* | pw32*) 6478 # Base MSYS/MinGW do not provide the 'file' command needed by 6479 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6480 # unless we find 'file', for example because we are cross-compiling. 6481 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6482 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6484 lt_cv_file_magic_cmd='func_win32_libid' 6485 else 6486 # Keep this pattern in sync with the one in func_win32_libid. 6487 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6488 lt_cv_file_magic_cmd='$OBJDUMP -f' 6489 fi 6490 ;; 6491 6492cegcc*) 6493 # use the weaker test based on 'objdump'. See mingw*. 6494 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6495 lt_cv_file_magic_cmd='$OBJDUMP -f' 6496 ;; 6497 6498darwin* | rhapsody*) 6499 lt_cv_deplibs_check_method=pass_all 6500 ;; 6501 6502freebsd* | dragonfly*) 6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6504 case $host_cpu in 6505 i*86 ) 6506 # Not sure whether the presence of OpenBSD here was a mistake. 6507 # Let's accept both of them until this is cleared up. 6508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6509 lt_cv_file_magic_cmd=/usr/bin/file 6510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6511 ;; 6512 esac 6513 else 6514 lt_cv_deplibs_check_method=pass_all 6515 fi 6516 ;; 6517 6518gnu*) 6519 lt_cv_deplibs_check_method=pass_all 6520 ;; 6521 6522haiku*) 6523 lt_cv_deplibs_check_method=pass_all 6524 ;; 6525 6526hpux10.20* | hpux11*) 6527 lt_cv_file_magic_cmd=/usr/bin/file 6528 case $host_cpu in 6529 ia64*) 6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6531 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6532 ;; 6533 hppa*64*) 6534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6535 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6536 ;; 6537 *) 6538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6539 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6540 ;; 6541 esac 6542 ;; 6543 6544interix[3-9]*) 6545 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6547 ;; 6548 6549irix5* | irix6* | nonstopux*) 6550 case $LD in 6551 *-32|*"-32 ") libmagic=32-bit;; 6552 *-n32|*"-n32 ") libmagic=N32;; 6553 *-64|*"-64 ") libmagic=64-bit;; 6554 *) libmagic=never-match;; 6555 esac 6556 lt_cv_deplibs_check_method=pass_all 6557 ;; 6558 6559# This must be Linux ELF. 6560linux* | k*bsd*-gnu | kopensolaris*-gnu) 6561 lt_cv_deplibs_check_method=pass_all 6562 ;; 6563 6564netbsd*) 6565 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6567 else 6568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6569 fi 6570 ;; 6571 6572newos6*) 6573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6574 lt_cv_file_magic_cmd=/usr/bin/file 6575 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6576 ;; 6577 6578*nto* | *qnx*) 6579 lt_cv_deplibs_check_method=pass_all 6580 ;; 6581 6582openbsd*) 6583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6585 else 6586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6587 fi 6588 ;; 6589 6590osf3* | osf4* | osf5*) 6591 lt_cv_deplibs_check_method=pass_all 6592 ;; 6593 6594rdos*) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 6598solaris*) 6599 lt_cv_deplibs_check_method=pass_all 6600 ;; 6601 6602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6603 lt_cv_deplibs_check_method=pass_all 6604 ;; 6605 6606sysv4 | sysv4.3*) 6607 case $host_vendor in 6608 motorola) 6609 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]' 6610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6611 ;; 6612 ncr) 6613 lt_cv_deplibs_check_method=pass_all 6614 ;; 6615 sequent) 6616 lt_cv_file_magic_cmd='/bin/file' 6617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6618 ;; 6619 sni) 6620 lt_cv_file_magic_cmd='/bin/file' 6621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6622 lt_cv_file_magic_test_file=/lib/libc.so 6623 ;; 6624 siemens) 6625 lt_cv_deplibs_check_method=pass_all 6626 ;; 6627 pc) 6628 lt_cv_deplibs_check_method=pass_all 6629 ;; 6630 esac 6631 ;; 6632 6633tpf*) 6634 lt_cv_deplibs_check_method=pass_all 6635 ;; 6636esac 6637 6638fi 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6640$as_echo "$lt_cv_deplibs_check_method" >&6; } 6641file_magic_cmd=$lt_cv_file_magic_cmd 6642deplibs_check_method=$lt_cv_deplibs_check_method 6643test -z "$deplibs_check_method" && deplibs_check_method=unknown 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656if test -n "$ac_tool_prefix"; then 6657 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6658set dummy ${ac_tool_prefix}ar; ac_word=$2 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6660$as_echo_n "checking for $ac_word... " >&6; } 6661if test "${ac_cv_prog_AR+set}" = set; then : 6662 $as_echo_n "(cached) " >&6 6663else 6664 if test -n "$AR"; then 6665 ac_cv_prog_AR="$AR" # Let the user override the test. 6666else 6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6668for as_dir in $PATH 6669do 6670 IFS=$as_save_IFS 6671 test -z "$as_dir" && as_dir=. 6672 for ac_exec_ext in '' $ac_executable_extensions; do 6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6674 ac_cv_prog_AR="${ac_tool_prefix}ar" 6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6676 break 2 6677 fi 6678done 6679 done 6680IFS=$as_save_IFS 6681 6682fi 6683fi 6684AR=$ac_cv_prog_AR 6685if test -n "$AR"; then 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6687$as_echo "$AR" >&6; } 6688else 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6690$as_echo "no" >&6; } 6691fi 6692 6693 6694fi 6695if test -z "$ac_cv_prog_AR"; then 6696 ac_ct_AR=$AR 6697 # Extract the first word of "ar", so it can be a program name with args. 6698set dummy ar; ac_word=$2 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6700$as_echo_n "checking for $ac_word... " >&6; } 6701if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6702 $as_echo_n "(cached) " >&6 6703else 6704 if test -n "$ac_ct_AR"; then 6705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6706else 6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708for as_dir in $PATH 6709do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6714 ac_cv_prog_ac_ct_AR="ar" 6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6716 break 2 6717 fi 6718done 6719 done 6720IFS=$as_save_IFS 6721 6722fi 6723fi 6724ac_ct_AR=$ac_cv_prog_ac_ct_AR 6725if test -n "$ac_ct_AR"; then 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6727$as_echo "$ac_ct_AR" >&6; } 6728else 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6730$as_echo "no" >&6; } 6731fi 6732 6733 if test "x$ac_ct_AR" = x; then 6734 AR="false" 6735 else 6736 case $cross_compiling:$ac_tool_warned in 6737yes:) 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6740ac_tool_warned=yes ;; 6741esac 6742 AR=$ac_ct_AR 6743 fi 6744else 6745 AR="$ac_cv_prog_AR" 6746fi 6747 6748test -z "$AR" && AR=ar 6749test -z "$AR_FLAGS" && AR_FLAGS=cru 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761if test -n "$ac_tool_prefix"; then 6762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6763set dummy ${ac_tool_prefix}strip; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if test "${ac_cv_prog_STRIP+set}" = set; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$STRIP"; then 6770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6779 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789STRIP=$ac_cv_prog_STRIP 6790if test -n "$STRIP"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6792$as_echo "$STRIP" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 6799fi 6800if test -z "$ac_cv_prog_STRIP"; then 6801 ac_ct_STRIP=$STRIP 6802 # Extract the first word of "strip", so it can be a program name with args. 6803set dummy strip; ac_word=$2 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6805$as_echo_n "checking for $ac_word... " >&6; } 6806if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 if test -n "$ac_ct_STRIP"; then 6810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6811else 6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6813for as_dir in $PATH 6814do 6815 IFS=$as_save_IFS 6816 test -z "$as_dir" && as_dir=. 6817 for ac_exec_ext in '' $ac_executable_extensions; do 6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6819 ac_cv_prog_ac_ct_STRIP="strip" 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6821 break 2 6822 fi 6823done 6824 done 6825IFS=$as_save_IFS 6826 6827fi 6828fi 6829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6830if test -n "$ac_ct_STRIP"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6832$as_echo "$ac_ct_STRIP" >&6; } 6833else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6835$as_echo "no" >&6; } 6836fi 6837 6838 if test "x$ac_ct_STRIP" = x; then 6839 STRIP=":" 6840 else 6841 case $cross_compiling:$ac_tool_warned in 6842yes:) 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6845ac_tool_warned=yes ;; 6846esac 6847 STRIP=$ac_ct_STRIP 6848 fi 6849else 6850 STRIP="$ac_cv_prog_STRIP" 6851fi 6852 6853test -z "$STRIP" && STRIP=: 6854 6855 6856 6857 6858 6859 6860if test -n "$ac_tool_prefix"; then 6861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6862set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6864$as_echo_n "checking for $ac_word... " >&6; } 6865if test "${ac_cv_prog_RANLIB+set}" = set; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 if test -n "$RANLIB"; then 6869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6870else 6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6872for as_dir in $PATH 6873do 6874 IFS=$as_save_IFS 6875 test -z "$as_dir" && as_dir=. 6876 for ac_exec_ext in '' $ac_executable_extensions; do 6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6880 break 2 6881 fi 6882done 6883 done 6884IFS=$as_save_IFS 6885 6886fi 6887fi 6888RANLIB=$ac_cv_prog_RANLIB 6889if test -n "$RANLIB"; then 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6891$as_echo "$RANLIB" >&6; } 6892else 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894$as_echo "no" >&6; } 6895fi 6896 6897 6898fi 6899if test -z "$ac_cv_prog_RANLIB"; then 6900 ac_ct_RANLIB=$RANLIB 6901 # Extract the first word of "ranlib", so it can be a program name with args. 6902set dummy ranlib; ac_word=$2 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6904$as_echo_n "checking for $ac_word... " >&6; } 6905if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6906 $as_echo_n "(cached) " >&6 6907else 6908 if test -n "$ac_ct_RANLIB"; then 6909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6910else 6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6912for as_dir in $PATH 6913do 6914 IFS=$as_save_IFS 6915 test -z "$as_dir" && as_dir=. 6916 for ac_exec_ext in '' $ac_executable_extensions; do 6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6918 ac_cv_prog_ac_ct_RANLIB="ranlib" 6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6920 break 2 6921 fi 6922done 6923 done 6924IFS=$as_save_IFS 6925 6926fi 6927fi 6928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6929if test -n "$ac_ct_RANLIB"; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6931$as_echo "$ac_ct_RANLIB" >&6; } 6932else 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6934$as_echo "no" >&6; } 6935fi 6936 6937 if test "x$ac_ct_RANLIB" = x; then 6938 RANLIB=":" 6939 else 6940 case $cross_compiling:$ac_tool_warned in 6941yes:) 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6944ac_tool_warned=yes ;; 6945esac 6946 RANLIB=$ac_ct_RANLIB 6947 fi 6948else 6949 RANLIB="$ac_cv_prog_RANLIB" 6950fi 6951 6952test -z "$RANLIB" && RANLIB=: 6953 6954 6955 6956 6957 6958 6959# Determine commands to create old-style static archives. 6960old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6961old_postinstall_cmds='chmod 644 $oldlib' 6962old_postuninstall_cmds= 6963 6964if test -n "$RANLIB"; then 6965 case $host_os in 6966 openbsd*) 6967 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6968 ;; 6969 *) 6970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6971 ;; 6972 esac 6973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6974fi 6975 6976case $host_os in 6977 darwin*) 6978 lock_old_archive_extraction=yes ;; 6979 *) 6980 lock_old_archive_extraction=no ;; 6981esac 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021# If no C compiler was specified, use CC. 7022LTCC=${LTCC-"$CC"} 7023 7024# If no C compiler flags were specified, use CFLAGS. 7025LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7026 7027# Allow CC to be a program name with arguments. 7028compiler=$CC 7029 7030 7031# Check for command to grab the raw symbol name followed by C symbol from nm. 7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7033$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7034if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7035 $as_echo_n "(cached) " >&6 7036else 7037 7038# These are sane defaults that work on at least a few old systems. 7039# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7040 7041# Character class describing NM global symbol codes. 7042symcode='[BCDEGRST]' 7043 7044# Regexp to match symbols that can be accessed directly from C. 7045sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7046 7047# Define system-specific variables. 7048case $host_os in 7049aix*) 7050 symcode='[BCDT]' 7051 ;; 7052cygwin* | mingw* | pw32* | cegcc*) 7053 symcode='[ABCDGISTW]' 7054 ;; 7055hpux*) 7056 if test "$host_cpu" = ia64; then 7057 symcode='[ABCDEGRST]' 7058 fi 7059 ;; 7060irix* | nonstopux*) 7061 symcode='[BCDEGRST]' 7062 ;; 7063osf*) 7064 symcode='[BCDEGQRST]' 7065 ;; 7066solaris*) 7067 symcode='[BDRT]' 7068 ;; 7069sco3.2v5*) 7070 symcode='[DT]' 7071 ;; 7072sysv4.2uw2*) 7073 symcode='[DT]' 7074 ;; 7075sysv5* | sco5v6* | unixware* | OpenUNIX*) 7076 symcode='[ABDT]' 7077 ;; 7078sysv4) 7079 symcode='[DFNSTU]' 7080 ;; 7081esac 7082 7083# If we're using GNU nm, then use its standard symbol codes. 7084case `$NM -V 2>&1` in 7085*GNU* | *'with BFD'*) 7086 symcode='[ABCDGIRSTW]' ;; 7087esac 7088 7089# Transform an extracted symbol line into a proper C declaration. 7090# Some systems (esp. on ia64) link data and code symbols differently, 7091# so use this general approach. 7092lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7093 7094# Transform an extracted symbol line into symbol name and symbol address 7095lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7096lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7097 7098# Handle CRLF in mingw tool chain 7099opt_cr= 7100case $build_os in 7101mingw*) 7102 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7103 ;; 7104esac 7105 7106# Try without a prefix underscore, then with it. 7107for ac_symprfx in "" "_"; do 7108 7109 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7110 symxfrm="\\1 $ac_symprfx\\2 \\2" 7111 7112 # Write the raw and C identifiers. 7113 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7114 # Fake it for dumpbin and say T for any non-static function 7115 # and D for any global variable. 7116 # Also find C++ and __fastcall symbols from MSVC++, 7117 # which start with @ or ?. 7118 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7119" {last_section=section; section=\$ 3};"\ 7120" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7121" \$ 0!~/External *\|/{next};"\ 7122" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7123" {if(hide[section]) next};"\ 7124" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7125" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7126" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7127" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7128" ' prfx=^$ac_symprfx" 7129 else 7130 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7131 fi 7132 7133 # Check to see that the pipe works correctly. 7134 pipe_works=no 7135 7136 rm -f conftest* 7137 cat > conftest.$ac_ext <<_LT_EOF 7138#ifdef __cplusplus 7139extern "C" { 7140#endif 7141char nm_test_var; 7142void nm_test_func(void); 7143void nm_test_func(void){} 7144#ifdef __cplusplus 7145} 7146#endif 7147int main(){nm_test_var='a';nm_test_func();return(0);} 7148_LT_EOF 7149 7150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7151 (eval $ac_compile) 2>&5 7152 ac_status=$? 7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7154 test $ac_status = 0; }; then 7155 # Now try to grab the symbols. 7156 nlist=conftest.nm 7157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7158 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7159 ac_status=$? 7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7161 test $ac_status = 0; } && test -s "$nlist"; then 7162 # Try sorting and uniquifying the output. 7163 if sort "$nlist" | uniq > "$nlist"T; then 7164 mv -f "$nlist"T "$nlist" 7165 else 7166 rm -f "$nlist"T 7167 fi 7168 7169 # Make sure that we snagged all the symbols we need. 7170 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7171 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7172 cat <<_LT_EOF > conftest.$ac_ext 7173#ifdef __cplusplus 7174extern "C" { 7175#endif 7176 7177_LT_EOF 7178 # Now generate the symbol file. 7179 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7180 7181 cat <<_LT_EOF >> conftest.$ac_ext 7182 7183/* The mapping between symbol names and symbols. */ 7184const struct { 7185 const char *name; 7186 void *address; 7187} 7188lt__PROGRAM__LTX_preloaded_symbols[] = 7189{ 7190 { "@PROGRAM@", (void *) 0 }, 7191_LT_EOF 7192 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7193 cat <<\_LT_EOF >> conftest.$ac_ext 7194 {0, (void *) 0} 7195}; 7196 7197/* This works around a problem in FreeBSD linker */ 7198#ifdef FREEBSD_WORKAROUND 7199static const void *lt_preloaded_setup() { 7200 return lt__PROGRAM__LTX_preloaded_symbols; 7201} 7202#endif 7203 7204#ifdef __cplusplus 7205} 7206#endif 7207_LT_EOF 7208 # Now try linking the two files. 7209 mv conftest.$ac_objext conftstm.$ac_objext 7210 lt_save_LIBS="$LIBS" 7211 lt_save_CFLAGS="$CFLAGS" 7212 LIBS="conftstm.$ac_objext" 7213 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7215 (eval $ac_link) 2>&5 7216 ac_status=$? 7217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7218 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7219 pipe_works=yes 7220 fi 7221 LIBS="$lt_save_LIBS" 7222 CFLAGS="$lt_save_CFLAGS" 7223 else 7224 echo "cannot find nm_test_func in $nlist" >&5 7225 fi 7226 else 7227 echo "cannot find nm_test_var in $nlist" >&5 7228 fi 7229 else 7230 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7231 fi 7232 else 7233 echo "$progname: failed program was:" >&5 7234 cat conftest.$ac_ext >&5 7235 fi 7236 rm -rf conftest* conftst* 7237 7238 # Do not use the global_symbol_pipe unless it works. 7239 if test "$pipe_works" = yes; then 7240 break 7241 else 7242 lt_cv_sys_global_symbol_pipe= 7243 fi 7244done 7245 7246fi 7247 7248if test -z "$lt_cv_sys_global_symbol_pipe"; then 7249 lt_cv_sys_global_symbol_to_cdecl= 7250fi 7251if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7253$as_echo "failed" >&6; } 7254else 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7256$as_echo "ok" >&6; } 7257fi 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280# Check whether --enable-libtool-lock was given. 7281if test "${enable_libtool_lock+set}" = set; then : 7282 enableval=$enable_libtool_lock; 7283fi 7284 7285test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7286 7287# Some flags need to be propagated to the compiler or linker for good 7288# libtool support. 7289case $host in 7290ia64-*-hpux*) 7291 # Find out which ABI we are using. 7292 echo 'int i;' > conftest.$ac_ext 7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7294 (eval $ac_compile) 2>&5 7295 ac_status=$? 7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; }; then 7298 case `/usr/bin/file conftest.$ac_objext` in 7299 *ELF-32*) 7300 HPUX_IA64_MODE="32" 7301 ;; 7302 *ELF-64*) 7303 HPUX_IA64_MODE="64" 7304 ;; 7305 esac 7306 fi 7307 rm -rf conftest* 7308 ;; 7309*-*-irix6*) 7310 # Find out which ABI we are using. 7311 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7313 (eval $ac_compile) 2>&5 7314 ac_status=$? 7315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7316 test $ac_status = 0; }; then 7317 if test "$lt_cv_prog_gnu_ld" = yes; then 7318 case `/usr/bin/file conftest.$ac_objext` in 7319 *32-bit*) 7320 LD="${LD-ld} -melf32bsmip" 7321 ;; 7322 *N32*) 7323 LD="${LD-ld} -melf32bmipn32" 7324 ;; 7325 *64-bit*) 7326 LD="${LD-ld} -melf64bmip" 7327 ;; 7328 esac 7329 else 7330 case `/usr/bin/file conftest.$ac_objext` in 7331 *32-bit*) 7332 LD="${LD-ld} -32" 7333 ;; 7334 *N32*) 7335 LD="${LD-ld} -n32" 7336 ;; 7337 *64-bit*) 7338 LD="${LD-ld} -64" 7339 ;; 7340 esac 7341 fi 7342 fi 7343 rm -rf conftest* 7344 ;; 7345 7346x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7347s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7348 # Find out which ABI we are using. 7349 echo 'int i;' > conftest.$ac_ext 7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7351 (eval $ac_compile) 2>&5 7352 ac_status=$? 7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7354 test $ac_status = 0; }; then 7355 case `/usr/bin/file conftest.o` in 7356 *32-bit*) 7357 case $host in 7358 x86_64-*kfreebsd*-gnu) 7359 LD="${LD-ld} -m elf_i386_fbsd" 7360 ;; 7361 x86_64-*linux*) 7362 LD="${LD-ld} -m elf_i386" 7363 ;; 7364 ppc64-*linux*|powerpc64-*linux*) 7365 LD="${LD-ld} -m elf32ppclinux" 7366 ;; 7367 s390x-*linux*) 7368 LD="${LD-ld} -m elf_s390" 7369 ;; 7370 sparc64-*linux*) 7371 LD="${LD-ld} -m elf32_sparc" 7372 ;; 7373 esac 7374 ;; 7375 *64-bit*) 7376 case $host in 7377 x86_64-*kfreebsd*-gnu) 7378 LD="${LD-ld} -m elf_x86_64_fbsd" 7379 ;; 7380 x86_64-*linux*) 7381 LD="${LD-ld} -m elf_x86_64" 7382 ;; 7383 ppc*-*linux*|powerpc*-*linux*) 7384 LD="${LD-ld} -m elf64ppc" 7385 ;; 7386 s390*-*linux*|s390*-*tpf*) 7387 LD="${LD-ld} -m elf64_s390" 7388 ;; 7389 sparc*-*linux*) 7390 LD="${LD-ld} -m elf64_sparc" 7391 ;; 7392 esac 7393 ;; 7394 esac 7395 fi 7396 rm -rf conftest* 7397 ;; 7398 7399*-*-sco3.2v5*) 7400 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7401 SAVE_CFLAGS="$CFLAGS" 7402 CFLAGS="$CFLAGS -belf" 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7404$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7405if test "${lt_cv_cc_needs_belf+set}" = set; then : 7406 $as_echo_n "(cached) " >&6 7407else 7408 ac_ext=c 7409ac_cpp='$CPP $CPPFLAGS' 7410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7412ac_compiler_gnu=$ac_cv_c_compiler_gnu 7413 7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415/* end confdefs.h. */ 7416 7417int 7418main () 7419{ 7420 7421 ; 7422 return 0; 7423} 7424_ACEOF 7425if ac_fn_c_try_link "$LINENO"; then : 7426 lt_cv_cc_needs_belf=yes 7427else 7428 lt_cv_cc_needs_belf=no 7429fi 7430rm -f core conftest.err conftest.$ac_objext \ 7431 conftest$ac_exeext conftest.$ac_ext 7432 ac_ext=c 7433ac_cpp='$CPP $CPPFLAGS' 7434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7436ac_compiler_gnu=$ac_cv_c_compiler_gnu 7437 7438fi 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7440$as_echo "$lt_cv_cc_needs_belf" >&6; } 7441 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7442 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7443 CFLAGS="$SAVE_CFLAGS" 7444 fi 7445 ;; 7446sparc*-*solaris*) 7447 # Find out which ABI we are using. 7448 echo 'int i;' > conftest.$ac_ext 7449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7450 (eval $ac_compile) 2>&5 7451 ac_status=$? 7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7453 test $ac_status = 0; }; then 7454 case `/usr/bin/file conftest.o` in 7455 *64-bit*) 7456 case $lt_cv_prog_gnu_ld in 7457 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7458 *) 7459 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7460 LD="${LD-ld} -64" 7461 fi 7462 ;; 7463 esac 7464 ;; 7465 esac 7466 fi 7467 rm -rf conftest* 7468 ;; 7469esac 7470 7471need_locks="$enable_libtool_lock" 7472 7473 7474 case $host_os in 7475 rhapsody* | darwin*) 7476 if test -n "$ac_tool_prefix"; then 7477 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7478set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7480$as_echo_n "checking for $ac_word... " >&6; } 7481if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7482 $as_echo_n "(cached) " >&6 7483else 7484 if test -n "$DSYMUTIL"; then 7485 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7486else 7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7488for as_dir in $PATH 7489do 7490 IFS=$as_save_IFS 7491 test -z "$as_dir" && as_dir=. 7492 for ac_exec_ext in '' $ac_executable_extensions; do 7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7494 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7496 break 2 7497 fi 7498done 7499 done 7500IFS=$as_save_IFS 7501 7502fi 7503fi 7504DSYMUTIL=$ac_cv_prog_DSYMUTIL 7505if test -n "$DSYMUTIL"; then 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7507$as_echo "$DSYMUTIL" >&6; } 7508else 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7510$as_echo "no" >&6; } 7511fi 7512 7513 7514fi 7515if test -z "$ac_cv_prog_DSYMUTIL"; then 7516 ac_ct_DSYMUTIL=$DSYMUTIL 7517 # Extract the first word of "dsymutil", so it can be a program name with args. 7518set dummy dsymutil; ac_word=$2 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7520$as_echo_n "checking for $ac_word... " >&6; } 7521if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7522 $as_echo_n "(cached) " >&6 7523else 7524 if test -n "$ac_ct_DSYMUTIL"; then 7525 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7526else 7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7528for as_dir in $PATH 7529do 7530 IFS=$as_save_IFS 7531 test -z "$as_dir" && as_dir=. 7532 for ac_exec_ext in '' $ac_executable_extensions; do 7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7534 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7536 break 2 7537 fi 7538done 7539 done 7540IFS=$as_save_IFS 7541 7542fi 7543fi 7544ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7545if test -n "$ac_ct_DSYMUTIL"; then 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7547$as_echo "$ac_ct_DSYMUTIL" >&6; } 7548else 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7550$as_echo "no" >&6; } 7551fi 7552 7553 if test "x$ac_ct_DSYMUTIL" = x; then 7554 DSYMUTIL=":" 7555 else 7556 case $cross_compiling:$ac_tool_warned in 7557yes:) 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7560ac_tool_warned=yes ;; 7561esac 7562 DSYMUTIL=$ac_ct_DSYMUTIL 7563 fi 7564else 7565 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7566fi 7567 7568 if test -n "$ac_tool_prefix"; then 7569 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7570set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7572$as_echo_n "checking for $ac_word... " >&6; } 7573if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7574 $as_echo_n "(cached) " >&6 7575else 7576 if test -n "$NMEDIT"; then 7577 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7578else 7579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7580for as_dir in $PATH 7581do 7582 IFS=$as_save_IFS 7583 test -z "$as_dir" && as_dir=. 7584 for ac_exec_ext in '' $ac_executable_extensions; do 7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7586 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7588 break 2 7589 fi 7590done 7591 done 7592IFS=$as_save_IFS 7593 7594fi 7595fi 7596NMEDIT=$ac_cv_prog_NMEDIT 7597if test -n "$NMEDIT"; then 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7599$as_echo "$NMEDIT" >&6; } 7600else 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7602$as_echo "no" >&6; } 7603fi 7604 7605 7606fi 7607if test -z "$ac_cv_prog_NMEDIT"; then 7608 ac_ct_NMEDIT=$NMEDIT 7609 # Extract the first word of "nmedit", so it can be a program name with args. 7610set dummy nmedit; ac_word=$2 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7612$as_echo_n "checking for $ac_word... " >&6; } 7613if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7614 $as_echo_n "(cached) " >&6 7615else 7616 if test -n "$ac_ct_NMEDIT"; then 7617 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7618else 7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7620for as_dir in $PATH 7621do 7622 IFS=$as_save_IFS 7623 test -z "$as_dir" && as_dir=. 7624 for ac_exec_ext in '' $ac_executable_extensions; do 7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7626 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7628 break 2 7629 fi 7630done 7631 done 7632IFS=$as_save_IFS 7633 7634fi 7635fi 7636ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7637if test -n "$ac_ct_NMEDIT"; then 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7639$as_echo "$ac_ct_NMEDIT" >&6; } 7640else 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7642$as_echo "no" >&6; } 7643fi 7644 7645 if test "x$ac_ct_NMEDIT" = x; then 7646 NMEDIT=":" 7647 else 7648 case $cross_compiling:$ac_tool_warned in 7649yes:) 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7652ac_tool_warned=yes ;; 7653esac 7654 NMEDIT=$ac_ct_NMEDIT 7655 fi 7656else 7657 NMEDIT="$ac_cv_prog_NMEDIT" 7658fi 7659 7660 if test -n "$ac_tool_prefix"; then 7661 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7662set dummy ${ac_tool_prefix}lipo; ac_word=$2 7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7664$as_echo_n "checking for $ac_word... " >&6; } 7665if test "${ac_cv_prog_LIPO+set}" = set; then : 7666 $as_echo_n "(cached) " >&6 7667else 7668 if test -n "$LIPO"; then 7669 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7670else 7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7672for as_dir in $PATH 7673do 7674 IFS=$as_save_IFS 7675 test -z "$as_dir" && as_dir=. 7676 for ac_exec_ext in '' $ac_executable_extensions; do 7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7678 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7680 break 2 7681 fi 7682done 7683 done 7684IFS=$as_save_IFS 7685 7686fi 7687fi 7688LIPO=$ac_cv_prog_LIPO 7689if test -n "$LIPO"; then 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7691$as_echo "$LIPO" >&6; } 7692else 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7694$as_echo "no" >&6; } 7695fi 7696 7697 7698fi 7699if test -z "$ac_cv_prog_LIPO"; then 7700 ac_ct_LIPO=$LIPO 7701 # Extract the first word of "lipo", so it can be a program name with args. 7702set dummy lipo; ac_word=$2 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7704$as_echo_n "checking for $ac_word... " >&6; } 7705if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7706 $as_echo_n "(cached) " >&6 7707else 7708 if test -n "$ac_ct_LIPO"; then 7709 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7710else 7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7712for as_dir in $PATH 7713do 7714 IFS=$as_save_IFS 7715 test -z "$as_dir" && as_dir=. 7716 for ac_exec_ext in '' $ac_executable_extensions; do 7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7718 ac_cv_prog_ac_ct_LIPO="lipo" 7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7720 break 2 7721 fi 7722done 7723 done 7724IFS=$as_save_IFS 7725 7726fi 7727fi 7728ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7729if test -n "$ac_ct_LIPO"; then 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7731$as_echo "$ac_ct_LIPO" >&6; } 7732else 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7734$as_echo "no" >&6; } 7735fi 7736 7737 if test "x$ac_ct_LIPO" = x; then 7738 LIPO=":" 7739 else 7740 case $cross_compiling:$ac_tool_warned in 7741yes:) 7742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7744ac_tool_warned=yes ;; 7745esac 7746 LIPO=$ac_ct_LIPO 7747 fi 7748else 7749 LIPO="$ac_cv_prog_LIPO" 7750fi 7751 7752 if test -n "$ac_tool_prefix"; then 7753 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7754set dummy ${ac_tool_prefix}otool; ac_word=$2 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7756$as_echo_n "checking for $ac_word... " >&6; } 7757if test "${ac_cv_prog_OTOOL+set}" = set; then : 7758 $as_echo_n "(cached) " >&6 7759else 7760 if test -n "$OTOOL"; then 7761 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7762else 7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764for as_dir in $PATH 7765do 7766 IFS=$as_save_IFS 7767 test -z "$as_dir" && as_dir=. 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7770 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7772 break 2 7773 fi 7774done 7775 done 7776IFS=$as_save_IFS 7777 7778fi 7779fi 7780OTOOL=$ac_cv_prog_OTOOL 7781if test -n "$OTOOL"; then 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7783$as_echo "$OTOOL" >&6; } 7784else 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7786$as_echo "no" >&6; } 7787fi 7788 7789 7790fi 7791if test -z "$ac_cv_prog_OTOOL"; then 7792 ac_ct_OTOOL=$OTOOL 7793 # Extract the first word of "otool", so it can be a program name with args. 7794set dummy otool; ac_word=$2 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7796$as_echo_n "checking for $ac_word... " >&6; } 7797if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 if test -n "$ac_ct_OTOOL"; then 7801 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7802else 7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7804for as_dir in $PATH 7805do 7806 IFS=$as_save_IFS 7807 test -z "$as_dir" && as_dir=. 7808 for ac_exec_ext in '' $ac_executable_extensions; do 7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7810 ac_cv_prog_ac_ct_OTOOL="otool" 7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7812 break 2 7813 fi 7814done 7815 done 7816IFS=$as_save_IFS 7817 7818fi 7819fi 7820ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7821if test -n "$ac_ct_OTOOL"; then 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7823$as_echo "$ac_ct_OTOOL" >&6; } 7824else 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7826$as_echo "no" >&6; } 7827fi 7828 7829 if test "x$ac_ct_OTOOL" = x; then 7830 OTOOL=":" 7831 else 7832 case $cross_compiling:$ac_tool_warned in 7833yes:) 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7836ac_tool_warned=yes ;; 7837esac 7838 OTOOL=$ac_ct_OTOOL 7839 fi 7840else 7841 OTOOL="$ac_cv_prog_OTOOL" 7842fi 7843 7844 if test -n "$ac_tool_prefix"; then 7845 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7846set dummy ${ac_tool_prefix}otool64; ac_word=$2 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7848$as_echo_n "checking for $ac_word... " >&6; } 7849if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7850 $as_echo_n "(cached) " >&6 7851else 7852 if test -n "$OTOOL64"; then 7853 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7854else 7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7856for as_dir in $PATH 7857do 7858 IFS=$as_save_IFS 7859 test -z "$as_dir" && as_dir=. 7860 for ac_exec_ext in '' $ac_executable_extensions; do 7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7862 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7864 break 2 7865 fi 7866done 7867 done 7868IFS=$as_save_IFS 7869 7870fi 7871fi 7872OTOOL64=$ac_cv_prog_OTOOL64 7873if test -n "$OTOOL64"; then 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7875$as_echo "$OTOOL64" >&6; } 7876else 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7878$as_echo "no" >&6; } 7879fi 7880 7881 7882fi 7883if test -z "$ac_cv_prog_OTOOL64"; then 7884 ac_ct_OTOOL64=$OTOOL64 7885 # Extract the first word of "otool64", so it can be a program name with args. 7886set dummy otool64; ac_word=$2 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7888$as_echo_n "checking for $ac_word... " >&6; } 7889if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 if test -n "$ac_ct_OTOOL64"; then 7893 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7894else 7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7896for as_dir in $PATH 7897do 7898 IFS=$as_save_IFS 7899 test -z "$as_dir" && as_dir=. 7900 for ac_exec_ext in '' $ac_executable_extensions; do 7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7902 ac_cv_prog_ac_ct_OTOOL64="otool64" 7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7904 break 2 7905 fi 7906done 7907 done 7908IFS=$as_save_IFS 7909 7910fi 7911fi 7912ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7913if test -n "$ac_ct_OTOOL64"; then 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7915$as_echo "$ac_ct_OTOOL64" >&6; } 7916else 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7918$as_echo "no" >&6; } 7919fi 7920 7921 if test "x$ac_ct_OTOOL64" = x; then 7922 OTOOL64=":" 7923 else 7924 case $cross_compiling:$ac_tool_warned in 7925yes:) 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7928ac_tool_warned=yes ;; 7929esac 7930 OTOOL64=$ac_ct_OTOOL64 7931 fi 7932else 7933 OTOOL64="$ac_cv_prog_OTOOL64" 7934fi 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7963$as_echo_n "checking for -single_module linker flag... " >&6; } 7964if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 lt_cv_apple_cc_single_mod=no 7968 if test -z "${LT_MULTI_MODULE}"; then 7969 # By default we will add the -single_module flag. You can override 7970 # by either setting the environment variable LT_MULTI_MODULE 7971 # non-empty at configure time, or by adding -multi_module to the 7972 # link flags. 7973 rm -rf libconftest.dylib* 7974 echo "int foo(void){return 1;}" > conftest.c 7975 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7976-dynamiclib -Wl,-single_module conftest.c" >&5 7977 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7978 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7979 _lt_result=$? 7980 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7981 lt_cv_apple_cc_single_mod=yes 7982 else 7983 cat conftest.err >&5 7984 fi 7985 rm -rf libconftest.dylib* 7986 rm -f conftest.* 7987 fi 7988fi 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7990$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7992$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7993if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7994 $as_echo_n "(cached) " >&6 7995else 7996 lt_cv_ld_exported_symbols_list=no 7997 save_LDFLAGS=$LDFLAGS 7998 echo "_main" > conftest.sym 7999 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8001/* end confdefs.h. */ 8002 8003int 8004main () 8005{ 8006 8007 ; 8008 return 0; 8009} 8010_ACEOF 8011if ac_fn_c_try_link "$LINENO"; then : 8012 lt_cv_ld_exported_symbols_list=yes 8013else 8014 lt_cv_ld_exported_symbols_list=no 8015fi 8016rm -f core conftest.err conftest.$ac_objext \ 8017 conftest$ac_exeext conftest.$ac_ext 8018 LDFLAGS="$save_LDFLAGS" 8019 8020fi 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8022$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8024$as_echo_n "checking for -force_load linker flag... " >&6; } 8025if test "${lt_cv_ld_force_load+set}" = set; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 lt_cv_ld_force_load=no 8029 cat > conftest.c << _LT_EOF 8030int forced_loaded() { return 2;} 8031_LT_EOF 8032 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8033 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8034 echo "$AR cru libconftest.a conftest.o" >&5 8035 $AR cru libconftest.a conftest.o 2>&5 8036 echo "$RANLIB libconftest.a" >&5 8037 $RANLIB libconftest.a 2>&5 8038 cat > conftest.c << _LT_EOF 8039int main() { return 0;} 8040_LT_EOF 8041 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8042 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8043 _lt_result=$? 8044 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8045 lt_cv_ld_force_load=yes 8046 else 8047 cat conftest.err >&5 8048 fi 8049 rm -f conftest.err libconftest.a conftest conftest.c 8050 rm -rf conftest.dSYM 8051 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8054$as_echo "$lt_cv_ld_force_load" >&6; } 8055 case $host_os in 8056 rhapsody* | darwin1.[012]) 8057 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8058 darwin1.*) 8059 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8060 darwin*) # darwin 5.x on 8061 # if running on 10.5 or later, the deployment target defaults 8062 # to the OS version, if on x86, and 10.4, the deployment 8063 # target defaults to 10.4. Don't you love it? 8064 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8065 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8066 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8067 10.[012]*) 8068 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8069 10.*) 8070 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8071 esac 8072 ;; 8073 esac 8074 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8075 _lt_dar_single_mod='$single_module' 8076 fi 8077 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8078 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8079 else 8080 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8081 fi 8082 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8083 _lt_dsymutil='~$DSYMUTIL $lib || :' 8084 else 8085 _lt_dsymutil= 8086 fi 8087 ;; 8088 esac 8089 8090for ac_header in dlfcn.h 8091do : 8092 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8093" 8094if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8095 cat >>confdefs.h <<_ACEOF 8096#define HAVE_DLFCN_H 1 8097_ACEOF 8098 8099fi 8100 8101done 8102 8103 8104 8105 8106 8107 8108# Set options 8109 8110 8111 8112 enable_dlopen=no 8113 8114 8115 enable_win32_dll=no 8116 8117 8118 # Check whether --enable-shared was given. 8119if test "${enable_shared+set}" = set; then : 8120 enableval=$enable_shared; p=${PACKAGE-default} 8121 case $enableval in 8122 yes) enable_shared=yes ;; 8123 no) enable_shared=no ;; 8124 *) 8125 enable_shared=no 8126 # Look at the argument we got. We use all the common list separators. 8127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8128 for pkg in $enableval; do 8129 IFS="$lt_save_ifs" 8130 if test "X$pkg" = "X$p"; then 8131 enable_shared=yes 8132 fi 8133 done 8134 IFS="$lt_save_ifs" 8135 ;; 8136 esac 8137else 8138 enable_shared=yes 8139fi 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 # Check whether --enable-static was given. 8150if test "${enable_static+set}" = set; then : 8151 enableval=$enable_static; p=${PACKAGE-default} 8152 case $enableval in 8153 yes) enable_static=yes ;; 8154 no) enable_static=no ;; 8155 *) 8156 enable_static=no 8157 # Look at the argument we got. We use all the common list separators. 8158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8159 for pkg in $enableval; do 8160 IFS="$lt_save_ifs" 8161 if test "X$pkg" = "X$p"; then 8162 enable_static=yes 8163 fi 8164 done 8165 IFS="$lt_save_ifs" 8166 ;; 8167 esac 8168else 8169 enable_static=yes 8170fi 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181# Check whether --with-pic was given. 8182if test "${with_pic+set}" = set; then : 8183 withval=$with_pic; pic_mode="$withval" 8184else 8185 pic_mode=default 8186fi 8187 8188 8189test -z "$pic_mode" && pic_mode=default 8190 8191 8192 8193 8194 8195 8196 8197 # Check whether --enable-fast-install was given. 8198if test "${enable_fast_install+set}" = set; then : 8199 enableval=$enable_fast_install; p=${PACKAGE-default} 8200 case $enableval in 8201 yes) enable_fast_install=yes ;; 8202 no) enable_fast_install=no ;; 8203 *) 8204 enable_fast_install=no 8205 # Look at the argument we got. We use all the common list separators. 8206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8207 for pkg in $enableval; do 8208 IFS="$lt_save_ifs" 8209 if test "X$pkg" = "X$p"; then 8210 enable_fast_install=yes 8211 fi 8212 done 8213 IFS="$lt_save_ifs" 8214 ;; 8215 esac 8216else 8217 enable_fast_install=yes 8218fi 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230# This can be used to rebuild libtool when needed 8231LIBTOOL_DEPS="$ltmain" 8232 8233# Always use our own libtool. 8234LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261test -z "$LN_S" && LN_S="ln -s" 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276if test -n "${ZSH_VERSION+set}" ; then 8277 setopt NO_GLOB_SUBST 8278fi 8279 8280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8281$as_echo_n "checking for objdir... " >&6; } 8282if test "${lt_cv_objdir+set}" = set; then : 8283 $as_echo_n "(cached) " >&6 8284else 8285 rm -f .libs 2>/dev/null 8286mkdir .libs 2>/dev/null 8287if test -d .libs; then 8288 lt_cv_objdir=.libs 8289else 8290 # MS-DOS does not allow filenames that begin with a dot. 8291 lt_cv_objdir=_libs 8292fi 8293rmdir .libs 2>/dev/null 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8296$as_echo "$lt_cv_objdir" >&6; } 8297objdir=$lt_cv_objdir 8298 8299 8300 8301 8302 8303cat >>confdefs.h <<_ACEOF 8304#define LT_OBJDIR "$lt_cv_objdir/" 8305_ACEOF 8306 8307 8308 8309 8310case $host_os in 8311aix3*) 8312 # AIX sometimes has problems with the GCC collect2 program. For some 8313 # reason, if we set the COLLECT_NAMES environment variable, the problems 8314 # vanish in a puff of smoke. 8315 if test "X${COLLECT_NAMES+set}" != Xset; then 8316 COLLECT_NAMES= 8317 export COLLECT_NAMES 8318 fi 8319 ;; 8320esac 8321 8322# Global variables: 8323ofile=libtool 8324can_build_shared=yes 8325 8326# All known linkers require a `.a' archive for static linking (except MSVC, 8327# which needs '.lib'). 8328libext=a 8329 8330with_gnu_ld="$lt_cv_prog_gnu_ld" 8331 8332old_CC="$CC" 8333old_CFLAGS="$CFLAGS" 8334 8335# Set sane defaults for various variables 8336test -z "$CC" && CC=cc 8337test -z "$LTCC" && LTCC=$CC 8338test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8339test -z "$LD" && LD=ld 8340test -z "$ac_objext" && ac_objext=o 8341 8342for cc_temp in $compiler""; do 8343 case $cc_temp in 8344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8346 \-*) ;; 8347 *) break;; 8348 esac 8349done 8350cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8351 8352 8353# Only perform the check for file, if the check method requires it 8354test -z "$MAGIC_CMD" && MAGIC_CMD=file 8355case $deplibs_check_method in 8356file_magic*) 8357 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8359$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8360if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 case $MAGIC_CMD in 8364[\\/*] | ?:[\\/]*) 8365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8366 ;; 8367*) 8368 lt_save_MAGIC_CMD="$MAGIC_CMD" 8369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8370 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8371 for ac_dir in $ac_dummy; do 8372 IFS="$lt_save_ifs" 8373 test -z "$ac_dir" && ac_dir=. 8374 if test -f $ac_dir/${ac_tool_prefix}file; then 8375 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8376 if test -n "$file_magic_test_file"; then 8377 case $deplibs_check_method in 8378 "file_magic "*) 8379 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8381 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8382 $EGREP "$file_magic_regex" > /dev/null; then 8383 : 8384 else 8385 cat <<_LT_EOF 1>&2 8386 8387*** Warning: the command libtool uses to detect shared libraries, 8388*** $file_magic_cmd, produces output that libtool cannot recognize. 8389*** The result is that libtool may fail to recognize shared libraries 8390*** as such. This will affect the creation of libtool libraries that 8391*** depend on shared libraries, but programs linked with such libtool 8392*** libraries will work regardless of this problem. Nevertheless, you 8393*** may want to report the problem to your system manager and/or to 8394*** bug-libtool@gnu.org 8395 8396_LT_EOF 8397 fi ;; 8398 esac 8399 fi 8400 break 8401 fi 8402 done 8403 IFS="$lt_save_ifs" 8404 MAGIC_CMD="$lt_save_MAGIC_CMD" 8405 ;; 8406esac 8407fi 8408 8409MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8410if test -n "$MAGIC_CMD"; then 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8412$as_echo "$MAGIC_CMD" >&6; } 8413else 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8415$as_echo "no" >&6; } 8416fi 8417 8418 8419 8420 8421 8422if test -z "$lt_cv_path_MAGIC_CMD"; then 8423 if test -n "$ac_tool_prefix"; then 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8425$as_echo_n "checking for file... " >&6; } 8426if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8427 $as_echo_n "(cached) " >&6 8428else 8429 case $MAGIC_CMD in 8430[\\/*] | ?:[\\/]*) 8431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8432 ;; 8433*) 8434 lt_save_MAGIC_CMD="$MAGIC_CMD" 8435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8436 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8437 for ac_dir in $ac_dummy; do 8438 IFS="$lt_save_ifs" 8439 test -z "$ac_dir" && ac_dir=. 8440 if test -f $ac_dir/file; then 8441 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8442 if test -n "$file_magic_test_file"; then 8443 case $deplibs_check_method in 8444 "file_magic "*) 8445 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8448 $EGREP "$file_magic_regex" > /dev/null; then 8449 : 8450 else 8451 cat <<_LT_EOF 1>&2 8452 8453*** Warning: the command libtool uses to detect shared libraries, 8454*** $file_magic_cmd, produces output that libtool cannot recognize. 8455*** The result is that libtool may fail to recognize shared libraries 8456*** as such. This will affect the creation of libtool libraries that 8457*** depend on shared libraries, but programs linked with such libtool 8458*** libraries will work regardless of this problem. Nevertheless, you 8459*** may want to report the problem to your system manager and/or to 8460*** bug-libtool@gnu.org 8461 8462_LT_EOF 8463 fi ;; 8464 esac 8465 fi 8466 break 8467 fi 8468 done 8469 IFS="$lt_save_ifs" 8470 MAGIC_CMD="$lt_save_MAGIC_CMD" 8471 ;; 8472esac 8473fi 8474 8475MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8476if test -n "$MAGIC_CMD"; then 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8478$as_echo "$MAGIC_CMD" >&6; } 8479else 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8481$as_echo "no" >&6; } 8482fi 8483 8484 8485 else 8486 MAGIC_CMD=: 8487 fi 8488fi 8489 8490 fi 8491 ;; 8492esac 8493 8494# Use C for the default configuration in the libtool script 8495 8496lt_save_CC="$CC" 8497ac_ext=c 8498ac_cpp='$CPP $CPPFLAGS' 8499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8501ac_compiler_gnu=$ac_cv_c_compiler_gnu 8502 8503 8504# Source file extension for C test sources. 8505ac_ext=c 8506 8507# Object file extension for compiled C test sources. 8508objext=o 8509objext=$objext 8510 8511# Code to be used in simple compile tests 8512lt_simple_compile_test_code="int some_variable = 0;" 8513 8514# Code to be used in simple link tests 8515lt_simple_link_test_code='int main(){return(0);}' 8516 8517 8518 8519 8520 8521 8522 8523# If no C compiler was specified, use CC. 8524LTCC=${LTCC-"$CC"} 8525 8526# If no C compiler flags were specified, use CFLAGS. 8527LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8528 8529# Allow CC to be a program name with arguments. 8530compiler=$CC 8531 8532# Save the default compiler, since it gets overwritten when the other 8533# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8534compiler_DEFAULT=$CC 8535 8536# save warnings/boilerplate of simple test code 8537ac_outfile=conftest.$ac_objext 8538echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8539eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8540_lt_compiler_boilerplate=`cat conftest.err` 8541$RM conftest* 8542 8543ac_outfile=conftest.$ac_objext 8544echo "$lt_simple_link_test_code" >conftest.$ac_ext 8545eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8546_lt_linker_boilerplate=`cat conftest.err` 8547$RM -r conftest* 8548 8549 8550if test -n "$compiler"; then 8551 8552lt_prog_compiler_no_builtin_flag= 8553 8554if test "$GCC" = yes; then 8555 case $cc_basename in 8556 nvcc*) 8557 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8558 *) 8559 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8560 esac 8561 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8563$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8564if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 lt_cv_prog_compiler_rtti_exceptions=no 8568 ac_outfile=conftest.$ac_objext 8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8570 lt_compiler_flag="-fno-rtti -fno-exceptions" 8571 # Insert the option either (1) after the last *FLAGS variable, or 8572 # (2) before a word containing "conftest.", or (3) at the end. 8573 # Note that $ac_compile itself does not contain backslashes and begins 8574 # with a dollar sign (not a hyphen), so the echo should work correctly. 8575 # The option is referenced via a variable to avoid confusing sed. 8576 lt_compile=`echo "$ac_compile" | $SED \ 8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8579 -e 's:$: $lt_compiler_flag:'` 8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8581 (eval "$lt_compile" 2>conftest.err) 8582 ac_status=$? 8583 cat conftest.err >&5 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 if (exit $ac_status) && test -s "$ac_outfile"; then 8586 # The compiler can only warn and ignore the option if not recognized 8587 # So say no if there are warnings other than the usual output. 8588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8591 lt_cv_prog_compiler_rtti_exceptions=yes 8592 fi 8593 fi 8594 $RM conftest* 8595 8596fi 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8598$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8599 8600if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8601 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8602else 8603 : 8604fi 8605 8606fi 8607 8608 8609 8610 8611 8612 8613 lt_prog_compiler_wl= 8614lt_prog_compiler_pic= 8615lt_prog_compiler_static= 8616 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8618$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8619 8620 if test "$GCC" = yes; then 8621 lt_prog_compiler_wl='-Wl,' 8622 lt_prog_compiler_static='-static' 8623 8624 case $host_os in 8625 aix*) 8626 # All AIX code is PIC. 8627 if test "$host_cpu" = ia64; then 8628 # AIX 5 now supports IA64 processor 8629 lt_prog_compiler_static='-Bstatic' 8630 fi 8631 ;; 8632 8633 amigaos*) 8634 case $host_cpu in 8635 powerpc) 8636 # see comment about AmigaOS4 .so support 8637 lt_prog_compiler_pic='-fPIC' 8638 ;; 8639 m68k) 8640 # FIXME: we need at least 68020 code to build shared libraries, but 8641 # adding the `-m68020' flag to GCC prevents building anything better, 8642 # like `-m68040'. 8643 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8644 ;; 8645 esac 8646 ;; 8647 8648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8649 # PIC is the default for these OSes. 8650 ;; 8651 8652 mingw* | cygwin* | pw32* | os2* | cegcc*) 8653 # This hack is so that the source file can tell whether it is being 8654 # built for inclusion in a dll (and should export symbols for example). 8655 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8656 # (--disable-auto-import) libraries 8657 lt_prog_compiler_pic='-DDLL_EXPORT' 8658 ;; 8659 8660 darwin* | rhapsody*) 8661 # PIC is the default on this platform 8662 # Common symbols not allowed in MH_DYLIB files 8663 lt_prog_compiler_pic='-fno-common' 8664 ;; 8665 8666 haiku*) 8667 # PIC is the default for Haiku. 8668 # The "-static" flag exists, but is broken. 8669 lt_prog_compiler_static= 8670 ;; 8671 8672 hpux*) 8673 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8674 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8675 # sets the default TLS model and affects inlining. 8676 case $host_cpu in 8677 hppa*64*) 8678 # +Z the default 8679 ;; 8680 *) 8681 lt_prog_compiler_pic='-fPIC' 8682 ;; 8683 esac 8684 ;; 8685 8686 interix[3-9]*) 8687 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8688 # Instead, we relocate shared libraries at runtime. 8689 ;; 8690 8691 msdosdjgpp*) 8692 # Just because we use GCC doesn't mean we suddenly get shared libraries 8693 # on systems that don't support them. 8694 lt_prog_compiler_can_build_shared=no 8695 enable_shared=no 8696 ;; 8697 8698 *nto* | *qnx*) 8699 # QNX uses GNU C++, but need to define -shared option too, otherwise 8700 # it will coredump. 8701 lt_prog_compiler_pic='-fPIC -shared' 8702 ;; 8703 8704 sysv4*MP*) 8705 if test -d /usr/nec; then 8706 lt_prog_compiler_pic=-Kconform_pic 8707 fi 8708 ;; 8709 8710 *) 8711 lt_prog_compiler_pic='-fPIC' 8712 ;; 8713 esac 8714 8715 case $cc_basename in 8716 nvcc*) # Cuda Compiler Driver 2.2 8717 lt_prog_compiler_wl='-Xlinker ' 8718 lt_prog_compiler_pic='-Xcompiler -fPIC' 8719 ;; 8720 esac 8721 else 8722 # PORTME Check for flag to pass linker flags through the system compiler. 8723 case $host_os in 8724 aix*) 8725 lt_prog_compiler_wl='-Wl,' 8726 if test "$host_cpu" = ia64; then 8727 # AIX 5 now supports IA64 processor 8728 lt_prog_compiler_static='-Bstatic' 8729 else 8730 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8731 fi 8732 ;; 8733 8734 mingw* | cygwin* | pw32* | os2* | cegcc*) 8735 # This hack is so that the source file can tell whether it is being 8736 # built for inclusion in a dll (and should export symbols for example). 8737 lt_prog_compiler_pic='-DDLL_EXPORT' 8738 ;; 8739 8740 hpux9* | hpux10* | hpux11*) 8741 lt_prog_compiler_wl='-Wl,' 8742 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8743 # not for PA HP-UX. 8744 case $host_cpu in 8745 hppa*64*|ia64*) 8746 # +Z the default 8747 ;; 8748 *) 8749 lt_prog_compiler_pic='+Z' 8750 ;; 8751 esac 8752 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8753 lt_prog_compiler_static='${wl}-a ${wl}archive' 8754 ;; 8755 8756 irix5* | irix6* | nonstopux*) 8757 lt_prog_compiler_wl='-Wl,' 8758 # PIC (with -KPIC) is the default. 8759 lt_prog_compiler_static='-non_shared' 8760 ;; 8761 8762 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8763 case $cc_basename in 8764 # old Intel for x86_64 which still supported -KPIC. 8765 ecc*) 8766 lt_prog_compiler_wl='-Wl,' 8767 lt_prog_compiler_pic='-KPIC' 8768 lt_prog_compiler_static='-static' 8769 ;; 8770 # icc used to be incompatible with GCC. 8771 # ICC 10 doesn't accept -KPIC any more. 8772 icc* | ifort*) 8773 lt_prog_compiler_wl='-Wl,' 8774 lt_prog_compiler_pic='-fPIC' 8775 lt_prog_compiler_static='-static' 8776 ;; 8777 # Lahey Fortran 8.1. 8778 lf95*) 8779 lt_prog_compiler_wl='-Wl,' 8780 lt_prog_compiler_pic='--shared' 8781 lt_prog_compiler_static='--static' 8782 ;; 8783 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8784 # Portland Group compilers (*not* the Pentium gcc compiler, 8785 # which looks to be a dead project) 8786 lt_prog_compiler_wl='-Wl,' 8787 lt_prog_compiler_pic='-fpic' 8788 lt_prog_compiler_static='-Bstatic' 8789 ;; 8790 ccc*) 8791 lt_prog_compiler_wl='-Wl,' 8792 # All Alpha code is PIC. 8793 lt_prog_compiler_static='-non_shared' 8794 ;; 8795 xl* | bgxl* | bgf* | mpixl*) 8796 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8797 lt_prog_compiler_wl='-Wl,' 8798 lt_prog_compiler_pic='-qpic' 8799 lt_prog_compiler_static='-qstaticlink' 8800 ;; 8801 *) 8802 case `$CC -V 2>&1 | sed 5q` in 8803 *Sun\ F* | *Sun*Fortran*) 8804 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8805 lt_prog_compiler_pic='-KPIC' 8806 lt_prog_compiler_static='-Bstatic' 8807 lt_prog_compiler_wl='' 8808 ;; 8809 *Sun\ C*) 8810 # Sun C 5.9 8811 lt_prog_compiler_pic='-KPIC' 8812 lt_prog_compiler_static='-Bstatic' 8813 lt_prog_compiler_wl='-Wl,' 8814 ;; 8815 esac 8816 ;; 8817 esac 8818 ;; 8819 8820 newsos6) 8821 lt_prog_compiler_pic='-KPIC' 8822 lt_prog_compiler_static='-Bstatic' 8823 ;; 8824 8825 *nto* | *qnx*) 8826 # QNX uses GNU C++, but need to define -shared option too, otherwise 8827 # it will coredump. 8828 lt_prog_compiler_pic='-fPIC -shared' 8829 ;; 8830 8831 osf3* | osf4* | osf5*) 8832 lt_prog_compiler_wl='-Wl,' 8833 # All OSF/1 code is PIC. 8834 lt_prog_compiler_static='-non_shared' 8835 ;; 8836 8837 rdos*) 8838 lt_prog_compiler_static='-non_shared' 8839 ;; 8840 8841 solaris*) 8842 lt_prog_compiler_pic='-KPIC' 8843 lt_prog_compiler_static='-Bstatic' 8844 case $cc_basename in 8845 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8846 lt_prog_compiler_wl='-Qoption ld ';; 8847 *) 8848 lt_prog_compiler_wl='-Wl,';; 8849 esac 8850 ;; 8851 8852 sunos4*) 8853 lt_prog_compiler_wl='-Qoption ld ' 8854 lt_prog_compiler_pic='-PIC' 8855 lt_prog_compiler_static='-Bstatic' 8856 ;; 8857 8858 sysv4 | sysv4.2uw2* | sysv4.3*) 8859 lt_prog_compiler_wl='-Wl,' 8860 lt_prog_compiler_pic='-KPIC' 8861 lt_prog_compiler_static='-Bstatic' 8862 ;; 8863 8864 sysv4*MP*) 8865 if test -d /usr/nec ;then 8866 lt_prog_compiler_pic='-Kconform_pic' 8867 lt_prog_compiler_static='-Bstatic' 8868 fi 8869 ;; 8870 8871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8872 lt_prog_compiler_wl='-Wl,' 8873 lt_prog_compiler_pic='-KPIC' 8874 lt_prog_compiler_static='-Bstatic' 8875 ;; 8876 8877 unicos*) 8878 lt_prog_compiler_wl='-Wl,' 8879 lt_prog_compiler_can_build_shared=no 8880 ;; 8881 8882 uts4*) 8883 lt_prog_compiler_pic='-pic' 8884 lt_prog_compiler_static='-Bstatic' 8885 ;; 8886 8887 *) 8888 lt_prog_compiler_can_build_shared=no 8889 ;; 8890 esac 8891 fi 8892 8893case $host_os in 8894 # For platforms which do not support PIC, -DPIC is meaningless: 8895 *djgpp*) 8896 lt_prog_compiler_pic= 8897 ;; 8898 *) 8899 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8900 ;; 8901esac 8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8903$as_echo "$lt_prog_compiler_pic" >&6; } 8904 8905 8906 8907 8908 8909 8910# 8911# Check to make sure the PIC flag actually works. 8912# 8913if test -n "$lt_prog_compiler_pic"; then 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8915$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8916if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8917 $as_echo_n "(cached) " >&6 8918else 8919 lt_cv_prog_compiler_pic_works=no 8920 ac_outfile=conftest.$ac_objext 8921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8922 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8923 # Insert the option either (1) after the last *FLAGS variable, or 8924 # (2) before a word containing "conftest.", or (3) at the end. 8925 # Note that $ac_compile itself does not contain backslashes and begins 8926 # with a dollar sign (not a hyphen), so the echo should work correctly. 8927 # The option is referenced via a variable to avoid confusing sed. 8928 lt_compile=`echo "$ac_compile" | $SED \ 8929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8931 -e 's:$: $lt_compiler_flag:'` 8932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8933 (eval "$lt_compile" 2>conftest.err) 8934 ac_status=$? 8935 cat conftest.err >&5 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8937 if (exit $ac_status) && test -s "$ac_outfile"; then 8938 # The compiler can only warn and ignore the option if not recognized 8939 # So say no if there are warnings other than the usual output. 8940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8943 lt_cv_prog_compiler_pic_works=yes 8944 fi 8945 fi 8946 $RM conftest* 8947 8948fi 8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8950$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8951 8952if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8953 case $lt_prog_compiler_pic in 8954 "" | " "*) ;; 8955 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8956 esac 8957else 8958 lt_prog_compiler_pic= 8959 lt_prog_compiler_can_build_shared=no 8960fi 8961 8962fi 8963 8964 8965 8966 8967 8968 8969# 8970# Check to make sure the static flag actually works. 8971# 8972wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8974$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8975if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8976 $as_echo_n "(cached) " >&6 8977else 8978 lt_cv_prog_compiler_static_works=no 8979 save_LDFLAGS="$LDFLAGS" 8980 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8981 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8982 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8983 # The linker can only warn and ignore the option if not recognized 8984 # So say no if there are warnings 8985 if test -s conftest.err; then 8986 # Append any errors to the config.log. 8987 cat conftest.err 1>&5 8988 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8990 if diff conftest.exp conftest.er2 >/dev/null; then 8991 lt_cv_prog_compiler_static_works=yes 8992 fi 8993 else 8994 lt_cv_prog_compiler_static_works=yes 8995 fi 8996 fi 8997 $RM -r conftest* 8998 LDFLAGS="$save_LDFLAGS" 8999 9000fi 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9002$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9003 9004if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9005 : 9006else 9007 lt_prog_compiler_static= 9008fi 9009 9010 9011 9012 9013 9014 9015 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9017$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9018if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 lt_cv_prog_compiler_c_o=no 9022 $RM -r conftest 2>/dev/null 9023 mkdir conftest 9024 cd conftest 9025 mkdir out 9026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9027 9028 lt_compiler_flag="-o out/conftest2.$ac_objext" 9029 # Insert the option either (1) after the last *FLAGS variable, or 9030 # (2) before a word containing "conftest.", or (3) at the end. 9031 # Note that $ac_compile itself does not contain backslashes and begins 9032 # with a dollar sign (not a hyphen), so the echo should work correctly. 9033 lt_compile=`echo "$ac_compile" | $SED \ 9034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9036 -e 's:$: $lt_compiler_flag:'` 9037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9038 (eval "$lt_compile" 2>out/conftest.err) 9039 ac_status=$? 9040 cat out/conftest.err >&5 9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9042 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9043 then 9044 # The compiler can only warn and ignore the option if not recognized 9045 # So say no if there are warnings 9046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9049 lt_cv_prog_compiler_c_o=yes 9050 fi 9051 fi 9052 chmod u+w . 2>&5 9053 $RM conftest* 9054 # SGI C++ compiler will create directory out/ii_files/ for 9055 # template instantiation 9056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9057 $RM out/* && rmdir out 9058 cd .. 9059 $RM -r conftest 9060 $RM conftest* 9061 9062fi 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9064$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9065 9066 9067 9068 9069 9070 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9072$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9073if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 lt_cv_prog_compiler_c_o=no 9077 $RM -r conftest 2>/dev/null 9078 mkdir conftest 9079 cd conftest 9080 mkdir out 9081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9082 9083 lt_compiler_flag="-o out/conftest2.$ac_objext" 9084 # Insert the option either (1) after the last *FLAGS variable, or 9085 # (2) before a word containing "conftest.", or (3) at the end. 9086 # Note that $ac_compile itself does not contain backslashes and begins 9087 # with a dollar sign (not a hyphen), so the echo should work correctly. 9088 lt_compile=`echo "$ac_compile" | $SED \ 9089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9091 -e 's:$: $lt_compiler_flag:'` 9092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9093 (eval "$lt_compile" 2>out/conftest.err) 9094 ac_status=$? 9095 cat out/conftest.err >&5 9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9097 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9098 then 9099 # The compiler can only warn and ignore the option if not recognized 9100 # So say no if there are warnings 9101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9102 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9103 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9104 lt_cv_prog_compiler_c_o=yes 9105 fi 9106 fi 9107 chmod u+w . 2>&5 9108 $RM conftest* 9109 # SGI C++ compiler will create directory out/ii_files/ for 9110 # template instantiation 9111 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9112 $RM out/* && rmdir out 9113 cd .. 9114 $RM -r conftest 9115 $RM conftest* 9116 9117fi 9118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9119$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9120 9121 9122 9123 9124hard_links="nottested" 9125if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9126 # do not overwrite the value of need_locks provided by the user 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9128$as_echo_n "checking if we can lock with hard links... " >&6; } 9129 hard_links=yes 9130 $RM conftest* 9131 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9132 touch conftest.a 9133 ln conftest.a conftest.b 2>&5 || hard_links=no 9134 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9136$as_echo "$hard_links" >&6; } 9137 if test "$hard_links" = no; then 9138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9139$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9140 need_locks=warn 9141 fi 9142else 9143 need_locks=no 9144fi 9145 9146 9147 9148 9149 9150 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9152$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9153 9154 runpath_var= 9155 allow_undefined_flag= 9156 always_export_symbols=no 9157 archive_cmds= 9158 archive_expsym_cmds= 9159 compiler_needs_object=no 9160 enable_shared_with_static_runtimes=no 9161 export_dynamic_flag_spec= 9162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9163 hardcode_automatic=no 9164 hardcode_direct=no 9165 hardcode_direct_absolute=no 9166 hardcode_libdir_flag_spec= 9167 hardcode_libdir_flag_spec_ld= 9168 hardcode_libdir_separator= 9169 hardcode_minus_L=no 9170 hardcode_shlibpath_var=unsupported 9171 inherit_rpath=no 9172 link_all_deplibs=unknown 9173 module_cmds= 9174 module_expsym_cmds= 9175 old_archive_from_new_cmds= 9176 old_archive_from_expsyms_cmds= 9177 thread_safe_flag_spec= 9178 whole_archive_flag_spec= 9179 # include_expsyms should be a list of space-separated symbols to be *always* 9180 # included in the symbol list 9181 include_expsyms= 9182 # exclude_expsyms can be an extended regexp of symbols to exclude 9183 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9184 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9185 # as well as any symbol that contains `d'. 9186 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9187 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9188 # platforms (ab)use it in PIC code, but their linkers get confused if 9189 # the symbol is explicitly referenced. Since portable code cannot 9190 # rely on this symbol name, it's probably fine to never include it in 9191 # preloaded symbol tables. 9192 # Exclude shared library initialization/finalization symbols. 9193 extract_expsyms_cmds= 9194 9195 case $host_os in 9196 cygwin* | mingw* | pw32* | cegcc*) 9197 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9198 # When not using gcc, we currently assume that we are using 9199 # Microsoft Visual C++. 9200 if test "$GCC" != yes; then 9201 with_gnu_ld=no 9202 fi 9203 ;; 9204 interix*) 9205 # we just hope/assume this is gcc and not c89 (= MSVC++) 9206 with_gnu_ld=yes 9207 ;; 9208 openbsd*) 9209 with_gnu_ld=no 9210 ;; 9211 esac 9212 9213 ld_shlibs=yes 9214 9215 # On some targets, GNU ld is compatible enough with the native linker 9216 # that we're better off using the native interface for both. 9217 lt_use_gnu_ld_interface=no 9218 if test "$with_gnu_ld" = yes; then 9219 case $host_os in 9220 aix*) 9221 # The AIX port of GNU ld has always aspired to compatibility 9222 # with the native linker. However, as the warning in the GNU ld 9223 # block says, versions before 2.19.5* couldn't really create working 9224 # shared libraries, regardless of the interface used. 9225 case `$LD -v 2>&1` in 9226 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9227 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9228 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9229 *) 9230 lt_use_gnu_ld_interface=yes 9231 ;; 9232 esac 9233 ;; 9234 *) 9235 lt_use_gnu_ld_interface=yes 9236 ;; 9237 esac 9238 fi 9239 9240 if test "$lt_use_gnu_ld_interface" = yes; then 9241 # If archive_cmds runs LD, not CC, wlarc should be empty 9242 wlarc='${wl}' 9243 9244 # Set some defaults for GNU ld with shared library support. These 9245 # are reset later if shared libraries are not supported. Putting them 9246 # here allows them to be overridden if necessary. 9247 runpath_var=LD_RUN_PATH 9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9249 export_dynamic_flag_spec='${wl}--export-dynamic' 9250 # ancient GNU ld didn't support --whole-archive et. al. 9251 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9252 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9253 else 9254 whole_archive_flag_spec= 9255 fi 9256 supports_anon_versioning=no 9257 case `$LD -v 2>&1` in 9258 *GNU\ gold*) supports_anon_versioning=yes ;; 9259 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9260 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9261 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9262 *\ 2.11.*) ;; # other 2.11 versions 9263 *) supports_anon_versioning=yes ;; 9264 esac 9265 9266 # See if GNU ld supports shared libraries. 9267 case $host_os in 9268 aix[3-9]*) 9269 # On AIX/PPC, the GNU linker is very broken 9270 if test "$host_cpu" != ia64; then 9271 ld_shlibs=no 9272 cat <<_LT_EOF 1>&2 9273 9274*** Warning: the GNU linker, at least up to release 2.19, is reported 9275*** to be unable to reliably create shared libraries on AIX. 9276*** Therefore, libtool is disabling shared libraries support. If you 9277*** really care for shared libraries, you may want to install binutils 9278*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9279*** You will then need to restart the configuration process. 9280 9281_LT_EOF 9282 fi 9283 ;; 9284 9285 amigaos*) 9286 case $host_cpu in 9287 powerpc) 9288 # see comment about AmigaOS4 .so support 9289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9290 archive_expsym_cmds='' 9291 ;; 9292 m68k) 9293 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)' 9294 hardcode_libdir_flag_spec='-L$libdir' 9295 hardcode_minus_L=yes 9296 ;; 9297 esac 9298 ;; 9299 9300 beos*) 9301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9302 allow_undefined_flag=unsupported 9303 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9304 # support --undefined. This deserves some investigation. FIXME 9305 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9306 else 9307 ld_shlibs=no 9308 fi 9309 ;; 9310 9311 cygwin* | mingw* | pw32* | cegcc*) 9312 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9313 # as there is no search path for DLLs. 9314 hardcode_libdir_flag_spec='-L$libdir' 9315 export_dynamic_flag_spec='${wl}--export-all-symbols' 9316 allow_undefined_flag=unsupported 9317 always_export_symbols=no 9318 enable_shared_with_static_runtimes=yes 9319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9320 9321 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9323 # If the export-symbols file already is a .def file (1st line 9324 # is EXPORTS), use it as is; otherwise, prepend... 9325 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9326 cp $export_symbols $output_objdir/$soname.def; 9327 else 9328 echo EXPORTS > $output_objdir/$soname.def; 9329 cat $export_symbols >> $output_objdir/$soname.def; 9330 fi~ 9331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9332 else 9333 ld_shlibs=no 9334 fi 9335 ;; 9336 9337 haiku*) 9338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9339 link_all_deplibs=yes 9340 ;; 9341 9342 interix[3-9]*) 9343 hardcode_direct=no 9344 hardcode_shlibpath_var=no 9345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9346 export_dynamic_flag_spec='${wl}-E' 9347 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9348 # Instead, shared libraries are loaded at an image base (0x10000000 by 9349 # default) and relocated if they conflict, which is a slow very memory 9350 # consuming and fragmenting process. To avoid this, we pick a random, 9351 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9352 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9354 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9355 ;; 9356 9357 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9358 tmp_diet=no 9359 if test "$host_os" = linux-dietlibc; then 9360 case $cc_basename in 9361 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9362 esac 9363 fi 9364 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9365 && test "$tmp_diet" = no 9366 then 9367 tmp_addflag= 9368 tmp_sharedflag='-shared' 9369 case $cc_basename,$host_cpu in 9370 pgcc*) # Portland Group C compiler 9371 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9372 tmp_addflag=' $pic_flag' 9373 ;; 9374 pgf77* | pgf90* | pgf95* | pgfortran*) 9375 # Portland Group f77 and f90 compilers 9376 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9377 tmp_addflag=' $pic_flag -Mnomain' ;; 9378 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9379 tmp_addflag=' -i_dynamic' ;; 9380 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9381 tmp_addflag=' -i_dynamic -nofor_main' ;; 9382 ifc* | ifort*) # Intel Fortran compiler 9383 tmp_addflag=' -nofor_main' ;; 9384 lf95*) # Lahey Fortran 8.1 9385 whole_archive_flag_spec= 9386 tmp_sharedflag='--shared' ;; 9387 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9388 tmp_sharedflag='-qmkshrobj' 9389 tmp_addflag= ;; 9390 nvcc*) # Cuda Compiler Driver 2.2 9391 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9392 compiler_needs_object=yes 9393 ;; 9394 esac 9395 case `$CC -V 2>&1 | sed 5q` in 9396 *Sun\ C*) # Sun C 5.9 9397 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9398 compiler_needs_object=yes 9399 tmp_sharedflag='-G' ;; 9400 *Sun\ F*) # Sun Fortran 8.3 9401 tmp_sharedflag='-G' ;; 9402 esac 9403 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9404 9405 if test "x$supports_anon_versioning" = xyes; then 9406 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9407 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9408 echo "local: *; };" >> $output_objdir/$libname.ver~ 9409 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9410 fi 9411 9412 case $cc_basename in 9413 xlf* | bgf* | bgxlf* | mpixlf*) 9414 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9415 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9416 hardcode_libdir_flag_spec= 9417 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9418 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9419 if test "x$supports_anon_versioning" = xyes; then 9420 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9421 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9422 echo "local: *; };" >> $output_objdir/$libname.ver~ 9423 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9424 fi 9425 ;; 9426 esac 9427 else 9428 ld_shlibs=no 9429 fi 9430 ;; 9431 9432 netbsd*) 9433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9434 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9435 wlarc= 9436 else 9437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9439 fi 9440 ;; 9441 9442 solaris*) 9443 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9444 ld_shlibs=no 9445 cat <<_LT_EOF 1>&2 9446 9447*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9448*** create shared libraries on Solaris systems. Therefore, libtool 9449*** is disabling shared libraries support. We urge you to upgrade GNU 9450*** binutils to release 2.9.1 or newer. Another option is to modify 9451*** your PATH or compiler configuration so that the native linker is 9452*** used, and then restart. 9453 9454_LT_EOF 9455 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9458 else 9459 ld_shlibs=no 9460 fi 9461 ;; 9462 9463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9464 case `$LD -v 2>&1` in 9465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9466 ld_shlibs=no 9467 cat <<_LT_EOF 1>&2 9468 9469*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9470*** reliably create shared libraries on SCO systems. Therefore, libtool 9471*** is disabling shared libraries support. We urge you to upgrade GNU 9472*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9473*** your PATH or compiler configuration so that the native linker is 9474*** used, and then restart. 9475 9476_LT_EOF 9477 ;; 9478 *) 9479 # For security reasons, it is highly recommended that you always 9480 # use absolute paths for naming shared libraries, and exclude the 9481 # DT_RUNPATH tag from executables and libraries. But doing so 9482 # requires that you compile everything twice, which is a pain. 9483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9487 else 9488 ld_shlibs=no 9489 fi 9490 ;; 9491 esac 9492 ;; 9493 9494 sunos4*) 9495 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9496 wlarc= 9497 hardcode_direct=yes 9498 hardcode_shlibpath_var=no 9499 ;; 9500 9501 *) 9502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9505 else 9506 ld_shlibs=no 9507 fi 9508 ;; 9509 esac 9510 9511 if test "$ld_shlibs" = no; then 9512 runpath_var= 9513 hardcode_libdir_flag_spec= 9514 export_dynamic_flag_spec= 9515 whole_archive_flag_spec= 9516 fi 9517 else 9518 # PORTME fill in a description of your system's linker (not GNU ld) 9519 case $host_os in 9520 aix3*) 9521 allow_undefined_flag=unsupported 9522 always_export_symbols=yes 9523 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' 9524 # Note: this linker hardcodes the directories in LIBPATH if there 9525 # are no directories specified by -L. 9526 hardcode_minus_L=yes 9527 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9528 # Neither direct hardcoding nor static linking is supported with a 9529 # broken collect2. 9530 hardcode_direct=unsupported 9531 fi 9532 ;; 9533 9534 aix[4-9]*) 9535 if test "$host_cpu" = ia64; then 9536 # On IA64, the linker does run time linking by default, so we don't 9537 # have to do anything special. 9538 aix_use_runtimelinking=no 9539 exp_sym_flag='-Bexport' 9540 no_entry_flag="" 9541 else 9542 # If we're using GNU nm, then we don't want the "-C" option. 9543 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9544 # Also, AIX nm treats weak defined symbols like other global 9545 # defined symbols, whereas GNU nm marks them as "W". 9546 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9547 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9548 else 9549 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' 9550 fi 9551 aix_use_runtimelinking=no 9552 9553 # Test if we are trying to use run time linking or normal 9554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9555 # need to do runtime linking. 9556 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9557 for ld_flag in $LDFLAGS; do 9558 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9559 aix_use_runtimelinking=yes 9560 break 9561 fi 9562 done 9563 ;; 9564 esac 9565 9566 exp_sym_flag='-bexport' 9567 no_entry_flag='-bnoentry' 9568 fi 9569 9570 # When large executables or shared objects are built, AIX ld can 9571 # have problems creating the table of contents. If linking a library 9572 # or program results in "error TOC overflow" add -mminimal-toc to 9573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9575 9576 archive_cmds='' 9577 hardcode_direct=yes 9578 hardcode_direct_absolute=yes 9579 hardcode_libdir_separator=':' 9580 link_all_deplibs=yes 9581 file_list_spec='${wl}-f,' 9582 9583 if test "$GCC" = yes; then 9584 case $host_os in aix4.[012]|aix4.[012].*) 9585 # We only want to do this on AIX 4.2 and lower, the check 9586 # below for broken collect2 doesn't work under 4.3+ 9587 collect2name=`${CC} -print-prog-name=collect2` 9588 if test -f "$collect2name" && 9589 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9590 then 9591 # We have reworked collect2 9592 : 9593 else 9594 # We have old collect2 9595 hardcode_direct=unsupported 9596 # It fails to find uninstalled libraries when the uninstalled 9597 # path is not listed in the libpath. Setting hardcode_minus_L 9598 # to unsupported forces relinking 9599 hardcode_minus_L=yes 9600 hardcode_libdir_flag_spec='-L$libdir' 9601 hardcode_libdir_separator= 9602 fi 9603 ;; 9604 esac 9605 shared_flag='-shared' 9606 if test "$aix_use_runtimelinking" = yes; then 9607 shared_flag="$shared_flag "'${wl}-G' 9608 fi 9609 else 9610 # not using gcc 9611 if test "$host_cpu" = ia64; then 9612 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9613 # chokes on -Wl,-G. The following line is correct: 9614 shared_flag='-G' 9615 else 9616 if test "$aix_use_runtimelinking" = yes; then 9617 shared_flag='${wl}-G' 9618 else 9619 shared_flag='${wl}-bM:SRE' 9620 fi 9621 fi 9622 fi 9623 9624 export_dynamic_flag_spec='${wl}-bexpall' 9625 # It seems that -bexpall does not export symbols beginning with 9626 # underscore (_), so it is better to generate a list of symbols to export. 9627 always_export_symbols=yes 9628 if test "$aix_use_runtimelinking" = yes; then 9629 # Warning - without using the other runtime loading flags (-brtl), 9630 # -berok will link without error, but may produce a broken library. 9631 allow_undefined_flag='-berok' 9632 # Determine the default libpath from the value encoded in an 9633 # empty executable. 9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9635/* end confdefs.h. */ 9636 9637int 9638main () 9639{ 9640 9641 ; 9642 return 0; 9643} 9644_ACEOF 9645if ac_fn_c_try_link "$LINENO"; then : 9646 9647lt_aix_libpath_sed=' 9648 /Import File Strings/,/^$/ { 9649 /^0/ { 9650 s/^0 *\(.*\)$/\1/ 9651 p 9652 } 9653 }' 9654aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9655# Check for a 64-bit object if we didn't find anything. 9656if test -z "$aix_libpath"; then 9657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9658fi 9659fi 9660rm -f core conftest.err conftest.$ac_objext \ 9661 conftest$ac_exeext conftest.$ac_ext 9662if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9663 9664 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9665 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9666 else 9667 if test "$host_cpu" = ia64; then 9668 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9669 allow_undefined_flag="-z nodefs" 9670 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9671 else 9672 # Determine the default libpath from the value encoded in an 9673 # empty executable. 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676 9677int 9678main () 9679{ 9680 9681 ; 9682 return 0; 9683} 9684_ACEOF 9685if ac_fn_c_try_link "$LINENO"; then : 9686 9687lt_aix_libpath_sed=' 9688 /Import File Strings/,/^$/ { 9689 /^0/ { 9690 s/^0 *\(.*\)$/\1/ 9691 p 9692 } 9693 }' 9694aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9695# Check for a 64-bit object if we didn't find anything. 9696if test -z "$aix_libpath"; then 9697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9698fi 9699fi 9700rm -f core conftest.err conftest.$ac_objext \ 9701 conftest$ac_exeext conftest.$ac_ext 9702if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9703 9704 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9705 # Warning - without using the other run time loading flags, 9706 # -berok will link without error, but may produce a broken library. 9707 no_undefined_flag=' ${wl}-bernotok' 9708 allow_undefined_flag=' ${wl}-berok' 9709 if test "$with_gnu_ld" = yes; then 9710 # We only use this code for GNU lds that support --whole-archive. 9711 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9712 else 9713 # Exported symbols can be pulled into shared objects from archives 9714 whole_archive_flag_spec='$convenience' 9715 fi 9716 archive_cmds_need_lc=yes 9717 # This is similar to how AIX traditionally builds its shared libraries. 9718 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9719 fi 9720 fi 9721 ;; 9722 9723 amigaos*) 9724 case $host_cpu in 9725 powerpc) 9726 # see comment about AmigaOS4 .so support 9727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9728 archive_expsym_cmds='' 9729 ;; 9730 m68k) 9731 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)' 9732 hardcode_libdir_flag_spec='-L$libdir' 9733 hardcode_minus_L=yes 9734 ;; 9735 esac 9736 ;; 9737 9738 bsdi[45]*) 9739 export_dynamic_flag_spec=-rdynamic 9740 ;; 9741 9742 cygwin* | mingw* | pw32* | cegcc*) 9743 # When not using gcc, we currently assume that we are using 9744 # Microsoft Visual C++. 9745 # hardcode_libdir_flag_spec is actually meaningless, as there is 9746 # no search path for DLLs. 9747 hardcode_libdir_flag_spec=' ' 9748 allow_undefined_flag=unsupported 9749 # Tell ltmain to make .lib files, not .a files. 9750 libext=lib 9751 # Tell ltmain to make .dll files, not .so files. 9752 shrext_cmds=".dll" 9753 # FIXME: Setting linknames here is a bad hack. 9754 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9755 # The linker will automatically build a .lib file if we build a DLL. 9756 old_archive_from_new_cmds='true' 9757 # FIXME: Should let the user specify the lib program. 9758 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9759 fix_srcfile_path='`cygpath -w "$srcfile"`' 9760 enable_shared_with_static_runtimes=yes 9761 ;; 9762 9763 darwin* | rhapsody*) 9764 9765 9766 archive_cmds_need_lc=no 9767 hardcode_direct=no 9768 hardcode_automatic=yes 9769 hardcode_shlibpath_var=unsupported 9770 if test "$lt_cv_ld_force_load" = "yes"; then 9771 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9772 else 9773 whole_archive_flag_spec='' 9774 fi 9775 link_all_deplibs=yes 9776 allow_undefined_flag="$_lt_dar_allow_undefined" 9777 case $cc_basename in 9778 ifort*) _lt_dar_can_shared=yes ;; 9779 *) _lt_dar_can_shared=$GCC ;; 9780 esac 9781 if test "$_lt_dar_can_shared" = "yes"; then 9782 output_verbose_link_cmd=func_echo_all 9783 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9784 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9785 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9786 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9787 9788 else 9789 ld_shlibs=no 9790 fi 9791 9792 ;; 9793 9794 dgux*) 9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9796 hardcode_libdir_flag_spec='-L$libdir' 9797 hardcode_shlibpath_var=no 9798 ;; 9799 9800 freebsd1*) 9801 ld_shlibs=no 9802 ;; 9803 9804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9805 # support. Future versions do this automatically, but an explicit c++rt0.o 9806 # does not break anything, and helps significantly (at the cost of a little 9807 # extra space). 9808 freebsd2.2*) 9809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9810 hardcode_libdir_flag_spec='-R$libdir' 9811 hardcode_direct=yes 9812 hardcode_shlibpath_var=no 9813 ;; 9814 9815 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9816 freebsd2*) 9817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9818 hardcode_direct=yes 9819 hardcode_minus_L=yes 9820 hardcode_shlibpath_var=no 9821 ;; 9822 9823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9824 freebsd* | dragonfly*) 9825 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9826 hardcode_libdir_flag_spec='-R$libdir' 9827 hardcode_direct=yes 9828 hardcode_shlibpath_var=no 9829 ;; 9830 9831 hpux9*) 9832 if test "$GCC" = yes; then 9833 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' 9834 else 9835 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' 9836 fi 9837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9838 hardcode_libdir_separator=: 9839 hardcode_direct=yes 9840 9841 # hardcode_minus_L: Not really in the search PATH, 9842 # but as the default location of the library. 9843 hardcode_minus_L=yes 9844 export_dynamic_flag_spec='${wl}-E' 9845 ;; 9846 9847 hpux10*) 9848 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9850 else 9851 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9852 fi 9853 if test "$with_gnu_ld" = no; then 9854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9855 hardcode_libdir_flag_spec_ld='+b $libdir' 9856 hardcode_libdir_separator=: 9857 hardcode_direct=yes 9858 hardcode_direct_absolute=yes 9859 export_dynamic_flag_spec='${wl}-E' 9860 # hardcode_minus_L: Not really in the search PATH, 9861 # but as the default location of the library. 9862 hardcode_minus_L=yes 9863 fi 9864 ;; 9865 9866 hpux11*) 9867 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9868 case $host_cpu in 9869 hppa*64*) 9870 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9871 ;; 9872 ia64*) 9873 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9874 ;; 9875 *) 9876 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9877 ;; 9878 esac 9879 else 9880 case $host_cpu in 9881 hppa*64*) 9882 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9883 ;; 9884 ia64*) 9885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9886 ;; 9887 *) 9888 9889 # Older versions of the 11.00 compiler do not understand -b yet 9890 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9892$as_echo_n "checking if $CC understands -b... " >&6; } 9893if test "${lt_cv_prog_compiler__b+set}" = set; then : 9894 $as_echo_n "(cached) " >&6 9895else 9896 lt_cv_prog_compiler__b=no 9897 save_LDFLAGS="$LDFLAGS" 9898 LDFLAGS="$LDFLAGS -b" 9899 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9901 # The linker can only warn and ignore the option if not recognized 9902 # So say no if there are warnings 9903 if test -s conftest.err; then 9904 # Append any errors to the config.log. 9905 cat conftest.err 1>&5 9906 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9908 if diff conftest.exp conftest.er2 >/dev/null; then 9909 lt_cv_prog_compiler__b=yes 9910 fi 9911 else 9912 lt_cv_prog_compiler__b=yes 9913 fi 9914 fi 9915 $RM -r conftest* 9916 LDFLAGS="$save_LDFLAGS" 9917 9918fi 9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9920$as_echo "$lt_cv_prog_compiler__b" >&6; } 9921 9922if test x"$lt_cv_prog_compiler__b" = xyes; then 9923 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9924else 9925 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9926fi 9927 9928 ;; 9929 esac 9930 fi 9931 if test "$with_gnu_ld" = no; then 9932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9933 hardcode_libdir_separator=: 9934 9935 case $host_cpu in 9936 hppa*64*|ia64*) 9937 hardcode_direct=no 9938 hardcode_shlibpath_var=no 9939 ;; 9940 *) 9941 hardcode_direct=yes 9942 hardcode_direct_absolute=yes 9943 export_dynamic_flag_spec='${wl}-E' 9944 9945 # hardcode_minus_L: Not really in the search PATH, 9946 # but as the default location of the library. 9947 hardcode_minus_L=yes 9948 ;; 9949 esac 9950 fi 9951 ;; 9952 9953 irix5* | irix6* | nonstopux*) 9954 if test "$GCC" = yes; then 9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9956 # Try to use the -exported_symbol ld option, if it does not 9957 # work, assume that -exports_file does not work either and 9958 # implicitly export all symbols. 9959 save_LDFLAGS="$LDFLAGS" 9960 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963int foo(void) {} 9964_ACEOF 9965if ac_fn_c_try_link "$LINENO"; then : 9966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9967 9968fi 9969rm -f core conftest.err conftest.$ac_objext \ 9970 conftest$ac_exeext conftest.$ac_ext 9971 LDFLAGS="$save_LDFLAGS" 9972 else 9973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9975 fi 9976 archive_cmds_need_lc='no' 9977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9978 hardcode_libdir_separator=: 9979 inherit_rpath=yes 9980 link_all_deplibs=yes 9981 ;; 9982 9983 netbsd*) 9984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9986 else 9987 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9988 fi 9989 hardcode_libdir_flag_spec='-R$libdir' 9990 hardcode_direct=yes 9991 hardcode_shlibpath_var=no 9992 ;; 9993 9994 newsos6) 9995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9996 hardcode_direct=yes 9997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9998 hardcode_libdir_separator=: 9999 hardcode_shlibpath_var=no 10000 ;; 10001 10002 *nto* | *qnx*) 10003 ;; 10004 10005 openbsd*) 10006 if test -f /usr/libexec/ld.so; then 10007 hardcode_direct=yes 10008 hardcode_shlibpath_var=no 10009 hardcode_direct_absolute=yes 10010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10012 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10014 export_dynamic_flag_spec='${wl}-E' 10015 else 10016 case $host_os in 10017 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10019 hardcode_libdir_flag_spec='-R$libdir' 10020 ;; 10021 *) 10022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10024 ;; 10025 esac 10026 fi 10027 else 10028 ld_shlibs=no 10029 fi 10030 ;; 10031 10032 os2*) 10033 hardcode_libdir_flag_spec='-L$libdir' 10034 hardcode_minus_L=yes 10035 allow_undefined_flag=unsupported 10036 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' 10037 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10038 ;; 10039 10040 osf3*) 10041 if test "$GCC" = yes; then 10042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10043 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10044 else 10045 allow_undefined_flag=' -expect_unresolved \*' 10046 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10047 fi 10048 archive_cmds_need_lc='no' 10049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10050 hardcode_libdir_separator=: 10051 ;; 10052 10053 osf4* | osf5*) # as osf3* with the addition of -msym flag 10054 if test "$GCC" = yes; then 10055 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10056 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10058 else 10059 allow_undefined_flag=' -expect_unresolved \*' 10060 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10061 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10062 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10063 10064 # Both c and cxx compiler support -rpath directly 10065 hardcode_libdir_flag_spec='-rpath $libdir' 10066 fi 10067 archive_cmds_need_lc='no' 10068 hardcode_libdir_separator=: 10069 ;; 10070 10071 solaris*) 10072 no_undefined_flag=' -z defs' 10073 if test "$GCC" = yes; then 10074 wlarc='${wl}' 10075 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10077 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10078 else 10079 case `$CC -V 2>&1` in 10080 *"Compilers 5.0"*) 10081 wlarc='' 10082 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10085 ;; 10086 *) 10087 wlarc='${wl}' 10088 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10090 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10091 ;; 10092 esac 10093 fi 10094 hardcode_libdir_flag_spec='-R$libdir' 10095 hardcode_shlibpath_var=no 10096 case $host_os in 10097 solaris2.[0-5] | solaris2.[0-5].*) ;; 10098 *) 10099 # The compiler driver will combine and reorder linker options, 10100 # but understands `-z linker_flag'. GCC discards it without `$wl', 10101 # but is careful enough not to reorder. 10102 # Supported since Solaris 2.6 (maybe 2.5.1?) 10103 if test "$GCC" = yes; then 10104 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10105 else 10106 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10107 fi 10108 ;; 10109 esac 10110 link_all_deplibs=yes 10111 ;; 10112 10113 sunos4*) 10114 if test "x$host_vendor" = xsequent; then 10115 # Use $CC to link under sequent, because it throws in some extra .o 10116 # files that make .init and .fini sections work. 10117 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10118 else 10119 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10120 fi 10121 hardcode_libdir_flag_spec='-L$libdir' 10122 hardcode_direct=yes 10123 hardcode_minus_L=yes 10124 hardcode_shlibpath_var=no 10125 ;; 10126 10127 sysv4) 10128 case $host_vendor in 10129 sni) 10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10131 hardcode_direct=yes # is this really true??? 10132 ;; 10133 siemens) 10134 ## LD is ld it makes a PLAMLIB 10135 ## CC just makes a GrossModule. 10136 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10137 reload_cmds='$CC -r -o $output$reload_objs' 10138 hardcode_direct=no 10139 ;; 10140 motorola) 10141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10142 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10143 ;; 10144 esac 10145 runpath_var='LD_RUN_PATH' 10146 hardcode_shlibpath_var=no 10147 ;; 10148 10149 sysv4.3*) 10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10151 hardcode_shlibpath_var=no 10152 export_dynamic_flag_spec='-Bexport' 10153 ;; 10154 10155 sysv4*MP*) 10156 if test -d /usr/nec; then 10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10158 hardcode_shlibpath_var=no 10159 runpath_var=LD_RUN_PATH 10160 hardcode_runpath_var=yes 10161 ld_shlibs=yes 10162 fi 10163 ;; 10164 10165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10166 no_undefined_flag='${wl}-z,text' 10167 archive_cmds_need_lc=no 10168 hardcode_shlibpath_var=no 10169 runpath_var='LD_RUN_PATH' 10170 10171 if test "$GCC" = yes; then 10172 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10173 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10174 else 10175 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10176 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10177 fi 10178 ;; 10179 10180 sysv5* | sco3.2v5* | sco5v6*) 10181 # Note: We can NOT use -z defs as we might desire, because we do not 10182 # link with -lc, and that would cause any symbols used from libc to 10183 # always be unresolved, which means just about no library would 10184 # ever link correctly. If we're not using GNU ld we use -z text 10185 # though, which does catch some bad symbols but isn't as heavy-handed 10186 # as -z defs. 10187 no_undefined_flag='${wl}-z,text' 10188 allow_undefined_flag='${wl}-z,nodefs' 10189 archive_cmds_need_lc=no 10190 hardcode_shlibpath_var=no 10191 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10192 hardcode_libdir_separator=':' 10193 link_all_deplibs=yes 10194 export_dynamic_flag_spec='${wl}-Bexport' 10195 runpath_var='LD_RUN_PATH' 10196 10197 if test "$GCC" = yes; then 10198 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10199 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10200 else 10201 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10202 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10203 fi 10204 ;; 10205 10206 uts4*) 10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10208 hardcode_libdir_flag_spec='-L$libdir' 10209 hardcode_shlibpath_var=no 10210 ;; 10211 10212 *) 10213 ld_shlibs=no 10214 ;; 10215 esac 10216 10217 if test x$host_vendor = xsni; then 10218 case $host in 10219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10220 export_dynamic_flag_spec='${wl}-Blargedynsym' 10221 ;; 10222 esac 10223 fi 10224 fi 10225 10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10227$as_echo "$ld_shlibs" >&6; } 10228test "$ld_shlibs" = no && can_build_shared=no 10229 10230with_gnu_ld=$with_gnu_ld 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246# 10247# Do we need to explicitly link libc? 10248# 10249case "x$archive_cmds_need_lc" in 10250x|xyes) 10251 # Assume -lc should be added 10252 archive_cmds_need_lc=yes 10253 10254 if test "$enable_shared" = yes && test "$GCC" = yes; then 10255 case $archive_cmds in 10256 *'~'*) 10257 # FIXME: we may have to deal with multi-command sequences. 10258 ;; 10259 '$CC '*) 10260 # Test whether the compiler implicitly links with -lc since on some 10261 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10262 # to ld, don't add -lc before -lgcc. 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10264$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10265if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10266 $as_echo_n "(cached) " >&6 10267else 10268 $RM conftest* 10269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10270 10271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10272 (eval $ac_compile) 2>&5 10273 ac_status=$? 10274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10275 test $ac_status = 0; } 2>conftest.err; then 10276 soname=conftest 10277 lib=conftest 10278 libobjs=conftest.$ac_objext 10279 deplibs= 10280 wl=$lt_prog_compiler_wl 10281 pic_flag=$lt_prog_compiler_pic 10282 compiler_flags=-v 10283 linker_flags=-v 10284 verstring= 10285 output_objdir=. 10286 libname=conftest 10287 lt_save_allow_undefined_flag=$allow_undefined_flag 10288 allow_undefined_flag= 10289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10290 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10291 ac_status=$? 10292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10293 test $ac_status = 0; } 10294 then 10295 lt_cv_archive_cmds_need_lc=no 10296 else 10297 lt_cv_archive_cmds_need_lc=yes 10298 fi 10299 allow_undefined_flag=$lt_save_allow_undefined_flag 10300 else 10301 cat conftest.err 1>&5 10302 fi 10303 $RM conftest* 10304 10305fi 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10307$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10308 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10309 ;; 10310 esac 10311 fi 10312 ;; 10313esac 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10472$as_echo_n "checking dynamic linker characteristics... " >&6; } 10473 10474if test "$GCC" = yes; then 10475 case $host_os in 10476 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10477 *) lt_awk_arg="/^libraries:/" ;; 10478 esac 10479 case $host_os in 10480 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10481 *) lt_sed_strip_eq="s,=/,/,g" ;; 10482 esac 10483 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10484 case $lt_search_path_spec in 10485 *\;*) 10486 # if the path contains ";" then we assume it to be the separator 10487 # otherwise default to the standard path separator (i.e. ":") - it is 10488 # assumed that no part of a normal pathname contains ";" but that should 10489 # okay in the real world where ";" in dirpaths is itself problematic. 10490 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10491 ;; 10492 *) 10493 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10494 ;; 10495 esac 10496 # Ok, now we have the path, separated by spaces, we can step through it 10497 # and add multilib dir if necessary. 10498 lt_tmp_lt_search_path_spec= 10499 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10500 for lt_sys_path in $lt_search_path_spec; do 10501 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10502 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10503 else 10504 test -d "$lt_sys_path" && \ 10505 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10506 fi 10507 done 10508 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10509BEGIN {RS=" "; FS="/|\n";} { 10510 lt_foo=""; 10511 lt_count=0; 10512 for (lt_i = NF; lt_i > 0; lt_i--) { 10513 if ($lt_i != "" && $lt_i != ".") { 10514 if ($lt_i == "..") { 10515 lt_count++; 10516 } else { 10517 if (lt_count == 0) { 10518 lt_foo="/" $lt_i lt_foo; 10519 } else { 10520 lt_count--; 10521 } 10522 } 10523 } 10524 } 10525 if (lt_foo != "") { lt_freq[lt_foo]++; } 10526 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10527}'` 10528 # AWK program above erroneously prepends '/' to C:/dos/paths 10529 # for these hosts. 10530 case $host_os in 10531 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10532 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10533 esac 10534 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10535else 10536 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10537fi 10538library_names_spec= 10539libname_spec='lib$name' 10540soname_spec= 10541shrext_cmds=".so" 10542postinstall_cmds= 10543postuninstall_cmds= 10544finish_cmds= 10545finish_eval= 10546shlibpath_var= 10547shlibpath_overrides_runpath=unknown 10548version_type=none 10549dynamic_linker="$host_os ld.so" 10550sys_lib_dlsearch_path_spec="/lib /usr/lib" 10551need_lib_prefix=unknown 10552hardcode_into_libs=no 10553 10554# when you set need_version to no, make sure it does not cause -set_version 10555# flags to be left without arguments 10556need_version=unknown 10557 10558case $host_os in 10559aix3*) 10560 version_type=linux 10561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10562 shlibpath_var=LIBPATH 10563 10564 # AIX 3 has no versioning support, so we append a major version to the name. 10565 soname_spec='${libname}${release}${shared_ext}$major' 10566 ;; 10567 10568aix[4-9]*) 10569 version_type=linux 10570 need_lib_prefix=no 10571 need_version=no 10572 hardcode_into_libs=yes 10573 if test "$host_cpu" = ia64; then 10574 # AIX 5 supports IA64 10575 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10576 shlibpath_var=LD_LIBRARY_PATH 10577 else 10578 # With GCC up to 2.95.x, collect2 would create an import file 10579 # for dependence libraries. The import file would start with 10580 # the line `#! .'. This would cause the generated library to 10581 # depend on `.', always an invalid library. This was fixed in 10582 # development snapshots of GCC prior to 3.0. 10583 case $host_os in 10584 aix4 | aix4.[01] | aix4.[01].*) 10585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10586 echo ' yes ' 10587 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10588 : 10589 else 10590 can_build_shared=no 10591 fi 10592 ;; 10593 esac 10594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10595 # soname into executable. Probably we can add versioning support to 10596 # collect2, so additional links can be useful in future. 10597 if test "$aix_use_runtimelinking" = yes; then 10598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10599 # instead of lib<name>.a to let people know that these are not 10600 # typical AIX shared libraries. 10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10602 else 10603 # We preserve .a as extension for shared libraries through AIX4.2 10604 # and later when we are not doing run time linking. 10605 library_names_spec='${libname}${release}.a $libname.a' 10606 soname_spec='${libname}${release}${shared_ext}$major' 10607 fi 10608 shlibpath_var=LIBPATH 10609 fi 10610 ;; 10611 10612amigaos*) 10613 case $host_cpu in 10614 powerpc) 10615 # Since July 2007 AmigaOS4 officially supports .so libraries. 10616 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10618 ;; 10619 m68k) 10620 library_names_spec='$libname.ixlibrary $libname.a' 10621 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10622 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 10623 ;; 10624 esac 10625 ;; 10626 10627beos*) 10628 library_names_spec='${libname}${shared_ext}' 10629 dynamic_linker="$host_os ld.so" 10630 shlibpath_var=LIBRARY_PATH 10631 ;; 10632 10633bsdi[45]*) 10634 version_type=linux 10635 need_version=no 10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10637 soname_spec='${libname}${release}${shared_ext}$major' 10638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10639 shlibpath_var=LD_LIBRARY_PATH 10640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10642 # the default ld.so.conf also contains /usr/contrib/lib and 10643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10644 # libtool to hard-code these into programs 10645 ;; 10646 10647cygwin* | mingw* | pw32* | cegcc*) 10648 version_type=windows 10649 shrext_cmds=".dll" 10650 need_version=no 10651 need_lib_prefix=no 10652 10653 case $GCC,$host_os in 10654 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10655 library_names_spec='$libname.dll.a' 10656 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10657 postinstall_cmds='base_file=`basename \${file}`~ 10658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10659 dldir=$destdir/`dirname \$dlpath`~ 10660 test -d \$dldir || mkdir -p \$dldir~ 10661 $install_prog $dir/$dlname \$dldir/$dlname~ 10662 chmod a+x \$dldir/$dlname~ 10663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10665 fi' 10666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10667 dlpath=$dir/\$dldll~ 10668 $RM \$dlpath' 10669 shlibpath_overrides_runpath=yes 10670 10671 case $host_os in 10672 cygwin*) 10673 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10675 10676 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10677 ;; 10678 mingw* | cegcc*) 10679 # MinGW DLLs use traditional 'lib' prefix 10680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10681 ;; 10682 pw32*) 10683 # pw32 DLLs use 'pw' prefix rather than 'lib' 10684 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10685 ;; 10686 esac 10687 ;; 10688 10689 *) 10690 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10691 ;; 10692 esac 10693 dynamic_linker='Win32 ld.exe' 10694 # FIXME: first we should search . and the directory the executable is in 10695 shlibpath_var=PATH 10696 ;; 10697 10698darwin* | rhapsody*) 10699 dynamic_linker="$host_os dyld" 10700 version_type=darwin 10701 need_lib_prefix=no 10702 need_version=no 10703 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10704 soname_spec='${libname}${release}${major}$shared_ext' 10705 shlibpath_overrides_runpath=yes 10706 shlibpath_var=DYLD_LIBRARY_PATH 10707 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10708 10709 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10711 ;; 10712 10713dgux*) 10714 version_type=linux 10715 need_lib_prefix=no 10716 need_version=no 10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10718 soname_spec='${libname}${release}${shared_ext}$major' 10719 shlibpath_var=LD_LIBRARY_PATH 10720 ;; 10721 10722freebsd1*) 10723 dynamic_linker=no 10724 ;; 10725 10726freebsd* | dragonfly*) 10727 # DragonFly does not have aout. When/if they implement a new 10728 # versioning mechanism, adjust this. 10729 if test -x /usr/bin/objformat; then 10730 objformat=`/usr/bin/objformat` 10731 else 10732 case $host_os in 10733 freebsd[123]*) objformat=aout ;; 10734 *) objformat=elf ;; 10735 esac 10736 fi 10737 version_type=freebsd-$objformat 10738 case $version_type in 10739 freebsd-elf*) 10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10741 need_version=no 10742 need_lib_prefix=no 10743 ;; 10744 freebsd-*) 10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10746 need_version=yes 10747 ;; 10748 esac 10749 shlibpath_var=LD_LIBRARY_PATH 10750 case $host_os in 10751 freebsd2*) 10752 shlibpath_overrides_runpath=yes 10753 ;; 10754 freebsd3.[01]* | freebsdelf3.[01]*) 10755 shlibpath_overrides_runpath=yes 10756 hardcode_into_libs=yes 10757 ;; 10758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10760 shlibpath_overrides_runpath=no 10761 hardcode_into_libs=yes 10762 ;; 10763 *) # from 4.6 on, and DragonFly 10764 shlibpath_overrides_runpath=yes 10765 hardcode_into_libs=yes 10766 ;; 10767 esac 10768 ;; 10769 10770gnu*) 10771 version_type=linux 10772 need_lib_prefix=no 10773 need_version=no 10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10775 soname_spec='${libname}${release}${shared_ext}$major' 10776 shlibpath_var=LD_LIBRARY_PATH 10777 hardcode_into_libs=yes 10778 ;; 10779 10780haiku*) 10781 version_type=linux 10782 need_lib_prefix=no 10783 need_version=no 10784 dynamic_linker="$host_os runtime_loader" 10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10786 soname_spec='${libname}${release}${shared_ext}$major' 10787 shlibpath_var=LIBRARY_PATH 10788 shlibpath_overrides_runpath=yes 10789 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10790 hardcode_into_libs=yes 10791 ;; 10792 10793hpux9* | hpux10* | hpux11*) 10794 # Give a soname corresponding to the major version so that dld.sl refuses to 10795 # link against other versions. 10796 version_type=sunos 10797 need_lib_prefix=no 10798 need_version=no 10799 case $host_cpu in 10800 ia64*) 10801 shrext_cmds='.so' 10802 hardcode_into_libs=yes 10803 dynamic_linker="$host_os dld.so" 10804 shlibpath_var=LD_LIBRARY_PATH 10805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10807 soname_spec='${libname}${release}${shared_ext}$major' 10808 if test "X$HPUX_IA64_MODE" = X32; then 10809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10810 else 10811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10812 fi 10813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10814 ;; 10815 hppa*64*) 10816 shrext_cmds='.sl' 10817 hardcode_into_libs=yes 10818 dynamic_linker="$host_os dld.sl" 10819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10822 soname_spec='${libname}${release}${shared_ext}$major' 10823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10825 ;; 10826 *) 10827 shrext_cmds='.sl' 10828 dynamic_linker="$host_os dld.sl" 10829 shlibpath_var=SHLIB_PATH 10830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 ;; 10834 esac 10835 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10836 postinstall_cmds='chmod 555 $lib' 10837 # or fails outright, so override atomically: 10838 install_override_mode=555 10839 ;; 10840 10841interix[3-9]*) 10842 version_type=linux 10843 need_lib_prefix=no 10844 need_version=no 10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10846 soname_spec='${libname}${release}${shared_ext}$major' 10847 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10848 shlibpath_var=LD_LIBRARY_PATH 10849 shlibpath_overrides_runpath=no 10850 hardcode_into_libs=yes 10851 ;; 10852 10853irix5* | irix6* | nonstopux*) 10854 case $host_os in 10855 nonstopux*) version_type=nonstopux ;; 10856 *) 10857 if test "$lt_cv_prog_gnu_ld" = yes; then 10858 version_type=linux 10859 else 10860 version_type=irix 10861 fi ;; 10862 esac 10863 need_lib_prefix=no 10864 need_version=no 10865 soname_spec='${libname}${release}${shared_ext}$major' 10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10867 case $host_os in 10868 irix5* | nonstopux*) 10869 libsuff= shlibsuff= 10870 ;; 10871 *) 10872 case $LD in # libtool.m4 will add one of these switches to LD 10873 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10874 libsuff= shlibsuff= libmagic=32-bit;; 10875 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10876 libsuff=32 shlibsuff=N32 libmagic=N32;; 10877 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10878 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10879 *) libsuff= shlibsuff= libmagic=never-match;; 10880 esac 10881 ;; 10882 esac 10883 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10884 shlibpath_overrides_runpath=no 10885 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10886 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10887 hardcode_into_libs=yes 10888 ;; 10889 10890# No shared lib support for Linux oldld, aout, or coff. 10891linux*oldld* | linux*aout* | linux*coff*) 10892 dynamic_linker=no 10893 ;; 10894 10895# This must be Linux ELF. 10896linux* | k*bsd*-gnu | kopensolaris*-gnu) 10897 version_type=linux 10898 need_lib_prefix=no 10899 need_version=no 10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10901 soname_spec='${libname}${release}${shared_ext}$major' 10902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10903 shlibpath_var=LD_LIBRARY_PATH 10904 shlibpath_overrides_runpath=no 10905 10906 # Some binutils ld are patched to set DT_RUNPATH 10907 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10908 $as_echo_n "(cached) " >&6 10909else 10910 lt_cv_shlibpath_overrides_runpath=no 10911 save_LDFLAGS=$LDFLAGS 10912 save_libdir=$libdir 10913 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10914 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10916/* end confdefs.h. */ 10917 10918int 10919main () 10920{ 10921 10922 ; 10923 return 0; 10924} 10925_ACEOF 10926if ac_fn_c_try_link "$LINENO"; then : 10927 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10928 lt_cv_shlibpath_overrides_runpath=yes 10929fi 10930fi 10931rm -f core conftest.err conftest.$ac_objext \ 10932 conftest$ac_exeext conftest.$ac_ext 10933 LDFLAGS=$save_LDFLAGS 10934 libdir=$save_libdir 10935 10936fi 10937 10938 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10939 10940 # This implies no fast_install, which is unacceptable. 10941 # Some rework will be needed to allow for fast_install 10942 # before this can be enabled. 10943 hardcode_into_libs=yes 10944 10945 # Add ABI-specific directories to the system library path. 10946 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10947 10948 # Append ld.so.conf contents to the search path 10949 if test -f /etc/ld.so.conf; then 10950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10951 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10952 10953 fi 10954 10955 # We used to test for /lib/ld.so.1 and disable shared libraries on 10956 # powerpc, because MkLinux only supported shared libraries with the 10957 # GNU dynamic linker. Since this was broken with cross compilers, 10958 # most powerpc-linux boxes support dynamic linking these days and 10959 # people can always --disable-shared, the test was removed, and we 10960 # assume the GNU/Linux dynamic linker is in use. 10961 dynamic_linker='GNU/Linux ld.so' 10962 ;; 10963 10964netbsd*) 10965 version_type=sunos 10966 need_lib_prefix=no 10967 need_version=no 10968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10971 dynamic_linker='NetBSD (a.out) ld.so' 10972 else 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10974 soname_spec='${libname}${release}${shared_ext}$major' 10975 dynamic_linker='NetBSD ld.elf_so' 10976 fi 10977 shlibpath_var=LD_LIBRARY_PATH 10978 shlibpath_overrides_runpath=yes 10979 hardcode_into_libs=yes 10980 ;; 10981 10982newsos6) 10983 version_type=linux 10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10985 shlibpath_var=LD_LIBRARY_PATH 10986 shlibpath_overrides_runpath=yes 10987 ;; 10988 10989*nto* | *qnx*) 10990 version_type=qnx 10991 need_lib_prefix=no 10992 need_version=no 10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10994 soname_spec='${libname}${release}${shared_ext}$major' 10995 shlibpath_var=LD_LIBRARY_PATH 10996 shlibpath_overrides_runpath=no 10997 hardcode_into_libs=yes 10998 dynamic_linker='ldqnx.so' 10999 ;; 11000 11001openbsd*) 11002 version_type=sunos 11003 sys_lib_dlsearch_path_spec="/usr/lib" 11004 need_lib_prefix=no 11005 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11006 case $host_os in 11007 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11008 *) need_version=no ;; 11009 esac 11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11012 shlibpath_var=LD_LIBRARY_PATH 11013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11014 case $host_os in 11015 openbsd2.[89] | openbsd2.[89].*) 11016 shlibpath_overrides_runpath=no 11017 ;; 11018 *) 11019 shlibpath_overrides_runpath=yes 11020 ;; 11021 esac 11022 else 11023 shlibpath_overrides_runpath=yes 11024 fi 11025 ;; 11026 11027os2*) 11028 libname_spec='$name' 11029 shrext_cmds=".dll" 11030 need_lib_prefix=no 11031 library_names_spec='$libname${shared_ext} $libname.a' 11032 dynamic_linker='OS/2 ld.exe' 11033 shlibpath_var=LIBPATH 11034 ;; 11035 11036osf3* | osf4* | osf5*) 11037 version_type=osf 11038 need_lib_prefix=no 11039 need_version=no 11040 soname_spec='${libname}${release}${shared_ext}$major' 11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11042 shlibpath_var=LD_LIBRARY_PATH 11043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11044 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11045 ;; 11046 11047rdos*) 11048 dynamic_linker=no 11049 ;; 11050 11051solaris*) 11052 version_type=linux 11053 need_lib_prefix=no 11054 need_version=no 11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11056 soname_spec='${libname}${release}${shared_ext}$major' 11057 shlibpath_var=LD_LIBRARY_PATH 11058 shlibpath_overrides_runpath=yes 11059 hardcode_into_libs=yes 11060 # ldd complains unless libraries are executable 11061 postinstall_cmds='chmod +x $lib' 11062 ;; 11063 11064sunos4*) 11065 version_type=sunos 11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11068 shlibpath_var=LD_LIBRARY_PATH 11069 shlibpath_overrides_runpath=yes 11070 if test "$with_gnu_ld" = yes; then 11071 need_lib_prefix=no 11072 fi 11073 need_version=yes 11074 ;; 11075 11076sysv4 | sysv4.3*) 11077 version_type=linux 11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11079 soname_spec='${libname}${release}${shared_ext}$major' 11080 shlibpath_var=LD_LIBRARY_PATH 11081 case $host_vendor in 11082 sni) 11083 shlibpath_overrides_runpath=no 11084 need_lib_prefix=no 11085 runpath_var=LD_RUN_PATH 11086 ;; 11087 siemens) 11088 need_lib_prefix=no 11089 ;; 11090 motorola) 11091 need_lib_prefix=no 11092 need_version=no 11093 shlibpath_overrides_runpath=no 11094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11095 ;; 11096 esac 11097 ;; 11098 11099sysv4*MP*) 11100 if test -d /usr/nec ;then 11101 version_type=linux 11102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11103 soname_spec='$libname${shared_ext}.$major' 11104 shlibpath_var=LD_LIBRARY_PATH 11105 fi 11106 ;; 11107 11108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11109 version_type=freebsd-elf 11110 need_lib_prefix=no 11111 need_version=no 11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11113 soname_spec='${libname}${release}${shared_ext}$major' 11114 shlibpath_var=LD_LIBRARY_PATH 11115 shlibpath_overrides_runpath=yes 11116 hardcode_into_libs=yes 11117 if test "$with_gnu_ld" = yes; then 11118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11119 else 11120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11121 case $host_os in 11122 sco3.2v5*) 11123 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11124 ;; 11125 esac 11126 fi 11127 sys_lib_dlsearch_path_spec='/usr/lib' 11128 ;; 11129 11130tpf*) 11131 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11132 version_type=linux 11133 need_lib_prefix=no 11134 need_version=no 11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11136 shlibpath_var=LD_LIBRARY_PATH 11137 shlibpath_overrides_runpath=no 11138 hardcode_into_libs=yes 11139 ;; 11140 11141uts4*) 11142 version_type=linux 11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11144 soname_spec='${libname}${release}${shared_ext}$major' 11145 shlibpath_var=LD_LIBRARY_PATH 11146 ;; 11147 11148*) 11149 dynamic_linker=no 11150 ;; 11151esac 11152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11153$as_echo "$dynamic_linker" >&6; } 11154test "$dynamic_linker" = no && can_build_shared=no 11155 11156variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11157if test "$GCC" = yes; then 11158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11159fi 11160 11161if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11162 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11163fi 11164if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11165 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11166fi 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11260$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11261hardcode_action= 11262if test -n "$hardcode_libdir_flag_spec" || 11263 test -n "$runpath_var" || 11264 test "X$hardcode_automatic" = "Xyes" ; then 11265 11266 # We can hardcode non-existent directories. 11267 if test "$hardcode_direct" != no && 11268 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11269 # have to relink, otherwise we might link with an installed library 11270 # when we should be linking with a yet-to-be-installed one 11271 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11272 test "$hardcode_minus_L" != no; then 11273 # Linking always hardcodes the temporary library directory. 11274 hardcode_action=relink 11275 else 11276 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11277 hardcode_action=immediate 11278 fi 11279else 11280 # We cannot hardcode anything, or else we can only hardcode existing 11281 # directories. 11282 hardcode_action=unsupported 11283fi 11284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11285$as_echo "$hardcode_action" >&6; } 11286 11287if test "$hardcode_action" = relink || 11288 test "$inherit_rpath" = yes; then 11289 # Fast installation is not supported 11290 enable_fast_install=no 11291elif test "$shlibpath_overrides_runpath" = yes || 11292 test "$enable_shared" = no; then 11293 # Fast installation is not necessary 11294 enable_fast_install=needless 11295fi 11296 11297 11298 11299 11300 11301 11302 if test "x$enable_dlopen" != xyes; then 11303 enable_dlopen=unknown 11304 enable_dlopen_self=unknown 11305 enable_dlopen_self_static=unknown 11306else 11307 lt_cv_dlopen=no 11308 lt_cv_dlopen_libs= 11309 11310 case $host_os in 11311 beos*) 11312 lt_cv_dlopen="load_add_on" 11313 lt_cv_dlopen_libs= 11314 lt_cv_dlopen_self=yes 11315 ;; 11316 11317 mingw* | pw32* | cegcc*) 11318 lt_cv_dlopen="LoadLibrary" 11319 lt_cv_dlopen_libs= 11320 ;; 11321 11322 cygwin*) 11323 lt_cv_dlopen="dlopen" 11324 lt_cv_dlopen_libs= 11325 ;; 11326 11327 darwin*) 11328 # if libdl is installed we need to link against it 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11330$as_echo_n "checking for dlopen in -ldl... " >&6; } 11331if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11332 $as_echo_n "(cached) " >&6 11333else 11334 ac_check_lib_save_LIBS=$LIBS 11335LIBS="-ldl $LIBS" 11336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11337/* end confdefs.h. */ 11338 11339/* Override any GCC internal prototype to avoid an error. 11340 Use char because int might match the return type of a GCC 11341 builtin and then its argument prototype would still apply. */ 11342#ifdef __cplusplus 11343extern "C" 11344#endif 11345char dlopen (); 11346int 11347main () 11348{ 11349return dlopen (); 11350 ; 11351 return 0; 11352} 11353_ACEOF 11354if ac_fn_c_try_link "$LINENO"; then : 11355 ac_cv_lib_dl_dlopen=yes 11356else 11357 ac_cv_lib_dl_dlopen=no 11358fi 11359rm -f core conftest.err conftest.$ac_objext \ 11360 conftest$ac_exeext conftest.$ac_ext 11361LIBS=$ac_check_lib_save_LIBS 11362fi 11363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11364$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11365if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11367else 11368 11369 lt_cv_dlopen="dyld" 11370 lt_cv_dlopen_libs= 11371 lt_cv_dlopen_self=yes 11372 11373fi 11374 11375 ;; 11376 11377 *) 11378 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11379if test "x$ac_cv_func_shl_load" = x""yes; then : 11380 lt_cv_dlopen="shl_load" 11381else 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11383$as_echo_n "checking for shl_load in -ldld... " >&6; } 11384if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11385 $as_echo_n "(cached) " >&6 11386else 11387 ac_check_lib_save_LIBS=$LIBS 11388LIBS="-ldld $LIBS" 11389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11390/* end confdefs.h. */ 11391 11392/* Override any GCC internal prototype to avoid an error. 11393 Use char because int might match the return type of a GCC 11394 builtin and then its argument prototype would still apply. */ 11395#ifdef __cplusplus 11396extern "C" 11397#endif 11398char shl_load (); 11399int 11400main () 11401{ 11402return shl_load (); 11403 ; 11404 return 0; 11405} 11406_ACEOF 11407if ac_fn_c_try_link "$LINENO"; then : 11408 ac_cv_lib_dld_shl_load=yes 11409else 11410 ac_cv_lib_dld_shl_load=no 11411fi 11412rm -f core conftest.err conftest.$ac_objext \ 11413 conftest$ac_exeext conftest.$ac_ext 11414LIBS=$ac_check_lib_save_LIBS 11415fi 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11417$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11418if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11419 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11420else 11421 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11422if test "x$ac_cv_func_dlopen" = x""yes; then : 11423 lt_cv_dlopen="dlopen" 11424else 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11426$as_echo_n "checking for dlopen in -ldl... " >&6; } 11427if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11428 $as_echo_n "(cached) " >&6 11429else 11430 ac_check_lib_save_LIBS=$LIBS 11431LIBS="-ldl $LIBS" 11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11433/* end confdefs.h. */ 11434 11435/* Override any GCC internal prototype to avoid an error. 11436 Use char because int might match the return type of a GCC 11437 builtin and then its argument prototype would still apply. */ 11438#ifdef __cplusplus 11439extern "C" 11440#endif 11441char dlopen (); 11442int 11443main () 11444{ 11445return dlopen (); 11446 ; 11447 return 0; 11448} 11449_ACEOF 11450if ac_fn_c_try_link "$LINENO"; then : 11451 ac_cv_lib_dl_dlopen=yes 11452else 11453 ac_cv_lib_dl_dlopen=no 11454fi 11455rm -f core conftest.err conftest.$ac_objext \ 11456 conftest$ac_exeext conftest.$ac_ext 11457LIBS=$ac_check_lib_save_LIBS 11458fi 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11460$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11461if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11463else 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11465$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11466if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11467 $as_echo_n "(cached) " >&6 11468else 11469 ac_check_lib_save_LIBS=$LIBS 11470LIBS="-lsvld $LIBS" 11471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11472/* end confdefs.h. */ 11473 11474/* Override any GCC internal prototype to avoid an error. 11475 Use char because int might match the return type of a GCC 11476 builtin and then its argument prototype would still apply. */ 11477#ifdef __cplusplus 11478extern "C" 11479#endif 11480char dlopen (); 11481int 11482main () 11483{ 11484return dlopen (); 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489if ac_fn_c_try_link "$LINENO"; then : 11490 ac_cv_lib_svld_dlopen=yes 11491else 11492 ac_cv_lib_svld_dlopen=no 11493fi 11494rm -f core conftest.err conftest.$ac_objext \ 11495 conftest$ac_exeext conftest.$ac_ext 11496LIBS=$ac_check_lib_save_LIBS 11497fi 11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11499$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11500if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11502else 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11504$as_echo_n "checking for dld_link in -ldld... " >&6; } 11505if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11506 $as_echo_n "(cached) " >&6 11507else 11508 ac_check_lib_save_LIBS=$LIBS 11509LIBS="-ldld $LIBS" 11510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11511/* end confdefs.h. */ 11512 11513/* Override any GCC internal prototype to avoid an error. 11514 Use char because int might match the return type of a GCC 11515 builtin and then its argument prototype would still apply. */ 11516#ifdef __cplusplus 11517extern "C" 11518#endif 11519char dld_link (); 11520int 11521main () 11522{ 11523return dld_link (); 11524 ; 11525 return 0; 11526} 11527_ACEOF 11528if ac_fn_c_try_link "$LINENO"; then : 11529 ac_cv_lib_dld_dld_link=yes 11530else 11531 ac_cv_lib_dld_dld_link=no 11532fi 11533rm -f core conftest.err conftest.$ac_objext \ 11534 conftest$ac_exeext conftest.$ac_ext 11535LIBS=$ac_check_lib_save_LIBS 11536fi 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11538$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11539if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11540 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11541fi 11542 11543 11544fi 11545 11546 11547fi 11548 11549 11550fi 11551 11552 11553fi 11554 11555 11556fi 11557 11558 ;; 11559 esac 11560 11561 if test "x$lt_cv_dlopen" != xno; then 11562 enable_dlopen=yes 11563 else 11564 enable_dlopen=no 11565 fi 11566 11567 case $lt_cv_dlopen in 11568 dlopen) 11569 save_CPPFLAGS="$CPPFLAGS" 11570 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11571 11572 save_LDFLAGS="$LDFLAGS" 11573 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11574 11575 save_LIBS="$LIBS" 11576 LIBS="$lt_cv_dlopen_libs $LIBS" 11577 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11579$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11580if test "${lt_cv_dlopen_self+set}" = set; then : 11581 $as_echo_n "(cached) " >&6 11582else 11583 if test "$cross_compiling" = yes; then : 11584 lt_cv_dlopen_self=cross 11585else 11586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11587 lt_status=$lt_dlunknown 11588 cat > conftest.$ac_ext <<_LT_EOF 11589#line $LINENO "configure" 11590#include "confdefs.h" 11591 11592#if HAVE_DLFCN_H 11593#include <dlfcn.h> 11594#endif 11595 11596#include <stdio.h> 11597 11598#ifdef RTLD_GLOBAL 11599# define LT_DLGLOBAL RTLD_GLOBAL 11600#else 11601# ifdef DL_GLOBAL 11602# define LT_DLGLOBAL DL_GLOBAL 11603# else 11604# define LT_DLGLOBAL 0 11605# endif 11606#endif 11607 11608/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11609 find out it does not work in some platform. */ 11610#ifndef LT_DLLAZY_OR_NOW 11611# ifdef RTLD_LAZY 11612# define LT_DLLAZY_OR_NOW RTLD_LAZY 11613# else 11614# ifdef DL_LAZY 11615# define LT_DLLAZY_OR_NOW DL_LAZY 11616# else 11617# ifdef RTLD_NOW 11618# define LT_DLLAZY_OR_NOW RTLD_NOW 11619# else 11620# ifdef DL_NOW 11621# define LT_DLLAZY_OR_NOW DL_NOW 11622# else 11623# define LT_DLLAZY_OR_NOW 0 11624# endif 11625# endif 11626# endif 11627# endif 11628#endif 11629 11630/* When -fvisbility=hidden is used, assume the code has been annotated 11631 correspondingly for the symbols needed. */ 11632#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11633void fnord () __attribute__((visibility("default"))); 11634#endif 11635 11636void fnord () { int i=42; } 11637int main () 11638{ 11639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11640 int status = $lt_dlunknown; 11641 11642 if (self) 11643 { 11644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11645 else 11646 { 11647 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11648 else puts (dlerror ()); 11649 } 11650 /* dlclose (self); */ 11651 } 11652 else 11653 puts (dlerror ()); 11654 11655 return status; 11656} 11657_LT_EOF 11658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11659 (eval $ac_link) 2>&5 11660 ac_status=$? 11661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11662 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11663 (./conftest; exit; ) >&5 2>/dev/null 11664 lt_status=$? 11665 case x$lt_status in 11666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11668 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11669 esac 11670 else : 11671 # compilation failed 11672 lt_cv_dlopen_self=no 11673 fi 11674fi 11675rm -fr conftest* 11676 11677 11678fi 11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11680$as_echo "$lt_cv_dlopen_self" >&6; } 11681 11682 if test "x$lt_cv_dlopen_self" = xyes; then 11683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11685$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11686if test "${lt_cv_dlopen_self_static+set}" = set; then : 11687 $as_echo_n "(cached) " >&6 11688else 11689 if test "$cross_compiling" = yes; then : 11690 lt_cv_dlopen_self_static=cross 11691else 11692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11693 lt_status=$lt_dlunknown 11694 cat > conftest.$ac_ext <<_LT_EOF 11695#line $LINENO "configure" 11696#include "confdefs.h" 11697 11698#if HAVE_DLFCN_H 11699#include <dlfcn.h> 11700#endif 11701 11702#include <stdio.h> 11703 11704#ifdef RTLD_GLOBAL 11705# define LT_DLGLOBAL RTLD_GLOBAL 11706#else 11707# ifdef DL_GLOBAL 11708# define LT_DLGLOBAL DL_GLOBAL 11709# else 11710# define LT_DLGLOBAL 0 11711# endif 11712#endif 11713 11714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11715 find out it does not work in some platform. */ 11716#ifndef LT_DLLAZY_OR_NOW 11717# ifdef RTLD_LAZY 11718# define LT_DLLAZY_OR_NOW RTLD_LAZY 11719# else 11720# ifdef DL_LAZY 11721# define LT_DLLAZY_OR_NOW DL_LAZY 11722# else 11723# ifdef RTLD_NOW 11724# define LT_DLLAZY_OR_NOW RTLD_NOW 11725# else 11726# ifdef DL_NOW 11727# define LT_DLLAZY_OR_NOW DL_NOW 11728# else 11729# define LT_DLLAZY_OR_NOW 0 11730# endif 11731# endif 11732# endif 11733# endif 11734#endif 11735 11736/* When -fvisbility=hidden is used, assume the code has been annotated 11737 correspondingly for the symbols needed. */ 11738#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11739void fnord () __attribute__((visibility("default"))); 11740#endif 11741 11742void fnord () { int i=42; } 11743int main () 11744{ 11745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11746 int status = $lt_dlunknown; 11747 11748 if (self) 11749 { 11750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11751 else 11752 { 11753 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11754 else puts (dlerror ()); 11755 } 11756 /* dlclose (self); */ 11757 } 11758 else 11759 puts (dlerror ()); 11760 11761 return status; 11762} 11763_LT_EOF 11764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11765 (eval $ac_link) 2>&5 11766 ac_status=$? 11767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11768 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11769 (./conftest; exit; ) >&5 2>/dev/null 11770 lt_status=$? 11771 case x$lt_status in 11772 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11773 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11774 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11775 esac 11776 else : 11777 # compilation failed 11778 lt_cv_dlopen_self_static=no 11779 fi 11780fi 11781rm -fr conftest* 11782 11783 11784fi 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11786$as_echo "$lt_cv_dlopen_self_static" >&6; } 11787 fi 11788 11789 CPPFLAGS="$save_CPPFLAGS" 11790 LDFLAGS="$save_LDFLAGS" 11791 LIBS="$save_LIBS" 11792 ;; 11793 esac 11794 11795 case $lt_cv_dlopen_self in 11796 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11797 *) enable_dlopen_self=unknown ;; 11798 esac 11799 11800 case $lt_cv_dlopen_self_static in 11801 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11802 *) enable_dlopen_self_static=unknown ;; 11803 esac 11804fi 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822striplib= 11823old_striplib= 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11825$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11826if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11828 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11830$as_echo "yes" >&6; } 11831else 11832# FIXME - insert some real tests, host_os isn't really good enough 11833 case $host_os in 11834 darwin*) 11835 if test -n "$STRIP" ; then 11836 striplib="$STRIP -x" 11837 old_striplib="$STRIP -S" 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11839$as_echo "yes" >&6; } 11840 else 11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11842$as_echo "no" >&6; } 11843 fi 11844 ;; 11845 *) 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11847$as_echo "no" >&6; } 11848 ;; 11849 esac 11850fi 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 # Report which library types will actually be built 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11865$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11867$as_echo "$can_build_shared" >&6; } 11868 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11870$as_echo_n "checking whether to build shared libraries... " >&6; } 11871 test "$can_build_shared" = "no" && enable_shared=no 11872 11873 # On AIX, shared libraries and static libraries use the same namespace, and 11874 # are all built from PIC. 11875 case $host_os in 11876 aix3*) 11877 test "$enable_shared" = yes && enable_static=no 11878 if test -n "$RANLIB"; then 11879 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11880 postinstall_cmds='$RANLIB $lib' 11881 fi 11882 ;; 11883 11884 aix[4-9]*) 11885 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11886 test "$enable_shared" = yes && enable_static=no 11887 fi 11888 ;; 11889 esac 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11891$as_echo "$enable_shared" >&6; } 11892 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11894$as_echo_n "checking whether to build static libraries... " >&6; } 11895 # Make sure either enable_shared or enable_static is yes. 11896 test "$enable_shared" = yes || enable_static=yes 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11898$as_echo "$enable_static" >&6; } 11899 11900 11901 11902 11903fi 11904ac_ext=c 11905ac_cpp='$CPP $CPPFLAGS' 11906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11908ac_compiler_gnu=$ac_cv_c_compiler_gnu 11909 11910CC="$lt_save_CC" 11911 11912 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11913 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11914 (test "X$CXX" != "Xg++"))) ; then 11915 ac_ext=cpp 11916ac_cpp='$CXXCPP $CPPFLAGS' 11917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11921$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11922if test -z "$CXXCPP"; then 11923 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 11924 $as_echo_n "(cached) " >&6 11925else 11926 # Double quotes because CXXCPP needs to be expanded 11927 for CXXCPP in "$CXX -E" "/lib/cpp" 11928 do 11929 ac_preproc_ok=false 11930for ac_cxx_preproc_warn_flag in '' yes 11931do 11932 # Use a header file that comes with gcc, so configuring glibc 11933 # with a fresh cross-compiler works. 11934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11935 # <limits.h> exists even on freestanding compilers. 11936 # On the NeXT, cc -E runs the code through the compiler's parser, 11937 # not just through cpp. "Syntax error" is here to catch this case. 11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11939/* end confdefs.h. */ 11940#ifdef __STDC__ 11941# include <limits.h> 11942#else 11943# include <assert.h> 11944#endif 11945 Syntax error 11946_ACEOF 11947if ac_fn_cxx_try_cpp "$LINENO"; then : 11948 11949else 11950 # Broken: fails on valid input. 11951continue 11952fi 11953rm -f conftest.err conftest.$ac_ext 11954 11955 # OK, works on sane cases. Now check whether nonexistent headers 11956 # can be detected and how. 11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11958/* end confdefs.h. */ 11959#include <ac_nonexistent.h> 11960_ACEOF 11961if ac_fn_cxx_try_cpp "$LINENO"; then : 11962 # Broken: success on invalid input. 11963continue 11964else 11965 # Passes both tests. 11966ac_preproc_ok=: 11967break 11968fi 11969rm -f conftest.err conftest.$ac_ext 11970 11971done 11972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11973rm -f conftest.err conftest.$ac_ext 11974if $ac_preproc_ok; then : 11975 break 11976fi 11977 11978 done 11979 ac_cv_prog_CXXCPP=$CXXCPP 11980 11981fi 11982 CXXCPP=$ac_cv_prog_CXXCPP 11983else 11984 ac_cv_prog_CXXCPP=$CXXCPP 11985fi 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11987$as_echo "$CXXCPP" >&6; } 11988ac_preproc_ok=false 11989for ac_cxx_preproc_warn_flag in '' yes 11990do 11991 # Use a header file that comes with gcc, so configuring glibc 11992 # with a fresh cross-compiler works. 11993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11994 # <limits.h> exists even on freestanding compilers. 11995 # On the NeXT, cc -E runs the code through the compiler's parser, 11996 # not just through cpp. "Syntax error" is here to catch this case. 11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11998/* end confdefs.h. */ 11999#ifdef __STDC__ 12000# include <limits.h> 12001#else 12002# include <assert.h> 12003#endif 12004 Syntax error 12005_ACEOF 12006if ac_fn_cxx_try_cpp "$LINENO"; then : 12007 12008else 12009 # Broken: fails on valid input. 12010continue 12011fi 12012rm -f conftest.err conftest.$ac_ext 12013 12014 # OK, works on sane cases. Now check whether nonexistent headers 12015 # can be detected and how. 12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12017/* end confdefs.h. */ 12018#include <ac_nonexistent.h> 12019_ACEOF 12020if ac_fn_cxx_try_cpp "$LINENO"; then : 12021 # Broken: success on invalid input. 12022continue 12023else 12024 # Passes both tests. 12025ac_preproc_ok=: 12026break 12027fi 12028rm -f conftest.err conftest.$ac_ext 12029 12030done 12031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12032rm -f conftest.err conftest.$ac_ext 12033if $ac_preproc_ok; then : 12034 12035else 12036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12038as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12039See \`config.log' for more details" "$LINENO" 5; } 12040fi 12041 12042ac_ext=c 12043ac_cpp='$CPP $CPPFLAGS' 12044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12046ac_compiler_gnu=$ac_cv_c_compiler_gnu 12047 12048else 12049 _lt_caught_CXX_error=yes 12050fi 12051 12052ac_ext=cpp 12053ac_cpp='$CXXCPP $CPPFLAGS' 12054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12057 12058archive_cmds_need_lc_CXX=no 12059allow_undefined_flag_CXX= 12060always_export_symbols_CXX=no 12061archive_expsym_cmds_CXX= 12062compiler_needs_object_CXX=no 12063export_dynamic_flag_spec_CXX= 12064hardcode_direct_CXX=no 12065hardcode_direct_absolute_CXX=no 12066hardcode_libdir_flag_spec_CXX= 12067hardcode_libdir_flag_spec_ld_CXX= 12068hardcode_libdir_separator_CXX= 12069hardcode_minus_L_CXX=no 12070hardcode_shlibpath_var_CXX=unsupported 12071hardcode_automatic_CXX=no 12072inherit_rpath_CXX=no 12073module_cmds_CXX= 12074module_expsym_cmds_CXX= 12075link_all_deplibs_CXX=unknown 12076old_archive_cmds_CXX=$old_archive_cmds 12077reload_flag_CXX=$reload_flag 12078reload_cmds_CXX=$reload_cmds 12079no_undefined_flag_CXX= 12080whole_archive_flag_spec_CXX= 12081enable_shared_with_static_runtimes_CXX=no 12082 12083# Source file extension for C++ test sources. 12084ac_ext=cpp 12085 12086# Object file extension for compiled C++ test sources. 12087objext=o 12088objext_CXX=$objext 12089 12090# No sense in running all these tests if we already determined that 12091# the CXX compiler isn't working. Some variables (like enable_shared) 12092# are currently assumed to apply to all compilers on this platform, 12093# and will be corrupted by setting them based on a non-working compiler. 12094if test "$_lt_caught_CXX_error" != yes; then 12095 # Code to be used in simple compile tests 12096 lt_simple_compile_test_code="int some_variable = 0;" 12097 12098 # Code to be used in simple link tests 12099 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12100 12101 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12102 12103 12104 12105 12106 12107 12108# If no C compiler was specified, use CC. 12109LTCC=${LTCC-"$CC"} 12110 12111# If no C compiler flags were specified, use CFLAGS. 12112LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12113 12114# Allow CC to be a program name with arguments. 12115compiler=$CC 12116 12117 12118 # save warnings/boilerplate of simple test code 12119 ac_outfile=conftest.$ac_objext 12120echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12121eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12122_lt_compiler_boilerplate=`cat conftest.err` 12123$RM conftest* 12124 12125 ac_outfile=conftest.$ac_objext 12126echo "$lt_simple_link_test_code" >conftest.$ac_ext 12127eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12128_lt_linker_boilerplate=`cat conftest.err` 12129$RM -r conftest* 12130 12131 12132 # Allow CC to be a program name with arguments. 12133 lt_save_CC=$CC 12134 lt_save_LD=$LD 12135 lt_save_GCC=$GCC 12136 GCC=$GXX 12137 lt_save_with_gnu_ld=$with_gnu_ld 12138 lt_save_path_LD=$lt_cv_path_LD 12139 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12140 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12141 else 12142 $as_unset lt_cv_prog_gnu_ld 12143 fi 12144 if test -n "${lt_cv_path_LDCXX+set}"; then 12145 lt_cv_path_LD=$lt_cv_path_LDCXX 12146 else 12147 $as_unset lt_cv_path_LD 12148 fi 12149 test -z "${LDCXX+set}" || LD=$LDCXX 12150 CC=${CXX-"c++"} 12151 compiler=$CC 12152 compiler_CXX=$CC 12153 for cc_temp in $compiler""; do 12154 case $cc_temp in 12155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12157 \-*) ;; 12158 *) break;; 12159 esac 12160done 12161cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12162 12163 12164 if test -n "$compiler"; then 12165 # We don't want -fno-exception when compiling C++ code, so set the 12166 # no_builtin_flag separately 12167 if test "$GXX" = yes; then 12168 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12169 else 12170 lt_prog_compiler_no_builtin_flag_CXX= 12171 fi 12172 12173 if test "$GXX" = yes; then 12174 # Set up default GNU C++ configuration 12175 12176 12177 12178# Check whether --with-gnu-ld was given. 12179if test "${with_gnu_ld+set}" = set; then : 12180 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12181else 12182 with_gnu_ld=no 12183fi 12184 12185ac_prog=ld 12186if test "$GCC" = yes; then 12187 # Check if gcc -print-prog-name=ld gives a path. 12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12189$as_echo_n "checking for ld used by $CC... " >&6; } 12190 case $host in 12191 *-*-mingw*) 12192 # gcc leaves a trailing carriage return which upsets mingw 12193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12194 *) 12195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12196 esac 12197 case $ac_prog in 12198 # Accept absolute paths. 12199 [\\/]* | ?:[\\/]*) 12200 re_direlt='/[^/][^/]*/\.\./' 12201 # Canonicalize the pathname of ld 12202 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12203 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12204 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12205 done 12206 test -z "$LD" && LD="$ac_prog" 12207 ;; 12208 "") 12209 # If it fails, then pretend we aren't using GCC. 12210 ac_prog=ld 12211 ;; 12212 *) 12213 # If it is relative, then search for the first ld in PATH. 12214 with_gnu_ld=unknown 12215 ;; 12216 esac 12217elif test "$with_gnu_ld" = yes; then 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12219$as_echo_n "checking for GNU ld... " >&6; } 12220else 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12222$as_echo_n "checking for non-GNU ld... " >&6; } 12223fi 12224if test "${lt_cv_path_LD+set}" = set; then : 12225 $as_echo_n "(cached) " >&6 12226else 12227 if test -z "$LD"; then 12228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12229 for ac_dir in $PATH; do 12230 IFS="$lt_save_ifs" 12231 test -z "$ac_dir" && ac_dir=. 12232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12233 lt_cv_path_LD="$ac_dir/$ac_prog" 12234 # Check to see if the program is GNU ld. I'd rather use --version, 12235 # but apparently some variants of GNU ld only accept -v. 12236 # Break only if it was the GNU/non-GNU ld that we prefer. 12237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12238 *GNU* | *'with BFD'*) 12239 test "$with_gnu_ld" != no && break 12240 ;; 12241 *) 12242 test "$with_gnu_ld" != yes && break 12243 ;; 12244 esac 12245 fi 12246 done 12247 IFS="$lt_save_ifs" 12248else 12249 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12250fi 12251fi 12252 12253LD="$lt_cv_path_LD" 12254if test -n "$LD"; then 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12256$as_echo "$LD" >&6; } 12257else 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12259$as_echo "no" >&6; } 12260fi 12261test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12263$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12264if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12265 $as_echo_n "(cached) " >&6 12266else 12267 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12268case `$LD -v 2>&1 </dev/null` in 12269*GNU* | *'with BFD'*) 12270 lt_cv_prog_gnu_ld=yes 12271 ;; 12272*) 12273 lt_cv_prog_gnu_ld=no 12274 ;; 12275esac 12276fi 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12278$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12279with_gnu_ld=$lt_cv_prog_gnu_ld 12280 12281 12282 12283 12284 12285 12286 12287 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12288 # archiving commands below assume that GNU ld is being used. 12289 if test "$with_gnu_ld" = yes; then 12290 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12291 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' 12292 12293 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12295 12296 # If archive_cmds runs LD, not CC, wlarc should be empty 12297 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12298 # investigate it a little bit more. (MM) 12299 wlarc='${wl}' 12300 12301 # ancient GNU ld didn't support --whole-archive et. al. 12302 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12303 $GREP 'no-whole-archive' > /dev/null; then 12304 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12305 else 12306 whole_archive_flag_spec_CXX= 12307 fi 12308 else 12309 with_gnu_ld=no 12310 wlarc= 12311 12312 # A generic and very simple default shared library creation 12313 # command for GNU C++ for the case where it uses the native 12314 # linker, instead of GNU ld. If possible, this setting should 12315 # overridden to take advantage of the native linker features on 12316 # the platform it is being used on. 12317 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12318 fi 12319 12320 # Commands to make compiler produce verbose output that lists 12321 # what "hidden" libraries, object files and flags are used when 12322 # linking a shared library. 12323 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12324 12325 else 12326 GXX=no 12327 with_gnu_ld=no 12328 wlarc= 12329 fi 12330 12331 # PORTME: fill in a description of your system's C++ link characteristics 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12333$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12334 ld_shlibs_CXX=yes 12335 case $host_os in 12336 aix3*) 12337 # FIXME: insert proper C++ library support 12338 ld_shlibs_CXX=no 12339 ;; 12340 aix[4-9]*) 12341 if test "$host_cpu" = ia64; then 12342 # On IA64, the linker does run time linking by default, so we don't 12343 # have to do anything special. 12344 aix_use_runtimelinking=no 12345 exp_sym_flag='-Bexport' 12346 no_entry_flag="" 12347 else 12348 aix_use_runtimelinking=no 12349 12350 # Test if we are trying to use run time linking or normal 12351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12352 # need to do runtime linking. 12353 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12354 for ld_flag in $LDFLAGS; do 12355 case $ld_flag in 12356 *-brtl*) 12357 aix_use_runtimelinking=yes 12358 break 12359 ;; 12360 esac 12361 done 12362 ;; 12363 esac 12364 12365 exp_sym_flag='-bexport' 12366 no_entry_flag='-bnoentry' 12367 fi 12368 12369 # When large executables or shared objects are built, AIX ld can 12370 # have problems creating the table of contents. If linking a library 12371 # or program results in "error TOC overflow" add -mminimal-toc to 12372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12374 12375 archive_cmds_CXX='' 12376 hardcode_direct_CXX=yes 12377 hardcode_direct_absolute_CXX=yes 12378 hardcode_libdir_separator_CXX=':' 12379 link_all_deplibs_CXX=yes 12380 file_list_spec_CXX='${wl}-f,' 12381 12382 if test "$GXX" = yes; then 12383 case $host_os in aix4.[012]|aix4.[012].*) 12384 # We only want to do this on AIX 4.2 and lower, the check 12385 # below for broken collect2 doesn't work under 4.3+ 12386 collect2name=`${CC} -print-prog-name=collect2` 12387 if test -f "$collect2name" && 12388 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12389 then 12390 # We have reworked collect2 12391 : 12392 else 12393 # We have old collect2 12394 hardcode_direct_CXX=unsupported 12395 # It fails to find uninstalled libraries when the uninstalled 12396 # path is not listed in the libpath. Setting hardcode_minus_L 12397 # to unsupported forces relinking 12398 hardcode_minus_L_CXX=yes 12399 hardcode_libdir_flag_spec_CXX='-L$libdir' 12400 hardcode_libdir_separator_CXX= 12401 fi 12402 esac 12403 shared_flag='-shared' 12404 if test "$aix_use_runtimelinking" = yes; then 12405 shared_flag="$shared_flag "'${wl}-G' 12406 fi 12407 else 12408 # not using gcc 12409 if test "$host_cpu" = ia64; then 12410 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12411 # chokes on -Wl,-G. The following line is correct: 12412 shared_flag='-G' 12413 else 12414 if test "$aix_use_runtimelinking" = yes; then 12415 shared_flag='${wl}-G' 12416 else 12417 shared_flag='${wl}-bM:SRE' 12418 fi 12419 fi 12420 fi 12421 12422 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12423 # It seems that -bexpall does not export symbols beginning with 12424 # underscore (_), so it is better to generate a list of symbols to 12425 # export. 12426 always_export_symbols_CXX=yes 12427 if test "$aix_use_runtimelinking" = yes; then 12428 # Warning - without using the other runtime loading flags (-brtl), 12429 # -berok will link without error, but may produce a broken library. 12430 allow_undefined_flag_CXX='-berok' 12431 # Determine the default libpath from the value encoded in an empty 12432 # executable. 12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12434/* end confdefs.h. */ 12435 12436int 12437main () 12438{ 12439 12440 ; 12441 return 0; 12442} 12443_ACEOF 12444if ac_fn_cxx_try_link "$LINENO"; then : 12445 12446lt_aix_libpath_sed=' 12447 /Import File Strings/,/^$/ { 12448 /^0/ { 12449 s/^0 *\(.*\)$/\1/ 12450 p 12451 } 12452 }' 12453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12454# Check for a 64-bit object if we didn't find anything. 12455if test -z "$aix_libpath"; then 12456 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12457fi 12458fi 12459rm -f core conftest.err conftest.$ac_objext \ 12460 conftest$ac_exeext conftest.$ac_ext 12461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12462 12463 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12464 12465 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12466 else 12467 if test "$host_cpu" = ia64; then 12468 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12469 allow_undefined_flag_CXX="-z nodefs" 12470 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12471 else 12472 # Determine the default libpath from the value encoded in an 12473 # empty executable. 12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12475/* end confdefs.h. */ 12476 12477int 12478main () 12479{ 12480 12481 ; 12482 return 0; 12483} 12484_ACEOF 12485if ac_fn_cxx_try_link "$LINENO"; then : 12486 12487lt_aix_libpath_sed=' 12488 /Import File Strings/,/^$/ { 12489 /^0/ { 12490 s/^0 *\(.*\)$/\1/ 12491 p 12492 } 12493 }' 12494aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12495# Check for a 64-bit object if we didn't find anything. 12496if test -z "$aix_libpath"; then 12497 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12498fi 12499fi 12500rm -f core conftest.err conftest.$ac_objext \ 12501 conftest$ac_exeext conftest.$ac_ext 12502if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12503 12504 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12505 # Warning - without using the other run time loading flags, 12506 # -berok will link without error, but may produce a broken library. 12507 no_undefined_flag_CXX=' ${wl}-bernotok' 12508 allow_undefined_flag_CXX=' ${wl}-berok' 12509 if test "$with_gnu_ld" = yes; then 12510 # We only use this code for GNU lds that support --whole-archive. 12511 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12512 else 12513 # Exported symbols can be pulled into shared objects from archives 12514 whole_archive_flag_spec_CXX='$convenience' 12515 fi 12516 archive_cmds_need_lc_CXX=yes 12517 # This is similar to how AIX traditionally builds its shared 12518 # libraries. 12519 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12520 fi 12521 fi 12522 ;; 12523 12524 beos*) 12525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12526 allow_undefined_flag_CXX=unsupported 12527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12528 # support --undefined. This deserves some investigation. FIXME 12529 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12530 else 12531 ld_shlibs_CXX=no 12532 fi 12533 ;; 12534 12535 chorus*) 12536 case $cc_basename in 12537 *) 12538 # FIXME: insert proper C++ library support 12539 ld_shlibs_CXX=no 12540 ;; 12541 esac 12542 ;; 12543 12544 cygwin* | mingw* | pw32* | cegcc*) 12545 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12546 # as there is no search path for DLLs. 12547 hardcode_libdir_flag_spec_CXX='-L$libdir' 12548 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12549 allow_undefined_flag_CXX=unsupported 12550 always_export_symbols_CXX=no 12551 enable_shared_with_static_runtimes_CXX=yes 12552 12553 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12554 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12555 # If the export-symbols file already is a .def file (1st line 12556 # is EXPORTS), use it as is; otherwise, prepend... 12557 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12558 cp $export_symbols $output_objdir/$soname.def; 12559 else 12560 echo EXPORTS > $output_objdir/$soname.def; 12561 cat $export_symbols >> $output_objdir/$soname.def; 12562 fi~ 12563 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12564 else 12565 ld_shlibs_CXX=no 12566 fi 12567 ;; 12568 darwin* | rhapsody*) 12569 12570 12571 archive_cmds_need_lc_CXX=no 12572 hardcode_direct_CXX=no 12573 hardcode_automatic_CXX=yes 12574 hardcode_shlibpath_var_CXX=unsupported 12575 if test "$lt_cv_ld_force_load" = "yes"; then 12576 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12577 else 12578 whole_archive_flag_spec_CXX='' 12579 fi 12580 link_all_deplibs_CXX=yes 12581 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12582 case $cc_basename in 12583 ifort*) _lt_dar_can_shared=yes ;; 12584 *) _lt_dar_can_shared=$GCC ;; 12585 esac 12586 if test "$_lt_dar_can_shared" = "yes"; then 12587 output_verbose_link_cmd=func_echo_all 12588 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12589 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12590 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 12591 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 12592 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12593 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${_lt_dsymutil}" 12594 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 12595 fi 12596 12597 else 12598 ld_shlibs_CXX=no 12599 fi 12600 12601 ;; 12602 12603 dgux*) 12604 case $cc_basename in 12605 ec++*) 12606 # FIXME: insert proper C++ library support 12607 ld_shlibs_CXX=no 12608 ;; 12609 ghcx*) 12610 # Green Hills C++ Compiler 12611 # FIXME: insert proper C++ library support 12612 ld_shlibs_CXX=no 12613 ;; 12614 *) 12615 # FIXME: insert proper C++ library support 12616 ld_shlibs_CXX=no 12617 ;; 12618 esac 12619 ;; 12620 12621 freebsd[12]*) 12622 # C++ shared libraries reported to be fairly broken before 12623 # switch to ELF 12624 ld_shlibs_CXX=no 12625 ;; 12626 12627 freebsd-elf*) 12628 archive_cmds_need_lc_CXX=no 12629 ;; 12630 12631 freebsd* | dragonfly*) 12632 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12633 # conventions 12634 ld_shlibs_CXX=yes 12635 ;; 12636 12637 gnu*) 12638 ;; 12639 12640 haiku*) 12641 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12642 link_all_deplibs_CXX=yes 12643 ;; 12644 12645 hpux9*) 12646 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12647 hardcode_libdir_separator_CXX=: 12648 export_dynamic_flag_spec_CXX='${wl}-E' 12649 hardcode_direct_CXX=yes 12650 hardcode_minus_L_CXX=yes # Not in the search PATH, 12651 # but as the default 12652 # location of the library. 12653 12654 case $cc_basename in 12655 CC*) 12656 # FIXME: insert proper C++ library support 12657 ld_shlibs_CXX=no 12658 ;; 12659 aCC*) 12660 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' 12661 # Commands to make compiler produce verbose output that lists 12662 # what "hidden" libraries, object files and flags are used when 12663 # linking a shared library. 12664 # 12665 # There doesn't appear to be a way to prevent this compiler from 12666 # explicitly linking system object files so we need to strip them 12667 # from the output so that they don't get included in the library 12668 # dependencies. 12669 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12670 ;; 12671 *) 12672 if test "$GXX" = yes; then 12673 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' 12674 else 12675 # FIXME: insert proper C++ library support 12676 ld_shlibs_CXX=no 12677 fi 12678 ;; 12679 esac 12680 ;; 12681 12682 hpux10*|hpux11*) 12683 if test $with_gnu_ld = no; then 12684 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12685 hardcode_libdir_separator_CXX=: 12686 12687 case $host_cpu in 12688 hppa*64*|ia64*) 12689 ;; 12690 *) 12691 export_dynamic_flag_spec_CXX='${wl}-E' 12692 ;; 12693 esac 12694 fi 12695 case $host_cpu in 12696 hppa*64*|ia64*) 12697 hardcode_direct_CXX=no 12698 hardcode_shlibpath_var_CXX=no 12699 ;; 12700 *) 12701 hardcode_direct_CXX=yes 12702 hardcode_direct_absolute_CXX=yes 12703 hardcode_minus_L_CXX=yes # Not in the search PATH, 12704 # but as the default 12705 # location of the library. 12706 ;; 12707 esac 12708 12709 case $cc_basename in 12710 CC*) 12711 # FIXME: insert proper C++ library support 12712 ld_shlibs_CXX=no 12713 ;; 12714 aCC*) 12715 case $host_cpu in 12716 hppa*64*) 12717 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12718 ;; 12719 ia64*) 12720 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12721 ;; 12722 *) 12723 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12724 ;; 12725 esac 12726 # Commands to make compiler produce verbose output that lists 12727 # what "hidden" libraries, object files and flags are used when 12728 # linking a shared library. 12729 # 12730 # There doesn't appear to be a way to prevent this compiler from 12731 # explicitly linking system object files so we need to strip them 12732 # from the output so that they don't get included in the library 12733 # dependencies. 12734 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; func_echo_all "$list"' 12735 ;; 12736 *) 12737 if test "$GXX" = yes; then 12738 if test $with_gnu_ld = no; then 12739 case $host_cpu in 12740 hppa*64*) 12741 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12742 ;; 12743 ia64*) 12744 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12745 ;; 12746 *) 12747 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' 12748 ;; 12749 esac 12750 fi 12751 else 12752 # FIXME: insert proper C++ library support 12753 ld_shlibs_CXX=no 12754 fi 12755 ;; 12756 esac 12757 ;; 12758 12759 interix[3-9]*) 12760 hardcode_direct_CXX=no 12761 hardcode_shlibpath_var_CXX=no 12762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12763 export_dynamic_flag_spec_CXX='${wl}-E' 12764 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12765 # Instead, shared libraries are loaded at an image base (0x10000000 by 12766 # default) and relocated if they conflict, which is a slow very memory 12767 # consuming and fragmenting process. To avoid this, we pick a random, 12768 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12769 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12770 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12771 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12772 ;; 12773 irix5* | irix6*) 12774 case $cc_basename in 12775 CC*) 12776 # SGI C++ 12777 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12778 12779 # Archives containing C++ object files must be created using 12780 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12781 # necessary to make sure instantiated templates are included 12782 # in the archive. 12783 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12784 ;; 12785 *) 12786 if test "$GXX" = yes; then 12787 if test "$with_gnu_ld" = no; then 12788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12789 else 12790 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 12791 fi 12792 fi 12793 link_all_deplibs_CXX=yes 12794 ;; 12795 esac 12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12797 hardcode_libdir_separator_CXX=: 12798 inherit_rpath_CXX=yes 12799 ;; 12800 12801 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12802 case $cc_basename in 12803 KCC*) 12804 # Kuck and Associates, Inc. (KAI) C++ Compiler 12805 12806 # KCC will only create a shared library if the output file 12807 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12808 # to its proper name (with version) after linking. 12809 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' 12810 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' 12811 # Commands to make compiler produce verbose output that lists 12812 # what "hidden" libraries, object files and flags are used when 12813 # linking a shared library. 12814 # 12815 # There doesn't appear to be a way to prevent this compiler from 12816 # explicitly linking system object files so we need to strip them 12817 # from the output so that they don't get included in the library 12818 # dependencies. 12819 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; func_echo_all "$list"' 12820 12821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12822 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12823 12824 # Archives containing C++ object files must be created using 12825 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12826 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12827 ;; 12828 icpc* | ecpc* ) 12829 # Intel C++ 12830 with_gnu_ld=yes 12831 # version 8.0 and above of icpc choke on multiply defined symbols 12832 # if we add $predep_objects and $postdep_objects, however 7.1 and 12833 # earlier do not add the objects themselves. 12834 case `$CC -V 2>&1` in 12835 *"Version 7."*) 12836 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12837 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' 12838 ;; 12839 *) # Version 8.0 or newer 12840 tmp_idyn= 12841 case $host_cpu in 12842 ia64*) tmp_idyn=' -i_dynamic';; 12843 esac 12844 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12845 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' 12846 ;; 12847 esac 12848 archive_cmds_need_lc_CXX=no 12849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12850 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12851 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12852 ;; 12853 pgCC* | pgcpp*) 12854 # Portland Group C++ compiler 12855 case `$CC -V` in 12856 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12857 prelink_cmds_CXX='tpldir=Template.dir~ 12858 rm -rf $tpldir~ 12859 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12860 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12861 old_archive_cmds_CXX='tpldir=Template.dir~ 12862 rm -rf $tpldir~ 12863 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12864 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12865 $RANLIB $oldlib' 12866 archive_cmds_CXX='tpldir=Template.dir~ 12867 rm -rf $tpldir~ 12868 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12869 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12870 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12871 rm -rf $tpldir~ 12872 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12873 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12874 ;; 12875 *) # Version 6 and above use weak symbols 12876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12877 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' 12878 ;; 12879 esac 12880 12881 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12883 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12884 ;; 12885 cxx*) 12886 # Compaq C++ 12887 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12888 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' 12889 12890 runpath_var=LD_RUN_PATH 12891 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12892 hardcode_libdir_separator_CXX=: 12893 12894 # Commands to make compiler produce verbose output that lists 12895 # what "hidden" libraries, object files and flags are used when 12896 # linking a shared library. 12897 # 12898 # There doesn't appear to be a way to prevent this compiler from 12899 # explicitly linking system object files so we need to strip them 12900 # from the output so that they don't get included in the library 12901 # dependencies. 12902 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 12903 ;; 12904 xl* | mpixl* | bgxl*) 12905 # IBM XL 8.0 on PPC, with GNU ld 12906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12907 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12908 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12909 if test "x$supports_anon_versioning" = xyes; then 12910 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12912 echo "local: *; };" >> $output_objdir/$libname.ver~ 12913 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12914 fi 12915 ;; 12916 *) 12917 case `$CC -V 2>&1 | sed 5q` in 12918 *Sun\ C*) 12919 # Sun C++ 5.9 12920 no_undefined_flag_CXX=' -zdefs' 12921 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12922 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12923 hardcode_libdir_flag_spec_CXX='-R$libdir' 12924 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12925 compiler_needs_object_CXX=yes 12926 12927 # Not sure whether something based on 12928 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12929 # would be better. 12930 output_verbose_link_cmd='func_echo_all' 12931 12932 # Archives containing C++ object files must be created using 12933 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12934 # necessary to make sure instantiated templates are included 12935 # in the archive. 12936 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12937 ;; 12938 esac 12939 ;; 12940 esac 12941 ;; 12942 12943 lynxos*) 12944 # FIXME: insert proper C++ library support 12945 ld_shlibs_CXX=no 12946 ;; 12947 12948 m88k*) 12949 # FIXME: insert proper C++ library support 12950 ld_shlibs_CXX=no 12951 ;; 12952 12953 mvs*) 12954 case $cc_basename in 12955 cxx*) 12956 # FIXME: insert proper C++ library support 12957 ld_shlibs_CXX=no 12958 ;; 12959 *) 12960 # FIXME: insert proper C++ library support 12961 ld_shlibs_CXX=no 12962 ;; 12963 esac 12964 ;; 12965 12966 netbsd*) 12967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12968 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12969 wlarc= 12970 hardcode_libdir_flag_spec_CXX='-R$libdir' 12971 hardcode_direct_CXX=yes 12972 hardcode_shlibpath_var_CXX=no 12973 fi 12974 # Workaround some broken pre-1.5 toolchains 12975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12976 ;; 12977 12978 *nto* | *qnx*) 12979 ld_shlibs_CXX=yes 12980 ;; 12981 12982 openbsd2*) 12983 # C++ shared libraries are fairly broken 12984 ld_shlibs_CXX=no 12985 ;; 12986 12987 openbsd*) 12988 if test -f /usr/libexec/ld.so; then 12989 hardcode_direct_CXX=yes 12990 hardcode_shlibpath_var_CXX=no 12991 hardcode_direct_absolute_CXX=yes 12992 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12993 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12995 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12996 export_dynamic_flag_spec_CXX='${wl}-E' 12997 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12998 fi 12999 output_verbose_link_cmd=func_echo_all 13000 else 13001 ld_shlibs_CXX=no 13002 fi 13003 ;; 13004 13005 osf3* | osf4* | osf5*) 13006 case $cc_basename in 13007 KCC*) 13008 # Kuck and Associates, Inc. (KAI) C++ Compiler 13009 13010 # KCC will only create a shared library if the output file 13011 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13012 # to its proper name (with version) after linking. 13013 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' 13014 13015 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13016 hardcode_libdir_separator_CXX=: 13017 13018 # Archives containing C++ object files must be created using 13019 # the KAI C++ compiler. 13020 case $host in 13021 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13022 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13023 esac 13024 ;; 13025 RCC*) 13026 # Rational C++ 2.4.1 13027 # FIXME: insert proper C++ library support 13028 ld_shlibs_CXX=no 13029 ;; 13030 cxx*) 13031 case $host in 13032 osf3*) 13033 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13034 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13035 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13036 ;; 13037 *) 13038 allow_undefined_flag_CXX=' -expect_unresolved \*' 13039 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13040 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13041 echo "-hidden">> $lib.exp~ 13042 $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~ 13043 $RM $lib.exp' 13044 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13045 ;; 13046 esac 13047 13048 hardcode_libdir_separator_CXX=: 13049 13050 # Commands to make compiler produce verbose output that lists 13051 # what "hidden" libraries, object files and flags are used when 13052 # linking a shared library. 13053 # 13054 # There doesn't appear to be a way to prevent this compiler from 13055 # explicitly linking system object files so we need to strip them 13056 # from the output so that they don't get included in the library 13057 # dependencies. 13058 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 13059 ;; 13060 *) 13061 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13062 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13063 case $host in 13064 osf3*) 13065 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13066 ;; 13067 *) 13068 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13069 ;; 13070 esac 13071 13072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13073 hardcode_libdir_separator_CXX=: 13074 13075 # Commands to make compiler produce verbose output that lists 13076 # what "hidden" libraries, object files and flags are used when 13077 # linking a shared library. 13078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13079 13080 else 13081 # FIXME: insert proper C++ library support 13082 ld_shlibs_CXX=no 13083 fi 13084 ;; 13085 esac 13086 ;; 13087 13088 psos*) 13089 # FIXME: insert proper C++ library support 13090 ld_shlibs_CXX=no 13091 ;; 13092 13093 sunos4*) 13094 case $cc_basename in 13095 CC*) 13096 # Sun C++ 4.x 13097 # FIXME: insert proper C++ library support 13098 ld_shlibs_CXX=no 13099 ;; 13100 lcc*) 13101 # Lucid 13102 # FIXME: insert proper C++ library support 13103 ld_shlibs_CXX=no 13104 ;; 13105 *) 13106 # FIXME: insert proper C++ library support 13107 ld_shlibs_CXX=no 13108 ;; 13109 esac 13110 ;; 13111 13112 solaris*) 13113 case $cc_basename in 13114 CC* | sunCC*) 13115 # Sun C++ 4.2, 5.x and Centerline C++ 13116 archive_cmds_need_lc_CXX=yes 13117 no_undefined_flag_CXX=' -zdefs' 13118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13119 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13120 $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' 13121 13122 hardcode_libdir_flag_spec_CXX='-R$libdir' 13123 hardcode_shlibpath_var_CXX=no 13124 case $host_os in 13125 solaris2.[0-5] | solaris2.[0-5].*) ;; 13126 *) 13127 # The compiler driver will combine and reorder linker options, 13128 # but understands `-z linker_flag'. 13129 # Supported since Solaris 2.6 (maybe 2.5.1?) 13130 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13131 ;; 13132 esac 13133 link_all_deplibs_CXX=yes 13134 13135 output_verbose_link_cmd='func_echo_all' 13136 13137 # Archives containing C++ object files must be created using 13138 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13139 # necessary to make sure instantiated templates are included 13140 # in the archive. 13141 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13142 ;; 13143 gcx*) 13144 # Green Hills C++ Compiler 13145 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13146 13147 # The C++ compiler must be used to create the archive. 13148 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13149 ;; 13150 *) 13151 # GNU C++ compiler with Solaris linker 13152 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13153 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13154 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13155 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13156 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13157 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13158 13159 # Commands to make compiler produce verbose output that lists 13160 # what "hidden" libraries, object files and flags are used when 13161 # linking a shared library. 13162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13163 else 13164 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13165 # platform. 13166 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13167 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13168 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13169 13170 # Commands to make compiler produce verbose output that lists 13171 # what "hidden" libraries, object files and flags are used when 13172 # linking a shared library. 13173 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13174 fi 13175 13176 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13177 case $host_os in 13178 solaris2.[0-5] | solaris2.[0-5].*) ;; 13179 *) 13180 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13181 ;; 13182 esac 13183 fi 13184 ;; 13185 esac 13186 ;; 13187 13188 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13189 no_undefined_flag_CXX='${wl}-z,text' 13190 archive_cmds_need_lc_CXX=no 13191 hardcode_shlibpath_var_CXX=no 13192 runpath_var='LD_RUN_PATH' 13193 13194 case $cc_basename in 13195 CC*) 13196 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13197 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13198 ;; 13199 *) 13200 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13201 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13202 ;; 13203 esac 13204 ;; 13205 13206 sysv5* | sco3.2v5* | sco5v6*) 13207 # Note: We can NOT use -z defs as we might desire, because we do not 13208 # link with -lc, and that would cause any symbols used from libc to 13209 # always be unresolved, which means just about no library would 13210 # ever link correctly. If we're not using GNU ld we use -z text 13211 # though, which does catch some bad symbols but isn't as heavy-handed 13212 # as -z defs. 13213 no_undefined_flag_CXX='${wl}-z,text' 13214 allow_undefined_flag_CXX='${wl}-z,nodefs' 13215 archive_cmds_need_lc_CXX=no 13216 hardcode_shlibpath_var_CXX=no 13217 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13218 hardcode_libdir_separator_CXX=':' 13219 link_all_deplibs_CXX=yes 13220 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13221 runpath_var='LD_RUN_PATH' 13222 13223 case $cc_basename in 13224 CC*) 13225 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13226 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13227 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13228 '"$old_archive_cmds_CXX" 13229 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13230 '"$reload_cmds_CXX" 13231 ;; 13232 *) 13233 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13234 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13235 ;; 13236 esac 13237 ;; 13238 13239 tandem*) 13240 case $cc_basename in 13241 NCC*) 13242 # NonStop-UX NCC 3.20 13243 # FIXME: insert proper C++ library support 13244 ld_shlibs_CXX=no 13245 ;; 13246 *) 13247 # FIXME: insert proper C++ library support 13248 ld_shlibs_CXX=no 13249 ;; 13250 esac 13251 ;; 13252 13253 vxworks*) 13254 # FIXME: insert proper C++ library support 13255 ld_shlibs_CXX=no 13256 ;; 13257 13258 *) 13259 # FIXME: insert proper C++ library support 13260 ld_shlibs_CXX=no 13261 ;; 13262 esac 13263 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13265$as_echo "$ld_shlibs_CXX" >&6; } 13266 test "$ld_shlibs_CXX" = no && can_build_shared=no 13267 13268 GCC_CXX="$GXX" 13269 LD_CXX="$LD" 13270 13271 ## CAVEAT EMPTOR: 13272 ## There is no encapsulation within the following macros, do not change 13273 ## the running order or otherwise move them around unless you know exactly 13274 ## what you are doing... 13275 # Dependencies to place before and after the object being linked: 13276predep_objects_CXX= 13277postdep_objects_CXX= 13278predeps_CXX= 13279postdeps_CXX= 13280compiler_lib_search_path_CXX= 13281 13282cat > conftest.$ac_ext <<_LT_EOF 13283class Foo 13284{ 13285public: 13286 Foo (void) { a = 0; } 13287private: 13288 int a; 13289}; 13290_LT_EOF 13291 13292if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13293 (eval $ac_compile) 2>&5 13294 ac_status=$? 13295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13296 test $ac_status = 0; }; then 13297 # Parse the compiler output and extract the necessary 13298 # objects, libraries and library flags. 13299 13300 # Sentinel used to keep track of whether or not we are before 13301 # the conftest object file. 13302 pre_test_object_deps_done=no 13303 13304 for p in `eval "$output_verbose_link_cmd"`; do 13305 case $p in 13306 13307 -L* | -R* | -l*) 13308 # Some compilers place space between "-{L,R}" and the path. 13309 # Remove the space. 13310 if test $p = "-L" || 13311 test $p = "-R"; then 13312 prev=$p 13313 continue 13314 else 13315 prev= 13316 fi 13317 13318 if test "$pre_test_object_deps_done" = no; then 13319 case $p in 13320 -L* | -R*) 13321 # Internal compiler library paths should come after those 13322 # provided the user. The postdeps already come after the 13323 # user supplied libs so there is no need to process them. 13324 if test -z "$compiler_lib_search_path_CXX"; then 13325 compiler_lib_search_path_CXX="${prev}${p}" 13326 else 13327 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13328 fi 13329 ;; 13330 # The "-l" case would never come before the object being 13331 # linked, so don't bother handling this case. 13332 esac 13333 else 13334 if test -z "$postdeps_CXX"; then 13335 postdeps_CXX="${prev}${p}" 13336 else 13337 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13338 fi 13339 fi 13340 ;; 13341 13342 *.$objext) 13343 # This assumes that the test object file only shows up 13344 # once in the compiler output. 13345 if test "$p" = "conftest.$objext"; then 13346 pre_test_object_deps_done=yes 13347 continue 13348 fi 13349 13350 if test "$pre_test_object_deps_done" = no; then 13351 if test -z "$predep_objects_CXX"; then 13352 predep_objects_CXX="$p" 13353 else 13354 predep_objects_CXX="$predep_objects_CXX $p" 13355 fi 13356 else 13357 if test -z "$postdep_objects_CXX"; then 13358 postdep_objects_CXX="$p" 13359 else 13360 postdep_objects_CXX="$postdep_objects_CXX $p" 13361 fi 13362 fi 13363 ;; 13364 13365 *) ;; # Ignore the rest. 13366 13367 esac 13368 done 13369 13370 # Clean up. 13371 rm -f a.out a.exe 13372else 13373 echo "libtool.m4: error: problem compiling CXX test program" 13374fi 13375 13376$RM -f confest.$objext 13377 13378# PORTME: override above test on systems where it is broken 13379case $host_os in 13380interix[3-9]*) 13381 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13382 # hack all around it, let's just trust "g++" to DTRT. 13383 predep_objects_CXX= 13384 postdep_objects_CXX= 13385 postdeps_CXX= 13386 ;; 13387 13388linux*) 13389 case `$CC -V 2>&1 | sed 5q` in 13390 *Sun\ C*) 13391 # Sun C++ 5.9 13392 13393 # The more standards-conforming stlport4 library is 13394 # incompatible with the Cstd library. Avoid specifying 13395 # it if it's in CXXFLAGS. Ignore libCrun as 13396 # -library=stlport4 depends on it. 13397 case " $CXX $CXXFLAGS " in 13398 *" -library=stlport4 "*) 13399 solaris_use_stlport4=yes 13400 ;; 13401 esac 13402 13403 if test "$solaris_use_stlport4" != yes; then 13404 postdeps_CXX='-library=Cstd -library=Crun' 13405 fi 13406 ;; 13407 esac 13408 ;; 13409 13410solaris*) 13411 case $cc_basename in 13412 CC* | sunCC*) 13413 # The more standards-conforming stlport4 library is 13414 # incompatible with the Cstd library. Avoid specifying 13415 # it if it's in CXXFLAGS. Ignore libCrun as 13416 # -library=stlport4 depends on it. 13417 case " $CXX $CXXFLAGS " in 13418 *" -library=stlport4 "*) 13419 solaris_use_stlport4=yes 13420 ;; 13421 esac 13422 13423 # Adding this requires a known-good setup of shared libraries for 13424 # Sun compiler versions before 5.6, else PIC objects from an old 13425 # archive will be linked into the output, leading to subtle bugs. 13426 if test "$solaris_use_stlport4" != yes; then 13427 postdeps_CXX='-library=Cstd -library=Crun' 13428 fi 13429 ;; 13430 esac 13431 ;; 13432esac 13433 13434 13435case " $postdeps_CXX " in 13436*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13437esac 13438 compiler_lib_search_dirs_CXX= 13439if test -n "${compiler_lib_search_path_CXX}"; then 13440 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13441fi 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 lt_prog_compiler_wl_CXX= 13474lt_prog_compiler_pic_CXX= 13475lt_prog_compiler_static_CXX= 13476 13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13478$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13479 13480 # C++ specific cases for pic, static, wl, etc. 13481 if test "$GXX" = yes; then 13482 lt_prog_compiler_wl_CXX='-Wl,' 13483 lt_prog_compiler_static_CXX='-static' 13484 13485 case $host_os in 13486 aix*) 13487 # All AIX code is PIC. 13488 if test "$host_cpu" = ia64; then 13489 # AIX 5 now supports IA64 processor 13490 lt_prog_compiler_static_CXX='-Bstatic' 13491 fi 13492 ;; 13493 13494 amigaos*) 13495 case $host_cpu in 13496 powerpc) 13497 # see comment about AmigaOS4 .so support 13498 lt_prog_compiler_pic_CXX='-fPIC' 13499 ;; 13500 m68k) 13501 # FIXME: we need at least 68020 code to build shared libraries, but 13502 # adding the `-m68020' flag to GCC prevents building anything better, 13503 # like `-m68040'. 13504 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13505 ;; 13506 esac 13507 ;; 13508 13509 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13510 # PIC is the default for these OSes. 13511 ;; 13512 mingw* | cygwin* | os2* | pw32* | cegcc*) 13513 # This hack is so that the source file can tell whether it is being 13514 # built for inclusion in a dll (and should export symbols for example). 13515 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13516 # (--disable-auto-import) libraries 13517 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13518 ;; 13519 darwin* | rhapsody*) 13520 # PIC is the default on this platform 13521 # Common symbols not allowed in MH_DYLIB files 13522 lt_prog_compiler_pic_CXX='-fno-common' 13523 ;; 13524 *djgpp*) 13525 # DJGPP does not support shared libraries at all 13526 lt_prog_compiler_pic_CXX= 13527 ;; 13528 haiku*) 13529 # PIC is the default for Haiku. 13530 # The "-static" flag exists, but is broken. 13531 lt_prog_compiler_static_CXX= 13532 ;; 13533 interix[3-9]*) 13534 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13535 # Instead, we relocate shared libraries at runtime. 13536 ;; 13537 sysv4*MP*) 13538 if test -d /usr/nec; then 13539 lt_prog_compiler_pic_CXX=-Kconform_pic 13540 fi 13541 ;; 13542 hpux*) 13543 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13544 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13545 # sets the default TLS model and affects inlining. 13546 case $host_cpu in 13547 hppa*64*) 13548 ;; 13549 *) 13550 lt_prog_compiler_pic_CXX='-fPIC' 13551 ;; 13552 esac 13553 ;; 13554 *qnx* | *nto*) 13555 # QNX uses GNU C++, but need to define -shared option too, otherwise 13556 # it will coredump. 13557 lt_prog_compiler_pic_CXX='-fPIC -shared' 13558 ;; 13559 *) 13560 lt_prog_compiler_pic_CXX='-fPIC' 13561 ;; 13562 esac 13563 else 13564 case $host_os in 13565 aix[4-9]*) 13566 # All AIX code is PIC. 13567 if test "$host_cpu" = ia64; then 13568 # AIX 5 now supports IA64 processor 13569 lt_prog_compiler_static_CXX='-Bstatic' 13570 else 13571 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13572 fi 13573 ;; 13574 chorus*) 13575 case $cc_basename in 13576 cxch68*) 13577 # Green Hills C++ Compiler 13578 # _LT_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" 13579 ;; 13580 esac 13581 ;; 13582 dgux*) 13583 case $cc_basename in 13584 ec++*) 13585 lt_prog_compiler_pic_CXX='-KPIC' 13586 ;; 13587 ghcx*) 13588 # Green Hills C++ Compiler 13589 lt_prog_compiler_pic_CXX='-pic' 13590 ;; 13591 *) 13592 ;; 13593 esac 13594 ;; 13595 freebsd* | dragonfly*) 13596 # FreeBSD uses GNU C++ 13597 ;; 13598 hpux9* | hpux10* | hpux11*) 13599 case $cc_basename in 13600 CC*) 13601 lt_prog_compiler_wl_CXX='-Wl,' 13602 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13603 if test "$host_cpu" != ia64; then 13604 lt_prog_compiler_pic_CXX='+Z' 13605 fi 13606 ;; 13607 aCC*) 13608 lt_prog_compiler_wl_CXX='-Wl,' 13609 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13610 case $host_cpu in 13611 hppa*64*|ia64*) 13612 # +Z the default 13613 ;; 13614 *) 13615 lt_prog_compiler_pic_CXX='+Z' 13616 ;; 13617 esac 13618 ;; 13619 *) 13620 ;; 13621 esac 13622 ;; 13623 interix*) 13624 # This is c89, which is MS Visual C++ (no shared libs) 13625 # Anyone wants to do a port? 13626 ;; 13627 irix5* | irix6* | nonstopux*) 13628 case $cc_basename in 13629 CC*) 13630 lt_prog_compiler_wl_CXX='-Wl,' 13631 lt_prog_compiler_static_CXX='-non_shared' 13632 # CC pic flag -KPIC is the default. 13633 ;; 13634 *) 13635 ;; 13636 esac 13637 ;; 13638 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13639 case $cc_basename in 13640 KCC*) 13641 # KAI C++ Compiler 13642 lt_prog_compiler_wl_CXX='--backend -Wl,' 13643 lt_prog_compiler_pic_CXX='-fPIC' 13644 ;; 13645 ecpc* ) 13646 # old Intel C++ for x86_64 which still supported -KPIC. 13647 lt_prog_compiler_wl_CXX='-Wl,' 13648 lt_prog_compiler_pic_CXX='-KPIC' 13649 lt_prog_compiler_static_CXX='-static' 13650 ;; 13651 icpc* ) 13652 # Intel C++, used to be incompatible with GCC. 13653 # ICC 10 doesn't accept -KPIC any more. 13654 lt_prog_compiler_wl_CXX='-Wl,' 13655 lt_prog_compiler_pic_CXX='-fPIC' 13656 lt_prog_compiler_static_CXX='-static' 13657 ;; 13658 pgCC* | pgcpp*) 13659 # Portland Group C++ compiler 13660 lt_prog_compiler_wl_CXX='-Wl,' 13661 lt_prog_compiler_pic_CXX='-fpic' 13662 lt_prog_compiler_static_CXX='-Bstatic' 13663 ;; 13664 cxx*) 13665 # Compaq C++ 13666 # Make sure the PIC flag is empty. It appears that all Alpha 13667 # Linux and Compaq Tru64 Unix objects are PIC. 13668 lt_prog_compiler_pic_CXX= 13669 lt_prog_compiler_static_CXX='-non_shared' 13670 ;; 13671 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13672 # IBM XL 8.0, 9.0 on PPC and BlueGene 13673 lt_prog_compiler_wl_CXX='-Wl,' 13674 lt_prog_compiler_pic_CXX='-qpic' 13675 lt_prog_compiler_static_CXX='-qstaticlink' 13676 ;; 13677 *) 13678 case `$CC -V 2>&1 | sed 5q` in 13679 *Sun\ C*) 13680 # Sun C++ 5.9 13681 lt_prog_compiler_pic_CXX='-KPIC' 13682 lt_prog_compiler_static_CXX='-Bstatic' 13683 lt_prog_compiler_wl_CXX='-Qoption ld ' 13684 ;; 13685 esac 13686 ;; 13687 esac 13688 ;; 13689 lynxos*) 13690 ;; 13691 m88k*) 13692 ;; 13693 mvs*) 13694 case $cc_basename in 13695 cxx*) 13696 lt_prog_compiler_pic_CXX='-W c,exportall' 13697 ;; 13698 *) 13699 ;; 13700 esac 13701 ;; 13702 netbsd*) 13703 ;; 13704 *qnx* | *nto*) 13705 # QNX uses GNU C++, but need to define -shared option too, otherwise 13706 # it will coredump. 13707 lt_prog_compiler_pic_CXX='-fPIC -shared' 13708 ;; 13709 osf3* | osf4* | osf5*) 13710 case $cc_basename in 13711 KCC*) 13712 lt_prog_compiler_wl_CXX='--backend -Wl,' 13713 ;; 13714 RCC*) 13715 # Rational C++ 2.4.1 13716 lt_prog_compiler_pic_CXX='-pic' 13717 ;; 13718 cxx*) 13719 # Digital/Compaq C++ 13720 lt_prog_compiler_wl_CXX='-Wl,' 13721 # Make sure the PIC flag is empty. It appears that all Alpha 13722 # Linux and Compaq Tru64 Unix objects are PIC. 13723 lt_prog_compiler_pic_CXX= 13724 lt_prog_compiler_static_CXX='-non_shared' 13725 ;; 13726 *) 13727 ;; 13728 esac 13729 ;; 13730 psos*) 13731 ;; 13732 solaris*) 13733 case $cc_basename in 13734 CC* | sunCC*) 13735 # Sun C++ 4.2, 5.x and Centerline C++ 13736 lt_prog_compiler_pic_CXX='-KPIC' 13737 lt_prog_compiler_static_CXX='-Bstatic' 13738 lt_prog_compiler_wl_CXX='-Qoption ld ' 13739 ;; 13740 gcx*) 13741 # Green Hills C++ Compiler 13742 lt_prog_compiler_pic_CXX='-PIC' 13743 ;; 13744 *) 13745 ;; 13746 esac 13747 ;; 13748 sunos4*) 13749 case $cc_basename in 13750 CC*) 13751 # Sun C++ 4.x 13752 lt_prog_compiler_pic_CXX='-pic' 13753 lt_prog_compiler_static_CXX='-Bstatic' 13754 ;; 13755 lcc*) 13756 # Lucid 13757 lt_prog_compiler_pic_CXX='-pic' 13758 ;; 13759 *) 13760 ;; 13761 esac 13762 ;; 13763 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13764 case $cc_basename in 13765 CC*) 13766 lt_prog_compiler_wl_CXX='-Wl,' 13767 lt_prog_compiler_pic_CXX='-KPIC' 13768 lt_prog_compiler_static_CXX='-Bstatic' 13769 ;; 13770 esac 13771 ;; 13772 tandem*) 13773 case $cc_basename in 13774 NCC*) 13775 # NonStop-UX NCC 3.20 13776 lt_prog_compiler_pic_CXX='-KPIC' 13777 ;; 13778 *) 13779 ;; 13780 esac 13781 ;; 13782 vxworks*) 13783 ;; 13784 *) 13785 lt_prog_compiler_can_build_shared_CXX=no 13786 ;; 13787 esac 13788 fi 13789 13790case $host_os in 13791 # For platforms which do not support PIC, -DPIC is meaningless: 13792 *djgpp*) 13793 lt_prog_compiler_pic_CXX= 13794 ;; 13795 *) 13796 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13797 ;; 13798esac 13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13800$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13801 13802 13803 13804# 13805# Check to make sure the PIC flag actually works. 13806# 13807if test -n "$lt_prog_compiler_pic_CXX"; then 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13809$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13810if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13811 $as_echo_n "(cached) " >&6 13812else 13813 lt_cv_prog_compiler_pic_works_CXX=no 13814 ac_outfile=conftest.$ac_objext 13815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13816 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13817 # Insert the option either (1) after the last *FLAGS variable, or 13818 # (2) before a word containing "conftest.", or (3) at the end. 13819 # Note that $ac_compile itself does not contain backslashes and begins 13820 # with a dollar sign (not a hyphen), so the echo should work correctly. 13821 # The option is referenced via a variable to avoid confusing sed. 13822 lt_compile=`echo "$ac_compile" | $SED \ 13823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13825 -e 's:$: $lt_compiler_flag:'` 13826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13827 (eval "$lt_compile" 2>conftest.err) 13828 ac_status=$? 13829 cat conftest.err >&5 13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13831 if (exit $ac_status) && test -s "$ac_outfile"; then 13832 # The compiler can only warn and ignore the option if not recognized 13833 # So say no if there are warnings other than the usual output. 13834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13837 lt_cv_prog_compiler_pic_works_CXX=yes 13838 fi 13839 fi 13840 $RM conftest* 13841 13842fi 13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13844$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13845 13846if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13847 case $lt_prog_compiler_pic_CXX in 13848 "" | " "*) ;; 13849 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13850 esac 13851else 13852 lt_prog_compiler_pic_CXX= 13853 lt_prog_compiler_can_build_shared_CXX=no 13854fi 13855 13856fi 13857 13858 13859 13860# 13861# Check to make sure the static flag actually works. 13862# 13863wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13865$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13866if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13867 $as_echo_n "(cached) " >&6 13868else 13869 lt_cv_prog_compiler_static_works_CXX=no 13870 save_LDFLAGS="$LDFLAGS" 13871 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13872 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13874 # The linker can only warn and ignore the option if not recognized 13875 # So say no if there are warnings 13876 if test -s conftest.err; then 13877 # Append any errors to the config.log. 13878 cat conftest.err 1>&5 13879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13881 if diff conftest.exp conftest.er2 >/dev/null; then 13882 lt_cv_prog_compiler_static_works_CXX=yes 13883 fi 13884 else 13885 lt_cv_prog_compiler_static_works_CXX=yes 13886 fi 13887 fi 13888 $RM -r conftest* 13889 LDFLAGS="$save_LDFLAGS" 13890 13891fi 13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13893$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13894 13895if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13896 : 13897else 13898 lt_prog_compiler_static_CXX= 13899fi 13900 13901 13902 13903 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13906if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13907 $as_echo_n "(cached) " >&6 13908else 13909 lt_cv_prog_compiler_c_o_CXX=no 13910 $RM -r conftest 2>/dev/null 13911 mkdir conftest 13912 cd conftest 13913 mkdir out 13914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13915 13916 lt_compiler_flag="-o out/conftest2.$ac_objext" 13917 # Insert the option either (1) after the last *FLAGS variable, or 13918 # (2) before a word containing "conftest.", or (3) at the end. 13919 # Note that $ac_compile itself does not contain backslashes and begins 13920 # with a dollar sign (not a hyphen), so the echo should work correctly. 13921 lt_compile=`echo "$ac_compile" | $SED \ 13922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13924 -e 's:$: $lt_compiler_flag:'` 13925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13926 (eval "$lt_compile" 2>out/conftest.err) 13927 ac_status=$? 13928 cat out/conftest.err >&5 13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13930 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13931 then 13932 # The compiler can only warn and ignore the option if not recognized 13933 # So say no if there are warnings 13934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13937 lt_cv_prog_compiler_c_o_CXX=yes 13938 fi 13939 fi 13940 chmod u+w . 2>&5 13941 $RM conftest* 13942 # SGI C++ compiler will create directory out/ii_files/ for 13943 # template instantiation 13944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13945 $RM out/* && rmdir out 13946 cd .. 13947 $RM -r conftest 13948 $RM conftest* 13949 13950fi 13951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13952$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13953 13954 13955 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13958if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13959 $as_echo_n "(cached) " >&6 13960else 13961 lt_cv_prog_compiler_c_o_CXX=no 13962 $RM -r conftest 2>/dev/null 13963 mkdir conftest 13964 cd conftest 13965 mkdir out 13966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13967 13968 lt_compiler_flag="-o out/conftest2.$ac_objext" 13969 # Insert the option either (1) after the last *FLAGS variable, or 13970 # (2) before a word containing "conftest.", or (3) at the end. 13971 # Note that $ac_compile itself does not contain backslashes and begins 13972 # with a dollar sign (not a hyphen), so the echo should work correctly. 13973 lt_compile=`echo "$ac_compile" | $SED \ 13974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13976 -e 's:$: $lt_compiler_flag:'` 13977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13978 (eval "$lt_compile" 2>out/conftest.err) 13979 ac_status=$? 13980 cat out/conftest.err >&5 13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13982 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13983 then 13984 # The compiler can only warn and ignore the option if not recognized 13985 # So say no if there are warnings 13986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13989 lt_cv_prog_compiler_c_o_CXX=yes 13990 fi 13991 fi 13992 chmod u+w . 2>&5 13993 $RM conftest* 13994 # SGI C++ compiler will create directory out/ii_files/ for 13995 # template instantiation 13996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13997 $RM out/* && rmdir out 13998 cd .. 13999 $RM -r conftest 14000 $RM conftest* 14001 14002fi 14003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14004$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14005 14006 14007 14008 14009hard_links="nottested" 14010if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14011 # do not overwrite the value of need_locks provided by the user 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14013$as_echo_n "checking if we can lock with hard links... " >&6; } 14014 hard_links=yes 14015 $RM conftest* 14016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14017 touch conftest.a 14018 ln conftest.a conftest.b 2>&5 || hard_links=no 14019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14021$as_echo "$hard_links" >&6; } 14022 if test "$hard_links" = no; then 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14024$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14025 need_locks=warn 14026 fi 14027else 14028 need_locks=no 14029fi 14030 14031 14032 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14034$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14035 14036 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14037 case $host_os in 14038 aix[4-9]*) 14039 # If we're using GNU nm, then we don't want the "-C" option. 14040 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14041 # Also, AIX nm treats weak defined symbols like other global defined 14042 # symbols, whereas GNU nm marks them as "W". 14043 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14044 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14045 else 14046 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' 14047 fi 14048 ;; 14049 pw32*) 14050 export_symbols_cmds_CXX="$ltdll_cmds" 14051 ;; 14052 cygwin* | mingw* | cegcc*) 14053 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' 14054 ;; 14055 *) 14056 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14057 ;; 14058 esac 14059 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14060 14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14062$as_echo "$ld_shlibs_CXX" >&6; } 14063test "$ld_shlibs_CXX" = no && can_build_shared=no 14064 14065with_gnu_ld_CXX=$with_gnu_ld 14066 14067 14068 14069 14070 14071 14072# 14073# Do we need to explicitly link libc? 14074# 14075case "x$archive_cmds_need_lc_CXX" in 14076x|xyes) 14077 # Assume -lc should be added 14078 archive_cmds_need_lc_CXX=yes 14079 14080 if test "$enable_shared" = yes && test "$GCC" = yes; then 14081 case $archive_cmds_CXX in 14082 *'~'*) 14083 # FIXME: we may have to deal with multi-command sequences. 14084 ;; 14085 '$CC '*) 14086 # Test whether the compiler implicitly links with -lc since on some 14087 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14088 # to ld, don't add -lc before -lgcc. 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14090$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14091if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 14092 $as_echo_n "(cached) " >&6 14093else 14094 $RM conftest* 14095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14096 14097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14098 (eval $ac_compile) 2>&5 14099 ac_status=$? 14100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14101 test $ac_status = 0; } 2>conftest.err; then 14102 soname=conftest 14103 lib=conftest 14104 libobjs=conftest.$ac_objext 14105 deplibs= 14106 wl=$lt_prog_compiler_wl_CXX 14107 pic_flag=$lt_prog_compiler_pic_CXX 14108 compiler_flags=-v 14109 linker_flags=-v 14110 verstring= 14111 output_objdir=. 14112 libname=conftest 14113 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14114 allow_undefined_flag_CXX= 14115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14116 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14117 ac_status=$? 14118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14119 test $ac_status = 0; } 14120 then 14121 lt_cv_archive_cmds_need_lc_CXX=no 14122 else 14123 lt_cv_archive_cmds_need_lc_CXX=yes 14124 fi 14125 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14126 else 14127 cat conftest.err 1>&5 14128 fi 14129 $RM conftest* 14130 14131fi 14132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14133$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14134 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14135 ;; 14136 esac 14137 fi 14138 ;; 14139esac 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14205$as_echo_n "checking dynamic linker characteristics... " >&6; } 14206 14207library_names_spec= 14208libname_spec='lib$name' 14209soname_spec= 14210shrext_cmds=".so" 14211postinstall_cmds= 14212postuninstall_cmds= 14213finish_cmds= 14214finish_eval= 14215shlibpath_var= 14216shlibpath_overrides_runpath=unknown 14217version_type=none 14218dynamic_linker="$host_os ld.so" 14219sys_lib_dlsearch_path_spec="/lib /usr/lib" 14220need_lib_prefix=unknown 14221hardcode_into_libs=no 14222 14223# when you set need_version to no, make sure it does not cause -set_version 14224# flags to be left without arguments 14225need_version=unknown 14226 14227case $host_os in 14228aix3*) 14229 version_type=linux 14230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14231 shlibpath_var=LIBPATH 14232 14233 # AIX 3 has no versioning support, so we append a major version to the name. 14234 soname_spec='${libname}${release}${shared_ext}$major' 14235 ;; 14236 14237aix[4-9]*) 14238 version_type=linux 14239 need_lib_prefix=no 14240 need_version=no 14241 hardcode_into_libs=yes 14242 if test "$host_cpu" = ia64; then 14243 # AIX 5 supports IA64 14244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14245 shlibpath_var=LD_LIBRARY_PATH 14246 else 14247 # With GCC up to 2.95.x, collect2 would create an import file 14248 # for dependence libraries. The import file would start with 14249 # the line `#! .'. This would cause the generated library to 14250 # depend on `.', always an invalid library. This was fixed in 14251 # development snapshots of GCC prior to 3.0. 14252 case $host_os in 14253 aix4 | aix4.[01] | aix4.[01].*) 14254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14255 echo ' yes ' 14256 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14257 : 14258 else 14259 can_build_shared=no 14260 fi 14261 ;; 14262 esac 14263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14264 # soname into executable. Probably we can add versioning support to 14265 # collect2, so additional links can be useful in future. 14266 if test "$aix_use_runtimelinking" = yes; then 14267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14268 # instead of lib<name>.a to let people know that these are not 14269 # typical AIX shared libraries. 14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14271 else 14272 # We preserve .a as extension for shared libraries through AIX4.2 14273 # and later when we are not doing run time linking. 14274 library_names_spec='${libname}${release}.a $libname.a' 14275 soname_spec='${libname}${release}${shared_ext}$major' 14276 fi 14277 shlibpath_var=LIBPATH 14278 fi 14279 ;; 14280 14281amigaos*) 14282 case $host_cpu in 14283 powerpc) 14284 # Since July 2007 AmigaOS4 officially supports .so libraries. 14285 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14287 ;; 14288 m68k) 14289 library_names_spec='$libname.ixlibrary $libname.a' 14290 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14291 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 14292 ;; 14293 esac 14294 ;; 14295 14296beos*) 14297 library_names_spec='${libname}${shared_ext}' 14298 dynamic_linker="$host_os ld.so" 14299 shlibpath_var=LIBRARY_PATH 14300 ;; 14301 14302bsdi[45]*) 14303 version_type=linux 14304 need_version=no 14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14306 soname_spec='${libname}${release}${shared_ext}$major' 14307 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14308 shlibpath_var=LD_LIBRARY_PATH 14309 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14310 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14311 # the default ld.so.conf also contains /usr/contrib/lib and 14312 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14313 # libtool to hard-code these into programs 14314 ;; 14315 14316cygwin* | mingw* | pw32* | cegcc*) 14317 version_type=windows 14318 shrext_cmds=".dll" 14319 need_version=no 14320 need_lib_prefix=no 14321 14322 case $GCC,$host_os in 14323 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14324 library_names_spec='$libname.dll.a' 14325 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14326 postinstall_cmds='base_file=`basename \${file}`~ 14327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14328 dldir=$destdir/`dirname \$dlpath`~ 14329 test -d \$dldir || mkdir -p \$dldir~ 14330 $install_prog $dir/$dlname \$dldir/$dlname~ 14331 chmod a+x \$dldir/$dlname~ 14332 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14333 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14334 fi' 14335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14336 dlpath=$dir/\$dldll~ 14337 $RM \$dlpath' 14338 shlibpath_overrides_runpath=yes 14339 14340 case $host_os in 14341 cygwin*) 14342 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14344 14345 ;; 14346 mingw* | cegcc*) 14347 # MinGW DLLs use traditional 'lib' prefix 14348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14349 ;; 14350 pw32*) 14351 # pw32 DLLs use 'pw' prefix rather than 'lib' 14352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14353 ;; 14354 esac 14355 ;; 14356 14357 *) 14358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14359 ;; 14360 esac 14361 dynamic_linker='Win32 ld.exe' 14362 # FIXME: first we should search . and the directory the executable is in 14363 shlibpath_var=PATH 14364 ;; 14365 14366darwin* | rhapsody*) 14367 dynamic_linker="$host_os dyld" 14368 version_type=darwin 14369 need_lib_prefix=no 14370 need_version=no 14371 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14372 soname_spec='${libname}${release}${major}$shared_ext' 14373 shlibpath_overrides_runpath=yes 14374 shlibpath_var=DYLD_LIBRARY_PATH 14375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14376 14377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14378 ;; 14379 14380dgux*) 14381 version_type=linux 14382 need_lib_prefix=no 14383 need_version=no 14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14385 soname_spec='${libname}${release}${shared_ext}$major' 14386 shlibpath_var=LD_LIBRARY_PATH 14387 ;; 14388 14389freebsd1*) 14390 dynamic_linker=no 14391 ;; 14392 14393freebsd* | dragonfly*) 14394 # DragonFly does not have aout. When/if they implement a new 14395 # versioning mechanism, adjust this. 14396 if test -x /usr/bin/objformat; then 14397 objformat=`/usr/bin/objformat` 14398 else 14399 case $host_os in 14400 freebsd[123]*) objformat=aout ;; 14401 *) objformat=elf ;; 14402 esac 14403 fi 14404 version_type=freebsd-$objformat 14405 case $version_type in 14406 freebsd-elf*) 14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14408 need_version=no 14409 need_lib_prefix=no 14410 ;; 14411 freebsd-*) 14412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14413 need_version=yes 14414 ;; 14415 esac 14416 shlibpath_var=LD_LIBRARY_PATH 14417 case $host_os in 14418 freebsd2*) 14419 shlibpath_overrides_runpath=yes 14420 ;; 14421 freebsd3.[01]* | freebsdelf3.[01]*) 14422 shlibpath_overrides_runpath=yes 14423 hardcode_into_libs=yes 14424 ;; 14425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14427 shlibpath_overrides_runpath=no 14428 hardcode_into_libs=yes 14429 ;; 14430 *) # from 4.6 on, and DragonFly 14431 shlibpath_overrides_runpath=yes 14432 hardcode_into_libs=yes 14433 ;; 14434 esac 14435 ;; 14436 14437gnu*) 14438 version_type=linux 14439 need_lib_prefix=no 14440 need_version=no 14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14442 soname_spec='${libname}${release}${shared_ext}$major' 14443 shlibpath_var=LD_LIBRARY_PATH 14444 hardcode_into_libs=yes 14445 ;; 14446 14447haiku*) 14448 version_type=linux 14449 need_lib_prefix=no 14450 need_version=no 14451 dynamic_linker="$host_os runtime_loader" 14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14453 soname_spec='${libname}${release}${shared_ext}$major' 14454 shlibpath_var=LIBRARY_PATH 14455 shlibpath_overrides_runpath=yes 14456 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14457 hardcode_into_libs=yes 14458 ;; 14459 14460hpux9* | hpux10* | hpux11*) 14461 # Give a soname corresponding to the major version so that dld.sl refuses to 14462 # link against other versions. 14463 version_type=sunos 14464 need_lib_prefix=no 14465 need_version=no 14466 case $host_cpu in 14467 ia64*) 14468 shrext_cmds='.so' 14469 hardcode_into_libs=yes 14470 dynamic_linker="$host_os dld.so" 14471 shlibpath_var=LD_LIBRARY_PATH 14472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14474 soname_spec='${libname}${release}${shared_ext}$major' 14475 if test "X$HPUX_IA64_MODE" = X32; then 14476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14477 else 14478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14479 fi 14480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14481 ;; 14482 hppa*64*) 14483 shrext_cmds='.sl' 14484 hardcode_into_libs=yes 14485 dynamic_linker="$host_os dld.sl" 14486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14489 soname_spec='${libname}${release}${shared_ext}$major' 14490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14492 ;; 14493 *) 14494 shrext_cmds='.sl' 14495 dynamic_linker="$host_os dld.sl" 14496 shlibpath_var=SHLIB_PATH 14497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14499 soname_spec='${libname}${release}${shared_ext}$major' 14500 ;; 14501 esac 14502 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14503 postinstall_cmds='chmod 555 $lib' 14504 # or fails outright, so override atomically: 14505 install_override_mode=555 14506 ;; 14507 14508interix[3-9]*) 14509 version_type=linux 14510 need_lib_prefix=no 14511 need_version=no 14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14513 soname_spec='${libname}${release}${shared_ext}$major' 14514 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14515 shlibpath_var=LD_LIBRARY_PATH 14516 shlibpath_overrides_runpath=no 14517 hardcode_into_libs=yes 14518 ;; 14519 14520irix5* | irix6* | nonstopux*) 14521 case $host_os in 14522 nonstopux*) version_type=nonstopux ;; 14523 *) 14524 if test "$lt_cv_prog_gnu_ld" = yes; then 14525 version_type=linux 14526 else 14527 version_type=irix 14528 fi ;; 14529 esac 14530 need_lib_prefix=no 14531 need_version=no 14532 soname_spec='${libname}${release}${shared_ext}$major' 14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14534 case $host_os in 14535 irix5* | nonstopux*) 14536 libsuff= shlibsuff= 14537 ;; 14538 *) 14539 case $LD in # libtool.m4 will add one of these switches to LD 14540 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14541 libsuff= shlibsuff= libmagic=32-bit;; 14542 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14543 libsuff=32 shlibsuff=N32 libmagic=N32;; 14544 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14545 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14546 *) libsuff= shlibsuff= libmagic=never-match;; 14547 esac 14548 ;; 14549 esac 14550 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14551 shlibpath_overrides_runpath=no 14552 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14553 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14554 hardcode_into_libs=yes 14555 ;; 14556 14557# No shared lib support for Linux oldld, aout, or coff. 14558linux*oldld* | linux*aout* | linux*coff*) 14559 dynamic_linker=no 14560 ;; 14561 14562# This must be Linux ELF. 14563linux* | k*bsd*-gnu | kopensolaris*-gnu) 14564 version_type=linux 14565 need_lib_prefix=no 14566 need_version=no 14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14568 soname_spec='${libname}${release}${shared_ext}$major' 14569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14570 shlibpath_var=LD_LIBRARY_PATH 14571 shlibpath_overrides_runpath=no 14572 14573 # Some binutils ld are patched to set DT_RUNPATH 14574 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 14575 $as_echo_n "(cached) " >&6 14576else 14577 lt_cv_shlibpath_overrides_runpath=no 14578 save_LDFLAGS=$LDFLAGS 14579 save_libdir=$libdir 14580 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14581 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584 14585int 14586main () 14587{ 14588 14589 ; 14590 return 0; 14591} 14592_ACEOF 14593if ac_fn_cxx_try_link "$LINENO"; then : 14594 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14595 lt_cv_shlibpath_overrides_runpath=yes 14596fi 14597fi 14598rm -f core conftest.err conftest.$ac_objext \ 14599 conftest$ac_exeext conftest.$ac_ext 14600 LDFLAGS=$save_LDFLAGS 14601 libdir=$save_libdir 14602 14603fi 14604 14605 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14606 14607 # This implies no fast_install, which is unacceptable. 14608 # Some rework will be needed to allow for fast_install 14609 # before this can be enabled. 14610 hardcode_into_libs=yes 14611 14612 # Add ABI-specific directories to the system library path. 14613 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 14614 14615 # Append ld.so.conf contents to the search path 14616 if test -f /etc/ld.so.conf; then 14617 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 14618 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 14619 14620 fi 14621 14622 # We used to test for /lib/ld.so.1 and disable shared libraries on 14623 # powerpc, because MkLinux only supported shared libraries with the 14624 # GNU dynamic linker. Since this was broken with cross compilers, 14625 # most powerpc-linux boxes support dynamic linking these days and 14626 # people can always --disable-shared, the test was removed, and we 14627 # assume the GNU/Linux dynamic linker is in use. 14628 dynamic_linker='GNU/Linux ld.so' 14629 ;; 14630 14631netbsd*) 14632 version_type=sunos 14633 need_lib_prefix=no 14634 need_version=no 14635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14638 dynamic_linker='NetBSD (a.out) ld.so' 14639 else 14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14641 soname_spec='${libname}${release}${shared_ext}$major' 14642 dynamic_linker='NetBSD ld.elf_so' 14643 fi 14644 shlibpath_var=LD_LIBRARY_PATH 14645 shlibpath_overrides_runpath=yes 14646 hardcode_into_libs=yes 14647 ;; 14648 14649newsos6) 14650 version_type=linux 14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14652 shlibpath_var=LD_LIBRARY_PATH 14653 shlibpath_overrides_runpath=yes 14654 ;; 14655 14656*nto* | *qnx*) 14657 version_type=qnx 14658 need_lib_prefix=no 14659 need_version=no 14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14661 soname_spec='${libname}${release}${shared_ext}$major' 14662 shlibpath_var=LD_LIBRARY_PATH 14663 shlibpath_overrides_runpath=no 14664 hardcode_into_libs=yes 14665 dynamic_linker='ldqnx.so' 14666 ;; 14667 14668openbsd*) 14669 version_type=sunos 14670 sys_lib_dlsearch_path_spec="/usr/lib" 14671 need_lib_prefix=no 14672 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14673 case $host_os in 14674 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14675 *) need_version=no ;; 14676 esac 14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14679 shlibpath_var=LD_LIBRARY_PATH 14680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14681 case $host_os in 14682 openbsd2.[89] | openbsd2.[89].*) 14683 shlibpath_overrides_runpath=no 14684 ;; 14685 *) 14686 shlibpath_overrides_runpath=yes 14687 ;; 14688 esac 14689 else 14690 shlibpath_overrides_runpath=yes 14691 fi 14692 ;; 14693 14694os2*) 14695 libname_spec='$name' 14696 shrext_cmds=".dll" 14697 need_lib_prefix=no 14698 library_names_spec='$libname${shared_ext} $libname.a' 14699 dynamic_linker='OS/2 ld.exe' 14700 shlibpath_var=LIBPATH 14701 ;; 14702 14703osf3* | osf4* | osf5*) 14704 version_type=osf 14705 need_lib_prefix=no 14706 need_version=no 14707 soname_spec='${libname}${release}${shared_ext}$major' 14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14709 shlibpath_var=LD_LIBRARY_PATH 14710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14711 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14712 ;; 14713 14714rdos*) 14715 dynamic_linker=no 14716 ;; 14717 14718solaris*) 14719 version_type=linux 14720 need_lib_prefix=no 14721 need_version=no 14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14723 soname_spec='${libname}${release}${shared_ext}$major' 14724 shlibpath_var=LD_LIBRARY_PATH 14725 shlibpath_overrides_runpath=yes 14726 hardcode_into_libs=yes 14727 # ldd complains unless libraries are executable 14728 postinstall_cmds='chmod +x $lib' 14729 ;; 14730 14731sunos4*) 14732 version_type=sunos 14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14735 shlibpath_var=LD_LIBRARY_PATH 14736 shlibpath_overrides_runpath=yes 14737 if test "$with_gnu_ld" = yes; then 14738 need_lib_prefix=no 14739 fi 14740 need_version=yes 14741 ;; 14742 14743sysv4 | sysv4.3*) 14744 version_type=linux 14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14746 soname_spec='${libname}${release}${shared_ext}$major' 14747 shlibpath_var=LD_LIBRARY_PATH 14748 case $host_vendor in 14749 sni) 14750 shlibpath_overrides_runpath=no 14751 need_lib_prefix=no 14752 runpath_var=LD_RUN_PATH 14753 ;; 14754 siemens) 14755 need_lib_prefix=no 14756 ;; 14757 motorola) 14758 need_lib_prefix=no 14759 need_version=no 14760 shlibpath_overrides_runpath=no 14761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14762 ;; 14763 esac 14764 ;; 14765 14766sysv4*MP*) 14767 if test -d /usr/nec ;then 14768 version_type=linux 14769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14770 soname_spec='$libname${shared_ext}.$major' 14771 shlibpath_var=LD_LIBRARY_PATH 14772 fi 14773 ;; 14774 14775sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14776 version_type=freebsd-elf 14777 need_lib_prefix=no 14778 need_version=no 14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14780 soname_spec='${libname}${release}${shared_ext}$major' 14781 shlibpath_var=LD_LIBRARY_PATH 14782 shlibpath_overrides_runpath=yes 14783 hardcode_into_libs=yes 14784 if test "$with_gnu_ld" = yes; then 14785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14786 else 14787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14788 case $host_os in 14789 sco3.2v5*) 14790 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14791 ;; 14792 esac 14793 fi 14794 sys_lib_dlsearch_path_spec='/usr/lib' 14795 ;; 14796 14797tpf*) 14798 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14799 version_type=linux 14800 need_lib_prefix=no 14801 need_version=no 14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14803 shlibpath_var=LD_LIBRARY_PATH 14804 shlibpath_overrides_runpath=no 14805 hardcode_into_libs=yes 14806 ;; 14807 14808uts4*) 14809 version_type=linux 14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14811 soname_spec='${libname}${release}${shared_ext}$major' 14812 shlibpath_var=LD_LIBRARY_PATH 14813 ;; 14814 14815*) 14816 dynamic_linker=no 14817 ;; 14818esac 14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14820$as_echo "$dynamic_linker" >&6; } 14821test "$dynamic_linker" = no && can_build_shared=no 14822 14823variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14824if test "$GCC" = yes; then 14825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14826fi 14827 14828if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14829 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14830fi 14831if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14832 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14833fi 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14873$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14874hardcode_action_CXX= 14875if test -n "$hardcode_libdir_flag_spec_CXX" || 14876 test -n "$runpath_var_CXX" || 14877 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14878 14879 # We can hardcode non-existent directories. 14880 if test "$hardcode_direct_CXX" != no && 14881 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14882 # have to relink, otherwise we might link with an installed library 14883 # when we should be linking with a yet-to-be-installed one 14884 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14885 test "$hardcode_minus_L_CXX" != no; then 14886 # Linking always hardcodes the temporary library directory. 14887 hardcode_action_CXX=relink 14888 else 14889 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14890 hardcode_action_CXX=immediate 14891 fi 14892else 14893 # We cannot hardcode anything, or else we can only hardcode existing 14894 # directories. 14895 hardcode_action_CXX=unsupported 14896fi 14897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14898$as_echo "$hardcode_action_CXX" >&6; } 14899 14900if test "$hardcode_action_CXX" = relink || 14901 test "$inherit_rpath_CXX" = yes; then 14902 # Fast installation is not supported 14903 enable_fast_install=no 14904elif test "$shlibpath_overrides_runpath" = yes || 14905 test "$enable_shared" = no; then 14906 # Fast installation is not necessary 14907 enable_fast_install=needless 14908fi 14909 14910 14911 14912 14913 14914 14915 14916 fi # test -n "$compiler" 14917 14918 CC=$lt_save_CC 14919 LDCXX=$LD 14920 LD=$lt_save_LD 14921 GCC=$lt_save_GCC 14922 with_gnu_ld=$lt_save_with_gnu_ld 14923 lt_cv_path_LDCXX=$lt_cv_path_LD 14924 lt_cv_path_LD=$lt_save_path_LD 14925 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14926 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14927fi # test "$_lt_caught_CXX_error" != yes 14928 14929ac_ext=c 14930ac_cpp='$CPP $CPPFLAGS' 14931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14933ac_compiler_gnu=$ac_cv_c_compiler_gnu 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 ac_config_commands="$ac_config_commands libtool" 14948 14949 14950 14951 14952# Only expand once: 14953 14954 14955 14956 14957saveLIBS="$LIBS" 14958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 14959$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 14960if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then : 14961 $as_echo_n "(cached) " >&6 14962else 14963 ac_check_lib_save_LIBS=$LIBS 14964LIBS="-lgdbm $LIBS" 14965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14966/* end confdefs.h. */ 14967 14968/* Override any GCC internal prototype to avoid an error. 14969 Use char because int might match the return type of a GCC 14970 builtin and then its argument prototype would still apply. */ 14971#ifdef __cplusplus 14972extern "C" 14973#endif 14974char gdbm_open (); 14975int 14976main () 14977{ 14978return gdbm_open (); 14979 ; 14980 return 0; 14981} 14982_ACEOF 14983if ac_fn_c_try_link "$LINENO"; then : 14984 ac_cv_lib_gdbm_gdbm_open=yes 14985else 14986 ac_cv_lib_gdbm_gdbm_open=no 14987fi 14988rm -f core conftest.err conftest.$ac_objext \ 14989 conftest$ac_exeext conftest.$ac_ext 14990LIBS=$ac_check_lib_save_LIBS 14991fi 14992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 14993$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 14994if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then : 14995 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" 14996fi 14997 14998 14999ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open" 15000if test "x$ac_cv_func_gdbm_open" = x""yes; then : 15001 FOUND_GDBM=1 15002else 15003 FOUND_GDBM=0 15004fi 15005 15006 15007if test "$FOUND_GDBM" = 1 15008then 15009 for ac_func in gdbm_fdesc 15010do : 15011 ac_fn_c_check_func "$LINENO" "gdbm_fdesc" "ac_cv_func_gdbm_fdesc" 15012if test "x$ac_cv_func_gdbm_fdesc" = x""yes; then : 15013 cat >>confdefs.h <<_ACEOF 15014#define HAVE_GDBM_FDESC 1 15015_ACEOF 15016 15017fi 15018done 15019 15020fi 15021for ac_header in unistd.h fcntl.h 15022do : 15023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15024ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15025if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15026 cat >>confdefs.h <<_ACEOF 15027#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15028_ACEOF 15029 15030fi 15031 15032done 15033 15034 15035LIBS="$saveLIBS" 15036 15037 15038 15039 if test "$FOUND_GDBM" = 1; then 15040 FOUND_GDBM_TRUE= 15041 FOUND_GDBM_FALSE='#' 15042else 15043 FOUND_GDBM_TRUE='#' 15044 FOUND_GDBM_FALSE= 15045fi 15046 15047 15048 15049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15050$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15051if test "${ac_cv_c_const+set}" = set; then : 15052 $as_echo_n "(cached) " >&6 15053else 15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15055/* end confdefs.h. */ 15056 15057int 15058main () 15059{ 15060/* FIXME: Include the comments suggested by Paul. */ 15061#ifndef __cplusplus 15062 /* Ultrix mips cc rejects this. */ 15063 typedef int charset[2]; 15064 const charset cs; 15065 /* SunOS 4.1.1 cc rejects this. */ 15066 char const *const *pcpcc; 15067 char **ppc; 15068 /* NEC SVR4.0.2 mips cc rejects this. */ 15069 struct point {int x, y;}; 15070 static struct point const zero = {0,0}; 15071 /* AIX XL C 1.02.0.0 rejects this. 15072 It does not let you subtract one const X* pointer from another in 15073 an arm of an if-expression whose if-part is not a constant 15074 expression */ 15075 const char *g = "string"; 15076 pcpcc = &g + (g ? g-g : 0); 15077 /* HPUX 7.0 cc rejects these. */ 15078 ++pcpcc; 15079 ppc = (char**) pcpcc; 15080 pcpcc = (char const *const *) ppc; 15081 { /* SCO 3.2v4 cc rejects this. */ 15082 char *t; 15083 char const *s = 0 ? (char *) 0 : (char const *) 0; 15084 15085 *t++ = 0; 15086 if (s) return 0; 15087 } 15088 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15089 int x[] = {25, 17}; 15090 const int *foo = &x[0]; 15091 ++foo; 15092 } 15093 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15094 typedef const int *iptr; 15095 iptr p = 0; 15096 ++p; 15097 } 15098 { /* AIX XL C 1.02.0.0 rejects this saying 15099 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15100 struct s { int j; const int *ap[3]; }; 15101 struct s *b; b->j = 5; 15102 } 15103 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15104 const int foo = 10; 15105 if (!foo) return 0; 15106 } 15107 return !cs[0] && !zero.x; 15108#endif 15109 15110 ; 15111 return 0; 15112} 15113_ACEOF 15114if ac_fn_c_try_compile "$LINENO"; then : 15115 ac_cv_c_const=yes 15116else 15117 ac_cv_c_const=no 15118fi 15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15120fi 15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15122$as_echo "$ac_cv_c_const" >&6; } 15123if test $ac_cv_c_const = no; then 15124 15125$as_echo "#define const /**/" >>confdefs.h 15126 15127fi 15128 15129ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15130if test "x$ac_cv_type_size_t" = x""yes; then : 15131 15132else 15133 15134cat >>confdefs.h <<_ACEOF 15135#define size_t unsigned int 15136_ACEOF 15137 15138fi 15139 15140 15141 15142ac_ext=cpp 15143ac_cpp='$CXXCPP $CPPFLAGS' 15144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15147 15148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler needs -fhandle-exceptions" >&5 15149$as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; } 15150if test "${ac_cv_need_handlexceptions+set}" = set; then : 15151 $as_echo_n "(cached) " >&6 15152else 15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15154/* end confdefs.h. */ 15155 15156int 15157main () 15158{ 15159 15160throw; 15161 15162 ; 15163 return 0; 15164} 15165_ACEOF 15166if ac_fn_cxx_try_compile "$LINENO"; then : 15167 ac_cv_need_handlexceptions=no 15168else 15169 ac_cv_need_handlexceptions=yes 15170fi 15171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15172 15173fi 15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_handlexceptions" >&5 15175$as_echo "$ac_cv_need_handlexceptions" >&6; } 15176 15177if test "$ac_cv_need_handlexceptions" = "yes" 15178then 15179 case "$CXXFLAGS" in 15180 *handle-exceptions*) 15181 ;; 15182 *) 15183 CXXFLAGS="-fhandle-exceptions $CXXFLAGS" 15184 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'` 15185 ;; 15186 esac 15187fi 15188 15189ac_config_files="$ac_config_files Makefile" 15190 15191cat >confcache <<\_ACEOF 15192# This file is a shell script that caches the results of configure 15193# tests run on this system so they can be shared between configure 15194# scripts and configure runs, see configure's option --config-cache. 15195# It is not useful on other systems. If it contains results you don't 15196# want to keep, you may remove or edit it. 15197# 15198# config.status only pays attention to the cache file if you give it 15199# the --recheck option to rerun configure. 15200# 15201# `ac_cv_env_foo' variables (set or unset) will be overridden when 15202# loading this file, other *unset* `ac_cv_foo' will be assigned the 15203# following values. 15204 15205_ACEOF 15206 15207# The following way of writing the cache mishandles newlines in values, 15208# but we know of no workaround that is simple, portable, and efficient. 15209# So, we kill variables containing newlines. 15210# Ultrix sh set writes to stderr and can't be redirected directly, 15211# and sets the high bit in the cache file unless we assign to the vars. 15212( 15213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15214 eval ac_val=\$$ac_var 15215 case $ac_val in #( 15216 *${as_nl}*) 15217 case $ac_var in #( 15218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15219$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15220 esac 15221 case $ac_var in #( 15222 _ | IFS | as_nl) ;; #( 15223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15224 *) { eval $ac_var=; unset $ac_var;} ;; 15225 esac ;; 15226 esac 15227 done 15228 15229 (set) 2>&1 | 15230 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15231 *${as_nl}ac_space=\ *) 15232 # `set' does not quote correctly, so add quotes: double-quote 15233 # substitution turns \\\\ into \\, and sed turns \\ into \. 15234 sed -n \ 15235 "s/'/'\\\\''/g; 15236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15237 ;; #( 15238 *) 15239 # `set' quotes correctly as required by POSIX, so do not add quotes. 15240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15241 ;; 15242 esac | 15243 sort 15244) | 15245 sed ' 15246 /^ac_cv_env_/b end 15247 t clear 15248 :clear 15249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15250 t end 15251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15252 :end' >>confcache 15253if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15254 if test -w "$cache_file"; then 15255 test "x$cache_file" != "x/dev/null" && 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15257$as_echo "$as_me: updating cache $cache_file" >&6;} 15258 cat confcache >$cache_file 15259 else 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15261$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15262 fi 15263fi 15264rm -f confcache 15265 15266test "x$prefix" = xNONE && prefix=$ac_default_prefix 15267# Let make expand exec_prefix. 15268test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15269 15270DEFS=-DHAVE_CONFIG_H 15271 15272ac_libobjs= 15273ac_ltlibobjs= 15274U= 15275for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15276 # 1. Remove the extension, and $U if already installed. 15277 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15278 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15279 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15280 # will be set to the directory where LIBOBJS objects are built. 15281 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15282 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15283done 15284LIBOBJS=$ac_libobjs 15285 15286LTLIBOBJS=$ac_ltlibobjs 15287 15288 15289 if test -n "$EXEEXT"; then 15290 am__EXEEXT_TRUE= 15291 am__EXEEXT_FALSE='#' 15292else 15293 am__EXEEXT_TRUE='#' 15294 am__EXEEXT_FALSE= 15295fi 15296 15297if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15298 as_fn_error $? "conditional \"AMDEP\" was never defined. 15299Usually this means the macro was only invoked conditionally." "$LINENO" 5 15300fi 15301if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15302 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15303Usually this means the macro was only invoked conditionally." "$LINENO" 5 15304fi 15305if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15306 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15307Usually this means the macro was only invoked conditionally." "$LINENO" 5 15308fi 15309if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15310 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15311Usually this means the macro was only invoked conditionally." "$LINENO" 5 15312fi 15313if test -z "${FOUND_GDBM_TRUE}" && test -z "${FOUND_GDBM_FALSE}"; then 15314 as_fn_error $? "conditional \"FOUND_GDBM\" was never defined. 15315Usually this means the macro was only invoked conditionally." "$LINENO" 5 15316fi 15317 15318: ${CONFIG_STATUS=./config.status} 15319ac_write_fail=0 15320ac_clean_files_save=$ac_clean_files 15321ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15323$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15324as_write_fail=0 15325cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15326#! $SHELL 15327# Generated by $as_me. 15328# Run this file to recreate the current configuration. 15329# Compiler output produced by configure, useful for debugging 15330# configure, is in config.log if it exists. 15331 15332debug=false 15333ac_cs_recheck=false 15334ac_cs_silent=false 15335 15336SHELL=\${CONFIG_SHELL-$SHELL} 15337export SHELL 15338_ASEOF 15339cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15340## -------------------- ## 15341## M4sh Initialization. ## 15342## -------------------- ## 15343 15344# Be more Bourne compatible 15345DUALCASE=1; export DUALCASE # for MKS sh 15346if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15347 emulate sh 15348 NULLCMD=: 15349 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15350 # is contrary to our usage. Disable this feature. 15351 alias -g '${1+"$@"}'='"$@"' 15352 setopt NO_GLOB_SUBST 15353else 15354 case `(set -o) 2>/dev/null` in #( 15355 *posix*) : 15356 set -o posix ;; #( 15357 *) : 15358 ;; 15359esac 15360fi 15361 15362 15363as_nl=' 15364' 15365export as_nl 15366# Printing a long string crashes Solaris 7 /usr/bin/printf. 15367as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15368as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15369as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15370# Prefer a ksh shell builtin over an external printf program on Solaris, 15371# but without wasting forks for bash or zsh. 15372if test -z "$BASH_VERSION$ZSH_VERSION" \ 15373 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15374 as_echo='print -r --' 15375 as_echo_n='print -rn --' 15376elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15377 as_echo='printf %s\n' 15378 as_echo_n='printf %s' 15379else 15380 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15381 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15382 as_echo_n='/usr/ucb/echo -n' 15383 else 15384 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15385 as_echo_n_body='eval 15386 arg=$1; 15387 case $arg in #( 15388 *"$as_nl"*) 15389 expr "X$arg" : "X\\(.*\\)$as_nl"; 15390 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15391 esac; 15392 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15393 ' 15394 export as_echo_n_body 15395 as_echo_n='sh -c $as_echo_n_body as_echo' 15396 fi 15397 export as_echo_body 15398 as_echo='sh -c $as_echo_body as_echo' 15399fi 15400 15401# The user is always right. 15402if test "${PATH_SEPARATOR+set}" != set; then 15403 PATH_SEPARATOR=: 15404 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15405 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15406 PATH_SEPARATOR=';' 15407 } 15408fi 15409 15410 15411# IFS 15412# We need space, tab and new line, in precisely that order. Quoting is 15413# there to prevent editors from complaining about space-tab. 15414# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15415# splitting by setting IFS to empty value.) 15416IFS=" "" $as_nl" 15417 15418# Find who we are. Look in the path if we contain no directory separator. 15419case $0 in #(( 15420 *[\\/]* ) as_myself=$0 ;; 15421 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15422for as_dir in $PATH 15423do 15424 IFS=$as_save_IFS 15425 test -z "$as_dir" && as_dir=. 15426 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15427 done 15428IFS=$as_save_IFS 15429 15430 ;; 15431esac 15432# We did not find ourselves, most probably we were run as `sh COMMAND' 15433# in which case we are not to be found in the path. 15434if test "x$as_myself" = x; then 15435 as_myself=$0 15436fi 15437if test ! -f "$as_myself"; then 15438 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15439 exit 1 15440fi 15441 15442# Unset variables that we do not need and which cause bugs (e.g. in 15443# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15444# suppresses any "Segmentation fault" message there. '((' could 15445# trigger a bug in pdksh 5.2.14. 15446for as_var in BASH_ENV ENV MAIL MAILPATH 15447do eval test x\${$as_var+set} = xset \ 15448 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15449done 15450PS1='$ ' 15451PS2='> ' 15452PS4='+ ' 15453 15454# NLS nuisances. 15455LC_ALL=C 15456export LC_ALL 15457LANGUAGE=C 15458export LANGUAGE 15459 15460# CDPATH. 15461(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15462 15463 15464# as_fn_error STATUS ERROR [LINENO LOG_FD] 15465# ---------------------------------------- 15466# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15467# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15468# script with STATUS, using 1 if that was 0. 15469as_fn_error () 15470{ 15471 as_status=$1; test $as_status -eq 0 && as_status=1 15472 if test "$4"; then 15473 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15474 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15475 fi 15476 $as_echo "$as_me: error: $2" >&2 15477 as_fn_exit $as_status 15478} # as_fn_error 15479 15480 15481# as_fn_set_status STATUS 15482# ----------------------- 15483# Set $? to STATUS, without forking. 15484as_fn_set_status () 15485{ 15486 return $1 15487} # as_fn_set_status 15488 15489# as_fn_exit STATUS 15490# ----------------- 15491# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15492as_fn_exit () 15493{ 15494 set +e 15495 as_fn_set_status $1 15496 exit $1 15497} # as_fn_exit 15498 15499# as_fn_unset VAR 15500# --------------- 15501# Portably unset VAR. 15502as_fn_unset () 15503{ 15504 { eval $1=; unset $1;} 15505} 15506as_unset=as_fn_unset 15507# as_fn_append VAR VALUE 15508# ---------------------- 15509# Append the text in VALUE to the end of the definition contained in VAR. Take 15510# advantage of any shell optimizations that allow amortized linear growth over 15511# repeated appends, instead of the typical quadratic growth present in naive 15512# implementations. 15513if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15514 eval 'as_fn_append () 15515 { 15516 eval $1+=\$2 15517 }' 15518else 15519 as_fn_append () 15520 { 15521 eval $1=\$$1\$2 15522 } 15523fi # as_fn_append 15524 15525# as_fn_arith ARG... 15526# ------------------ 15527# Perform arithmetic evaluation on the ARGs, and store the result in the 15528# global $as_val. Take advantage of shells that can avoid forks. The arguments 15529# must be portable across $(()) and expr. 15530if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15531 eval 'as_fn_arith () 15532 { 15533 as_val=$(( $* )) 15534 }' 15535else 15536 as_fn_arith () 15537 { 15538 as_val=`expr "$@" || test $? -eq 1` 15539 } 15540fi # as_fn_arith 15541 15542 15543if expr a : '\(a\)' >/dev/null 2>&1 && 15544 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15545 as_expr=expr 15546else 15547 as_expr=false 15548fi 15549 15550if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15551 as_basename=basename 15552else 15553 as_basename=false 15554fi 15555 15556if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15557 as_dirname=dirname 15558else 15559 as_dirname=false 15560fi 15561 15562as_me=`$as_basename -- "$0" || 15563$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15564 X"$0" : 'X\(//\)$' \| \ 15565 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15566$as_echo X/"$0" | 15567 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15568 s//\1/ 15569 q 15570 } 15571 /^X\/\(\/\/\)$/{ 15572 s//\1/ 15573 q 15574 } 15575 /^X\/\(\/\).*/{ 15576 s//\1/ 15577 q 15578 } 15579 s/.*/./; q'` 15580 15581# Avoid depending upon Character Ranges. 15582as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15583as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15584as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15585as_cr_digits='0123456789' 15586as_cr_alnum=$as_cr_Letters$as_cr_digits 15587 15588ECHO_C= ECHO_N= ECHO_T= 15589case `echo -n x` in #((((( 15590-n*) 15591 case `echo 'xy\c'` in 15592 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15593 xy) ECHO_C='\c';; 15594 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15595 ECHO_T=' ';; 15596 esac;; 15597*) 15598 ECHO_N='-n';; 15599esac 15600 15601rm -f conf$$ conf$$.exe conf$$.file 15602if test -d conf$$.dir; then 15603 rm -f conf$$.dir/conf$$.file 15604else 15605 rm -f conf$$.dir 15606 mkdir conf$$.dir 2>/dev/null 15607fi 15608if (echo >conf$$.file) 2>/dev/null; then 15609 if ln -s conf$$.file conf$$ 2>/dev/null; then 15610 as_ln_s='ln -s' 15611 # ... but there are two gotchas: 15612 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15613 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15614 # In both cases, we have to default to `cp -p'. 15615 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15616 as_ln_s='cp -p' 15617 elif ln conf$$.file conf$$ 2>/dev/null; then 15618 as_ln_s=ln 15619 else 15620 as_ln_s='cp -p' 15621 fi 15622else 15623 as_ln_s='cp -p' 15624fi 15625rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15626rmdir conf$$.dir 2>/dev/null 15627 15628 15629# as_fn_mkdir_p 15630# ------------- 15631# Create "$as_dir" as a directory, including parents if necessary. 15632as_fn_mkdir_p () 15633{ 15634 15635 case $as_dir in #( 15636 -*) as_dir=./$as_dir;; 15637 esac 15638 test -d "$as_dir" || eval $as_mkdir_p || { 15639 as_dirs= 15640 while :; do 15641 case $as_dir in #( 15642 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15643 *) as_qdir=$as_dir;; 15644 esac 15645 as_dirs="'$as_qdir' $as_dirs" 15646 as_dir=`$as_dirname -- "$as_dir" || 15647$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15648 X"$as_dir" : 'X\(//\)[^/]' \| \ 15649 X"$as_dir" : 'X\(//\)$' \| \ 15650 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15651$as_echo X"$as_dir" | 15652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15653 s//\1/ 15654 q 15655 } 15656 /^X\(\/\/\)[^/].*/{ 15657 s//\1/ 15658 q 15659 } 15660 /^X\(\/\/\)$/{ 15661 s//\1/ 15662 q 15663 } 15664 /^X\(\/\).*/{ 15665 s//\1/ 15666 q 15667 } 15668 s/.*/./; q'` 15669 test -d "$as_dir" && break 15670 done 15671 test -z "$as_dirs" || eval "mkdir $as_dirs" 15672 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15673 15674 15675} # as_fn_mkdir_p 15676if mkdir -p . 2>/dev/null; then 15677 as_mkdir_p='mkdir -p "$as_dir"' 15678else 15679 test -d ./-p && rmdir ./-p 15680 as_mkdir_p=false 15681fi 15682 15683if test -x / >/dev/null 2>&1; then 15684 as_test_x='test -x' 15685else 15686 if ls -dL / >/dev/null 2>&1; then 15687 as_ls_L_option=L 15688 else 15689 as_ls_L_option= 15690 fi 15691 as_test_x=' 15692 eval sh -c '\'' 15693 if test -d "$1"; then 15694 test -d "$1/."; 15695 else 15696 case $1 in #( 15697 -*)set "./$1";; 15698 esac; 15699 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15700 ???[sx]*):;;*)false;;esac;fi 15701 '\'' sh 15702 ' 15703fi 15704as_executable_p=$as_test_x 15705 15706# Sed expression to map a string onto a valid CPP name. 15707as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15708 15709# Sed expression to map a string onto a valid variable name. 15710as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15711 15712 15713exec 6>&1 15714## ----------------------------------- ## 15715## Main body of $CONFIG_STATUS script. ## 15716## ----------------------------------- ## 15717_ASEOF 15718test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15719 15720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15721# Save the log message, to keep $0 and so on meaningful, and to 15722# report actual input values of CONFIG_FILES etc. instead of their 15723# values after options handling. 15724ac_log=" 15725This file was extended by gdbmobj $as_me 0.10, which was 15726generated by GNU Autoconf 2.66. Invocation command line was 15727 15728 CONFIG_FILES = $CONFIG_FILES 15729 CONFIG_HEADERS = $CONFIG_HEADERS 15730 CONFIG_LINKS = $CONFIG_LINKS 15731 CONFIG_COMMANDS = $CONFIG_COMMANDS 15732 $ $0 $@ 15733 15734on `(hostname || uname -n) 2>/dev/null | sed 1q` 15735" 15736 15737_ACEOF 15738 15739case $ac_config_files in *" 15740"*) set x $ac_config_files; shift; ac_config_files=$*;; 15741esac 15742 15743case $ac_config_headers in *" 15744"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15745esac 15746 15747 15748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15749# Files that config.status was made for. 15750config_files="$ac_config_files" 15751config_headers="$ac_config_headers" 15752config_commands="$ac_config_commands" 15753 15754_ACEOF 15755 15756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15757ac_cs_usage="\ 15758\`$as_me' instantiates files and other configuration actions 15759from templates according to the current configuration. Unless the files 15760and actions are specified as TAGs, all are instantiated by default. 15761 15762Usage: $0 [OPTION]... [TAG]... 15763 15764 -h, --help print this help, then exit 15765 -V, --version print version number and configuration settings, then exit 15766 --config print configuration, then exit 15767 -q, --quiet, --silent 15768 do not print progress messages 15769 -d, --debug don't remove temporary files 15770 --recheck update $as_me by reconfiguring in the same conditions 15771 --file=FILE[:TEMPLATE] 15772 instantiate the configuration file FILE 15773 --header=FILE[:TEMPLATE] 15774 instantiate the configuration header FILE 15775 15776Configuration files: 15777$config_files 15778 15779Configuration headers: 15780$config_headers 15781 15782Configuration commands: 15783$config_commands 15784 15785Report bugs to <courier-users@lists.sourceforge.net>." 15786 15787_ACEOF 15788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15789ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15790ac_cs_version="\\ 15791gdbmobj config.status 0.10 15792configured by $0, generated by GNU Autoconf 2.66, 15793 with options \\"\$ac_cs_config\\" 15794 15795Copyright (C) 2010 Free Software Foundation, Inc. 15796This config.status script is free software; the Free Software Foundation 15797gives unlimited permission to copy, distribute and modify it." 15798 15799ac_pwd='$ac_pwd' 15800srcdir='$srcdir' 15801INSTALL='$INSTALL' 15802MKDIR_P='$MKDIR_P' 15803AWK='$AWK' 15804test -n "\$AWK" || AWK=awk 15805_ACEOF 15806 15807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15808# The default lists apply if the user does not specify any file. 15809ac_need_defaults=: 15810while test $# != 0 15811do 15812 case $1 in 15813 --*=*) 15814 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15815 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15816 ac_shift=: 15817 ;; 15818 *) 15819 ac_option=$1 15820 ac_optarg=$2 15821 ac_shift=shift 15822 ;; 15823 esac 15824 15825 case $ac_option in 15826 # Handling of the options. 15827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15828 ac_cs_recheck=: ;; 15829 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15830 $as_echo "$ac_cs_version"; exit ;; 15831 --config | --confi | --conf | --con | --co | --c ) 15832 $as_echo "$ac_cs_config"; exit ;; 15833 --debug | --debu | --deb | --de | --d | -d ) 15834 debug=: ;; 15835 --file | --fil | --fi | --f ) 15836 $ac_shift 15837 case $ac_optarg in 15838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15839 esac 15840 as_fn_append CONFIG_FILES " '$ac_optarg'" 15841 ac_need_defaults=false;; 15842 --header | --heade | --head | --hea ) 15843 $ac_shift 15844 case $ac_optarg in 15845 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15846 esac 15847 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15848 ac_need_defaults=false;; 15849 --he | --h) 15850 # Conflict between --help and --header 15851 as_fn_error $? "ambiguous option: \`$1' 15852Try \`$0 --help' for more information.";; 15853 --help | --hel | -h ) 15854 $as_echo "$ac_cs_usage"; exit ;; 15855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15856 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15857 ac_cs_silent=: ;; 15858 15859 # This is an error. 15860 -*) as_fn_error $? "unrecognized option: \`$1' 15861Try \`$0 --help' for more information." ;; 15862 15863 *) as_fn_append ac_config_targets " $1" 15864 ac_need_defaults=false ;; 15865 15866 esac 15867 shift 15868done 15869 15870ac_configure_extra_args= 15871 15872if $ac_cs_silent; then 15873 exec 6>/dev/null 15874 ac_configure_extra_args="$ac_configure_extra_args --silent" 15875fi 15876 15877_ACEOF 15878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15879if \$ac_cs_recheck; then 15880 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15881 shift 15882 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15883 CONFIG_SHELL='$SHELL' 15884 export CONFIG_SHELL 15885 exec "\$@" 15886fi 15887 15888_ACEOF 15889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15890exec 5>>config.log 15891{ 15892 echo 15893 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15894## Running $as_me. ## 15895_ASBOX 15896 $as_echo "$ac_log" 15897} >&5 15898 15899_ACEOF 15900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15901# 15902# INIT-COMMANDS 15903# 15904AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15905 15906 15907# The HP-UX ksh and POSIX shell print the target directory to stdout 15908# if CDPATH is set. 15909(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15910 15911sed_quote_subst='$sed_quote_subst' 15912double_quote_subst='$double_quote_subst' 15913delay_variable_subst='$delay_variable_subst' 15914macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15915macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15916enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15917enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15918pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15919enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15920SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15921ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15922host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15923host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15924host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15925build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15926build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15927build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15928SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15929Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15930GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15931EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15932FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15933LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15934NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15935LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15936max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15937ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15938exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15939lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15940lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15941lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15942reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15943reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15944OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15945deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15946file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15947AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15948AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15949STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15950RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15951old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15952old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15953old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15954lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15955CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15956CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15957compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15958GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15959lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15960lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15961lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15962lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 15963objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15964MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15965lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15966lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15967lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15968lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15969lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15970need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15971DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15972NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15973LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15974OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15975OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15976libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15977shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15978extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15979archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15980enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15981export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15982whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15983compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15984old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15985old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15986archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15987archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15988module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15989module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15990with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15991allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15992no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15993hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15994hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15995hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15996hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15997hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15998hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15999hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16000hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16001inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16002link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16003fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16004always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16005export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16006exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16007include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16008prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16009file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16010variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16011need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16012need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16013version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16014runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16015shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16016shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16017libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16018library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16019soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16020install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16021postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16022postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16023finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16024finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16025hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16026sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16027sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16028hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16029enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16030enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16031enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16032old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16033striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16034compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16035predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16036postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16037predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16038postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16039compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16040LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16041reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16042reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16043old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16044compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16045GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16046lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16047lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16048lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16049lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16050lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16051archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16052enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16053export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16054whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16055compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16056old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16057old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16058archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16059archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16060module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16061module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16062with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16063allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16064no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16065hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16066hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 16067hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16068hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16069hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16070hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16071hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16072hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16073inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16074link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16075fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 16076always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16077export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16078exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16079include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16080prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16081file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16082hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16083compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16084predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16085postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16086predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16087postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16088compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16089 16090LTCC='$LTCC' 16091LTCFLAGS='$LTCFLAGS' 16092compiler='$compiler_DEFAULT' 16093 16094# A function that is used when there is no print builtin or printf. 16095func_fallback_echo () 16096{ 16097 eval 'cat <<_LTECHO_EOF 16098\$1 16099_LTECHO_EOF' 16100} 16101 16102# Quote evaled strings. 16103for var in SHELL \ 16104ECHO \ 16105SED \ 16106GREP \ 16107EGREP \ 16108FGREP \ 16109LD \ 16110NM \ 16111LN_S \ 16112lt_SP2NL \ 16113lt_NL2SP \ 16114reload_flag \ 16115OBJDUMP \ 16116deplibs_check_method \ 16117file_magic_cmd \ 16118AR \ 16119AR_FLAGS \ 16120STRIP \ 16121RANLIB \ 16122CC \ 16123CFLAGS \ 16124compiler \ 16125lt_cv_sys_global_symbol_pipe \ 16126lt_cv_sys_global_symbol_to_cdecl \ 16127lt_cv_sys_global_symbol_to_c_name_address \ 16128lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16129lt_prog_compiler_no_builtin_flag \ 16130lt_prog_compiler_wl \ 16131lt_prog_compiler_pic \ 16132lt_prog_compiler_static \ 16133lt_cv_prog_compiler_c_o \ 16134need_locks \ 16135DSYMUTIL \ 16136NMEDIT \ 16137LIPO \ 16138OTOOL \ 16139OTOOL64 \ 16140shrext_cmds \ 16141export_dynamic_flag_spec \ 16142whole_archive_flag_spec \ 16143compiler_needs_object \ 16144with_gnu_ld \ 16145allow_undefined_flag \ 16146no_undefined_flag \ 16147hardcode_libdir_flag_spec \ 16148hardcode_libdir_flag_spec_ld \ 16149hardcode_libdir_separator \ 16150fix_srcfile_path \ 16151exclude_expsyms \ 16152include_expsyms \ 16153file_list_spec \ 16154variables_saved_for_relink \ 16155libname_spec \ 16156library_names_spec \ 16157soname_spec \ 16158install_override_mode \ 16159finish_eval \ 16160old_striplib \ 16161striplib \ 16162compiler_lib_search_dirs \ 16163predep_objects \ 16164postdep_objects \ 16165predeps \ 16166postdeps \ 16167compiler_lib_search_path \ 16168LD_CXX \ 16169reload_flag_CXX \ 16170compiler_CXX \ 16171lt_prog_compiler_no_builtin_flag_CXX \ 16172lt_prog_compiler_wl_CXX \ 16173lt_prog_compiler_pic_CXX \ 16174lt_prog_compiler_static_CXX \ 16175lt_cv_prog_compiler_c_o_CXX \ 16176export_dynamic_flag_spec_CXX \ 16177whole_archive_flag_spec_CXX \ 16178compiler_needs_object_CXX \ 16179with_gnu_ld_CXX \ 16180allow_undefined_flag_CXX \ 16181no_undefined_flag_CXX \ 16182hardcode_libdir_flag_spec_CXX \ 16183hardcode_libdir_flag_spec_ld_CXX \ 16184hardcode_libdir_separator_CXX \ 16185fix_srcfile_path_CXX \ 16186exclude_expsyms_CXX \ 16187include_expsyms_CXX \ 16188file_list_spec_CXX \ 16189compiler_lib_search_dirs_CXX \ 16190predep_objects_CXX \ 16191postdep_objects_CXX \ 16192predeps_CXX \ 16193postdeps_CXX \ 16194compiler_lib_search_path_CXX; do 16195 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16196 *[\\\\\\\`\\"\\\$]*) 16197 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16198 ;; 16199 *) 16200 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16201 ;; 16202 esac 16203done 16204 16205# Double-quote double-evaled strings. 16206for var in reload_cmds \ 16207old_postinstall_cmds \ 16208old_postuninstall_cmds \ 16209old_archive_cmds \ 16210extract_expsyms_cmds \ 16211old_archive_from_new_cmds \ 16212old_archive_from_expsyms_cmds \ 16213archive_cmds \ 16214archive_expsym_cmds \ 16215module_cmds \ 16216module_expsym_cmds \ 16217export_symbols_cmds \ 16218prelink_cmds \ 16219postinstall_cmds \ 16220postuninstall_cmds \ 16221finish_cmds \ 16222sys_lib_search_path_spec \ 16223sys_lib_dlsearch_path_spec \ 16224reload_cmds_CXX \ 16225old_archive_cmds_CXX \ 16226old_archive_from_new_cmds_CXX \ 16227old_archive_from_expsyms_cmds_CXX \ 16228archive_cmds_CXX \ 16229archive_expsym_cmds_CXX \ 16230module_cmds_CXX \ 16231module_expsym_cmds_CXX \ 16232export_symbols_cmds_CXX \ 16233prelink_cmds_CXX; do 16234 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16235 *[\\\\\\\`\\"\\\$]*) 16236 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16237 ;; 16238 *) 16239 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16240 ;; 16241 esac 16242done 16243 16244ac_aux_dir='$ac_aux_dir' 16245xsi_shell='$xsi_shell' 16246lt_shell_append='$lt_shell_append' 16247 16248# See if we are running on zsh, and set the options which allow our 16249# commands through without removal of \ escapes INIT. 16250if test -n "\${ZSH_VERSION+set}" ; then 16251 setopt NO_GLOB_SUBST 16252fi 16253 16254 16255 PACKAGE='$PACKAGE' 16256 VERSION='$VERSION' 16257 TIMESTAMP='$TIMESTAMP' 16258 RM='$RM' 16259 ofile='$ofile' 16260 16261 16262 16263 16264 16265 16266_ACEOF 16267 16268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16269 16270# Handling of arguments. 16271for ac_config_target in $ac_config_targets 16272do 16273 case $ac_config_target in 16274 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16276 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16277 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16278 16279 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16280 esac 16281done 16282 16283 16284# If the user did not use the arguments to specify the items to instantiate, 16285# then the envvar interface is used. Set only those that are not. 16286# We use the long form for the default assignment because of an extremely 16287# bizarre bug on SunOS 4.1.3. 16288if $ac_need_defaults; then 16289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16290 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16292fi 16293 16294# Have a temporary directory for convenience. Make it in the build tree 16295# simply because there is no reason against having it here, and in addition, 16296# creating and moving files from /tmp can sometimes cause problems. 16297# Hook for its removal unless debugging. 16298# Note that there is a small window in which the directory will not be cleaned: 16299# after its creation but before its name has been assigned to `$tmp'. 16300$debug || 16301{ 16302 tmp= 16303 trap 'exit_status=$? 16304 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16305' 0 16306 trap 'as_fn_exit 1' 1 2 13 15 16307} 16308# Create a (secure) tmp directory for tmp files. 16309 16310{ 16311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16312 test -n "$tmp" && test -d "$tmp" 16313} || 16314{ 16315 tmp=./conf$$-$RANDOM 16316 (umask 077 && mkdir "$tmp") 16317} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16318 16319# Set up the scripts for CONFIG_FILES section. 16320# No need to generate them if there are no CONFIG_FILES. 16321# This happens for instance with `./config.status config.h'. 16322if test -n "$CONFIG_FILES"; then 16323 16324 16325ac_cr=`echo X | tr X '\015'` 16326# On cygwin, bash can eat \r inside `` if the user requested igncr. 16327# But we know of no other shell where ac_cr would be empty at this 16328# point, so we can use a bashism as a fallback. 16329if test "x$ac_cr" = x; then 16330 eval ac_cr=\$\'\\r\' 16331fi 16332ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16333if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16334 ac_cs_awk_cr='\\r' 16335else 16336 ac_cs_awk_cr=$ac_cr 16337fi 16338 16339echo 'BEGIN {' >"$tmp/subs1.awk" && 16340_ACEOF 16341 16342 16343{ 16344 echo "cat >conf$$subs.awk <<_ACEOF" && 16345 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16346 echo "_ACEOF" 16347} >conf$$subs.sh || 16348 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16349ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16350ac_delim='%!_!# ' 16351for ac_last_try in false false false false false :; do 16352 . ./conf$$subs.sh || 16353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16354 16355 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16356 if test $ac_delim_n = $ac_delim_num; then 16357 break 16358 elif $ac_last_try; then 16359 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16360 else 16361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16362 fi 16363done 16364rm -f conf$$subs.sh 16365 16366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16367cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16368_ACEOF 16369sed -n ' 16370h 16371s/^/S["/; s/!.*/"]=/ 16372p 16373g 16374s/^[^!]*!// 16375:repl 16376t repl 16377s/'"$ac_delim"'$// 16378t delim 16379:nl 16380h 16381s/\(.\{148\}\)..*/\1/ 16382t more1 16383s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16384p 16385n 16386b repl 16387:more1 16388s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16389p 16390g 16391s/.\{148\}// 16392t nl 16393:delim 16394h 16395s/\(.\{148\}\)..*/\1/ 16396t more2 16397s/["\\]/\\&/g; s/^/"/; s/$/"/ 16398p 16399b 16400:more2 16401s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16402p 16403g 16404s/.\{148\}// 16405t delim 16406' <conf$$subs.awk | sed ' 16407/^[^""]/{ 16408 N 16409 s/\n// 16410} 16411' >>$CONFIG_STATUS || ac_write_fail=1 16412rm -f conf$$subs.awk 16413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16414_ACAWK 16415cat >>"\$tmp/subs1.awk" <<_ACAWK && 16416 for (key in S) S_is_set[key] = 1 16417 FS = "" 16418 16419} 16420{ 16421 line = $ 0 16422 nfields = split(line, field, "@") 16423 substed = 0 16424 len = length(field[1]) 16425 for (i = 2; i < nfields; i++) { 16426 key = field[i] 16427 keylen = length(key) 16428 if (S_is_set[key]) { 16429 value = S[key] 16430 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16431 len += length(value) + length(field[++i]) 16432 substed = 1 16433 } else 16434 len += 1 + keylen 16435 } 16436 16437 print line 16438} 16439 16440_ACAWK 16441_ACEOF 16442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16443if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16444 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16445else 16446 cat 16447fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16448 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16449_ACEOF 16450 16451# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16452# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16453# trailing colons and then remove the whole line if VPATH becomes empty 16454# (actually we leave an empty line to preserve line numbers). 16455if test "x$srcdir" = x.; then 16456 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16457h 16458s/// 16459s/^/:/ 16460s/[ ]*$/:/ 16461s/:\$(srcdir):/:/g 16462s/:\${srcdir}:/:/g 16463s/:@srcdir@:/:/g 16464s/^:*// 16465s/:*$// 16466x 16467s/\(=[ ]*\).*/\1/ 16468G 16469s/\n// 16470s/^[^=]*=[ ]*$// 16471}' 16472fi 16473 16474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16475fi # test -n "$CONFIG_FILES" 16476 16477# Set up the scripts for CONFIG_HEADERS section. 16478# No need to generate them if there are no CONFIG_HEADERS. 16479# This happens for instance with `./config.status Makefile'. 16480if test -n "$CONFIG_HEADERS"; then 16481cat >"$tmp/defines.awk" <<\_ACAWK || 16482BEGIN { 16483_ACEOF 16484 16485# Transform confdefs.h into an awk script `defines.awk', embedded as 16486# here-document in config.status, that substitutes the proper values into 16487# config.h.in to produce config.h. 16488 16489# Create a delimiter string that does not exist in confdefs.h, to ease 16490# handling of long lines. 16491ac_delim='%!_!# ' 16492for ac_last_try in false false :; do 16493 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16494 if test -z "$ac_t"; then 16495 break 16496 elif $ac_last_try; then 16497 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16498 else 16499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16500 fi 16501done 16502 16503# For the awk script, D is an array of macro values keyed by name, 16504# likewise P contains macro parameters if any. Preserve backslash 16505# newline sequences. 16506 16507ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16508sed -n ' 16509s/.\{148\}/&'"$ac_delim"'/g 16510t rset 16511:rset 16512s/^[ ]*#[ ]*define[ ][ ]*/ / 16513t def 16514d 16515:def 16516s/\\$// 16517t bsnl 16518s/["\\]/\\&/g 16519s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16520D["\1"]=" \3"/p 16521s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16522d 16523:bsnl 16524s/["\\]/\\&/g 16525s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16526D["\1"]=" \3\\\\\\n"\\/p 16527t cont 16528s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16529t cont 16530d 16531:cont 16532n 16533s/.\{148\}/&'"$ac_delim"'/g 16534t clear 16535:clear 16536s/\\$// 16537t bsnlc 16538s/["\\]/\\&/g; s/^/"/; s/$/"/p 16539d 16540:bsnlc 16541s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16542b cont 16543' <confdefs.h | sed ' 16544s/'"$ac_delim"'/"\\\ 16545"/g' >>$CONFIG_STATUS || ac_write_fail=1 16546 16547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16548 for (key in D) D_is_set[key] = 1 16549 FS = "" 16550} 16551/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16552 line = \$ 0 16553 split(line, arg, " ") 16554 if (arg[1] == "#") { 16555 defundef = arg[2] 16556 mac1 = arg[3] 16557 } else { 16558 defundef = substr(arg[1], 2) 16559 mac1 = arg[2] 16560 } 16561 split(mac1, mac2, "(") #) 16562 macro = mac2[1] 16563 prefix = substr(line, 1, index(line, defundef) - 1) 16564 if (D_is_set[macro]) { 16565 # Preserve the white space surrounding the "#". 16566 print prefix "define", macro P[macro] D[macro] 16567 next 16568 } else { 16569 # Replace #undef with comments. This is necessary, for example, 16570 # in the case of _POSIX_SOURCE, which is predefined and required 16571 # on some systems where configure will not decide to define it. 16572 if (defundef == "undef") { 16573 print "/*", prefix defundef, macro, "*/" 16574 next 16575 } 16576 } 16577} 16578{ print } 16579_ACAWK 16580_ACEOF 16581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16582 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16583fi # test -n "$CONFIG_HEADERS" 16584 16585 16586eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16587shift 16588for ac_tag 16589do 16590 case $ac_tag in 16591 :[FHLC]) ac_mode=$ac_tag; continue;; 16592 esac 16593 case $ac_mode$ac_tag in 16594 :[FHL]*:*);; 16595 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16596 :[FH]-) ac_tag=-:-;; 16597 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16598 esac 16599 ac_save_IFS=$IFS 16600 IFS=: 16601 set x $ac_tag 16602 IFS=$ac_save_IFS 16603 shift 16604 ac_file=$1 16605 shift 16606 16607 case $ac_mode in 16608 :L) ac_source=$1;; 16609 :[FH]) 16610 ac_file_inputs= 16611 for ac_f 16612 do 16613 case $ac_f in 16614 -) ac_f="$tmp/stdin";; 16615 *) # Look for the file first in the build tree, then in the source tree 16616 # (if the path is not absolute). The absolute path cannot be DOS-style, 16617 # because $ac_f cannot contain `:'. 16618 test -f "$ac_f" || 16619 case $ac_f in 16620 [\\/$]*) false;; 16621 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16622 esac || 16623 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16624 esac 16625 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16626 as_fn_append ac_file_inputs " '$ac_f'" 16627 done 16628 16629 # Let's still pretend it is `configure' which instantiates (i.e., don't 16630 # use $as_me), people would be surprised to read: 16631 # /* config.h. Generated by config.status. */ 16632 configure_input='Generated from '` 16633 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16634 `' by configure.' 16635 if test x"$ac_file" != x-; then 16636 configure_input="$ac_file. $configure_input" 16637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16638$as_echo "$as_me: creating $ac_file" >&6;} 16639 fi 16640 # Neutralize special characters interpreted by sed in replacement strings. 16641 case $configure_input in #( 16642 *\&* | *\|* | *\\* ) 16643 ac_sed_conf_input=`$as_echo "$configure_input" | 16644 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16645 *) ac_sed_conf_input=$configure_input;; 16646 esac 16647 16648 case $ac_tag in 16649 *:-:* | *:-) cat >"$tmp/stdin" \ 16650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16651 esac 16652 ;; 16653 esac 16654 16655 ac_dir=`$as_dirname -- "$ac_file" || 16656$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16657 X"$ac_file" : 'X\(//\)[^/]' \| \ 16658 X"$ac_file" : 'X\(//\)$' \| \ 16659 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16660$as_echo X"$ac_file" | 16661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16662 s//\1/ 16663 q 16664 } 16665 /^X\(\/\/\)[^/].*/{ 16666 s//\1/ 16667 q 16668 } 16669 /^X\(\/\/\)$/{ 16670 s//\1/ 16671 q 16672 } 16673 /^X\(\/\).*/{ 16674 s//\1/ 16675 q 16676 } 16677 s/.*/./; q'` 16678 as_dir="$ac_dir"; as_fn_mkdir_p 16679 ac_builddir=. 16680 16681case "$ac_dir" in 16682.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16683*) 16684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16685 # A ".." for each directory in $ac_dir_suffix. 16686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16687 case $ac_top_builddir_sub in 16688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16690 esac ;; 16691esac 16692ac_abs_top_builddir=$ac_pwd 16693ac_abs_builddir=$ac_pwd$ac_dir_suffix 16694# for backward compatibility: 16695ac_top_builddir=$ac_top_build_prefix 16696 16697case $srcdir in 16698 .) # We are building in place. 16699 ac_srcdir=. 16700 ac_top_srcdir=$ac_top_builddir_sub 16701 ac_abs_top_srcdir=$ac_pwd ;; 16702 [\\/]* | ?:[\\/]* ) # Absolute name. 16703 ac_srcdir=$srcdir$ac_dir_suffix; 16704 ac_top_srcdir=$srcdir 16705 ac_abs_top_srcdir=$srcdir ;; 16706 *) # Relative name. 16707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16708 ac_top_srcdir=$ac_top_build_prefix$srcdir 16709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16710esac 16711ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16712 16713 16714 case $ac_mode in 16715 :F) 16716 # 16717 # CONFIG_FILE 16718 # 16719 16720 case $INSTALL in 16721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16722 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16723 esac 16724 ac_MKDIR_P=$MKDIR_P 16725 case $MKDIR_P in 16726 [\\/$]* | ?:[\\/]* ) ;; 16727 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16728 esac 16729_ACEOF 16730 16731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16732# If the template does not know about datarootdir, expand it. 16733# FIXME: This hack should be removed a few years after 2.60. 16734ac_datarootdir_hack=; ac_datarootdir_seen= 16735ac_sed_dataroot=' 16736/datarootdir/ { 16737 p 16738 q 16739} 16740/@datadir@/p 16741/@docdir@/p 16742/@infodir@/p 16743/@localedir@/p 16744/@mandir@/p' 16745case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16746*datarootdir*) ac_datarootdir_seen=yes;; 16747*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16749$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16750_ACEOF 16751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16752 ac_datarootdir_hack=' 16753 s&@datadir@&$datadir&g 16754 s&@docdir@&$docdir&g 16755 s&@infodir@&$infodir&g 16756 s&@localedir@&$localedir&g 16757 s&@mandir@&$mandir&g 16758 s&\\\${datarootdir}&$datarootdir&g' ;; 16759esac 16760_ACEOF 16761 16762# Neutralize VPATH when `$srcdir' = `.'. 16763# Shell code in configure.ac might set extrasub. 16764# FIXME: do we really want to maintain this feature? 16765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16766ac_sed_extra="$ac_vpsub 16767$extrasub 16768_ACEOF 16769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16770:t 16771/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16772s|@configure_input@|$ac_sed_conf_input|;t t 16773s&@top_builddir@&$ac_top_builddir_sub&;t t 16774s&@top_build_prefix@&$ac_top_build_prefix&;t t 16775s&@srcdir@&$ac_srcdir&;t t 16776s&@abs_srcdir@&$ac_abs_srcdir&;t t 16777s&@top_srcdir@&$ac_top_srcdir&;t t 16778s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16779s&@builddir@&$ac_builddir&;t t 16780s&@abs_builddir@&$ac_abs_builddir&;t t 16781s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16782s&@INSTALL@&$ac_INSTALL&;t t 16783s&@MKDIR_P@&$ac_MKDIR_P&;t t 16784$ac_datarootdir_hack 16785" 16786eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16788 16789test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16790 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16791 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16793which seems to be undefined. Please make sure it is defined" >&5 16794$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16795which seems to be undefined. Please make sure it is defined" >&2;} 16796 16797 rm -f "$tmp/stdin" 16798 case $ac_file in 16799 -) cat "$tmp/out" && rm -f "$tmp/out";; 16800 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16801 esac \ 16802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16803 ;; 16804 :H) 16805 # 16806 # CONFIG_HEADER 16807 # 16808 if test x"$ac_file" != x-; then 16809 { 16810 $as_echo "/* $configure_input */" \ 16811 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16812 } >"$tmp/config.h" \ 16813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16814 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16816$as_echo "$as_me: $ac_file is unchanged" >&6;} 16817 else 16818 rm -f "$ac_file" 16819 mv "$tmp/config.h" "$ac_file" \ 16820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16821 fi 16822 else 16823 $as_echo "/* $configure_input */" \ 16824 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16825 || as_fn_error $? "could not create -" "$LINENO" 5 16826 fi 16827# Compute "$ac_file"'s index in $config_headers. 16828_am_arg="$ac_file" 16829_am_stamp_count=1 16830for _am_header in $config_headers :; do 16831 case $_am_header in 16832 $_am_arg | $_am_arg:* ) 16833 break ;; 16834 * ) 16835 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16836 esac 16837done 16838echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16839$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16840 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16841 X"$_am_arg" : 'X\(//\)$' \| \ 16842 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16843$as_echo X"$_am_arg" | 16844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16845 s//\1/ 16846 q 16847 } 16848 /^X\(\/\/\)[^/].*/{ 16849 s//\1/ 16850 q 16851 } 16852 /^X\(\/\/\)$/{ 16853 s//\1/ 16854 q 16855 } 16856 /^X\(\/\).*/{ 16857 s//\1/ 16858 q 16859 } 16860 s/.*/./; q'`/stamp-h$_am_stamp_count 16861 ;; 16862 16863 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16864$as_echo "$as_me: executing $ac_file commands" >&6;} 16865 ;; 16866 esac 16867 16868 16869 case $ac_file$ac_mode in 16870 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16871 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16872 # are listed without --file. Let's play safe and only enable the eval 16873 # if we detect the quoting. 16874 case $CONFIG_FILES in 16875 *\'*) eval set x "$CONFIG_FILES" ;; 16876 *) set x $CONFIG_FILES ;; 16877 esac 16878 shift 16879 for mf 16880 do 16881 # Strip MF so we end up with the name of the file. 16882 mf=`echo "$mf" | sed -e 's/:.*$//'` 16883 # Check whether this is an Automake generated Makefile or not. 16884 # We used to match only the files named `Makefile.in', but 16885 # some people rename them; so instead we look at the file content. 16886 # Grep'ing the first line is not enough: some people post-process 16887 # each Makefile.in and add a new line on top of each file to say so. 16888 # Grep'ing the whole file is not good either: AIX grep has a line 16889 # limit of 2048, but all sed's we know have understand at least 4000. 16890 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16891 dirpart=`$as_dirname -- "$mf" || 16892$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16893 X"$mf" : 'X\(//\)[^/]' \| \ 16894 X"$mf" : 'X\(//\)$' \| \ 16895 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16896$as_echo X"$mf" | 16897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16898 s//\1/ 16899 q 16900 } 16901 /^X\(\/\/\)[^/].*/{ 16902 s//\1/ 16903 q 16904 } 16905 /^X\(\/\/\)$/{ 16906 s//\1/ 16907 q 16908 } 16909 /^X\(\/\).*/{ 16910 s//\1/ 16911 q 16912 } 16913 s/.*/./; q'` 16914 else 16915 continue 16916 fi 16917 # Extract the definition of DEPDIR, am__include, and am__quote 16918 # from the Makefile without running `make'. 16919 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16920 test -z "$DEPDIR" && continue 16921 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16922 test -z "am__include" && continue 16923 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16924 # When using ansi2knr, U may be empty or an underscore; expand it 16925 U=`sed -n 's/^U = //p' < "$mf"` 16926 # Find all dependency output files, they are included files with 16927 # $(DEPDIR) in their names. We invoke sed twice because it is the 16928 # simplest approach to changing $(DEPDIR) to its actual value in the 16929 # expansion. 16930 for file in `sed -n " 16931 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16932 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16933 # Make sure the directory exists. 16934 test -f "$dirpart/$file" && continue 16935 fdir=`$as_dirname -- "$file" || 16936$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16937 X"$file" : 'X\(//\)[^/]' \| \ 16938 X"$file" : 'X\(//\)$' \| \ 16939 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16940$as_echo X"$file" | 16941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16942 s//\1/ 16943 q 16944 } 16945 /^X\(\/\/\)[^/].*/{ 16946 s//\1/ 16947 q 16948 } 16949 /^X\(\/\/\)$/{ 16950 s//\1/ 16951 q 16952 } 16953 /^X\(\/\).*/{ 16954 s//\1/ 16955 q 16956 } 16957 s/.*/./; q'` 16958 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16959 # echo "creating $dirpart/$file" 16960 echo '# dummy' > "$dirpart/$file" 16961 done 16962 done 16963} 16964 ;; 16965 "libtool":C) 16966 16967 # See if we are running on zsh, and set the options which allow our 16968 # commands through without removal of \ escapes. 16969 if test -n "${ZSH_VERSION+set}" ; then 16970 setopt NO_GLOB_SUBST 16971 fi 16972 16973 cfgfile="${ofile}T" 16974 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16975 $RM "$cfgfile" 16976 16977 cat <<_LT_EOF >> "$cfgfile" 16978#! $SHELL 16979 16980# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16981# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16982# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16983# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16984# 16985# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16986# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 16987# Inc. 16988# Written by Gordon Matzigkeit, 1996 16989# 16990# This file is part of GNU Libtool. 16991# 16992# GNU Libtool is free software; you can redistribute it and/or 16993# modify it under the terms of the GNU General Public License as 16994# published by the Free Software Foundation; either version 2 of 16995# the License, or (at your option) any later version. 16996# 16997# As a special exception to the GNU General Public License, 16998# if you distribute this file as part of a program or library that 16999# is built using GNU Libtool, you may include this file under the 17000# same distribution terms that you use for the rest of that program. 17001# 17002# GNU Libtool is distributed in the hope that it will be useful, 17003# but WITHOUT ANY WARRANTY; without even the implied warranty of 17004# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17005# GNU General Public License for more details. 17006# 17007# You should have received a copy of the GNU General Public License 17008# along with GNU Libtool; see the file COPYING. If not, a copy 17009# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17010# obtained by writing to the Free Software Foundation, Inc., 17011# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17012 17013 17014# The names of the tagged configurations supported by this script. 17015available_tags="CXX " 17016 17017# ### BEGIN LIBTOOL CONFIG 17018 17019# Which release of libtool.m4 was used? 17020macro_version=$macro_version 17021macro_revision=$macro_revision 17022 17023# Whether or not to build shared libraries. 17024build_libtool_libs=$enable_shared 17025 17026# Whether or not to build static libraries. 17027build_old_libs=$enable_static 17028 17029# What type of objects to build. 17030pic_mode=$pic_mode 17031 17032# Whether or not to optimize for fast installation. 17033fast_install=$enable_fast_install 17034 17035# Shell to use when invoking shell scripts. 17036SHELL=$lt_SHELL 17037 17038# An echo program that protects backslashes. 17039ECHO=$lt_ECHO 17040 17041# The host system. 17042host_alias=$host_alias 17043host=$host 17044host_os=$host_os 17045 17046# The build system. 17047build_alias=$build_alias 17048build=$build 17049build_os=$build_os 17050 17051# A sed program that does not truncate output. 17052SED=$lt_SED 17053 17054# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17055Xsed="\$SED -e 1s/^X//" 17056 17057# A grep program that handles long lines. 17058GREP=$lt_GREP 17059 17060# An ERE matcher. 17061EGREP=$lt_EGREP 17062 17063# A literal string matcher. 17064FGREP=$lt_FGREP 17065 17066# A BSD- or MS-compatible name lister. 17067NM=$lt_NM 17068 17069# Whether we need soft or hard links. 17070LN_S=$lt_LN_S 17071 17072# What is the maximum length of a command? 17073max_cmd_len=$max_cmd_len 17074 17075# Object file suffix (normally "o"). 17076objext=$ac_objext 17077 17078# Executable file suffix (normally ""). 17079exeext=$exeext 17080 17081# whether the shell understands "unset". 17082lt_unset=$lt_unset 17083 17084# turn spaces into newlines. 17085SP2NL=$lt_lt_SP2NL 17086 17087# turn newlines into spaces. 17088NL2SP=$lt_lt_NL2SP 17089 17090# An object symbol dumper. 17091OBJDUMP=$lt_OBJDUMP 17092 17093# Method to check whether dependent libraries are shared objects. 17094deplibs_check_method=$lt_deplibs_check_method 17095 17096# Command to use when deplibs_check_method == "file_magic". 17097file_magic_cmd=$lt_file_magic_cmd 17098 17099# The archiver. 17100AR=$lt_AR 17101AR_FLAGS=$lt_AR_FLAGS 17102 17103# A symbol stripping program. 17104STRIP=$lt_STRIP 17105 17106# Commands used to install an old-style archive. 17107RANLIB=$lt_RANLIB 17108old_postinstall_cmds=$lt_old_postinstall_cmds 17109old_postuninstall_cmds=$lt_old_postuninstall_cmds 17110 17111# Whether to use a lock for old archive extraction. 17112lock_old_archive_extraction=$lock_old_archive_extraction 17113 17114# A C compiler. 17115LTCC=$lt_CC 17116 17117# LTCC compiler flags. 17118LTCFLAGS=$lt_CFLAGS 17119 17120# Take the output of nm and produce a listing of raw symbols and C names. 17121global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17122 17123# Transform the output of nm in a proper C declaration. 17124global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17125 17126# Transform the output of nm in a C name address pair. 17127global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17128 17129# Transform the output of nm in a C name address pair when lib prefix is needed. 17130global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17131 17132# The name of the directory that contains temporary libtool files. 17133objdir=$objdir 17134 17135# Used to examine libraries when file_magic_cmd begins with "file". 17136MAGIC_CMD=$MAGIC_CMD 17137 17138# Must we lock files when doing compilation? 17139need_locks=$lt_need_locks 17140 17141# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17142DSYMUTIL=$lt_DSYMUTIL 17143 17144# Tool to change global to local symbols on Mac OS X. 17145NMEDIT=$lt_NMEDIT 17146 17147# Tool to manipulate fat objects and archives on Mac OS X. 17148LIPO=$lt_LIPO 17149 17150# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17151OTOOL=$lt_OTOOL 17152 17153# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17154OTOOL64=$lt_OTOOL64 17155 17156# Old archive suffix (normally "a"). 17157libext=$libext 17158 17159# Shared library suffix (normally ".so"). 17160shrext_cmds=$lt_shrext_cmds 17161 17162# The commands to extract the exported symbol list from a shared archive. 17163extract_expsyms_cmds=$lt_extract_expsyms_cmds 17164 17165# Variables whose values should be saved in libtool wrapper scripts and 17166# restored at link time. 17167variables_saved_for_relink=$lt_variables_saved_for_relink 17168 17169# Do we need the "lib" prefix for modules? 17170need_lib_prefix=$need_lib_prefix 17171 17172# Do we need a version for libraries? 17173need_version=$need_version 17174 17175# Library versioning type. 17176version_type=$version_type 17177 17178# Shared library runtime path variable. 17179runpath_var=$runpath_var 17180 17181# Shared library path variable. 17182shlibpath_var=$shlibpath_var 17183 17184# Is shlibpath searched before the hard-coded library search path? 17185shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17186 17187# Format of library name prefix. 17188libname_spec=$lt_libname_spec 17189 17190# List of archive names. First name is the real one, the rest are links. 17191# The last name is the one that the linker finds with -lNAME 17192library_names_spec=$lt_library_names_spec 17193 17194# The coded name of the library, if different from the real name. 17195soname_spec=$lt_soname_spec 17196 17197# Permission mode override for installation of shared libraries. 17198install_override_mode=$lt_install_override_mode 17199 17200# Command to use after installation of a shared archive. 17201postinstall_cmds=$lt_postinstall_cmds 17202 17203# Command to use after uninstallation of a shared archive. 17204postuninstall_cmds=$lt_postuninstall_cmds 17205 17206# Commands used to finish a libtool library installation in a directory. 17207finish_cmds=$lt_finish_cmds 17208 17209# As "finish_cmds", except a single script fragment to be evaled but 17210# not shown. 17211finish_eval=$lt_finish_eval 17212 17213# Whether we should hardcode library paths into libraries. 17214hardcode_into_libs=$hardcode_into_libs 17215 17216# Compile-time system search path for libraries. 17217sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17218 17219# Run-time system search path for libraries. 17220sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17221 17222# Whether dlopen is supported. 17223dlopen_support=$enable_dlopen 17224 17225# Whether dlopen of programs is supported. 17226dlopen_self=$enable_dlopen_self 17227 17228# Whether dlopen of statically linked programs is supported. 17229dlopen_self_static=$enable_dlopen_self_static 17230 17231# Commands to strip libraries. 17232old_striplib=$lt_old_striplib 17233striplib=$lt_striplib 17234 17235 17236# The linker used to build libraries. 17237LD=$lt_LD 17238 17239# How to create reloadable object files. 17240reload_flag=$lt_reload_flag 17241reload_cmds=$lt_reload_cmds 17242 17243# Commands used to build an old-style archive. 17244old_archive_cmds=$lt_old_archive_cmds 17245 17246# A language specific compiler. 17247CC=$lt_compiler 17248 17249# Is the compiler the GNU compiler? 17250with_gcc=$GCC 17251 17252# Compiler flag to turn off builtin functions. 17253no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17254 17255# How to pass a linker flag through the compiler. 17256wl=$lt_lt_prog_compiler_wl 17257 17258# Additional compiler flags for building library objects. 17259pic_flag=$lt_lt_prog_compiler_pic 17260 17261# Compiler flag to prevent dynamic linking. 17262link_static_flag=$lt_lt_prog_compiler_static 17263 17264# Does compiler simultaneously support -c and -o options? 17265compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17266 17267# Whether or not to add -lc for building shared libraries. 17268build_libtool_need_lc=$archive_cmds_need_lc 17269 17270# Whether or not to disallow shared libs when runtime libs are static. 17271allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17272 17273# Compiler flag to allow reflexive dlopens. 17274export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17275 17276# Compiler flag to generate shared objects directly from archives. 17277whole_archive_flag_spec=$lt_whole_archive_flag_spec 17278 17279# Whether the compiler copes with passing no objects directly. 17280compiler_needs_object=$lt_compiler_needs_object 17281 17282# Create an old-style archive from a shared archive. 17283old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17284 17285# Create a temporary old-style archive to link instead of a shared archive. 17286old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17287 17288# Commands used to build a shared archive. 17289archive_cmds=$lt_archive_cmds 17290archive_expsym_cmds=$lt_archive_expsym_cmds 17291 17292# Commands used to build a loadable module if different from building 17293# a shared archive. 17294module_cmds=$lt_module_cmds 17295module_expsym_cmds=$lt_module_expsym_cmds 17296 17297# Whether we are building with GNU ld or not. 17298with_gnu_ld=$lt_with_gnu_ld 17299 17300# Flag that allows shared libraries with undefined symbols to be built. 17301allow_undefined_flag=$lt_allow_undefined_flag 17302 17303# Flag that enforces no undefined symbols. 17304no_undefined_flag=$lt_no_undefined_flag 17305 17306# Flag to hardcode \$libdir into a binary during linking. 17307# This must work even if \$libdir does not exist 17308hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17309 17310# If ld is used when linking, flag to hardcode \$libdir into a binary 17311# during linking. This must work even if \$libdir does not exist. 17312hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17313 17314# Whether we need a single "-rpath" flag with a separated argument. 17315hardcode_libdir_separator=$lt_hardcode_libdir_separator 17316 17317# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17318# DIR into the resulting binary. 17319hardcode_direct=$hardcode_direct 17320 17321# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17322# DIR into the resulting binary and the resulting library dependency is 17323# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17324# library is relocated. 17325hardcode_direct_absolute=$hardcode_direct_absolute 17326 17327# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17328# into the resulting binary. 17329hardcode_minus_L=$hardcode_minus_L 17330 17331# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17332# into the resulting binary. 17333hardcode_shlibpath_var=$hardcode_shlibpath_var 17334 17335# Set to "yes" if building a shared library automatically hardcodes DIR 17336# into the library and all subsequent libraries and executables linked 17337# against it. 17338hardcode_automatic=$hardcode_automatic 17339 17340# Set to yes if linker adds runtime paths of dependent libraries 17341# to runtime path list. 17342inherit_rpath=$inherit_rpath 17343 17344# Whether libtool must link a program against all its dependency libraries. 17345link_all_deplibs=$link_all_deplibs 17346 17347# Fix the shell variable \$srcfile for the compiler. 17348fix_srcfile_path=$lt_fix_srcfile_path 17349 17350# Set to "yes" if exported symbols are required. 17351always_export_symbols=$always_export_symbols 17352 17353# The commands to list exported symbols. 17354export_symbols_cmds=$lt_export_symbols_cmds 17355 17356# Symbols that should not be listed in the preloaded symbols. 17357exclude_expsyms=$lt_exclude_expsyms 17358 17359# Symbols that must always be exported. 17360include_expsyms=$lt_include_expsyms 17361 17362# Commands necessary for linking programs (against libraries) with templates. 17363prelink_cmds=$lt_prelink_cmds 17364 17365# Specify filename containing input files. 17366file_list_spec=$lt_file_list_spec 17367 17368# How to hardcode a shared library path into an executable. 17369hardcode_action=$hardcode_action 17370 17371# The directories searched by this compiler when creating a shared library. 17372compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17373 17374# Dependencies to place before and after the objects being linked to 17375# create a shared library. 17376predep_objects=$lt_predep_objects 17377postdep_objects=$lt_postdep_objects 17378predeps=$lt_predeps 17379postdeps=$lt_postdeps 17380 17381# The library search path used internally by the compiler when linking 17382# a shared library. 17383compiler_lib_search_path=$lt_compiler_lib_search_path 17384 17385# ### END LIBTOOL CONFIG 17386 17387_LT_EOF 17388 17389 case $host_os in 17390 aix3*) 17391 cat <<\_LT_EOF >> "$cfgfile" 17392# AIX sometimes has problems with the GCC collect2 program. For some 17393# reason, if we set the COLLECT_NAMES environment variable, the problems 17394# vanish in a puff of smoke. 17395if test "X${COLLECT_NAMES+set}" != Xset; then 17396 COLLECT_NAMES= 17397 export COLLECT_NAMES 17398fi 17399_LT_EOF 17400 ;; 17401 esac 17402 17403 17404ltmain="$ac_aux_dir/ltmain.sh" 17405 17406 17407 # We use sed instead of cat because bash on DJGPP gets confused if 17408 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17409 # text mode, it properly converts lines to CR/LF. This bash problem 17410 # is reportedly fixed, but why not run on old versions too? 17411 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17412 || (rm -f "$cfgfile"; exit 1) 17413 17414 case $xsi_shell in 17415 yes) 17416 cat << \_LT_EOF >> "$cfgfile" 17417 17418# func_dirname file append nondir_replacement 17419# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17420# otherwise set result to NONDIR_REPLACEMENT. 17421func_dirname () 17422{ 17423 case ${1} in 17424 */*) func_dirname_result="${1%/*}${2}" ;; 17425 * ) func_dirname_result="${3}" ;; 17426 esac 17427} 17428 17429# func_basename file 17430func_basename () 17431{ 17432 func_basename_result="${1##*/}" 17433} 17434 17435# func_dirname_and_basename file append nondir_replacement 17436# perform func_basename and func_dirname in a single function 17437# call: 17438# dirname: Compute the dirname of FILE. If nonempty, 17439# add APPEND to the result, otherwise set result 17440# to NONDIR_REPLACEMENT. 17441# value returned in "$func_dirname_result" 17442# basename: Compute filename of FILE. 17443# value retuned in "$func_basename_result" 17444# Implementation must be kept synchronized with func_dirname 17445# and func_basename. For efficiency, we do not delegate to 17446# those functions but instead duplicate the functionality here. 17447func_dirname_and_basename () 17448{ 17449 case ${1} in 17450 */*) func_dirname_result="${1%/*}${2}" ;; 17451 * ) func_dirname_result="${3}" ;; 17452 esac 17453 func_basename_result="${1##*/}" 17454} 17455 17456# func_stripname prefix suffix name 17457# strip PREFIX and SUFFIX off of NAME. 17458# PREFIX and SUFFIX must not contain globbing or regex special 17459# characters, hashes, percent signs, but SUFFIX may contain a leading 17460# dot (in which case that matches only a dot). 17461func_stripname () 17462{ 17463 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17464 # positional parameters, so assign one to ordinary parameter first. 17465 func_stripname_result=${3} 17466 func_stripname_result=${func_stripname_result#"${1}"} 17467 func_stripname_result=${func_stripname_result%"${2}"} 17468} 17469 17470# func_opt_split 17471func_opt_split () 17472{ 17473 func_opt_split_opt=${1%%=*} 17474 func_opt_split_arg=${1#*=} 17475} 17476 17477# func_lo2o object 17478func_lo2o () 17479{ 17480 case ${1} in 17481 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17482 *) func_lo2o_result=${1} ;; 17483 esac 17484} 17485 17486# func_xform libobj-or-source 17487func_xform () 17488{ 17489 func_xform_result=${1%.*}.lo 17490} 17491 17492# func_arith arithmetic-term... 17493func_arith () 17494{ 17495 func_arith_result=$(( $* )) 17496} 17497 17498# func_len string 17499# STRING may not start with a hyphen. 17500func_len () 17501{ 17502 func_len_result=${#1} 17503} 17504 17505_LT_EOF 17506 ;; 17507 *) # Bourne compatible functions. 17508 cat << \_LT_EOF >> "$cfgfile" 17509 17510# func_dirname file append nondir_replacement 17511# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17512# otherwise set result to NONDIR_REPLACEMENT. 17513func_dirname () 17514{ 17515 # Extract subdirectory from the argument. 17516 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17517 if test "X$func_dirname_result" = "X${1}"; then 17518 func_dirname_result="${3}" 17519 else 17520 func_dirname_result="$func_dirname_result${2}" 17521 fi 17522} 17523 17524# func_basename file 17525func_basename () 17526{ 17527 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17528} 17529 17530 17531# func_stripname prefix suffix name 17532# strip PREFIX and SUFFIX off of NAME. 17533# PREFIX and SUFFIX must not contain globbing or regex special 17534# characters, hashes, percent signs, but SUFFIX may contain a leading 17535# dot (in which case that matches only a dot). 17536# func_strip_suffix prefix name 17537func_stripname () 17538{ 17539 case ${2} in 17540 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17541 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17542 esac 17543} 17544 17545# sed scripts: 17546my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17547my_sed_long_arg='1s/^-[^=]*=//' 17548 17549# func_opt_split 17550func_opt_split () 17551{ 17552 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17553 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17554} 17555 17556# func_lo2o object 17557func_lo2o () 17558{ 17559 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17560} 17561 17562# func_xform libobj-or-source 17563func_xform () 17564{ 17565 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17566} 17567 17568# func_arith arithmetic-term... 17569func_arith () 17570{ 17571 func_arith_result=`expr "$@"` 17572} 17573 17574# func_len string 17575# STRING may not start with a hyphen. 17576func_len () 17577{ 17578 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17579} 17580 17581_LT_EOF 17582esac 17583 17584case $lt_shell_append in 17585 yes) 17586 cat << \_LT_EOF >> "$cfgfile" 17587 17588# func_append var value 17589# Append VALUE to the end of shell variable VAR. 17590func_append () 17591{ 17592 eval "$1+=\$2" 17593} 17594_LT_EOF 17595 ;; 17596 *) 17597 cat << \_LT_EOF >> "$cfgfile" 17598 17599# func_append var value 17600# Append VALUE to the end of shell variable VAR. 17601func_append () 17602{ 17603 eval "$1=\$$1\$2" 17604} 17605 17606_LT_EOF 17607 ;; 17608 esac 17609 17610 17611 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17612 || (rm -f "$cfgfile"; exit 1) 17613 17614 mv -f "$cfgfile" "$ofile" || 17615 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17616 chmod +x "$ofile" 17617 17618 17619 cat <<_LT_EOF >> "$ofile" 17620 17621# ### BEGIN LIBTOOL TAG CONFIG: CXX 17622 17623# The linker used to build libraries. 17624LD=$lt_LD_CXX 17625 17626# How to create reloadable object files. 17627reload_flag=$lt_reload_flag_CXX 17628reload_cmds=$lt_reload_cmds_CXX 17629 17630# Commands used to build an old-style archive. 17631old_archive_cmds=$lt_old_archive_cmds_CXX 17632 17633# A language specific compiler. 17634CC=$lt_compiler_CXX 17635 17636# Is the compiler the GNU compiler? 17637with_gcc=$GCC_CXX 17638 17639# Compiler flag to turn off builtin functions. 17640no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17641 17642# How to pass a linker flag through the compiler. 17643wl=$lt_lt_prog_compiler_wl_CXX 17644 17645# Additional compiler flags for building library objects. 17646pic_flag=$lt_lt_prog_compiler_pic_CXX 17647 17648# Compiler flag to prevent dynamic linking. 17649link_static_flag=$lt_lt_prog_compiler_static_CXX 17650 17651# Does compiler simultaneously support -c and -o options? 17652compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17653 17654# Whether or not to add -lc for building shared libraries. 17655build_libtool_need_lc=$archive_cmds_need_lc_CXX 17656 17657# Whether or not to disallow shared libs when runtime libs are static. 17658allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17659 17660# Compiler flag to allow reflexive dlopens. 17661export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17662 17663# Compiler flag to generate shared objects directly from archives. 17664whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17665 17666# Whether the compiler copes with passing no objects directly. 17667compiler_needs_object=$lt_compiler_needs_object_CXX 17668 17669# Create an old-style archive from a shared archive. 17670old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17671 17672# Create a temporary old-style archive to link instead of a shared archive. 17673old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17674 17675# Commands used to build a shared archive. 17676archive_cmds=$lt_archive_cmds_CXX 17677archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17678 17679# Commands used to build a loadable module if different from building 17680# a shared archive. 17681module_cmds=$lt_module_cmds_CXX 17682module_expsym_cmds=$lt_module_expsym_cmds_CXX 17683 17684# Whether we are building with GNU ld or not. 17685with_gnu_ld=$lt_with_gnu_ld_CXX 17686 17687# Flag that allows shared libraries with undefined symbols to be built. 17688allow_undefined_flag=$lt_allow_undefined_flag_CXX 17689 17690# Flag that enforces no undefined symbols. 17691no_undefined_flag=$lt_no_undefined_flag_CXX 17692 17693# Flag to hardcode \$libdir into a binary during linking. 17694# This must work even if \$libdir does not exist 17695hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17696 17697# If ld is used when linking, flag to hardcode \$libdir into a binary 17698# during linking. This must work even if \$libdir does not exist. 17699hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17700 17701# Whether we need a single "-rpath" flag with a separated argument. 17702hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17703 17704# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17705# DIR into the resulting binary. 17706hardcode_direct=$hardcode_direct_CXX 17707 17708# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17709# DIR into the resulting binary and the resulting library dependency is 17710# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17711# library is relocated. 17712hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17713 17714# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17715# into the resulting binary. 17716hardcode_minus_L=$hardcode_minus_L_CXX 17717 17718# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17719# into the resulting binary. 17720hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17721 17722# Set to "yes" if building a shared library automatically hardcodes DIR 17723# into the library and all subsequent libraries and executables linked 17724# against it. 17725hardcode_automatic=$hardcode_automatic_CXX 17726 17727# Set to yes if linker adds runtime paths of dependent libraries 17728# to runtime path list. 17729inherit_rpath=$inherit_rpath_CXX 17730 17731# Whether libtool must link a program against all its dependency libraries. 17732link_all_deplibs=$link_all_deplibs_CXX 17733 17734# Fix the shell variable \$srcfile for the compiler. 17735fix_srcfile_path=$lt_fix_srcfile_path_CXX 17736 17737# Set to "yes" if exported symbols are required. 17738always_export_symbols=$always_export_symbols_CXX 17739 17740# The commands to list exported symbols. 17741export_symbols_cmds=$lt_export_symbols_cmds_CXX 17742 17743# Symbols that should not be listed in the preloaded symbols. 17744exclude_expsyms=$lt_exclude_expsyms_CXX 17745 17746# Symbols that must always be exported. 17747include_expsyms=$lt_include_expsyms_CXX 17748 17749# Commands necessary for linking programs (against libraries) with templates. 17750prelink_cmds=$lt_prelink_cmds_CXX 17751 17752# Specify filename containing input files. 17753file_list_spec=$lt_file_list_spec_CXX 17754 17755# How to hardcode a shared library path into an executable. 17756hardcode_action=$hardcode_action_CXX 17757 17758# The directories searched by this compiler when creating a shared library. 17759compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17760 17761# Dependencies to place before and after the objects being linked to 17762# create a shared library. 17763predep_objects=$lt_predep_objects_CXX 17764postdep_objects=$lt_postdep_objects_CXX 17765predeps=$lt_predeps_CXX 17766postdeps=$lt_postdeps_CXX 17767 17768# The library search path used internally by the compiler when linking 17769# a shared library. 17770compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17771 17772# ### END LIBTOOL TAG CONFIG: CXX 17773_LT_EOF 17774 17775 ;; 17776 17777 esac 17778done # for ac_tag 17779 17780 17781as_fn_exit 0 17782_ACEOF 17783ac_clean_files=$ac_clean_files_save 17784 17785test $ac_write_fail = 0 || 17786 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17787 17788 17789# configure is writing to config.log, and then calls config.status. 17790# config.status does its own redirection, appending to config.log. 17791# Unfortunately, on DOS this fails, as config.log is still kept open 17792# by configure, so config.status won't be able to write to it; its 17793# output is simply discarded. So we exec the FD to /dev/null, 17794# effectively closing config.log, so it can be properly (re)opened and 17795# appended to by config.status. When coming back to configure, we 17796# need to make the FD available again. 17797if test "$no_create" != yes; then 17798 ac_cs_success=: 17799 ac_config_status_args= 17800 test "$silent" = yes && 17801 ac_config_status_args="$ac_config_status_args --quiet" 17802 exec 5>/dev/null 17803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17804 exec 5>>config.log 17805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17806 # would make configure fail if this is the last instruction. 17807 $ac_cs_success || as_fn_exit 1 17808fi 17809if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17811$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17812fi 17813 17814