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 605STRUCT_EPOLL_EVENT_FD_OFFSET 606SIZEOF_STRUCT_EPOLL_EVENT 607MATH_FLAG 608STRINGOPS_FLAG 609HAVE_WAIT4_FALSE 610HAVE_WAIT4_TRUE 611HAVE_STRERROR_R_FALSE 612HAVE_STRERROR_R_TRUE 613HAVE_SYS_MMAN_H_FALSE 614HAVE_SYS_MMAN_H_TRUE 615PTHREAD_LIBS 616PTHREAD_CFLAGS 617NET_LIBS 618MATH_LIBS 619USING_SPLIT_STACK_FALSE 620USING_SPLIT_STACK_TRUE 621SPLIT_STACK 622OSCFLAGS 623GO_SYSCALL_OS_ARCH_FILE 624GO_SYSCALL_OS_FILE 625GO_LIBCALL_OS_ARCH_FILE 626GO_LIBCALL_OS_FILE 627GOARCH 628LIBGO_IS_X86_64_FALSE 629LIBGO_IS_X86_64_TRUE 630LIBGO_IS_SPARC64_FALSE 631LIBGO_IS_SPARC64_TRUE 632LIBGO_IS_SPARC_FALSE 633LIBGO_IS_SPARC_TRUE 634LIBGO_IS_PPC64_FALSE 635LIBGO_IS_PPC64_TRUE 636LIBGO_IS_PPC_FALSE 637LIBGO_IS_PPC_TRUE 638LIBGO_IS_MIPSO64_FALSE 639LIBGO_IS_MIPSO64_TRUE 640LIBGO_IS_MIPSN64_FALSE 641LIBGO_IS_MIPSN64_TRUE 642LIBGO_IS_MIPSN32_FALSE 643LIBGO_IS_MIPSN32_TRUE 644LIBGO_IS_MIPSO32_FALSE 645LIBGO_IS_MIPSO32_TRUE 646LIBGO_IS_MIPS_FALSE 647LIBGO_IS_MIPS_TRUE 648LIBGO_IS_M68K_FALSE 649LIBGO_IS_M68K_TRUE 650LIBGO_IS_ARM64_FALSE 651LIBGO_IS_ARM64_TRUE 652LIBGO_IS_ARM_FALSE 653LIBGO_IS_ARM_TRUE 654LIBGO_IS_ALPHA_FALSE 655LIBGO_IS_ALPHA_TRUE 656LIBGO_IS_386_FALSE 657LIBGO_IS_386_TRUE 658USE_DEJAGNU 659GOOS 660LIBGO_IS_SOLARIS_FALSE 661LIBGO_IS_SOLARIS_TRUE 662LIBGO_IS_RTEMS_FALSE 663LIBGO_IS_RTEMS_TRUE 664LIBGO_IS_DRAGONFLY_FALSE 665LIBGO_IS_DRAGONFLY_TRUE 666LIBGO_IS_OPENBSD_FALSE 667LIBGO_IS_OPENBSD_TRUE 668LIBGO_IS_NETBSD_FALSE 669LIBGO_IS_NETBSD_TRUE 670LIBGO_IS_LINUX_FALSE 671LIBGO_IS_LINUX_TRUE 672LIBGO_IS_IRIX_FALSE 673LIBGO_IS_IRIX_TRUE 674LIBGO_IS_FREEBSD_FALSE 675LIBGO_IS_FREEBSD_TRUE 676LIBGO_IS_DARWIN_FALSE 677LIBGO_IS_DARWIN_TRUE 678go_include 679LIBFFIINCS 680LIBFFI 681nover_glibgo_toolexeclibdir 682glibgo_toolexeclibdir 683glibgo_toolexecdir 684WERROR 685WARN_FLAGS 686CC_FOR_BUILD 687enable_static 688enable_shared 689CPP 690OTOOL64 691OTOOL 692LIPO 693NMEDIT 694DSYMUTIL 695AR 696OBJDUMP 697LN_S 698NM 699ac_ct_DUMPBIN 700DUMPBIN 701LIBTOOL 702OBJCOPY 703RANLIB 704LD 705FGREP 706EGREP 707GREP 708SED 709MAINT 710MAINTAINER_MODE_FALSE 711MAINTAINER_MODE_TRUE 712GOCFLAGS 713GOC 714am__fastdepCC_FALSE 715am__fastdepCC_TRUE 716CCDEPMODE 717AMDEPBACKSLASH 718AMDEP_FALSE 719AMDEP_TRUE 720am__quote 721am__include 722DEPDIR 723OBJEXT 724EXEEXT 725ac_ct_CC 726CPPFLAGS 727LDFLAGS 728CFLAGS 729CC 730am__untar 731am__tar 732AMTAR 733am__leading_dot 734SET_MAKE 735AWK 736mkdir_p 737MKDIR_P 738INSTALL_STRIP_PROGRAM 739STRIP 740install_sh 741MAKEINFO 742AUTOHEADER 743AUTOMAKE 744AUTOCONF 745ACLOCAL 746VERSION 747PACKAGE 748CYGPATH_W 749am__isrc 750INSTALL_DATA 751INSTALL_SCRIPT 752INSTALL_PROGRAM 753target_os 754target_vendor 755target_cpu 756target 757host_os 758host_vendor 759host_cpu 760host 761build_os 762build_vendor 763build_cpu 764build 765multi_basedir 766libtool_VERSION 767target_alias 768host_alias 769build_alias 770LIBS 771ECHO_T 772ECHO_N 773ECHO_C 774DEFS 775mandir 776localedir 777libdir 778psdir 779pdfdir 780dvidir 781htmldir 782infodir 783docdir 784oldincludedir 785includedir 786localstatedir 787sharedstatedir 788sysconfdir 789datadir 790datarootdir 791libexecdir 792sbindir 793bindir 794program_transform_name 795prefix 796exec_prefix 797PACKAGE_URL 798PACKAGE_BUGREPORT 799PACKAGE_STRING 800PACKAGE_VERSION 801PACKAGE_TARNAME 802PACKAGE_NAME 803PATH_SEPARATOR 804SHELL' 805ac_subst_files='' 806ac_user_opts=' 807enable_option_checking 808enable_multilib 809enable_dependency_tracking 810enable_maintainer_mode 811with_gnu_ld 812enable_shared 813enable_static 814with_pic 815enable_fast_install 816enable_libtool_lock 817enable_werror 818enable_version_specific_runtime_libs 819with_libffi 820with_system_libunwind 821enable_sjlj_exceptions 822' 823 ac_precious_vars='build_alias 824host_alias 825target_alias 826CPP 827CPPFLAGS' 828 829 830# Initialize some variables set by options. 831ac_init_help= 832ac_init_version=false 833ac_unrecognized_opts= 834ac_unrecognized_sep= 835# The variables have the same names as the options, with 836# dashes changed to underlines. 837cache_file=/dev/null 838exec_prefix=NONE 839no_create= 840no_recursion= 841prefix=NONE 842program_prefix=NONE 843program_suffix=NONE 844program_transform_name=s,x,x, 845silent= 846site= 847srcdir= 848verbose= 849x_includes=NONE 850x_libraries=NONE 851 852# Installation directory options. 853# These are left unexpanded so users can "make install exec_prefix=/foo" 854# and all the variables that are supposed to be based on exec_prefix 855# by default will actually change. 856# Use braces instead of parens because sh, perl, etc. also accept them. 857# (The list follows the same order as the GNU Coding Standards.) 858bindir='${exec_prefix}/bin' 859sbindir='${exec_prefix}/sbin' 860libexecdir='${exec_prefix}/libexec' 861datarootdir='${prefix}/share' 862datadir='${datarootdir}' 863sysconfdir='${prefix}/etc' 864sharedstatedir='${prefix}/com' 865localstatedir='${prefix}/var' 866includedir='${prefix}/include' 867oldincludedir='/usr/include' 868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 869infodir='${datarootdir}/info' 870htmldir='${docdir}' 871dvidir='${docdir}' 872pdfdir='${docdir}' 873psdir='${docdir}' 874libdir='${exec_prefix}/lib' 875localedir='${datarootdir}/locale' 876mandir='${datarootdir}/man' 877 878ac_prev= 879ac_dashdash= 880for ac_option 881do 882 # If the previous option needs an argument, assign it. 883 if test -n "$ac_prev"; then 884 eval $ac_prev=\$ac_option 885 ac_prev= 886 continue 887 fi 888 889 case $ac_option in 890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 891 *) ac_optarg=yes ;; 892 esac 893 894 # Accept the important Cygnus configure options, so we can diagnose typos. 895 896 case $ac_dashdash$ac_option in 897 --) 898 ac_dashdash=yes ;; 899 900 -bindir | --bindir | --bindi | --bind | --bin | --bi) 901 ac_prev=bindir ;; 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 903 bindir=$ac_optarg ;; 904 905 -build | --build | --buil | --bui | --bu) 906 ac_prev=build_alias ;; 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 908 build_alias=$ac_optarg ;; 909 910 -cache-file | --cache-file | --cache-fil | --cache-fi \ 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 912 ac_prev=cache_file ;; 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 915 cache_file=$ac_optarg ;; 916 917 --config-cache | -C) 918 cache_file=config.cache ;; 919 920 -datadir | --datadir | --datadi | --datad) 921 ac_prev=datadir ;; 922 -datadir=* | --datadir=* | --datadi=* | --datad=*) 923 datadir=$ac_optarg ;; 924 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 926 | --dataroo | --dataro | --datar) 927 ac_prev=datarootdir ;; 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 930 datarootdir=$ac_optarg ;; 931 932 -disable-* | --disable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=no ;; 947 948 -docdir | --docdir | --docdi | --doc | --do) 949 ac_prev=docdir ;; 950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 951 docdir=$ac_optarg ;; 952 953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 954 ac_prev=dvidir ;; 955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 956 dvidir=$ac_optarg ;; 957 958 -enable-* | --enable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error "invalid feature name: $ac_useropt" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=\$ac_optarg ;; 973 974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 976 | --exec | --exe | --ex) 977 ac_prev=exec_prefix ;; 978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 980 | --exec=* | --exe=* | --ex=*) 981 exec_prefix=$ac_optarg ;; 982 983 -gas | --gas | --ga | --g) 984 # Obsolete; use --with-gas. 985 with_gas=yes ;; 986 987 -help | --help | --hel | --he | -h) 988 ac_init_help=long ;; 989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 990 ac_init_help=recursive ;; 991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 992 ac_init_help=short ;; 993 994 -host | --host | --hos | --ho) 995 ac_prev=host_alias ;; 996 -host=* | --host=* | --hos=* | --ho=*) 997 host_alias=$ac_optarg ;; 998 999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1000 ac_prev=htmldir ;; 1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1002 | --ht=*) 1003 htmldir=$ac_optarg ;; 1004 1005 -includedir | --includedir | --includedi | --included | --include \ 1006 | --includ | --inclu | --incl | --inc) 1007 ac_prev=includedir ;; 1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1009 | --includ=* | --inclu=* | --incl=* | --inc=*) 1010 includedir=$ac_optarg ;; 1011 1012 -infodir | --infodir | --infodi | --infod | --info | --inf) 1013 ac_prev=infodir ;; 1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1015 infodir=$ac_optarg ;; 1016 1017 -libdir | --libdir | --libdi | --libd) 1018 ac_prev=libdir ;; 1019 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1020 libdir=$ac_optarg ;; 1021 1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1023 | --libexe | --libex | --libe) 1024 ac_prev=libexecdir ;; 1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1026 | --libexe=* | --libex=* | --libe=*) 1027 libexecdir=$ac_optarg ;; 1028 1029 -localedir | --localedir | --localedi | --localed | --locale) 1030 ac_prev=localedir ;; 1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1032 localedir=$ac_optarg ;; 1033 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1035 | --localstate | --localstat | --localsta | --localst | --locals) 1036 ac_prev=localstatedir ;; 1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1039 localstatedir=$ac_optarg ;; 1040 1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1042 ac_prev=mandir ;; 1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1044 mandir=$ac_optarg ;; 1045 1046 -nfp | --nfp | --nf) 1047 # Obsolete; use --without-fp. 1048 with_fp=no ;; 1049 1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1051 | --no-cr | --no-c | -n) 1052 no_create=yes ;; 1053 1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1056 no_recursion=yes ;; 1057 1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1060 | --oldin | --oldi | --old | --ol | --o) 1061 ac_prev=oldincludedir ;; 1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1065 oldincludedir=$ac_optarg ;; 1066 1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1068 ac_prev=prefix ;; 1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1070 prefix=$ac_optarg ;; 1071 1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1073 | --program-pre | --program-pr | --program-p) 1074 ac_prev=program_prefix ;; 1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1077 program_prefix=$ac_optarg ;; 1078 1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1080 | --program-suf | --program-su | --program-s) 1081 ac_prev=program_suffix ;; 1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1084 program_suffix=$ac_optarg ;; 1085 1086 -program-transform-name | --program-transform-name \ 1087 | --program-transform-nam | --program-transform-na \ 1088 | --program-transform-n | --program-transform- \ 1089 | --program-transform | --program-transfor \ 1090 | --program-transfo | --program-transf \ 1091 | --program-trans | --program-tran \ 1092 | --progr-tra | --program-tr | --program-t) 1093 ac_prev=program_transform_name ;; 1094 -program-transform-name=* | --program-transform-name=* \ 1095 | --program-transform-nam=* | --program-transform-na=* \ 1096 | --program-transform-n=* | --program-transform-=* \ 1097 | --program-transform=* | --program-transfor=* \ 1098 | --program-transfo=* | --program-transf=* \ 1099 | --program-trans=* | --program-tran=* \ 1100 | --progr-tra=* | --program-tr=* | --program-t=*) 1101 program_transform_name=$ac_optarg ;; 1102 1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1104 ac_prev=pdfdir ;; 1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1106 pdfdir=$ac_optarg ;; 1107 1108 -psdir | --psdir | --psdi | --psd | --ps) 1109 ac_prev=psdir ;; 1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1111 psdir=$ac_optarg ;; 1112 1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1114 | -silent | --silent | --silen | --sile | --sil) 1115 silent=yes ;; 1116 1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1118 ac_prev=sbindir ;; 1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1120 | --sbi=* | --sb=*) 1121 sbindir=$ac_optarg ;; 1122 1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1125 | --sharedst | --shareds | --shared | --share | --shar \ 1126 | --sha | --sh) 1127 ac_prev=sharedstatedir ;; 1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1131 | --sha=* | --sh=*) 1132 sharedstatedir=$ac_optarg ;; 1133 1134 -site | --site | --sit) 1135 ac_prev=site ;; 1136 -site=* | --site=* | --sit=*) 1137 site=$ac_optarg ;; 1138 1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1140 ac_prev=srcdir ;; 1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1142 srcdir=$ac_optarg ;; 1143 1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1145 | --syscon | --sysco | --sysc | --sys | --sy) 1146 ac_prev=sysconfdir ;; 1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1149 sysconfdir=$ac_optarg ;; 1150 1151 -target | --target | --targe | --targ | --tar | --ta | --t) 1152 ac_prev=target_alias ;; 1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1154 target_alias=$ac_optarg ;; 1155 1156 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1157 verbose=yes ;; 1158 1159 -version | --version | --versio | --versi | --vers | -V) 1160 ac_init_version=: ;; 1161 1162 -with-* | --with-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error "invalid package name: $ac_useropt" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=\$ac_optarg ;; 1177 1178 -without-* | --without-*) 1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1182 as_fn_error "invalid package name: $ac_useropt" 1183 ac_useropt_orig=$ac_useropt 1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1185 case $ac_user_opts in 1186 *" 1187"with_$ac_useropt" 1188"*) ;; 1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1190 ac_unrecognized_sep=', ';; 1191 esac 1192 eval with_$ac_useropt=no ;; 1193 1194 --x) 1195 # Obsolete; use --with-x. 1196 with_x=yes ;; 1197 1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1199 | --x-incl | --x-inc | --x-in | --x-i) 1200 ac_prev=x_includes ;; 1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1203 x_includes=$ac_optarg ;; 1204 1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1207 ac_prev=x_libraries ;; 1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1210 x_libraries=$ac_optarg ;; 1211 1212 -*) as_fn_error "unrecognized option: \`$ac_option' 1213Try \`$0 --help' for more information." 1214 ;; 1215 1216 *=*) 1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1218 # Reject names that are not valid shell variable names. 1219 case $ac_envvar in #( 1220 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1222 esac 1223 eval $ac_envvar=\$ac_optarg 1224 export $ac_envvar ;; 1225 1226 *) 1227 # FIXME: should be removed in autoconf 3.0. 1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1231 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1232 ;; 1233 1234 esac 1235done 1236 1237if test -n "$ac_prev"; then 1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1239 as_fn_error "missing argument to $ac_option" 1240fi 1241 1242if test -n "$ac_unrecognized_opts"; then 1243 case $enable_option_checking in 1244 no) ;; 1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1247 esac 1248fi 1249 1250# Check all directory arguments for consistency. 1251for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1252 datadir sysconfdir sharedstatedir localstatedir includedir \ 1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1254 libdir localedir mandir 1255do 1256 eval ac_val=\$$ac_var 1257 # Remove trailing slashes. 1258 case $ac_val in 1259 */ ) 1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1261 eval $ac_var=\$ac_val;; 1262 esac 1263 # Be sure to have absolute directory names. 1264 case $ac_val in 1265 [\\/$]* | ?:[\\/]* ) continue;; 1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1267 esac 1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1269done 1270 1271# There might be people who depend on the old broken behavior: `$host' 1272# used to hold the argument of --host etc. 1273# FIXME: To remove some day. 1274build=$build_alias 1275host=$host_alias 1276target=$target_alias 1277 1278# FIXME: To remove some day. 1279if test "x$host_alias" != x; then 1280 if test "x$build_alias" = x; then 1281 cross_compiling=maybe 1282 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1283 If a cross compiler is detected then cross compile mode will be used." >&2 1284 elif test "x$build_alias" != "x$host_alias"; then 1285 cross_compiling=yes 1286 fi 1287fi 1288 1289ac_tool_prefix= 1290test -n "$host_alias" && ac_tool_prefix=$host_alias- 1291 1292test "$silent" = yes && exec 6>/dev/null 1293 1294 1295ac_pwd=`pwd` && test -n "$ac_pwd" && 1296ac_ls_di=`ls -di .` && 1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1298 as_fn_error "working directory cannot be determined" 1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1300 as_fn_error "pwd does not report name of working directory" 1301 1302 1303# Find the source files, if location was not specified. 1304if test -z "$srcdir"; then 1305 ac_srcdir_defaulted=yes 1306 # Try the directory containing this script, then the parent directory. 1307 ac_confdir=`$as_dirname -- "$as_myself" || 1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1309 X"$as_myself" : 'X\(//\)[^/]' \| \ 1310 X"$as_myself" : 'X\(//\)$' \| \ 1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1312$as_echo X"$as_myself" | 1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)[^/].*/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\/\)$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\).*/{ 1326 s//\1/ 1327 q 1328 } 1329 s/.*/./; q'` 1330 srcdir=$ac_confdir 1331 if test ! -r "$srcdir/$ac_unique_file"; then 1332 srcdir=.. 1333 fi 1334else 1335 ac_srcdir_defaulted=no 1336fi 1337if test ! -r "$srcdir/$ac_unique_file"; then 1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1340fi 1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1342ac_abs_confdir=`( 1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1344 pwd)` 1345# When building in place, set srcdir=. 1346if test "$ac_abs_confdir" = "$ac_pwd"; then 1347 srcdir=. 1348fi 1349# Remove unnecessary trailing slashes from srcdir. 1350# Double slashes in file names in object file debugging info 1351# mess up M-x gdb in Emacs. 1352case $srcdir in 1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1354esac 1355for ac_var in $ac_precious_vars; do 1356 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1357 eval ac_env_${ac_var}_value=\$${ac_var} 1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1359 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1360done 1361 1362# 1363# Report the --help message. 1364# 1365if test "$ac_init_help" = "long"; then 1366 # Omit some internal or obsolete options to make the list less imposing. 1367 # This message is too long to be a string in the A/UX 3.1 sh. 1368 cat <<_ACEOF 1369\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1370 1371Usage: $0 [OPTION]... [VAR=VALUE]... 1372 1373To assign environment variables (e.g., CC, CFLAGS...), specify them as 1374VAR=VALUE. See below for descriptions of some of the useful variables. 1375 1376Defaults for the options are specified in brackets. 1377 1378Configuration: 1379 -h, --help display this help and exit 1380 --help=short display options specific to this package 1381 --help=recursive display the short help of all the included packages 1382 -V, --version display version information and exit 1383 -q, --quiet, --silent do not print \`checking...' messages 1384 --cache-file=FILE cache test results in FILE [disabled] 1385 -C, --config-cache alias for \`--cache-file=config.cache' 1386 -n, --no-create do not create output files 1387 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1388 1389Installation directories: 1390 --prefix=PREFIX install architecture-independent files in PREFIX 1391 [$ac_default_prefix] 1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1393 [PREFIX] 1394 1395By default, \`make install' will install all the files in 1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1397an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1398for instance \`--prefix=\$HOME'. 1399 1400For better control, use the options below. 1401 1402Fine tuning of the installation directories: 1403 --bindir=DIR user executables [EPREFIX/bin] 1404 --sbindir=DIR system admin executables [EPREFIX/sbin] 1405 --libexecdir=DIR program executables [EPREFIX/libexec] 1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1409 --libdir=DIR object code libraries [EPREFIX/lib] 1410 --includedir=DIR C header files [PREFIX/include] 1411 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1414 --infodir=DIR info documentation [DATAROOTDIR/info] 1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1416 --mandir=DIR man documentation [DATAROOTDIR/man] 1417 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo] 1418 --htmldir=DIR html documentation [DOCDIR] 1419 --dvidir=DIR dvi documentation [DOCDIR] 1420 --pdfdir=DIR pdf documentation [DOCDIR] 1421 --psdir=DIR ps documentation [DOCDIR] 1422_ACEOF 1423 1424 cat <<\_ACEOF 1425 1426Program names: 1427 --program-prefix=PREFIX prepend PREFIX to installed program names 1428 --program-suffix=SUFFIX append SUFFIX to installed program names 1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1430 1431System types: 1432 --build=BUILD configure for building on BUILD [guessed] 1433 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1434 --target=TARGET configure for building compilers for TARGET [HOST] 1435_ACEOF 1436fi 1437 1438if test -n "$ac_init_help"; then 1439 case $ac_init_help in 1440 short | recursive ) echo "Configuration of package-unused version-unused:";; 1441 esac 1442 cat <<\_ACEOF 1443 1444Optional Features: 1445 --disable-option-checking ignore unrecognized --enable/--with options 1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1448 --enable-multilib build many library versions (default) 1449 --disable-dependency-tracking speeds up one-time build 1450 --enable-dependency-tracking do not reject slow dependency extractors 1451 --enable-maintainer-mode enable make rules and dependencies not useful 1452 (and sometimes confusing) to the casual installer 1453 --enable-shared[=PKGS] build shared libraries [default=yes] 1454 --enable-static[=PKGS] build static libraries [default=yes] 1455 --enable-fast-install[=PKGS] 1456 optimize for fast installation [default=yes] 1457 --disable-libtool-lock avoid locking (might break parallel builds) 1458 --enable-werror turns on -Werror [default=yes] 1459 --enable-version-specific-runtime-libs 1460 Specify that runtime libraries should be installed 1461 in a compiler-specific directory 1462 --enable-sjlj-exceptions 1463 force use of builtin_setjmp for exceptions 1464 1465Optional Packages: 1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1469 --with-pic try to use only PIC/non-PIC objects [default=use 1470 both] 1471 --without-libffi don't use libffi 1472 --with-system-libunwind use installed libunwind 1473 1474Some influential environment variables: 1475 CC C compiler command 1476 CFLAGS C compiler flags 1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1478 nonstandard directory <lib dir> 1479 LIBS libraries to pass to the linker, e.g. -l<library> 1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1481 you have headers in a nonstandard directory <include dir> 1482 GOC Go compiler command 1483 GOCFLAGS Go compiler flags 1484 CPP C preprocessor 1485 1486Use these variables to override the choices made by `configure' or to help 1487it to find libraries and programs with nonstandard names/locations. 1488 1489Report bugs to the package provider. 1490_ACEOF 1491ac_status=$? 1492fi 1493 1494if test "$ac_init_help" = "recursive"; then 1495 # If there are subdirs, report their specific --help. 1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1497 test -d "$ac_dir" || 1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1499 continue 1500 ac_builddir=. 1501 1502case "$ac_dir" in 1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1504*) 1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1506 # A ".." for each directory in $ac_dir_suffix. 1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1508 case $ac_top_builddir_sub in 1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1511 esac ;; 1512esac 1513ac_abs_top_builddir=$ac_pwd 1514ac_abs_builddir=$ac_pwd$ac_dir_suffix 1515# for backward compatibility: 1516ac_top_builddir=$ac_top_build_prefix 1517 1518case $srcdir in 1519 .) # We are building in place. 1520 ac_srcdir=. 1521 ac_top_srcdir=$ac_top_builddir_sub 1522 ac_abs_top_srcdir=$ac_pwd ;; 1523 [\\/]* | ?:[\\/]* ) # Absolute name. 1524 ac_srcdir=$srcdir$ac_dir_suffix; 1525 ac_top_srcdir=$srcdir 1526 ac_abs_top_srcdir=$srcdir ;; 1527 *) # Relative name. 1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1529 ac_top_srcdir=$ac_top_build_prefix$srcdir 1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1531esac 1532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1533 1534 cd "$ac_dir" || { ac_status=$?; continue; } 1535 # Check for guested configure. 1536 if test -f "$ac_srcdir/configure.gnu"; then 1537 echo && 1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1539 elif test -f "$ac_srcdir/configure"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure" --help=recursive 1542 else 1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1544 fi || ac_status=$? 1545 cd "$ac_pwd" || { ac_status=$?; break; } 1546 done 1547fi 1548 1549test -n "$ac_init_help" && exit $ac_status 1550if $ac_init_version; then 1551 cat <<\_ACEOF 1552package-unused configure version-unused 1553generated by GNU Autoconf 2.64 1554 1555Copyright (C) 2009 Free Software Foundation, Inc. 1556This configure script is free software; the Free Software Foundation 1557gives unlimited permission to copy, distribute and modify it. 1558_ACEOF 1559 exit 1560fi 1561 1562## ------------------------ ## 1563## Autoconf initialization. ## 1564## ------------------------ ## 1565 1566# ac_fn_c_try_compile LINENO 1567# -------------------------- 1568# Try to compile conftest.$ac_ext, and return whether this succeeded. 1569ac_fn_c_try_compile () 1570{ 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572 rm -f conftest.$ac_objext 1573 if { { ac_try="$ac_compile" 1574case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579$as_echo "$ac_try_echo"; } >&5 1580 (eval "$ac_compile") 2>conftest.err 1581 ac_status=$? 1582 if test -s conftest.err; then 1583 grep -v '^ *+' conftest.err >conftest.er1 1584 cat conftest.er1 >&5 1585 mv -f conftest.er1 conftest.err 1586 fi 1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1588 test $ac_status = 0; } && { 1589 test -z "$ac_c_werror_flag" || 1590 test ! -s conftest.err 1591 } && test -s conftest.$ac_objext; then : 1592 ac_retval=0 1593else 1594 $as_echo "$as_me: failed program was:" >&5 1595sed 's/^/| /' conftest.$ac_ext >&5 1596 1597 ac_retval=1 1598fi 1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1600 return $ac_retval 1601 1602} # ac_fn_c_try_compile 1603 1604# ac_fn_c_try_link LINENO 1605# ----------------------- 1606# Try to link conftest.$ac_ext, and return whether this succeeded. 1607ac_fn_c_try_link () 1608{ 1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610 rm -f conftest.$ac_objext conftest$ac_exeext 1611 if { { ac_try="$ac_link" 1612case "(($ac_try" in 1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1614 *) ac_try_echo=$ac_try;; 1615esac 1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1617$as_echo "$ac_try_echo"; } >&5 1618 (eval "$ac_link") 2>conftest.err 1619 ac_status=$? 1620 if test -s conftest.err; then 1621 grep -v '^ *+' conftest.err >conftest.er1 1622 cat conftest.er1 >&5 1623 mv -f conftest.er1 conftest.err 1624 fi 1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1626 test $ac_status = 0; } && { 1627 test -z "$ac_c_werror_flag" || 1628 test ! -s conftest.err 1629 } && test -s conftest$ac_exeext && { 1630 test "$cross_compiling" = yes || 1631 $as_test_x conftest$ac_exeext 1632 }; then : 1633 ac_retval=0 1634else 1635 $as_echo "$as_me: failed program was:" >&5 1636sed 's/^/| /' conftest.$ac_ext >&5 1637 1638 ac_retval=1 1639fi 1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1642 # interfere with the next link command; also delete a directory that is 1643 # left behind by Apple's compiler. We do this before executing the actions. 1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1646 return $ac_retval 1647 1648} # ac_fn_c_try_link 1649 1650# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1651# ------------------------------------------------------- 1652# Tests whether HEADER exists and can be compiled using the include files in 1653# INCLUDES, setting the cache variable VAR accordingly. 1654ac_fn_c_check_header_compile () 1655{ 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1658$as_echo_n "checking for $2... " >&6; } 1659if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1660 $as_echo_n "(cached) " >&6 1661else 1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1663/* end confdefs.h. */ 1664$4 1665#include <$2> 1666_ACEOF 1667if ac_fn_c_try_compile "$LINENO"; then : 1668 eval "$3=yes" 1669else 1670 eval "$3=no" 1671fi 1672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1673fi 1674eval ac_res=\$$3 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1676$as_echo "$ac_res" >&6; } 1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1678 1679} # ac_fn_c_check_header_compile 1680 1681# ac_fn_c_try_cpp LINENO 1682# ---------------------- 1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_cpp () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 if { { ac_try="$ac_cpp conftest.$ac_ext" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } >/dev/null && { 1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1714 return $ac_retval 1715 1716} # ac_fn_c_try_cpp 1717 1718# ac_fn_c_try_run LINENO 1719# ---------------------- 1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1721# that executables *can* be run. 1722ac_fn_c_try_run () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 if { { ac_try="$ac_link" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_link") 2>&5 1733 ac_status=$? 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1736 { { case "(($ac_try" in 1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1738 *) ac_try_echo=$ac_try;; 1739esac 1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1741$as_echo "$ac_try_echo"; } >&5 1742 (eval "$ac_try") 2>&5 1743 ac_status=$? 1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1745 test $ac_status = 0; }; }; then : 1746 ac_retval=0 1747else 1748 $as_echo "$as_me: program exited with status $ac_status" >&5 1749 $as_echo "$as_me: failed program was:" >&5 1750sed 's/^/| /' conftest.$ac_ext >&5 1751 1752 ac_retval=$ac_status 1753fi 1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1756 return $ac_retval 1757 1758} # ac_fn_c_try_run 1759 1760# ac_fn_c_check_func LINENO FUNC VAR 1761# ---------------------------------- 1762# Tests whether FUNC exists, setting the cache variable VAR accordingly 1763ac_fn_c_check_func () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1767$as_echo_n "checking for $2... " >&6; } 1768if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1769 $as_echo_n "(cached) " >&6 1770else 1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1772/* end confdefs.h. */ 1773/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1775#define $2 innocuous_$2 1776 1777/* System header to define __stub macros and hopefully few prototypes, 1778 which can conflict with char $2 (); below. 1779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1780 <limits.h> exists even on freestanding compilers. */ 1781 1782#ifdef __STDC__ 1783# include <limits.h> 1784#else 1785# include <assert.h> 1786#endif 1787 1788#undef $2 1789 1790/* Override any GCC internal prototype to avoid an error. 1791 Use char because int might match the return type of a GCC 1792 builtin and then its argument prototype would still apply. */ 1793#ifdef __cplusplus 1794extern "C" 1795#endif 1796char $2 (); 1797/* The GNU C library defines this for functions which it implements 1798 to always fail with ENOSYS. Some functions are actually named 1799 something starting with __ and the normal name is an alias. */ 1800#if defined __stub_$2 || defined __stub___$2 1801choke me 1802#endif 1803 1804int 1805main () 1806{ 1807return $2 (); 1808 ; 1809 return 0; 1810} 1811_ACEOF 1812if ac_fn_c_try_link "$LINENO"; then : 1813 eval "$3=yes" 1814else 1815 eval "$3=no" 1816fi 1817rm -f core conftest.err conftest.$ac_objext \ 1818 conftest$ac_exeext conftest.$ac_ext 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1824 1825} # ac_fn_c_check_func 1826 1827# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1828# ------------------------------------------------------- 1829# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1830# the include files in INCLUDES and setting the cache variable VAR 1831# accordingly. 1832ac_fn_c_check_header_mongrel () 1833{ 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1837$as_echo_n "checking for $2... " >&6; } 1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1839 $as_echo_n "(cached) " >&6 1840fi 1841eval ac_res=\$$3 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843$as_echo "$ac_res" >&6; } 1844else 1845 # Is the header compilable? 1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1847$as_echo_n "checking $2 usability... " >&6; } 1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850$4 1851#include <$2> 1852_ACEOF 1853if ac_fn_c_try_compile "$LINENO"; then : 1854 ac_header_compiler=yes 1855else 1856 ac_header_compiler=no 1857fi 1858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1860$as_echo "$ac_header_compiler" >&6; } 1861 1862# Is the header present? 1863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1864$as_echo_n "checking $2 presence... " >&6; } 1865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866/* end confdefs.h. */ 1867#include <$2> 1868_ACEOF 1869if ac_fn_c_try_cpp "$LINENO"; then : 1870 ac_header_preproc=yes 1871else 1872 ac_header_preproc=no 1873fi 1874rm -f conftest.err conftest.$ac_ext 1875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1876$as_echo "$ac_header_preproc" >&6; } 1877 1878# So? What about this header? 1879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1880 yes:no: ) 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1882$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1884$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1885 ;; 1886 no:yes:* ) 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1888$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1890$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1892$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1894$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1896$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1897 ;; 1898esac 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1900$as_echo_n "checking for $2... " >&6; } 1901if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1902 $as_echo_n "(cached) " >&6 1903else 1904 eval "$3=\$ac_header_compiler" 1905fi 1906eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908$as_echo "$ac_res" >&6; } 1909fi 1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1911 1912} # ac_fn_c_check_header_mongrel 1913 1914# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1915# ------------------------------------------- 1916# Tests whether TYPE exists after having included INCLUDES, setting cache 1917# variable VAR accordingly. 1918ac_fn_c_check_type () 1919{ 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1922$as_echo_n "checking for $2... " >&6; } 1923if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1924 $as_echo_n "(cached) " >&6 1925else 1926 eval "$3=no" 1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928/* end confdefs.h. */ 1929$4 1930int 1931main () 1932{ 1933if (sizeof ($2)) 1934 return 0; 1935 ; 1936 return 0; 1937} 1938_ACEOF 1939if ac_fn_c_try_compile "$LINENO"; then : 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943int 1944main () 1945{ 1946if (sizeof (($2))) 1947 return 0; 1948 ; 1949 return 0; 1950} 1951_ACEOF 1952if ac_fn_c_try_compile "$LINENO"; then : 1953 1954else 1955 eval "$3=yes" 1956fi 1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1958fi 1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1960fi 1961eval ac_res=\$$3 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1963$as_echo "$ac_res" >&6; } 1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1965 1966} # ac_fn_c_check_type 1967 1968# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1969# -------------------------------------------- 1970# Tries to find the compile-time value of EXPR in a program that includes 1971# INCLUDES, setting VAR accordingly. Returns whether the value could be 1972# computed 1973ac_fn_c_compute_int () 1974{ 1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1976 if test "$cross_compiling" = yes; then 1977 # Depending upon the size, compute the lo and hi bounds. 1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1979/* end confdefs.h. */ 1980$4 1981int 1982main () 1983{ 1984static int test_array [1 - 2 * !(($2) >= 0)]; 1985test_array [0] = 0 1986 1987 ; 1988 return 0; 1989} 1990_ACEOF 1991if ac_fn_c_try_compile "$LINENO"; then : 1992 ac_lo=0 ac_mid=0 1993 while :; do 1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1995/* end confdefs.h. */ 1996$4 1997int 1998main () 1999{ 2000static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2001test_array [0] = 0 2002 2003 ; 2004 return 0; 2005} 2006_ACEOF 2007if ac_fn_c_try_compile "$LINENO"; then : 2008 ac_hi=$ac_mid; break 2009else 2010 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2011 if test $ac_lo -le $ac_mid; then 2012 ac_lo= ac_hi= 2013 break 2014 fi 2015 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2016fi 2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2018 done 2019else 2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2021/* end confdefs.h. */ 2022$4 2023int 2024main () 2025{ 2026static int test_array [1 - 2 * !(($2) < 0)]; 2027test_array [0] = 0 2028 2029 ; 2030 return 0; 2031} 2032_ACEOF 2033if ac_fn_c_try_compile "$LINENO"; then : 2034 ac_hi=-1 ac_mid=-1 2035 while :; do 2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$4 2039int 2040main () 2041{ 2042static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2043test_array [0] = 0 2044 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_compile "$LINENO"; then : 2050 ac_lo=$ac_mid; break 2051else 2052 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2053 if test $ac_mid -le $ac_hi; then 2054 ac_lo= ac_hi= 2055 break 2056 fi 2057 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2058fi 2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2060 done 2061else 2062 ac_lo= ac_hi= 2063fi 2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2065fi 2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2067# Binary search between lo and hi bounds. 2068while test "x$ac_lo" != "x$ac_hi"; do 2069 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071/* end confdefs.h. */ 2072$4 2073int 2074main () 2075{ 2076static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2077test_array [0] = 0 2078 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO"; then : 2084 ac_hi=$ac_mid 2085else 2086 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089done 2090case $ac_lo in #(( 2091?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2092'') ac_retval=1 ;; 2093esac 2094 else 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098static long int longval () { return $2; } 2099static unsigned long int ulongval () { return $2; } 2100#include <stdio.h> 2101#include <stdlib.h> 2102int 2103main () 2104{ 2105 2106 FILE *f = fopen ("conftest.val", "w"); 2107 if (! f) 2108 return 1; 2109 if (($2) < 0) 2110 { 2111 long int i = longval (); 2112 if (i != ($2)) 2113 return 1; 2114 fprintf (f, "%ld", i); 2115 } 2116 else 2117 { 2118 unsigned long int i = ulongval (); 2119 if (i != ($2)) 2120 return 1; 2121 fprintf (f, "%lu", i); 2122 } 2123 /* Do not output a trailing newline, as this causes \r\n confusion 2124 on some platforms. */ 2125 return ferror (f) || fclose (f) != 0; 2126 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_run "$LINENO"; then : 2132 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2133else 2134 ac_retval=1 2135fi 2136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2137 conftest.$ac_objext conftest.beam conftest.$ac_ext 2138rm -f conftest.val 2139 2140 fi 2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2142 return $ac_retval 2143 2144} # ac_fn_c_compute_int 2145cat >config.log <<_ACEOF 2146This file contains any messages produced by compilers while 2147running configure, to aid debugging if configure makes a mistake. 2148 2149It was created by package-unused $as_me version-unused, which was 2150generated by GNU Autoconf 2.64. Invocation command line was 2151 2152 $ $0 $@ 2153 2154_ACEOF 2155exec 5>>config.log 2156{ 2157cat <<_ASUNAME 2158## --------- ## 2159## Platform. ## 2160## --------- ## 2161 2162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2163uname -m = `(uname -m) 2>/dev/null || echo unknown` 2164uname -r = `(uname -r) 2>/dev/null || echo unknown` 2165uname -s = `(uname -s) 2>/dev/null || echo unknown` 2166uname -v = `(uname -v) 2>/dev/null || echo unknown` 2167 2168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2170 2171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2174/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2178 2179_ASUNAME 2180 2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2182for as_dir in $PATH 2183do 2184 IFS=$as_save_IFS 2185 test -z "$as_dir" && as_dir=. 2186 $as_echo "PATH: $as_dir" 2187 done 2188IFS=$as_save_IFS 2189 2190} >&5 2191 2192cat >&5 <<_ACEOF 2193 2194 2195## ----------- ## 2196## Core tests. ## 2197## ----------- ## 2198 2199_ACEOF 2200 2201 2202# Keep a trace of the command line. 2203# Strip out --no-create and --no-recursion so they do not pile up. 2204# Strip out --silent because we don't want to record it for future runs. 2205# Also quote any args containing shell meta-characters. 2206# Make two passes to allow for proper duplicate-argument suppression. 2207ac_configure_args= 2208ac_configure_args0= 2209ac_configure_args1= 2210ac_must_keep_next=false 2211for ac_pass in 1 2 2212do 2213 for ac_arg 2214 do 2215 case $ac_arg in 2216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2218 | -silent | --silent | --silen | --sile | --sil) 2219 continue ;; 2220 *\'*) 2221 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2222 esac 2223 case $ac_pass in 2224 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2225 2) 2226 as_fn_append ac_configure_args1 " '$ac_arg'" 2227 if test $ac_must_keep_next = true; then 2228 ac_must_keep_next=false # Got value, back to normal. 2229 else 2230 case $ac_arg in 2231 *=* | --config-cache | -C | -disable-* | --disable-* \ 2232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2234 | -with-* | --with-* | -without-* | --without-* | --x) 2235 case "$ac_configure_args0 " in 2236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2237 esac 2238 ;; 2239 -* ) ac_must_keep_next=true ;; 2240 esac 2241 fi 2242 as_fn_append ac_configure_args " '$ac_arg'" 2243 ;; 2244 esac 2245 done 2246done 2247{ ac_configure_args0=; unset ac_configure_args0;} 2248{ ac_configure_args1=; unset ac_configure_args1;} 2249 2250# When interrupted or exit'd, cleanup temporary files, and complete 2251# config.log. We remove comments because anyway the quotes in there 2252# would cause problems or look ugly. 2253# WARNING: Use '\'' to represent an apostrophe within the trap. 2254# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2255trap 'exit_status=$? 2256 # Save into config.log some information that might help in debugging. 2257 { 2258 echo 2259 2260 cat <<\_ASBOX 2261## ---------------- ## 2262## Cache variables. ## 2263## ---------------- ## 2264_ASBOX 2265 echo 2266 # The following way of writing the cache mishandles newlines in values, 2267( 2268 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2269 eval ac_val=\$$ac_var 2270 case $ac_val in #( 2271 *${as_nl}*) 2272 case $ac_var in #( 2273 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2274$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2275 esac 2276 case $ac_var in #( 2277 _ | IFS | as_nl) ;; #( 2278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2279 *) { eval $ac_var=; unset $ac_var;} ;; 2280 esac ;; 2281 esac 2282 done 2283 (set) 2>&1 | 2284 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2285 *${as_nl}ac_space=\ *) 2286 sed -n \ 2287 "s/'\''/'\''\\\\'\'''\''/g; 2288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2289 ;; #( 2290 *) 2291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2292 ;; 2293 esac | 2294 sort 2295) 2296 echo 2297 2298 cat <<\_ASBOX 2299## ----------------- ## 2300## Output variables. ## 2301## ----------------- ## 2302_ASBOX 2303 echo 2304 for ac_var in $ac_subst_vars 2305 do 2306 eval ac_val=\$$ac_var 2307 case $ac_val in 2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2309 esac 2310 $as_echo "$ac_var='\''$ac_val'\''" 2311 done | sort 2312 echo 2313 2314 if test -n "$ac_subst_files"; then 2315 cat <<\_ASBOX 2316## ------------------- ## 2317## File substitutions. ## 2318## ------------------- ## 2319_ASBOX 2320 echo 2321 for ac_var in $ac_subst_files 2322 do 2323 eval ac_val=\$$ac_var 2324 case $ac_val in 2325 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2326 esac 2327 $as_echo "$ac_var='\''$ac_val'\''" 2328 done | sort 2329 echo 2330 fi 2331 2332 if test -s confdefs.h; then 2333 cat <<\_ASBOX 2334## ----------- ## 2335## confdefs.h. ## 2336## ----------- ## 2337_ASBOX 2338 echo 2339 cat confdefs.h 2340 echo 2341 fi 2342 test "$ac_signal" != 0 && 2343 $as_echo "$as_me: caught signal $ac_signal" 2344 $as_echo "$as_me: exit $exit_status" 2345 } >&5 2346 rm -f core *.core core.conftest.* && 2347 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2348 exit $exit_status 2349' 0 2350for ac_signal in 1 2 13 15; do 2351 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2352done 2353ac_signal=0 2354 2355# confdefs.h avoids OS command line length limits that DEFS can exceed. 2356rm -f -r conftest* confdefs.h 2357 2358$as_echo "/* confdefs.h */" > confdefs.h 2359 2360# Predefined preprocessor variables. 2361 2362cat >>confdefs.h <<_ACEOF 2363#define PACKAGE_NAME "$PACKAGE_NAME" 2364_ACEOF 2365 2366cat >>confdefs.h <<_ACEOF 2367#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2368_ACEOF 2369 2370cat >>confdefs.h <<_ACEOF 2371#define PACKAGE_VERSION "$PACKAGE_VERSION" 2372_ACEOF 2373 2374cat >>confdefs.h <<_ACEOF 2375#define PACKAGE_STRING "$PACKAGE_STRING" 2376_ACEOF 2377 2378cat >>confdefs.h <<_ACEOF 2379#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2380_ACEOF 2381 2382cat >>confdefs.h <<_ACEOF 2383#define PACKAGE_URL "$PACKAGE_URL" 2384_ACEOF 2385 2386 2387# Let the site file select an alternate cache file if it wants to. 2388# Prefer an explicitly selected file to automatically selected ones. 2389ac_site_file1=NONE 2390ac_site_file2=NONE 2391if test -n "$CONFIG_SITE"; then 2392 ac_site_file1=$CONFIG_SITE 2393elif test "x$prefix" != xNONE; then 2394 ac_site_file1=$prefix/share/config.site 2395 ac_site_file2=$prefix/etc/config.site 2396else 2397 ac_site_file1=$ac_default_prefix/share/config.site 2398 ac_site_file2=$ac_default_prefix/etc/config.site 2399fi 2400for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2401do 2402 test "x$ac_site_file" = xNONE && continue 2403 if test -r "$ac_site_file"; then 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2405$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2406 sed 's/^/| /' "$ac_site_file" >&5 2407 . "$ac_site_file" 2408 fi 2409done 2410 2411if test -r "$cache_file"; then 2412 # Some versions of bash will fail to source /dev/null (special 2413 # files actually), so we avoid doing that. 2414 if test -f "$cache_file"; then 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2416$as_echo "$as_me: loading cache $cache_file" >&6;} 2417 case $cache_file in 2418 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2419 *) . "./$cache_file";; 2420 esac 2421 fi 2422else 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2424$as_echo "$as_me: creating cache $cache_file" >&6;} 2425 >$cache_file 2426fi 2427 2428# Check that the precious variables saved in the cache have kept the same 2429# value. 2430ac_cache_corrupted=false 2431for ac_var in $ac_precious_vars; do 2432 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2433 eval ac_new_set=\$ac_env_${ac_var}_set 2434 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2435 eval ac_new_val=\$ac_env_${ac_var}_value 2436 case $ac_old_set,$ac_new_set in 2437 set,) 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2439$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2440 ac_cache_corrupted=: ;; 2441 ,set) 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2443$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2444 ac_cache_corrupted=: ;; 2445 ,);; 2446 *) 2447 if test "x$ac_old_val" != "x$ac_new_val"; then 2448 # differences in whitespace do not lead to failure. 2449 ac_old_val_w=`echo x $ac_old_val` 2450 ac_new_val_w=`echo x $ac_new_val` 2451 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2453$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2454 ac_cache_corrupted=: 2455 else 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2457$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2458 eval $ac_var=\$ac_old_val 2459 fi 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2461$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2463$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2464 fi;; 2465 esac 2466 # Pass precious variables to config.status. 2467 if test "$ac_new_set" = set; then 2468 case $ac_new_val in 2469 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2470 *) ac_arg=$ac_var=$ac_new_val ;; 2471 esac 2472 case " $ac_configure_args " in 2473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2474 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2475 esac 2476 fi 2477done 2478if $ac_cache_corrupted; then 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2482$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2483 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2484fi 2485## -------------------- ## 2486## Main body of script. ## 2487## -------------------- ## 2488 2489ac_ext=c 2490ac_cpp='$CPP $CPPFLAGS' 2491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2493ac_compiler_gnu=$ac_cv_c_compiler_gnu 2494 2495 2496 2497 2498 2499 2500ac_config_headers="$ac_config_headers config.h" 2501 2502 2503libtool_VERSION=5:0:0 2504 2505 2506# Default to --enable-multilib 2507# Check whether --enable-multilib was given. 2508if test "${enable_multilib+set}" = set; then : 2509 enableval=$enable_multilib; case "$enableval" in 2510 yes) multilib=yes ;; 2511 no) multilib=no ;; 2512 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2513 esac 2514else 2515 multilib=yes 2516fi 2517 2518 2519# We may get other options which we leave undocumented: 2520# --with-target-subdir, --with-multisrctop, --with-multisubdir 2521# See config-ml.in if you want the gory details. 2522 2523if test "$srcdir" = "."; then 2524 if test "$with_target_subdir" != "."; then 2525 multi_basedir="$srcdir/$with_multisrctop../.." 2526 else 2527 multi_basedir="$srcdir/$with_multisrctop.." 2528 fi 2529else 2530 multi_basedir="$srcdir/.." 2531fi 2532 2533 2534# Even if the default multilib is not a cross compilation, 2535# it may be that some of the other multilibs are. 2536if test $cross_compiling = no && test $multilib = yes \ 2537 && test "x${with_multisubdir}" != x ; then 2538 cross_compiling=maybe 2539fi 2540 2541ac_config_commands="$ac_config_commands default-1" 2542 2543 2544ac_aux_dir= 2545for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2546 for ac_t in install-sh install.sh shtool; do 2547 if test -f "$ac_dir/$ac_t"; then 2548 ac_aux_dir=$ac_dir 2549 ac_install_sh="$ac_aux_dir/$ac_t -c" 2550 break 2 2551 fi 2552 done 2553done 2554if test -z "$ac_aux_dir"; then 2555 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2556fi 2557 2558# These three variables are undocumented and unsupported, 2559# and are intended to be withdrawn in a future Autoconf release. 2560# They can cause serious problems if a builder's source tree is in a directory 2561# whose full name contains unusual characters. 2562ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2563ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2564ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2565 2566 2567# Make sure we can run config.sub. 2568$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2569 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2570 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2572$as_echo_n "checking build system type... " >&6; } 2573if test "${ac_cv_build+set}" = set; then : 2574 $as_echo_n "(cached) " >&6 2575else 2576 ac_build_alias=$build_alias 2577test "x$ac_build_alias" = x && 2578 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2579test "x$ac_build_alias" = x && 2580 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2581ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2582 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2583 2584fi 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2586$as_echo "$ac_cv_build" >&6; } 2587case $ac_cv_build in 2588*-*-*) ;; 2589*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2590esac 2591build=$ac_cv_build 2592ac_save_IFS=$IFS; IFS='-' 2593set x $ac_cv_build 2594shift 2595build_cpu=$1 2596build_vendor=$2 2597shift; shift 2598# Remember, the first character of IFS is used to create $*, 2599# except with old shells: 2600build_os=$* 2601IFS=$ac_save_IFS 2602case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2603 2604 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2606$as_echo_n "checking host system type... " >&6; } 2607if test "${ac_cv_host+set}" = set; then : 2608 $as_echo_n "(cached) " >&6 2609else 2610 if test "x$host_alias" = x; then 2611 ac_cv_host=$ac_cv_build 2612else 2613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2614 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2615fi 2616 2617fi 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2619$as_echo "$ac_cv_host" >&6; } 2620case $ac_cv_host in 2621*-*-*) ;; 2622*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2623esac 2624host=$ac_cv_host 2625ac_save_IFS=$IFS; IFS='-' 2626set x $ac_cv_host 2627shift 2628host_cpu=$1 2629host_vendor=$2 2630shift; shift 2631# Remember, the first character of IFS is used to create $*, 2632# except with old shells: 2633host_os=$* 2634IFS=$ac_save_IFS 2635case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2636 2637 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2639$as_echo_n "checking target system type... " >&6; } 2640if test "${ac_cv_target+set}" = set; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test "x$target_alias" = x; then 2644 ac_cv_target=$ac_cv_host 2645else 2646 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2647 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2648fi 2649 2650fi 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2652$as_echo "$ac_cv_target" >&6; } 2653case $ac_cv_target in 2654*-*-*) ;; 2655*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2656esac 2657target=$ac_cv_target 2658ac_save_IFS=$IFS; IFS='-' 2659set x $ac_cv_target 2660shift 2661target_cpu=$1 2662target_vendor=$2 2663shift; shift 2664# Remember, the first character of IFS is used to create $*, 2665# except with old shells: 2666target_os=$* 2667IFS=$ac_save_IFS 2668case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2669 2670 2671# The aliases save the names the user supplied, while $host etc. 2672# will get canonicalized. 2673test -n "$target_alias" && 2674 test "$program_prefix$program_suffix$program_transform_name" = \ 2675 NONENONEs,x,x, && 2676 program_prefix=${target_alias}- 2677 2678target_alias=${target_alias-$host_alias} 2679 2680am__api_version='1.11' 2681 2682# Find a good install program. We prefer a C program (faster), 2683# so one script is as good as another. But avoid the broken or 2684# incompatible versions: 2685# SysV /etc/install, /usr/sbin/install 2686# SunOS /usr/etc/install 2687# IRIX /sbin/install 2688# AIX /bin/install 2689# AmigaOS /C/install, which installs bootblocks on floppy discs 2690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2691# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2693# OS/2's system install, which has a completely different semantic 2694# ./install, which can be erroneously created by make from ./install.sh. 2695# Reject install programs that cannot install multiple files. 2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2697$as_echo_n "checking for a BSD-compatible install... " >&6; } 2698if test -z "$INSTALL"; then 2699if test "${ac_cv_path_install+set}" = set; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703for as_dir in $PATH 2704do 2705 IFS=$as_save_IFS 2706 test -z "$as_dir" && as_dir=. 2707 # Account for people who put trailing slashes in PATH elements. 2708case $as_dir/ in #(( 2709 ./ | .// | /[cC]/* | \ 2710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2711 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2712 /usr/ucb/* ) ;; 2713 *) 2714 # OSF1 and SCO ODT 3.0 have their own names for install. 2715 # Don't use installbsd from OSF since it installs stuff as root 2716 # by default. 2717 for ac_prog in ginstall scoinst install; do 2718 for ac_exec_ext in '' $ac_executable_extensions; do 2719 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2720 if test $ac_prog = install && 2721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2722 # AIX install. It has an incompatible calling convention. 2723 : 2724 elif test $ac_prog = install && 2725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2726 # program-specific install script used by HP pwplus--don't use. 2727 : 2728 else 2729 rm -rf conftest.one conftest.two conftest.dir 2730 echo one > conftest.one 2731 echo two > conftest.two 2732 mkdir conftest.dir 2733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2734 test -s conftest.one && test -s conftest.two && 2735 test -s conftest.dir/conftest.one && 2736 test -s conftest.dir/conftest.two 2737 then 2738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2739 break 3 2740 fi 2741 fi 2742 fi 2743 done 2744 done 2745 ;; 2746esac 2747 2748 done 2749IFS=$as_save_IFS 2750 2751rm -rf conftest.one conftest.two conftest.dir 2752 2753fi 2754 if test "${ac_cv_path_install+set}" = set; then 2755 INSTALL=$ac_cv_path_install 2756 else 2757 # As a last resort, use the slow shell script. Don't cache a 2758 # value for INSTALL within a source directory, because that will 2759 # break other packages using the cache if that directory is 2760 # removed, or if the value is a relative name. 2761 INSTALL=$ac_install_sh 2762 fi 2763fi 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2765$as_echo "$INSTALL" >&6; } 2766 2767# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2768# It thinks the first close brace ends the variable substitution. 2769test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2770 2771test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2772 2773test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2774 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2776$as_echo_n "checking whether build environment is sane... " >&6; } 2777# Just in case 2778sleep 1 2779echo timestamp > conftest.file 2780# Reject unsafe characters in $srcdir or the absolute working directory 2781# name. Accept space and tab only in the latter. 2782am_lf=' 2783' 2784case `pwd` in 2785 *[\\\"\#\$\&\'\`$am_lf]*) 2786 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2787esac 2788case $srcdir in 2789 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2790 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2791esac 2792 2793# Do `set' in a subshell so we don't clobber the current shell's 2794# arguments. Must try -L first in case configure is actually a 2795# symlink; some systems play weird games with the mod time of symlinks 2796# (eg FreeBSD returns the mod time of the symlink's containing 2797# directory). 2798if ( 2799 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2800 if test "$*" = "X"; then 2801 # -L didn't work. 2802 set X `ls -t "$srcdir/configure" conftest.file` 2803 fi 2804 rm -f conftest.file 2805 if test "$*" != "X $srcdir/configure conftest.file" \ 2806 && test "$*" != "X conftest.file $srcdir/configure"; then 2807 2808 # If neither matched, then we have a broken ls. This can happen 2809 # if, for instance, CONFIG_SHELL is bash and it inherits a 2810 # broken ls alias from the environment. This has actually 2811 # happened. Such a system could not be considered "sane". 2812 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2813alias in your environment" "$LINENO" 5 2814 fi 2815 2816 test "$2" = conftest.file 2817 ) 2818then 2819 # Ok. 2820 : 2821else 2822 as_fn_error "newly created file is older than distributed files! 2823Check your system clock" "$LINENO" 5 2824fi 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2826$as_echo "yes" >&6; } 2827test "$program_prefix" != NONE && 2828 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2829# Use a double $ so make ignores it. 2830test "$program_suffix" != NONE && 2831 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2832# Double any \ or $. 2833# By default was `s,x,x', remove it if useless. 2834ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2835program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2836 2837# expand $ac_aux_dir to an absolute path 2838am_aux_dir=`cd $ac_aux_dir && pwd` 2839 2840if test x"${MISSING+set}" != xset; then 2841 case $am_aux_dir in 2842 *\ * | *\ *) 2843 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2844 *) 2845 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2846 esac 2847fi 2848# Use eval to expand $SHELL 2849if eval "$MISSING --run true"; then 2850 am_missing_run="$MISSING --run " 2851else 2852 am_missing_run= 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2854$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2855fi 2856 2857if test x"${install_sh}" != xset; then 2858 case $am_aux_dir in 2859 *\ * | *\ *) 2860 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2861 *) 2862 install_sh="\${SHELL} $am_aux_dir/install-sh" 2863 esac 2864fi 2865 2866# Installed binaries are usually stripped using `strip' when the user 2867# run `make install-strip'. However `strip' might not be the right 2868# tool to use in cross-compilation environments, therefore Automake 2869# will honor the `STRIP' environment variable to overrule this program. 2870if test "$cross_compiling" != no; then 2871 if test -n "$ac_tool_prefix"; then 2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2873set dummy ${ac_tool_prefix}strip; ac_word=$2 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2875$as_echo_n "checking for $ac_word... " >&6; } 2876if test "${ac_cv_prog_STRIP+set}" = set; then : 2877 $as_echo_n "(cached) " >&6 2878else 2879 if test -n "$STRIP"; then 2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2881else 2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2883for as_dir in $PATH 2884do 2885 IFS=$as_save_IFS 2886 test -z "$as_dir" && as_dir=. 2887 for ac_exec_ext in '' $ac_executable_extensions; do 2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2891 break 2 2892 fi 2893done 2894 done 2895IFS=$as_save_IFS 2896 2897fi 2898fi 2899STRIP=$ac_cv_prog_STRIP 2900if test -n "$STRIP"; then 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2902$as_echo "$STRIP" >&6; } 2903else 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2905$as_echo "no" >&6; } 2906fi 2907 2908 2909fi 2910if test -z "$ac_cv_prog_STRIP"; then 2911 ac_ct_STRIP=$STRIP 2912 # Extract the first word of "strip", so it can be a program name with args. 2913set dummy strip; ac_word=$2 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2915$as_echo_n "checking for $ac_word... " >&6; } 2916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2917 $as_echo_n "(cached) " >&6 2918else 2919 if test -n "$ac_ct_STRIP"; then 2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2921else 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 test -z "$as_dir" && as_dir=. 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2929 ac_cv_prog_ac_ct_STRIP="strip" 2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2931 break 2 2932 fi 2933done 2934 done 2935IFS=$as_save_IFS 2936 2937fi 2938fi 2939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2940if test -n "$ac_ct_STRIP"; then 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2942$as_echo "$ac_ct_STRIP" >&6; } 2943else 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2945$as_echo "no" >&6; } 2946fi 2947 2948 if test "x$ac_ct_STRIP" = x; then 2949 STRIP=":" 2950 else 2951 case $cross_compiling:$ac_tool_warned in 2952yes:) 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2955ac_tool_warned=yes ;; 2956esac 2957 STRIP=$ac_ct_STRIP 2958 fi 2959else 2960 STRIP="$ac_cv_prog_STRIP" 2961fi 2962 2963fi 2964INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2965 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2967$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2968if test -z "$MKDIR_P"; then 2969 if test "${ac_cv_path_mkdir+set}" = set; then : 2970 $as_echo_n "(cached) " >&6 2971else 2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2974do 2975 IFS=$as_save_IFS 2976 test -z "$as_dir" && as_dir=. 2977 for ac_prog in mkdir gmkdir; do 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2980 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2981 'mkdir (GNU coreutils) '* | \ 2982 'mkdir (coreutils) '* | \ 2983 'mkdir (fileutils) '4.1*) 2984 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2985 break 3;; 2986 esac 2987 done 2988 done 2989 done 2990IFS=$as_save_IFS 2991 2992fi 2993 2994 if test "${ac_cv_path_mkdir+set}" = set; then 2995 MKDIR_P="$ac_cv_path_mkdir -p" 2996 else 2997 # As a last resort, use the slow shell script. Don't cache a 2998 # value for MKDIR_P within a source directory, because that will 2999 # break other packages using the cache if that directory is 3000 # removed, or if the value is a relative name. 3001 test -d ./--version && rmdir ./--version 3002 MKDIR_P="$ac_install_sh -d" 3003 fi 3004fi 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3006$as_echo "$MKDIR_P" >&6; } 3007 3008mkdir_p="$MKDIR_P" 3009case $mkdir_p in 3010 [\\/$]* | ?:[\\/]*) ;; 3011 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3012esac 3013 3014for ac_prog in gawk mawk nawk awk 3015do 3016 # Extract the first word of "$ac_prog", so it can be a program name with args. 3017set dummy $ac_prog; ac_word=$2 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3019$as_echo_n "checking for $ac_word... " >&6; } 3020if test "${ac_cv_prog_AWK+set}" = set; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 if test -n "$AWK"; then 3024 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3025else 3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027for as_dir in $PATH 3028do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3033 ac_cv_prog_AWK="$ac_prog" 3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037done 3038 done 3039IFS=$as_save_IFS 3040 3041fi 3042fi 3043AWK=$ac_cv_prog_AWK 3044if test -n "$AWK"; then 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3046$as_echo "$AWK" >&6; } 3047else 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049$as_echo "no" >&6; } 3050fi 3051 3052 3053 test -n "$AWK" && break 3054done 3055 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3057$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3058set x ${MAKE-make} 3059ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3060if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 cat >conftest.make <<\_ACEOF 3064SHELL = /bin/sh 3065all: 3066 @echo '@@@%%%=$(MAKE)=@@@%%%' 3067_ACEOF 3068# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3069case `${MAKE-make} -f conftest.make 2>/dev/null` in 3070 *@@@%%%=?*=@@@%%%*) 3071 eval ac_cv_prog_make_${ac_make}_set=yes;; 3072 *) 3073 eval ac_cv_prog_make_${ac_make}_set=no;; 3074esac 3075rm -f conftest.make 3076fi 3077if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3079$as_echo "yes" >&6; } 3080 SET_MAKE= 3081else 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3083$as_echo "no" >&6; } 3084 SET_MAKE="MAKE=${MAKE-make}" 3085fi 3086 3087rm -rf .tst 2>/dev/null 3088mkdir .tst 2>/dev/null 3089if test -d .tst; then 3090 am__leading_dot=. 3091else 3092 am__leading_dot=_ 3093fi 3094rmdir .tst 2>/dev/null 3095 3096if test "`cd $srcdir && pwd`" != "`pwd`"; then 3097 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3098 # is not polluted with repeated "-I." 3099 am__isrc=' -I$(srcdir)' 3100 # test to see if srcdir already configured 3101 if test -f $srcdir/config.status; then 3102 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3103 fi 3104fi 3105 3106# test whether we have cygpath 3107if test -z "$CYGPATH_W"; then 3108 if (cygpath --version) >/dev/null 2>/dev/null; then 3109 CYGPATH_W='cygpath -w' 3110 else 3111 CYGPATH_W=echo 3112 fi 3113fi 3114 3115 3116# Define the identity of the package. 3117 PACKAGE='libgo' 3118 VERSION='version-unused' 3119 3120 3121# Some tools Automake needs. 3122 3123ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3124 3125 3126AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3127 3128 3129AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3130 3131 3132AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3133 3134 3135MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3136 3137# We need awk for the "check" target. The system "awk" is bad on 3138# some platforms. 3139# Always define AMTAR for backward compatibility. 3140 3141AMTAR=${AMTAR-"${am_missing_run}tar"} 3142 3143am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154ac_ext=c 3155ac_cpp='$CPP $CPPFLAGS' 3156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3158ac_compiler_gnu=$ac_cv_c_compiler_gnu 3159if test -n "$ac_tool_prefix"; then 3160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3161set dummy ${ac_tool_prefix}gcc; ac_word=$2 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3163$as_echo_n "checking for $ac_word... " >&6; } 3164if test "${ac_cv_prog_CC+set}" = set; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 if test -n "$CC"; then 3168 ac_cv_prog_CC="$CC" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3177 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3179 break 2 3180 fi 3181done 3182 done 3183IFS=$as_save_IFS 3184 3185fi 3186fi 3187CC=$ac_cv_prog_CC 3188if test -n "$CC"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3190$as_echo "$CC" >&6; } 3191else 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193$as_echo "no" >&6; } 3194fi 3195 3196 3197fi 3198if test -z "$ac_cv_prog_CC"; then 3199 ac_ct_CC=$CC 3200 # Extract the first word of "gcc", so it can be a program name with args. 3201set dummy gcc; ac_word=$2 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3203$as_echo_n "checking for $ac_word... " >&6; } 3204if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 if test -n "$ac_ct_CC"; then 3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3209else 3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211for as_dir in $PATH 3212do 3213 IFS=$as_save_IFS 3214 test -z "$as_dir" && as_dir=. 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3217 ac_cv_prog_ac_ct_CC="gcc" 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225fi 3226fi 3227ac_ct_CC=$ac_cv_prog_ac_ct_CC 3228if test -n "$ac_ct_CC"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3230$as_echo "$ac_ct_CC" >&6; } 3231else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233$as_echo "no" >&6; } 3234fi 3235 3236 if test "x$ac_ct_CC" = x; then 3237 CC="" 3238 else 3239 case $cross_compiling:$ac_tool_warned in 3240yes:) 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3243ac_tool_warned=yes ;; 3244esac 3245 CC=$ac_ct_CC 3246 fi 3247else 3248 CC="$ac_cv_prog_CC" 3249fi 3250 3251if test -z "$CC"; then 3252 if test -n "$ac_tool_prefix"; then 3253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3254set dummy ${ac_tool_prefix}cc; ac_word=$2 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3256$as_echo_n "checking for $ac_word... " >&6; } 3257if test "${ac_cv_prog_CC+set}" = set; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 if test -n "$CC"; then 3261 ac_cv_prog_CC="$CC" # Let the user override the test. 3262else 3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3264for as_dir in $PATH 3265do 3266 IFS=$as_save_IFS 3267 test -z "$as_dir" && as_dir=. 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3270 ac_cv_prog_CC="${ac_tool_prefix}cc" 3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3272 break 2 3273 fi 3274done 3275 done 3276IFS=$as_save_IFS 3277 3278fi 3279fi 3280CC=$ac_cv_prog_CC 3281if test -n "$CC"; then 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3283$as_echo "$CC" >&6; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287fi 3288 3289 3290 fi 3291fi 3292if test -z "$CC"; then 3293 # Extract the first word of "cc", so it can be a program name with args. 3294set dummy cc; ac_word=$2 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3296$as_echo_n "checking for $ac_word... " >&6; } 3297if test "${ac_cv_prog_CC+set}" = set; then : 3298 $as_echo_n "(cached) " >&6 3299else 3300 if test -n "$CC"; then 3301 ac_cv_prog_CC="$CC" # Let the user override the test. 3302else 3303 ac_prog_rejected=no 3304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3305for as_dir in $PATH 3306do 3307 IFS=$as_save_IFS 3308 test -z "$as_dir" && as_dir=. 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3312 ac_prog_rejected=yes 3313 continue 3314 fi 3315 ac_cv_prog_CC="cc" 3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3317 break 2 3318 fi 3319done 3320 done 3321IFS=$as_save_IFS 3322 3323if test $ac_prog_rejected = yes; then 3324 # We found a bogon in the path, so make sure we never use it. 3325 set dummy $ac_cv_prog_CC 3326 shift 3327 if test $# != 0; then 3328 # We chose a different compiler from the bogus one. 3329 # However, it has the same basename, so the bogon will be chosen 3330 # first if we set CC to just the basename; use the full file name. 3331 shift 3332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3333 fi 3334fi 3335fi 3336fi 3337CC=$ac_cv_prog_CC 3338if test -n "$CC"; then 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3340$as_echo "$CC" >&6; } 3341else 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3343$as_echo "no" >&6; } 3344fi 3345 3346 3347fi 3348if test -z "$CC"; then 3349 if test -n "$ac_tool_prefix"; then 3350 for ac_prog in cl.exe 3351 do 3352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3353set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355$as_echo_n "checking for $ac_word... " >&6; } 3356if test "${ac_cv_prog_CC+set}" = set; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 if test -n "$CC"; then 3360 ac_cv_prog_CC="$CC" # Let the user override the test. 3361else 3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363for as_dir in $PATH 3364do 3365 IFS=$as_save_IFS 3366 test -z "$as_dir" && as_dir=. 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3371 break 2 3372 fi 3373done 3374 done 3375IFS=$as_save_IFS 3376 3377fi 3378fi 3379CC=$ac_cv_prog_CC 3380if test -n "$CC"; then 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3382$as_echo "$CC" >&6; } 3383else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3385$as_echo "no" >&6; } 3386fi 3387 3388 3389 test -n "$CC" && break 3390 done 3391fi 3392if test -z "$CC"; then 3393 ac_ct_CC=$CC 3394 for ac_prog in cl.exe 3395do 3396 # Extract the first word of "$ac_prog", so it can be a program name with args. 3397set dummy $ac_prog; ac_word=$2 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3399$as_echo_n "checking for $ac_word... " >&6; } 3400if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 if test -n "$ac_ct_CC"; then 3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3405else 3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3407for as_dir in $PATH 3408do 3409 IFS=$as_save_IFS 3410 test -z "$as_dir" && as_dir=. 3411 for ac_exec_ext in '' $ac_executable_extensions; do 3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3413 ac_cv_prog_ac_ct_CC="$ac_prog" 3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3415 break 2 3416 fi 3417done 3418 done 3419IFS=$as_save_IFS 3420 3421fi 3422fi 3423ac_ct_CC=$ac_cv_prog_ac_ct_CC 3424if test -n "$ac_ct_CC"; then 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3426$as_echo "$ac_ct_CC" >&6; } 3427else 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3429$as_echo "no" >&6; } 3430fi 3431 3432 3433 test -n "$ac_ct_CC" && break 3434done 3435 3436 if test "x$ac_ct_CC" = x; then 3437 CC="" 3438 else 3439 case $cross_compiling:$ac_tool_warned in 3440yes:) 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3443ac_tool_warned=yes ;; 3444esac 3445 CC=$ac_ct_CC 3446 fi 3447fi 3448 3449fi 3450 3451 3452test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3454as_fn_error "no acceptable C compiler found in \$PATH 3455See \`config.log' for more details." "$LINENO" 5; } 3456 3457# Provide some information about the compiler. 3458$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3459set X $ac_compile 3460ac_compiler=$2 3461for ac_option in --version -v -V -qversion; do 3462 { { ac_try="$ac_compiler $ac_option >&5" 3463case "(($ac_try" in 3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3465 *) ac_try_echo=$ac_try;; 3466esac 3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3468$as_echo "$ac_try_echo"; } >&5 3469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3470 ac_status=$? 3471 if test -s conftest.err; then 3472 sed '10a\ 3473... rest of stderr output deleted ... 3474 10q' conftest.err >conftest.er1 3475 cat conftest.er1 >&5 3476 rm -f conftest.er1 conftest.err 3477 fi 3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3479 test $ac_status = 0; } 3480done 3481 3482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483/* end confdefs.h. */ 3484 3485int 3486main () 3487{ 3488 3489 ; 3490 return 0; 3491} 3492_ACEOF 3493ac_clean_files_save=$ac_clean_files 3494ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3495# Try to create an executable without -o first, disregard a.out. 3496# It will help us diagnose broken compilers, and finding out an intuition 3497# of exeext. 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3499$as_echo_n "checking for C compiler default output file name... " >&6; } 3500ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3501 3502# The possible output files: 3503ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3504 3505ac_rmfiles= 3506for ac_file in $ac_files 3507do 3508 case $ac_file in 3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3510 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3511 esac 3512done 3513rm -f $ac_rmfiles 3514 3515if { { ac_try="$ac_link_default" 3516case "(($ac_try" in 3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3518 *) ac_try_echo=$ac_try;; 3519esac 3520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3521$as_echo "$ac_try_echo"; } >&5 3522 (eval "$ac_link_default") 2>&5 3523 ac_status=$? 3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3525 test $ac_status = 0; }; then : 3526 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3527# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3528# in a Makefile. We should not override ac_cv_exeext if it was cached, 3529# so that the user can short-circuit this test for compilers unknown to 3530# Autoconf. 3531for ac_file in $ac_files '' 3532do 3533 test -f "$ac_file" || continue 3534 case $ac_file in 3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3536 ;; 3537 [ab].out ) 3538 # We found the default executable, but exeext='' is most 3539 # certainly right. 3540 break;; 3541 *.* ) 3542 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3543 then :; else 3544 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3545 fi 3546 # We set ac_cv_exeext here because the later test for it is not 3547 # safe: cross compilers may not add the suffix if given an `-o' 3548 # argument, so we may need to know it at that point already. 3549 # Even if this section looks crufty: it has the advantage of 3550 # actually working. 3551 break;; 3552 * ) 3553 break;; 3554 esac 3555done 3556test "$ac_cv_exeext" = no && ac_cv_exeext= 3557 3558else 3559 ac_file='' 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3562$as_echo "$ac_file" >&6; } 3563if test -z "$ac_file"; then : 3564 $as_echo "$as_me: failed program was:" >&5 3565sed 's/^/| /' conftest.$ac_ext >&5 3566 3567{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3569{ as_fn_set_status 77 3570as_fn_error "C compiler cannot create executables 3571See \`config.log' for more details." "$LINENO" 5; }; } 3572fi 3573ac_exeext=$ac_cv_exeext 3574 3575# Check that the compiler produces executables we can run. If not, either 3576# the compiler is broken, or we cross compile. 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3578$as_echo_n "checking whether the C compiler works... " >&6; } 3579# If not cross compiling, check that we can run a simple program. 3580if test "$cross_compiling" != yes; then 3581 if { ac_try='./$ac_file' 3582 { { case "(($ac_try" in 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3584 *) ac_try_echo=$ac_try;; 3585esac 3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3587$as_echo "$ac_try_echo"; } >&5 3588 (eval "$ac_try") 2>&5 3589 ac_status=$? 3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3591 test $ac_status = 0; }; }; then 3592 cross_compiling=no 3593 else 3594 if test "$cross_compiling" = maybe; then 3595 cross_compiling=yes 3596 else 3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3599as_fn_error "cannot run C compiled programs. 3600If you meant to cross compile, use \`--host'. 3601See \`config.log' for more details." "$LINENO" 5; } 3602 fi 3603 fi 3604fi 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3606$as_echo "yes" >&6; } 3607 3608rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3609ac_clean_files=$ac_clean_files_save 3610# Check that the compiler produces executables we can run. If not, either 3611# the compiler is broken, or we cross compile. 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3613$as_echo_n "checking whether we are cross compiling... " >&6; } 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3615$as_echo "$cross_compiling" >&6; } 3616 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3618$as_echo_n "checking for suffix of executables... " >&6; } 3619if { { ac_try="$ac_link" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3625$as_echo "$ac_try_echo"; } >&5 3626 (eval "$ac_link") 2>&5 3627 ac_status=$? 3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3629 test $ac_status = 0; }; then : 3630 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3631# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3632# work properly (i.e., refer to `conftest.exe'), while it won't with 3633# `rm'. 3634for ac_file in conftest.exe conftest conftest.*; do 3635 test -f "$ac_file" || continue 3636 case $ac_file in 3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3638 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3639 break;; 3640 * ) break;; 3641 esac 3642done 3643else 3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3646as_fn_error "cannot compute suffix of executables: cannot compile and link 3647See \`config.log' for more details." "$LINENO" 5; } 3648fi 3649rm -f conftest$ac_cv_exeext 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3651$as_echo "$ac_cv_exeext" >&6; } 3652 3653rm -f conftest.$ac_ext 3654EXEEXT=$ac_cv_exeext 3655ac_exeext=$EXEEXT 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3657$as_echo_n "checking for suffix of object files... " >&6; } 3658if test "${ac_cv_objext+set}" = set; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663 3664int 3665main () 3666{ 3667 3668 ; 3669 return 0; 3670} 3671_ACEOF 3672rm -f conftest.o conftest.obj 3673if { { ac_try="$ac_compile" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_compile") 2>&5 3681 ac_status=$? 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3683 test $ac_status = 0; }; then : 3684 for ac_file in conftest.o conftest.obj conftest.*; do 3685 test -f "$ac_file" || continue; 3686 case $ac_file in 3687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3689 break;; 3690 esac 3691done 3692else 3693 $as_echo "$as_me: failed program was:" >&5 3694sed 's/^/| /' conftest.$ac_ext >&5 3695 3696{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3698as_fn_error "cannot compute suffix of object files: cannot compile 3699See \`config.log' for more details." "$LINENO" 5; } 3700fi 3701rm -f conftest.$ac_cv_objext conftest.$ac_ext 3702fi 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3704$as_echo "$ac_cv_objext" >&6; } 3705OBJEXT=$ac_cv_objext 3706ac_objext=$OBJEXT 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3708$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3709if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718#ifndef __GNUC__ 3719 choke me 3720#endif 3721 3722 ; 3723 return 0; 3724} 3725_ACEOF 3726if ac_fn_c_try_compile "$LINENO"; then : 3727 ac_compiler_gnu=yes 3728else 3729 ac_compiler_gnu=no 3730fi 3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3732ac_cv_c_compiler_gnu=$ac_compiler_gnu 3733 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3736$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3737if test $ac_compiler_gnu = yes; then 3738 GCC=yes 3739else 3740 GCC= 3741fi 3742ac_test_CFLAGS=${CFLAGS+set} 3743ac_save_CFLAGS=$CFLAGS 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3745$as_echo_n "checking whether $CC accepts -g... " >&6; } 3746if test "${ac_cv_prog_cc_g+set}" = set; then : 3747 $as_echo_n "(cached) " >&6 3748else 3749 ac_save_c_werror_flag=$ac_c_werror_flag 3750 ac_c_werror_flag=yes 3751 ac_cv_prog_cc_g=no 3752 CFLAGS="-g" 3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754/* end confdefs.h. */ 3755 3756int 3757main () 3758{ 3759 3760 ; 3761 return 0; 3762} 3763_ACEOF 3764if ac_fn_c_try_compile "$LINENO"; then : 3765 ac_cv_prog_cc_g=yes 3766else 3767 CFLAGS="" 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770 3771int 3772main () 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779if ac_fn_c_try_compile "$LINENO"; then : 3780 3781else 3782 ac_c_werror_flag=$ac_save_c_werror_flag 3783 CFLAGS="-g" 3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3785/* end confdefs.h. */ 3786 3787int 3788main () 3789{ 3790 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795if ac_fn_c_try_compile "$LINENO"; then : 3796 ac_cv_prog_cc_g=yes 3797fi 3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3799fi 3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3801fi 3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3803 ac_c_werror_flag=$ac_save_c_werror_flag 3804fi 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3806$as_echo "$ac_cv_prog_cc_g" >&6; } 3807if test "$ac_test_CFLAGS" = set; then 3808 CFLAGS=$ac_save_CFLAGS 3809elif test $ac_cv_prog_cc_g = yes; then 3810 if test "$GCC" = yes; then 3811 CFLAGS="-g -O2" 3812 else 3813 CFLAGS="-g" 3814 fi 3815else 3816 if test "$GCC" = yes; then 3817 CFLAGS="-O2" 3818 else 3819 CFLAGS= 3820 fi 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3823$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3824if test "${ac_cv_prog_cc_c89+set}" = set; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 ac_cv_prog_cc_c89=no 3828ac_save_CC=$CC 3829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831#include <stdarg.h> 3832#include <stdio.h> 3833#include <sys/types.h> 3834#include <sys/stat.h> 3835/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3836struct buf { int x; }; 3837FILE * (*rcsopen) (struct buf *, struct stat *, int); 3838static char *e (p, i) 3839 char **p; 3840 int i; 3841{ 3842 return p[i]; 3843} 3844static char *f (char * (*g) (char **, int), char **p, ...) 3845{ 3846 char *s; 3847 va_list v; 3848 va_start (v,p); 3849 s = g (p, va_arg (v,int)); 3850 va_end (v); 3851 return s; 3852} 3853 3854/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3855 function prototypes and stuff, but not '\xHH' hex character constants. 3856 These don't provoke an error unfortunately, instead are silently treated 3857 as 'x'. The following induces an error, until -std is added to get 3858 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3859 array size at least. It's necessary to write '\x00'==0 to get something 3860 that's true only with -std. */ 3861int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3862 3863/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3864 inside strings and character constants. */ 3865#define FOO(x) 'x' 3866int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3867 3868int test (int i, double x); 3869struct s1 {int (*f) (int a);}; 3870struct s2 {int (*f) (double a);}; 3871int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3872int argc; 3873char **argv; 3874int 3875main () 3876{ 3877return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3878 ; 3879 return 0; 3880} 3881_ACEOF 3882for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3883 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3884do 3885 CC="$ac_save_CC $ac_arg" 3886 if ac_fn_c_try_compile "$LINENO"; then : 3887 ac_cv_prog_cc_c89=$ac_arg 3888fi 3889rm -f core conftest.err conftest.$ac_objext 3890 test "x$ac_cv_prog_cc_c89" != "xno" && break 3891done 3892rm -f conftest.$ac_ext 3893CC=$ac_save_CC 3894 3895fi 3896# AC_CACHE_VAL 3897case "x$ac_cv_prog_cc_c89" in 3898 x) 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3900$as_echo "none needed" >&6; } ;; 3901 xno) 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3903$as_echo "unsupported" >&6; } ;; 3904 *) 3905 CC="$CC $ac_cv_prog_cc_c89" 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3907$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3908esac 3909if test "x$ac_cv_prog_cc_c89" != xno; then : 3910 3911fi 3912 3913ac_ext=c 3914ac_cpp='$CPP $CPPFLAGS' 3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3917ac_compiler_gnu=$ac_cv_c_compiler_gnu 3918DEPDIR="${am__leading_dot}deps" 3919 3920ac_config_commands="$ac_config_commands depfiles" 3921 3922 3923am_make=${MAKE-make} 3924cat > confinc << 'END' 3925am__doit: 3926 @echo this is the am__doit target 3927.PHONY: am__doit 3928END 3929# If we don't find an include directive, just comment out the code. 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3931$as_echo_n "checking for style of include used by $am_make... " >&6; } 3932am__include="#" 3933am__quote= 3934_am_result=none 3935# First try GNU make style include. 3936echo "include confinc" > confmf 3937# Ignore all kinds of additional output from `make'. 3938case `$am_make -s -f confmf 2> /dev/null` in #( 3939*the\ am__doit\ target*) 3940 am__include=include 3941 am__quote= 3942 _am_result=GNU 3943 ;; 3944esac 3945# Now try BSD make style include. 3946if test "$am__include" = "#"; then 3947 echo '.include "confinc"' > confmf 3948 case `$am_make -s -f confmf 2> /dev/null` in #( 3949 *the\ am__doit\ target*) 3950 am__include=.include 3951 am__quote="\"" 3952 _am_result=BSD 3953 ;; 3954 esac 3955fi 3956 3957 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3959$as_echo "$_am_result" >&6; } 3960rm -f confinc confmf 3961 3962# Check whether --enable-dependency-tracking was given. 3963if test "${enable_dependency_tracking+set}" = set; then : 3964 enableval=$enable_dependency_tracking; 3965fi 3966 3967if test "x$enable_dependency_tracking" != xno; then 3968 am_depcomp="$ac_aux_dir/depcomp" 3969 AMDEPBACKSLASH='\' 3970fi 3971 if test "x$enable_dependency_tracking" != xno; then 3972 AMDEP_TRUE= 3973 AMDEP_FALSE='#' 3974else 3975 AMDEP_TRUE='#' 3976 AMDEP_FALSE= 3977fi 3978 3979 3980 3981depcc="$CC" am_compiler_list= 3982 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3984$as_echo_n "checking dependency style of $depcc... " >&6; } 3985if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3986 $as_echo_n "(cached) " >&6 3987else 3988 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3989 # We make a subdir and do the tests there. Otherwise we can end up 3990 # making bogus files that we don't know about and never remove. For 3991 # instance it was reported that on HP-UX the gcc test will end up 3992 # making a dummy file named `D' -- because `-MD' means `put the output 3993 # in D'. 3994 mkdir conftest.dir 3995 # Copy depcomp to subdir because otherwise we won't find it if we're 3996 # using a relative directory. 3997 cp "$am_depcomp" conftest.dir 3998 cd conftest.dir 3999 # We will build objects and dependencies in a subdirectory because 4000 # it helps to detect inapplicable dependency modes. For instance 4001 # both Tru64's cc and ICC support -MD to output dependencies as a 4002 # side effect of compilation, but ICC will put the dependencies in 4003 # the current directory while Tru64 will put them in the object 4004 # directory. 4005 mkdir sub 4006 4007 am_cv_CC_dependencies_compiler_type=none 4008 if test "$am_compiler_list" = ""; then 4009 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4010 fi 4011 am__universal=false 4012 case " $depcc " in #( 4013 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4014 esac 4015 4016 for depmode in $am_compiler_list; do 4017 # Setup a source with many dependencies, because some compilers 4018 # like to wrap large dependency lists on column 80 (with \), and 4019 # we should not choose a depcomp mode which is confused by this. 4020 # 4021 # We need to recreate these files for each test, as the compiler may 4022 # overwrite some of them when testing with obscure command lines. 4023 # This happens at least with the AIX C compiler. 4024 : > sub/conftest.c 4025 for i in 1 2 3 4 5 6; do 4026 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4027 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4028 # Solaris 8's {/usr,}/bin/sh. 4029 touch sub/conftst$i.h 4030 done 4031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4032 4033 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4034 # mode. It turns out that the SunPro C++ compiler does not properly 4035 # handle `-M -o', and we need to detect this. Also, some Intel 4036 # versions had trouble with output in subdirs 4037 am__obj=sub/conftest.${OBJEXT-o} 4038 am__minus_obj="-o $am__obj" 4039 case $depmode in 4040 gcc) 4041 # This depmode causes a compiler race in universal mode. 4042 test "$am__universal" = false || continue 4043 ;; 4044 nosideeffect) 4045 # after this tag, mechanisms are not by side-effect, so they'll 4046 # only be used when explicitly requested 4047 if test "x$enable_dependency_tracking" = xyes; then 4048 continue 4049 else 4050 break 4051 fi 4052 ;; 4053 msvisualcpp | msvcmsys) 4054 # This compiler won't grok `-c -o', but also, the minuso test has 4055 # not run yet. These depmodes are late enough in the game, and 4056 # so weak that their functioning should not be impacted. 4057 am__obj=conftest.${OBJEXT-o} 4058 am__minus_obj= 4059 ;; 4060 none) break ;; 4061 esac 4062 if depmode=$depmode \ 4063 source=sub/conftest.c object=$am__obj \ 4064 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4065 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4066 >/dev/null 2>conftest.err && 4067 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4068 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4069 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4070 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4071 # icc doesn't choke on unknown options, it will just issue warnings 4072 # or remarks (even with -Werror). So we grep stderr for any message 4073 # that says an option was ignored or not supported. 4074 # When given -MP, icc 7.0 and 7.1 complain thusly: 4075 # icc: Command line warning: ignoring option '-M'; no argument required 4076 # The diagnosis changed in icc 8.0: 4077 # icc: Command line remark: option '-MP' not supported 4078 if (grep 'ignoring option' conftest.err || 4079 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4080 am_cv_CC_dependencies_compiler_type=$depmode 4081 break 4082 fi 4083 fi 4084 done 4085 4086 cd .. 4087 rm -rf conftest.dir 4088else 4089 am_cv_CC_dependencies_compiler_type=none 4090fi 4091 4092fi 4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4094$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4095CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4096 4097 if 4098 test "x$enable_dependency_tracking" != xno \ 4099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4100 am__fastdepCC_TRUE= 4101 am__fastdepCC_FALSE='#' 4102else 4103 am__fastdepCC_TRUE='#' 4104 am__fastdepCC_FALSE= 4105fi 4106 4107 4108ac_ext=go 4109ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5' 4110ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4111ac_compile_gnu=yes 4112if test -n "$ac_tool_prefix"; then 4113 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. 4114set dummy ${ac_tool_prefix}gccgo; ac_word=$2 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4116$as_echo_n "checking for $ac_word... " >&6; } 4117if test "${ac_cv_prog_GOC+set}" = set; then : 4118 $as_echo_n "(cached) " >&6 4119else 4120 if test -n "$GOC"; then 4121 ac_cv_prog_GOC="$GOC" # Let the user override the test. 4122else 4123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4124for as_dir in $PATH 4125do 4126 IFS=$as_save_IFS 4127 test -z "$as_dir" && as_dir=. 4128 for ac_exec_ext in '' $ac_executable_extensions; do 4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4130 ac_cv_prog_GOC="${ac_tool_prefix}gccgo" 4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4132 break 2 4133 fi 4134done 4135 done 4136IFS=$as_save_IFS 4137 4138fi 4139fi 4140GOC=$ac_cv_prog_GOC 4141if test -n "$GOC"; then 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 4143$as_echo "$GOC" >&6; } 4144else 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4146$as_echo "no" >&6; } 4147fi 4148 4149 4150fi 4151if test -z "$ac_cv_prog_GOC"; then 4152 ac_ct_GOC=$GOC 4153 # Extract the first word of "gccgo", so it can be a program name with args. 4154set dummy gccgo; ac_word=$2 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4156$as_echo_n "checking for $ac_word... " >&6; } 4157if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 if test -n "$ac_ct_GOC"; then 4161 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test. 4162else 4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164for as_dir in $PATH 4165do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_exec_ext in '' $ac_executable_extensions; do 4169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4170 ac_cv_prog_ac_ct_GOC="gccgo" 4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4172 break 2 4173 fi 4174done 4175 done 4176IFS=$as_save_IFS 4177 4178fi 4179fi 4180ac_ct_GOC=$ac_cv_prog_ac_ct_GOC 4181if test -n "$ac_ct_GOC"; then 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5 4183$as_echo "$ac_ct_GOC" >&6; } 4184else 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4186$as_echo "no" >&6; } 4187fi 4188 4189 if test "x$ac_ct_GOC" = x; then 4190 GOC="" 4191 else 4192 case $cross_compiling:$ac_tool_warned in 4193yes:) 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4196ac_tool_warned=yes ;; 4197esac 4198 GOC=$ac_ct_GOC 4199 fi 4200else 4201 GOC="$ac_cv_prog_GOC" 4202fi 4203 4204if test -z "$GOC"; then 4205 if test -n "$ac_tool_prefix"; then 4206 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. 4207set dummy ${ac_tool_prefix}gccgo; ac_word=$2 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4209$as_echo_n "checking for $ac_word... " >&6; } 4210if test "${ac_cv_prog_GOC+set}" = set; then : 4211 $as_echo_n "(cached) " >&6 4212else 4213 if test -n "$GOC"; then 4214 ac_cv_prog_GOC="$GOC" # Let the user override the test. 4215else 4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4217for as_dir in $PATH 4218do 4219 IFS=$as_save_IFS 4220 test -z "$as_dir" && as_dir=. 4221 for ac_exec_ext in '' $ac_executable_extensions; do 4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4223 ac_cv_prog_GOC="$ac_tool_prefix}gccgo" 4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4225 break 2 4226 fi 4227done 4228 done 4229IFS=$as_save_IFS 4230 4231fi 4232fi 4233GOC=$ac_cv_prog_GOC 4234if test -n "$GOC"; then 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 4236$as_echo "$GOC" >&6; } 4237else 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4239$as_echo "no" >&6; } 4240fi 4241 4242 4243 fi 4244fi 4245if test -z "$GOC"; then 4246 # Extract the first word of "gccgo", so it can be a program name with args. 4247set dummy gccgo; ac_word=$2 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4249$as_echo_n "checking for $ac_word... " >&6; } 4250if test "${ac_cv_prog_GOC+set}" = set; then : 4251 $as_echo_n "(cached) " >&6 4252else 4253 if test -n "$GOC"; then 4254 ac_cv_prog_GOC="$GOC" # Let the user override the test. 4255else 4256 ac_prog_rejected=no 4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 for ac_exec_ext in '' $ac_executable_extensions; do 4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4264 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then 4265 ac_prog_rejected=yes 4266 continue 4267 fi 4268 ac_cv_prog_GOC="gccgo" 4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4270 break 2 4271 fi 4272done 4273 done 4274IFS=$as_save_IFS 4275 4276if test $ac_prog_rejected = yes; then 4277 # We found a bogon in the path, so make sure we never use it. 4278 set dummy $ac_cv_prog_GOC 4279 shift 4280 if test $# != 0; then 4281 # We chose a different compiler from the bogus one. 4282 # However, it has the same basename, so the bogon will be chosen 4283 # first if we set GOC to just the basename; use the full file name. 4284 shift 4285 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@" 4286 fi 4287fi 4288fi 4289fi 4290GOC=$ac_cv_prog_GOC 4291if test -n "$GOC"; then 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 4293$as_echo "$GOC" >&6; } 4294else 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4296$as_echo "no" >&6; } 4297fi 4298 4299 4300fi 4301 4302 4303# Provide some information about the compiler. 4304$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5 4305set X $ac_compile 4306ac_compiler=$2 4307{ { ac_try="$ac_compiler --version >&5" 4308case "(($ac_try" in 4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4310 *) ac_try_echo=$ac_try;; 4311esac 4312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4313$as_echo "$ac_try_echo"; } >&5 4314 (eval "$ac_compiler --version >&5") 2>conftest.err 4315 ac_status=$? 4316 if test -s conftest.err; then 4317 sed '10a\ 4318... rest of stderr output deleted ... 4319 10q' conftest.err >conftest.er1 4320 cat conftest.er1 >&5 4321 rm -f conftest.er1 conftest.err 4322 fi 4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4324 test $ac_status = 0; } 4325GOCFLAGS="-g -O2" 4326ac_ext=c 4327ac_cpp='$CPP $CPPFLAGS' 4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4330ac_compiler_gnu=$ac_cv_c_compiler_gnu 4331 4332 4333 4334 4335 4336 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4338$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4339 # Check whether --enable-maintainer-mode was given. 4340if test "${enable_maintainer_mode+set}" = set; then : 4341 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4342else 4343 USE_MAINTAINER_MODE=no 4344fi 4345 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4347$as_echo "$USE_MAINTAINER_MODE" >&6; } 4348 if test $USE_MAINTAINER_MODE = yes; then 4349 MAINTAINER_MODE_TRUE= 4350 MAINTAINER_MODE_FALSE='#' 4351else 4352 MAINTAINER_MODE_TRUE='#' 4353 MAINTAINER_MODE_FALSE= 4354fi 4355 4356 MAINT=$MAINTAINER_MODE_TRUE 4357 4358 4359 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4361$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4362if test "${ac_cv_path_SED+set}" = set; then : 4363 $as_echo_n "(cached) " >&6 4364else 4365 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4366 for ac_i in 1 2 3 4 5 6 7; do 4367 ac_script="$ac_script$as_nl$ac_script" 4368 done 4369 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4370 { ac_script=; unset ac_script;} 4371 if test -z "$SED"; then 4372 ac_path_SED_found=false 4373 # Loop through the user's path and test for each of PROGNAME-LIST 4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4375for as_dir in $PATH 4376do 4377 IFS=$as_save_IFS 4378 test -z "$as_dir" && as_dir=. 4379 for ac_prog in sed gsed; do 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4382 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4383# Check for GNU ac_path_SED and select it if it is found. 4384 # Check for GNU $ac_path_SED 4385case `"$ac_path_SED" --version 2>&1` in 4386*GNU*) 4387 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4388*) 4389 ac_count=0 4390 $as_echo_n 0123456789 >"conftest.in" 4391 while : 4392 do 4393 cat "conftest.in" "conftest.in" >"conftest.tmp" 4394 mv "conftest.tmp" "conftest.in" 4395 cp "conftest.in" "conftest.nl" 4396 $as_echo '' >> "conftest.nl" 4397 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4399 as_fn_arith $ac_count + 1 && ac_count=$as_val 4400 if test $ac_count -gt ${ac_path_SED_max-0}; then 4401 # Best one so far, save it but keep looking for a better one 4402 ac_cv_path_SED="$ac_path_SED" 4403 ac_path_SED_max=$ac_count 4404 fi 4405 # 10*(2^10) chars as input seems more than enough 4406 test $ac_count -gt 10 && break 4407 done 4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4409esac 4410 4411 $ac_path_SED_found && break 3 4412 done 4413 done 4414 done 4415IFS=$as_save_IFS 4416 if test -z "$ac_cv_path_SED"; then 4417 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4418 fi 4419else 4420 ac_cv_path_SED=$SED 4421fi 4422 4423fi 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4425$as_echo "$ac_cv_path_SED" >&6; } 4426 SED="$ac_cv_path_SED" 4427 rm -f conftest.sed 4428 4429test -z "$SED" && SED=sed 4430Xsed="$SED -e 1s/^X//" 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4443$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4444if test "${ac_cv_path_GREP+set}" = set; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 if test -z "$GREP"; then 4448 ac_path_GREP_found=false 4449 # Loop through the user's path and test for each of PROGNAME-LIST 4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4452do 4453 IFS=$as_save_IFS 4454 test -z "$as_dir" && as_dir=. 4455 for ac_prog in grep ggrep; do 4456 for ac_exec_ext in '' $ac_executable_extensions; do 4457 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4458 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4459# Check for GNU ac_path_GREP and select it if it is found. 4460 # Check for GNU $ac_path_GREP 4461case `"$ac_path_GREP" --version 2>&1` in 4462*GNU*) 4463 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4464*) 4465 ac_count=0 4466 $as_echo_n 0123456789 >"conftest.in" 4467 while : 4468 do 4469 cat "conftest.in" "conftest.in" >"conftest.tmp" 4470 mv "conftest.tmp" "conftest.in" 4471 cp "conftest.in" "conftest.nl" 4472 $as_echo 'GREP' >> "conftest.nl" 4473 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4475 as_fn_arith $ac_count + 1 && ac_count=$as_val 4476 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4477 # Best one so far, save it but keep looking for a better one 4478 ac_cv_path_GREP="$ac_path_GREP" 4479 ac_path_GREP_max=$ac_count 4480 fi 4481 # 10*(2^10) chars as input seems more than enough 4482 test $ac_count -gt 10 && break 4483 done 4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4485esac 4486 4487 $ac_path_GREP_found && break 3 4488 done 4489 done 4490 done 4491IFS=$as_save_IFS 4492 if test -z "$ac_cv_path_GREP"; then 4493 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4494 fi 4495else 4496 ac_cv_path_GREP=$GREP 4497fi 4498 4499fi 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4501$as_echo "$ac_cv_path_GREP" >&6; } 4502 GREP="$ac_cv_path_GREP" 4503 4504 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4506$as_echo_n "checking for egrep... " >&6; } 4507if test "${ac_cv_path_EGREP+set}" = set; then : 4508 $as_echo_n "(cached) " >&6 4509else 4510 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4511 then ac_cv_path_EGREP="$GREP -E" 4512 else 4513 if test -z "$EGREP"; then 4514 ac_path_EGREP_found=false 4515 # Loop through the user's path and test for each of PROGNAME-LIST 4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4517for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4518do 4519 IFS=$as_save_IFS 4520 test -z "$as_dir" && as_dir=. 4521 for ac_prog in egrep; do 4522 for ac_exec_ext in '' $ac_executable_extensions; do 4523 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4524 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4525# Check for GNU ac_path_EGREP and select it if it is found. 4526 # Check for GNU $ac_path_EGREP 4527case `"$ac_path_EGREP" --version 2>&1` in 4528*GNU*) 4529 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4530*) 4531 ac_count=0 4532 $as_echo_n 0123456789 >"conftest.in" 4533 while : 4534 do 4535 cat "conftest.in" "conftest.in" >"conftest.tmp" 4536 mv "conftest.tmp" "conftest.in" 4537 cp "conftest.in" "conftest.nl" 4538 $as_echo 'EGREP' >> "conftest.nl" 4539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4541 as_fn_arith $ac_count + 1 && ac_count=$as_val 4542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4543 # Best one so far, save it but keep looking for a better one 4544 ac_cv_path_EGREP="$ac_path_EGREP" 4545 ac_path_EGREP_max=$ac_count 4546 fi 4547 # 10*(2^10) chars as input seems more than enough 4548 test $ac_count -gt 10 && break 4549 done 4550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4551esac 4552 4553 $ac_path_EGREP_found && break 3 4554 done 4555 done 4556 done 4557IFS=$as_save_IFS 4558 if test -z "$ac_cv_path_EGREP"; then 4559 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4560 fi 4561else 4562 ac_cv_path_EGREP=$EGREP 4563fi 4564 4565 fi 4566fi 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4568$as_echo "$ac_cv_path_EGREP" >&6; } 4569 EGREP="$ac_cv_path_EGREP" 4570 4571 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4573$as_echo_n "checking for fgrep... " >&6; } 4574if test "${ac_cv_path_FGREP+set}" = set; then : 4575 $as_echo_n "(cached) " >&6 4576else 4577 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4578 then ac_cv_path_FGREP="$GREP -F" 4579 else 4580 if test -z "$FGREP"; then 4581 ac_path_FGREP_found=false 4582 # Loop through the user's path and test for each of PROGNAME-LIST 4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4585do 4586 IFS=$as_save_IFS 4587 test -z "$as_dir" && as_dir=. 4588 for ac_prog in fgrep; do 4589 for ac_exec_ext in '' $ac_executable_extensions; do 4590 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4591 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4592# Check for GNU ac_path_FGREP and select it if it is found. 4593 # Check for GNU $ac_path_FGREP 4594case `"$ac_path_FGREP" --version 2>&1` in 4595*GNU*) 4596 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4597*) 4598 ac_count=0 4599 $as_echo_n 0123456789 >"conftest.in" 4600 while : 4601 do 4602 cat "conftest.in" "conftest.in" >"conftest.tmp" 4603 mv "conftest.tmp" "conftest.in" 4604 cp "conftest.in" "conftest.nl" 4605 $as_echo 'FGREP' >> "conftest.nl" 4606 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4608 as_fn_arith $ac_count + 1 && ac_count=$as_val 4609 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4610 # Best one so far, save it but keep looking for a better one 4611 ac_cv_path_FGREP="$ac_path_FGREP" 4612 ac_path_FGREP_max=$ac_count 4613 fi 4614 # 10*(2^10) chars as input seems more than enough 4615 test $ac_count -gt 10 && break 4616 done 4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4618esac 4619 4620 $ac_path_FGREP_found && break 3 4621 done 4622 done 4623 done 4624IFS=$as_save_IFS 4625 if test -z "$ac_cv_path_FGREP"; then 4626 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4627 fi 4628else 4629 ac_cv_path_FGREP=$FGREP 4630fi 4631 4632 fi 4633fi 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4635$as_echo "$ac_cv_path_FGREP" >&6; } 4636 FGREP="$ac_cv_path_FGREP" 4637 4638 4639test -z "$GREP" && GREP=grep 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4658ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4659ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4660 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4662$as_echo_n "checking how to print strings... " >&6; } 4663# Test print first, because it will be a builtin if present. 4664if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4665 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4666 ECHO='print -r --' 4667elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4668 ECHO='printf %s\n' 4669else 4670 # Use this function as a fallback that always works. 4671 func_fallback_echo () 4672 { 4673 eval 'cat <<_LTECHO_EOF 4674$1 4675_LTECHO_EOF' 4676 } 4677 ECHO='func_fallback_echo' 4678fi 4679 4680# func_echo_all arg... 4681# Invoke $ECHO with all args, space-separated. 4682func_echo_all () 4683{ 4684 $ECHO "" 4685} 4686 4687case "$ECHO" in 4688 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4689$as_echo "printf" >&6; } ;; 4690 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4691$as_echo "print -r" >&6; } ;; 4692 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4693$as_echo "cat" >&6; } ;; 4694esac 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711# Check whether --with-gnu-ld was given. 4712if test "${with_gnu_ld+set}" = set; then : 4713 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4714else 4715 with_gnu_ld=no 4716fi 4717 4718ac_prog=ld 4719if test "$GCC" = yes; then 4720 # Check if gcc -print-prog-name=ld gives a path. 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4722$as_echo_n "checking for ld used by $CC... " >&6; } 4723 case $host in 4724 *-*-mingw*) 4725 # gcc leaves a trailing carriage return which upsets mingw 4726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4727 *) 4728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4729 esac 4730 case $ac_prog in 4731 # Accept absolute paths. 4732 [\\/]* | ?:[\\/]*) 4733 re_direlt='/[^/][^/]*/\.\./' 4734 # Canonicalize the pathname of ld 4735 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4736 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4737 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4738 done 4739 test -z "$LD" && LD="$ac_prog" 4740 ;; 4741 "") 4742 # If it fails, then pretend we aren't using GCC. 4743 ac_prog=ld 4744 ;; 4745 *) 4746 # If it is relative, then search for the first ld in PATH. 4747 with_gnu_ld=unknown 4748 ;; 4749 esac 4750elif test "$with_gnu_ld" = yes; then 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4752$as_echo_n "checking for GNU ld... " >&6; } 4753else 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4755$as_echo_n "checking for non-GNU ld... " >&6; } 4756fi 4757if test "${lt_cv_path_LD+set}" = set; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 if test -z "$LD"; then 4761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4762 for ac_dir in $PATH; do 4763 IFS="$lt_save_ifs" 4764 test -z "$ac_dir" && ac_dir=. 4765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4766 lt_cv_path_LD="$ac_dir/$ac_prog" 4767 # Check to see if the program is GNU ld. I'd rather use --version, 4768 # but apparently some variants of GNU ld only accept -v. 4769 # Break only if it was the GNU/non-GNU ld that we prefer. 4770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4771 *GNU* | *'with BFD'*) 4772 test "$with_gnu_ld" != no && break 4773 ;; 4774 *) 4775 test "$with_gnu_ld" != yes && break 4776 ;; 4777 esac 4778 fi 4779 done 4780 IFS="$lt_save_ifs" 4781else 4782 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4783fi 4784fi 4785 4786LD="$lt_cv_path_LD" 4787if test -n "$LD"; then 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4789$as_echo "$LD" >&6; } 4790else 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4792$as_echo "no" >&6; } 4793fi 4794test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4796$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4797if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4798 $as_echo_n "(cached) " >&6 4799else 4800 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4801case `$LD -v 2>&1 </dev/null` in 4802*GNU* | *'with BFD'*) 4803 lt_cv_prog_gnu_ld=yes 4804 ;; 4805*) 4806 lt_cv_prog_gnu_ld=no 4807 ;; 4808esac 4809fi 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4811$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4812with_gnu_ld=$lt_cv_prog_gnu_ld 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822if test -n "$ac_tool_prefix"; then 4823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4824set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4826$as_echo_n "checking for $ac_word... " >&6; } 4827if test "${ac_cv_prog_RANLIB+set}" = set; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 if test -n "$RANLIB"; then 4831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4832else 4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4834for as_dir in $PATH 4835do 4836 IFS=$as_save_IFS 4837 test -z "$as_dir" && as_dir=. 4838 for ac_exec_ext in '' $ac_executable_extensions; do 4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4842 break 2 4843 fi 4844done 4845 done 4846IFS=$as_save_IFS 4847 4848fi 4849fi 4850RANLIB=$ac_cv_prog_RANLIB 4851if test -n "$RANLIB"; then 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4853$as_echo "$RANLIB" >&6; } 4854else 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4856$as_echo "no" >&6; } 4857fi 4858 4859 4860fi 4861if test -z "$ac_cv_prog_RANLIB"; then 4862 ac_ct_RANLIB=$RANLIB 4863 # Extract the first word of "ranlib", so it can be a program name with args. 4864set dummy ranlib; ac_word=$2 4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4866$as_echo_n "checking for $ac_word... " >&6; } 4867if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4868 $as_echo_n "(cached) " >&6 4869else 4870 if test -n "$ac_ct_RANLIB"; then 4871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4872else 4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4874for as_dir in $PATH 4875do 4876 IFS=$as_save_IFS 4877 test -z "$as_dir" && as_dir=. 4878 for ac_exec_ext in '' $ac_executable_extensions; do 4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4880 ac_cv_prog_ac_ct_RANLIB="ranlib" 4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4882 break 2 4883 fi 4884done 4885 done 4886IFS=$as_save_IFS 4887 4888fi 4889fi 4890ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4891if test -n "$ac_ct_RANLIB"; then 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4893$as_echo "$ac_ct_RANLIB" >&6; } 4894else 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4896$as_echo "no" >&6; } 4897fi 4898 4899 if test "x$ac_ct_RANLIB" = x; then 4900 RANLIB=":" 4901 else 4902 case $cross_compiling:$ac_tool_warned in 4903yes:) 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4906ac_tool_warned=yes ;; 4907esac 4908 RANLIB=$ac_ct_RANLIB 4909 fi 4910else 4911 RANLIB="$ac_cv_prog_RANLIB" 4912fi 4913 4914if test -n "$ac_tool_prefix"; then 4915 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args. 4916set dummy ${ac_tool_prefix}objcopy; ac_word=$2 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4918$as_echo_n "checking for $ac_word... " >&6; } 4919if test "${ac_cv_prog_OBJCOPY+set}" = set; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 if test -n "$OBJCOPY"; then 4923 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 4924else 4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4926for as_dir in $PATH 4927do 4928 IFS=$as_save_IFS 4929 test -z "$as_dir" && as_dir=. 4930 for ac_exec_ext in '' $ac_executable_extensions; do 4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4932 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy" 4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4934 break 2 4935 fi 4936done 4937 done 4938IFS=$as_save_IFS 4939 4940fi 4941fi 4942OBJCOPY=$ac_cv_prog_OBJCOPY 4943if test -n "$OBJCOPY"; then 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 4945$as_echo "$OBJCOPY" >&6; } 4946else 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4948$as_echo "no" >&6; } 4949fi 4950 4951 4952fi 4953if test -z "$ac_cv_prog_OBJCOPY"; then 4954 ac_ct_OBJCOPY=$OBJCOPY 4955 # Extract the first word of "objcopy", so it can be a program name with args. 4956set dummy objcopy; ac_word=$2 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958$as_echo_n "checking for $ac_word... " >&6; } 4959if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 if test -n "$ac_ct_OBJCOPY"; then 4963 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 4964else 4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for ac_exec_ext in '' $ac_executable_extensions; do 4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4972 ac_cv_prog_ac_ct_OBJCOPY="objcopy" 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976done 4977 done 4978IFS=$as_save_IFS 4979 4980fi 4981fi 4982ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 4983if test -n "$ac_ct_OBJCOPY"; then 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 4985$as_echo "$ac_ct_OBJCOPY" >&6; } 4986else 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4988$as_echo "no" >&6; } 4989fi 4990 4991 if test "x$ac_ct_OBJCOPY" = x; then 4992 OBJCOPY="missing-objcopy" 4993 else 4994 case $cross_compiling:$ac_tool_warned in 4995yes:) 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4998ac_tool_warned=yes ;; 4999esac 5000 OBJCOPY=$ac_ct_OBJCOPY 5001 fi 5002else 5003 OBJCOPY="$ac_cv_prog_OBJCOPY" 5004fi 5005 5006 5007enable_dlopen=yes 5008 5009 5010 5011case `pwd` in 5012 *\ * | *\ *) 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5014$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5015esac 5016 5017 5018 5019macro_version='2.2.7a' 5020macro_revision='1.3134' 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034ltmain="$ac_aux_dir/ltmain.sh" 5035 5036# Backslashify metacharacters that are still active within 5037# double-quoted strings. 5038sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5039 5040# Same as above, but do not quote variable references. 5041double_quote_subst='s/\(["`\\]\)/\\\1/g' 5042 5043# Sed substitution to delay expansion of an escaped shell variable in a 5044# double_quote_subst'ed string. 5045delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5046 5047# Sed substitution to delay expansion of an escaped single quote. 5048delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5049 5050# Sed substitution to avoid accidental globbing in evaled expressions 5051no_glob_subst='s/\*/\\\*/g' 5052 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5054$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5055if test "${lt_cv_path_NM+set}" = set; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 if test -n "$NM"; then 5059 # Let the user override the test. 5060 lt_cv_path_NM="$NM" 5061else 5062 lt_nm_to_check="${ac_tool_prefix}nm" 5063 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5064 lt_nm_to_check="$lt_nm_to_check nm" 5065 fi 5066 for lt_tmp_nm in $lt_nm_to_check; do 5067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5068 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5069 IFS="$lt_save_ifs" 5070 test -z "$ac_dir" && ac_dir=. 5071 tmp_nm="$ac_dir/$lt_tmp_nm" 5072 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5073 # Check to see if the nm accepts a BSD-compat flag. 5074 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5075 # nm: unknown option "B" ignored 5076 # Tru64's nm complains that /dev/null is an invalid object file 5077 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5078 */dev/null* | *'Invalid file or object type'*) 5079 lt_cv_path_NM="$tmp_nm -B" 5080 break 5081 ;; 5082 *) 5083 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5084 */dev/null*) 5085 lt_cv_path_NM="$tmp_nm -p" 5086 break 5087 ;; 5088 *) 5089 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5090 continue # so that we can try to find one that supports BSD flags 5091 ;; 5092 esac 5093 ;; 5094 esac 5095 fi 5096 done 5097 IFS="$lt_save_ifs" 5098 done 5099 : ${lt_cv_path_NM=no} 5100fi 5101fi 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5103$as_echo "$lt_cv_path_NM" >&6; } 5104if test "$lt_cv_path_NM" != "no"; then 5105 NM="$lt_cv_path_NM" 5106else 5107 # Didn't find any BSD compatible name lister, look for dumpbin. 5108 if test -n "$DUMPBIN"; then : 5109 # Let the user override the test. 5110 else 5111 if test -n "$ac_tool_prefix"; then 5112 for ac_prog in dumpbin "link -dump" 5113 do 5114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5115set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5117$as_echo_n "checking for $ac_word... " >&6; } 5118if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 if test -n "$DUMPBIN"; then 5122 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5123else 5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5125for as_dir in $PATH 5126do 5127 IFS=$as_save_IFS 5128 test -z "$as_dir" && as_dir=. 5129 for ac_exec_ext in '' $ac_executable_extensions; do 5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5131 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5133 break 2 5134 fi 5135done 5136 done 5137IFS=$as_save_IFS 5138 5139fi 5140fi 5141DUMPBIN=$ac_cv_prog_DUMPBIN 5142if test -n "$DUMPBIN"; then 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5144$as_echo "$DUMPBIN" >&6; } 5145else 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5147$as_echo "no" >&6; } 5148fi 5149 5150 5151 test -n "$DUMPBIN" && break 5152 done 5153fi 5154if test -z "$DUMPBIN"; then 5155 ac_ct_DUMPBIN=$DUMPBIN 5156 for ac_prog in dumpbin "link -dump" 5157do 5158 # Extract the first word of "$ac_prog", so it can be a program name with args. 5159set dummy $ac_prog; ac_word=$2 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5161$as_echo_n "checking for $ac_word... " >&6; } 5162if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5163 $as_echo_n "(cached) " >&6 5164else 5165 if test -n "$ac_ct_DUMPBIN"; then 5166 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5167else 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169for as_dir in $PATH 5170do 5171 IFS=$as_save_IFS 5172 test -z "$as_dir" && as_dir=. 5173 for ac_exec_ext in '' $ac_executable_extensions; do 5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5175 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179done 5180 done 5181IFS=$as_save_IFS 5182 5183fi 5184fi 5185ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5186if test -n "$ac_ct_DUMPBIN"; then 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5188$as_echo "$ac_ct_DUMPBIN" >&6; } 5189else 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5191$as_echo "no" >&6; } 5192fi 5193 5194 5195 test -n "$ac_ct_DUMPBIN" && break 5196done 5197 5198 if test "x$ac_ct_DUMPBIN" = x; then 5199 DUMPBIN=":" 5200 else 5201 case $cross_compiling:$ac_tool_warned in 5202yes:) 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5205ac_tool_warned=yes ;; 5206esac 5207 DUMPBIN=$ac_ct_DUMPBIN 5208 fi 5209fi 5210 5211 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5212 *COFF*) 5213 DUMPBIN="$DUMPBIN -symbols" 5214 ;; 5215 *) 5216 DUMPBIN=: 5217 ;; 5218 esac 5219 fi 5220 5221 if test "$DUMPBIN" != ":"; then 5222 NM="$DUMPBIN" 5223 fi 5224fi 5225test -z "$NM" && NM=nm 5226 5227 5228 5229 5230 5231 5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5233$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5234if test "${lt_cv_nm_interface+set}" = set; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 lt_cv_nm_interface="BSD nm" 5238 echo "int some_variable = 0;" > conftest.$ac_ext 5239 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5240 (eval "$ac_compile" 2>conftest.err) 5241 cat conftest.err >&5 5242 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5243 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5244 cat conftest.err >&5 5245 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5246 cat conftest.out >&5 5247 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5248 lt_cv_nm_interface="MS dumpbin" 5249 fi 5250 rm -f conftest* 5251fi 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5253$as_echo "$lt_cv_nm_interface" >&6; } 5254 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5256$as_echo_n "checking whether ln -s works... " >&6; } 5257LN_S=$as_ln_s 5258if test "$LN_S" = "ln -s"; then 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5260$as_echo "yes" >&6; } 5261else 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5263$as_echo "no, using $LN_S" >&6; } 5264fi 5265 5266# find the maximum length of command line arguments 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5268$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5269if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5270 $as_echo_n "(cached) " >&6 5271else 5272 i=0 5273 teststring="ABCD" 5274 5275 case $build_os in 5276 msdosdjgpp*) 5277 # On DJGPP, this test can blow up pretty badly due to problems in libc 5278 # (any single argument exceeding 2000 bytes causes a buffer overrun 5279 # during glob expansion). Even if it were fixed, the result of this 5280 # check would be larger than it should be. 5281 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5282 ;; 5283 5284 gnu*) 5285 # Under GNU Hurd, this test is not required because there is 5286 # no limit to the length of command line arguments. 5287 # Libtool will interpret -1 as no limit whatsoever 5288 lt_cv_sys_max_cmd_len=-1; 5289 ;; 5290 5291 cygwin* | mingw* | cegcc*) 5292 # On Win9x/ME, this test blows up -- it succeeds, but takes 5293 # about 5 minutes as the teststring grows exponentially. 5294 # Worse, since 9x/ME are not pre-emptively multitasking, 5295 # you end up with a "frozen" computer, even though with patience 5296 # the test eventually succeeds (with a max line length of 256k). 5297 # Instead, let's just punt: use the minimum linelength reported by 5298 # all of the supported platforms: 8192 (on NT/2K/XP). 5299 lt_cv_sys_max_cmd_len=8192; 5300 ;; 5301 5302 mint*) 5303 # On MiNT this can take a long time and run out of memory. 5304 lt_cv_sys_max_cmd_len=8192; 5305 ;; 5306 5307 amigaos*) 5308 # On AmigaOS with pdksh, this test takes hours, literally. 5309 # So we just punt and use a minimum line length of 8192. 5310 lt_cv_sys_max_cmd_len=8192; 5311 ;; 5312 5313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5314 # This has been around since 386BSD, at least. Likely further. 5315 if test -x /sbin/sysctl; then 5316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5317 elif test -x /usr/sbin/sysctl; then 5318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5319 else 5320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5321 fi 5322 # And add a safety zone 5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5325 ;; 5326 5327 interix*) 5328 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5329 lt_cv_sys_max_cmd_len=196608 5330 ;; 5331 5332 osf*) 5333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5335 # nice to cause kernel panics so lets avoid the loop below. 5336 # First set a reasonable default. 5337 lt_cv_sys_max_cmd_len=16384 5338 # 5339 if test -x /sbin/sysconfig; then 5340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5341 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5342 esac 5343 fi 5344 ;; 5345 sco3.2v5*) 5346 lt_cv_sys_max_cmd_len=102400 5347 ;; 5348 sysv5* | sco5v6* | sysv4.2uw2*) 5349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5350 if test -n "$kargmax"; then 5351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5352 else 5353 lt_cv_sys_max_cmd_len=32768 5354 fi 5355 ;; 5356 *) 5357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5358 if test -n "$lt_cv_sys_max_cmd_len"; then 5359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5361 else 5362 # Make teststring a little bigger before we do anything with it. 5363 # a 1K string should be a reasonable start. 5364 for i in 1 2 3 4 5 6 7 8 ; do 5365 teststring=$teststring$teststring 5366 done 5367 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5368 # If test is not a shell built-in, we'll probably end up computing a 5369 # maximum length that is only half of the actual maximum length, but 5370 # we can't tell. 5371 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5372 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5373 test $i != 17 # 1/2 MB should be enough 5374 do 5375 i=`expr $i + 1` 5376 teststring=$teststring$teststring 5377 done 5378 # Only check the string length outside the loop. 5379 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5380 teststring= 5381 # Add a significant safety factor because C++ compilers can tack on 5382 # massive amounts of additional arguments before passing them to the 5383 # linker. It appears as though 1/2 is a usable value. 5384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5385 fi 5386 ;; 5387 esac 5388 5389fi 5390 5391if test -n $lt_cv_sys_max_cmd_len ; then 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5393$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5394else 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5396$as_echo "none" >&6; } 5397fi 5398max_cmd_len=$lt_cv_sys_max_cmd_len 5399 5400 5401 5402 5403 5404 5405: ${CP="cp -f"} 5406: ${MV="mv -f"} 5407: ${RM="rm -f"} 5408 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5410$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5411# Try some XSI features 5412xsi_shell=no 5413( _lt_dummy="a/b/c" 5414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5415 = c,a/b,, \ 5416 && eval 'test $(( 1 + 1 )) -eq 2 \ 5417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5418 && xsi_shell=yes 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5420$as_echo "$xsi_shell" >&6; } 5421 5422 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5424$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5425lt_shell_append=no 5426( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5427 >/dev/null 2>&1 \ 5428 && lt_shell_append=yes 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5430$as_echo "$lt_shell_append" >&6; } 5431 5432 5433if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5434 lt_unset=unset 5435else 5436 lt_unset=false 5437fi 5438 5439 5440 5441 5442 5443# test EBCDIC or ASCII 5444case `echo X|tr X '\101'` in 5445 A) # ASCII based system 5446 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5447 lt_SP2NL='tr \040 \012' 5448 lt_NL2SP='tr \015\012 \040\040' 5449 ;; 5450 *) # EBCDIC based system 5451 lt_SP2NL='tr \100 \n' 5452 lt_NL2SP='tr \r\n \100\100' 5453 ;; 5454esac 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5465$as_echo_n "checking for $LD option to reload object files... " >&6; } 5466if test "${lt_cv_ld_reload_flag+set}" = set; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 lt_cv_ld_reload_flag='-r' 5470fi 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5472$as_echo "$lt_cv_ld_reload_flag" >&6; } 5473reload_flag=$lt_cv_ld_reload_flag 5474case $reload_flag in 5475"" | " "*) ;; 5476*) reload_flag=" $reload_flag" ;; 5477esac 5478reload_cmds='$LD$reload_flag -o $output$reload_objs' 5479case $host_os in 5480 darwin*) 5481 if test "$GCC" = yes; then 5482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5483 else 5484 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5485 fi 5486 ;; 5487esac 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497if test -n "$ac_tool_prefix"; then 5498 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5499set dummy ${ac_tool_prefix}objdump; ac_word=$2 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5501$as_echo_n "checking for $ac_word... " >&6; } 5502if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 if test -n "$OBJDUMP"; then 5506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5507else 5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5509for as_dir in $PATH 5510do 5511 IFS=$as_save_IFS 5512 test -z "$as_dir" && as_dir=. 5513 for ac_exec_ext in '' $ac_executable_extensions; do 5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 break 2 5518 fi 5519done 5520 done 5521IFS=$as_save_IFS 5522 5523fi 5524fi 5525OBJDUMP=$ac_cv_prog_OBJDUMP 5526if test -n "$OBJDUMP"; then 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5528$as_echo "$OBJDUMP" >&6; } 5529else 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5531$as_echo "no" >&6; } 5532fi 5533 5534 5535fi 5536if test -z "$ac_cv_prog_OBJDUMP"; then 5537 ac_ct_OBJDUMP=$OBJDUMP 5538 # Extract the first word of "objdump", so it can be a program name with args. 5539set dummy objdump; ac_word=$2 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5541$as_echo_n "checking for $ac_word... " >&6; } 5542if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 if test -n "$ac_ct_OBJDUMP"; then 5546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5547else 5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5549for as_dir in $PATH 5550do 5551 IFS=$as_save_IFS 5552 test -z "$as_dir" && as_dir=. 5553 for ac_exec_ext in '' $ac_executable_extensions; do 5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5555 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5557 break 2 5558 fi 5559done 5560 done 5561IFS=$as_save_IFS 5562 5563fi 5564fi 5565ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5566if test -n "$ac_ct_OBJDUMP"; then 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5568$as_echo "$ac_ct_OBJDUMP" >&6; } 5569else 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5571$as_echo "no" >&6; } 5572fi 5573 5574 if test "x$ac_ct_OBJDUMP" = x; then 5575 OBJDUMP="false" 5576 else 5577 case $cross_compiling:$ac_tool_warned in 5578yes:) 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5581ac_tool_warned=yes ;; 5582esac 5583 OBJDUMP=$ac_ct_OBJDUMP 5584 fi 5585else 5586 OBJDUMP="$ac_cv_prog_OBJDUMP" 5587fi 5588 5589test -z "$OBJDUMP" && OBJDUMP=objdump 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5600$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5601if test "${lt_cv_deplibs_check_method+set}" = set; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 lt_cv_file_magic_cmd='$MAGIC_CMD' 5605lt_cv_file_magic_test_file= 5606lt_cv_deplibs_check_method='unknown' 5607# Need to set the preceding variable on all platforms that support 5608# interlibrary dependencies. 5609# 'none' -- dependencies not supported. 5610# `unknown' -- same as none, but documents that we really don't know. 5611# 'pass_all' -- all dependencies passed with no checks. 5612# 'test_compile' -- check by making test program. 5613# 'file_magic [[regex]]' -- check by looking for files in library path 5614# which responds to the $file_magic_cmd with a given extended regex. 5615# If you have `file' or equivalent on your system and you're not sure 5616# whether `pass_all' will *always* work, you probably want this one. 5617 5618case $host_os in 5619aix[4-9]*) 5620 lt_cv_deplibs_check_method=pass_all 5621 ;; 5622 5623beos*) 5624 lt_cv_deplibs_check_method=pass_all 5625 ;; 5626 5627bsdi[45]*) 5628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5629 lt_cv_file_magic_cmd='/usr/bin/file -L' 5630 lt_cv_file_magic_test_file=/shlib/libc.so 5631 ;; 5632 5633cygwin*) 5634 # func_win32_libid is a shell function defined in ltmain.sh 5635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5636 lt_cv_file_magic_cmd='func_win32_libid' 5637 ;; 5638 5639mingw* | pw32*) 5640 # Base MSYS/MinGW do not provide the 'file' command needed by 5641 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5642 # unless we find 'file', for example because we are cross-compiling. 5643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5644 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5646 lt_cv_file_magic_cmd='func_win32_libid' 5647 else 5648 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5649 lt_cv_file_magic_cmd='$OBJDUMP -f' 5650 fi 5651 ;; 5652 5653cegcc*) 5654 # use the weaker test based on 'objdump'. See mingw*. 5655 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5656 lt_cv_file_magic_cmd='$OBJDUMP -f' 5657 ;; 5658 5659darwin* | rhapsody*) 5660 lt_cv_deplibs_check_method=pass_all 5661 ;; 5662 5663freebsd* | dragonfly*) 5664 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5665 case $host_cpu in 5666 i*86 ) 5667 # Not sure whether the presence of OpenBSD here was a mistake. 5668 # Let's accept both of them until this is cleared up. 5669 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5670 lt_cv_file_magic_cmd=/usr/bin/file 5671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5672 ;; 5673 esac 5674 else 5675 lt_cv_deplibs_check_method=pass_all 5676 fi 5677 ;; 5678 5679gnu*) 5680 lt_cv_deplibs_check_method=pass_all 5681 ;; 5682 5683haiku*) 5684 lt_cv_deplibs_check_method=pass_all 5685 ;; 5686 5687hpux10.20* | hpux11*) 5688 lt_cv_file_magic_cmd=/usr/bin/file 5689 case $host_cpu in 5690 ia64*) 5691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5693 ;; 5694 hppa*64*) 5695 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]' 5696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5697 ;; 5698 *) 5699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5700 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5701 ;; 5702 esac 5703 ;; 5704 5705interix[3-9]*) 5706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5708 ;; 5709 5710irix5* | irix6* | nonstopux*) 5711 case $LD in 5712 *-32|*"-32 ") libmagic=32-bit;; 5713 *-n32|*"-n32 ") libmagic=N32;; 5714 *-64|*"-64 ") libmagic=64-bit;; 5715 *) libmagic=never-match;; 5716 esac 5717 lt_cv_deplibs_check_method=pass_all 5718 ;; 5719 5720# This must be Linux ELF. 5721linux* | k*bsd*-gnu | kopensolaris*-gnu) 5722 lt_cv_deplibs_check_method=pass_all 5723 ;; 5724 5725netbsd*) 5726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5728 else 5729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5730 fi 5731 ;; 5732 5733newos6*) 5734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5735 lt_cv_file_magic_cmd=/usr/bin/file 5736 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5737 ;; 5738 5739*nto* | *qnx*) 5740 lt_cv_deplibs_check_method=pass_all 5741 ;; 5742 5743openbsd*) 5744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5746 else 5747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5748 fi 5749 ;; 5750 5751osf3* | osf4* | osf5*) 5752 lt_cv_deplibs_check_method=pass_all 5753 ;; 5754 5755rdos*) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758 5759solaris*) 5760 lt_cv_deplibs_check_method=pass_all 5761 ;; 5762 5763sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5764 lt_cv_deplibs_check_method=pass_all 5765 ;; 5766 5767sysv4 | sysv4.3*) 5768 case $host_vendor in 5769 motorola) 5770 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]' 5771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5772 ;; 5773 ncr) 5774 lt_cv_deplibs_check_method=pass_all 5775 ;; 5776 sequent) 5777 lt_cv_file_magic_cmd='/bin/file' 5778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5779 ;; 5780 sni) 5781 lt_cv_file_magic_cmd='/bin/file' 5782 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5783 lt_cv_file_magic_test_file=/lib/libc.so 5784 ;; 5785 siemens) 5786 lt_cv_deplibs_check_method=pass_all 5787 ;; 5788 pc) 5789 lt_cv_deplibs_check_method=pass_all 5790 ;; 5791 esac 5792 ;; 5793 5794tpf*) 5795 lt_cv_deplibs_check_method=pass_all 5796 ;; 5797esac 5798 5799fi 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5801$as_echo "$lt_cv_deplibs_check_method" >&6; } 5802file_magic_cmd=$lt_cv_file_magic_cmd 5803deplibs_check_method=$lt_cv_deplibs_check_method 5804test -z "$deplibs_check_method" && deplibs_check_method=unknown 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817if test -n "$ac_tool_prefix"; then 5818 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5819set dummy ${ac_tool_prefix}ar; ac_word=$2 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5821$as_echo_n "checking for $ac_word... " >&6; } 5822if test "${ac_cv_prog_AR+set}" = set; then : 5823 $as_echo_n "(cached) " >&6 5824else 5825 if test -n "$AR"; then 5826 ac_cv_prog_AR="$AR" # Let the user override the test. 5827else 5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5829for as_dir in $PATH 5830do 5831 IFS=$as_save_IFS 5832 test -z "$as_dir" && as_dir=. 5833 for ac_exec_ext in '' $ac_executable_extensions; do 5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5835 ac_cv_prog_AR="${ac_tool_prefix}ar" 5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5837 break 2 5838 fi 5839done 5840 done 5841IFS=$as_save_IFS 5842 5843fi 5844fi 5845AR=$ac_cv_prog_AR 5846if test -n "$AR"; then 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5848$as_echo "$AR" >&6; } 5849else 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5851$as_echo "no" >&6; } 5852fi 5853 5854 5855fi 5856if test -z "$ac_cv_prog_AR"; then 5857 ac_ct_AR=$AR 5858 # Extract the first word of "ar", so it can be a program name with args. 5859set dummy ar; ac_word=$2 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5861$as_echo_n "checking for $ac_word... " >&6; } 5862if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5863 $as_echo_n "(cached) " >&6 5864else 5865 if test -n "$ac_ct_AR"; then 5866 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5867else 5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869for as_dir in $PATH 5870do 5871 IFS=$as_save_IFS 5872 test -z "$as_dir" && as_dir=. 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5875 ac_cv_prog_ac_ct_AR="ar" 5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5877 break 2 5878 fi 5879done 5880 done 5881IFS=$as_save_IFS 5882 5883fi 5884fi 5885ac_ct_AR=$ac_cv_prog_ac_ct_AR 5886if test -n "$ac_ct_AR"; then 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5888$as_echo "$ac_ct_AR" >&6; } 5889else 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891$as_echo "no" >&6; } 5892fi 5893 5894 if test "x$ac_ct_AR" = x; then 5895 AR="false" 5896 else 5897 case $cross_compiling:$ac_tool_warned in 5898yes:) 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5901ac_tool_warned=yes ;; 5902esac 5903 AR=$ac_ct_AR 5904 fi 5905else 5906 AR="$ac_cv_prog_AR" 5907fi 5908 5909test -z "$AR" && AR=ar 5910test -z "$AR_FLAGS" && AR_FLAGS=cru 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922if test -n "$ac_tool_prefix"; then 5923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5924set dummy ${ac_tool_prefix}strip; ac_word=$2 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5926$as_echo_n "checking for $ac_word... " >&6; } 5927if test "${ac_cv_prog_STRIP+set}" = set; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 if test -n "$STRIP"; then 5931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5932else 5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5934for as_dir in $PATH 5935do 5936 IFS=$as_save_IFS 5937 test -z "$as_dir" && as_dir=. 5938 for ac_exec_ext in '' $ac_executable_extensions; do 5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5940 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5942 break 2 5943 fi 5944done 5945 done 5946IFS=$as_save_IFS 5947 5948fi 5949fi 5950STRIP=$ac_cv_prog_STRIP 5951if test -n "$STRIP"; then 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5953$as_echo "$STRIP" >&6; } 5954else 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5956$as_echo "no" >&6; } 5957fi 5958 5959 5960fi 5961if test -z "$ac_cv_prog_STRIP"; then 5962 ac_ct_STRIP=$STRIP 5963 # Extract the first word of "strip", so it can be a program name with args. 5964set dummy strip; ac_word=$2 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5966$as_echo_n "checking for $ac_word... " >&6; } 5967if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5968 $as_echo_n "(cached) " >&6 5969else 5970 if test -n "$ac_ct_STRIP"; then 5971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5972else 5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5974for as_dir in $PATH 5975do 5976 IFS=$as_save_IFS 5977 test -z "$as_dir" && as_dir=. 5978 for ac_exec_ext in '' $ac_executable_extensions; do 5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5980 ac_cv_prog_ac_ct_STRIP="strip" 5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5982 break 2 5983 fi 5984done 5985 done 5986IFS=$as_save_IFS 5987 5988fi 5989fi 5990ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5991if test -n "$ac_ct_STRIP"; then 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5993$as_echo "$ac_ct_STRIP" >&6; } 5994else 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5996$as_echo "no" >&6; } 5997fi 5998 5999 if test "x$ac_ct_STRIP" = x; then 6000 STRIP=":" 6001 else 6002 case $cross_compiling:$ac_tool_warned in 6003yes:) 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6006ac_tool_warned=yes ;; 6007esac 6008 STRIP=$ac_ct_STRIP 6009 fi 6010else 6011 STRIP="$ac_cv_prog_STRIP" 6012fi 6013 6014test -z "$STRIP" && STRIP=: 6015 6016 6017 6018 6019 6020 6021if test -n "$ac_tool_prefix"; then 6022 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6023set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6025$as_echo_n "checking for $ac_word... " >&6; } 6026if test "${ac_cv_prog_RANLIB+set}" = set; then : 6027 $as_echo_n "(cached) " >&6 6028else 6029 if test -n "$RANLIB"; then 6030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6031else 6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6033for as_dir in $PATH 6034do 6035 IFS=$as_save_IFS 6036 test -z "$as_dir" && as_dir=. 6037 for ac_exec_ext in '' $ac_executable_extensions; do 6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6041 break 2 6042 fi 6043done 6044 done 6045IFS=$as_save_IFS 6046 6047fi 6048fi 6049RANLIB=$ac_cv_prog_RANLIB 6050if test -n "$RANLIB"; then 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6052$as_echo "$RANLIB" >&6; } 6053else 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6055$as_echo "no" >&6; } 6056fi 6057 6058 6059fi 6060if test -z "$ac_cv_prog_RANLIB"; then 6061 ac_ct_RANLIB=$RANLIB 6062 # Extract the first word of "ranlib", so it can be a program name with args. 6063set dummy ranlib; ac_word=$2 6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6065$as_echo_n "checking for $ac_word... " >&6; } 6066if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6067 $as_echo_n "(cached) " >&6 6068else 6069 if test -n "$ac_ct_RANLIB"; then 6070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6071else 6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6073for as_dir in $PATH 6074do 6075 IFS=$as_save_IFS 6076 test -z "$as_dir" && as_dir=. 6077 for ac_exec_ext in '' $ac_executable_extensions; do 6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6079 ac_cv_prog_ac_ct_RANLIB="ranlib" 6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6081 break 2 6082 fi 6083done 6084 done 6085IFS=$as_save_IFS 6086 6087fi 6088fi 6089ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6090if test -n "$ac_ct_RANLIB"; then 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6092$as_echo "$ac_ct_RANLIB" >&6; } 6093else 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6095$as_echo "no" >&6; } 6096fi 6097 6098 if test "x$ac_ct_RANLIB" = x; then 6099 RANLIB=":" 6100 else 6101 case $cross_compiling:$ac_tool_warned in 6102yes:) 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6105ac_tool_warned=yes ;; 6106esac 6107 RANLIB=$ac_ct_RANLIB 6108 fi 6109else 6110 RANLIB="$ac_cv_prog_RANLIB" 6111fi 6112 6113test -z "$RANLIB" && RANLIB=: 6114 6115 6116 6117 6118 6119 6120# Determine commands to create old-style static archives. 6121old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6122old_postinstall_cmds='chmod 644 $oldlib' 6123old_postuninstall_cmds= 6124 6125if test -n "$RANLIB"; then 6126 case $host_os in 6127 openbsd*) 6128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6129 ;; 6130 *) 6131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6132 ;; 6133 esac 6134 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6135fi 6136 6137case $host_os in 6138 darwin*) 6139 lock_old_archive_extraction=yes ;; 6140 *) 6141 lock_old_archive_extraction=no ;; 6142esac 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182# If no C compiler was specified, use CC. 6183LTCC=${LTCC-"$CC"} 6184 6185# If no C compiler flags were specified, use CFLAGS. 6186LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6187 6188# Allow CC to be a program name with arguments. 6189compiler=$CC 6190 6191 6192# Check for command to grab the raw symbol name followed by C symbol from nm. 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6194$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6195if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6196 $as_echo_n "(cached) " >&6 6197else 6198 6199# These are sane defaults that work on at least a few old systems. 6200# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6201 6202# Character class describing NM global symbol codes. 6203symcode='[BCDEGRST]' 6204 6205# Regexp to match symbols that can be accessed directly from C. 6206sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6207 6208# Define system-specific variables. 6209case $host_os in 6210aix*) 6211 symcode='[BCDT]' 6212 ;; 6213cygwin* | mingw* | pw32* | cegcc*) 6214 symcode='[ABCDGISTW]' 6215 ;; 6216hpux*) 6217 if test "$host_cpu" = ia64; then 6218 symcode='[ABCDEGRST]' 6219 fi 6220 ;; 6221irix* | nonstopux*) 6222 symcode='[BCDEGRST]' 6223 ;; 6224osf*) 6225 symcode='[BCDEGQRST]' 6226 ;; 6227solaris*) 6228 symcode='[BDRT]' 6229 ;; 6230sco3.2v5*) 6231 symcode='[DT]' 6232 ;; 6233sysv4.2uw2*) 6234 symcode='[DT]' 6235 ;; 6236sysv5* | sco5v6* | unixware* | OpenUNIX*) 6237 symcode='[ABDT]' 6238 ;; 6239sysv4) 6240 symcode='[DFNSTU]' 6241 ;; 6242esac 6243 6244# If we're using GNU nm, then use its standard symbol codes. 6245case `$NM -V 2>&1` in 6246*GNU* | *'with BFD'*) 6247 symcode='[ABCDGIRSTW]' ;; 6248esac 6249 6250# Transform an extracted symbol line into a proper C declaration. 6251# Some systems (esp. on ia64) link data and code symbols differently, 6252# so use this general approach. 6253lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6254 6255# Transform an extracted symbol line into symbol name and symbol address 6256lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6257lt_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'" 6258 6259# Handle CRLF in mingw tool chain 6260opt_cr= 6261case $build_os in 6262mingw*) 6263 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6264 ;; 6265esac 6266 6267# Try without a prefix underscore, then with it. 6268for ac_symprfx in "" "_"; do 6269 6270 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6271 symxfrm="\\1 $ac_symprfx\\2 \\2" 6272 6273 # Write the raw and C identifiers. 6274 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6275 # Fake it for dumpbin and say T for any non-static function 6276 # and D for any global variable. 6277 # Also find C++ and __fastcall symbols from MSVC++, 6278 # which start with @ or ?. 6279 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6280" {last_section=section; section=\$ 3};"\ 6281" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6282" \$ 0!~/External *\|/{next};"\ 6283" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6284" {if(hide[section]) next};"\ 6285" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6286" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6287" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6288" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6289" ' prfx=^$ac_symprfx" 6290 else 6291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6292 fi 6293 6294 # Check to see that the pipe works correctly. 6295 pipe_works=no 6296 6297 rm -f conftest* 6298 cat > conftest.$ac_ext <<_LT_EOF 6299#ifdef __cplusplus 6300extern "C" { 6301#endif 6302char nm_test_var; 6303void nm_test_func(void); 6304void nm_test_func(void){} 6305#ifdef __cplusplus 6306} 6307#endif 6308int main(){nm_test_var='a';nm_test_func();return(0);} 6309_LT_EOF 6310 6311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6312 (eval $ac_compile) 2>&5 6313 ac_status=$? 6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6315 test $ac_status = 0; }; then 6316 # Now try to grab the symbols. 6317 nlist=conftest.nm 6318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6319 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6320 ac_status=$? 6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6322 test $ac_status = 0; } && test -s "$nlist"; then 6323 # Try sorting and uniquifying the output. 6324 if sort "$nlist" | uniq > "$nlist"T; then 6325 mv -f "$nlist"T "$nlist" 6326 else 6327 rm -f "$nlist"T 6328 fi 6329 6330 # Make sure that we snagged all the symbols we need. 6331 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6332 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6333 cat <<_LT_EOF > conftest.$ac_ext 6334#ifdef __cplusplus 6335extern "C" { 6336#endif 6337 6338_LT_EOF 6339 # Now generate the symbol file. 6340 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6341 6342 cat <<_LT_EOF >> conftest.$ac_ext 6343 6344/* The mapping between symbol names and symbols. */ 6345const struct { 6346 const char *name; 6347 void *address; 6348} 6349lt__PROGRAM__LTX_preloaded_symbols[] = 6350{ 6351 { "@PROGRAM@", (void *) 0 }, 6352_LT_EOF 6353 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6354 cat <<\_LT_EOF >> conftest.$ac_ext 6355 {0, (void *) 0} 6356}; 6357 6358/* This works around a problem in FreeBSD linker */ 6359#ifdef FREEBSD_WORKAROUND 6360static const void *lt_preloaded_setup() { 6361 return lt__PROGRAM__LTX_preloaded_symbols; 6362} 6363#endif 6364 6365#ifdef __cplusplus 6366} 6367#endif 6368_LT_EOF 6369 # Now try linking the two files. 6370 mv conftest.$ac_objext conftstm.$ac_objext 6371 lt_save_LIBS="$LIBS" 6372 lt_save_CFLAGS="$CFLAGS" 6373 LIBS="conftstm.$ac_objext" 6374 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6376 (eval $ac_link) 2>&5 6377 ac_status=$? 6378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6379 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6380 pipe_works=yes 6381 fi 6382 LIBS="$lt_save_LIBS" 6383 CFLAGS="$lt_save_CFLAGS" 6384 else 6385 echo "cannot find nm_test_func in $nlist" >&5 6386 fi 6387 else 6388 echo "cannot find nm_test_var in $nlist" >&5 6389 fi 6390 else 6391 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6392 fi 6393 else 6394 echo "$progname: failed program was:" >&5 6395 cat conftest.$ac_ext >&5 6396 fi 6397 rm -rf conftest* conftst* 6398 6399 # Do not use the global_symbol_pipe unless it works. 6400 if test "$pipe_works" = yes; then 6401 break 6402 else 6403 lt_cv_sys_global_symbol_pipe= 6404 fi 6405done 6406 6407fi 6408 6409if test -z "$lt_cv_sys_global_symbol_pipe"; then 6410 lt_cv_sys_global_symbol_to_cdecl= 6411fi 6412if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6414$as_echo "failed" >&6; } 6415else 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6417$as_echo "ok" >&6; } 6418fi 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442# Check whether --enable-libtool-lock was given. 6443if test "${enable_libtool_lock+set}" = set; then : 6444 enableval=$enable_libtool_lock; 6445fi 6446 6447test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6448 6449# Some flags need to be propagated to the compiler or linker for good 6450# libtool support. 6451case $host in 6452ia64-*-hpux*) 6453 # Find out which ABI we are using. 6454 echo 'int i;' > conftest.$ac_ext 6455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6456 (eval $ac_compile) 2>&5 6457 ac_status=$? 6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6459 test $ac_status = 0; }; then 6460 case `/usr/bin/file conftest.$ac_objext` in 6461 *ELF-32*) 6462 HPUX_IA64_MODE="32" 6463 ;; 6464 *ELF-64*) 6465 HPUX_IA64_MODE="64" 6466 ;; 6467 esac 6468 fi 6469 rm -rf conftest* 6470 ;; 6471*-*-irix6*) 6472 # Find out which ABI we are using. 6473 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6475 (eval $ac_compile) 2>&5 6476 ac_status=$? 6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6478 test $ac_status = 0; }; then 6479 if test "$lt_cv_prog_gnu_ld" = yes; then 6480 case `/usr/bin/file conftest.$ac_objext` in 6481 *32-bit*) 6482 LD="${LD-ld} -melf32bsmip" 6483 ;; 6484 *N32*) 6485 LD="${LD-ld} -melf32bmipn32" 6486 ;; 6487 *64-bit*) 6488 LD="${LD-ld} -melf64bmip" 6489 ;; 6490 esac 6491 else 6492 case `/usr/bin/file conftest.$ac_objext` in 6493 *32-bit*) 6494 LD="${LD-ld} -32" 6495 ;; 6496 *N32*) 6497 LD="${LD-ld} -n32" 6498 ;; 6499 *64-bit*) 6500 LD="${LD-ld} -64" 6501 ;; 6502 esac 6503 fi 6504 fi 6505 rm -rf conftest* 6506 ;; 6507 6508x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6509s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6510 # Find out which ABI we are using. 6511 echo 'int i;' > conftest.$ac_ext 6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6513 (eval $ac_compile) 2>&5 6514 ac_status=$? 6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6516 test $ac_status = 0; }; then 6517 case `/usr/bin/file conftest.o` in 6518 *32-bit*) 6519 case $host in 6520 x86_64-*kfreebsd*-gnu) 6521 LD="${LD-ld} -m elf_i386_fbsd" 6522 ;; 6523 x86_64-*linux*) 6524 LD="${LD-ld} -m elf_i386" 6525 ;; 6526 powerpc64le-*linux*) 6527 LD="${LD-ld} -m elf32lppclinux" 6528 ;; 6529 powerpc64-*linux*) 6530 LD="${LD-ld} -m elf32ppclinux" 6531 ;; 6532 s390x-*linux*) 6533 LD="${LD-ld} -m elf_s390" 6534 ;; 6535 sparc64-*linux*) 6536 LD="${LD-ld} -m elf32_sparc" 6537 ;; 6538 esac 6539 ;; 6540 *64-bit*) 6541 case $host in 6542 x86_64-*kfreebsd*-gnu) 6543 LD="${LD-ld} -m elf_x86_64_fbsd" 6544 ;; 6545 x86_64-*linux*) 6546 LD="${LD-ld} -m elf_x86_64" 6547 ;; 6548 powerpcle-*linux*) 6549 LD="${LD-ld} -m elf64lppc" 6550 ;; 6551 powerpc-*linux*) 6552 LD="${LD-ld} -m elf64ppc" 6553 ;; 6554 s390*-*linux*|s390*-*tpf*) 6555 LD="${LD-ld} -m elf64_s390" 6556 ;; 6557 sparc*-*linux*) 6558 LD="${LD-ld} -m elf64_sparc" 6559 ;; 6560 esac 6561 ;; 6562 esac 6563 fi 6564 rm -rf conftest* 6565 ;; 6566 6567*-*-sco3.2v5*) 6568 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6569 SAVE_CFLAGS="$CFLAGS" 6570 CFLAGS="$CFLAGS -belf" 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6572$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6573if test "${lt_cv_cc_needs_belf+set}" = set; then : 6574 $as_echo_n "(cached) " >&6 6575else 6576 ac_ext=c 6577ac_cpp='$CPP $CPPFLAGS' 6578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6580ac_compiler_gnu=$ac_cv_c_compiler_gnu 6581 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584 6585int 6586main () 6587{ 6588 6589 ; 6590 return 0; 6591} 6592_ACEOF 6593if ac_fn_c_try_link "$LINENO"; then : 6594 lt_cv_cc_needs_belf=yes 6595else 6596 lt_cv_cc_needs_belf=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext \ 6599 conftest$ac_exeext conftest.$ac_ext 6600 ac_ext=c 6601ac_cpp='$CPP $CPPFLAGS' 6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6604ac_compiler_gnu=$ac_cv_c_compiler_gnu 6605 6606fi 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6608$as_echo "$lt_cv_cc_needs_belf" >&6; } 6609 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6611 CFLAGS="$SAVE_CFLAGS" 6612 fi 6613 ;; 6614*-*solaris*) 6615 # Find out which ABI we are using. 6616 echo 'int i;' > conftest.$ac_ext 6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6618 (eval $ac_compile) 2>&5 6619 ac_status=$? 6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6621 test $ac_status = 0; }; then 6622 case `/usr/bin/file conftest.o` in 6623 *64-bit*) 6624 case $lt_cv_prog_gnu_ld in 6625 yes*) 6626 case $host in 6627 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*) 6628 LD="${LD-ld} -m elf_x86_64" 6629 ;; 6630 sparc*-*-solaris*) 6631 LD="${LD-ld} -m elf64_sparc" 6632 ;; 6633 esac 6634 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6635 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6636 LD="${LD-ld}_sol2" 6637 fi 6638 ;; 6639 *) 6640 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6641 LD="${LD-ld} -64" 6642 fi 6643 ;; 6644 esac 6645 ;; 6646 esac 6647 fi 6648 rm -rf conftest* 6649 ;; 6650esac 6651 6652need_locks="$enable_libtool_lock" 6653 6654 6655 case $host_os in 6656 rhapsody* | darwin*) 6657 if test -n "$ac_tool_prefix"; then 6658 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6659set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6661$as_echo_n "checking for $ac_word... " >&6; } 6662if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6663 $as_echo_n "(cached) " >&6 6664else 6665 if test -n "$DSYMUTIL"; then 6666 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6667else 6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6669for as_dir in $PATH 6670do 6671 IFS=$as_save_IFS 6672 test -z "$as_dir" && as_dir=. 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6675 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6677 break 2 6678 fi 6679done 6680 done 6681IFS=$as_save_IFS 6682 6683fi 6684fi 6685DSYMUTIL=$ac_cv_prog_DSYMUTIL 6686if test -n "$DSYMUTIL"; then 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6688$as_echo "$DSYMUTIL" >&6; } 6689else 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6691$as_echo "no" >&6; } 6692fi 6693 6694 6695fi 6696if test -z "$ac_cv_prog_DSYMUTIL"; then 6697 ac_ct_DSYMUTIL=$DSYMUTIL 6698 # Extract the first word of "dsymutil", so it can be a program name with args. 6699set dummy dsymutil; ac_word=$2 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6701$as_echo_n "checking for $ac_word... " >&6; } 6702if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 if test -n "$ac_ct_DSYMUTIL"; then 6706 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6707else 6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709for as_dir in $PATH 6710do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6715 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720 done 6721IFS=$as_save_IFS 6722 6723fi 6724fi 6725ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6726if test -n "$ac_ct_DSYMUTIL"; then 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6728$as_echo "$ac_ct_DSYMUTIL" >&6; } 6729else 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6731$as_echo "no" >&6; } 6732fi 6733 6734 if test "x$ac_ct_DSYMUTIL" = x; then 6735 DSYMUTIL=":" 6736 else 6737 case $cross_compiling:$ac_tool_warned in 6738yes:) 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6741ac_tool_warned=yes ;; 6742esac 6743 DSYMUTIL=$ac_ct_DSYMUTIL 6744 fi 6745else 6746 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6747fi 6748 6749 if test -n "$ac_tool_prefix"; then 6750 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6751set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6753$as_echo_n "checking for $ac_word... " >&6; } 6754if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 if test -n "$NMEDIT"; then 6758 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6759else 6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6761for as_dir in $PATH 6762do 6763 IFS=$as_save_IFS 6764 test -z "$as_dir" && as_dir=. 6765 for ac_exec_ext in '' $ac_executable_extensions; do 6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6767 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6769 break 2 6770 fi 6771done 6772 done 6773IFS=$as_save_IFS 6774 6775fi 6776fi 6777NMEDIT=$ac_cv_prog_NMEDIT 6778if test -n "$NMEDIT"; then 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6780$as_echo "$NMEDIT" >&6; } 6781else 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6783$as_echo "no" >&6; } 6784fi 6785 6786 6787fi 6788if test -z "$ac_cv_prog_NMEDIT"; then 6789 ac_ct_NMEDIT=$NMEDIT 6790 # Extract the first word of "nmedit", so it can be a program name with args. 6791set dummy nmedit; ac_word=$2 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6793$as_echo_n "checking for $ac_word... " >&6; } 6794if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6795 $as_echo_n "(cached) " >&6 6796else 6797 if test -n "$ac_ct_NMEDIT"; then 6798 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6799else 6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6801for as_dir in $PATH 6802do 6803 IFS=$as_save_IFS 6804 test -z "$as_dir" && as_dir=. 6805 for ac_exec_ext in '' $ac_executable_extensions; do 6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6807 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6809 break 2 6810 fi 6811done 6812 done 6813IFS=$as_save_IFS 6814 6815fi 6816fi 6817ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6818if test -n "$ac_ct_NMEDIT"; then 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6820$as_echo "$ac_ct_NMEDIT" >&6; } 6821else 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6823$as_echo "no" >&6; } 6824fi 6825 6826 if test "x$ac_ct_NMEDIT" = x; then 6827 NMEDIT=":" 6828 else 6829 case $cross_compiling:$ac_tool_warned in 6830yes:) 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6833ac_tool_warned=yes ;; 6834esac 6835 NMEDIT=$ac_ct_NMEDIT 6836 fi 6837else 6838 NMEDIT="$ac_cv_prog_NMEDIT" 6839fi 6840 6841 if test -n "$ac_tool_prefix"; then 6842 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6843set dummy ${ac_tool_prefix}lipo; ac_word=$2 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6845$as_echo_n "checking for $ac_word... " >&6; } 6846if test "${ac_cv_prog_LIPO+set}" = set; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 if test -n "$LIPO"; then 6850 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6851else 6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6853for as_dir in $PATH 6854do 6855 IFS=$as_save_IFS 6856 test -z "$as_dir" && as_dir=. 6857 for ac_exec_ext in '' $ac_executable_extensions; do 6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6859 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6861 break 2 6862 fi 6863done 6864 done 6865IFS=$as_save_IFS 6866 6867fi 6868fi 6869LIPO=$ac_cv_prog_LIPO 6870if test -n "$LIPO"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6872$as_echo "$LIPO" >&6; } 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877 6878 6879fi 6880if test -z "$ac_cv_prog_LIPO"; then 6881 ac_ct_LIPO=$LIPO 6882 # Extract the first word of "lipo", so it can be a program name with args. 6883set dummy lipo; ac_word=$2 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885$as_echo_n "checking for $ac_word... " >&6; } 6886if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 if test -n "$ac_ct_LIPO"; then 6890 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6891else 6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6893for as_dir in $PATH 6894do 6895 IFS=$as_save_IFS 6896 test -z "$as_dir" && as_dir=. 6897 for ac_exec_ext in '' $ac_executable_extensions; do 6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6899 ac_cv_prog_ac_ct_LIPO="lipo" 6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6901 break 2 6902 fi 6903done 6904 done 6905IFS=$as_save_IFS 6906 6907fi 6908fi 6909ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6910if test -n "$ac_ct_LIPO"; then 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6912$as_echo "$ac_ct_LIPO" >&6; } 6913else 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6915$as_echo "no" >&6; } 6916fi 6917 6918 if test "x$ac_ct_LIPO" = x; then 6919 LIPO=":" 6920 else 6921 case $cross_compiling:$ac_tool_warned in 6922yes:) 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6925ac_tool_warned=yes ;; 6926esac 6927 LIPO=$ac_ct_LIPO 6928 fi 6929else 6930 LIPO="$ac_cv_prog_LIPO" 6931fi 6932 6933 if test -n "$ac_tool_prefix"; then 6934 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6935set dummy ${ac_tool_prefix}otool; ac_word=$2 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6937$as_echo_n "checking for $ac_word... " >&6; } 6938if test "${ac_cv_prog_OTOOL+set}" = set; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 if test -n "$OTOOL"; then 6942 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6943else 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6951 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956 done 6957IFS=$as_save_IFS 6958 6959fi 6960fi 6961OTOOL=$ac_cv_prog_OTOOL 6962if test -n "$OTOOL"; then 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6964$as_echo "$OTOOL" >&6; } 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 6971fi 6972if test -z "$ac_cv_prog_OTOOL"; then 6973 ac_ct_OTOOL=$OTOOL 6974 # Extract the first word of "otool", so it can be a program name with args. 6975set dummy otool; ac_word=$2 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6977$as_echo_n "checking for $ac_word... " >&6; } 6978if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 if test -n "$ac_ct_OTOOL"; then 6982 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6983else 6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6985for as_dir in $PATH 6986do 6987 IFS=$as_save_IFS 6988 test -z "$as_dir" && as_dir=. 6989 for ac_exec_ext in '' $ac_executable_extensions; do 6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6991 ac_cv_prog_ac_ct_OTOOL="otool" 6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6993 break 2 6994 fi 6995done 6996 done 6997IFS=$as_save_IFS 6998 6999fi 7000fi 7001ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7002if test -n "$ac_ct_OTOOL"; then 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7004$as_echo "$ac_ct_OTOOL" >&6; } 7005else 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7007$as_echo "no" >&6; } 7008fi 7009 7010 if test "x$ac_ct_OTOOL" = x; then 7011 OTOOL=":" 7012 else 7013 case $cross_compiling:$ac_tool_warned in 7014yes:) 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7017ac_tool_warned=yes ;; 7018esac 7019 OTOOL=$ac_ct_OTOOL 7020 fi 7021else 7022 OTOOL="$ac_cv_prog_OTOOL" 7023fi 7024 7025 if test -n "$ac_tool_prefix"; then 7026 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7027set dummy ${ac_tool_prefix}otool64; ac_word=$2 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7029$as_echo_n "checking for $ac_word... " >&6; } 7030if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 if test -n "$OTOOL64"; then 7034 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7035else 7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037for as_dir in $PATH 7038do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7043 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047done 7048 done 7049IFS=$as_save_IFS 7050 7051fi 7052fi 7053OTOOL64=$ac_cv_prog_OTOOL64 7054if test -n "$OTOOL64"; then 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7056$as_echo "$OTOOL64" >&6; } 7057else 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7059$as_echo "no" >&6; } 7060fi 7061 7062 7063fi 7064if test -z "$ac_cv_prog_OTOOL64"; then 7065 ac_ct_OTOOL64=$OTOOL64 7066 # Extract the first word of "otool64", so it can be a program name with args. 7067set dummy otool64; ac_word=$2 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7069$as_echo_n "checking for $ac_word... " >&6; } 7070if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 if test -n "$ac_ct_OTOOL64"; then 7074 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7075else 7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077for as_dir in $PATH 7078do 7079 IFS=$as_save_IFS 7080 test -z "$as_dir" && as_dir=. 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7083 ac_cv_prog_ac_ct_OTOOL64="otool64" 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087done 7088 done 7089IFS=$as_save_IFS 7090 7091fi 7092fi 7093ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7094if test -n "$ac_ct_OTOOL64"; then 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7096$as_echo "$ac_ct_OTOOL64" >&6; } 7097else 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7099$as_echo "no" >&6; } 7100fi 7101 7102 if test "x$ac_ct_OTOOL64" = x; then 7103 OTOOL64=":" 7104 else 7105 case $cross_compiling:$ac_tool_warned in 7106yes:) 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7109ac_tool_warned=yes ;; 7110esac 7111 OTOOL64=$ac_ct_OTOOL64 7112 fi 7113else 7114 OTOOL64="$ac_cv_prog_OTOOL64" 7115fi 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7144$as_echo_n "checking for -single_module linker flag... " >&6; } 7145if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 lt_cv_apple_cc_single_mod=no 7149 if test -z "${LT_MULTI_MODULE}"; then 7150 # By default we will add the -single_module flag. You can override 7151 # by either setting the environment variable LT_MULTI_MODULE 7152 # non-empty at configure time, or by adding -multi_module to the 7153 # link flags. 7154 rm -rf libconftest.dylib* 7155 echo "int foo(void){return 1;}" > conftest.c 7156 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7157-dynamiclib -Wl,-single_module conftest.c" >&5 7158 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7159 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7160 _lt_result=$? 7161 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7162 lt_cv_apple_cc_single_mod=yes 7163 else 7164 cat conftest.err >&5 7165 fi 7166 rm -rf libconftest.dylib* 7167 rm -f conftest.* 7168 fi 7169fi 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7171$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7173$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7174if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 lt_cv_ld_exported_symbols_list=no 7178 save_LDFLAGS=$LDFLAGS 7179 echo "_main" > conftest.sym 7180 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7182/* end confdefs.h. */ 7183 7184int 7185main () 7186{ 7187 7188 ; 7189 return 0; 7190} 7191_ACEOF 7192if ac_fn_c_try_link "$LINENO"; then : 7193 lt_cv_ld_exported_symbols_list=yes 7194else 7195 lt_cv_ld_exported_symbols_list=no 7196fi 7197rm -f core conftest.err conftest.$ac_objext \ 7198 conftest$ac_exeext conftest.$ac_ext 7199 LDFLAGS="$save_LDFLAGS" 7200 7201fi 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7203$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7205$as_echo_n "checking for -force_load linker flag... " >&6; } 7206if test "${lt_cv_ld_force_load+set}" = set; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 lt_cv_ld_force_load=no 7210 cat > conftest.c << _LT_EOF 7211int forced_loaded() { return 2;} 7212_LT_EOF 7213 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7214 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7215 echo "$AR cru libconftest.a conftest.o" >&5 7216 $AR cru libconftest.a conftest.o 2>&5 7217 cat > conftest.c << _LT_EOF 7218int main() { return 0;} 7219_LT_EOF 7220 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7221 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7222 _lt_result=$? 7223 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7224 lt_cv_ld_force_load=yes 7225 else 7226 cat conftest.err >&5 7227 fi 7228 rm -f conftest.err libconftest.a conftest conftest.c 7229 rm -rf conftest.dSYM 7230 7231fi 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7233$as_echo "$lt_cv_ld_force_load" >&6; } 7234 case $host_os in 7235 rhapsody* | darwin1.[012]) 7236 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7237 darwin1.*) 7238 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7239 darwin*) # darwin 5.x on 7240 # if running on 10.5 or later, the deployment target defaults 7241 # to the OS version, if on x86, and 10.4, the deployment 7242 # target defaults to 10.4. Don't you love it? 7243 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7244 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7245 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7246 10.[012]*) 7247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7248 10.*) 7249 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7250 esac 7251 ;; 7252 esac 7253 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7254 _lt_dar_single_mod='$single_module' 7255 fi 7256 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7257 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7258 else 7259 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7260 fi 7261 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7262 _lt_dsymutil='~$DSYMUTIL $lib || :' 7263 else 7264 _lt_dsymutil= 7265 fi 7266 ;; 7267 esac 7268 7269ac_ext=c 7270ac_cpp='$CPP $CPPFLAGS' 7271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7273ac_compiler_gnu=$ac_cv_c_compiler_gnu 7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7275$as_echo_n "checking how to run the C preprocessor... " >&6; } 7276# On Suns, sometimes $CPP names a directory. 7277if test -n "$CPP" && test -d "$CPP"; then 7278 CPP= 7279fi 7280if test -z "$CPP"; then 7281 if test "${ac_cv_prog_CPP+set}" = set; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 # Double quotes because CPP needs to be expanded 7285 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7286 do 7287 ac_preproc_ok=false 7288for ac_c_preproc_warn_flag in '' yes 7289do 7290 # Use a header file that comes with gcc, so configuring glibc 7291 # with a fresh cross-compiler works. 7292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7293 # <limits.h> exists even on freestanding compilers. 7294 # On the NeXT, cc -E runs the code through the compiler's parser, 7295 # not just through cpp. "Syntax error" is here to catch this case. 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298#ifdef __STDC__ 7299# include <limits.h> 7300#else 7301# include <assert.h> 7302#endif 7303 Syntax error 7304_ACEOF 7305if ac_fn_c_try_cpp "$LINENO"; then : 7306 7307else 7308 # Broken: fails on valid input. 7309continue 7310fi 7311rm -f conftest.err conftest.$ac_ext 7312 7313 # OK, works on sane cases. Now check whether nonexistent headers 7314 # can be detected and how. 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317#include <ac_nonexistent.h> 7318_ACEOF 7319if ac_fn_c_try_cpp "$LINENO"; then : 7320 # Broken: success on invalid input. 7321continue 7322else 7323 # Passes both tests. 7324ac_preproc_ok=: 7325break 7326fi 7327rm -f conftest.err conftest.$ac_ext 7328 7329done 7330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7331rm -f conftest.err conftest.$ac_ext 7332if $ac_preproc_ok; then : 7333 break 7334fi 7335 7336 done 7337 ac_cv_prog_CPP=$CPP 7338 7339fi 7340 CPP=$ac_cv_prog_CPP 7341else 7342 ac_cv_prog_CPP=$CPP 7343fi 7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7345$as_echo "$CPP" >&6; } 7346ac_preproc_ok=false 7347for ac_c_preproc_warn_flag in '' yes 7348do 7349 # Use a header file that comes with gcc, so configuring glibc 7350 # with a fresh cross-compiler works. 7351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7352 # <limits.h> exists even on freestanding compilers. 7353 # On the NeXT, cc -E runs the code through the compiler's parser, 7354 # not just through cpp. "Syntax error" is here to catch this case. 7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7356/* end confdefs.h. */ 7357#ifdef __STDC__ 7358# include <limits.h> 7359#else 7360# include <assert.h> 7361#endif 7362 Syntax error 7363_ACEOF 7364if ac_fn_c_try_cpp "$LINENO"; then : 7365 7366else 7367 # Broken: fails on valid input. 7368continue 7369fi 7370rm -f conftest.err conftest.$ac_ext 7371 7372 # OK, works on sane cases. Now check whether nonexistent headers 7373 # can be detected and how. 7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7375/* end confdefs.h. */ 7376#include <ac_nonexistent.h> 7377_ACEOF 7378if ac_fn_c_try_cpp "$LINENO"; then : 7379 # Broken: success on invalid input. 7380continue 7381else 7382 # Passes both tests. 7383ac_preproc_ok=: 7384break 7385fi 7386rm -f conftest.err conftest.$ac_ext 7387 7388done 7389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7390rm -f conftest.err conftest.$ac_ext 7391if $ac_preproc_ok; then : 7392 7393else 7394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7396as_fn_error "C preprocessor \"$CPP\" fails sanity check 7397See \`config.log' for more details." "$LINENO" 5; } 7398fi 7399 7400ac_ext=c 7401ac_cpp='$CPP $CPPFLAGS' 7402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7404ac_compiler_gnu=$ac_cv_c_compiler_gnu 7405 7406 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7408$as_echo_n "checking for ANSI C header files... " >&6; } 7409if test "${ac_cv_header_stdc+set}" = set; then : 7410 $as_echo_n "(cached) " >&6 7411else 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413/* end confdefs.h. */ 7414#include <stdlib.h> 7415#include <stdarg.h> 7416#include <string.h> 7417#include <float.h> 7418 7419int 7420main () 7421{ 7422 7423 ; 7424 return 0; 7425} 7426_ACEOF 7427if ac_fn_c_try_compile "$LINENO"; then : 7428 ac_cv_header_stdc=yes 7429else 7430 ac_cv_header_stdc=no 7431fi 7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7433 7434if test $ac_cv_header_stdc = yes; then 7435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437/* end confdefs.h. */ 7438#include <string.h> 7439 7440_ACEOF 7441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7442 $EGREP "memchr" >/dev/null 2>&1; then : 7443 7444else 7445 ac_cv_header_stdc=no 7446fi 7447rm -f conftest* 7448 7449fi 7450 7451if test $ac_cv_header_stdc = yes; then 7452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455#include <stdlib.h> 7456 7457_ACEOF 7458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7459 $EGREP "free" >/dev/null 2>&1; then : 7460 7461else 7462 ac_cv_header_stdc=no 7463fi 7464rm -f conftest* 7465 7466fi 7467 7468if test $ac_cv_header_stdc = yes; then 7469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7470 if test "$cross_compiling" = yes; then : 7471 : 7472else 7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7474/* end confdefs.h. */ 7475#include <ctype.h> 7476#include <stdlib.h> 7477#if ((' ' & 0x0FF) == 0x020) 7478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7480#else 7481# define ISLOWER(c) \ 7482 (('a' <= (c) && (c) <= 'i') \ 7483 || ('j' <= (c) && (c) <= 'r') \ 7484 || ('s' <= (c) && (c) <= 'z')) 7485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7486#endif 7487 7488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7489int 7490main () 7491{ 7492 int i; 7493 for (i = 0; i < 256; i++) 7494 if (XOR (islower (i), ISLOWER (i)) 7495 || toupper (i) != TOUPPER (i)) 7496 return 2; 7497 return 0; 7498} 7499_ACEOF 7500if ac_fn_c_try_run "$LINENO"; then : 7501 7502else 7503 ac_cv_header_stdc=no 7504fi 7505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7506 conftest.$ac_objext conftest.beam conftest.$ac_ext 7507fi 7508 7509fi 7510fi 7511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7512$as_echo "$ac_cv_header_stdc" >&6; } 7513if test $ac_cv_header_stdc = yes; then 7514 7515$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7516 7517fi 7518 7519# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7520for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7521 inttypes.h stdint.h unistd.h 7522do : 7523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7524ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7525" 7526eval as_val=\$$as_ac_Header 7527 if test "x$as_val" = x""yes; then : 7528 cat >>confdefs.h <<_ACEOF 7529#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7530_ACEOF 7531 7532fi 7533 7534done 7535 7536 7537for ac_header in dlfcn.h 7538do : 7539 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7540" 7541if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7542 cat >>confdefs.h <<_ACEOF 7543#define HAVE_DLFCN_H 1 7544_ACEOF 7545 7546fi 7547 7548done 7549 7550if test -n "$ac_tool_prefix"; then 7551 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. 7552set dummy ${ac_tool_prefix}gccgo; ac_word=$2 7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7554$as_echo_n "checking for $ac_word... " >&6; } 7555if test "${ac_cv_prog_GOC+set}" = set; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 if test -n "$GOC"; then 7559 ac_cv_prog_GOC="$GOC" # Let the user override the test. 7560else 7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7562for as_dir in $PATH 7563do 7564 IFS=$as_save_IFS 7565 test -z "$as_dir" && as_dir=. 7566 for ac_exec_ext in '' $ac_executable_extensions; do 7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7568 ac_cv_prog_GOC="${ac_tool_prefix}gccgo" 7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7570 break 2 7571 fi 7572done 7573 done 7574IFS=$as_save_IFS 7575 7576fi 7577fi 7578GOC=$ac_cv_prog_GOC 7579if test -n "$GOC"; then 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 7581$as_echo "$GOC" >&6; } 7582else 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7584$as_echo "no" >&6; } 7585fi 7586 7587 7588fi 7589if test -z "$ac_cv_prog_GOC"; then 7590 ac_ct_GOC=$GOC 7591 # Extract the first word of "gccgo", so it can be a program name with args. 7592set dummy gccgo; ac_word=$2 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7594$as_echo_n "checking for $ac_word... " >&6; } 7595if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 if test -n "$ac_ct_GOC"; then 7599 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test. 7600else 7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7602for as_dir in $PATH 7603do 7604 IFS=$as_save_IFS 7605 test -z "$as_dir" && as_dir=. 7606 for ac_exec_ext in '' $ac_executable_extensions; do 7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7608 ac_cv_prog_ac_ct_GOC="gccgo" 7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7610 break 2 7611 fi 7612done 7613 done 7614IFS=$as_save_IFS 7615 7616fi 7617fi 7618ac_ct_GOC=$ac_cv_prog_ac_ct_GOC 7619if test -n "$ac_ct_GOC"; then 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5 7621$as_echo "$ac_ct_GOC" >&6; } 7622else 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7624$as_echo "no" >&6; } 7625fi 7626 7627 if test "x$ac_ct_GOC" = x; then 7628 GOC="" 7629 else 7630 case $cross_compiling:$ac_tool_warned in 7631yes:) 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7634ac_tool_warned=yes ;; 7635esac 7636 GOC=$ac_ct_GOC 7637 fi 7638else 7639 GOC="$ac_cv_prog_GOC" 7640fi 7641 7642 7643 7644 7645 7646 7647# Set options 7648 7649 7650 7651 7652 enable_win32_dll=no 7653 7654 7655 # Check whether --enable-shared was given. 7656if test "${enable_shared+set}" = set; then : 7657 enableval=$enable_shared; p=${PACKAGE-default} 7658 case $enableval in 7659 yes) enable_shared=yes ;; 7660 no) enable_shared=no ;; 7661 *) 7662 enable_shared=no 7663 # Look at the argument we got. We use all the common list separators. 7664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7665 for pkg in $enableval; do 7666 IFS="$lt_save_ifs" 7667 if test "X$pkg" = "X$p"; then 7668 enable_shared=yes 7669 fi 7670 done 7671 IFS="$lt_save_ifs" 7672 ;; 7673 esac 7674else 7675 enable_shared=yes 7676fi 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 # Check whether --enable-static was given. 7687if test "${enable_static+set}" = set; then : 7688 enableval=$enable_static; p=${PACKAGE-default} 7689 case $enableval in 7690 yes) enable_static=yes ;; 7691 no) enable_static=no ;; 7692 *) 7693 enable_static=no 7694 # Look at the argument we got. We use all the common list separators. 7695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7696 for pkg in $enableval; do 7697 IFS="$lt_save_ifs" 7698 if test "X$pkg" = "X$p"; then 7699 enable_static=yes 7700 fi 7701 done 7702 IFS="$lt_save_ifs" 7703 ;; 7704 esac 7705else 7706 enable_static=yes 7707fi 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718# Check whether --with-pic was given. 7719if test "${with_pic+set}" = set; then : 7720 withval=$with_pic; pic_mode="$withval" 7721else 7722 pic_mode=default 7723fi 7724 7725 7726test -z "$pic_mode" && pic_mode=default 7727 7728 7729 7730 7731 7732 7733 7734 # Check whether --enable-fast-install was given. 7735if test "${enable_fast_install+set}" = set; then : 7736 enableval=$enable_fast_install; p=${PACKAGE-default} 7737 case $enableval in 7738 yes) enable_fast_install=yes ;; 7739 no) enable_fast_install=no ;; 7740 *) 7741 enable_fast_install=no 7742 # Look at the argument we got. We use all the common list separators. 7743 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7744 for pkg in $enableval; do 7745 IFS="$lt_save_ifs" 7746 if test "X$pkg" = "X$p"; then 7747 enable_fast_install=yes 7748 fi 7749 done 7750 IFS="$lt_save_ifs" 7751 ;; 7752 esac 7753else 7754 enable_fast_install=yes 7755fi 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767# This can be used to rebuild libtool when needed 7768LIBTOOL_DEPS="$ltmain" 7769 7770# Always use our own libtool. 7771LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798test -z "$LN_S" && LN_S="ln -s" 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813if test -n "${ZSH_VERSION+set}" ; then 7814 setopt NO_GLOB_SUBST 7815fi 7816 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7818$as_echo_n "checking for objdir... " >&6; } 7819if test "${lt_cv_objdir+set}" = set; then : 7820 $as_echo_n "(cached) " >&6 7821else 7822 rm -f .libs 2>/dev/null 7823mkdir .libs 2>/dev/null 7824if test -d .libs; then 7825 lt_cv_objdir=.libs 7826else 7827 # MS-DOS does not allow filenames that begin with a dot. 7828 lt_cv_objdir=_libs 7829fi 7830rmdir .libs 2>/dev/null 7831fi 7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7833$as_echo "$lt_cv_objdir" >&6; } 7834objdir=$lt_cv_objdir 7835 7836 7837 7838 7839 7840cat >>confdefs.h <<_ACEOF 7841#define LT_OBJDIR "$lt_cv_objdir/" 7842_ACEOF 7843 7844 7845 7846 7847case $host_os in 7848aix3*) 7849 # AIX sometimes has problems with the GCC collect2 program. For some 7850 # reason, if we set the COLLECT_NAMES environment variable, the problems 7851 # vanish in a puff of smoke. 7852 if test "X${COLLECT_NAMES+set}" != Xset; then 7853 COLLECT_NAMES= 7854 export COLLECT_NAMES 7855 fi 7856 ;; 7857esac 7858 7859# Global variables: 7860ofile=libtool 7861can_build_shared=yes 7862 7863# All known linkers require a `.a' archive for static linking (except MSVC, 7864# which needs '.lib'). 7865libext=a 7866 7867with_gnu_ld="$lt_cv_prog_gnu_ld" 7868 7869old_CC="$CC" 7870old_CFLAGS="$CFLAGS" 7871 7872# Set sane defaults for various variables 7873test -z "$CC" && CC=cc 7874test -z "$LTCC" && LTCC=$CC 7875test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7876test -z "$LD" && LD=ld 7877test -z "$ac_objext" && ac_objext=o 7878 7879for cc_temp in $compiler""; do 7880 case $cc_temp in 7881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7883 \-*) ;; 7884 *) break;; 7885 esac 7886done 7887cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7888 7889 7890# Only perform the check for file, if the check method requires it 7891test -z "$MAGIC_CMD" && MAGIC_CMD=file 7892case $deplibs_check_method in 7893file_magic*) 7894 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7896$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7897if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 case $MAGIC_CMD in 7901[\\/*] | ?:[\\/]*) 7902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7903 ;; 7904*) 7905 lt_save_MAGIC_CMD="$MAGIC_CMD" 7906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7908 for ac_dir in $ac_dummy; do 7909 IFS="$lt_save_ifs" 7910 test -z "$ac_dir" && ac_dir=. 7911 if test -f $ac_dir/${ac_tool_prefix}file; then 7912 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7913 if test -n "$file_magic_test_file"; then 7914 case $deplibs_check_method in 7915 "file_magic "*) 7916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7919 $EGREP "$file_magic_regex" > /dev/null; then 7920 : 7921 else 7922 cat <<_LT_EOF 1>&2 7923 7924*** Warning: the command libtool uses to detect shared libraries, 7925*** $file_magic_cmd, produces output that libtool cannot recognize. 7926*** The result is that libtool may fail to recognize shared libraries 7927*** as such. This will affect the creation of libtool libraries that 7928*** depend on shared libraries, but programs linked with such libtool 7929*** libraries will work regardless of this problem. Nevertheless, you 7930*** may want to report the problem to your system manager and/or to 7931*** bug-libtool@gnu.org 7932 7933_LT_EOF 7934 fi ;; 7935 esac 7936 fi 7937 break 7938 fi 7939 done 7940 IFS="$lt_save_ifs" 7941 MAGIC_CMD="$lt_save_MAGIC_CMD" 7942 ;; 7943esac 7944fi 7945 7946MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7947if test -n "$MAGIC_CMD"; then 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7949$as_echo "$MAGIC_CMD" >&6; } 7950else 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7952$as_echo "no" >&6; } 7953fi 7954 7955 7956 7957 7958 7959if test -z "$lt_cv_path_MAGIC_CMD"; then 7960 if test -n "$ac_tool_prefix"; then 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7962$as_echo_n "checking for file... " >&6; } 7963if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7964 $as_echo_n "(cached) " >&6 7965else 7966 case $MAGIC_CMD in 7967[\\/*] | ?:[\\/]*) 7968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7969 ;; 7970*) 7971 lt_save_MAGIC_CMD="$MAGIC_CMD" 7972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7974 for ac_dir in $ac_dummy; do 7975 IFS="$lt_save_ifs" 7976 test -z "$ac_dir" && ac_dir=. 7977 if test -f $ac_dir/file; then 7978 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7979 if test -n "$file_magic_test_file"; then 7980 case $deplibs_check_method in 7981 "file_magic "*) 7982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7985 $EGREP "$file_magic_regex" > /dev/null; then 7986 : 7987 else 7988 cat <<_LT_EOF 1>&2 7989 7990*** Warning: the command libtool uses to detect shared libraries, 7991*** $file_magic_cmd, produces output that libtool cannot recognize. 7992*** The result is that libtool may fail to recognize shared libraries 7993*** as such. This will affect the creation of libtool libraries that 7994*** depend on shared libraries, but programs linked with such libtool 7995*** libraries will work regardless of this problem. Nevertheless, you 7996*** may want to report the problem to your system manager and/or to 7997*** bug-libtool@gnu.org 7998 7999_LT_EOF 8000 fi ;; 8001 esac 8002 fi 8003 break 8004 fi 8005 done 8006 IFS="$lt_save_ifs" 8007 MAGIC_CMD="$lt_save_MAGIC_CMD" 8008 ;; 8009esac 8010fi 8011 8012MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8013if test -n "$MAGIC_CMD"; then 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8015$as_echo "$MAGIC_CMD" >&6; } 8016else 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8018$as_echo "no" >&6; } 8019fi 8020 8021 8022 else 8023 MAGIC_CMD=: 8024 fi 8025fi 8026 8027 fi 8028 ;; 8029esac 8030 8031# Use C for the default configuration in the libtool script 8032 8033lt_save_CC="$CC" 8034ac_ext=c 8035ac_cpp='$CPP $CPPFLAGS' 8036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8038ac_compiler_gnu=$ac_cv_c_compiler_gnu 8039 8040 8041# Source file extension for C test sources. 8042ac_ext=c 8043 8044# Object file extension for compiled C test sources. 8045objext=o 8046objext=$objext 8047 8048# Code to be used in simple compile tests 8049lt_simple_compile_test_code="int some_variable = 0;" 8050 8051# Code to be used in simple link tests 8052lt_simple_link_test_code='int main(){return(0);}' 8053 8054 8055 8056 8057 8058 8059 8060# If no C compiler was specified, use CC. 8061LTCC=${LTCC-"$CC"} 8062 8063# If no C compiler flags were specified, use CFLAGS. 8064LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8065 8066# Allow CC to be a program name with arguments. 8067compiler=$CC 8068 8069# Save the default compiler, since it gets overwritten when the other 8070# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8071compiler_DEFAULT=$CC 8072 8073# save warnings/boilerplate of simple test code 8074ac_outfile=conftest.$ac_objext 8075echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8076eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8077_lt_compiler_boilerplate=`cat conftest.err` 8078$RM conftest* 8079 8080ac_outfile=conftest.$ac_objext 8081echo "$lt_simple_link_test_code" >conftest.$ac_ext 8082eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8083_lt_linker_boilerplate=`cat conftest.err` 8084$RM -r conftest* 8085 8086 8087## CAVEAT EMPTOR: 8088## There is no encapsulation within the following macros, do not change 8089## the running order or otherwise move them around unless you know exactly 8090## what you are doing... 8091if test -n "$compiler"; then 8092 8093lt_prog_compiler_no_builtin_flag= 8094 8095if test "$GCC" = yes; then 8096 case $cc_basename in 8097 nvcc*) 8098 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8099 *) 8100 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8101 esac 8102 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8104$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8105if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 lt_cv_prog_compiler_rtti_exceptions=no 8109 ac_outfile=conftest.$ac_objext 8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8111 lt_compiler_flag="-fno-rtti -fno-exceptions" 8112 # Insert the option either (1) after the last *FLAGS variable, or 8113 # (2) before a word containing "conftest.", or (3) at the end. 8114 # Note that $ac_compile itself does not contain backslashes and begins 8115 # with a dollar sign (not a hyphen), so the echo should work correctly. 8116 # The option is referenced via a variable to avoid confusing sed. 8117 lt_compile=`echo "$ac_compile" | $SED \ 8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8120 -e 's:$: $lt_compiler_flag:'` 8121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8122 (eval "$lt_compile" 2>conftest.err) 8123 ac_status=$? 8124 cat conftest.err >&5 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8126 if (exit $ac_status) && test -s "$ac_outfile"; then 8127 # The compiler can only warn and ignore the option if not recognized 8128 # So say no if there are warnings other than the usual output. 8129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8132 lt_cv_prog_compiler_rtti_exceptions=yes 8133 fi 8134 fi 8135 $RM conftest* 8136 8137fi 8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8139$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8140 8141if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8142 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8143else 8144 : 8145fi 8146 8147fi 8148 8149 8150 8151 8152 8153 8154 lt_prog_compiler_wl= 8155lt_prog_compiler_pic= 8156lt_prog_compiler_static= 8157 8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8159$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8160 8161 if test "$GCC" = yes; then 8162 lt_prog_compiler_wl='-Wl,' 8163 lt_prog_compiler_static='-static' 8164 8165 case $host_os in 8166 aix*) 8167 # All AIX code is PIC. 8168 if test "$host_cpu" = ia64; then 8169 # AIX 5 now supports IA64 processor 8170 lt_prog_compiler_static='-Bstatic' 8171 fi 8172 ;; 8173 8174 amigaos*) 8175 case $host_cpu in 8176 powerpc) 8177 # see comment about AmigaOS4 .so support 8178 lt_prog_compiler_pic='-fPIC' 8179 ;; 8180 m68k) 8181 # FIXME: we need at least 68020 code to build shared libraries, but 8182 # adding the `-m68020' flag to GCC prevents building anything better, 8183 # like `-m68040'. 8184 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8185 ;; 8186 esac 8187 ;; 8188 8189 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8190 # PIC is the default for these OSes. 8191 ;; 8192 8193 mingw* | cygwin* | pw32* | os2* | cegcc*) 8194 # This hack is so that the source file can tell whether it is being 8195 # built for inclusion in a dll (and should export symbols for example). 8196 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8197 # (--disable-auto-import) libraries 8198 lt_prog_compiler_pic='-DDLL_EXPORT' 8199 ;; 8200 8201 darwin* | rhapsody*) 8202 # PIC is the default on this platform 8203 # Common symbols not allowed in MH_DYLIB files 8204 lt_prog_compiler_pic='-fno-common' 8205 ;; 8206 8207 haiku*) 8208 # PIC is the default for Haiku. 8209 # The "-static" flag exists, but is broken. 8210 lt_prog_compiler_static= 8211 ;; 8212 8213 hpux*) 8214 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8215 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8216 # sets the default TLS model and affects inlining. 8217 case $host_cpu in 8218 hppa*64*) 8219 # +Z the default 8220 ;; 8221 *) 8222 lt_prog_compiler_pic='-fPIC' 8223 ;; 8224 esac 8225 ;; 8226 8227 interix[3-9]*) 8228 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8229 # Instead, we relocate shared libraries at runtime. 8230 ;; 8231 8232 msdosdjgpp*) 8233 # Just because we use GCC doesn't mean we suddenly get shared libraries 8234 # on systems that don't support them. 8235 lt_prog_compiler_can_build_shared=no 8236 enable_shared=no 8237 ;; 8238 8239 *nto* | *qnx*) 8240 # QNX uses GNU C++, but need to define -shared option too, otherwise 8241 # it will coredump. 8242 lt_prog_compiler_pic='-fPIC -shared' 8243 ;; 8244 8245 sysv4*MP*) 8246 if test -d /usr/nec; then 8247 lt_prog_compiler_pic=-Kconform_pic 8248 fi 8249 ;; 8250 8251 *) 8252 lt_prog_compiler_pic='-fPIC' 8253 ;; 8254 esac 8255 8256 case $cc_basename in 8257 nvcc*) # Cuda Compiler Driver 2.2 8258 lt_prog_compiler_wl='-Xlinker ' 8259 lt_prog_compiler_pic='-Xcompiler -fPIC' 8260 ;; 8261 esac 8262 else 8263 # PORTME Check for flag to pass linker flags through the system compiler. 8264 case $host_os in 8265 aix*) 8266 lt_prog_compiler_wl='-Wl,' 8267 if test "$host_cpu" = ia64; then 8268 # AIX 5 now supports IA64 processor 8269 lt_prog_compiler_static='-Bstatic' 8270 else 8271 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8272 fi 8273 ;; 8274 8275 mingw* | cygwin* | pw32* | os2* | cegcc*) 8276 # This hack is so that the source file can tell whether it is being 8277 # built for inclusion in a dll (and should export symbols for example). 8278 lt_prog_compiler_pic='-DDLL_EXPORT' 8279 ;; 8280 8281 hpux9* | hpux10* | hpux11*) 8282 lt_prog_compiler_wl='-Wl,' 8283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8284 # not for PA HP-UX. 8285 case $host_cpu in 8286 hppa*64*|ia64*) 8287 # +Z the default 8288 ;; 8289 *) 8290 lt_prog_compiler_pic='+Z' 8291 ;; 8292 esac 8293 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8294 lt_prog_compiler_static='${wl}-a ${wl}archive' 8295 ;; 8296 8297 irix5* | irix6* | nonstopux*) 8298 lt_prog_compiler_wl='-Wl,' 8299 # PIC (with -KPIC) is the default. 8300 lt_prog_compiler_static='-non_shared' 8301 ;; 8302 8303 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8304 case $cc_basename in 8305 # old Intel for x86_64 which still supported -KPIC. 8306 ecc*) 8307 lt_prog_compiler_wl='-Wl,' 8308 lt_prog_compiler_pic='-KPIC' 8309 lt_prog_compiler_static='-static' 8310 ;; 8311 # icc used to be incompatible with GCC. 8312 # ICC 10 doesn't accept -KPIC any more. 8313 icc* | ifort*) 8314 lt_prog_compiler_wl='-Wl,' 8315 lt_prog_compiler_pic='-fPIC' 8316 lt_prog_compiler_static='-static' 8317 ;; 8318 # Lahey Fortran 8.1. 8319 lf95*) 8320 lt_prog_compiler_wl='-Wl,' 8321 lt_prog_compiler_pic='--shared' 8322 lt_prog_compiler_static='--static' 8323 ;; 8324 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8325 # Portland Group compilers (*not* the Pentium gcc compiler, 8326 # which looks to be a dead project) 8327 lt_prog_compiler_wl='-Wl,' 8328 lt_prog_compiler_pic='-fpic' 8329 lt_prog_compiler_static='-Bstatic' 8330 ;; 8331 ccc*) 8332 lt_prog_compiler_wl='-Wl,' 8333 # All Alpha code is PIC. 8334 lt_prog_compiler_static='-non_shared' 8335 ;; 8336 xl* | bgxl* | bgf* | mpixl*) 8337 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8338 lt_prog_compiler_wl='-Wl,' 8339 lt_prog_compiler_pic='-qpic' 8340 lt_prog_compiler_static='-qstaticlink' 8341 ;; 8342 *) 8343 case `$CC -V 2>&1 | sed 5q` in 8344 *Sun\ F* | *Sun*Fortran*) 8345 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8346 lt_prog_compiler_pic='-KPIC' 8347 lt_prog_compiler_static='-Bstatic' 8348 lt_prog_compiler_wl='' 8349 ;; 8350 *Sun\ C*) 8351 # Sun C 5.9 8352 lt_prog_compiler_pic='-KPIC' 8353 lt_prog_compiler_static='-Bstatic' 8354 lt_prog_compiler_wl='-Wl,' 8355 ;; 8356 esac 8357 ;; 8358 esac 8359 ;; 8360 8361 newsos6) 8362 lt_prog_compiler_pic='-KPIC' 8363 lt_prog_compiler_static='-Bstatic' 8364 ;; 8365 8366 *nto* | *qnx*) 8367 # QNX uses GNU C++, but need to define -shared option too, otherwise 8368 # it will coredump. 8369 lt_prog_compiler_pic='-fPIC -shared' 8370 ;; 8371 8372 osf3* | osf4* | osf5*) 8373 lt_prog_compiler_wl='-Wl,' 8374 # All OSF/1 code is PIC. 8375 lt_prog_compiler_static='-non_shared' 8376 ;; 8377 8378 rdos*) 8379 lt_prog_compiler_static='-non_shared' 8380 ;; 8381 8382 solaris*) 8383 lt_prog_compiler_pic='-KPIC' 8384 lt_prog_compiler_static='-Bstatic' 8385 case $cc_basename in 8386 f77* | f90* | f95*) 8387 lt_prog_compiler_wl='-Qoption ld ';; 8388 *) 8389 lt_prog_compiler_wl='-Wl,';; 8390 esac 8391 ;; 8392 8393 sunos4*) 8394 lt_prog_compiler_wl='-Qoption ld ' 8395 lt_prog_compiler_pic='-PIC' 8396 lt_prog_compiler_static='-Bstatic' 8397 ;; 8398 8399 sysv4 | sysv4.2uw2* | sysv4.3*) 8400 lt_prog_compiler_wl='-Wl,' 8401 lt_prog_compiler_pic='-KPIC' 8402 lt_prog_compiler_static='-Bstatic' 8403 ;; 8404 8405 sysv4*MP*) 8406 if test -d /usr/nec ;then 8407 lt_prog_compiler_pic='-Kconform_pic' 8408 lt_prog_compiler_static='-Bstatic' 8409 fi 8410 ;; 8411 8412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8413 lt_prog_compiler_wl='-Wl,' 8414 lt_prog_compiler_pic='-KPIC' 8415 lt_prog_compiler_static='-Bstatic' 8416 ;; 8417 8418 unicos*) 8419 lt_prog_compiler_wl='-Wl,' 8420 lt_prog_compiler_can_build_shared=no 8421 ;; 8422 8423 uts4*) 8424 lt_prog_compiler_pic='-pic' 8425 lt_prog_compiler_static='-Bstatic' 8426 ;; 8427 8428 *) 8429 lt_prog_compiler_can_build_shared=no 8430 ;; 8431 esac 8432 fi 8433 8434case $host_os in 8435 # For platforms which do not support PIC, -DPIC is meaningless: 8436 *djgpp*) 8437 lt_prog_compiler_pic= 8438 ;; 8439 *) 8440 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8441 ;; 8442esac 8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8444$as_echo "$lt_prog_compiler_pic" >&6; } 8445 8446 8447 8448 8449 8450 8451# 8452# Check to make sure the PIC flag actually works. 8453# 8454if test -n "$lt_prog_compiler_pic"; then 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8456$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8457if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8458 $as_echo_n "(cached) " >&6 8459else 8460 lt_cv_prog_compiler_pic_works=no 8461 ac_outfile=conftest.$ac_objext 8462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8463 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8464 # Insert the option either (1) after the last *FLAGS variable, or 8465 # (2) before a word containing "conftest.", or (3) at the end. 8466 # Note that $ac_compile itself does not contain backslashes and begins 8467 # with a dollar sign (not a hyphen), so the echo should work correctly. 8468 # The option is referenced via a variable to avoid confusing sed. 8469 lt_compile=`echo "$ac_compile" | $SED \ 8470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8472 -e 's:$: $lt_compiler_flag:'` 8473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8474 (eval "$lt_compile" 2>conftest.err) 8475 ac_status=$? 8476 cat conftest.err >&5 8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8478 if (exit $ac_status) && test -s "$ac_outfile"; then 8479 # The compiler can only warn and ignore the option if not recognized 8480 # So say no if there are warnings other than the usual output. 8481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8484 lt_cv_prog_compiler_pic_works=yes 8485 fi 8486 fi 8487 $RM conftest* 8488 8489fi 8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8491$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8492 8493if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8494 case $lt_prog_compiler_pic in 8495 "" | " "*) ;; 8496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8497 esac 8498else 8499 lt_prog_compiler_pic= 8500 lt_prog_compiler_can_build_shared=no 8501fi 8502 8503fi 8504 8505 8506 8507 8508 8509 8510# 8511# Check to make sure the static flag actually works. 8512# 8513wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8515$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8516if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 lt_cv_prog_compiler_static_works=no 8520 save_LDFLAGS="$LDFLAGS" 8521 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8522 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8523 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8524 # The linker can only warn and ignore the option if not recognized 8525 # So say no if there are warnings 8526 if test -s conftest.err; then 8527 # Append any errors to the config.log. 8528 cat conftest.err 1>&5 8529 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8531 if diff conftest.exp conftest.er2 >/dev/null; then 8532 lt_cv_prog_compiler_static_works=yes 8533 fi 8534 else 8535 lt_cv_prog_compiler_static_works=yes 8536 fi 8537 fi 8538 $RM -r conftest* 8539 LDFLAGS="$save_LDFLAGS" 8540 8541fi 8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8543$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8544 8545if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8546 : 8547else 8548 lt_prog_compiler_static= 8549fi 8550 8551 8552 8553 8554 8555 8556 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8558$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8559if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8560 $as_echo_n "(cached) " >&6 8561else 8562 lt_cv_prog_compiler_c_o=no 8563 $RM -r conftest 2>/dev/null 8564 mkdir conftest 8565 cd conftest 8566 mkdir out 8567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8568 8569 lt_compiler_flag="-o out/conftest2.$ac_objext" 8570 # Insert the option either (1) after the last *FLAGS variable, or 8571 # (2) before a word containing "conftest.", or (3) at the end. 8572 # Note that $ac_compile itself does not contain backslashes and begins 8573 # with a dollar sign (not a hyphen), so the echo should work correctly. 8574 lt_compile=`echo "$ac_compile" | $SED \ 8575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8577 -e 's:$: $lt_compiler_flag:'` 8578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8579 (eval "$lt_compile" 2>out/conftest.err) 8580 ac_status=$? 8581 cat out/conftest.err >&5 8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8583 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8584 then 8585 # The compiler can only warn and ignore the option if not recognized 8586 # So say no if there are warnings 8587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8590 lt_cv_prog_compiler_c_o=yes 8591 fi 8592 fi 8593 chmod u+w . 2>&5 8594 $RM conftest* 8595 # SGI C++ compiler will create directory out/ii_files/ for 8596 # template instantiation 8597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8598 $RM out/* && rmdir out 8599 cd .. 8600 $RM -r conftest 8601 $RM conftest* 8602 8603fi 8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8605$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8606 8607 8608 8609 8610 8611 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8613$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8614if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 lt_cv_prog_compiler_c_o=no 8618 $RM -r conftest 2>/dev/null 8619 mkdir conftest 8620 cd conftest 8621 mkdir out 8622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8623 8624 lt_compiler_flag="-o out/conftest2.$ac_objext" 8625 # Insert the option either (1) after the last *FLAGS variable, or 8626 # (2) before a word containing "conftest.", or (3) at the end. 8627 # Note that $ac_compile itself does not contain backslashes and begins 8628 # with a dollar sign (not a hyphen), so the echo should work correctly. 8629 lt_compile=`echo "$ac_compile" | $SED \ 8630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8632 -e 's:$: $lt_compiler_flag:'` 8633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8634 (eval "$lt_compile" 2>out/conftest.err) 8635 ac_status=$? 8636 cat out/conftest.err >&5 8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8638 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8639 then 8640 # The compiler can only warn and ignore the option if not recognized 8641 # So say no if there are warnings 8642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8645 lt_cv_prog_compiler_c_o=yes 8646 fi 8647 fi 8648 chmod u+w . 2>&5 8649 $RM conftest* 8650 # SGI C++ compiler will create directory out/ii_files/ for 8651 # template instantiation 8652 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8653 $RM out/* && rmdir out 8654 cd .. 8655 $RM -r conftest 8656 $RM conftest* 8657 8658fi 8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8660$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8661 8662 8663 8664 8665hard_links="nottested" 8666if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8667 # do not overwrite the value of need_locks provided by the user 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8669$as_echo_n "checking if we can lock with hard links... " >&6; } 8670 hard_links=yes 8671 $RM conftest* 8672 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8673 touch conftest.a 8674 ln conftest.a conftest.b 2>&5 || hard_links=no 8675 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8677$as_echo "$hard_links" >&6; } 8678 if test "$hard_links" = no; then 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8680$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8681 need_locks=warn 8682 fi 8683else 8684 need_locks=no 8685fi 8686 8687 8688 8689 8690 8691 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8693$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8694 8695 runpath_var= 8696 allow_undefined_flag= 8697 always_export_symbols=no 8698 archive_cmds= 8699 archive_expsym_cmds= 8700 compiler_needs_object=no 8701 enable_shared_with_static_runtimes=no 8702 export_dynamic_flag_spec= 8703 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8704 hardcode_automatic=no 8705 hardcode_direct=no 8706 hardcode_direct_absolute=no 8707 hardcode_libdir_flag_spec= 8708 hardcode_libdir_flag_spec_ld= 8709 hardcode_libdir_separator= 8710 hardcode_minus_L=no 8711 hardcode_shlibpath_var=unsupported 8712 inherit_rpath=no 8713 link_all_deplibs=unknown 8714 module_cmds= 8715 module_expsym_cmds= 8716 old_archive_from_new_cmds= 8717 old_archive_from_expsyms_cmds= 8718 thread_safe_flag_spec= 8719 whole_archive_flag_spec= 8720 # include_expsyms should be a list of space-separated symbols to be *always* 8721 # included in the symbol list 8722 include_expsyms= 8723 # exclude_expsyms can be an extended regexp of symbols to exclude 8724 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8725 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8726 # as well as any symbol that contains `d'. 8727 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8728 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8729 # platforms (ab)use it in PIC code, but their linkers get confused if 8730 # the symbol is explicitly referenced. Since portable code cannot 8731 # rely on this symbol name, it's probably fine to never include it in 8732 # preloaded symbol tables. 8733 # Exclude shared library initialization/finalization symbols. 8734 extract_expsyms_cmds= 8735 8736 case $host_os in 8737 cygwin* | mingw* | pw32* | cegcc*) 8738 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8739 # When not using gcc, we currently assume that we are using 8740 # Microsoft Visual C++. 8741 if test "$GCC" != yes; then 8742 with_gnu_ld=no 8743 fi 8744 ;; 8745 interix*) 8746 # we just hope/assume this is gcc and not c89 (= MSVC++) 8747 with_gnu_ld=yes 8748 ;; 8749 openbsd*) 8750 with_gnu_ld=no 8751 ;; 8752 esac 8753 8754 ld_shlibs=yes 8755 8756 # On some targets, GNU ld is compatible enough with the native linker 8757 # that we're better off using the native interface for both. 8758 lt_use_gnu_ld_interface=no 8759 if test "$with_gnu_ld" = yes; then 8760 case $host_os in 8761 aix*) 8762 # The AIX port of GNU ld has always aspired to compatibility 8763 # with the native linker. However, as the warning in the GNU ld 8764 # block says, versions before 2.19.5* couldn't really create working 8765 # shared libraries, regardless of the interface used. 8766 case `$LD -v 2>&1` in 8767 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8768 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8769 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8770 *) 8771 lt_use_gnu_ld_interface=yes 8772 ;; 8773 esac 8774 ;; 8775 *) 8776 lt_use_gnu_ld_interface=yes 8777 ;; 8778 esac 8779 fi 8780 8781 if test "$lt_use_gnu_ld_interface" = yes; then 8782 # If archive_cmds runs LD, not CC, wlarc should be empty 8783 wlarc='${wl}' 8784 8785 # Set some defaults for GNU ld with shared library support. These 8786 # are reset later if shared libraries are not supported. Putting them 8787 # here allows them to be overridden if necessary. 8788 runpath_var=LD_RUN_PATH 8789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8790 export_dynamic_flag_spec='${wl}--export-dynamic' 8791 # ancient GNU ld didn't support --whole-archive et. al. 8792 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8793 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8794 else 8795 whole_archive_flag_spec= 8796 fi 8797 supports_anon_versioning=no 8798 case `$LD -v 2>&1` in 8799 *GNU\ gold*) supports_anon_versioning=yes ;; 8800 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8801 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8802 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8803 *\ 2.11.*) ;; # other 2.11 versions 8804 *) supports_anon_versioning=yes ;; 8805 esac 8806 8807 # See if GNU ld supports shared libraries. 8808 case $host_os in 8809 aix[3-9]*) 8810 # On AIX/PPC, the GNU linker is very broken 8811 if test "$host_cpu" != ia64; then 8812 ld_shlibs=no 8813 cat <<_LT_EOF 1>&2 8814 8815*** Warning: the GNU linker, at least up to release 2.19, is reported 8816*** to be unable to reliably create shared libraries on AIX. 8817*** Therefore, libtool is disabling shared libraries support. If you 8818*** really care for shared libraries, you may want to install binutils 8819*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8820*** You will then need to restart the configuration process. 8821 8822_LT_EOF 8823 fi 8824 ;; 8825 8826 amigaos*) 8827 case $host_cpu in 8828 powerpc) 8829 # see comment about AmigaOS4 .so support 8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8831 archive_expsym_cmds='' 8832 ;; 8833 m68k) 8834 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)' 8835 hardcode_libdir_flag_spec='-L$libdir' 8836 hardcode_minus_L=yes 8837 ;; 8838 esac 8839 ;; 8840 8841 beos*) 8842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8843 allow_undefined_flag=unsupported 8844 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8845 # support --undefined. This deserves some investigation. FIXME 8846 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8847 else 8848 ld_shlibs=no 8849 fi 8850 ;; 8851 8852 cygwin* | mingw* | pw32* | cegcc*) 8853 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8854 # as there is no search path for DLLs. 8855 hardcode_libdir_flag_spec='-L$libdir' 8856 export_dynamic_flag_spec='${wl}--export-all-symbols' 8857 allow_undefined_flag=unsupported 8858 always_export_symbols=no 8859 enable_shared_with_static_runtimes=yes 8860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8861 8862 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8864 # If the export-symbols file already is a .def file (1st line 8865 # is EXPORTS), use it as is; otherwise, prepend... 8866 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8867 cp $export_symbols $output_objdir/$soname.def; 8868 else 8869 echo EXPORTS > $output_objdir/$soname.def; 8870 cat $export_symbols >> $output_objdir/$soname.def; 8871 fi~ 8872 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8873 else 8874 ld_shlibs=no 8875 fi 8876 ;; 8877 8878 haiku*) 8879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8880 link_all_deplibs=yes 8881 ;; 8882 8883 interix[3-9]*) 8884 hardcode_direct=no 8885 hardcode_shlibpath_var=no 8886 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8887 export_dynamic_flag_spec='${wl}-E' 8888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8889 # Instead, shared libraries are loaded at an image base (0x10000000 by 8890 # default) and relocated if they conflict, which is a slow very memory 8891 # consuming and fragmenting process. To avoid this, we pick a random, 8892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8893 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8894 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8895 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' 8896 ;; 8897 8898 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8899 tmp_diet=no 8900 if test "$host_os" = linux-dietlibc; then 8901 case $cc_basename in 8902 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8903 esac 8904 fi 8905 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8906 && test "$tmp_diet" = no 8907 then 8908 tmp_addflag= 8909 tmp_sharedflag='-shared' 8910 case $cc_basename,$host_cpu in 8911 pgcc*) # Portland Group C compiler 8912 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' 8913 tmp_addflag=' $pic_flag' 8914 ;; 8915 pgf77* | pgf90* | pgf95* | pgfortran*) 8916 # Portland Group f77 and f90 compilers 8917 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' 8918 tmp_addflag=' $pic_flag -Mnomain' ;; 8919 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8920 tmp_addflag=' -i_dynamic' ;; 8921 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8922 tmp_addflag=' -i_dynamic -nofor_main' ;; 8923 ifc* | ifort*) # Intel Fortran compiler 8924 tmp_addflag=' -nofor_main' ;; 8925 lf95*) # Lahey Fortran 8.1 8926 whole_archive_flag_spec= 8927 tmp_sharedflag='--shared' ;; 8928 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8929 tmp_sharedflag='-qmkshrobj' 8930 tmp_addflag= ;; 8931 nvcc*) # Cuda Compiler Driver 2.2 8932 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' 8933 compiler_needs_object=yes 8934 ;; 8935 esac 8936 case `$CC -V 2>&1 | sed 5q` in 8937 *Sun\ C*) # Sun C 5.9 8938 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' 8939 compiler_needs_object=yes 8940 tmp_sharedflag='-G' ;; 8941 *Sun\ F*) # Sun Fortran 8.3 8942 tmp_sharedflag='-G' ;; 8943 esac 8944 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8945 8946 if test "x$supports_anon_versioning" = xyes; then 8947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8949 echo "local: *; };" >> $output_objdir/$libname.ver~ 8950 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8951 fi 8952 8953 case $cc_basename in 8954 xlf* | bgf* | bgxlf* | mpixlf*) 8955 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8956 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8957 hardcode_libdir_flag_spec= 8958 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8959 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8960 if test "x$supports_anon_versioning" = xyes; then 8961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8963 echo "local: *; };" >> $output_objdir/$libname.ver~ 8964 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8965 fi 8966 ;; 8967 esac 8968 else 8969 ld_shlibs=no 8970 fi 8971 ;; 8972 8973 netbsd*) 8974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8975 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8976 wlarc= 8977 else 8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8980 fi 8981 ;; 8982 8983 solaris*) 8984 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8985 ld_shlibs=no 8986 cat <<_LT_EOF 1>&2 8987 8988*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8989*** create shared libraries on Solaris systems. Therefore, libtool 8990*** is disabling shared libraries support. We urge you to upgrade GNU 8991*** binutils to release 2.9.1 or newer. Another option is to modify 8992*** your PATH or compiler configuration so that the native linker is 8993*** used, and then restart. 8994 8995_LT_EOF 8996 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8999 else 9000 ld_shlibs=no 9001 fi 9002 ;; 9003 9004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9005 case `$LD -v 2>&1` in 9006 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9007 ld_shlibs=no 9008 cat <<_LT_EOF 1>&2 9009 9010*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9011*** reliably create shared libraries on SCO systems. Therefore, libtool 9012*** is disabling shared libraries support. We urge you to upgrade GNU 9013*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9014*** your PATH or compiler configuration so that the native linker is 9015*** used, and then restart. 9016 9017_LT_EOF 9018 ;; 9019 *) 9020 # For security reasons, it is highly recommended that you always 9021 # use absolute paths for naming shared libraries, and exclude the 9022 # DT_RUNPATH tag from executables and libraries. But doing so 9023 # requires that you compile everything twice, which is a pain. 9024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9028 else 9029 ld_shlibs=no 9030 fi 9031 ;; 9032 esac 9033 ;; 9034 9035 sunos4*) 9036 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9037 wlarc= 9038 hardcode_direct=yes 9039 hardcode_shlibpath_var=no 9040 ;; 9041 9042 *) 9043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9046 else 9047 ld_shlibs=no 9048 fi 9049 ;; 9050 esac 9051 9052 if test "$ld_shlibs" = no; then 9053 runpath_var= 9054 hardcode_libdir_flag_spec= 9055 export_dynamic_flag_spec= 9056 whole_archive_flag_spec= 9057 fi 9058 else 9059 # PORTME fill in a description of your system's linker (not GNU ld) 9060 case $host_os in 9061 aix3*) 9062 allow_undefined_flag=unsupported 9063 always_export_symbols=yes 9064 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' 9065 # Note: this linker hardcodes the directories in LIBPATH if there 9066 # are no directories specified by -L. 9067 hardcode_minus_L=yes 9068 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9069 # Neither direct hardcoding nor static linking is supported with a 9070 # broken collect2. 9071 hardcode_direct=unsupported 9072 fi 9073 ;; 9074 9075 aix[4-9]*) 9076 if test "$host_cpu" = ia64; then 9077 # On IA64, the linker does run time linking by default, so we don't 9078 # have to do anything special. 9079 aix_use_runtimelinking=no 9080 exp_sym_flag='-Bexport' 9081 no_entry_flag="" 9082 else 9083 # If we're using GNU nm, then we don't want the "-C" option. 9084 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9085 # Also, AIX nm treats weak defined symbols like other global 9086 # defined symbols, whereas GNU nm marks them as "W". 9087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9088 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' 9089 else 9090 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' 9091 fi 9092 aix_use_runtimelinking=no 9093 9094 # Test if we are trying to use run time linking or normal 9095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9096 # need to do runtime linking. 9097 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9098 for ld_flag in $LDFLAGS; do 9099 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9100 aix_use_runtimelinking=yes 9101 break 9102 fi 9103 done 9104 ;; 9105 esac 9106 9107 exp_sym_flag='-bexport' 9108 no_entry_flag='-bnoentry' 9109 fi 9110 9111 # When large executables or shared objects are built, AIX ld can 9112 # have problems creating the table of contents. If linking a library 9113 # or program results in "error TOC overflow" add -mminimal-toc to 9114 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9115 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9116 9117 archive_cmds='' 9118 hardcode_direct=yes 9119 hardcode_direct_absolute=yes 9120 hardcode_libdir_separator=':' 9121 link_all_deplibs=yes 9122 file_list_spec='${wl}-f,' 9123 9124 if test "$GCC" = yes; then 9125 case $host_os in aix4.[012]|aix4.[012].*) 9126 # We only want to do this on AIX 4.2 and lower, the check 9127 # below for broken collect2 doesn't work under 4.3+ 9128 collect2name=`${CC} -print-prog-name=collect2` 9129 if test -f "$collect2name" && 9130 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9131 then 9132 # We have reworked collect2 9133 : 9134 else 9135 # We have old collect2 9136 hardcode_direct=unsupported 9137 # It fails to find uninstalled libraries when the uninstalled 9138 # path is not listed in the libpath. Setting hardcode_minus_L 9139 # to unsupported forces relinking 9140 hardcode_minus_L=yes 9141 hardcode_libdir_flag_spec='-L$libdir' 9142 hardcode_libdir_separator= 9143 fi 9144 ;; 9145 esac 9146 shared_flag='-shared' 9147 if test "$aix_use_runtimelinking" = yes; then 9148 shared_flag="$shared_flag "'${wl}-G' 9149 fi 9150 else 9151 # not using gcc 9152 if test "$host_cpu" = ia64; then 9153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9154 # chokes on -Wl,-G. The following line is correct: 9155 shared_flag='-G' 9156 else 9157 if test "$aix_use_runtimelinking" = yes; then 9158 shared_flag='${wl}-G' 9159 else 9160 shared_flag='${wl}-bM:SRE' 9161 fi 9162 fi 9163 fi 9164 9165 export_dynamic_flag_spec='${wl}-bexpall' 9166 # It seems that -bexpall does not export symbols beginning with 9167 # underscore (_), so it is better to generate a list of symbols to export. 9168 always_export_symbols=yes 9169 if test "$aix_use_runtimelinking" = yes; then 9170 # Warning - without using the other runtime loading flags (-brtl), 9171 # -berok will link without error, but may produce a broken library. 9172 allow_undefined_flag='-berok' 9173 # Determine the default libpath from the value encoded in an 9174 # empty executable. 9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177 9178int 9179main () 9180{ 9181 9182 ; 9183 return 0; 9184} 9185_ACEOF 9186if ac_fn_c_try_link "$LINENO"; then : 9187 9188lt_aix_libpath_sed=' 9189 /Import File Strings/,/^$/ { 9190 /^0/ { 9191 s/^0 *\(.*\)$/\1/ 9192 p 9193 } 9194 }' 9195aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9196# Check for a 64-bit object if we didn't find anything. 9197if test -z "$aix_libpath"; then 9198 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9199fi 9200fi 9201rm -f core conftest.err conftest.$ac_objext \ 9202 conftest$ac_exeext conftest.$ac_ext 9203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9204 9205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9206 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" 9207 else 9208 if test "$host_cpu" = ia64; then 9209 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9210 allow_undefined_flag="-z nodefs" 9211 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" 9212 else 9213 # Determine the default libpath from the value encoded in an 9214 # empty executable. 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217 9218int 9219main () 9220{ 9221 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226if ac_fn_c_try_link "$LINENO"; then : 9227 9228lt_aix_libpath_sed=' 9229 /Import File Strings/,/^$/ { 9230 /^0/ { 9231 s/^0 *\(.*\)$/\1/ 9232 p 9233 } 9234 }' 9235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9236# Check for a 64-bit object if we didn't find anything. 9237if test -z "$aix_libpath"; then 9238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9239fi 9240fi 9241rm -f core conftest.err conftest.$ac_objext \ 9242 conftest$ac_exeext conftest.$ac_ext 9243if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9244 9245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9246 # Warning - without using the other run time loading flags, 9247 # -berok will link without error, but may produce a broken library. 9248 no_undefined_flag=' ${wl}-bernotok' 9249 allow_undefined_flag=' ${wl}-berok' 9250 if test "$with_gnu_ld" = yes; then 9251 # We only use this code for GNU lds that support --whole-archive. 9252 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9253 else 9254 # Exported symbols can be pulled into shared objects from archives 9255 whole_archive_flag_spec='$convenience' 9256 fi 9257 archive_cmds_need_lc=yes 9258 # This is similar to how AIX traditionally builds its shared libraries. 9259 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' 9260 fi 9261 fi 9262 ;; 9263 9264 amigaos*) 9265 case $host_cpu in 9266 powerpc) 9267 # see comment about AmigaOS4 .so support 9268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9269 archive_expsym_cmds='' 9270 ;; 9271 m68k) 9272 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)' 9273 hardcode_libdir_flag_spec='-L$libdir' 9274 hardcode_minus_L=yes 9275 ;; 9276 esac 9277 ;; 9278 9279 bsdi[45]*) 9280 export_dynamic_flag_spec=-rdynamic 9281 ;; 9282 9283 cygwin* | mingw* | pw32* | cegcc*) 9284 # When not using gcc, we currently assume that we are using 9285 # Microsoft Visual C++. 9286 # hardcode_libdir_flag_spec is actually meaningless, as there is 9287 # no search path for DLLs. 9288 hardcode_libdir_flag_spec=' ' 9289 allow_undefined_flag=unsupported 9290 # Tell ltmain to make .lib files, not .a files. 9291 libext=lib 9292 # Tell ltmain to make .dll files, not .so files. 9293 shrext_cmds=".dll" 9294 # FIXME: Setting linknames here is a bad hack. 9295 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9296 # The linker will automatically build a .lib file if we build a DLL. 9297 old_archive_from_new_cmds='true' 9298 # FIXME: Should let the user specify the lib program. 9299 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9300 fix_srcfile_path='`cygpath -w "$srcfile"`' 9301 enable_shared_with_static_runtimes=yes 9302 ;; 9303 9304 darwin* | rhapsody*) 9305 9306 9307 archive_cmds_need_lc=no 9308 hardcode_direct=no 9309 hardcode_automatic=yes 9310 hardcode_shlibpath_var=unsupported 9311 if test "$lt_cv_ld_force_load" = "yes"; then 9312 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\"`' 9313 else 9314 whole_archive_flag_spec='' 9315 fi 9316 link_all_deplibs=yes 9317 allow_undefined_flag="$_lt_dar_allow_undefined" 9318 case $cc_basename in 9319 ifort*) _lt_dar_can_shared=yes ;; 9320 *) _lt_dar_can_shared=$GCC ;; 9321 esac 9322 if test "$_lt_dar_can_shared" = "yes"; then 9323 output_verbose_link_cmd=func_echo_all 9324 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9325 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9326 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}" 9327 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}" 9328 9329 else 9330 ld_shlibs=no 9331 fi 9332 9333 ;; 9334 9335 dgux*) 9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9337 hardcode_libdir_flag_spec='-L$libdir' 9338 hardcode_shlibpath_var=no 9339 ;; 9340 9341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9342 # support. Future versions do this automatically, but an explicit c++rt0.o 9343 # does not break anything, and helps significantly (at the cost of a little 9344 # extra space). 9345 freebsd2.2*) 9346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9347 hardcode_libdir_flag_spec='-R$libdir' 9348 hardcode_direct=yes 9349 hardcode_shlibpath_var=no 9350 ;; 9351 9352 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9353 freebsd2*) 9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9355 hardcode_direct=yes 9356 hardcode_minus_L=yes 9357 hardcode_shlibpath_var=no 9358 ;; 9359 9360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9361 freebsd* | dragonfly*) 9362 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9363 hardcode_libdir_flag_spec='-R$libdir' 9364 hardcode_direct=yes 9365 hardcode_shlibpath_var=no 9366 ;; 9367 9368 hpux9*) 9369 if test "$GCC" = yes; then 9370 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' 9371 else 9372 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' 9373 fi 9374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9375 hardcode_libdir_separator=: 9376 hardcode_direct=yes 9377 9378 # hardcode_minus_L: Not really in the search PATH, 9379 # but as the default location of the library. 9380 hardcode_minus_L=yes 9381 export_dynamic_flag_spec='${wl}-E' 9382 ;; 9383 9384 hpux10*) 9385 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9386 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9387 else 9388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9389 fi 9390 if test "$with_gnu_ld" = no; then 9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9392 hardcode_libdir_flag_spec_ld='+b $libdir' 9393 hardcode_libdir_separator=: 9394 hardcode_direct=yes 9395 hardcode_direct_absolute=yes 9396 export_dynamic_flag_spec='${wl}-E' 9397 # hardcode_minus_L: Not really in the search PATH, 9398 # but as the default location of the library. 9399 hardcode_minus_L=yes 9400 fi 9401 ;; 9402 9403 hpux11*) 9404 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9405 case $host_cpu in 9406 hppa*64*) 9407 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9408 ;; 9409 ia64*) 9410 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9411 ;; 9412 *) 9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9414 ;; 9415 esac 9416 else 9417 case $host_cpu in 9418 hppa*64*) 9419 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9420 ;; 9421 ia64*) 9422 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9423 ;; 9424 *) 9425 9426 # Older versions of the 11.00 compiler do not understand -b yet 9427 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9429$as_echo_n "checking if $CC understands -b... " >&6; } 9430if test "${lt_cv_prog_compiler__b+set}" = set; then : 9431 $as_echo_n "(cached) " >&6 9432else 9433 lt_cv_prog_compiler__b=no 9434 save_LDFLAGS="$LDFLAGS" 9435 LDFLAGS="$LDFLAGS -b" 9436 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9438 # The linker can only warn and ignore the option if not recognized 9439 # So say no if there are warnings 9440 if test -s conftest.err; then 9441 # Append any errors to the config.log. 9442 cat conftest.err 1>&5 9443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9445 if diff conftest.exp conftest.er2 >/dev/null; then 9446 lt_cv_prog_compiler__b=yes 9447 fi 9448 else 9449 lt_cv_prog_compiler__b=yes 9450 fi 9451 fi 9452 $RM -r conftest* 9453 LDFLAGS="$save_LDFLAGS" 9454 9455fi 9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9457$as_echo "$lt_cv_prog_compiler__b" >&6; } 9458 9459if test x"$lt_cv_prog_compiler__b" = xyes; then 9460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9461else 9462 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9463fi 9464 9465 ;; 9466 esac 9467 fi 9468 if test "$with_gnu_ld" = no; then 9469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9470 hardcode_libdir_separator=: 9471 9472 case $host_cpu in 9473 hppa*64*|ia64*) 9474 hardcode_direct=no 9475 hardcode_shlibpath_var=no 9476 ;; 9477 *) 9478 hardcode_direct=yes 9479 hardcode_direct_absolute=yes 9480 export_dynamic_flag_spec='${wl}-E' 9481 9482 # hardcode_minus_L: Not really in the search PATH, 9483 # but as the default location of the library. 9484 hardcode_minus_L=yes 9485 ;; 9486 esac 9487 fi 9488 ;; 9489 9490 irix5* | irix6* | nonstopux*) 9491 if test "$GCC" = yes; then 9492 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' 9493 # Try to use the -exported_symbol ld option, if it does not 9494 # work, assume that -exports_file does not work either and 9495 # implicitly export all symbols. 9496 save_LDFLAGS="$LDFLAGS" 9497 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499/* end confdefs.h. */ 9500int foo(void) {} 9501_ACEOF 9502if ac_fn_c_try_link "$LINENO"; then : 9503 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' 9504 9505fi 9506rm -f core conftest.err conftest.$ac_objext \ 9507 conftest$ac_exeext conftest.$ac_ext 9508 LDFLAGS="$save_LDFLAGS" 9509 else 9510 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' 9511 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' 9512 fi 9513 archive_cmds_need_lc='no' 9514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9515 hardcode_libdir_separator=: 9516 inherit_rpath=yes 9517 link_all_deplibs=yes 9518 ;; 9519 9520 netbsd*) 9521 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9523 else 9524 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9525 fi 9526 hardcode_libdir_flag_spec='-R$libdir' 9527 hardcode_direct=yes 9528 hardcode_shlibpath_var=no 9529 ;; 9530 9531 newsos6) 9532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9533 hardcode_direct=yes 9534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9535 hardcode_libdir_separator=: 9536 hardcode_shlibpath_var=no 9537 ;; 9538 9539 *nto* | *qnx*) 9540 ;; 9541 9542 openbsd*) 9543 if test -f /usr/libexec/ld.so; then 9544 hardcode_direct=yes 9545 hardcode_shlibpath_var=no 9546 hardcode_direct_absolute=yes 9547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9549 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9551 export_dynamic_flag_spec='${wl}-E' 9552 else 9553 case $host_os in 9554 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9556 hardcode_libdir_flag_spec='-R$libdir' 9557 ;; 9558 *) 9559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9561 ;; 9562 esac 9563 fi 9564 else 9565 ld_shlibs=no 9566 fi 9567 ;; 9568 9569 os2*) 9570 hardcode_libdir_flag_spec='-L$libdir' 9571 hardcode_minus_L=yes 9572 allow_undefined_flag=unsupported 9573 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' 9574 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9575 ;; 9576 9577 osf3*) 9578 if test "$GCC" = yes; then 9579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9580 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' 9581 else 9582 allow_undefined_flag=' -expect_unresolved \*' 9583 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' 9584 fi 9585 archive_cmds_need_lc='no' 9586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9587 hardcode_libdir_separator=: 9588 ;; 9589 9590 osf4* | osf5*) # as osf3* with the addition of -msym flag 9591 if test "$GCC" = yes; then 9592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9593 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' 9594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9595 else 9596 allow_undefined_flag=' -expect_unresolved \*' 9597 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' 9598 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~ 9599 $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' 9600 9601 # Both c and cxx compiler support -rpath directly 9602 hardcode_libdir_flag_spec='-rpath $libdir' 9603 fi 9604 archive_cmds_need_lc='no' 9605 hardcode_libdir_separator=: 9606 ;; 9607 9608 solaris*) 9609 no_undefined_flag=' -z defs' 9610 if test "$GCC" = yes; then 9611 wlarc='${wl}' 9612 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9614 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9615 else 9616 case `$CC -V 2>&1` in 9617 *"Compilers 5.0"*) 9618 wlarc='' 9619 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9622 ;; 9623 *) 9624 wlarc='${wl}' 9625 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9627 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9628 ;; 9629 esac 9630 fi 9631 hardcode_libdir_flag_spec='-R$libdir' 9632 hardcode_shlibpath_var=no 9633 case $host_os in 9634 solaris2.[0-5] | solaris2.[0-5].*) ;; 9635 *) 9636 # The compiler driver will combine and reorder linker options, 9637 # but understands `-z linker_flag'. GCC discards it without `$wl', 9638 # but is careful enough not to reorder. 9639 # Supported since Solaris 2.6 (maybe 2.5.1?) 9640 if test "$GCC" = yes; then 9641 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9642 else 9643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9644 fi 9645 ;; 9646 esac 9647 link_all_deplibs=yes 9648 ;; 9649 9650 sunos4*) 9651 if test "x$host_vendor" = xsequent; then 9652 # Use $CC to link under sequent, because it throws in some extra .o 9653 # files that make .init and .fini sections work. 9654 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9655 else 9656 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9657 fi 9658 hardcode_libdir_flag_spec='-L$libdir' 9659 hardcode_direct=yes 9660 hardcode_minus_L=yes 9661 hardcode_shlibpath_var=no 9662 ;; 9663 9664 sysv4) 9665 case $host_vendor in 9666 sni) 9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9668 hardcode_direct=yes # is this really true??? 9669 ;; 9670 siemens) 9671 ## LD is ld it makes a PLAMLIB 9672 ## CC just makes a GrossModule. 9673 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9674 reload_cmds='$CC -r -o $output$reload_objs' 9675 hardcode_direct=no 9676 ;; 9677 motorola) 9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9679 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9680 ;; 9681 esac 9682 runpath_var='LD_RUN_PATH' 9683 hardcode_shlibpath_var=no 9684 ;; 9685 9686 sysv4.3*) 9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9688 hardcode_shlibpath_var=no 9689 export_dynamic_flag_spec='-Bexport' 9690 ;; 9691 9692 sysv4*MP*) 9693 if test -d /usr/nec; then 9694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9695 hardcode_shlibpath_var=no 9696 runpath_var=LD_RUN_PATH 9697 hardcode_runpath_var=yes 9698 ld_shlibs=yes 9699 fi 9700 ;; 9701 9702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9703 no_undefined_flag='${wl}-z,text' 9704 archive_cmds_need_lc=no 9705 hardcode_shlibpath_var=no 9706 runpath_var='LD_RUN_PATH' 9707 9708 if test "$GCC" = yes; then 9709 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9710 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9711 else 9712 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9713 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9714 fi 9715 ;; 9716 9717 sysv5* | sco3.2v5* | sco5v6*) 9718 # Note: We can NOT use -z defs as we might desire, because we do not 9719 # link with -lc, and that would cause any symbols used from libc to 9720 # always be unresolved, which means just about no library would 9721 # ever link correctly. If we're not using GNU ld we use -z text 9722 # though, which does catch some bad symbols but isn't as heavy-handed 9723 # as -z defs. 9724 no_undefined_flag='${wl}-z,text' 9725 allow_undefined_flag='${wl}-z,nodefs' 9726 archive_cmds_need_lc=no 9727 hardcode_shlibpath_var=no 9728 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9729 hardcode_libdir_separator=':' 9730 link_all_deplibs=yes 9731 export_dynamic_flag_spec='${wl}-Bexport' 9732 runpath_var='LD_RUN_PATH' 9733 9734 if test "$GCC" = yes; then 9735 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9736 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9737 else 9738 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9739 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9740 fi 9741 ;; 9742 9743 uts4*) 9744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9745 hardcode_libdir_flag_spec='-L$libdir' 9746 hardcode_shlibpath_var=no 9747 ;; 9748 9749 *) 9750 ld_shlibs=no 9751 ;; 9752 esac 9753 9754 if test x$host_vendor = xsni; then 9755 case $host in 9756 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9757 export_dynamic_flag_spec='${wl}-Blargedynsym' 9758 ;; 9759 esac 9760 fi 9761 fi 9762 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9764$as_echo "$ld_shlibs" >&6; } 9765test "$ld_shlibs" = no && can_build_shared=no 9766 9767with_gnu_ld=$with_gnu_ld 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783# 9784# Do we need to explicitly link libc? 9785# 9786case "x$archive_cmds_need_lc" in 9787x|xyes) 9788 # Assume -lc should be added 9789 archive_cmds_need_lc=yes 9790 9791 if test "$enable_shared" = yes && test "$GCC" = yes; then 9792 case $archive_cmds in 9793 *'~'*) 9794 # FIXME: we may have to deal with multi-command sequences. 9795 ;; 9796 '$CC '*) 9797 # Test whether the compiler implicitly links with -lc since on some 9798 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9799 # to ld, don't add -lc before -lgcc. 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9801$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9802if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9803 $as_echo_n "(cached) " >&6 9804else 9805 $RM conftest* 9806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9807 9808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9809 (eval $ac_compile) 2>&5 9810 ac_status=$? 9811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9812 test $ac_status = 0; } 2>conftest.err; then 9813 soname=conftest 9814 lib=conftest 9815 libobjs=conftest.$ac_objext 9816 deplibs= 9817 wl=$lt_prog_compiler_wl 9818 pic_flag=$lt_prog_compiler_pic 9819 compiler_flags=-v 9820 linker_flags=-v 9821 verstring= 9822 output_objdir=. 9823 libname=conftest 9824 lt_save_allow_undefined_flag=$allow_undefined_flag 9825 allow_undefined_flag= 9826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9827 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9828 ac_status=$? 9829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9830 test $ac_status = 0; } 9831 then 9832 lt_cv_archive_cmds_need_lc=no 9833 else 9834 lt_cv_archive_cmds_need_lc=yes 9835 fi 9836 allow_undefined_flag=$lt_save_allow_undefined_flag 9837 else 9838 cat conftest.err 1>&5 9839 fi 9840 $RM conftest* 9841 9842fi 9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9844$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9845 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9846 ;; 9847 esac 9848 fi 9849 ;; 9850esac 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10009$as_echo_n "checking dynamic linker characteristics... " >&6; } 10010 10011if test "$GCC" = yes; then 10012 case $host_os in 10013 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10014 *) lt_awk_arg="/^libraries:/" ;; 10015 esac 10016 case $host_os in 10017 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10018 *) lt_sed_strip_eq="s,=/,/,g" ;; 10019 esac 10020 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10021 case $lt_search_path_spec in 10022 *\;*) 10023 # if the path contains ";" then we assume it to be the separator 10024 # otherwise default to the standard path separator (i.e. ":") - it is 10025 # assumed that no part of a normal pathname contains ";" but that should 10026 # okay in the real world where ";" in dirpaths is itself problematic. 10027 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10028 ;; 10029 *) 10030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10031 ;; 10032 esac 10033 # Ok, now we have the path, separated by spaces, we can step through it 10034 # and add multilib dir if necessary. 10035 lt_tmp_lt_search_path_spec= 10036 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10037 for lt_sys_path in $lt_search_path_spec; do 10038 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10040 else 10041 test -d "$lt_sys_path" && \ 10042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10043 fi 10044 done 10045 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10046BEGIN {RS=" "; FS="/|\n";} { 10047 lt_foo=""; 10048 lt_count=0; 10049 for (lt_i = NF; lt_i > 0; lt_i--) { 10050 if ($lt_i != "" && $lt_i != ".") { 10051 if ($lt_i == "..") { 10052 lt_count++; 10053 } else { 10054 if (lt_count == 0) { 10055 lt_foo="/" $lt_i lt_foo; 10056 } else { 10057 lt_count--; 10058 } 10059 } 10060 } 10061 } 10062 if (lt_foo != "") { lt_freq[lt_foo]++; } 10063 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10064}'` 10065 # AWK program above erroneously prepends '/' to C:/dos/paths 10066 # for these hosts. 10067 case $host_os in 10068 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10069 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10070 esac 10071 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10072else 10073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10074fi 10075library_names_spec= 10076libname_spec='lib$name' 10077soname_spec= 10078shrext_cmds=".so" 10079postinstall_cmds= 10080postuninstall_cmds= 10081finish_cmds= 10082finish_eval= 10083shlibpath_var= 10084shlibpath_overrides_runpath=unknown 10085version_type=none 10086dynamic_linker="$host_os ld.so" 10087sys_lib_dlsearch_path_spec="/lib /usr/lib" 10088need_lib_prefix=unknown 10089hardcode_into_libs=no 10090 10091# when you set need_version to no, make sure it does not cause -set_version 10092# flags to be left without arguments 10093need_version=unknown 10094 10095case $host_os in 10096aix3*) 10097 version_type=linux 10098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10099 shlibpath_var=LIBPATH 10100 10101 # AIX 3 has no versioning support, so we append a major version to the name. 10102 soname_spec='${libname}${release}${shared_ext}$major' 10103 ;; 10104 10105aix[4-9]*) 10106 version_type=linux 10107 need_lib_prefix=no 10108 need_version=no 10109 hardcode_into_libs=yes 10110 if test "$host_cpu" = ia64; then 10111 # AIX 5 supports IA64 10112 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10113 shlibpath_var=LD_LIBRARY_PATH 10114 else 10115 # With GCC up to 2.95.x, collect2 would create an import file 10116 # for dependence libraries. The import file would start with 10117 # the line `#! .'. This would cause the generated library to 10118 # depend on `.', always an invalid library. This was fixed in 10119 # development snapshots of GCC prior to 3.0. 10120 case $host_os in 10121 aix4 | aix4.[01] | aix4.[01].*) 10122 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10123 echo ' yes ' 10124 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10125 : 10126 else 10127 can_build_shared=no 10128 fi 10129 ;; 10130 esac 10131 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10132 # soname into executable. Probably we can add versioning support to 10133 # collect2, so additional links can be useful in future. 10134 if test "$aix_use_runtimelinking" = yes; then 10135 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10136 # instead of lib<name>.a to let people know that these are not 10137 # typical AIX shared libraries. 10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10139 else 10140 # We preserve .a as extension for shared libraries through AIX4.2 10141 # and later when we are not doing run time linking. 10142 library_names_spec='${libname}${release}.a $libname.a' 10143 soname_spec='${libname}${release}${shared_ext}$major' 10144 fi 10145 shlibpath_var=LIBPATH 10146 fi 10147 ;; 10148 10149amigaos*) 10150 case $host_cpu in 10151 powerpc) 10152 # Since July 2007 AmigaOS4 officially supports .so libraries. 10153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10155 ;; 10156 m68k) 10157 library_names_spec='$libname.ixlibrary $libname.a' 10158 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10159 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' 10160 ;; 10161 esac 10162 ;; 10163 10164beos*) 10165 library_names_spec='${libname}${shared_ext}' 10166 dynamic_linker="$host_os ld.so" 10167 shlibpath_var=LIBRARY_PATH 10168 ;; 10169 10170bsdi[45]*) 10171 version_type=linux 10172 need_version=no 10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10174 soname_spec='${libname}${release}${shared_ext}$major' 10175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10176 shlibpath_var=LD_LIBRARY_PATH 10177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10179 # the default ld.so.conf also contains /usr/contrib/lib and 10180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10181 # libtool to hard-code these into programs 10182 ;; 10183 10184cygwin* | mingw* | pw32* | cegcc*) 10185 version_type=windows 10186 shrext_cmds=".dll" 10187 need_version=no 10188 need_lib_prefix=no 10189 10190 case $GCC,$host_os in 10191 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10192 library_names_spec='$libname.dll.a' 10193 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10194 postinstall_cmds='base_file=`basename \${file}`~ 10195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10196 dldir=$destdir/`dirname \$dlpath`~ 10197 test -d \$dldir || mkdir -p \$dldir~ 10198 $install_prog $dir/$dlname \$dldir/$dlname~ 10199 chmod a+x \$dldir/$dlname~ 10200 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10201 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10202 fi' 10203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10204 dlpath=$dir/\$dldll~ 10205 $RM \$dlpath' 10206 shlibpath_overrides_runpath=yes 10207 10208 case $host_os in 10209 cygwin*) 10210 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10212 10213 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10214 ;; 10215 mingw* | cegcc*) 10216 # MinGW DLLs use traditional 'lib' prefix 10217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10218 ;; 10219 pw32*) 10220 # pw32 DLLs use 'pw' prefix rather than 'lib' 10221 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10222 ;; 10223 esac 10224 ;; 10225 10226 *) 10227 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10228 ;; 10229 esac 10230 dynamic_linker='Win32 ld.exe' 10231 # FIXME: first we should search . and the directory the executable is in 10232 shlibpath_var=PATH 10233 ;; 10234 10235darwin* | rhapsody*) 10236 dynamic_linker="$host_os dyld" 10237 version_type=darwin 10238 need_lib_prefix=no 10239 need_version=no 10240 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10241 soname_spec='${libname}${release}${major}$shared_ext' 10242 shlibpath_overrides_runpath=yes 10243 shlibpath_var=DYLD_LIBRARY_PATH 10244 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10245 10246 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10248 ;; 10249 10250dgux*) 10251 version_type=linux 10252 need_lib_prefix=no 10253 need_version=no 10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10255 soname_spec='${libname}${release}${shared_ext}$major' 10256 shlibpath_var=LD_LIBRARY_PATH 10257 ;; 10258 10259freebsd* | dragonfly*) 10260 # DragonFly does not have aout. When/if they implement a new 10261 # versioning mechanism, adjust this. 10262 if test -x /usr/bin/objformat; then 10263 objformat=`/usr/bin/objformat` 10264 else 10265 case $host_os in 10266 freebsd[123]*) objformat=aout ;; 10267 *) objformat=elf ;; 10268 esac 10269 fi 10270 version_type=freebsd-$objformat 10271 case $version_type in 10272 freebsd-elf*) 10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10274 need_version=no 10275 need_lib_prefix=no 10276 ;; 10277 freebsd-*) 10278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10279 need_version=yes 10280 ;; 10281 esac 10282 shlibpath_var=LD_LIBRARY_PATH 10283 case $host_os in 10284 freebsd2*) 10285 shlibpath_overrides_runpath=yes 10286 ;; 10287 freebsd3.[01]* | freebsdelf3.[01]*) 10288 shlibpath_overrides_runpath=yes 10289 hardcode_into_libs=yes 10290 ;; 10291 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10292 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10293 shlibpath_overrides_runpath=no 10294 hardcode_into_libs=yes 10295 ;; 10296 *) # from 4.6 on, and DragonFly 10297 shlibpath_overrides_runpath=yes 10298 hardcode_into_libs=yes 10299 ;; 10300 esac 10301 ;; 10302 10303gnu*) 10304 version_type=linux 10305 need_lib_prefix=no 10306 need_version=no 10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10308 soname_spec='${libname}${release}${shared_ext}$major' 10309 shlibpath_var=LD_LIBRARY_PATH 10310 hardcode_into_libs=yes 10311 ;; 10312 10313haiku*) 10314 version_type=linux 10315 need_lib_prefix=no 10316 need_version=no 10317 dynamic_linker="$host_os runtime_loader" 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=LIBRARY_PATH 10321 shlibpath_overrides_runpath=yes 10322 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10323 hardcode_into_libs=yes 10324 ;; 10325 10326hpux9* | hpux10* | hpux11*) 10327 # Give a soname corresponding to the major version so that dld.sl refuses to 10328 # link against other versions. 10329 version_type=sunos 10330 need_lib_prefix=no 10331 need_version=no 10332 case $host_cpu in 10333 ia64*) 10334 shrext_cmds='.so' 10335 hardcode_into_libs=yes 10336 dynamic_linker="$host_os dld.so" 10337 shlibpath_var=LD_LIBRARY_PATH 10338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10340 soname_spec='${libname}${release}${shared_ext}$major' 10341 if test "X$HPUX_IA64_MODE" = X32; then 10342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10343 else 10344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10345 fi 10346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10347 ;; 10348 hppa*64*) 10349 shrext_cmds='.sl' 10350 hardcode_into_libs=yes 10351 dynamic_linker="$host_os dld.sl" 10352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10355 soname_spec='${libname}${release}${shared_ext}$major' 10356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10358 ;; 10359 *) 10360 shrext_cmds='.sl' 10361 dynamic_linker="$host_os dld.sl" 10362 shlibpath_var=SHLIB_PATH 10363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10365 soname_spec='${libname}${release}${shared_ext}$major' 10366 ;; 10367 esac 10368 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10369 postinstall_cmds='chmod 555 $lib' 10370 # or fails outright, so override atomically: 10371 install_override_mode=555 10372 ;; 10373 10374interix[3-9]*) 10375 version_type=linux 10376 need_lib_prefix=no 10377 need_version=no 10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10379 soname_spec='${libname}${release}${shared_ext}$major' 10380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10381 shlibpath_var=LD_LIBRARY_PATH 10382 shlibpath_overrides_runpath=no 10383 hardcode_into_libs=yes 10384 ;; 10385 10386irix5* | irix6* | nonstopux*) 10387 case $host_os in 10388 nonstopux*) version_type=nonstopux ;; 10389 *) 10390 if test "$lt_cv_prog_gnu_ld" = yes; then 10391 version_type=linux 10392 else 10393 version_type=irix 10394 fi ;; 10395 esac 10396 need_lib_prefix=no 10397 need_version=no 10398 soname_spec='${libname}${release}${shared_ext}$major' 10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10400 case $host_os in 10401 irix5* | nonstopux*) 10402 libsuff= shlibsuff= 10403 ;; 10404 *) 10405 case $LD in # libtool.m4 will add one of these switches to LD 10406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10407 libsuff= shlibsuff= libmagic=32-bit;; 10408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10409 libsuff=32 shlibsuff=N32 libmagic=N32;; 10410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10411 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10412 *) libsuff= shlibsuff= libmagic=never-match;; 10413 esac 10414 ;; 10415 esac 10416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10417 shlibpath_overrides_runpath=no 10418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10420 hardcode_into_libs=yes 10421 ;; 10422 10423# No shared lib support for Linux oldld, aout, or coff. 10424linux*oldld* | linux*aout* | linux*coff*) 10425 dynamic_linker=no 10426 ;; 10427 10428# This must be Linux ELF. 10429linux* | k*bsd*-gnu | kopensolaris*-gnu) 10430 version_type=linux 10431 need_lib_prefix=no 10432 need_version=no 10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10434 soname_spec='${libname}${release}${shared_ext}$major' 10435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10436 shlibpath_var=LD_LIBRARY_PATH 10437 shlibpath_overrides_runpath=no 10438 10439 # Some binutils ld are patched to set DT_RUNPATH 10440 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10441 $as_echo_n "(cached) " >&6 10442else 10443 lt_cv_shlibpath_overrides_runpath=no 10444 save_LDFLAGS=$LDFLAGS 10445 save_libdir=$libdir 10446 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10447 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10449/* end confdefs.h. */ 10450 10451int 10452main () 10453{ 10454 10455 ; 10456 return 0; 10457} 10458_ACEOF 10459if ac_fn_c_try_link "$LINENO"; then : 10460 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10461 lt_cv_shlibpath_overrides_runpath=yes 10462fi 10463fi 10464rm -f core conftest.err conftest.$ac_objext \ 10465 conftest$ac_exeext conftest.$ac_ext 10466 LDFLAGS=$save_LDFLAGS 10467 libdir=$save_libdir 10468 10469fi 10470 10471 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10472 10473 # This implies no fast_install, which is unacceptable. 10474 # Some rework will be needed to allow for fast_install 10475 # before this can be enabled. 10476 hardcode_into_libs=yes 10477 10478 # Append ld.so.conf contents to the search path 10479 if test -f /etc/ld.so.conf; then 10480 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' ' '` 10481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10482 fi 10483 10484 # We used to test for /lib/ld.so.1 and disable shared libraries on 10485 # powerpc, because MkLinux only supported shared libraries with the 10486 # GNU dynamic linker. Since this was broken with cross compilers, 10487 # most powerpc-linux boxes support dynamic linking these days and 10488 # people can always --disable-shared, the test was removed, and we 10489 # assume the GNU/Linux dynamic linker is in use. 10490 dynamic_linker='GNU/Linux ld.so' 10491 ;; 10492 10493netbsd*) 10494 version_type=sunos 10495 need_lib_prefix=no 10496 need_version=no 10497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10500 dynamic_linker='NetBSD (a.out) ld.so' 10501 else 10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10503 soname_spec='${libname}${release}${shared_ext}$major' 10504 dynamic_linker='NetBSD ld.elf_so' 10505 fi 10506 shlibpath_var=LD_LIBRARY_PATH 10507 shlibpath_overrides_runpath=yes 10508 hardcode_into_libs=yes 10509 ;; 10510 10511newsos6) 10512 version_type=linux 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 shlibpath_var=LD_LIBRARY_PATH 10515 shlibpath_overrides_runpath=yes 10516 ;; 10517 10518*nto* | *qnx*) 10519 version_type=qnx 10520 need_lib_prefix=no 10521 need_version=no 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10523 soname_spec='${libname}${release}${shared_ext}$major' 10524 shlibpath_var=LD_LIBRARY_PATH 10525 shlibpath_overrides_runpath=no 10526 hardcode_into_libs=yes 10527 dynamic_linker='ldqnx.so' 10528 ;; 10529 10530openbsd*) 10531 version_type=sunos 10532 sys_lib_dlsearch_path_spec="/usr/lib" 10533 need_lib_prefix=no 10534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10535 case $host_os in 10536 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10537 *) need_version=no ;; 10538 esac 10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10541 shlibpath_var=LD_LIBRARY_PATH 10542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10543 case $host_os in 10544 openbsd2.[89] | openbsd2.[89].*) 10545 shlibpath_overrides_runpath=no 10546 ;; 10547 *) 10548 shlibpath_overrides_runpath=yes 10549 ;; 10550 esac 10551 else 10552 shlibpath_overrides_runpath=yes 10553 fi 10554 ;; 10555 10556os2*) 10557 libname_spec='$name' 10558 shrext_cmds=".dll" 10559 need_lib_prefix=no 10560 library_names_spec='$libname${shared_ext} $libname.a' 10561 dynamic_linker='OS/2 ld.exe' 10562 shlibpath_var=LIBPATH 10563 ;; 10564 10565osf3* | osf4* | osf5*) 10566 version_type=osf 10567 need_lib_prefix=no 10568 need_version=no 10569 soname_spec='${libname}${release}${shared_ext}$major' 10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10574 ;; 10575 10576rdos*) 10577 dynamic_linker=no 10578 ;; 10579 10580solaris*) 10581 version_type=linux 10582 need_lib_prefix=no 10583 need_version=no 10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10585 soname_spec='${libname}${release}${shared_ext}$major' 10586 shlibpath_var=LD_LIBRARY_PATH 10587 shlibpath_overrides_runpath=yes 10588 hardcode_into_libs=yes 10589 # ldd complains unless libraries are executable 10590 postinstall_cmds='chmod +x $lib' 10591 ;; 10592 10593sunos4*) 10594 version_type=sunos 10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10596 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10597 shlibpath_var=LD_LIBRARY_PATH 10598 shlibpath_overrides_runpath=yes 10599 if test "$with_gnu_ld" = yes; then 10600 need_lib_prefix=no 10601 fi 10602 need_version=yes 10603 ;; 10604 10605sysv4 | sysv4.3*) 10606 version_type=linux 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10608 soname_spec='${libname}${release}${shared_ext}$major' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 case $host_vendor in 10611 sni) 10612 shlibpath_overrides_runpath=no 10613 need_lib_prefix=no 10614 runpath_var=LD_RUN_PATH 10615 ;; 10616 siemens) 10617 need_lib_prefix=no 10618 ;; 10619 motorola) 10620 need_lib_prefix=no 10621 need_version=no 10622 shlibpath_overrides_runpath=no 10623 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10624 ;; 10625 esac 10626 ;; 10627 10628sysv4*MP*) 10629 if test -d /usr/nec ;then 10630 version_type=linux 10631 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10632 soname_spec='$libname${shared_ext}.$major' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 fi 10635 ;; 10636 10637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10638 version_type=freebsd-elf 10639 need_lib_prefix=no 10640 need_version=no 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10642 soname_spec='${libname}${release}${shared_ext}$major' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 shlibpath_overrides_runpath=yes 10645 hardcode_into_libs=yes 10646 if test "$with_gnu_ld" = yes; then 10647 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10648 else 10649 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10650 case $host_os in 10651 sco3.2v5*) 10652 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10653 ;; 10654 esac 10655 fi 10656 sys_lib_dlsearch_path_spec='/usr/lib' 10657 ;; 10658 10659tpf*) 10660 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10661 version_type=linux 10662 need_lib_prefix=no 10663 need_version=no 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10665 shlibpath_var=LD_LIBRARY_PATH 10666 shlibpath_overrides_runpath=no 10667 hardcode_into_libs=yes 10668 ;; 10669 10670uts4*) 10671 version_type=linux 10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10673 soname_spec='${libname}${release}${shared_ext}$major' 10674 shlibpath_var=LD_LIBRARY_PATH 10675 ;; 10676 10677*) 10678 dynamic_linker=no 10679 ;; 10680esac 10681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10682$as_echo "$dynamic_linker" >&6; } 10683test "$dynamic_linker" = no && can_build_shared=no 10684 10685variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10686if test "$GCC" = yes; then 10687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10688fi 10689 10690if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10691 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10692fi 10693if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10694 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10695fi 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10789$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10790hardcode_action= 10791if test -n "$hardcode_libdir_flag_spec" || 10792 test -n "$runpath_var" || 10793 test "X$hardcode_automatic" = "Xyes" ; then 10794 10795 # We can hardcode non-existent directories. 10796 if test "$hardcode_direct" != no && 10797 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10798 # have to relink, otherwise we might link with an installed library 10799 # when we should be linking with a yet-to-be-installed one 10800 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10801 test "$hardcode_minus_L" != no; then 10802 # Linking always hardcodes the temporary library directory. 10803 hardcode_action=relink 10804 else 10805 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10806 hardcode_action=immediate 10807 fi 10808else 10809 # We cannot hardcode anything, or else we can only hardcode existing 10810 # directories. 10811 hardcode_action=unsupported 10812fi 10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10814$as_echo "$hardcode_action" >&6; } 10815 10816if test "$hardcode_action" = relink || 10817 test "$inherit_rpath" = yes; then 10818 # Fast installation is not supported 10819 enable_fast_install=no 10820elif test "$shlibpath_overrides_runpath" = yes || 10821 test "$enable_shared" = no; then 10822 # Fast installation is not necessary 10823 enable_fast_install=needless 10824fi 10825 10826 10827 10828 10829 10830 10831 if test "x$enable_dlopen" != xyes; then 10832 enable_dlopen=unknown 10833 enable_dlopen_self=unknown 10834 enable_dlopen_self_static=unknown 10835else 10836 lt_cv_dlopen=no 10837 lt_cv_dlopen_libs= 10838 10839 case $host_os in 10840 beos*) 10841 lt_cv_dlopen="load_add_on" 10842 lt_cv_dlopen_libs= 10843 lt_cv_dlopen_self=yes 10844 ;; 10845 10846 mingw* | pw32* | cegcc*) 10847 lt_cv_dlopen="LoadLibrary" 10848 lt_cv_dlopen_libs= 10849 ;; 10850 10851 cygwin*) 10852 lt_cv_dlopen="dlopen" 10853 lt_cv_dlopen_libs= 10854 ;; 10855 10856 darwin*) 10857 # if libdl is installed we need to link against it 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10859$as_echo_n "checking for dlopen in -ldl... " >&6; } 10860if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10861 $as_echo_n "(cached) " >&6 10862else 10863 ac_check_lib_save_LIBS=$LIBS 10864LIBS="-ldl $LIBS" 10865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10866/* end confdefs.h. */ 10867 10868/* Override any GCC internal prototype to avoid an error. 10869 Use char because int might match the return type of a GCC 10870 builtin and then its argument prototype would still apply. */ 10871#ifdef __cplusplus 10872extern "C" 10873#endif 10874char dlopen (); 10875int 10876main () 10877{ 10878return dlopen (); 10879 ; 10880 return 0; 10881} 10882_ACEOF 10883if ac_fn_c_try_link "$LINENO"; then : 10884 ac_cv_lib_dl_dlopen=yes 10885else 10886 ac_cv_lib_dl_dlopen=no 10887fi 10888rm -f core conftest.err conftest.$ac_objext \ 10889 conftest$ac_exeext conftest.$ac_ext 10890LIBS=$ac_check_lib_save_LIBS 10891fi 10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10893$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10894if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10896else 10897 10898 lt_cv_dlopen="dyld" 10899 lt_cv_dlopen_libs= 10900 lt_cv_dlopen_self=yes 10901 10902fi 10903 10904 ;; 10905 10906 *) 10907 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10908if test "x$ac_cv_func_shl_load" = x""yes; then : 10909 lt_cv_dlopen="shl_load" 10910else 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10912$as_echo_n "checking for shl_load in -ldld... " >&6; } 10913if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10914 $as_echo_n "(cached) " >&6 10915else 10916 ac_check_lib_save_LIBS=$LIBS 10917LIBS="-ldld $LIBS" 10918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919/* end confdefs.h. */ 10920 10921/* Override any GCC internal prototype to avoid an error. 10922 Use char because int might match the return type of a GCC 10923 builtin and then its argument prototype would still apply. */ 10924#ifdef __cplusplus 10925extern "C" 10926#endif 10927char shl_load (); 10928int 10929main () 10930{ 10931return shl_load (); 10932 ; 10933 return 0; 10934} 10935_ACEOF 10936if ac_fn_c_try_link "$LINENO"; then : 10937 ac_cv_lib_dld_shl_load=yes 10938else 10939 ac_cv_lib_dld_shl_load=no 10940fi 10941rm -f core conftest.err conftest.$ac_objext \ 10942 conftest$ac_exeext conftest.$ac_ext 10943LIBS=$ac_check_lib_save_LIBS 10944fi 10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10946$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10947if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10949else 10950 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10951if test "x$ac_cv_func_dlopen" = x""yes; then : 10952 lt_cv_dlopen="dlopen" 10953else 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10955$as_echo_n "checking for dlopen in -ldl... " >&6; } 10956if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10957 $as_echo_n "(cached) " >&6 10958else 10959 ac_check_lib_save_LIBS=$LIBS 10960LIBS="-ldl $LIBS" 10961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10962/* end confdefs.h. */ 10963 10964/* Override any GCC internal prototype to avoid an error. 10965 Use char because int might match the return type of a GCC 10966 builtin and then its argument prototype would still apply. */ 10967#ifdef __cplusplus 10968extern "C" 10969#endif 10970char dlopen (); 10971int 10972main () 10973{ 10974return dlopen (); 10975 ; 10976 return 0; 10977} 10978_ACEOF 10979if ac_fn_c_try_link "$LINENO"; then : 10980 ac_cv_lib_dl_dlopen=yes 10981else 10982 ac_cv_lib_dl_dlopen=no 10983fi 10984rm -f core conftest.err conftest.$ac_objext \ 10985 conftest$ac_exeext conftest.$ac_ext 10986LIBS=$ac_check_lib_save_LIBS 10987fi 10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10989$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10990if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10992else 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10994$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10995if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10996 $as_echo_n "(cached) " >&6 10997else 10998 ac_check_lib_save_LIBS=$LIBS 10999LIBS="-lsvld $LIBS" 11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002 11003/* Override any GCC internal prototype to avoid an error. 11004 Use char because int might match the return type of a GCC 11005 builtin and then its argument prototype would still apply. */ 11006#ifdef __cplusplus 11007extern "C" 11008#endif 11009char dlopen (); 11010int 11011main () 11012{ 11013return dlopen (); 11014 ; 11015 return 0; 11016} 11017_ACEOF 11018if ac_fn_c_try_link "$LINENO"; then : 11019 ac_cv_lib_svld_dlopen=yes 11020else 11021 ac_cv_lib_svld_dlopen=no 11022fi 11023rm -f core conftest.err conftest.$ac_objext \ 11024 conftest$ac_exeext conftest.$ac_ext 11025LIBS=$ac_check_lib_save_LIBS 11026fi 11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11028$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11029if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11031else 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11033$as_echo_n "checking for dld_link in -ldld... " >&6; } 11034if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11035 $as_echo_n "(cached) " >&6 11036else 11037 ac_check_lib_save_LIBS=$LIBS 11038LIBS="-ldld $LIBS" 11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041 11042/* Override any GCC internal prototype to avoid an error. 11043 Use char because int might match the return type of a GCC 11044 builtin and then its argument prototype would still apply. */ 11045#ifdef __cplusplus 11046extern "C" 11047#endif 11048char dld_link (); 11049int 11050main () 11051{ 11052return dld_link (); 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057if ac_fn_c_try_link "$LINENO"; then : 11058 ac_cv_lib_dld_dld_link=yes 11059else 11060 ac_cv_lib_dld_dld_link=no 11061fi 11062rm -f core conftest.err conftest.$ac_objext \ 11063 conftest$ac_exeext conftest.$ac_ext 11064LIBS=$ac_check_lib_save_LIBS 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11067$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11068if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11069 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11070fi 11071 11072 11073fi 11074 11075 11076fi 11077 11078 11079fi 11080 11081 11082fi 11083 11084 11085fi 11086 11087 ;; 11088 esac 11089 11090 if test "x$lt_cv_dlopen" != xno; then 11091 enable_dlopen=yes 11092 else 11093 enable_dlopen=no 11094 fi 11095 11096 case $lt_cv_dlopen in 11097 dlopen) 11098 save_CPPFLAGS="$CPPFLAGS" 11099 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11100 11101 save_LDFLAGS="$LDFLAGS" 11102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11103 11104 save_LIBS="$LIBS" 11105 LIBS="$lt_cv_dlopen_libs $LIBS" 11106 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11108$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11109if test "${lt_cv_dlopen_self+set}" = set; then : 11110 $as_echo_n "(cached) " >&6 11111else 11112 if test "$cross_compiling" = yes; then : 11113 lt_cv_dlopen_self=cross 11114else 11115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11116 lt_status=$lt_dlunknown 11117 cat > conftest.$ac_ext <<_LT_EOF 11118#line 11118 "configure" 11119#include "confdefs.h" 11120 11121#if HAVE_DLFCN_H 11122#include <dlfcn.h> 11123#endif 11124 11125#include <stdio.h> 11126 11127#ifdef RTLD_GLOBAL 11128# define LT_DLGLOBAL RTLD_GLOBAL 11129#else 11130# ifdef DL_GLOBAL 11131# define LT_DLGLOBAL DL_GLOBAL 11132# else 11133# define LT_DLGLOBAL 0 11134# endif 11135#endif 11136 11137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11138 find out it does not work in some platform. */ 11139#ifndef LT_DLLAZY_OR_NOW 11140# ifdef RTLD_LAZY 11141# define LT_DLLAZY_OR_NOW RTLD_LAZY 11142# else 11143# ifdef DL_LAZY 11144# define LT_DLLAZY_OR_NOW DL_LAZY 11145# else 11146# ifdef RTLD_NOW 11147# define LT_DLLAZY_OR_NOW RTLD_NOW 11148# else 11149# ifdef DL_NOW 11150# define LT_DLLAZY_OR_NOW DL_NOW 11151# else 11152# define LT_DLLAZY_OR_NOW 0 11153# endif 11154# endif 11155# endif 11156# endif 11157#endif 11158 11159/* When -fvisbility=hidden is used, assume the code has been annotated 11160 correspondingly for the symbols needed. */ 11161#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11162void fnord () __attribute__((visibility("default"))); 11163#endif 11164 11165void fnord () { int i=42; } 11166int main () 11167{ 11168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11169 int status = $lt_dlunknown; 11170 11171 if (self) 11172 { 11173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11174 else 11175 { 11176 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11177 else puts (dlerror ()); 11178 } 11179 /* dlclose (self); */ 11180 } 11181 else 11182 puts (dlerror ()); 11183 11184 return status; 11185} 11186_LT_EOF 11187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11188 (eval $ac_link) 2>&5 11189 ac_status=$? 11190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11191 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11192 (./conftest; exit; ) >&5 2>/dev/null 11193 lt_status=$? 11194 case x$lt_status in 11195 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11196 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11197 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11198 esac 11199 else : 11200 # compilation failed 11201 lt_cv_dlopen_self=no 11202 fi 11203fi 11204rm -fr conftest* 11205 11206 11207fi 11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11209$as_echo "$lt_cv_dlopen_self" >&6; } 11210 11211 if test "x$lt_cv_dlopen_self" = xyes; then 11212 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11214$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11215if test "${lt_cv_dlopen_self_static+set}" = set; then : 11216 $as_echo_n "(cached) " >&6 11217else 11218 if test "$cross_compiling" = yes; then : 11219 lt_cv_dlopen_self_static=cross 11220else 11221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11222 lt_status=$lt_dlunknown 11223 cat > conftest.$ac_ext <<_LT_EOF 11224#line 11224 "configure" 11225#include "confdefs.h" 11226 11227#if HAVE_DLFCN_H 11228#include <dlfcn.h> 11229#endif 11230 11231#include <stdio.h> 11232 11233#ifdef RTLD_GLOBAL 11234# define LT_DLGLOBAL RTLD_GLOBAL 11235#else 11236# ifdef DL_GLOBAL 11237# define LT_DLGLOBAL DL_GLOBAL 11238# else 11239# define LT_DLGLOBAL 0 11240# endif 11241#endif 11242 11243/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11244 find out it does not work in some platform. */ 11245#ifndef LT_DLLAZY_OR_NOW 11246# ifdef RTLD_LAZY 11247# define LT_DLLAZY_OR_NOW RTLD_LAZY 11248# else 11249# ifdef DL_LAZY 11250# define LT_DLLAZY_OR_NOW DL_LAZY 11251# else 11252# ifdef RTLD_NOW 11253# define LT_DLLAZY_OR_NOW RTLD_NOW 11254# else 11255# ifdef DL_NOW 11256# define LT_DLLAZY_OR_NOW DL_NOW 11257# else 11258# define LT_DLLAZY_OR_NOW 0 11259# endif 11260# endif 11261# endif 11262# endif 11263#endif 11264 11265/* When -fvisbility=hidden is used, assume the code has been annotated 11266 correspondingly for the symbols needed. */ 11267#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11268void fnord () __attribute__((visibility("default"))); 11269#endif 11270 11271void fnord () { int i=42; } 11272int main () 11273{ 11274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11275 int status = $lt_dlunknown; 11276 11277 if (self) 11278 { 11279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11280 else 11281 { 11282 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11283 else puts (dlerror ()); 11284 } 11285 /* dlclose (self); */ 11286 } 11287 else 11288 puts (dlerror ()); 11289 11290 return status; 11291} 11292_LT_EOF 11293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11294 (eval $ac_link) 2>&5 11295 ac_status=$? 11296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11297 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11298 (./conftest; exit; ) >&5 2>/dev/null 11299 lt_status=$? 11300 case x$lt_status in 11301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11304 esac 11305 else : 11306 # compilation failed 11307 lt_cv_dlopen_self_static=no 11308 fi 11309fi 11310rm -fr conftest* 11311 11312 11313fi 11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11315$as_echo "$lt_cv_dlopen_self_static" >&6; } 11316 fi 11317 11318 CPPFLAGS="$save_CPPFLAGS" 11319 LDFLAGS="$save_LDFLAGS" 11320 LIBS="$save_LIBS" 11321 ;; 11322 esac 11323 11324 case $lt_cv_dlopen_self in 11325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11326 *) enable_dlopen_self=unknown ;; 11327 esac 11328 11329 case $lt_cv_dlopen_self_static in 11330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11331 *) enable_dlopen_self_static=unknown ;; 11332 esac 11333fi 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351striplib= 11352old_striplib= 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11354$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11355if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11357 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11359$as_echo "yes" >&6; } 11360else 11361# FIXME - insert some real tests, host_os isn't really good enough 11362 case $host_os in 11363 darwin*) 11364 if test -n "$STRIP" ; then 11365 striplib="$STRIP -x" 11366 old_striplib="$STRIP -S" 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11368$as_echo "yes" >&6; } 11369 else 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11371$as_echo "no" >&6; } 11372 fi 11373 ;; 11374 *) 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11376$as_echo "no" >&6; } 11377 ;; 11378 esac 11379fi 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 # Report which library types will actually be built 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11394$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11396$as_echo "$can_build_shared" >&6; } 11397 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11399$as_echo_n "checking whether to build shared libraries... " >&6; } 11400 test "$can_build_shared" = "no" && enable_shared=no 11401 11402 # On AIX, shared libraries and static libraries use the same namespace, and 11403 # are all built from PIC. 11404 case $host_os in 11405 aix3*) 11406 test "$enable_shared" = yes && enable_static=no 11407 if test -n "$RANLIB"; then 11408 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11409 postinstall_cmds='$RANLIB $lib' 11410 fi 11411 ;; 11412 11413 aix[4-9]*) 11414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11415 test "$enable_shared" = yes && enable_static=no 11416 fi 11417 ;; 11418 esac 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11420$as_echo "$enable_shared" >&6; } 11421 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11423$as_echo_n "checking whether to build static libraries... " >&6; } 11424 # Make sure either enable_shared or enable_static is yes. 11425 test "$enable_shared" = yes || enable_static=yes 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11427$as_echo "$enable_static" >&6; } 11428 11429 11430 11431 11432fi 11433ac_ext=c 11434ac_cpp='$CPP $CPPFLAGS' 11435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11437ac_compiler_gnu=$ac_cv_c_compiler_gnu 11438 11439CC="$lt_save_CC" 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453# Source file extension for Go test sources. 11454ac_ext=go 11455 11456# Object file extension for compiled Go test sources. 11457objext=o 11458objext_GO=$objext 11459 11460# Code to be used in simple compile tests 11461lt_simple_compile_test_code="package main; func main() { }" 11462 11463# Code to be used in simple link tests 11464lt_simple_link_test_code='package main; func main() { }' 11465 11466# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11467 11468 11469 11470 11471 11472 11473# If no C compiler was specified, use CC. 11474LTCC=${LTCC-"$CC"} 11475 11476# If no C compiler flags were specified, use CFLAGS. 11477LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11478 11479# Allow CC to be a program name with arguments. 11480compiler=$CC 11481 11482 11483# save warnings/boilerplate of simple test code 11484ac_outfile=conftest.$ac_objext 11485echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11486eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11487_lt_compiler_boilerplate=`cat conftest.err` 11488$RM conftest* 11489 11490ac_outfile=conftest.$ac_objext 11491echo "$lt_simple_link_test_code" >conftest.$ac_ext 11492eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11493_lt_linker_boilerplate=`cat conftest.err` 11494$RM -r conftest* 11495 11496 11497# Allow CC to be a program name with arguments. 11498lt_save_CC="$CC" 11499lt_save_GCC="$GCC" 11500GCC=yes 11501CC=${GOC-"gccgo"} 11502compiler=$CC 11503compiler_GO=$CC 11504LD_GO="$LD" 11505for cc_temp in $compiler""; do 11506 case $cc_temp in 11507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11509 \-*) ;; 11510 *) break;; 11511 esac 11512done 11513cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11514 11515 11516# Go did not exist at the time GCC didn't implicitly link libc in. 11517archive_cmds_need_lc_GO=no 11518 11519old_archive_cmds_GO=$old_archive_cmds 11520 11521## CAVEAT EMPTOR: 11522## There is no encapsulation within the following macros, do not change 11523## the running order or otherwise move them around unless you know exactly 11524## what you are doing... 11525if test -n "$compiler"; then 11526 11527lt_prog_compiler_no_builtin_flag_GO= 11528 11529if test "$GCC" = yes; then 11530 case $cc_basename in 11531 nvcc*) 11532 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;; 11533 *) 11534 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;; 11535 esac 11536 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11538$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11539if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 11540 $as_echo_n "(cached) " >&6 11541else 11542 lt_cv_prog_compiler_rtti_exceptions=no 11543 ac_outfile=conftest.$ac_objext 11544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11545 lt_compiler_flag="-fno-rtti -fno-exceptions" 11546 # Insert the option either (1) after the last *FLAGS variable, or 11547 # (2) before a word containing "conftest.", or (3) at the end. 11548 # Note that $ac_compile itself does not contain backslashes and begins 11549 # with a dollar sign (not a hyphen), so the echo should work correctly. 11550 # The option is referenced via a variable to avoid confusing sed. 11551 lt_compile=`echo "$ac_compile" | $SED \ 11552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11554 -e 's:$: $lt_compiler_flag:'` 11555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11556 (eval "$lt_compile" 2>conftest.err) 11557 ac_status=$? 11558 cat conftest.err >&5 11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11560 if (exit $ac_status) && test -s "$ac_outfile"; then 11561 # The compiler can only warn and ignore the option if not recognized 11562 # So say no if there are warnings other than the usual output. 11563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11566 lt_cv_prog_compiler_rtti_exceptions=yes 11567 fi 11568 fi 11569 $RM conftest* 11570 11571fi 11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11573$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11574 11575if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11576 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions" 11577else 11578 : 11579fi 11580 11581fi 11582 11583 11584 11585 lt_prog_compiler_wl_GO= 11586lt_prog_compiler_pic_GO= 11587lt_prog_compiler_static_GO= 11588 11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11590$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11591 11592 if test "$GCC" = yes; then 11593 lt_prog_compiler_wl_GO='-Wl,' 11594 lt_prog_compiler_static_GO='-static' 11595 11596 case $host_os in 11597 aix*) 11598 # All AIX code is PIC. 11599 if test "$host_cpu" = ia64; then 11600 # AIX 5 now supports IA64 processor 11601 lt_prog_compiler_static_GO='-Bstatic' 11602 fi 11603 ;; 11604 11605 amigaos*) 11606 case $host_cpu in 11607 powerpc) 11608 # see comment about AmigaOS4 .so support 11609 lt_prog_compiler_pic_GO='-fPIC' 11610 ;; 11611 m68k) 11612 # FIXME: we need at least 68020 code to build shared libraries, but 11613 # adding the `-m68020' flag to GCC prevents building anything better, 11614 # like `-m68040'. 11615 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4' 11616 ;; 11617 esac 11618 ;; 11619 11620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11621 # PIC is the default for these OSes. 11622 ;; 11623 11624 mingw* | cygwin* | pw32* | os2* | cegcc*) 11625 # This hack is so that the source file can tell whether it is being 11626 # built for inclusion in a dll (and should export symbols for example). 11627 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11628 # (--disable-auto-import) libraries 11629 lt_prog_compiler_pic_GO='-DDLL_EXPORT' 11630 ;; 11631 11632 darwin* | rhapsody*) 11633 # PIC is the default on this platform 11634 # Common symbols not allowed in MH_DYLIB files 11635 lt_prog_compiler_pic_GO='-fno-common' 11636 ;; 11637 11638 haiku*) 11639 # PIC is the default for Haiku. 11640 # The "-static" flag exists, but is broken. 11641 lt_prog_compiler_static_GO= 11642 ;; 11643 11644 hpux*) 11645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11647 # sets the default TLS model and affects inlining. 11648 case $host_cpu in 11649 hppa*64*) 11650 # +Z the default 11651 ;; 11652 *) 11653 lt_prog_compiler_pic_GO='-fPIC' 11654 ;; 11655 esac 11656 ;; 11657 11658 interix[3-9]*) 11659 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11660 # Instead, we relocate shared libraries at runtime. 11661 ;; 11662 11663 msdosdjgpp*) 11664 # Just because we use GCC doesn't mean we suddenly get shared libraries 11665 # on systems that don't support them. 11666 lt_prog_compiler_can_build_shared_GO=no 11667 enable_shared=no 11668 ;; 11669 11670 *nto* | *qnx*) 11671 # QNX uses GNU C++, but need to define -shared option too, otherwise 11672 # it will coredump. 11673 lt_prog_compiler_pic_GO='-fPIC -shared' 11674 ;; 11675 11676 sysv4*MP*) 11677 if test -d /usr/nec; then 11678 lt_prog_compiler_pic_GO=-Kconform_pic 11679 fi 11680 ;; 11681 11682 *) 11683 lt_prog_compiler_pic_GO='-fPIC' 11684 ;; 11685 esac 11686 11687 case $cc_basename in 11688 nvcc*) # Cuda Compiler Driver 2.2 11689 lt_prog_compiler_wl_GO='-Xlinker ' 11690 lt_prog_compiler_pic_GO='-Xcompiler -fPIC' 11691 ;; 11692 esac 11693 else 11694 # PORTME Check for flag to pass linker flags through the system compiler. 11695 case $host_os in 11696 aix*) 11697 lt_prog_compiler_wl_GO='-Wl,' 11698 if test "$host_cpu" = ia64; then 11699 # AIX 5 now supports IA64 processor 11700 lt_prog_compiler_static_GO='-Bstatic' 11701 else 11702 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp' 11703 fi 11704 ;; 11705 11706 mingw* | cygwin* | pw32* | os2* | cegcc*) 11707 # This hack is so that the source file can tell whether it is being 11708 # built for inclusion in a dll (and should export symbols for example). 11709 lt_prog_compiler_pic_GO='-DDLL_EXPORT' 11710 ;; 11711 11712 hpux9* | hpux10* | hpux11*) 11713 lt_prog_compiler_wl_GO='-Wl,' 11714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11715 # not for PA HP-UX. 11716 case $host_cpu in 11717 hppa*64*|ia64*) 11718 # +Z the default 11719 ;; 11720 *) 11721 lt_prog_compiler_pic_GO='+Z' 11722 ;; 11723 esac 11724 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11725 lt_prog_compiler_static_GO='${wl}-a ${wl}archive' 11726 ;; 11727 11728 irix5* | irix6* | nonstopux*) 11729 lt_prog_compiler_wl_GO='-Wl,' 11730 # PIC (with -KPIC) is the default. 11731 lt_prog_compiler_static_GO='-non_shared' 11732 ;; 11733 11734 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11735 case $cc_basename in 11736 # old Intel for x86_64 which still supported -KPIC. 11737 ecc*) 11738 lt_prog_compiler_wl_GO='-Wl,' 11739 lt_prog_compiler_pic_GO='-KPIC' 11740 lt_prog_compiler_static_GO='-static' 11741 ;; 11742 # icc used to be incompatible with GCC. 11743 # ICC 10 doesn't accept -KPIC any more. 11744 icc* | ifort*) 11745 lt_prog_compiler_wl_GO='-Wl,' 11746 lt_prog_compiler_pic_GO='-fPIC' 11747 lt_prog_compiler_static_GO='-static' 11748 ;; 11749 # Lahey Fortran 8.1. 11750 lf95*) 11751 lt_prog_compiler_wl_GO='-Wl,' 11752 lt_prog_compiler_pic_GO='--shared' 11753 lt_prog_compiler_static_GO='--static' 11754 ;; 11755 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11756 # Portland Group compilers (*not* the Pentium gcc compiler, 11757 # which looks to be a dead project) 11758 lt_prog_compiler_wl_GO='-Wl,' 11759 lt_prog_compiler_pic_GO='-fpic' 11760 lt_prog_compiler_static_GO='-Bstatic' 11761 ;; 11762 ccc*) 11763 lt_prog_compiler_wl_GO='-Wl,' 11764 # All Alpha code is PIC. 11765 lt_prog_compiler_static_GO='-non_shared' 11766 ;; 11767 xl* | bgxl* | bgf* | mpixl*) 11768 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11769 lt_prog_compiler_wl_GO='-Wl,' 11770 lt_prog_compiler_pic_GO='-qpic' 11771 lt_prog_compiler_static_GO='-qstaticlink' 11772 ;; 11773 *) 11774 case `$CC -V 2>&1 | sed 5q` in 11775 *Sun\ F* | *Sun*Fortran*) 11776 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11777 lt_prog_compiler_pic_GO='-KPIC' 11778 lt_prog_compiler_static_GO='-Bstatic' 11779 lt_prog_compiler_wl_GO='' 11780 ;; 11781 *Sun\ C*) 11782 # Sun C 5.9 11783 lt_prog_compiler_pic_GO='-KPIC' 11784 lt_prog_compiler_static_GO='-Bstatic' 11785 lt_prog_compiler_wl_GO='-Wl,' 11786 ;; 11787 esac 11788 ;; 11789 esac 11790 ;; 11791 11792 newsos6) 11793 lt_prog_compiler_pic_GO='-KPIC' 11794 lt_prog_compiler_static_GO='-Bstatic' 11795 ;; 11796 11797 *nto* | *qnx*) 11798 # QNX uses GNU C++, but need to define -shared option too, otherwise 11799 # it will coredump. 11800 lt_prog_compiler_pic_GO='-fPIC -shared' 11801 ;; 11802 11803 osf3* | osf4* | osf5*) 11804 lt_prog_compiler_wl_GO='-Wl,' 11805 # All OSF/1 code is PIC. 11806 lt_prog_compiler_static_GO='-non_shared' 11807 ;; 11808 11809 rdos*) 11810 lt_prog_compiler_static_GO='-non_shared' 11811 ;; 11812 11813 solaris*) 11814 lt_prog_compiler_pic_GO='-KPIC' 11815 lt_prog_compiler_static_GO='-Bstatic' 11816 case $cc_basename in 11817 f77* | f90* | f95*) 11818 lt_prog_compiler_wl_GO='-Qoption ld ';; 11819 *) 11820 lt_prog_compiler_wl_GO='-Wl,';; 11821 esac 11822 ;; 11823 11824 sunos4*) 11825 lt_prog_compiler_wl_GO='-Qoption ld ' 11826 lt_prog_compiler_pic_GO='-PIC' 11827 lt_prog_compiler_static_GO='-Bstatic' 11828 ;; 11829 11830 sysv4 | sysv4.2uw2* | sysv4.3*) 11831 lt_prog_compiler_wl_GO='-Wl,' 11832 lt_prog_compiler_pic_GO='-KPIC' 11833 lt_prog_compiler_static_GO='-Bstatic' 11834 ;; 11835 11836 sysv4*MP*) 11837 if test -d /usr/nec ;then 11838 lt_prog_compiler_pic_GO='-Kconform_pic' 11839 lt_prog_compiler_static_GO='-Bstatic' 11840 fi 11841 ;; 11842 11843 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11844 lt_prog_compiler_wl_GO='-Wl,' 11845 lt_prog_compiler_pic_GO='-KPIC' 11846 lt_prog_compiler_static_GO='-Bstatic' 11847 ;; 11848 11849 unicos*) 11850 lt_prog_compiler_wl_GO='-Wl,' 11851 lt_prog_compiler_can_build_shared_GO=no 11852 ;; 11853 11854 uts4*) 11855 lt_prog_compiler_pic_GO='-pic' 11856 lt_prog_compiler_static_GO='-Bstatic' 11857 ;; 11858 11859 *) 11860 lt_prog_compiler_can_build_shared_GO=no 11861 ;; 11862 esac 11863 fi 11864 11865case $host_os in 11866 # For platforms which do not support PIC, -DPIC is meaningless: 11867 *djgpp*) 11868 lt_prog_compiler_pic_GO= 11869 ;; 11870 *) 11871 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO" 11872 ;; 11873esac 11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5 11875$as_echo "$lt_prog_compiler_pic_GO" >&6; } 11876 11877 11878 11879# 11880# Check to make sure the PIC flag actually works. 11881# 11882if test -n "$lt_prog_compiler_pic_GO"; then 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5 11884$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; } 11885if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then : 11886 $as_echo_n "(cached) " >&6 11887else 11888 lt_cv_prog_compiler_pic_works_GO=no 11889 ac_outfile=conftest.$ac_objext 11890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11891 lt_compiler_flag="$lt_prog_compiler_pic_GO" 11892 # Insert the option either (1) after the last *FLAGS variable, or 11893 # (2) before a word containing "conftest.", or (3) at the end. 11894 # Note that $ac_compile itself does not contain backslashes and begins 11895 # with a dollar sign (not a hyphen), so the echo should work correctly. 11896 # The option is referenced via a variable to avoid confusing sed. 11897 lt_compile=`echo "$ac_compile" | $SED \ 11898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11900 -e 's:$: $lt_compiler_flag:'` 11901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11902 (eval "$lt_compile" 2>conftest.err) 11903 ac_status=$? 11904 cat conftest.err >&5 11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11906 if (exit $ac_status) && test -s "$ac_outfile"; then 11907 # The compiler can only warn and ignore the option if not recognized 11908 # So say no if there are warnings other than the usual output. 11909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11912 lt_cv_prog_compiler_pic_works_GO=yes 11913 fi 11914 fi 11915 $RM conftest* 11916 11917fi 11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5 11919$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; } 11920 11921if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then 11922 case $lt_prog_compiler_pic_GO in 11923 "" | " "*) ;; 11924 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;; 11925 esac 11926else 11927 lt_prog_compiler_pic_GO= 11928 lt_prog_compiler_can_build_shared_GO=no 11929fi 11930 11931fi 11932 11933 11934 11935# 11936# Check to make sure the static flag actually works. 11937# 11938wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\" 11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11940$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11941if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then : 11942 $as_echo_n "(cached) " >&6 11943else 11944 lt_cv_prog_compiler_static_works_GO=no 11945 save_LDFLAGS="$LDFLAGS" 11946 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11947 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11949 # The linker can only warn and ignore the option if not recognized 11950 # So say no if there are warnings 11951 if test -s conftest.err; then 11952 # Append any errors to the config.log. 11953 cat conftest.err 1>&5 11954 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11956 if diff conftest.exp conftest.er2 >/dev/null; then 11957 lt_cv_prog_compiler_static_works_GO=yes 11958 fi 11959 else 11960 lt_cv_prog_compiler_static_works_GO=yes 11961 fi 11962 fi 11963 $RM -r conftest* 11964 LDFLAGS="$save_LDFLAGS" 11965 11966fi 11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5 11968$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; } 11969 11970if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then 11971 : 11972else 11973 lt_prog_compiler_static_GO= 11974fi 11975 11976 11977 11978 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11980$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11981if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then : 11982 $as_echo_n "(cached) " >&6 11983else 11984 lt_cv_prog_compiler_c_o_GO=no 11985 $RM -r conftest 2>/dev/null 11986 mkdir conftest 11987 cd conftest 11988 mkdir out 11989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11990 11991 lt_compiler_flag="-o out/conftest2.$ac_objext" 11992 # Insert the option either (1) after the last *FLAGS variable, or 11993 # (2) before a word containing "conftest.", or (3) at the end. 11994 # Note that $ac_compile itself does not contain backslashes and begins 11995 # with a dollar sign (not a hyphen), so the echo should work correctly. 11996 lt_compile=`echo "$ac_compile" | $SED \ 11997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11999 -e 's:$: $lt_compiler_flag:'` 12000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12001 (eval "$lt_compile" 2>out/conftest.err) 12002 ac_status=$? 12003 cat out/conftest.err >&5 12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12005 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12006 then 12007 # The compiler can only warn and ignore the option if not recognized 12008 # So say no if there are warnings 12009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12012 lt_cv_prog_compiler_c_o_GO=yes 12013 fi 12014 fi 12015 chmod u+w . 2>&5 12016 $RM conftest* 12017 # SGI C++ compiler will create directory out/ii_files/ for 12018 # template instantiation 12019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12020 $RM out/* && rmdir out 12021 cd .. 12022 $RM -r conftest 12023 $RM conftest* 12024 12025fi 12026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5 12027$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; } 12028 12029 12030 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12032$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12033if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then : 12034 $as_echo_n "(cached) " >&6 12035else 12036 lt_cv_prog_compiler_c_o_GO=no 12037 $RM -r conftest 2>/dev/null 12038 mkdir conftest 12039 cd conftest 12040 mkdir out 12041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12042 12043 lt_compiler_flag="-o out/conftest2.$ac_objext" 12044 # Insert the option either (1) after the last *FLAGS variable, or 12045 # (2) before a word containing "conftest.", or (3) at the end. 12046 # Note that $ac_compile itself does not contain backslashes and begins 12047 # with a dollar sign (not a hyphen), so the echo should work correctly. 12048 lt_compile=`echo "$ac_compile" | $SED \ 12049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12051 -e 's:$: $lt_compiler_flag:'` 12052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12053 (eval "$lt_compile" 2>out/conftest.err) 12054 ac_status=$? 12055 cat out/conftest.err >&5 12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12057 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12058 then 12059 # The compiler can only warn and ignore the option if not recognized 12060 # So say no if there are warnings 12061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12064 lt_cv_prog_compiler_c_o_GO=yes 12065 fi 12066 fi 12067 chmod u+w . 2>&5 12068 $RM conftest* 12069 # SGI C++ compiler will create directory out/ii_files/ for 12070 # template instantiation 12071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12072 $RM out/* && rmdir out 12073 cd .. 12074 $RM -r conftest 12075 $RM conftest* 12076 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5 12079$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; } 12080 12081 12082 12083 12084hard_links="nottested" 12085if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then 12086 # do not overwrite the value of need_locks provided by the user 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12088$as_echo_n "checking if we can lock with hard links... " >&6; } 12089 hard_links=yes 12090 $RM conftest* 12091 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12092 touch conftest.a 12093 ln conftest.a conftest.b 2>&5 || hard_links=no 12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12096$as_echo "$hard_links" >&6; } 12097 if test "$hard_links" = no; then 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12099$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12100 need_locks=warn 12101 fi 12102else 12103 need_locks=no 12104fi 12105 12106 12107 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12109$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12110 12111 runpath_var= 12112 allow_undefined_flag_GO= 12113 always_export_symbols_GO=no 12114 archive_cmds_GO= 12115 archive_expsym_cmds_GO= 12116 compiler_needs_object_GO=no 12117 enable_shared_with_static_runtimes_GO=no 12118 export_dynamic_flag_spec_GO= 12119 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12120 hardcode_automatic_GO=no 12121 hardcode_direct_GO=no 12122 hardcode_direct_absolute_GO=no 12123 hardcode_libdir_flag_spec_GO= 12124 hardcode_libdir_flag_spec_ld_GO= 12125 hardcode_libdir_separator_GO= 12126 hardcode_minus_L_GO=no 12127 hardcode_shlibpath_var_GO=unsupported 12128 inherit_rpath_GO=no 12129 link_all_deplibs_GO=unknown 12130 module_cmds_GO= 12131 module_expsym_cmds_GO= 12132 old_archive_from_new_cmds_GO= 12133 old_archive_from_expsyms_cmds_GO= 12134 thread_safe_flag_spec_GO= 12135 whole_archive_flag_spec_GO= 12136 # include_expsyms should be a list of space-separated symbols to be *always* 12137 # included in the symbol list 12138 include_expsyms_GO= 12139 # exclude_expsyms can be an extended regexp of symbols to exclude 12140 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12142 # as well as any symbol that contains `d'. 12143 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12145 # platforms (ab)use it in PIC code, but their linkers get confused if 12146 # the symbol is explicitly referenced. Since portable code cannot 12147 # rely on this symbol name, it's probably fine to never include it in 12148 # preloaded symbol tables. 12149 # Exclude shared library initialization/finalization symbols. 12150 extract_expsyms_cmds= 12151 12152 case $host_os in 12153 cygwin* | mingw* | pw32* | cegcc*) 12154 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12155 # When not using gcc, we currently assume that we are using 12156 # Microsoft Visual C++. 12157 if test "$GCC" != yes; then 12158 with_gnu_ld=no 12159 fi 12160 ;; 12161 interix*) 12162 # we just hope/assume this is gcc and not c89 (= MSVC++) 12163 with_gnu_ld=yes 12164 ;; 12165 openbsd*) 12166 with_gnu_ld=no 12167 ;; 12168 esac 12169 12170 ld_shlibs_GO=yes 12171 12172 # On some targets, GNU ld is compatible enough with the native linker 12173 # that we're better off using the native interface for both. 12174 lt_use_gnu_ld_interface=no 12175 if test "$with_gnu_ld" = yes; then 12176 case $host_os in 12177 aix*) 12178 # The AIX port of GNU ld has always aspired to compatibility 12179 # with the native linker. However, as the warning in the GNU ld 12180 # block says, versions before 2.19.5* couldn't really create working 12181 # shared libraries, regardless of the interface used. 12182 case `$LD -v 2>&1` in 12183 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12184 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12185 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12186 *) 12187 lt_use_gnu_ld_interface=yes 12188 ;; 12189 esac 12190 ;; 12191 *) 12192 lt_use_gnu_ld_interface=yes 12193 ;; 12194 esac 12195 fi 12196 12197 if test "$lt_use_gnu_ld_interface" = yes; then 12198 # If archive_cmds runs LD, not CC, wlarc should be empty 12199 wlarc='${wl}' 12200 12201 # Set some defaults for GNU ld with shared library support. These 12202 # are reset later if shared libraries are not supported. Putting them 12203 # here allows them to be overridden if necessary. 12204 runpath_var=LD_RUN_PATH 12205 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12206 export_dynamic_flag_spec_GO='${wl}--export-dynamic' 12207 # ancient GNU ld didn't support --whole-archive et. al. 12208 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12209 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12210 else 12211 whole_archive_flag_spec_GO= 12212 fi 12213 supports_anon_versioning=no 12214 case `$LD -v 2>&1` in 12215 *GNU\ gold*) supports_anon_versioning=yes ;; 12216 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12217 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12218 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12219 *\ 2.11.*) ;; # other 2.11 versions 12220 *) supports_anon_versioning=yes ;; 12221 esac 12222 12223 # See if GNU ld supports shared libraries. 12224 case $host_os in 12225 aix[3-9]*) 12226 # On AIX/PPC, the GNU linker is very broken 12227 if test "$host_cpu" != ia64; then 12228 ld_shlibs_GO=no 12229 cat <<_LT_EOF 1>&2 12230 12231*** Warning: the GNU linker, at least up to release 2.19, is reported 12232*** to be unable to reliably create shared libraries on AIX. 12233*** Therefore, libtool is disabling shared libraries support. If you 12234*** really care for shared libraries, you may want to install binutils 12235*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12236*** You will then need to restart the configuration process. 12237 12238_LT_EOF 12239 fi 12240 ;; 12241 12242 amigaos*) 12243 case $host_cpu in 12244 powerpc) 12245 # see comment about AmigaOS4 .so support 12246 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12247 archive_expsym_cmds_GO='' 12248 ;; 12249 m68k) 12250 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)' 12251 hardcode_libdir_flag_spec_GO='-L$libdir' 12252 hardcode_minus_L_GO=yes 12253 ;; 12254 esac 12255 ;; 12256 12257 beos*) 12258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12259 allow_undefined_flag_GO=unsupported 12260 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12261 # support --undefined. This deserves some investigation. FIXME 12262 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12263 else 12264 ld_shlibs_GO=no 12265 fi 12266 ;; 12267 12268 cygwin* | mingw* | pw32* | cegcc*) 12269 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless, 12270 # as there is no search path for DLLs. 12271 hardcode_libdir_flag_spec_GO='-L$libdir' 12272 export_dynamic_flag_spec_GO='${wl}--export-all-symbols' 12273 allow_undefined_flag_GO=unsupported 12274 always_export_symbols_GO=no 12275 enable_shared_with_static_runtimes_GO=yes 12276 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12277 12278 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12279 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12280 # If the export-symbols file already is a .def file (1st line 12281 # is EXPORTS), use it as is; otherwise, prepend... 12282 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12283 cp $export_symbols $output_objdir/$soname.def; 12284 else 12285 echo EXPORTS > $output_objdir/$soname.def; 12286 cat $export_symbols >> $output_objdir/$soname.def; 12287 fi~ 12288 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12289 else 12290 ld_shlibs_GO=no 12291 fi 12292 ;; 12293 12294 haiku*) 12295 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12296 link_all_deplibs_GO=yes 12297 ;; 12298 12299 interix[3-9]*) 12300 hardcode_direct_GO=no 12301 hardcode_shlibpath_var_GO=no 12302 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 12303 export_dynamic_flag_spec_GO='${wl}-E' 12304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12305 # Instead, shared libraries are loaded at an image base (0x10000000 by 12306 # default) and relocated if they conflict, which is a slow very memory 12307 # consuming and fragmenting process. To avoid this, we pick a random, 12308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12309 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12310 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' 12311 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' 12312 ;; 12313 12314 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12315 tmp_diet=no 12316 if test "$host_os" = linux-dietlibc; then 12317 case $cc_basename in 12318 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12319 esac 12320 fi 12321 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12322 && test "$tmp_diet" = no 12323 then 12324 tmp_addflag= 12325 tmp_sharedflag='-shared' 12326 case $cc_basename,$host_cpu in 12327 pgcc*) # Portland Group C compiler 12328 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' 12329 tmp_addflag=' $pic_flag' 12330 ;; 12331 pgf77* | pgf90* | pgf95* | pgfortran*) 12332 # Portland Group f77 and f90 compilers 12333 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' 12334 tmp_addflag=' $pic_flag -Mnomain' ;; 12335 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12336 tmp_addflag=' -i_dynamic' ;; 12337 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12338 tmp_addflag=' -i_dynamic -nofor_main' ;; 12339 ifc* | ifort*) # Intel Fortran compiler 12340 tmp_addflag=' -nofor_main' ;; 12341 lf95*) # Lahey Fortran 8.1 12342 whole_archive_flag_spec_GO= 12343 tmp_sharedflag='--shared' ;; 12344 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12345 tmp_sharedflag='-qmkshrobj' 12346 tmp_addflag= ;; 12347 nvcc*) # Cuda Compiler Driver 2.2 12348 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' 12349 compiler_needs_object_GO=yes 12350 ;; 12351 esac 12352 case `$CC -V 2>&1 | sed 5q` in 12353 *Sun\ C*) # Sun C 5.9 12354 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' 12355 compiler_needs_object_GO=yes 12356 tmp_sharedflag='-G' ;; 12357 *Sun\ F*) # Sun Fortran 8.3 12358 tmp_sharedflag='-G' ;; 12359 esac 12360 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12361 12362 if test "x$supports_anon_versioning" = xyes; then 12363 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~ 12364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12365 echo "local: *; };" >> $output_objdir/$libname.ver~ 12366 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12367 fi 12368 12369 case $cc_basename in 12370 xlf* | bgf* | bgxlf* | mpixlf*) 12371 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12372 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive' 12373 hardcode_libdir_flag_spec_GO= 12374 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir' 12375 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 12376 if test "x$supports_anon_versioning" = xyes; then 12377 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~ 12378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12379 echo "local: *; };" >> $output_objdir/$libname.ver~ 12380 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12381 fi 12382 ;; 12383 esac 12384 else 12385 ld_shlibs_GO=no 12386 fi 12387 ;; 12388 12389 netbsd*) 12390 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12391 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12392 wlarc= 12393 else 12394 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12395 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12396 fi 12397 ;; 12398 12399 solaris*) 12400 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12401 ld_shlibs_GO=no 12402 cat <<_LT_EOF 1>&2 12403 12404*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12405*** create shared libraries on Solaris systems. Therefore, libtool 12406*** is disabling shared libraries support. We urge you to upgrade GNU 12407*** binutils to release 2.9.1 or newer. Another option is to modify 12408*** your PATH or compiler configuration so that the native linker is 12409*** used, and then restart. 12410 12411_LT_EOF 12412 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12413 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12414 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12415 else 12416 ld_shlibs_GO=no 12417 fi 12418 ;; 12419 12420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12421 case `$LD -v 2>&1` in 12422 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12423 ld_shlibs_GO=no 12424 cat <<_LT_EOF 1>&2 12425 12426*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12427*** reliably create shared libraries on SCO systems. Therefore, libtool 12428*** is disabling shared libraries support. We urge you to upgrade GNU 12429*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12430*** your PATH or compiler configuration so that the native linker is 12431*** used, and then restart. 12432 12433_LT_EOF 12434 ;; 12435 *) 12436 # For security reasons, it is highly recommended that you always 12437 # use absolute paths for naming shared libraries, and exclude the 12438 # DT_RUNPATH tag from executables and libraries. But doing so 12439 # requires that you compile everything twice, which is a pain. 12440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12441 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12442 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12443 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12444 else 12445 ld_shlibs_GO=no 12446 fi 12447 ;; 12448 esac 12449 ;; 12450 12451 sunos4*) 12452 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12453 wlarc= 12454 hardcode_direct_GO=yes 12455 hardcode_shlibpath_var_GO=no 12456 ;; 12457 12458 *) 12459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12460 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12461 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12462 else 12463 ld_shlibs_GO=no 12464 fi 12465 ;; 12466 esac 12467 12468 if test "$ld_shlibs_GO" = no; then 12469 runpath_var= 12470 hardcode_libdir_flag_spec_GO= 12471 export_dynamic_flag_spec_GO= 12472 whole_archive_flag_spec_GO= 12473 fi 12474 else 12475 # PORTME fill in a description of your system's linker (not GNU ld) 12476 case $host_os in 12477 aix3*) 12478 allow_undefined_flag_GO=unsupported 12479 always_export_symbols_GO=yes 12480 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' 12481 # Note: this linker hardcodes the directories in LIBPATH if there 12482 # are no directories specified by -L. 12483 hardcode_minus_L_GO=yes 12484 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 12485 # Neither direct hardcoding nor static linking is supported with a 12486 # broken collect2. 12487 hardcode_direct_GO=unsupported 12488 fi 12489 ;; 12490 12491 aix[4-9]*) 12492 if test "$host_cpu" = ia64; then 12493 # On IA64, the linker does run time linking by default, so we don't 12494 # have to do anything special. 12495 aix_use_runtimelinking=no 12496 exp_sym_flag='-Bexport' 12497 no_entry_flag="" 12498 else 12499 # If we're using GNU nm, then we don't want the "-C" option. 12500 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12501 # Also, AIX nm treats weak defined symbols like other global 12502 # defined symbols, whereas GNU nm marks them as "W". 12503 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12504 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' 12505 else 12506 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' 12507 fi 12508 aix_use_runtimelinking=no 12509 12510 # Test if we are trying to use run time linking or normal 12511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12512 # need to do runtime linking. 12513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12514 for ld_flag in $LDFLAGS; do 12515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12516 aix_use_runtimelinking=yes 12517 break 12518 fi 12519 done 12520 ;; 12521 esac 12522 12523 exp_sym_flag='-bexport' 12524 no_entry_flag='-bnoentry' 12525 fi 12526 12527 # When large executables or shared objects are built, AIX ld can 12528 # have problems creating the table of contents. If linking a library 12529 # or program results in "error TOC overflow" add -mminimal-toc to 12530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12532 12533 archive_cmds_GO='' 12534 hardcode_direct_GO=yes 12535 hardcode_direct_absolute_GO=yes 12536 hardcode_libdir_separator_GO=':' 12537 link_all_deplibs_GO=yes 12538 file_list_spec_GO='${wl}-f,' 12539 12540 if test "$GCC" = yes; then 12541 case $host_os in aix4.[012]|aix4.[012].*) 12542 # We only want to do this on AIX 4.2 and lower, the check 12543 # below for broken collect2 doesn't work under 4.3+ 12544 collect2name=`${CC} -print-prog-name=collect2` 12545 if test -f "$collect2name" && 12546 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12547 then 12548 # We have reworked collect2 12549 : 12550 else 12551 # We have old collect2 12552 hardcode_direct_GO=unsupported 12553 # It fails to find uninstalled libraries when the uninstalled 12554 # path is not listed in the libpath. Setting hardcode_minus_L 12555 # to unsupported forces relinking 12556 hardcode_minus_L_GO=yes 12557 hardcode_libdir_flag_spec_GO='-L$libdir' 12558 hardcode_libdir_separator_GO= 12559 fi 12560 ;; 12561 esac 12562 shared_flag='-shared' 12563 if test "$aix_use_runtimelinking" = yes; then 12564 shared_flag="$shared_flag "'${wl}-G' 12565 fi 12566 else 12567 # not using gcc 12568 if test "$host_cpu" = ia64; then 12569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12570 # chokes on -Wl,-G. The following line is correct: 12571 shared_flag='-G' 12572 else 12573 if test "$aix_use_runtimelinking" = yes; then 12574 shared_flag='${wl}-G' 12575 else 12576 shared_flag='${wl}-bM:SRE' 12577 fi 12578 fi 12579 fi 12580 12581 export_dynamic_flag_spec_GO='${wl}-bexpall' 12582 # It seems that -bexpall does not export symbols beginning with 12583 # underscore (_), so it is better to generate a list of symbols to export. 12584 always_export_symbols_GO=yes 12585 if test "$aix_use_runtimelinking" = yes; then 12586 # Warning - without using the other runtime loading flags (-brtl), 12587 # -berok will link without error, but may produce a broken library. 12588 allow_undefined_flag_GO='-berok' 12589 # Determine the default libpath from the value encoded in an 12590 # empty executable. 12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12592/* end confdefs.h. */ 12593 12594int 12595main () 12596{ 12597 12598 ; 12599 return 0; 12600} 12601_ACEOF 12602if ac_fn_c_try_link "$LINENO"; then : 12603 12604lt_aix_libpath_sed=' 12605 /Import File Strings/,/^$/ { 12606 /^0/ { 12607 s/^0 *\(.*\)$/\1/ 12608 p 12609 } 12610 }' 12611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12612# Check for a 64-bit object if we didn't find anything. 12613if test -z "$aix_libpath"; then 12614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12615fi 12616fi 12617rm -f core conftest.err conftest.$ac_objext \ 12618 conftest$ac_exeext conftest.$ac_ext 12619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12620 12621 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath" 12622 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" 12623 else 12624 if test "$host_cpu" = ia64; then 12625 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib' 12626 allow_undefined_flag_GO="-z nodefs" 12627 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" 12628 else 12629 # Determine the default libpath from the value encoded in an 12630 # empty executable. 12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12632/* end confdefs.h. */ 12633 12634int 12635main () 12636{ 12637 12638 ; 12639 return 0; 12640} 12641_ACEOF 12642if ac_fn_c_try_link "$LINENO"; then : 12643 12644lt_aix_libpath_sed=' 12645 /Import File Strings/,/^$/ { 12646 /^0/ { 12647 s/^0 *\(.*\)$/\1/ 12648 p 12649 } 12650 }' 12651aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12652# Check for a 64-bit object if we didn't find anything. 12653if test -z "$aix_libpath"; then 12654 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12655fi 12656fi 12657rm -f core conftest.err conftest.$ac_objext \ 12658 conftest$ac_exeext conftest.$ac_ext 12659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12660 12661 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath" 12662 # Warning - without using the other run time loading flags, 12663 # -berok will link without error, but may produce a broken library. 12664 no_undefined_flag_GO=' ${wl}-bernotok' 12665 allow_undefined_flag_GO=' ${wl}-berok' 12666 if test "$with_gnu_ld" = yes; then 12667 # We only use this code for GNU lds that support --whole-archive. 12668 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12669 else 12670 # Exported symbols can be pulled into shared objects from archives 12671 whole_archive_flag_spec_GO='$convenience' 12672 fi 12673 archive_cmds_need_lc_GO=yes 12674 # This is similar to how AIX traditionally builds its shared libraries. 12675 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' 12676 fi 12677 fi 12678 ;; 12679 12680 amigaos*) 12681 case $host_cpu in 12682 powerpc) 12683 # see comment about AmigaOS4 .so support 12684 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12685 archive_expsym_cmds_GO='' 12686 ;; 12687 m68k) 12688 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)' 12689 hardcode_libdir_flag_spec_GO='-L$libdir' 12690 hardcode_minus_L_GO=yes 12691 ;; 12692 esac 12693 ;; 12694 12695 bsdi[45]*) 12696 export_dynamic_flag_spec_GO=-rdynamic 12697 ;; 12698 12699 cygwin* | mingw* | pw32* | cegcc*) 12700 # When not using gcc, we currently assume that we are using 12701 # Microsoft Visual C++. 12702 # hardcode_libdir_flag_spec is actually meaningless, as there is 12703 # no search path for DLLs. 12704 hardcode_libdir_flag_spec_GO=' ' 12705 allow_undefined_flag_GO=unsupported 12706 # Tell ltmain to make .lib files, not .a files. 12707 libext=lib 12708 # Tell ltmain to make .dll files, not .so files. 12709 shrext_cmds=".dll" 12710 # FIXME: Setting linknames here is a bad hack. 12711 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12712 # The linker will automatically build a .lib file if we build a DLL. 12713 old_archive_from_new_cmds_GO='true' 12714 # FIXME: Should let the user specify the lib program. 12715 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs' 12716 fix_srcfile_path_GO='`cygpath -w "$srcfile"`' 12717 enable_shared_with_static_runtimes_GO=yes 12718 ;; 12719 12720 darwin* | rhapsody*) 12721 12722 12723 archive_cmds_need_lc_GO=no 12724 hardcode_direct_GO=no 12725 hardcode_automatic_GO=yes 12726 hardcode_shlibpath_var_GO=unsupported 12727 if test "$lt_cv_ld_force_load" = "yes"; then 12728 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\"`' 12729 else 12730 whole_archive_flag_spec_GO='' 12731 fi 12732 link_all_deplibs_GO=yes 12733 allow_undefined_flag_GO="$_lt_dar_allow_undefined" 12734 case $cc_basename in 12735 ifort*) _lt_dar_can_shared=yes ;; 12736 *) _lt_dar_can_shared=$GCC ;; 12737 esac 12738 if test "$_lt_dar_can_shared" = "yes"; then 12739 output_verbose_link_cmd=func_echo_all 12740 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}" 12741 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12742 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}" 12743 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}" 12744 12745 else 12746 ld_shlibs_GO=no 12747 fi 12748 12749 ;; 12750 12751 dgux*) 12752 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12753 hardcode_libdir_flag_spec_GO='-L$libdir' 12754 hardcode_shlibpath_var_GO=no 12755 ;; 12756 12757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12758 # support. Future versions do this automatically, but an explicit c++rt0.o 12759 # does not break anything, and helps significantly (at the cost of a little 12760 # extra space). 12761 freebsd2.2*) 12762 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12763 hardcode_libdir_flag_spec_GO='-R$libdir' 12764 hardcode_direct_GO=yes 12765 hardcode_shlibpath_var_GO=no 12766 ;; 12767 12768 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12769 freebsd2*) 12770 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12771 hardcode_direct_GO=yes 12772 hardcode_minus_L_GO=yes 12773 hardcode_shlibpath_var_GO=no 12774 ;; 12775 12776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12777 freebsd* | dragonfly*) 12778 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 12779 hardcode_libdir_flag_spec_GO='-R$libdir' 12780 hardcode_direct_GO=yes 12781 hardcode_shlibpath_var_GO=no 12782 ;; 12783 12784 hpux9*) 12785 if test "$GCC" = yes; then 12786 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' 12787 else 12788 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' 12789 fi 12790 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' 12791 hardcode_libdir_separator_GO=: 12792 hardcode_direct_GO=yes 12793 12794 # hardcode_minus_L: Not really in the search PATH, 12795 # but as the default location of the library. 12796 hardcode_minus_L_GO=yes 12797 export_dynamic_flag_spec_GO='${wl}-E' 12798 ;; 12799 12800 hpux10*) 12801 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12802 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12803 else 12804 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12805 fi 12806 if test "$with_gnu_ld" = no; then 12807 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' 12808 hardcode_libdir_flag_spec_ld_GO='+b $libdir' 12809 hardcode_libdir_separator_GO=: 12810 hardcode_direct_GO=yes 12811 hardcode_direct_absolute_GO=yes 12812 export_dynamic_flag_spec_GO='${wl}-E' 12813 # hardcode_minus_L: Not really in the search PATH, 12814 # but as the default location of the library. 12815 hardcode_minus_L_GO=yes 12816 fi 12817 ;; 12818 12819 hpux11*) 12820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12821 case $host_cpu in 12822 hppa*64*) 12823 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12824 ;; 12825 ia64*) 12826 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12827 ;; 12828 *) 12829 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12830 ;; 12831 esac 12832 else 12833 case $host_cpu in 12834 hppa*64*) 12835 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12836 ;; 12837 ia64*) 12838 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12839 ;; 12840 *) 12841 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12842 ;; 12843 esac 12844 fi 12845 if test "$with_gnu_ld" = no; then 12846 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' 12847 hardcode_libdir_separator_GO=: 12848 12849 case $host_cpu in 12850 hppa*64*|ia64*) 12851 hardcode_direct_GO=no 12852 hardcode_shlibpath_var_GO=no 12853 ;; 12854 *) 12855 hardcode_direct_GO=yes 12856 hardcode_direct_absolute_GO=yes 12857 export_dynamic_flag_spec_GO='${wl}-E' 12858 12859 # hardcode_minus_L: Not really in the search PATH, 12860 # but as the default location of the library. 12861 hardcode_minus_L_GO=yes 12862 ;; 12863 esac 12864 fi 12865 ;; 12866 12867 irix5* | irix6* | nonstopux*) 12868 if test "$GCC" = yes; then 12869 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' 12870 # Try to use the -exported_symbol ld option, if it does not 12871 # work, assume that -exports_file does not work either and 12872 # implicitly export all symbols. 12873 save_LDFLAGS="$LDFLAGS" 12874 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12876/* end confdefs.h. */ 12877int foo(void) {} 12878_ACEOF 12879if ac_fn_c_try_link "$LINENO"; then : 12880 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' 12881 12882fi 12883rm -f core conftest.err conftest.$ac_objext \ 12884 conftest$ac_exeext conftest.$ac_ext 12885 LDFLAGS="$save_LDFLAGS" 12886 else 12887 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' 12888 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' 12889 fi 12890 archive_cmds_need_lc_GO='no' 12891 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12892 hardcode_libdir_separator_GO=: 12893 inherit_rpath_GO=yes 12894 link_all_deplibs_GO=yes 12895 ;; 12896 12897 netbsd*) 12898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12899 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12900 else 12901 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12902 fi 12903 hardcode_libdir_flag_spec_GO='-R$libdir' 12904 hardcode_direct_GO=yes 12905 hardcode_shlibpath_var_GO=no 12906 ;; 12907 12908 newsos6) 12909 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12910 hardcode_direct_GO=yes 12911 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12912 hardcode_libdir_separator_GO=: 12913 hardcode_shlibpath_var_GO=no 12914 ;; 12915 12916 *nto* | *qnx*) 12917 ;; 12918 12919 openbsd*) 12920 if test -f /usr/libexec/ld.so; then 12921 hardcode_direct_GO=yes 12922 hardcode_shlibpath_var_GO=no 12923 hardcode_direct_absolute_GO=yes 12924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12925 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12926 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12927 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 12928 export_dynamic_flag_spec_GO='${wl}-E' 12929 else 12930 case $host_os in 12931 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12932 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12933 hardcode_libdir_flag_spec_GO='-R$libdir' 12934 ;; 12935 *) 12936 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12937 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 12938 ;; 12939 esac 12940 fi 12941 else 12942 ld_shlibs_GO=no 12943 fi 12944 ;; 12945 12946 os2*) 12947 hardcode_libdir_flag_spec_GO='-L$libdir' 12948 hardcode_minus_L_GO=yes 12949 allow_undefined_flag_GO=unsupported 12950 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' 12951 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12952 ;; 12953 12954 osf3*) 12955 if test "$GCC" = yes; then 12956 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*' 12957 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' 12958 else 12959 allow_undefined_flag_GO=' -expect_unresolved \*' 12960 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' 12961 fi 12962 archive_cmds_need_lc_GO='no' 12963 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12964 hardcode_libdir_separator_GO=: 12965 ;; 12966 12967 osf4* | osf5*) # as osf3* with the addition of -msym flag 12968 if test "$GCC" = yes; then 12969 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*' 12970 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' 12971 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' 12972 else 12973 allow_undefined_flag_GO=' -expect_unresolved \*' 12974 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' 12975 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~ 12976 $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' 12977 12978 # Both c and cxx compiler support -rpath directly 12979 hardcode_libdir_flag_spec_GO='-rpath $libdir' 12980 fi 12981 archive_cmds_need_lc_GO='no' 12982 hardcode_libdir_separator_GO=: 12983 ;; 12984 12985 solaris*) 12986 no_undefined_flag_GO=' -z defs' 12987 if test "$GCC" = yes; then 12988 wlarc='${wl}' 12989 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12990 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12991 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12992 else 12993 case `$CC -V 2>&1` in 12994 *"Compilers 5.0"*) 12995 wlarc='' 12996 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12997 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12999 ;; 13000 *) 13001 wlarc='${wl}' 13002 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13003 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13004 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13005 ;; 13006 esac 13007 fi 13008 hardcode_libdir_flag_spec_GO='-R$libdir' 13009 hardcode_shlibpath_var_GO=no 13010 case $host_os in 13011 solaris2.[0-5] | solaris2.[0-5].*) ;; 13012 *) 13013 # The compiler driver will combine and reorder linker options, 13014 # but understands `-z linker_flag'. GCC discards it without `$wl', 13015 # but is careful enough not to reorder. 13016 # Supported since Solaris 2.6 (maybe 2.5.1?) 13017 if test "$GCC" = yes; then 13018 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13019 else 13020 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract' 13021 fi 13022 ;; 13023 esac 13024 link_all_deplibs_GO=yes 13025 ;; 13026 13027 sunos4*) 13028 if test "x$host_vendor" = xsequent; then 13029 # Use $CC to link under sequent, because it throws in some extra .o 13030 # files that make .init and .fini sections work. 13031 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13032 else 13033 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13034 fi 13035 hardcode_libdir_flag_spec_GO='-L$libdir' 13036 hardcode_direct_GO=yes 13037 hardcode_minus_L_GO=yes 13038 hardcode_shlibpath_var_GO=no 13039 ;; 13040 13041 sysv4) 13042 case $host_vendor in 13043 sni) 13044 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13045 hardcode_direct_GO=yes # is this really true??? 13046 ;; 13047 siemens) 13048 ## LD is ld it makes a PLAMLIB 13049 ## CC just makes a GrossModule. 13050 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13051 reload_cmds_GO='$CC -r -o $output$reload_objs' 13052 hardcode_direct_GO=no 13053 ;; 13054 motorola) 13055 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13056 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie 13057 ;; 13058 esac 13059 runpath_var='LD_RUN_PATH' 13060 hardcode_shlibpath_var_GO=no 13061 ;; 13062 13063 sysv4.3*) 13064 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13065 hardcode_shlibpath_var_GO=no 13066 export_dynamic_flag_spec_GO='-Bexport' 13067 ;; 13068 13069 sysv4*MP*) 13070 if test -d /usr/nec; then 13071 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13072 hardcode_shlibpath_var_GO=no 13073 runpath_var=LD_RUN_PATH 13074 hardcode_runpath_var=yes 13075 ld_shlibs_GO=yes 13076 fi 13077 ;; 13078 13079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13080 no_undefined_flag_GO='${wl}-z,text' 13081 archive_cmds_need_lc_GO=no 13082 hardcode_shlibpath_var_GO=no 13083 runpath_var='LD_RUN_PATH' 13084 13085 if test "$GCC" = yes; then 13086 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13087 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13088 else 13089 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13090 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13091 fi 13092 ;; 13093 13094 sysv5* | sco3.2v5* | sco5v6*) 13095 # Note: We can NOT use -z defs as we might desire, because we do not 13096 # link with -lc, and that would cause any symbols used from libc to 13097 # always be unresolved, which means just about no library would 13098 # ever link correctly. If we're not using GNU ld we use -z text 13099 # though, which does catch some bad symbols but isn't as heavy-handed 13100 # as -z defs. 13101 no_undefined_flag_GO='${wl}-z,text' 13102 allow_undefined_flag_GO='${wl}-z,nodefs' 13103 archive_cmds_need_lc_GO=no 13104 hardcode_shlibpath_var_GO=no 13105 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir' 13106 hardcode_libdir_separator_GO=':' 13107 link_all_deplibs_GO=yes 13108 export_dynamic_flag_spec_GO='${wl}-Bexport' 13109 runpath_var='LD_RUN_PATH' 13110 13111 if test "$GCC" = yes; then 13112 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13113 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13114 else 13115 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13116 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13117 fi 13118 ;; 13119 13120 uts4*) 13121 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13122 hardcode_libdir_flag_spec_GO='-L$libdir' 13123 hardcode_shlibpath_var_GO=no 13124 ;; 13125 13126 *) 13127 ld_shlibs_GO=no 13128 ;; 13129 esac 13130 13131 if test x$host_vendor = xsni; then 13132 case $host in 13133 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13134 export_dynamic_flag_spec_GO='${wl}-Blargedynsym' 13135 ;; 13136 esac 13137 fi 13138 fi 13139 13140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5 13141$as_echo "$ld_shlibs_GO" >&6; } 13142test "$ld_shlibs_GO" = no && can_build_shared=no 13143 13144with_gnu_ld_GO=$with_gnu_ld 13145 13146 13147 13148 13149 13150 13151# 13152# Do we need to explicitly link libc? 13153# 13154case "x$archive_cmds_need_lc_GO" in 13155x|xyes) 13156 # Assume -lc should be added 13157 archive_cmds_need_lc_GO=yes 13158 13159 if test "$enable_shared" = yes && test "$GCC" = yes; then 13160 case $archive_cmds_GO in 13161 *'~'*) 13162 # FIXME: we may have to deal with multi-command sequences. 13163 ;; 13164 '$CC '*) 13165 # Test whether the compiler implicitly links with -lc since on some 13166 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13167 # to ld, don't add -lc before -lgcc. 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13169$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13170if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then : 13171 $as_echo_n "(cached) " >&6 13172else 13173 $RM conftest* 13174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13175 13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13177 (eval $ac_compile) 2>&5 13178 ac_status=$? 13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13180 test $ac_status = 0; } 2>conftest.err; then 13181 soname=conftest 13182 lib=conftest 13183 libobjs=conftest.$ac_objext 13184 deplibs= 13185 wl=$lt_prog_compiler_wl_GO 13186 pic_flag=$lt_prog_compiler_pic_GO 13187 compiler_flags=-v 13188 linker_flags=-v 13189 verstring= 13190 output_objdir=. 13191 libname=conftest 13192 lt_save_allow_undefined_flag=$allow_undefined_flag_GO 13193 allow_undefined_flag_GO= 13194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13195 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13196 ac_status=$? 13197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13198 test $ac_status = 0; } 13199 then 13200 lt_cv_archive_cmds_need_lc_GO=no 13201 else 13202 lt_cv_archive_cmds_need_lc_GO=yes 13203 fi 13204 allow_undefined_flag_GO=$lt_save_allow_undefined_flag 13205 else 13206 cat conftest.err 1>&5 13207 fi 13208 $RM conftest* 13209 13210fi 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5 13212$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; } 13213 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO 13214 ;; 13215 esac 13216 fi 13217 ;; 13218esac 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13284$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13285hardcode_action_GO= 13286if test -n "$hardcode_libdir_flag_spec_GO" || 13287 test -n "$runpath_var_GO" || 13288 test "X$hardcode_automatic_GO" = "Xyes" ; then 13289 13290 # We can hardcode non-existent directories. 13291 if test "$hardcode_direct_GO" != no && 13292 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13293 # have to relink, otherwise we might link with an installed library 13294 # when we should be linking with a yet-to-be-installed one 13295 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no && 13296 test "$hardcode_minus_L_GO" != no; then 13297 # Linking always hardcodes the temporary library directory. 13298 hardcode_action_GO=relink 13299 else 13300 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13301 hardcode_action_GO=immediate 13302 fi 13303else 13304 # We cannot hardcode anything, or else we can only hardcode existing 13305 # directories. 13306 hardcode_action_GO=unsupported 13307fi 13308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5 13309$as_echo "$hardcode_action_GO" >&6; } 13310 13311if test "$hardcode_action_GO" = relink || 13312 test "$inherit_rpath_GO" = yes; then 13313 # Fast installation is not supported 13314 enable_fast_install=no 13315elif test "$shlibpath_overrides_runpath" = yes || 13316 test "$enable_shared" = no; then 13317 # Fast installation is not necessary 13318 enable_fast_install=needless 13319fi 13320 13321 13322 13323 13324 13325 13326 13327fi 13328 13329ac_ext=c 13330ac_cpp='$CPP $CPPFLAGS' 13331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13333ac_compiler_gnu=$ac_cv_c_compiler_gnu 13334 13335 13336GCC=$lt_save_GCC 13337CC="$lt_save_CC" 13338 13339 13340 13341 13342 ac_config_commands="$ac_config_commands libtool" 13343 13344 13345 13346 13347# Only expand once: 13348 13349 13350 13351 13352 13353CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} 13354 13355 13356for ac_prog in gawk mawk nawk awk 13357do 13358 # Extract the first word of "$ac_prog", so it can be a program name with args. 13359set dummy $ac_prog; ac_word=$2 13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13361$as_echo_n "checking for $ac_word... " >&6; } 13362if test "${ac_cv_prog_AWK+set}" = set; then : 13363 $as_echo_n "(cached) " >&6 13364else 13365 if test -n "$AWK"; then 13366 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13367else 13368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13369for as_dir in $PATH 13370do 13371 IFS=$as_save_IFS 13372 test -z "$as_dir" && as_dir=. 13373 for ac_exec_ext in '' $ac_executable_extensions; do 13374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13375 ac_cv_prog_AWK="$ac_prog" 13376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13377 break 2 13378 fi 13379done 13380 done 13381IFS=$as_save_IFS 13382 13383fi 13384fi 13385AWK=$ac_cv_prog_AWK 13386if test -n "$AWK"; then 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13388$as_echo "$AWK" >&6; } 13389else 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13391$as_echo "no" >&6; } 13392fi 13393 13394 13395 test -n "$AWK" && break 13396done 13397 13398 13399WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual' 13400 13401 13402# Check whether --enable-werror was given. 13403if test "${enable_werror+set}" = set; then : 13404 enableval=$enable_werror; 13405fi 13406 13407if test "x$enable_werror" != "xno"; then 13408 WERROR="-Werror" 13409fi 13410 13411 13412glibgo_toolexecdir=no 13413glibgo_toolexeclibdir=no 13414 13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 13416$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 13417# Check whether --enable-version-specific-runtime-libs was given. 13418if test "${enable_version_specific_runtime_libs+set}" = set; then : 13419 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 13420 yes) version_specific_libs=yes ;; 13421 no) version_specific_libs=no ;; 13422 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 13423 esac 13424else 13425 version_specific_libs=no 13426fi 13427 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 13429$as_echo "$version_specific_libs" >&6; } 13430 13431# Version-specific runtime libs processing. 13432if test $version_specific_libs = yes; then 13433 glibgo_toolexecdir='${libdir}/gcc/${host_alias}' 13434 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)' 13435fi 13436 13437# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir 13438# Install a library built with a cross compiler in tooldir, not libdir. 13439if test -n "$with_cross_host" && 13440 test x"$with_cross_host" != x"no"; then 13441 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}' 13442 nover_glibgo_toolexeclibdir='${toolexecdir}/lib' 13443else 13444 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}' 13445 nover_glibgo_toolexeclibdir='${libdir}' 13446fi 13447multi_os_directory=`$CC -print-multi-os-directory` 13448case $multi_os_directory in 13449 .) ;; # Avoid trailing /. 13450 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;; 13451esac 13452 13453if test x"$glibgo_toolexecdir" = x"no"; then 13454 glibgo_toolexecdir="${nover_glibgo_toolexecdir}" 13455 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}" 13456fi 13457 13458 13459 13460 13461 13462# See if the user wants to configure without libffi. Some 13463# architectures don't support it. FIXME: We should set a default 13464# based on the host. 13465 13466# Check whether --with-libffi was given. 13467if test "${with_libffi+set}" = set; then : 13468 withval=$with_libffi; : 13469else 13470 with_libffi=${with_libffi_default-yes} 13471fi 13472 13473 13474LIBFFI= 13475LIBFFIINCS= 13476if test "$with_libffi" != no; then 13477 13478$as_echo "#define USE_LIBFFI 1" >>confdefs.h 13479 13480 LIBFFI=../libffi/libffi_convenience.la 13481 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include' 13482fi 13483 13484 13485 13486# Used to tell GNU make to include a file without telling automake to 13487# include it. 13488go_include="-include" 13489 13490 13491is_darwin=no 13492is_freebsd=no 13493is_irix=no 13494is_linux=no 13495is_netbsd=no 13496is_openbsd=no 13497is_dragonfly=no 13498is_rtems=no 13499is_solaris=no 13500GOOS=unknown 13501case ${host} in 13502 *-*-darwin*) is_darwin=yes; GOOS=darwin ;; 13503 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;; 13504 *-*-irix6*) is_irix=yes; GOOS=irix ;; 13505 *-*-linux*) is_linux=yes; GOOS=linux ;; 13506 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;; 13507 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;; 13508 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;; 13509 *-*-rtems*) is_rtems=yes; GOOS=rtems ;; 13510 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;; 13511esac 13512 if test $is_darwin = yes; then 13513 LIBGO_IS_DARWIN_TRUE= 13514 LIBGO_IS_DARWIN_FALSE='#' 13515else 13516 LIBGO_IS_DARWIN_TRUE='#' 13517 LIBGO_IS_DARWIN_FALSE= 13518fi 13519 13520 if test $is_freebsd = yes; then 13521 LIBGO_IS_FREEBSD_TRUE= 13522 LIBGO_IS_FREEBSD_FALSE='#' 13523else 13524 LIBGO_IS_FREEBSD_TRUE='#' 13525 LIBGO_IS_FREEBSD_FALSE= 13526fi 13527 13528 if test $is_irix = yes; then 13529 LIBGO_IS_IRIX_TRUE= 13530 LIBGO_IS_IRIX_FALSE='#' 13531else 13532 LIBGO_IS_IRIX_TRUE='#' 13533 LIBGO_IS_IRIX_FALSE= 13534fi 13535 13536 if test $is_linux = yes; then 13537 LIBGO_IS_LINUX_TRUE= 13538 LIBGO_IS_LINUX_FALSE='#' 13539else 13540 LIBGO_IS_LINUX_TRUE='#' 13541 LIBGO_IS_LINUX_FALSE= 13542fi 13543 13544 if test $is_netbsd = yes; then 13545 LIBGO_IS_NETBSD_TRUE= 13546 LIBGO_IS_NETBSD_FALSE='#' 13547else 13548 LIBGO_IS_NETBSD_TRUE='#' 13549 LIBGO_IS_NETBSD_FALSE= 13550fi 13551 13552 if test $is_openbsd = yes; then 13553 LIBGO_IS_OPENBSD_TRUE= 13554 LIBGO_IS_OPENBSD_FALSE='#' 13555else 13556 LIBGO_IS_OPENBSD_TRUE='#' 13557 LIBGO_IS_OPENBSD_FALSE= 13558fi 13559 13560 if test $is_dragonfly = yes; then 13561 LIBGO_IS_DRAGONFLY_TRUE= 13562 LIBGO_IS_DRAGONFLY_FALSE='#' 13563else 13564 LIBGO_IS_DRAGONFLY_TRUE='#' 13565 LIBGO_IS_DRAGONFLY_FALSE= 13566fi 13567 13568 if test $is_rtems = yes; then 13569 LIBGO_IS_RTEMS_TRUE= 13570 LIBGO_IS_RTEMS_FALSE='#' 13571else 13572 LIBGO_IS_RTEMS_TRUE='#' 13573 LIBGO_IS_RTEMS_FALSE= 13574fi 13575 13576 if test $is_solaris = yes; then 13577 LIBGO_IS_SOLARIS_TRUE= 13578 LIBGO_IS_SOLARIS_FALSE='#' 13579else 13580 LIBGO_IS_SOLARIS_TRUE='#' 13581 LIBGO_IS_SOLARIS_FALSE= 13582fi 13583 13584 13585 13586USE_DEJAGNU=no 13587case ${host} in 13588 *-*-rtems*) USE_DEJAGNU=yes ;; 13589 ${build}) ;; 13590 *) USE_DEJAGNU=yes ;; 13591esac 13592 13593 13594is_386=no 13595is_alpha=no 13596is_arm=no 13597is_arm64=no 13598is_m68k=no 13599mips_abi=unknown 13600is_ppc=no 13601is_ppc64=no 13602is_sparc=no 13603is_sparc64=no 13604is_x86_64=no 13605GOARCH=unknown 13606case ${host} in 13607 alpha*-*-*) 13608 is_alpha=yes 13609 GOARCH=alpha 13610 ;; 13611 aarch64-*-*) 13612 is_arm64=yes 13613 GOARCH=arm64 13614 ;; 13615 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*) 13616 is_arm=yes 13617 GOARCH=arm 13618 ;; 13619 i[34567]86-*-* | x86_64-*-*) 13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13621/* end confdefs.h. */ 13622 13623#ifdef __x86_64__ 13624#error 64-bit 13625#endif 13626_ACEOF 13627if ac_fn_c_try_compile "$LINENO"; then : 13628 is_386=yes 13629else 13630 is_x86_64=yes 13631fi 13632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13633 if test "$is_386" = "yes"; then 13634 GOARCH=386 13635 else 13636 GOARCH=amd64 13637 fi 13638 ;; 13639 m68k*-*-*) 13640 is_m68k=yes 13641 GOARCH=m68k 13642 ;; 13643 mips*-*-*) 13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13645/* end confdefs.h. */ 13646 13647#if _MIPS_SIM != _ABIO32 13648#error not o32 13649#endif 13650_ACEOF 13651if ac_fn_c_try_compile "$LINENO"; then : 13652 mips_abi="o32" 13653else 13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13655/* end confdefs.h. */ 13656 13657#if _MIPS_SIM != _ABIN32 13658#error not n32 13659#endif 13660_ACEOF 13661if ac_fn_c_try_compile "$LINENO"; then : 13662 mips_abi="n32" 13663else 13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13665/* end confdefs.h. */ 13666 13667#if _MIPS_SIM != _ABI64 13668#error not n64 13669#endif 13670_ACEOF 13671if ac_fn_c_try_compile "$LINENO"; then : 13672 mips_abi="n64" 13673else 13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13675/* end confdefs.h. */ 13676 13677#if _MIPS_SIM != _ABIO64 13678#error not o64 13679#endif 13680_ACEOF 13681if ac_fn_c_try_compile "$LINENO"; then : 13682 mips_abi="o64" 13683else 13684 as_fn_error "unknown MIPS ABI" "$LINENO" 5 13685mips_abi="n32" 13686fi 13687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13688fi 13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13690fi 13691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13692fi 13693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13694 case "$mips_abi" in 13695 "o32") GOARCH=mipso32 ;; 13696 "n32") GOARCH=mipsn32 ;; 13697 "n64") GOARCH=mipsn64 ;; 13698 "o64") GOARCH=mipso64 ;; 13699 esac 13700 ;; 13701 rs6000*-*-* | powerpc*-*-*) 13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13703/* end confdefs.h. */ 13704 13705#ifdef _ARCH_PPC64 13706#error 64-bit 13707#endif 13708_ACEOF 13709if ac_fn_c_try_compile "$LINENO"; then : 13710 is_ppc=yes 13711else 13712 is_ppc64=yes 13713fi 13714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13715 if test "$is_ppc" = "yes"; then 13716 GOARCH=ppc 13717 else 13718 GOARCH=ppc64 13719 fi 13720 ;; 13721 sparc*-*-*) 13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13723/* end confdefs.h. */ 13724 13725#if defined(__sparcv9) || defined(__arch64__) 13726#error 64-bit 13727#endif 13728_ACEOF 13729if ac_fn_c_try_compile "$LINENO"; then : 13730 is_sparc=yes 13731else 13732 is_sparc64=yes 13733fi 13734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13735 if test "$is_sparc" = "yes"; then 13736 GOARCH=sparc 13737 else 13738 GOARCH=sparc64 13739 fi 13740 ;; 13741esac 13742 if test $is_386 = yes; then 13743 LIBGO_IS_386_TRUE= 13744 LIBGO_IS_386_FALSE='#' 13745else 13746 LIBGO_IS_386_TRUE='#' 13747 LIBGO_IS_386_FALSE= 13748fi 13749 13750 if test $is_alpha = yes; then 13751 LIBGO_IS_ALPHA_TRUE= 13752 LIBGO_IS_ALPHA_FALSE='#' 13753else 13754 LIBGO_IS_ALPHA_TRUE='#' 13755 LIBGO_IS_ALPHA_FALSE= 13756fi 13757 13758 if test $is_arm = yes; then 13759 LIBGO_IS_ARM_TRUE= 13760 LIBGO_IS_ARM_FALSE='#' 13761else 13762 LIBGO_IS_ARM_TRUE='#' 13763 LIBGO_IS_ARM_FALSE= 13764fi 13765 13766 if test $is_arm64 = yes; then 13767 LIBGO_IS_ARM64_TRUE= 13768 LIBGO_IS_ARM64_FALSE='#' 13769else 13770 LIBGO_IS_ARM64_TRUE='#' 13771 LIBGO_IS_ARM64_FALSE= 13772fi 13773 13774 if test $is_m68k = yes; then 13775 LIBGO_IS_M68K_TRUE= 13776 LIBGO_IS_M68K_FALSE='#' 13777else 13778 LIBGO_IS_M68K_TRUE='#' 13779 LIBGO_IS_M68K_FALSE= 13780fi 13781 13782 if test $mips_abi != unknown; then 13783 LIBGO_IS_MIPS_TRUE= 13784 LIBGO_IS_MIPS_FALSE='#' 13785else 13786 LIBGO_IS_MIPS_TRUE='#' 13787 LIBGO_IS_MIPS_FALSE= 13788fi 13789 13790 if test $mips_abi = o32; then 13791 LIBGO_IS_MIPSO32_TRUE= 13792 LIBGO_IS_MIPSO32_FALSE='#' 13793else 13794 LIBGO_IS_MIPSO32_TRUE='#' 13795 LIBGO_IS_MIPSO32_FALSE= 13796fi 13797 13798 if test $mips_abi = n32; then 13799 LIBGO_IS_MIPSN32_TRUE= 13800 LIBGO_IS_MIPSN32_FALSE='#' 13801else 13802 LIBGO_IS_MIPSN32_TRUE='#' 13803 LIBGO_IS_MIPSN32_FALSE= 13804fi 13805 13806 if test $mips_abi = n64; then 13807 LIBGO_IS_MIPSN64_TRUE= 13808 LIBGO_IS_MIPSN64_FALSE='#' 13809else 13810 LIBGO_IS_MIPSN64_TRUE='#' 13811 LIBGO_IS_MIPSN64_FALSE= 13812fi 13813 13814 if test $mips_abi = o64; then 13815 LIBGO_IS_MIPSO64_TRUE= 13816 LIBGO_IS_MIPSO64_FALSE='#' 13817else 13818 LIBGO_IS_MIPSO64_TRUE='#' 13819 LIBGO_IS_MIPSO64_FALSE= 13820fi 13821 13822 if test $is_ppc = yes; then 13823 LIBGO_IS_PPC_TRUE= 13824 LIBGO_IS_PPC_FALSE='#' 13825else 13826 LIBGO_IS_PPC_TRUE='#' 13827 LIBGO_IS_PPC_FALSE= 13828fi 13829 13830 if test $is_ppc64 = yes; then 13831 LIBGO_IS_PPC64_TRUE= 13832 LIBGO_IS_PPC64_FALSE='#' 13833else 13834 LIBGO_IS_PPC64_TRUE='#' 13835 LIBGO_IS_PPC64_FALSE= 13836fi 13837 13838 if test $is_sparc = yes; then 13839 LIBGO_IS_SPARC_TRUE= 13840 LIBGO_IS_SPARC_FALSE='#' 13841else 13842 LIBGO_IS_SPARC_TRUE='#' 13843 LIBGO_IS_SPARC_FALSE= 13844fi 13845 13846 if test $is_sparc64 = yes; then 13847 LIBGO_IS_SPARC64_TRUE= 13848 LIBGO_IS_SPARC64_FALSE='#' 13849else 13850 LIBGO_IS_SPARC64_TRUE='#' 13851 LIBGO_IS_SPARC64_FALSE= 13852fi 13853 13854 if test $is_x86_64 = yes; then 13855 LIBGO_IS_X86_64_TRUE= 13856 LIBGO_IS_X86_64_FALSE='#' 13857else 13858 LIBGO_IS_X86_64_TRUE='#' 13859 LIBGO_IS_X86_64_FALSE= 13860fi 13861 13862 13863 13864GO_LIBCALL_OS_FILE= 13865GO_LIBCALL_OS_ARCH_FILE= 13866GO_SYSCALL_OS_FILE= 13867GO_SYSCALL_OS_ARCH_FILE= 13868if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then 13869 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go 13870fi 13871if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then 13872 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go 13873fi 13874if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then 13875 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go 13876fi 13877if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then 13878 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go 13879fi 13880 13881 13882 13883 13884 13885OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 13886case "$target" in 13887 mips-sgi-irix6.5*) 13888 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct 13889 # msghdr in <sys/socket.h>. 13890 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500" 13891 ;; 13892 *-*-solaris2.[89]) 13893 # Solaris 8/9 need this so struct msghdr gets the msg_control 13894 # etc. fields in <sys/socket.h> (_XPG4_2). 13895 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__" 13896 ;; 13897 *-*-solaris2.1[01]) 13898 # Solaris 10+ needs this so struct msghdr gets the msg_control 13899 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as 13900 # above doesn't work with C99. 13901 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__" 13902 ;; 13903esac 13904 13905 13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5 13907$as_echo_n "checking whether -fsplit-stack is supported... " >&6; } 13908if test "${libgo_cv_c_split_stack_supported+set}" = set; then : 13909 $as_echo_n "(cached) " >&6 13910else 13911 CFLAGS_hold=$CFLAGS 13912CFLAGS="$CFLAGS -fsplit-stack" 13913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914/* end confdefs.h. */ 13915int i; 13916_ACEOF 13917if ac_fn_c_try_compile "$LINENO"; then : 13918 libgo_cv_c_split_stack_supported=yes 13919else 13920 libgo_cv_c_split_stack_supported=no 13921fi 13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13923CFLAGS=$CFLAGS_hold 13924fi 13925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5 13926$as_echo "$libgo_cv_c_split_stack_supported" >&6; } 13927if test "$libgo_cv_c_split_stack_supported" = yes; then 13928 SPLIT_STACK=-fsplit-stack 13929 13930$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h 13931 13932else 13933 SPLIT_STACK= 13934fi 13935 13936 if test "$libgo_cv_c_split_stack_supported" = yes; then 13937 USING_SPLIT_STACK_TRUE= 13938 USING_SPLIT_STACK_FALSE='#' 13939else 13940 USING_SPLIT_STACK_TRUE='#' 13941 USING_SPLIT_STACK_FALSE= 13942fi 13943 13944 13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5 13946$as_echo_n "checking whether linker supports split stack... " >&6; } 13947if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then : 13948 $as_echo_n "(cached) " >&6 13949else 13950 libgo_cv_c_linker_supports_split_stack=no 13951if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then 13952 libgo_cv_c_linker_supports_split_stack=yes 13953fi 13954fi 13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5 13956$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; } 13957if test "$libgo_cv_c_linker_supports_split_stack" = yes; then 13958 13959$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h 13960 13961fi 13962 13963MATH_LIBS= 13964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 13965$as_echo_n "checking for sqrt in -lm... " >&6; } 13966if test "${ac_cv_lib_m_sqrt+set}" = set; then : 13967 $as_echo_n "(cached) " >&6 13968else 13969 ac_check_lib_save_LIBS=$LIBS 13970LIBS="-lm $LIBS" 13971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13972/* end confdefs.h. */ 13973 13974/* Override any GCC internal prototype to avoid an error. 13975 Use char because int might match the return type of a GCC 13976 builtin and then its argument prototype would still apply. */ 13977#ifdef __cplusplus 13978extern "C" 13979#endif 13980char sqrt (); 13981int 13982main () 13983{ 13984return sqrt (); 13985 ; 13986 return 0; 13987} 13988_ACEOF 13989if ac_fn_c_try_link "$LINENO"; then : 13990 ac_cv_lib_m_sqrt=yes 13991else 13992 ac_cv_lib_m_sqrt=no 13993fi 13994rm -f core conftest.err conftest.$ac_objext \ 13995 conftest$ac_exeext conftest.$ac_ext 13996LIBS=$ac_check_lib_save_LIBS 13997fi 13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 13999$as_echo "$ac_cv_lib_m_sqrt" >&6; } 14000if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 14001 MATH_LIBS=-lm 14002fi 14003 14004 14005 14006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5 14007$as_echo_n "checking for socket libraries... " >&6; } 14008if test "${libgo_cv_lib_sockets+set}" = set; then : 14009 $as_echo_n "(cached) " >&6 14010else 14011 libgo_cv_lib_sockets= 14012 libgo_check_both=no 14013 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 14014if test "x$ac_cv_func_connect" = x""yes; then : 14015 libgo_check_socket=no 14016else 14017 libgo_check_socket=yes 14018fi 14019 14020 if test "$libgo_check_socket" = "yes"; then 14021 unset ac_cv_func_connect 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 14023$as_echo_n "checking for main in -lsocket... " >&6; } 14024if test "${ac_cv_lib_socket_main+set}" = set; then : 14025 $as_echo_n "(cached) " >&6 14026else 14027 ac_check_lib_save_LIBS=$LIBS 14028LIBS="-lsocket $LIBS" 14029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14030/* end confdefs.h. */ 14031 14032 14033int 14034main () 14035{ 14036return main (); 14037 ; 14038 return 0; 14039} 14040_ACEOF 14041if ac_fn_c_try_link "$LINENO"; then : 14042 ac_cv_lib_socket_main=yes 14043else 14044 ac_cv_lib_socket_main=no 14045fi 14046rm -f core conftest.err conftest.$ac_objext \ 14047 conftest$ac_exeext conftest.$ac_ext 14048LIBS=$ac_check_lib_save_LIBS 14049fi 14050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 14051$as_echo "$ac_cv_lib_socket_main" >&6; } 14052if test "x$ac_cv_lib_socket_main" = x""yes; then : 14053 libgo_cv_lib_sockets="-lsocket" 14054else 14055 libgo_check_both=yes 14056fi 14057 14058 fi 14059 if test "$libgo_check_both" = "yes"; then 14060 libgo_old_libs=$LIBS 14061 LIBS="$LIBS -lsocket -lnsl" 14062 unset ac_cv_func_accept 14063 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 14064if test "x$ac_cv_func_accept" = x""yes; then : 14065 libgo_check_nsl=no 14066 libgo_cv_lib_sockets="-lsocket -lnsl" 14067fi 14068 14069 unset ac_cv_func_accept 14070 LIBS=$libgo_old_libs 14071 fi 14072 unset ac_cv_func_gethostbyname 14073 libgo_old_libs="$LIBS" 14074 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 14075if test "x$ac_cv_func_gethostbyname" = x""yes; then : 14076 14077else 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 14079$as_echo_n "checking for main in -lnsl... " >&6; } 14080if test "${ac_cv_lib_nsl_main+set}" = set; then : 14081 $as_echo_n "(cached) " >&6 14082else 14083 ac_check_lib_save_LIBS=$LIBS 14084LIBS="-lnsl $LIBS" 14085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14086/* end confdefs.h. */ 14087 14088 14089int 14090main () 14091{ 14092return main (); 14093 ; 14094 return 0; 14095} 14096_ACEOF 14097if ac_fn_c_try_link "$LINENO"; then : 14098 ac_cv_lib_nsl_main=yes 14099else 14100 ac_cv_lib_nsl_main=no 14101fi 14102rm -f core conftest.err conftest.$ac_objext \ 14103 conftest$ac_exeext conftest.$ac_ext 14104LIBS=$ac_check_lib_save_LIBS 14105fi 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 14107$as_echo "$ac_cv_lib_nsl_main" >&6; } 14108if test "x$ac_cv_lib_nsl_main" = x""yes; then : 14109 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl" 14110fi 14111 14112fi 14113 14114 unset ac_cv_func_gethostbyname 14115 LIBS=$libgo_old_libs 14116 14117fi 14118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5 14119$as_echo "$libgo_cv_lib_sockets" >&6; } 14120NET_LIBS="$libgo_cv_lib_sockets" 14121 14122 14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5 14124$as_echo_n "checking whether -pthread is supported... " >&6; } 14125if test "${libgo_cv_lib_pthread+set}" = set; then : 14126 $as_echo_n "(cached) " >&6 14127else 14128 CFLAGS_hold=$CFLAGS 14129CFLAGS="$CFLAGS -pthread" 14130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14131/* end confdefs.h. */ 14132int i; 14133_ACEOF 14134if ac_fn_c_try_compile "$LINENO"; then : 14135 libgo_cv_lib_pthread=yes 14136else 14137 libgo_cv_lib_pthread=no 14138fi 14139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14140CFLAGS=$CFLAGS_hold 14141fi 14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5 14143$as_echo "$libgo_cv_lib_pthread" >&6; } 14144PTHREAD_CFLAGS= 14145if test "$libgo_cv_lib_pthread" = yes; then 14146 PTHREAD_CFLAGS=-pthread 14147fi 14148 14149 14150PTHREAD_LIBS= 14151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 14152$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 14153if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 14154 $as_echo_n "(cached) " >&6 14155else 14156 ac_check_lib_save_LIBS=$LIBS 14157LIBS="-lpthread $LIBS" 14158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14159/* end confdefs.h. */ 14160 14161/* Override any GCC internal prototype to avoid an error. 14162 Use char because int might match the return type of a GCC 14163 builtin and then its argument prototype would still apply. */ 14164#ifdef __cplusplus 14165extern "C" 14166#endif 14167char pthread_create (); 14168int 14169main () 14170{ 14171return pthread_create (); 14172 ; 14173 return 0; 14174} 14175_ACEOF 14176if ac_fn_c_try_link "$LINENO"; then : 14177 ac_cv_lib_pthread_pthread_create=yes 14178else 14179 ac_cv_lib_pthread_pthread_create=no 14180fi 14181rm -f core conftest.err conftest.$ac_objext \ 14182 conftest$ac_exeext conftest.$ac_ext 14183LIBS=$ac_check_lib_save_LIBS 14184fi 14185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 14186$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 14187if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 14188 PTHREAD_LIBS=-lpthread 14189fi 14190 14191 14192 14193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 14194$as_echo_n "checking for library containing sched_yield... " >&6; } 14195if test "${ac_cv_search_sched_yield+set}" = set; then : 14196 $as_echo_n "(cached) " >&6 14197else 14198 ac_func_search_save_LIBS=$LIBS 14199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14200/* end confdefs.h. */ 14201 14202/* Override any GCC internal prototype to avoid an error. 14203 Use char because int might match the return type of a GCC 14204 builtin and then its argument prototype would still apply. */ 14205#ifdef __cplusplus 14206extern "C" 14207#endif 14208char sched_yield (); 14209int 14210main () 14211{ 14212return sched_yield (); 14213 ; 14214 return 0; 14215} 14216_ACEOF 14217for ac_lib in '' rt; do 14218 if test -z "$ac_lib"; then 14219 ac_res="none required" 14220 else 14221 ac_res=-l$ac_lib 14222 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14223 fi 14224 if ac_fn_c_try_link "$LINENO"; then : 14225 ac_cv_search_sched_yield=$ac_res 14226fi 14227rm -f core conftest.err conftest.$ac_objext \ 14228 conftest$ac_exeext 14229 if test "${ac_cv_search_sched_yield+set}" = set; then : 14230 break 14231fi 14232done 14233if test "${ac_cv_search_sched_yield+set}" = set; then : 14234 14235else 14236 ac_cv_search_sched_yield=no 14237fi 14238rm conftest.$ac_ext 14239LIBS=$ac_func_search_save_LIBS 14240fi 14241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 14242$as_echo "$ac_cv_search_sched_yield" >&6; } 14243ac_res=$ac_cv_search_sched_yield 14244if test "$ac_res" != no; then : 14245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14246 14247fi 14248 14249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 14250$as_echo_n "checking for library containing nanosleep... " >&6; } 14251if test "${ac_cv_search_nanosleep+set}" = set; then : 14252 $as_echo_n "(cached) " >&6 14253else 14254 ac_func_search_save_LIBS=$LIBS 14255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14256/* end confdefs.h. */ 14257 14258/* Override any GCC internal prototype to avoid an error. 14259 Use char because int might match the return type of a GCC 14260 builtin and then its argument prototype would still apply. */ 14261#ifdef __cplusplus 14262extern "C" 14263#endif 14264char nanosleep (); 14265int 14266main () 14267{ 14268return nanosleep (); 14269 ; 14270 return 0; 14271} 14272_ACEOF 14273for ac_lib in '' rt; do 14274 if test -z "$ac_lib"; then 14275 ac_res="none required" 14276 else 14277 ac_res=-l$ac_lib 14278 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14279 fi 14280 if ac_fn_c_try_link "$LINENO"; then : 14281 ac_cv_search_nanosleep=$ac_res 14282fi 14283rm -f core conftest.err conftest.$ac_objext \ 14284 conftest$ac_exeext 14285 if test "${ac_cv_search_nanosleep+set}" = set; then : 14286 break 14287fi 14288done 14289if test "${ac_cv_search_nanosleep+set}" = set; then : 14290 14291else 14292 ac_cv_search_nanosleep=no 14293fi 14294rm conftest.$ac_ext 14295LIBS=$ac_func_search_save_LIBS 14296fi 14297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 14298$as_echo "$ac_cv_search_nanosleep" >&6; } 14299ac_res=$ac_cv_search_nanosleep 14300if test "$ac_res" != no; then : 14301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14302 14303fi 14304 14305 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14307$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14308if test "${ac_cv_c_bigendian+set}" = set; then : 14309 $as_echo_n "(cached) " >&6 14310else 14311 ac_cv_c_bigendian=unknown 14312 # See if we're dealing with a universal compiler. 14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14314/* end confdefs.h. */ 14315#ifndef __APPLE_CC__ 14316 not a universal capable compiler 14317 #endif 14318 typedef int dummy; 14319 14320_ACEOF 14321if ac_fn_c_try_compile "$LINENO"; then : 14322 14323 # Check for potential -arch flags. It is not universal unless 14324 # there are at least two -arch flags with different values. 14325 ac_arch= 14326 ac_prev= 14327 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14328 if test -n "$ac_prev"; then 14329 case $ac_word in 14330 i?86 | x86_64 | ppc | ppc64) 14331 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14332 ac_arch=$ac_word 14333 else 14334 ac_cv_c_bigendian=universal 14335 break 14336 fi 14337 ;; 14338 esac 14339 ac_prev= 14340 elif test "x$ac_word" = "x-arch"; then 14341 ac_prev=arch 14342 fi 14343 done 14344fi 14345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14346 if test $ac_cv_c_bigendian = unknown; then 14347 # See if sys/param.h defines the BYTE_ORDER macro. 14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14349/* end confdefs.h. */ 14350#include <sys/types.h> 14351 #include <sys/param.h> 14352 14353int 14354main () 14355{ 14356#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14357 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14358 && LITTLE_ENDIAN) 14359 bogus endian macros 14360 #endif 14361 14362 ; 14363 return 0; 14364} 14365_ACEOF 14366if ac_fn_c_try_compile "$LINENO"; then : 14367 # It does; now see whether it defined to BIG_ENDIAN or not. 14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14369/* end confdefs.h. */ 14370#include <sys/types.h> 14371 #include <sys/param.h> 14372 14373int 14374main () 14375{ 14376#if BYTE_ORDER != BIG_ENDIAN 14377 not big endian 14378 #endif 14379 14380 ; 14381 return 0; 14382} 14383_ACEOF 14384if ac_fn_c_try_compile "$LINENO"; then : 14385 ac_cv_c_bigendian=yes 14386else 14387 ac_cv_c_bigendian=no 14388fi 14389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14390fi 14391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14392 fi 14393 if test $ac_cv_c_bigendian = unknown; then 14394 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14396/* end confdefs.h. */ 14397#include <limits.h> 14398 14399int 14400main () 14401{ 14402#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14403 bogus endian macros 14404 #endif 14405 14406 ; 14407 return 0; 14408} 14409_ACEOF 14410if ac_fn_c_try_compile "$LINENO"; then : 14411 # It does; now see whether it defined to _BIG_ENDIAN or not. 14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14413/* end confdefs.h. */ 14414#include <limits.h> 14415 14416int 14417main () 14418{ 14419#ifndef _BIG_ENDIAN 14420 not big endian 14421 #endif 14422 14423 ; 14424 return 0; 14425} 14426_ACEOF 14427if ac_fn_c_try_compile "$LINENO"; then : 14428 ac_cv_c_bigendian=yes 14429else 14430 ac_cv_c_bigendian=no 14431fi 14432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14433fi 14434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14435 fi 14436 if test $ac_cv_c_bigendian = unknown; then 14437 # Compile a test program. 14438 if test "$cross_compiling" = yes; then : 14439 # Try to guess by grepping values from an object file. 14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14441/* end confdefs.h. */ 14442short int ascii_mm[] = 14443 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14444 short int ascii_ii[] = 14445 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14446 int use_ascii (int i) { 14447 return ascii_mm[i] + ascii_ii[i]; 14448 } 14449 short int ebcdic_ii[] = 14450 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14451 short int ebcdic_mm[] = 14452 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14453 int use_ebcdic (int i) { 14454 return ebcdic_mm[i] + ebcdic_ii[i]; 14455 } 14456 extern int foo; 14457 14458int 14459main () 14460{ 14461return use_ascii (foo) == use_ebcdic (foo); 14462 ; 14463 return 0; 14464} 14465_ACEOF 14466if ac_fn_c_try_compile "$LINENO"; then : 14467 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14468 ac_cv_c_bigendian=yes 14469 fi 14470 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14471 if test "$ac_cv_c_bigendian" = unknown; then 14472 ac_cv_c_bigendian=no 14473 else 14474 # finding both strings is unlikely to happen, but who knows? 14475 ac_cv_c_bigendian=unknown 14476 fi 14477 fi 14478fi 14479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14480else 14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482/* end confdefs.h. */ 14483$ac_includes_default 14484int 14485main () 14486{ 14487 14488 /* Are we little or big endian? From Harbison&Steele. */ 14489 union 14490 { 14491 long int l; 14492 char c[sizeof (long int)]; 14493 } u; 14494 u.l = 1; 14495 return u.c[sizeof (long int) - 1] == 1; 14496 14497 ; 14498 return 0; 14499} 14500_ACEOF 14501if ac_fn_c_try_run "$LINENO"; then : 14502 ac_cv_c_bigendian=no 14503else 14504 ac_cv_c_bigendian=yes 14505fi 14506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14507 conftest.$ac_objext conftest.beam conftest.$ac_ext 14508fi 14509 14510 fi 14511fi 14512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14513$as_echo "$ac_cv_c_bigendian" >&6; } 14514 case $ac_cv_c_bigendian in #( 14515 yes) 14516 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14517;; #( 14518 no) 14519 ;; #( 14520 universal) 14521 14522$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14523 14524 ;; #( 14525 *) 14526 as_fn_error "unknown endianness 14527 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14528 esac 14529 14530 14531 14532 14533# Check whether --with-system-libunwind was given. 14534if test "${with_system_libunwind+set}" = set; then : 14535 withval=$with_system_libunwind; 14536fi 14537 14538 # If system-libunwind was not specifically set, pick a default setting. 14539 if test x$with_system_libunwind = x; then 14540 case ${target} in 14541 ia64-*-hpux*) with_system_libunwind=yes ;; 14542 *) with_system_libunwind=no ;; 14543 esac 14544 fi 14545 # Based on system-libunwind and target, do we have ipinfo? 14546 if test x$with_system_libunwind = xyes; then 14547 case ${target} in 14548 ia64-*-*) have_unwind_getipinfo=no ;; 14549 *) have_unwind_getipinfo=yes ;; 14550 esac 14551 else 14552 # Darwin before version 9 does not have _Unwind_GetIPInfo. 14553 14554 case ${target} in 14555 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; 14556 *) have_unwind_getipinfo=yes ;; 14557 esac 14558 14559 fi 14560 14561 if test x$have_unwind_getipinfo = xyes; then 14562 14563$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h 14564 14565 fi 14566 14567 14568# Check whether --enable-sjlj-exceptions was given. 14569if test "${enable_sjlj_exceptions+set}" = set; then : 14570 enableval=$enable_sjlj_exceptions; case "$enableval" in 14571 yes|no|auto) ;; 14572 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;; 14573 esac 14574else 14575 enable_sjlj_exceptions=auto 14576fi 14577 14578 14579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5 14580$as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; } 14581if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then : 14582 $as_echo_n "(cached) " >&6 14583else 14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14585/* end confdefs.h. */ 14586 14587void bar (); 14588void clean (int *); 14589void foo () 14590{ 14591 int i __attribute__ ((cleanup (clean))); 14592 bar(); 14593} 14594 14595_ACEOF 14596CFLAGS_hold=$CFLAGS 14597CFLAGS="--save-temps -fexceptions" 14598libgo_cv_lib_sjlj_exceptions=unknown 14599if ac_fn_c_try_compile; then : 14600 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then 14601 libgo_cv_lib_sjlj_exceptions=yes 14602 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then 14603 libgo_cv_lib_sjlj_exceptions=no 14604 fi 14605fi 14606CFLAGS=$CFLAGS_hold 14607rm -f conftest* 14608 14609fi 14610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5 14611$as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; } 14612 14613if test "$enable_sjlj_exceptions" = "auto"; then 14614 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions 14615fi 14616 14617case $enable_sjlj_exceptions in 14618yes) 14619 14620$as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h 14621 14622 ;; 14623no) 14624 ;; 14625*) 14626 as_fn_error "unable to detect exception model" "$LINENO" 5 14627 ;; 14628esac 14629 14630for 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 14631do : 14632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14633ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14634eval as_val=\$$as_ac_Header 14635 if test "x$as_val" = x""yes; then : 14636 cat >>confdefs.h <<_ACEOF 14637#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14638_ACEOF 14639 14640fi 14641 14642done 14643 14644 14645for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h 14646do : 14647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14648ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H 14649#include <sys/socket.h> 14650#endif 14651 14652" 14653eval as_val=\$$as_ac_Header 14654 if test "x$as_val" = x""yes; then : 14655 cat >>confdefs.h <<_ACEOF 14656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14657_ACEOF 14658 14659fi 14660 14661done 14662 14663 14664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5 14665$as_echo_n "checking whether <ustat.h> can be used... " >&6; } 14666if test "${libgo_cv_c_ustat_h+set}" = set; then : 14667 $as_echo_n "(cached) " >&6 14668else 14669 CFLAGS_hold=$CFLAGS 14670CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS" 14671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14672/* end confdefs.h. */ 14673 14674#include <sys/types.h> 14675#ifdef HAVE_LINUX_FILTER_H 14676#include <linux/filter.h> 14677#endif 14678#include <ustat.h> 14679 14680_ACEOF 14681if ac_fn_c_try_compile "$LINENO"; then : 14682 libgo_cv_c_ustat_h=yes 14683else 14684 libgo_cv_c_ustat_h=no 14685fi 14686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14687CFLAGS=$CFLAGS_hold 14688fi 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5 14690$as_echo "$libgo_cv_c_ustat_h" >&6; } 14691if test $libgo_cv_c_ustat_h = yes; then 14692 14693$as_echo "#define HAVE_USTAT_H 1" >>confdefs.h 14694 14695fi 14696 14697 if test "$ac_cv_header_sys_mman_h" = yes; then 14698 HAVE_SYS_MMAN_H_TRUE= 14699 HAVE_SYS_MMAN_H_FALSE='#' 14700else 14701 HAVE_SYS_MMAN_H_TRUE='#' 14702 HAVE_SYS_MMAN_H_FALSE= 14703fi 14704 14705 14706for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr 14707do : 14708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14709ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14710eval as_val=\$$as_ac_var 14711 if test "x$as_val" = x""yes; then : 14712 cat >>confdefs.h <<_ACEOF 14713#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14714_ACEOF 14715 14716fi 14717done 14718 14719 if test "$ac_cv_func_strerror_r" = yes; then 14720 HAVE_STRERROR_R_TRUE= 14721 HAVE_STRERROR_R_FALSE='#' 14722else 14723 HAVE_STRERROR_R_TRUE='#' 14724 HAVE_STRERROR_R_FALSE= 14725fi 14726 14727 if test "$ac_cv_func_wait4" = yes; then 14728 HAVE_WAIT4_TRUE= 14729 HAVE_WAIT4_FALSE='#' 14730else 14731 HAVE_WAIT4_TRUE='#' 14732 HAVE_WAIT4_FALSE= 14733fi 14734 14735 14736for 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 14737do : 14738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14739ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14740eval as_val=\$$as_ac_var 14741 if test "x$as_val" = x""yes; then : 14742 cat >>confdefs.h <<_ACEOF 14743#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14744_ACEOF 14745 14746fi 14747done 14748 14749ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14750if test "x$ac_cv_type_off_t" = x""yes; then : 14751 14752else 14753 14754cat >>confdefs.h <<_ACEOF 14755#define off_t long int 14756_ACEOF 14757 14758fi 14759 14760ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default" 14761if test "x$ac_cv_type_loff_t" = x""yes; then : 14762 14763cat >>confdefs.h <<_ACEOF 14764#define HAVE_LOFF_T 1 14765_ACEOF 14766 14767 14768fi 14769 14770 14771LIBS_hold="$LIBS" 14772LIBS="$LIBS -lm" 14773for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl 14774do : 14775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14776ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14777eval as_val=\$$as_ac_var 14778 if test "x$as_val" = x""yes; then : 14779 cat >>confdefs.h <<_ACEOF 14780#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14781_ACEOF 14782 14783fi 14784done 14785 14786LIBS="$LIBS_hold" 14787 14788CFLAGS_hold="$CFLAGS" 14789CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14790LIBS_hold="$LIBS" 14791LIBS="$LIBS $PTHREAD_LIBS" 14792for ac_func in sem_timedwait 14793do : 14794 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 14795if test "x$ac_cv_func_sem_timedwait" = x""yes; then : 14796 cat >>confdefs.h <<_ACEOF 14797#define HAVE_SEM_TIMEDWAIT 1 14798_ACEOF 14799 14800fi 14801done 14802 14803CFLAGS="$CFLAGS_hold" 14804LIBS="$LIBS_hold" 14805 14806LIBS_hold="$LIBS" 14807LIBS="$LIBS $MATH_LIBS" 14808for ac_func in matherr 14809do : 14810 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr" 14811if test "x$ac_cv_func_matherr" = x""yes; then : 14812 cat >>confdefs.h <<_ACEOF 14813#define HAVE_MATHERR 1 14814_ACEOF 14815 14816fi 14817done 14818 14819LIBS="$LIBS_hold" 14820 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5 14822$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; } 14823if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then : 14824 $as_echo_n "(cached) " >&6 14825else 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827/* end confdefs.h. */ 14828 14829typedef unsigned int uint32 __attribute__ ((mode (SI))); 14830uint32 i; 14831int main() { return __sync_bool_compare_and_swap (&i, 0, 1); } 14832 14833_ACEOF 14834if ac_fn_c_try_link "$LINENO"; then : 14835 libgo_cv_func___sync_bool_compare_and_swap_4=yes 14836else 14837 libgo_cv_func___sync_bool_compare_and_swap_4=no 14838fi 14839rm -f core conftest.err conftest.$ac_objext \ 14840 conftest$ac_exeext conftest.$ac_ext 14841fi 14842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5 14843$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; } 14844if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then 14845 14846$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h 14847 14848fi 14849 14850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5 14851$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; } 14852if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then : 14853 $as_echo_n "(cached) " >&6 14854else 14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14856/* end confdefs.h. */ 14857 14858typedef unsigned int uint64 __attribute__ ((mode (DI))); 14859uint64 i; 14860int main() { return __sync_bool_compare_and_swap (&i, 0, 1); } 14861 14862_ACEOF 14863if ac_fn_c_try_link "$LINENO"; then : 14864 libgo_cv_func___sync_bool_compare_and_swap_8=yes 14865else 14866 libgo_cv_func___sync_bool_compare_and_swap_8=no 14867fi 14868rm -f core conftest.err conftest.$ac_objext \ 14869 conftest$ac_exeext conftest.$ac_ext 14870fi 14871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5 14872$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; } 14873if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then 14874 14875$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h 14876 14877fi 14878 14879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5 14880$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; } 14881if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then : 14882 $as_echo_n "(cached) " >&6 14883else 14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14885/* end confdefs.h. */ 14886 14887typedef unsigned int uint32 __attribute__ ((mode (SI))); 14888uint32 i; 14889int main() { return __sync_fetch_and_add (&i, 1); } 14890 14891_ACEOF 14892if ac_fn_c_try_link "$LINENO"; then : 14893 libgo_cv_func___sync_fetch_and_add_4=yes 14894else 14895 libgo_cv_func___sync_fetch_and_add_4=no 14896fi 14897rm -f core conftest.err conftest.$ac_objext \ 14898 conftest$ac_exeext conftest.$ac_ext 14899fi 14900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5 14901$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; } 14902if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then 14903 14904$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h 14905 14906fi 14907 14908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5 14909$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; } 14910if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then : 14911 $as_echo_n "(cached) " >&6 14912else 14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14914/* end confdefs.h. */ 14915 14916typedef unsigned int uint64 __attribute__ ((mode (DI))); 14917uint64 i; 14918int main() { return __sync_add_and_fetch (&i, 1); } 14919 14920_ACEOF 14921if ac_fn_c_try_link "$LINENO"; then : 14922 libgo_cv_func___sync_add_and_fetch_8=yes 14923else 14924 libgo_cv_func___sync_add_and_fetch_8=no 14925fi 14926rm -f core conftest.err conftest.$ac_objext \ 14927 conftest$ac_exeext conftest.$ac_ext 14928fi 14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5 14930$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; } 14931if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then 14932 14933$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h 14934 14935fi 14936 14937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5 14938$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; } 14939if test "${libgo_cv_c_stringops+set}" = set; then : 14940 $as_echo_n "(cached) " >&6 14941else 14942 CFLAGS_hold=$CFLAGS 14943CFLAGS="$CFLAGS -minline-all-stringops" 14944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14945/* end confdefs.h. */ 14946int i; 14947_ACEOF 14948if ac_fn_c_try_compile "$LINENO"; then : 14949 libgo_cv_c_stringops=yes 14950else 14951 libgo_cv_c_stringops=no 14952fi 14953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14954CFLAGS=$CFLAGS_hold 14955fi 14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5 14957$as_echo "$libgo_cv_c_stringops" >&6; } 14958STRINGOPS_FLAG= 14959if test "$libgo_cv_c_stringops" = yes; then 14960 STRINGOPS_FLAG=-minline-all-stringops 14961fi 14962 14963 14964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5 14965$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; } 14966if test "${libgo_cv_c_fancymath+set}" = set; then : 14967 $as_echo_n "(cached) " >&6 14968else 14969 CFLAGS_hold=$CFLAGS 14970CFLAGS="$CFLAGS -mfancy-math-387" 14971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14972/* end confdefs.h. */ 14973int i; 14974_ACEOF 14975if ac_fn_c_try_compile "$LINENO"; then : 14976 libgo_cv_c_fancymath=yes 14977else 14978 libgo_cv_c_fancymath=no 14979fi 14980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14981CFLAGS=$CFLAGS_hold 14982fi 14983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5 14984$as_echo "$libgo_cv_c_fancymath" >&6; } 14985MATH_FLAG= 14986if test "$libgo_cv_c_fancymath" = yes; then 14987 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations" 14988else 14989 MATH_FLAG="-ffp-contract=off" 14990fi 14991 14992 14993CFLAGS_hold=$CFLAGS 14994CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" 14995ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" 14996if test "x$ac_cv_type_off64_t" = x""yes; then : 14997 14998cat >>confdefs.h <<_ACEOF 14999#define HAVE_OFF64_T 1 15000_ACEOF 15001 15002 15003fi 15004 15005CFLAGS=$CFLAGS_hold 15006 15007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5 15008$as_echo_n "checking epoll_event size... " >&6; } 15009if test "${libgo_cv_c_epoll_event_size+set}" = set; then : 15010 $as_echo_n "(cached) " >&6 15011else 15012 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then : 15013 15014else 15015 libgo_cv_c_epoll_event_size=0 15016fi 15017 15018fi 15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5 15020$as_echo "$libgo_cv_c_epoll_event_size" >&6; } 15021SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size} 15022 15023 15024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5 15025$as_echo_n "checking epoll_event data.fd offset... " >&6; } 15026if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then : 15027 $as_echo_n "(cached) " >&6 15028else 15029 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h> 15030#include <sys/epoll.h>"; then : 15031 15032else 15033 libgo_cv_c_epoll_event_fd_offset=0 15034fi 15035 15036fi 15037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5 15038$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; } 15039STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset} 15040 15041 15042ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h> 15043" 15044if test "x$ac_cv_type_struct_exception" = x""yes; then : 15045 libgo_has_struct_exception=yes 15046else 15047 libgo_has_struct_exception=no 15048fi 15049 15050if test "$libgo_has_struct_exception" = "yes"; then 15051 15052$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h 15053 15054fi 15055 15056case "$target" in 15057 sparc*-*-solaris2.[89]*) 15058 libgo_cv_lib_makecontext_stack_top=yes 15059 ;; 15060 *) 15061 libgo_cv_lib_makecontext_stack_top=no 15062 ;; 15063esac 15064if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then 15065 15066$as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h 15067 15068fi 15069 15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5 15071$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; } 15072if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then : 15073 $as_echo_n "(cached) " >&6 15074else 15075 CFLAGS_hold="$CFLAGS" 15076CFLAGS="$PTHREAD_CFLAGS" 15077LIBS_hold="$LIBS" 15078LIBS="$LIBS $PTHREAD_LIBS" 15079# The cast to long int works around a bug in the HP C Compiler 15080# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15081# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15082# This bug is HP SR number 8606223364. 15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15084$as_echo_n "checking size of void *... " >&6; } 15085if test "${ac_cv_sizeof_void_p+set}" = set; then : 15086 $as_echo_n "(cached) " >&6 15087else 15088 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15089 15090else 15091 if test "$ac_cv_type_void_p" = yes; then 15092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15094{ as_fn_set_status 77 15095as_fn_error "cannot compute sizeof (void *) 15096See \`config.log' for more details." "$LINENO" 5; }; } 15097 else 15098 ac_cv_sizeof_void_p=0 15099 fi 15100fi 15101 15102fi 15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15104$as_echo "$ac_cv_sizeof_void_p" >&6; } 15105 15106 15107 15108cat >>confdefs.h <<_ACEOF 15109#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15110_ACEOF 15111 15112 15113as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val 15114if test "$cross_compiling" = yes; then : 15115 case "$target:$ptr_type_size" in 15116 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64) 15117 libgo_cv_lib_setcontext_clobbers_tls=yes ;; 15118 *) 15119 libgo_cv_lib_setcontext_clobbers_tls=no ;; 15120 esac 15121 15122else 15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15124/* end confdefs.h. */ 15125 15126#include <pthread.h> 15127#include <stdlib.h> 15128#include <ucontext.h> 15129#include <unistd.h> 15130 15131__thread int tls; 15132 15133static char stack[10 * 1024 * 1024]; 15134static ucontext_t c; 15135 15136/* Called via makecontext/setcontext. */ 15137 15138static void 15139cfn (void) 15140{ 15141 exit (tls); 15142} 15143 15144/* Called via pthread_create. */ 15145 15146static void * 15147tfn (void *dummy) 15148{ 15149 /* The thread should still see this value after calling 15150 setcontext. */ 15151 tls = 0; 15152 15153 setcontext (&c); 15154 15155 /* The call to setcontext should not return. */ 15156 abort (); 15157} 15158 15159int 15160main () 15161{ 15162 pthread_t tid; 15163 15164 /* The thread should not see this value. */ 15165 tls = 1; 15166 15167 if (getcontext (&c) < 0) 15168 abort (); 15169 15170 c.uc_stack.ss_sp = stack; 15171#ifdef MAKECONTEXT_STACK_TOP 15172 c.uc_stack.ss_sp += sizeof stack; 15173#endif 15174 c.uc_stack.ss_flags = 0; 15175 c.uc_stack.ss_size = sizeof stack; 15176 c.uc_link = NULL; 15177 makecontext (&c, cfn, 0); 15178 15179 if (pthread_create (&tid, NULL, tfn, NULL) != 0) 15180 abort (); 15181 15182 if (pthread_join (tid, NULL) != 0) 15183 abort (); 15184 15185 /* The thread should have called exit. */ 15186 abort (); 15187} 15188 15189_ACEOF 15190if ac_fn_c_try_run "$LINENO"; then : 15191 libgo_cv_lib_setcontext_clobbers_tls=no 15192else 15193 libgo_cv_lib_setcontext_clobbers_tls=yes 15194fi 15195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15196 conftest.$ac_objext conftest.beam conftest.$ac_ext 15197fi 15198 15199CFLAGS="$CFLAGS_hold" 15200LIBS="$LIBS_hold" 15201 15202fi 15203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5 15204$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; } 15205if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then 15206 15207$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h 15208 15209fi 15210 15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5 15212$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; } 15213if test "${libgo_cv_ro_eh_frame+set}" = set; then : 15214 $as_echo_n "(cached) " >&6 15215else 15216 15217libgo_cv_ro_eh_frame=no 15218echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c 15219if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then 15220 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then 15221 libgo_cv_ro_eh_frame=yes 15222 elif grep '.section.*eh_frame.*#alloc' conftest.c \ 15223 | grep -v '#write' > /dev/null; then 15224 libgo_cv_ro_eh_frame=yes 15225 fi 15226fi 15227rm -f conftest.* 15228 15229fi 15230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5 15231$as_echo "$libgo_cv_ro_eh_frame" >&6; } 15232if test "x$libgo_cv_ro_eh_frame" = xyes; then 15233 15234$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h 15235 15236else 15237 15238$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h 15239 15240fi 15241 15242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5 15243$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; } 15244if test "${libgo_cv_as_comdat_gnu+set}" = set; then : 15245 $as_echo_n "(cached) " >&6 15246else 15247 15248echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s 15249if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then 15250 libgo_cv_as_comdat_gnu=yes 15251else 15252 libgo_cv_as_comdat_gnu=no 15253fi 15254 15255fi 15256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5 15257$as_echo "$libgo_cv_as_comdat_gnu" >&6; } 15258if test "x$libgo_cv_as_comdat_gnu" = xyes; then 15259 15260$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h 15261 15262fi 15263 15264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5 15265$as_echo_n "checking assembler supports pc related relocs... " >&6; } 15266if test "${libgo_cv_as_x86_pcrel+set}" = set; then : 15267 $as_echo_n "(cached) " >&6 15268else 15269 15270libgo_cv_as_x86_pcrel=yes 15271echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s 15272if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then 15273 libgo_cv_as_x86_pcrel=no 15274fi 15275 15276fi 15277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5 15278$as_echo "$libgo_cv_as_x86_pcrel" >&6; } 15279if test "x$libgo_cv_as_x86_pcrel" = xyes; then 15280 15281$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h 15282 15283fi 15284 15285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5 15286$as_echo_n "checking assembler supports unwind section type... " >&6; } 15287if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then : 15288 $as_echo_n "(cached) " >&6 15289else 15290 15291libgo_cv_as_x86_64_unwind_section_type=yes 15292echo '.section .eh_frame,"a",@unwind' > conftest.s 15293if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then 15294 libgo_cv_as_x86_64_unwind_section_type=no 15295fi 15296 15297fi 15298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5 15299$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; } 15300if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then 15301 15302$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h 15303 15304fi 15305 15306cat >confcache <<\_ACEOF 15307# This file is a shell script that caches the results of configure 15308# tests run on this system so they can be shared between configure 15309# scripts and configure runs, see configure's option --config-cache. 15310# It is not useful on other systems. If it contains results you don't 15311# want to keep, you may remove or edit it. 15312# 15313# config.status only pays attention to the cache file if you give it 15314# the --recheck option to rerun configure. 15315# 15316# `ac_cv_env_foo' variables (set or unset) will be overridden when 15317# loading this file, other *unset* `ac_cv_foo' will be assigned the 15318# following values. 15319 15320_ACEOF 15321 15322# The following way of writing the cache mishandles newlines in values, 15323# but we know of no workaround that is simple, portable, and efficient. 15324# So, we kill variables containing newlines. 15325# Ultrix sh set writes to stderr and can't be redirected directly, 15326# and sets the high bit in the cache file unless we assign to the vars. 15327( 15328 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15329 eval ac_val=\$$ac_var 15330 case $ac_val in #( 15331 *${as_nl}*) 15332 case $ac_var in #( 15333 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15334$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15335 esac 15336 case $ac_var in #( 15337 _ | IFS | as_nl) ;; #( 15338 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15339 *) { eval $ac_var=; unset $ac_var;} ;; 15340 esac ;; 15341 esac 15342 done 15343 15344 (set) 2>&1 | 15345 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15346 *${as_nl}ac_space=\ *) 15347 # `set' does not quote correctly, so add quotes: double-quote 15348 # substitution turns \\\\ into \\, and sed turns \\ into \. 15349 sed -n \ 15350 "s/'/'\\\\''/g; 15351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15352 ;; #( 15353 *) 15354 # `set' quotes correctly as required by POSIX, so do not add quotes. 15355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15356 ;; 15357 esac | 15358 sort 15359) | 15360 sed ' 15361 /^ac_cv_env_/b end 15362 t clear 15363 :clear 15364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15365 t end 15366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15367 :end' >>confcache 15368if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15369 if test -w "$cache_file"; then 15370 test "x$cache_file" != "x/dev/null" && 15371 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15372$as_echo "$as_me: updating cache $cache_file" >&6;} 15373 cat confcache >$cache_file 15374 else 15375 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15376$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15377 fi 15378fi 15379rm -f confcache 15380 15381if test ${multilib} = yes; then 15382 multilib_arg="--enable-multilib" 15383else 15384 multilib_arg= 15385fi 15386 15387ac_config_files="$ac_config_files Makefile testsuite/Makefile" 15388 15389 15390ac_config_commands="$ac_config_commands default" 15391 15392 15393cat >confcache <<\_ACEOF 15394# This file is a shell script that caches the results of configure 15395# tests run on this system so they can be shared between configure 15396# scripts and configure runs, see configure's option --config-cache. 15397# It is not useful on other systems. If it contains results you don't 15398# want to keep, you may remove or edit it. 15399# 15400# config.status only pays attention to the cache file if you give it 15401# the --recheck option to rerun configure. 15402# 15403# `ac_cv_env_foo' variables (set or unset) will be overridden when 15404# loading this file, other *unset* `ac_cv_foo' will be assigned the 15405# following values. 15406 15407_ACEOF 15408 15409# The following way of writing the cache mishandles newlines in values, 15410# but we know of no workaround that is simple, portable, and efficient. 15411# So, we kill variables containing newlines. 15412# Ultrix sh set writes to stderr and can't be redirected directly, 15413# and sets the high bit in the cache file unless we assign to the vars. 15414( 15415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15416 eval ac_val=\$$ac_var 15417 case $ac_val in #( 15418 *${as_nl}*) 15419 case $ac_var in #( 15420 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15422 esac 15423 case $ac_var in #( 15424 _ | IFS | as_nl) ;; #( 15425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15426 *) { eval $ac_var=; unset $ac_var;} ;; 15427 esac ;; 15428 esac 15429 done 15430 15431 (set) 2>&1 | 15432 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15433 *${as_nl}ac_space=\ *) 15434 # `set' does not quote correctly, so add quotes: double-quote 15435 # substitution turns \\\\ into \\, and sed turns \\ into \. 15436 sed -n \ 15437 "s/'/'\\\\''/g; 15438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15439 ;; #( 15440 *) 15441 # `set' quotes correctly as required by POSIX, so do not add quotes. 15442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15443 ;; 15444 esac | 15445 sort 15446) | 15447 sed ' 15448 /^ac_cv_env_/b end 15449 t clear 15450 :clear 15451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15452 t end 15453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15454 :end' >>confcache 15455if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15456 if test -w "$cache_file"; then 15457 test "x$cache_file" != "x/dev/null" && 15458 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15459$as_echo "$as_me: updating cache $cache_file" >&6;} 15460 cat confcache >$cache_file 15461 else 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15463$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15464 fi 15465fi 15466rm -f confcache 15467 15468test "x$prefix" = xNONE && prefix=$ac_default_prefix 15469# Let make expand exec_prefix. 15470test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15471 15472DEFS=-DHAVE_CONFIG_H 15473 15474ac_libobjs= 15475ac_ltlibobjs= 15476for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15477 # 1. Remove the extension, and $U if already installed. 15478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15479 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15481 # will be set to the directory where LIBOBJS objects are built. 15482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15484done 15485LIBOBJS=$ac_libobjs 15486 15487LTLIBOBJS=$ac_ltlibobjs 15488 15489 15490 if test -n "$EXEEXT"; then 15491 am__EXEEXT_TRUE= 15492 am__EXEEXT_FALSE='#' 15493else 15494 am__EXEEXT_TRUE='#' 15495 am__EXEEXT_FALSE= 15496fi 15497 15498if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15499 as_fn_error "conditional \"AMDEP\" was never defined. 15500Usually this means the macro was only invoked conditionally." "$LINENO" 5 15501fi 15502if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15503 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15504Usually this means the macro was only invoked conditionally." "$LINENO" 5 15505fi 15506if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15507 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 15508Usually this means the macro was only invoked conditionally." "$LINENO" 5 15509fi 15510if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then 15511 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined. 15512Usually this means the macro was only invoked conditionally." "$LINENO" 5 15513fi 15514if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then 15515 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined. 15516Usually this means the macro was only invoked conditionally." "$LINENO" 5 15517fi 15518if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then 15519 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined. 15520Usually this means the macro was only invoked conditionally." "$LINENO" 5 15521fi 15522if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then 15523 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined. 15524Usually this means the macro was only invoked conditionally." "$LINENO" 5 15525fi 15526if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then 15527 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined. 15528Usually this means the macro was only invoked conditionally." "$LINENO" 5 15529fi 15530if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then 15531 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined. 15532Usually this means the macro was only invoked conditionally." "$LINENO" 5 15533fi 15534if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then 15535 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined. 15536Usually this means the macro was only invoked conditionally." "$LINENO" 5 15537fi 15538if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then 15539 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined. 15540Usually this means the macro was only invoked conditionally." "$LINENO" 5 15541fi 15542if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then 15543 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined. 15544Usually this means the macro was only invoked conditionally." "$LINENO" 5 15545fi 15546if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then 15547 as_fn_error "conditional \"LIBGO_IS_386\" was never defined. 15548Usually this means the macro was only invoked conditionally." "$LINENO" 5 15549fi 15550if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then 15551 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined. 15552Usually this means the macro was only invoked conditionally." "$LINENO" 5 15553fi 15554if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then 15555 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined. 15556Usually this means the macro was only invoked conditionally." "$LINENO" 5 15557fi 15558if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then 15559 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined. 15560Usually this means the macro was only invoked conditionally." "$LINENO" 5 15561fi 15562if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then 15563 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined. 15564Usually this means the macro was only invoked conditionally." "$LINENO" 5 15565fi 15566if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then 15567 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined. 15568Usually this means the macro was only invoked conditionally." "$LINENO" 5 15569fi 15570if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then 15571 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined. 15572Usually this means the macro was only invoked conditionally." "$LINENO" 5 15573fi 15574if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then 15575 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined. 15576Usually this means the macro was only invoked conditionally." "$LINENO" 5 15577fi 15578if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then 15579 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined. 15580Usually this means the macro was only invoked conditionally." "$LINENO" 5 15581fi 15582if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then 15583 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined. 15584Usually this means the macro was only invoked conditionally." "$LINENO" 5 15585fi 15586if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then 15587 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined. 15588Usually this means the macro was only invoked conditionally." "$LINENO" 5 15589fi 15590if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then 15591 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined. 15592Usually this means the macro was only invoked conditionally." "$LINENO" 5 15593fi 15594if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then 15595 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined. 15596Usually this means the macro was only invoked conditionally." "$LINENO" 5 15597fi 15598if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then 15599 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined. 15600Usually this means the macro was only invoked conditionally." "$LINENO" 5 15601fi 15602if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then 15603 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined. 15604Usually this means the macro was only invoked conditionally." "$LINENO" 5 15605fi 15606if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then 15607 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined. 15608Usually this means the macro was only invoked conditionally." "$LINENO" 5 15609fi 15610 15611if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then 15612 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined. 15613Usually this means the macro was only invoked conditionally." "$LINENO" 5 15614fi 15615if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then 15616 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined. 15617Usually this means the macro was only invoked conditionally." "$LINENO" 5 15618fi 15619if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then 15620 as_fn_error "conditional \"HAVE_WAIT4\" was never defined. 15621Usually this means the macro was only invoked conditionally." "$LINENO" 5 15622fi 15623 15624: ${CONFIG_STATUS=./config.status} 15625ac_write_fail=0 15626ac_clean_files_save=$ac_clean_files 15627ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15628{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15629$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15630as_write_fail=0 15631cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15632#! $SHELL 15633# Generated by $as_me. 15634# Run this file to recreate the current configuration. 15635# Compiler output produced by configure, useful for debugging 15636# configure, is in config.log if it exists. 15637 15638debug=false 15639ac_cs_recheck=false 15640ac_cs_silent=false 15641 15642SHELL=\${CONFIG_SHELL-$SHELL} 15643export SHELL 15644_ASEOF 15645cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15646## -------------------- ## 15647## M4sh Initialization. ## 15648## -------------------- ## 15649 15650# Be more Bourne compatible 15651DUALCASE=1; export DUALCASE # for MKS sh 15652if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15653 emulate sh 15654 NULLCMD=: 15655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15656 # is contrary to our usage. Disable this feature. 15657 alias -g '${1+"$@"}'='"$@"' 15658 setopt NO_GLOB_SUBST 15659else 15660 case `(set -o) 2>/dev/null` in #( 15661 *posix*) : 15662 set -o posix ;; #( 15663 *) : 15664 ;; 15665esac 15666fi 15667 15668 15669as_nl=' 15670' 15671export as_nl 15672# Printing a long string crashes Solaris 7 /usr/bin/printf. 15673as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15674as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15675as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15676# Prefer a ksh shell builtin over an external printf program on Solaris, 15677# but without wasting forks for bash or zsh. 15678if test -z "$BASH_VERSION$ZSH_VERSION" \ 15679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15680 as_echo='print -r --' 15681 as_echo_n='print -rn --' 15682elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15683 as_echo='printf %s\n' 15684 as_echo_n='printf %s' 15685else 15686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15688 as_echo_n='/usr/ucb/echo -n' 15689 else 15690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15691 as_echo_n_body='eval 15692 arg=$1; 15693 case $arg in #( 15694 *"$as_nl"*) 15695 expr "X$arg" : "X\\(.*\\)$as_nl"; 15696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15697 esac; 15698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15699 ' 15700 export as_echo_n_body 15701 as_echo_n='sh -c $as_echo_n_body as_echo' 15702 fi 15703 export as_echo_body 15704 as_echo='sh -c $as_echo_body as_echo' 15705fi 15706 15707# The user is always right. 15708if test "${PATH_SEPARATOR+set}" != set; then 15709 PATH_SEPARATOR=: 15710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15712 PATH_SEPARATOR=';' 15713 } 15714fi 15715 15716 15717# IFS 15718# We need space, tab and new line, in precisely that order. Quoting is 15719# there to prevent editors from complaining about space-tab. 15720# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15721# splitting by setting IFS to empty value.) 15722IFS=" "" $as_nl" 15723 15724# Find who we are. Look in the path if we contain no directory separator. 15725case $0 in #(( 15726 *[\\/]* ) as_myself=$0 ;; 15727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15728for as_dir in $PATH 15729do 15730 IFS=$as_save_IFS 15731 test -z "$as_dir" && as_dir=. 15732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15733 done 15734IFS=$as_save_IFS 15735 15736 ;; 15737esac 15738# We did not find ourselves, most probably we were run as `sh COMMAND' 15739# in which case we are not to be found in the path. 15740if test "x$as_myself" = x; then 15741 as_myself=$0 15742fi 15743if test ! -f "$as_myself"; then 15744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15745 exit 1 15746fi 15747 15748# Unset variables that we do not need and which cause bugs (e.g. in 15749# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15750# suppresses any "Segmentation fault" message there. '((' could 15751# trigger a bug in pdksh 5.2.14. 15752for as_var in BASH_ENV ENV MAIL MAILPATH 15753do eval test x\${$as_var+set} = xset \ 15754 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15755done 15756PS1='$ ' 15757PS2='> ' 15758PS4='+ ' 15759 15760# NLS nuisances. 15761LC_ALL=C 15762export LC_ALL 15763LANGUAGE=C 15764export LANGUAGE 15765 15766# CDPATH. 15767(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15768 15769 15770# as_fn_error ERROR [LINENO LOG_FD] 15771# --------------------------------- 15772# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15773# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15774# script with status $?, using 1 if that was 0. 15775as_fn_error () 15776{ 15777 as_status=$?; test $as_status -eq 0 && as_status=1 15778 if test "$3"; then 15779 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15780 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 15781 fi 15782 $as_echo "$as_me: error: $1" >&2 15783 as_fn_exit $as_status 15784} # as_fn_error 15785 15786 15787# as_fn_set_status STATUS 15788# ----------------------- 15789# Set $? to STATUS, without forking. 15790as_fn_set_status () 15791{ 15792 return $1 15793} # as_fn_set_status 15794 15795# as_fn_exit STATUS 15796# ----------------- 15797# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15798as_fn_exit () 15799{ 15800 set +e 15801 as_fn_set_status $1 15802 exit $1 15803} # as_fn_exit 15804 15805# as_fn_unset VAR 15806# --------------- 15807# Portably unset VAR. 15808as_fn_unset () 15809{ 15810 { eval $1=; unset $1;} 15811} 15812as_unset=as_fn_unset 15813# as_fn_append VAR VALUE 15814# ---------------------- 15815# Append the text in VALUE to the end of the definition contained in VAR. Take 15816# advantage of any shell optimizations that allow amortized linear growth over 15817# repeated appends, instead of the typical quadratic growth present in naive 15818# implementations. 15819if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15820 eval 'as_fn_append () 15821 { 15822 eval $1+=\$2 15823 }' 15824else 15825 as_fn_append () 15826 { 15827 eval $1=\$$1\$2 15828 } 15829fi # as_fn_append 15830 15831# as_fn_arith ARG... 15832# ------------------ 15833# Perform arithmetic evaluation on the ARGs, and store the result in the 15834# global $as_val. Take advantage of shells that can avoid forks. The arguments 15835# must be portable across $(()) and expr. 15836if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15837 eval 'as_fn_arith () 15838 { 15839 as_val=$(( $* )) 15840 }' 15841else 15842 as_fn_arith () 15843 { 15844 as_val=`expr "$@" || test $? -eq 1` 15845 } 15846fi # as_fn_arith 15847 15848 15849if expr a : '\(a\)' >/dev/null 2>&1 && 15850 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15851 as_expr=expr 15852else 15853 as_expr=false 15854fi 15855 15856if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15857 as_basename=basename 15858else 15859 as_basename=false 15860fi 15861 15862if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15863 as_dirname=dirname 15864else 15865 as_dirname=false 15866fi 15867 15868as_me=`$as_basename -- "$0" || 15869$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15870 X"$0" : 'X\(//\)$' \| \ 15871 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15872$as_echo X/"$0" | 15873 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15874 s//\1/ 15875 q 15876 } 15877 /^X\/\(\/\/\)$/{ 15878 s//\1/ 15879 q 15880 } 15881 /^X\/\(\/\).*/{ 15882 s//\1/ 15883 q 15884 } 15885 s/.*/./; q'` 15886 15887# Avoid depending upon Character Ranges. 15888as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15889as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15890as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15891as_cr_digits='0123456789' 15892as_cr_alnum=$as_cr_Letters$as_cr_digits 15893 15894ECHO_C= ECHO_N= ECHO_T= 15895case `echo -n x` in #((((( 15896-n*) 15897 case `echo 'xy\c'` in 15898 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15899 xy) ECHO_C='\c';; 15900 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15901 ECHO_T=' ';; 15902 esac;; 15903*) 15904 ECHO_N='-n';; 15905esac 15906 15907rm -f conf$$ conf$$.exe conf$$.file 15908if test -d conf$$.dir; then 15909 rm -f conf$$.dir/conf$$.file 15910else 15911 rm -f conf$$.dir 15912 mkdir conf$$.dir 2>/dev/null 15913fi 15914if (echo >conf$$.file) 2>/dev/null; then 15915 if ln -s conf$$.file conf$$ 2>/dev/null; then 15916 as_ln_s='ln -s' 15917 # ... but there are two gotchas: 15918 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15919 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15920 # In both cases, we have to default to `cp -p'. 15921 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15922 as_ln_s='cp -p' 15923 elif ln conf$$.file conf$$ 2>/dev/null; then 15924 as_ln_s=ln 15925 else 15926 as_ln_s='cp -p' 15927 fi 15928else 15929 as_ln_s='cp -p' 15930fi 15931rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15932rmdir conf$$.dir 2>/dev/null 15933 15934 15935# as_fn_mkdir_p 15936# ------------- 15937# Create "$as_dir" as a directory, including parents if necessary. 15938as_fn_mkdir_p () 15939{ 15940 15941 case $as_dir in #( 15942 -*) as_dir=./$as_dir;; 15943 esac 15944 test -d "$as_dir" || eval $as_mkdir_p || { 15945 as_dirs= 15946 while :; do 15947 case $as_dir in #( 15948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15949 *) as_qdir=$as_dir;; 15950 esac 15951 as_dirs="'$as_qdir' $as_dirs" 15952 as_dir=`$as_dirname -- "$as_dir" || 15953$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15954 X"$as_dir" : 'X\(//\)[^/]' \| \ 15955 X"$as_dir" : 'X\(//\)$' \| \ 15956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15957$as_echo X"$as_dir" | 15958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15959 s//\1/ 15960 q 15961 } 15962 /^X\(\/\/\)[^/].*/{ 15963 s//\1/ 15964 q 15965 } 15966 /^X\(\/\/\)$/{ 15967 s//\1/ 15968 q 15969 } 15970 /^X\(\/\).*/{ 15971 s//\1/ 15972 q 15973 } 15974 s/.*/./; q'` 15975 test -d "$as_dir" && break 15976 done 15977 test -z "$as_dirs" || eval "mkdir $as_dirs" 15978 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15979 15980 15981} # as_fn_mkdir_p 15982if mkdir -p . 2>/dev/null; then 15983 as_mkdir_p='mkdir -p "$as_dir"' 15984else 15985 test -d ./-p && rmdir ./-p 15986 as_mkdir_p=false 15987fi 15988 15989if test -x / >/dev/null 2>&1; then 15990 as_test_x='test -x' 15991else 15992 if ls -dL / >/dev/null 2>&1; then 15993 as_ls_L_option=L 15994 else 15995 as_ls_L_option= 15996 fi 15997 as_test_x=' 15998 eval sh -c '\'' 15999 if test -d "$1"; then 16000 test -d "$1/."; 16001 else 16002 case $1 in #( 16003 -*)set "./$1";; 16004 esac; 16005 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16006 ???[sx]*):;;*)false;;esac;fi 16007 '\'' sh 16008 ' 16009fi 16010as_executable_p=$as_test_x 16011 16012# Sed expression to map a string onto a valid CPP name. 16013as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16014 16015# Sed expression to map a string onto a valid variable name. 16016as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16017 16018 16019exec 6>&1 16020## ----------------------------------- ## 16021## Main body of $CONFIG_STATUS script. ## 16022## ----------------------------------- ## 16023_ASEOF 16024test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16025 16026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16027# Save the log message, to keep $0 and so on meaningful, and to 16028# report actual input values of CONFIG_FILES etc. instead of their 16029# values after options handling. 16030ac_log=" 16031This file was extended by package-unused $as_me version-unused, which was 16032generated by GNU Autoconf 2.64. Invocation command line was 16033 16034 CONFIG_FILES = $CONFIG_FILES 16035 CONFIG_HEADERS = $CONFIG_HEADERS 16036 CONFIG_LINKS = $CONFIG_LINKS 16037 CONFIG_COMMANDS = $CONFIG_COMMANDS 16038 $ $0 $@ 16039 16040on `(hostname || uname -n) 2>/dev/null | sed 1q` 16041" 16042 16043_ACEOF 16044 16045case $ac_config_files in *" 16046"*) set x $ac_config_files; shift; ac_config_files=$*;; 16047esac 16048 16049case $ac_config_headers in *" 16050"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16051esac 16052 16053 16054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16055# Files that config.status was made for. 16056config_files="$ac_config_files" 16057config_headers="$ac_config_headers" 16058config_commands="$ac_config_commands" 16059 16060_ACEOF 16061 16062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16063ac_cs_usage="\ 16064\`$as_me' instantiates files and other configuration actions 16065from templates according to the current configuration. Unless the files 16066and actions are specified as TAGs, all are instantiated by default. 16067 16068Usage: $0 [OPTION]... [TAG]... 16069 16070 -h, --help print this help, then exit 16071 -V, --version print version number and configuration settings, then exit 16072 -q, --quiet, --silent 16073 do not print progress messages 16074 -d, --debug don't remove temporary files 16075 --recheck update $as_me by reconfiguring in the same conditions 16076 --file=FILE[:TEMPLATE] 16077 instantiate the configuration file FILE 16078 --header=FILE[:TEMPLATE] 16079 instantiate the configuration header FILE 16080 16081Configuration files: 16082$config_files 16083 16084Configuration headers: 16085$config_headers 16086 16087Configuration commands: 16088$config_commands 16089 16090Report bugs to the package provider." 16091 16092_ACEOF 16093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16094ac_cs_version="\\ 16095package-unused config.status version-unused 16096configured by $0, generated by GNU Autoconf 2.64, 16097 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 16098 16099Copyright (C) 2009 Free Software Foundation, Inc. 16100This config.status script is free software; the Free Software Foundation 16101gives unlimited permission to copy, distribute and modify it." 16102 16103ac_pwd='$ac_pwd' 16104srcdir='$srcdir' 16105INSTALL='$INSTALL' 16106MKDIR_P='$MKDIR_P' 16107AWK='$AWK' 16108test -n "\$AWK" || AWK=awk 16109_ACEOF 16110 16111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16112# The default lists apply if the user does not specify any file. 16113ac_need_defaults=: 16114while test $# != 0 16115do 16116 case $1 in 16117 --*=*) 16118 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16120 ac_shift=: 16121 ;; 16122 *) 16123 ac_option=$1 16124 ac_optarg=$2 16125 ac_shift=shift 16126 ;; 16127 esac 16128 16129 case $ac_option in 16130 # Handling of the options. 16131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16132 ac_cs_recheck=: ;; 16133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16134 $as_echo "$ac_cs_version"; exit ;; 16135 --debug | --debu | --deb | --de | --d | -d ) 16136 debug=: ;; 16137 --file | --fil | --fi | --f ) 16138 $ac_shift 16139 case $ac_optarg in 16140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16141 esac 16142 as_fn_append CONFIG_FILES " '$ac_optarg'" 16143 ac_need_defaults=false;; 16144 --header | --heade | --head | --hea ) 16145 $ac_shift 16146 case $ac_optarg in 16147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16148 esac 16149 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16150 ac_need_defaults=false;; 16151 --he | --h) 16152 # Conflict between --help and --header 16153 as_fn_error "ambiguous option: \`$1' 16154Try \`$0 --help' for more information.";; 16155 --help | --hel | -h ) 16156 $as_echo "$ac_cs_usage"; exit ;; 16157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16158 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16159 ac_cs_silent=: ;; 16160 16161 # This is an error. 16162 -*) as_fn_error "unrecognized option: \`$1' 16163Try \`$0 --help' for more information." ;; 16164 16165 *) as_fn_append ac_config_targets " $1" 16166 ac_need_defaults=false ;; 16167 16168 esac 16169 shift 16170done 16171 16172ac_configure_extra_args= 16173 16174if $ac_cs_silent; then 16175 exec 6>/dev/null 16176 ac_configure_extra_args="$ac_configure_extra_args --silent" 16177fi 16178 16179_ACEOF 16180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16181if \$ac_cs_recheck; then 16182 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16183 shift 16184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16185 CONFIG_SHELL='$SHELL' 16186 export CONFIG_SHELL 16187 exec "\$@" 16188fi 16189 16190_ACEOF 16191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16192exec 5>>config.log 16193{ 16194 echo 16195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16196## Running $as_me. ## 16197_ASBOX 16198 $as_echo "$ac_log" 16199} >&5 16200 16201_ACEOF 16202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16203# 16204# INIT-COMMANDS 16205# 16206 16207srcdir="$srcdir" 16208host="$host" 16209target="$target" 16210with_multisubdir="$with_multisubdir" 16211with_multisrctop="$with_multisrctop" 16212with_target_subdir="$with_target_subdir" 16213ac_configure_args="${multilib_arg} ${ac_configure_args}" 16214multi_basedir="$multi_basedir" 16215CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 16216CC="$CC" 16217CXX="$CXX" 16218GFORTRAN="$GFORTRAN" 16219GCJ="$GCJ" 16220AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16221 16222 16223# The HP-UX ksh and POSIX shell print the target directory to stdout 16224# if CDPATH is set. 16225(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16226 16227sed_quote_subst='$sed_quote_subst' 16228double_quote_subst='$double_quote_subst' 16229delay_variable_subst='$delay_variable_subst' 16230SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16231Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16232GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16233EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16234FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16235SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16236ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16237LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16238macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16239macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16240enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16241enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16242pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16243enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16244host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16245host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16246host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16247build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16248build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16249build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16250NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16251LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16252max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16253ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16254exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16255lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16256lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16257lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16258reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16259reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16260OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16261deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16262file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16263AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16264AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16265STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16266RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16267old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16268old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16269old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16270lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16271CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16272CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16273compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16274GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16275lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16276lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16277lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16278lt_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"`' 16279objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16280MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16281lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16282lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16283lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16284lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16285lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16286need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16287DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16288NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16289LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16290OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16291OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16292libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16293shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16294extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16295archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16296enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16297export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16298whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16299compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16300old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16301old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16302archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16303archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16304module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16305module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16306with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16307allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16308no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16309hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16310hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16311hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16312hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16313hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16314hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16315hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16316hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16317inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16318link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16319fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16320always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16321export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16322exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16323include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16324prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16325file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16326variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16327need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16328need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16329version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16330runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16331shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16332shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16333libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16334library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16335soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16336install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16337postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16338postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16339finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16340finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16341hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16342sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16343sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16344hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16345enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16346enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16347enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16348old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16349striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16350LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`' 16351reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`' 16352reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`' 16353old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`' 16354compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`' 16355GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`' 16356lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`' 16357lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`' 16358lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`' 16359lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`' 16360lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`' 16361archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`' 16362enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`' 16363export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`' 16364whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`' 16365compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`' 16366old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`' 16367old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`' 16368archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`' 16369archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`' 16370module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`' 16371module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`' 16372with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`' 16373allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`' 16374no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`' 16375hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`' 16376hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`' 16377hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`' 16378hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`' 16379hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`' 16380hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`' 16381hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`' 16382hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`' 16383inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`' 16384link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`' 16385fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`' 16386always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`' 16387export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`' 16388exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`' 16389include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`' 16390prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`' 16391file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`' 16392hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`' 16393 16394LTCC='$LTCC' 16395LTCFLAGS='$LTCFLAGS' 16396compiler='$compiler_DEFAULT' 16397 16398# A function that is used when there is no print builtin or printf. 16399func_fallback_echo () 16400{ 16401 eval 'cat <<_LTECHO_EOF 16402\$1 16403_LTECHO_EOF' 16404} 16405 16406# Quote evaled strings. 16407for var in SED \ 16408GREP \ 16409EGREP \ 16410FGREP \ 16411SHELL \ 16412ECHO \ 16413LD \ 16414NM \ 16415LN_S \ 16416lt_SP2NL \ 16417lt_NL2SP \ 16418reload_flag \ 16419OBJDUMP \ 16420deplibs_check_method \ 16421file_magic_cmd \ 16422AR \ 16423AR_FLAGS \ 16424STRIP \ 16425RANLIB \ 16426CC \ 16427CFLAGS \ 16428compiler \ 16429lt_cv_sys_global_symbol_pipe \ 16430lt_cv_sys_global_symbol_to_cdecl \ 16431lt_cv_sys_global_symbol_to_c_name_address \ 16432lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16433lt_prog_compiler_no_builtin_flag \ 16434lt_prog_compiler_wl \ 16435lt_prog_compiler_pic \ 16436lt_prog_compiler_static \ 16437lt_cv_prog_compiler_c_o \ 16438need_locks \ 16439DSYMUTIL \ 16440NMEDIT \ 16441LIPO \ 16442OTOOL \ 16443OTOOL64 \ 16444shrext_cmds \ 16445export_dynamic_flag_spec \ 16446whole_archive_flag_spec \ 16447compiler_needs_object \ 16448with_gnu_ld \ 16449allow_undefined_flag \ 16450no_undefined_flag \ 16451hardcode_libdir_flag_spec \ 16452hardcode_libdir_flag_spec_ld \ 16453hardcode_libdir_separator \ 16454fix_srcfile_path \ 16455exclude_expsyms \ 16456include_expsyms \ 16457file_list_spec \ 16458variables_saved_for_relink \ 16459libname_spec \ 16460library_names_spec \ 16461soname_spec \ 16462install_override_mode \ 16463finish_eval \ 16464old_striplib \ 16465striplib \ 16466LD_GO \ 16467reload_flag_GO \ 16468compiler_GO \ 16469lt_prog_compiler_no_builtin_flag_GO \ 16470lt_prog_compiler_wl_GO \ 16471lt_prog_compiler_pic_GO \ 16472lt_prog_compiler_static_GO \ 16473lt_cv_prog_compiler_c_o_GO \ 16474export_dynamic_flag_spec_GO \ 16475whole_archive_flag_spec_GO \ 16476compiler_needs_object_GO \ 16477with_gnu_ld_GO \ 16478allow_undefined_flag_GO \ 16479no_undefined_flag_GO \ 16480hardcode_libdir_flag_spec_GO \ 16481hardcode_libdir_flag_spec_ld_GO \ 16482hardcode_libdir_separator_GO \ 16483fix_srcfile_path_GO \ 16484exclude_expsyms_GO \ 16485include_expsyms_GO \ 16486file_list_spec_GO; do 16487 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16488 *[\\\\\\\`\\"\\\$]*) 16489 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16490 ;; 16491 *) 16492 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16493 ;; 16494 esac 16495done 16496 16497# Double-quote double-evaled strings. 16498for var in reload_cmds \ 16499old_postinstall_cmds \ 16500old_postuninstall_cmds \ 16501old_archive_cmds \ 16502extract_expsyms_cmds \ 16503old_archive_from_new_cmds \ 16504old_archive_from_expsyms_cmds \ 16505archive_cmds \ 16506archive_expsym_cmds \ 16507module_cmds \ 16508module_expsym_cmds \ 16509export_symbols_cmds \ 16510prelink_cmds \ 16511postinstall_cmds \ 16512postuninstall_cmds \ 16513finish_cmds \ 16514sys_lib_search_path_spec \ 16515sys_lib_dlsearch_path_spec \ 16516reload_cmds_GO \ 16517old_archive_cmds_GO \ 16518old_archive_from_new_cmds_GO \ 16519old_archive_from_expsyms_cmds_GO \ 16520archive_cmds_GO \ 16521archive_expsym_cmds_GO \ 16522module_cmds_GO \ 16523module_expsym_cmds_GO \ 16524export_symbols_cmds_GO \ 16525prelink_cmds_GO; do 16526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16527 *[\\\\\\\`\\"\\\$]*) 16528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16529 ;; 16530 *) 16531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16532 ;; 16533 esac 16534done 16535 16536ac_aux_dir='$ac_aux_dir' 16537xsi_shell='$xsi_shell' 16538lt_shell_append='$lt_shell_append' 16539 16540# See if we are running on zsh, and set the options which allow our 16541# commands through without removal of \ escapes INIT. 16542if test -n "\${ZSH_VERSION+set}" ; then 16543 setopt NO_GLOB_SUBST 16544fi 16545 16546 16547 PACKAGE='$PACKAGE' 16548 VERSION='$VERSION' 16549 TIMESTAMP='$TIMESTAMP' 16550 RM='$RM' 16551 ofile='$ofile' 16552 16553 16554 16555 16556 16557 16558# Variables needed in config.status (file generation) which aren't already 16559# passed by autoconf. 16560SUBDIRS="$SUBDIRS" 16561 16562 16563_ACEOF 16564 16565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16566 16567# Handling of arguments. 16568for ac_config_target in $ac_config_targets 16569do 16570 case $ac_config_target in 16571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16572 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 16573 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16574 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16576 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 16577 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 16578 16579 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16580 esac 16581done 16582 16583 16584# If the user did not use the arguments to specify the items to instantiate, 16585# then the envvar interface is used. Set only those that are not. 16586# We use the long form for the default assignment because of an extremely 16587# bizarre bug on SunOS 4.1.3. 16588if $ac_need_defaults; then 16589 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16590 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16591 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16592fi 16593 16594# Have a temporary directory for convenience. Make it in the build tree 16595# simply because there is no reason against having it here, and in addition, 16596# creating and moving files from /tmp can sometimes cause problems. 16597# Hook for its removal unless debugging. 16598# Note that there is a small window in which the directory will not be cleaned: 16599# after its creation but before its name has been assigned to `$tmp'. 16600$debug || 16601{ 16602 tmp= 16603 trap 'exit_status=$? 16604 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16605' 0 16606 trap 'as_fn_exit 1' 1 2 13 15 16607} 16608# Create a (secure) tmp directory for tmp files. 16609 16610{ 16611 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16612 test -n "$tmp" && test -d "$tmp" 16613} || 16614{ 16615 tmp=./conf$$-$RANDOM 16616 (umask 077 && mkdir "$tmp") 16617} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16618 16619# Set up the scripts for CONFIG_FILES section. 16620# No need to generate them if there are no CONFIG_FILES. 16621# This happens for instance with `./config.status config.h'. 16622if test -n "$CONFIG_FILES"; then 16623 16624 16625ac_cr=`echo X | tr X '\015'` 16626# On cygwin, bash can eat \r inside `` if the user requested igncr. 16627# But we know of no other shell where ac_cr would be empty at this 16628# point, so we can use a bashism as a fallback. 16629if test "x$ac_cr" = x; then 16630 eval ac_cr=\$\'\\r\' 16631fi 16632ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16633if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16634 ac_cs_awk_cr='\r' 16635else 16636 ac_cs_awk_cr=$ac_cr 16637fi 16638 16639echo 'BEGIN {' >"$tmp/subs1.awk" && 16640_ACEOF 16641 16642 16643{ 16644 echo "cat >conf$$subs.awk <<_ACEOF" && 16645 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16646 echo "_ACEOF" 16647} >conf$$subs.sh || 16648 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16649ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16650ac_delim='%!_!# ' 16651for ac_last_try in false false false false false :; do 16652 . ./conf$$subs.sh || 16653 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16654 16655 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16656 if test $ac_delim_n = $ac_delim_num; then 16657 break 16658 elif $ac_last_try; then 16659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16660 else 16661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16662 fi 16663done 16664rm -f conf$$subs.sh 16665 16666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16667cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16668_ACEOF 16669sed -n ' 16670h 16671s/^/S["/; s/!.*/"]=/ 16672p 16673g 16674s/^[^!]*!// 16675:repl 16676t repl 16677s/'"$ac_delim"'$// 16678t delim 16679:nl 16680h 16681s/\(.\{148\}\).*/\1/ 16682t more1 16683s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16684p 16685n 16686b repl 16687:more1 16688s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16689p 16690g 16691s/.\{148\}// 16692t nl 16693:delim 16694h 16695s/\(.\{148\}\).*/\1/ 16696t more2 16697s/["\\]/\\&/g; s/^/"/; s/$/"/ 16698p 16699b 16700:more2 16701s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16702p 16703g 16704s/.\{148\}// 16705t delim 16706' <conf$$subs.awk | sed ' 16707/^[^""]/{ 16708 N 16709 s/\n// 16710} 16711' >>$CONFIG_STATUS || ac_write_fail=1 16712rm -f conf$$subs.awk 16713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16714_ACAWK 16715cat >>"\$tmp/subs1.awk" <<_ACAWK && 16716 for (key in S) S_is_set[key] = 1 16717 FS = "" 16718 16719} 16720{ 16721 line = $ 0 16722 nfields = split(line, field, "@") 16723 substed = 0 16724 len = length(field[1]) 16725 for (i = 2; i < nfields; i++) { 16726 key = field[i] 16727 keylen = length(key) 16728 if (S_is_set[key]) { 16729 value = S[key] 16730 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16731 len += length(value) + length(field[++i]) 16732 substed = 1 16733 } else 16734 len += 1 + keylen 16735 } 16736 16737 print line 16738} 16739 16740_ACAWK 16741_ACEOF 16742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16743if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16744 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16745else 16746 cat 16747fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16748 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16749_ACEOF 16750 16751# VPATH may cause trouble with some makes, so we remove $(srcdir), 16752# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16753# trailing colons and then remove the whole line if VPATH becomes empty 16754# (actually we leave an empty line to preserve line numbers). 16755if test "x$srcdir" = x.; then 16756 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16757s/:*\$(srcdir):*/:/ 16758s/:*\${srcdir}:*/:/ 16759s/:*@srcdir@:*/:/ 16760s/^\([^=]*=[ ]*\):*/\1/ 16761s/:*$// 16762s/^[^=]*=[ ]*$// 16763}' 16764fi 16765 16766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16767fi # test -n "$CONFIG_FILES" 16768 16769# Set up the scripts for CONFIG_HEADERS section. 16770# No need to generate them if there are no CONFIG_HEADERS. 16771# This happens for instance with `./config.status Makefile'. 16772if test -n "$CONFIG_HEADERS"; then 16773cat >"$tmp/defines.awk" <<\_ACAWK || 16774BEGIN { 16775_ACEOF 16776 16777# Transform confdefs.h into an awk script `defines.awk', embedded as 16778# here-document in config.status, that substitutes the proper values into 16779# config.h.in to produce config.h. 16780 16781# Create a delimiter string that does not exist in confdefs.h, to ease 16782# handling of long lines. 16783ac_delim='%!_!# ' 16784for ac_last_try in false false :; do 16785 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16786 if test -z "$ac_t"; then 16787 break 16788 elif $ac_last_try; then 16789 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 16790 else 16791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16792 fi 16793done 16794 16795# For the awk script, D is an array of macro values keyed by name, 16796# likewise P contains macro parameters if any. Preserve backslash 16797# newline sequences. 16798 16799ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16800sed -n ' 16801s/.\{148\}/&'"$ac_delim"'/g 16802t rset 16803:rset 16804s/^[ ]*#[ ]*define[ ][ ]*/ / 16805t def 16806d 16807:def 16808s/\\$// 16809t bsnl 16810s/["\\]/\\&/g 16811s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16812D["\1"]=" \3"/p 16813s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16814d 16815:bsnl 16816s/["\\]/\\&/g 16817s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16818D["\1"]=" \3\\\\\\n"\\/p 16819t cont 16820s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16821t cont 16822d 16823:cont 16824n 16825s/.\{148\}/&'"$ac_delim"'/g 16826t clear 16827:clear 16828s/\\$// 16829t bsnlc 16830s/["\\]/\\&/g; s/^/"/; s/$/"/p 16831d 16832:bsnlc 16833s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16834b cont 16835' <confdefs.h | sed ' 16836s/'"$ac_delim"'/"\\\ 16837"/g' >>$CONFIG_STATUS || ac_write_fail=1 16838 16839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16840 for (key in D) D_is_set[key] = 1 16841 FS = "" 16842} 16843/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16844 line = \$ 0 16845 split(line, arg, " ") 16846 if (arg[1] == "#") { 16847 defundef = arg[2] 16848 mac1 = arg[3] 16849 } else { 16850 defundef = substr(arg[1], 2) 16851 mac1 = arg[2] 16852 } 16853 split(mac1, mac2, "(") #) 16854 macro = mac2[1] 16855 prefix = substr(line, 1, index(line, defundef) - 1) 16856 if (D_is_set[macro]) { 16857 # Preserve the white space surrounding the "#". 16858 print prefix "define", macro P[macro] D[macro] 16859 next 16860 } else { 16861 # Replace #undef with comments. This is necessary, for example, 16862 # in the case of _POSIX_SOURCE, which is predefined and required 16863 # on some systems where configure will not decide to define it. 16864 if (defundef == "undef") { 16865 print "/*", prefix defundef, macro, "*/" 16866 next 16867 } 16868 } 16869} 16870{ print } 16871_ACAWK 16872_ACEOF 16873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16874 as_fn_error "could not setup config headers machinery" "$LINENO" 5 16875fi # test -n "$CONFIG_HEADERS" 16876 16877 16878eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16879shift 16880for ac_tag 16881do 16882 case $ac_tag in 16883 :[FHLC]) ac_mode=$ac_tag; continue;; 16884 esac 16885 case $ac_mode$ac_tag in 16886 :[FHL]*:*);; 16887 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 16888 :[FH]-) ac_tag=-:-;; 16889 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16890 esac 16891 ac_save_IFS=$IFS 16892 IFS=: 16893 set x $ac_tag 16894 IFS=$ac_save_IFS 16895 shift 16896 ac_file=$1 16897 shift 16898 16899 case $ac_mode in 16900 :L) ac_source=$1;; 16901 :[FH]) 16902 ac_file_inputs= 16903 for ac_f 16904 do 16905 case $ac_f in 16906 -) ac_f="$tmp/stdin";; 16907 *) # Look for the file first in the build tree, then in the source tree 16908 # (if the path is not absolute). The absolute path cannot be DOS-style, 16909 # because $ac_f cannot contain `:'. 16910 test -f "$ac_f" || 16911 case $ac_f in 16912 [\\/$]*) false;; 16913 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16914 esac || 16915 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16916 esac 16917 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16918 as_fn_append ac_file_inputs " '$ac_f'" 16919 done 16920 16921 # Let's still pretend it is `configure' which instantiates (i.e., don't 16922 # use $as_me), people would be surprised to read: 16923 # /* config.h. Generated by config.status. */ 16924 configure_input='Generated from '` 16925 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16926 `' by configure.' 16927 if test x"$ac_file" != x-; then 16928 configure_input="$ac_file. $configure_input" 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16930$as_echo "$as_me: creating $ac_file" >&6;} 16931 fi 16932 # Neutralize special characters interpreted by sed in replacement strings. 16933 case $configure_input in #( 16934 *\&* | *\|* | *\\* ) 16935 ac_sed_conf_input=`$as_echo "$configure_input" | 16936 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16937 *) ac_sed_conf_input=$configure_input;; 16938 esac 16939 16940 case $ac_tag in 16941 *:-:* | *:-) cat >"$tmp/stdin" \ 16942 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 16943 esac 16944 ;; 16945 esac 16946 16947 ac_dir=`$as_dirname -- "$ac_file" || 16948$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16949 X"$ac_file" : 'X\(//\)[^/]' \| \ 16950 X"$ac_file" : 'X\(//\)$' \| \ 16951 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16952$as_echo X"$ac_file" | 16953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16954 s//\1/ 16955 q 16956 } 16957 /^X\(\/\/\)[^/].*/{ 16958 s//\1/ 16959 q 16960 } 16961 /^X\(\/\/\)$/{ 16962 s//\1/ 16963 q 16964 } 16965 /^X\(\/\).*/{ 16966 s//\1/ 16967 q 16968 } 16969 s/.*/./; q'` 16970 as_dir="$ac_dir"; as_fn_mkdir_p 16971 ac_builddir=. 16972 16973case "$ac_dir" in 16974.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16975*) 16976 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16977 # A ".." for each directory in $ac_dir_suffix. 16978 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16979 case $ac_top_builddir_sub in 16980 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16981 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16982 esac ;; 16983esac 16984ac_abs_top_builddir=$ac_pwd 16985ac_abs_builddir=$ac_pwd$ac_dir_suffix 16986# for backward compatibility: 16987ac_top_builddir=$ac_top_build_prefix 16988 16989case $srcdir in 16990 .) # We are building in place. 16991 ac_srcdir=. 16992 ac_top_srcdir=$ac_top_builddir_sub 16993 ac_abs_top_srcdir=$ac_pwd ;; 16994 [\\/]* | ?:[\\/]* ) # Absolute name. 16995 ac_srcdir=$srcdir$ac_dir_suffix; 16996 ac_top_srcdir=$srcdir 16997 ac_abs_top_srcdir=$srcdir ;; 16998 *) # Relative name. 16999 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17000 ac_top_srcdir=$ac_top_build_prefix$srcdir 17001 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17002esac 17003ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17004 17005 17006 case $ac_mode in 17007 :F) 17008 # 17009 # CONFIG_FILE 17010 # 17011 17012 case $INSTALL in 17013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17014 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17015 esac 17016 ac_MKDIR_P=$MKDIR_P 17017 case $MKDIR_P in 17018 [\\/$]* | ?:[\\/]* ) ;; 17019 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17020 esac 17021_ACEOF 17022 17023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17024# If the template does not know about datarootdir, expand it. 17025# FIXME: This hack should be removed a few years after 2.60. 17026ac_datarootdir_hack=; ac_datarootdir_seen= 17027ac_sed_dataroot=' 17028/datarootdir/ { 17029 p 17030 q 17031} 17032/@datadir@/p 17033/@docdir@/p 17034/@infodir@/p 17035/@localedir@/p 17036/@mandir@/p' 17037case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17038*datarootdir*) ac_datarootdir_seen=yes;; 17039*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17041$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17042_ACEOF 17043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17044 ac_datarootdir_hack=' 17045 s&@datadir@&$datadir&g 17046 s&@docdir@&$docdir&g 17047 s&@infodir@&$infodir&g 17048 s&@localedir@&$localedir&g 17049 s&@mandir@&$mandir&g 17050 s&\\\${datarootdir}&$datarootdir&g' ;; 17051esac 17052_ACEOF 17053 17054# Neutralize VPATH when `$srcdir' = `.'. 17055# Shell code in configure.ac might set extrasub. 17056# FIXME: do we really want to maintain this feature? 17057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17058ac_sed_extra="$ac_vpsub 17059$extrasub 17060_ACEOF 17061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17062:t 17063/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17064s|@configure_input@|$ac_sed_conf_input|;t t 17065s&@top_builddir@&$ac_top_builddir_sub&;t t 17066s&@top_build_prefix@&$ac_top_build_prefix&;t t 17067s&@srcdir@&$ac_srcdir&;t t 17068s&@abs_srcdir@&$ac_abs_srcdir&;t t 17069s&@top_srcdir@&$ac_top_srcdir&;t t 17070s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17071s&@builddir@&$ac_builddir&;t t 17072s&@abs_builddir@&$ac_abs_builddir&;t t 17073s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17074s&@INSTALL@&$ac_INSTALL&;t t 17075s&@MKDIR_P@&$ac_MKDIR_P&;t t 17076$ac_datarootdir_hack 17077" 17078eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17079 || as_fn_error "could not create $ac_file" "$LINENO" 5 17080 17081test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17082 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17085which seems to be undefined. Please make sure it is defined." >&5 17086$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17087which seems to be undefined. Please make sure it is defined." >&2;} 17088 17089 rm -f "$tmp/stdin" 17090 case $ac_file in 17091 -) cat "$tmp/out" && rm -f "$tmp/out";; 17092 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17093 esac \ 17094 || as_fn_error "could not create $ac_file" "$LINENO" 5 17095 ;; 17096 :H) 17097 # 17098 # CONFIG_HEADER 17099 # 17100 if test x"$ac_file" != x-; then 17101 { 17102 $as_echo "/* $configure_input */" \ 17103 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17104 } >"$tmp/config.h" \ 17105 || as_fn_error "could not create $ac_file" "$LINENO" 5 17106 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17108$as_echo "$as_me: $ac_file is unchanged" >&6;} 17109 else 17110 rm -f "$ac_file" 17111 mv "$tmp/config.h" "$ac_file" \ 17112 || as_fn_error "could not create $ac_file" "$LINENO" 5 17113 fi 17114 else 17115 $as_echo "/* $configure_input */" \ 17116 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17117 || as_fn_error "could not create -" "$LINENO" 5 17118 fi 17119# Compute "$ac_file"'s index in $config_headers. 17120_am_arg="$ac_file" 17121_am_stamp_count=1 17122for _am_header in $config_headers :; do 17123 case $_am_header in 17124 $_am_arg | $_am_arg:* ) 17125 break ;; 17126 * ) 17127 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17128 esac 17129done 17130echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17131$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17132 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17133 X"$_am_arg" : 'X\(//\)$' \| \ 17134 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17135$as_echo X"$_am_arg" | 17136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17137 s//\1/ 17138 q 17139 } 17140 /^X\(\/\/\)[^/].*/{ 17141 s//\1/ 17142 q 17143 } 17144 /^X\(\/\/\)$/{ 17145 s//\1/ 17146 q 17147 } 17148 /^X\(\/\).*/{ 17149 s//\1/ 17150 q 17151 } 17152 s/.*/./; q'`/stamp-h$_am_stamp_count 17153 ;; 17154 17155 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17156$as_echo "$as_me: executing $ac_file commands" >&6;} 17157 ;; 17158 esac 17159 17160 17161 case $ac_file$ac_mode in 17162 "default-1":C) 17163# Only add multilib support code if we just rebuilt the top-level 17164# Makefile. 17165case " $CONFIG_FILES " in 17166 *" Makefile "*) 17167 ac_file=Makefile . ${multi_basedir}/config-ml.in 17168 ;; 17169esac ;; 17170 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17171 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17172 # are listed without --file. Let's play safe and only enable the eval 17173 # if we detect the quoting. 17174 case $CONFIG_FILES in 17175 *\'*) eval set x "$CONFIG_FILES" ;; 17176 *) set x $CONFIG_FILES ;; 17177 esac 17178 shift 17179 for mf 17180 do 17181 # Strip MF so we end up with the name of the file. 17182 mf=`echo "$mf" | sed -e 's/:.*$//'` 17183 # Check whether this is an Automake generated Makefile or not. 17184 # We used to match only the files named `Makefile.in', but 17185 # some people rename them; so instead we look at the file content. 17186 # Grep'ing the first line is not enough: some people post-process 17187 # each Makefile.in and add a new line on top of each file to say so. 17188 # Grep'ing the whole file is not good either: AIX grep has a line 17189 # limit of 2048, but all sed's we know have understand at least 4000. 17190 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17191 dirpart=`$as_dirname -- "$mf" || 17192$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17193 X"$mf" : 'X\(//\)[^/]' \| \ 17194 X"$mf" : 'X\(//\)$' \| \ 17195 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17196$as_echo X"$mf" | 17197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17198 s//\1/ 17199 q 17200 } 17201 /^X\(\/\/\)[^/].*/{ 17202 s//\1/ 17203 q 17204 } 17205 /^X\(\/\/\)$/{ 17206 s//\1/ 17207 q 17208 } 17209 /^X\(\/\).*/{ 17210 s//\1/ 17211 q 17212 } 17213 s/.*/./; q'` 17214 else 17215 continue 17216 fi 17217 # Extract the definition of DEPDIR, am__include, and am__quote 17218 # from the Makefile without running `make'. 17219 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17220 test -z "$DEPDIR" && continue 17221 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17222 test -z "am__include" && continue 17223 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17224 # When using ansi2knr, U may be empty or an underscore; expand it 17225 U=`sed -n 's/^U = //p' < "$mf"` 17226 # Find all dependency output files, they are included files with 17227 # $(DEPDIR) in their names. We invoke sed twice because it is the 17228 # simplest approach to changing $(DEPDIR) to its actual value in the 17229 # expansion. 17230 for file in `sed -n " 17231 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17232 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17233 # Make sure the directory exists. 17234 test -f "$dirpart/$file" && continue 17235 fdir=`$as_dirname -- "$file" || 17236$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17237 X"$file" : 'X\(//\)[^/]' \| \ 17238 X"$file" : 'X\(//\)$' \| \ 17239 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17240$as_echo X"$file" | 17241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17242 s//\1/ 17243 q 17244 } 17245 /^X\(\/\/\)[^/].*/{ 17246 s//\1/ 17247 q 17248 } 17249 /^X\(\/\/\)$/{ 17250 s//\1/ 17251 q 17252 } 17253 /^X\(\/\).*/{ 17254 s//\1/ 17255 q 17256 } 17257 s/.*/./; q'` 17258 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17259 # echo "creating $dirpart/$file" 17260 echo '# dummy' > "$dirpart/$file" 17261 done 17262 done 17263} 17264 ;; 17265 "libtool":C) 17266 17267 # See if we are running on zsh, and set the options which allow our 17268 # commands through without removal of \ escapes. 17269 if test -n "${ZSH_VERSION+set}" ; then 17270 setopt NO_GLOB_SUBST 17271 fi 17272 17273 cfgfile="${ofile}T" 17274 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17275 $RM "$cfgfile" 17276 17277 cat <<_LT_EOF >> "$cfgfile" 17278#! $SHELL 17279 17280# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17281# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17282# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17283# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17284# 17285# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17286# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 17287# Written by Gordon Matzigkeit, 1996 17288# 17289# This file is part of GNU Libtool. 17290# 17291# GNU Libtool is free software; you can redistribute it and/or 17292# modify it under the terms of the GNU General Public License as 17293# published by the Free Software Foundation; either version 2 of 17294# the License, or (at your option) any later version. 17295# 17296# As a special exception to the GNU General Public License, 17297# if you distribute this file as part of a program or library that 17298# is built using GNU Libtool, you may include this file under the 17299# same distribution terms that you use for the rest of that program. 17300# 17301# GNU Libtool is distributed in the hope that it will be useful, 17302# but WITHOUT ANY WARRANTY; without even the implied warranty of 17303# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17304# GNU General Public License for more details. 17305# 17306# You should have received a copy of the GNU General Public License 17307# along with GNU Libtool; see the file COPYING. If not, a copy 17308# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17309# obtained by writing to the Free Software Foundation, Inc., 17310# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17311 17312 17313# The names of the tagged configurations supported by this script. 17314available_tags="GO " 17315 17316# ### BEGIN LIBTOOL CONFIG 17317 17318# A sed program that does not truncate output. 17319SED=$lt_SED 17320 17321# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17322Xsed="\$SED -e 1s/^X//" 17323 17324# A grep program that handles long lines. 17325GREP=$lt_GREP 17326 17327# An ERE matcher. 17328EGREP=$lt_EGREP 17329 17330# A literal string matcher. 17331FGREP=$lt_FGREP 17332 17333# Shell to use when invoking shell scripts. 17334SHELL=$lt_SHELL 17335 17336# An echo program that protects backslashes. 17337ECHO=$lt_ECHO 17338 17339# Which release of libtool.m4 was used? 17340macro_version=$macro_version 17341macro_revision=$macro_revision 17342 17343# Whether or not to build shared libraries. 17344build_libtool_libs=$enable_shared 17345 17346# Whether or not to build static libraries. 17347build_old_libs=$enable_static 17348 17349# What type of objects to build. 17350pic_mode=$pic_mode 17351 17352# Whether or not to optimize for fast installation. 17353fast_install=$enable_fast_install 17354 17355# The host system. 17356host_alias=$host_alias 17357host=$host 17358host_os=$host_os 17359 17360# The build system. 17361build_alias=$build_alias 17362build=$build 17363build_os=$build_os 17364 17365# A BSD- or MS-compatible name lister. 17366NM=$lt_NM 17367 17368# Whether we need soft or hard links. 17369LN_S=$lt_LN_S 17370 17371# What is the maximum length of a command? 17372max_cmd_len=$max_cmd_len 17373 17374# Object file suffix (normally "o"). 17375objext=$ac_objext 17376 17377# Executable file suffix (normally ""). 17378exeext=$exeext 17379 17380# whether the shell understands "unset". 17381lt_unset=$lt_unset 17382 17383# turn spaces into newlines. 17384SP2NL=$lt_lt_SP2NL 17385 17386# turn newlines into spaces. 17387NL2SP=$lt_lt_NL2SP 17388 17389# An object symbol dumper. 17390OBJDUMP=$lt_OBJDUMP 17391 17392# Method to check whether dependent libraries are shared objects. 17393deplibs_check_method=$lt_deplibs_check_method 17394 17395# Command to use when deplibs_check_method == "file_magic". 17396file_magic_cmd=$lt_file_magic_cmd 17397 17398# The archiver. 17399AR=$lt_AR 17400AR_FLAGS=$lt_AR_FLAGS 17401 17402# A symbol stripping program. 17403STRIP=$lt_STRIP 17404 17405# Commands used to install an old-style archive. 17406RANLIB=$lt_RANLIB 17407old_postinstall_cmds=$lt_old_postinstall_cmds 17408old_postuninstall_cmds=$lt_old_postuninstall_cmds 17409 17410# Whether to use a lock for old archive extraction. 17411lock_old_archive_extraction=$lock_old_archive_extraction 17412 17413# A C compiler. 17414LTCC=$lt_CC 17415 17416# LTCC compiler flags. 17417LTCFLAGS=$lt_CFLAGS 17418 17419# Take the output of nm and produce a listing of raw symbols and C names. 17420global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17421 17422# Transform the output of nm in a proper C declaration. 17423global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17424 17425# Transform the output of nm in a C name address pair. 17426global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17427 17428# Transform the output of nm in a C name address pair when lib prefix is needed. 17429global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17430 17431# The name of the directory that contains temporary libtool files. 17432objdir=$objdir 17433 17434# Used to examine libraries when file_magic_cmd begins with "file". 17435MAGIC_CMD=$MAGIC_CMD 17436 17437# Must we lock files when doing compilation? 17438need_locks=$lt_need_locks 17439 17440# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17441DSYMUTIL=$lt_DSYMUTIL 17442 17443# Tool to change global to local symbols on Mac OS X. 17444NMEDIT=$lt_NMEDIT 17445 17446# Tool to manipulate fat objects and archives on Mac OS X. 17447LIPO=$lt_LIPO 17448 17449# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17450OTOOL=$lt_OTOOL 17451 17452# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17453OTOOL64=$lt_OTOOL64 17454 17455# Old archive suffix (normally "a"). 17456libext=$libext 17457 17458# Shared library suffix (normally ".so"). 17459shrext_cmds=$lt_shrext_cmds 17460 17461# The commands to extract the exported symbol list from a shared archive. 17462extract_expsyms_cmds=$lt_extract_expsyms_cmds 17463 17464# Variables whose values should be saved in libtool wrapper scripts and 17465# restored at link time. 17466variables_saved_for_relink=$lt_variables_saved_for_relink 17467 17468# Do we need the "lib" prefix for modules? 17469need_lib_prefix=$need_lib_prefix 17470 17471# Do we need a version for libraries? 17472need_version=$need_version 17473 17474# Library versioning type. 17475version_type=$version_type 17476 17477# Shared library runtime path variable. 17478runpath_var=$runpath_var 17479 17480# Shared library path variable. 17481shlibpath_var=$shlibpath_var 17482 17483# Is shlibpath searched before the hard-coded library search path? 17484shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17485 17486# Format of library name prefix. 17487libname_spec=$lt_libname_spec 17488 17489# List of archive names. First name is the real one, the rest are links. 17490# The last name is the one that the linker finds with -lNAME 17491library_names_spec=$lt_library_names_spec 17492 17493# The coded name of the library, if different from the real name. 17494soname_spec=$lt_soname_spec 17495 17496# Permission mode override for installation of shared libraries. 17497install_override_mode=$lt_install_override_mode 17498 17499# Command to use after installation of a shared archive. 17500postinstall_cmds=$lt_postinstall_cmds 17501 17502# Command to use after uninstallation of a shared archive. 17503postuninstall_cmds=$lt_postuninstall_cmds 17504 17505# Commands used to finish a libtool library installation in a directory. 17506finish_cmds=$lt_finish_cmds 17507 17508# As "finish_cmds", except a single script fragment to be evaled but 17509# not shown. 17510finish_eval=$lt_finish_eval 17511 17512# Whether we should hardcode library paths into libraries. 17513hardcode_into_libs=$hardcode_into_libs 17514 17515# Compile-time system search path for libraries. 17516sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17517 17518# Run-time system search path for libraries. 17519sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17520 17521# Whether dlopen is supported. 17522dlopen_support=$enable_dlopen 17523 17524# Whether dlopen of programs is supported. 17525dlopen_self=$enable_dlopen_self 17526 17527# Whether dlopen of statically linked programs is supported. 17528dlopen_self_static=$enable_dlopen_self_static 17529 17530# Commands to strip libraries. 17531old_striplib=$lt_old_striplib 17532striplib=$lt_striplib 17533 17534 17535# The linker used to build libraries. 17536LD=$lt_LD 17537 17538# How to create reloadable object files. 17539reload_flag=$lt_reload_flag 17540reload_cmds=$lt_reload_cmds 17541 17542# Commands used to build an old-style archive. 17543old_archive_cmds=$lt_old_archive_cmds 17544 17545# A language specific compiler. 17546CC=$lt_compiler 17547 17548# Is the compiler the GNU compiler? 17549with_gcc=$GCC 17550 17551# Compiler flag to turn off builtin functions. 17552no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17553 17554# How to pass a linker flag through the compiler. 17555wl=$lt_lt_prog_compiler_wl 17556 17557# Additional compiler flags for building library objects. 17558pic_flag=$lt_lt_prog_compiler_pic 17559 17560# Compiler flag to prevent dynamic linking. 17561link_static_flag=$lt_lt_prog_compiler_static 17562 17563# Does compiler simultaneously support -c and -o options? 17564compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17565 17566# Whether or not to add -lc for building shared libraries. 17567build_libtool_need_lc=$archive_cmds_need_lc 17568 17569# Whether or not to disallow shared libs when runtime libs are static. 17570allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17571 17572# Compiler flag to allow reflexive dlopens. 17573export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17574 17575# Compiler flag to generate shared objects directly from archives. 17576whole_archive_flag_spec=$lt_whole_archive_flag_spec 17577 17578# Whether the compiler copes with passing no objects directly. 17579compiler_needs_object=$lt_compiler_needs_object 17580 17581# Create an old-style archive from a shared archive. 17582old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17583 17584# Create a temporary old-style archive to link instead of a shared archive. 17585old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17586 17587# Commands used to build a shared archive. 17588archive_cmds=$lt_archive_cmds 17589archive_expsym_cmds=$lt_archive_expsym_cmds 17590 17591# Commands used to build a loadable module if different from building 17592# a shared archive. 17593module_cmds=$lt_module_cmds 17594module_expsym_cmds=$lt_module_expsym_cmds 17595 17596# Whether we are building with GNU ld or not. 17597with_gnu_ld=$lt_with_gnu_ld 17598 17599# Flag that allows shared libraries with undefined symbols to be built. 17600allow_undefined_flag=$lt_allow_undefined_flag 17601 17602# Flag that enforces no undefined symbols. 17603no_undefined_flag=$lt_no_undefined_flag 17604 17605# Flag to hardcode \$libdir into a binary during linking. 17606# This must work even if \$libdir does not exist 17607hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17608 17609# If ld is used when linking, flag to hardcode \$libdir into a binary 17610# during linking. This must work even if \$libdir does not exist. 17611hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17612 17613# Whether we need a single "-rpath" flag with a separated argument. 17614hardcode_libdir_separator=$lt_hardcode_libdir_separator 17615 17616# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17617# DIR into the resulting binary. 17618hardcode_direct=$hardcode_direct 17619 17620# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17621# DIR into the resulting binary and the resulting library dependency is 17622# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17623# library is relocated. 17624hardcode_direct_absolute=$hardcode_direct_absolute 17625 17626# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17627# into the resulting binary. 17628hardcode_minus_L=$hardcode_minus_L 17629 17630# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17631# into the resulting binary. 17632hardcode_shlibpath_var=$hardcode_shlibpath_var 17633 17634# Set to "yes" if building a shared library automatically hardcodes DIR 17635# into the library and all subsequent libraries and executables linked 17636# against it. 17637hardcode_automatic=$hardcode_automatic 17638 17639# Set to yes if linker adds runtime paths of dependent libraries 17640# to runtime path list. 17641inherit_rpath=$inherit_rpath 17642 17643# Whether libtool must link a program against all its dependency libraries. 17644link_all_deplibs=$link_all_deplibs 17645 17646# Fix the shell variable \$srcfile for the compiler. 17647fix_srcfile_path=$lt_fix_srcfile_path 17648 17649# Set to "yes" if exported symbols are required. 17650always_export_symbols=$always_export_symbols 17651 17652# The commands to list exported symbols. 17653export_symbols_cmds=$lt_export_symbols_cmds 17654 17655# Symbols that should not be listed in the preloaded symbols. 17656exclude_expsyms=$lt_exclude_expsyms 17657 17658# Symbols that must always be exported. 17659include_expsyms=$lt_include_expsyms 17660 17661# Commands necessary for linking programs (against libraries) with templates. 17662prelink_cmds=$lt_prelink_cmds 17663 17664# Specify filename containing input files. 17665file_list_spec=$lt_file_list_spec 17666 17667# How to hardcode a shared library path into an executable. 17668hardcode_action=$hardcode_action 17669 17670# ### END LIBTOOL CONFIG 17671 17672_LT_EOF 17673 17674 case $host_os in 17675 aix3*) 17676 cat <<\_LT_EOF >> "$cfgfile" 17677# AIX sometimes has problems with the GCC collect2 program. For some 17678# reason, if we set the COLLECT_NAMES environment variable, the problems 17679# vanish in a puff of smoke. 17680if test "X${COLLECT_NAMES+set}" != Xset; then 17681 COLLECT_NAMES= 17682 export COLLECT_NAMES 17683fi 17684_LT_EOF 17685 ;; 17686 esac 17687 17688 17689ltmain="$ac_aux_dir/ltmain.sh" 17690 17691 17692 # We use sed instead of cat because bash on DJGPP gets confused if 17693 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17694 # text mode, it properly converts lines to CR/LF. This bash problem 17695 # is reportedly fixed, but why not run on old versions too? 17696 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17697 || (rm -f "$cfgfile"; exit 1) 17698 17699 case $xsi_shell in 17700 yes) 17701 cat << \_LT_EOF >> "$cfgfile" 17702 17703# func_dirname file append nondir_replacement 17704# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17705# otherwise set result to NONDIR_REPLACEMENT. 17706func_dirname () 17707{ 17708 case ${1} in 17709 */*) func_dirname_result="${1%/*}${2}" ;; 17710 * ) func_dirname_result="${3}" ;; 17711 esac 17712} 17713 17714# func_basename file 17715func_basename () 17716{ 17717 func_basename_result="${1##*/}" 17718} 17719 17720# func_dirname_and_basename file append nondir_replacement 17721# perform func_basename and func_dirname in a single function 17722# call: 17723# dirname: Compute the dirname of FILE. If nonempty, 17724# add APPEND to the result, otherwise set result 17725# to NONDIR_REPLACEMENT. 17726# value returned in "$func_dirname_result" 17727# basename: Compute filename of FILE. 17728# value retuned in "$func_basename_result" 17729# Implementation must be kept synchronized with func_dirname 17730# and func_basename. For efficiency, we do not delegate to 17731# those functions but instead duplicate the functionality here. 17732func_dirname_and_basename () 17733{ 17734 case ${1} in 17735 */*) func_dirname_result="${1%/*}${2}" ;; 17736 * ) func_dirname_result="${3}" ;; 17737 esac 17738 func_basename_result="${1##*/}" 17739} 17740 17741# func_stripname prefix suffix name 17742# strip PREFIX and SUFFIX off of NAME. 17743# PREFIX and SUFFIX must not contain globbing or regex special 17744# characters, hashes, percent signs, but SUFFIX may contain a leading 17745# dot (in which case that matches only a dot). 17746func_stripname () 17747{ 17748 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17749 # positional parameters, so assign one to ordinary parameter first. 17750 func_stripname_result=${3} 17751 func_stripname_result=${func_stripname_result#"${1}"} 17752 func_stripname_result=${func_stripname_result%"${2}"} 17753} 17754 17755# func_opt_split 17756func_opt_split () 17757{ 17758 func_opt_split_opt=${1%%=*} 17759 func_opt_split_arg=${1#*=} 17760} 17761 17762# func_lo2o object 17763func_lo2o () 17764{ 17765 case ${1} in 17766 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17767 *) func_lo2o_result=${1} ;; 17768 esac 17769} 17770 17771# func_xform libobj-or-source 17772func_xform () 17773{ 17774 func_xform_result=${1%.*}.lo 17775} 17776 17777# func_arith arithmetic-term... 17778func_arith () 17779{ 17780 func_arith_result=$(( $* )) 17781} 17782 17783# func_len string 17784# STRING may not start with a hyphen. 17785func_len () 17786{ 17787 func_len_result=${#1} 17788} 17789 17790_LT_EOF 17791 ;; 17792 *) # Bourne compatible functions. 17793 cat << \_LT_EOF >> "$cfgfile" 17794 17795# func_dirname file append nondir_replacement 17796# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17797# otherwise set result to NONDIR_REPLACEMENT. 17798func_dirname () 17799{ 17800 # Extract subdirectory from the argument. 17801 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17802 if test "X$func_dirname_result" = "X${1}"; then 17803 func_dirname_result="${3}" 17804 else 17805 func_dirname_result="$func_dirname_result${2}" 17806 fi 17807} 17808 17809# func_basename file 17810func_basename () 17811{ 17812 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17813} 17814 17815 17816# func_stripname prefix suffix name 17817# strip PREFIX and SUFFIX off of NAME. 17818# PREFIX and SUFFIX must not contain globbing or regex special 17819# characters, hashes, percent signs, but SUFFIX may contain a leading 17820# dot (in which case that matches only a dot). 17821# func_strip_suffix prefix name 17822func_stripname () 17823{ 17824 case ${2} in 17825 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17826 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17827 esac 17828} 17829 17830# sed scripts: 17831my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17832my_sed_long_arg='1s/^-[^=]*=//' 17833 17834# func_opt_split 17835func_opt_split () 17836{ 17837 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17838 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17839} 17840 17841# func_lo2o object 17842func_lo2o () 17843{ 17844 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17845} 17846 17847# func_xform libobj-or-source 17848func_xform () 17849{ 17850 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17851} 17852 17853# func_arith arithmetic-term... 17854func_arith () 17855{ 17856 func_arith_result=`expr "$@"` 17857} 17858 17859# func_len string 17860# STRING may not start with a hyphen. 17861func_len () 17862{ 17863 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17864} 17865 17866_LT_EOF 17867esac 17868 17869case $lt_shell_append in 17870 yes) 17871 cat << \_LT_EOF >> "$cfgfile" 17872 17873# func_append var value 17874# Append VALUE to the end of shell variable VAR. 17875func_append () 17876{ 17877 eval "$1+=\$2" 17878} 17879_LT_EOF 17880 ;; 17881 *) 17882 cat << \_LT_EOF >> "$cfgfile" 17883 17884# func_append var value 17885# Append VALUE to the end of shell variable VAR. 17886func_append () 17887{ 17888 eval "$1=\$$1\$2" 17889} 17890 17891_LT_EOF 17892 ;; 17893 esac 17894 17895 17896 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17897 || (rm -f "$cfgfile"; exit 1) 17898 17899 mv -f "$cfgfile" "$ofile" || 17900 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17901 chmod +x "$ofile" 17902 17903 17904 cat <<_LT_EOF >> "$ofile" 17905 17906# ### BEGIN LIBTOOL TAG CONFIG: GO 17907 17908# The linker used to build libraries. 17909LD=$lt_LD_GO 17910 17911# How to create reloadable object files. 17912reload_flag=$lt_reload_flag_GO 17913reload_cmds=$lt_reload_cmds_GO 17914 17915# Commands used to build an old-style archive. 17916old_archive_cmds=$lt_old_archive_cmds_GO 17917 17918# A language specific compiler. 17919CC=$lt_compiler_GO 17920 17921# Is the compiler the GNU compiler? 17922with_gcc=$GCC_GO 17923 17924# Compiler flag to turn off builtin functions. 17925no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO 17926 17927# How to pass a linker flag through the compiler. 17928wl=$lt_lt_prog_compiler_wl_GO 17929 17930# Additional compiler flags for building library objects. 17931pic_flag=$lt_lt_prog_compiler_pic_GO 17932 17933# Compiler flag to prevent dynamic linking. 17934link_static_flag=$lt_lt_prog_compiler_static_GO 17935 17936# Does compiler simultaneously support -c and -o options? 17937compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO 17938 17939# Whether or not to add -lc for building shared libraries. 17940build_libtool_need_lc=$archive_cmds_need_lc_GO 17941 17942# Whether or not to disallow shared libs when runtime libs are static. 17943allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO 17944 17945# Compiler flag to allow reflexive dlopens. 17946export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO 17947 17948# Compiler flag to generate shared objects directly from archives. 17949whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO 17950 17951# Whether the compiler copes with passing no objects directly. 17952compiler_needs_object=$lt_compiler_needs_object_GO 17953 17954# Create an old-style archive from a shared archive. 17955old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO 17956 17957# Create a temporary old-style archive to link instead of a shared archive. 17958old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO 17959 17960# Commands used to build a shared archive. 17961archive_cmds=$lt_archive_cmds_GO 17962archive_expsym_cmds=$lt_archive_expsym_cmds_GO 17963 17964# Commands used to build a loadable module if different from building 17965# a shared archive. 17966module_cmds=$lt_module_cmds_GO 17967module_expsym_cmds=$lt_module_expsym_cmds_GO 17968 17969# Whether we are building with GNU ld or not. 17970with_gnu_ld=$lt_with_gnu_ld_GO 17971 17972# Flag that allows shared libraries with undefined symbols to be built. 17973allow_undefined_flag=$lt_allow_undefined_flag_GO 17974 17975# Flag that enforces no undefined symbols. 17976no_undefined_flag=$lt_no_undefined_flag_GO 17977 17978# Flag to hardcode \$libdir into a binary during linking. 17979# This must work even if \$libdir does not exist 17980hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO 17981 17982# If ld is used when linking, flag to hardcode \$libdir into a binary 17983# during linking. This must work even if \$libdir does not exist. 17984hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO 17985 17986# Whether we need a single "-rpath" flag with a separated argument. 17987hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO 17988 17989# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17990# DIR into the resulting binary. 17991hardcode_direct=$hardcode_direct_GO 17992 17993# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17994# DIR into the resulting binary and the resulting library dependency is 17995# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17996# library is relocated. 17997hardcode_direct_absolute=$hardcode_direct_absolute_GO 17998 17999# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18000# into the resulting binary. 18001hardcode_minus_L=$hardcode_minus_L_GO 18002 18003# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18004# into the resulting binary. 18005hardcode_shlibpath_var=$hardcode_shlibpath_var_GO 18006 18007# Set to "yes" if building a shared library automatically hardcodes DIR 18008# into the library and all subsequent libraries and executables linked 18009# against it. 18010hardcode_automatic=$hardcode_automatic_GO 18011 18012# Set to yes if linker adds runtime paths of dependent libraries 18013# to runtime path list. 18014inherit_rpath=$inherit_rpath_GO 18015 18016# Whether libtool must link a program against all its dependency libraries. 18017link_all_deplibs=$link_all_deplibs_GO 18018 18019# Fix the shell variable \$srcfile for the compiler. 18020fix_srcfile_path=$lt_fix_srcfile_path_GO 18021 18022# Set to "yes" if exported symbols are required. 18023always_export_symbols=$always_export_symbols_GO 18024 18025# The commands to list exported symbols. 18026export_symbols_cmds=$lt_export_symbols_cmds_GO 18027 18028# Symbols that should not be listed in the preloaded symbols. 18029exclude_expsyms=$lt_exclude_expsyms_GO 18030 18031# Symbols that must always be exported. 18032include_expsyms=$lt_include_expsyms_GO 18033 18034# Commands necessary for linking programs (against libraries) with templates. 18035prelink_cmds=$lt_prelink_cmds_GO 18036 18037# Specify filename containing input files. 18038file_list_spec=$lt_file_list_spec_GO 18039 18040# How to hardcode a shared library path into an executable. 18041hardcode_action=$hardcode_action_GO 18042 18043# ### END LIBTOOL TAG CONFIG: GO 18044_LT_EOF 18045 18046 ;; 18047 "default":C) if test -n "$CONFIG_FILES"; then 18048 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so 18049 # that multilib installs will end up installed in the correct place. 18050 # The testsuite needs it for multilib-aware ABI baseline files. 18051 # To work around this not being passed down from config-ml.in -> 18052 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually 18053 # append it here. Only modify Makefiles that have just been created. 18054 # 18055 # Also, get rid of this simulated-VPATH thing that automake does. 18056 cat > vpsed << \_EOF 18057s!`test -f '$<' || echo '$(srcdir)/'`!! 18058_EOF 18059 for i in $SUBDIRS; do 18060 case $CONFIG_FILES in 18061 *${i}/Makefile*) 18062 #echo "Adding MULTISUBDIR to $i/Makefile" 18063 sed -f vpsed $i/Makefile > tmp 18064 grep '^MULTISUBDIR =' Makefile >> tmp 18065 mv tmp $i/Makefile 18066 ;; 18067 esac 18068 done 18069 rm vpsed 18070 fi 18071 ;; 18072 18073 esac 18074done # for ac_tag 18075 18076 18077as_fn_exit 0 18078_ACEOF 18079ac_clean_files=$ac_clean_files_save 18080 18081test $ac_write_fail = 0 || 18082 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 18083 18084 18085# configure is writing to config.log, and then calls config.status. 18086# config.status does its own redirection, appending to config.log. 18087# Unfortunately, on DOS this fails, as config.log is still kept open 18088# by configure, so config.status won't be able to write to it; its 18089# output is simply discarded. So we exec the FD to /dev/null, 18090# effectively closing config.log, so it can be properly (re)opened and 18091# appended to by config.status. When coming back to configure, we 18092# need to make the FD available again. 18093if test "$no_create" != yes; then 18094 ac_cs_success=: 18095 ac_config_status_args= 18096 test "$silent" = yes && 18097 ac_config_status_args="$ac_config_status_args --quiet" 18098 exec 5>/dev/null 18099 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18100 exec 5>>config.log 18101 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18102 # would make configure fail if this is the last instruction. 18103 $ac_cs_success || as_fn_exit $? 18104fi 18105if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18107$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18108fi 18109 18110