1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for package-unused version-unused. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME='package-unused' 558PACKAGE_TARNAME='libgo' 559PACKAGE_VERSION='version-unused' 560PACKAGE_STRING='package-unused version-unused' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='' 563 564ac_unique_file="Makefile.am" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='am__EXEEXT_FALSE 602am__EXEEXT_TRUE 603LTLIBOBJS 604LIBOBJS 605HAVE_STAT_TIMESPEC_FALSE 606HAVE_STAT_TIMESPEC_TRUE 607STRUCT_EPOLL_EVENT_FD_OFFSET 608SIZEOF_STRUCT_EPOLL_EVENT 609MATH_FLAG 610STRINGOPS_FLAG 611HAVE_WAIT4_FALSE 612HAVE_WAIT4_TRUE 613HAVE_STRERROR_R_FALSE 614HAVE_STRERROR_R_TRUE 615HAVE_SYS_MMAN_H_FALSE 616HAVE_SYS_MMAN_H_TRUE 617PTHREAD_LIBS 618PTHREAD_CFLAGS 619NET_LIBS 620MATH_LIBS 621GOC_IS_LLGO_FALSE 622GOC_IS_LLGO_TRUE 623GO_SPLIT_STACK 624USING_SPLIT_STACK_FALSE 625USING_SPLIT_STACK_TRUE 626SPLIT_STACK 627OSCFLAGS 628GO_SYSCALL_OS_ARCH_FILE 629GO_SYSCALL_OS_FILE 630GO_LIBCALL_OS_ARCH_FILE 631GO_LIBCALL_OS_FILE 632GOARCH 633LIBGO_IS_X86_64_FALSE 634LIBGO_IS_X86_64_TRUE 635LIBGO_IS_SPARC64_FALSE 636LIBGO_IS_SPARC64_TRUE 637LIBGO_IS_SPARC_FALSE 638LIBGO_IS_SPARC_TRUE 639LIBGO_IS_S390X_FALSE 640LIBGO_IS_S390X_TRUE 641LIBGO_IS_S390_FALSE 642LIBGO_IS_S390_TRUE 643LIBGO_IS_PPC64LE_FALSE 644LIBGO_IS_PPC64LE_TRUE 645LIBGO_IS_PPC64_FALSE 646LIBGO_IS_PPC64_TRUE 647LIBGO_IS_PPC_FALSE 648LIBGO_IS_PPC_TRUE 649LIBGO_IS_MIPS64_FALSE 650LIBGO_IS_MIPS64_TRUE 651LIBGO_IS_MIPSO64_FALSE 652LIBGO_IS_MIPSO64_TRUE 653LIBGO_IS_MIPSN64_FALSE 654LIBGO_IS_MIPSN64_TRUE 655LIBGO_IS_MIPSN32_FALSE 656LIBGO_IS_MIPSN32_TRUE 657LIBGO_IS_MIPSO32_FALSE 658LIBGO_IS_MIPSO32_TRUE 659LIBGO_IS_MIPS_FALSE 660LIBGO_IS_MIPS_TRUE 661LIBGO_IS_M68K_FALSE 662LIBGO_IS_M68K_TRUE 663LIBGO_IS_ARM64_FALSE 664LIBGO_IS_ARM64_TRUE 665LIBGO_IS_ARM_FALSE 666LIBGO_IS_ARM_TRUE 667LIBGO_IS_ALPHA_FALSE 668LIBGO_IS_ALPHA_TRUE 669LIBGO_IS_386_FALSE 670LIBGO_IS_386_TRUE 671USE_DEJAGNU 672GOOS 673LIBGO_IS_SOLARIS_FALSE 674LIBGO_IS_SOLARIS_TRUE 675LIBGO_IS_RTEMS_FALSE 676LIBGO_IS_RTEMS_TRUE 677LIBGO_IS_DRAGONFLY_FALSE 678LIBGO_IS_DRAGONFLY_TRUE 679LIBGO_IS_OPENBSD_FALSE 680LIBGO_IS_OPENBSD_TRUE 681LIBGO_IS_NETBSD_FALSE 682LIBGO_IS_NETBSD_TRUE 683LIBGO_IS_LINUX_FALSE 684LIBGO_IS_LINUX_TRUE 685LIBGO_IS_IRIX_FALSE 686LIBGO_IS_IRIX_TRUE 687LIBGO_IS_FREEBSD_FALSE 688LIBGO_IS_FREEBSD_TRUE 689LIBGO_IS_DARWIN_FALSE 690LIBGO_IS_DARWIN_TRUE 691go_include 692LIBATOMIC 693LIBFFIINCS 694LIBFFI 695nover_glibgo_toolexeclibdir 696glibgo_toolexeclibdir 697glibgo_toolexecdir 698WERROR 699WARN_FLAGS 700CC_FOR_BUILD 701enable_static 702enable_shared 703CPP 704OTOOL64 705OTOOL 706LIPO 707NMEDIT 708DSYMUTIL 709AR 710OBJDUMP 711LN_S 712NM 713ac_ct_DUMPBIN 714DUMPBIN 715LIBTOOL 716OBJCOPY 717RANLIB 718LD 719FGREP 720EGREP 721GREP 722SED 723MAINT 724MAINTAINER_MODE_FALSE 725MAINTAINER_MODE_TRUE 726GOCFLAGS 727GOC 728am__fastdepCC_FALSE 729am__fastdepCC_TRUE 730CCDEPMODE 731am__nodep 732AMDEPBACKSLASH 733AMDEP_FALSE 734AMDEP_TRUE 735am__quote 736am__include 737DEPDIR 738OBJEXT 739EXEEXT 740ac_ct_CC 741CPPFLAGS 742LDFLAGS 743CFLAGS 744CC 745am__untar 746am__tar 747AMTAR 748am__leading_dot 749SET_MAKE 750AWK 751mkdir_p 752MKDIR_P 753INSTALL_STRIP_PROGRAM 754STRIP 755install_sh 756MAKEINFO 757AUTOHEADER 758AUTOMAKE 759AUTOCONF 760ACLOCAL 761VERSION 762PACKAGE 763CYGPATH_W 764am__isrc 765INSTALL_DATA 766INSTALL_SCRIPT 767INSTALL_PROGRAM 768target_os 769target_vendor 770target_cpu 771target 772host_os 773host_vendor 774host_cpu 775host 776build_os 777build_vendor 778build_cpu 779build 780multi_basedir 781libtool_VERSION 782target_alias 783host_alias 784build_alias 785LIBS 786ECHO_T 787ECHO_N 788ECHO_C 789DEFS 790mandir 791localedir 792libdir 793psdir 794pdfdir 795dvidir 796htmldir 797infodir 798docdir 799oldincludedir 800includedir 801localstatedir 802sharedstatedir 803sysconfdir 804datadir 805datarootdir 806libexecdir 807sbindir 808bindir 809program_transform_name 810prefix 811exec_prefix 812PACKAGE_URL 813PACKAGE_BUGREPORT 814PACKAGE_STRING 815PACKAGE_VERSION 816PACKAGE_TARNAME 817PACKAGE_NAME 818PATH_SEPARATOR 819SHELL' 820ac_subst_files='' 821ac_user_opts=' 822enable_option_checking 823enable_multilib 824enable_dependency_tracking 825enable_maintainer_mode 826with_gnu_ld 827enable_shared 828enable_static 829with_pic 830enable_fast_install 831enable_libtool_lock 832enable_werror 833enable_version_specific_runtime_libs 834with_libffi 835with_libatomic 836with_system_libunwind 837' 838 ac_precious_vars='build_alias 839host_alias 840target_alias 841CPP 842CPPFLAGS' 843 844 845# Initialize some variables set by options. 846ac_init_help= 847ac_init_version=false 848ac_unrecognized_opts= 849ac_unrecognized_sep= 850# The variables have the same names as the options, with 851# dashes changed to underlines. 852cache_file=/dev/null 853exec_prefix=NONE 854no_create= 855no_recursion= 856prefix=NONE 857program_prefix=NONE 858program_suffix=NONE 859program_transform_name=s,x,x, 860silent= 861site= 862srcdir= 863verbose= 864x_includes=NONE 865x_libraries=NONE 866 867# Installation directory options. 868# These are left unexpanded so users can "make install exec_prefix=/foo" 869# and all the variables that are supposed to be based on exec_prefix 870# by default will actually change. 871# Use braces instead of parens because sh, perl, etc. also accept them. 872# (The list follows the same order as the GNU Coding Standards.) 873bindir='${exec_prefix}/bin' 874sbindir='${exec_prefix}/sbin' 875libexecdir='${exec_prefix}/libexec' 876datarootdir='${prefix}/share' 877datadir='${datarootdir}' 878sysconfdir='${prefix}/etc' 879sharedstatedir='${prefix}/com' 880localstatedir='${prefix}/var' 881includedir='${prefix}/include' 882oldincludedir='/usr/include' 883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 884infodir='${datarootdir}/info' 885htmldir='${docdir}' 886dvidir='${docdir}' 887pdfdir='${docdir}' 888psdir='${docdir}' 889libdir='${exec_prefix}/lib' 890localedir='${datarootdir}/locale' 891mandir='${datarootdir}/man' 892 893ac_prev= 894ac_dashdash= 895for ac_option 896do 897 # If the previous option needs an argument, assign it. 898 if test -n "$ac_prev"; then 899 eval $ac_prev=\$ac_option 900 ac_prev= 901 continue 902 fi 903 904 case $ac_option in 905 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 906 *) ac_optarg=yes ;; 907 esac 908 909 # Accept the important Cygnus configure options, so we can diagnose typos. 910 911 case $ac_dashdash$ac_option in 912 --) 913 ac_dashdash=yes ;; 914 915 -bindir | --bindir | --bindi | --bind | --bin | --bi) 916 ac_prev=bindir ;; 917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 918 bindir=$ac_optarg ;; 919 920 -build | --build | --buil | --bui | --bu) 921 ac_prev=build_alias ;; 922 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 923 build_alias=$ac_optarg ;; 924 925 -cache-file | --cache-file | --cache-fil | --cache-fi \ 926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 927 ac_prev=cache_file ;; 928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 930 cache_file=$ac_optarg ;; 931 932 --config-cache | -C) 933 cache_file=config.cache ;; 934 935 -datadir | --datadir | --datadi | --datad) 936 ac_prev=datadir ;; 937 -datadir=* | --datadir=* | --datadi=* | --datad=*) 938 datadir=$ac_optarg ;; 939 940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 941 | --dataroo | --dataro | --datar) 942 ac_prev=datarootdir ;; 943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 945 datarootdir=$ac_optarg ;; 946 947 -disable-* | --disable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error "invalid feature name: $ac_useropt" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956"enable_$ac_useropt" 957"*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=no ;; 962 963 -docdir | --docdir | --docdi | --doc | --do) 964 ac_prev=docdir ;; 965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 966 docdir=$ac_optarg ;; 967 968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 969 ac_prev=dvidir ;; 970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 971 dvidir=$ac_optarg ;; 972 973 -enable-* | --enable-*) 974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 975 # Reject names that are not valid shell variable names. 976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 977 as_fn_error "invalid feature name: $ac_useropt" 978 ac_useropt_orig=$ac_useropt 979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 980 case $ac_user_opts in 981 *" 982"enable_$ac_useropt" 983"*) ;; 984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 985 ac_unrecognized_sep=', ';; 986 esac 987 eval enable_$ac_useropt=\$ac_optarg ;; 988 989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 991 | --exec | --exe | --ex) 992 ac_prev=exec_prefix ;; 993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 995 | --exec=* | --exe=* | --ex=*) 996 exec_prefix=$ac_optarg ;; 997 998 -gas | --gas | --ga | --g) 999 # Obsolete; use --with-gas. 1000 with_gas=yes ;; 1001 1002 -help | --help | --hel | --he | -h) 1003 ac_init_help=long ;; 1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1005 ac_init_help=recursive ;; 1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1007 ac_init_help=short ;; 1008 1009 -host | --host | --hos | --ho) 1010 ac_prev=host_alias ;; 1011 -host=* | --host=* | --hos=* | --ho=*) 1012 host_alias=$ac_optarg ;; 1013 1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1015 ac_prev=htmldir ;; 1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1017 | --ht=*) 1018 htmldir=$ac_optarg ;; 1019 1020 -includedir | --includedir | --includedi | --included | --include \ 1021 | --includ | --inclu | --incl | --inc) 1022 ac_prev=includedir ;; 1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1024 | --includ=* | --inclu=* | --incl=* | --inc=*) 1025 includedir=$ac_optarg ;; 1026 1027 -infodir | --infodir | --infodi | --infod | --info | --inf) 1028 ac_prev=infodir ;; 1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1030 infodir=$ac_optarg ;; 1031 1032 -libdir | --libdir | --libdi | --libd) 1033 ac_prev=libdir ;; 1034 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1035 libdir=$ac_optarg ;; 1036 1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1038 | --libexe | --libex | --libe) 1039 ac_prev=libexecdir ;; 1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1041 | --libexe=* | --libex=* | --libe=*) 1042 libexecdir=$ac_optarg ;; 1043 1044 -localedir | --localedir | --localedi | --localed | --locale) 1045 ac_prev=localedir ;; 1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1047 localedir=$ac_optarg ;; 1048 1049 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1050 | --localstate | --localstat | --localsta | --localst | --locals) 1051 ac_prev=localstatedir ;; 1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1054 localstatedir=$ac_optarg ;; 1055 1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1057 ac_prev=mandir ;; 1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1059 mandir=$ac_optarg ;; 1060 1061 -nfp | --nfp | --nf) 1062 # Obsolete; use --without-fp. 1063 with_fp=no ;; 1064 1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1066 | --no-cr | --no-c | -n) 1067 no_create=yes ;; 1068 1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1071 no_recursion=yes ;; 1072 1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1075 | --oldin | --oldi | --old | --ol | --o) 1076 ac_prev=oldincludedir ;; 1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1080 oldincludedir=$ac_optarg ;; 1081 1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1083 ac_prev=prefix ;; 1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1085 prefix=$ac_optarg ;; 1086 1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1088 | --program-pre | --program-pr | --program-p) 1089 ac_prev=program_prefix ;; 1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1092 program_prefix=$ac_optarg ;; 1093 1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1095 | --program-suf | --program-su | --program-s) 1096 ac_prev=program_suffix ;; 1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1099 program_suffix=$ac_optarg ;; 1100 1101 -program-transform-name | --program-transform-name \ 1102 | --program-transform-nam | --program-transform-na \ 1103 | --program-transform-n | --program-transform- \ 1104 | --program-transform | --program-transfor \ 1105 | --program-transfo | --program-transf \ 1106 | --program-trans | --program-tran \ 1107 | --progr-tra | --program-tr | --program-t) 1108 ac_prev=program_transform_name ;; 1109 -program-transform-name=* | --program-transform-name=* \ 1110 | --program-transform-nam=* | --program-transform-na=* \ 1111 | --program-transform-n=* | --program-transform-=* \ 1112 | --program-transform=* | --program-transfor=* \ 1113 | --program-transfo=* | --program-transf=* \ 1114 | --program-trans=* | --program-tran=* \ 1115 | --progr-tra=* | --program-tr=* | --program-t=*) 1116 program_transform_name=$ac_optarg ;; 1117 1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1119 ac_prev=pdfdir ;; 1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1121 pdfdir=$ac_optarg ;; 1122 1123 -psdir | --psdir | --psdi | --psd | --ps) 1124 ac_prev=psdir ;; 1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1126 psdir=$ac_optarg ;; 1127 1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1129 | -silent | --silent | --silen | --sile | --sil) 1130 silent=yes ;; 1131 1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1133 ac_prev=sbindir ;; 1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1135 | --sbi=* | --sb=*) 1136 sbindir=$ac_optarg ;; 1137 1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1140 | --sharedst | --shareds | --shared | --share | --shar \ 1141 | --sha | --sh) 1142 ac_prev=sharedstatedir ;; 1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1146 | --sha=* | --sh=*) 1147 sharedstatedir=$ac_optarg ;; 1148 1149 -site | --site | --sit) 1150 ac_prev=site ;; 1151 -site=* | --site=* | --sit=*) 1152 site=$ac_optarg ;; 1153 1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1155 ac_prev=srcdir ;; 1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1157 srcdir=$ac_optarg ;; 1158 1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1160 | --syscon | --sysco | --sysc | --sys | --sy) 1161 ac_prev=sysconfdir ;; 1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1164 sysconfdir=$ac_optarg ;; 1165 1166 -target | --target | --targe | --targ | --tar | --ta | --t) 1167 ac_prev=target_alias ;; 1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1169 target_alias=$ac_optarg ;; 1170 1171 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1172 verbose=yes ;; 1173 1174 -version | --version | --versio | --versi | --vers | -V) 1175 ac_init_version=: ;; 1176 1177 -with-* | --with-*) 1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1179 # Reject names that are not valid shell variable names. 1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1181 as_fn_error "invalid package name: $ac_useropt" 1182 ac_useropt_orig=$ac_useropt 1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1184 case $ac_user_opts in 1185 *" 1186"with_$ac_useropt" 1187"*) ;; 1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1189 ac_unrecognized_sep=', ';; 1190 esac 1191 eval with_$ac_useropt=\$ac_optarg ;; 1192 1193 -without-* | --without-*) 1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1195 # Reject names that are not valid shell variable names. 1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1197 as_fn_error "invalid package name: $ac_useropt" 1198 ac_useropt_orig=$ac_useropt 1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1200 case $ac_user_opts in 1201 *" 1202"with_$ac_useropt" 1203"*) ;; 1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1205 ac_unrecognized_sep=', ';; 1206 esac 1207 eval with_$ac_useropt=no ;; 1208 1209 --x) 1210 # Obsolete; use --with-x. 1211 with_x=yes ;; 1212 1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1214 | --x-incl | --x-inc | --x-in | --x-i) 1215 ac_prev=x_includes ;; 1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1218 x_includes=$ac_optarg ;; 1219 1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1222 ac_prev=x_libraries ;; 1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1225 x_libraries=$ac_optarg ;; 1226 1227 -*) as_fn_error "unrecognized option: \`$ac_option' 1228Try \`$0 --help' for more information." 1229 ;; 1230 1231 *=*) 1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1233 # Reject names that are not valid shell variable names. 1234 case $ac_envvar in #( 1235 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1236 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1237 esac 1238 eval $ac_envvar=\$ac_optarg 1239 export $ac_envvar ;; 1240 1241 *) 1242 # FIXME: should be removed in autoconf 3.0. 1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1247 ;; 1248 1249 esac 1250done 1251 1252if test -n "$ac_prev"; then 1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1254 as_fn_error "missing argument to $ac_option" 1255fi 1256 1257if test -n "$ac_unrecognized_opts"; then 1258 case $enable_option_checking in 1259 no) ;; 1260 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1262 esac 1263fi 1264 1265# Check all directory arguments for consistency. 1266for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1267 datadir sysconfdir sharedstatedir localstatedir includedir \ 1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1269 libdir localedir mandir 1270do 1271 eval ac_val=\$$ac_var 1272 # Remove trailing slashes. 1273 case $ac_val in 1274 */ ) 1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1276 eval $ac_var=\$ac_val;; 1277 esac 1278 # Be sure to have absolute directory names. 1279 case $ac_val in 1280 [\\/$]* | ?:[\\/]* ) continue;; 1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1282 esac 1283 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1284done 1285 1286# There might be people who depend on the old broken behavior: `$host' 1287# used to hold the argument of --host etc. 1288# FIXME: To remove some day. 1289build=$build_alias 1290host=$host_alias 1291target=$target_alias 1292 1293# FIXME: To remove some day. 1294if test "x$host_alias" != x; then 1295 if test "x$build_alias" = x; then 1296 cross_compiling=maybe 1297 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1298 If a cross compiler is detected then cross compile mode will be used." >&2 1299 elif test "x$build_alias" != "x$host_alias"; then 1300 cross_compiling=yes 1301 fi 1302fi 1303 1304ac_tool_prefix= 1305test -n "$host_alias" && ac_tool_prefix=$host_alias- 1306 1307test "$silent" = yes && exec 6>/dev/null 1308 1309 1310ac_pwd=`pwd` && test -n "$ac_pwd" && 1311ac_ls_di=`ls -di .` && 1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1313 as_fn_error "working directory cannot be determined" 1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1315 as_fn_error "pwd does not report name of working directory" 1316 1317 1318# Find the source files, if location was not specified. 1319if test -z "$srcdir"; then 1320 ac_srcdir_defaulted=yes 1321 # Try the directory containing this script, then the parent directory. 1322 ac_confdir=`$as_dirname -- "$as_myself" || 1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1324 X"$as_myself" : 'X\(//\)[^/]' \| \ 1325 X"$as_myself" : 'X\(//\)$' \| \ 1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1327$as_echo X"$as_myself" | 1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)[^/].*/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\).*/{ 1341 s//\1/ 1342 q 1343 } 1344 s/.*/./; q'` 1345 srcdir=$ac_confdir 1346 if test ! -r "$srcdir/$ac_unique_file"; then 1347 srcdir=.. 1348 fi 1349else 1350 ac_srcdir_defaulted=no 1351fi 1352if test ! -r "$srcdir/$ac_unique_file"; then 1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1354 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1355fi 1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1357ac_abs_confdir=`( 1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1359 pwd)` 1360# When building in place, set srcdir=. 1361if test "$ac_abs_confdir" = "$ac_pwd"; then 1362 srcdir=. 1363fi 1364# Remove unnecessary trailing slashes from srcdir. 1365# Double slashes in file names in object file debugging info 1366# mess up M-x gdb in Emacs. 1367case $srcdir in 1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1369esac 1370for ac_var in $ac_precious_vars; do 1371 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1372 eval ac_env_${ac_var}_value=\$${ac_var} 1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1375done 1376 1377# 1378# Report the --help message. 1379# 1380if test "$ac_init_help" = "long"; then 1381 # Omit some internal or obsolete options to make the list less imposing. 1382 # This message is too long to be a string in the A/UX 3.1 sh. 1383 cat <<_ACEOF 1384\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1385 1386Usage: $0 [OPTION]... [VAR=VALUE]... 1387 1388To assign environment variables (e.g., CC, CFLAGS...), specify them as 1389VAR=VALUE. See below for descriptions of some of the useful variables. 1390 1391Defaults for the options are specified in brackets. 1392 1393Configuration: 1394 -h, --help display this help and exit 1395 --help=short display options specific to this package 1396 --help=recursive display the short help of all the included packages 1397 -V, --version display version information and exit 1398 -q, --quiet, --silent do not print \`checking...' messages 1399 --cache-file=FILE cache test results in FILE [disabled] 1400 -C, --config-cache alias for \`--cache-file=config.cache' 1401 -n, --no-create do not create output files 1402 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1403 1404Installation directories: 1405 --prefix=PREFIX install architecture-independent files in PREFIX 1406 [$ac_default_prefix] 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1408 [PREFIX] 1409 1410By default, \`make install' will install all the files in 1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1412an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1413for instance \`--prefix=\$HOME'. 1414 1415For better control, use the options below. 1416 1417Fine tuning of the installation directories: 1418 --bindir=DIR user executables [EPREFIX/bin] 1419 --sbindir=DIR system admin executables [EPREFIX/sbin] 1420 --libexecdir=DIR program executables [EPREFIX/libexec] 1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1424 --libdir=DIR object code libraries [EPREFIX/lib] 1425 --includedir=DIR C header files [PREFIX/include] 1426 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1429 --infodir=DIR info documentation [DATAROOTDIR/info] 1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1431 --mandir=DIR man documentation [DATAROOTDIR/man] 1432 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo] 1433 --htmldir=DIR html documentation [DOCDIR] 1434 --dvidir=DIR dvi documentation [DOCDIR] 1435 --pdfdir=DIR pdf documentation [DOCDIR] 1436 --psdir=DIR ps documentation [DOCDIR] 1437_ACEOF 1438 1439 cat <<\_ACEOF 1440 1441Program names: 1442 --program-prefix=PREFIX prepend PREFIX to installed program names 1443 --program-suffix=SUFFIX append SUFFIX to installed program names 1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1445 1446System types: 1447 --build=BUILD configure for building on BUILD [guessed] 1448 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1449 --target=TARGET configure for building compilers for TARGET [HOST] 1450_ACEOF 1451fi 1452 1453if test -n "$ac_init_help"; then 1454 case $ac_init_help in 1455 short | recursive ) echo "Configuration of package-unused version-unused:";; 1456 esac 1457 cat <<\_ACEOF 1458 1459Optional Features: 1460 --disable-option-checking ignore unrecognized --enable/--with options 1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1463 --enable-multilib build many library versions (default) 1464 --disable-dependency-tracking speeds up one-time build 1465 --enable-dependency-tracking do not reject slow dependency extractors 1466 --enable-maintainer-mode enable make rules and dependencies not useful 1467 (and sometimes confusing) to the casual installer 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-static[=PKGS] build static libraries [default=yes] 1470 --enable-fast-install[=PKGS] 1471 optimize for fast installation [default=yes] 1472 --disable-libtool-lock avoid locking (might break parallel builds) 1473 --enable-werror turns on -Werror [default=yes] 1474 --enable-version-specific-runtime-libs 1475 Specify that runtime libraries should be installed 1476 in a compiler-specific directory 1477 1478Optional Packages: 1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1482 --with-pic try to use only PIC/non-PIC objects [default=use 1483 both] 1484 --without-libffi don't use libffi 1485 --without-libatomic don't use libatomic 1486 --with-system-libunwind use installed libunwind 1487 1488Some influential environment variables: 1489 CC C compiler command 1490 CFLAGS C compiler flags 1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1492 nonstandard directory <lib dir> 1493 LIBS libraries to pass to the linker, e.g. -l<library> 1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1495 you have headers in a nonstandard directory <include dir> 1496 GOC Go compiler command 1497 GOCFLAGS Go compiler flags 1498 CPP C preprocessor 1499 1500Use these variables to override the choices made by `configure' or to help 1501it to find libraries and programs with nonstandard names/locations. 1502 1503Report bugs to the package provider. 1504_ACEOF 1505ac_status=$? 1506fi 1507 1508if test "$ac_init_help" = "recursive"; then 1509 # If there are subdirs, report their specific --help. 1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1511 test -d "$ac_dir" || 1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1513 continue 1514 ac_builddir=. 1515 1516case "$ac_dir" in 1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518*) 1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1520 # A ".." for each directory in $ac_dir_suffix. 1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1522 case $ac_top_builddir_sub in 1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1525 esac ;; 1526esac 1527ac_abs_top_builddir=$ac_pwd 1528ac_abs_builddir=$ac_pwd$ac_dir_suffix 1529# for backward compatibility: 1530ac_top_builddir=$ac_top_build_prefix 1531 1532case $srcdir in 1533 .) # We are building in place. 1534 ac_srcdir=. 1535 ac_top_srcdir=$ac_top_builddir_sub 1536 ac_abs_top_srcdir=$ac_pwd ;; 1537 [\\/]* | ?:[\\/]* ) # Absolute name. 1538 ac_srcdir=$srcdir$ac_dir_suffix; 1539 ac_top_srcdir=$srcdir 1540 ac_abs_top_srcdir=$srcdir ;; 1541 *) # Relative name. 1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1543 ac_top_srcdir=$ac_top_build_prefix$srcdir 1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1545esac 1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1547 1548 cd "$ac_dir" || { ac_status=$?; continue; } 1549 # Check for guested configure. 1550 if test -f "$ac_srcdir/configure.gnu"; then 1551 echo && 1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1553 elif test -f "$ac_srcdir/configure"; then 1554 echo && 1555 $SHELL "$ac_srcdir/configure" --help=recursive 1556 else 1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1558 fi || ac_status=$? 1559 cd "$ac_pwd" || { ac_status=$?; break; } 1560 done 1561fi 1562 1563test -n "$ac_init_help" && exit $ac_status 1564if $ac_init_version; then 1565 cat <<\_ACEOF 1566package-unused configure version-unused 1567generated by GNU Autoconf 2.64 1568 1569Copyright (C) 2009 Free Software Foundation, Inc. 1570This configure script is free software; the Free Software Foundation 1571gives unlimited permission to copy, distribute and modify it. 1572_ACEOF 1573 exit 1574fi 1575 1576## ------------------------ ## 1577## Autoconf initialization. ## 1578## ------------------------ ## 1579 1580# ac_fn_c_try_compile LINENO 1581# -------------------------- 1582# Try to compile conftest.$ac_ext, and return whether this succeeded. 1583ac_fn_c_try_compile () 1584{ 1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1586 rm -f conftest.$ac_objext 1587 if { { ac_try="$ac_compile" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_compile") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } && { 1603 test -z "$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 } && test -s conftest.$ac_objext; then : 1606 ac_retval=0 1607else 1608 $as_echo "$as_me: failed program was:" >&5 1609sed 's/^/| /' conftest.$ac_ext >&5 1610 1611 ac_retval=1 1612fi 1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1614 return $ac_retval 1615 1616} # ac_fn_c_try_compile 1617 1618# ac_fn_c_try_link LINENO 1619# ----------------------- 1620# Try to link conftest.$ac_ext, and return whether this succeeded. 1621ac_fn_c_try_link () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 rm -f conftest.$ac_objext conftest$ac_exeext 1625 if { { ac_try="$ac_link" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_link") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } && { 1641 test -z "$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 } && test -s conftest$ac_exeext && { 1644 test "$cross_compiling" = yes || 1645 $as_test_x conftest$ac_exeext 1646 }; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=1 1653fi 1654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1656 # interfere with the next link command; also delete a directory that is 1657 # left behind by Apple's compiler. We do this before executing the actions. 1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1660 return $ac_retval 1661 1662} # ac_fn_c_try_link 1663 1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1665# ------------------------------------------------------- 1666# Tests whether HEADER exists and can be compiled using the include files in 1667# INCLUDES, setting the cache variable VAR accordingly. 1668ac_fn_c_check_header_compile () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1672$as_echo_n "checking for $2... " >&6; } 1673if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1674 $as_echo_n "(cached) " >&6 1675else 1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1677/* end confdefs.h. */ 1678$4 1679#include <$2> 1680_ACEOF 1681if ac_fn_c_try_compile "$LINENO"; then : 1682 eval "$3=yes" 1683else 1684 eval "$3=no" 1685fi 1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1687fi 1688eval ac_res=\$$3 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1690$as_echo "$ac_res" >&6; } 1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1692 1693} # ac_fn_c_check_header_compile 1694 1695# ac_fn_c_try_cpp LINENO 1696# ---------------------- 1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1698ac_fn_c_try_cpp () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 if { { ac_try="$ac_cpp conftest.$ac_ext" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1709 ac_status=$? 1710 if test -s conftest.err; then 1711 grep -v '^ *+' conftest.err >conftest.er1 1712 cat conftest.er1 >&5 1713 mv -f conftest.er1 conftest.err 1714 fi 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } >/dev/null && { 1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1718 test ! -s conftest.err 1719 }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=1 1726fi 1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1728 return $ac_retval 1729 1730} # ac_fn_c_try_cpp 1731 1732# ac_fn_c_try_run LINENO 1733# ---------------------- 1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1735# that executables *can* be run. 1736ac_fn_c_try_run () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if { { ac_try="$ac_link" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_link") 2>&5 1747 ac_status=$? 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1750 { { case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_try") 2>&5 1757 ac_status=$? 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; }; }; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: program exited with status $ac_status" >&5 1763 $as_echo "$as_me: failed program was:" >&5 1764sed 's/^/| /' conftest.$ac_ext >&5 1765 1766 ac_retval=$ac_status 1767fi 1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1770 return $ac_retval 1771 1772} # ac_fn_c_try_run 1773 1774# ac_fn_c_check_func LINENO FUNC VAR 1775# ---------------------------------- 1776# Tests whether FUNC exists, setting the cache variable VAR accordingly 1777ac_fn_c_check_func () 1778{ 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1781$as_echo_n "checking for $2... " >&6; } 1782if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1783 $as_echo_n "(cached) " >&6 1784else 1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1786/* end confdefs.h. */ 1787/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1789#define $2 innocuous_$2 1790 1791/* System header to define __stub macros and hopefully few prototypes, 1792 which can conflict with char $2 (); below. 1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1794 <limits.h> exists even on freestanding compilers. */ 1795 1796#ifdef __STDC__ 1797# include <limits.h> 1798#else 1799# include <assert.h> 1800#endif 1801 1802#undef $2 1803 1804/* Override any GCC internal prototype to avoid an error. 1805 Use char because int might match the return type of a GCC 1806 builtin and then its argument prototype would still apply. */ 1807#ifdef __cplusplus 1808extern "C" 1809#endif 1810char $2 (); 1811/* The GNU C library defines this for functions which it implements 1812 to always fail with ENOSYS. Some functions are actually named 1813 something starting with __ and the normal name is an alias. */ 1814#if defined __stub_$2 || defined __stub___$2 1815choke me 1816#endif 1817 1818int 1819main () 1820{ 1821return $2 (); 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826if ac_fn_c_try_link "$LINENO"; then : 1827 eval "$3=yes" 1828else 1829 eval "$3=no" 1830fi 1831rm -f core conftest.err conftest.$ac_objext \ 1832 conftest$ac_exeext conftest.$ac_ext 1833fi 1834eval ac_res=\$$3 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1836$as_echo "$ac_res" >&6; } 1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1838 1839} # ac_fn_c_check_func 1840 1841# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1842# ------------------------------------------------------- 1843# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1844# the include files in INCLUDES and setting the cache variable VAR 1845# accordingly. 1846ac_fn_c_check_header_mongrel () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1851$as_echo_n "checking for $2... " >&6; } 1852if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1853 $as_echo_n "(cached) " >&6 1854fi 1855eval ac_res=\$$3 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1857$as_echo "$ac_res" >&6; } 1858else 1859 # Is the header compilable? 1860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1861$as_echo_n "checking $2 usability... " >&6; } 1862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1863/* end confdefs.h. */ 1864$4 1865#include <$2> 1866_ACEOF 1867if ac_fn_c_try_compile "$LINENO"; then : 1868 ac_header_compiler=yes 1869else 1870 ac_header_compiler=no 1871fi 1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1874$as_echo "$ac_header_compiler" >&6; } 1875 1876# Is the header present? 1877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1878$as_echo_n "checking $2 presence... " >&6; } 1879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880/* end confdefs.h. */ 1881#include <$2> 1882_ACEOF 1883if ac_fn_c_try_cpp "$LINENO"; then : 1884 ac_header_preproc=yes 1885else 1886 ac_header_preproc=no 1887fi 1888rm -f conftest.err conftest.$ac_ext 1889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1890$as_echo "$ac_header_preproc" >&6; } 1891 1892# So? What about this header? 1893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1894 yes:no: ) 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1896$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1898$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1899 ;; 1900 no:yes:* ) 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1902$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1904$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1906$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1908$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1910$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1911 ;; 1912esac 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914$as_echo_n "checking for $2... " >&6; } 1915if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1916 $as_echo_n "(cached) " >&6 1917else 1918 eval "$3=\$ac_header_compiler" 1919fi 1920eval ac_res=\$$3 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1922$as_echo "$ac_res" >&6; } 1923fi 1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1925 1926} # ac_fn_c_check_header_mongrel 1927 1928# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1929# ------------------------------------------- 1930# Tests whether TYPE exists after having included INCLUDES, setting cache 1931# variable VAR accordingly. 1932ac_fn_c_check_type () 1933{ 1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1936$as_echo_n "checking for $2... " >&6; } 1937if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1938 $as_echo_n "(cached) " >&6 1939else 1940 eval "$3=no" 1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942/* end confdefs.h. */ 1943$4 1944int 1945main () 1946{ 1947if (sizeof ($2)) 1948 return 0; 1949 ; 1950 return 0; 1951} 1952_ACEOF 1953if ac_fn_c_try_compile "$LINENO"; then : 1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955/* end confdefs.h. */ 1956$4 1957int 1958main () 1959{ 1960if (sizeof (($2))) 1961 return 0; 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966if ac_fn_c_try_compile "$LINENO"; then : 1967 1968else 1969 eval "$3=yes" 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972fi 1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1974fi 1975eval ac_res=\$$3 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977$as_echo "$ac_res" >&6; } 1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1979 1980} # ac_fn_c_check_type 1981 1982# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1983# -------------------------------------------- 1984# Tries to find the compile-time value of EXPR in a program that includes 1985# INCLUDES, setting VAR accordingly. Returns whether the value could be 1986# computed 1987ac_fn_c_compute_int () 1988{ 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 if test "$cross_compiling" = yes; then 1991 # Depending upon the size, compute the lo and hi bounds. 1992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1993/* end confdefs.h. */ 1994$4 1995int 1996main () 1997{ 1998static int test_array [1 - 2 * !(($2) >= 0)]; 1999test_array [0] = 0 2000 2001 ; 2002 return 0; 2003} 2004_ACEOF 2005if ac_fn_c_try_compile "$LINENO"; then : 2006 ac_lo=0 ac_mid=0 2007 while :; do 2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2009/* end confdefs.h. */ 2010$4 2011int 2012main () 2013{ 2014static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2015test_array [0] = 0 2016 2017 ; 2018 return 0; 2019} 2020_ACEOF 2021if ac_fn_c_try_compile "$LINENO"; then : 2022 ac_hi=$ac_mid; break 2023else 2024 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2025 if test $ac_lo -le $ac_mid; then 2026 ac_lo= ac_hi= 2027 break 2028 fi 2029 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2030fi 2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2032 done 2033else 2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2035/* end confdefs.h. */ 2036$4 2037int 2038main () 2039{ 2040static int test_array [1 - 2 * !(($2) < 0)]; 2041test_array [0] = 0 2042 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO"; then : 2048 ac_hi=-1 ac_mid=-1 2049 while :; do 2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052$4 2053int 2054main () 2055{ 2056static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2057test_array [0] = 0 2058 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_compile "$LINENO"; then : 2064 ac_lo=$ac_mid; break 2065else 2066 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2067 if test $ac_mid -le $ac_hi; then 2068 ac_lo= ac_hi= 2069 break 2070 fi 2071 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2072fi 2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2074 done 2075else 2076 ac_lo= ac_hi= 2077fi 2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2079fi 2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2081# Binary search between lo and hi bounds. 2082while test "x$ac_lo" != "x$ac_hi"; do 2083 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2085/* end confdefs.h. */ 2086$4 2087int 2088main () 2089{ 2090static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2091test_array [0] = 0 2092 2093 ; 2094 return 0; 2095} 2096_ACEOF 2097if ac_fn_c_try_compile "$LINENO"; then : 2098 ac_hi=$ac_mid 2099else 2100 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2101fi 2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103done 2104case $ac_lo in #(( 2105?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2106'') ac_retval=1 ;; 2107esac 2108 else 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112static long int longval () { return $2; } 2113static unsigned long int ulongval () { return $2; } 2114#include <stdio.h> 2115#include <stdlib.h> 2116int 2117main () 2118{ 2119 2120 FILE *f = fopen ("conftest.val", "w"); 2121 if (! f) 2122 return 1; 2123 if (($2) < 0) 2124 { 2125 long int i = longval (); 2126 if (i != ($2)) 2127 return 1; 2128 fprintf (f, "%ld", i); 2129 } 2130 else 2131 { 2132 unsigned long int i = ulongval (); 2133 if (i != ($2)) 2134 return 1; 2135 fprintf (f, "%lu", i); 2136 } 2137 /* Do not output a trailing newline, as this causes \r\n confusion 2138 on some platforms. */ 2139 return ferror (f) || fclose (f) != 0; 2140 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_run "$LINENO"; then : 2146 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2147else 2148 ac_retval=1 2149fi 2150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2151 conftest.$ac_objext conftest.beam conftest.$ac_ext 2152rm -f conftest.val 2153 2154 fi 2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2156 return $ac_retval 2157 2158} # ac_fn_c_compute_int 2159cat >config.log <<_ACEOF 2160This file contains any messages produced by compilers while 2161running configure, to aid debugging if configure makes a mistake. 2162 2163It was created by package-unused $as_me version-unused, which was 2164generated by GNU Autoconf 2.64. Invocation command line was 2165 2166 $ $0 $@ 2167 2168_ACEOF 2169exec 5>>config.log 2170{ 2171cat <<_ASUNAME 2172## --------- ## 2173## Platform. ## 2174## --------- ## 2175 2176hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2177uname -m = `(uname -m) 2>/dev/null || echo unknown` 2178uname -r = `(uname -r) 2>/dev/null || echo unknown` 2179uname -s = `(uname -s) 2>/dev/null || echo unknown` 2180uname -v = `(uname -v) 2>/dev/null || echo unknown` 2181 2182/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2183/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2184 2185/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2186/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2187/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2188/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2189/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2190/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2191/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2192 2193_ASUNAME 2194 2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2196for as_dir in $PATH 2197do 2198 IFS=$as_save_IFS 2199 test -z "$as_dir" && as_dir=. 2200 $as_echo "PATH: $as_dir" 2201 done 2202IFS=$as_save_IFS 2203 2204} >&5 2205 2206cat >&5 <<_ACEOF 2207 2208 2209## ----------- ## 2210## Core tests. ## 2211## ----------- ## 2212 2213_ACEOF 2214 2215 2216# Keep a trace of the command line. 2217# Strip out --no-create and --no-recursion so they do not pile up. 2218# Strip out --silent because we don't want to record it for future runs. 2219# Also quote any args containing shell meta-characters. 2220# Make two passes to allow for proper duplicate-argument suppression. 2221ac_configure_args= 2222ac_configure_args0= 2223ac_configure_args1= 2224ac_must_keep_next=false 2225for ac_pass in 1 2 2226do 2227 for ac_arg 2228 do 2229 case $ac_arg in 2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2232 | -silent | --silent | --silen | --sile | --sil) 2233 continue ;; 2234 *\'*) 2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2236 esac 2237 case $ac_pass in 2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2239 2) 2240 as_fn_append ac_configure_args1 " '$ac_arg'" 2241 if test $ac_must_keep_next = true; then 2242 ac_must_keep_next=false # Got value, back to normal. 2243 else 2244 case $ac_arg in 2245 *=* | --config-cache | -C | -disable-* | --disable-* \ 2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2248 | -with-* | --with-* | -without-* | --without-* | --x) 2249 case "$ac_configure_args0 " in 2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2251 esac 2252 ;; 2253 -* ) ac_must_keep_next=true ;; 2254 esac 2255 fi 2256 as_fn_append ac_configure_args " '$ac_arg'" 2257 ;; 2258 esac 2259 done 2260done 2261{ ac_configure_args0=; unset ac_configure_args0;} 2262{ ac_configure_args1=; unset ac_configure_args1;} 2263 2264# When interrupted or exit'd, cleanup temporary files, and complete 2265# config.log. We remove comments because anyway the quotes in there 2266# would cause problems or look ugly. 2267# WARNING: Use '\'' to represent an apostrophe within the trap. 2268# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2269trap 'exit_status=$? 2270 # Save into config.log some information that might help in debugging. 2271 { 2272 echo 2273 2274 cat <<\_ASBOX 2275## ---------------- ## 2276## Cache variables. ## 2277## ---------------- ## 2278_ASBOX 2279 echo 2280 # The following way of writing the cache mishandles newlines in values, 2281( 2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2283 eval ac_val=\$$ac_var 2284 case $ac_val in #( 2285 *${as_nl}*) 2286 case $ac_var in #( 2287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2288$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2289 esac 2290 case $ac_var in #( 2291 _ | IFS | as_nl) ;; #( 2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2293 *) { eval $ac_var=; unset $ac_var;} ;; 2294 esac ;; 2295 esac 2296 done 2297 (set) 2>&1 | 2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2299 *${as_nl}ac_space=\ *) 2300 sed -n \ 2301 "s/'\''/'\''\\\\'\'''\''/g; 2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2303 ;; #( 2304 *) 2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2306 ;; 2307 esac | 2308 sort 2309) 2310 echo 2311 2312 cat <<\_ASBOX 2313## ----------------- ## 2314## Output variables. ## 2315## ----------------- ## 2316_ASBOX 2317 echo 2318 for ac_var in $ac_subst_vars 2319 do 2320 eval ac_val=\$$ac_var 2321 case $ac_val in 2322 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2323 esac 2324 $as_echo "$ac_var='\''$ac_val'\''" 2325 done | sort 2326 echo 2327 2328 if test -n "$ac_subst_files"; then 2329 cat <<\_ASBOX 2330## ------------------- ## 2331## File substitutions. ## 2332## ------------------- ## 2333_ASBOX 2334 echo 2335 for ac_var in $ac_subst_files 2336 do 2337 eval ac_val=\$$ac_var 2338 case $ac_val in 2339 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2340 esac 2341 $as_echo "$ac_var='\''$ac_val'\''" 2342 done | sort 2343 echo 2344 fi 2345 2346 if test -s confdefs.h; then 2347 cat <<\_ASBOX 2348## ----------- ## 2349## confdefs.h. ## 2350## ----------- ## 2351_ASBOX 2352 echo 2353 cat confdefs.h 2354 echo 2355 fi 2356 test "$ac_signal" != 0 && 2357 $as_echo "$as_me: caught signal $ac_signal" 2358 $as_echo "$as_me: exit $exit_status" 2359 } >&5 2360 rm -f core *.core core.conftest.* && 2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2362 exit $exit_status 2363' 0 2364for ac_signal in 1 2 13 15; do 2365 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2366done 2367ac_signal=0 2368 2369# confdefs.h avoids OS command line length limits that DEFS can exceed. 2370rm -f -r conftest* confdefs.h 2371 2372$as_echo "/* confdefs.h */" > confdefs.h 2373 2374# Predefined preprocessor variables. 2375 2376cat >>confdefs.h <<_ACEOF 2377#define PACKAGE_NAME "$PACKAGE_NAME" 2378_ACEOF 2379 2380cat >>confdefs.h <<_ACEOF 2381#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2382_ACEOF 2383 2384cat >>confdefs.h <<_ACEOF 2385#define PACKAGE_VERSION "$PACKAGE_VERSION" 2386_ACEOF 2387 2388cat >>confdefs.h <<_ACEOF 2389#define PACKAGE_STRING "$PACKAGE_STRING" 2390_ACEOF 2391 2392cat >>confdefs.h <<_ACEOF 2393#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2394_ACEOF 2395 2396cat >>confdefs.h <<_ACEOF 2397#define PACKAGE_URL "$PACKAGE_URL" 2398_ACEOF 2399 2400 2401# Let the site file select an alternate cache file if it wants to. 2402# Prefer an explicitly selected file to automatically selected ones. 2403ac_site_file1=NONE 2404ac_site_file2=NONE 2405if test -n "$CONFIG_SITE"; then 2406 ac_site_file1=$CONFIG_SITE 2407elif test "x$prefix" != xNONE; then 2408 ac_site_file1=$prefix/share/config.site 2409 ac_site_file2=$prefix/etc/config.site 2410else 2411 ac_site_file1=$ac_default_prefix/share/config.site 2412 ac_site_file2=$ac_default_prefix/etc/config.site 2413fi 2414for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2415do 2416 test "x$ac_site_file" = xNONE && continue 2417 if test -r "$ac_site_file"; then 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2419$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2420 sed 's/^/| /' "$ac_site_file" >&5 2421 . "$ac_site_file" 2422 fi 2423done 2424 2425if test -r "$cache_file"; then 2426 # Some versions of bash will fail to source /dev/null (special 2427 # files actually), so we avoid doing that. 2428 if test -f "$cache_file"; then 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2430$as_echo "$as_me: loading cache $cache_file" >&6;} 2431 case $cache_file in 2432 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2433 *) . "./$cache_file";; 2434 esac 2435 fi 2436else 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2438$as_echo "$as_me: creating cache $cache_file" >&6;} 2439 >$cache_file 2440fi 2441 2442# Check that the precious variables saved in the cache have kept the same 2443# value. 2444ac_cache_corrupted=false 2445for ac_var in $ac_precious_vars; do 2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2447 eval ac_new_set=\$ac_env_${ac_var}_set 2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2449 eval ac_new_val=\$ac_env_${ac_var}_value 2450 case $ac_old_set,$ac_new_set in 2451 set,) 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2453$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2454 ac_cache_corrupted=: ;; 2455 ,set) 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2457$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2458 ac_cache_corrupted=: ;; 2459 ,);; 2460 *) 2461 if test "x$ac_old_val" != "x$ac_new_val"; then 2462 # differences in whitespace do not lead to failure. 2463 ac_old_val_w=`echo x $ac_old_val` 2464 ac_new_val_w=`echo x $ac_new_val` 2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2467$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2468 ac_cache_corrupted=: 2469 else 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2471$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2472 eval $ac_var=\$ac_old_val 2473 fi 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2475$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2477$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2478 fi;; 2479 esac 2480 # Pass precious variables to config.status. 2481 if test "$ac_new_set" = set; then 2482 case $ac_new_val in 2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2484 *) ac_arg=$ac_var=$ac_new_val ;; 2485 esac 2486 case " $ac_configure_args " in 2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2489 esac 2490 fi 2491done 2492if $ac_cache_corrupted; then 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2496$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2497 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2498fi 2499## -------------------- ## 2500## Main body of script. ## 2501## -------------------- ## 2502 2503ac_ext=c 2504ac_cpp='$CPP $CPPFLAGS' 2505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2507ac_compiler_gnu=$ac_cv_c_compiler_gnu 2508 2509 2510 2511 2512 2513 2514ac_config_headers="$ac_config_headers config.h" 2515 2516 2517libtool_VERSION=9:0:0 2518 2519 2520# Default to --enable-multilib 2521# Check whether --enable-multilib was given. 2522if test "${enable_multilib+set}" = set; then : 2523 enableval=$enable_multilib; case "$enableval" in 2524 yes) multilib=yes ;; 2525 no) multilib=no ;; 2526 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2527 esac 2528else 2529 multilib=yes 2530fi 2531 2532 2533# We may get other options which we leave undocumented: 2534# --with-target-subdir, --with-multisrctop, --with-multisubdir 2535# See config-ml.in if you want the gory details. 2536 2537if test "$srcdir" = "."; then 2538 if test "$with_target_subdir" != "."; then 2539 multi_basedir="$srcdir/$with_multisrctop../.." 2540 else 2541 multi_basedir="$srcdir/$with_multisrctop.." 2542 fi 2543else 2544 multi_basedir="$srcdir/.." 2545fi 2546 2547 2548# Even if the default multilib is not a cross compilation, 2549# it may be that some of the other multilibs are. 2550if test $cross_compiling = no && test $multilib = yes \ 2551 && test "x${with_multisubdir}" != x ; then 2552 cross_compiling=maybe 2553fi 2554 2555ac_config_commands="$ac_config_commands default-1" 2556 2557 2558ac_aux_dir= 2559for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2560 for ac_t in install-sh install.sh shtool; do 2561 if test -f "$ac_dir/$ac_t"; then 2562 ac_aux_dir=$ac_dir 2563 ac_install_sh="$ac_aux_dir/$ac_t -c" 2564 break 2 2565 fi 2566 done 2567done 2568if test -z "$ac_aux_dir"; then 2569 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2570fi 2571 2572# These three variables are undocumented and unsupported, 2573# and are intended to be withdrawn in a future Autoconf release. 2574# They can cause serious problems if a builder's source tree is in a directory 2575# whose full name contains unusual characters. 2576ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2577ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2578ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2579 2580 2581# Make sure we can run config.sub. 2582$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2583 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2584 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2586$as_echo_n "checking build system type... " >&6; } 2587if test "${ac_cv_build+set}" = set; then : 2588 $as_echo_n "(cached) " >&6 2589else 2590 ac_build_alias=$build_alias 2591test "x$ac_build_alias" = x && 2592 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2593test "x$ac_build_alias" = x && 2594 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2595ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2596 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2597 2598fi 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2600$as_echo "$ac_cv_build" >&6; } 2601case $ac_cv_build in 2602*-*-*) ;; 2603*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2604esac 2605build=$ac_cv_build 2606ac_save_IFS=$IFS; IFS='-' 2607set x $ac_cv_build 2608shift 2609build_cpu=$1 2610build_vendor=$2 2611shift; shift 2612# Remember, the first character of IFS is used to create $*, 2613# except with old shells: 2614build_os=$* 2615IFS=$ac_save_IFS 2616case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2617 2618 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2620$as_echo_n "checking host system type... " >&6; } 2621if test "${ac_cv_host+set}" = set; then : 2622 $as_echo_n "(cached) " >&6 2623else 2624 if test "x$host_alias" = x; then 2625 ac_cv_host=$ac_cv_build 2626else 2627 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2628 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2629fi 2630 2631fi 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2633$as_echo "$ac_cv_host" >&6; } 2634case $ac_cv_host in 2635*-*-*) ;; 2636*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2637esac 2638host=$ac_cv_host 2639ac_save_IFS=$IFS; IFS='-' 2640set x $ac_cv_host 2641shift 2642host_cpu=$1 2643host_vendor=$2 2644shift; shift 2645# Remember, the first character of IFS is used to create $*, 2646# except with old shells: 2647host_os=$* 2648IFS=$ac_save_IFS 2649case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2650 2651 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2653$as_echo_n "checking target system type... " >&6; } 2654if test "${ac_cv_target+set}" = set; then : 2655 $as_echo_n "(cached) " >&6 2656else 2657 if test "x$target_alias" = x; then 2658 ac_cv_target=$ac_cv_host 2659else 2660 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2661 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2662fi 2663 2664fi 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2666$as_echo "$ac_cv_target" >&6; } 2667case $ac_cv_target in 2668*-*-*) ;; 2669*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2670esac 2671target=$ac_cv_target 2672ac_save_IFS=$IFS; IFS='-' 2673set x $ac_cv_target 2674shift 2675target_cpu=$1 2676target_vendor=$2 2677shift; shift 2678# Remember, the first character of IFS is used to create $*, 2679# except with old shells: 2680target_os=$* 2681IFS=$ac_save_IFS 2682case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2683 2684 2685# The aliases save the names the user supplied, while $host etc. 2686# will get canonicalized. 2687test -n "$target_alias" && 2688 test "$program_prefix$program_suffix$program_transform_name" = \ 2689 NONENONEs,x,x, && 2690 program_prefix=${target_alias}- 2691 2692target_alias=${target_alias-$host_alias} 2693 2694am__api_version='1.11' 2695 2696# Find a good install program. We prefer a C program (faster), 2697# so one script is as good as another. But avoid the broken or 2698# incompatible versions: 2699# SysV /etc/install, /usr/sbin/install 2700# SunOS /usr/etc/install 2701# IRIX /sbin/install 2702# AIX /bin/install 2703# AmigaOS /C/install, which installs bootblocks on floppy discs 2704# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2705# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2706# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2707# OS/2's system install, which has a completely different semantic 2708# ./install, which can be erroneously created by make from ./install.sh. 2709# Reject install programs that cannot install multiple files. 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2711$as_echo_n "checking for a BSD-compatible install... " >&6; } 2712if test -z "$INSTALL"; then 2713if test "${ac_cv_path_install+set}" = set; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 # Account for people who put trailing slashes in PATH elements. 2722case $as_dir/ in #(( 2723 ./ | .// | /[cC]/* | \ 2724 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2725 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2726 /usr/ucb/* ) ;; 2727 *) 2728 # OSF1 and SCO ODT 3.0 have their own names for install. 2729 # Don't use installbsd from OSF since it installs stuff as root 2730 # by default. 2731 for ac_prog in ginstall scoinst install; do 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2734 if test $ac_prog = install && 2735 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2736 # AIX install. It has an incompatible calling convention. 2737 : 2738 elif test $ac_prog = install && 2739 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2740 # program-specific install script used by HP pwplus--don't use. 2741 : 2742 else 2743 rm -rf conftest.one conftest.two conftest.dir 2744 echo one > conftest.one 2745 echo two > conftest.two 2746 mkdir conftest.dir 2747 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2748 test -s conftest.one && test -s conftest.two && 2749 test -s conftest.dir/conftest.one && 2750 test -s conftest.dir/conftest.two 2751 then 2752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2753 break 3 2754 fi 2755 fi 2756 fi 2757 done 2758 done 2759 ;; 2760esac 2761 2762 done 2763IFS=$as_save_IFS 2764 2765rm -rf conftest.one conftest.two conftest.dir 2766 2767fi 2768 if test "${ac_cv_path_install+set}" = set; then 2769 INSTALL=$ac_cv_path_install 2770 else 2771 # As a last resort, use the slow shell script. Don't cache a 2772 # value for INSTALL within a source directory, because that will 2773 # break other packages using the cache if that directory is 2774 # removed, or if the value is a relative name. 2775 INSTALL=$ac_install_sh 2776 fi 2777fi 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2779$as_echo "$INSTALL" >&6; } 2780 2781# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2782# It thinks the first close brace ends the variable substitution. 2783test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2784 2785test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2786 2787test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2788 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2790$as_echo_n "checking whether build environment is sane... " >&6; } 2791# Just in case 2792sleep 1 2793echo timestamp > conftest.file 2794# Reject unsafe characters in $srcdir or the absolute working directory 2795# name. Accept space and tab only in the latter. 2796am_lf=' 2797' 2798case `pwd` in 2799 *[\\\"\#\$\&\'\`$am_lf]*) 2800 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2801esac 2802case $srcdir in 2803 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2804 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2805esac 2806 2807# Do `set' in a subshell so we don't clobber the current shell's 2808# arguments. Must try -L first in case configure is actually a 2809# symlink; some systems play weird games with the mod time of symlinks 2810# (eg FreeBSD returns the mod time of the symlink's containing 2811# directory). 2812if ( 2813 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2814 if test "$*" = "X"; then 2815 # -L didn't work. 2816 set X `ls -t "$srcdir/configure" conftest.file` 2817 fi 2818 rm -f conftest.file 2819 if test "$*" != "X $srcdir/configure conftest.file" \ 2820 && test "$*" != "X conftest.file $srcdir/configure"; then 2821 2822 # If neither matched, then we have a broken ls. This can happen 2823 # if, for instance, CONFIG_SHELL is bash and it inherits a 2824 # broken ls alias from the environment. This has actually 2825 # happened. Such a system could not be considered "sane". 2826 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2827alias in your environment" "$LINENO" 5 2828 fi 2829 2830 test "$2" = conftest.file 2831 ) 2832then 2833 # Ok. 2834 : 2835else 2836 as_fn_error "newly created file is older than distributed files! 2837Check your system clock" "$LINENO" 5 2838fi 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2840$as_echo "yes" >&6; } 2841test "$program_prefix" != NONE && 2842 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2843# Use a double $ so make ignores it. 2844test "$program_suffix" != NONE && 2845 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2846# Double any \ or $. 2847# By default was `s,x,x', remove it if useless. 2848ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2849program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2850 2851# expand $ac_aux_dir to an absolute path 2852am_aux_dir=`cd $ac_aux_dir && pwd` 2853 2854if test x"${MISSING+set}" != xset; then 2855 case $am_aux_dir in 2856 *\ * | *\ *) 2857 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2858 *) 2859 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2860 esac 2861fi 2862# Use eval to expand $SHELL 2863if eval "$MISSING --run true"; then 2864 am_missing_run="$MISSING --run " 2865else 2866 am_missing_run= 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2868$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2869fi 2870 2871if test x"${install_sh}" != xset; then 2872 case $am_aux_dir in 2873 *\ * | *\ *) 2874 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2875 *) 2876 install_sh="\${SHELL} $am_aux_dir/install-sh" 2877 esac 2878fi 2879 2880# Installed binaries are usually stripped using `strip' when the user 2881# run `make install-strip'. However `strip' might not be the right 2882# tool to use in cross-compilation environments, therefore Automake 2883# will honor the `STRIP' environment variable to overrule this program. 2884if test "$cross_compiling" != no; then 2885 if test -n "$ac_tool_prefix"; then 2886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2887set dummy ${ac_tool_prefix}strip; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if test "${ac_cv_prog_STRIP+set}" = set; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$STRIP"; then 2894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2903 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913STRIP=$ac_cv_prog_STRIP 2914if test -n "$STRIP"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2916$as_echo "$STRIP" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 2923fi 2924if test -z "$ac_cv_prog_STRIP"; then 2925 ac_ct_STRIP=$STRIP 2926 # Extract the first word of "strip", so it can be a program name with args. 2927set dummy strip; ac_word=$2 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929$as_echo_n "checking for $ac_word... " >&6; } 2930if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 if test -n "$ac_ct_STRIP"; then 2934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2935else 2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937for as_dir in $PATH 2938do 2939 IFS=$as_save_IFS 2940 test -z "$as_dir" && as_dir=. 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2943 ac_cv_prog_ac_ct_STRIP="strip" 2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2945 break 2 2946 fi 2947done 2948 done 2949IFS=$as_save_IFS 2950 2951fi 2952fi 2953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2954if test -n "$ac_ct_STRIP"; then 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2956$as_echo "$ac_ct_STRIP" >&6; } 2957else 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959$as_echo "no" >&6; } 2960fi 2961 2962 if test "x$ac_ct_STRIP" = x; then 2963 STRIP=":" 2964 else 2965 case $cross_compiling:$ac_tool_warned in 2966yes:) 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2969ac_tool_warned=yes ;; 2970esac 2971 STRIP=$ac_ct_STRIP 2972 fi 2973else 2974 STRIP="$ac_cv_prog_STRIP" 2975fi 2976 2977fi 2978INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2979 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2981$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2982if test -z "$MKDIR_P"; then 2983 if test "${ac_cv_path_mkdir+set}" = set; then : 2984 $as_echo_n "(cached) " >&6 2985else 2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2988do 2989 IFS=$as_save_IFS 2990 test -z "$as_dir" && as_dir=. 2991 for ac_prog in mkdir gmkdir; do 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2994 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2995 'mkdir (GNU coreutils) '* | \ 2996 'mkdir (coreutils) '* | \ 2997 'mkdir (fileutils) '4.1*) 2998 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2999 break 3;; 3000 esac 3001 done 3002 done 3003 done 3004IFS=$as_save_IFS 3005 3006fi 3007 3008 if test "${ac_cv_path_mkdir+set}" = set; then 3009 MKDIR_P="$ac_cv_path_mkdir -p" 3010 else 3011 # As a last resort, use the slow shell script. Don't cache a 3012 # value for MKDIR_P within a source directory, because that will 3013 # break other packages using the cache if that directory is 3014 # removed, or if the value is a relative name. 3015 test -d ./--version && rmdir ./--version 3016 MKDIR_P="$ac_install_sh -d" 3017 fi 3018fi 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3020$as_echo "$MKDIR_P" >&6; } 3021 3022mkdir_p="$MKDIR_P" 3023case $mkdir_p in 3024 [\\/$]* | ?:[\\/]*) ;; 3025 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3026esac 3027 3028for ac_prog in gawk mawk nawk awk 3029do 3030 # Extract the first word of "$ac_prog", so it can be a program name with args. 3031set dummy $ac_prog; ac_word=$2 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3033$as_echo_n "checking for $ac_word... " >&6; } 3034if test "${ac_cv_prog_AWK+set}" = set; then : 3035 $as_echo_n "(cached) " >&6 3036else 3037 if test -n "$AWK"; then 3038 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3039else 3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3041for as_dir in $PATH 3042do 3043 IFS=$as_save_IFS 3044 test -z "$as_dir" && as_dir=. 3045 for ac_exec_ext in '' $ac_executable_extensions; do 3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3047 ac_cv_prog_AWK="$ac_prog" 3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3049 break 2 3050 fi 3051done 3052 done 3053IFS=$as_save_IFS 3054 3055fi 3056fi 3057AWK=$ac_cv_prog_AWK 3058if test -n "$AWK"; then 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3060$as_echo "$AWK" >&6; } 3061else 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3063$as_echo "no" >&6; } 3064fi 3065 3066 3067 test -n "$AWK" && break 3068done 3069 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3071$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3072set x ${MAKE-make} 3073ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3074if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3075 $as_echo_n "(cached) " >&6 3076else 3077 cat >conftest.make <<\_ACEOF 3078SHELL = /bin/sh 3079all: 3080 @echo '@@@%%%=$(MAKE)=@@@%%%' 3081_ACEOF 3082# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3083case `${MAKE-make} -f conftest.make 2>/dev/null` in 3084 *@@@%%%=?*=@@@%%%*) 3085 eval ac_cv_prog_make_${ac_make}_set=yes;; 3086 *) 3087 eval ac_cv_prog_make_${ac_make}_set=no;; 3088esac 3089rm -f conftest.make 3090fi 3091if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3093$as_echo "yes" >&6; } 3094 SET_MAKE= 3095else 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097$as_echo "no" >&6; } 3098 SET_MAKE="MAKE=${MAKE-make}" 3099fi 3100 3101rm -rf .tst 2>/dev/null 3102mkdir .tst 2>/dev/null 3103if test -d .tst; then 3104 am__leading_dot=. 3105else 3106 am__leading_dot=_ 3107fi 3108rmdir .tst 2>/dev/null 3109 3110if test "`cd $srcdir && pwd`" != "`pwd`"; then 3111 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3112 # is not polluted with repeated "-I." 3113 am__isrc=' -I$(srcdir)' 3114 # test to see if srcdir already configured 3115 if test -f $srcdir/config.status; then 3116 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3117 fi 3118fi 3119 3120# test whether we have cygpath 3121if test -z "$CYGPATH_W"; then 3122 if (cygpath --version) >/dev/null 2>/dev/null; then 3123 CYGPATH_W='cygpath -w' 3124 else 3125 CYGPATH_W=echo 3126 fi 3127fi 3128 3129 3130# Define the identity of the package. 3131 PACKAGE='libgo' 3132 VERSION='version-unused' 3133 3134 3135# Some tools Automake needs. 3136 3137ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3138 3139 3140AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3141 3142 3143AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3144 3145 3146AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3147 3148 3149MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3150 3151# We need awk for the "check" target. The system "awk" is bad on 3152# some platforms. 3153# Always define AMTAR for backward compatibility. Yes, it's still used 3154# in the wild :-( We should find a proper way to deprecate it ... 3155AMTAR='$${TAR-tar}' 3156 3157am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168ac_ext=c 3169ac_cpp='$CPP $CPPFLAGS' 3170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3172ac_compiler_gnu=$ac_cv_c_compiler_gnu 3173if test -n "$ac_tool_prefix"; then 3174 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3175set dummy ${ac_tool_prefix}gcc; ac_word=$2 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3177$as_echo_n "checking for $ac_word... " >&6; } 3178if test "${ac_cv_prog_CC+set}" = set; then : 3179 $as_echo_n "(cached) " >&6 3180else 3181 if test -n "$CC"; then 3182 ac_cv_prog_CC="$CC" # Let the user override the test. 3183else 3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3185for as_dir in $PATH 3186do 3187 IFS=$as_save_IFS 3188 test -z "$as_dir" && as_dir=. 3189 for ac_exec_ext in '' $ac_executable_extensions; do 3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3191 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3193 break 2 3194 fi 3195done 3196 done 3197IFS=$as_save_IFS 3198 3199fi 3200fi 3201CC=$ac_cv_prog_CC 3202if test -n "$CC"; then 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3204$as_echo "$CC" >&6; } 3205else 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3207$as_echo "no" >&6; } 3208fi 3209 3210 3211fi 3212if test -z "$ac_cv_prog_CC"; then 3213 ac_ct_CC=$CC 3214 # Extract the first word of "gcc", so it can be a program name with args. 3215set dummy gcc; ac_word=$2 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3217$as_echo_n "checking for $ac_word... " >&6; } 3218if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3219 $as_echo_n "(cached) " >&6 3220else 3221 if test -n "$ac_ct_CC"; then 3222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3223else 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 3227 IFS=$as_save_IFS 3228 test -z "$as_dir" && as_dir=. 3229 for ac_exec_ext in '' $ac_executable_extensions; do 3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3231 ac_cv_prog_ac_ct_CC="gcc" 3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3233 break 2 3234 fi 3235done 3236 done 3237IFS=$as_save_IFS 3238 3239fi 3240fi 3241ac_ct_CC=$ac_cv_prog_ac_ct_CC 3242if test -n "$ac_ct_CC"; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3244$as_echo "$ac_ct_CC" >&6; } 3245else 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247$as_echo "no" >&6; } 3248fi 3249 3250 if test "x$ac_ct_CC" = x; then 3251 CC="" 3252 else 3253 case $cross_compiling:$ac_tool_warned in 3254yes:) 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3257ac_tool_warned=yes ;; 3258esac 3259 CC=$ac_ct_CC 3260 fi 3261else 3262 CC="$ac_cv_prog_CC" 3263fi 3264 3265if test -z "$CC"; then 3266 if test -n "$ac_tool_prefix"; then 3267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3268set dummy ${ac_tool_prefix}cc; ac_word=$2 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3270$as_echo_n "checking for $ac_word... " >&6; } 3271if test "${ac_cv_prog_CC+set}" = set; then : 3272 $as_echo_n "(cached) " >&6 3273else 3274 if test -n "$CC"; then 3275 ac_cv_prog_CC="$CC" # Let the user override the test. 3276else 3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3278for as_dir in $PATH 3279do 3280 IFS=$as_save_IFS 3281 test -z "$as_dir" && as_dir=. 3282 for ac_exec_ext in '' $ac_executable_extensions; do 3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3284 ac_cv_prog_CC="${ac_tool_prefix}cc" 3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3286 break 2 3287 fi 3288done 3289 done 3290IFS=$as_save_IFS 3291 3292fi 3293fi 3294CC=$ac_cv_prog_CC 3295if test -n "$CC"; then 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3297$as_echo "$CC" >&6; } 3298else 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3300$as_echo "no" >&6; } 3301fi 3302 3303 3304 fi 3305fi 3306if test -z "$CC"; then 3307 # Extract the first word of "cc", so it can be a program name with args. 3308set dummy cc; ac_word=$2 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3310$as_echo_n "checking for $ac_word... " >&6; } 3311if test "${ac_cv_prog_CC+set}" = set; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 if test -n "$CC"; then 3315 ac_cv_prog_CC="$CC" # Let the user override the test. 3316else 3317 ac_prog_rejected=no 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 test -z "$as_dir" && as_dir=. 3323 for ac_exec_ext in '' $ac_executable_extensions; do 3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3325 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3326 ac_prog_rejected=yes 3327 continue 3328 fi 3329 ac_cv_prog_CC="cc" 3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3331 break 2 3332 fi 3333done 3334 done 3335IFS=$as_save_IFS 3336 3337if test $ac_prog_rejected = yes; then 3338 # We found a bogon in the path, so make sure we never use it. 3339 set dummy $ac_cv_prog_CC 3340 shift 3341 if test $# != 0; then 3342 # We chose a different compiler from the bogus one. 3343 # However, it has the same basename, so the bogon will be chosen 3344 # first if we set CC to just the basename; use the full file name. 3345 shift 3346 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3347 fi 3348fi 3349fi 3350fi 3351CC=$ac_cv_prog_CC 3352if test -n "$CC"; then 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3354$as_echo "$CC" >&6; } 3355else 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3357$as_echo "no" >&6; } 3358fi 3359 3360 3361fi 3362if test -z "$CC"; then 3363 if test -n "$ac_tool_prefix"; then 3364 for ac_prog in cl.exe 3365 do 3366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3367set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3369$as_echo_n "checking for $ac_word... " >&6; } 3370if test "${ac_cv_prog_CC+set}" = set; then : 3371 $as_echo_n "(cached) " >&6 3372else 3373 if test -n "$CC"; then 3374 ac_cv_prog_CC="$CC" # Let the user override the test. 3375else 3376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3377for as_dir in $PATH 3378do 3379 IFS=$as_save_IFS 3380 test -z "$as_dir" && as_dir=. 3381 for ac_exec_ext in '' $ac_executable_extensions; do 3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3385 break 2 3386 fi 3387done 3388 done 3389IFS=$as_save_IFS 3390 3391fi 3392fi 3393CC=$ac_cv_prog_CC 3394if test -n "$CC"; then 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3396$as_echo "$CC" >&6; } 3397else 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3399$as_echo "no" >&6; } 3400fi 3401 3402 3403 test -n "$CC" && break 3404 done 3405fi 3406if test -z "$CC"; then 3407 ac_ct_CC=$CC 3408 for ac_prog in cl.exe 3409do 3410 # Extract the first word of "$ac_prog", so it can be a program name with args. 3411set dummy $ac_prog; ac_word=$2 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3413$as_echo_n "checking for $ac_word... " >&6; } 3414if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3415 $as_echo_n "(cached) " >&6 3416else 3417 if test -n "$ac_ct_CC"; then 3418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3419else 3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3421for as_dir in $PATH 3422do 3423 IFS=$as_save_IFS 3424 test -z "$as_dir" && as_dir=. 3425 for ac_exec_ext in '' $ac_executable_extensions; do 3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3427 ac_cv_prog_ac_ct_CC="$ac_prog" 3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3429 break 2 3430 fi 3431done 3432 done 3433IFS=$as_save_IFS 3434 3435fi 3436fi 3437ac_ct_CC=$ac_cv_prog_ac_ct_CC 3438if test -n "$ac_ct_CC"; then 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3440$as_echo "$ac_ct_CC" >&6; } 3441else 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3443$as_echo "no" >&6; } 3444fi 3445 3446 3447 test -n "$ac_ct_CC" && break 3448done 3449 3450 if test "x$ac_ct_CC" = x; then 3451 CC="" 3452 else 3453 case $cross_compiling:$ac_tool_warned in 3454yes:) 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3457ac_tool_warned=yes ;; 3458esac 3459 CC=$ac_ct_CC 3460 fi 3461fi 3462 3463fi 3464 3465 3466test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3468as_fn_error "no acceptable C compiler found in \$PATH 3469See \`config.log' for more details." "$LINENO" 5; } 3470 3471# Provide some information about the compiler. 3472$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3473set X $ac_compile 3474ac_compiler=$2 3475for ac_option in --version -v -V -qversion; do 3476 { { ac_try="$ac_compiler $ac_option >&5" 3477case "(($ac_try" in 3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3479 *) ac_try_echo=$ac_try;; 3480esac 3481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3482$as_echo "$ac_try_echo"; } >&5 3483 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3484 ac_status=$? 3485 if test -s conftest.err; then 3486 sed '10a\ 3487... rest of stderr output deleted ... 3488 10q' conftest.err >conftest.er1 3489 cat conftest.er1 >&5 3490 rm -f conftest.er1 conftest.err 3491 fi 3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3493 test $ac_status = 0; } 3494done 3495 3496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3497/* end confdefs.h. */ 3498 3499int 3500main () 3501{ 3502 3503 ; 3504 return 0; 3505} 3506_ACEOF 3507ac_clean_files_save=$ac_clean_files 3508ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3509# Try to create an executable without -o first, disregard a.out. 3510# It will help us diagnose broken compilers, and finding out an intuition 3511# of exeext. 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3513$as_echo_n "checking for C compiler default output file name... " >&6; } 3514ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3515 3516# The possible output files: 3517ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3518 3519ac_rmfiles= 3520for ac_file in $ac_files 3521do 3522 case $ac_file in 3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3524 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3525 esac 3526done 3527rm -f $ac_rmfiles 3528 3529if { { ac_try="$ac_link_default" 3530case "(($ac_try" in 3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3532 *) ac_try_echo=$ac_try;; 3533esac 3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3535$as_echo "$ac_try_echo"; } >&5 3536 (eval "$ac_link_default") 2>&5 3537 ac_status=$? 3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3539 test $ac_status = 0; }; then : 3540 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3541# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3542# in a Makefile. We should not override ac_cv_exeext if it was cached, 3543# so that the user can short-circuit this test for compilers unknown to 3544# Autoconf. 3545for ac_file in $ac_files '' 3546do 3547 test -f "$ac_file" || continue 3548 case $ac_file in 3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3550 ;; 3551 [ab].out ) 3552 # We found the default executable, but exeext='' is most 3553 # certainly right. 3554 break;; 3555 *.* ) 3556 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3557 then :; else 3558 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3559 fi 3560 # We set ac_cv_exeext here because the later test for it is not 3561 # safe: cross compilers may not add the suffix if given an `-o' 3562 # argument, so we may need to know it at that point already. 3563 # Even if this section looks crufty: it has the advantage of 3564 # actually working. 3565 break;; 3566 * ) 3567 break;; 3568 esac 3569done 3570test "$ac_cv_exeext" = no && ac_cv_exeext= 3571 3572else 3573 ac_file='' 3574fi 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3576$as_echo "$ac_file" >&6; } 3577if test -z "$ac_file"; then : 3578 $as_echo "$as_me: failed program was:" >&5 3579sed 's/^/| /' conftest.$ac_ext >&5 3580 3581{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3583{ as_fn_set_status 77 3584as_fn_error "C compiler cannot create executables 3585See \`config.log' for more details." "$LINENO" 5; }; } 3586fi 3587ac_exeext=$ac_cv_exeext 3588 3589# Check that the compiler produces executables we can run. If not, either 3590# the compiler is broken, or we cross compile. 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3592$as_echo_n "checking whether the C compiler works... " >&6; } 3593# If not cross compiling, check that we can run a simple program. 3594if test "$cross_compiling" != yes; then 3595 if { ac_try='./$ac_file' 3596 { { case "(($ac_try" in 3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3598 *) ac_try_echo=$ac_try;; 3599esac 3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3601$as_echo "$ac_try_echo"; } >&5 3602 (eval "$ac_try") 2>&5 3603 ac_status=$? 3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3605 test $ac_status = 0; }; }; then 3606 cross_compiling=no 3607 else 3608 if test "$cross_compiling" = maybe; then 3609 cross_compiling=yes 3610 else 3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3613as_fn_error "cannot run C compiled programs. 3614If you meant to cross compile, use \`--host'. 3615See \`config.log' for more details." "$LINENO" 5; } 3616 fi 3617 fi 3618fi 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3620$as_echo "yes" >&6; } 3621 3622rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3623ac_clean_files=$ac_clean_files_save 3624# Check that the compiler produces executables we can run. If not, either 3625# the compiler is broken, or we cross compile. 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3627$as_echo_n "checking whether we are cross compiling... " >&6; } 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3629$as_echo "$cross_compiling" >&6; } 3630 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3632$as_echo_n "checking for suffix of executables... " >&6; } 3633if { { ac_try="$ac_link" 3634case "(($ac_try" in 3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3636 *) ac_try_echo=$ac_try;; 3637esac 3638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3639$as_echo "$ac_try_echo"; } >&5 3640 (eval "$ac_link") 2>&5 3641 ac_status=$? 3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3643 test $ac_status = 0; }; then : 3644 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3645# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3646# work properly (i.e., refer to `conftest.exe'), while it won't with 3647# `rm'. 3648for ac_file in conftest.exe conftest conftest.*; do 3649 test -f "$ac_file" || continue 3650 case $ac_file in 3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3652 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3653 break;; 3654 * ) break;; 3655 esac 3656done 3657else 3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3660as_fn_error "cannot compute suffix of executables: cannot compile and link 3661See \`config.log' for more details." "$LINENO" 5; } 3662fi 3663rm -f conftest$ac_cv_exeext 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3665$as_echo "$ac_cv_exeext" >&6; } 3666 3667rm -f conftest.$ac_ext 3668EXEEXT=$ac_cv_exeext 3669ac_exeext=$EXEEXT 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3671$as_echo_n "checking for suffix of object files... " >&6; } 3672if test "${ac_cv_objext+set}" = set; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3676/* end confdefs.h. */ 3677 3678int 3679main () 3680{ 3681 3682 ; 3683 return 0; 3684} 3685_ACEOF 3686rm -f conftest.o conftest.obj 3687if { { ac_try="$ac_compile" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693$as_echo "$ac_try_echo"; } >&5 3694 (eval "$ac_compile") 2>&5 3695 ac_status=$? 3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; }; then : 3698 for ac_file in conftest.o conftest.obj conftest.*; do 3699 test -f "$ac_file" || continue; 3700 case $ac_file in 3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3703 break;; 3704 esac 3705done 3706else 3707 $as_echo "$as_me: failed program was:" >&5 3708sed 's/^/| /' conftest.$ac_ext >&5 3709 3710{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3712as_fn_error "cannot compute suffix of object files: cannot compile 3713See \`config.log' for more details." "$LINENO" 5; } 3714fi 3715rm -f conftest.$ac_cv_objext conftest.$ac_ext 3716fi 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3718$as_echo "$ac_cv_objext" >&6; } 3719OBJEXT=$ac_cv_objext 3720ac_objext=$OBJEXT 3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3722$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3723if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3724 $as_echo_n "(cached) " >&6 3725else 3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727/* end confdefs.h. */ 3728 3729int 3730main () 3731{ 3732#ifndef __GNUC__ 3733 choke me 3734#endif 3735 3736 ; 3737 return 0; 3738} 3739_ACEOF 3740if ac_fn_c_try_compile "$LINENO"; then : 3741 ac_compiler_gnu=yes 3742else 3743 ac_compiler_gnu=no 3744fi 3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3746ac_cv_c_compiler_gnu=$ac_compiler_gnu 3747 3748fi 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3750$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3751if test $ac_compiler_gnu = yes; then 3752 GCC=yes 3753else 3754 GCC= 3755fi 3756ac_test_CFLAGS=${CFLAGS+set} 3757ac_save_CFLAGS=$CFLAGS 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3759$as_echo_n "checking whether $CC accepts -g... " >&6; } 3760if test "${ac_cv_prog_cc_g+set}" = set; then : 3761 $as_echo_n "(cached) " >&6 3762else 3763 ac_save_c_werror_flag=$ac_c_werror_flag 3764 ac_c_werror_flag=yes 3765 ac_cv_prog_cc_g=no 3766 CFLAGS="-g" 3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3768/* end confdefs.h. */ 3769 3770int 3771main () 3772{ 3773 3774 ; 3775 return 0; 3776} 3777_ACEOF 3778if ac_fn_c_try_compile "$LINENO"; then : 3779 ac_cv_prog_cc_g=yes 3780else 3781 CFLAGS="" 3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3783/* end confdefs.h. */ 3784 3785int 3786main () 3787{ 3788 3789 ; 3790 return 0; 3791} 3792_ACEOF 3793if ac_fn_c_try_compile "$LINENO"; then : 3794 3795else 3796 ac_c_werror_flag=$ac_save_c_werror_flag 3797 CFLAGS="-g" 3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799/* end confdefs.h. */ 3800 3801int 3802main () 3803{ 3804 3805 ; 3806 return 0; 3807} 3808_ACEOF 3809if ac_fn_c_try_compile "$LINENO"; then : 3810 ac_cv_prog_cc_g=yes 3811fi 3812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3813fi 3814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3815fi 3816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3817 ac_c_werror_flag=$ac_save_c_werror_flag 3818fi 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3820$as_echo "$ac_cv_prog_cc_g" >&6; } 3821if test "$ac_test_CFLAGS" = set; then 3822 CFLAGS=$ac_save_CFLAGS 3823elif test $ac_cv_prog_cc_g = yes; then 3824 if test "$GCC" = yes; then 3825 CFLAGS="-g -O2" 3826 else 3827 CFLAGS="-g" 3828 fi 3829else 3830 if test "$GCC" = yes; then 3831 CFLAGS="-O2" 3832 else 3833 CFLAGS= 3834 fi 3835fi 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3837$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3838if test "${ac_cv_prog_cc_c89+set}" = set; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 ac_cv_prog_cc_c89=no 3842ac_save_CC=$CC 3843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845#include <stdarg.h> 3846#include <stdio.h> 3847#include <sys/types.h> 3848#include <sys/stat.h> 3849/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3850struct buf { int x; }; 3851FILE * (*rcsopen) (struct buf *, struct stat *, int); 3852static char *e (p, i) 3853 char **p; 3854 int i; 3855{ 3856 return p[i]; 3857} 3858static char *f (char * (*g) (char **, int), char **p, ...) 3859{ 3860 char *s; 3861 va_list v; 3862 va_start (v,p); 3863 s = g (p, va_arg (v,int)); 3864 va_end (v); 3865 return s; 3866} 3867 3868/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3869 function prototypes and stuff, but not '\xHH' hex character constants. 3870 These don't provoke an error unfortunately, instead are silently treated 3871 as 'x'. The following induces an error, until -std is added to get 3872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3873 array size at least. It's necessary to write '\x00'==0 to get something 3874 that's true only with -std. */ 3875int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3876 3877/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3878 inside strings and character constants. */ 3879#define FOO(x) 'x' 3880int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3881 3882int test (int i, double x); 3883struct s1 {int (*f) (int a);}; 3884struct s2 {int (*f) (double a);}; 3885int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3886int argc; 3887char **argv; 3888int 3889main () 3890{ 3891return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3892 ; 3893 return 0; 3894} 3895_ACEOF 3896for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3898do 3899 CC="$ac_save_CC $ac_arg" 3900 if ac_fn_c_try_compile "$LINENO"; then : 3901 ac_cv_prog_cc_c89=$ac_arg 3902fi 3903rm -f core conftest.err conftest.$ac_objext 3904 test "x$ac_cv_prog_cc_c89" != "xno" && break 3905done 3906rm -f conftest.$ac_ext 3907CC=$ac_save_CC 3908 3909fi 3910# AC_CACHE_VAL 3911case "x$ac_cv_prog_cc_c89" in 3912 x) 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3914$as_echo "none needed" >&6; } ;; 3915 xno) 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3917$as_echo "unsupported" >&6; } ;; 3918 *) 3919 CC="$CC $ac_cv_prog_cc_c89" 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3921$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3922esac 3923if test "x$ac_cv_prog_cc_c89" != xno; then : 3924 3925fi 3926 3927ac_ext=c 3928ac_cpp='$CPP $CPPFLAGS' 3929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3931ac_compiler_gnu=$ac_cv_c_compiler_gnu 3932DEPDIR="${am__leading_dot}deps" 3933 3934ac_config_commands="$ac_config_commands depfiles" 3935 3936 3937am_make=${MAKE-make} 3938cat > confinc << 'END' 3939am__doit: 3940 @echo this is the am__doit target 3941.PHONY: am__doit 3942END 3943# If we don't find an include directive, just comment out the code. 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3945$as_echo_n "checking for style of include used by $am_make... " >&6; } 3946am__include="#" 3947am__quote= 3948_am_result=none 3949# First try GNU make style include. 3950echo "include confinc" > confmf 3951# Ignore all kinds of additional output from `make'. 3952case `$am_make -s -f confmf 2> /dev/null` in #( 3953*the\ am__doit\ target*) 3954 am__include=include 3955 am__quote= 3956 _am_result=GNU 3957 ;; 3958esac 3959# Now try BSD make style include. 3960if test "$am__include" = "#"; then 3961 echo '.include "confinc"' > confmf 3962 case `$am_make -s -f confmf 2> /dev/null` in #( 3963 *the\ am__doit\ target*) 3964 am__include=.include 3965 am__quote="\"" 3966 _am_result=BSD 3967 ;; 3968 esac 3969fi 3970 3971 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3973$as_echo "$_am_result" >&6; } 3974rm -f confinc confmf 3975 3976# Check whether --enable-dependency-tracking was given. 3977if test "${enable_dependency_tracking+set}" = set; then : 3978 enableval=$enable_dependency_tracking; 3979fi 3980 3981if test "x$enable_dependency_tracking" != xno; then 3982 am_depcomp="$ac_aux_dir/depcomp" 3983 AMDEPBACKSLASH='\' 3984 am__nodep='_no' 3985fi 3986 if test "x$enable_dependency_tracking" != xno; then 3987 AMDEP_TRUE= 3988 AMDEP_FALSE='#' 3989else 3990 AMDEP_TRUE='#' 3991 AMDEP_FALSE= 3992fi 3993 3994 3995 3996depcc="$CC" am_compiler_list= 3997 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3999$as_echo_n "checking dependency style of $depcc... " >&6; } 4000if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4004 # We make a subdir and do the tests there. Otherwise we can end up 4005 # making bogus files that we don't know about and never remove. For 4006 # instance it was reported that on HP-UX the gcc test will end up 4007 # making a dummy file named `D' -- because `-MD' means `put the output 4008 # in D'. 4009 rm -rf conftest.dir 4010 mkdir conftest.dir 4011 # Copy depcomp to subdir because otherwise we won't find it if we're 4012 # using a relative directory. 4013 cp "$am_depcomp" conftest.dir 4014 cd conftest.dir 4015 # We will build objects and dependencies in a subdirectory because 4016 # it helps to detect inapplicable dependency modes. For instance 4017 # both Tru64's cc and ICC support -MD to output dependencies as a 4018 # side effect of compilation, but ICC will put the dependencies in 4019 # the current directory while Tru64 will put them in the object 4020 # directory. 4021 mkdir sub 4022 4023 am_cv_CC_dependencies_compiler_type=none 4024 if test "$am_compiler_list" = ""; then 4025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4026 fi 4027 am__universal=false 4028 case " $depcc " in #( 4029 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4030 esac 4031 4032 for depmode in $am_compiler_list; do 4033 # Setup a source with many dependencies, because some compilers 4034 # like to wrap large dependency lists on column 80 (with \), and 4035 # we should not choose a depcomp mode which is confused by this. 4036 # 4037 # We need to recreate these files for each test, as the compiler may 4038 # overwrite some of them when testing with obscure command lines. 4039 # This happens at least with the AIX C compiler. 4040 : > sub/conftest.c 4041 for i in 1 2 3 4 5 6; do 4042 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4044 # Solaris 8's {/usr,}/bin/sh. 4045 touch sub/conftst$i.h 4046 done 4047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4048 4049 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4050 # mode. It turns out that the SunPro C++ compiler does not properly 4051 # handle `-M -o', and we need to detect this. Also, some Intel 4052 # versions had trouble with output in subdirs 4053 am__obj=sub/conftest.${OBJEXT-o} 4054 am__minus_obj="-o $am__obj" 4055 case $depmode in 4056 gcc) 4057 # This depmode causes a compiler race in universal mode. 4058 test "$am__universal" = false || continue 4059 ;; 4060 nosideeffect) 4061 # after this tag, mechanisms are not by side-effect, so they'll 4062 # only be used when explicitly requested 4063 if test "x$enable_dependency_tracking" = xyes; then 4064 continue 4065 else 4066 break 4067 fi 4068 ;; 4069 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4070 # This compiler won't grok `-c -o', but also, the minuso test has 4071 # not run yet. These depmodes are late enough in the game, and 4072 # so weak that their functioning should not be impacted. 4073 am__obj=conftest.${OBJEXT-o} 4074 am__minus_obj= 4075 ;; 4076 none) break ;; 4077 esac 4078 if depmode=$depmode \ 4079 source=sub/conftest.c object=$am__obj \ 4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4082 >/dev/null 2>conftest.err && 4083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4087 # icc doesn't choke on unknown options, it will just issue warnings 4088 # or remarks (even with -Werror). So we grep stderr for any message 4089 # that says an option was ignored or not supported. 4090 # When given -MP, icc 7.0 and 7.1 complain thusly: 4091 # icc: Command line warning: ignoring option '-M'; no argument required 4092 # The diagnosis changed in icc 8.0: 4093 # icc: Command line remark: option '-MP' not supported 4094 if (grep 'ignoring option' conftest.err || 4095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4096 am_cv_CC_dependencies_compiler_type=$depmode 4097 break 4098 fi 4099 fi 4100 done 4101 4102 cd .. 4103 rm -rf conftest.dir 4104else 4105 am_cv_CC_dependencies_compiler_type=none 4106fi 4107 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4110$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4111CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4112 4113 if 4114 test "x$enable_dependency_tracking" != xno \ 4115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4116 am__fastdepCC_TRUE= 4117 am__fastdepCC_FALSE='#' 4118else 4119 am__fastdepCC_TRUE='#' 4120 am__fastdepCC_FALSE= 4121fi 4122 4123 4124ac_ext=go 4125ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5' 4126ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4127ac_compile_gnu=yes 4128if test -n "$ac_tool_prefix"; then 4129 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. 4130set dummy ${ac_tool_prefix}gccgo; ac_word=$2 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4132$as_echo_n "checking for $ac_word... " >&6; } 4133if test "${ac_cv_prog_GOC+set}" = set; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 if test -n "$GOC"; then 4137 ac_cv_prog_GOC="$GOC" # Let the user override the test. 4138else 4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4140for as_dir in $PATH 4141do 4142 IFS=$as_save_IFS 4143 test -z "$as_dir" && as_dir=. 4144 for ac_exec_ext in '' $ac_executable_extensions; do 4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4146 ac_cv_prog_GOC="${ac_tool_prefix}gccgo" 4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4148 break 2 4149 fi 4150done 4151 done 4152IFS=$as_save_IFS 4153 4154fi 4155fi 4156GOC=$ac_cv_prog_GOC 4157if test -n "$GOC"; then 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 4159$as_echo "$GOC" >&6; } 4160else 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4162$as_echo "no" >&6; } 4163fi 4164 4165 4166fi 4167if test -z "$ac_cv_prog_GOC"; then 4168 ac_ct_GOC=$GOC 4169 # Extract the first word of "gccgo", so it can be a program name with args. 4170set dummy gccgo; ac_word=$2 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4172$as_echo_n "checking for $ac_word... " >&6; } 4173if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then : 4174 $as_echo_n "(cached) " >&6 4175else 4176 if test -n "$ac_ct_GOC"; then 4177 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test. 4178else 4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4180for as_dir in $PATH 4181do 4182 IFS=$as_save_IFS 4183 test -z "$as_dir" && as_dir=. 4184 for ac_exec_ext in '' $ac_executable_extensions; do 4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4186 ac_cv_prog_ac_ct_GOC="gccgo" 4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4188 break 2 4189 fi 4190done 4191 done 4192IFS=$as_save_IFS 4193 4194fi 4195fi 4196ac_ct_GOC=$ac_cv_prog_ac_ct_GOC 4197if test -n "$ac_ct_GOC"; then 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5 4199$as_echo "$ac_ct_GOC" >&6; } 4200else 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4202$as_echo "no" >&6; } 4203fi 4204 4205 if test "x$ac_ct_GOC" = x; then 4206 GOC="" 4207 else 4208 case $cross_compiling:$ac_tool_warned in 4209yes:) 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4212ac_tool_warned=yes ;; 4213esac 4214 GOC=$ac_ct_GOC 4215 fi 4216else 4217 GOC="$ac_cv_prog_GOC" 4218fi 4219 4220if test -z "$GOC"; then 4221 if test -n "$ac_tool_prefix"; then 4222 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. 4223set dummy ${ac_tool_prefix}gccgo; ac_word=$2 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4225$as_echo_n "checking for $ac_word... " >&6; } 4226if test "${ac_cv_prog_GOC+set}" = set; then : 4227 $as_echo_n "(cached) " >&6 4228else 4229 if test -n "$GOC"; then 4230 ac_cv_prog_GOC="$GOC" # Let the user override the test. 4231else 4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4233for as_dir in $PATH 4234do 4235 IFS=$as_save_IFS 4236 test -z "$as_dir" && as_dir=. 4237 for ac_exec_ext in '' $ac_executable_extensions; do 4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4239 ac_cv_prog_GOC="$ac_tool_prefix}gccgo" 4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4241 break 2 4242 fi 4243done 4244 done 4245IFS=$as_save_IFS 4246 4247fi 4248fi 4249GOC=$ac_cv_prog_GOC 4250if test -n "$GOC"; then 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 4252$as_echo "$GOC" >&6; } 4253else 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4255$as_echo "no" >&6; } 4256fi 4257 4258 4259 fi 4260fi 4261if test -z "$GOC"; then 4262 # Extract the first word of "gccgo", so it can be a program name with args. 4263set dummy gccgo; ac_word=$2 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4265$as_echo_n "checking for $ac_word... " >&6; } 4266if test "${ac_cv_prog_GOC+set}" = set; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 if test -n "$GOC"; then 4270 ac_cv_prog_GOC="$GOC" # Let the user override the test. 4271else 4272 ac_prog_rejected=no 4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274for as_dir in $PATH 4275do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_exec_ext in '' $ac_executable_extensions; do 4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4280 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then 4281 ac_prog_rejected=yes 4282 continue 4283 fi 4284 ac_cv_prog_GOC="gccgo" 4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4286 break 2 4287 fi 4288done 4289 done 4290IFS=$as_save_IFS 4291 4292if test $ac_prog_rejected = yes; then 4293 # We found a bogon in the path, so make sure we never use it. 4294 set dummy $ac_cv_prog_GOC 4295 shift 4296 if test $# != 0; then 4297 # We chose a different compiler from the bogus one. 4298 # However, it has the same basename, so the bogon will be chosen 4299 # first if we set GOC to just the basename; use the full file name. 4300 shift 4301 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@" 4302 fi 4303fi 4304fi 4305fi 4306GOC=$ac_cv_prog_GOC 4307if test -n "$GOC"; then 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 4309$as_echo "$GOC" >&6; } 4310else 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4312$as_echo "no" >&6; } 4313fi 4314 4315 4316fi 4317 4318 4319# Provide some information about the compiler. 4320$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5 4321set X $ac_compile 4322ac_compiler=$2 4323{ { ac_try="$ac_compiler --version >&5" 4324case "(($ac_try" in 4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4326 *) ac_try_echo=$ac_try;; 4327esac 4328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4329$as_echo "$ac_try_echo"; } >&5 4330 (eval "$ac_compiler --version >&5") 2>conftest.err 4331 ac_status=$? 4332 if test -s conftest.err; then 4333 sed '10a\ 4334... rest of stderr output deleted ... 4335 10q' conftest.err >conftest.er1 4336 cat conftest.er1 >&5 4337 rm -f conftest.er1 conftest.err 4338 fi 4339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4340 test $ac_status = 0; } 4341GOCFLAGS="-g -O2" 4342ac_ext=c 4343ac_cpp='$CPP $CPPFLAGS' 4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4346ac_compiler_gnu=$ac_cv_c_compiler_gnu 4347 4348 4349 4350 4351 4352 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4354$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4355 # Check whether --enable-maintainer-mode was given. 4356if test "${enable_maintainer_mode+set}" = set; then : 4357 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4358else 4359 USE_MAINTAINER_MODE=no 4360fi 4361 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4363$as_echo "$USE_MAINTAINER_MODE" >&6; } 4364 if test $USE_MAINTAINER_MODE = yes; then 4365 MAINTAINER_MODE_TRUE= 4366 MAINTAINER_MODE_FALSE='#' 4367else 4368 MAINTAINER_MODE_TRUE='#' 4369 MAINTAINER_MODE_FALSE= 4370fi 4371 4372 MAINT=$MAINTAINER_MODE_TRUE 4373 4374 4375 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4377$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4378if test "${ac_cv_path_SED+set}" = set; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4382 for ac_i in 1 2 3 4 5 6 7; do 4383 ac_script="$ac_script$as_nl$ac_script" 4384 done 4385 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4386 { ac_script=; unset ac_script;} 4387 if test -z "$SED"; then 4388 ac_path_SED_found=false 4389 # Loop through the user's path and test for each of PROGNAME-LIST 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4391for as_dir in $PATH 4392do 4393 IFS=$as_save_IFS 4394 test -z "$as_dir" && as_dir=. 4395 for ac_prog in sed gsed; do 4396 for ac_exec_ext in '' $ac_executable_extensions; do 4397 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4398 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4399# Check for GNU ac_path_SED and select it if it is found. 4400 # Check for GNU $ac_path_SED 4401case `"$ac_path_SED" --version 2>&1` in 4402*GNU*) 4403 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4404*) 4405 ac_count=0 4406 $as_echo_n 0123456789 >"conftest.in" 4407 while : 4408 do 4409 cat "conftest.in" "conftest.in" >"conftest.tmp" 4410 mv "conftest.tmp" "conftest.in" 4411 cp "conftest.in" "conftest.nl" 4412 $as_echo '' >> "conftest.nl" 4413 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4415 as_fn_arith $ac_count + 1 && ac_count=$as_val 4416 if test $ac_count -gt ${ac_path_SED_max-0}; then 4417 # Best one so far, save it but keep looking for a better one 4418 ac_cv_path_SED="$ac_path_SED" 4419 ac_path_SED_max=$ac_count 4420 fi 4421 # 10*(2^10) chars as input seems more than enough 4422 test $ac_count -gt 10 && break 4423 done 4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4425esac 4426 4427 $ac_path_SED_found && break 3 4428 done 4429 done 4430 done 4431IFS=$as_save_IFS 4432 if test -z "$ac_cv_path_SED"; then 4433 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4434 fi 4435else 4436 ac_cv_path_SED=$SED 4437fi 4438 4439fi 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4441$as_echo "$ac_cv_path_SED" >&6; } 4442 SED="$ac_cv_path_SED" 4443 rm -f conftest.sed 4444 4445test -z "$SED" && SED=sed 4446Xsed="$SED -e 1s/^X//" 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4459$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4460if test "${ac_cv_path_GREP+set}" = set; then : 4461 $as_echo_n "(cached) " >&6 4462else 4463 if test -z "$GREP"; then 4464 ac_path_GREP_found=false 4465 # Loop through the user's path and test for each of PROGNAME-LIST 4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4467for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4468do 4469 IFS=$as_save_IFS 4470 test -z "$as_dir" && as_dir=. 4471 for ac_prog in grep ggrep; do 4472 for ac_exec_ext in '' $ac_executable_extensions; do 4473 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4474 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4475# Check for GNU ac_path_GREP and select it if it is found. 4476 # Check for GNU $ac_path_GREP 4477case `"$ac_path_GREP" --version 2>&1` in 4478*GNU*) 4479 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4480*) 4481 ac_count=0 4482 $as_echo_n 0123456789 >"conftest.in" 4483 while : 4484 do 4485 cat "conftest.in" "conftest.in" >"conftest.tmp" 4486 mv "conftest.tmp" "conftest.in" 4487 cp "conftest.in" "conftest.nl" 4488 $as_echo 'GREP' >> "conftest.nl" 4489 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4491 as_fn_arith $ac_count + 1 && ac_count=$as_val 4492 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4493 # Best one so far, save it but keep looking for a better one 4494 ac_cv_path_GREP="$ac_path_GREP" 4495 ac_path_GREP_max=$ac_count 4496 fi 4497 # 10*(2^10) chars as input seems more than enough 4498 test $ac_count -gt 10 && break 4499 done 4500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4501esac 4502 4503 $ac_path_GREP_found && break 3 4504 done 4505 done 4506 done 4507IFS=$as_save_IFS 4508 if test -z "$ac_cv_path_GREP"; then 4509 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4510 fi 4511else 4512 ac_cv_path_GREP=$GREP 4513fi 4514 4515fi 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4517$as_echo "$ac_cv_path_GREP" >&6; } 4518 GREP="$ac_cv_path_GREP" 4519 4520 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4522$as_echo_n "checking for egrep... " >&6; } 4523if test "${ac_cv_path_EGREP+set}" = set; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4527 then ac_cv_path_EGREP="$GREP -E" 4528 else 4529 if test -z "$EGREP"; then 4530 ac_path_EGREP_found=false 4531 # Loop through the user's path and test for each of PROGNAME-LIST 4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4533for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4534do 4535 IFS=$as_save_IFS 4536 test -z "$as_dir" && as_dir=. 4537 for ac_prog in egrep; do 4538 for ac_exec_ext in '' $ac_executable_extensions; do 4539 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4540 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4541# Check for GNU ac_path_EGREP and select it if it is found. 4542 # Check for GNU $ac_path_EGREP 4543case `"$ac_path_EGREP" --version 2>&1` in 4544*GNU*) 4545 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4546*) 4547 ac_count=0 4548 $as_echo_n 0123456789 >"conftest.in" 4549 while : 4550 do 4551 cat "conftest.in" "conftest.in" >"conftest.tmp" 4552 mv "conftest.tmp" "conftest.in" 4553 cp "conftest.in" "conftest.nl" 4554 $as_echo 'EGREP' >> "conftest.nl" 4555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4557 as_fn_arith $ac_count + 1 && ac_count=$as_val 4558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4559 # Best one so far, save it but keep looking for a better one 4560 ac_cv_path_EGREP="$ac_path_EGREP" 4561 ac_path_EGREP_max=$ac_count 4562 fi 4563 # 10*(2^10) chars as input seems more than enough 4564 test $ac_count -gt 10 && break 4565 done 4566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4567esac 4568 4569 $ac_path_EGREP_found && break 3 4570 done 4571 done 4572 done 4573IFS=$as_save_IFS 4574 if test -z "$ac_cv_path_EGREP"; then 4575 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4576 fi 4577else 4578 ac_cv_path_EGREP=$EGREP 4579fi 4580 4581 fi 4582fi 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4584$as_echo "$ac_cv_path_EGREP" >&6; } 4585 EGREP="$ac_cv_path_EGREP" 4586 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4589$as_echo_n "checking for fgrep... " >&6; } 4590if test "${ac_cv_path_FGREP+set}" = set; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4594 then ac_cv_path_FGREP="$GREP -F" 4595 else 4596 if test -z "$FGREP"; then 4597 ac_path_FGREP_found=false 4598 # Loop through the user's path and test for each of PROGNAME-LIST 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_prog in fgrep; do 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4607 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4608# Check for GNU ac_path_FGREP and select it if it is found. 4609 # Check for GNU $ac_path_FGREP 4610case `"$ac_path_FGREP" --version 2>&1` in 4611*GNU*) 4612 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4613*) 4614 ac_count=0 4615 $as_echo_n 0123456789 >"conftest.in" 4616 while : 4617 do 4618 cat "conftest.in" "conftest.in" >"conftest.tmp" 4619 mv "conftest.tmp" "conftest.in" 4620 cp "conftest.in" "conftest.nl" 4621 $as_echo 'FGREP' >> "conftest.nl" 4622 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4624 as_fn_arith $ac_count + 1 && ac_count=$as_val 4625 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4626 # Best one so far, save it but keep looking for a better one 4627 ac_cv_path_FGREP="$ac_path_FGREP" 4628 ac_path_FGREP_max=$ac_count 4629 fi 4630 # 10*(2^10) chars as input seems more than enough 4631 test $ac_count -gt 10 && break 4632 done 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4634esac 4635 4636 $ac_path_FGREP_found && break 3 4637 done 4638 done 4639 done 4640IFS=$as_save_IFS 4641 if test -z "$ac_cv_path_FGREP"; then 4642 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4643 fi 4644else 4645 ac_cv_path_FGREP=$FGREP 4646fi 4647 4648 fi 4649fi 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4651$as_echo "$ac_cv_path_FGREP" >&6; } 4652 FGREP="$ac_cv_path_FGREP" 4653 4654 4655test -z "$GREP" && GREP=grep 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4674ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4675ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4676 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4678$as_echo_n "checking how to print strings... " >&6; } 4679# Test print first, because it will be a builtin if present. 4680if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4681 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4682 ECHO='print -r --' 4683elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4684 ECHO='printf %s\n' 4685else 4686 # Use this function as a fallback that always works. 4687 func_fallback_echo () 4688 { 4689 eval 'cat <<_LTECHO_EOF 4690$1 4691_LTECHO_EOF' 4692 } 4693 ECHO='func_fallback_echo' 4694fi 4695 4696# func_echo_all arg... 4697# Invoke $ECHO with all args, space-separated. 4698func_echo_all () 4699{ 4700 $ECHO "" 4701} 4702 4703case "$ECHO" in 4704 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4705$as_echo "printf" >&6; } ;; 4706 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4707$as_echo "print -r" >&6; } ;; 4708 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4709$as_echo "cat" >&6; } ;; 4710esac 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727# Check whether --with-gnu-ld was given. 4728if test "${with_gnu_ld+set}" = set; then : 4729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4730else 4731 with_gnu_ld=no 4732fi 4733 4734ac_prog=ld 4735if test "$GCC" = yes; then 4736 # Check if gcc -print-prog-name=ld gives a path. 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4738$as_echo_n "checking for ld used by $CC... " >&6; } 4739 case $host in 4740 *-*-mingw*) 4741 # gcc leaves a trailing carriage return which upsets mingw 4742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4743 *) 4744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4745 esac 4746 case $ac_prog in 4747 # Accept absolute paths. 4748 [\\/]* | ?:[\\/]*) 4749 re_direlt='/[^/][^/]*/\.\./' 4750 # Canonicalize the pathname of ld 4751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4754 done 4755 test -z "$LD" && LD="$ac_prog" 4756 ;; 4757 "") 4758 # If it fails, then pretend we aren't using GCC. 4759 ac_prog=ld 4760 ;; 4761 *) 4762 # If it is relative, then search for the first ld in PATH. 4763 with_gnu_ld=unknown 4764 ;; 4765 esac 4766elif test "$with_gnu_ld" = yes; then 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4768$as_echo_n "checking for GNU ld... " >&6; } 4769else 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4771$as_echo_n "checking for non-GNU ld... " >&6; } 4772fi 4773if test "${lt_cv_path_LD+set}" = set; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 if test -z "$LD"; then 4777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4778 for ac_dir in $PATH; do 4779 IFS="$lt_save_ifs" 4780 test -z "$ac_dir" && ac_dir=. 4781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4782 lt_cv_path_LD="$ac_dir/$ac_prog" 4783 # Check to see if the program is GNU ld. I'd rather use --version, 4784 # but apparently some variants of GNU ld only accept -v. 4785 # Break only if it was the GNU/non-GNU ld that we prefer. 4786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4787 *GNU* | *'with BFD'*) 4788 test "$with_gnu_ld" != no && break 4789 ;; 4790 *) 4791 test "$with_gnu_ld" != yes && break 4792 ;; 4793 esac 4794 fi 4795 done 4796 IFS="$lt_save_ifs" 4797else 4798 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4799fi 4800fi 4801 4802LD="$lt_cv_path_LD" 4803if test -n "$LD"; then 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4805$as_echo "$LD" >&6; } 4806else 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4808$as_echo "no" >&6; } 4809fi 4810test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4812$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4813if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4817case `$LD -v 2>&1 </dev/null` in 4818*GNU* | *'with BFD'*) 4819 lt_cv_prog_gnu_ld=yes 4820 ;; 4821*) 4822 lt_cv_prog_gnu_ld=no 4823 ;; 4824esac 4825fi 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4827$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4828with_gnu_ld=$lt_cv_prog_gnu_ld 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838if test -n "$ac_tool_prefix"; then 4839 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4840set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4842$as_echo_n "checking for $ac_word... " >&6; } 4843if test "${ac_cv_prog_RANLIB+set}" = set; then : 4844 $as_echo_n "(cached) " >&6 4845else 4846 if test -n "$RANLIB"; then 4847 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4848else 4849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4850for as_dir in $PATH 4851do 4852 IFS=$as_save_IFS 4853 test -z "$as_dir" && as_dir=. 4854 for ac_exec_ext in '' $ac_executable_extensions; do 4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4856 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4858 break 2 4859 fi 4860done 4861 done 4862IFS=$as_save_IFS 4863 4864fi 4865fi 4866RANLIB=$ac_cv_prog_RANLIB 4867if test -n "$RANLIB"; then 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4869$as_echo "$RANLIB" >&6; } 4870else 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4872$as_echo "no" >&6; } 4873fi 4874 4875 4876fi 4877if test -z "$ac_cv_prog_RANLIB"; then 4878 ac_ct_RANLIB=$RANLIB 4879 # Extract the first word of "ranlib", so it can be a program name with args. 4880set dummy ranlib; ac_word=$2 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4882$as_echo_n "checking for $ac_word... " >&6; } 4883if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4884 $as_echo_n "(cached) " >&6 4885else 4886 if test -n "$ac_ct_RANLIB"; then 4887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4888else 4889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4890for as_dir in $PATH 4891do 4892 IFS=$as_save_IFS 4893 test -z "$as_dir" && as_dir=. 4894 for ac_exec_ext in '' $ac_executable_extensions; do 4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4896 ac_cv_prog_ac_ct_RANLIB="ranlib" 4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4898 break 2 4899 fi 4900done 4901 done 4902IFS=$as_save_IFS 4903 4904fi 4905fi 4906ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4907if test -n "$ac_ct_RANLIB"; then 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4909$as_echo "$ac_ct_RANLIB" >&6; } 4910else 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4912$as_echo "no" >&6; } 4913fi 4914 4915 if test "x$ac_ct_RANLIB" = x; then 4916 RANLIB=":" 4917 else 4918 case $cross_compiling:$ac_tool_warned in 4919yes:) 4920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4922ac_tool_warned=yes ;; 4923esac 4924 RANLIB=$ac_ct_RANLIB 4925 fi 4926else 4927 RANLIB="$ac_cv_prog_RANLIB" 4928fi 4929 4930if test -n "$ac_tool_prefix"; then 4931 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args. 4932set dummy ${ac_tool_prefix}objcopy; ac_word=$2 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4934$as_echo_n "checking for $ac_word... " >&6; } 4935if test "${ac_cv_prog_OBJCOPY+set}" = set; then : 4936 $as_echo_n "(cached) " >&6 4937else 4938 if test -n "$OBJCOPY"; then 4939 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 4940else 4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4942for as_dir in $PATH 4943do 4944 IFS=$as_save_IFS 4945 test -z "$as_dir" && as_dir=. 4946 for ac_exec_ext in '' $ac_executable_extensions; do 4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4948 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy" 4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4950 break 2 4951 fi 4952done 4953 done 4954IFS=$as_save_IFS 4955 4956fi 4957fi 4958OBJCOPY=$ac_cv_prog_OBJCOPY 4959if test -n "$OBJCOPY"; then 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 4961$as_echo "$OBJCOPY" >&6; } 4962else 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4964$as_echo "no" >&6; } 4965fi 4966 4967 4968fi 4969if test -z "$ac_cv_prog_OBJCOPY"; then 4970 ac_ct_OBJCOPY=$OBJCOPY 4971 # Extract the first word of "objcopy", so it can be a program name with args. 4972set dummy objcopy; ac_word=$2 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4974$as_echo_n "checking for $ac_word... " >&6; } 4975if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then : 4976 $as_echo_n "(cached) " >&6 4977else 4978 if test -n "$ac_ct_OBJCOPY"; then 4979 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 4980else 4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4982for as_dir in $PATH 4983do 4984 IFS=$as_save_IFS 4985 test -z "$as_dir" && as_dir=. 4986 for ac_exec_ext in '' $ac_executable_extensions; do 4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4988 ac_cv_prog_ac_ct_OBJCOPY="objcopy" 4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4990 break 2 4991 fi 4992done 4993 done 4994IFS=$as_save_IFS 4995 4996fi 4997fi 4998ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 4999if test -n "$ac_ct_OBJCOPY"; then 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 5001$as_echo "$ac_ct_OBJCOPY" >&6; } 5002else 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5004$as_echo "no" >&6; } 5005fi 5006 5007 if test "x$ac_ct_OBJCOPY" = x; then 5008 OBJCOPY="missing-objcopy" 5009 else 5010 case $cross_compiling:$ac_tool_warned in 5011yes:) 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5014ac_tool_warned=yes ;; 5015esac 5016 OBJCOPY=$ac_ct_OBJCOPY 5017 fi 5018else 5019 OBJCOPY="$ac_cv_prog_OBJCOPY" 5020fi 5021 5022 5023enable_dlopen=yes 5024 5025 5026 5027case `pwd` in 5028 *\ * | *\ *) 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5030$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5031esac 5032 5033 5034 5035macro_version='2.2.7a' 5036macro_revision='1.3134' 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050ltmain="$ac_aux_dir/ltmain.sh" 5051 5052# Backslashify metacharacters that are still active within 5053# double-quoted strings. 5054sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5055 5056# Same as above, but do not quote variable references. 5057double_quote_subst='s/\(["`\\]\)/\\\1/g' 5058 5059# Sed substitution to delay expansion of an escaped shell variable in a 5060# double_quote_subst'ed string. 5061delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5062 5063# Sed substitution to delay expansion of an escaped single quote. 5064delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5065 5066# Sed substitution to avoid accidental globbing in evaled expressions 5067no_glob_subst='s/\*/\\\*/g' 5068 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5070$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5071if test "${lt_cv_path_NM+set}" = set; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 if test -n "$NM"; then 5075 # Let the user override the test. 5076 lt_cv_path_NM="$NM" 5077else 5078 lt_nm_to_check="${ac_tool_prefix}nm" 5079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5080 lt_nm_to_check="$lt_nm_to_check nm" 5081 fi 5082 for lt_tmp_nm in $lt_nm_to_check; do 5083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5085 IFS="$lt_save_ifs" 5086 test -z "$ac_dir" && ac_dir=. 5087 tmp_nm="$ac_dir/$lt_tmp_nm" 5088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5089 # Check to see if the nm accepts a BSD-compat flag. 5090 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5091 # nm: unknown option "B" ignored 5092 # Tru64's nm complains that /dev/null is an invalid object file 5093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5094 */dev/null* | *'Invalid file or object type'*) 5095 lt_cv_path_NM="$tmp_nm -B" 5096 break 5097 ;; 5098 *) 5099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5100 */dev/null*) 5101 lt_cv_path_NM="$tmp_nm -p" 5102 break 5103 ;; 5104 *) 5105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5106 continue # so that we can try to find one that supports BSD flags 5107 ;; 5108 esac 5109 ;; 5110 esac 5111 fi 5112 done 5113 IFS="$lt_save_ifs" 5114 done 5115 : ${lt_cv_path_NM=no} 5116fi 5117fi 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5119$as_echo "$lt_cv_path_NM" >&6; } 5120if test "$lt_cv_path_NM" != "no"; then 5121 NM="$lt_cv_path_NM" 5122else 5123 # Didn't find any BSD compatible name lister, look for dumpbin. 5124 if test -n "$DUMPBIN"; then : 5125 # Let the user override the test. 5126 else 5127 if test -n "$ac_tool_prefix"; then 5128 for ac_prog in dumpbin "link -dump" 5129 do 5130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5131set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5133$as_echo_n "checking for $ac_word... " >&6; } 5134if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 if test -n "$DUMPBIN"; then 5138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5139else 5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5141for as_dir in $PATH 5142do 5143 IFS=$as_save_IFS 5144 test -z "$as_dir" && as_dir=. 5145 for ac_exec_ext in '' $ac_executable_extensions; do 5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5149 break 2 5150 fi 5151done 5152 done 5153IFS=$as_save_IFS 5154 5155fi 5156fi 5157DUMPBIN=$ac_cv_prog_DUMPBIN 5158if test -n "$DUMPBIN"; then 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5160$as_echo "$DUMPBIN" >&6; } 5161else 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163$as_echo "no" >&6; } 5164fi 5165 5166 5167 test -n "$DUMPBIN" && break 5168 done 5169fi 5170if test -z "$DUMPBIN"; then 5171 ac_ct_DUMPBIN=$DUMPBIN 5172 for ac_prog in dumpbin "link -dump" 5173do 5174 # Extract the first word of "$ac_prog", so it can be a program name with args. 5175set dummy $ac_prog; ac_word=$2 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5177$as_echo_n "checking for $ac_word... " >&6; } 5178if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 if test -n "$ac_ct_DUMPBIN"; then 5182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5183else 5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5185for as_dir in $PATH 5186do 5187 IFS=$as_save_IFS 5188 test -z "$as_dir" && as_dir=. 5189 for ac_exec_ext in '' $ac_executable_extensions; do 5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5193 break 2 5194 fi 5195done 5196 done 5197IFS=$as_save_IFS 5198 5199fi 5200fi 5201ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5202if test -n "$ac_ct_DUMPBIN"; then 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5204$as_echo "$ac_ct_DUMPBIN" >&6; } 5205else 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5207$as_echo "no" >&6; } 5208fi 5209 5210 5211 test -n "$ac_ct_DUMPBIN" && break 5212done 5213 5214 if test "x$ac_ct_DUMPBIN" = x; then 5215 DUMPBIN=":" 5216 else 5217 case $cross_compiling:$ac_tool_warned in 5218yes:) 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5221ac_tool_warned=yes ;; 5222esac 5223 DUMPBIN=$ac_ct_DUMPBIN 5224 fi 5225fi 5226 5227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5228 *COFF*) 5229 DUMPBIN="$DUMPBIN -symbols" 5230 ;; 5231 *) 5232 DUMPBIN=: 5233 ;; 5234 esac 5235 fi 5236 5237 if test "$DUMPBIN" != ":"; then 5238 NM="$DUMPBIN" 5239 fi 5240fi 5241test -z "$NM" && NM=nm 5242 5243 5244 5245 5246 5247 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5249$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5250if test "${lt_cv_nm_interface+set}" = set; then : 5251 $as_echo_n "(cached) " >&6 5252else 5253 lt_cv_nm_interface="BSD nm" 5254 echo "int some_variable = 0;" > conftest.$ac_ext 5255 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5256 (eval "$ac_compile" 2>conftest.err) 5257 cat conftest.err >&5 5258 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5260 cat conftest.err >&5 5261 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5262 cat conftest.out >&5 5263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5264 lt_cv_nm_interface="MS dumpbin" 5265 fi 5266 rm -f conftest* 5267fi 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5269$as_echo "$lt_cv_nm_interface" >&6; } 5270 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5272$as_echo_n "checking whether ln -s works... " >&6; } 5273LN_S=$as_ln_s 5274if test "$LN_S" = "ln -s"; then 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5276$as_echo "yes" >&6; } 5277else 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5279$as_echo "no, using $LN_S" >&6; } 5280fi 5281 5282# find the maximum length of command line arguments 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5284$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5285if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 i=0 5289 teststring="ABCD" 5290 5291 case $build_os in 5292 msdosdjgpp*) 5293 # On DJGPP, this test can blow up pretty badly due to problems in libc 5294 # (any single argument exceeding 2000 bytes causes a buffer overrun 5295 # during glob expansion). Even if it were fixed, the result of this 5296 # check would be larger than it should be. 5297 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5298 ;; 5299 5300 gnu*) 5301 # Under GNU Hurd, this test is not required because there is 5302 # no limit to the length of command line arguments. 5303 # Libtool will interpret -1 as no limit whatsoever 5304 lt_cv_sys_max_cmd_len=-1; 5305 ;; 5306 5307 cygwin* | mingw* | cegcc*) 5308 # On Win9x/ME, this test blows up -- it succeeds, but takes 5309 # about 5 minutes as the teststring grows exponentially. 5310 # Worse, since 9x/ME are not pre-emptively multitasking, 5311 # you end up with a "frozen" computer, even though with patience 5312 # the test eventually succeeds (with a max line length of 256k). 5313 # Instead, let's just punt: use the minimum linelength reported by 5314 # all of the supported platforms: 8192 (on NT/2K/XP). 5315 lt_cv_sys_max_cmd_len=8192; 5316 ;; 5317 5318 mint*) 5319 # On MiNT this can take a long time and run out of memory. 5320 lt_cv_sys_max_cmd_len=8192; 5321 ;; 5322 5323 amigaos*) 5324 # On AmigaOS with pdksh, this test takes hours, literally. 5325 # So we just punt and use a minimum line length of 8192. 5326 lt_cv_sys_max_cmd_len=8192; 5327 ;; 5328 5329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5330 # This has been around since 386BSD, at least. Likely further. 5331 if test -x /sbin/sysctl; then 5332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5333 elif test -x /usr/sbin/sysctl; then 5334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5335 else 5336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5337 fi 5338 # And add a safety zone 5339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5341 ;; 5342 5343 interix*) 5344 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5345 lt_cv_sys_max_cmd_len=196608 5346 ;; 5347 5348 osf*) 5349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5351 # nice to cause kernel panics so lets avoid the loop below. 5352 # First set a reasonable default. 5353 lt_cv_sys_max_cmd_len=16384 5354 # 5355 if test -x /sbin/sysconfig; then 5356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5357 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5358 esac 5359 fi 5360 ;; 5361 sco3.2v5*) 5362 lt_cv_sys_max_cmd_len=102400 5363 ;; 5364 sysv5* | sco5v6* | sysv4.2uw2*) 5365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5366 if test -n "$kargmax"; then 5367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5368 else 5369 lt_cv_sys_max_cmd_len=32768 5370 fi 5371 ;; 5372 *) 5373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5374 if test -n "$lt_cv_sys_max_cmd_len"; then 5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5377 else 5378 # Make teststring a little bigger before we do anything with it. 5379 # a 1K string should be a reasonable start. 5380 for i in 1 2 3 4 5 6 7 8 ; do 5381 teststring=$teststring$teststring 5382 done 5383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5384 # If test is not a shell built-in, we'll probably end up computing a 5385 # maximum length that is only half of the actual maximum length, but 5386 # we can't tell. 5387 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5388 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5389 test $i != 17 # 1/2 MB should be enough 5390 do 5391 i=`expr $i + 1` 5392 teststring=$teststring$teststring 5393 done 5394 # Only check the string length outside the loop. 5395 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5396 teststring= 5397 # Add a significant safety factor because C++ compilers can tack on 5398 # massive amounts of additional arguments before passing them to the 5399 # linker. It appears as though 1/2 is a usable value. 5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5401 fi 5402 ;; 5403 esac 5404 5405fi 5406 5407if test -n $lt_cv_sys_max_cmd_len ; then 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5409$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5410else 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5412$as_echo "none" >&6; } 5413fi 5414max_cmd_len=$lt_cv_sys_max_cmd_len 5415 5416 5417 5418 5419 5420 5421: ${CP="cp -f"} 5422: ${MV="mv -f"} 5423: ${RM="rm -f"} 5424 5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5426$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5427# Try some XSI features 5428xsi_shell=no 5429( _lt_dummy="a/b/c" 5430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5431 = c,a/b,, \ 5432 && eval 'test $(( 1 + 1 )) -eq 2 \ 5433 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5434 && xsi_shell=yes 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5436$as_echo "$xsi_shell" >&6; } 5437 5438 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5440$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5441lt_shell_append=no 5442( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5443 >/dev/null 2>&1 \ 5444 && lt_shell_append=yes 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5446$as_echo "$lt_shell_append" >&6; } 5447 5448 5449if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5450 lt_unset=unset 5451else 5452 lt_unset=false 5453fi 5454 5455 5456 5457 5458 5459# test EBCDIC or ASCII 5460case `echo X|tr X '\101'` in 5461 A) # ASCII based system 5462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5463 lt_SP2NL='tr \040 \012' 5464 lt_NL2SP='tr \015\012 \040\040' 5465 ;; 5466 *) # EBCDIC based system 5467 lt_SP2NL='tr \100 \n' 5468 lt_NL2SP='tr \r\n \100\100' 5469 ;; 5470esac 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5481$as_echo_n "checking for $LD option to reload object files... " >&6; } 5482if test "${lt_cv_ld_reload_flag+set}" = set; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 lt_cv_ld_reload_flag='-r' 5486fi 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5488$as_echo "$lt_cv_ld_reload_flag" >&6; } 5489reload_flag=$lt_cv_ld_reload_flag 5490case $reload_flag in 5491"" | " "*) ;; 5492*) reload_flag=" $reload_flag" ;; 5493esac 5494reload_cmds='$LD$reload_flag -o $output$reload_objs' 5495case $host_os in 5496 darwin*) 5497 if test "$GCC" = yes; then 5498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5499 else 5500 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5501 fi 5502 ;; 5503esac 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513if test -n "$ac_tool_prefix"; then 5514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5515set dummy ${ac_tool_prefix}objdump; ac_word=$2 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5517$as_echo_n "checking for $ac_word... " >&6; } 5518if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5519 $as_echo_n "(cached) " >&6 5520else 5521 if test -n "$OBJDUMP"; then 5522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5523else 5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5525for as_dir in $PATH 5526do 5527 IFS=$as_save_IFS 5528 test -z "$as_dir" && as_dir=. 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5533 break 2 5534 fi 5535done 5536 done 5537IFS=$as_save_IFS 5538 5539fi 5540fi 5541OBJDUMP=$ac_cv_prog_OBJDUMP 5542if test -n "$OBJDUMP"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5544$as_echo "$OBJDUMP" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5547$as_echo "no" >&6; } 5548fi 5549 5550 5551fi 5552if test -z "$ac_cv_prog_OBJDUMP"; then 5553 ac_ct_OBJDUMP=$OBJDUMP 5554 # Extract the first word of "objdump", so it can be a program name with args. 5555set dummy objdump; ac_word=$2 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5557$as_echo_n "checking for $ac_word... " >&6; } 5558if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 if test -n "$ac_ct_OBJDUMP"; then 5562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5563else 5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_exec_ext in '' $ac_executable_extensions; do 5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5571 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5573 break 2 5574 fi 5575done 5576 done 5577IFS=$as_save_IFS 5578 5579fi 5580fi 5581ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5582if test -n "$ac_ct_OBJDUMP"; then 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5584$as_echo "$ac_ct_OBJDUMP" >&6; } 5585else 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5587$as_echo "no" >&6; } 5588fi 5589 5590 if test "x$ac_ct_OBJDUMP" = x; then 5591 OBJDUMP="false" 5592 else 5593 case $cross_compiling:$ac_tool_warned in 5594yes:) 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5597ac_tool_warned=yes ;; 5598esac 5599 OBJDUMP=$ac_ct_OBJDUMP 5600 fi 5601else 5602 OBJDUMP="$ac_cv_prog_OBJDUMP" 5603fi 5604 5605test -z "$OBJDUMP" && OBJDUMP=objdump 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5616$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5617if test "${lt_cv_deplibs_check_method+set}" = set; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 lt_cv_file_magic_cmd='$MAGIC_CMD' 5621lt_cv_file_magic_test_file= 5622lt_cv_deplibs_check_method='unknown' 5623# Need to set the preceding variable on all platforms that support 5624# interlibrary dependencies. 5625# 'none' -- dependencies not supported. 5626# `unknown' -- same as none, but documents that we really don't know. 5627# 'pass_all' -- all dependencies passed with no checks. 5628# 'test_compile' -- check by making test program. 5629# 'file_magic [[regex]]' -- check by looking for files in library path 5630# which responds to the $file_magic_cmd with a given extended regex. 5631# If you have `file' or equivalent on your system and you're not sure 5632# whether `pass_all' will *always* work, you probably want this one. 5633 5634case $host_os in 5635aix[4-9]*) 5636 lt_cv_deplibs_check_method=pass_all 5637 ;; 5638 5639beos*) 5640 lt_cv_deplibs_check_method=pass_all 5641 ;; 5642 5643bsdi[45]*) 5644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5645 lt_cv_file_magic_cmd='/usr/bin/file -L' 5646 lt_cv_file_magic_test_file=/shlib/libc.so 5647 ;; 5648 5649cygwin*) 5650 # func_win32_libid is a shell function defined in ltmain.sh 5651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5652 lt_cv_file_magic_cmd='func_win32_libid' 5653 ;; 5654 5655mingw* | pw32*) 5656 # Base MSYS/MinGW do not provide the 'file' command needed by 5657 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5658 # unless we find 'file', for example because we are cross-compiling. 5659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5662 lt_cv_file_magic_cmd='func_win32_libid' 5663 else 5664 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5665 lt_cv_file_magic_cmd='$OBJDUMP -f' 5666 fi 5667 ;; 5668 5669cegcc*) 5670 # use the weaker test based on 'objdump'. See mingw*. 5671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5672 lt_cv_file_magic_cmd='$OBJDUMP -f' 5673 ;; 5674 5675darwin* | rhapsody*) 5676 lt_cv_deplibs_check_method=pass_all 5677 ;; 5678 5679freebsd* | dragonfly*) 5680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5681 case $host_cpu in 5682 i*86 ) 5683 # Not sure whether the presence of OpenBSD here was a mistake. 5684 # Let's accept both of them until this is cleared up. 5685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5686 lt_cv_file_magic_cmd=/usr/bin/file 5687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5688 ;; 5689 esac 5690 else 5691 lt_cv_deplibs_check_method=pass_all 5692 fi 5693 ;; 5694 5695gnu*) 5696 lt_cv_deplibs_check_method=pass_all 5697 ;; 5698 5699haiku*) 5700 lt_cv_deplibs_check_method=pass_all 5701 ;; 5702 5703hpux10.20* | hpux11*) 5704 lt_cv_file_magic_cmd=/usr/bin/file 5705 case $host_cpu in 5706 ia64*) 5707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5709 ;; 5710 hppa*64*) 5711 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]' 5712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5713 ;; 5714 *) 5715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5716 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5717 ;; 5718 esac 5719 ;; 5720 5721interix[3-9]*) 5722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5724 ;; 5725 5726irix5* | irix6* | nonstopux*) 5727 case $LD in 5728 *-32|*"-32 ") libmagic=32-bit;; 5729 *-n32|*"-n32 ") libmagic=N32;; 5730 *-64|*"-64 ") libmagic=64-bit;; 5731 *) libmagic=never-match;; 5732 esac 5733 lt_cv_deplibs_check_method=pass_all 5734 ;; 5735 5736# This must be Linux ELF. 5737linux* | k*bsd*-gnu | kopensolaris*-gnu) 5738 lt_cv_deplibs_check_method=pass_all 5739 ;; 5740 5741netbsd*) 5742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5744 else 5745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5746 fi 5747 ;; 5748 5749newos6*) 5750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5751 lt_cv_file_magic_cmd=/usr/bin/file 5752 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5753 ;; 5754 5755*nto* | *qnx*) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758 5759openbsd*) 5760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5762 else 5763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5764 fi 5765 ;; 5766 5767osf3* | osf4* | osf5*) 5768 lt_cv_deplibs_check_method=pass_all 5769 ;; 5770 5771rdos*) 5772 lt_cv_deplibs_check_method=pass_all 5773 ;; 5774 5775solaris*) 5776 lt_cv_deplibs_check_method=pass_all 5777 ;; 5778 5779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5780 lt_cv_deplibs_check_method=pass_all 5781 ;; 5782 5783sysv4 | sysv4.3*) 5784 case $host_vendor in 5785 motorola) 5786 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]' 5787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5788 ;; 5789 ncr) 5790 lt_cv_deplibs_check_method=pass_all 5791 ;; 5792 sequent) 5793 lt_cv_file_magic_cmd='/bin/file' 5794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5795 ;; 5796 sni) 5797 lt_cv_file_magic_cmd='/bin/file' 5798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5799 lt_cv_file_magic_test_file=/lib/libc.so 5800 ;; 5801 siemens) 5802 lt_cv_deplibs_check_method=pass_all 5803 ;; 5804 pc) 5805 lt_cv_deplibs_check_method=pass_all 5806 ;; 5807 esac 5808 ;; 5809 5810tpf*) 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813esac 5814 5815fi 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5817$as_echo "$lt_cv_deplibs_check_method" >&6; } 5818file_magic_cmd=$lt_cv_file_magic_cmd 5819deplibs_check_method=$lt_cv_deplibs_check_method 5820test -z "$deplibs_check_method" && deplibs_check_method=unknown 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833if test -n "$ac_tool_prefix"; then 5834 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5835set dummy ${ac_tool_prefix}ar; ac_word=$2 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5837$as_echo_n "checking for $ac_word... " >&6; } 5838if test "${ac_cv_prog_AR+set}" = set; then : 5839 $as_echo_n "(cached) " >&6 5840else 5841 if test -n "$AR"; then 5842 ac_cv_prog_AR="$AR" # Let the user override the test. 5843else 5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5845for as_dir in $PATH 5846do 5847 IFS=$as_save_IFS 5848 test -z "$as_dir" && as_dir=. 5849 for ac_exec_ext in '' $ac_executable_extensions; do 5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5851 ac_cv_prog_AR="${ac_tool_prefix}ar" 5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5853 break 2 5854 fi 5855done 5856 done 5857IFS=$as_save_IFS 5858 5859fi 5860fi 5861AR=$ac_cv_prog_AR 5862if test -n "$AR"; then 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5864$as_echo "$AR" >&6; } 5865else 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5867$as_echo "no" >&6; } 5868fi 5869 5870 5871fi 5872if test -z "$ac_cv_prog_AR"; then 5873 ac_ct_AR=$AR 5874 # Extract the first word of "ar", so it can be a program name with args. 5875set dummy ar; ac_word=$2 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5877$as_echo_n "checking for $ac_word... " >&6; } 5878if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5879 $as_echo_n "(cached) " >&6 5880else 5881 if test -n "$ac_ct_AR"; then 5882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5883else 5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5885for as_dir in $PATH 5886do 5887 IFS=$as_save_IFS 5888 test -z "$as_dir" && as_dir=. 5889 for ac_exec_ext in '' $ac_executable_extensions; do 5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5891 ac_cv_prog_ac_ct_AR="ar" 5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5893 break 2 5894 fi 5895done 5896 done 5897IFS=$as_save_IFS 5898 5899fi 5900fi 5901ac_ct_AR=$ac_cv_prog_ac_ct_AR 5902if test -n "$ac_ct_AR"; then 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5904$as_echo "$ac_ct_AR" >&6; } 5905else 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5907$as_echo "no" >&6; } 5908fi 5909 5910 if test "x$ac_ct_AR" = x; then 5911 AR="false" 5912 else 5913 case $cross_compiling:$ac_tool_warned in 5914yes:) 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5917ac_tool_warned=yes ;; 5918esac 5919 AR=$ac_ct_AR 5920 fi 5921else 5922 AR="$ac_cv_prog_AR" 5923fi 5924 5925test -z "$AR" && AR=ar 5926test -z "$AR_FLAGS" && AR_FLAGS=cru 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938if test -n "$ac_tool_prefix"; then 5939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5940set dummy ${ac_tool_prefix}strip; ac_word=$2 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5942$as_echo_n "checking for $ac_word... " >&6; } 5943if test "${ac_cv_prog_STRIP+set}" = set; then : 5944 $as_echo_n "(cached) " >&6 5945else 5946 if test -n "$STRIP"; then 5947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5948else 5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5950for as_dir in $PATH 5951do 5952 IFS=$as_save_IFS 5953 test -z "$as_dir" && as_dir=. 5954 for ac_exec_ext in '' $ac_executable_extensions; do 5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5956 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5958 break 2 5959 fi 5960done 5961 done 5962IFS=$as_save_IFS 5963 5964fi 5965fi 5966STRIP=$ac_cv_prog_STRIP 5967if test -n "$STRIP"; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5969$as_echo "$STRIP" >&6; } 5970else 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5972$as_echo "no" >&6; } 5973fi 5974 5975 5976fi 5977if test -z "$ac_cv_prog_STRIP"; then 5978 ac_ct_STRIP=$STRIP 5979 # Extract the first word of "strip", so it can be a program name with args. 5980set dummy strip; ac_word=$2 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5982$as_echo_n "checking for $ac_word... " >&6; } 5983if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5984 $as_echo_n "(cached) " >&6 5985else 5986 if test -n "$ac_ct_STRIP"; then 5987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5988else 5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5990for as_dir in $PATH 5991do 5992 IFS=$as_save_IFS 5993 test -z "$as_dir" && as_dir=. 5994 for ac_exec_ext in '' $ac_executable_extensions; do 5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5996 ac_cv_prog_ac_ct_STRIP="strip" 5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5998 break 2 5999 fi 6000done 6001 done 6002IFS=$as_save_IFS 6003 6004fi 6005fi 6006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6007if test -n "$ac_ct_STRIP"; then 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6009$as_echo "$ac_ct_STRIP" >&6; } 6010else 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6012$as_echo "no" >&6; } 6013fi 6014 6015 if test "x$ac_ct_STRIP" = x; then 6016 STRIP=":" 6017 else 6018 case $cross_compiling:$ac_tool_warned in 6019yes:) 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6022ac_tool_warned=yes ;; 6023esac 6024 STRIP=$ac_ct_STRIP 6025 fi 6026else 6027 STRIP="$ac_cv_prog_STRIP" 6028fi 6029 6030test -z "$STRIP" && STRIP=: 6031 6032 6033 6034 6035 6036 6037if test -n "$ac_tool_prefix"; then 6038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6039set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6041$as_echo_n "checking for $ac_word... " >&6; } 6042if test "${ac_cv_prog_RANLIB+set}" = set; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 if test -n "$RANLIB"; then 6046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6047else 6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6049for as_dir in $PATH 6050do 6051 IFS=$as_save_IFS 6052 test -z "$as_dir" && as_dir=. 6053 for ac_exec_ext in '' $ac_executable_extensions; do 6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6057 break 2 6058 fi 6059done 6060 done 6061IFS=$as_save_IFS 6062 6063fi 6064fi 6065RANLIB=$ac_cv_prog_RANLIB 6066if test -n "$RANLIB"; then 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6068$as_echo "$RANLIB" >&6; } 6069else 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6071$as_echo "no" >&6; } 6072fi 6073 6074 6075fi 6076if test -z "$ac_cv_prog_RANLIB"; then 6077 ac_ct_RANLIB=$RANLIB 6078 # Extract the first word of "ranlib", so it can be a program name with args. 6079set dummy ranlib; ac_word=$2 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6081$as_echo_n "checking for $ac_word... " >&6; } 6082if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 if test -n "$ac_ct_RANLIB"; then 6086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6087else 6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6089for as_dir in $PATH 6090do 6091 IFS=$as_save_IFS 6092 test -z "$as_dir" && as_dir=. 6093 for ac_exec_ext in '' $ac_executable_extensions; do 6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6095 ac_cv_prog_ac_ct_RANLIB="ranlib" 6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6097 break 2 6098 fi 6099done 6100 done 6101IFS=$as_save_IFS 6102 6103fi 6104fi 6105ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6106if test -n "$ac_ct_RANLIB"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6108$as_echo "$ac_ct_RANLIB" >&6; } 6109else 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6111$as_echo "no" >&6; } 6112fi 6113 6114 if test "x$ac_ct_RANLIB" = x; then 6115 RANLIB=":" 6116 else 6117 case $cross_compiling:$ac_tool_warned in 6118yes:) 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6121ac_tool_warned=yes ;; 6122esac 6123 RANLIB=$ac_ct_RANLIB 6124 fi 6125else 6126 RANLIB="$ac_cv_prog_RANLIB" 6127fi 6128 6129test -z "$RANLIB" && RANLIB=: 6130 6131 6132 6133 6134 6135 6136# Determine commands to create old-style static archives. 6137old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6138old_postinstall_cmds='chmod 644 $oldlib' 6139old_postuninstall_cmds= 6140 6141if test -n "$RANLIB"; then 6142 case $host_os in 6143 openbsd*) 6144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6145 ;; 6146 *) 6147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6148 ;; 6149 esac 6150 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6151fi 6152 6153case $host_os in 6154 darwin*) 6155 lock_old_archive_extraction=yes ;; 6156 *) 6157 lock_old_archive_extraction=no ;; 6158esac 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198# If no C compiler was specified, use CC. 6199LTCC=${LTCC-"$CC"} 6200 6201# If no C compiler flags were specified, use CFLAGS. 6202LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6203 6204# Allow CC to be a program name with arguments. 6205compiler=$CC 6206 6207 6208# Check for command to grab the raw symbol name followed by C symbol from nm. 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6210$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6211if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6212 $as_echo_n "(cached) " >&6 6213else 6214 6215# These are sane defaults that work on at least a few old systems. 6216# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6217 6218# Character class describing NM global symbol codes. 6219symcode='[BCDEGRST]' 6220 6221# Regexp to match symbols that can be accessed directly from C. 6222sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6223 6224# Define system-specific variables. 6225case $host_os in 6226aix*) 6227 symcode='[BCDT]' 6228 ;; 6229cygwin* | mingw* | pw32* | cegcc*) 6230 symcode='[ABCDGISTW]' 6231 ;; 6232hpux*) 6233 if test "$host_cpu" = ia64; then 6234 symcode='[ABCDEGRST]' 6235 fi 6236 ;; 6237irix* | nonstopux*) 6238 symcode='[BCDEGRST]' 6239 ;; 6240osf*) 6241 symcode='[BCDEGQRST]' 6242 ;; 6243solaris*) 6244 symcode='[BDRT]' 6245 ;; 6246sco3.2v5*) 6247 symcode='[DT]' 6248 ;; 6249sysv4.2uw2*) 6250 symcode='[DT]' 6251 ;; 6252sysv5* | sco5v6* | unixware* | OpenUNIX*) 6253 symcode='[ABDT]' 6254 ;; 6255sysv4) 6256 symcode='[DFNSTU]' 6257 ;; 6258esac 6259 6260# If we're using GNU nm, then use its standard symbol codes. 6261case `$NM -V 2>&1` in 6262*GNU* | *'with BFD'*) 6263 symcode='[ABCDGIRSTW]' ;; 6264esac 6265 6266# Transform an extracted symbol line into a proper C declaration. 6267# Some systems (esp. on ia64) link data and code symbols differently, 6268# so use this general approach. 6269lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6270 6271# Transform an extracted symbol line into symbol name and symbol address 6272lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6273lt_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'" 6274 6275# Handle CRLF in mingw tool chain 6276opt_cr= 6277case $build_os in 6278mingw*) 6279 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6280 ;; 6281esac 6282 6283# Try without a prefix underscore, then with it. 6284for ac_symprfx in "" "_"; do 6285 6286 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6287 symxfrm="\\1 $ac_symprfx\\2 \\2" 6288 6289 # Write the raw and C identifiers. 6290 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6291 # Fake it for dumpbin and say T for any non-static function 6292 # and D for any global variable. 6293 # Also find C++ and __fastcall symbols from MSVC++, 6294 # which start with @ or ?. 6295 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6296" {last_section=section; section=\$ 3};"\ 6297" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6298" \$ 0!~/External *\|/{next};"\ 6299" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6300" {if(hide[section]) next};"\ 6301" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6302" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6303" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6304" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6305" ' prfx=^$ac_symprfx" 6306 else 6307 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6308 fi 6309 6310 # Check to see that the pipe works correctly. 6311 pipe_works=no 6312 6313 rm -f conftest* 6314 cat > conftest.$ac_ext <<_LT_EOF 6315#ifdef __cplusplus 6316extern "C" { 6317#endif 6318char nm_test_var; 6319void nm_test_func(void); 6320void nm_test_func(void){} 6321#ifdef __cplusplus 6322} 6323#endif 6324int main(){nm_test_var='a';nm_test_func();return(0);} 6325_LT_EOF 6326 6327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6328 (eval $ac_compile) 2>&5 6329 ac_status=$? 6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6331 test $ac_status = 0; }; then 6332 # Now try to grab the symbols. 6333 nlist=conftest.nm 6334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6335 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6336 ac_status=$? 6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6338 test $ac_status = 0; } && test -s "$nlist"; then 6339 # Try sorting and uniquifying the output. 6340 if sort "$nlist" | uniq > "$nlist"T; then 6341 mv -f "$nlist"T "$nlist" 6342 else 6343 rm -f "$nlist"T 6344 fi 6345 6346 # Make sure that we snagged all the symbols we need. 6347 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6348 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6349 cat <<_LT_EOF > conftest.$ac_ext 6350#ifdef __cplusplus 6351extern "C" { 6352#endif 6353 6354_LT_EOF 6355 # Now generate the symbol file. 6356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6357 6358 cat <<_LT_EOF >> conftest.$ac_ext 6359 6360/* The mapping between symbol names and symbols. */ 6361const struct { 6362 const char *name; 6363 void *address; 6364} 6365lt__PROGRAM__LTX_preloaded_symbols[] = 6366{ 6367 { "@PROGRAM@", (void *) 0 }, 6368_LT_EOF 6369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6370 cat <<\_LT_EOF >> conftest.$ac_ext 6371 {0, (void *) 0} 6372}; 6373 6374/* This works around a problem in FreeBSD linker */ 6375#ifdef FREEBSD_WORKAROUND 6376static const void *lt_preloaded_setup() { 6377 return lt__PROGRAM__LTX_preloaded_symbols; 6378} 6379#endif 6380 6381#ifdef __cplusplus 6382} 6383#endif 6384_LT_EOF 6385 # Now try linking the two files. 6386 mv conftest.$ac_objext conftstm.$ac_objext 6387 lt_save_LIBS="$LIBS" 6388 lt_save_CFLAGS="$CFLAGS" 6389 LIBS="conftstm.$ac_objext" 6390 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6392 (eval $ac_link) 2>&5 6393 ac_status=$? 6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6395 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6396 pipe_works=yes 6397 fi 6398 LIBS="$lt_save_LIBS" 6399 CFLAGS="$lt_save_CFLAGS" 6400 else 6401 echo "cannot find nm_test_func in $nlist" >&5 6402 fi 6403 else 6404 echo "cannot find nm_test_var in $nlist" >&5 6405 fi 6406 else 6407 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6408 fi 6409 else 6410 echo "$progname: failed program was:" >&5 6411 cat conftest.$ac_ext >&5 6412 fi 6413 rm -rf conftest* conftst* 6414 6415 # Do not use the global_symbol_pipe unless it works. 6416 if test "$pipe_works" = yes; then 6417 break 6418 else 6419 lt_cv_sys_global_symbol_pipe= 6420 fi 6421done 6422 6423fi 6424 6425if test -z "$lt_cv_sys_global_symbol_pipe"; then 6426 lt_cv_sys_global_symbol_to_cdecl= 6427fi 6428if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6430$as_echo "failed" >&6; } 6431else 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6433$as_echo "ok" >&6; } 6434fi 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458# Check whether --enable-libtool-lock was given. 6459if test "${enable_libtool_lock+set}" = set; then : 6460 enableval=$enable_libtool_lock; 6461fi 6462 6463test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6464 6465# Some flags need to be propagated to the compiler or linker for good 6466# libtool support. 6467case $host in 6468ia64-*-hpux*) 6469 # Find out which ABI we are using. 6470 echo 'int i;' > conftest.$ac_ext 6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6472 (eval $ac_compile) 2>&5 6473 ac_status=$? 6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6475 test $ac_status = 0; }; then 6476 case `/usr/bin/file conftest.$ac_objext` in 6477 *ELF-32*) 6478 HPUX_IA64_MODE="32" 6479 ;; 6480 *ELF-64*) 6481 HPUX_IA64_MODE="64" 6482 ;; 6483 esac 6484 fi 6485 rm -rf conftest* 6486 ;; 6487*-*-irix6*) 6488 # Find out which ABI we are using. 6489 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6491 (eval $ac_compile) 2>&5 6492 ac_status=$? 6493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6494 test $ac_status = 0; }; then 6495 if test "$lt_cv_prog_gnu_ld" = yes; then 6496 case `/usr/bin/file conftest.$ac_objext` in 6497 *32-bit*) 6498 LD="${LD-ld} -melf32bsmip" 6499 ;; 6500 *N32*) 6501 LD="${LD-ld} -melf32bmipn32" 6502 ;; 6503 *64-bit*) 6504 LD="${LD-ld} -melf64bmip" 6505 ;; 6506 esac 6507 else 6508 case `/usr/bin/file conftest.$ac_objext` in 6509 *32-bit*) 6510 LD="${LD-ld} -32" 6511 ;; 6512 *N32*) 6513 LD="${LD-ld} -n32" 6514 ;; 6515 *64-bit*) 6516 LD="${LD-ld} -64" 6517 ;; 6518 esac 6519 fi 6520 fi 6521 rm -rf conftest* 6522 ;; 6523 6524x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6525s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6526 # Find out which ABI we are using. 6527 echo 'int i;' > conftest.$ac_ext 6528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6529 (eval $ac_compile) 2>&5 6530 ac_status=$? 6531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6532 test $ac_status = 0; }; then 6533 case `/usr/bin/file conftest.o` in 6534 *32-bit*) 6535 case $host in 6536 x86_64-*kfreebsd*-gnu) 6537 LD="${LD-ld} -m elf_i386_fbsd" 6538 ;; 6539 x86_64-*linux*) 6540 case `/usr/bin/file conftest.o` in 6541 *x86-64*) 6542 LD="${LD-ld} -m elf32_x86_64" 6543 ;; 6544 *) 6545 LD="${LD-ld} -m elf_i386" 6546 ;; 6547 esac 6548 ;; 6549 powerpc64le-*linux*) 6550 LD="${LD-ld} -m elf32lppclinux" 6551 ;; 6552 powerpc64-*linux*) 6553 LD="${LD-ld} -m elf32ppclinux" 6554 ;; 6555 s390x-*linux*) 6556 LD="${LD-ld} -m elf_s390" 6557 ;; 6558 sparc64-*linux*) 6559 LD="${LD-ld} -m elf32_sparc" 6560 ;; 6561 esac 6562 ;; 6563 *64-bit*) 6564 case $host in 6565 x86_64-*kfreebsd*-gnu) 6566 LD="${LD-ld} -m elf_x86_64_fbsd" 6567 ;; 6568 x86_64-*linux*) 6569 LD="${LD-ld} -m elf_x86_64" 6570 ;; 6571 powerpcle-*linux*) 6572 LD="${LD-ld} -m elf64lppc" 6573 ;; 6574 powerpc-*linux*) 6575 LD="${LD-ld} -m elf64ppc" 6576 ;; 6577 s390*-*linux*|s390*-*tpf*) 6578 LD="${LD-ld} -m elf64_s390" 6579 ;; 6580 sparc*-*linux*) 6581 LD="${LD-ld} -m elf64_sparc" 6582 ;; 6583 esac 6584 ;; 6585 esac 6586 fi 6587 rm -rf conftest* 6588 ;; 6589 6590*-*-sco3.2v5*) 6591 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6592 SAVE_CFLAGS="$CFLAGS" 6593 CFLAGS="$CFLAGS -belf" 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6595$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6596if test "${lt_cv_cc_needs_belf+set}" = set; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 ac_ext=c 6600ac_cpp='$CPP $CPPFLAGS' 6601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6603ac_compiler_gnu=$ac_cv_c_compiler_gnu 6604 6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607 6608int 6609main () 6610{ 6611 6612 ; 6613 return 0; 6614} 6615_ACEOF 6616if ac_fn_c_try_link "$LINENO"; then : 6617 lt_cv_cc_needs_belf=yes 6618else 6619 lt_cv_cc_needs_belf=no 6620fi 6621rm -f core conftest.err conftest.$ac_objext \ 6622 conftest$ac_exeext conftest.$ac_ext 6623 ac_ext=c 6624ac_cpp='$CPP $CPPFLAGS' 6625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6627ac_compiler_gnu=$ac_cv_c_compiler_gnu 6628 6629fi 6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6631$as_echo "$lt_cv_cc_needs_belf" >&6; } 6632 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6633 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6634 CFLAGS="$SAVE_CFLAGS" 6635 fi 6636 ;; 6637sparc*-*solaris*) 6638 # Find out which ABI we are using. 6639 echo 'int i;' > conftest.$ac_ext 6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6641 (eval $ac_compile) 2>&5 6642 ac_status=$? 6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6644 test $ac_status = 0; }; then 6645 case `/usr/bin/file conftest.o` in 6646 *64-bit*) 6647 case $lt_cv_prog_gnu_ld in 6648 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6649 *) 6650 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6651 LD="${LD-ld} -64" 6652 fi 6653 ;; 6654 esac 6655 ;; 6656 esac 6657 fi 6658 rm -rf conftest* 6659 ;; 6660esac 6661 6662need_locks="$enable_libtool_lock" 6663 6664 6665 case $host_os in 6666 rhapsody* | darwin*) 6667 if test -n "$ac_tool_prefix"; then 6668 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6669set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671$as_echo_n "checking for $ac_word... " >&6; } 6672if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 if test -n "$DSYMUTIL"; then 6676 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6677else 6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679for as_dir in $PATH 6680do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6685 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689done 6690 done 6691IFS=$as_save_IFS 6692 6693fi 6694fi 6695DSYMUTIL=$ac_cv_prog_DSYMUTIL 6696if test -n "$DSYMUTIL"; then 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6698$as_echo "$DSYMUTIL" >&6; } 6699else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701$as_echo "no" >&6; } 6702fi 6703 6704 6705fi 6706if test -z "$ac_cv_prog_DSYMUTIL"; then 6707 ac_ct_DSYMUTIL=$DSYMUTIL 6708 # Extract the first word of "dsymutil", so it can be a program name with args. 6709set dummy dsymutil; ac_word=$2 6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711$as_echo_n "checking for $ac_word... " >&6; } 6712if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6713 $as_echo_n "(cached) " >&6 6714else 6715 if test -n "$ac_ct_DSYMUTIL"; then 6716 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6717else 6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719for as_dir in $PATH 6720do 6721 IFS=$as_save_IFS 6722 test -z "$as_dir" && as_dir=. 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6725 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729done 6730 done 6731IFS=$as_save_IFS 6732 6733fi 6734fi 6735ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6736if test -n "$ac_ct_DSYMUTIL"; then 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6738$as_echo "$ac_ct_DSYMUTIL" >&6; } 6739else 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741$as_echo "no" >&6; } 6742fi 6743 6744 if test "x$ac_ct_DSYMUTIL" = x; then 6745 DSYMUTIL=":" 6746 else 6747 case $cross_compiling:$ac_tool_warned in 6748yes:) 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6751ac_tool_warned=yes ;; 6752esac 6753 DSYMUTIL=$ac_ct_DSYMUTIL 6754 fi 6755else 6756 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6757fi 6758 6759 if test -n "$ac_tool_prefix"; then 6760 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6761set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6763$as_echo_n "checking for $ac_word... " >&6; } 6764if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6765 $as_echo_n "(cached) " >&6 6766else 6767 if test -n "$NMEDIT"; then 6768 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6769else 6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6771for as_dir in $PATH 6772do 6773 IFS=$as_save_IFS 6774 test -z "$as_dir" && as_dir=. 6775 for ac_exec_ext in '' $ac_executable_extensions; do 6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6777 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6779 break 2 6780 fi 6781done 6782 done 6783IFS=$as_save_IFS 6784 6785fi 6786fi 6787NMEDIT=$ac_cv_prog_NMEDIT 6788if test -n "$NMEDIT"; then 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6790$as_echo "$NMEDIT" >&6; } 6791else 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6793$as_echo "no" >&6; } 6794fi 6795 6796 6797fi 6798if test -z "$ac_cv_prog_NMEDIT"; then 6799 ac_ct_NMEDIT=$NMEDIT 6800 # Extract the first word of "nmedit", so it can be a program name with args. 6801set dummy nmedit; ac_word=$2 6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6803$as_echo_n "checking for $ac_word... " >&6; } 6804if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6805 $as_echo_n "(cached) " >&6 6806else 6807 if test -n "$ac_ct_NMEDIT"; then 6808 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6809else 6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6811for as_dir in $PATH 6812do 6813 IFS=$as_save_IFS 6814 test -z "$as_dir" && as_dir=. 6815 for ac_exec_ext in '' $ac_executable_extensions; do 6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6817 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6819 break 2 6820 fi 6821done 6822 done 6823IFS=$as_save_IFS 6824 6825fi 6826fi 6827ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6828if test -n "$ac_ct_NMEDIT"; then 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6830$as_echo "$ac_ct_NMEDIT" >&6; } 6831else 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6833$as_echo "no" >&6; } 6834fi 6835 6836 if test "x$ac_ct_NMEDIT" = x; then 6837 NMEDIT=":" 6838 else 6839 case $cross_compiling:$ac_tool_warned in 6840yes:) 6841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6843ac_tool_warned=yes ;; 6844esac 6845 NMEDIT=$ac_ct_NMEDIT 6846 fi 6847else 6848 NMEDIT="$ac_cv_prog_NMEDIT" 6849fi 6850 6851 if test -n "$ac_tool_prefix"; then 6852 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6853set dummy ${ac_tool_prefix}lipo; ac_word=$2 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6855$as_echo_n "checking for $ac_word... " >&6; } 6856if test "${ac_cv_prog_LIPO+set}" = set; then : 6857 $as_echo_n "(cached) " >&6 6858else 6859 if test -n "$LIPO"; then 6860 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6861else 6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 test -z "$as_dir" && as_dir=. 6867 for ac_exec_ext in '' $ac_executable_extensions; do 6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6869 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6871 break 2 6872 fi 6873done 6874 done 6875IFS=$as_save_IFS 6876 6877fi 6878fi 6879LIPO=$ac_cv_prog_LIPO 6880if test -n "$LIPO"; then 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6882$as_echo "$LIPO" >&6; } 6883else 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6885$as_echo "no" >&6; } 6886fi 6887 6888 6889fi 6890if test -z "$ac_cv_prog_LIPO"; then 6891 ac_ct_LIPO=$LIPO 6892 # Extract the first word of "lipo", so it can be a program name with args. 6893set dummy lipo; ac_word=$2 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6895$as_echo_n "checking for $ac_word... " >&6; } 6896if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 if test -n "$ac_ct_LIPO"; then 6900 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6901else 6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6903for as_dir in $PATH 6904do 6905 IFS=$as_save_IFS 6906 test -z "$as_dir" && as_dir=. 6907 for ac_exec_ext in '' $ac_executable_extensions; do 6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6909 ac_cv_prog_ac_ct_LIPO="lipo" 6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6911 break 2 6912 fi 6913done 6914 done 6915IFS=$as_save_IFS 6916 6917fi 6918fi 6919ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6920if test -n "$ac_ct_LIPO"; then 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6922$as_echo "$ac_ct_LIPO" >&6; } 6923else 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6925$as_echo "no" >&6; } 6926fi 6927 6928 if test "x$ac_ct_LIPO" = x; then 6929 LIPO=":" 6930 else 6931 case $cross_compiling:$ac_tool_warned in 6932yes:) 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6935ac_tool_warned=yes ;; 6936esac 6937 LIPO=$ac_ct_LIPO 6938 fi 6939else 6940 LIPO="$ac_cv_prog_LIPO" 6941fi 6942 6943 if test -n "$ac_tool_prefix"; then 6944 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6945set dummy ${ac_tool_prefix}otool; ac_word=$2 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6947$as_echo_n "checking for $ac_word... " >&6; } 6948if test "${ac_cv_prog_OTOOL+set}" = set; then : 6949 $as_echo_n "(cached) " >&6 6950else 6951 if test -n "$OTOOL"; then 6952 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6953else 6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6955for as_dir in $PATH 6956do 6957 IFS=$as_save_IFS 6958 test -z "$as_dir" && as_dir=. 6959 for ac_exec_ext in '' $ac_executable_extensions; do 6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6961 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6963 break 2 6964 fi 6965done 6966 done 6967IFS=$as_save_IFS 6968 6969fi 6970fi 6971OTOOL=$ac_cv_prog_OTOOL 6972if test -n "$OTOOL"; then 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6974$as_echo "$OTOOL" >&6; } 6975else 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6977$as_echo "no" >&6; } 6978fi 6979 6980 6981fi 6982if test -z "$ac_cv_prog_OTOOL"; then 6983 ac_ct_OTOOL=$OTOOL 6984 # Extract the first word of "otool", so it can be a program name with args. 6985set dummy otool; ac_word=$2 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6987$as_echo_n "checking for $ac_word... " >&6; } 6988if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6989 $as_echo_n "(cached) " >&6 6990else 6991 if test -n "$ac_ct_OTOOL"; then 6992 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6993else 6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6995for as_dir in $PATH 6996do 6997 IFS=$as_save_IFS 6998 test -z "$as_dir" && as_dir=. 6999 for ac_exec_ext in '' $ac_executable_extensions; do 7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7001 ac_cv_prog_ac_ct_OTOOL="otool" 7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7003 break 2 7004 fi 7005done 7006 done 7007IFS=$as_save_IFS 7008 7009fi 7010fi 7011ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7012if test -n "$ac_ct_OTOOL"; then 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7014$as_echo "$ac_ct_OTOOL" >&6; } 7015else 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7017$as_echo "no" >&6; } 7018fi 7019 7020 if test "x$ac_ct_OTOOL" = x; then 7021 OTOOL=":" 7022 else 7023 case $cross_compiling:$ac_tool_warned in 7024yes:) 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7027ac_tool_warned=yes ;; 7028esac 7029 OTOOL=$ac_ct_OTOOL 7030 fi 7031else 7032 OTOOL="$ac_cv_prog_OTOOL" 7033fi 7034 7035 if test -n "$ac_tool_prefix"; then 7036 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7037set dummy ${ac_tool_prefix}otool64; ac_word=$2 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7039$as_echo_n "checking for $ac_word... " >&6; } 7040if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 if test -n "$OTOOL64"; then 7044 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7045else 7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7047for as_dir in $PATH 7048do 7049 IFS=$as_save_IFS 7050 test -z "$as_dir" && as_dir=. 7051 for ac_exec_ext in '' $ac_executable_extensions; do 7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7053 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7055 break 2 7056 fi 7057done 7058 done 7059IFS=$as_save_IFS 7060 7061fi 7062fi 7063OTOOL64=$ac_cv_prog_OTOOL64 7064if test -n "$OTOOL64"; then 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7066$as_echo "$OTOOL64" >&6; } 7067else 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7069$as_echo "no" >&6; } 7070fi 7071 7072 7073fi 7074if test -z "$ac_cv_prog_OTOOL64"; then 7075 ac_ct_OTOOL64=$OTOOL64 7076 # Extract the first word of "otool64", so it can be a program name with args. 7077set dummy otool64; ac_word=$2 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7079$as_echo_n "checking for $ac_word... " >&6; } 7080if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 if test -n "$ac_ct_OTOOL64"; then 7084 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7085else 7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087for as_dir in $PATH 7088do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7093 ac_cv_prog_ac_ct_OTOOL64="otool64" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097done 7098 done 7099IFS=$as_save_IFS 7100 7101fi 7102fi 7103ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7104if test -n "$ac_ct_OTOOL64"; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7106$as_echo "$ac_ct_OTOOL64" >&6; } 7107else 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7109$as_echo "no" >&6; } 7110fi 7111 7112 if test "x$ac_ct_OTOOL64" = x; then 7113 OTOOL64=":" 7114 else 7115 case $cross_compiling:$ac_tool_warned in 7116yes:) 7117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7119ac_tool_warned=yes ;; 7120esac 7121 OTOOL64=$ac_ct_OTOOL64 7122 fi 7123else 7124 OTOOL64="$ac_cv_prog_OTOOL64" 7125fi 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7154$as_echo_n "checking for -single_module linker flag... " >&6; } 7155if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 lt_cv_apple_cc_single_mod=no 7159 if test -z "${LT_MULTI_MODULE}"; then 7160 # By default we will add the -single_module flag. You can override 7161 # by either setting the environment variable LT_MULTI_MODULE 7162 # non-empty at configure time, or by adding -multi_module to the 7163 # link flags. 7164 rm -rf libconftest.dylib* 7165 echo "int foo(void){return 1;}" > conftest.c 7166 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7167-dynamiclib -Wl,-single_module conftest.c" >&5 7168 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7169 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7170 _lt_result=$? 7171 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7172 lt_cv_apple_cc_single_mod=yes 7173 else 7174 cat conftest.err >&5 7175 fi 7176 rm -rf libconftest.dylib* 7177 rm -f conftest.* 7178 fi 7179fi 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7181$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7183$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7184if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 lt_cv_ld_exported_symbols_list=no 7188 save_LDFLAGS=$LDFLAGS 7189 echo "_main" > conftest.sym 7190 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192/* end confdefs.h. */ 7193 7194int 7195main () 7196{ 7197 7198 ; 7199 return 0; 7200} 7201_ACEOF 7202if ac_fn_c_try_link "$LINENO"; then : 7203 lt_cv_ld_exported_symbols_list=yes 7204else 7205 lt_cv_ld_exported_symbols_list=no 7206fi 7207rm -f core conftest.err conftest.$ac_objext \ 7208 conftest$ac_exeext conftest.$ac_ext 7209 LDFLAGS="$save_LDFLAGS" 7210 7211fi 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7213$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7215$as_echo_n "checking for -force_load linker flag... " >&6; } 7216if test "${lt_cv_ld_force_load+set}" = set; then : 7217 $as_echo_n "(cached) " >&6 7218else 7219 lt_cv_ld_force_load=no 7220 cat > conftest.c << _LT_EOF 7221int forced_loaded() { return 2;} 7222_LT_EOF 7223 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7224 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7225 echo "$AR cru libconftest.a conftest.o" >&5 7226 $AR cru libconftest.a conftest.o 2>&5 7227 cat > conftest.c << _LT_EOF 7228int main() { return 0;} 7229_LT_EOF 7230 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7231 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7232 _lt_result=$? 7233 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7234 lt_cv_ld_force_load=yes 7235 else 7236 cat conftest.err >&5 7237 fi 7238 rm -f conftest.err libconftest.a conftest conftest.c 7239 rm -rf conftest.dSYM 7240 7241fi 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7243$as_echo "$lt_cv_ld_force_load" >&6; } 7244 case $host_os in 7245 rhapsody* | darwin1.[012]) 7246 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7247 darwin1.*) 7248 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7249 darwin*) # darwin 5.x on 7250 # if running on 10.5 or later, the deployment target defaults 7251 # to the OS version, if on x86, and 10.4, the deployment 7252 # target defaults to 10.4. Don't you love it? 7253 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7254 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7255 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7256 10.[012][,.]*) 7257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7258 10.*) 7259 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7260 esac 7261 ;; 7262 esac 7263 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7264 _lt_dar_single_mod='$single_module' 7265 fi 7266 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7267 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7268 else 7269 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7270 fi 7271 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7272 _lt_dsymutil='~$DSYMUTIL $lib || :' 7273 else 7274 _lt_dsymutil= 7275 fi 7276 ;; 7277 esac 7278 7279ac_ext=c 7280ac_cpp='$CPP $CPPFLAGS' 7281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7283ac_compiler_gnu=$ac_cv_c_compiler_gnu 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7285$as_echo_n "checking how to run the C preprocessor... " >&6; } 7286# On Suns, sometimes $CPP names a directory. 7287if test -n "$CPP" && test -d "$CPP"; then 7288 CPP= 7289fi 7290if test -z "$CPP"; then 7291 if test "${ac_cv_prog_CPP+set}" = set; then : 7292 $as_echo_n "(cached) " >&6 7293else 7294 # Double quotes because CPP needs to be expanded 7295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7296 do 7297 ac_preproc_ok=false 7298for ac_c_preproc_warn_flag in '' yes 7299do 7300 # Use a header file that comes with gcc, so configuring glibc 7301 # with a fresh cross-compiler works. 7302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7303 # <limits.h> exists even on freestanding compilers. 7304 # On the NeXT, cc -E runs the code through the compiler's parser, 7305 # not just through cpp. "Syntax error" is here to catch this case. 7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7307/* end confdefs.h. */ 7308#ifdef __STDC__ 7309# include <limits.h> 7310#else 7311# include <assert.h> 7312#endif 7313 Syntax error 7314_ACEOF 7315if ac_fn_c_try_cpp "$LINENO"; then : 7316 7317else 7318 # Broken: fails on valid input. 7319continue 7320fi 7321rm -f conftest.err conftest.$ac_ext 7322 7323 # OK, works on sane cases. Now check whether nonexistent headers 7324 # can be detected and how. 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326/* end confdefs.h. */ 7327#include <ac_nonexistent.h> 7328_ACEOF 7329if ac_fn_c_try_cpp "$LINENO"; then : 7330 # Broken: success on invalid input. 7331continue 7332else 7333 # Passes both tests. 7334ac_preproc_ok=: 7335break 7336fi 7337rm -f conftest.err conftest.$ac_ext 7338 7339done 7340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7341rm -f conftest.err conftest.$ac_ext 7342if $ac_preproc_ok; then : 7343 break 7344fi 7345 7346 done 7347 ac_cv_prog_CPP=$CPP 7348 7349fi 7350 CPP=$ac_cv_prog_CPP 7351else 7352 ac_cv_prog_CPP=$CPP 7353fi 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7355$as_echo "$CPP" >&6; } 7356ac_preproc_ok=false 7357for ac_c_preproc_warn_flag in '' yes 7358do 7359 # Use a header file that comes with gcc, so configuring glibc 7360 # with a fresh cross-compiler works. 7361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7362 # <limits.h> exists even on freestanding compilers. 7363 # On the NeXT, cc -E runs the code through the compiler's parser, 7364 # not just through cpp. "Syntax error" is here to catch this case. 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367#ifdef __STDC__ 7368# include <limits.h> 7369#else 7370# include <assert.h> 7371#endif 7372 Syntax error 7373_ACEOF 7374if ac_fn_c_try_cpp "$LINENO"; then : 7375 7376else 7377 # Broken: fails on valid input. 7378continue 7379fi 7380rm -f conftest.err conftest.$ac_ext 7381 7382 # OK, works on sane cases. Now check whether nonexistent headers 7383 # can be detected and how. 7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7385/* end confdefs.h. */ 7386#include <ac_nonexistent.h> 7387_ACEOF 7388if ac_fn_c_try_cpp "$LINENO"; then : 7389 # Broken: success on invalid input. 7390continue 7391else 7392 # Passes both tests. 7393ac_preproc_ok=: 7394break 7395fi 7396rm -f conftest.err conftest.$ac_ext 7397 7398done 7399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7400rm -f conftest.err conftest.$ac_ext 7401if $ac_preproc_ok; then : 7402 7403else 7404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7406as_fn_error "C preprocessor \"$CPP\" fails sanity check 7407See \`config.log' for more details." "$LINENO" 5; } 7408fi 7409 7410ac_ext=c 7411ac_cpp='$CPP $CPPFLAGS' 7412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7414ac_compiler_gnu=$ac_cv_c_compiler_gnu 7415 7416 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7418$as_echo_n "checking for ANSI C header files... " >&6; } 7419if test "${ac_cv_header_stdc+set}" = set; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424#include <stdlib.h> 7425#include <stdarg.h> 7426#include <string.h> 7427#include <float.h> 7428 7429int 7430main () 7431{ 7432 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437if ac_fn_c_try_compile "$LINENO"; then : 7438 ac_cv_header_stdc=yes 7439else 7440 ac_cv_header_stdc=no 7441fi 7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7443 7444if test $ac_cv_header_stdc = yes; then 7445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448#include <string.h> 7449 7450_ACEOF 7451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7452 $EGREP "memchr" >/dev/null 2>&1; then : 7453 7454else 7455 ac_cv_header_stdc=no 7456fi 7457rm -f conftest* 7458 7459fi 7460 7461if test $ac_cv_header_stdc = yes; then 7462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465#include <stdlib.h> 7466 7467_ACEOF 7468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7469 $EGREP "free" >/dev/null 2>&1; then : 7470 7471else 7472 ac_cv_header_stdc=no 7473fi 7474rm -f conftest* 7475 7476fi 7477 7478if test $ac_cv_header_stdc = yes; then 7479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7480 if test "$cross_compiling" = yes; then : 7481 : 7482else 7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7484/* end confdefs.h. */ 7485#include <ctype.h> 7486#include <stdlib.h> 7487#if ((' ' & 0x0FF) == 0x020) 7488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7490#else 7491# define ISLOWER(c) \ 7492 (('a' <= (c) && (c) <= 'i') \ 7493 || ('j' <= (c) && (c) <= 'r') \ 7494 || ('s' <= (c) && (c) <= 'z')) 7495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7496#endif 7497 7498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7499int 7500main () 7501{ 7502 int i; 7503 for (i = 0; i < 256; i++) 7504 if (XOR (islower (i), ISLOWER (i)) 7505 || toupper (i) != TOUPPER (i)) 7506 return 2; 7507 return 0; 7508} 7509_ACEOF 7510if ac_fn_c_try_run "$LINENO"; then : 7511 7512else 7513 ac_cv_header_stdc=no 7514fi 7515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7516 conftest.$ac_objext conftest.beam conftest.$ac_ext 7517fi 7518 7519fi 7520fi 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7522$as_echo "$ac_cv_header_stdc" >&6; } 7523if test $ac_cv_header_stdc = yes; then 7524 7525$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7526 7527fi 7528 7529# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7531 inttypes.h stdint.h unistd.h 7532do : 7533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7535" 7536eval as_val=\$$as_ac_Header 7537 if test "x$as_val" = x""yes; then : 7538 cat >>confdefs.h <<_ACEOF 7539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7540_ACEOF 7541 7542fi 7543 7544done 7545 7546 7547for ac_header in dlfcn.h 7548do : 7549 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7550" 7551if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7552 cat >>confdefs.h <<_ACEOF 7553#define HAVE_DLFCN_H 1 7554_ACEOF 7555 7556fi 7557 7558done 7559 7560if test -n "$ac_tool_prefix"; then 7561 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. 7562set dummy ${ac_tool_prefix}gccgo; ac_word=$2 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7564$as_echo_n "checking for $ac_word... " >&6; } 7565if test "${ac_cv_prog_GOC+set}" = set; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 if test -n "$GOC"; then 7569 ac_cv_prog_GOC="$GOC" # Let the user override the test. 7570else 7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7572for as_dir in $PATH 7573do 7574 IFS=$as_save_IFS 7575 test -z "$as_dir" && as_dir=. 7576 for ac_exec_ext in '' $ac_executable_extensions; do 7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7578 ac_cv_prog_GOC="${ac_tool_prefix}gccgo" 7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7580 break 2 7581 fi 7582done 7583 done 7584IFS=$as_save_IFS 7585 7586fi 7587fi 7588GOC=$ac_cv_prog_GOC 7589if test -n "$GOC"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 7591$as_echo "$GOC" >&6; } 7592else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594$as_echo "no" >&6; } 7595fi 7596 7597 7598fi 7599if test -z "$ac_cv_prog_GOC"; then 7600 ac_ct_GOC=$GOC 7601 # Extract the first word of "gccgo", so it can be a program name with args. 7602set dummy gccgo; ac_word=$2 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 if test -n "$ac_ct_GOC"; then 7609 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 test -z "$as_dir" && as_dir=. 7616 for ac_exec_ext in '' $ac_executable_extensions; do 7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7618 ac_cv_prog_ac_ct_GOC="gccgo" 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7620 break 2 7621 fi 7622done 7623 done 7624IFS=$as_save_IFS 7625 7626fi 7627fi 7628ac_ct_GOC=$ac_cv_prog_ac_ct_GOC 7629if test -n "$ac_ct_GOC"; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5 7631$as_echo "$ac_ct_GOC" >&6; } 7632else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7634$as_echo "no" >&6; } 7635fi 7636 7637 if test "x$ac_ct_GOC" = x; then 7638 GOC="" 7639 else 7640 case $cross_compiling:$ac_tool_warned in 7641yes:) 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7644ac_tool_warned=yes ;; 7645esac 7646 GOC=$ac_ct_GOC 7647 fi 7648else 7649 GOC="$ac_cv_prog_GOC" 7650fi 7651 7652 7653 7654 7655 7656 7657# Set options 7658 7659 7660 7661 7662 enable_win32_dll=no 7663 7664 7665 # Check whether --enable-shared was given. 7666if test "${enable_shared+set}" = set; then : 7667 enableval=$enable_shared; p=${PACKAGE-default} 7668 case $enableval in 7669 yes) enable_shared=yes ;; 7670 no) enable_shared=no ;; 7671 *) 7672 enable_shared=no 7673 # Look at the argument we got. We use all the common list separators. 7674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7675 for pkg in $enableval; do 7676 IFS="$lt_save_ifs" 7677 if test "X$pkg" = "X$p"; then 7678 enable_shared=yes 7679 fi 7680 done 7681 IFS="$lt_save_ifs" 7682 ;; 7683 esac 7684else 7685 enable_shared=yes 7686fi 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 # Check whether --enable-static was given. 7697if test "${enable_static+set}" = set; then : 7698 enableval=$enable_static; p=${PACKAGE-default} 7699 case $enableval in 7700 yes) enable_static=yes ;; 7701 no) enable_static=no ;; 7702 *) 7703 enable_static=no 7704 # Look at the argument we got. We use all the common list separators. 7705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7706 for pkg in $enableval; do 7707 IFS="$lt_save_ifs" 7708 if test "X$pkg" = "X$p"; then 7709 enable_static=yes 7710 fi 7711 done 7712 IFS="$lt_save_ifs" 7713 ;; 7714 esac 7715else 7716 enable_static=yes 7717fi 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728# Check whether --with-pic was given. 7729if test "${with_pic+set}" = set; then : 7730 withval=$with_pic; pic_mode="$withval" 7731else 7732 pic_mode=default 7733fi 7734 7735 7736test -z "$pic_mode" && pic_mode=default 7737 7738 7739 7740 7741 7742 7743 7744 # Check whether --enable-fast-install was given. 7745if test "${enable_fast_install+set}" = set; then : 7746 enableval=$enable_fast_install; p=${PACKAGE-default} 7747 case $enableval in 7748 yes) enable_fast_install=yes ;; 7749 no) enable_fast_install=no ;; 7750 *) 7751 enable_fast_install=no 7752 # Look at the argument we got. We use all the common list separators. 7753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7754 for pkg in $enableval; do 7755 IFS="$lt_save_ifs" 7756 if test "X$pkg" = "X$p"; then 7757 enable_fast_install=yes 7758 fi 7759 done 7760 IFS="$lt_save_ifs" 7761 ;; 7762 esac 7763else 7764 enable_fast_install=yes 7765fi 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777# This can be used to rebuild libtool when needed 7778LIBTOOL_DEPS="$ltmain" 7779 7780# Always use our own libtool. 7781LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808test -z "$LN_S" && LN_S="ln -s" 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823if test -n "${ZSH_VERSION+set}" ; then 7824 setopt NO_GLOB_SUBST 7825fi 7826 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7828$as_echo_n "checking for objdir... " >&6; } 7829if test "${lt_cv_objdir+set}" = set; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 rm -f .libs 2>/dev/null 7833mkdir .libs 2>/dev/null 7834if test -d .libs; then 7835 lt_cv_objdir=.libs 7836else 7837 # MS-DOS does not allow filenames that begin with a dot. 7838 lt_cv_objdir=_libs 7839fi 7840rmdir .libs 2>/dev/null 7841fi 7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7843$as_echo "$lt_cv_objdir" >&6; } 7844objdir=$lt_cv_objdir 7845 7846 7847 7848 7849 7850cat >>confdefs.h <<_ACEOF 7851#define LT_OBJDIR "$lt_cv_objdir/" 7852_ACEOF 7853 7854 7855 7856 7857case $host_os in 7858aix3*) 7859 # AIX sometimes has problems with the GCC collect2 program. For some 7860 # reason, if we set the COLLECT_NAMES environment variable, the problems 7861 # vanish in a puff of smoke. 7862 if test "X${COLLECT_NAMES+set}" != Xset; then 7863 COLLECT_NAMES= 7864 export COLLECT_NAMES 7865 fi 7866 ;; 7867esac 7868 7869# Global variables: 7870ofile=libtool 7871can_build_shared=yes 7872 7873# All known linkers require a `.a' archive for static linking (except MSVC, 7874# which needs '.lib'). 7875libext=a 7876 7877with_gnu_ld="$lt_cv_prog_gnu_ld" 7878 7879old_CC="$CC" 7880old_CFLAGS="$CFLAGS" 7881 7882# Set sane defaults for various variables 7883test -z "$CC" && CC=cc 7884test -z "$LTCC" && LTCC=$CC 7885test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7886test -z "$LD" && LD=ld 7887test -z "$ac_objext" && ac_objext=o 7888 7889for cc_temp in $compiler""; do 7890 case $cc_temp in 7891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7893 \-*) ;; 7894 *) break;; 7895 esac 7896done 7897cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7898 7899 7900# Only perform the check for file, if the check method requires it 7901test -z "$MAGIC_CMD" && MAGIC_CMD=file 7902case $deplibs_check_method in 7903file_magic*) 7904 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7906$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7907if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 case $MAGIC_CMD in 7911[\\/*] | ?:[\\/]*) 7912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7913 ;; 7914*) 7915 lt_save_MAGIC_CMD="$MAGIC_CMD" 7916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7918 for ac_dir in $ac_dummy; do 7919 IFS="$lt_save_ifs" 7920 test -z "$ac_dir" && ac_dir=. 7921 if test -f $ac_dir/${ac_tool_prefix}file; then 7922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7923 if test -n "$file_magic_test_file"; then 7924 case $deplibs_check_method in 7925 "file_magic "*) 7926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7929 $EGREP "$file_magic_regex" > /dev/null; then 7930 : 7931 else 7932 cat <<_LT_EOF 1>&2 7933 7934*** Warning: the command libtool uses to detect shared libraries, 7935*** $file_magic_cmd, produces output that libtool cannot recognize. 7936*** The result is that libtool may fail to recognize shared libraries 7937*** as such. This will affect the creation of libtool libraries that 7938*** depend on shared libraries, but programs linked with such libtool 7939*** libraries will work regardless of this problem. Nevertheless, you 7940*** may want to report the problem to your system manager and/or to 7941*** bug-libtool@gnu.org 7942 7943_LT_EOF 7944 fi ;; 7945 esac 7946 fi 7947 break 7948 fi 7949 done 7950 IFS="$lt_save_ifs" 7951 MAGIC_CMD="$lt_save_MAGIC_CMD" 7952 ;; 7953esac 7954fi 7955 7956MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7957if test -n "$MAGIC_CMD"; then 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7959$as_echo "$MAGIC_CMD" >&6; } 7960else 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7962$as_echo "no" >&6; } 7963fi 7964 7965 7966 7967 7968 7969if test -z "$lt_cv_path_MAGIC_CMD"; then 7970 if test -n "$ac_tool_prefix"; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7972$as_echo_n "checking for file... " >&6; } 7973if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 case $MAGIC_CMD in 7977[\\/*] | ?:[\\/]*) 7978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7979 ;; 7980*) 7981 lt_save_MAGIC_CMD="$MAGIC_CMD" 7982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7984 for ac_dir in $ac_dummy; do 7985 IFS="$lt_save_ifs" 7986 test -z "$ac_dir" && ac_dir=. 7987 if test -f $ac_dir/file; then 7988 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7989 if test -n "$file_magic_test_file"; then 7990 case $deplibs_check_method in 7991 "file_magic "*) 7992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7995 $EGREP "$file_magic_regex" > /dev/null; then 7996 : 7997 else 7998 cat <<_LT_EOF 1>&2 7999 8000*** Warning: the command libtool uses to detect shared libraries, 8001*** $file_magic_cmd, produces output that libtool cannot recognize. 8002*** The result is that libtool may fail to recognize shared libraries 8003*** as such. This will affect the creation of libtool libraries that 8004*** depend on shared libraries, but programs linked with such libtool 8005*** libraries will work regardless of this problem. Nevertheless, you 8006*** may want to report the problem to your system manager and/or to 8007*** bug-libtool@gnu.org 8008 8009_LT_EOF 8010 fi ;; 8011 esac 8012 fi 8013 break 8014 fi 8015 done 8016 IFS="$lt_save_ifs" 8017 MAGIC_CMD="$lt_save_MAGIC_CMD" 8018 ;; 8019esac 8020fi 8021 8022MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8023if test -n "$MAGIC_CMD"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8025$as_echo "$MAGIC_CMD" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 8032 else 8033 MAGIC_CMD=: 8034 fi 8035fi 8036 8037 fi 8038 ;; 8039esac 8040 8041# Use C for the default configuration in the libtool script 8042 8043lt_save_CC="$CC" 8044ac_ext=c 8045ac_cpp='$CPP $CPPFLAGS' 8046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8048ac_compiler_gnu=$ac_cv_c_compiler_gnu 8049 8050 8051# Source file extension for C test sources. 8052ac_ext=c 8053 8054# Object file extension for compiled C test sources. 8055objext=o 8056objext=$objext 8057 8058# Code to be used in simple compile tests 8059lt_simple_compile_test_code="int some_variable = 0;" 8060 8061# Code to be used in simple link tests 8062lt_simple_link_test_code='int main(){return(0);}' 8063 8064 8065 8066 8067 8068 8069 8070# If no C compiler was specified, use CC. 8071LTCC=${LTCC-"$CC"} 8072 8073# If no C compiler flags were specified, use CFLAGS. 8074LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8075 8076# Allow CC to be a program name with arguments. 8077compiler=$CC 8078 8079# Save the default compiler, since it gets overwritten when the other 8080# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8081compiler_DEFAULT=$CC 8082 8083# save warnings/boilerplate of simple test code 8084ac_outfile=conftest.$ac_objext 8085echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8086eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8087_lt_compiler_boilerplate=`cat conftest.err` 8088$RM conftest* 8089 8090ac_outfile=conftest.$ac_objext 8091echo "$lt_simple_link_test_code" >conftest.$ac_ext 8092eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8093_lt_linker_boilerplate=`cat conftest.err` 8094$RM -r conftest* 8095 8096 8097## CAVEAT EMPTOR: 8098## There is no encapsulation within the following macros, do not change 8099## the running order or otherwise move them around unless you know exactly 8100## what you are doing... 8101if test -n "$compiler"; then 8102 8103lt_prog_compiler_no_builtin_flag= 8104 8105if test "$GCC" = yes; then 8106 case $cc_basename in 8107 nvcc*) 8108 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8109 *) 8110 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8111 esac 8112 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8114$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8115if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8116 $as_echo_n "(cached) " >&6 8117else 8118 lt_cv_prog_compiler_rtti_exceptions=no 8119 ac_outfile=conftest.$ac_objext 8120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8121 lt_compiler_flag="-fno-rtti -fno-exceptions" 8122 # Insert the option either (1) after the last *FLAGS variable, or 8123 # (2) before a word containing "conftest.", or (3) at the end. 8124 # Note that $ac_compile itself does not contain backslashes and begins 8125 # with a dollar sign (not a hyphen), so the echo should work correctly. 8126 # The option is referenced via a variable to avoid confusing sed. 8127 lt_compile=`echo "$ac_compile" | $SED \ 8128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8130 -e 's:$: $lt_compiler_flag:'` 8131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8132 (eval "$lt_compile" 2>conftest.err) 8133 ac_status=$? 8134 cat conftest.err >&5 8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8136 if (exit $ac_status) && test -s "$ac_outfile"; then 8137 # The compiler can only warn and ignore the option if not recognized 8138 # So say no if there are warnings other than the usual output. 8139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8142 lt_cv_prog_compiler_rtti_exceptions=yes 8143 fi 8144 fi 8145 $RM conftest* 8146 8147fi 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8149$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8150 8151if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8152 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8153else 8154 : 8155fi 8156 8157fi 8158 8159 8160 8161 8162 8163 8164 lt_prog_compiler_wl= 8165lt_prog_compiler_pic= 8166lt_prog_compiler_static= 8167 8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8169$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8170 8171 if test "$GCC" = yes; then 8172 lt_prog_compiler_wl='-Wl,' 8173 lt_prog_compiler_static='-static' 8174 8175 case $host_os in 8176 aix*) 8177 # All AIX code is PIC. 8178 if test "$host_cpu" = ia64; then 8179 # AIX 5 now supports IA64 processor 8180 lt_prog_compiler_static='-Bstatic' 8181 fi 8182 lt_prog_compiler_pic='-fPIC' 8183 ;; 8184 8185 amigaos*) 8186 case $host_cpu in 8187 powerpc) 8188 # see comment about AmigaOS4 .so support 8189 lt_prog_compiler_pic='-fPIC' 8190 ;; 8191 m68k) 8192 # FIXME: we need at least 68020 code to build shared libraries, but 8193 # adding the `-m68020' flag to GCC prevents building anything better, 8194 # like `-m68040'. 8195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8196 ;; 8197 esac 8198 ;; 8199 8200 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8201 # PIC is the default for these OSes. 8202 ;; 8203 8204 mingw* | cygwin* | pw32* | os2* | cegcc*) 8205 # This hack is so that the source file can tell whether it is being 8206 # built for inclusion in a dll (and should export symbols for example). 8207 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8208 # (--disable-auto-import) libraries 8209 lt_prog_compiler_pic='-DDLL_EXPORT' 8210 ;; 8211 8212 darwin* | rhapsody*) 8213 # PIC is the default on this platform 8214 # Common symbols not allowed in MH_DYLIB files 8215 lt_prog_compiler_pic='-fno-common' 8216 ;; 8217 8218 haiku*) 8219 # PIC is the default for Haiku. 8220 # The "-static" flag exists, but is broken. 8221 lt_prog_compiler_static= 8222 ;; 8223 8224 hpux*) 8225 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8226 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8227 # sets the default TLS model and affects inlining. 8228 case $host_cpu in 8229 hppa*64*) 8230 # +Z the default 8231 ;; 8232 *) 8233 lt_prog_compiler_pic='-fPIC' 8234 ;; 8235 esac 8236 ;; 8237 8238 interix[3-9]*) 8239 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8240 # Instead, we relocate shared libraries at runtime. 8241 ;; 8242 8243 msdosdjgpp*) 8244 # Just because we use GCC doesn't mean we suddenly get shared libraries 8245 # on systems that don't support them. 8246 lt_prog_compiler_can_build_shared=no 8247 enable_shared=no 8248 ;; 8249 8250 *nto* | *qnx*) 8251 # QNX uses GNU C++, but need to define -shared option too, otherwise 8252 # it will coredump. 8253 lt_prog_compiler_pic='-fPIC -shared' 8254 ;; 8255 8256 sysv4*MP*) 8257 if test -d /usr/nec; then 8258 lt_prog_compiler_pic=-Kconform_pic 8259 fi 8260 ;; 8261 8262 *) 8263 lt_prog_compiler_pic='-fPIC' 8264 ;; 8265 esac 8266 8267 case $cc_basename in 8268 nvcc*) # Cuda Compiler Driver 2.2 8269 lt_prog_compiler_wl='-Xlinker ' 8270 lt_prog_compiler_pic='-Xcompiler -fPIC' 8271 ;; 8272 esac 8273 else 8274 # PORTME Check for flag to pass linker flags through the system compiler. 8275 case $host_os in 8276 aix*) 8277 lt_prog_compiler_wl='-Wl,' 8278 if test "$host_cpu" = ia64; then 8279 # AIX 5 now supports IA64 processor 8280 lt_prog_compiler_static='-Bstatic' 8281 else 8282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8283 fi 8284 ;; 8285 8286 mingw* | cygwin* | pw32* | os2* | cegcc*) 8287 # This hack is so that the source file can tell whether it is being 8288 # built for inclusion in a dll (and should export symbols for example). 8289 lt_prog_compiler_pic='-DDLL_EXPORT' 8290 ;; 8291 8292 hpux9* | hpux10* | hpux11*) 8293 lt_prog_compiler_wl='-Wl,' 8294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8295 # not for PA HP-UX. 8296 case $host_cpu in 8297 hppa*64*|ia64*) 8298 # +Z the default 8299 ;; 8300 *) 8301 lt_prog_compiler_pic='+Z' 8302 ;; 8303 esac 8304 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8305 lt_prog_compiler_static='${wl}-a ${wl}archive' 8306 ;; 8307 8308 irix5* | irix6* | nonstopux*) 8309 lt_prog_compiler_wl='-Wl,' 8310 # PIC (with -KPIC) is the default. 8311 lt_prog_compiler_static='-non_shared' 8312 ;; 8313 8314 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8315 case $cc_basename in 8316 # old Intel for x86_64 which still supported -KPIC. 8317 ecc*) 8318 lt_prog_compiler_wl='-Wl,' 8319 lt_prog_compiler_pic='-KPIC' 8320 lt_prog_compiler_static='-static' 8321 ;; 8322 # icc used to be incompatible with GCC. 8323 # ICC 10 doesn't accept -KPIC any more. 8324 icc* | ifort*) 8325 lt_prog_compiler_wl='-Wl,' 8326 lt_prog_compiler_pic='-fPIC' 8327 lt_prog_compiler_static='-static' 8328 ;; 8329 # Lahey Fortran 8.1. 8330 lf95*) 8331 lt_prog_compiler_wl='-Wl,' 8332 lt_prog_compiler_pic='--shared' 8333 lt_prog_compiler_static='--static' 8334 ;; 8335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8336 # Portland Group compilers (*not* the Pentium gcc compiler, 8337 # which looks to be a dead project) 8338 lt_prog_compiler_wl='-Wl,' 8339 lt_prog_compiler_pic='-fpic' 8340 lt_prog_compiler_static='-Bstatic' 8341 ;; 8342 ccc*) 8343 lt_prog_compiler_wl='-Wl,' 8344 # All Alpha code is PIC. 8345 lt_prog_compiler_static='-non_shared' 8346 ;; 8347 xl* | bgxl* | bgf* | mpixl*) 8348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8349 lt_prog_compiler_wl='-Wl,' 8350 lt_prog_compiler_pic='-qpic' 8351 lt_prog_compiler_static='-qstaticlink' 8352 ;; 8353 *) 8354 case `$CC -V 2>&1 | sed 5q` in 8355 *Sun\ F* | *Sun*Fortran*) 8356 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8357 lt_prog_compiler_pic='-KPIC' 8358 lt_prog_compiler_static='-Bstatic' 8359 lt_prog_compiler_wl='' 8360 ;; 8361 *Sun\ C*) 8362 # Sun C 5.9 8363 lt_prog_compiler_pic='-KPIC' 8364 lt_prog_compiler_static='-Bstatic' 8365 lt_prog_compiler_wl='-Wl,' 8366 ;; 8367 esac 8368 ;; 8369 esac 8370 ;; 8371 8372 newsos6) 8373 lt_prog_compiler_pic='-KPIC' 8374 lt_prog_compiler_static='-Bstatic' 8375 ;; 8376 8377 *nto* | *qnx*) 8378 # QNX uses GNU C++, but need to define -shared option too, otherwise 8379 # it will coredump. 8380 lt_prog_compiler_pic='-fPIC -shared' 8381 ;; 8382 8383 osf3* | osf4* | osf5*) 8384 lt_prog_compiler_wl='-Wl,' 8385 # All OSF/1 code is PIC. 8386 lt_prog_compiler_static='-non_shared' 8387 ;; 8388 8389 rdos*) 8390 lt_prog_compiler_static='-non_shared' 8391 ;; 8392 8393 solaris*) 8394 lt_prog_compiler_pic='-KPIC' 8395 lt_prog_compiler_static='-Bstatic' 8396 case $cc_basename in 8397 f77* | f90* | f95*) 8398 lt_prog_compiler_wl='-Qoption ld ';; 8399 *) 8400 lt_prog_compiler_wl='-Wl,';; 8401 esac 8402 ;; 8403 8404 sunos4*) 8405 lt_prog_compiler_wl='-Qoption ld ' 8406 lt_prog_compiler_pic='-PIC' 8407 lt_prog_compiler_static='-Bstatic' 8408 ;; 8409 8410 sysv4 | sysv4.2uw2* | sysv4.3*) 8411 lt_prog_compiler_wl='-Wl,' 8412 lt_prog_compiler_pic='-KPIC' 8413 lt_prog_compiler_static='-Bstatic' 8414 ;; 8415 8416 sysv4*MP*) 8417 if test -d /usr/nec ;then 8418 lt_prog_compiler_pic='-Kconform_pic' 8419 lt_prog_compiler_static='-Bstatic' 8420 fi 8421 ;; 8422 8423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8424 lt_prog_compiler_wl='-Wl,' 8425 lt_prog_compiler_pic='-KPIC' 8426 lt_prog_compiler_static='-Bstatic' 8427 ;; 8428 8429 unicos*) 8430 lt_prog_compiler_wl='-Wl,' 8431 lt_prog_compiler_can_build_shared=no 8432 ;; 8433 8434 uts4*) 8435 lt_prog_compiler_pic='-pic' 8436 lt_prog_compiler_static='-Bstatic' 8437 ;; 8438 8439 *) 8440 lt_prog_compiler_can_build_shared=no 8441 ;; 8442 esac 8443 fi 8444 8445case $host_os in 8446 # For platforms which do not support PIC, -DPIC is meaningless: 8447 *djgpp*) 8448 lt_prog_compiler_pic= 8449 ;; 8450 *) 8451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8452 ;; 8453esac 8454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8455$as_echo "$lt_prog_compiler_pic" >&6; } 8456 8457 8458 8459 8460 8461 8462# 8463# Check to make sure the PIC flag actually works. 8464# 8465if test -n "$lt_prog_compiler_pic"; then 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8467$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8468if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8469 $as_echo_n "(cached) " >&6 8470else 8471 lt_cv_prog_compiler_pic_works=no 8472 ac_outfile=conftest.$ac_objext 8473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8474 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8475 # Insert the option either (1) after the last *FLAGS variable, or 8476 # (2) before a word containing "conftest.", or (3) at the end. 8477 # Note that $ac_compile itself does not contain backslashes and begins 8478 # with a dollar sign (not a hyphen), so the echo should work correctly. 8479 # The option is referenced via a variable to avoid confusing sed. 8480 lt_compile=`echo "$ac_compile" | $SED \ 8481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8483 -e 's:$: $lt_compiler_flag:'` 8484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8485 (eval "$lt_compile" 2>conftest.err) 8486 ac_status=$? 8487 cat conftest.err >&5 8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8489 if (exit $ac_status) && test -s "$ac_outfile"; then 8490 # The compiler can only warn and ignore the option if not recognized 8491 # So say no if there are warnings other than the usual output. 8492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8495 lt_cv_prog_compiler_pic_works=yes 8496 fi 8497 fi 8498 $RM conftest* 8499 8500fi 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8502$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8503 8504if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8505 case $lt_prog_compiler_pic in 8506 "" | " "*) ;; 8507 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8508 esac 8509else 8510 lt_prog_compiler_pic= 8511 lt_prog_compiler_can_build_shared=no 8512fi 8513 8514fi 8515 8516 8517 8518 8519 8520 8521# 8522# Check to make sure the static flag actually works. 8523# 8524wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8526$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8527if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 lt_cv_prog_compiler_static_works=no 8531 save_LDFLAGS="$LDFLAGS" 8532 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8533 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8534 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8535 # The linker can only warn and ignore the option if not recognized 8536 # So say no if there are warnings 8537 if test -s conftest.err; then 8538 # Append any errors to the config.log. 8539 cat conftest.err 1>&5 8540 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8542 if diff conftest.exp conftest.er2 >/dev/null; then 8543 lt_cv_prog_compiler_static_works=yes 8544 fi 8545 else 8546 lt_cv_prog_compiler_static_works=yes 8547 fi 8548 fi 8549 $RM -r conftest* 8550 LDFLAGS="$save_LDFLAGS" 8551 8552fi 8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8554$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8555 8556if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8557 : 8558else 8559 lt_prog_compiler_static= 8560fi 8561 8562 8563 8564 8565 8566 8567 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8569$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8570if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8571 $as_echo_n "(cached) " >&6 8572else 8573 lt_cv_prog_compiler_c_o=no 8574 $RM -r conftest 2>/dev/null 8575 mkdir conftest 8576 cd conftest 8577 mkdir out 8578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8579 8580 lt_compiler_flag="-o out/conftest2.$ac_objext" 8581 # Insert the option either (1) after the last *FLAGS variable, or 8582 # (2) before a word containing "conftest.", or (3) at the end. 8583 # Note that $ac_compile itself does not contain backslashes and begins 8584 # with a dollar sign (not a hyphen), so the echo should work correctly. 8585 lt_compile=`echo "$ac_compile" | $SED \ 8586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8588 -e 's:$: $lt_compiler_flag:'` 8589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8590 (eval "$lt_compile" 2>out/conftest.err) 8591 ac_status=$? 8592 cat out/conftest.err >&5 8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8594 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8595 then 8596 # The compiler can only warn and ignore the option if not recognized 8597 # So say no if there are warnings 8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8601 lt_cv_prog_compiler_c_o=yes 8602 fi 8603 fi 8604 chmod u+w . 2>&5 8605 $RM conftest* 8606 # SGI C++ compiler will create directory out/ii_files/ for 8607 # template instantiation 8608 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8609 $RM out/* && rmdir out 8610 cd .. 8611 $RM -r conftest 8612 $RM conftest* 8613 8614fi 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8616$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8617 8618 8619 8620 8621 8622 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8624$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8625if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8626 $as_echo_n "(cached) " >&6 8627else 8628 lt_cv_prog_compiler_c_o=no 8629 $RM -r conftest 2>/dev/null 8630 mkdir conftest 8631 cd conftest 8632 mkdir out 8633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8634 8635 lt_compiler_flag="-o out/conftest2.$ac_objext" 8636 # Insert the option either (1) after the last *FLAGS variable, or 8637 # (2) before a word containing "conftest.", or (3) at the end. 8638 # Note that $ac_compile itself does not contain backslashes and begins 8639 # with a dollar sign (not a hyphen), so the echo should work correctly. 8640 lt_compile=`echo "$ac_compile" | $SED \ 8641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8643 -e 's:$: $lt_compiler_flag:'` 8644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8645 (eval "$lt_compile" 2>out/conftest.err) 8646 ac_status=$? 8647 cat out/conftest.err >&5 8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8649 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8650 then 8651 # The compiler can only warn and ignore the option if not recognized 8652 # So say no if there are warnings 8653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8656 lt_cv_prog_compiler_c_o=yes 8657 fi 8658 fi 8659 chmod u+w . 2>&5 8660 $RM conftest* 8661 # SGI C++ compiler will create directory out/ii_files/ for 8662 # template instantiation 8663 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8664 $RM out/* && rmdir out 8665 cd .. 8666 $RM -r conftest 8667 $RM conftest* 8668 8669fi 8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8671$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8672 8673 8674 8675 8676hard_links="nottested" 8677if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8678 # do not overwrite the value of need_locks provided by the user 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8680$as_echo_n "checking if we can lock with hard links... " >&6; } 8681 hard_links=yes 8682 $RM conftest* 8683 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8684 touch conftest.a 8685 ln conftest.a conftest.b 2>&5 || hard_links=no 8686 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8688$as_echo "$hard_links" >&6; } 8689 if test "$hard_links" = no; then 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8691$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8692 need_locks=warn 8693 fi 8694else 8695 need_locks=no 8696fi 8697 8698 8699 8700 8701 8702 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8704$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8705 8706 runpath_var= 8707 allow_undefined_flag= 8708 always_export_symbols=no 8709 archive_cmds= 8710 archive_expsym_cmds= 8711 compiler_needs_object=no 8712 enable_shared_with_static_runtimes=no 8713 export_dynamic_flag_spec= 8714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8715 hardcode_automatic=no 8716 hardcode_direct=no 8717 hardcode_direct_absolute=no 8718 hardcode_libdir_flag_spec= 8719 hardcode_libdir_flag_spec_ld= 8720 hardcode_libdir_separator= 8721 hardcode_minus_L=no 8722 hardcode_shlibpath_var=unsupported 8723 inherit_rpath=no 8724 link_all_deplibs=unknown 8725 module_cmds= 8726 module_expsym_cmds= 8727 old_archive_from_new_cmds= 8728 old_archive_from_expsyms_cmds= 8729 thread_safe_flag_spec= 8730 whole_archive_flag_spec= 8731 # include_expsyms should be a list of space-separated symbols to be *always* 8732 # included in the symbol list 8733 include_expsyms= 8734 # exclude_expsyms can be an extended regexp of symbols to exclude 8735 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8737 # as well as any symbol that contains `d'. 8738 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8740 # platforms (ab)use it in PIC code, but their linkers get confused if 8741 # the symbol is explicitly referenced. Since portable code cannot 8742 # rely on this symbol name, it's probably fine to never include it in 8743 # preloaded symbol tables. 8744 # Exclude shared library initialization/finalization symbols. 8745 extract_expsyms_cmds= 8746 8747 case $host_os in 8748 cygwin* | mingw* | pw32* | cegcc*) 8749 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8750 # When not using gcc, we currently assume that we are using 8751 # Microsoft Visual C++. 8752 if test "$GCC" != yes; then 8753 with_gnu_ld=no 8754 fi 8755 ;; 8756 interix*) 8757 # we just hope/assume this is gcc and not c89 (= MSVC++) 8758 with_gnu_ld=yes 8759 ;; 8760 openbsd*) 8761 with_gnu_ld=no 8762 ;; 8763 esac 8764 8765 ld_shlibs=yes 8766 8767 # On some targets, GNU ld is compatible enough with the native linker 8768 # that we're better off using the native interface for both. 8769 lt_use_gnu_ld_interface=no 8770 if test "$with_gnu_ld" = yes; then 8771 case $host_os in 8772 aix*) 8773 # The AIX port of GNU ld has always aspired to compatibility 8774 # with the native linker. However, as the warning in the GNU ld 8775 # block says, versions before 2.19.5* couldn't really create working 8776 # shared libraries, regardless of the interface used. 8777 case `$LD -v 2>&1` in 8778 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8779 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8780 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8781 *) 8782 lt_use_gnu_ld_interface=yes 8783 ;; 8784 esac 8785 ;; 8786 *) 8787 lt_use_gnu_ld_interface=yes 8788 ;; 8789 esac 8790 fi 8791 8792 if test "$lt_use_gnu_ld_interface" = yes; then 8793 # If archive_cmds runs LD, not CC, wlarc should be empty 8794 wlarc='${wl}' 8795 8796 # Set some defaults for GNU ld with shared library support. These 8797 # are reset later if shared libraries are not supported. Putting them 8798 # here allows them to be overridden if necessary. 8799 runpath_var=LD_RUN_PATH 8800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8801 export_dynamic_flag_spec='${wl}--export-dynamic' 8802 # ancient GNU ld didn't support --whole-archive et. al. 8803 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8804 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8805 else 8806 whole_archive_flag_spec= 8807 fi 8808 supports_anon_versioning=no 8809 case `$LD -v 2>&1` in 8810 *GNU\ gold*) supports_anon_versioning=yes ;; 8811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8814 *\ 2.11.*) ;; # other 2.11 versions 8815 *) supports_anon_versioning=yes ;; 8816 esac 8817 8818 # See if GNU ld supports shared libraries. 8819 case $host_os in 8820 aix[3-9]*) 8821 # On AIX/PPC, the GNU linker is very broken 8822 if test "$host_cpu" != ia64; then 8823 ld_shlibs=no 8824 cat <<_LT_EOF 1>&2 8825 8826*** Warning: the GNU linker, at least up to release 2.19, is reported 8827*** to be unable to reliably create shared libraries on AIX. 8828*** Therefore, libtool is disabling shared libraries support. If you 8829*** really care for shared libraries, you may want to install binutils 8830*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8831*** You will then need to restart the configuration process. 8832 8833_LT_EOF 8834 fi 8835 ;; 8836 8837 amigaos*) 8838 case $host_cpu in 8839 powerpc) 8840 # see comment about AmigaOS4 .so support 8841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8842 archive_expsym_cmds='' 8843 ;; 8844 m68k) 8845 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)' 8846 hardcode_libdir_flag_spec='-L$libdir' 8847 hardcode_minus_L=yes 8848 ;; 8849 esac 8850 ;; 8851 8852 beos*) 8853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8854 allow_undefined_flag=unsupported 8855 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8856 # support --undefined. This deserves some investigation. FIXME 8857 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8858 else 8859 ld_shlibs=no 8860 fi 8861 ;; 8862 8863 cygwin* | mingw* | pw32* | cegcc*) 8864 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8865 # as there is no search path for DLLs. 8866 hardcode_libdir_flag_spec='-L$libdir' 8867 export_dynamic_flag_spec='${wl}--export-all-symbols' 8868 allow_undefined_flag=unsupported 8869 always_export_symbols=no 8870 enable_shared_with_static_runtimes=yes 8871 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8872 8873 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8875 # If the export-symbols file already is a .def file (1st line 8876 # is EXPORTS), use it as is; otherwise, prepend... 8877 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8878 cp $export_symbols $output_objdir/$soname.def; 8879 else 8880 echo EXPORTS > $output_objdir/$soname.def; 8881 cat $export_symbols >> $output_objdir/$soname.def; 8882 fi~ 8883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8884 else 8885 ld_shlibs=no 8886 fi 8887 ;; 8888 8889 haiku*) 8890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8891 link_all_deplibs=yes 8892 ;; 8893 8894 interix[3-9]*) 8895 hardcode_direct=no 8896 hardcode_shlibpath_var=no 8897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8898 export_dynamic_flag_spec='${wl}-E' 8899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8900 # Instead, shared libraries are loaded at an image base (0x10000000 by 8901 # default) and relocated if they conflict, which is a slow very memory 8902 # consuming and fragmenting process. To avoid this, we pick a random, 8903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8904 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8906 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' 8907 ;; 8908 8909 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8910 tmp_diet=no 8911 if test "$host_os" = linux-dietlibc; then 8912 case $cc_basename in 8913 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8914 esac 8915 fi 8916 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8917 && test "$tmp_diet" = no 8918 then 8919 tmp_addflag= 8920 tmp_sharedflag='-shared' 8921 case $cc_basename,$host_cpu in 8922 pgcc*) # Portland Group C compiler 8923 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' 8924 tmp_addflag=' $pic_flag' 8925 ;; 8926 pgf77* | pgf90* | pgf95* | pgfortran*) 8927 # Portland Group f77 and f90 compilers 8928 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' 8929 tmp_addflag=' $pic_flag -Mnomain' ;; 8930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8931 tmp_addflag=' -i_dynamic' ;; 8932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8933 tmp_addflag=' -i_dynamic -nofor_main' ;; 8934 ifc* | ifort*) # Intel Fortran compiler 8935 tmp_addflag=' -nofor_main' ;; 8936 lf95*) # Lahey Fortran 8.1 8937 whole_archive_flag_spec= 8938 tmp_sharedflag='--shared' ;; 8939 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8940 tmp_sharedflag='-qmkshrobj' 8941 tmp_addflag= ;; 8942 nvcc*) # Cuda Compiler Driver 2.2 8943 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' 8944 compiler_needs_object=yes 8945 ;; 8946 esac 8947 case `$CC -V 2>&1 | sed 5q` in 8948 *Sun\ C*) # Sun C 5.9 8949 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' 8950 compiler_needs_object=yes 8951 tmp_sharedflag='-G' ;; 8952 *Sun\ F*) # Sun Fortran 8.3 8953 tmp_sharedflag='-G' ;; 8954 esac 8955 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8956 8957 if test "x$supports_anon_versioning" = xyes; then 8958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8960 echo "local: *; };" >> $output_objdir/$libname.ver~ 8961 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8962 fi 8963 8964 case $cc_basename in 8965 xlf* | bgf* | bgxlf* | mpixlf*) 8966 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8967 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8968 hardcode_libdir_flag_spec= 8969 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8970 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8971 if test "x$supports_anon_versioning" = xyes; then 8972 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8973 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8974 echo "local: *; };" >> $output_objdir/$libname.ver~ 8975 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8976 fi 8977 ;; 8978 esac 8979 else 8980 ld_shlibs=no 8981 fi 8982 ;; 8983 8984 netbsd*) 8985 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8986 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8987 wlarc= 8988 else 8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8991 fi 8992 ;; 8993 8994 solaris*) 8995 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8996 ld_shlibs=no 8997 cat <<_LT_EOF 1>&2 8998 8999*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9000*** create shared libraries on Solaris systems. Therefore, libtool 9001*** is disabling shared libraries support. We urge you to upgrade GNU 9002*** binutils to release 2.9.1 or newer. Another option is to modify 9003*** your PATH or compiler configuration so that the native linker is 9004*** used, and then restart. 9005 9006_LT_EOF 9007 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9010 else 9011 ld_shlibs=no 9012 fi 9013 ;; 9014 9015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9016 case `$LD -v 2>&1` in 9017 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9018 ld_shlibs=no 9019 cat <<_LT_EOF 1>&2 9020 9021*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9022*** reliably create shared libraries on SCO systems. Therefore, libtool 9023*** is disabling shared libraries support. We urge you to upgrade GNU 9024*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9025*** your PATH or compiler configuration so that the native linker is 9026*** used, and then restart. 9027 9028_LT_EOF 9029 ;; 9030 *) 9031 # For security reasons, it is highly recommended that you always 9032 # use absolute paths for naming shared libraries, and exclude the 9033 # DT_RUNPATH tag from executables and libraries. But doing so 9034 # requires that you compile everything twice, which is a pain. 9035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9039 else 9040 ld_shlibs=no 9041 fi 9042 ;; 9043 esac 9044 ;; 9045 9046 sunos4*) 9047 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9048 wlarc= 9049 hardcode_direct=yes 9050 hardcode_shlibpath_var=no 9051 ;; 9052 9053 *) 9054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9057 else 9058 ld_shlibs=no 9059 fi 9060 ;; 9061 esac 9062 9063 if test "$ld_shlibs" = no; then 9064 runpath_var= 9065 hardcode_libdir_flag_spec= 9066 export_dynamic_flag_spec= 9067 whole_archive_flag_spec= 9068 fi 9069 else 9070 # PORTME fill in a description of your system's linker (not GNU ld) 9071 case $host_os in 9072 aix3*) 9073 allow_undefined_flag=unsupported 9074 always_export_symbols=yes 9075 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' 9076 # Note: this linker hardcodes the directories in LIBPATH if there 9077 # are no directories specified by -L. 9078 hardcode_minus_L=yes 9079 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9080 # Neither direct hardcoding nor static linking is supported with a 9081 # broken collect2. 9082 hardcode_direct=unsupported 9083 fi 9084 ;; 9085 9086 aix[4-9]*) 9087 if test "$host_cpu" = ia64; then 9088 # On IA64, the linker does run time linking by default, so we don't 9089 # have to do anything special. 9090 aix_use_runtimelinking=no 9091 exp_sym_flag='-Bexport' 9092 no_entry_flag="" 9093 else 9094 # If we're using GNU nm, then we don't want the "-C" option. 9095 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9096 # Also, AIX nm treats weak defined symbols like other global 9097 # defined symbols, whereas GNU nm marks them as "W". 9098 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9099 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' 9100 else 9101 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' 9102 fi 9103 aix_use_runtimelinking=no 9104 9105 # Test if we are trying to use run time linking or normal 9106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9107 # need to do runtime linking. 9108 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9109 for ld_flag in $LDFLAGS; do 9110 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9111 aix_use_runtimelinking=yes 9112 break 9113 fi 9114 done 9115 ;; 9116 esac 9117 9118 exp_sym_flag='-bexport' 9119 no_entry_flag='-bnoentry' 9120 fi 9121 9122 # When large executables or shared objects are built, AIX ld can 9123 # have problems creating the table of contents. If linking a library 9124 # or program results in "error TOC overflow" add -mminimal-toc to 9125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9127 9128 archive_cmds='' 9129 hardcode_direct=yes 9130 hardcode_direct_absolute=yes 9131 hardcode_libdir_separator=':' 9132 link_all_deplibs=yes 9133 file_list_spec='${wl}-f,' 9134 9135 if test "$GCC" = yes; then 9136 case $host_os in aix4.[012]|aix4.[012].*) 9137 # We only want to do this on AIX 4.2 and lower, the check 9138 # below for broken collect2 doesn't work under 4.3+ 9139 collect2name=`${CC} -print-prog-name=collect2` 9140 if test -f "$collect2name" && 9141 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9142 then 9143 # We have reworked collect2 9144 : 9145 else 9146 # We have old collect2 9147 hardcode_direct=unsupported 9148 # It fails to find uninstalled libraries when the uninstalled 9149 # path is not listed in the libpath. Setting hardcode_minus_L 9150 # to unsupported forces relinking 9151 hardcode_minus_L=yes 9152 hardcode_libdir_flag_spec='-L$libdir' 9153 hardcode_libdir_separator= 9154 fi 9155 ;; 9156 esac 9157 shared_flag='-shared' 9158 if test "$aix_use_runtimelinking" = yes; then 9159 shared_flag="$shared_flag "'${wl}-G' 9160 fi 9161 else 9162 # not using gcc 9163 if test "$host_cpu" = ia64; then 9164 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9165 # chokes on -Wl,-G. The following line is correct: 9166 shared_flag='-G' 9167 else 9168 if test "$aix_use_runtimelinking" = yes; then 9169 shared_flag='${wl}-G' 9170 else 9171 shared_flag='${wl}-bM:SRE' 9172 fi 9173 fi 9174 fi 9175 9176 export_dynamic_flag_spec='${wl}-bexpall' 9177 # It seems that -bexpall does not export symbols beginning with 9178 # underscore (_), so it is better to generate a list of symbols to export. 9179 always_export_symbols=yes 9180 if test "$aix_use_runtimelinking" = yes; then 9181 # Warning - without using the other runtime loading flags (-brtl), 9182 # -berok will link without error, but may produce a broken library. 9183 allow_undefined_flag='-berok' 9184 # Determine the default libpath from the value encoded in an 9185 # empty executable. 9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187/* end confdefs.h. */ 9188 9189int 9190main () 9191{ 9192 9193 ; 9194 return 0; 9195} 9196_ACEOF 9197if ac_fn_c_try_link "$LINENO"; then : 9198 9199lt_aix_libpath_sed=' 9200 /Import File Strings/,/^$/ { 9201 /^0/ { 9202 s/^0 *\(.*\)$/\1/ 9203 p 9204 } 9205 }' 9206aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9207# Check for a 64-bit object if we didn't find anything. 9208if test -z "$aix_libpath"; then 9209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9210fi 9211fi 9212rm -f core conftest.err conftest.$ac_objext \ 9213 conftest$ac_exeext conftest.$ac_ext 9214if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9215 9216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9217 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" 9218 else 9219 if test "$host_cpu" = ia64; then 9220 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9221 allow_undefined_flag="-z nodefs" 9222 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" 9223 else 9224 # Determine the default libpath from the value encoded in an 9225 # empty executable. 9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9227/* end confdefs.h. */ 9228 9229int 9230main () 9231{ 9232 9233 ; 9234 return 0; 9235} 9236_ACEOF 9237if ac_fn_c_try_link "$LINENO"; then : 9238 9239lt_aix_libpath_sed=' 9240 /Import File Strings/,/^$/ { 9241 /^0/ { 9242 s/^0 *\(.*\)$/\1/ 9243 p 9244 } 9245 }' 9246aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9247# Check for a 64-bit object if we didn't find anything. 9248if test -z "$aix_libpath"; then 9249 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9250fi 9251fi 9252rm -f core conftest.err conftest.$ac_objext \ 9253 conftest$ac_exeext conftest.$ac_ext 9254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9255 9256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9257 # Warning - without using the other run time loading flags, 9258 # -berok will link without error, but may produce a broken library. 9259 no_undefined_flag=' ${wl}-bernotok' 9260 allow_undefined_flag=' ${wl}-berok' 9261 if test "$with_gnu_ld" = yes; then 9262 # We only use this code for GNU lds that support --whole-archive. 9263 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9264 else 9265 # Exported symbols can be pulled into shared objects from archives 9266 whole_archive_flag_spec='$convenience' 9267 fi 9268 archive_cmds_need_lc=yes 9269 # This is similar to how AIX traditionally builds its shared libraries. 9270 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' 9271 fi 9272 fi 9273 ;; 9274 9275 amigaos*) 9276 case $host_cpu in 9277 powerpc) 9278 # see comment about AmigaOS4 .so support 9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9280 archive_expsym_cmds='' 9281 ;; 9282 m68k) 9283 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)' 9284 hardcode_libdir_flag_spec='-L$libdir' 9285 hardcode_minus_L=yes 9286 ;; 9287 esac 9288 ;; 9289 9290 bsdi[45]*) 9291 export_dynamic_flag_spec=-rdynamic 9292 ;; 9293 9294 cygwin* | mingw* | pw32* | cegcc*) 9295 # When not using gcc, we currently assume that we are using 9296 # Microsoft Visual C++. 9297 # hardcode_libdir_flag_spec is actually meaningless, as there is 9298 # no search path for DLLs. 9299 hardcode_libdir_flag_spec=' ' 9300 allow_undefined_flag=unsupported 9301 # Tell ltmain to make .lib files, not .a files. 9302 libext=lib 9303 # Tell ltmain to make .dll files, not .so files. 9304 shrext_cmds=".dll" 9305 # FIXME: Setting linknames here is a bad hack. 9306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9307 # The linker will automatically build a .lib file if we build a DLL. 9308 old_archive_from_new_cmds='true' 9309 # FIXME: Should let the user specify the lib program. 9310 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9311 fix_srcfile_path='`cygpath -w "$srcfile"`' 9312 enable_shared_with_static_runtimes=yes 9313 ;; 9314 9315 darwin* | rhapsody*) 9316 9317 9318 archive_cmds_need_lc=no 9319 hardcode_direct=no 9320 hardcode_automatic=yes 9321 hardcode_shlibpath_var=unsupported 9322 if test "$lt_cv_ld_force_load" = "yes"; then 9323 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\"`' 9324 else 9325 whole_archive_flag_spec='' 9326 fi 9327 link_all_deplibs=yes 9328 allow_undefined_flag="$_lt_dar_allow_undefined" 9329 case $cc_basename in 9330 ifort*) _lt_dar_can_shared=yes ;; 9331 *) _lt_dar_can_shared=$GCC ;; 9332 esac 9333 if test "$_lt_dar_can_shared" = "yes"; then 9334 output_verbose_link_cmd=func_echo_all 9335 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9336 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9337 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}" 9338 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}" 9339 9340 else 9341 ld_shlibs=no 9342 fi 9343 9344 ;; 9345 9346 dgux*) 9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9348 hardcode_libdir_flag_spec='-L$libdir' 9349 hardcode_shlibpath_var=no 9350 ;; 9351 9352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9353 # support. Future versions do this automatically, but an explicit c++rt0.o 9354 # does not break anything, and helps significantly (at the cost of a little 9355 # extra space). 9356 freebsd2.2*) 9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9358 hardcode_libdir_flag_spec='-R$libdir' 9359 hardcode_direct=yes 9360 hardcode_shlibpath_var=no 9361 ;; 9362 9363 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9364 freebsd2.*) 9365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9366 hardcode_direct=yes 9367 hardcode_minus_L=yes 9368 hardcode_shlibpath_var=no 9369 ;; 9370 9371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9372 freebsd* | dragonfly*) 9373 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9374 hardcode_libdir_flag_spec='-R$libdir' 9375 hardcode_direct=yes 9376 hardcode_shlibpath_var=no 9377 ;; 9378 9379 hpux9*) 9380 if test "$GCC" = yes; then 9381 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' 9382 else 9383 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' 9384 fi 9385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9386 hardcode_libdir_separator=: 9387 hardcode_direct=yes 9388 9389 # hardcode_minus_L: Not really in the search PATH, 9390 # but as the default location of the library. 9391 hardcode_minus_L=yes 9392 export_dynamic_flag_spec='${wl}-E' 9393 ;; 9394 9395 hpux10*) 9396 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9398 else 9399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9400 fi 9401 if test "$with_gnu_ld" = no; then 9402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9403 hardcode_libdir_flag_spec_ld='+b $libdir' 9404 hardcode_libdir_separator=: 9405 hardcode_direct=yes 9406 hardcode_direct_absolute=yes 9407 export_dynamic_flag_spec='${wl}-E' 9408 # hardcode_minus_L: Not really in the search PATH, 9409 # but as the default location of the library. 9410 hardcode_minus_L=yes 9411 fi 9412 ;; 9413 9414 hpux11*) 9415 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9416 case $host_cpu in 9417 hppa*64*) 9418 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9419 ;; 9420 ia64*) 9421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9422 ;; 9423 *) 9424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9425 ;; 9426 esac 9427 else 9428 case $host_cpu in 9429 hppa*64*) 9430 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9431 ;; 9432 ia64*) 9433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9434 ;; 9435 *) 9436 9437 # Older versions of the 11.00 compiler do not understand -b yet 9438 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9440$as_echo_n "checking if $CC understands -b... " >&6; } 9441if test "${lt_cv_prog_compiler__b+set}" = set; then : 9442 $as_echo_n "(cached) " >&6 9443else 9444 lt_cv_prog_compiler__b=no 9445 save_LDFLAGS="$LDFLAGS" 9446 LDFLAGS="$LDFLAGS -b" 9447 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9449 # The linker can only warn and ignore the option if not recognized 9450 # So say no if there are warnings 9451 if test -s conftest.err; then 9452 # Append any errors to the config.log. 9453 cat conftest.err 1>&5 9454 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9456 if diff conftest.exp conftest.er2 >/dev/null; then 9457 lt_cv_prog_compiler__b=yes 9458 fi 9459 else 9460 lt_cv_prog_compiler__b=yes 9461 fi 9462 fi 9463 $RM -r conftest* 9464 LDFLAGS="$save_LDFLAGS" 9465 9466fi 9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9468$as_echo "$lt_cv_prog_compiler__b" >&6; } 9469 9470if test x"$lt_cv_prog_compiler__b" = xyes; then 9471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9472else 9473 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9474fi 9475 9476 ;; 9477 esac 9478 fi 9479 if test "$with_gnu_ld" = no; then 9480 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9481 hardcode_libdir_separator=: 9482 9483 case $host_cpu in 9484 hppa*64*|ia64*) 9485 hardcode_direct=no 9486 hardcode_shlibpath_var=no 9487 ;; 9488 *) 9489 hardcode_direct=yes 9490 hardcode_direct_absolute=yes 9491 export_dynamic_flag_spec='${wl}-E' 9492 9493 # hardcode_minus_L: Not really in the search PATH, 9494 # but as the default location of the library. 9495 hardcode_minus_L=yes 9496 ;; 9497 esac 9498 fi 9499 ;; 9500 9501 irix5* | irix6* | nonstopux*) 9502 if test "$GCC" = yes; then 9503 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' 9504 # Try to use the -exported_symbol ld option, if it does not 9505 # work, assume that -exports_file does not work either and 9506 # implicitly export all symbols. 9507 save_LDFLAGS="$LDFLAGS" 9508 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510/* end confdefs.h. */ 9511int foo(void) {} 9512_ACEOF 9513if ac_fn_c_try_link "$LINENO"; then : 9514 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' 9515 9516fi 9517rm -f core conftest.err conftest.$ac_objext \ 9518 conftest$ac_exeext conftest.$ac_ext 9519 LDFLAGS="$save_LDFLAGS" 9520 else 9521 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' 9522 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' 9523 fi 9524 archive_cmds_need_lc='no' 9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9526 hardcode_libdir_separator=: 9527 inherit_rpath=yes 9528 link_all_deplibs=yes 9529 ;; 9530 9531 netbsd*) 9532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9534 else 9535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9536 fi 9537 hardcode_libdir_flag_spec='-R$libdir' 9538 hardcode_direct=yes 9539 hardcode_shlibpath_var=no 9540 ;; 9541 9542 newsos6) 9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9544 hardcode_direct=yes 9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9546 hardcode_libdir_separator=: 9547 hardcode_shlibpath_var=no 9548 ;; 9549 9550 *nto* | *qnx*) 9551 ;; 9552 9553 openbsd*) 9554 if test -f /usr/libexec/ld.so; then 9555 hardcode_direct=yes 9556 hardcode_shlibpath_var=no 9557 hardcode_direct_absolute=yes 9558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9560 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9562 export_dynamic_flag_spec='${wl}-E' 9563 else 9564 case $host_os in 9565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9567 hardcode_libdir_flag_spec='-R$libdir' 9568 ;; 9569 *) 9570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9572 ;; 9573 esac 9574 fi 9575 else 9576 ld_shlibs=no 9577 fi 9578 ;; 9579 9580 os2*) 9581 hardcode_libdir_flag_spec='-L$libdir' 9582 hardcode_minus_L=yes 9583 allow_undefined_flag=unsupported 9584 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' 9585 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9586 ;; 9587 9588 osf3*) 9589 if test "$GCC" = yes; then 9590 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9591 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' 9592 else 9593 allow_undefined_flag=' -expect_unresolved \*' 9594 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' 9595 fi 9596 archive_cmds_need_lc='no' 9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9598 hardcode_libdir_separator=: 9599 ;; 9600 9601 osf4* | osf5*) # as osf3* with the addition of -msym flag 9602 if test "$GCC" = yes; then 9603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9604 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' 9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9606 else 9607 allow_undefined_flag=' -expect_unresolved \*' 9608 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' 9609 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~ 9610 $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' 9611 9612 # Both c and cxx compiler support -rpath directly 9613 hardcode_libdir_flag_spec='-rpath $libdir' 9614 fi 9615 archive_cmds_need_lc='no' 9616 hardcode_libdir_separator=: 9617 ;; 9618 9619 solaris*) 9620 no_undefined_flag=' -z defs' 9621 if test "$GCC" = yes; then 9622 wlarc='${wl}' 9623 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9625 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9626 else 9627 case `$CC -V 2>&1` in 9628 *"Compilers 5.0"*) 9629 wlarc='' 9630 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9633 ;; 9634 *) 9635 wlarc='${wl}' 9636 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9638 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9639 ;; 9640 esac 9641 fi 9642 hardcode_libdir_flag_spec='-R$libdir' 9643 hardcode_shlibpath_var=no 9644 case $host_os in 9645 solaris2.[0-5] | solaris2.[0-5].*) ;; 9646 *) 9647 # The compiler driver will combine and reorder linker options, 9648 # but understands `-z linker_flag'. GCC discards it without `$wl', 9649 # but is careful enough not to reorder. 9650 # Supported since Solaris 2.6 (maybe 2.5.1?) 9651 if test "$GCC" = yes; then 9652 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9653 else 9654 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9655 fi 9656 ;; 9657 esac 9658 link_all_deplibs=yes 9659 ;; 9660 9661 sunos4*) 9662 if test "x$host_vendor" = xsequent; then 9663 # Use $CC to link under sequent, because it throws in some extra .o 9664 # files that make .init and .fini sections work. 9665 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9666 else 9667 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9668 fi 9669 hardcode_libdir_flag_spec='-L$libdir' 9670 hardcode_direct=yes 9671 hardcode_minus_L=yes 9672 hardcode_shlibpath_var=no 9673 ;; 9674 9675 sysv4) 9676 case $host_vendor in 9677 sni) 9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9679 hardcode_direct=yes # is this really true??? 9680 ;; 9681 siemens) 9682 ## LD is ld it makes a PLAMLIB 9683 ## CC just makes a GrossModule. 9684 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9685 reload_cmds='$CC -r -o $output$reload_objs' 9686 hardcode_direct=no 9687 ;; 9688 motorola) 9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9690 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9691 ;; 9692 esac 9693 runpath_var='LD_RUN_PATH' 9694 hardcode_shlibpath_var=no 9695 ;; 9696 9697 sysv4.3*) 9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9699 hardcode_shlibpath_var=no 9700 export_dynamic_flag_spec='-Bexport' 9701 ;; 9702 9703 sysv4*MP*) 9704 if test -d /usr/nec; then 9705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9706 hardcode_shlibpath_var=no 9707 runpath_var=LD_RUN_PATH 9708 hardcode_runpath_var=yes 9709 ld_shlibs=yes 9710 fi 9711 ;; 9712 9713 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9714 no_undefined_flag='${wl}-z,text' 9715 archive_cmds_need_lc=no 9716 hardcode_shlibpath_var=no 9717 runpath_var='LD_RUN_PATH' 9718 9719 if test "$GCC" = yes; then 9720 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9722 else 9723 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9725 fi 9726 ;; 9727 9728 sysv5* | sco3.2v5* | sco5v6*) 9729 # Note: We can NOT use -z defs as we might desire, because we do not 9730 # link with -lc, and that would cause any symbols used from libc to 9731 # always be unresolved, which means just about no library would 9732 # ever link correctly. If we're not using GNU ld we use -z text 9733 # though, which does catch some bad symbols but isn't as heavy-handed 9734 # as -z defs. 9735 no_undefined_flag='${wl}-z,text' 9736 allow_undefined_flag='${wl}-z,nodefs' 9737 archive_cmds_need_lc=no 9738 hardcode_shlibpath_var=no 9739 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9740 hardcode_libdir_separator=':' 9741 link_all_deplibs=yes 9742 export_dynamic_flag_spec='${wl}-Bexport' 9743 runpath_var='LD_RUN_PATH' 9744 9745 if test "$GCC" = yes; then 9746 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9747 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9748 else 9749 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9750 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9751 fi 9752 ;; 9753 9754 uts4*) 9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9756 hardcode_libdir_flag_spec='-L$libdir' 9757 hardcode_shlibpath_var=no 9758 ;; 9759 9760 *) 9761 ld_shlibs=no 9762 ;; 9763 esac 9764 9765 if test x$host_vendor = xsni; then 9766 case $host in 9767 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9768 export_dynamic_flag_spec='${wl}-Blargedynsym' 9769 ;; 9770 esac 9771 fi 9772 fi 9773 9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9775$as_echo "$ld_shlibs" >&6; } 9776test "$ld_shlibs" = no && can_build_shared=no 9777 9778with_gnu_ld=$with_gnu_ld 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794# 9795# Do we need to explicitly link libc? 9796# 9797case "x$archive_cmds_need_lc" in 9798x|xyes) 9799 # Assume -lc should be added 9800 archive_cmds_need_lc=yes 9801 9802 if test "$enable_shared" = yes && test "$GCC" = yes; then 9803 case $archive_cmds in 9804 *'~'*) 9805 # FIXME: we may have to deal with multi-command sequences. 9806 ;; 9807 '$CC '*) 9808 # Test whether the compiler implicitly links with -lc since on some 9809 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9810 # to ld, don't add -lc before -lgcc. 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9812$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9813if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9814 $as_echo_n "(cached) " >&6 9815else 9816 $RM conftest* 9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9818 9819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9820 (eval $ac_compile) 2>&5 9821 ac_status=$? 9822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9823 test $ac_status = 0; } 2>conftest.err; then 9824 soname=conftest 9825 lib=conftest 9826 libobjs=conftest.$ac_objext 9827 deplibs= 9828 wl=$lt_prog_compiler_wl 9829 pic_flag=$lt_prog_compiler_pic 9830 compiler_flags=-v 9831 linker_flags=-v 9832 verstring= 9833 output_objdir=. 9834 libname=conftest 9835 lt_save_allow_undefined_flag=$allow_undefined_flag 9836 allow_undefined_flag= 9837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9838 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9839 ac_status=$? 9840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9841 test $ac_status = 0; } 9842 then 9843 lt_cv_archive_cmds_need_lc=no 9844 else 9845 lt_cv_archive_cmds_need_lc=yes 9846 fi 9847 allow_undefined_flag=$lt_save_allow_undefined_flag 9848 else 9849 cat conftest.err 1>&5 9850 fi 9851 $RM conftest* 9852 9853fi 9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9855$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9856 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9857 ;; 9858 esac 9859 fi 9860 ;; 9861esac 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10020$as_echo_n "checking dynamic linker characteristics... " >&6; } 10021 10022if test "$GCC" = yes; then 10023 case $host_os in 10024 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10025 *) lt_awk_arg="/^libraries:/" ;; 10026 esac 10027 case $host_os in 10028 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10029 *) lt_sed_strip_eq="s,=/,/,g" ;; 10030 esac 10031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10032 case $lt_search_path_spec in 10033 *\;*) 10034 # if the path contains ";" then we assume it to be the separator 10035 # otherwise default to the standard path separator (i.e. ":") - it is 10036 # assumed that no part of a normal pathname contains ";" but that should 10037 # okay in the real world where ";" in dirpaths is itself problematic. 10038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10039 ;; 10040 *) 10041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10042 ;; 10043 esac 10044 # Ok, now we have the path, separated by spaces, we can step through it 10045 # and add multilib dir if necessary. 10046 lt_tmp_lt_search_path_spec= 10047 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10048 for lt_sys_path in $lt_search_path_spec; do 10049 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10051 else 10052 test -d "$lt_sys_path" && \ 10053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10054 fi 10055 done 10056 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10057BEGIN {RS=" "; FS="/|\n";} { 10058 lt_foo=""; 10059 lt_count=0; 10060 for (lt_i = NF; lt_i > 0; lt_i--) { 10061 if ($lt_i != "" && $lt_i != ".") { 10062 if ($lt_i == "..") { 10063 lt_count++; 10064 } else { 10065 if (lt_count == 0) { 10066 lt_foo="/" $lt_i lt_foo; 10067 } else { 10068 lt_count--; 10069 } 10070 } 10071 } 10072 } 10073 if (lt_foo != "") { lt_freq[lt_foo]++; } 10074 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10075}'` 10076 # AWK program above erroneously prepends '/' to C:/dos/paths 10077 # for these hosts. 10078 case $host_os in 10079 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10080 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10081 esac 10082 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10083else 10084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10085fi 10086library_names_spec= 10087libname_spec='lib$name' 10088soname_spec= 10089shrext_cmds=".so" 10090postinstall_cmds= 10091postuninstall_cmds= 10092finish_cmds= 10093finish_eval= 10094shlibpath_var= 10095shlibpath_overrides_runpath=unknown 10096version_type=none 10097dynamic_linker="$host_os ld.so" 10098sys_lib_dlsearch_path_spec="/lib /usr/lib" 10099need_lib_prefix=unknown 10100hardcode_into_libs=no 10101 10102# when you set need_version to no, make sure it does not cause -set_version 10103# flags to be left without arguments 10104need_version=unknown 10105 10106case $host_os in 10107aix3*) 10108 version_type=linux 10109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10110 shlibpath_var=LIBPATH 10111 10112 # AIX 3 has no versioning support, so we append a major version to the name. 10113 soname_spec='${libname}${release}${shared_ext}$major' 10114 ;; 10115 10116aix[4-9]*) 10117 version_type=linux 10118 need_lib_prefix=no 10119 need_version=no 10120 hardcode_into_libs=yes 10121 if test "$host_cpu" = ia64; then 10122 # AIX 5 supports IA64 10123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10124 shlibpath_var=LD_LIBRARY_PATH 10125 else 10126 # With GCC up to 2.95.x, collect2 would create an import file 10127 # for dependence libraries. The import file would start with 10128 # the line `#! .'. This would cause the generated library to 10129 # depend on `.', always an invalid library. This was fixed in 10130 # development snapshots of GCC prior to 3.0. 10131 case $host_os in 10132 aix4 | aix4.[01] | aix4.[01].*) 10133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10134 echo ' yes ' 10135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10136 : 10137 else 10138 can_build_shared=no 10139 fi 10140 ;; 10141 esac 10142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10143 # soname into executable. Probably we can add versioning support to 10144 # collect2, so additional links can be useful in future. 10145 if test "$aix_use_runtimelinking" = yes; then 10146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10147 # instead of lib<name>.a to let people know that these are not 10148 # typical AIX shared libraries. 10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10150 else 10151 # We preserve .a as extension for shared libraries through AIX4.2 10152 # and later when we are not doing run time linking. 10153 library_names_spec='${libname}${release}.a $libname.a' 10154 soname_spec='${libname}${release}${shared_ext}$major' 10155 fi 10156 shlibpath_var=LIBPATH 10157 fi 10158 ;; 10159 10160amigaos*) 10161 case $host_cpu in 10162 powerpc) 10163 # Since July 2007 AmigaOS4 officially supports .so libraries. 10164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10166 ;; 10167 m68k) 10168 library_names_spec='$libname.ixlibrary $libname.a' 10169 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10170 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' 10171 ;; 10172 esac 10173 ;; 10174 10175beos*) 10176 library_names_spec='${libname}${shared_ext}' 10177 dynamic_linker="$host_os ld.so" 10178 shlibpath_var=LIBRARY_PATH 10179 ;; 10180 10181bsdi[45]*) 10182 version_type=linux 10183 need_version=no 10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10185 soname_spec='${libname}${release}${shared_ext}$major' 10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10187 shlibpath_var=LD_LIBRARY_PATH 10188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10190 # the default ld.so.conf also contains /usr/contrib/lib and 10191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10192 # libtool to hard-code these into programs 10193 ;; 10194 10195cygwin* | mingw* | pw32* | cegcc*) 10196 version_type=windows 10197 shrext_cmds=".dll" 10198 need_version=no 10199 need_lib_prefix=no 10200 10201 case $GCC,$host_os in 10202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10203 library_names_spec='$libname.dll.a' 10204 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10205 postinstall_cmds='base_file=`basename \${file}`~ 10206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10207 dldir=$destdir/`dirname \$dlpath`~ 10208 test -d \$dldir || mkdir -p \$dldir~ 10209 $install_prog $dir/$dlname \$dldir/$dlname~ 10210 chmod a+x \$dldir/$dlname~ 10211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10213 fi' 10214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10215 dlpath=$dir/\$dldll~ 10216 $RM \$dlpath' 10217 shlibpath_overrides_runpath=yes 10218 10219 case $host_os in 10220 cygwin*) 10221 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10223 10224 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10225 ;; 10226 mingw* | cegcc*) 10227 # MinGW DLLs use traditional 'lib' prefix 10228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10229 ;; 10230 pw32*) 10231 # pw32 DLLs use 'pw' prefix rather than 'lib' 10232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10233 ;; 10234 esac 10235 ;; 10236 10237 *) 10238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10239 ;; 10240 esac 10241 dynamic_linker='Win32 ld.exe' 10242 # FIXME: first we should search . and the directory the executable is in 10243 shlibpath_var=PATH 10244 ;; 10245 10246darwin* | rhapsody*) 10247 dynamic_linker="$host_os dyld" 10248 version_type=darwin 10249 need_lib_prefix=no 10250 need_version=no 10251 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10252 soname_spec='${libname}${release}${major}$shared_ext' 10253 shlibpath_overrides_runpath=yes 10254 shlibpath_var=DYLD_LIBRARY_PATH 10255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10256 10257 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10259 ;; 10260 10261dgux*) 10262 version_type=linux 10263 need_lib_prefix=no 10264 need_version=no 10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10266 soname_spec='${libname}${release}${shared_ext}$major' 10267 shlibpath_var=LD_LIBRARY_PATH 10268 ;; 10269 10270freebsd* | dragonfly*) 10271 # DragonFly does not have aout. When/if they implement a new 10272 # versioning mechanism, adjust this. 10273 if test -x /usr/bin/objformat; then 10274 objformat=`/usr/bin/objformat` 10275 else 10276 case $host_os in 10277 freebsd[23].*) objformat=aout ;; 10278 *) objformat=elf ;; 10279 esac 10280 fi 10281 version_type=freebsd-$objformat 10282 case $version_type in 10283 freebsd-elf*) 10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10285 need_version=no 10286 need_lib_prefix=no 10287 ;; 10288 freebsd-*) 10289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10290 need_version=yes 10291 ;; 10292 esac 10293 shlibpath_var=LD_LIBRARY_PATH 10294 case $host_os in 10295 freebsd2.*) 10296 shlibpath_overrides_runpath=yes 10297 ;; 10298 freebsd3.[01]* | freebsdelf3.[01]*) 10299 shlibpath_overrides_runpath=yes 10300 hardcode_into_libs=yes 10301 ;; 10302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10304 shlibpath_overrides_runpath=no 10305 hardcode_into_libs=yes 10306 ;; 10307 *) # from 4.6 on, and DragonFly 10308 shlibpath_overrides_runpath=yes 10309 hardcode_into_libs=yes 10310 ;; 10311 esac 10312 ;; 10313 10314gnu*) 10315 version_type=linux 10316 need_lib_prefix=no 10317 need_version=no 10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10319 soname_spec='${libname}${release}${shared_ext}$major' 10320 shlibpath_var=LD_LIBRARY_PATH 10321 hardcode_into_libs=yes 10322 ;; 10323 10324haiku*) 10325 version_type=linux 10326 need_lib_prefix=no 10327 need_version=no 10328 dynamic_linker="$host_os runtime_loader" 10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10330 soname_spec='${libname}${release}${shared_ext}$major' 10331 shlibpath_var=LIBRARY_PATH 10332 shlibpath_overrides_runpath=yes 10333 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10334 hardcode_into_libs=yes 10335 ;; 10336 10337hpux9* | hpux10* | hpux11*) 10338 # Give a soname corresponding to the major version so that dld.sl refuses to 10339 # link against other versions. 10340 version_type=sunos 10341 need_lib_prefix=no 10342 need_version=no 10343 case $host_cpu in 10344 ia64*) 10345 shrext_cmds='.so' 10346 hardcode_into_libs=yes 10347 dynamic_linker="$host_os dld.so" 10348 shlibpath_var=LD_LIBRARY_PATH 10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10351 soname_spec='${libname}${release}${shared_ext}$major' 10352 if test "X$HPUX_IA64_MODE" = X32; then 10353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10354 else 10355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10356 fi 10357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10358 ;; 10359 hppa*64*) 10360 shrext_cmds='.sl' 10361 hardcode_into_libs=yes 10362 dynamic_linker="$host_os dld.sl" 10363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10366 soname_spec='${libname}${release}${shared_ext}$major' 10367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10369 ;; 10370 *) 10371 shrext_cmds='.sl' 10372 dynamic_linker="$host_os dld.sl" 10373 shlibpath_var=SHLIB_PATH 10374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10376 soname_spec='${libname}${release}${shared_ext}$major' 10377 ;; 10378 esac 10379 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10380 postinstall_cmds='chmod 555 $lib' 10381 # or fails outright, so override atomically: 10382 install_override_mode=555 10383 ;; 10384 10385interix[3-9]*) 10386 version_type=linux 10387 need_lib_prefix=no 10388 need_version=no 10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10390 soname_spec='${libname}${release}${shared_ext}$major' 10391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10392 shlibpath_var=LD_LIBRARY_PATH 10393 shlibpath_overrides_runpath=no 10394 hardcode_into_libs=yes 10395 ;; 10396 10397irix5* | irix6* | nonstopux*) 10398 case $host_os in 10399 nonstopux*) version_type=nonstopux ;; 10400 *) 10401 if test "$lt_cv_prog_gnu_ld" = yes; then 10402 version_type=linux 10403 else 10404 version_type=irix 10405 fi ;; 10406 esac 10407 need_lib_prefix=no 10408 need_version=no 10409 soname_spec='${libname}${release}${shared_ext}$major' 10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10411 case $host_os in 10412 irix5* | nonstopux*) 10413 libsuff= shlibsuff= 10414 ;; 10415 *) 10416 case $LD in # libtool.m4 will add one of these switches to LD 10417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10418 libsuff= shlibsuff= libmagic=32-bit;; 10419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10420 libsuff=32 shlibsuff=N32 libmagic=N32;; 10421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10422 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10423 *) libsuff= shlibsuff= libmagic=never-match;; 10424 esac 10425 ;; 10426 esac 10427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10428 shlibpath_overrides_runpath=no 10429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10431 hardcode_into_libs=yes 10432 ;; 10433 10434# No shared lib support for Linux oldld, aout, or coff. 10435linux*oldld* | linux*aout* | linux*coff*) 10436 dynamic_linker=no 10437 ;; 10438 10439# This must be Linux ELF. 10440linux* | k*bsd*-gnu | kopensolaris*-gnu) 10441 version_type=linux 10442 need_lib_prefix=no 10443 need_version=no 10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10445 soname_spec='${libname}${release}${shared_ext}$major' 10446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10447 shlibpath_var=LD_LIBRARY_PATH 10448 shlibpath_overrides_runpath=no 10449 10450 # Some binutils ld are patched to set DT_RUNPATH 10451 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10452 $as_echo_n "(cached) " >&6 10453else 10454 lt_cv_shlibpath_overrides_runpath=no 10455 save_LDFLAGS=$LDFLAGS 10456 save_libdir=$libdir 10457 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10458 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460/* end confdefs.h. */ 10461 10462int 10463main () 10464{ 10465 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470if ac_fn_c_try_link "$LINENO"; then : 10471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10472 lt_cv_shlibpath_overrides_runpath=yes 10473fi 10474fi 10475rm -f core conftest.err conftest.$ac_objext \ 10476 conftest$ac_exeext conftest.$ac_ext 10477 LDFLAGS=$save_LDFLAGS 10478 libdir=$save_libdir 10479 10480fi 10481 10482 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10483 10484 # This implies no fast_install, which is unacceptable. 10485 # Some rework will be needed to allow for fast_install 10486 # before this can be enabled. 10487 hardcode_into_libs=yes 10488 10489 # Append ld.so.conf contents to the search path 10490 if test -f /etc/ld.so.conf; then 10491 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' ' '` 10492 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10493 fi 10494 10495 # We used to test for /lib/ld.so.1 and disable shared libraries on 10496 # powerpc, because MkLinux only supported shared libraries with the 10497 # GNU dynamic linker. Since this was broken with cross compilers, 10498 # most powerpc-linux boxes support dynamic linking these days and 10499 # people can always --disable-shared, the test was removed, and we 10500 # assume the GNU/Linux dynamic linker is in use. 10501 dynamic_linker='GNU/Linux ld.so' 10502 ;; 10503 10504netbsd*) 10505 version_type=sunos 10506 need_lib_prefix=no 10507 need_version=no 10508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10511 dynamic_linker='NetBSD (a.out) ld.so' 10512 else 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 dynamic_linker='NetBSD ld.elf_so' 10516 fi 10517 shlibpath_var=LD_LIBRARY_PATH 10518 shlibpath_overrides_runpath=yes 10519 hardcode_into_libs=yes 10520 ;; 10521 10522newsos6) 10523 version_type=linux 10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10525 shlibpath_var=LD_LIBRARY_PATH 10526 shlibpath_overrides_runpath=yes 10527 ;; 10528 10529*nto* | *qnx*) 10530 version_type=qnx 10531 need_lib_prefix=no 10532 need_version=no 10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10534 soname_spec='${libname}${release}${shared_ext}$major' 10535 shlibpath_var=LD_LIBRARY_PATH 10536 shlibpath_overrides_runpath=no 10537 hardcode_into_libs=yes 10538 dynamic_linker='ldqnx.so' 10539 ;; 10540 10541openbsd*) 10542 version_type=sunos 10543 sys_lib_dlsearch_path_spec="/usr/lib" 10544 need_lib_prefix=no 10545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10546 case $host_os in 10547 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10548 *) need_version=no ;; 10549 esac 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10552 shlibpath_var=LD_LIBRARY_PATH 10553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10554 case $host_os in 10555 openbsd2.[89] | openbsd2.[89].*) 10556 shlibpath_overrides_runpath=no 10557 ;; 10558 *) 10559 shlibpath_overrides_runpath=yes 10560 ;; 10561 esac 10562 else 10563 shlibpath_overrides_runpath=yes 10564 fi 10565 ;; 10566 10567os2*) 10568 libname_spec='$name' 10569 shrext_cmds=".dll" 10570 need_lib_prefix=no 10571 library_names_spec='$libname${shared_ext} $libname.a' 10572 dynamic_linker='OS/2 ld.exe' 10573 shlibpath_var=LIBPATH 10574 ;; 10575 10576osf3* | osf4* | osf5*) 10577 version_type=osf 10578 need_lib_prefix=no 10579 need_version=no 10580 soname_spec='${libname}${release}${shared_ext}$major' 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10582 shlibpath_var=LD_LIBRARY_PATH 10583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10585 ;; 10586 10587rdos*) 10588 dynamic_linker=no 10589 ;; 10590 10591solaris*) 10592 version_type=linux 10593 need_lib_prefix=no 10594 need_version=no 10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10596 soname_spec='${libname}${release}${shared_ext}$major' 10597 shlibpath_var=LD_LIBRARY_PATH 10598 shlibpath_overrides_runpath=yes 10599 hardcode_into_libs=yes 10600 # ldd complains unless libraries are executable 10601 postinstall_cmds='chmod +x $lib' 10602 ;; 10603 10604sunos4*) 10605 version_type=sunos 10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10608 shlibpath_var=LD_LIBRARY_PATH 10609 shlibpath_overrides_runpath=yes 10610 if test "$with_gnu_ld" = yes; then 10611 need_lib_prefix=no 10612 fi 10613 need_version=yes 10614 ;; 10615 10616sysv4 | sysv4.3*) 10617 version_type=linux 10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10619 soname_spec='${libname}${release}${shared_ext}$major' 10620 shlibpath_var=LD_LIBRARY_PATH 10621 case $host_vendor in 10622 sni) 10623 shlibpath_overrides_runpath=no 10624 need_lib_prefix=no 10625 runpath_var=LD_RUN_PATH 10626 ;; 10627 siemens) 10628 need_lib_prefix=no 10629 ;; 10630 motorola) 10631 need_lib_prefix=no 10632 need_version=no 10633 shlibpath_overrides_runpath=no 10634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10635 ;; 10636 esac 10637 ;; 10638 10639sysv4*MP*) 10640 if test -d /usr/nec ;then 10641 version_type=linux 10642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10643 soname_spec='$libname${shared_ext}.$major' 10644 shlibpath_var=LD_LIBRARY_PATH 10645 fi 10646 ;; 10647 10648sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10649 version_type=freebsd-elf 10650 need_lib_prefix=no 10651 need_version=no 10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10653 soname_spec='${libname}${release}${shared_ext}$major' 10654 shlibpath_var=LD_LIBRARY_PATH 10655 shlibpath_overrides_runpath=yes 10656 hardcode_into_libs=yes 10657 if test "$with_gnu_ld" = yes; then 10658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10659 else 10660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10661 case $host_os in 10662 sco3.2v5*) 10663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10664 ;; 10665 esac 10666 fi 10667 sys_lib_dlsearch_path_spec='/usr/lib' 10668 ;; 10669 10670tpf*) 10671 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10672 version_type=linux 10673 need_lib_prefix=no 10674 need_version=no 10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10676 shlibpath_var=LD_LIBRARY_PATH 10677 shlibpath_overrides_runpath=no 10678 hardcode_into_libs=yes 10679 ;; 10680 10681uts4*) 10682 version_type=linux 10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10684 soname_spec='${libname}${release}${shared_ext}$major' 10685 shlibpath_var=LD_LIBRARY_PATH 10686 ;; 10687 10688*) 10689 dynamic_linker=no 10690 ;; 10691esac 10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10693$as_echo "$dynamic_linker" >&6; } 10694test "$dynamic_linker" = no && can_build_shared=no 10695 10696variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10697if test "$GCC" = yes; then 10698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10699fi 10700 10701if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10703fi 10704if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10706fi 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10800$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10801hardcode_action= 10802if test -n "$hardcode_libdir_flag_spec" || 10803 test -n "$runpath_var" || 10804 test "X$hardcode_automatic" = "Xyes" ; then 10805 10806 # We can hardcode non-existent directories. 10807 if test "$hardcode_direct" != no && 10808 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10809 # have to relink, otherwise we might link with an installed library 10810 # when we should be linking with a yet-to-be-installed one 10811 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10812 test "$hardcode_minus_L" != no; then 10813 # Linking always hardcodes the temporary library directory. 10814 hardcode_action=relink 10815 else 10816 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10817 hardcode_action=immediate 10818 fi 10819else 10820 # We cannot hardcode anything, or else we can only hardcode existing 10821 # directories. 10822 hardcode_action=unsupported 10823fi 10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10825$as_echo "$hardcode_action" >&6; } 10826 10827if test "$hardcode_action" = relink || 10828 test "$inherit_rpath" = yes; then 10829 # Fast installation is not supported 10830 enable_fast_install=no 10831elif test "$shlibpath_overrides_runpath" = yes || 10832 test "$enable_shared" = no; then 10833 # Fast installation is not necessary 10834 enable_fast_install=needless 10835fi 10836 10837 10838 10839 10840 10841 10842 if test "x$enable_dlopen" != xyes; then 10843 enable_dlopen=unknown 10844 enable_dlopen_self=unknown 10845 enable_dlopen_self_static=unknown 10846else 10847 lt_cv_dlopen=no 10848 lt_cv_dlopen_libs= 10849 10850 case $host_os in 10851 beos*) 10852 lt_cv_dlopen="load_add_on" 10853 lt_cv_dlopen_libs= 10854 lt_cv_dlopen_self=yes 10855 ;; 10856 10857 mingw* | pw32* | cegcc*) 10858 lt_cv_dlopen="LoadLibrary" 10859 lt_cv_dlopen_libs= 10860 ;; 10861 10862 cygwin*) 10863 lt_cv_dlopen="dlopen" 10864 lt_cv_dlopen_libs= 10865 ;; 10866 10867 darwin*) 10868 # if libdl is installed we need to link against it 10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10870$as_echo_n "checking for dlopen in -ldl... " >&6; } 10871if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10872 $as_echo_n "(cached) " >&6 10873else 10874 ac_check_lib_save_LIBS=$LIBS 10875LIBS="-ldl $LIBS" 10876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877/* end confdefs.h. */ 10878 10879/* Override any GCC internal prototype to avoid an error. 10880 Use char because int might match the return type of a GCC 10881 builtin and then its argument prototype would still apply. */ 10882#ifdef __cplusplus 10883extern "C" 10884#endif 10885char dlopen (); 10886int 10887main () 10888{ 10889return dlopen (); 10890 ; 10891 return 0; 10892} 10893_ACEOF 10894if ac_fn_c_try_link "$LINENO"; then : 10895 ac_cv_lib_dl_dlopen=yes 10896else 10897 ac_cv_lib_dl_dlopen=no 10898fi 10899rm -f core conftest.err conftest.$ac_objext \ 10900 conftest$ac_exeext conftest.$ac_ext 10901LIBS=$ac_check_lib_save_LIBS 10902fi 10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10904$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10905if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10907else 10908 10909 lt_cv_dlopen="dyld" 10910 lt_cv_dlopen_libs= 10911 lt_cv_dlopen_self=yes 10912 10913fi 10914 10915 ;; 10916 10917 *) 10918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10919if test "x$ac_cv_func_shl_load" = x""yes; then : 10920 lt_cv_dlopen="shl_load" 10921else 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10923$as_echo_n "checking for shl_load in -ldld... " >&6; } 10924if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10925 $as_echo_n "(cached) " >&6 10926else 10927 ac_check_lib_save_LIBS=$LIBS 10928LIBS="-ldld $LIBS" 10929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10930/* end confdefs.h. */ 10931 10932/* Override any GCC internal prototype to avoid an error. 10933 Use char because int might match the return type of a GCC 10934 builtin and then its argument prototype would still apply. */ 10935#ifdef __cplusplus 10936extern "C" 10937#endif 10938char shl_load (); 10939int 10940main () 10941{ 10942return shl_load (); 10943 ; 10944 return 0; 10945} 10946_ACEOF 10947if ac_fn_c_try_link "$LINENO"; then : 10948 ac_cv_lib_dld_shl_load=yes 10949else 10950 ac_cv_lib_dld_shl_load=no 10951fi 10952rm -f core conftest.err conftest.$ac_objext \ 10953 conftest$ac_exeext conftest.$ac_ext 10954LIBS=$ac_check_lib_save_LIBS 10955fi 10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10957$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10958if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10959 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10960else 10961 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10962if test "x$ac_cv_func_dlopen" = x""yes; then : 10963 lt_cv_dlopen="dlopen" 10964else 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10966$as_echo_n "checking for dlopen in -ldl... " >&6; } 10967if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10968 $as_echo_n "(cached) " >&6 10969else 10970 ac_check_lib_save_LIBS=$LIBS 10971LIBS="-ldl $LIBS" 10972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10973/* end confdefs.h. */ 10974 10975/* Override any GCC internal prototype to avoid an error. 10976 Use char because int might match the return type of a GCC 10977 builtin and then its argument prototype would still apply. */ 10978#ifdef __cplusplus 10979extern "C" 10980#endif 10981char dlopen (); 10982int 10983main () 10984{ 10985return dlopen (); 10986 ; 10987 return 0; 10988} 10989_ACEOF 10990if ac_fn_c_try_link "$LINENO"; then : 10991 ac_cv_lib_dl_dlopen=yes 10992else 10993 ac_cv_lib_dl_dlopen=no 10994fi 10995rm -f core conftest.err conftest.$ac_objext \ 10996 conftest$ac_exeext conftest.$ac_ext 10997LIBS=$ac_check_lib_save_LIBS 10998fi 10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11000$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11001if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11003else 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11005$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11006if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 ac_check_lib_save_LIBS=$LIBS 11010LIBS="-lsvld $LIBS" 11011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11012/* end confdefs.h. */ 11013 11014/* Override any GCC internal prototype to avoid an error. 11015 Use char because int might match the return type of a GCC 11016 builtin and then its argument prototype would still apply. */ 11017#ifdef __cplusplus 11018extern "C" 11019#endif 11020char dlopen (); 11021int 11022main () 11023{ 11024return dlopen (); 11025 ; 11026 return 0; 11027} 11028_ACEOF 11029if ac_fn_c_try_link "$LINENO"; then : 11030 ac_cv_lib_svld_dlopen=yes 11031else 11032 ac_cv_lib_svld_dlopen=no 11033fi 11034rm -f core conftest.err conftest.$ac_objext \ 11035 conftest$ac_exeext conftest.$ac_ext 11036LIBS=$ac_check_lib_save_LIBS 11037fi 11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11039$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11040if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11042else 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11044$as_echo_n "checking for dld_link in -ldld... " >&6; } 11045if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11046 $as_echo_n "(cached) " >&6 11047else 11048 ac_check_lib_save_LIBS=$LIBS 11049LIBS="-ldld $LIBS" 11050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11051/* end confdefs.h. */ 11052 11053/* Override any GCC internal prototype to avoid an error. 11054 Use char because int might match the return type of a GCC 11055 builtin and then its argument prototype would still apply. */ 11056#ifdef __cplusplus 11057extern "C" 11058#endif 11059char dld_link (); 11060int 11061main () 11062{ 11063return dld_link (); 11064 ; 11065 return 0; 11066} 11067_ACEOF 11068if ac_fn_c_try_link "$LINENO"; then : 11069 ac_cv_lib_dld_dld_link=yes 11070else 11071 ac_cv_lib_dld_dld_link=no 11072fi 11073rm -f core conftest.err conftest.$ac_objext \ 11074 conftest$ac_exeext conftest.$ac_ext 11075LIBS=$ac_check_lib_save_LIBS 11076fi 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11078$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11079if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11080 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11081fi 11082 11083 11084fi 11085 11086 11087fi 11088 11089 11090fi 11091 11092 11093fi 11094 11095 11096fi 11097 11098 ;; 11099 esac 11100 11101 if test "x$lt_cv_dlopen" != xno; then 11102 enable_dlopen=yes 11103 else 11104 enable_dlopen=no 11105 fi 11106 11107 case $lt_cv_dlopen in 11108 dlopen) 11109 save_CPPFLAGS="$CPPFLAGS" 11110 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11111 11112 save_LDFLAGS="$LDFLAGS" 11113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11114 11115 save_LIBS="$LIBS" 11116 LIBS="$lt_cv_dlopen_libs $LIBS" 11117 11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11119$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11120if test "${lt_cv_dlopen_self+set}" = set; then : 11121 $as_echo_n "(cached) " >&6 11122else 11123 if test "$cross_compiling" = yes; then : 11124 lt_cv_dlopen_self=cross 11125else 11126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11127 lt_status=$lt_dlunknown 11128 cat > conftest.$ac_ext <<_LT_EOF 11129#line 11129 "configure" 11130#include "confdefs.h" 11131 11132#if HAVE_DLFCN_H 11133#include <dlfcn.h> 11134#endif 11135 11136#include <stdio.h> 11137 11138#ifdef RTLD_GLOBAL 11139# define LT_DLGLOBAL RTLD_GLOBAL 11140#else 11141# ifdef DL_GLOBAL 11142# define LT_DLGLOBAL DL_GLOBAL 11143# else 11144# define LT_DLGLOBAL 0 11145# endif 11146#endif 11147 11148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11149 find out it does not work in some platform. */ 11150#ifndef LT_DLLAZY_OR_NOW 11151# ifdef RTLD_LAZY 11152# define LT_DLLAZY_OR_NOW RTLD_LAZY 11153# else 11154# ifdef DL_LAZY 11155# define LT_DLLAZY_OR_NOW DL_LAZY 11156# else 11157# ifdef RTLD_NOW 11158# define LT_DLLAZY_OR_NOW RTLD_NOW 11159# else 11160# ifdef DL_NOW 11161# define LT_DLLAZY_OR_NOW DL_NOW 11162# else 11163# define LT_DLLAZY_OR_NOW 0 11164# endif 11165# endif 11166# endif 11167# endif 11168#endif 11169 11170/* When -fvisbility=hidden is used, assume the code has been annotated 11171 correspondingly for the symbols needed. */ 11172#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11173void fnord () __attribute__((visibility("default"))); 11174#endif 11175 11176void fnord () { int i=42; } 11177int main () 11178{ 11179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11180 int status = $lt_dlunknown; 11181 11182 if (self) 11183 { 11184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11185 else 11186 { 11187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11188 else puts (dlerror ()); 11189 } 11190 /* dlclose (self); */ 11191 } 11192 else 11193 puts (dlerror ()); 11194 11195 return status; 11196} 11197_LT_EOF 11198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11199 (eval $ac_link) 2>&5 11200 ac_status=$? 11201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11202 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11203 (./conftest; exit; ) >&5 2>/dev/null 11204 lt_status=$? 11205 case x$lt_status in 11206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11209 esac 11210 else : 11211 # compilation failed 11212 lt_cv_dlopen_self=no 11213 fi 11214fi 11215rm -fr conftest* 11216 11217 11218fi 11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11220$as_echo "$lt_cv_dlopen_self" >&6; } 11221 11222 if test "x$lt_cv_dlopen_self" = xyes; then 11223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11225$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11226if test "${lt_cv_dlopen_self_static+set}" = set; then : 11227 $as_echo_n "(cached) " >&6 11228else 11229 if test "$cross_compiling" = yes; then : 11230 lt_cv_dlopen_self_static=cross 11231else 11232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11233 lt_status=$lt_dlunknown 11234 cat > conftest.$ac_ext <<_LT_EOF 11235#line 11235 "configure" 11236#include "confdefs.h" 11237 11238#if HAVE_DLFCN_H 11239#include <dlfcn.h> 11240#endif 11241 11242#include <stdio.h> 11243 11244#ifdef RTLD_GLOBAL 11245# define LT_DLGLOBAL RTLD_GLOBAL 11246#else 11247# ifdef DL_GLOBAL 11248# define LT_DLGLOBAL DL_GLOBAL 11249# else 11250# define LT_DLGLOBAL 0 11251# endif 11252#endif 11253 11254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11255 find out it does not work in some platform. */ 11256#ifndef LT_DLLAZY_OR_NOW 11257# ifdef RTLD_LAZY 11258# define LT_DLLAZY_OR_NOW RTLD_LAZY 11259# else 11260# ifdef DL_LAZY 11261# define LT_DLLAZY_OR_NOW DL_LAZY 11262# else 11263# ifdef RTLD_NOW 11264# define LT_DLLAZY_OR_NOW RTLD_NOW 11265# else 11266# ifdef DL_NOW 11267# define LT_DLLAZY_OR_NOW DL_NOW 11268# else 11269# define LT_DLLAZY_OR_NOW 0 11270# endif 11271# endif 11272# endif 11273# endif 11274#endif 11275 11276/* When -fvisbility=hidden is used, assume the code has been annotated 11277 correspondingly for the symbols needed. */ 11278#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11279void fnord () __attribute__((visibility("default"))); 11280#endif 11281 11282void fnord () { int i=42; } 11283int main () 11284{ 11285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11286 int status = $lt_dlunknown; 11287 11288 if (self) 11289 { 11290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11291 else 11292 { 11293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11294 else puts (dlerror ()); 11295 } 11296 /* dlclose (self); */ 11297 } 11298 else 11299 puts (dlerror ()); 11300 11301 return status; 11302} 11303_LT_EOF 11304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11305 (eval $ac_link) 2>&5 11306 ac_status=$? 11307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11308 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11309 (./conftest; exit; ) >&5 2>/dev/null 11310 lt_status=$? 11311 case x$lt_status in 11312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11314 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11315 esac 11316 else : 11317 # compilation failed 11318 lt_cv_dlopen_self_static=no 11319 fi 11320fi 11321rm -fr conftest* 11322 11323 11324fi 11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11326$as_echo "$lt_cv_dlopen_self_static" >&6; } 11327 fi 11328 11329 CPPFLAGS="$save_CPPFLAGS" 11330 LDFLAGS="$save_LDFLAGS" 11331 LIBS="$save_LIBS" 11332 ;; 11333 esac 11334 11335 case $lt_cv_dlopen_self in 11336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11337 *) enable_dlopen_self=unknown ;; 11338 esac 11339 11340 case $lt_cv_dlopen_self_static in 11341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11342 *) enable_dlopen_self_static=unknown ;; 11343 esac 11344fi 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362striplib= 11363old_striplib= 11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11365$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11366if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11368 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11370$as_echo "yes" >&6; } 11371else 11372# FIXME - insert some real tests, host_os isn't really good enough 11373 case $host_os in 11374 darwin*) 11375 if test -n "$STRIP" ; then 11376 striplib="$STRIP -x" 11377 old_striplib="$STRIP -S" 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11379$as_echo "yes" >&6; } 11380 else 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11382$as_echo "no" >&6; } 11383 fi 11384 ;; 11385 *) 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11387$as_echo "no" >&6; } 11388 ;; 11389 esac 11390fi 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 # Report which library types will actually be built 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11405$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11407$as_echo "$can_build_shared" >&6; } 11408 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11410$as_echo_n "checking whether to build shared libraries... " >&6; } 11411 test "$can_build_shared" = "no" && enable_shared=no 11412 11413 # On AIX, shared libraries and static libraries use the same namespace, and 11414 # are all built from PIC. 11415 case $host_os in 11416 aix3*) 11417 test "$enable_shared" = yes && enable_static=no 11418 if test -n "$RANLIB"; then 11419 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11420 postinstall_cmds='$RANLIB $lib' 11421 fi 11422 ;; 11423 11424 aix[4-9]*) 11425 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11426 test "$enable_shared" = yes && enable_static=no 11427 fi 11428 ;; 11429 esac 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11431$as_echo "$enable_shared" >&6; } 11432 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11434$as_echo_n "checking whether to build static libraries... " >&6; } 11435 # Make sure either enable_shared or enable_static is yes. 11436 test "$enable_shared" = yes || enable_static=yes 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11438$as_echo "$enable_static" >&6; } 11439 11440 11441 11442 11443fi 11444ac_ext=c 11445ac_cpp='$CPP $CPPFLAGS' 11446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11448ac_compiler_gnu=$ac_cv_c_compiler_gnu 11449 11450CC="$lt_save_CC" 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464# Source file extension for Go test sources. 11465ac_ext=go 11466 11467# Object file extension for compiled Go test sources. 11468objext=o 11469objext_GO=$objext 11470 11471# Code to be used in simple compile tests 11472lt_simple_compile_test_code="package main; func main() { }" 11473 11474# Code to be used in simple link tests 11475lt_simple_link_test_code='package main; func main() { }' 11476 11477# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11478 11479 11480 11481 11482 11483 11484# If no C compiler was specified, use CC. 11485LTCC=${LTCC-"$CC"} 11486 11487# If no C compiler flags were specified, use CFLAGS. 11488LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11489 11490# Allow CC to be a program name with arguments. 11491compiler=$CC 11492 11493 11494# save warnings/boilerplate of simple test code 11495ac_outfile=conftest.$ac_objext 11496echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11497eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11498_lt_compiler_boilerplate=`cat conftest.err` 11499$RM conftest* 11500 11501ac_outfile=conftest.$ac_objext 11502echo "$lt_simple_link_test_code" >conftest.$ac_ext 11503eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11504_lt_linker_boilerplate=`cat conftest.err` 11505$RM -r conftest* 11506 11507 11508# Allow CC to be a program name with arguments. 11509lt_save_CC="$CC" 11510lt_save_GCC="$GCC" 11511GCC=yes 11512CC=${GOC-"gccgo"} 11513compiler=$CC 11514compiler_GO=$CC 11515LD_GO="$LD" 11516for cc_temp in $compiler""; do 11517 case $cc_temp in 11518 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11519 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11520 \-*) ;; 11521 *) break;; 11522 esac 11523done 11524cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11525 11526 11527# Go did not exist at the time GCC didn't implicitly link libc in. 11528archive_cmds_need_lc_GO=no 11529 11530old_archive_cmds_GO=$old_archive_cmds 11531 11532## CAVEAT EMPTOR: 11533## There is no encapsulation within the following macros, do not change 11534## the running order or otherwise move them around unless you know exactly 11535## what you are doing... 11536if test -n "$compiler"; then 11537 11538lt_prog_compiler_no_builtin_flag_GO= 11539 11540if test "$GCC" = yes; then 11541 case $cc_basename in 11542 nvcc*) 11543 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;; 11544 *) 11545 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;; 11546 esac 11547 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11549$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11550if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 11551 $as_echo_n "(cached) " >&6 11552else 11553 lt_cv_prog_compiler_rtti_exceptions=no 11554 ac_outfile=conftest.$ac_objext 11555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11556 lt_compiler_flag="-fno-rtti -fno-exceptions" 11557 # Insert the option either (1) after the last *FLAGS variable, or 11558 # (2) before a word containing "conftest.", or (3) at the end. 11559 # Note that $ac_compile itself does not contain backslashes and begins 11560 # with a dollar sign (not a hyphen), so the echo should work correctly. 11561 # The option is referenced via a variable to avoid confusing sed. 11562 lt_compile=`echo "$ac_compile" | $SED \ 11563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11565 -e 's:$: $lt_compiler_flag:'` 11566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11567 (eval "$lt_compile" 2>conftest.err) 11568 ac_status=$? 11569 cat conftest.err >&5 11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11571 if (exit $ac_status) && test -s "$ac_outfile"; then 11572 # The compiler can only warn and ignore the option if not recognized 11573 # So say no if there are warnings other than the usual output. 11574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11577 lt_cv_prog_compiler_rtti_exceptions=yes 11578 fi 11579 fi 11580 $RM conftest* 11581 11582fi 11583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11584$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11585 11586if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11587 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions" 11588else 11589 : 11590fi 11591 11592fi 11593 11594 11595 11596 lt_prog_compiler_wl_GO= 11597lt_prog_compiler_pic_GO= 11598lt_prog_compiler_static_GO= 11599 11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11601$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11602 11603 if test "$GCC" = yes; then 11604 lt_prog_compiler_wl_GO='-Wl,' 11605 lt_prog_compiler_static_GO='-static' 11606 11607 case $host_os in 11608 aix*) 11609 # All AIX code is PIC. 11610 if test "$host_cpu" = ia64; then 11611 # AIX 5 now supports IA64 processor 11612 lt_prog_compiler_static_GO='-Bstatic' 11613 fi 11614 lt_prog_compiler_pic_GO='-fPIC' 11615 ;; 11616 11617 amigaos*) 11618 case $host_cpu in 11619 powerpc) 11620 # see comment about AmigaOS4 .so support 11621 lt_prog_compiler_pic_GO='-fPIC' 11622 ;; 11623 m68k) 11624 # FIXME: we need at least 68020 code to build shared libraries, but 11625 # adding the `-m68020' flag to GCC prevents building anything better, 11626 # like `-m68040'. 11627 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4' 11628 ;; 11629 esac 11630 ;; 11631 11632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11633 # PIC is the default for these OSes. 11634 ;; 11635 11636 mingw* | cygwin* | pw32* | os2* | cegcc*) 11637 # This hack is so that the source file can tell whether it is being 11638 # built for inclusion in a dll (and should export symbols for example). 11639 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11640 # (--disable-auto-import) libraries 11641 lt_prog_compiler_pic_GO='-DDLL_EXPORT' 11642 ;; 11643 11644 darwin* | rhapsody*) 11645 # PIC is the default on this platform 11646 # Common symbols not allowed in MH_DYLIB files 11647 lt_prog_compiler_pic_GO='-fno-common' 11648 ;; 11649 11650 haiku*) 11651 # PIC is the default for Haiku. 11652 # The "-static" flag exists, but is broken. 11653 lt_prog_compiler_static_GO= 11654 ;; 11655 11656 hpux*) 11657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11659 # sets the default TLS model and affects inlining. 11660 case $host_cpu in 11661 hppa*64*) 11662 # +Z the default 11663 ;; 11664 *) 11665 lt_prog_compiler_pic_GO='-fPIC' 11666 ;; 11667 esac 11668 ;; 11669 11670 interix[3-9]*) 11671 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11672 # Instead, we relocate shared libraries at runtime. 11673 ;; 11674 11675 msdosdjgpp*) 11676 # Just because we use GCC doesn't mean we suddenly get shared libraries 11677 # on systems that don't support them. 11678 lt_prog_compiler_can_build_shared_GO=no 11679 enable_shared=no 11680 ;; 11681 11682 *nto* | *qnx*) 11683 # QNX uses GNU C++, but need to define -shared option too, otherwise 11684 # it will coredump. 11685 lt_prog_compiler_pic_GO='-fPIC -shared' 11686 ;; 11687 11688 sysv4*MP*) 11689 if test -d /usr/nec; then 11690 lt_prog_compiler_pic_GO=-Kconform_pic 11691 fi 11692 ;; 11693 11694 *) 11695 lt_prog_compiler_pic_GO='-fPIC' 11696 ;; 11697 esac 11698 11699 case $cc_basename in 11700 nvcc*) # Cuda Compiler Driver 2.2 11701 lt_prog_compiler_wl_GO='-Xlinker ' 11702 lt_prog_compiler_pic_GO='-Xcompiler -fPIC' 11703 ;; 11704 esac 11705 else 11706 # PORTME Check for flag to pass linker flags through the system compiler. 11707 case $host_os in 11708 aix*) 11709 lt_prog_compiler_wl_GO='-Wl,' 11710 if test "$host_cpu" = ia64; then 11711 # AIX 5 now supports IA64 processor 11712 lt_prog_compiler_static_GO='-Bstatic' 11713 else 11714 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp' 11715 fi 11716 ;; 11717 11718 mingw* | cygwin* | pw32* | os2* | cegcc*) 11719 # This hack is so that the source file can tell whether it is being 11720 # built for inclusion in a dll (and should export symbols for example). 11721 lt_prog_compiler_pic_GO='-DDLL_EXPORT' 11722 ;; 11723 11724 hpux9* | hpux10* | hpux11*) 11725 lt_prog_compiler_wl_GO='-Wl,' 11726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11727 # not for PA HP-UX. 11728 case $host_cpu in 11729 hppa*64*|ia64*) 11730 # +Z the default 11731 ;; 11732 *) 11733 lt_prog_compiler_pic_GO='+Z' 11734 ;; 11735 esac 11736 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11737 lt_prog_compiler_static_GO='${wl}-a ${wl}archive' 11738 ;; 11739 11740 irix5* | irix6* | nonstopux*) 11741 lt_prog_compiler_wl_GO='-Wl,' 11742 # PIC (with -KPIC) is the default. 11743 lt_prog_compiler_static_GO='-non_shared' 11744 ;; 11745 11746 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11747 case $cc_basename in 11748 # old Intel for x86_64 which still supported -KPIC. 11749 ecc*) 11750 lt_prog_compiler_wl_GO='-Wl,' 11751 lt_prog_compiler_pic_GO='-KPIC' 11752 lt_prog_compiler_static_GO='-static' 11753 ;; 11754 # icc used to be incompatible with GCC. 11755 # ICC 10 doesn't accept -KPIC any more. 11756 icc* | ifort*) 11757 lt_prog_compiler_wl_GO='-Wl,' 11758 lt_prog_compiler_pic_GO='-fPIC' 11759 lt_prog_compiler_static_GO='-static' 11760 ;; 11761 # Lahey Fortran 8.1. 11762 lf95*) 11763 lt_prog_compiler_wl_GO='-Wl,' 11764 lt_prog_compiler_pic_GO='--shared' 11765 lt_prog_compiler_static_GO='--static' 11766 ;; 11767 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11768 # Portland Group compilers (*not* the Pentium gcc compiler, 11769 # which looks to be a dead project) 11770 lt_prog_compiler_wl_GO='-Wl,' 11771 lt_prog_compiler_pic_GO='-fpic' 11772 lt_prog_compiler_static_GO='-Bstatic' 11773 ;; 11774 ccc*) 11775 lt_prog_compiler_wl_GO='-Wl,' 11776 # All Alpha code is PIC. 11777 lt_prog_compiler_static_GO='-non_shared' 11778 ;; 11779 xl* | bgxl* | bgf* | mpixl*) 11780 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11781 lt_prog_compiler_wl_GO='-Wl,' 11782 lt_prog_compiler_pic_GO='-qpic' 11783 lt_prog_compiler_static_GO='-qstaticlink' 11784 ;; 11785 *) 11786 case `$CC -V 2>&1 | sed 5q` in 11787 *Sun\ F* | *Sun*Fortran*) 11788 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11789 lt_prog_compiler_pic_GO='-KPIC' 11790 lt_prog_compiler_static_GO='-Bstatic' 11791 lt_prog_compiler_wl_GO='' 11792 ;; 11793 *Sun\ C*) 11794 # Sun C 5.9 11795 lt_prog_compiler_pic_GO='-KPIC' 11796 lt_prog_compiler_static_GO='-Bstatic' 11797 lt_prog_compiler_wl_GO='-Wl,' 11798 ;; 11799 esac 11800 ;; 11801 esac 11802 ;; 11803 11804 newsos6) 11805 lt_prog_compiler_pic_GO='-KPIC' 11806 lt_prog_compiler_static_GO='-Bstatic' 11807 ;; 11808 11809 *nto* | *qnx*) 11810 # QNX uses GNU C++, but need to define -shared option too, otherwise 11811 # it will coredump. 11812 lt_prog_compiler_pic_GO='-fPIC -shared' 11813 ;; 11814 11815 osf3* | osf4* | osf5*) 11816 lt_prog_compiler_wl_GO='-Wl,' 11817 # All OSF/1 code is PIC. 11818 lt_prog_compiler_static_GO='-non_shared' 11819 ;; 11820 11821 rdos*) 11822 lt_prog_compiler_static_GO='-non_shared' 11823 ;; 11824 11825 solaris*) 11826 lt_prog_compiler_pic_GO='-KPIC' 11827 lt_prog_compiler_static_GO='-Bstatic' 11828 case $cc_basename in 11829 f77* | f90* | f95*) 11830 lt_prog_compiler_wl_GO='-Qoption ld ';; 11831 *) 11832 lt_prog_compiler_wl_GO='-Wl,';; 11833 esac 11834 ;; 11835 11836 sunos4*) 11837 lt_prog_compiler_wl_GO='-Qoption ld ' 11838 lt_prog_compiler_pic_GO='-PIC' 11839 lt_prog_compiler_static_GO='-Bstatic' 11840 ;; 11841 11842 sysv4 | sysv4.2uw2* | sysv4.3*) 11843 lt_prog_compiler_wl_GO='-Wl,' 11844 lt_prog_compiler_pic_GO='-KPIC' 11845 lt_prog_compiler_static_GO='-Bstatic' 11846 ;; 11847 11848 sysv4*MP*) 11849 if test -d /usr/nec ;then 11850 lt_prog_compiler_pic_GO='-Kconform_pic' 11851 lt_prog_compiler_static_GO='-Bstatic' 11852 fi 11853 ;; 11854 11855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11856 lt_prog_compiler_wl_GO='-Wl,' 11857 lt_prog_compiler_pic_GO='-KPIC' 11858 lt_prog_compiler_static_GO='-Bstatic' 11859 ;; 11860 11861 unicos*) 11862 lt_prog_compiler_wl_GO='-Wl,' 11863 lt_prog_compiler_can_build_shared_GO=no 11864 ;; 11865 11866 uts4*) 11867 lt_prog_compiler_pic_GO='-pic' 11868 lt_prog_compiler_static_GO='-Bstatic' 11869 ;; 11870 11871 *) 11872 lt_prog_compiler_can_build_shared_GO=no 11873 ;; 11874 esac 11875 fi 11876 11877case $host_os in 11878 # For platforms which do not support PIC, -DPIC is meaningless: 11879 *djgpp*) 11880 lt_prog_compiler_pic_GO= 11881 ;; 11882 *) 11883 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO" 11884 ;; 11885esac 11886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5 11887$as_echo "$lt_prog_compiler_pic_GO" >&6; } 11888 11889 11890 11891# 11892# Check to make sure the PIC flag actually works. 11893# 11894if test -n "$lt_prog_compiler_pic_GO"; then 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5 11896$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; } 11897if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then : 11898 $as_echo_n "(cached) " >&6 11899else 11900 lt_cv_prog_compiler_pic_works_GO=no 11901 ac_outfile=conftest.$ac_objext 11902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11903 lt_compiler_flag="$lt_prog_compiler_pic_GO" 11904 # Insert the option either (1) after the last *FLAGS variable, or 11905 # (2) before a word containing "conftest.", or (3) at the end. 11906 # Note that $ac_compile itself does not contain backslashes and begins 11907 # with a dollar sign (not a hyphen), so the echo should work correctly. 11908 # The option is referenced via a variable to avoid confusing sed. 11909 lt_compile=`echo "$ac_compile" | $SED \ 11910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11912 -e 's:$: $lt_compiler_flag:'` 11913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11914 (eval "$lt_compile" 2>conftest.err) 11915 ac_status=$? 11916 cat conftest.err >&5 11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11918 if (exit $ac_status) && test -s "$ac_outfile"; then 11919 # The compiler can only warn and ignore the option if not recognized 11920 # So say no if there are warnings other than the usual output. 11921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11924 lt_cv_prog_compiler_pic_works_GO=yes 11925 fi 11926 fi 11927 $RM conftest* 11928 11929fi 11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5 11931$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; } 11932 11933if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then 11934 case $lt_prog_compiler_pic_GO in 11935 "" | " "*) ;; 11936 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;; 11937 esac 11938else 11939 lt_prog_compiler_pic_GO= 11940 lt_prog_compiler_can_build_shared_GO=no 11941fi 11942 11943fi 11944 11945 11946 11947# 11948# Check to make sure the static flag actually works. 11949# 11950wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\" 11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11952$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11953if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then : 11954 $as_echo_n "(cached) " >&6 11955else 11956 lt_cv_prog_compiler_static_works_GO=no 11957 save_LDFLAGS="$LDFLAGS" 11958 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11959 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11960 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11961 # The linker can only warn and ignore the option if not recognized 11962 # So say no if there are warnings 11963 if test -s conftest.err; then 11964 # Append any errors to the config.log. 11965 cat conftest.err 1>&5 11966 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11968 if diff conftest.exp conftest.er2 >/dev/null; then 11969 lt_cv_prog_compiler_static_works_GO=yes 11970 fi 11971 else 11972 lt_cv_prog_compiler_static_works_GO=yes 11973 fi 11974 fi 11975 $RM -r conftest* 11976 LDFLAGS="$save_LDFLAGS" 11977 11978fi 11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5 11980$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; } 11981 11982if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then 11983 : 11984else 11985 lt_prog_compiler_static_GO= 11986fi 11987 11988 11989 11990 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11992$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11993if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 lt_cv_prog_compiler_c_o_GO=no 11997 $RM -r conftest 2>/dev/null 11998 mkdir conftest 11999 cd conftest 12000 mkdir out 12001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12002 12003 lt_compiler_flag="-o out/conftest2.$ac_objext" 12004 # Insert the option either (1) after the last *FLAGS variable, or 12005 # (2) before a word containing "conftest.", or (3) at the end. 12006 # Note that $ac_compile itself does not contain backslashes and begins 12007 # with a dollar sign (not a hyphen), so the echo should work correctly. 12008 lt_compile=`echo "$ac_compile" | $SED \ 12009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12011 -e 's:$: $lt_compiler_flag:'` 12012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12013 (eval "$lt_compile" 2>out/conftest.err) 12014 ac_status=$? 12015 cat out/conftest.err >&5 12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12017 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12018 then 12019 # The compiler can only warn and ignore the option if not recognized 12020 # So say no if there are warnings 12021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12024 lt_cv_prog_compiler_c_o_GO=yes 12025 fi 12026 fi 12027 chmod u+w . 2>&5 12028 $RM conftest* 12029 # SGI C++ compiler will create directory out/ii_files/ for 12030 # template instantiation 12031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12032 $RM out/* && rmdir out 12033 cd .. 12034 $RM -r conftest 12035 $RM conftest* 12036 12037fi 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5 12039$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; } 12040 12041 12042 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12044$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12045if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then : 12046 $as_echo_n "(cached) " >&6 12047else 12048 lt_cv_prog_compiler_c_o_GO=no 12049 $RM -r conftest 2>/dev/null 12050 mkdir conftest 12051 cd conftest 12052 mkdir out 12053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12054 12055 lt_compiler_flag="-o out/conftest2.$ac_objext" 12056 # Insert the option either (1) after the last *FLAGS variable, or 12057 # (2) before a word containing "conftest.", or (3) at the end. 12058 # Note that $ac_compile itself does not contain backslashes and begins 12059 # with a dollar sign (not a hyphen), so the echo should work correctly. 12060 lt_compile=`echo "$ac_compile" | $SED \ 12061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12063 -e 's:$: $lt_compiler_flag:'` 12064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12065 (eval "$lt_compile" 2>out/conftest.err) 12066 ac_status=$? 12067 cat out/conftest.err >&5 12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12069 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12070 then 12071 # The compiler can only warn and ignore the option if not recognized 12072 # So say no if there are warnings 12073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12076 lt_cv_prog_compiler_c_o_GO=yes 12077 fi 12078 fi 12079 chmod u+w . 2>&5 12080 $RM conftest* 12081 # SGI C++ compiler will create directory out/ii_files/ for 12082 # template instantiation 12083 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12084 $RM out/* && rmdir out 12085 cd .. 12086 $RM -r conftest 12087 $RM conftest* 12088 12089fi 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5 12091$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; } 12092 12093 12094 12095 12096hard_links="nottested" 12097if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then 12098 # do not overwrite the value of need_locks provided by the user 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12100$as_echo_n "checking if we can lock with hard links... " >&6; } 12101 hard_links=yes 12102 $RM conftest* 12103 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12104 touch conftest.a 12105 ln conftest.a conftest.b 2>&5 || hard_links=no 12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12108$as_echo "$hard_links" >&6; } 12109 if test "$hard_links" = no; then 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12111$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12112 need_locks=warn 12113 fi 12114else 12115 need_locks=no 12116fi 12117 12118 12119 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12121$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12122 12123 runpath_var= 12124 allow_undefined_flag_GO= 12125 always_export_symbols_GO=no 12126 archive_cmds_GO= 12127 archive_expsym_cmds_GO= 12128 compiler_needs_object_GO=no 12129 enable_shared_with_static_runtimes_GO=no 12130 export_dynamic_flag_spec_GO= 12131 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12132 hardcode_automatic_GO=no 12133 hardcode_direct_GO=no 12134 hardcode_direct_absolute_GO=no 12135 hardcode_libdir_flag_spec_GO= 12136 hardcode_libdir_flag_spec_ld_GO= 12137 hardcode_libdir_separator_GO= 12138 hardcode_minus_L_GO=no 12139 hardcode_shlibpath_var_GO=unsupported 12140 inherit_rpath_GO=no 12141 link_all_deplibs_GO=unknown 12142 module_cmds_GO= 12143 module_expsym_cmds_GO= 12144 old_archive_from_new_cmds_GO= 12145 old_archive_from_expsyms_cmds_GO= 12146 thread_safe_flag_spec_GO= 12147 whole_archive_flag_spec_GO= 12148 # include_expsyms should be a list of space-separated symbols to be *always* 12149 # included in the symbol list 12150 include_expsyms_GO= 12151 # exclude_expsyms can be an extended regexp of symbols to exclude 12152 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12153 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12154 # as well as any symbol that contains `d'. 12155 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12156 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12157 # platforms (ab)use it in PIC code, but their linkers get confused if 12158 # the symbol is explicitly referenced. Since portable code cannot 12159 # rely on this symbol name, it's probably fine to never include it in 12160 # preloaded symbol tables. 12161 # Exclude shared library initialization/finalization symbols. 12162 extract_expsyms_cmds= 12163 12164 case $host_os in 12165 cygwin* | mingw* | pw32* | cegcc*) 12166 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12167 # When not using gcc, we currently assume that we are using 12168 # Microsoft Visual C++. 12169 if test "$GCC" != yes; then 12170 with_gnu_ld=no 12171 fi 12172 ;; 12173 interix*) 12174 # we just hope/assume this is gcc and not c89 (= MSVC++) 12175 with_gnu_ld=yes 12176 ;; 12177 openbsd*) 12178 with_gnu_ld=no 12179 ;; 12180 esac 12181 12182 ld_shlibs_GO=yes 12183 12184 # On some targets, GNU ld is compatible enough with the native linker 12185 # that we're better off using the native interface for both. 12186 lt_use_gnu_ld_interface=no 12187 if test "$with_gnu_ld" = yes; then 12188 case $host_os in 12189 aix*) 12190 # The AIX port of GNU ld has always aspired to compatibility 12191 # with the native linker. However, as the warning in the GNU ld 12192 # block says, versions before 2.19.5* couldn't really create working 12193 # shared libraries, regardless of the interface used. 12194 case `$LD -v 2>&1` in 12195 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12196 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12197 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12198 *) 12199 lt_use_gnu_ld_interface=yes 12200 ;; 12201 esac 12202 ;; 12203 *) 12204 lt_use_gnu_ld_interface=yes 12205 ;; 12206 esac 12207 fi 12208 12209 if test "$lt_use_gnu_ld_interface" = yes; then 12210 # If archive_cmds runs LD, not CC, wlarc should be empty 12211 wlarc='${wl}' 12212 12213 # Set some defaults for GNU ld with shared library support. These 12214 # are reset later if shared libraries are not supported. Putting them 12215 # here allows them to be overridden if necessary. 12216 runpath_var=LD_RUN_PATH 12217 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12218 export_dynamic_flag_spec_GO='${wl}--export-dynamic' 12219 # ancient GNU ld didn't support --whole-archive et. al. 12220 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12221 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12222 else 12223 whole_archive_flag_spec_GO= 12224 fi 12225 supports_anon_versioning=no 12226 case `$LD -v 2>&1` in 12227 *GNU\ gold*) supports_anon_versioning=yes ;; 12228 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12231 *\ 2.11.*) ;; # other 2.11 versions 12232 *) supports_anon_versioning=yes ;; 12233 esac 12234 12235 # See if GNU ld supports shared libraries. 12236 case $host_os in 12237 aix[3-9]*) 12238 # On AIX/PPC, the GNU linker is very broken 12239 if test "$host_cpu" != ia64; then 12240 ld_shlibs_GO=no 12241 cat <<_LT_EOF 1>&2 12242 12243*** Warning: the GNU linker, at least up to release 2.19, is reported 12244*** to be unable to reliably create shared libraries on AIX. 12245*** Therefore, libtool is disabling shared libraries support. If you 12246*** really care for shared libraries, you may want to install binutils 12247*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12248*** You will then need to restart the configuration process. 12249 12250_LT_EOF 12251 fi 12252 ;; 12253 12254 amigaos*) 12255 case $host_cpu in 12256 powerpc) 12257 # see comment about AmigaOS4 .so support 12258 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12259 archive_expsym_cmds_GO='' 12260 ;; 12261 m68k) 12262 archive_cmds_GO='$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)' 12263 hardcode_libdir_flag_spec_GO='-L$libdir' 12264 hardcode_minus_L_GO=yes 12265 ;; 12266 esac 12267 ;; 12268 12269 beos*) 12270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12271 allow_undefined_flag_GO=unsupported 12272 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12273 # support --undefined. This deserves some investigation. FIXME 12274 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12275 else 12276 ld_shlibs_GO=no 12277 fi 12278 ;; 12279 12280 cygwin* | mingw* | pw32* | cegcc*) 12281 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless, 12282 # as there is no search path for DLLs. 12283 hardcode_libdir_flag_spec_GO='-L$libdir' 12284 export_dynamic_flag_spec_GO='${wl}--export-all-symbols' 12285 allow_undefined_flag_GO=unsupported 12286 always_export_symbols_GO=no 12287 enable_shared_with_static_runtimes_GO=yes 12288 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12289 12290 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12291 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12292 # If the export-symbols file already is a .def file (1st line 12293 # is EXPORTS), use it as is; otherwise, prepend... 12294 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12295 cp $export_symbols $output_objdir/$soname.def; 12296 else 12297 echo EXPORTS > $output_objdir/$soname.def; 12298 cat $export_symbols >> $output_objdir/$soname.def; 12299 fi~ 12300 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12301 else 12302 ld_shlibs_GO=no 12303 fi 12304 ;; 12305 12306 haiku*) 12307 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12308 link_all_deplibs_GO=yes 12309 ;; 12310 12311 interix[3-9]*) 12312 hardcode_direct_GO=no 12313 hardcode_shlibpath_var_GO=no 12314 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 12315 export_dynamic_flag_spec_GO='${wl}-E' 12316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12317 # Instead, shared libraries are loaded at an image base (0x10000000 by 12318 # default) and relocated if they conflict, which is a slow very memory 12319 # consuming and fragmenting process. To avoid this, we pick a random, 12320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12321 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12322 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12323 archive_expsym_cmds_GO='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' 12324 ;; 12325 12326 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12327 tmp_diet=no 12328 if test "$host_os" = linux-dietlibc; then 12329 case $cc_basename in 12330 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12331 esac 12332 fi 12333 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12334 && test "$tmp_diet" = no 12335 then 12336 tmp_addflag= 12337 tmp_sharedflag='-shared' 12338 case $cc_basename,$host_cpu in 12339 pgcc*) # Portland Group C compiler 12340 whole_archive_flag_spec_GO='${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' 12341 tmp_addflag=' $pic_flag' 12342 ;; 12343 pgf77* | pgf90* | pgf95* | pgfortran*) 12344 # Portland Group f77 and f90 compilers 12345 whole_archive_flag_spec_GO='${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' 12346 tmp_addflag=' $pic_flag -Mnomain' ;; 12347 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12348 tmp_addflag=' -i_dynamic' ;; 12349 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12350 tmp_addflag=' -i_dynamic -nofor_main' ;; 12351 ifc* | ifort*) # Intel Fortran compiler 12352 tmp_addflag=' -nofor_main' ;; 12353 lf95*) # Lahey Fortran 8.1 12354 whole_archive_flag_spec_GO= 12355 tmp_sharedflag='--shared' ;; 12356 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12357 tmp_sharedflag='-qmkshrobj' 12358 tmp_addflag= ;; 12359 nvcc*) # Cuda Compiler Driver 2.2 12360 whole_archive_flag_spec_GO='${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' 12361 compiler_needs_object_GO=yes 12362 ;; 12363 esac 12364 case `$CC -V 2>&1 | sed 5q` in 12365 *Sun\ C*) # Sun C 5.9 12366 whole_archive_flag_spec_GO='${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' 12367 compiler_needs_object_GO=yes 12368 tmp_sharedflag='-G' ;; 12369 *Sun\ F*) # Sun Fortran 8.3 12370 tmp_sharedflag='-G' ;; 12371 esac 12372 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12373 12374 if test "x$supports_anon_versioning" = xyes; then 12375 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~ 12376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12377 echo "local: *; };" >> $output_objdir/$libname.ver~ 12378 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12379 fi 12380 12381 case $cc_basename in 12382 xlf* | bgf* | bgxlf* | mpixlf*) 12383 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12384 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive' 12385 hardcode_libdir_flag_spec_GO= 12386 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir' 12387 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 12388 if test "x$supports_anon_versioning" = xyes; then 12389 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~ 12390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12391 echo "local: *; };" >> $output_objdir/$libname.ver~ 12392 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12393 fi 12394 ;; 12395 esac 12396 else 12397 ld_shlibs_GO=no 12398 fi 12399 ;; 12400 12401 netbsd*) 12402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12403 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12404 wlarc= 12405 else 12406 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12407 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12408 fi 12409 ;; 12410 12411 solaris*) 12412 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12413 ld_shlibs_GO=no 12414 cat <<_LT_EOF 1>&2 12415 12416*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12417*** create shared libraries on Solaris systems. Therefore, libtool 12418*** is disabling shared libraries support. We urge you to upgrade GNU 12419*** binutils to release 2.9.1 or newer. Another option is to modify 12420*** your PATH or compiler configuration so that the native linker is 12421*** used, and then restart. 12422 12423_LT_EOF 12424 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12425 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12426 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12427 else 12428 ld_shlibs_GO=no 12429 fi 12430 ;; 12431 12432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12433 case `$LD -v 2>&1` in 12434 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12435 ld_shlibs_GO=no 12436 cat <<_LT_EOF 1>&2 12437 12438*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12439*** reliably create shared libraries on SCO systems. Therefore, libtool 12440*** is disabling shared libraries support. We urge you to upgrade GNU 12441*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12442*** your PATH or compiler configuration so that the native linker is 12443*** used, and then restart. 12444 12445_LT_EOF 12446 ;; 12447 *) 12448 # For security reasons, it is highly recommended that you always 12449 # use absolute paths for naming shared libraries, and exclude the 12450 # DT_RUNPATH tag from executables and libraries. But doing so 12451 # requires that you compile everything twice, which is a pain. 12452 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12453 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12454 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12455 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12456 else 12457 ld_shlibs_GO=no 12458 fi 12459 ;; 12460 esac 12461 ;; 12462 12463 sunos4*) 12464 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12465 wlarc= 12466 hardcode_direct_GO=yes 12467 hardcode_shlibpath_var_GO=no 12468 ;; 12469 12470 *) 12471 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12472 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12473 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12474 else 12475 ld_shlibs_GO=no 12476 fi 12477 ;; 12478 esac 12479 12480 if test "$ld_shlibs_GO" = no; then 12481 runpath_var= 12482 hardcode_libdir_flag_spec_GO= 12483 export_dynamic_flag_spec_GO= 12484 whole_archive_flag_spec_GO= 12485 fi 12486 else 12487 # PORTME fill in a description of your system's linker (not GNU ld) 12488 case $host_os in 12489 aix3*) 12490 allow_undefined_flag_GO=unsupported 12491 always_export_symbols_GO=yes 12492 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 12493 # Note: this linker hardcodes the directories in LIBPATH if there 12494 # are no directories specified by -L. 12495 hardcode_minus_L_GO=yes 12496 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 12497 # Neither direct hardcoding nor static linking is supported with a 12498 # broken collect2. 12499 hardcode_direct_GO=unsupported 12500 fi 12501 ;; 12502 12503 aix[4-9]*) 12504 if test "$host_cpu" = ia64; then 12505 # On IA64, the linker does run time linking by default, so we don't 12506 # have to do anything special. 12507 aix_use_runtimelinking=no 12508 exp_sym_flag='-Bexport' 12509 no_entry_flag="" 12510 else 12511 # If we're using GNU nm, then we don't want the "-C" option. 12512 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12513 # Also, AIX nm treats weak defined symbols like other global 12514 # defined symbols, whereas GNU nm marks them as "W". 12515 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12516 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12517 else 12518 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12519 fi 12520 aix_use_runtimelinking=no 12521 12522 # Test if we are trying to use run time linking or normal 12523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12524 # need to do runtime linking. 12525 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12526 for ld_flag in $LDFLAGS; do 12527 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12528 aix_use_runtimelinking=yes 12529 break 12530 fi 12531 done 12532 ;; 12533 esac 12534 12535 exp_sym_flag='-bexport' 12536 no_entry_flag='-bnoentry' 12537 fi 12538 12539 # When large executables or shared objects are built, AIX ld can 12540 # have problems creating the table of contents. If linking a library 12541 # or program results in "error TOC overflow" add -mminimal-toc to 12542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12544 12545 archive_cmds_GO='' 12546 hardcode_direct_GO=yes 12547 hardcode_direct_absolute_GO=yes 12548 hardcode_libdir_separator_GO=':' 12549 link_all_deplibs_GO=yes 12550 file_list_spec_GO='${wl}-f,' 12551 12552 if test "$GCC" = yes; then 12553 case $host_os in aix4.[012]|aix4.[012].*) 12554 # We only want to do this on AIX 4.2 and lower, the check 12555 # below for broken collect2 doesn't work under 4.3+ 12556 collect2name=`${CC} -print-prog-name=collect2` 12557 if test -f "$collect2name" && 12558 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12559 then 12560 # We have reworked collect2 12561 : 12562 else 12563 # We have old collect2 12564 hardcode_direct_GO=unsupported 12565 # It fails to find uninstalled libraries when the uninstalled 12566 # path is not listed in the libpath. Setting hardcode_minus_L 12567 # to unsupported forces relinking 12568 hardcode_minus_L_GO=yes 12569 hardcode_libdir_flag_spec_GO='-L$libdir' 12570 hardcode_libdir_separator_GO= 12571 fi 12572 ;; 12573 esac 12574 shared_flag='-shared' 12575 if test "$aix_use_runtimelinking" = yes; then 12576 shared_flag="$shared_flag "'${wl}-G' 12577 fi 12578 else 12579 # not using gcc 12580 if test "$host_cpu" = ia64; then 12581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12582 # chokes on -Wl,-G. The following line is correct: 12583 shared_flag='-G' 12584 else 12585 if test "$aix_use_runtimelinking" = yes; then 12586 shared_flag='${wl}-G' 12587 else 12588 shared_flag='${wl}-bM:SRE' 12589 fi 12590 fi 12591 fi 12592 12593 export_dynamic_flag_spec_GO='${wl}-bexpall' 12594 # It seems that -bexpall does not export symbols beginning with 12595 # underscore (_), so it is better to generate a list of symbols to export. 12596 always_export_symbols_GO=yes 12597 if test "$aix_use_runtimelinking" = yes; then 12598 # Warning - without using the other runtime loading flags (-brtl), 12599 # -berok will link without error, but may produce a broken library. 12600 allow_undefined_flag_GO='-berok' 12601 # Determine the default libpath from the value encoded in an 12602 # empty executable. 12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12604/* end confdefs.h. */ 12605 12606int 12607main () 12608{ 12609 12610 ; 12611 return 0; 12612} 12613_ACEOF 12614if ac_fn_c_try_link "$LINENO"; then : 12615 12616lt_aix_libpath_sed=' 12617 /Import File Strings/,/^$/ { 12618 /^0/ { 12619 s/^0 *\(.*\)$/\1/ 12620 p 12621 } 12622 }' 12623aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12624# Check for a 64-bit object if we didn't find anything. 12625if test -z "$aix_libpath"; then 12626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12627fi 12628fi 12629rm -f core conftest.err conftest.$ac_objext \ 12630 conftest$ac_exeext conftest.$ac_ext 12631if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12632 12633 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath" 12634 archive_expsym_cmds_GO='$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" 12635 else 12636 if test "$host_cpu" = ia64; then 12637 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib' 12638 allow_undefined_flag_GO="-z nodefs" 12639 archive_expsym_cmds_GO="\$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" 12640 else 12641 # Determine the default libpath from the value encoded in an 12642 # empty executable. 12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644/* end confdefs.h. */ 12645 12646int 12647main () 12648{ 12649 12650 ; 12651 return 0; 12652} 12653_ACEOF 12654if ac_fn_c_try_link "$LINENO"; then : 12655 12656lt_aix_libpath_sed=' 12657 /Import File Strings/,/^$/ { 12658 /^0/ { 12659 s/^0 *\(.*\)$/\1/ 12660 p 12661 } 12662 }' 12663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12664# Check for a 64-bit object if we didn't find anything. 12665if test -z "$aix_libpath"; then 12666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12667fi 12668fi 12669rm -f core conftest.err conftest.$ac_objext \ 12670 conftest$ac_exeext conftest.$ac_ext 12671if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12672 12673 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath" 12674 # Warning - without using the other run time loading flags, 12675 # -berok will link without error, but may produce a broken library. 12676 no_undefined_flag_GO=' ${wl}-bernotok' 12677 allow_undefined_flag_GO=' ${wl}-berok' 12678 if test "$with_gnu_ld" = yes; then 12679 # We only use this code for GNU lds that support --whole-archive. 12680 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12681 else 12682 # Exported symbols can be pulled into shared objects from archives 12683 whole_archive_flag_spec_GO='$convenience' 12684 fi 12685 archive_cmds_need_lc_GO=yes 12686 # This is similar to how AIX traditionally builds its shared libraries. 12687 archive_expsym_cmds_GO="\$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' 12688 fi 12689 fi 12690 ;; 12691 12692 amigaos*) 12693 case $host_cpu in 12694 powerpc) 12695 # see comment about AmigaOS4 .so support 12696 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12697 archive_expsym_cmds_GO='' 12698 ;; 12699 m68k) 12700 archive_cmds_GO='$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)' 12701 hardcode_libdir_flag_spec_GO='-L$libdir' 12702 hardcode_minus_L_GO=yes 12703 ;; 12704 esac 12705 ;; 12706 12707 bsdi[45]*) 12708 export_dynamic_flag_spec_GO=-rdynamic 12709 ;; 12710 12711 cygwin* | mingw* | pw32* | cegcc*) 12712 # When not using gcc, we currently assume that we are using 12713 # Microsoft Visual C++. 12714 # hardcode_libdir_flag_spec is actually meaningless, as there is 12715 # no search path for DLLs. 12716 hardcode_libdir_flag_spec_GO=' ' 12717 allow_undefined_flag_GO=unsupported 12718 # Tell ltmain to make .lib files, not .a files. 12719 libext=lib 12720 # Tell ltmain to make .dll files, not .so files. 12721 shrext_cmds=".dll" 12722 # FIXME: Setting linknames here is a bad hack. 12723 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12724 # The linker will automatically build a .lib file if we build a DLL. 12725 old_archive_from_new_cmds_GO='true' 12726 # FIXME: Should let the user specify the lib program. 12727 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs' 12728 fix_srcfile_path_GO='`cygpath -w "$srcfile"`' 12729 enable_shared_with_static_runtimes_GO=yes 12730 ;; 12731 12732 darwin* | rhapsody*) 12733 12734 12735 archive_cmds_need_lc_GO=no 12736 hardcode_direct_GO=no 12737 hardcode_automatic_GO=yes 12738 hardcode_shlibpath_var_GO=unsupported 12739 if test "$lt_cv_ld_force_load" = "yes"; then 12740 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12741 else 12742 whole_archive_flag_spec_GO='' 12743 fi 12744 link_all_deplibs_GO=yes 12745 allow_undefined_flag_GO="$_lt_dar_allow_undefined" 12746 case $cc_basename in 12747 ifort*) _lt_dar_can_shared=yes ;; 12748 *) _lt_dar_can_shared=$GCC ;; 12749 esac 12750 if test "$_lt_dar_can_shared" = "yes"; then 12751 output_verbose_link_cmd=func_echo_all 12752 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12753 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12754 archive_expsym_cmds_GO="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}" 12755 module_expsym_cmds_GO="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}" 12756 12757 else 12758 ld_shlibs_GO=no 12759 fi 12760 12761 ;; 12762 12763 dgux*) 12764 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12765 hardcode_libdir_flag_spec_GO='-L$libdir' 12766 hardcode_shlibpath_var_GO=no 12767 ;; 12768 12769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12770 # support. Future versions do this automatically, but an explicit c++rt0.o 12771 # does not break anything, and helps significantly (at the cost of a little 12772 # extra space). 12773 freebsd2.2*) 12774 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12775 hardcode_libdir_flag_spec_GO='-R$libdir' 12776 hardcode_direct_GO=yes 12777 hardcode_shlibpath_var_GO=no 12778 ;; 12779 12780 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12781 freebsd2.*) 12782 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12783 hardcode_direct_GO=yes 12784 hardcode_minus_L_GO=yes 12785 hardcode_shlibpath_var_GO=no 12786 ;; 12787 12788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12789 freebsd* | dragonfly*) 12790 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 12791 hardcode_libdir_flag_spec_GO='-R$libdir' 12792 hardcode_direct_GO=yes 12793 hardcode_shlibpath_var_GO=no 12794 ;; 12795 12796 hpux9*) 12797 if test "$GCC" = yes; then 12798 archive_cmds_GO='$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' 12799 else 12800 archive_cmds_GO='$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' 12801 fi 12802 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' 12803 hardcode_libdir_separator_GO=: 12804 hardcode_direct_GO=yes 12805 12806 # hardcode_minus_L: Not really in the search PATH, 12807 # but as the default location of the library. 12808 hardcode_minus_L_GO=yes 12809 export_dynamic_flag_spec_GO='${wl}-E' 12810 ;; 12811 12812 hpux10*) 12813 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12814 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12815 else 12816 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12817 fi 12818 if test "$with_gnu_ld" = no; then 12819 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' 12820 hardcode_libdir_flag_spec_ld_GO='+b $libdir' 12821 hardcode_libdir_separator_GO=: 12822 hardcode_direct_GO=yes 12823 hardcode_direct_absolute_GO=yes 12824 export_dynamic_flag_spec_GO='${wl}-E' 12825 # hardcode_minus_L: Not really in the search PATH, 12826 # but as the default location of the library. 12827 hardcode_minus_L_GO=yes 12828 fi 12829 ;; 12830 12831 hpux11*) 12832 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12833 case $host_cpu in 12834 hppa*64*) 12835 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12836 ;; 12837 ia64*) 12838 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12839 ;; 12840 *) 12841 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12842 ;; 12843 esac 12844 else 12845 case $host_cpu in 12846 hppa*64*) 12847 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12848 ;; 12849 ia64*) 12850 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12851 ;; 12852 *) 12853 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12854 ;; 12855 esac 12856 fi 12857 if test "$with_gnu_ld" = no; then 12858 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' 12859 hardcode_libdir_separator_GO=: 12860 12861 case $host_cpu in 12862 hppa*64*|ia64*) 12863 hardcode_direct_GO=no 12864 hardcode_shlibpath_var_GO=no 12865 ;; 12866 *) 12867 hardcode_direct_GO=yes 12868 hardcode_direct_absolute_GO=yes 12869 export_dynamic_flag_spec_GO='${wl}-E' 12870 12871 # hardcode_minus_L: Not really in the search PATH, 12872 # but as the default location of the library. 12873 hardcode_minus_L_GO=yes 12874 ;; 12875 esac 12876 fi 12877 ;; 12878 12879 irix5* | irix6* | nonstopux*) 12880 if test "$GCC" = yes; then 12881 archive_cmds_GO='$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' 12882 # Try to use the -exported_symbol ld option, if it does not 12883 # work, assume that -exports_file does not work either and 12884 # implicitly export all symbols. 12885 save_LDFLAGS="$LDFLAGS" 12886 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888/* end confdefs.h. */ 12889int foo(void) {} 12890_ACEOF 12891if ac_fn_c_try_link "$LINENO"; then : 12892 archive_expsym_cmds_GO='$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' 12893 12894fi 12895rm -f core conftest.err conftest.$ac_objext \ 12896 conftest$ac_exeext conftest.$ac_ext 12897 LDFLAGS="$save_LDFLAGS" 12898 else 12899 archive_cmds_GO='$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' 12900 archive_expsym_cmds_GO='$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' 12901 fi 12902 archive_cmds_need_lc_GO='no' 12903 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12904 hardcode_libdir_separator_GO=: 12905 inherit_rpath_GO=yes 12906 link_all_deplibs_GO=yes 12907 ;; 12908 12909 netbsd*) 12910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12911 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12912 else 12913 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12914 fi 12915 hardcode_libdir_flag_spec_GO='-R$libdir' 12916 hardcode_direct_GO=yes 12917 hardcode_shlibpath_var_GO=no 12918 ;; 12919 12920 newsos6) 12921 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12922 hardcode_direct_GO=yes 12923 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12924 hardcode_libdir_separator_GO=: 12925 hardcode_shlibpath_var_GO=no 12926 ;; 12927 12928 *nto* | *qnx*) 12929 ;; 12930 12931 openbsd*) 12932 if test -f /usr/libexec/ld.so; then 12933 hardcode_direct_GO=yes 12934 hardcode_shlibpath_var_GO=no 12935 hardcode_direct_absolute_GO=yes 12936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12937 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12938 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12939 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 12940 export_dynamic_flag_spec_GO='${wl}-E' 12941 else 12942 case $host_os in 12943 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12944 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12945 hardcode_libdir_flag_spec_GO='-R$libdir' 12946 ;; 12947 *) 12948 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12949 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 12950 ;; 12951 esac 12952 fi 12953 else 12954 ld_shlibs_GO=no 12955 fi 12956 ;; 12957 12958 os2*) 12959 hardcode_libdir_flag_spec_GO='-L$libdir' 12960 hardcode_minus_L_GO=yes 12961 allow_undefined_flag_GO=unsupported 12962 archive_cmds_GO='$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' 12963 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12964 ;; 12965 12966 osf3*) 12967 if test "$GCC" = yes; then 12968 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*' 12969 archive_cmds_GO='$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' 12970 else 12971 allow_undefined_flag_GO=' -expect_unresolved \*' 12972 archive_cmds_GO='$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' 12973 fi 12974 archive_cmds_need_lc_GO='no' 12975 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12976 hardcode_libdir_separator_GO=: 12977 ;; 12978 12979 osf4* | osf5*) # as osf3* with the addition of -msym flag 12980 if test "$GCC" = yes; then 12981 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*' 12982 archive_cmds_GO='$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' 12983 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12984 else 12985 allow_undefined_flag_GO=' -expect_unresolved \*' 12986 archive_cmds_GO='$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' 12987 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 12988 $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' 12989 12990 # Both c and cxx compiler support -rpath directly 12991 hardcode_libdir_flag_spec_GO='-rpath $libdir' 12992 fi 12993 archive_cmds_need_lc_GO='no' 12994 hardcode_libdir_separator_GO=: 12995 ;; 12996 12997 solaris*) 12998 no_undefined_flag_GO=' -z defs' 12999 if test "$GCC" = yes; then 13000 wlarc='${wl}' 13001 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13002 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13003 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13004 else 13005 case `$CC -V 2>&1` in 13006 *"Compilers 5.0"*) 13007 wlarc='' 13008 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13009 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13010 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13011 ;; 13012 *) 13013 wlarc='${wl}' 13014 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13015 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13016 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13017 ;; 13018 esac 13019 fi 13020 hardcode_libdir_flag_spec_GO='-R$libdir' 13021 hardcode_shlibpath_var_GO=no 13022 case $host_os in 13023 solaris2.[0-5] | solaris2.[0-5].*) ;; 13024 *) 13025 # The compiler driver will combine and reorder linker options, 13026 # but understands `-z linker_flag'. GCC discards it without `$wl', 13027 # but is careful enough not to reorder. 13028 # Supported since Solaris 2.6 (maybe 2.5.1?) 13029 if test "$GCC" = yes; then 13030 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13031 else 13032 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract' 13033 fi 13034 ;; 13035 esac 13036 link_all_deplibs_GO=yes 13037 ;; 13038 13039 sunos4*) 13040 if test "x$host_vendor" = xsequent; then 13041 # Use $CC to link under sequent, because it throws in some extra .o 13042 # files that make .init and .fini sections work. 13043 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13044 else 13045 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13046 fi 13047 hardcode_libdir_flag_spec_GO='-L$libdir' 13048 hardcode_direct_GO=yes 13049 hardcode_minus_L_GO=yes 13050 hardcode_shlibpath_var_GO=no 13051 ;; 13052 13053 sysv4) 13054 case $host_vendor in 13055 sni) 13056 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13057 hardcode_direct_GO=yes # is this really true??? 13058 ;; 13059 siemens) 13060 ## LD is ld it makes a PLAMLIB 13061 ## CC just makes a GrossModule. 13062 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13063 reload_cmds_GO='$CC -r -o $output$reload_objs' 13064 hardcode_direct_GO=no 13065 ;; 13066 motorola) 13067 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13068 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie 13069 ;; 13070 esac 13071 runpath_var='LD_RUN_PATH' 13072 hardcode_shlibpath_var_GO=no 13073 ;; 13074 13075 sysv4.3*) 13076 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13077 hardcode_shlibpath_var_GO=no 13078 export_dynamic_flag_spec_GO='-Bexport' 13079 ;; 13080 13081 sysv4*MP*) 13082 if test -d /usr/nec; then 13083 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13084 hardcode_shlibpath_var_GO=no 13085 runpath_var=LD_RUN_PATH 13086 hardcode_runpath_var=yes 13087 ld_shlibs_GO=yes 13088 fi 13089 ;; 13090 13091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13092 no_undefined_flag_GO='${wl}-z,text' 13093 archive_cmds_need_lc_GO=no 13094 hardcode_shlibpath_var_GO=no 13095 runpath_var='LD_RUN_PATH' 13096 13097 if test "$GCC" = yes; then 13098 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13099 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13100 else 13101 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13102 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13103 fi 13104 ;; 13105 13106 sysv5* | sco3.2v5* | sco5v6*) 13107 # Note: We can NOT use -z defs as we might desire, because we do not 13108 # link with -lc, and that would cause any symbols used from libc to 13109 # always be unresolved, which means just about no library would 13110 # ever link correctly. If we're not using GNU ld we use -z text 13111 # though, which does catch some bad symbols but isn't as heavy-handed 13112 # as -z defs. 13113 no_undefined_flag_GO='${wl}-z,text' 13114 allow_undefined_flag_GO='${wl}-z,nodefs' 13115 archive_cmds_need_lc_GO=no 13116 hardcode_shlibpath_var_GO=no 13117 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir' 13118 hardcode_libdir_separator_GO=':' 13119 link_all_deplibs_GO=yes 13120 export_dynamic_flag_spec_GO='${wl}-Bexport' 13121 runpath_var='LD_RUN_PATH' 13122 13123 if test "$GCC" = yes; then 13124 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13125 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13126 else 13127 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13128 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13129 fi 13130 ;; 13131 13132 uts4*) 13133 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13134 hardcode_libdir_flag_spec_GO='-L$libdir' 13135 hardcode_shlibpath_var_GO=no 13136 ;; 13137 13138 *) 13139 ld_shlibs_GO=no 13140 ;; 13141 esac 13142 13143 if test x$host_vendor = xsni; then 13144 case $host in 13145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13146 export_dynamic_flag_spec_GO='${wl}-Blargedynsym' 13147 ;; 13148 esac 13149 fi 13150 fi 13151 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5 13153$as_echo "$ld_shlibs_GO" >&6; } 13154test "$ld_shlibs_GO" = no && can_build_shared=no 13155 13156with_gnu_ld_GO=$with_gnu_ld 13157 13158 13159 13160 13161 13162 13163# 13164# Do we need to explicitly link libc? 13165# 13166case "x$archive_cmds_need_lc_GO" in 13167x|xyes) 13168 # Assume -lc should be added 13169 archive_cmds_need_lc_GO=yes 13170 13171 if test "$enable_shared" = yes && test "$GCC" = yes; then 13172 case $archive_cmds_GO in 13173 *'~'*) 13174 # FIXME: we may have to deal with multi-command sequences. 13175 ;; 13176 '$CC '*) 13177 # Test whether the compiler implicitly links with -lc since on some 13178 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13179 # to ld, don't add -lc before -lgcc. 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13181$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13182if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then : 13183 $as_echo_n "(cached) " >&6 13184else 13185 $RM conftest* 13186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13187 13188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13189 (eval $ac_compile) 2>&5 13190 ac_status=$? 13191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13192 test $ac_status = 0; } 2>conftest.err; then 13193 soname=conftest 13194 lib=conftest 13195 libobjs=conftest.$ac_objext 13196 deplibs= 13197 wl=$lt_prog_compiler_wl_GO 13198 pic_flag=$lt_prog_compiler_pic_GO 13199 compiler_flags=-v 13200 linker_flags=-v 13201 verstring= 13202 output_objdir=. 13203 libname=conftest 13204 lt_save_allow_undefined_flag=$allow_undefined_flag_GO 13205 allow_undefined_flag_GO= 13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13207 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13208 ac_status=$? 13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13210 test $ac_status = 0; } 13211 then 13212 lt_cv_archive_cmds_need_lc_GO=no 13213 else 13214 lt_cv_archive_cmds_need_lc_GO=yes 13215 fi 13216 allow_undefined_flag_GO=$lt_save_allow_undefined_flag 13217 else 13218 cat conftest.err 1>&5 13219 fi 13220 $RM conftest* 13221 13222fi 13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5 13224$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; } 13225 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO 13226 ;; 13227 esac 13228 fi 13229 ;; 13230esac 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13296$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13297hardcode_action_GO= 13298if test -n "$hardcode_libdir_flag_spec_GO" || 13299 test -n "$runpath_var_GO" || 13300 test "X$hardcode_automatic_GO" = "Xyes" ; then 13301 13302 # We can hardcode non-existent directories. 13303 if test "$hardcode_direct_GO" != no && 13304 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13305 # have to relink, otherwise we might link with an installed library 13306 # when we should be linking with a yet-to-be-installed one 13307 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no && 13308 test "$hardcode_minus_L_GO" != no; then 13309 # Linking always hardcodes the temporary library directory. 13310 hardcode_action_GO=relink 13311 else 13312 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13313 hardcode_action_GO=immediate 13314 fi 13315else 13316 # We cannot hardcode anything, or else we can only hardcode existing 13317 # directories. 13318 hardcode_action_GO=unsupported 13319fi 13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5 13321$as_echo "$hardcode_action_GO" >&6; } 13322 13323if test "$hardcode_action_GO" = relink || 13324 test "$inherit_rpath_GO" = yes; then 13325 # Fast installation is not supported 13326 enable_fast_install=no 13327elif test "$shlibpath_overrides_runpath" = yes || 13328 test "$enable_shared" = no; then 13329 # Fast installation is not necessary 13330 enable_fast_install=needless 13331fi 13332 13333 13334 13335 13336 13337 13338 13339fi 13340 13341ac_ext=c 13342ac_cpp='$CPP $CPPFLAGS' 13343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13345ac_compiler_gnu=$ac_cv_c_compiler_gnu 13346 13347 13348GCC=$lt_save_GCC 13349CC="$lt_save_CC" 13350 13351 13352 13353 13354 ac_config_commands="$ac_config_commands libtool" 13355 13356 13357 13358 13359# Only expand once: 13360 13361 13362 13363 13364 13365CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} 13366 13367 13368for ac_prog in gawk mawk nawk awk 13369do 13370 # Extract the first word of "$ac_prog", so it can be a program name with args. 13371set dummy $ac_prog; ac_word=$2 13372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13373$as_echo_n "checking for $ac_word... " >&6; } 13374if test "${ac_cv_prog_AWK+set}" = set; then : 13375 $as_echo_n "(cached) " >&6 13376else 13377 if test -n "$AWK"; then 13378 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13379else 13380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13381for as_dir in $PATH 13382do 13383 IFS=$as_save_IFS 13384 test -z "$as_dir" && as_dir=. 13385 for ac_exec_ext in '' $ac_executable_extensions; do 13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13387 ac_cv_prog_AWK="$ac_prog" 13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13389 break 2 13390 fi 13391done 13392 done 13393IFS=$as_save_IFS 13394 13395fi 13396fi 13397AWK=$ac_cv_prog_AWK 13398if test -n "$AWK"; then 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13400$as_echo "$AWK" >&6; } 13401else 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13403$as_echo "no" >&6; } 13404fi 13405 13406 13407 test -n "$AWK" && break 13408done 13409 13410 13411WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual' 13412 13413 13414# Check whether --enable-werror was given. 13415if test "${enable_werror+set}" = set; then : 13416 enableval=$enable_werror; 13417fi 13418 13419if test "x$enable_werror" != "xno"; then 13420 WERROR="-Werror" 13421fi 13422 13423 13424glibgo_toolexecdir=no 13425glibgo_toolexeclibdir=no 13426 13427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 13428$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 13429# Check whether --enable-version-specific-runtime-libs was given. 13430if test "${enable_version_specific_runtime_libs+set}" = set; then : 13431 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 13432 yes) version_specific_libs=yes ;; 13433 no) version_specific_libs=no ;; 13434 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 13435 esac 13436else 13437 version_specific_libs=no 13438fi 13439 13440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 13441$as_echo "$version_specific_libs" >&6; } 13442 13443# Version-specific runtime libs processing. 13444if test $version_specific_libs = yes; then 13445 glibgo_toolexecdir='${libdir}/gcc/${host_alias}' 13446 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)' 13447fi 13448 13449# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir 13450# Install a library built with a cross compiler in tooldir, not libdir. 13451if test -n "$with_cross_host" && 13452 test x"$with_cross_host" != x"no"; then 13453 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}' 13454 nover_glibgo_toolexeclibdir='${toolexecdir}/lib' 13455else 13456 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}' 13457 nover_glibgo_toolexeclibdir='${libdir}' 13458fi 13459multi_os_directory=`$GOC -print-multi-os-directory` 13460case $multi_os_directory in 13461 .) ;; # Avoid trailing /. 13462 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;; 13463esac 13464 13465if test x"$glibgo_toolexecdir" = x"no"; then 13466 glibgo_toolexecdir="${nover_glibgo_toolexecdir}" 13467 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}" 13468fi 13469 13470 13471 13472 13473 13474# See if the user wants to configure without libffi. Some 13475# architectures don't support it. FIXME: We should set a default 13476# based on the host. 13477 13478# Check whether --with-libffi was given. 13479if test "${with_libffi+set}" = set; then : 13480 withval=$with_libffi; : 13481else 13482 with_libffi=${with_libffi_default-yes} 13483fi 13484 13485 13486LIBFFI= 13487LIBFFIINCS= 13488if test "$with_libffi" != no; then 13489 13490$as_echo "#define USE_LIBFFI 1" >>confdefs.h 13491 13492 LIBFFI=../libffi/libffi_convenience.la 13493 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include' 13494fi 13495 13496 13497 13498# See if the user wants to configure without libatomic. This is useful if we are 13499# on an architecture for which libgo does not need an atomic support library and 13500# libatomic does not support our C compiler. 13501 13502# Check whether --with-libatomic was given. 13503if test "${with_libatomic+set}" = set; then : 13504 withval=$with_libatomic; : 13505else 13506 with_libatomic=${with_libatomic_default-yes} 13507fi 13508 13509 13510LIBATOMIC= 13511if test "$with_libatomic" != no; then 13512 LIBATOMIC=../libatomic/libatomic_convenience.la 13513fi 13514 13515 13516# Used to tell GNU make to include a file without telling automake to 13517# include it. 13518go_include="-include" 13519 13520 13521is_darwin=no 13522is_freebsd=no 13523is_irix=no 13524is_linux=no 13525is_netbsd=no 13526is_openbsd=no 13527is_dragonfly=no 13528is_rtems=no 13529is_solaris=no 13530GOOS=unknown 13531case ${host} in 13532 *-*-darwin*) is_darwin=yes; GOOS=darwin ;; 13533 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;; 13534 *-*-irix6*) is_irix=yes; GOOS=irix ;; 13535 *-*-linux*) is_linux=yes; GOOS=linux ;; 13536 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;; 13537 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;; 13538 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;; 13539 *-*-rtems*) is_rtems=yes; GOOS=rtems ;; 13540 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;; 13541esac 13542 if test $is_darwin = yes; then 13543 LIBGO_IS_DARWIN_TRUE= 13544 LIBGO_IS_DARWIN_FALSE='#' 13545else 13546 LIBGO_IS_DARWIN_TRUE='#' 13547 LIBGO_IS_DARWIN_FALSE= 13548fi 13549 13550 if test $is_freebsd = yes; then 13551 LIBGO_IS_FREEBSD_TRUE= 13552 LIBGO_IS_FREEBSD_FALSE='#' 13553else 13554 LIBGO_IS_FREEBSD_TRUE='#' 13555 LIBGO_IS_FREEBSD_FALSE= 13556fi 13557 13558 if test $is_irix = yes; then 13559 LIBGO_IS_IRIX_TRUE= 13560 LIBGO_IS_IRIX_FALSE='#' 13561else 13562 LIBGO_IS_IRIX_TRUE='#' 13563 LIBGO_IS_IRIX_FALSE= 13564fi 13565 13566 if test $is_linux = yes; then 13567 LIBGO_IS_LINUX_TRUE= 13568 LIBGO_IS_LINUX_FALSE='#' 13569else 13570 LIBGO_IS_LINUX_TRUE='#' 13571 LIBGO_IS_LINUX_FALSE= 13572fi 13573 13574 if test $is_netbsd = yes; then 13575 LIBGO_IS_NETBSD_TRUE= 13576 LIBGO_IS_NETBSD_FALSE='#' 13577else 13578 LIBGO_IS_NETBSD_TRUE='#' 13579 LIBGO_IS_NETBSD_FALSE= 13580fi 13581 13582 if test $is_openbsd = yes; then 13583 LIBGO_IS_OPENBSD_TRUE= 13584 LIBGO_IS_OPENBSD_FALSE='#' 13585else 13586 LIBGO_IS_OPENBSD_TRUE='#' 13587 LIBGO_IS_OPENBSD_FALSE= 13588fi 13589 13590 if test $is_dragonfly = yes; then 13591 LIBGO_IS_DRAGONFLY_TRUE= 13592 LIBGO_IS_DRAGONFLY_FALSE='#' 13593else 13594 LIBGO_IS_DRAGONFLY_TRUE='#' 13595 LIBGO_IS_DRAGONFLY_FALSE= 13596fi 13597 13598 if test $is_rtems = yes; then 13599 LIBGO_IS_RTEMS_TRUE= 13600 LIBGO_IS_RTEMS_FALSE='#' 13601else 13602 LIBGO_IS_RTEMS_TRUE='#' 13603 LIBGO_IS_RTEMS_FALSE= 13604fi 13605 13606 if test $is_solaris = yes; then 13607 LIBGO_IS_SOLARIS_TRUE= 13608 LIBGO_IS_SOLARIS_FALSE='#' 13609else 13610 LIBGO_IS_SOLARIS_TRUE='#' 13611 LIBGO_IS_SOLARIS_FALSE= 13612fi 13613 13614 13615 13616USE_DEJAGNU=no 13617case ${host} in 13618 *-*-rtems*) USE_DEJAGNU=yes ;; 13619 ${build}) ;; 13620 *) USE_DEJAGNU=yes ;; 13621esac 13622 13623 13624is_386=no 13625is_alpha=no 13626is_arm=no 13627is_arm64=no 13628is_m68k=no 13629mips_abi=unknown 13630is_ppc=no 13631is_ppc64=no 13632is_ppc64le=no 13633is_s390=no 13634is_s390x=no 13635is_sparc=no 13636is_sparc64=no 13637is_x86_64=no 13638GOARCH=unknown 13639case ${host} in 13640 alpha*-*-*) 13641 is_alpha=yes 13642 GOARCH=alpha 13643 ;; 13644 aarch64-*-*) 13645 is_arm64=yes 13646 GOARCH=arm64 13647 ;; 13648 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*) 13649 is_arm=yes 13650 GOARCH=arm 13651 ;; 13652 i[34567]86-*-* | x86_64-*-*) 13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655 13656#ifdef __x86_64__ 13657#error 64-bit 13658#endif 13659_ACEOF 13660if ac_fn_c_try_compile "$LINENO"; then : 13661 is_386=yes 13662else 13663 is_x86_64=yes 13664fi 13665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13666 if test "$is_386" = "yes"; then 13667 GOARCH=386 13668 else 13669 GOARCH=amd64 13670 fi 13671 ;; 13672 m68k*-*-*) 13673 is_m68k=yes 13674 GOARCH=m68k 13675 ;; 13676 mips*-*-*) 13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13678/* end confdefs.h. */ 13679 13680#if _MIPS_SIM != _ABIO32 13681#error not o32 13682#endif 13683_ACEOF 13684if ac_fn_c_try_compile "$LINENO"; then : 13685 mips_abi="o32" 13686else 13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13688/* end confdefs.h. */ 13689 13690#if _MIPS_SIM != _ABIN32 13691#error not n32 13692#endif 13693_ACEOF 13694if ac_fn_c_try_compile "$LINENO"; then : 13695 mips_abi="n32" 13696else 13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13698/* end confdefs.h. */ 13699 13700#if _MIPS_SIM != _ABI64 13701#error not n64 13702#endif 13703_ACEOF 13704if ac_fn_c_try_compile "$LINENO"; then : 13705 mips_abi="n64" 13706else 13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13708/* end confdefs.h. */ 13709 13710#if _MIPS_SIM != _ABIO64 13711#error not o64 13712#endif 13713_ACEOF 13714if ac_fn_c_try_compile "$LINENO"; then : 13715 mips_abi="o64" 13716else 13717 as_fn_error "unknown MIPS ABI" "$LINENO" 5 13718mips_abi="n32" 13719fi 13720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13721fi 13722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13723fi 13724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13725fi 13726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13727 case "$mips_abi" in 13728 "o32") GOARCH=mipso32 ;; 13729 "n32") GOARCH=mipsn32 ;; 13730 "n64") GOARCH=mipsn64 ;; 13731 "o64") GOARCH=mipso64 ;; 13732 esac 13733 ;; 13734 rs6000*-*-* | powerpc*-*-*) 13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13736/* end confdefs.h. */ 13737 13738#ifdef _ARCH_PPC64 13739#error 64-bit 13740#endif 13741_ACEOF 13742if ac_fn_c_try_compile "$LINENO"; then : 13743 is_ppc=yes 13744else 13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13746/* end confdefs.h. */ 13747 13748#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__) 13749#error 64be 13750#endif 13751_ACEOF 13752if ac_fn_c_try_compile "$LINENO"; then : 13753 is_ppc64le=yes 13754else 13755 is_ppc64=yes 13756fi 13757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13758fi 13759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13760 if test "$is_ppc" = "yes"; then 13761 GOARCH=ppc 13762 elif test "$is_ppc64" = "yes"; then 13763 GOARCH=ppc64 13764 else 13765 GOARCH=ppc64le 13766 fi 13767 ;; 13768 s390*-*-*) 13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13770/* end confdefs.h. */ 13771 13772#if defined(__s390x__) 13773#error 64-bit 13774#endif 13775_ACEOF 13776if ac_fn_c_try_compile "$LINENO"; then : 13777 is_s390=yes 13778else 13779 is_s390x=yes 13780fi 13781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13782 if test "$is_s390" = "yes"; then 13783 GOARCH=s390 13784 else 13785 GOARCH=s390x 13786 fi 13787 ;; 13788 sparc*-*-*) 13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13790/* end confdefs.h. */ 13791 13792#if defined(__sparcv9) || defined(__arch64__) 13793#error 64-bit 13794#endif 13795_ACEOF 13796if ac_fn_c_try_compile "$LINENO"; then : 13797 is_sparc=yes 13798else 13799 is_sparc64=yes 13800fi 13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13802 if test "$is_sparc" = "yes"; then 13803 GOARCH=sparc 13804 else 13805 GOARCH=sparc64 13806 fi 13807 ;; 13808esac 13809 if test $is_386 = yes; then 13810 LIBGO_IS_386_TRUE= 13811 LIBGO_IS_386_FALSE='#' 13812else 13813 LIBGO_IS_386_TRUE='#' 13814 LIBGO_IS_386_FALSE= 13815fi 13816 13817 if test $is_alpha = yes; then 13818 LIBGO_IS_ALPHA_TRUE= 13819 LIBGO_IS_ALPHA_FALSE='#' 13820else 13821 LIBGO_IS_ALPHA_TRUE='#' 13822 LIBGO_IS_ALPHA_FALSE= 13823fi 13824 13825 if test $is_arm = yes; then 13826 LIBGO_IS_ARM_TRUE= 13827 LIBGO_IS_ARM_FALSE='#' 13828else 13829 LIBGO_IS_ARM_TRUE='#' 13830 LIBGO_IS_ARM_FALSE= 13831fi 13832 13833 if test $is_arm64 = yes; then 13834 LIBGO_IS_ARM64_TRUE= 13835 LIBGO_IS_ARM64_FALSE='#' 13836else 13837 LIBGO_IS_ARM64_TRUE='#' 13838 LIBGO_IS_ARM64_FALSE= 13839fi 13840 13841 if test $is_m68k = yes; then 13842 LIBGO_IS_M68K_TRUE= 13843 LIBGO_IS_M68K_FALSE='#' 13844else 13845 LIBGO_IS_M68K_TRUE='#' 13846 LIBGO_IS_M68K_FALSE= 13847fi 13848 13849 if test $mips_abi != unknown; then 13850 LIBGO_IS_MIPS_TRUE= 13851 LIBGO_IS_MIPS_FALSE='#' 13852else 13853 LIBGO_IS_MIPS_TRUE='#' 13854 LIBGO_IS_MIPS_FALSE= 13855fi 13856 13857 if test $mips_abi = o32; then 13858 LIBGO_IS_MIPSO32_TRUE= 13859 LIBGO_IS_MIPSO32_FALSE='#' 13860else 13861 LIBGO_IS_MIPSO32_TRUE='#' 13862 LIBGO_IS_MIPSO32_FALSE= 13863fi 13864 13865 if test $mips_abi = n32; then 13866 LIBGO_IS_MIPSN32_TRUE= 13867 LIBGO_IS_MIPSN32_FALSE='#' 13868else 13869 LIBGO_IS_MIPSN32_TRUE='#' 13870 LIBGO_IS_MIPSN32_FALSE= 13871fi 13872 13873 if test $mips_abi = n64; then 13874 LIBGO_IS_MIPSN64_TRUE= 13875 LIBGO_IS_MIPSN64_FALSE='#' 13876else 13877 LIBGO_IS_MIPSN64_TRUE='#' 13878 LIBGO_IS_MIPSN64_FALSE= 13879fi 13880 13881 if test $mips_abi = o64; then 13882 LIBGO_IS_MIPSO64_TRUE= 13883 LIBGO_IS_MIPSO64_FALSE='#' 13884else 13885 LIBGO_IS_MIPSO64_TRUE='#' 13886 LIBGO_IS_MIPSO64_FALSE= 13887fi 13888 13889 if test $mips_abi = n64 -o $mips_abi = o64; then 13890 LIBGO_IS_MIPS64_TRUE= 13891 LIBGO_IS_MIPS64_FALSE='#' 13892else 13893 LIBGO_IS_MIPS64_TRUE='#' 13894 LIBGO_IS_MIPS64_FALSE= 13895fi 13896 13897 if test $is_ppc = yes; then 13898 LIBGO_IS_PPC_TRUE= 13899 LIBGO_IS_PPC_FALSE='#' 13900else 13901 LIBGO_IS_PPC_TRUE='#' 13902 LIBGO_IS_PPC_FALSE= 13903fi 13904 13905 if test $is_ppc64 = yes; then 13906 LIBGO_IS_PPC64_TRUE= 13907 LIBGO_IS_PPC64_FALSE='#' 13908else 13909 LIBGO_IS_PPC64_TRUE='#' 13910 LIBGO_IS_PPC64_FALSE= 13911fi 13912 13913 if test $is_ppc64le = yes; then 13914 LIBGO_IS_PPC64LE_TRUE= 13915 LIBGO_IS_PPC64LE_FALSE='#' 13916else 13917 LIBGO_IS_PPC64LE_TRUE='#' 13918 LIBGO_IS_PPC64LE_FALSE= 13919fi 13920 13921 if test $is_s390 = yes; then 13922 LIBGO_IS_S390_TRUE= 13923 LIBGO_IS_S390_FALSE='#' 13924else 13925 LIBGO_IS_S390_TRUE='#' 13926 LIBGO_IS_S390_FALSE= 13927fi 13928 13929 if test $is_s390x = yes; then 13930 LIBGO_IS_S390X_TRUE= 13931 LIBGO_IS_S390X_FALSE='#' 13932else 13933 LIBGO_IS_S390X_TRUE='#' 13934 LIBGO_IS_S390X_FALSE= 13935fi 13936 13937 if test $is_sparc = yes; then 13938 LIBGO_IS_SPARC_TRUE= 13939 LIBGO_IS_SPARC_FALSE='#' 13940else 13941 LIBGO_IS_SPARC_TRUE='#' 13942 LIBGO_IS_SPARC_FALSE= 13943fi 13944 13945 if test $is_sparc64 = yes; then 13946 LIBGO_IS_SPARC64_TRUE= 13947 LIBGO_IS_SPARC64_FALSE='#' 13948else 13949 LIBGO_IS_SPARC64_TRUE='#' 13950 LIBGO_IS_SPARC64_FALSE= 13951fi 13952 13953 if test $is_x86_64 = yes; then 13954 LIBGO_IS_X86_64_TRUE= 13955 LIBGO_IS_X86_64_FALSE='#' 13956else 13957 LIBGO_IS_X86_64_TRUE='#' 13958 LIBGO_IS_X86_64_FALSE= 13959fi 13960 13961 13962 13963GO_LIBCALL_OS_FILE= 13964GO_LIBCALL_OS_ARCH_FILE= 13965GO_SYSCALL_OS_FILE= 13966GO_SYSCALL_OS_ARCH_FILE= 13967if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then 13968 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go" 13969fi 13970if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then 13971 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go" 13972fi 13973if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then 13974 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go" 13975fi 13976if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then 13977 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go" 13978fi 13979 13980 13981 13982 13983 13984OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 13985case "$target" in 13986 mips-sgi-irix6.5*) 13987 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct 13988 # msghdr in <sys/socket.h>. 13989 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500" 13990 ;; 13991 *-*-solaris2.1[01]) 13992 # Solaris 10+ needs this so struct msghdr gets the msg_control 13993 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as 13994 # above doesn't work with C99. 13995 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__" 13996 ;; 13997esac 13998 13999 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5 14001$as_echo_n "checking whether -fsplit-stack is supported... " >&6; } 14002if test "${libgo_cv_c_split_stack_supported+set}" = set; then : 14003 $as_echo_n "(cached) " >&6 14004else 14005 CFLAGS_hold=$CFLAGS 14006CFLAGS="$CFLAGS -fsplit-stack" 14007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14008/* end confdefs.h. */ 14009int i; 14010_ACEOF 14011if ac_fn_c_try_compile "$LINENO"; then : 14012 libgo_cv_c_split_stack_supported=yes 14013else 14014 libgo_cv_c_split_stack_supported=no 14015fi 14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14017CFLAGS=$CFLAGS_hold 14018fi 14019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5 14020$as_echo "$libgo_cv_c_split_stack_supported" >&6; } 14021 14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5 14023$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; } 14024if test "${libgo_cv_c_linker_split_non_split+set}" = set; then : 14025 $as_echo_n "(cached) " >&6 14026else 14027 cat > conftest1.c << EOF 14028extern void f(); 14029int main() { f(); return 0; } 14030EOF 14031cat > conftest2.c << EOF 14032void f() {} 14033EOF 14034$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c 14035$CC -c $CFLAGS $CPPFLAGS conftest2.c 14036if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then 14037 libgo_cv_c_linker_split_non_split=yes 14038else 14039 libgo_cv_c_linker_split_non_split=no 14040fi 14041rm -f conftest1.* conftest2.* conftest 14042fi 14043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5 14044$as_echo "$libgo_cv_c_linker_split_non_split" >&6; } 14045 14046if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then 14047 SPLIT_STACK=-fsplit-stack 14048 14049$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h 14050 14051else 14052 SPLIT_STACK= 14053fi 14054 14055 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then 14056 USING_SPLIT_STACK_TRUE= 14057 USING_SPLIT_STACK_FALSE='#' 14058else 14059 USING_SPLIT_STACK_TRUE='#' 14060 USING_SPLIT_STACK_FALSE= 14061fi 14062 14063 14064if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then 14065 GO_SPLIT_STACK=-fno-split-stack 14066else 14067 GO_SPLIT_STACK= 14068fi 14069 14070 14071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5 14072$as_echo_n "checking whether linker supports split stack... " >&6; } 14073if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then : 14074 $as_echo_n "(cached) " >&6 14075else 14076 libgo_cv_c_linker_supports_split_stack=no 14077if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then 14078 libgo_cv_c_linker_supports_split_stack=yes 14079fi 14080fi 14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5 14082$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; } 14083if test "$libgo_cv_c_linker_supports_split_stack" = yes; then 14084 14085$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h 14086 14087fi 14088 14089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5 14090$as_echo_n "checking whether compiler is llgo... " >&6; } 14091if test "${libgo_cv_c_goc_is_llgo+set}" = set; then : 14092 $as_echo_n "(cached) " >&6 14093else 14094 libgo_cv_c_goc_is_llgo=no 14095if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then 14096 libgo_cv_c_goc_is_llgo=yes 14097fi 14098fi 14099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5 14100$as_echo "$libgo_cv_c_goc_is_llgo" >&6; } 14101 if test "$libgo_cv_c_goc_is_llgo" = yes; then 14102 GOC_IS_LLGO_TRUE= 14103 GOC_IS_LLGO_FALSE='#' 14104else 14105 GOC_IS_LLGO_TRUE='#' 14106 GOC_IS_LLGO_FALSE= 14107fi 14108 14109 14110MATH_LIBS= 14111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 14112$as_echo_n "checking for sqrt in -lm... " >&6; } 14113if test "${ac_cv_lib_m_sqrt+set}" = set; then : 14114 $as_echo_n "(cached) " >&6 14115else 14116 ac_check_lib_save_LIBS=$LIBS 14117LIBS="-lm $LIBS" 14118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14119/* end confdefs.h. */ 14120 14121/* Override any GCC internal prototype to avoid an error. 14122 Use char because int might match the return type of a GCC 14123 builtin and then its argument prototype would still apply. */ 14124#ifdef __cplusplus 14125extern "C" 14126#endif 14127char sqrt (); 14128int 14129main () 14130{ 14131return sqrt (); 14132 ; 14133 return 0; 14134} 14135_ACEOF 14136if ac_fn_c_try_link "$LINENO"; then : 14137 ac_cv_lib_m_sqrt=yes 14138else 14139 ac_cv_lib_m_sqrt=no 14140fi 14141rm -f core conftest.err conftest.$ac_objext \ 14142 conftest$ac_exeext conftest.$ac_ext 14143LIBS=$ac_check_lib_save_LIBS 14144fi 14145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 14146$as_echo "$ac_cv_lib_m_sqrt" >&6; } 14147if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 14148 MATH_LIBS=-lm 14149fi 14150 14151 14152 14153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5 14154$as_echo_n "checking for socket libraries... " >&6; } 14155if test "${libgo_cv_lib_sockets+set}" = set; then : 14156 $as_echo_n "(cached) " >&6 14157else 14158 libgo_cv_lib_sockets= 14159 libgo_check_both=no 14160 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 14161if test "x$ac_cv_func_connect" = x""yes; then : 14162 libgo_check_socket=no 14163else 14164 libgo_check_socket=yes 14165fi 14166 14167 if test "$libgo_check_socket" = "yes"; then 14168 unset ac_cv_func_connect 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 14170$as_echo_n "checking for main in -lsocket... " >&6; } 14171if test "${ac_cv_lib_socket_main+set}" = set; then : 14172 $as_echo_n "(cached) " >&6 14173else 14174 ac_check_lib_save_LIBS=$LIBS 14175LIBS="-lsocket $LIBS" 14176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14177/* end confdefs.h. */ 14178 14179 14180int 14181main () 14182{ 14183return main (); 14184 ; 14185 return 0; 14186} 14187_ACEOF 14188if ac_fn_c_try_link "$LINENO"; then : 14189 ac_cv_lib_socket_main=yes 14190else 14191 ac_cv_lib_socket_main=no 14192fi 14193rm -f core conftest.err conftest.$ac_objext \ 14194 conftest$ac_exeext conftest.$ac_ext 14195LIBS=$ac_check_lib_save_LIBS 14196fi 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 14198$as_echo "$ac_cv_lib_socket_main" >&6; } 14199if test "x$ac_cv_lib_socket_main" = x""yes; then : 14200 libgo_cv_lib_sockets="-lsocket" 14201else 14202 libgo_check_both=yes 14203fi 14204 14205 fi 14206 if test "$libgo_check_both" = "yes"; then 14207 libgo_old_libs=$LIBS 14208 LIBS="$LIBS -lsocket -lnsl" 14209 unset ac_cv_func_accept 14210 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 14211if test "x$ac_cv_func_accept" = x""yes; then : 14212 libgo_check_nsl=no 14213 libgo_cv_lib_sockets="-lsocket -lnsl" 14214fi 14215 14216 unset ac_cv_func_accept 14217 LIBS=$libgo_old_libs 14218 fi 14219 unset ac_cv_func_gethostbyname 14220 libgo_old_libs="$LIBS" 14221 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 14222if test "x$ac_cv_func_gethostbyname" = x""yes; then : 14223 14224else 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 14226$as_echo_n "checking for main in -lnsl... " >&6; } 14227if test "${ac_cv_lib_nsl_main+set}" = set; then : 14228 $as_echo_n "(cached) " >&6 14229else 14230 ac_check_lib_save_LIBS=$LIBS 14231LIBS="-lnsl $LIBS" 14232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14233/* end confdefs.h. */ 14234 14235 14236int 14237main () 14238{ 14239return main (); 14240 ; 14241 return 0; 14242} 14243_ACEOF 14244if ac_fn_c_try_link "$LINENO"; then : 14245 ac_cv_lib_nsl_main=yes 14246else 14247 ac_cv_lib_nsl_main=no 14248fi 14249rm -f core conftest.err conftest.$ac_objext \ 14250 conftest$ac_exeext conftest.$ac_ext 14251LIBS=$ac_check_lib_save_LIBS 14252fi 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 14254$as_echo "$ac_cv_lib_nsl_main" >&6; } 14255if test "x$ac_cv_lib_nsl_main" = x""yes; then : 14256 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl" 14257fi 14258 14259fi 14260 14261 unset ac_cv_func_gethostbyname 14262 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 14263if test "x$ac_cv_func_sendfile" = x""yes; then : 14264 14265else 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5 14267$as_echo_n "checking for main in -lsendfile... " >&6; } 14268if test "${ac_cv_lib_sendfile_main+set}" = set; then : 14269 $as_echo_n "(cached) " >&6 14270else 14271 ac_check_lib_save_LIBS=$LIBS 14272LIBS="-lsendfile $LIBS" 14273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14274/* end confdefs.h. */ 14275 14276 14277int 14278main () 14279{ 14280return main (); 14281 ; 14282 return 0; 14283} 14284_ACEOF 14285if ac_fn_c_try_link "$LINENO"; then : 14286 ac_cv_lib_sendfile_main=yes 14287else 14288 ac_cv_lib_sendfile_main=no 14289fi 14290rm -f core conftest.err conftest.$ac_objext \ 14291 conftest$ac_exeext conftest.$ac_ext 14292LIBS=$ac_check_lib_save_LIBS 14293fi 14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5 14295$as_echo "$ac_cv_lib_sendfile_main" >&6; } 14296if test "x$ac_cv_lib_sendfile_main" = x""yes; then : 14297 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile" 14298fi 14299 14300fi 14301 14302 LIBS=$libgo_old_libs 14303 14304fi 14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5 14306$as_echo "$libgo_cv_lib_sockets" >&6; } 14307NET_LIBS="$libgo_cv_lib_sockets" 14308 14309 14310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5 14311$as_echo_n "checking whether -pthread is supported... " >&6; } 14312if test "${libgo_cv_lib_pthread+set}" = set; then : 14313 $as_echo_n "(cached) " >&6 14314else 14315 CFLAGS_hold=$CFLAGS 14316CFLAGS="$CFLAGS -pthread" 14317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14318/* end confdefs.h. */ 14319int i; 14320_ACEOF 14321if ac_fn_c_try_compile "$LINENO"; then : 14322 libgo_cv_lib_pthread=yes 14323else 14324 libgo_cv_lib_pthread=no 14325fi 14326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14327CFLAGS=$CFLAGS_hold 14328fi 14329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5 14330$as_echo "$libgo_cv_lib_pthread" >&6; } 14331PTHREAD_CFLAGS= 14332if test "$libgo_cv_lib_pthread" = yes; then 14333 PTHREAD_CFLAGS=-pthread 14334fi 14335 14336 14337PTHREAD_LIBS= 14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 14339$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 14340if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 14341 $as_echo_n "(cached) " >&6 14342else 14343 ac_check_lib_save_LIBS=$LIBS 14344LIBS="-lpthread $LIBS" 14345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14346/* end confdefs.h. */ 14347 14348/* Override any GCC internal prototype to avoid an error. 14349 Use char because int might match the return type of a GCC 14350 builtin and then its argument prototype would still apply. */ 14351#ifdef __cplusplus 14352extern "C" 14353#endif 14354char pthread_create (); 14355int 14356main () 14357{ 14358return pthread_create (); 14359 ; 14360 return 0; 14361} 14362_ACEOF 14363if ac_fn_c_try_link "$LINENO"; then : 14364 ac_cv_lib_pthread_pthread_create=yes 14365else 14366 ac_cv_lib_pthread_pthread_create=no 14367fi 14368rm -f core conftest.err conftest.$ac_objext \ 14369 conftest$ac_exeext conftest.$ac_ext 14370LIBS=$ac_check_lib_save_LIBS 14371fi 14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 14373$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 14374if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 14375 PTHREAD_LIBS=-lpthread 14376fi 14377 14378 14379 14380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 14381$as_echo_n "checking for library containing sched_yield... " >&6; } 14382if test "${ac_cv_search_sched_yield+set}" = set; then : 14383 $as_echo_n "(cached) " >&6 14384else 14385 ac_func_search_save_LIBS=$LIBS 14386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14387/* end confdefs.h. */ 14388 14389/* Override any GCC internal prototype to avoid an error. 14390 Use char because int might match the return type of a GCC 14391 builtin and then its argument prototype would still apply. */ 14392#ifdef __cplusplus 14393extern "C" 14394#endif 14395char sched_yield (); 14396int 14397main () 14398{ 14399return sched_yield (); 14400 ; 14401 return 0; 14402} 14403_ACEOF 14404for ac_lib in '' rt; do 14405 if test -z "$ac_lib"; then 14406 ac_res="none required" 14407 else 14408 ac_res=-l$ac_lib 14409 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14410 fi 14411 if ac_fn_c_try_link "$LINENO"; then : 14412 ac_cv_search_sched_yield=$ac_res 14413fi 14414rm -f core conftest.err conftest.$ac_objext \ 14415 conftest$ac_exeext 14416 if test "${ac_cv_search_sched_yield+set}" = set; then : 14417 break 14418fi 14419done 14420if test "${ac_cv_search_sched_yield+set}" = set; then : 14421 14422else 14423 ac_cv_search_sched_yield=no 14424fi 14425rm conftest.$ac_ext 14426LIBS=$ac_func_search_save_LIBS 14427fi 14428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 14429$as_echo "$ac_cv_search_sched_yield" >&6; } 14430ac_res=$ac_cv_search_sched_yield 14431if test "$ac_res" != no; then : 14432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14433 14434fi 14435 14436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 14437$as_echo_n "checking for library containing nanosleep... " >&6; } 14438if test "${ac_cv_search_nanosleep+set}" = set; then : 14439 $as_echo_n "(cached) " >&6 14440else 14441 ac_func_search_save_LIBS=$LIBS 14442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14443/* end confdefs.h. */ 14444 14445/* Override any GCC internal prototype to avoid an error. 14446 Use char because int might match the return type of a GCC 14447 builtin and then its argument prototype would still apply. */ 14448#ifdef __cplusplus 14449extern "C" 14450#endif 14451char nanosleep (); 14452int 14453main () 14454{ 14455return nanosleep (); 14456 ; 14457 return 0; 14458} 14459_ACEOF 14460for ac_lib in '' rt; do 14461 if test -z "$ac_lib"; then 14462 ac_res="none required" 14463 else 14464 ac_res=-l$ac_lib 14465 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14466 fi 14467 if ac_fn_c_try_link "$LINENO"; then : 14468 ac_cv_search_nanosleep=$ac_res 14469fi 14470rm -f core conftest.err conftest.$ac_objext \ 14471 conftest$ac_exeext 14472 if test "${ac_cv_search_nanosleep+set}" = set; then : 14473 break 14474fi 14475done 14476if test "${ac_cv_search_nanosleep+set}" = set; then : 14477 14478else 14479 ac_cv_search_nanosleep=no 14480fi 14481rm conftest.$ac_ext 14482LIBS=$ac_func_search_save_LIBS 14483fi 14484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 14485$as_echo "$ac_cv_search_nanosleep" >&6; } 14486ac_res=$ac_cv_search_nanosleep 14487if test "$ac_res" != no; then : 14488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14489 14490fi 14491 14492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 14493$as_echo_n "checking for library containing clock_gettime... " >&6; } 14494if test "${ac_cv_search_clock_gettime+set}" = set; then : 14495 $as_echo_n "(cached) " >&6 14496else 14497 ac_func_search_save_LIBS=$LIBS 14498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499/* end confdefs.h. */ 14500 14501/* Override any GCC internal prototype to avoid an error. 14502 Use char because int might match the return type of a GCC 14503 builtin and then its argument prototype would still apply. */ 14504#ifdef __cplusplus 14505extern "C" 14506#endif 14507char clock_gettime (); 14508int 14509main () 14510{ 14511return clock_gettime (); 14512 ; 14513 return 0; 14514} 14515_ACEOF 14516for ac_lib in '' rt; do 14517 if test -z "$ac_lib"; then 14518 ac_res="none required" 14519 else 14520 ac_res=-l$ac_lib 14521 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14522 fi 14523 if ac_fn_c_try_link "$LINENO"; then : 14524 ac_cv_search_clock_gettime=$ac_res 14525fi 14526rm -f core conftest.err conftest.$ac_objext \ 14527 conftest$ac_exeext 14528 if test "${ac_cv_search_clock_gettime+set}" = set; then : 14529 break 14530fi 14531done 14532if test "${ac_cv_search_clock_gettime+set}" = set; then : 14533 14534else 14535 ac_cv_search_clock_gettime=no 14536fi 14537rm conftest.$ac_ext 14538LIBS=$ac_func_search_save_LIBS 14539fi 14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14541$as_echo "$ac_cv_search_clock_gettime" >&6; } 14542ac_res=$ac_cv_search_clock_gettime 14543if test "$ac_res" != no; then : 14544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14545 14546fi 14547 14548 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14550$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14551if test "${ac_cv_c_bigendian+set}" = set; then : 14552 $as_echo_n "(cached) " >&6 14553else 14554 ac_cv_c_bigendian=unknown 14555 # See if we're dealing with a universal compiler. 14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14557/* end confdefs.h. */ 14558#ifndef __APPLE_CC__ 14559 not a universal capable compiler 14560 #endif 14561 typedef int dummy; 14562 14563_ACEOF 14564if ac_fn_c_try_compile "$LINENO"; then : 14565 14566 # Check for potential -arch flags. It is not universal unless 14567 # there are at least two -arch flags with different values. 14568 ac_arch= 14569 ac_prev= 14570 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14571 if test -n "$ac_prev"; then 14572 case $ac_word in 14573 i?86 | x86_64 | ppc | ppc64) 14574 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14575 ac_arch=$ac_word 14576 else 14577 ac_cv_c_bigendian=universal 14578 break 14579 fi 14580 ;; 14581 esac 14582 ac_prev= 14583 elif test "x$ac_word" = "x-arch"; then 14584 ac_prev=arch 14585 fi 14586 done 14587fi 14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14589 if test $ac_cv_c_bigendian = unknown; then 14590 # See if sys/param.h defines the BYTE_ORDER macro. 14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14592/* end confdefs.h. */ 14593#include <sys/types.h> 14594 #include <sys/param.h> 14595 14596int 14597main () 14598{ 14599#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14600 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14601 && LITTLE_ENDIAN) 14602 bogus endian macros 14603 #endif 14604 14605 ; 14606 return 0; 14607} 14608_ACEOF 14609if ac_fn_c_try_compile "$LINENO"; then : 14610 # It does; now see whether it defined to BIG_ENDIAN or not. 14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14612/* end confdefs.h. */ 14613#include <sys/types.h> 14614 #include <sys/param.h> 14615 14616int 14617main () 14618{ 14619#if BYTE_ORDER != BIG_ENDIAN 14620 not big endian 14621 #endif 14622 14623 ; 14624 return 0; 14625} 14626_ACEOF 14627if ac_fn_c_try_compile "$LINENO"; then : 14628 ac_cv_c_bigendian=yes 14629else 14630 ac_cv_c_bigendian=no 14631fi 14632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14633fi 14634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14635 fi 14636 if test $ac_cv_c_bigendian = unknown; then 14637 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14639/* end confdefs.h. */ 14640#include <limits.h> 14641 14642int 14643main () 14644{ 14645#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14646 bogus endian macros 14647 #endif 14648 14649 ; 14650 return 0; 14651} 14652_ACEOF 14653if ac_fn_c_try_compile "$LINENO"; then : 14654 # It does; now see whether it defined to _BIG_ENDIAN or not. 14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14656/* end confdefs.h. */ 14657#include <limits.h> 14658 14659int 14660main () 14661{ 14662#ifndef _BIG_ENDIAN 14663 not big endian 14664 #endif 14665 14666 ; 14667 return 0; 14668} 14669_ACEOF 14670if ac_fn_c_try_compile "$LINENO"; then : 14671 ac_cv_c_bigendian=yes 14672else 14673 ac_cv_c_bigendian=no 14674fi 14675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14676fi 14677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14678 fi 14679 if test $ac_cv_c_bigendian = unknown; then 14680 # Compile a test program. 14681 if test "$cross_compiling" = yes; then : 14682 # Try to guess by grepping values from an object file. 14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14684/* end confdefs.h. */ 14685short int ascii_mm[] = 14686 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14687 short int ascii_ii[] = 14688 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14689 int use_ascii (int i) { 14690 return ascii_mm[i] + ascii_ii[i]; 14691 } 14692 short int ebcdic_ii[] = 14693 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14694 short int ebcdic_mm[] = 14695 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14696 int use_ebcdic (int i) { 14697 return ebcdic_mm[i] + ebcdic_ii[i]; 14698 } 14699 extern int foo; 14700 14701int 14702main () 14703{ 14704return use_ascii (foo) == use_ebcdic (foo); 14705 ; 14706 return 0; 14707} 14708_ACEOF 14709if ac_fn_c_try_compile "$LINENO"; then : 14710 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14711 ac_cv_c_bigendian=yes 14712 fi 14713 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14714 if test "$ac_cv_c_bigendian" = unknown; then 14715 ac_cv_c_bigendian=no 14716 else 14717 # finding both strings is unlikely to happen, but who knows? 14718 ac_cv_c_bigendian=unknown 14719 fi 14720 fi 14721fi 14722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14723else 14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726$ac_includes_default 14727int 14728main () 14729{ 14730 14731 /* Are we little or big endian? From Harbison&Steele. */ 14732 union 14733 { 14734 long int l; 14735 char c[sizeof (long int)]; 14736 } u; 14737 u.l = 1; 14738 return u.c[sizeof (long int) - 1] == 1; 14739 14740 ; 14741 return 0; 14742} 14743_ACEOF 14744if ac_fn_c_try_run "$LINENO"; then : 14745 ac_cv_c_bigendian=no 14746else 14747 ac_cv_c_bigendian=yes 14748fi 14749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14750 conftest.$ac_objext conftest.beam conftest.$ac_ext 14751fi 14752 14753 fi 14754fi 14755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14756$as_echo "$ac_cv_c_bigendian" >&6; } 14757 case $ac_cv_c_bigendian in #( 14758 yes) 14759 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14760;; #( 14761 no) 14762 ;; #( 14763 universal) 14764 14765$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14766 14767 ;; #( 14768 *) 14769 as_fn_error "unknown endianness 14770 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14771 esac 14772 14773 14774 14775 14776# Check whether --with-system-libunwind was given. 14777if test "${with_system_libunwind+set}" = set; then : 14778 withval=$with_system_libunwind; 14779fi 14780 14781 # If system-libunwind was not specifically set, pick a default setting. 14782 if test x$with_system_libunwind = x; then 14783 case ${target} in 14784 ia64-*-hpux*) with_system_libunwind=yes ;; 14785 *) with_system_libunwind=no ;; 14786 esac 14787 fi 14788 # Based on system-libunwind and target, do we have ipinfo? 14789 if test x$with_system_libunwind = xyes; then 14790 case ${target} in 14791 ia64-*-*) have_unwind_getipinfo=no ;; 14792 *) have_unwind_getipinfo=yes ;; 14793 esac 14794 else 14795 # Darwin before version 9 does not have _Unwind_GetIPInfo. 14796 14797 case ${target} in 14798 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; 14799 *) have_unwind_getipinfo=yes ;; 14800 esac 14801 14802 fi 14803 14804 if test x$have_unwind_getipinfo = xyes; then 14805 14806$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h 14807 14808 fi 14809 14810 14811for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h 14812do : 14813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14814ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14815eval as_val=\$$as_ac_Header 14816 if test "x$as_val" = x""yes; then : 14817 cat >>confdefs.h <<_ACEOF 14818#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14819_ACEOF 14820 14821fi 14822 14823done 14824 14825 14826for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h 14827do : 14828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14829ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H 14830#include <sys/socket.h> 14831#endif 14832 14833" 14834eval as_val=\$$as_ac_Header 14835 if test "x$as_val" = x""yes; then : 14836 cat >>confdefs.h <<_ACEOF 14837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14838_ACEOF 14839 14840fi 14841 14842done 14843 14844 14845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5 14846$as_echo_n "checking whether <ustat.h> can be used... " >&6; } 14847if test "${libgo_cv_c_ustat_h+set}" = set; then : 14848 $as_echo_n "(cached) " >&6 14849else 14850 CFLAGS_hold=$CFLAGS 14851CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS" 14852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854 14855#include <sys/types.h> 14856#ifdef HAVE_LINUX_FILTER_H 14857#include <linux/filter.h> 14858#endif 14859#include <ustat.h> 14860 14861_ACEOF 14862if ac_fn_c_try_compile "$LINENO"; then : 14863 libgo_cv_c_ustat_h=yes 14864else 14865 libgo_cv_c_ustat_h=no 14866fi 14867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14868CFLAGS=$CFLAGS_hold 14869fi 14870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5 14871$as_echo "$libgo_cv_c_ustat_h" >&6; } 14872if test $libgo_cv_c_ustat_h = yes; then 14873 14874$as_echo "#define HAVE_USTAT_H 1" >>confdefs.h 14875 14876fi 14877 14878 if test "$ac_cv_header_sys_mman_h" = yes; then 14879 HAVE_SYS_MMAN_H_TRUE= 14880 HAVE_SYS_MMAN_H_FALSE='#' 14881else 14882 HAVE_SYS_MMAN_H_TRUE='#' 14883 HAVE_SYS_MMAN_H_FALSE= 14884fi 14885 14886 14887for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr 14888do : 14889 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14890ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14891eval as_val=\$$as_ac_var 14892 if test "x$as_val" = x""yes; then : 14893 cat >>confdefs.h <<_ACEOF 14894#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14895_ACEOF 14896 14897fi 14898done 14899 14900 if test "$ac_cv_func_strerror_r" = yes; then 14901 HAVE_STRERROR_R_TRUE= 14902 HAVE_STRERROR_R_FALSE='#' 14903else 14904 HAVE_STRERROR_R_TRUE='#' 14905 HAVE_STRERROR_R_FALSE= 14906fi 14907 14908 if test "$ac_cv_func_wait4" = yes; then 14909 HAVE_WAIT4_TRUE= 14910 HAVE_WAIT4_FALSE='#' 14911else 14912 HAVE_WAIT4_TRUE='#' 14913 HAVE_WAIT4_FALSE= 14914fi 14915 14916 14917for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat 14918do : 14919 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14920ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14921eval as_val=\$$as_ac_var 14922 if test "x$as_val" = x""yes; then : 14923 cat >>confdefs.h <<_ACEOF 14924#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14925_ACEOF 14926 14927fi 14928done 14929 14930ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14931if test "x$ac_cv_type_off_t" = x""yes; then : 14932 14933else 14934 14935cat >>confdefs.h <<_ACEOF 14936#define off_t long int 14937_ACEOF 14938 14939fi 14940 14941ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default" 14942if test "x$ac_cv_type_loff_t" = x""yes; then : 14943 14944cat >>confdefs.h <<_ACEOF 14945#define HAVE_LOFF_T 1 14946_ACEOF 14947 14948 14949fi 14950 14951 14952LIBS_hold="$LIBS" 14953LIBS="$LIBS -lm" 14954for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl 14955do : 14956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14957ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14958eval as_val=\$$as_ac_var 14959 if test "x$as_val" = x""yes; then : 14960 cat >>confdefs.h <<_ACEOF 14961#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14962_ACEOF 14963 14964fi 14965done 14966 14967LIBS="$LIBS_hold" 14968 14969CFLAGS_hold="$CFLAGS" 14970CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14971LIBS_hold="$LIBS" 14972LIBS="$LIBS $PTHREAD_LIBS" 14973for ac_func in sem_timedwait 14974do : 14975 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 14976if test "x$ac_cv_func_sem_timedwait" = x""yes; then : 14977 cat >>confdefs.h <<_ACEOF 14978#define HAVE_SEM_TIMEDWAIT 1 14979_ACEOF 14980 14981fi 14982done 14983 14984CFLAGS="$CFLAGS_hold" 14985LIBS="$LIBS_hold" 14986 14987LIBS_hold="$LIBS" 14988LIBS="$LIBS $MATH_LIBS" 14989for ac_func in matherr 14990do : 14991 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr" 14992if test "x$ac_cv_func_matherr" = x""yes; then : 14993 cat >>confdefs.h <<_ACEOF 14994#define HAVE_MATHERR 1 14995_ACEOF 14996 14997fi 14998done 14999 15000LIBS="$LIBS_hold" 15001 15002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5 15003$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; } 15004if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then : 15005 $as_echo_n "(cached) " >&6 15006else 15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15008/* end confdefs.h. */ 15009 15010typedef unsigned int uint32 __attribute__ ((mode (SI))); 15011uint32 i; 15012int main() { return __sync_bool_compare_and_swap (&i, 0, 1); } 15013 15014_ACEOF 15015if ac_fn_c_try_link "$LINENO"; then : 15016 libgo_cv_func___sync_bool_compare_and_swap_4=yes 15017else 15018 libgo_cv_func___sync_bool_compare_and_swap_4=no 15019fi 15020rm -f core conftest.err conftest.$ac_objext \ 15021 conftest$ac_exeext conftest.$ac_ext 15022fi 15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5 15024$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; } 15025if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then 15026 15027$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h 15028 15029fi 15030 15031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5 15032$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; } 15033if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then : 15034 $as_echo_n "(cached) " >&6 15035else 15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15037/* end confdefs.h. */ 15038 15039typedef unsigned int uint64 __attribute__ ((mode (DI))); 15040uint64 i; 15041int main() { return __sync_bool_compare_and_swap (&i, 0, 1); } 15042 15043_ACEOF 15044if ac_fn_c_try_link "$LINENO"; then : 15045 libgo_cv_func___sync_bool_compare_and_swap_8=yes 15046else 15047 libgo_cv_func___sync_bool_compare_and_swap_8=no 15048fi 15049rm -f core conftest.err conftest.$ac_objext \ 15050 conftest$ac_exeext conftest.$ac_ext 15051fi 15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5 15053$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; } 15054if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then 15055 15056$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h 15057 15058fi 15059 15060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5 15061$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; } 15062if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then : 15063 $as_echo_n "(cached) " >&6 15064else 15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15066/* end confdefs.h. */ 15067 15068typedef unsigned int uint32 __attribute__ ((mode (SI))); 15069uint32 i; 15070int main() { return __sync_fetch_and_add (&i, 1); } 15071 15072_ACEOF 15073if ac_fn_c_try_link "$LINENO"; then : 15074 libgo_cv_func___sync_fetch_and_add_4=yes 15075else 15076 libgo_cv_func___sync_fetch_and_add_4=no 15077fi 15078rm -f core conftest.err conftest.$ac_objext \ 15079 conftest$ac_exeext conftest.$ac_ext 15080fi 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5 15082$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; } 15083if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then 15084 15085$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h 15086 15087fi 15088 15089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5 15090$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; } 15091if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then : 15092 $as_echo_n "(cached) " >&6 15093else 15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15095/* end confdefs.h. */ 15096 15097typedef unsigned int uint64 __attribute__ ((mode (DI))); 15098uint64 i; 15099int main() { return __sync_add_and_fetch (&i, 1); } 15100 15101_ACEOF 15102if ac_fn_c_try_link "$LINENO"; then : 15103 libgo_cv_func___sync_add_and_fetch_8=yes 15104else 15105 libgo_cv_func___sync_add_and_fetch_8=no 15106fi 15107rm -f core conftest.err conftest.$ac_objext \ 15108 conftest$ac_exeext conftest.$ac_ext 15109fi 15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5 15111$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; } 15112if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then 15113 15114$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h 15115 15116fi 15117 15118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5 15119$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; } 15120if test "${libgo_cv_c_stringops+set}" = set; then : 15121 $as_echo_n "(cached) " >&6 15122else 15123 CFLAGS_hold=$CFLAGS 15124CFLAGS="$CFLAGS -minline-all-stringops" 15125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15126/* end confdefs.h. */ 15127int i; 15128_ACEOF 15129if ac_fn_c_try_compile "$LINENO"; then : 15130 libgo_cv_c_stringops=yes 15131else 15132 libgo_cv_c_stringops=no 15133fi 15134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15135CFLAGS=$CFLAGS_hold 15136fi 15137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5 15138$as_echo "$libgo_cv_c_stringops" >&6; } 15139STRINGOPS_FLAG= 15140if test "$libgo_cv_c_stringops" = yes; then 15141 STRINGOPS_FLAG=-minline-all-stringops 15142fi 15143 15144 15145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5 15146$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; } 15147if test "${libgo_cv_c_fancymath+set}" = set; then : 15148 $as_echo_n "(cached) " >&6 15149else 15150 CFLAGS_hold=$CFLAGS 15151CFLAGS="$CFLAGS -mfancy-math-387" 15152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15153/* end confdefs.h. */ 15154int i; 15155_ACEOF 15156if ac_fn_c_try_compile "$LINENO"; then : 15157 libgo_cv_c_fancymath=yes 15158else 15159 libgo_cv_c_fancymath=no 15160fi 15161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15162CFLAGS=$CFLAGS_hold 15163fi 15164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5 15165$as_echo "$libgo_cv_c_fancymath" >&6; } 15166MATH_FLAG= 15167if test "$libgo_cv_c_fancymath" = yes; then 15168 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations" 15169else 15170 MATH_FLAG="-ffp-contract=off" 15171fi 15172 15173 15174CFLAGS_hold=$CFLAGS 15175CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" 15176ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" 15177if test "x$ac_cv_type_off64_t" = x""yes; then : 15178 15179cat >>confdefs.h <<_ACEOF 15180#define HAVE_OFF64_T 1 15181_ACEOF 15182 15183 15184fi 15185 15186CFLAGS=$CFLAGS_hold 15187 15188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5 15189$as_echo_n "checking epoll_event size... " >&6; } 15190if test "${libgo_cv_c_epoll_event_size+set}" = set; then : 15191 $as_echo_n "(cached) " >&6 15192else 15193 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then : 15194 15195else 15196 libgo_cv_c_epoll_event_size=0 15197fi 15198 15199fi 15200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5 15201$as_echo "$libgo_cv_c_epoll_event_size" >&6; } 15202SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size} 15203 15204 15205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5 15206$as_echo_n "checking epoll_event data.fd offset... " >&6; } 15207if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then : 15208 $as_echo_n "(cached) " >&6 15209else 15210 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h> 15211#include <sys/epoll.h>"; then : 15212 15213else 15214 libgo_cv_c_epoll_event_fd_offset=0 15215fi 15216 15217fi 15218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5 15219$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; } 15220STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset} 15221 15222 15223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15224/* end confdefs.h. */ 15225#include <sys/stat.h> 15226 15227_ACEOF 15228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15229 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then : 15230 have_stat_timespec=yes 15231else 15232 have_stat_timespec=no 15233fi 15234rm -f conftest* 15235 15236 if test $have_stat_timespec = yes; then 15237 HAVE_STAT_TIMESPEC_TRUE= 15238 HAVE_STAT_TIMESPEC_FALSE='#' 15239else 15240 HAVE_STAT_TIMESPEC_TRUE='#' 15241 HAVE_STAT_TIMESPEC_FALSE= 15242fi 15243 15244 15245ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h> 15246" 15247if test "x$ac_cv_type_struct_exception" = x""yes; then : 15248 libgo_has_struct_exception=yes 15249else 15250 libgo_has_struct_exception=no 15251fi 15252 15253if test "$libgo_has_struct_exception" = "yes"; then 15254 15255$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h 15256 15257fi 15258 15259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5 15260$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; } 15261if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then : 15262 $as_echo_n "(cached) " >&6 15263else 15264 CFLAGS_hold="$CFLAGS" 15265CFLAGS="$PTHREAD_CFLAGS" 15266LIBS_hold="$LIBS" 15267LIBS="$LIBS $PTHREAD_LIBS" 15268# The cast to long int works around a bug in the HP C Compiler 15269# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15270# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15271# This bug is HP SR number 8606223364. 15272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15273$as_echo_n "checking size of void *... " >&6; } 15274if test "${ac_cv_sizeof_void_p+set}" = set; then : 15275 $as_echo_n "(cached) " >&6 15276else 15277 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15278 15279else 15280 if test "$ac_cv_type_void_p" = yes; then 15281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15283{ as_fn_set_status 77 15284as_fn_error "cannot compute sizeof (void *) 15285See \`config.log' for more details." "$LINENO" 5; }; } 15286 else 15287 ac_cv_sizeof_void_p=0 15288 fi 15289fi 15290 15291fi 15292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15293$as_echo "$ac_cv_sizeof_void_p" >&6; } 15294 15295 15296 15297cat >>confdefs.h <<_ACEOF 15298#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15299_ACEOF 15300 15301 15302as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val 15303if test "$cross_compiling" = yes; then : 15304 case "$target:$ptr_type_size" in 15305 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64) 15306 libgo_cv_lib_setcontext_clobbers_tls=yes ;; 15307 *) 15308 libgo_cv_lib_setcontext_clobbers_tls=no ;; 15309 esac 15310 15311else 15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15313/* end confdefs.h. */ 15314 15315#include <pthread.h> 15316#include <stdlib.h> 15317#include <ucontext.h> 15318#include <unistd.h> 15319 15320__thread int tls; 15321 15322static char stack[10 * 1024 * 1024]; 15323static ucontext_t c; 15324 15325/* Called via makecontext/setcontext. */ 15326 15327static void 15328cfn (void) 15329{ 15330 exit (tls); 15331} 15332 15333/* Called via pthread_create. */ 15334 15335static void * 15336tfn (void *dummy) 15337{ 15338 /* The thread should still see this value after calling 15339 setcontext. */ 15340 tls = 0; 15341 15342 setcontext (&c); 15343 15344 /* The call to setcontext should not return. */ 15345 abort (); 15346} 15347 15348int 15349main () 15350{ 15351 pthread_t tid; 15352 15353 /* The thread should not see this value. */ 15354 tls = 1; 15355 15356 if (getcontext (&c) < 0) 15357 abort (); 15358 15359 c.uc_stack.ss_sp = stack; 15360#ifdef MAKECONTEXT_STACK_TOP 15361 c.uc_stack.ss_sp += sizeof stack; 15362#endif 15363 c.uc_stack.ss_flags = 0; 15364 c.uc_stack.ss_size = sizeof stack; 15365 c.uc_link = NULL; 15366 makecontext (&c, cfn, 0); 15367 15368 if (pthread_create (&tid, NULL, tfn, NULL) != 0) 15369 abort (); 15370 15371 if (pthread_join (tid, NULL) != 0) 15372 abort (); 15373 15374 /* The thread should have called exit. */ 15375 abort (); 15376} 15377 15378_ACEOF 15379if ac_fn_c_try_run "$LINENO"; then : 15380 libgo_cv_lib_setcontext_clobbers_tls=no 15381else 15382 libgo_cv_lib_setcontext_clobbers_tls=yes 15383fi 15384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15385 conftest.$ac_objext conftest.beam conftest.$ac_ext 15386fi 15387 15388CFLAGS="$CFLAGS_hold" 15389LIBS="$LIBS_hold" 15390 15391fi 15392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5 15393$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; } 15394if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then 15395 15396$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h 15397 15398fi 15399 15400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5 15401$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; } 15402if test "${libgo_cv_ro_eh_frame+set}" = set; then : 15403 $as_echo_n "(cached) " >&6 15404else 15405 15406libgo_cv_ro_eh_frame=no 15407echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c 15408if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then 15409 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then 15410 libgo_cv_ro_eh_frame=yes 15411 elif grep '.section.*eh_frame.*#alloc' conftest.c \ 15412 | grep -v '#write' > /dev/null; then 15413 libgo_cv_ro_eh_frame=yes 15414 fi 15415fi 15416rm -f conftest.* 15417 15418fi 15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5 15420$as_echo "$libgo_cv_ro_eh_frame" >&6; } 15421if test "x$libgo_cv_ro_eh_frame" = xyes; then 15422 15423$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h 15424 15425else 15426 15427$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h 15428 15429fi 15430 15431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5 15432$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; } 15433if test "${libgo_cv_c_unused_arguments+set}" = set; then : 15434 $as_echo_n "(cached) " >&6 15435else 15436 CFLAGS_hold=$CFLAGS 15437CFLAGS="$CFLAGS -Qunused-arguments" 15438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15439/* end confdefs.h. */ 15440int i; 15441_ACEOF 15442if ac_fn_c_try_compile "$LINENO"; then : 15443 libgo_cv_c_unused_arguments=yes 15444else 15445 libgo_cv_c_unused_arguments=no 15446fi 15447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15448CFLAGS=$CFLAGS_hold 15449fi 15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5 15451$as_echo "$libgo_cv_c_unused_arguments" >&6; } 15452 15453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5 15454$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; } 15455if test "${libgo_cv_as_comdat_gnu+set}" = set; then : 15456 $as_echo_n "(cached) " >&6 15457else 15458 15459echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s 15460CFLAGS_hold=$CFLAGS 15461if test "$libgo_cv_c_unused_arguments" = yes; then 15462 CFLAGS="$CFLAGS -Qunused-arguments" 15463fi 15464if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then 15465 libgo_cv_as_comdat_gnu=yes 15466else 15467 libgo_cv_as_comdat_gnu=no 15468fi 15469CFLAGS=$CFLAGS_hold 15470 15471fi 15472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5 15473$as_echo "$libgo_cv_as_comdat_gnu" >&6; } 15474if test "x$libgo_cv_as_comdat_gnu" = xyes; then 15475 15476$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h 15477 15478fi 15479 15480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5 15481$as_echo_n "checking assembler supports pc related relocs... " >&6; } 15482if test "${libgo_cv_as_x86_pcrel+set}" = set; then : 15483 $as_echo_n "(cached) " >&6 15484else 15485 15486libgo_cv_as_x86_pcrel=yes 15487echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s 15488CFLAGS_hold=$CFLAGS 15489if test "$libgo_cv_c_unused_arguments" = yes; then 15490 CFLAGS="$CFLAGS -Qunused-arguments" 15491fi 15492if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then 15493 libgo_cv_as_x86_pcrel=no 15494fi 15495CFLAGS=$CFLAGS_hold 15496 15497fi 15498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5 15499$as_echo "$libgo_cv_as_x86_pcrel" >&6; } 15500if test "x$libgo_cv_as_x86_pcrel" = xyes; then 15501 15502$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h 15503 15504fi 15505 15506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5 15507$as_echo_n "checking assembler supports unwind section type... " >&6; } 15508if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then : 15509 $as_echo_n "(cached) " >&6 15510else 15511 15512libgo_cv_as_x86_64_unwind_section_type=yes 15513echo '.section .eh_frame,"a",@unwind' > conftest.s 15514CFLAGS_hold=$CFLAGS 15515if test "$libgo_cv_c_unused_arguments" = yes; then 15516 CFLAGS="$CFLAGS -Qunused-arguments" 15517fi 15518if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then 15519 libgo_cv_as_x86_64_unwind_section_type=no 15520fi 15521CFLAGS=$CFLAGS_hold 15522 15523fi 15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5 15525$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; } 15526if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then 15527 15528$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h 15529 15530fi 15531 15532cat >confcache <<\_ACEOF 15533# This file is a shell script that caches the results of configure 15534# tests run on this system so they can be shared between configure 15535# scripts and configure runs, see configure's option --config-cache. 15536# It is not useful on other systems. If it contains results you don't 15537# want to keep, you may remove or edit it. 15538# 15539# config.status only pays attention to the cache file if you give it 15540# the --recheck option to rerun configure. 15541# 15542# `ac_cv_env_foo' variables (set or unset) will be overridden when 15543# loading this file, other *unset* `ac_cv_foo' will be assigned the 15544# following values. 15545 15546_ACEOF 15547 15548# The following way of writing the cache mishandles newlines in values, 15549# but we know of no workaround that is simple, portable, and efficient. 15550# So, we kill variables containing newlines. 15551# Ultrix sh set writes to stderr and can't be redirected directly, 15552# and sets the high bit in the cache file unless we assign to the vars. 15553( 15554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15555 eval ac_val=\$$ac_var 15556 case $ac_val in #( 15557 *${as_nl}*) 15558 case $ac_var in #( 15559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15560$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15561 esac 15562 case $ac_var in #( 15563 _ | IFS | as_nl) ;; #( 15564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15565 *) { eval $ac_var=; unset $ac_var;} ;; 15566 esac ;; 15567 esac 15568 done 15569 15570 (set) 2>&1 | 15571 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15572 *${as_nl}ac_space=\ *) 15573 # `set' does not quote correctly, so add quotes: double-quote 15574 # substitution turns \\\\ into \\, and sed turns \\ into \. 15575 sed -n \ 15576 "s/'/'\\\\''/g; 15577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15578 ;; #( 15579 *) 15580 # `set' quotes correctly as required by POSIX, so do not add quotes. 15581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15582 ;; 15583 esac | 15584 sort 15585) | 15586 sed ' 15587 /^ac_cv_env_/b end 15588 t clear 15589 :clear 15590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15591 t end 15592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15593 :end' >>confcache 15594if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15595 if test -w "$cache_file"; then 15596 test "x$cache_file" != "x/dev/null" && 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15598$as_echo "$as_me: updating cache $cache_file" >&6;} 15599 cat confcache >$cache_file 15600 else 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15602$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15603 fi 15604fi 15605rm -f confcache 15606 15607if test ${multilib} = yes; then 15608 multilib_arg="--enable-multilib" 15609else 15610 multilib_arg= 15611fi 15612 15613ac_config_files="$ac_config_files Makefile testsuite/Makefile" 15614 15615 15616ac_config_commands="$ac_config_commands default" 15617 15618 15619cat >confcache <<\_ACEOF 15620# This file is a shell script that caches the results of configure 15621# tests run on this system so they can be shared between configure 15622# scripts and configure runs, see configure's option --config-cache. 15623# It is not useful on other systems. If it contains results you don't 15624# want to keep, you may remove or edit it. 15625# 15626# config.status only pays attention to the cache file if you give it 15627# the --recheck option to rerun configure. 15628# 15629# `ac_cv_env_foo' variables (set or unset) will be overridden when 15630# loading this file, other *unset* `ac_cv_foo' will be assigned the 15631# following values. 15632 15633_ACEOF 15634 15635# The following way of writing the cache mishandles newlines in values, 15636# but we know of no workaround that is simple, portable, and efficient. 15637# So, we kill variables containing newlines. 15638# Ultrix sh set writes to stderr and can't be redirected directly, 15639# and sets the high bit in the cache file unless we assign to the vars. 15640( 15641 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15642 eval ac_val=\$$ac_var 15643 case $ac_val in #( 15644 *${as_nl}*) 15645 case $ac_var in #( 15646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15647$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15648 esac 15649 case $ac_var in #( 15650 _ | IFS | as_nl) ;; #( 15651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15652 *) { eval $ac_var=; unset $ac_var;} ;; 15653 esac ;; 15654 esac 15655 done 15656 15657 (set) 2>&1 | 15658 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15659 *${as_nl}ac_space=\ *) 15660 # `set' does not quote correctly, so add quotes: double-quote 15661 # substitution turns \\\\ into \\, and sed turns \\ into \. 15662 sed -n \ 15663 "s/'/'\\\\''/g; 15664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15665 ;; #( 15666 *) 15667 # `set' quotes correctly as required by POSIX, so do not add quotes. 15668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15669 ;; 15670 esac | 15671 sort 15672) | 15673 sed ' 15674 /^ac_cv_env_/b end 15675 t clear 15676 :clear 15677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15678 t end 15679 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15680 :end' >>confcache 15681if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15682 if test -w "$cache_file"; then 15683 test "x$cache_file" != "x/dev/null" && 15684 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15685$as_echo "$as_me: updating cache $cache_file" >&6;} 15686 cat confcache >$cache_file 15687 else 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15689$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15690 fi 15691fi 15692rm -f confcache 15693 15694test "x$prefix" = xNONE && prefix=$ac_default_prefix 15695# Let make expand exec_prefix. 15696test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15697 15698DEFS=-DHAVE_CONFIG_H 15699 15700ac_libobjs= 15701ac_ltlibobjs= 15702for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15703 # 1. Remove the extension, and $U if already installed. 15704 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15705 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15706 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15707 # will be set to the directory where LIBOBJS objects are built. 15708 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15709 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15710done 15711LIBOBJS=$ac_libobjs 15712 15713LTLIBOBJS=$ac_ltlibobjs 15714 15715 15716 if test -n "$EXEEXT"; then 15717 am__EXEEXT_TRUE= 15718 am__EXEEXT_FALSE='#' 15719else 15720 am__EXEEXT_TRUE='#' 15721 am__EXEEXT_FALSE= 15722fi 15723 15724if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15725 as_fn_error "conditional \"AMDEP\" was never defined. 15726Usually this means the macro was only invoked conditionally." "$LINENO" 5 15727fi 15728if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15729 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15730Usually this means the macro was only invoked conditionally." "$LINENO" 5 15731fi 15732if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15733 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 15734Usually this means the macro was only invoked conditionally." "$LINENO" 5 15735fi 15736if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then 15737 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined. 15738Usually this means the macro was only invoked conditionally." "$LINENO" 5 15739fi 15740if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then 15741 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined. 15742Usually this means the macro was only invoked conditionally." "$LINENO" 5 15743fi 15744if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then 15745 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined. 15746Usually this means the macro was only invoked conditionally." "$LINENO" 5 15747fi 15748if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then 15749 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined. 15750Usually this means the macro was only invoked conditionally." "$LINENO" 5 15751fi 15752if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then 15753 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined. 15754Usually this means the macro was only invoked conditionally." "$LINENO" 5 15755fi 15756if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then 15757 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined. 15758Usually this means the macro was only invoked conditionally." "$LINENO" 5 15759fi 15760if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then 15761 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined. 15762Usually this means the macro was only invoked conditionally." "$LINENO" 5 15763fi 15764if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then 15765 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined. 15766Usually this means the macro was only invoked conditionally." "$LINENO" 5 15767fi 15768if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then 15769 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined. 15770Usually this means the macro was only invoked conditionally." "$LINENO" 5 15771fi 15772if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then 15773 as_fn_error "conditional \"LIBGO_IS_386\" was never defined. 15774Usually this means the macro was only invoked conditionally." "$LINENO" 5 15775fi 15776if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then 15777 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined. 15778Usually this means the macro was only invoked conditionally." "$LINENO" 5 15779fi 15780if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then 15781 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined. 15782Usually this means the macro was only invoked conditionally." "$LINENO" 5 15783fi 15784if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then 15785 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined. 15786Usually this means the macro was only invoked conditionally." "$LINENO" 5 15787fi 15788if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then 15789 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined. 15790Usually this means the macro was only invoked conditionally." "$LINENO" 5 15791fi 15792if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then 15793 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined. 15794Usually this means the macro was only invoked conditionally." "$LINENO" 5 15795fi 15796if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then 15797 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined. 15798Usually this means the macro was only invoked conditionally." "$LINENO" 5 15799fi 15800if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then 15801 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined. 15802Usually this means the macro was only invoked conditionally." "$LINENO" 5 15803fi 15804if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then 15805 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined. 15806Usually this means the macro was only invoked conditionally." "$LINENO" 5 15807fi 15808if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then 15809 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined. 15810Usually this means the macro was only invoked conditionally." "$LINENO" 5 15811fi 15812if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then 15813 as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined. 15814Usually this means the macro was only invoked conditionally." "$LINENO" 5 15815fi 15816if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then 15817 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined. 15818Usually this means the macro was only invoked conditionally." "$LINENO" 5 15819fi 15820if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then 15821 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined. 15822Usually this means the macro was only invoked conditionally." "$LINENO" 5 15823fi 15824if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then 15825 as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined. 15826Usually this means the macro was only invoked conditionally." "$LINENO" 5 15827fi 15828if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then 15829 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined. 15830Usually this means the macro was only invoked conditionally." "$LINENO" 5 15831fi 15832if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then 15833 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined. 15834Usually this means the macro was only invoked conditionally." "$LINENO" 5 15835fi 15836if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then 15837 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined. 15838Usually this means the macro was only invoked conditionally." "$LINENO" 5 15839fi 15840if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then 15841 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined. 15842Usually this means the macro was only invoked conditionally." "$LINENO" 5 15843fi 15844if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then 15845 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined. 15846Usually this means the macro was only invoked conditionally." "$LINENO" 5 15847fi 15848if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then 15849 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined. 15850Usually this means the macro was only invoked conditionally." "$LINENO" 5 15851fi 15852if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then 15853 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined. 15854Usually this means the macro was only invoked conditionally." "$LINENO" 5 15855fi 15856 15857if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then 15858 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined. 15859Usually this means the macro was only invoked conditionally." "$LINENO" 5 15860fi 15861if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then 15862 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined. 15863Usually this means the macro was only invoked conditionally." "$LINENO" 5 15864fi 15865if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then 15866 as_fn_error "conditional \"HAVE_WAIT4\" was never defined. 15867Usually this means the macro was only invoked conditionally." "$LINENO" 5 15868fi 15869if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then 15870 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined. 15871Usually this means the macro was only invoked conditionally." "$LINENO" 5 15872fi 15873 15874: ${CONFIG_STATUS=./config.status} 15875ac_write_fail=0 15876ac_clean_files_save=$ac_clean_files 15877ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15878{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15879$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15880as_write_fail=0 15881cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15882#! $SHELL 15883# Generated by $as_me. 15884# Run this file to recreate the current configuration. 15885# Compiler output produced by configure, useful for debugging 15886# configure, is in config.log if it exists. 15887 15888debug=false 15889ac_cs_recheck=false 15890ac_cs_silent=false 15891 15892SHELL=\${CONFIG_SHELL-$SHELL} 15893export SHELL 15894_ASEOF 15895cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15896## -------------------- ## 15897## M4sh Initialization. ## 15898## -------------------- ## 15899 15900# Be more Bourne compatible 15901DUALCASE=1; export DUALCASE # for MKS sh 15902if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15903 emulate sh 15904 NULLCMD=: 15905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15906 # is contrary to our usage. Disable this feature. 15907 alias -g '${1+"$@"}'='"$@"' 15908 setopt NO_GLOB_SUBST 15909else 15910 case `(set -o) 2>/dev/null` in #( 15911 *posix*) : 15912 set -o posix ;; #( 15913 *) : 15914 ;; 15915esac 15916fi 15917 15918 15919as_nl=' 15920' 15921export as_nl 15922# Printing a long string crashes Solaris 7 /usr/bin/printf. 15923as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15924as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15925as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15926# Prefer a ksh shell builtin over an external printf program on Solaris, 15927# but without wasting forks for bash or zsh. 15928if test -z "$BASH_VERSION$ZSH_VERSION" \ 15929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15930 as_echo='print -r --' 15931 as_echo_n='print -rn --' 15932elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15933 as_echo='printf %s\n' 15934 as_echo_n='printf %s' 15935else 15936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15937 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15938 as_echo_n='/usr/ucb/echo -n' 15939 else 15940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15941 as_echo_n_body='eval 15942 arg=$1; 15943 case $arg in #( 15944 *"$as_nl"*) 15945 expr "X$arg" : "X\\(.*\\)$as_nl"; 15946 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15947 esac; 15948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15949 ' 15950 export as_echo_n_body 15951 as_echo_n='sh -c $as_echo_n_body as_echo' 15952 fi 15953 export as_echo_body 15954 as_echo='sh -c $as_echo_body as_echo' 15955fi 15956 15957# The user is always right. 15958if test "${PATH_SEPARATOR+set}" != set; then 15959 PATH_SEPARATOR=: 15960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15962 PATH_SEPARATOR=';' 15963 } 15964fi 15965 15966 15967# IFS 15968# We need space, tab and new line, in precisely that order. Quoting is 15969# there to prevent editors from complaining about space-tab. 15970# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15971# splitting by setting IFS to empty value.) 15972IFS=" "" $as_nl" 15973 15974# Find who we are. Look in the path if we contain no directory separator. 15975case $0 in #(( 15976 *[\\/]* ) as_myself=$0 ;; 15977 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15978for as_dir in $PATH 15979do 15980 IFS=$as_save_IFS 15981 test -z "$as_dir" && as_dir=. 15982 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15983 done 15984IFS=$as_save_IFS 15985 15986 ;; 15987esac 15988# We did not find ourselves, most probably we were run as `sh COMMAND' 15989# in which case we are not to be found in the path. 15990if test "x$as_myself" = x; then 15991 as_myself=$0 15992fi 15993if test ! -f "$as_myself"; then 15994 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15995 exit 1 15996fi 15997 15998# Unset variables that we do not need and which cause bugs (e.g. in 15999# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16000# suppresses any "Segmentation fault" message there. '((' could 16001# trigger a bug in pdksh 5.2.14. 16002for as_var in BASH_ENV ENV MAIL MAILPATH 16003do eval test x\${$as_var+set} = xset \ 16004 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16005done 16006PS1='$ ' 16007PS2='> ' 16008PS4='+ ' 16009 16010# NLS nuisances. 16011LC_ALL=C 16012export LC_ALL 16013LANGUAGE=C 16014export LANGUAGE 16015 16016# CDPATH. 16017(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16018 16019 16020# as_fn_error ERROR [LINENO LOG_FD] 16021# --------------------------------- 16022# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16023# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16024# script with status $?, using 1 if that was 0. 16025as_fn_error () 16026{ 16027 as_status=$?; test $as_status -eq 0 && as_status=1 16028 if test "$3"; then 16029 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16030 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 16031 fi 16032 $as_echo "$as_me: error: $1" >&2 16033 as_fn_exit $as_status 16034} # as_fn_error 16035 16036 16037# as_fn_set_status STATUS 16038# ----------------------- 16039# Set $? to STATUS, without forking. 16040as_fn_set_status () 16041{ 16042 return $1 16043} # as_fn_set_status 16044 16045# as_fn_exit STATUS 16046# ----------------- 16047# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16048as_fn_exit () 16049{ 16050 set +e 16051 as_fn_set_status $1 16052 exit $1 16053} # as_fn_exit 16054 16055# as_fn_unset VAR 16056# --------------- 16057# Portably unset VAR. 16058as_fn_unset () 16059{ 16060 { eval $1=; unset $1;} 16061} 16062as_unset=as_fn_unset 16063# as_fn_append VAR VALUE 16064# ---------------------- 16065# Append the text in VALUE to the end of the definition contained in VAR. Take 16066# advantage of any shell optimizations that allow amortized linear growth over 16067# repeated appends, instead of the typical quadratic growth present in naive 16068# implementations. 16069if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16070 eval 'as_fn_append () 16071 { 16072 eval $1+=\$2 16073 }' 16074else 16075 as_fn_append () 16076 { 16077 eval $1=\$$1\$2 16078 } 16079fi # as_fn_append 16080 16081# as_fn_arith ARG... 16082# ------------------ 16083# Perform arithmetic evaluation on the ARGs, and store the result in the 16084# global $as_val. Take advantage of shells that can avoid forks. The arguments 16085# must be portable across $(()) and expr. 16086if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16087 eval 'as_fn_arith () 16088 { 16089 as_val=$(( $* )) 16090 }' 16091else 16092 as_fn_arith () 16093 { 16094 as_val=`expr "$@" || test $? -eq 1` 16095 } 16096fi # as_fn_arith 16097 16098 16099if expr a : '\(a\)' >/dev/null 2>&1 && 16100 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16101 as_expr=expr 16102else 16103 as_expr=false 16104fi 16105 16106if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16107 as_basename=basename 16108else 16109 as_basename=false 16110fi 16111 16112if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16113 as_dirname=dirname 16114else 16115 as_dirname=false 16116fi 16117 16118as_me=`$as_basename -- "$0" || 16119$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16120 X"$0" : 'X\(//\)$' \| \ 16121 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16122$as_echo X/"$0" | 16123 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16124 s//\1/ 16125 q 16126 } 16127 /^X\/\(\/\/\)$/{ 16128 s//\1/ 16129 q 16130 } 16131 /^X\/\(\/\).*/{ 16132 s//\1/ 16133 q 16134 } 16135 s/.*/./; q'` 16136 16137# Avoid depending upon Character Ranges. 16138as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16139as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16140as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16141as_cr_digits='0123456789' 16142as_cr_alnum=$as_cr_Letters$as_cr_digits 16143 16144ECHO_C= ECHO_N= ECHO_T= 16145case `echo -n x` in #((((( 16146-n*) 16147 case `echo 'xy\c'` in 16148 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16149 xy) ECHO_C='\c';; 16150 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16151 ECHO_T=' ';; 16152 esac;; 16153*) 16154 ECHO_N='-n';; 16155esac 16156 16157rm -f conf$$ conf$$.exe conf$$.file 16158if test -d conf$$.dir; then 16159 rm -f conf$$.dir/conf$$.file 16160else 16161 rm -f conf$$.dir 16162 mkdir conf$$.dir 2>/dev/null 16163fi 16164if (echo >conf$$.file) 2>/dev/null; then 16165 if ln -s conf$$.file conf$$ 2>/dev/null; then 16166 as_ln_s='ln -s' 16167 # ... but there are two gotchas: 16168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16170 # In both cases, we have to default to `cp -p'. 16171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16172 as_ln_s='cp -p' 16173 elif ln conf$$.file conf$$ 2>/dev/null; then 16174 as_ln_s=ln 16175 else 16176 as_ln_s='cp -p' 16177 fi 16178else 16179 as_ln_s='cp -p' 16180fi 16181rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16182rmdir conf$$.dir 2>/dev/null 16183 16184 16185# as_fn_mkdir_p 16186# ------------- 16187# Create "$as_dir" as a directory, including parents if necessary. 16188as_fn_mkdir_p () 16189{ 16190 16191 case $as_dir in #( 16192 -*) as_dir=./$as_dir;; 16193 esac 16194 test -d "$as_dir" || eval $as_mkdir_p || { 16195 as_dirs= 16196 while :; do 16197 case $as_dir in #( 16198 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16199 *) as_qdir=$as_dir;; 16200 esac 16201 as_dirs="'$as_qdir' $as_dirs" 16202 as_dir=`$as_dirname -- "$as_dir" || 16203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16204 X"$as_dir" : 'X\(//\)[^/]' \| \ 16205 X"$as_dir" : 'X\(//\)$' \| \ 16206 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16207$as_echo X"$as_dir" | 16208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16209 s//\1/ 16210 q 16211 } 16212 /^X\(\/\/\)[^/].*/{ 16213 s//\1/ 16214 q 16215 } 16216 /^X\(\/\/\)$/{ 16217 s//\1/ 16218 q 16219 } 16220 /^X\(\/\).*/{ 16221 s//\1/ 16222 q 16223 } 16224 s/.*/./; q'` 16225 test -d "$as_dir" && break 16226 done 16227 test -z "$as_dirs" || eval "mkdir $as_dirs" 16228 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 16229 16230 16231} # as_fn_mkdir_p 16232if mkdir -p . 2>/dev/null; then 16233 as_mkdir_p='mkdir -p "$as_dir"' 16234else 16235 test -d ./-p && rmdir ./-p 16236 as_mkdir_p=false 16237fi 16238 16239if test -x / >/dev/null 2>&1; then 16240 as_test_x='test -x' 16241else 16242 if ls -dL / >/dev/null 2>&1; then 16243 as_ls_L_option=L 16244 else 16245 as_ls_L_option= 16246 fi 16247 as_test_x=' 16248 eval sh -c '\'' 16249 if test -d "$1"; then 16250 test -d "$1/."; 16251 else 16252 case $1 in #( 16253 -*)set "./$1";; 16254 esac; 16255 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16256 ???[sx]*):;;*)false;;esac;fi 16257 '\'' sh 16258 ' 16259fi 16260as_executable_p=$as_test_x 16261 16262# Sed expression to map a string onto a valid CPP name. 16263as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16264 16265# Sed expression to map a string onto a valid variable name. 16266as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16267 16268 16269exec 6>&1 16270## ----------------------------------- ## 16271## Main body of $CONFIG_STATUS script. ## 16272## ----------------------------------- ## 16273_ASEOF 16274test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16275 16276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16277# Save the log message, to keep $0 and so on meaningful, and to 16278# report actual input values of CONFIG_FILES etc. instead of their 16279# values after options handling. 16280ac_log=" 16281This file was extended by package-unused $as_me version-unused, which was 16282generated by GNU Autoconf 2.64. Invocation command line was 16283 16284 CONFIG_FILES = $CONFIG_FILES 16285 CONFIG_HEADERS = $CONFIG_HEADERS 16286 CONFIG_LINKS = $CONFIG_LINKS 16287 CONFIG_COMMANDS = $CONFIG_COMMANDS 16288 $ $0 $@ 16289 16290on `(hostname || uname -n) 2>/dev/null | sed 1q` 16291" 16292 16293_ACEOF 16294 16295case $ac_config_files in *" 16296"*) set x $ac_config_files; shift; ac_config_files=$*;; 16297esac 16298 16299case $ac_config_headers in *" 16300"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16301esac 16302 16303 16304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16305# Files that config.status was made for. 16306config_files="$ac_config_files" 16307config_headers="$ac_config_headers" 16308config_commands="$ac_config_commands" 16309 16310_ACEOF 16311 16312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16313ac_cs_usage="\ 16314\`$as_me' instantiates files and other configuration actions 16315from templates according to the current configuration. Unless the files 16316and actions are specified as TAGs, all are instantiated by default. 16317 16318Usage: $0 [OPTION]... [TAG]... 16319 16320 -h, --help print this help, then exit 16321 -V, --version print version number and configuration settings, then exit 16322 -q, --quiet, --silent 16323 do not print progress messages 16324 -d, --debug don't remove temporary files 16325 --recheck update $as_me by reconfiguring in the same conditions 16326 --file=FILE[:TEMPLATE] 16327 instantiate the configuration file FILE 16328 --header=FILE[:TEMPLATE] 16329 instantiate the configuration header FILE 16330 16331Configuration files: 16332$config_files 16333 16334Configuration headers: 16335$config_headers 16336 16337Configuration commands: 16338$config_commands 16339 16340Report bugs to the package provider." 16341 16342_ACEOF 16343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16344ac_cs_version="\\ 16345package-unused config.status version-unused 16346configured by $0, generated by GNU Autoconf 2.64, 16347 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 16348 16349Copyright (C) 2009 Free Software Foundation, Inc. 16350This config.status script is free software; the Free Software Foundation 16351gives unlimited permission to copy, distribute and modify it." 16352 16353ac_pwd='$ac_pwd' 16354srcdir='$srcdir' 16355INSTALL='$INSTALL' 16356MKDIR_P='$MKDIR_P' 16357AWK='$AWK' 16358test -n "\$AWK" || AWK=awk 16359_ACEOF 16360 16361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16362# The default lists apply if the user does not specify any file. 16363ac_need_defaults=: 16364while test $# != 0 16365do 16366 case $1 in 16367 --*=*) 16368 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16369 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16370 ac_shift=: 16371 ;; 16372 *) 16373 ac_option=$1 16374 ac_optarg=$2 16375 ac_shift=shift 16376 ;; 16377 esac 16378 16379 case $ac_option in 16380 # Handling of the options. 16381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16382 ac_cs_recheck=: ;; 16383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16384 $as_echo "$ac_cs_version"; exit ;; 16385 --debug | --debu | --deb | --de | --d | -d ) 16386 debug=: ;; 16387 --file | --fil | --fi | --f ) 16388 $ac_shift 16389 case $ac_optarg in 16390 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16391 esac 16392 as_fn_append CONFIG_FILES " '$ac_optarg'" 16393 ac_need_defaults=false;; 16394 --header | --heade | --head | --hea ) 16395 $ac_shift 16396 case $ac_optarg in 16397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16398 esac 16399 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16400 ac_need_defaults=false;; 16401 --he | --h) 16402 # Conflict between --help and --header 16403 as_fn_error "ambiguous option: \`$1' 16404Try \`$0 --help' for more information.";; 16405 --help | --hel | -h ) 16406 $as_echo "$ac_cs_usage"; exit ;; 16407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16408 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16409 ac_cs_silent=: ;; 16410 16411 # This is an error. 16412 -*) as_fn_error "unrecognized option: \`$1' 16413Try \`$0 --help' for more information." ;; 16414 16415 *) as_fn_append ac_config_targets " $1" 16416 ac_need_defaults=false ;; 16417 16418 esac 16419 shift 16420done 16421 16422ac_configure_extra_args= 16423 16424if $ac_cs_silent; then 16425 exec 6>/dev/null 16426 ac_configure_extra_args="$ac_configure_extra_args --silent" 16427fi 16428 16429_ACEOF 16430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16431if \$ac_cs_recheck; then 16432 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16433 shift 16434 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16435 CONFIG_SHELL='$SHELL' 16436 export CONFIG_SHELL 16437 exec "\$@" 16438fi 16439 16440_ACEOF 16441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16442exec 5>>config.log 16443{ 16444 echo 16445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16446## Running $as_me. ## 16447_ASBOX 16448 $as_echo "$ac_log" 16449} >&5 16450 16451_ACEOF 16452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16453# 16454# INIT-COMMANDS 16455# 16456 16457srcdir="$srcdir" 16458host="$host" 16459target="$target" 16460with_multisubdir="$with_multisubdir" 16461with_multisrctop="$with_multisrctop" 16462with_target_subdir="$with_target_subdir" 16463ac_configure_args="${multilib_arg} ${ac_configure_args}" 16464multi_basedir="$multi_basedir" 16465CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 16466CC="$CC" 16467CXX="$CXX" 16468GFORTRAN="$GFORTRAN" 16469GCJ="$GCJ" 16470AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16471 16472 16473# The HP-UX ksh and POSIX shell print the target directory to stdout 16474# if CDPATH is set. 16475(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16476 16477sed_quote_subst='$sed_quote_subst' 16478double_quote_subst='$double_quote_subst' 16479delay_variable_subst='$delay_variable_subst' 16480SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16481Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16482GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16483EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16484FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16485SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16486ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16487LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16488macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16489macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16490enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16491enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16492pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16493enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16494host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16495host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16496host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16497build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16498build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16499build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16500NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16501LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16502max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16503ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16504exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16505lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16506lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16507lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16508reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16509reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16510OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16511deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16512file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16513AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16514AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16515STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16516RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16517old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16518old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16519old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16520lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16521CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16522CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16523compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16524GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16525lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16526lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16527lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16528lt_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"`' 16529objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16530MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16531lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16532lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16533lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16534lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16535lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16536need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16537DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16538NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16539LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16540OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16541OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16542libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16543shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16544extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16545archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16546enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16547export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16548whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16549compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16550old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16551old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16552archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16553archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16554module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16555module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16556with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16557allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16558no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16559hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16560hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16561hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16562hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16563hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16564hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16565hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16566hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16567inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16568link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16569fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16570always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16571export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16572exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16573include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16574prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16575file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16576variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16577need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16578need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16579version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16580runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16581shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16582shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16583libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16584library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16585soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16586install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16587postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16588postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16589finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16590finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16591hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16592sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16593sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16594hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16595enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16596enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16597enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16598old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16599striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16600LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`' 16601reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`' 16602reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`' 16603old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`' 16604compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`' 16605GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`' 16606lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`' 16607lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`' 16608lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`' 16609lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`' 16610lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`' 16611archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`' 16612enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`' 16613export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`' 16614whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`' 16615compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`' 16616old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`' 16617old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`' 16618archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`' 16619archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`' 16620module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`' 16621module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`' 16622with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`' 16623allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`' 16624no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`' 16625hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`' 16626hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`' 16627hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`' 16628hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`' 16629hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`' 16630hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`' 16631hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`' 16632hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`' 16633inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`' 16634link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`' 16635fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`' 16636always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`' 16637export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`' 16638exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`' 16639include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`' 16640prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`' 16641file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`' 16642hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`' 16643 16644LTCC='$LTCC' 16645LTCFLAGS='$LTCFLAGS' 16646compiler='$compiler_DEFAULT' 16647 16648# A function that is used when there is no print builtin or printf. 16649func_fallback_echo () 16650{ 16651 eval 'cat <<_LTECHO_EOF 16652\$1 16653_LTECHO_EOF' 16654} 16655 16656# Quote evaled strings. 16657for var in SED \ 16658GREP \ 16659EGREP \ 16660FGREP \ 16661SHELL \ 16662ECHO \ 16663LD \ 16664NM \ 16665LN_S \ 16666lt_SP2NL \ 16667lt_NL2SP \ 16668reload_flag \ 16669OBJDUMP \ 16670deplibs_check_method \ 16671file_magic_cmd \ 16672AR \ 16673AR_FLAGS \ 16674STRIP \ 16675RANLIB \ 16676CC \ 16677CFLAGS \ 16678compiler \ 16679lt_cv_sys_global_symbol_pipe \ 16680lt_cv_sys_global_symbol_to_cdecl \ 16681lt_cv_sys_global_symbol_to_c_name_address \ 16682lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16683lt_prog_compiler_no_builtin_flag \ 16684lt_prog_compiler_wl \ 16685lt_prog_compiler_pic \ 16686lt_prog_compiler_static \ 16687lt_cv_prog_compiler_c_o \ 16688need_locks \ 16689DSYMUTIL \ 16690NMEDIT \ 16691LIPO \ 16692OTOOL \ 16693OTOOL64 \ 16694shrext_cmds \ 16695export_dynamic_flag_spec \ 16696whole_archive_flag_spec \ 16697compiler_needs_object \ 16698with_gnu_ld \ 16699allow_undefined_flag \ 16700no_undefined_flag \ 16701hardcode_libdir_flag_spec \ 16702hardcode_libdir_flag_spec_ld \ 16703hardcode_libdir_separator \ 16704fix_srcfile_path \ 16705exclude_expsyms \ 16706include_expsyms \ 16707file_list_spec \ 16708variables_saved_for_relink \ 16709libname_spec \ 16710library_names_spec \ 16711soname_spec \ 16712install_override_mode \ 16713finish_eval \ 16714old_striplib \ 16715striplib \ 16716LD_GO \ 16717reload_flag_GO \ 16718compiler_GO \ 16719lt_prog_compiler_no_builtin_flag_GO \ 16720lt_prog_compiler_wl_GO \ 16721lt_prog_compiler_pic_GO \ 16722lt_prog_compiler_static_GO \ 16723lt_cv_prog_compiler_c_o_GO \ 16724export_dynamic_flag_spec_GO \ 16725whole_archive_flag_spec_GO \ 16726compiler_needs_object_GO \ 16727with_gnu_ld_GO \ 16728allow_undefined_flag_GO \ 16729no_undefined_flag_GO \ 16730hardcode_libdir_flag_spec_GO \ 16731hardcode_libdir_flag_spec_ld_GO \ 16732hardcode_libdir_separator_GO \ 16733fix_srcfile_path_GO \ 16734exclude_expsyms_GO \ 16735include_expsyms_GO \ 16736file_list_spec_GO; do 16737 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16738 *[\\\\\\\`\\"\\\$]*) 16739 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16740 ;; 16741 *) 16742 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16743 ;; 16744 esac 16745done 16746 16747# Double-quote double-evaled strings. 16748for var in reload_cmds \ 16749old_postinstall_cmds \ 16750old_postuninstall_cmds \ 16751old_archive_cmds \ 16752extract_expsyms_cmds \ 16753old_archive_from_new_cmds \ 16754old_archive_from_expsyms_cmds \ 16755archive_cmds \ 16756archive_expsym_cmds \ 16757module_cmds \ 16758module_expsym_cmds \ 16759export_symbols_cmds \ 16760prelink_cmds \ 16761postinstall_cmds \ 16762postuninstall_cmds \ 16763finish_cmds \ 16764sys_lib_search_path_spec \ 16765sys_lib_dlsearch_path_spec \ 16766reload_cmds_GO \ 16767old_archive_cmds_GO \ 16768old_archive_from_new_cmds_GO \ 16769old_archive_from_expsyms_cmds_GO \ 16770archive_cmds_GO \ 16771archive_expsym_cmds_GO \ 16772module_cmds_GO \ 16773module_expsym_cmds_GO \ 16774export_symbols_cmds_GO \ 16775prelink_cmds_GO; do 16776 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16777 *[\\\\\\\`\\"\\\$]*) 16778 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16779 ;; 16780 *) 16781 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16782 ;; 16783 esac 16784done 16785 16786ac_aux_dir='$ac_aux_dir' 16787xsi_shell='$xsi_shell' 16788lt_shell_append='$lt_shell_append' 16789 16790# See if we are running on zsh, and set the options which allow our 16791# commands through without removal of \ escapes INIT. 16792if test -n "\${ZSH_VERSION+set}" ; then 16793 setopt NO_GLOB_SUBST 16794fi 16795 16796 16797 PACKAGE='$PACKAGE' 16798 VERSION='$VERSION' 16799 TIMESTAMP='$TIMESTAMP' 16800 RM='$RM' 16801 ofile='$ofile' 16802 16803 16804 16805 16806 16807 16808# Variables needed in config.status (file generation) which aren't already 16809# passed by autoconf. 16810SUBDIRS="$SUBDIRS" 16811 16812 16813_ACEOF 16814 16815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16816 16817# Handling of arguments. 16818for ac_config_target in $ac_config_targets 16819do 16820 case $ac_config_target in 16821 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16822 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 16823 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16824 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16826 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 16827 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 16828 16829 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16830 esac 16831done 16832 16833 16834# If the user did not use the arguments to specify the items to instantiate, 16835# then the envvar interface is used. Set only those that are not. 16836# We use the long form for the default assignment because of an extremely 16837# bizarre bug on SunOS 4.1.3. 16838if $ac_need_defaults; then 16839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16840 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16841 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16842fi 16843 16844# Have a temporary directory for convenience. Make it in the build tree 16845# simply because there is no reason against having it here, and in addition, 16846# creating and moving files from /tmp can sometimes cause problems. 16847# Hook for its removal unless debugging. 16848# Note that there is a small window in which the directory will not be cleaned: 16849# after its creation but before its name has been assigned to `$tmp'. 16850$debug || 16851{ 16852 tmp= 16853 trap 'exit_status=$? 16854 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16855' 0 16856 trap 'as_fn_exit 1' 1 2 13 15 16857} 16858# Create a (secure) tmp directory for tmp files. 16859 16860{ 16861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16862 test -n "$tmp" && test -d "$tmp" 16863} || 16864{ 16865 tmp=./conf$$-$RANDOM 16866 (umask 077 && mkdir "$tmp") 16867} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16868 16869# Set up the scripts for CONFIG_FILES section. 16870# No need to generate them if there are no CONFIG_FILES. 16871# This happens for instance with `./config.status config.h'. 16872if test -n "$CONFIG_FILES"; then 16873 16874 16875ac_cr=`echo X | tr X '\015'` 16876# On cygwin, bash can eat \r inside `` if the user requested igncr. 16877# But we know of no other shell where ac_cr would be empty at this 16878# point, so we can use a bashism as a fallback. 16879if test "x$ac_cr" = x; then 16880 eval ac_cr=\$\'\\r\' 16881fi 16882ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16883if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16884 ac_cs_awk_cr='\r' 16885else 16886 ac_cs_awk_cr=$ac_cr 16887fi 16888 16889echo 'BEGIN {' >"$tmp/subs1.awk" && 16890_ACEOF 16891 16892 16893{ 16894 echo "cat >conf$$subs.awk <<_ACEOF" && 16895 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16896 echo "_ACEOF" 16897} >conf$$subs.sh || 16898 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16899ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16900ac_delim='%!_!# ' 16901for ac_last_try in false false false false false :; do 16902 . ./conf$$subs.sh || 16903 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16904 16905 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16906 if test $ac_delim_n = $ac_delim_num; then 16907 break 16908 elif $ac_last_try; then 16909 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16910 else 16911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16912 fi 16913done 16914rm -f conf$$subs.sh 16915 16916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16917cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16918_ACEOF 16919sed -n ' 16920h 16921s/^/S["/; s/!.*/"]=/ 16922p 16923g 16924s/^[^!]*!// 16925:repl 16926t repl 16927s/'"$ac_delim"'$// 16928t delim 16929:nl 16930h 16931s/\(.\{148\}\).*/\1/ 16932t more1 16933s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16934p 16935n 16936b repl 16937:more1 16938s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16939p 16940g 16941s/.\{148\}// 16942t nl 16943:delim 16944h 16945s/\(.\{148\}\).*/\1/ 16946t more2 16947s/["\\]/\\&/g; s/^/"/; s/$/"/ 16948p 16949b 16950:more2 16951s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16952p 16953g 16954s/.\{148\}// 16955t delim 16956' <conf$$subs.awk | sed ' 16957/^[^""]/{ 16958 N 16959 s/\n// 16960} 16961' >>$CONFIG_STATUS || ac_write_fail=1 16962rm -f conf$$subs.awk 16963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16964_ACAWK 16965cat >>"\$tmp/subs1.awk" <<_ACAWK && 16966 for (key in S) S_is_set[key] = 1 16967 FS = "" 16968 16969} 16970{ 16971 line = $ 0 16972 nfields = split(line, field, "@") 16973 substed = 0 16974 len = length(field[1]) 16975 for (i = 2; i < nfields; i++) { 16976 key = field[i] 16977 keylen = length(key) 16978 if (S_is_set[key]) { 16979 value = S[key] 16980 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16981 len += length(value) + length(field[++i]) 16982 substed = 1 16983 } else 16984 len += 1 + keylen 16985 } 16986 16987 print line 16988} 16989 16990_ACAWK 16991_ACEOF 16992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16993if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16994 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16995else 16996 cat 16997fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16998 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16999_ACEOF 17000 17001# VPATH may cause trouble with some makes, so we remove $(srcdir), 17002# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 17003# trailing colons and then remove the whole line if VPATH becomes empty 17004# (actually we leave an empty line to preserve line numbers). 17005if test "x$srcdir" = x.; then 17006 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17007s/:*\$(srcdir):*/:/ 17008s/:*\${srcdir}:*/:/ 17009s/:*@srcdir@:*/:/ 17010s/^\([^=]*=[ ]*\):*/\1/ 17011s/:*$// 17012s/^[^=]*=[ ]*$// 17013}' 17014fi 17015 17016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17017fi # test -n "$CONFIG_FILES" 17018 17019# Set up the scripts for CONFIG_HEADERS section. 17020# No need to generate them if there are no CONFIG_HEADERS. 17021# This happens for instance with `./config.status Makefile'. 17022if test -n "$CONFIG_HEADERS"; then 17023cat >"$tmp/defines.awk" <<\_ACAWK || 17024BEGIN { 17025_ACEOF 17026 17027# Transform confdefs.h into an awk script `defines.awk', embedded as 17028# here-document in config.status, that substitutes the proper values into 17029# config.h.in to produce config.h. 17030 17031# Create a delimiter string that does not exist in confdefs.h, to ease 17032# handling of long lines. 17033ac_delim='%!_!# ' 17034for ac_last_try in false false :; do 17035 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 17036 if test -z "$ac_t"; then 17037 break 17038 elif $ac_last_try; then 17039 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 17040 else 17041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17042 fi 17043done 17044 17045# For the awk script, D is an array of macro values keyed by name, 17046# likewise P contains macro parameters if any. Preserve backslash 17047# newline sequences. 17048 17049ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17050sed -n ' 17051s/.\{148\}/&'"$ac_delim"'/g 17052t rset 17053:rset 17054s/^[ ]*#[ ]*define[ ][ ]*/ / 17055t def 17056d 17057:def 17058s/\\$// 17059t bsnl 17060s/["\\]/\\&/g 17061s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17062D["\1"]=" \3"/p 17063s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17064d 17065:bsnl 17066s/["\\]/\\&/g 17067s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17068D["\1"]=" \3\\\\\\n"\\/p 17069t cont 17070s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17071t cont 17072d 17073:cont 17074n 17075s/.\{148\}/&'"$ac_delim"'/g 17076t clear 17077:clear 17078s/\\$// 17079t bsnlc 17080s/["\\]/\\&/g; s/^/"/; s/$/"/p 17081d 17082:bsnlc 17083s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17084b cont 17085' <confdefs.h | sed ' 17086s/'"$ac_delim"'/"\\\ 17087"/g' >>$CONFIG_STATUS || ac_write_fail=1 17088 17089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17090 for (key in D) D_is_set[key] = 1 17091 FS = "" 17092} 17093/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17094 line = \$ 0 17095 split(line, arg, " ") 17096 if (arg[1] == "#") { 17097 defundef = arg[2] 17098 mac1 = arg[3] 17099 } else { 17100 defundef = substr(arg[1], 2) 17101 mac1 = arg[2] 17102 } 17103 split(mac1, mac2, "(") #) 17104 macro = mac2[1] 17105 prefix = substr(line, 1, index(line, defundef) - 1) 17106 if (D_is_set[macro]) { 17107 # Preserve the white space surrounding the "#". 17108 print prefix "define", macro P[macro] D[macro] 17109 next 17110 } else { 17111 # Replace #undef with comments. This is necessary, for example, 17112 # in the case of _POSIX_SOURCE, which is predefined and required 17113 # on some systems where configure will not decide to define it. 17114 if (defundef == "undef") { 17115 print "/*", prefix defundef, macro, "*/" 17116 next 17117 } 17118 } 17119} 17120{ print } 17121_ACAWK 17122_ACEOF 17123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17124 as_fn_error "could not setup config headers machinery" "$LINENO" 5 17125fi # test -n "$CONFIG_HEADERS" 17126 17127 17128eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17129shift 17130for ac_tag 17131do 17132 case $ac_tag in 17133 :[FHLC]) ac_mode=$ac_tag; continue;; 17134 esac 17135 case $ac_mode$ac_tag in 17136 :[FHL]*:*);; 17137 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 17138 :[FH]-) ac_tag=-:-;; 17139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17140 esac 17141 ac_save_IFS=$IFS 17142 IFS=: 17143 set x $ac_tag 17144 IFS=$ac_save_IFS 17145 shift 17146 ac_file=$1 17147 shift 17148 17149 case $ac_mode in 17150 :L) ac_source=$1;; 17151 :[FH]) 17152 ac_file_inputs= 17153 for ac_f 17154 do 17155 case $ac_f in 17156 -) ac_f="$tmp/stdin";; 17157 *) # Look for the file first in the build tree, then in the source tree 17158 # (if the path is not absolute). The absolute path cannot be DOS-style, 17159 # because $ac_f cannot contain `:'. 17160 test -f "$ac_f" || 17161 case $ac_f in 17162 [\\/$]*) false;; 17163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17164 esac || 17165 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17166 esac 17167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17168 as_fn_append ac_file_inputs " '$ac_f'" 17169 done 17170 17171 # Let's still pretend it is `configure' which instantiates (i.e., don't 17172 # use $as_me), people would be surprised to read: 17173 # /* config.h. Generated by config.status. */ 17174 configure_input='Generated from '` 17175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17176 `' by configure.' 17177 if test x"$ac_file" != x-; then 17178 configure_input="$ac_file. $configure_input" 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17180$as_echo "$as_me: creating $ac_file" >&6;} 17181 fi 17182 # Neutralize special characters interpreted by sed in replacement strings. 17183 case $configure_input in #( 17184 *\&* | *\|* | *\\* ) 17185 ac_sed_conf_input=`$as_echo "$configure_input" | 17186 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17187 *) ac_sed_conf_input=$configure_input;; 17188 esac 17189 17190 case $ac_tag in 17191 *:-:* | *:-) cat >"$tmp/stdin" \ 17192 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 17193 esac 17194 ;; 17195 esac 17196 17197 ac_dir=`$as_dirname -- "$ac_file" || 17198$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17199 X"$ac_file" : 'X\(//\)[^/]' \| \ 17200 X"$ac_file" : 'X\(//\)$' \| \ 17201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17202$as_echo X"$ac_file" | 17203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17204 s//\1/ 17205 q 17206 } 17207 /^X\(\/\/\)[^/].*/{ 17208 s//\1/ 17209 q 17210 } 17211 /^X\(\/\/\)$/{ 17212 s//\1/ 17213 q 17214 } 17215 /^X\(\/\).*/{ 17216 s//\1/ 17217 q 17218 } 17219 s/.*/./; q'` 17220 as_dir="$ac_dir"; as_fn_mkdir_p 17221 ac_builddir=. 17222 17223case "$ac_dir" in 17224.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17225*) 17226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17227 # A ".." for each directory in $ac_dir_suffix. 17228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17229 case $ac_top_builddir_sub in 17230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17232 esac ;; 17233esac 17234ac_abs_top_builddir=$ac_pwd 17235ac_abs_builddir=$ac_pwd$ac_dir_suffix 17236# for backward compatibility: 17237ac_top_builddir=$ac_top_build_prefix 17238 17239case $srcdir in 17240 .) # We are building in place. 17241 ac_srcdir=. 17242 ac_top_srcdir=$ac_top_builddir_sub 17243 ac_abs_top_srcdir=$ac_pwd ;; 17244 [\\/]* | ?:[\\/]* ) # Absolute name. 17245 ac_srcdir=$srcdir$ac_dir_suffix; 17246 ac_top_srcdir=$srcdir 17247 ac_abs_top_srcdir=$srcdir ;; 17248 *) # Relative name. 17249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17250 ac_top_srcdir=$ac_top_build_prefix$srcdir 17251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17252esac 17253ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17254 17255 17256 case $ac_mode in 17257 :F) 17258 # 17259 # CONFIG_FILE 17260 # 17261 17262 case $INSTALL in 17263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17264 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17265 esac 17266 ac_MKDIR_P=$MKDIR_P 17267 case $MKDIR_P in 17268 [\\/$]* | ?:[\\/]* ) ;; 17269 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17270 esac 17271_ACEOF 17272 17273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17274# If the template does not know about datarootdir, expand it. 17275# FIXME: This hack should be removed a few years after 2.60. 17276ac_datarootdir_hack=; ac_datarootdir_seen= 17277ac_sed_dataroot=' 17278/datarootdir/ { 17279 p 17280 q 17281} 17282/@datadir@/p 17283/@docdir@/p 17284/@infodir@/p 17285/@localedir@/p 17286/@mandir@/p' 17287case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17288*datarootdir*) ac_datarootdir_seen=yes;; 17289*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17291$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17292_ACEOF 17293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17294 ac_datarootdir_hack=' 17295 s&@datadir@&$datadir&g 17296 s&@docdir@&$docdir&g 17297 s&@infodir@&$infodir&g 17298 s&@localedir@&$localedir&g 17299 s&@mandir@&$mandir&g 17300 s&\\\${datarootdir}&$datarootdir&g' ;; 17301esac 17302_ACEOF 17303 17304# Neutralize VPATH when `$srcdir' = `.'. 17305# Shell code in configure.ac might set extrasub. 17306# FIXME: do we really want to maintain this feature? 17307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17308ac_sed_extra="$ac_vpsub 17309$extrasub 17310_ACEOF 17311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17312:t 17313/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17314s|@configure_input@|$ac_sed_conf_input|;t t 17315s&@top_builddir@&$ac_top_builddir_sub&;t t 17316s&@top_build_prefix@&$ac_top_build_prefix&;t t 17317s&@srcdir@&$ac_srcdir&;t t 17318s&@abs_srcdir@&$ac_abs_srcdir&;t t 17319s&@top_srcdir@&$ac_top_srcdir&;t t 17320s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17321s&@builddir@&$ac_builddir&;t t 17322s&@abs_builddir@&$ac_abs_builddir&;t t 17323s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17324s&@INSTALL@&$ac_INSTALL&;t t 17325s&@MKDIR_P@&$ac_MKDIR_P&;t t 17326$ac_datarootdir_hack 17327" 17328eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17329 || as_fn_error "could not create $ac_file" "$LINENO" 5 17330 17331test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17332 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17335which seems to be undefined. Please make sure it is defined." >&5 17336$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17337which seems to be undefined. Please make sure it is defined." >&2;} 17338 17339 rm -f "$tmp/stdin" 17340 case $ac_file in 17341 -) cat "$tmp/out" && rm -f "$tmp/out";; 17342 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17343 esac \ 17344 || as_fn_error "could not create $ac_file" "$LINENO" 5 17345 ;; 17346 :H) 17347 # 17348 # CONFIG_HEADER 17349 # 17350 if test x"$ac_file" != x-; then 17351 { 17352 $as_echo "/* $configure_input */" \ 17353 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17354 } >"$tmp/config.h" \ 17355 || as_fn_error "could not create $ac_file" "$LINENO" 5 17356 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17358$as_echo "$as_me: $ac_file is unchanged" >&6;} 17359 else 17360 rm -f "$ac_file" 17361 mv "$tmp/config.h" "$ac_file" \ 17362 || as_fn_error "could not create $ac_file" "$LINENO" 5 17363 fi 17364 else 17365 $as_echo "/* $configure_input */" \ 17366 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17367 || as_fn_error "could not create -" "$LINENO" 5 17368 fi 17369# Compute "$ac_file"'s index in $config_headers. 17370_am_arg="$ac_file" 17371_am_stamp_count=1 17372for _am_header in $config_headers :; do 17373 case $_am_header in 17374 $_am_arg | $_am_arg:* ) 17375 break ;; 17376 * ) 17377 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17378 esac 17379done 17380echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17381$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17382 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17383 X"$_am_arg" : 'X\(//\)$' \| \ 17384 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17385$as_echo X"$_am_arg" | 17386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17387 s//\1/ 17388 q 17389 } 17390 /^X\(\/\/\)[^/].*/{ 17391 s//\1/ 17392 q 17393 } 17394 /^X\(\/\/\)$/{ 17395 s//\1/ 17396 q 17397 } 17398 /^X\(\/\).*/{ 17399 s//\1/ 17400 q 17401 } 17402 s/.*/./; q'`/stamp-h$_am_stamp_count 17403 ;; 17404 17405 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17406$as_echo "$as_me: executing $ac_file commands" >&6;} 17407 ;; 17408 esac 17409 17410 17411 case $ac_file$ac_mode in 17412 "default-1":C) 17413# Only add multilib support code if we just rebuilt the top-level 17414# Makefile. 17415case " $CONFIG_FILES " in 17416 *" Makefile "*) 17417 ac_file=Makefile . ${multi_basedir}/config-ml.in 17418 ;; 17419esac ;; 17420 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17421 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17422 # are listed without --file. Let's play safe and only enable the eval 17423 # if we detect the quoting. 17424 case $CONFIG_FILES in 17425 *\'*) eval set x "$CONFIG_FILES" ;; 17426 *) set x $CONFIG_FILES ;; 17427 esac 17428 shift 17429 for mf 17430 do 17431 # Strip MF so we end up with the name of the file. 17432 mf=`echo "$mf" | sed -e 's/:.*$//'` 17433 # Check whether this is an Automake generated Makefile or not. 17434 # We used to match only the files named `Makefile.in', but 17435 # some people rename them; so instead we look at the file content. 17436 # Grep'ing the first line is not enough: some people post-process 17437 # each Makefile.in and add a new line on top of each file to say so. 17438 # Grep'ing the whole file is not good either: AIX grep has a line 17439 # limit of 2048, but all sed's we know have understand at least 4000. 17440 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17441 dirpart=`$as_dirname -- "$mf" || 17442$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17443 X"$mf" : 'X\(//\)[^/]' \| \ 17444 X"$mf" : 'X\(//\)$' \| \ 17445 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17446$as_echo X"$mf" | 17447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17448 s//\1/ 17449 q 17450 } 17451 /^X\(\/\/\)[^/].*/{ 17452 s//\1/ 17453 q 17454 } 17455 /^X\(\/\/\)$/{ 17456 s//\1/ 17457 q 17458 } 17459 /^X\(\/\).*/{ 17460 s//\1/ 17461 q 17462 } 17463 s/.*/./; q'` 17464 else 17465 continue 17466 fi 17467 # Extract the definition of DEPDIR, am__include, and am__quote 17468 # from the Makefile without running `make'. 17469 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17470 test -z "$DEPDIR" && continue 17471 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17472 test -z "am__include" && continue 17473 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17474 # When using ansi2knr, U may be empty or an underscore; expand it 17475 U=`sed -n 's/^U = //p' < "$mf"` 17476 # Find all dependency output files, they are included files with 17477 # $(DEPDIR) in their names. We invoke sed twice because it is the 17478 # simplest approach to changing $(DEPDIR) to its actual value in the 17479 # expansion. 17480 for file in `sed -n " 17481 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17482 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17483 # Make sure the directory exists. 17484 test -f "$dirpart/$file" && continue 17485 fdir=`$as_dirname -- "$file" || 17486$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17487 X"$file" : 'X\(//\)[^/]' \| \ 17488 X"$file" : 'X\(//\)$' \| \ 17489 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17490$as_echo X"$file" | 17491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17492 s//\1/ 17493 q 17494 } 17495 /^X\(\/\/\)[^/].*/{ 17496 s//\1/ 17497 q 17498 } 17499 /^X\(\/\/\)$/{ 17500 s//\1/ 17501 q 17502 } 17503 /^X\(\/\).*/{ 17504 s//\1/ 17505 q 17506 } 17507 s/.*/./; q'` 17508 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17509 # echo "creating $dirpart/$file" 17510 echo '# dummy' > "$dirpart/$file" 17511 done 17512 done 17513} 17514 ;; 17515 "libtool":C) 17516 17517 # See if we are running on zsh, and set the options which allow our 17518 # commands through without removal of \ escapes. 17519 if test -n "${ZSH_VERSION+set}" ; then 17520 setopt NO_GLOB_SUBST 17521 fi 17522 17523 cfgfile="${ofile}T" 17524 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17525 $RM "$cfgfile" 17526 17527 cat <<_LT_EOF >> "$cfgfile" 17528#! $SHELL 17529 17530# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17531# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17532# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17533# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17534# 17535# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17536# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 17537# Written by Gordon Matzigkeit, 1996 17538# 17539# This file is part of GNU Libtool. 17540# 17541# GNU Libtool is free software; you can redistribute it and/or 17542# modify it under the terms of the GNU General Public License as 17543# published by the Free Software Foundation; either version 2 of 17544# the License, or (at your option) any later version. 17545# 17546# As a special exception to the GNU General Public License, 17547# if you distribute this file as part of a program or library that 17548# is built using GNU Libtool, you may include this file under the 17549# same distribution terms that you use for the rest of that program. 17550# 17551# GNU Libtool is distributed in the hope that it will be useful, 17552# but WITHOUT ANY WARRANTY; without even the implied warranty of 17553# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17554# GNU General Public License for more details. 17555# 17556# You should have received a copy of the GNU General Public License 17557# along with GNU Libtool; see the file COPYING. If not, a copy 17558# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17559# obtained by writing to the Free Software Foundation, Inc., 17560# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17561 17562 17563# The names of the tagged configurations supported by this script. 17564available_tags="GO " 17565 17566# ### BEGIN LIBTOOL CONFIG 17567 17568# A sed program that does not truncate output. 17569SED=$lt_SED 17570 17571# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17572Xsed="\$SED -e 1s/^X//" 17573 17574# A grep program that handles long lines. 17575GREP=$lt_GREP 17576 17577# An ERE matcher. 17578EGREP=$lt_EGREP 17579 17580# A literal string matcher. 17581FGREP=$lt_FGREP 17582 17583# Shell to use when invoking shell scripts. 17584SHELL=$lt_SHELL 17585 17586# An echo program that protects backslashes. 17587ECHO=$lt_ECHO 17588 17589# Which release of libtool.m4 was used? 17590macro_version=$macro_version 17591macro_revision=$macro_revision 17592 17593# Whether or not to build shared libraries. 17594build_libtool_libs=$enable_shared 17595 17596# Whether or not to build static libraries. 17597build_old_libs=$enable_static 17598 17599# What type of objects to build. 17600pic_mode=$pic_mode 17601 17602# Whether or not to optimize for fast installation. 17603fast_install=$enable_fast_install 17604 17605# The host system. 17606host_alias=$host_alias 17607host=$host 17608host_os=$host_os 17609 17610# The build system. 17611build_alias=$build_alias 17612build=$build 17613build_os=$build_os 17614 17615# A BSD- or MS-compatible name lister. 17616NM=$lt_NM 17617 17618# Whether we need soft or hard links. 17619LN_S=$lt_LN_S 17620 17621# What is the maximum length of a command? 17622max_cmd_len=$max_cmd_len 17623 17624# Object file suffix (normally "o"). 17625objext=$ac_objext 17626 17627# Executable file suffix (normally ""). 17628exeext=$exeext 17629 17630# whether the shell understands "unset". 17631lt_unset=$lt_unset 17632 17633# turn spaces into newlines. 17634SP2NL=$lt_lt_SP2NL 17635 17636# turn newlines into spaces. 17637NL2SP=$lt_lt_NL2SP 17638 17639# An object symbol dumper. 17640OBJDUMP=$lt_OBJDUMP 17641 17642# Method to check whether dependent libraries are shared objects. 17643deplibs_check_method=$lt_deplibs_check_method 17644 17645# Command to use when deplibs_check_method == "file_magic". 17646file_magic_cmd=$lt_file_magic_cmd 17647 17648# The archiver. 17649AR=$lt_AR 17650AR_FLAGS=$lt_AR_FLAGS 17651 17652# A symbol stripping program. 17653STRIP=$lt_STRIP 17654 17655# Commands used to install an old-style archive. 17656RANLIB=$lt_RANLIB 17657old_postinstall_cmds=$lt_old_postinstall_cmds 17658old_postuninstall_cmds=$lt_old_postuninstall_cmds 17659 17660# Whether to use a lock for old archive extraction. 17661lock_old_archive_extraction=$lock_old_archive_extraction 17662 17663# A C compiler. 17664LTCC=$lt_CC 17665 17666# LTCC compiler flags. 17667LTCFLAGS=$lt_CFLAGS 17668 17669# Take the output of nm and produce a listing of raw symbols and C names. 17670global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17671 17672# Transform the output of nm in a proper C declaration. 17673global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17674 17675# Transform the output of nm in a C name address pair. 17676global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17677 17678# Transform the output of nm in a C name address pair when lib prefix is needed. 17679global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17680 17681# The name of the directory that contains temporary libtool files. 17682objdir=$objdir 17683 17684# Used to examine libraries when file_magic_cmd begins with "file". 17685MAGIC_CMD=$MAGIC_CMD 17686 17687# Must we lock files when doing compilation? 17688need_locks=$lt_need_locks 17689 17690# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17691DSYMUTIL=$lt_DSYMUTIL 17692 17693# Tool to change global to local symbols on Mac OS X. 17694NMEDIT=$lt_NMEDIT 17695 17696# Tool to manipulate fat objects and archives on Mac OS X. 17697LIPO=$lt_LIPO 17698 17699# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17700OTOOL=$lt_OTOOL 17701 17702# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17703OTOOL64=$lt_OTOOL64 17704 17705# Old archive suffix (normally "a"). 17706libext=$libext 17707 17708# Shared library suffix (normally ".so"). 17709shrext_cmds=$lt_shrext_cmds 17710 17711# The commands to extract the exported symbol list from a shared archive. 17712extract_expsyms_cmds=$lt_extract_expsyms_cmds 17713 17714# Variables whose values should be saved in libtool wrapper scripts and 17715# restored at link time. 17716variables_saved_for_relink=$lt_variables_saved_for_relink 17717 17718# Do we need the "lib" prefix for modules? 17719need_lib_prefix=$need_lib_prefix 17720 17721# Do we need a version for libraries? 17722need_version=$need_version 17723 17724# Library versioning type. 17725version_type=$version_type 17726 17727# Shared library runtime path variable. 17728runpath_var=$runpath_var 17729 17730# Shared library path variable. 17731shlibpath_var=$shlibpath_var 17732 17733# Is shlibpath searched before the hard-coded library search path? 17734shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17735 17736# Format of library name prefix. 17737libname_spec=$lt_libname_spec 17738 17739# List of archive names. First name is the real one, the rest are links. 17740# The last name is the one that the linker finds with -lNAME 17741library_names_spec=$lt_library_names_spec 17742 17743# The coded name of the library, if different from the real name. 17744soname_spec=$lt_soname_spec 17745 17746# Permission mode override for installation of shared libraries. 17747install_override_mode=$lt_install_override_mode 17748 17749# Command to use after installation of a shared archive. 17750postinstall_cmds=$lt_postinstall_cmds 17751 17752# Command to use after uninstallation of a shared archive. 17753postuninstall_cmds=$lt_postuninstall_cmds 17754 17755# Commands used to finish a libtool library installation in a directory. 17756finish_cmds=$lt_finish_cmds 17757 17758# As "finish_cmds", except a single script fragment to be evaled but 17759# not shown. 17760finish_eval=$lt_finish_eval 17761 17762# Whether we should hardcode library paths into libraries. 17763hardcode_into_libs=$hardcode_into_libs 17764 17765# Compile-time system search path for libraries. 17766sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17767 17768# Run-time system search path for libraries. 17769sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17770 17771# Whether dlopen is supported. 17772dlopen_support=$enable_dlopen 17773 17774# Whether dlopen of programs is supported. 17775dlopen_self=$enable_dlopen_self 17776 17777# Whether dlopen of statically linked programs is supported. 17778dlopen_self_static=$enable_dlopen_self_static 17779 17780# Commands to strip libraries. 17781old_striplib=$lt_old_striplib 17782striplib=$lt_striplib 17783 17784 17785# The linker used to build libraries. 17786LD=$lt_LD 17787 17788# How to create reloadable object files. 17789reload_flag=$lt_reload_flag 17790reload_cmds=$lt_reload_cmds 17791 17792# Commands used to build an old-style archive. 17793old_archive_cmds=$lt_old_archive_cmds 17794 17795# A language specific compiler. 17796CC=$lt_compiler 17797 17798# Is the compiler the GNU compiler? 17799with_gcc=$GCC 17800 17801# Compiler flag to turn off builtin functions. 17802no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17803 17804# How to pass a linker flag through the compiler. 17805wl=$lt_lt_prog_compiler_wl 17806 17807# Additional compiler flags for building library objects. 17808pic_flag=$lt_lt_prog_compiler_pic 17809 17810# Compiler flag to prevent dynamic linking. 17811link_static_flag=$lt_lt_prog_compiler_static 17812 17813# Does compiler simultaneously support -c and -o options? 17814compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17815 17816# Whether or not to add -lc for building shared libraries. 17817build_libtool_need_lc=$archive_cmds_need_lc 17818 17819# Whether or not to disallow shared libs when runtime libs are static. 17820allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17821 17822# Compiler flag to allow reflexive dlopens. 17823export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17824 17825# Compiler flag to generate shared objects directly from archives. 17826whole_archive_flag_spec=$lt_whole_archive_flag_spec 17827 17828# Whether the compiler copes with passing no objects directly. 17829compiler_needs_object=$lt_compiler_needs_object 17830 17831# Create an old-style archive from a shared archive. 17832old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17833 17834# Create a temporary old-style archive to link instead of a shared archive. 17835old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17836 17837# Commands used to build a shared archive. 17838archive_cmds=$lt_archive_cmds 17839archive_expsym_cmds=$lt_archive_expsym_cmds 17840 17841# Commands used to build a loadable module if different from building 17842# a shared archive. 17843module_cmds=$lt_module_cmds 17844module_expsym_cmds=$lt_module_expsym_cmds 17845 17846# Whether we are building with GNU ld or not. 17847with_gnu_ld=$lt_with_gnu_ld 17848 17849# Flag that allows shared libraries with undefined symbols to be built. 17850allow_undefined_flag=$lt_allow_undefined_flag 17851 17852# Flag that enforces no undefined symbols. 17853no_undefined_flag=$lt_no_undefined_flag 17854 17855# Flag to hardcode \$libdir into a binary during linking. 17856# This must work even if \$libdir does not exist 17857hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17858 17859# If ld is used when linking, flag to hardcode \$libdir into a binary 17860# during linking. This must work even if \$libdir does not exist. 17861hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17862 17863# Whether we need a single "-rpath" flag with a separated argument. 17864hardcode_libdir_separator=$lt_hardcode_libdir_separator 17865 17866# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17867# DIR into the resulting binary. 17868hardcode_direct=$hardcode_direct 17869 17870# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17871# DIR into the resulting binary and the resulting library dependency is 17872# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17873# library is relocated. 17874hardcode_direct_absolute=$hardcode_direct_absolute 17875 17876# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17877# into the resulting binary. 17878hardcode_minus_L=$hardcode_minus_L 17879 17880# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17881# into the resulting binary. 17882hardcode_shlibpath_var=$hardcode_shlibpath_var 17883 17884# Set to "yes" if building a shared library automatically hardcodes DIR 17885# into the library and all subsequent libraries and executables linked 17886# against it. 17887hardcode_automatic=$hardcode_automatic 17888 17889# Set to yes if linker adds runtime paths of dependent libraries 17890# to runtime path list. 17891inherit_rpath=$inherit_rpath 17892 17893# Whether libtool must link a program against all its dependency libraries. 17894link_all_deplibs=$link_all_deplibs 17895 17896# Fix the shell variable \$srcfile for the compiler. 17897fix_srcfile_path=$lt_fix_srcfile_path 17898 17899# Set to "yes" if exported symbols are required. 17900always_export_symbols=$always_export_symbols 17901 17902# The commands to list exported symbols. 17903export_symbols_cmds=$lt_export_symbols_cmds 17904 17905# Symbols that should not be listed in the preloaded symbols. 17906exclude_expsyms=$lt_exclude_expsyms 17907 17908# Symbols that must always be exported. 17909include_expsyms=$lt_include_expsyms 17910 17911# Commands necessary for linking programs (against libraries) with templates. 17912prelink_cmds=$lt_prelink_cmds 17913 17914# Specify filename containing input files. 17915file_list_spec=$lt_file_list_spec 17916 17917# How to hardcode a shared library path into an executable. 17918hardcode_action=$hardcode_action 17919 17920# ### END LIBTOOL CONFIG 17921 17922_LT_EOF 17923 17924 case $host_os in 17925 aix3*) 17926 cat <<\_LT_EOF >> "$cfgfile" 17927# AIX sometimes has problems with the GCC collect2 program. For some 17928# reason, if we set the COLLECT_NAMES environment variable, the problems 17929# vanish in a puff of smoke. 17930if test "X${COLLECT_NAMES+set}" != Xset; then 17931 COLLECT_NAMES= 17932 export COLLECT_NAMES 17933fi 17934_LT_EOF 17935 ;; 17936 esac 17937 17938 17939ltmain="$ac_aux_dir/ltmain.sh" 17940 17941 17942 # We use sed instead of cat because bash on DJGPP gets confused if 17943 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17944 # text mode, it properly converts lines to CR/LF. This bash problem 17945 # is reportedly fixed, but why not run on old versions too? 17946 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17947 || (rm -f "$cfgfile"; exit 1) 17948 17949 case $xsi_shell in 17950 yes) 17951 cat << \_LT_EOF >> "$cfgfile" 17952 17953# func_dirname file append nondir_replacement 17954# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17955# otherwise set result to NONDIR_REPLACEMENT. 17956func_dirname () 17957{ 17958 case ${1} in 17959 */*) func_dirname_result="${1%/*}${2}" ;; 17960 * ) func_dirname_result="${3}" ;; 17961 esac 17962} 17963 17964# func_basename file 17965func_basename () 17966{ 17967 func_basename_result="${1##*/}" 17968} 17969 17970# func_dirname_and_basename file append nondir_replacement 17971# perform func_basename and func_dirname in a single function 17972# call: 17973# dirname: Compute the dirname of FILE. If nonempty, 17974# add APPEND to the result, otherwise set result 17975# to NONDIR_REPLACEMENT. 17976# value returned in "$func_dirname_result" 17977# basename: Compute filename of FILE. 17978# value retuned in "$func_basename_result" 17979# Implementation must be kept synchronized with func_dirname 17980# and func_basename. For efficiency, we do not delegate to 17981# those functions but instead duplicate the functionality here. 17982func_dirname_and_basename () 17983{ 17984 case ${1} in 17985 */*) func_dirname_result="${1%/*}${2}" ;; 17986 * ) func_dirname_result="${3}" ;; 17987 esac 17988 func_basename_result="${1##*/}" 17989} 17990 17991# func_stripname prefix suffix name 17992# strip PREFIX and SUFFIX off of NAME. 17993# PREFIX and SUFFIX must not contain globbing or regex special 17994# characters, hashes, percent signs, but SUFFIX may contain a leading 17995# dot (in which case that matches only a dot). 17996func_stripname () 17997{ 17998 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17999 # positional parameters, so assign one to ordinary parameter first. 18000 func_stripname_result=${3} 18001 func_stripname_result=${func_stripname_result#"${1}"} 18002 func_stripname_result=${func_stripname_result%"${2}"} 18003} 18004 18005# func_opt_split 18006func_opt_split () 18007{ 18008 func_opt_split_opt=${1%%=*} 18009 func_opt_split_arg=${1#*=} 18010} 18011 18012# func_lo2o object 18013func_lo2o () 18014{ 18015 case ${1} in 18016 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 18017 *) func_lo2o_result=${1} ;; 18018 esac 18019} 18020 18021# func_xform libobj-or-source 18022func_xform () 18023{ 18024 func_xform_result=${1%.*}.lo 18025} 18026 18027# func_arith arithmetic-term... 18028func_arith () 18029{ 18030 func_arith_result=$(( $* )) 18031} 18032 18033# func_len string 18034# STRING may not start with a hyphen. 18035func_len () 18036{ 18037 func_len_result=${#1} 18038} 18039 18040_LT_EOF 18041 ;; 18042 *) # Bourne compatible functions. 18043 cat << \_LT_EOF >> "$cfgfile" 18044 18045# func_dirname file append nondir_replacement 18046# Compute the dirname of FILE. If nonempty, add APPEND to the result, 18047# otherwise set result to NONDIR_REPLACEMENT. 18048func_dirname () 18049{ 18050 # Extract subdirectory from the argument. 18051 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 18052 if test "X$func_dirname_result" = "X${1}"; then 18053 func_dirname_result="${3}" 18054 else 18055 func_dirname_result="$func_dirname_result${2}" 18056 fi 18057} 18058 18059# func_basename file 18060func_basename () 18061{ 18062 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 18063} 18064 18065 18066# func_stripname prefix suffix name 18067# strip PREFIX and SUFFIX off of NAME. 18068# PREFIX and SUFFIX must not contain globbing or regex special 18069# characters, hashes, percent signs, but SUFFIX may contain a leading 18070# dot (in which case that matches only a dot). 18071# func_strip_suffix prefix name 18072func_stripname () 18073{ 18074 case ${2} in 18075 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 18076 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 18077 esac 18078} 18079 18080# sed scripts: 18081my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 18082my_sed_long_arg='1s/^-[^=]*=//' 18083 18084# func_opt_split 18085func_opt_split () 18086{ 18087 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 18088 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 18089} 18090 18091# func_lo2o object 18092func_lo2o () 18093{ 18094 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 18095} 18096 18097# func_xform libobj-or-source 18098func_xform () 18099{ 18100 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 18101} 18102 18103# func_arith arithmetic-term... 18104func_arith () 18105{ 18106 func_arith_result=`expr "$@"` 18107} 18108 18109# func_len string 18110# STRING may not start with a hyphen. 18111func_len () 18112{ 18113 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 18114} 18115 18116_LT_EOF 18117esac 18118 18119case $lt_shell_append in 18120 yes) 18121 cat << \_LT_EOF >> "$cfgfile" 18122 18123# func_append var value 18124# Append VALUE to the end of shell variable VAR. 18125func_append () 18126{ 18127 eval "$1+=\$2" 18128} 18129_LT_EOF 18130 ;; 18131 *) 18132 cat << \_LT_EOF >> "$cfgfile" 18133 18134# func_append var value 18135# Append VALUE to the end of shell variable VAR. 18136func_append () 18137{ 18138 eval "$1=\$$1\$2" 18139} 18140 18141_LT_EOF 18142 ;; 18143 esac 18144 18145 18146 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18147 || (rm -f "$cfgfile"; exit 1) 18148 18149 mv -f "$cfgfile" "$ofile" || 18150 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18151 chmod +x "$ofile" 18152 18153 18154 cat <<_LT_EOF >> "$ofile" 18155 18156# ### BEGIN LIBTOOL TAG CONFIG: GO 18157 18158# The linker used to build libraries. 18159LD=$lt_LD_GO 18160 18161# How to create reloadable object files. 18162reload_flag=$lt_reload_flag_GO 18163reload_cmds=$lt_reload_cmds_GO 18164 18165# Commands used to build an old-style archive. 18166old_archive_cmds=$lt_old_archive_cmds_GO 18167 18168# A language specific compiler. 18169CC=$lt_compiler_GO 18170 18171# Is the compiler the GNU compiler? 18172with_gcc=$GCC_GO 18173 18174# Compiler flag to turn off builtin functions. 18175no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO 18176 18177# How to pass a linker flag through the compiler. 18178wl=$lt_lt_prog_compiler_wl_GO 18179 18180# Additional compiler flags for building library objects. 18181pic_flag=$lt_lt_prog_compiler_pic_GO 18182 18183# Compiler flag to prevent dynamic linking. 18184link_static_flag=$lt_lt_prog_compiler_static_GO 18185 18186# Does compiler simultaneously support -c and -o options? 18187compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO 18188 18189# Whether or not to add -lc for building shared libraries. 18190build_libtool_need_lc=$archive_cmds_need_lc_GO 18191 18192# Whether or not to disallow shared libs when runtime libs are static. 18193allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO 18194 18195# Compiler flag to allow reflexive dlopens. 18196export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO 18197 18198# Compiler flag to generate shared objects directly from archives. 18199whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO 18200 18201# Whether the compiler copes with passing no objects directly. 18202compiler_needs_object=$lt_compiler_needs_object_GO 18203 18204# Create an old-style archive from a shared archive. 18205old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO 18206 18207# Create a temporary old-style archive to link instead of a shared archive. 18208old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO 18209 18210# Commands used to build a shared archive. 18211archive_cmds=$lt_archive_cmds_GO 18212archive_expsym_cmds=$lt_archive_expsym_cmds_GO 18213 18214# Commands used to build a loadable module if different from building 18215# a shared archive. 18216module_cmds=$lt_module_cmds_GO 18217module_expsym_cmds=$lt_module_expsym_cmds_GO 18218 18219# Whether we are building with GNU ld or not. 18220with_gnu_ld=$lt_with_gnu_ld_GO 18221 18222# Flag that allows shared libraries with undefined symbols to be built. 18223allow_undefined_flag=$lt_allow_undefined_flag_GO 18224 18225# Flag that enforces no undefined symbols. 18226no_undefined_flag=$lt_no_undefined_flag_GO 18227 18228# Flag to hardcode \$libdir into a binary during linking. 18229# This must work even if \$libdir does not exist 18230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO 18231 18232# If ld is used when linking, flag to hardcode \$libdir into a binary 18233# during linking. This must work even if \$libdir does not exist. 18234hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO 18235 18236# Whether we need a single "-rpath" flag with a separated argument. 18237hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO 18238 18239# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18240# DIR into the resulting binary. 18241hardcode_direct=$hardcode_direct_GO 18242 18243# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18244# DIR into the resulting binary and the resulting library dependency is 18245# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18246# library is relocated. 18247hardcode_direct_absolute=$hardcode_direct_absolute_GO 18248 18249# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18250# into the resulting binary. 18251hardcode_minus_L=$hardcode_minus_L_GO 18252 18253# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18254# into the resulting binary. 18255hardcode_shlibpath_var=$hardcode_shlibpath_var_GO 18256 18257# Set to "yes" if building a shared library automatically hardcodes DIR 18258# into the library and all subsequent libraries and executables linked 18259# against it. 18260hardcode_automatic=$hardcode_automatic_GO 18261 18262# Set to yes if linker adds runtime paths of dependent libraries 18263# to runtime path list. 18264inherit_rpath=$inherit_rpath_GO 18265 18266# Whether libtool must link a program against all its dependency libraries. 18267link_all_deplibs=$link_all_deplibs_GO 18268 18269# Fix the shell variable \$srcfile for the compiler. 18270fix_srcfile_path=$lt_fix_srcfile_path_GO 18271 18272# Set to "yes" if exported symbols are required. 18273always_export_symbols=$always_export_symbols_GO 18274 18275# The commands to list exported symbols. 18276export_symbols_cmds=$lt_export_symbols_cmds_GO 18277 18278# Symbols that should not be listed in the preloaded symbols. 18279exclude_expsyms=$lt_exclude_expsyms_GO 18280 18281# Symbols that must always be exported. 18282include_expsyms=$lt_include_expsyms_GO 18283 18284# Commands necessary for linking programs (against libraries) with templates. 18285prelink_cmds=$lt_prelink_cmds_GO 18286 18287# Specify filename containing input files. 18288file_list_spec=$lt_file_list_spec_GO 18289 18290# How to hardcode a shared library path into an executable. 18291hardcode_action=$hardcode_action_GO 18292 18293# ### END LIBTOOL TAG CONFIG: GO 18294_LT_EOF 18295 18296 ;; 18297 "default":C) if test -n "$CONFIG_FILES"; then 18298 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so 18299 # that multilib installs will end up installed in the correct place. 18300 # The testsuite needs it for multilib-aware ABI baseline files. 18301 # To work around this not being passed down from config-ml.in -> 18302 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually 18303 # append it here. Only modify Makefiles that have just been created. 18304 # 18305 # Also, get rid of this simulated-VPATH thing that automake does. 18306 cat > vpsed << \_EOF 18307s!`test -f '$<' || echo '$(srcdir)/'`!! 18308_EOF 18309 for i in $SUBDIRS; do 18310 case $CONFIG_FILES in 18311 *${i}/Makefile*) 18312 #echo "Adding MULTISUBDIR to $i/Makefile" 18313 sed -f vpsed $i/Makefile > tmp 18314 grep '^MULTISUBDIR =' Makefile >> tmp 18315 mv tmp $i/Makefile 18316 ;; 18317 esac 18318 done 18319 rm vpsed 18320 fi 18321 ;; 18322 18323 esac 18324done # for ac_tag 18325 18326 18327as_fn_exit 0 18328_ACEOF 18329ac_clean_files=$ac_clean_files_save 18330 18331test $ac_write_fail = 0 || 18332 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 18333 18334 18335# configure is writing to config.log, and then calls config.status. 18336# config.status does its own redirection, appending to config.log. 18337# Unfortunately, on DOS this fails, as config.log is still kept open 18338# by configure, so config.status won't be able to write to it; its 18339# output is simply discarded. So we exec the FD to /dev/null, 18340# effectively closing config.log, so it can be properly (re)opened and 18341# appended to by config.status. When coming back to configure, we 18342# need to make the FD available again. 18343if test "$no_create" != yes; then 18344 ac_cs_success=: 18345 ac_config_status_args= 18346 test "$silent" = yes && 18347 ac_config_status_args="$ac_config_status_args --quiet" 18348 exec 5>/dev/null 18349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18350 exec 5>>config.log 18351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18352 # would make configure fail if this is the last instruction. 18353 $ac_cs_success || as_fn_exit $? 18354fi 18355if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18357$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18358fi 18359 18360