1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for GNU Atomic Library 1.0. 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 172 173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 PATH=/empty FPATH=/empty; export PATH FPATH 178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 180test \$(( 1 + 1 )) = 2 || 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='GNU Atomic Library' 558PACKAGE_TARNAME='libatomic' 559PACKAGE_VERSION='1.0' 560PACKAGE_STRING='GNU Atomic Library 1.0' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='http://www.gnu.org/software/libatomic/' 563 564# Factoring default headers for most tests. 565ac_includes_default="\ 566#include <stdio.h> 567#ifdef HAVE_SYS_TYPES_H 568# include <sys/types.h> 569#endif 570#ifdef HAVE_SYS_STAT_H 571# include <sys/stat.h> 572#endif 573#ifdef STDC_HEADERS 574# include <stdlib.h> 575# include <stddef.h> 576#else 577# ifdef HAVE_STDLIB_H 578# include <stdlib.h> 579# endif 580#endif 581#ifdef HAVE_STRING_H 582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 583# include <memory.h> 584# endif 585# include <string.h> 586#endif 587#ifdef HAVE_STRINGS_H 588# include <strings.h> 589#endif 590#ifdef HAVE_INTTYPES_H 591# include <inttypes.h> 592#endif 593#ifdef HAVE_STDINT_H 594# include <stdint.h> 595#endif 596#ifdef HAVE_UNISTD_H 597# include <unistd.h> 598#endif" 599 600ac_subst_vars='am__EXEEXT_FALSE 601am__EXEEXT_TRUE 602LTLIBOBJS 603LIBOBJS 604ARCH_X86_64_FALSE 605ARCH_X86_64_TRUE 606ARCH_I386_FALSE 607ARCH_I386_TRUE 608ARCH_ARM_LINUX_FALSE 609ARCH_ARM_LINUX_TRUE 610HAVE_IFUNC_FALSE 611HAVE_IFUNC_TRUE 612SIZES 613XLDFLAGS 614XCFLAGS 615config_path 616LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE 617LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE 618LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE 619LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE 620LIBAT_BUILD_VERSIONED_SHLIB_FALSE 621LIBAT_BUILD_VERSIONED_SHLIB_TRUE 622OPT_LDFLAGS 623SECTION_LDFLAGS 624libtool_VERSION 625MAINT 626MAINTAINER_MODE_FALSE 627MAINTAINER_MODE_TRUE 628enable_static 629enable_shared 630CPP 631OTOOL64 632OTOOL 633LIPO 634NMEDIT 635DSYMUTIL 636OBJDUMP 637LN_S 638ac_ct_DUMPBIN 639DUMPBIN 640LD 641FGREP 642EGREP 643GREP 644SED 645LIBTOOL 646PERL 647RANLIB 648NM 649AR 650am__fastdepCCAS_FALSE 651am__fastdepCCAS_TRUE 652CCASDEPMODE 653CCASFLAGS 654CCAS 655am__fastdepCC_FALSE 656am__fastdepCC_TRUE 657CCDEPMODE 658AMDEPBACKSLASH 659AMDEP_FALSE 660AMDEP_TRUE 661am__quote 662am__include 663DEPDIR 664OBJEXT 665EXEEXT 666ac_ct_CC 667CPPFLAGS 668LDFLAGS 669CFLAGS 670CC 671toolexeclibdir 672toolexecdir 673multi_basedir 674am__untar 675am__tar 676AMTAR 677am__leading_dot 678SET_MAKE 679AWK 680mkdir_p 681MKDIR_P 682INSTALL_STRIP_PROGRAM 683STRIP 684install_sh 685MAKEINFO 686AUTOHEADER 687AUTOMAKE 688AUTOCONF 689ACLOCAL 690VERSION 691PACKAGE 692CYGPATH_W 693am__isrc 694INSTALL_DATA 695INSTALL_SCRIPT 696INSTALL_PROGRAM 697target_os 698target_vendor 699target_cpu 700target 701host_os 702host_vendor 703host_cpu 704host 705build_os 706build_vendor 707build_cpu 708build 709GENINSRC_FALSE 710GENINSRC_TRUE 711target_alias 712host_alias 713build_alias 714LIBS 715ECHO_T 716ECHO_N 717ECHO_C 718DEFS 719mandir 720localedir 721libdir 722psdir 723pdfdir 724dvidir 725htmldir 726infodir 727docdir 728oldincludedir 729includedir 730localstatedir 731sharedstatedir 732sysconfdir 733datadir 734datarootdir 735libexecdir 736sbindir 737bindir 738program_transform_name 739prefix 740exec_prefix 741PACKAGE_URL 742PACKAGE_BUGREPORT 743PACKAGE_STRING 744PACKAGE_VERSION 745PACKAGE_TARNAME 746PACKAGE_NAME 747PATH_SEPARATOR 748SHELL' 749ac_subst_files='' 750ac_user_opts=' 751enable_option_checking 752enable_version_specific_runtime_libs 753enable_generated_files_in_srcdir 754enable_multilib 755enable_dependency_tracking 756enable_shared 757enable_static 758with_pic 759enable_fast_install 760with_gnu_ld 761enable_libtool_lock 762enable_maintainer_mode 763enable_symvers 764' 765 ac_precious_vars='build_alias 766host_alias 767target_alias 768CPP 769CPPFLAGS' 770 771 772# Initialize some variables set by options. 773ac_init_help= 774ac_init_version=false 775ac_unrecognized_opts= 776ac_unrecognized_sep= 777# The variables have the same names as the options, with 778# dashes changed to underlines. 779cache_file=/dev/null 780exec_prefix=NONE 781no_create= 782no_recursion= 783prefix=NONE 784program_prefix=NONE 785program_suffix=NONE 786program_transform_name=s,x,x, 787silent= 788site= 789srcdir= 790verbose= 791x_includes=NONE 792x_libraries=NONE 793 794# Installation directory options. 795# These are left unexpanded so users can "make install exec_prefix=/foo" 796# and all the variables that are supposed to be based on exec_prefix 797# by default will actually change. 798# Use braces instead of parens because sh, perl, etc. also accept them. 799# (The list follows the same order as the GNU Coding Standards.) 800bindir='${exec_prefix}/bin' 801sbindir='${exec_prefix}/sbin' 802libexecdir='${exec_prefix}/libexec' 803datarootdir='${prefix}/share' 804datadir='${datarootdir}' 805sysconfdir='${prefix}/etc' 806sharedstatedir='${prefix}/com' 807localstatedir='${prefix}/var' 808includedir='${prefix}/include' 809oldincludedir='/usr/include' 810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811infodir='${datarootdir}/info' 812htmldir='${docdir}' 813dvidir='${docdir}' 814pdfdir='${docdir}' 815psdir='${docdir}' 816libdir='${exec_prefix}/lib' 817localedir='${datarootdir}/locale' 818mandir='${datarootdir}/man' 819 820ac_prev= 821ac_dashdash= 822for ac_option 823do 824 # If the previous option needs an argument, assign it. 825 if test -n "$ac_prev"; then 826 eval $ac_prev=\$ac_option 827 ac_prev= 828 continue 829 fi 830 831 case $ac_option in 832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833 *) ac_optarg=yes ;; 834 esac 835 836 # Accept the important Cygnus configure options, so we can diagnose typos. 837 838 case $ac_dashdash$ac_option in 839 --) 840 ac_dashdash=yes ;; 841 842 -bindir | --bindir | --bindi | --bind | --bin | --bi) 843 ac_prev=bindir ;; 844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 845 bindir=$ac_optarg ;; 846 847 -build | --build | --buil | --bui | --bu) 848 ac_prev=build_alias ;; 849 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 850 build_alias=$ac_optarg ;; 851 852 -cache-file | --cache-file | --cache-fil | --cache-fi \ 853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 854 ac_prev=cache_file ;; 855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 857 cache_file=$ac_optarg ;; 858 859 --config-cache | -C) 860 cache_file=config.cache ;; 861 862 -datadir | --datadir | --datadi | --datad) 863 ac_prev=datadir ;; 864 -datadir=* | --datadir=* | --datadi=* | --datad=*) 865 datadir=$ac_optarg ;; 866 867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 868 | --dataroo | --dataro | --datar) 869 ac_prev=datarootdir ;; 870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 872 datarootdir=$ac_optarg ;; 873 874 -disable-* | --disable-*) 875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 878 as_fn_error "invalid feature name: $ac_useropt" 879 ac_useropt_orig=$ac_useropt 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 881 case $ac_user_opts in 882 *" 883"enable_$ac_useropt" 884"*) ;; 885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 886 ac_unrecognized_sep=', ';; 887 esac 888 eval enable_$ac_useropt=no ;; 889 890 -docdir | --docdir | --docdi | --doc | --do) 891 ac_prev=docdir ;; 892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 893 docdir=$ac_optarg ;; 894 895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 896 ac_prev=dvidir ;; 897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 898 dvidir=$ac_optarg ;; 899 900 -enable-* | --enable-*) 901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 902 # Reject names that are not valid shell variable names. 903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 904 as_fn_error "invalid feature name: $ac_useropt" 905 ac_useropt_orig=$ac_useropt 906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 907 case $ac_user_opts in 908 *" 909"enable_$ac_useropt" 910"*) ;; 911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 912 ac_unrecognized_sep=', ';; 913 esac 914 eval enable_$ac_useropt=\$ac_optarg ;; 915 916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 918 | --exec | --exe | --ex) 919 ac_prev=exec_prefix ;; 920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 922 | --exec=* | --exe=* | --ex=*) 923 exec_prefix=$ac_optarg ;; 924 925 -gas | --gas | --ga | --g) 926 # Obsolete; use --with-gas. 927 with_gas=yes ;; 928 929 -help | --help | --hel | --he | -h) 930 ac_init_help=long ;; 931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 932 ac_init_help=recursive ;; 933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 934 ac_init_help=short ;; 935 936 -host | --host | --hos | --ho) 937 ac_prev=host_alias ;; 938 -host=* | --host=* | --hos=* | --ho=*) 939 host_alias=$ac_optarg ;; 940 941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 942 ac_prev=htmldir ;; 943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 944 | --ht=*) 945 htmldir=$ac_optarg ;; 946 947 -includedir | --includedir | --includedi | --included | --include \ 948 | --includ | --inclu | --incl | --inc) 949 ac_prev=includedir ;; 950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 951 | --includ=* | --inclu=* | --incl=* | --inc=*) 952 includedir=$ac_optarg ;; 953 954 -infodir | --infodir | --infodi | --infod | --info | --inf) 955 ac_prev=infodir ;; 956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 957 infodir=$ac_optarg ;; 958 959 -libdir | --libdir | --libdi | --libd) 960 ac_prev=libdir ;; 961 -libdir=* | --libdir=* | --libdi=* | --libd=*) 962 libdir=$ac_optarg ;; 963 964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 965 | --libexe | --libex | --libe) 966 ac_prev=libexecdir ;; 967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 968 | --libexe=* | --libex=* | --libe=*) 969 libexecdir=$ac_optarg ;; 970 971 -localedir | --localedir | --localedi | --localed | --locale) 972 ac_prev=localedir ;; 973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 974 localedir=$ac_optarg ;; 975 976 -localstatedir | --localstatedir | --localstatedi | --localstated \ 977 | --localstate | --localstat | --localsta | --localst | --locals) 978 ac_prev=localstatedir ;; 979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 981 localstatedir=$ac_optarg ;; 982 983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 984 ac_prev=mandir ;; 985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 986 mandir=$ac_optarg ;; 987 988 -nfp | --nfp | --nf) 989 # Obsolete; use --without-fp. 990 with_fp=no ;; 991 992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 993 | --no-cr | --no-c | -n) 994 no_create=yes ;; 995 996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 998 no_recursion=yes ;; 999 1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1002 | --oldin | --oldi | --old | --ol | --o) 1003 ac_prev=oldincludedir ;; 1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1007 oldincludedir=$ac_optarg ;; 1008 1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1010 ac_prev=prefix ;; 1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1012 prefix=$ac_optarg ;; 1013 1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1015 | --program-pre | --program-pr | --program-p) 1016 ac_prev=program_prefix ;; 1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1019 program_prefix=$ac_optarg ;; 1020 1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1022 | --program-suf | --program-su | --program-s) 1023 ac_prev=program_suffix ;; 1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1026 program_suffix=$ac_optarg ;; 1027 1028 -program-transform-name | --program-transform-name \ 1029 | --program-transform-nam | --program-transform-na \ 1030 | --program-transform-n | --program-transform- \ 1031 | --program-transform | --program-transfor \ 1032 | --program-transfo | --program-transf \ 1033 | --program-trans | --program-tran \ 1034 | --progr-tra | --program-tr | --program-t) 1035 ac_prev=program_transform_name ;; 1036 -program-transform-name=* | --program-transform-name=* \ 1037 | --program-transform-nam=* | --program-transform-na=* \ 1038 | --program-transform-n=* | --program-transform-=* \ 1039 | --program-transform=* | --program-transfor=* \ 1040 | --program-transfo=* | --program-transf=* \ 1041 | --program-trans=* | --program-tran=* \ 1042 | --progr-tra=* | --program-tr=* | --program-t=*) 1043 program_transform_name=$ac_optarg ;; 1044 1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1046 ac_prev=pdfdir ;; 1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1048 pdfdir=$ac_optarg ;; 1049 1050 -psdir | --psdir | --psdi | --psd | --ps) 1051 ac_prev=psdir ;; 1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1053 psdir=$ac_optarg ;; 1054 1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1056 | -silent | --silent | --silen | --sile | --sil) 1057 silent=yes ;; 1058 1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1060 ac_prev=sbindir ;; 1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1062 | --sbi=* | --sb=*) 1063 sbindir=$ac_optarg ;; 1064 1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1067 | --sharedst | --shareds | --shared | --share | --shar \ 1068 | --sha | --sh) 1069 ac_prev=sharedstatedir ;; 1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1073 | --sha=* | --sh=*) 1074 sharedstatedir=$ac_optarg ;; 1075 1076 -site | --site | --sit) 1077 ac_prev=site ;; 1078 -site=* | --site=* | --sit=*) 1079 site=$ac_optarg ;; 1080 1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1082 ac_prev=srcdir ;; 1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1084 srcdir=$ac_optarg ;; 1085 1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1087 | --syscon | --sysco | --sysc | --sys | --sy) 1088 ac_prev=sysconfdir ;; 1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1091 sysconfdir=$ac_optarg ;; 1092 1093 -target | --target | --targe | --targ | --tar | --ta | --t) 1094 ac_prev=target_alias ;; 1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1096 target_alias=$ac_optarg ;; 1097 1098 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1099 verbose=yes ;; 1100 1101 -version | --version | --versio | --versi | --vers | -V) 1102 ac_init_version=: ;; 1103 1104 -with-* | --with-*) 1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1106 # Reject names that are not valid shell variable names. 1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1108 as_fn_error "invalid package name: $ac_useropt" 1109 ac_useropt_orig=$ac_useropt 1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1111 case $ac_user_opts in 1112 *" 1113"with_$ac_useropt" 1114"*) ;; 1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1116 ac_unrecognized_sep=', ';; 1117 esac 1118 eval with_$ac_useropt=\$ac_optarg ;; 1119 1120 -without-* | --without-*) 1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1124 as_fn_error "invalid package name: $ac_useropt" 1125 ac_useropt_orig=$ac_useropt 1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1127 case $ac_user_opts in 1128 *" 1129"with_$ac_useropt" 1130"*) ;; 1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1132 ac_unrecognized_sep=', ';; 1133 esac 1134 eval with_$ac_useropt=no ;; 1135 1136 --x) 1137 # Obsolete; use --with-x. 1138 with_x=yes ;; 1139 1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1141 | --x-incl | --x-inc | --x-in | --x-i) 1142 ac_prev=x_includes ;; 1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1145 x_includes=$ac_optarg ;; 1146 1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1149 ac_prev=x_libraries ;; 1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1152 x_libraries=$ac_optarg ;; 1153 1154 -*) as_fn_error "unrecognized option: \`$ac_option' 1155Try \`$0 --help' for more information." 1156 ;; 1157 1158 *=*) 1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1160 # Reject names that are not valid shell variable names. 1161 case $ac_envvar in #( 1162 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1163 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1164 esac 1165 eval $ac_envvar=\$ac_optarg 1166 export $ac_envvar ;; 1167 1168 *) 1169 # FIXME: should be removed in autoconf 3.0. 1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1174 ;; 1175 1176 esac 1177done 1178 1179if test -n "$ac_prev"; then 1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1181 as_fn_error "missing argument to $ac_option" 1182fi 1183 1184if test -n "$ac_unrecognized_opts"; then 1185 case $enable_option_checking in 1186 no) ;; 1187 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1189 esac 1190fi 1191 1192# Check all directory arguments for consistency. 1193for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1194 datadir sysconfdir sharedstatedir localstatedir includedir \ 1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1196 libdir localedir mandir 1197do 1198 eval ac_val=\$$ac_var 1199 # Remove trailing slashes. 1200 case $ac_val in 1201 */ ) 1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1203 eval $ac_var=\$ac_val;; 1204 esac 1205 # Be sure to have absolute directory names. 1206 case $ac_val in 1207 [\\/$]* | ?:[\\/]* ) continue;; 1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1209 esac 1210 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1211done 1212 1213# There might be people who depend on the old broken behavior: `$host' 1214# used to hold the argument of --host etc. 1215# FIXME: To remove some day. 1216build=$build_alias 1217host=$host_alias 1218target=$target_alias 1219 1220# FIXME: To remove some day. 1221if test "x$host_alias" != x; then 1222 if test "x$build_alias" = x; then 1223 cross_compiling=maybe 1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1225 If a cross compiler is detected then cross compile mode will be used." >&2 1226 elif test "x$build_alias" != "x$host_alias"; then 1227 cross_compiling=yes 1228 fi 1229fi 1230 1231ac_tool_prefix= 1232test -n "$host_alias" && ac_tool_prefix=$host_alias- 1233 1234test "$silent" = yes && exec 6>/dev/null 1235 1236 1237ac_pwd=`pwd` && test -n "$ac_pwd" && 1238ac_ls_di=`ls -di .` && 1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1240 as_fn_error "working directory cannot be determined" 1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1242 as_fn_error "pwd does not report name of working directory" 1243 1244 1245# Find the source files, if location was not specified. 1246if test -z "$srcdir"; then 1247 ac_srcdir_defaulted=yes 1248 # Try the directory containing this script, then the parent directory. 1249 ac_confdir=`$as_dirname -- "$as_myself" || 1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1251 X"$as_myself" : 'X\(//\)[^/]' \| \ 1252 X"$as_myself" : 'X\(//\)$' \| \ 1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1254$as_echo X"$as_myself" | 1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1256 s//\1/ 1257 q 1258 } 1259 /^X\(\/\/\)[^/].*/{ 1260 s//\1/ 1261 q 1262 } 1263 /^X\(\/\/\)$/{ 1264 s//\1/ 1265 q 1266 } 1267 /^X\(\/\).*/{ 1268 s//\1/ 1269 q 1270 } 1271 s/.*/./; q'` 1272 srcdir=$ac_confdir 1273 if test ! -r "$srcdir/$ac_unique_file"; then 1274 srcdir=.. 1275 fi 1276else 1277 ac_srcdir_defaulted=no 1278fi 1279if test ! -r "$srcdir/$ac_unique_file"; then 1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1281 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1282fi 1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1284ac_abs_confdir=`( 1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1286 pwd)` 1287# When building in place, set srcdir=. 1288if test "$ac_abs_confdir" = "$ac_pwd"; then 1289 srcdir=. 1290fi 1291# Remove unnecessary trailing slashes from srcdir. 1292# Double slashes in file names in object file debugging info 1293# mess up M-x gdb in Emacs. 1294case $srcdir in 1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1296esac 1297for ac_var in $ac_precious_vars; do 1298 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1299 eval ac_env_${ac_var}_value=\$${ac_var} 1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1301 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1302done 1303 1304# 1305# Report the --help message. 1306# 1307if test "$ac_init_help" = "long"; then 1308 # Omit some internal or obsolete options to make the list less imposing. 1309 # This message is too long to be a string in the A/UX 3.1 sh. 1310 cat <<_ACEOF 1311\`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems. 1312 1313Usage: $0 [OPTION]... [VAR=VALUE]... 1314 1315To assign environment variables (e.g., CC, CFLAGS...), specify them as 1316VAR=VALUE. See below for descriptions of some of the useful variables. 1317 1318Defaults for the options are specified in brackets. 1319 1320Configuration: 1321 -h, --help display this help and exit 1322 --help=short display options specific to this package 1323 --help=recursive display the short help of all the included packages 1324 -V, --version display version information and exit 1325 -q, --quiet, --silent do not print \`checking...' messages 1326 --cache-file=FILE cache test results in FILE [disabled] 1327 -C, --config-cache alias for \`--cache-file=config.cache' 1328 -n, --no-create do not create output files 1329 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1330 1331Installation directories: 1332 --prefix=PREFIX install architecture-independent files in PREFIX 1333 [$ac_default_prefix] 1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1335 [PREFIX] 1336 1337By default, \`make install' will install all the files in 1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1339an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1340for instance \`--prefix=\$HOME'. 1341 1342For better control, use the options below. 1343 1344Fine tuning of the installation directories: 1345 --bindir=DIR user executables [EPREFIX/bin] 1346 --sbindir=DIR system admin executables [EPREFIX/sbin] 1347 --libexecdir=DIR program executables [EPREFIX/libexec] 1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1351 --libdir=DIR object code libraries [EPREFIX/lib] 1352 --includedir=DIR C header files [PREFIX/include] 1353 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1356 --infodir=DIR info documentation [DATAROOTDIR/info] 1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1358 --mandir=DIR man documentation [DATAROOTDIR/man] 1359 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic] 1360 --htmldir=DIR html documentation [DOCDIR] 1361 --dvidir=DIR dvi documentation [DOCDIR] 1362 --pdfdir=DIR pdf documentation [DOCDIR] 1363 --psdir=DIR ps documentation [DOCDIR] 1364_ACEOF 1365 1366 cat <<\_ACEOF 1367 1368Program names: 1369 --program-prefix=PREFIX prepend PREFIX to installed program names 1370 --program-suffix=SUFFIX append SUFFIX to installed program names 1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1372 1373System types: 1374 --build=BUILD configure for building on BUILD [guessed] 1375 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1376 --target=TARGET configure for building compilers for TARGET [HOST] 1377_ACEOF 1378fi 1379 1380if test -n "$ac_init_help"; then 1381 case $ac_init_help in 1382 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";; 1383 esac 1384 cat <<\_ACEOF 1385 1386Optional Features: 1387 --disable-option-checking ignore unrecognized --enable/--with options 1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1390 --enable-version-specific-runtime-libs 1391 Specify that runtime libraries should be installed 1392 in a compiler-specific directory [default=no] 1393 --enable-generated-files-in-srcdir 1394 put copies of generated files in source dir intended 1395 for creating source tarballs for users without 1396 texinfo bison or flex. [default=no] 1397 --enable-multilib build many library versions (default) 1398 --disable-dependency-tracking speeds up one-time build 1399 --enable-dependency-tracking do not reject slow dependency extractors 1400 --enable-shared[=PKGS] build shared libraries [default=yes] 1401 --enable-static[=PKGS] build static libraries [default=yes] 1402 --enable-fast-install[=PKGS] 1403 optimize for fast installation [default=yes] 1404 --disable-libtool-lock avoid locking (might break parallel builds) 1405 --enable-maintainer-mode enable make rules and dependencies not useful 1406 (and sometimes confusing) to the casual installer 1407 --enable-symvers=STYLE enables symbol versioning of the shared library 1408 [default=yes] 1409 1410Optional Packages: 1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1413 --with-pic try to use only PIC/non-PIC objects [default=use 1414 both] 1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1416 1417Some influential environment variables: 1418 CC C compiler command 1419 CFLAGS C compiler flags 1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1421 nonstandard directory <lib dir> 1422 LIBS libraries to pass to the linker, e.g. -l<library> 1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1424 you have headers in a nonstandard directory <include dir> 1425 CCAS assembler compiler command (defaults to CC) 1426 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1427 CPP C preprocessor 1428 1429Use these variables to override the choices made by `configure' or to help 1430it to find libraries and programs with nonstandard names/locations. 1431 1432Report bugs to the package provider. 1433GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>. 1434General help using GNU software: <http://www.gnu.org/gethelp/>. 1435_ACEOF 1436ac_status=$? 1437fi 1438 1439if test "$ac_init_help" = "recursive"; then 1440 # If there are subdirs, report their specific --help. 1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1442 test -d "$ac_dir" || 1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1444 continue 1445 ac_builddir=. 1446 1447case "$ac_dir" in 1448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1449*) 1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1451 # A ".." for each directory in $ac_dir_suffix. 1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1453 case $ac_top_builddir_sub in 1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1456 esac ;; 1457esac 1458ac_abs_top_builddir=$ac_pwd 1459ac_abs_builddir=$ac_pwd$ac_dir_suffix 1460# for backward compatibility: 1461ac_top_builddir=$ac_top_build_prefix 1462 1463case $srcdir in 1464 .) # We are building in place. 1465 ac_srcdir=. 1466 ac_top_srcdir=$ac_top_builddir_sub 1467 ac_abs_top_srcdir=$ac_pwd ;; 1468 [\\/]* | ?:[\\/]* ) # Absolute name. 1469 ac_srcdir=$srcdir$ac_dir_suffix; 1470 ac_top_srcdir=$srcdir 1471 ac_abs_top_srcdir=$srcdir ;; 1472 *) # Relative name. 1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1474 ac_top_srcdir=$ac_top_build_prefix$srcdir 1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1476esac 1477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1478 1479 cd "$ac_dir" || { ac_status=$?; continue; } 1480 # Check for guested configure. 1481 if test -f "$ac_srcdir/configure.gnu"; then 1482 echo && 1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1484 elif test -f "$ac_srcdir/configure"; then 1485 echo && 1486 $SHELL "$ac_srcdir/configure" --help=recursive 1487 else 1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1489 fi || ac_status=$? 1490 cd "$ac_pwd" || { ac_status=$?; break; } 1491 done 1492fi 1493 1494test -n "$ac_init_help" && exit $ac_status 1495if $ac_init_version; then 1496 cat <<\_ACEOF 1497GNU Atomic Library configure 1.0 1498generated by GNU Autoconf 2.64 1499 1500Copyright (C) 2009 Free Software Foundation, Inc. 1501This configure script is free software; the Free Software Foundation 1502gives unlimited permission to copy, distribute and modify it. 1503_ACEOF 1504 exit 1505fi 1506 1507## ------------------------ ## 1508## Autoconf initialization. ## 1509## ------------------------ ## 1510 1511# ac_fn_c_try_compile LINENO 1512# -------------------------- 1513# Try to compile conftest.$ac_ext, and return whether this succeeded. 1514ac_fn_c_try_compile () 1515{ 1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1517 rm -f conftest.$ac_objext 1518 if { { ac_try="$ac_compile" 1519case "(($ac_try" in 1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1521 *) ac_try_echo=$ac_try;; 1522esac 1523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1524$as_echo "$ac_try_echo"; } >&5 1525 (eval "$ac_compile") 2>conftest.err 1526 ac_status=$? 1527 if test -s conftest.err; then 1528 grep -v '^ *+' conftest.err >conftest.er1 1529 cat conftest.er1 >&5 1530 mv -f conftest.er1 conftest.err 1531 fi 1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1533 test $ac_status = 0; } && { 1534 test -z "$ac_c_werror_flag" || 1535 test ! -s conftest.err 1536 } && test -s conftest.$ac_objext; then : 1537 ac_retval=0 1538else 1539 $as_echo "$as_me: failed program was:" >&5 1540sed 's/^/| /' conftest.$ac_ext >&5 1541 1542 ac_retval=1 1543fi 1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1545 return $ac_retval 1546 1547} # ac_fn_c_try_compile 1548 1549# ac_fn_c_try_link LINENO 1550# ----------------------- 1551# Try to link conftest.$ac_ext, and return whether this succeeded. 1552ac_fn_c_try_link () 1553{ 1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1555 rm -f conftest.$ac_objext conftest$ac_exeext 1556 if { { ac_try="$ac_link" 1557case "(($ac_try" in 1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1559 *) ac_try_echo=$ac_try;; 1560esac 1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1562$as_echo "$ac_try_echo"; } >&5 1563 (eval "$ac_link") 2>conftest.err 1564 ac_status=$? 1565 if test -s conftest.err; then 1566 grep -v '^ *+' conftest.err >conftest.er1 1567 cat conftest.er1 >&5 1568 mv -f conftest.er1 conftest.err 1569 fi 1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1571 test $ac_status = 0; } && { 1572 test -z "$ac_c_werror_flag" || 1573 test ! -s conftest.err 1574 } && test -s conftest$ac_exeext && { 1575 test "$cross_compiling" = yes || 1576 $as_test_x conftest$ac_exeext 1577 }; then : 1578 ac_retval=0 1579else 1580 $as_echo "$as_me: failed program was:" >&5 1581sed 's/^/| /' conftest.$ac_ext >&5 1582 1583 ac_retval=1 1584fi 1585 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1586 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1587 # interfere with the next link command; also delete a directory that is 1588 # left behind by Apple's compiler. We do this before executing the actions. 1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1591 return $ac_retval 1592 1593} # ac_fn_c_try_link 1594 1595# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1596# ------------------------------------------------------- 1597# Tests whether HEADER exists and can be compiled using the include files in 1598# INCLUDES, setting the cache variable VAR accordingly. 1599ac_fn_c_check_header_compile () 1600{ 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1603$as_echo_n "checking for $2... " >&6; } 1604if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1605 $as_echo_n "(cached) " >&6 1606else 1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1608/* end confdefs.h. */ 1609$4 1610#include <$2> 1611_ACEOF 1612if ac_fn_c_try_compile "$LINENO"; then : 1613 eval "$3=yes" 1614else 1615 eval "$3=no" 1616fi 1617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1618fi 1619eval ac_res=\$$3 1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1621$as_echo "$ac_res" >&6; } 1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1623 1624} # ac_fn_c_check_header_compile 1625 1626# ac_fn_c_try_cpp LINENO 1627# ---------------------- 1628# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1629ac_fn_c_try_cpp () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 if { { ac_try="$ac_cpp conftest.$ac_ext" 1633case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636esac 1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638$as_echo "$ac_try_echo"; } >&5 1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1640 ac_status=$? 1641 if test -s conftest.err; then 1642 grep -v '^ *+' conftest.err >conftest.er1 1643 cat conftest.er1 >&5 1644 mv -f conftest.er1 conftest.err 1645 fi 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } >/dev/null && { 1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1649 test ! -s conftest.err 1650 }; then : 1651 ac_retval=0 1652else 1653 $as_echo "$as_me: failed program was:" >&5 1654sed 's/^/| /' conftest.$ac_ext >&5 1655 1656 ac_retval=1 1657fi 1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1659 return $ac_retval 1660 1661} # ac_fn_c_try_cpp 1662 1663# ac_fn_c_try_run LINENO 1664# ---------------------- 1665# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1666# that executables *can* be run. 1667ac_fn_c_try_run () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 if { { ac_try="$ac_link" 1671case "(($ac_try" in 1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673 *) ac_try_echo=$ac_try;; 1674esac 1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676$as_echo "$ac_try_echo"; } >&5 1677 (eval "$ac_link") 2>&5 1678 ac_status=$? 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1681 { { case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686$as_echo "$ac_try_echo"; } >&5 1687 (eval "$ac_try") 2>&5 1688 ac_status=$? 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; }; }; then : 1691 ac_retval=0 1692else 1693 $as_echo "$as_me: program exited with status $ac_status" >&5 1694 $as_echo "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=$ac_status 1698fi 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1701 return $ac_retval 1702 1703} # ac_fn_c_try_run 1704 1705# ac_fn_c_check_func LINENO FUNC VAR 1706# ---------------------------------- 1707# Tests whether FUNC exists, setting the cache variable VAR accordingly 1708ac_fn_c_check_func () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1712$as_echo_n "checking for $2... " >&6; } 1713if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1714 $as_echo_n "(cached) " >&6 1715else 1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1717/* end confdefs.h. */ 1718/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1720#define $2 innocuous_$2 1721 1722/* System header to define __stub macros and hopefully few prototypes, 1723 which can conflict with char $2 (); below. 1724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1725 <limits.h> exists even on freestanding compilers. */ 1726 1727#ifdef __STDC__ 1728# include <limits.h> 1729#else 1730# include <assert.h> 1731#endif 1732 1733#undef $2 1734 1735/* Override any GCC internal prototype to avoid an error. 1736 Use char because int might match the return type of a GCC 1737 builtin and then its argument prototype would still apply. */ 1738#ifdef __cplusplus 1739extern "C" 1740#endif 1741char $2 (); 1742/* The GNU C library defines this for functions which it implements 1743 to always fail with ENOSYS. Some functions are actually named 1744 something starting with __ and the normal name is an alias. */ 1745#if defined __stub_$2 || defined __stub___$2 1746choke me 1747#endif 1748 1749int 1750main () 1751{ 1752return $2 (); 1753 ; 1754 return 0; 1755} 1756_ACEOF 1757if ac_fn_c_try_link "$LINENO"; then : 1758 eval "$3=yes" 1759else 1760 eval "$3=no" 1761fi 1762rm -f core conftest.err conftest.$ac_objext \ 1763 conftest$ac_exeext conftest.$ac_ext 1764fi 1765eval ac_res=\$$3 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1767$as_echo "$ac_res" >&6; } 1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1769 1770} # ac_fn_c_check_func 1771 1772# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1773# ------------------------------------------- 1774# Tests whether TYPE exists after having included INCLUDES, setting cache 1775# variable VAR accordingly. 1776ac_fn_c_check_type () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1780$as_echo_n "checking for $2... " >&6; } 1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1782 $as_echo_n "(cached) " >&6 1783else 1784 eval "$3=no" 1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1786/* end confdefs.h. */ 1787$4 1788int 1789main () 1790{ 1791if (sizeof ($2)) 1792 return 0; 1793 ; 1794 return 0; 1795} 1796_ACEOF 1797if ac_fn_c_try_compile "$LINENO"; then : 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800$4 1801int 1802main () 1803{ 1804if (sizeof (($2))) 1805 return 0; 1806 ; 1807 return 0; 1808} 1809_ACEOF 1810if ac_fn_c_try_compile "$LINENO"; then : 1811 1812else 1813 eval "$3=yes" 1814fi 1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1816fi 1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1818fi 1819eval ac_res=\$$3 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821$as_echo "$ac_res" >&6; } 1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1823 1824} # ac_fn_c_check_type 1825 1826# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1827# -------------------------------------------- 1828# Tries to find the compile-time value of EXPR in a program that includes 1829# INCLUDES, setting VAR accordingly. Returns whether the value could be 1830# computed 1831ac_fn_c_compute_int () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 if test "$cross_compiling" = yes; then 1835 # Depending upon the size, compute the lo and hi bounds. 1836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838$4 1839int 1840main () 1841{ 1842static int test_array [1 - 2 * !(($2) >= 0)]; 1843test_array [0] = 0 1844 1845 ; 1846 return 0; 1847} 1848_ACEOF 1849if ac_fn_c_try_compile "$LINENO"; then : 1850 ac_lo=0 ac_mid=0 1851 while :; do 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854$4 1855int 1856main () 1857{ 1858static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1859test_array [0] = 0 1860 1861 ; 1862 return 0; 1863} 1864_ACEOF 1865if ac_fn_c_try_compile "$LINENO"; then : 1866 ac_hi=$ac_mid; break 1867else 1868 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1869 if test $ac_lo -le $ac_mid; then 1870 ac_lo= ac_hi= 1871 break 1872 fi 1873 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1874fi 1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1876 done 1877else 1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1879/* end confdefs.h. */ 1880$4 1881int 1882main () 1883{ 1884static int test_array [1 - 2 * !(($2) < 0)]; 1885test_array [0] = 0 1886 1887 ; 1888 return 0; 1889} 1890_ACEOF 1891if ac_fn_c_try_compile "$LINENO"; then : 1892 ac_hi=-1 ac_mid=-1 1893 while :; do 1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1895/* end confdefs.h. */ 1896$4 1897int 1898main () 1899{ 1900static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1901test_array [0] = 0 1902 1903 ; 1904 return 0; 1905} 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 ac_lo=$ac_mid; break 1909else 1910 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1911 if test $ac_mid -le $ac_hi; then 1912 ac_lo= ac_hi= 1913 break 1914 fi 1915 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1916fi 1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1918 done 1919else 1920 ac_lo= ac_hi= 1921fi 1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1923fi 1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1925# Binary search between lo and hi bounds. 1926while test "x$ac_lo" != "x$ac_hi"; do 1927 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1929/* end confdefs.h. */ 1930$4 1931int 1932main () 1933{ 1934static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1935test_array [0] = 0 1936 1937 ; 1938 return 0; 1939} 1940_ACEOF 1941if ac_fn_c_try_compile "$LINENO"; then : 1942 ac_hi=$ac_mid 1943else 1944 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1945fi 1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1947done 1948case $ac_lo in #(( 1949?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1950'') ac_retval=1 ;; 1951esac 1952 else 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$4 1956static long int longval () { return $2; } 1957static unsigned long int ulongval () { return $2; } 1958#include <stdio.h> 1959#include <stdlib.h> 1960int 1961main () 1962{ 1963 1964 FILE *f = fopen ("conftest.val", "w"); 1965 if (! f) 1966 return 1; 1967 if (($2) < 0) 1968 { 1969 long int i = longval (); 1970 if (i != ($2)) 1971 return 1; 1972 fprintf (f, "%ld", i); 1973 } 1974 else 1975 { 1976 unsigned long int i = ulongval (); 1977 if (i != ($2)) 1978 return 1; 1979 fprintf (f, "%lu", i); 1980 } 1981 /* Do not output a trailing newline, as this causes \r\n confusion 1982 on some platforms. */ 1983 return ferror (f) || fclose (f) != 0; 1984 1985 ; 1986 return 0; 1987} 1988_ACEOF 1989if ac_fn_c_try_run "$LINENO"; then : 1990 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1991else 1992 ac_retval=1 1993fi 1994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1995 conftest.$ac_objext conftest.beam conftest.$ac_ext 1996rm -f conftest.val 1997 1998 fi 1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2000 return $ac_retval 2001 2002} # ac_fn_c_compute_int 2003 2004# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2005# ------------------------------------------------------- 2006# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2007# the include files in INCLUDES and setting the cache variable VAR 2008# accordingly. 2009ac_fn_c_check_header_mongrel () 2010{ 2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2012 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2014$as_echo_n "checking for $2... " >&6; } 2015if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2016 $as_echo_n "(cached) " >&6 2017fi 2018eval ac_res=\$$3 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2020$as_echo "$ac_res" >&6; } 2021else 2022 # Is the header compilable? 2023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2024$as_echo_n "checking $2 usability... " >&6; } 2025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027$4 2028#include <$2> 2029_ACEOF 2030if ac_fn_c_try_compile "$LINENO"; then : 2031 ac_header_compiler=yes 2032else 2033 ac_header_compiler=no 2034fi 2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2037$as_echo "$ac_header_compiler" >&6; } 2038 2039# Is the header present? 2040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2041$as_echo_n "checking $2 presence... " >&6; } 2042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043/* end confdefs.h. */ 2044#include <$2> 2045_ACEOF 2046if ac_fn_c_try_cpp "$LINENO"; then : 2047 ac_header_preproc=yes 2048else 2049 ac_header_preproc=no 2050fi 2051rm -f conftest.err conftest.$ac_ext 2052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2053$as_echo "$ac_header_preproc" >&6; } 2054 2055# So? What about this header? 2056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2057 yes:no: ) 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2059$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2061$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2062 ;; 2063 no:yes:* ) 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2065$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2067$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2069$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2071$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2073$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2074 ;; 2075esac 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2077$as_echo_n "checking for $2... " >&6; } 2078if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2079 $as_echo_n "(cached) " >&6 2080else 2081 eval "$3=\$ac_header_compiler" 2082fi 2083eval ac_res=\$$3 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2085$as_echo "$ac_res" >&6; } 2086fi 2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2088 2089} # ac_fn_c_check_header_mongrel 2090cat >config.log <<_ACEOF 2091This file contains any messages produced by compilers while 2092running configure, to aid debugging if configure makes a mistake. 2093 2094It was created by GNU Atomic Library $as_me 1.0, which was 2095generated by GNU Autoconf 2.64. Invocation command line was 2096 2097 $ $0 $@ 2098 2099_ACEOF 2100exec 5>>config.log 2101{ 2102cat <<_ASUNAME 2103## --------- ## 2104## Platform. ## 2105## --------- ## 2106 2107hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2108uname -m = `(uname -m) 2>/dev/null || echo unknown` 2109uname -r = `(uname -r) 2>/dev/null || echo unknown` 2110uname -s = `(uname -s) 2>/dev/null || echo unknown` 2111uname -v = `(uname -v) 2>/dev/null || echo unknown` 2112 2113/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2114/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2115 2116/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2117/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2118/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2119/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2120/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2121/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2122/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2123 2124_ASUNAME 2125 2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2127for as_dir in $PATH 2128do 2129 IFS=$as_save_IFS 2130 test -z "$as_dir" && as_dir=. 2131 $as_echo "PATH: $as_dir" 2132 done 2133IFS=$as_save_IFS 2134 2135} >&5 2136 2137cat >&5 <<_ACEOF 2138 2139 2140## ----------- ## 2141## Core tests. ## 2142## ----------- ## 2143 2144_ACEOF 2145 2146 2147# Keep a trace of the command line. 2148# Strip out --no-create and --no-recursion so they do not pile up. 2149# Strip out --silent because we don't want to record it for future runs. 2150# Also quote any args containing shell meta-characters. 2151# Make two passes to allow for proper duplicate-argument suppression. 2152ac_configure_args= 2153ac_configure_args0= 2154ac_configure_args1= 2155ac_must_keep_next=false 2156for ac_pass in 1 2 2157do 2158 for ac_arg 2159 do 2160 case $ac_arg in 2161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2163 | -silent | --silent | --silen | --sile | --sil) 2164 continue ;; 2165 *\'*) 2166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2167 esac 2168 case $ac_pass in 2169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2170 2) 2171 as_fn_append ac_configure_args1 " '$ac_arg'" 2172 if test $ac_must_keep_next = true; then 2173 ac_must_keep_next=false # Got value, back to normal. 2174 else 2175 case $ac_arg in 2176 *=* | --config-cache | -C | -disable-* | --disable-* \ 2177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2179 | -with-* | --with-* | -without-* | --without-* | --x) 2180 case "$ac_configure_args0 " in 2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2182 esac 2183 ;; 2184 -* ) ac_must_keep_next=true ;; 2185 esac 2186 fi 2187 as_fn_append ac_configure_args " '$ac_arg'" 2188 ;; 2189 esac 2190 done 2191done 2192{ ac_configure_args0=; unset ac_configure_args0;} 2193{ ac_configure_args1=; unset ac_configure_args1;} 2194 2195# When interrupted or exit'd, cleanup temporary files, and complete 2196# config.log. We remove comments because anyway the quotes in there 2197# would cause problems or look ugly. 2198# WARNING: Use '\'' to represent an apostrophe within the trap. 2199# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2200trap 'exit_status=$? 2201 # Save into config.log some information that might help in debugging. 2202 { 2203 echo 2204 2205 cat <<\_ASBOX 2206## ---------------- ## 2207## Cache variables. ## 2208## ---------------- ## 2209_ASBOX 2210 echo 2211 # The following way of writing the cache mishandles newlines in values, 2212( 2213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2214 eval ac_val=\$$ac_var 2215 case $ac_val in #( 2216 *${as_nl}*) 2217 case $ac_var in #( 2218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2219$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2220 esac 2221 case $ac_var in #( 2222 _ | IFS | as_nl) ;; #( 2223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2224 *) { eval $ac_var=; unset $ac_var;} ;; 2225 esac ;; 2226 esac 2227 done 2228 (set) 2>&1 | 2229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2230 *${as_nl}ac_space=\ *) 2231 sed -n \ 2232 "s/'\''/'\''\\\\'\'''\''/g; 2233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2234 ;; #( 2235 *) 2236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2237 ;; 2238 esac | 2239 sort 2240) 2241 echo 2242 2243 cat <<\_ASBOX 2244## ----------------- ## 2245## Output variables. ## 2246## ----------------- ## 2247_ASBOX 2248 echo 2249 for ac_var in $ac_subst_vars 2250 do 2251 eval ac_val=\$$ac_var 2252 case $ac_val in 2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2254 esac 2255 $as_echo "$ac_var='\''$ac_val'\''" 2256 done | sort 2257 echo 2258 2259 if test -n "$ac_subst_files"; then 2260 cat <<\_ASBOX 2261## ------------------- ## 2262## File substitutions. ## 2263## ------------------- ## 2264_ASBOX 2265 echo 2266 for ac_var in $ac_subst_files 2267 do 2268 eval ac_val=\$$ac_var 2269 case $ac_val in 2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2271 esac 2272 $as_echo "$ac_var='\''$ac_val'\''" 2273 done | sort 2274 echo 2275 fi 2276 2277 if test -s confdefs.h; then 2278 cat <<\_ASBOX 2279## ----------- ## 2280## confdefs.h. ## 2281## ----------- ## 2282_ASBOX 2283 echo 2284 cat confdefs.h 2285 echo 2286 fi 2287 test "$ac_signal" != 0 && 2288 $as_echo "$as_me: caught signal $ac_signal" 2289 $as_echo "$as_me: exit $exit_status" 2290 } >&5 2291 rm -f core *.core core.conftest.* && 2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2293 exit $exit_status 2294' 0 2295for ac_signal in 1 2 13 15; do 2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2297done 2298ac_signal=0 2299 2300# confdefs.h avoids OS command line length limits that DEFS can exceed. 2301rm -f -r conftest* confdefs.h 2302 2303$as_echo "/* confdefs.h */" > confdefs.h 2304 2305# Predefined preprocessor variables. 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE_NAME "$PACKAGE_NAME" 2309_ACEOF 2310 2311cat >>confdefs.h <<_ACEOF 2312#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2313_ACEOF 2314 2315cat >>confdefs.h <<_ACEOF 2316#define PACKAGE_VERSION "$PACKAGE_VERSION" 2317_ACEOF 2318 2319cat >>confdefs.h <<_ACEOF 2320#define PACKAGE_STRING "$PACKAGE_STRING" 2321_ACEOF 2322 2323cat >>confdefs.h <<_ACEOF 2324#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2325_ACEOF 2326 2327cat >>confdefs.h <<_ACEOF 2328#define PACKAGE_URL "$PACKAGE_URL" 2329_ACEOF 2330 2331 2332# Let the site file select an alternate cache file if it wants to. 2333# Prefer an explicitly selected file to automatically selected ones. 2334ac_site_file1=NONE 2335ac_site_file2=NONE 2336if test -n "$CONFIG_SITE"; then 2337 ac_site_file1=$CONFIG_SITE 2338elif test "x$prefix" != xNONE; then 2339 ac_site_file1=$prefix/share/config.site 2340 ac_site_file2=$prefix/etc/config.site 2341else 2342 ac_site_file1=$ac_default_prefix/share/config.site 2343 ac_site_file2=$ac_default_prefix/etc/config.site 2344fi 2345for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2346do 2347 test "x$ac_site_file" = xNONE && continue 2348 if test -r "$ac_site_file"; then 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2350$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2351 sed 's/^/| /' "$ac_site_file" >&5 2352 . "$ac_site_file" 2353 fi 2354done 2355 2356if test -r "$cache_file"; then 2357 # Some versions of bash will fail to source /dev/null (special 2358 # files actually), so we avoid doing that. 2359 if test -f "$cache_file"; then 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2361$as_echo "$as_me: loading cache $cache_file" >&6;} 2362 case $cache_file in 2363 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2364 *) . "./$cache_file";; 2365 esac 2366 fi 2367else 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2369$as_echo "$as_me: creating cache $cache_file" >&6;} 2370 >$cache_file 2371fi 2372 2373# Check that the precious variables saved in the cache have kept the same 2374# value. 2375ac_cache_corrupted=false 2376for ac_var in $ac_precious_vars; do 2377 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2378 eval ac_new_set=\$ac_env_${ac_var}_set 2379 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2380 eval ac_new_val=\$ac_env_${ac_var}_value 2381 case $ac_old_set,$ac_new_set in 2382 set,) 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2384$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2385 ac_cache_corrupted=: ;; 2386 ,set) 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2388$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2389 ac_cache_corrupted=: ;; 2390 ,);; 2391 *) 2392 if test "x$ac_old_val" != "x$ac_new_val"; then 2393 # differences in whitespace do not lead to failure. 2394 ac_old_val_w=`echo x $ac_old_val` 2395 ac_new_val_w=`echo x $ac_new_val` 2396 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2398$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2399 ac_cache_corrupted=: 2400 else 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2402$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2403 eval $ac_var=\$ac_old_val 2404 fi 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2406$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2408$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2409 fi;; 2410 esac 2411 # Pass precious variables to config.status. 2412 if test "$ac_new_set" = set; then 2413 case $ac_new_val in 2414 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2415 *) ac_arg=$ac_var=$ac_new_val ;; 2416 esac 2417 case " $ac_configure_args " in 2418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2419 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2420 esac 2421 fi 2422done 2423if $ac_cache_corrupted; then 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2427$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2428 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2429fi 2430## -------------------- ## 2431## Main body of script. ## 2432## -------------------- ## 2433 2434ac_ext=c 2435ac_cpp='$CPP $CPPFLAGS' 2436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2438ac_compiler_gnu=$ac_cv_c_compiler_gnu 2439 2440 2441 2442 2443 2444ac_config_headers="$ac_config_headers auto-config.h" 2445 2446 2447# ------- 2448# Options 2449# ------- 2450 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2452$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2453 # Check whether --enable-version-specific-runtime-libs was given. 2454if test "${enable_version_specific_runtime_libs+set}" = set; then : 2455 enableval=$enable_version_specific_runtime_libs; 2456 case "$enableval" in 2457 yes|no) ;; 2458 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; 2459 esac 2460 2461else 2462 enable_version_specific_runtime_libs=no 2463fi 2464 2465 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 2467$as_echo "$enable_version_specific_runtime_libs" >&6; } 2468 2469# We would like our source tree to be readonly. However when releases or 2470# pre-releases are generated, the flex/bison generated files as well as the 2471# various formats of manuals need to be included along with the rest of the 2472# sources. Therefore we have --enable-generated-files-in-srcdir to do 2473# just that. 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 2475$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } 2476 # Check whether --enable-generated-files-in-srcdir was given. 2477if test "${enable_generated_files_in_srcdir+set}" = set; then : 2478 enableval=$enable_generated_files_in_srcdir; 2479 case "$enableval" in 2480 yes|no) ;; 2481 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; 2482 esac 2483 2484else 2485 enable_generated_files_in_srcdir=no 2486fi 2487 2488 2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 2490$as_echo "$enable_generated_files_in_srcdir" >&6; } 2491 if test "$enable_generated_files_in_srcdir" = yes; then 2492 GENINSRC_TRUE= 2493 GENINSRC_FALSE='#' 2494else 2495 GENINSRC_TRUE='#' 2496 GENINSRC_FALSE= 2497fi 2498 2499 2500 2501# ------- 2502 2503# Gets build, host, target, *_vendor, *_cpu, *_os, etc. 2504# 2505# You will slowly go insane if you do not grok the following fact: when 2506# building this library, the top-level /target/ becomes the library's /host/. 2507# 2508# configure then causes --target to default to --host, exactly like any 2509# other package using autoconf. Therefore, 'target' and 'host' will 2510# always be the same. This makes sense both for native and cross compilers 2511# just think about it for a little while. :-) 2512# 2513# Also, if this library is being configured as part of a cross compiler, the 2514# top-level configure script will pass the "real" host as $with_cross_host. 2515# 2516# Do not delete or change the following two lines. For why, see 2517# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2518ac_aux_dir= 2519for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2520 for ac_t in install-sh install.sh shtool; do 2521 if test -f "$ac_dir/$ac_t"; then 2522 ac_aux_dir=$ac_dir 2523 ac_install_sh="$ac_aux_dir/$ac_t -c" 2524 break 2 2525 fi 2526 done 2527done 2528if test -z "$ac_aux_dir"; then 2529 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2530fi 2531 2532# These three variables are undocumented and unsupported, 2533# and are intended to be withdrawn in a future Autoconf release. 2534# They can cause serious problems if a builder's source tree is in a directory 2535# whose full name contains unusual characters. 2536ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2537ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2538ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2539 2540 2541# Make sure we can run config.sub. 2542$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2543 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2544 2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2546$as_echo_n "checking build system type... " >&6; } 2547if test "${ac_cv_build+set}" = set; then : 2548 $as_echo_n "(cached) " >&6 2549else 2550 ac_build_alias=$build_alias 2551test "x$ac_build_alias" = x && 2552 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2553test "x$ac_build_alias" = x && 2554 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2555ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2556 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2557 2558fi 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2560$as_echo "$ac_cv_build" >&6; } 2561case $ac_cv_build in 2562*-*-*) ;; 2563*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2564esac 2565build=$ac_cv_build 2566ac_save_IFS=$IFS; IFS='-' 2567set x $ac_cv_build 2568shift 2569build_cpu=$1 2570build_vendor=$2 2571shift; shift 2572# Remember, the first character of IFS is used to create $*, 2573# except with old shells: 2574build_os=$* 2575IFS=$ac_save_IFS 2576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2577 2578 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2580$as_echo_n "checking host system type... " >&6; } 2581if test "${ac_cv_host+set}" = set; then : 2582 $as_echo_n "(cached) " >&6 2583else 2584 if test "x$host_alias" = x; then 2585 ac_cv_host=$ac_cv_build 2586else 2587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2588 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2589fi 2590 2591fi 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2593$as_echo "$ac_cv_host" >&6; } 2594case $ac_cv_host in 2595*-*-*) ;; 2596*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2597esac 2598host=$ac_cv_host 2599ac_save_IFS=$IFS; IFS='-' 2600set x $ac_cv_host 2601shift 2602host_cpu=$1 2603host_vendor=$2 2604shift; shift 2605# Remember, the first character of IFS is used to create $*, 2606# except with old shells: 2607host_os=$* 2608IFS=$ac_save_IFS 2609case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2610 2611 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2613$as_echo_n "checking target system type... " >&6; } 2614if test "${ac_cv_target+set}" = set; then : 2615 $as_echo_n "(cached) " >&6 2616else 2617 if test "x$target_alias" = x; then 2618 ac_cv_target=$ac_cv_host 2619else 2620 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2621 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2622fi 2623 2624fi 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2626$as_echo "$ac_cv_target" >&6; } 2627case $ac_cv_target in 2628*-*-*) ;; 2629*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2630esac 2631target=$ac_cv_target 2632ac_save_IFS=$IFS; IFS='-' 2633set x $ac_cv_target 2634shift 2635target_cpu=$1 2636target_vendor=$2 2637shift; shift 2638# Remember, the first character of IFS is used to create $*, 2639# except with old shells: 2640target_os=$* 2641IFS=$ac_save_IFS 2642case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2643 2644 2645# The aliases save the names the user supplied, while $host etc. 2646# will get canonicalized. 2647test -n "$target_alias" && 2648 test "$program_prefix$program_suffix$program_transform_name" = \ 2649 NONENONEs,x,x, && 2650 program_prefix=${target_alias}- 2651 2652target_alias=${target_alias-$host_alias} 2653 2654# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the 2655# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. 2656# 1.9.0: minimum required version 2657# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch 2658# of other PACKAGE_* variables will, however, and there's nothing 2659# we can do about that; they come from AC_INIT). 2660# no-dist: we don't want 'dist' and related rules. 2661# foreign: we don't follow the normal rules for GNU packages (no COPYING 2662# file in the top srcdir, etc, etc), so stop complaining. 2663# -Wall: turns on all automake warnings... 2664# -Wno-portability: ...except this one, since GNU make is required. 2665# -Wno-override: ... and this one, since we do want this in testsuite. 2666am__api_version='1.11' 2667 2668# Find a good install program. We prefer a C program (faster), 2669# so one script is as good as another. But avoid the broken or 2670# incompatible versions: 2671# SysV /etc/install, /usr/sbin/install 2672# SunOS /usr/etc/install 2673# IRIX /sbin/install 2674# AIX /bin/install 2675# AmigaOS /C/install, which installs bootblocks on floppy discs 2676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2677# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2679# OS/2's system install, which has a completely different semantic 2680# ./install, which can be erroneously created by make from ./install.sh. 2681# Reject install programs that cannot install multiple files. 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2683$as_echo_n "checking for a BSD-compatible install... " >&6; } 2684if test -z "$INSTALL"; then 2685if test "${ac_cv_path_install+set}" = set; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 # Account for people who put trailing slashes in PATH elements. 2694case $as_dir/ in #(( 2695 ./ | .// | /[cC]/* | \ 2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2698 /usr/ucb/* ) ;; 2699 *) 2700 # OSF1 and SCO ODT 3.0 have their own names for install. 2701 # Don't use installbsd from OSF since it installs stuff as root 2702 # by default. 2703 for ac_prog in ginstall scoinst install; do 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2706 if test $ac_prog = install && 2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2708 # AIX install. It has an incompatible calling convention. 2709 : 2710 elif test $ac_prog = install && 2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2712 # program-specific install script used by HP pwplus--don't use. 2713 : 2714 else 2715 rm -rf conftest.one conftest.two conftest.dir 2716 echo one > conftest.one 2717 echo two > conftest.two 2718 mkdir conftest.dir 2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2720 test -s conftest.one && test -s conftest.two && 2721 test -s conftest.dir/conftest.one && 2722 test -s conftest.dir/conftest.two 2723 then 2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2725 break 3 2726 fi 2727 fi 2728 fi 2729 done 2730 done 2731 ;; 2732esac 2733 2734 done 2735IFS=$as_save_IFS 2736 2737rm -rf conftest.one conftest.two conftest.dir 2738 2739fi 2740 if test "${ac_cv_path_install+set}" = set; then 2741 INSTALL=$ac_cv_path_install 2742 else 2743 # As a last resort, use the slow shell script. Don't cache a 2744 # value for INSTALL within a source directory, because that will 2745 # break other packages using the cache if that directory is 2746 # removed, or if the value is a relative name. 2747 INSTALL=$ac_install_sh 2748 fi 2749fi 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2751$as_echo "$INSTALL" >&6; } 2752 2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2754# It thinks the first close brace ends the variable substitution. 2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2756 2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2758 2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2760 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2762$as_echo_n "checking whether build environment is sane... " >&6; } 2763# Just in case 2764sleep 1 2765echo timestamp > conftest.file 2766# Reject unsafe characters in $srcdir or the absolute working directory 2767# name. Accept space and tab only in the latter. 2768am_lf=' 2769' 2770case `pwd` in 2771 *[\\\"\#\$\&\'\`$am_lf]*) 2772 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2773esac 2774case $srcdir in 2775 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2776 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2777esac 2778 2779# Do `set' in a subshell so we don't clobber the current shell's 2780# arguments. Must try -L first in case configure is actually a 2781# symlink; some systems play weird games with the mod time of symlinks 2782# (eg FreeBSD returns the mod time of the symlink's containing 2783# directory). 2784if ( 2785 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2786 if test "$*" = "X"; then 2787 # -L didn't work. 2788 set X `ls -t "$srcdir/configure" conftest.file` 2789 fi 2790 rm -f conftest.file 2791 if test "$*" != "X $srcdir/configure conftest.file" \ 2792 && test "$*" != "X conftest.file $srcdir/configure"; then 2793 2794 # If neither matched, then we have a broken ls. This can happen 2795 # if, for instance, CONFIG_SHELL is bash and it inherits a 2796 # broken ls alias from the environment. This has actually 2797 # happened. Such a system could not be considered "sane". 2798 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2799alias in your environment" "$LINENO" 5 2800 fi 2801 2802 test "$2" = conftest.file 2803 ) 2804then 2805 # Ok. 2806 : 2807else 2808 as_fn_error "newly created file is older than distributed files! 2809Check your system clock" "$LINENO" 5 2810fi 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2812$as_echo "yes" >&6; } 2813test "$program_prefix" != NONE && 2814 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2815# Use a double $ so make ignores it. 2816test "$program_suffix" != NONE && 2817 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2818# Double any \ or $. 2819# By default was `s,x,x', remove it if useless. 2820ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2821program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2822 2823# expand $ac_aux_dir to an absolute path 2824am_aux_dir=`cd $ac_aux_dir && pwd` 2825 2826if test x"${MISSING+set}" != xset; then 2827 case $am_aux_dir in 2828 *\ * | *\ *) 2829 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2830 *) 2831 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2832 esac 2833fi 2834# Use eval to expand $SHELL 2835if eval "$MISSING --run true"; then 2836 am_missing_run="$MISSING --run " 2837else 2838 am_missing_run= 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2840$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2841fi 2842 2843if test x"${install_sh}" != xset; then 2844 case $am_aux_dir in 2845 *\ * | *\ *) 2846 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2847 *) 2848 install_sh="\${SHELL} $am_aux_dir/install-sh" 2849 esac 2850fi 2851 2852# Installed binaries are usually stripped using `strip' when the user 2853# run `make install-strip'. However `strip' might not be the right 2854# tool to use in cross-compilation environments, therefore Automake 2855# will honor the `STRIP' environment variable to overrule this program. 2856if test "$cross_compiling" != no; then 2857 if test -n "$ac_tool_prefix"; then 2858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2859set dummy ${ac_tool_prefix}strip; ac_word=$2 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2861$as_echo_n "checking for $ac_word... " >&6; } 2862if test "${ac_cv_prog_STRIP+set}" = set; then : 2863 $as_echo_n "(cached) " >&6 2864else 2865 if test -n "$STRIP"; then 2866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2867else 2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869for as_dir in $PATH 2870do 2871 IFS=$as_save_IFS 2872 test -z "$as_dir" && as_dir=. 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2875 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2877 break 2 2878 fi 2879done 2880 done 2881IFS=$as_save_IFS 2882 2883fi 2884fi 2885STRIP=$ac_cv_prog_STRIP 2886if test -n "$STRIP"; then 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2888$as_echo "$STRIP" >&6; } 2889else 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891$as_echo "no" >&6; } 2892fi 2893 2894 2895fi 2896if test -z "$ac_cv_prog_STRIP"; then 2897 ac_ct_STRIP=$STRIP 2898 # Extract the first word of "strip", so it can be a program name with args. 2899set dummy strip; ac_word=$2 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901$as_echo_n "checking for $ac_word... " >&6; } 2902if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 if test -n "$ac_ct_STRIP"; then 2906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2907else 2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2915 ac_cv_prog_ac_ct_STRIP="strip" 2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919done 2920 done 2921IFS=$as_save_IFS 2922 2923fi 2924fi 2925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2926if test -n "$ac_ct_STRIP"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2928$as_echo "$ac_ct_STRIP" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 if test "x$ac_ct_STRIP" = x; then 2935 STRIP=":" 2936 else 2937 case $cross_compiling:$ac_tool_warned in 2938yes:) 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2941ac_tool_warned=yes ;; 2942esac 2943 STRIP=$ac_ct_STRIP 2944 fi 2945else 2946 STRIP="$ac_cv_prog_STRIP" 2947fi 2948 2949fi 2950INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2951 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2953$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2954if test -z "$MKDIR_P"; then 2955 if test "${ac_cv_path_mkdir+set}" = set; then : 2956 $as_echo_n "(cached) " >&6 2957else 2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2960do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 for ac_prog in mkdir gmkdir; do 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2966 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2967 'mkdir (GNU coreutils) '* | \ 2968 'mkdir (coreutils) '* | \ 2969 'mkdir (fileutils) '4.1*) 2970 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2971 break 3;; 2972 esac 2973 done 2974 done 2975 done 2976IFS=$as_save_IFS 2977 2978fi 2979 2980 if test "${ac_cv_path_mkdir+set}" = set; then 2981 MKDIR_P="$ac_cv_path_mkdir -p" 2982 else 2983 # As a last resort, use the slow shell script. Don't cache a 2984 # value for MKDIR_P within a source directory, because that will 2985 # break other packages using the cache if that directory is 2986 # removed, or if the value is a relative name. 2987 test -d ./--version && rmdir ./--version 2988 MKDIR_P="$ac_install_sh -d" 2989 fi 2990fi 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2992$as_echo "$MKDIR_P" >&6; } 2993 2994mkdir_p="$MKDIR_P" 2995case $mkdir_p in 2996 [\\/$]* | ?:[\\/]*) ;; 2997 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2998esac 2999 3000for ac_prog in gawk mawk nawk awk 3001do 3002 # Extract the first word of "$ac_prog", so it can be a program name with args. 3003set dummy $ac_prog; ac_word=$2 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3005$as_echo_n "checking for $ac_word... " >&6; } 3006if test "${ac_cv_prog_AWK+set}" = set; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 if test -n "$AWK"; then 3010 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3011else 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3019 ac_cv_prog_AWK="$ac_prog" 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3021 break 2 3022 fi 3023done 3024 done 3025IFS=$as_save_IFS 3026 3027fi 3028fi 3029AWK=$ac_cv_prog_AWK 3030if test -n "$AWK"; then 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3032$as_echo "$AWK" >&6; } 3033else 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3035$as_echo "no" >&6; } 3036fi 3037 3038 3039 test -n "$AWK" && break 3040done 3041 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3043$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3044set x ${MAKE-make} 3045ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3046if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 cat >conftest.make <<\_ACEOF 3050SHELL = /bin/sh 3051all: 3052 @echo '@@@%%%=$(MAKE)=@@@%%%' 3053_ACEOF 3054# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3055case `${MAKE-make} -f conftest.make 2>/dev/null` in 3056 *@@@%%%=?*=@@@%%%*) 3057 eval ac_cv_prog_make_${ac_make}_set=yes;; 3058 *) 3059 eval ac_cv_prog_make_${ac_make}_set=no;; 3060esac 3061rm -f conftest.make 3062fi 3063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3065$as_echo "yes" >&6; } 3066 SET_MAKE= 3067else 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3069$as_echo "no" >&6; } 3070 SET_MAKE="MAKE=${MAKE-make}" 3071fi 3072 3073rm -rf .tst 2>/dev/null 3074mkdir .tst 2>/dev/null 3075if test -d .tst; then 3076 am__leading_dot=. 3077else 3078 am__leading_dot=_ 3079fi 3080rmdir .tst 2>/dev/null 3081 3082if test "`cd $srcdir && pwd`" != "`pwd`"; then 3083 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3084 # is not polluted with repeated "-I." 3085 am__isrc=' -I$(srcdir)' 3086 # test to see if srcdir already configured 3087 if test -f $srcdir/config.status; then 3088 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3089 fi 3090fi 3091 3092# test whether we have cygpath 3093if test -z "$CYGPATH_W"; then 3094 if (cygpath --version) >/dev/null 2>/dev/null; then 3095 CYGPATH_W='cygpath -w' 3096 else 3097 CYGPATH_W=echo 3098 fi 3099fi 3100 3101 3102# Define the identity of the package. 3103 PACKAGE='libatomic' 3104 VERSION='1.0' 3105 3106 3107cat >>confdefs.h <<_ACEOF 3108#define PACKAGE "$PACKAGE" 3109_ACEOF 3110 3111 3112cat >>confdefs.h <<_ACEOF 3113#define VERSION "$VERSION" 3114_ACEOF 3115 3116# Some tools Automake needs. 3117 3118ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3119 3120 3121AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3122 3123 3124AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3125 3126 3127AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3128 3129 3130MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3131 3132# We need awk for the "check" target. The system "awk" is bad on 3133# some platforms. 3134# Always define AMTAR for backward compatibility. 3135 3136AMTAR=${AMTAR-"${am_missing_run}tar"} 3137 3138am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3139 3140 3141 3142 3143 3144# Default to --enable-multilib 3145# Check whether --enable-multilib was given. 3146if test "${enable_multilib+set}" = set; then : 3147 enableval=$enable_multilib; case "$enableval" in 3148 yes) multilib=yes ;; 3149 no) multilib=no ;; 3150 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 3151 esac 3152else 3153 multilib=yes 3154fi 3155 3156 3157# We may get other options which we leave undocumented: 3158# --with-target-subdir, --with-multisrctop, --with-multisubdir 3159# See config-ml.in if you want the gory details. 3160 3161if test "$srcdir" = "."; then 3162 if test "$with_target_subdir" != "."; then 3163 multi_basedir="$srcdir/$with_multisrctop../.." 3164 else 3165 multi_basedir="$srcdir/$with_multisrctop.." 3166 fi 3167else 3168 multi_basedir="$srcdir/.." 3169fi 3170 3171 3172# Even if the default multilib is not a cross compilation, 3173# it may be that some of the other multilibs are. 3174if test $cross_compiling = no && test $multilib = yes \ 3175 && test "x${with_multisubdir}" != x ; then 3176 cross_compiling=maybe 3177fi 3178 3179ac_config_commands="$ac_config_commands default-1" 3180 3181 3182# Calculate toolexeclibdir 3183# Also toolexecdir, though it's only used in toolexeclibdir 3184case ${enable_version_specific_runtime_libs} in 3185 yes) 3186 # Need the gcc compiler version to know where to install libraries 3187 # and header files if --enable-version-specific-runtime-libs option 3188 # is selected. 3189 toolexecdir='$(libdir)/gcc/$(target_alias)' 3190 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 3191 ;; 3192 no) 3193 if test -n "$with_cross_host" && 3194 test x"$with_cross_host" != x"no"; then 3195 # Install a library built with a cross compiler in tooldir, not libdir. 3196 toolexecdir='$(exec_prefix)/$(target_alias)' 3197 toolexeclibdir='$(toolexecdir)/lib' 3198 else 3199 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 3200 toolexeclibdir='$(libdir)' 3201 fi 3202 multi_os_directory=`$CC -print-multi-os-directory` 3203 case $multi_os_directory in 3204 .) ;; # Avoid trailing /. 3205 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 3206 esac 3207 ;; 3208esac 3209 3210 3211 3212# Check the compiler. 3213# The same as in boehm-gc and libstdc++. Have to borrow it from there. 3214# We must force CC to /not/ be precious variables; otherwise 3215# the wrong, non-multilib-adjusted value will be used in multilibs. 3216# As a side effect, we have to subst CFLAGS ourselves. 3217 3218 3219 3220ac_ext=c 3221ac_cpp='$CPP $CPPFLAGS' 3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3224ac_compiler_gnu=$ac_cv_c_compiler_gnu 3225if test -n "$ac_tool_prefix"; then 3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3227set dummy ${ac_tool_prefix}gcc; ac_word=$2 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3229$as_echo_n "checking for $ac_word... " >&6; } 3230if test "${ac_cv_prog_CC+set}" = set; then : 3231 $as_echo_n "(cached) " >&6 3232else 3233 if test -n "$CC"; then 3234 ac_cv_prog_CC="$CC" # Let the user override the test. 3235else 3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3237for as_dir in $PATH 3238do 3239 IFS=$as_save_IFS 3240 test -z "$as_dir" && as_dir=. 3241 for ac_exec_ext in '' $ac_executable_extensions; do 3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3243 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3245 break 2 3246 fi 3247done 3248 done 3249IFS=$as_save_IFS 3250 3251fi 3252fi 3253CC=$ac_cv_prog_CC 3254if test -n "$CC"; then 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3256$as_echo "$CC" >&6; } 3257else 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3259$as_echo "no" >&6; } 3260fi 3261 3262 3263fi 3264if test -z "$ac_cv_prog_CC"; then 3265 ac_ct_CC=$CC 3266 # Extract the first word of "gcc", so it can be a program name with args. 3267set dummy gcc; ac_word=$2 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3269$as_echo_n "checking for $ac_word... " >&6; } 3270if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3271 $as_echo_n "(cached) " >&6 3272else 3273 if test -n "$ac_ct_CC"; then 3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3275else 3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3277for as_dir in $PATH 3278do 3279 IFS=$as_save_IFS 3280 test -z "$as_dir" && as_dir=. 3281 for ac_exec_ext in '' $ac_executable_extensions; do 3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3283 ac_cv_prog_ac_ct_CC="gcc" 3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3285 break 2 3286 fi 3287done 3288 done 3289IFS=$as_save_IFS 3290 3291fi 3292fi 3293ac_ct_CC=$ac_cv_prog_ac_ct_CC 3294if test -n "$ac_ct_CC"; then 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3296$as_echo "$ac_ct_CC" >&6; } 3297else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299$as_echo "no" >&6; } 3300fi 3301 3302 if test "x$ac_ct_CC" = x; then 3303 CC="" 3304 else 3305 case $cross_compiling:$ac_tool_warned in 3306yes:) 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3309ac_tool_warned=yes ;; 3310esac 3311 CC=$ac_ct_CC 3312 fi 3313else 3314 CC="$ac_cv_prog_CC" 3315fi 3316 3317if test -z "$CC"; then 3318 if test -n "$ac_tool_prefix"; then 3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3320set dummy ${ac_tool_prefix}cc; ac_word=$2 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3322$as_echo_n "checking for $ac_word... " >&6; } 3323if test "${ac_cv_prog_CC+set}" = set; then : 3324 $as_echo_n "(cached) " >&6 3325else 3326 if test -n "$CC"; then 3327 ac_cv_prog_CC="$CC" # Let the user override the test. 3328else 3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3330for as_dir in $PATH 3331do 3332 IFS=$as_save_IFS 3333 test -z "$as_dir" && as_dir=. 3334 for ac_exec_ext in '' $ac_executable_extensions; do 3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3336 ac_cv_prog_CC="${ac_tool_prefix}cc" 3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3338 break 2 3339 fi 3340done 3341 done 3342IFS=$as_save_IFS 3343 3344fi 3345fi 3346CC=$ac_cv_prog_CC 3347if test -n "$CC"; then 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3349$as_echo "$CC" >&6; } 3350else 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3352$as_echo "no" >&6; } 3353fi 3354 3355 3356 fi 3357fi 3358if test -z "$CC"; then 3359 # Extract the first word of "cc", so it can be a program name with args. 3360set dummy cc; ac_word=$2 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3362$as_echo_n "checking for $ac_word... " >&6; } 3363if test "${ac_cv_prog_CC+set}" = set; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 if test -n "$CC"; then 3367 ac_cv_prog_CC="$CC" # Let the user override the test. 3368else 3369 ac_prog_rejected=no 3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3371for as_dir in $PATH 3372do 3373 IFS=$as_save_IFS 3374 test -z "$as_dir" && as_dir=. 3375 for ac_exec_ext in '' $ac_executable_extensions; do 3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3378 ac_prog_rejected=yes 3379 continue 3380 fi 3381 ac_cv_prog_CC="cc" 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3383 break 2 3384 fi 3385done 3386 done 3387IFS=$as_save_IFS 3388 3389if test $ac_prog_rejected = yes; then 3390 # We found a bogon in the path, so make sure we never use it. 3391 set dummy $ac_cv_prog_CC 3392 shift 3393 if test $# != 0; then 3394 # We chose a different compiler from the bogus one. 3395 # However, it has the same basename, so the bogon will be chosen 3396 # first if we set CC to just the basename; use the full file name. 3397 shift 3398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3399 fi 3400fi 3401fi 3402fi 3403CC=$ac_cv_prog_CC 3404if test -n "$CC"; then 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3406$as_echo "$CC" >&6; } 3407else 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3409$as_echo "no" >&6; } 3410fi 3411 3412 3413fi 3414if test -z "$CC"; then 3415 if test -n "$ac_tool_prefix"; then 3416 for ac_prog in cl.exe 3417 do 3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3419set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3421$as_echo_n "checking for $ac_word... " >&6; } 3422if test "${ac_cv_prog_CC+set}" = set; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 if test -n "$CC"; then 3426 ac_cv_prog_CC="$CC" # Let the user override the test. 3427else 3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3429for as_dir in $PATH 3430do 3431 IFS=$as_save_IFS 3432 test -z "$as_dir" && as_dir=. 3433 for ac_exec_ext in '' $ac_executable_extensions; do 3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3437 break 2 3438 fi 3439done 3440 done 3441IFS=$as_save_IFS 3442 3443fi 3444fi 3445CC=$ac_cv_prog_CC 3446if test -n "$CC"; then 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3448$as_echo "$CC" >&6; } 3449else 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3451$as_echo "no" >&6; } 3452fi 3453 3454 3455 test -n "$CC" && break 3456 done 3457fi 3458if test -z "$CC"; then 3459 ac_ct_CC=$CC 3460 for ac_prog in cl.exe 3461do 3462 # Extract the first word of "$ac_prog", so it can be a program name with args. 3463set dummy $ac_prog; ac_word=$2 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3465$as_echo_n "checking for $ac_word... " >&6; } 3466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3467 $as_echo_n "(cached) " >&6 3468else 3469 if test -n "$ac_ct_CC"; then 3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3471else 3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473for as_dir in $PATH 3474do 3475 IFS=$as_save_IFS 3476 test -z "$as_dir" && as_dir=. 3477 for ac_exec_ext in '' $ac_executable_extensions; do 3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3479 ac_cv_prog_ac_ct_CC="$ac_prog" 3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3481 break 2 3482 fi 3483done 3484 done 3485IFS=$as_save_IFS 3486 3487fi 3488fi 3489ac_ct_CC=$ac_cv_prog_ac_ct_CC 3490if test -n "$ac_ct_CC"; then 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3492$as_echo "$ac_ct_CC" >&6; } 3493else 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3495$as_echo "no" >&6; } 3496fi 3497 3498 3499 test -n "$ac_ct_CC" && break 3500done 3501 3502 if test "x$ac_ct_CC" = x; then 3503 CC="" 3504 else 3505 case $cross_compiling:$ac_tool_warned in 3506yes:) 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3509ac_tool_warned=yes ;; 3510esac 3511 CC=$ac_ct_CC 3512 fi 3513fi 3514 3515fi 3516 3517 3518test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3520as_fn_error "no acceptable C compiler found in \$PATH 3521See \`config.log' for more details." "$LINENO" 5; } 3522 3523# Provide some information about the compiler. 3524$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3525set X $ac_compile 3526ac_compiler=$2 3527for ac_option in --version -v -V -qversion; do 3528 { { ac_try="$ac_compiler $ac_option >&5" 3529case "(($ac_try" in 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3531 *) ac_try_echo=$ac_try;; 3532esac 3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3534$as_echo "$ac_try_echo"; } >&5 3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3536 ac_status=$? 3537 if test -s conftest.err; then 3538 sed '10a\ 3539... rest of stderr output deleted ... 3540 10q' conftest.err >conftest.er1 3541 cat conftest.er1 >&5 3542 rm -f conftest.er1 conftest.err 3543 fi 3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3545 test $ac_status = 0; } 3546done 3547 3548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550 3551int 3552main () 3553{ 3554 3555 ; 3556 return 0; 3557} 3558_ACEOF 3559ac_clean_files_save=$ac_clean_files 3560ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3561# Try to create an executable without -o first, disregard a.out. 3562# It will help us diagnose broken compilers, and finding out an intuition 3563# of exeext. 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3565$as_echo_n "checking for C compiler default output file name... " >&6; } 3566ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3567 3568# The possible output files: 3569ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3570 3571ac_rmfiles= 3572for ac_file in $ac_files 3573do 3574 case $ac_file in 3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3577 esac 3578done 3579rm -f $ac_rmfiles 3580 3581if { { ac_try="$ac_link_default" 3582case "(($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_link_default") 2>&5 3589 ac_status=$? 3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3591 test $ac_status = 0; }; then : 3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3593# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3594# in a Makefile. We should not override ac_cv_exeext if it was cached, 3595# so that the user can short-circuit this test for compilers unknown to 3596# Autoconf. 3597for ac_file in $ac_files '' 3598do 3599 test -f "$ac_file" || continue 3600 case $ac_file in 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3602 ;; 3603 [ab].out ) 3604 # We found the default executable, but exeext='' is most 3605 # certainly right. 3606 break;; 3607 *.* ) 3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3609 then :; else 3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3611 fi 3612 # We set ac_cv_exeext here because the later test for it is not 3613 # safe: cross compilers may not add the suffix if given an `-o' 3614 # argument, so we may need to know it at that point already. 3615 # Even if this section looks crufty: it has the advantage of 3616 # actually working. 3617 break;; 3618 * ) 3619 break;; 3620 esac 3621done 3622test "$ac_cv_exeext" = no && ac_cv_exeext= 3623 3624else 3625 ac_file='' 3626fi 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3628$as_echo "$ac_file" >&6; } 3629if test -z "$ac_file"; then : 3630 $as_echo "$as_me: failed program was:" >&5 3631sed 's/^/| /' conftest.$ac_ext >&5 3632 3633{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3635{ as_fn_set_status 77 3636as_fn_error "C compiler cannot create executables 3637See \`config.log' for more details." "$LINENO" 5; }; } 3638fi 3639ac_exeext=$ac_cv_exeext 3640 3641# Check that the compiler produces executables we can run. If not, either 3642# the compiler is broken, or we cross compile. 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3644$as_echo_n "checking whether the C compiler works... " >&6; } 3645# If not cross compiling, check that we can run a simple program. 3646if test "$cross_compiling" != yes; then 3647 if { ac_try='./$ac_file' 3648 { { case "(($ac_try" in 3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3650 *) ac_try_echo=$ac_try;; 3651esac 3652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3653$as_echo "$ac_try_echo"; } >&5 3654 (eval "$ac_try") 2>&5 3655 ac_status=$? 3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3657 test $ac_status = 0; }; }; then 3658 cross_compiling=no 3659 else 3660 if test "$cross_compiling" = maybe; then 3661 cross_compiling=yes 3662 else 3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3665as_fn_error "cannot run C compiled programs. 3666If you meant to cross compile, use \`--host'. 3667See \`config.log' for more details." "$LINENO" 5; } 3668 fi 3669 fi 3670fi 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3672$as_echo "yes" >&6; } 3673 3674rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3675ac_clean_files=$ac_clean_files_save 3676# Check that the compiler produces executables we can run. If not, either 3677# the compiler is broken, or we cross compile. 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3679$as_echo_n "checking whether we are cross compiling... " >&6; } 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3681$as_echo "$cross_compiling" >&6; } 3682 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3684$as_echo_n "checking for suffix of executables... " >&6; } 3685if { { ac_try="$ac_link" 3686case "(($ac_try" in 3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3688 *) ac_try_echo=$ac_try;; 3689esac 3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3691$as_echo "$ac_try_echo"; } >&5 3692 (eval "$ac_link") 2>&5 3693 ac_status=$? 3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3695 test $ac_status = 0; }; then : 3696 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3697# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3698# work properly (i.e., refer to `conftest.exe'), while it won't with 3699# `rm'. 3700for ac_file in conftest.exe conftest conftest.*; do 3701 test -f "$ac_file" || continue 3702 case $ac_file in 3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3705 break;; 3706 * ) break;; 3707 esac 3708done 3709else 3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3712as_fn_error "cannot compute suffix of executables: cannot compile and link 3713See \`config.log' for more details." "$LINENO" 5; } 3714fi 3715rm -f conftest$ac_cv_exeext 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3717$as_echo "$ac_cv_exeext" >&6; } 3718 3719rm -f conftest.$ac_ext 3720EXEEXT=$ac_cv_exeext 3721ac_exeext=$EXEEXT 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3723$as_echo_n "checking for suffix of object files... " >&6; } 3724if test "${ac_cv_objext+set}" = set; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730int 3731main () 3732{ 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738rm -f conftest.o conftest.obj 3739if { { ac_try="$ac_compile" 3740case "(($ac_try" in 3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3742 *) ac_try_echo=$ac_try;; 3743esac 3744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3745$as_echo "$ac_try_echo"; } >&5 3746 (eval "$ac_compile") 2>&5 3747 ac_status=$? 3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3749 test $ac_status = 0; }; then : 3750 for ac_file in conftest.o conftest.obj conftest.*; do 3751 test -f "$ac_file" || continue; 3752 case $ac_file in 3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3755 break;; 3756 esac 3757done 3758else 3759 $as_echo "$as_me: failed program was:" >&5 3760sed 's/^/| /' conftest.$ac_ext >&5 3761 3762{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3764as_fn_error "cannot compute suffix of object files: cannot compile 3765See \`config.log' for more details." "$LINENO" 5; } 3766fi 3767rm -f conftest.$ac_cv_objext conftest.$ac_ext 3768fi 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3770$as_echo "$ac_cv_objext" >&6; } 3771OBJEXT=$ac_cv_objext 3772ac_objext=$OBJEXT 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3774$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3775if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779/* end confdefs.h. */ 3780 3781int 3782main () 3783{ 3784#ifndef __GNUC__ 3785 choke me 3786#endif 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792if ac_fn_c_try_compile "$LINENO"; then : 3793 ac_compiler_gnu=yes 3794else 3795 ac_compiler_gnu=no 3796fi 3797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3798ac_cv_c_compiler_gnu=$ac_compiler_gnu 3799 3800fi 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3802$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3803if test $ac_compiler_gnu = yes; then 3804 GCC=yes 3805else 3806 GCC= 3807fi 3808ac_test_CFLAGS=${CFLAGS+set} 3809ac_save_CFLAGS=$CFLAGS 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3811$as_echo_n "checking whether $CC accepts -g... " >&6; } 3812if test "${ac_cv_prog_cc_g+set}" = set; then : 3813 $as_echo_n "(cached) " >&6 3814else 3815 ac_save_c_werror_flag=$ac_c_werror_flag 3816 ac_c_werror_flag=yes 3817 ac_cv_prog_cc_g=no 3818 CFLAGS="-g" 3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821 3822int 3823main () 3824{ 3825 3826 ; 3827 return 0; 3828} 3829_ACEOF 3830if ac_fn_c_try_compile "$LINENO"; then : 3831 ac_cv_prog_cc_g=yes 3832else 3833 CFLAGS="" 3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3835/* end confdefs.h. */ 3836 3837int 3838main () 3839{ 3840 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845if ac_fn_c_try_compile "$LINENO"; then : 3846 3847else 3848 ac_c_werror_flag=$ac_save_c_werror_flag 3849 CFLAGS="-g" 3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3851/* end confdefs.h. */ 3852 3853int 3854main () 3855{ 3856 3857 ; 3858 return 0; 3859} 3860_ACEOF 3861if ac_fn_c_try_compile "$LINENO"; then : 3862 ac_cv_prog_cc_g=yes 3863fi 3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3865fi 3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3867fi 3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3869 ac_c_werror_flag=$ac_save_c_werror_flag 3870fi 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3872$as_echo "$ac_cv_prog_cc_g" >&6; } 3873if test "$ac_test_CFLAGS" = set; then 3874 CFLAGS=$ac_save_CFLAGS 3875elif test $ac_cv_prog_cc_g = yes; then 3876 if test "$GCC" = yes; then 3877 CFLAGS="-g -O2" 3878 else 3879 CFLAGS="-g" 3880 fi 3881else 3882 if test "$GCC" = yes; then 3883 CFLAGS="-O2" 3884 else 3885 CFLAGS= 3886 fi 3887fi 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3889$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3890if test "${ac_cv_prog_cc_c89+set}" = set; then : 3891 $as_echo_n "(cached) " >&6 3892else 3893 ac_cv_prog_cc_c89=no 3894ac_save_CC=$CC 3895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3896/* end confdefs.h. */ 3897#include <stdarg.h> 3898#include <stdio.h> 3899#include <sys/types.h> 3900#include <sys/stat.h> 3901/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3902struct buf { int x; }; 3903FILE * (*rcsopen) (struct buf *, struct stat *, int); 3904static char *e (p, i) 3905 char **p; 3906 int i; 3907{ 3908 return p[i]; 3909} 3910static char *f (char * (*g) (char **, int), char **p, ...) 3911{ 3912 char *s; 3913 va_list v; 3914 va_start (v,p); 3915 s = g (p, va_arg (v,int)); 3916 va_end (v); 3917 return s; 3918} 3919 3920/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3921 function prototypes and stuff, but not '\xHH' hex character constants. 3922 These don't provoke an error unfortunately, instead are silently treated 3923 as 'x'. The following induces an error, until -std is added to get 3924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3925 array size at least. It's necessary to write '\x00'==0 to get something 3926 that's true only with -std. */ 3927int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3928 3929/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3930 inside strings and character constants. */ 3931#define FOO(x) 'x' 3932int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3933 3934int test (int i, double x); 3935struct s1 {int (*f) (int a);}; 3936struct s2 {int (*f) (double a);}; 3937int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3938int argc; 3939char **argv; 3940int 3941main () 3942{ 3943return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3944 ; 3945 return 0; 3946} 3947_ACEOF 3948for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3950do 3951 CC="$ac_save_CC $ac_arg" 3952 if ac_fn_c_try_compile "$LINENO"; then : 3953 ac_cv_prog_cc_c89=$ac_arg 3954fi 3955rm -f core conftest.err conftest.$ac_objext 3956 test "x$ac_cv_prog_cc_c89" != "xno" && break 3957done 3958rm -f conftest.$ac_ext 3959CC=$ac_save_CC 3960 3961fi 3962# AC_CACHE_VAL 3963case "x$ac_cv_prog_cc_c89" in 3964 x) 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3966$as_echo "none needed" >&6; } ;; 3967 xno) 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3969$as_echo "unsupported" >&6; } ;; 3970 *) 3971 CC="$CC $ac_cv_prog_cc_c89" 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3973$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3974esac 3975if test "x$ac_cv_prog_cc_c89" != xno; then : 3976 3977fi 3978 3979ac_ext=c 3980ac_cpp='$CPP $CPPFLAGS' 3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3983ac_compiler_gnu=$ac_cv_c_compiler_gnu 3984DEPDIR="${am__leading_dot}deps" 3985 3986ac_config_commands="$ac_config_commands depfiles" 3987 3988 3989am_make=${MAKE-make} 3990cat > confinc << 'END' 3991am__doit: 3992 @echo this is the am__doit target 3993.PHONY: am__doit 3994END 3995# If we don't find an include directive, just comment out the code. 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3997$as_echo_n "checking for style of include used by $am_make... " >&6; } 3998am__include="#" 3999am__quote= 4000_am_result=none 4001# First try GNU make style include. 4002echo "include confinc" > confmf 4003# Ignore all kinds of additional output from `make'. 4004case `$am_make -s -f confmf 2> /dev/null` in #( 4005*the\ am__doit\ target*) 4006 am__include=include 4007 am__quote= 4008 _am_result=GNU 4009 ;; 4010esac 4011# Now try BSD make style include. 4012if test "$am__include" = "#"; then 4013 echo '.include "confinc"' > confmf 4014 case `$am_make -s -f confmf 2> /dev/null` in #( 4015 *the\ am__doit\ target*) 4016 am__include=.include 4017 am__quote="\"" 4018 _am_result=BSD 4019 ;; 4020 esac 4021fi 4022 4023 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4025$as_echo "$_am_result" >&6; } 4026rm -f confinc confmf 4027 4028# Check whether --enable-dependency-tracking was given. 4029if test "${enable_dependency_tracking+set}" = set; then : 4030 enableval=$enable_dependency_tracking; 4031fi 4032 4033if test "x$enable_dependency_tracking" != xno; then 4034 am_depcomp="$ac_aux_dir/depcomp" 4035 AMDEPBACKSLASH='\' 4036fi 4037 if test "x$enable_dependency_tracking" != xno; then 4038 AMDEP_TRUE= 4039 AMDEP_FALSE='#' 4040else 4041 AMDEP_TRUE='#' 4042 AMDEP_FALSE= 4043fi 4044 4045 4046 4047depcc="$CC" am_compiler_list= 4048 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4050$as_echo_n "checking dependency style of $depcc... " >&6; } 4051if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4052 $as_echo_n "(cached) " >&6 4053else 4054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4055 # We make a subdir and do the tests there. Otherwise we can end up 4056 # making bogus files that we don't know about and never remove. For 4057 # instance it was reported that on HP-UX the gcc test will end up 4058 # making a dummy file named `D' -- because `-MD' means `put the output 4059 # in D'. 4060 mkdir conftest.dir 4061 # Copy depcomp to subdir because otherwise we won't find it if we're 4062 # using a relative directory. 4063 cp "$am_depcomp" conftest.dir 4064 cd conftest.dir 4065 # We will build objects and dependencies in a subdirectory because 4066 # it helps to detect inapplicable dependency modes. For instance 4067 # both Tru64's cc and ICC support -MD to output dependencies as a 4068 # side effect of compilation, but ICC will put the dependencies in 4069 # the current directory while Tru64 will put them in the object 4070 # directory. 4071 mkdir sub 4072 4073 am_cv_CC_dependencies_compiler_type=none 4074 if test "$am_compiler_list" = ""; then 4075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4076 fi 4077 am__universal=false 4078 case " $depcc " in #( 4079 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4080 esac 4081 4082 for depmode in $am_compiler_list; do 4083 # Setup a source with many dependencies, because some compilers 4084 # like to wrap large dependency lists on column 80 (with \), and 4085 # we should not choose a depcomp mode which is confused by this. 4086 # 4087 # We need to recreate these files for each test, as the compiler may 4088 # overwrite some of them when testing with obscure command lines. 4089 # This happens at least with the AIX C compiler. 4090 : > sub/conftest.c 4091 for i in 1 2 3 4 5 6; do 4092 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4093 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4094 # Solaris 8's {/usr,}/bin/sh. 4095 touch sub/conftst$i.h 4096 done 4097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4098 4099 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4100 # mode. It turns out that the SunPro C++ compiler does not properly 4101 # handle `-M -o', and we need to detect this. Also, some Intel 4102 # versions had trouble with output in subdirs 4103 am__obj=sub/conftest.${OBJEXT-o} 4104 am__minus_obj="-o $am__obj" 4105 case $depmode in 4106 gcc) 4107 # This depmode causes a compiler race in universal mode. 4108 test "$am__universal" = false || continue 4109 ;; 4110 nosideeffect) 4111 # after this tag, mechanisms are not by side-effect, so they'll 4112 # only be used when explicitly requested 4113 if test "x$enable_dependency_tracking" = xyes; then 4114 continue 4115 else 4116 break 4117 fi 4118 ;; 4119 msvisualcpp | msvcmsys) 4120 # This compiler won't grok `-c -o', but also, the minuso test has 4121 # not run yet. These depmodes are late enough in the game, and 4122 # so weak that their functioning should not be impacted. 4123 am__obj=conftest.${OBJEXT-o} 4124 am__minus_obj= 4125 ;; 4126 none) break ;; 4127 esac 4128 if depmode=$depmode \ 4129 source=sub/conftest.c object=$am__obj \ 4130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4132 >/dev/null 2>conftest.err && 4133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4137 # icc doesn't choke on unknown options, it will just issue warnings 4138 # or remarks (even with -Werror). So we grep stderr for any message 4139 # that says an option was ignored or not supported. 4140 # When given -MP, icc 7.0 and 7.1 complain thusly: 4141 # icc: Command line warning: ignoring option '-M'; no argument required 4142 # The diagnosis changed in icc 8.0: 4143 # icc: Command line remark: option '-MP' not supported 4144 if (grep 'ignoring option' conftest.err || 4145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4146 am_cv_CC_dependencies_compiler_type=$depmode 4147 break 4148 fi 4149 fi 4150 done 4151 4152 cd .. 4153 rm -rf conftest.dir 4154else 4155 am_cv_CC_dependencies_compiler_type=none 4156fi 4157 4158fi 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4160$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4161CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4162 4163 if 4164 test "x$enable_dependency_tracking" != xno \ 4165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4166 am__fastdepCC_TRUE= 4167 am__fastdepCC_FALSE='#' 4168else 4169 am__fastdepCC_TRUE='#' 4170 am__fastdepCC_FALSE= 4171fi 4172 4173 4174# By default we simply use the C compiler to build assembly code. 4175 4176test "${CCAS+set}" = set || CCAS=$CC 4177test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4178 4179 4180 4181depcc="$CCAS" am_compiler_list= 4182 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4184$as_echo_n "checking dependency style of $depcc... " >&6; } 4185if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then : 4186 $as_echo_n "(cached) " >&6 4187else 4188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4189 # We make a subdir and do the tests there. Otherwise we can end up 4190 # making bogus files that we don't know about and never remove. For 4191 # instance it was reported that on HP-UX the gcc test will end up 4192 # making a dummy file named `D' -- because `-MD' means `put the output 4193 # in D'. 4194 mkdir conftest.dir 4195 # Copy depcomp to subdir because otherwise we won't find it if we're 4196 # using a relative directory. 4197 cp "$am_depcomp" conftest.dir 4198 cd conftest.dir 4199 # We will build objects and dependencies in a subdirectory because 4200 # it helps to detect inapplicable dependency modes. For instance 4201 # both Tru64's cc and ICC support -MD to output dependencies as a 4202 # side effect of compilation, but ICC will put the dependencies in 4203 # the current directory while Tru64 will put them in the object 4204 # directory. 4205 mkdir sub 4206 4207 am_cv_CCAS_dependencies_compiler_type=none 4208 if test "$am_compiler_list" = ""; then 4209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4210 fi 4211 am__universal=false 4212 4213 4214 for depmode in $am_compiler_list; do 4215 # Setup a source with many dependencies, because some compilers 4216 # like to wrap large dependency lists on column 80 (with \), and 4217 # we should not choose a depcomp mode which is confused by this. 4218 # 4219 # We need to recreate these files for each test, as the compiler may 4220 # overwrite some of them when testing with obscure command lines. 4221 # This happens at least with the AIX C compiler. 4222 : > sub/conftest.c 4223 for i in 1 2 3 4 5 6; do 4224 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4226 # Solaris 8's {/usr,}/bin/sh. 4227 touch sub/conftst$i.h 4228 done 4229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4230 4231 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4232 # mode. It turns out that the SunPro C++ compiler does not properly 4233 # handle `-M -o', and we need to detect this. Also, some Intel 4234 # versions had trouble with output in subdirs 4235 am__obj=sub/conftest.${OBJEXT-o} 4236 am__minus_obj="-o $am__obj" 4237 case $depmode in 4238 gcc) 4239 # This depmode causes a compiler race in universal mode. 4240 test "$am__universal" = false || continue 4241 ;; 4242 nosideeffect) 4243 # after this tag, mechanisms are not by side-effect, so they'll 4244 # only be used when explicitly requested 4245 if test "x$enable_dependency_tracking" = xyes; then 4246 continue 4247 else 4248 break 4249 fi 4250 ;; 4251 msvisualcpp | msvcmsys) 4252 # This compiler won't grok `-c -o', but also, the minuso test has 4253 # not run yet. These depmodes are late enough in the game, and 4254 # so weak that their functioning should not be impacted. 4255 am__obj=conftest.${OBJEXT-o} 4256 am__minus_obj= 4257 ;; 4258 none) break ;; 4259 esac 4260 if depmode=$depmode \ 4261 source=sub/conftest.c object=$am__obj \ 4262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4264 >/dev/null 2>conftest.err && 4265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4269 # icc doesn't choke on unknown options, it will just issue warnings 4270 # or remarks (even with -Werror). So we grep stderr for any message 4271 # that says an option was ignored or not supported. 4272 # When given -MP, icc 7.0 and 7.1 complain thusly: 4273 # icc: Command line warning: ignoring option '-M'; no argument required 4274 # The diagnosis changed in icc 8.0: 4275 # icc: Command line remark: option '-MP' not supported 4276 if (grep 'ignoring option' conftest.err || 4277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4278 am_cv_CCAS_dependencies_compiler_type=$depmode 4279 break 4280 fi 4281 fi 4282 done 4283 4284 cd .. 4285 rm -rf conftest.dir 4286else 4287 am_cv_CCAS_dependencies_compiler_type=none 4288fi 4289 4290fi 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4292$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4293CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4294 4295 if 4296 test "x$enable_dependency_tracking" != xno \ 4297 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 4298 am__fastdepCCAS_TRUE= 4299 am__fastdepCCAS_FALSE='#' 4300else 4301 am__fastdepCCAS_TRUE='#' 4302 am__fastdepCCAS_FALSE= 4303fi 4304 4305 4306 4307 4308 4309 4310# In order to override CFLAGS_FOR_TARGET, all of our special flags go 4311# in XCFLAGS. But we need them in CFLAGS during configury. So put them 4312# in both places for now and restore CFLAGS at the end of config. 4313save_CFLAGS="$CFLAGS" 4314 4315# Find other programs we need. 4316if test -n "$ac_tool_prefix"; then 4317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4318set dummy ${ac_tool_prefix}ar; ac_word=$2 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4320$as_echo_n "checking for $ac_word... " >&6; } 4321if test "${ac_cv_prog_AR+set}" = set; then : 4322 $as_echo_n "(cached) " >&6 4323else 4324 if test -n "$AR"; then 4325 ac_cv_prog_AR="$AR" # Let the user override the test. 4326else 4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4328for as_dir in $PATH 4329do 4330 IFS=$as_save_IFS 4331 test -z "$as_dir" && as_dir=. 4332 for ac_exec_ext in '' $ac_executable_extensions; do 4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4334 ac_cv_prog_AR="${ac_tool_prefix}ar" 4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4336 break 2 4337 fi 4338done 4339 done 4340IFS=$as_save_IFS 4341 4342fi 4343fi 4344AR=$ac_cv_prog_AR 4345if test -n "$AR"; then 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4347$as_echo "$AR" >&6; } 4348else 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4350$as_echo "no" >&6; } 4351fi 4352 4353 4354fi 4355if test -z "$ac_cv_prog_AR"; then 4356 ac_ct_AR=$AR 4357 # Extract the first word of "ar", so it can be a program name with args. 4358set dummy ar; ac_word=$2 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4360$as_echo_n "checking for $ac_word... " >&6; } 4361if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 if test -n "$ac_ct_AR"; then 4365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4366else 4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4368for as_dir in $PATH 4369do 4370 IFS=$as_save_IFS 4371 test -z "$as_dir" && as_dir=. 4372 for ac_exec_ext in '' $ac_executable_extensions; do 4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4374 ac_cv_prog_ac_ct_AR="ar" 4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4376 break 2 4377 fi 4378done 4379 done 4380IFS=$as_save_IFS 4381 4382fi 4383fi 4384ac_ct_AR=$ac_cv_prog_ac_ct_AR 4385if test -n "$ac_ct_AR"; then 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4387$as_echo "$ac_ct_AR" >&6; } 4388else 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390$as_echo "no" >&6; } 4391fi 4392 4393 if test "x$ac_ct_AR" = x; then 4394 AR="" 4395 else 4396 case $cross_compiling:$ac_tool_warned in 4397yes:) 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4400ac_tool_warned=yes ;; 4401esac 4402 AR=$ac_ct_AR 4403 fi 4404else 4405 AR="$ac_cv_prog_AR" 4406fi 4407 4408if test -n "$ac_tool_prefix"; then 4409 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 4410set dummy ${ac_tool_prefix}nm; ac_word=$2 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4412$as_echo_n "checking for $ac_word... " >&6; } 4413if test "${ac_cv_prog_NM+set}" = set; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 if test -n "$NM"; then 4417 ac_cv_prog_NM="$NM" # Let the user override the test. 4418else 4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4420for as_dir in $PATH 4421do 4422 IFS=$as_save_IFS 4423 test -z "$as_dir" && as_dir=. 4424 for ac_exec_ext in '' $ac_executable_extensions; do 4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4426 ac_cv_prog_NM="${ac_tool_prefix}nm" 4427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4428 break 2 4429 fi 4430done 4431 done 4432IFS=$as_save_IFS 4433 4434fi 4435fi 4436NM=$ac_cv_prog_NM 4437if test -n "$NM"; then 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 4439$as_echo "$NM" >&6; } 4440else 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4442$as_echo "no" >&6; } 4443fi 4444 4445 4446fi 4447if test -z "$ac_cv_prog_NM"; then 4448 ac_ct_NM=$NM 4449 # Extract the first word of "nm", so it can be a program name with args. 4450set dummy nm; ac_word=$2 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4452$as_echo_n "checking for $ac_word... " >&6; } 4453if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 if test -n "$ac_ct_NM"; then 4457 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 4458else 4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4460for as_dir in $PATH 4461do 4462 IFS=$as_save_IFS 4463 test -z "$as_dir" && as_dir=. 4464 for ac_exec_ext in '' $ac_executable_extensions; do 4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4466 ac_cv_prog_ac_ct_NM="nm" 4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4468 break 2 4469 fi 4470done 4471 done 4472IFS=$as_save_IFS 4473 4474fi 4475fi 4476ac_ct_NM=$ac_cv_prog_ac_ct_NM 4477if test -n "$ac_ct_NM"; then 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 4479$as_echo "$ac_ct_NM" >&6; } 4480else 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4482$as_echo "no" >&6; } 4483fi 4484 4485 if test "x$ac_ct_NM" = x; then 4486 NM="" 4487 else 4488 case $cross_compiling:$ac_tool_warned in 4489yes:) 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4492ac_tool_warned=yes ;; 4493esac 4494 NM=$ac_ct_NM 4495 fi 4496else 4497 NM="$ac_cv_prog_NM" 4498fi 4499 4500if test -n "$ac_tool_prefix"; then 4501 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4502set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4504$as_echo_n "checking for $ac_word... " >&6; } 4505if test "${ac_cv_prog_RANLIB+set}" = set; then : 4506 $as_echo_n "(cached) " >&6 4507else 4508 if test -n "$RANLIB"; then 4509 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4510else 4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4512for as_dir in $PATH 4513do 4514 IFS=$as_save_IFS 4515 test -z "$as_dir" && as_dir=. 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4518 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4520 break 2 4521 fi 4522done 4523 done 4524IFS=$as_save_IFS 4525 4526fi 4527fi 4528RANLIB=$ac_cv_prog_RANLIB 4529if test -n "$RANLIB"; then 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4531$as_echo "$RANLIB" >&6; } 4532else 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534$as_echo "no" >&6; } 4535fi 4536 4537 4538fi 4539if test -z "$ac_cv_prog_RANLIB"; then 4540 ac_ct_RANLIB=$RANLIB 4541 # Extract the first word of "ranlib", so it can be a program name with args. 4542set dummy ranlib; ac_word=$2 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4544$as_echo_n "checking for $ac_word... " >&6; } 4545if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 if test -n "$ac_ct_RANLIB"; then 4549 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4550else 4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552for as_dir in $PATH 4553do 4554 IFS=$as_save_IFS 4555 test -z "$as_dir" && as_dir=. 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4558 ac_cv_prog_ac_ct_RANLIB="ranlib" 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563 done 4564IFS=$as_save_IFS 4565 4566fi 4567fi 4568ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4569if test -n "$ac_ct_RANLIB"; then 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4571$as_echo "$ac_ct_RANLIB" >&6; } 4572else 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4574$as_echo "no" >&6; } 4575fi 4576 4577 if test "x$ac_ct_RANLIB" = x; then 4578 RANLIB="ranlib-not-found-in-path-error" 4579 else 4580 case $cross_compiling:$ac_tool_warned in 4581yes:) 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4584ac_tool_warned=yes ;; 4585esac 4586 RANLIB=$ac_ct_RANLIB 4587 fi 4588else 4589 RANLIB="$ac_cv_prog_RANLIB" 4590fi 4591 4592# Extract the first word of "perl", so it can be a program name with args. 4593set dummy perl; ac_word=$2 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4595$as_echo_n "checking for $ac_word... " >&6; } 4596if test "${ac_cv_path_PERL+set}" = set; then : 4597 $as_echo_n "(cached) " >&6 4598else 4599 case $PERL in 4600 [\\/]* | ?:[\\/]*) 4601 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4602 ;; 4603 *) 4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4605for as_dir in $PATH 4606do 4607 IFS=$as_save_IFS 4608 test -z "$as_dir" && as_dir=. 4609 for ac_exec_ext in '' $ac_executable_extensions; do 4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4611 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4613 break 2 4614 fi 4615done 4616 done 4617IFS=$as_save_IFS 4618 4619 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" 4620 ;; 4621esac 4622fi 4623PERL=$ac_cv_path_PERL 4624if test -n "$PERL"; then 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4626$as_echo "$PERL" >&6; } 4627else 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4629$as_echo "no" >&6; } 4630fi 4631 4632 4633 4634 4635# Configure libtool 4636case `pwd` in 4637 *\ * | *\ *) 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4639$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4640esac 4641 4642 4643 4644macro_version='2.2.7a' 4645macro_revision='1.3134' 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659ltmain="$ac_aux_dir/ltmain.sh" 4660 4661# Backslashify metacharacters that are still active within 4662# double-quoted strings. 4663sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4664 4665# Same as above, but do not quote variable references. 4666double_quote_subst='s/\(["`\\]\)/\\\1/g' 4667 4668# Sed substitution to delay expansion of an escaped shell variable in a 4669# double_quote_subst'ed string. 4670delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4671 4672# Sed substitution to delay expansion of an escaped single quote. 4673delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4674 4675# Sed substitution to avoid accidental globbing in evaled expressions 4676no_glob_subst='s/\*/\\\*/g' 4677 4678ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4679ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4680ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4681 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4683$as_echo_n "checking how to print strings... " >&6; } 4684# Test print first, because it will be a builtin if present. 4685if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4686 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4687 ECHO='print -r --' 4688elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4689 ECHO='printf %s\n' 4690else 4691 # Use this function as a fallback that always works. 4692 func_fallback_echo () 4693 { 4694 eval 'cat <<_LTECHO_EOF 4695$1 4696_LTECHO_EOF' 4697 } 4698 ECHO='func_fallback_echo' 4699fi 4700 4701# func_echo_all arg... 4702# Invoke $ECHO with all args, space-separated. 4703func_echo_all () 4704{ 4705 $ECHO "" 4706} 4707 4708case "$ECHO" in 4709 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4710$as_echo "printf" >&6; } ;; 4711 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4712$as_echo "print -r" >&6; } ;; 4713 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4714$as_echo "cat" >&6; } ;; 4715esac 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4731$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4732if test "${ac_cv_path_SED+set}" = set; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4736 for ac_i in 1 2 3 4 5 6 7; do 4737 ac_script="$ac_script$as_nl$ac_script" 4738 done 4739 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4740 { ac_script=; unset ac_script;} 4741 if test -z "$SED"; then 4742 ac_path_SED_found=false 4743 # Loop through the user's path and test for each of PROGNAME-LIST 4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4745for as_dir in $PATH 4746do 4747 IFS=$as_save_IFS 4748 test -z "$as_dir" && as_dir=. 4749 for ac_prog in sed gsed; do 4750 for ac_exec_ext in '' $ac_executable_extensions; do 4751 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4752 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4753# Check for GNU ac_path_SED and select it if it is found. 4754 # Check for GNU $ac_path_SED 4755case `"$ac_path_SED" --version 2>&1` in 4756*GNU*) 4757 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4758*) 4759 ac_count=0 4760 $as_echo_n 0123456789 >"conftest.in" 4761 while : 4762 do 4763 cat "conftest.in" "conftest.in" >"conftest.tmp" 4764 mv "conftest.tmp" "conftest.in" 4765 cp "conftest.in" "conftest.nl" 4766 $as_echo '' >> "conftest.nl" 4767 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4769 as_fn_arith $ac_count + 1 && ac_count=$as_val 4770 if test $ac_count -gt ${ac_path_SED_max-0}; then 4771 # Best one so far, save it but keep looking for a better one 4772 ac_cv_path_SED="$ac_path_SED" 4773 ac_path_SED_max=$ac_count 4774 fi 4775 # 10*(2^10) chars as input seems more than enough 4776 test $ac_count -gt 10 && break 4777 done 4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4779esac 4780 4781 $ac_path_SED_found && break 3 4782 done 4783 done 4784 done 4785IFS=$as_save_IFS 4786 if test -z "$ac_cv_path_SED"; then 4787 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4788 fi 4789else 4790 ac_cv_path_SED=$SED 4791fi 4792 4793fi 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4795$as_echo "$ac_cv_path_SED" >&6; } 4796 SED="$ac_cv_path_SED" 4797 rm -f conftest.sed 4798 4799test -z "$SED" && SED=sed 4800Xsed="$SED -e 1s/^X//" 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4813$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4814if test "${ac_cv_path_GREP+set}" = set; then : 4815 $as_echo_n "(cached) " >&6 4816else 4817 if test -z "$GREP"; then 4818 ac_path_GREP_found=false 4819 # Loop through the user's path and test for each of PROGNAME-LIST 4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4821for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4822do 4823 IFS=$as_save_IFS 4824 test -z "$as_dir" && as_dir=. 4825 for ac_prog in grep ggrep; do 4826 for ac_exec_ext in '' $ac_executable_extensions; do 4827 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4828 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4829# Check for GNU ac_path_GREP and select it if it is found. 4830 # Check for GNU $ac_path_GREP 4831case `"$ac_path_GREP" --version 2>&1` in 4832*GNU*) 4833 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4834*) 4835 ac_count=0 4836 $as_echo_n 0123456789 >"conftest.in" 4837 while : 4838 do 4839 cat "conftest.in" "conftest.in" >"conftest.tmp" 4840 mv "conftest.tmp" "conftest.in" 4841 cp "conftest.in" "conftest.nl" 4842 $as_echo 'GREP' >> "conftest.nl" 4843 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4845 as_fn_arith $ac_count + 1 && ac_count=$as_val 4846 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4847 # Best one so far, save it but keep looking for a better one 4848 ac_cv_path_GREP="$ac_path_GREP" 4849 ac_path_GREP_max=$ac_count 4850 fi 4851 # 10*(2^10) chars as input seems more than enough 4852 test $ac_count -gt 10 && break 4853 done 4854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4855esac 4856 4857 $ac_path_GREP_found && break 3 4858 done 4859 done 4860 done 4861IFS=$as_save_IFS 4862 if test -z "$ac_cv_path_GREP"; then 4863 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4864 fi 4865else 4866 ac_cv_path_GREP=$GREP 4867fi 4868 4869fi 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4871$as_echo "$ac_cv_path_GREP" >&6; } 4872 GREP="$ac_cv_path_GREP" 4873 4874 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4876$as_echo_n "checking for egrep... " >&6; } 4877if test "${ac_cv_path_EGREP+set}" = set; then : 4878 $as_echo_n "(cached) " >&6 4879else 4880 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4881 then ac_cv_path_EGREP="$GREP -E" 4882 else 4883 if test -z "$EGREP"; then 4884 ac_path_EGREP_found=false 4885 # Loop through the user's path and test for each of PROGNAME-LIST 4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4887for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4888do 4889 IFS=$as_save_IFS 4890 test -z "$as_dir" && as_dir=. 4891 for ac_prog in egrep; do 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4894 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4895# Check for GNU ac_path_EGREP and select it if it is found. 4896 # Check for GNU $ac_path_EGREP 4897case `"$ac_path_EGREP" --version 2>&1` in 4898*GNU*) 4899 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4900*) 4901 ac_count=0 4902 $as_echo_n 0123456789 >"conftest.in" 4903 while : 4904 do 4905 cat "conftest.in" "conftest.in" >"conftest.tmp" 4906 mv "conftest.tmp" "conftest.in" 4907 cp "conftest.in" "conftest.nl" 4908 $as_echo 'EGREP' >> "conftest.nl" 4909 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4911 as_fn_arith $ac_count + 1 && ac_count=$as_val 4912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4913 # Best one so far, save it but keep looking for a better one 4914 ac_cv_path_EGREP="$ac_path_EGREP" 4915 ac_path_EGREP_max=$ac_count 4916 fi 4917 # 10*(2^10) chars as input seems more than enough 4918 test $ac_count -gt 10 && break 4919 done 4920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4921esac 4922 4923 $ac_path_EGREP_found && break 3 4924 done 4925 done 4926 done 4927IFS=$as_save_IFS 4928 if test -z "$ac_cv_path_EGREP"; then 4929 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4930 fi 4931else 4932 ac_cv_path_EGREP=$EGREP 4933fi 4934 4935 fi 4936fi 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4938$as_echo "$ac_cv_path_EGREP" >&6; } 4939 EGREP="$ac_cv_path_EGREP" 4940 4941 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4943$as_echo_n "checking for fgrep... " >&6; } 4944if test "${ac_cv_path_FGREP+set}" = set; then : 4945 $as_echo_n "(cached) " >&6 4946else 4947 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4948 then ac_cv_path_FGREP="$GREP -F" 4949 else 4950 if test -z "$FGREP"; then 4951 ac_path_FGREP_found=false 4952 # Loop through the user's path and test for each of PROGNAME-LIST 4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4954for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4955do 4956 IFS=$as_save_IFS 4957 test -z "$as_dir" && as_dir=. 4958 for ac_prog in fgrep; do 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4961 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4962# Check for GNU ac_path_FGREP and select it if it is found. 4963 # Check for GNU $ac_path_FGREP 4964case `"$ac_path_FGREP" --version 2>&1` in 4965*GNU*) 4966 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4967*) 4968 ac_count=0 4969 $as_echo_n 0123456789 >"conftest.in" 4970 while : 4971 do 4972 cat "conftest.in" "conftest.in" >"conftest.tmp" 4973 mv "conftest.tmp" "conftest.in" 4974 cp "conftest.in" "conftest.nl" 4975 $as_echo 'FGREP' >> "conftest.nl" 4976 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4978 as_fn_arith $ac_count + 1 && ac_count=$as_val 4979 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4980 # Best one so far, save it but keep looking for a better one 4981 ac_cv_path_FGREP="$ac_path_FGREP" 4982 ac_path_FGREP_max=$ac_count 4983 fi 4984 # 10*(2^10) chars as input seems more than enough 4985 test $ac_count -gt 10 && break 4986 done 4987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4988esac 4989 4990 $ac_path_FGREP_found && break 3 4991 done 4992 done 4993 done 4994IFS=$as_save_IFS 4995 if test -z "$ac_cv_path_FGREP"; then 4996 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4997 fi 4998else 4999 ac_cv_path_FGREP=$FGREP 5000fi 5001 5002 fi 5003fi 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5005$as_echo "$ac_cv_path_FGREP" >&6; } 5006 FGREP="$ac_cv_path_FGREP" 5007 5008 5009test -z "$GREP" && GREP=grep 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029# Check whether --with-gnu-ld was given. 5030if test "${with_gnu_ld+set}" = set; then : 5031 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5032else 5033 with_gnu_ld=no 5034fi 5035 5036ac_prog=ld 5037if test "$GCC" = yes; then 5038 # Check if gcc -print-prog-name=ld gives a path. 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5040$as_echo_n "checking for ld used by $CC... " >&6; } 5041 case $host in 5042 *-*-mingw*) 5043 # gcc leaves a trailing carriage return which upsets mingw 5044 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5045 *) 5046 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5047 esac 5048 case $ac_prog in 5049 # Accept absolute paths. 5050 [\\/]* | ?:[\\/]*) 5051 re_direlt='/[^/][^/]*/\.\./' 5052 # Canonicalize the pathname of ld 5053 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5054 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5055 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5056 done 5057 test -z "$LD" && LD="$ac_prog" 5058 ;; 5059 "") 5060 # If it fails, then pretend we aren't using GCC. 5061 ac_prog=ld 5062 ;; 5063 *) 5064 # If it is relative, then search for the first ld in PATH. 5065 with_gnu_ld=unknown 5066 ;; 5067 esac 5068elif test "$with_gnu_ld" = yes; then 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5070$as_echo_n "checking for GNU ld... " >&6; } 5071else 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5073$as_echo_n "checking for non-GNU ld... " >&6; } 5074fi 5075if test "${lt_cv_path_LD+set}" = set; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 if test -z "$LD"; then 5079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5080 for ac_dir in $PATH; do 5081 IFS="$lt_save_ifs" 5082 test -z "$ac_dir" && ac_dir=. 5083 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5084 lt_cv_path_LD="$ac_dir/$ac_prog" 5085 # Check to see if the program is GNU ld. I'd rather use --version, 5086 # but apparently some variants of GNU ld only accept -v. 5087 # Break only if it was the GNU/non-GNU ld that we prefer. 5088 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5089 *GNU* | *'with BFD'*) 5090 test "$with_gnu_ld" != no && break 5091 ;; 5092 *) 5093 test "$with_gnu_ld" != yes && break 5094 ;; 5095 esac 5096 fi 5097 done 5098 IFS="$lt_save_ifs" 5099else 5100 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5101fi 5102fi 5103 5104LD="$lt_cv_path_LD" 5105if test -n "$LD"; then 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5107$as_echo "$LD" >&6; } 5108else 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5110$as_echo "no" >&6; } 5111fi 5112test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5114$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5115if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5116 $as_echo_n "(cached) " >&6 5117else 5118 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5119case `$LD -v 2>&1 </dev/null` in 5120*GNU* | *'with BFD'*) 5121 lt_cv_prog_gnu_ld=yes 5122 ;; 5123*) 5124 lt_cv_prog_gnu_ld=no 5125 ;; 5126esac 5127fi 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5129$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5130with_gnu_ld=$lt_cv_prog_gnu_ld 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5141$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5142if test "${lt_cv_path_NM+set}" = set; then : 5143 $as_echo_n "(cached) " >&6 5144else 5145 if test -n "$NM"; then 5146 # Let the user override the test. 5147 lt_cv_path_NM="$NM" 5148else 5149 lt_nm_to_check="${ac_tool_prefix}nm" 5150 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5151 lt_nm_to_check="$lt_nm_to_check nm" 5152 fi 5153 for lt_tmp_nm in $lt_nm_to_check; do 5154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5155 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5156 IFS="$lt_save_ifs" 5157 test -z "$ac_dir" && ac_dir=. 5158 tmp_nm="$ac_dir/$lt_tmp_nm" 5159 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5160 # Check to see if the nm accepts a BSD-compat flag. 5161 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5162 # nm: unknown option "B" ignored 5163 # Tru64's nm complains that /dev/null is an invalid object file 5164 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5165 */dev/null* | *'Invalid file or object type'*) 5166 lt_cv_path_NM="$tmp_nm -B" 5167 break 5168 ;; 5169 *) 5170 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5171 */dev/null*) 5172 lt_cv_path_NM="$tmp_nm -p" 5173 break 5174 ;; 5175 *) 5176 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5177 continue # so that we can try to find one that supports BSD flags 5178 ;; 5179 esac 5180 ;; 5181 esac 5182 fi 5183 done 5184 IFS="$lt_save_ifs" 5185 done 5186 : ${lt_cv_path_NM=no} 5187fi 5188fi 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5190$as_echo "$lt_cv_path_NM" >&6; } 5191if test "$lt_cv_path_NM" != "no"; then 5192 NM="$lt_cv_path_NM" 5193else 5194 # Didn't find any BSD compatible name lister, look for dumpbin. 5195 if test -n "$DUMPBIN"; then : 5196 # Let the user override the test. 5197 else 5198 if test -n "$ac_tool_prefix"; then 5199 for ac_prog in dumpbin "link -dump" 5200 do 5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5202set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5204$as_echo_n "checking for $ac_word... " >&6; } 5205if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 if test -n "$DUMPBIN"; then 5209 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5210else 5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212for as_dir in $PATH 5213do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5218 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5220 break 2 5221 fi 5222done 5223 done 5224IFS=$as_save_IFS 5225 5226fi 5227fi 5228DUMPBIN=$ac_cv_prog_DUMPBIN 5229if test -n "$DUMPBIN"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5231$as_echo "$DUMPBIN" >&6; } 5232else 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5234$as_echo "no" >&6; } 5235fi 5236 5237 5238 test -n "$DUMPBIN" && break 5239 done 5240fi 5241if test -z "$DUMPBIN"; then 5242 ac_ct_DUMPBIN=$DUMPBIN 5243 for ac_prog in dumpbin "link -dump" 5244do 5245 # Extract the first word of "$ac_prog", so it can be a program name with args. 5246set dummy $ac_prog; ac_word=$2 5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5248$as_echo_n "checking for $ac_word... " >&6; } 5249if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5250 $as_echo_n "(cached) " >&6 5251else 5252 if test -n "$ac_ct_DUMPBIN"; then 5253 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5254else 5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5256for as_dir in $PATH 5257do 5258 IFS=$as_save_IFS 5259 test -z "$as_dir" && as_dir=. 5260 for ac_exec_ext in '' $ac_executable_extensions; do 5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5262 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5264 break 2 5265 fi 5266done 5267 done 5268IFS=$as_save_IFS 5269 5270fi 5271fi 5272ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5273if test -n "$ac_ct_DUMPBIN"; then 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5275$as_echo "$ac_ct_DUMPBIN" >&6; } 5276else 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5278$as_echo "no" >&6; } 5279fi 5280 5281 5282 test -n "$ac_ct_DUMPBIN" && break 5283done 5284 5285 if test "x$ac_ct_DUMPBIN" = x; then 5286 DUMPBIN=":" 5287 else 5288 case $cross_compiling:$ac_tool_warned in 5289yes:) 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5292ac_tool_warned=yes ;; 5293esac 5294 DUMPBIN=$ac_ct_DUMPBIN 5295 fi 5296fi 5297 5298 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5299 *COFF*) 5300 DUMPBIN="$DUMPBIN -symbols" 5301 ;; 5302 *) 5303 DUMPBIN=: 5304 ;; 5305 esac 5306 fi 5307 5308 if test "$DUMPBIN" != ":"; then 5309 NM="$DUMPBIN" 5310 fi 5311fi 5312test -z "$NM" && NM=nm 5313 5314 5315 5316 5317 5318 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5320$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5321if test "${lt_cv_nm_interface+set}" = set; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 lt_cv_nm_interface="BSD nm" 5325 echo "int some_variable = 0;" > conftest.$ac_ext 5326 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5327 (eval "$ac_compile" 2>conftest.err) 5328 cat conftest.err >&5 5329 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5330 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5331 cat conftest.err >&5 5332 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5333 cat conftest.out >&5 5334 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5335 lt_cv_nm_interface="MS dumpbin" 5336 fi 5337 rm -f conftest* 5338fi 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5340$as_echo "$lt_cv_nm_interface" >&6; } 5341 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5343$as_echo_n "checking whether ln -s works... " >&6; } 5344LN_S=$as_ln_s 5345if test "$LN_S" = "ln -s"; then 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5347$as_echo "yes" >&6; } 5348else 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5350$as_echo "no, using $LN_S" >&6; } 5351fi 5352 5353# find the maximum length of command line arguments 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5355$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5356if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5357 $as_echo_n "(cached) " >&6 5358else 5359 i=0 5360 teststring="ABCD" 5361 5362 case $build_os in 5363 msdosdjgpp*) 5364 # On DJGPP, this test can blow up pretty badly due to problems in libc 5365 # (any single argument exceeding 2000 bytes causes a buffer overrun 5366 # during glob expansion). Even if it were fixed, the result of this 5367 # check would be larger than it should be. 5368 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5369 ;; 5370 5371 gnu*) 5372 # Under GNU Hurd, this test is not required because there is 5373 # no limit to the length of command line arguments. 5374 # Libtool will interpret -1 as no limit whatsoever 5375 lt_cv_sys_max_cmd_len=-1; 5376 ;; 5377 5378 cygwin* | mingw* | cegcc*) 5379 # On Win9x/ME, this test blows up -- it succeeds, but takes 5380 # about 5 minutes as the teststring grows exponentially. 5381 # Worse, since 9x/ME are not pre-emptively multitasking, 5382 # you end up with a "frozen" computer, even though with patience 5383 # the test eventually succeeds (with a max line length of 256k). 5384 # Instead, let's just punt: use the minimum linelength reported by 5385 # all of the supported platforms: 8192 (on NT/2K/XP). 5386 lt_cv_sys_max_cmd_len=8192; 5387 ;; 5388 5389 mint*) 5390 # On MiNT this can take a long time and run out of memory. 5391 lt_cv_sys_max_cmd_len=8192; 5392 ;; 5393 5394 amigaos*) 5395 # On AmigaOS with pdksh, this test takes hours, literally. 5396 # So we just punt and use a minimum line length of 8192. 5397 lt_cv_sys_max_cmd_len=8192; 5398 ;; 5399 5400 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5401 # This has been around since 386BSD, at least. Likely further. 5402 if test -x /sbin/sysctl; then 5403 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5404 elif test -x /usr/sbin/sysctl; then 5405 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5406 else 5407 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5408 fi 5409 # And add a safety zone 5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5412 ;; 5413 5414 interix*) 5415 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5416 lt_cv_sys_max_cmd_len=196608 5417 ;; 5418 5419 osf*) 5420 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5421 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5422 # nice to cause kernel panics so lets avoid the loop below. 5423 # First set a reasonable default. 5424 lt_cv_sys_max_cmd_len=16384 5425 # 5426 if test -x /sbin/sysconfig; then 5427 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5428 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5429 esac 5430 fi 5431 ;; 5432 sco3.2v5*) 5433 lt_cv_sys_max_cmd_len=102400 5434 ;; 5435 sysv5* | sco5v6* | sysv4.2uw2*) 5436 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5437 if test -n "$kargmax"; then 5438 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5439 else 5440 lt_cv_sys_max_cmd_len=32768 5441 fi 5442 ;; 5443 *) 5444 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5445 if test -n "$lt_cv_sys_max_cmd_len"; then 5446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5448 else 5449 # Make teststring a little bigger before we do anything with it. 5450 # a 1K string should be a reasonable start. 5451 for i in 1 2 3 4 5 6 7 8 ; do 5452 teststring=$teststring$teststring 5453 done 5454 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5455 # If test is not a shell built-in, we'll probably end up computing a 5456 # maximum length that is only half of the actual maximum length, but 5457 # we can't tell. 5458 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5459 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5460 test $i != 17 # 1/2 MB should be enough 5461 do 5462 i=`expr $i + 1` 5463 teststring=$teststring$teststring 5464 done 5465 # Only check the string length outside the loop. 5466 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5467 teststring= 5468 # Add a significant safety factor because C++ compilers can tack on 5469 # massive amounts of additional arguments before passing them to the 5470 # linker. It appears as though 1/2 is a usable value. 5471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5472 fi 5473 ;; 5474 esac 5475 5476fi 5477 5478if test -n $lt_cv_sys_max_cmd_len ; then 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5480$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5481else 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5483$as_echo "none" >&6; } 5484fi 5485max_cmd_len=$lt_cv_sys_max_cmd_len 5486 5487 5488 5489 5490 5491 5492: ${CP="cp -f"} 5493: ${MV="mv -f"} 5494: ${RM="rm -f"} 5495 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5497$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5498# Try some XSI features 5499xsi_shell=no 5500( _lt_dummy="a/b/c" 5501 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5502 = c,a/b,, \ 5503 && eval 'test $(( 1 + 1 )) -eq 2 \ 5504 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5505 && xsi_shell=yes 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5507$as_echo "$xsi_shell" >&6; } 5508 5509 5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5511$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5512lt_shell_append=no 5513( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5514 >/dev/null 2>&1 \ 5515 && lt_shell_append=yes 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5517$as_echo "$lt_shell_append" >&6; } 5518 5519 5520if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5521 lt_unset=unset 5522else 5523 lt_unset=false 5524fi 5525 5526 5527 5528 5529 5530# test EBCDIC or ASCII 5531case `echo X|tr X '\101'` in 5532 A) # ASCII based system 5533 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5534 lt_SP2NL='tr \040 \012' 5535 lt_NL2SP='tr \015\012 \040\040' 5536 ;; 5537 *) # EBCDIC based system 5538 lt_SP2NL='tr \100 \n' 5539 lt_NL2SP='tr \r\n \100\100' 5540 ;; 5541esac 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5552$as_echo_n "checking for $LD option to reload object files... " >&6; } 5553if test "${lt_cv_ld_reload_flag+set}" = set; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 lt_cv_ld_reload_flag='-r' 5557fi 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5559$as_echo "$lt_cv_ld_reload_flag" >&6; } 5560reload_flag=$lt_cv_ld_reload_flag 5561case $reload_flag in 5562"" | " "*) ;; 5563*) reload_flag=" $reload_flag" ;; 5564esac 5565reload_cmds='$LD$reload_flag -o $output$reload_objs' 5566case $host_os in 5567 darwin*) 5568 if test "$GCC" = yes; then 5569 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5570 else 5571 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5572 fi 5573 ;; 5574esac 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584if test -n "$ac_tool_prefix"; then 5585 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5586set dummy ${ac_tool_prefix}objdump; ac_word=$2 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5588$as_echo_n "checking for $ac_word... " >&6; } 5589if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 if test -n "$OBJDUMP"; then 5593 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5594else 5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5596for as_dir in $PATH 5597do 5598 IFS=$as_save_IFS 5599 test -z "$as_dir" && as_dir=. 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5602 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5604 break 2 5605 fi 5606done 5607 done 5608IFS=$as_save_IFS 5609 5610fi 5611fi 5612OBJDUMP=$ac_cv_prog_OBJDUMP 5613if test -n "$OBJDUMP"; then 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5615$as_echo "$OBJDUMP" >&6; } 5616else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618$as_echo "no" >&6; } 5619fi 5620 5621 5622fi 5623if test -z "$ac_cv_prog_OBJDUMP"; then 5624 ac_ct_OBJDUMP=$OBJDUMP 5625 # Extract the first word of "objdump", so it can be a program name with args. 5626set dummy objdump; ac_word=$2 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5628$as_echo_n "checking for $ac_word... " >&6; } 5629if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5630 $as_echo_n "(cached) " >&6 5631else 5632 if test -n "$ac_ct_OBJDUMP"; then 5633 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5634else 5635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5636for as_dir in $PATH 5637do 5638 IFS=$as_save_IFS 5639 test -z "$as_dir" && as_dir=. 5640 for ac_exec_ext in '' $ac_executable_extensions; do 5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5642 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5644 break 2 5645 fi 5646done 5647 done 5648IFS=$as_save_IFS 5649 5650fi 5651fi 5652ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5653if test -n "$ac_ct_OBJDUMP"; then 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5655$as_echo "$ac_ct_OBJDUMP" >&6; } 5656else 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5658$as_echo "no" >&6; } 5659fi 5660 5661 if test "x$ac_ct_OBJDUMP" = x; then 5662 OBJDUMP="false" 5663 else 5664 case $cross_compiling:$ac_tool_warned in 5665yes:) 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5668ac_tool_warned=yes ;; 5669esac 5670 OBJDUMP=$ac_ct_OBJDUMP 5671 fi 5672else 5673 OBJDUMP="$ac_cv_prog_OBJDUMP" 5674fi 5675 5676test -z "$OBJDUMP" && OBJDUMP=objdump 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5687$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5688if test "${lt_cv_deplibs_check_method+set}" = set; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 lt_cv_file_magic_cmd='$MAGIC_CMD' 5692lt_cv_file_magic_test_file= 5693lt_cv_deplibs_check_method='unknown' 5694# Need to set the preceding variable on all platforms that support 5695# interlibrary dependencies. 5696# 'none' -- dependencies not supported. 5697# `unknown' -- same as none, but documents that we really don't know. 5698# 'pass_all' -- all dependencies passed with no checks. 5699# 'test_compile' -- check by making test program. 5700# 'file_magic [[regex]]' -- check by looking for files in library path 5701# which responds to the $file_magic_cmd with a given extended regex. 5702# If you have `file' or equivalent on your system and you're not sure 5703# whether `pass_all' will *always* work, you probably want this one. 5704 5705case $host_os in 5706aix[4-9]*) 5707 lt_cv_deplibs_check_method=pass_all 5708 ;; 5709 5710beos*) 5711 lt_cv_deplibs_check_method=pass_all 5712 ;; 5713 5714bsdi[45]*) 5715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5716 lt_cv_file_magic_cmd='/usr/bin/file -L' 5717 lt_cv_file_magic_test_file=/shlib/libc.so 5718 ;; 5719 5720cygwin*) 5721 # func_win32_libid is a shell function defined in ltmain.sh 5722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5723 lt_cv_file_magic_cmd='func_win32_libid' 5724 ;; 5725 5726mingw* | pw32*) 5727 # Base MSYS/MinGW do not provide the 'file' command needed by 5728 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5729 # unless we find 'file', for example because we are cross-compiling. 5730 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5731 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5733 lt_cv_file_magic_cmd='func_win32_libid' 5734 else 5735 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5736 lt_cv_file_magic_cmd='$OBJDUMP -f' 5737 fi 5738 ;; 5739 5740cegcc*) 5741 # use the weaker test based on 'objdump'. See mingw*. 5742 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5743 lt_cv_file_magic_cmd='$OBJDUMP -f' 5744 ;; 5745 5746darwin* | rhapsody*) 5747 lt_cv_deplibs_check_method=pass_all 5748 ;; 5749 5750freebsd* | dragonfly*) 5751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5752 case $host_cpu in 5753 i*86 ) 5754 # Not sure whether the presence of OpenBSD here was a mistake. 5755 # Let's accept both of them until this is cleared up. 5756 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5757 lt_cv_file_magic_cmd=/usr/bin/file 5758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5759 ;; 5760 esac 5761 else 5762 lt_cv_deplibs_check_method=pass_all 5763 fi 5764 ;; 5765 5766gnu*) 5767 lt_cv_deplibs_check_method=pass_all 5768 ;; 5769 5770haiku*) 5771 lt_cv_deplibs_check_method=pass_all 5772 ;; 5773 5774hpux10.20* | hpux11*) 5775 lt_cv_file_magic_cmd=/usr/bin/file 5776 case $host_cpu in 5777 ia64*) 5778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5779 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5780 ;; 5781 hppa*64*) 5782 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]' 5783 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5784 ;; 5785 *) 5786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5787 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5788 ;; 5789 esac 5790 ;; 5791 5792interix[3-9]*) 5793 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5795 ;; 5796 5797irix5* | irix6* | nonstopux*) 5798 case $LD in 5799 *-32|*"-32 ") libmagic=32-bit;; 5800 *-n32|*"-n32 ") libmagic=N32;; 5801 *-64|*"-64 ") libmagic=64-bit;; 5802 *) libmagic=never-match;; 5803 esac 5804 lt_cv_deplibs_check_method=pass_all 5805 ;; 5806 5807# This must be Linux ELF. 5808linux* | k*bsd*-gnu | kopensolaris*-gnu) 5809 lt_cv_deplibs_check_method=pass_all 5810 ;; 5811 5812netbsd*) 5813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5815 else 5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5817 fi 5818 ;; 5819 5820newos6*) 5821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5822 lt_cv_file_magic_cmd=/usr/bin/file 5823 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5824 ;; 5825 5826*nto* | *qnx*) 5827 lt_cv_deplibs_check_method=pass_all 5828 ;; 5829 5830openbsd*) 5831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5833 else 5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5835 fi 5836 ;; 5837 5838osf3* | osf4* | osf5*) 5839 lt_cv_deplibs_check_method=pass_all 5840 ;; 5841 5842rdos*) 5843 lt_cv_deplibs_check_method=pass_all 5844 ;; 5845 5846solaris*) 5847 lt_cv_deplibs_check_method=pass_all 5848 ;; 5849 5850sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5851 lt_cv_deplibs_check_method=pass_all 5852 ;; 5853 5854sysv4 | sysv4.3*) 5855 case $host_vendor in 5856 motorola) 5857 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]' 5858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5859 ;; 5860 ncr) 5861 lt_cv_deplibs_check_method=pass_all 5862 ;; 5863 sequent) 5864 lt_cv_file_magic_cmd='/bin/file' 5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5866 ;; 5867 sni) 5868 lt_cv_file_magic_cmd='/bin/file' 5869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5870 lt_cv_file_magic_test_file=/lib/libc.so 5871 ;; 5872 siemens) 5873 lt_cv_deplibs_check_method=pass_all 5874 ;; 5875 pc) 5876 lt_cv_deplibs_check_method=pass_all 5877 ;; 5878 esac 5879 ;; 5880 5881tpf*) 5882 lt_cv_deplibs_check_method=pass_all 5883 ;; 5884esac 5885 5886fi 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5888$as_echo "$lt_cv_deplibs_check_method" >&6; } 5889file_magic_cmd=$lt_cv_file_magic_cmd 5890deplibs_check_method=$lt_cv_deplibs_check_method 5891test -z "$deplibs_check_method" && deplibs_check_method=unknown 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904if test -n "$ac_tool_prefix"; then 5905 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5906set dummy ${ac_tool_prefix}ar; ac_word=$2 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908$as_echo_n "checking for $ac_word... " >&6; } 5909if test "${ac_cv_prog_AR+set}" = set; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 if test -n "$AR"; then 5913 ac_cv_prog_AR="$AR" # Let the user override the test. 5914else 5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916for as_dir in $PATH 5917do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5922 ac_cv_prog_AR="${ac_tool_prefix}ar" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926done 5927 done 5928IFS=$as_save_IFS 5929 5930fi 5931fi 5932AR=$ac_cv_prog_AR 5933if test -n "$AR"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5935$as_echo "$AR" >&6; } 5936else 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938$as_echo "no" >&6; } 5939fi 5940 5941 5942fi 5943if test -z "$ac_cv_prog_AR"; then 5944 ac_ct_AR=$AR 5945 # Extract the first word of "ar", so it can be a program name with args. 5946set dummy ar; ac_word=$2 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5948$as_echo_n "checking for $ac_word... " >&6; } 5949if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 if test -n "$ac_ct_AR"; then 5953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5954else 5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5956for as_dir in $PATH 5957do 5958 IFS=$as_save_IFS 5959 test -z "$as_dir" && as_dir=. 5960 for ac_exec_ext in '' $ac_executable_extensions; do 5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5962 ac_cv_prog_ac_ct_AR="ar" 5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5964 break 2 5965 fi 5966done 5967 done 5968IFS=$as_save_IFS 5969 5970fi 5971fi 5972ac_ct_AR=$ac_cv_prog_ac_ct_AR 5973if test -n "$ac_ct_AR"; then 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5975$as_echo "$ac_ct_AR" >&6; } 5976else 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5978$as_echo "no" >&6; } 5979fi 5980 5981 if test "x$ac_ct_AR" = x; then 5982 AR="false" 5983 else 5984 case $cross_compiling:$ac_tool_warned in 5985yes:) 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5988ac_tool_warned=yes ;; 5989esac 5990 AR=$ac_ct_AR 5991 fi 5992else 5993 AR="$ac_cv_prog_AR" 5994fi 5995 5996test -z "$AR" && AR=ar 5997test -z "$AR_FLAGS" && AR_FLAGS=cru 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009if test -n "$ac_tool_prefix"; then 6010 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6011set dummy ${ac_tool_prefix}strip; ac_word=$2 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6013$as_echo_n "checking for $ac_word... " >&6; } 6014if test "${ac_cv_prog_STRIP+set}" = set; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 if test -n "$STRIP"; then 6018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6019else 6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6021for as_dir in $PATH 6022do 6023 IFS=$as_save_IFS 6024 test -z "$as_dir" && as_dir=. 6025 for ac_exec_ext in '' $ac_executable_extensions; do 6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6027 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6029 break 2 6030 fi 6031done 6032 done 6033IFS=$as_save_IFS 6034 6035fi 6036fi 6037STRIP=$ac_cv_prog_STRIP 6038if test -n "$STRIP"; then 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6040$as_echo "$STRIP" >&6; } 6041else 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6043$as_echo "no" >&6; } 6044fi 6045 6046 6047fi 6048if test -z "$ac_cv_prog_STRIP"; then 6049 ac_ct_STRIP=$STRIP 6050 # Extract the first word of "strip", so it can be a program name with args. 6051set dummy strip; ac_word=$2 6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6053$as_echo_n "checking for $ac_word... " >&6; } 6054if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6055 $as_echo_n "(cached) " >&6 6056else 6057 if test -n "$ac_ct_STRIP"; then 6058 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6059else 6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6061for as_dir in $PATH 6062do 6063 IFS=$as_save_IFS 6064 test -z "$as_dir" && as_dir=. 6065 for ac_exec_ext in '' $ac_executable_extensions; do 6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6067 ac_cv_prog_ac_ct_STRIP="strip" 6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6069 break 2 6070 fi 6071done 6072 done 6073IFS=$as_save_IFS 6074 6075fi 6076fi 6077ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6078if test -n "$ac_ct_STRIP"; then 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6080$as_echo "$ac_ct_STRIP" >&6; } 6081else 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6083$as_echo "no" >&6; } 6084fi 6085 6086 if test "x$ac_ct_STRIP" = x; then 6087 STRIP=":" 6088 else 6089 case $cross_compiling:$ac_tool_warned in 6090yes:) 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6093ac_tool_warned=yes ;; 6094esac 6095 STRIP=$ac_ct_STRIP 6096 fi 6097else 6098 STRIP="$ac_cv_prog_STRIP" 6099fi 6100 6101test -z "$STRIP" && STRIP=: 6102 6103 6104 6105 6106 6107 6108if test -n "$ac_tool_prefix"; then 6109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6110set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6112$as_echo_n "checking for $ac_word... " >&6; } 6113if test "${ac_cv_prog_RANLIB+set}" = set; then : 6114 $as_echo_n "(cached) " >&6 6115else 6116 if test -n "$RANLIB"; then 6117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6118else 6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6120for as_dir in $PATH 6121do 6122 IFS=$as_save_IFS 6123 test -z "$as_dir" && as_dir=. 6124 for ac_exec_ext in '' $ac_executable_extensions; do 6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6128 break 2 6129 fi 6130done 6131 done 6132IFS=$as_save_IFS 6133 6134fi 6135fi 6136RANLIB=$ac_cv_prog_RANLIB 6137if test -n "$RANLIB"; then 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6139$as_echo "$RANLIB" >&6; } 6140else 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6142$as_echo "no" >&6; } 6143fi 6144 6145 6146fi 6147if test -z "$ac_cv_prog_RANLIB"; then 6148 ac_ct_RANLIB=$RANLIB 6149 # Extract the first word of "ranlib", so it can be a program name with args. 6150set dummy ranlib; ac_word=$2 6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6152$as_echo_n "checking for $ac_word... " >&6; } 6153if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6154 $as_echo_n "(cached) " >&6 6155else 6156 if test -n "$ac_ct_RANLIB"; then 6157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6158else 6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6160for as_dir in $PATH 6161do 6162 IFS=$as_save_IFS 6163 test -z "$as_dir" && as_dir=. 6164 for ac_exec_ext in '' $ac_executable_extensions; do 6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6166 ac_cv_prog_ac_ct_RANLIB="ranlib" 6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6168 break 2 6169 fi 6170done 6171 done 6172IFS=$as_save_IFS 6173 6174fi 6175fi 6176ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6177if test -n "$ac_ct_RANLIB"; then 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6179$as_echo "$ac_ct_RANLIB" >&6; } 6180else 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6182$as_echo "no" >&6; } 6183fi 6184 6185 if test "x$ac_ct_RANLIB" = x; then 6186 RANLIB=":" 6187 else 6188 case $cross_compiling:$ac_tool_warned in 6189yes:) 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6192ac_tool_warned=yes ;; 6193esac 6194 RANLIB=$ac_ct_RANLIB 6195 fi 6196else 6197 RANLIB="$ac_cv_prog_RANLIB" 6198fi 6199 6200test -z "$RANLIB" && RANLIB=: 6201 6202 6203 6204 6205 6206 6207# Determine commands to create old-style static archives. 6208old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6209old_postinstall_cmds='chmod 644 $oldlib' 6210old_postuninstall_cmds= 6211 6212if test -n "$RANLIB"; then 6213 case $host_os in 6214 openbsd*) 6215 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6216 ;; 6217 *) 6218 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6219 ;; 6220 esac 6221 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6222fi 6223 6224case $host_os in 6225 darwin*) 6226 lock_old_archive_extraction=yes ;; 6227 *) 6228 lock_old_archive_extraction=no ;; 6229esac 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269# If no C compiler was specified, use CC. 6270LTCC=${LTCC-"$CC"} 6271 6272# If no C compiler flags were specified, use CFLAGS. 6273LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6274 6275# Allow CC to be a program name with arguments. 6276compiler=$CC 6277 6278 6279# Check for command to grab the raw symbol name followed by C symbol from nm. 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6281$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6282if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 6286# These are sane defaults that work on at least a few old systems. 6287# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6288 6289# Character class describing NM global symbol codes. 6290symcode='[BCDEGRST]' 6291 6292# Regexp to match symbols that can be accessed directly from C. 6293sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6294 6295# Define system-specific variables. 6296case $host_os in 6297aix*) 6298 symcode='[BCDT]' 6299 ;; 6300cygwin* | mingw* | pw32* | cegcc*) 6301 symcode='[ABCDGISTW]' 6302 ;; 6303hpux*) 6304 if test "$host_cpu" = ia64; then 6305 symcode='[ABCDEGRST]' 6306 fi 6307 ;; 6308irix* | nonstopux*) 6309 symcode='[BCDEGRST]' 6310 ;; 6311osf*) 6312 symcode='[BCDEGQRST]' 6313 ;; 6314solaris*) 6315 symcode='[BDRT]' 6316 ;; 6317sco3.2v5*) 6318 symcode='[DT]' 6319 ;; 6320sysv4.2uw2*) 6321 symcode='[DT]' 6322 ;; 6323sysv5* | sco5v6* | unixware* | OpenUNIX*) 6324 symcode='[ABDT]' 6325 ;; 6326sysv4) 6327 symcode='[DFNSTU]' 6328 ;; 6329esac 6330 6331# If we're using GNU nm, then use its standard symbol codes. 6332case `$NM -V 2>&1` in 6333*GNU* | *'with BFD'*) 6334 symcode='[ABCDGIRSTW]' ;; 6335esac 6336 6337# Transform an extracted symbol line into a proper C declaration. 6338# Some systems (esp. on ia64) link data and code symbols differently, 6339# so use this general approach. 6340lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6341 6342# Transform an extracted symbol line into symbol name and symbol address 6343lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6344lt_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'" 6345 6346# Handle CRLF in mingw tool chain 6347opt_cr= 6348case $build_os in 6349mingw*) 6350 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6351 ;; 6352esac 6353 6354# Try without a prefix underscore, then with it. 6355for ac_symprfx in "" "_"; do 6356 6357 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6358 symxfrm="\\1 $ac_symprfx\\2 \\2" 6359 6360 # Write the raw and C identifiers. 6361 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6362 # Fake it for dumpbin and say T for any non-static function 6363 # and D for any global variable. 6364 # Also find C++ and __fastcall symbols from MSVC++, 6365 # which start with @ or ?. 6366 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6367" {last_section=section; section=\$ 3};"\ 6368" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6369" \$ 0!~/External *\|/{next};"\ 6370" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6371" {if(hide[section]) next};"\ 6372" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6373" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6374" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6375" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6376" ' prfx=^$ac_symprfx" 6377 else 6378 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6379 fi 6380 6381 # Check to see that the pipe works correctly. 6382 pipe_works=no 6383 6384 rm -f conftest* 6385 cat > conftest.$ac_ext <<_LT_EOF 6386#ifdef __cplusplus 6387extern "C" { 6388#endif 6389char nm_test_var; 6390void nm_test_func(void); 6391void nm_test_func(void){} 6392#ifdef __cplusplus 6393} 6394#endif 6395int main(){nm_test_var='a';nm_test_func();return(0);} 6396_LT_EOF 6397 6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6399 (eval $ac_compile) 2>&5 6400 ac_status=$? 6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6402 test $ac_status = 0; }; then 6403 # Now try to grab the symbols. 6404 nlist=conftest.nm 6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6406 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6407 ac_status=$? 6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6409 test $ac_status = 0; } && test -s "$nlist"; then 6410 # Try sorting and uniquifying the output. 6411 if sort "$nlist" | uniq > "$nlist"T; then 6412 mv -f "$nlist"T "$nlist" 6413 else 6414 rm -f "$nlist"T 6415 fi 6416 6417 # Make sure that we snagged all the symbols we need. 6418 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6419 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6420 cat <<_LT_EOF > conftest.$ac_ext 6421#ifdef __cplusplus 6422extern "C" { 6423#endif 6424 6425_LT_EOF 6426 # Now generate the symbol file. 6427 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6428 6429 cat <<_LT_EOF >> conftest.$ac_ext 6430 6431/* The mapping between symbol names and symbols. */ 6432const struct { 6433 const char *name; 6434 void *address; 6435} 6436lt__PROGRAM__LTX_preloaded_symbols[] = 6437{ 6438 { "@PROGRAM@", (void *) 0 }, 6439_LT_EOF 6440 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6441 cat <<\_LT_EOF >> conftest.$ac_ext 6442 {0, (void *) 0} 6443}; 6444 6445/* This works around a problem in FreeBSD linker */ 6446#ifdef FREEBSD_WORKAROUND 6447static const void *lt_preloaded_setup() { 6448 return lt__PROGRAM__LTX_preloaded_symbols; 6449} 6450#endif 6451 6452#ifdef __cplusplus 6453} 6454#endif 6455_LT_EOF 6456 # Now try linking the two files. 6457 mv conftest.$ac_objext conftstm.$ac_objext 6458 lt_save_LIBS="$LIBS" 6459 lt_save_CFLAGS="$CFLAGS" 6460 LIBS="conftstm.$ac_objext" 6461 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6463 (eval $ac_link) 2>&5 6464 ac_status=$? 6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6466 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6467 pipe_works=yes 6468 fi 6469 LIBS="$lt_save_LIBS" 6470 CFLAGS="$lt_save_CFLAGS" 6471 else 6472 echo "cannot find nm_test_func in $nlist" >&5 6473 fi 6474 else 6475 echo "cannot find nm_test_var in $nlist" >&5 6476 fi 6477 else 6478 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6479 fi 6480 else 6481 echo "$progname: failed program was:" >&5 6482 cat conftest.$ac_ext >&5 6483 fi 6484 rm -rf conftest* conftst* 6485 6486 # Do not use the global_symbol_pipe unless it works. 6487 if test "$pipe_works" = yes; then 6488 break 6489 else 6490 lt_cv_sys_global_symbol_pipe= 6491 fi 6492done 6493 6494fi 6495 6496if test -z "$lt_cv_sys_global_symbol_pipe"; then 6497 lt_cv_sys_global_symbol_to_cdecl= 6498fi 6499if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6501$as_echo "failed" >&6; } 6502else 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6504$as_echo "ok" >&6; } 6505fi 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529# Check whether --enable-libtool-lock was given. 6530if test "${enable_libtool_lock+set}" = set; then : 6531 enableval=$enable_libtool_lock; 6532fi 6533 6534test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6535 6536# Some flags need to be propagated to the compiler or linker for good 6537# libtool support. 6538case $host in 6539ia64-*-hpux*) 6540 # Find out which ABI we are using. 6541 echo 'int i;' > conftest.$ac_ext 6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6543 (eval $ac_compile) 2>&5 6544 ac_status=$? 6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6546 test $ac_status = 0; }; then 6547 case `/usr/bin/file conftest.$ac_objext` in 6548 *ELF-32*) 6549 HPUX_IA64_MODE="32" 6550 ;; 6551 *ELF-64*) 6552 HPUX_IA64_MODE="64" 6553 ;; 6554 esac 6555 fi 6556 rm -rf conftest* 6557 ;; 6558*-*-irix6*) 6559 # Find out which ABI we are using. 6560 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6562 (eval $ac_compile) 2>&5 6563 ac_status=$? 6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6565 test $ac_status = 0; }; then 6566 if test "$lt_cv_prog_gnu_ld" = yes; then 6567 case `/usr/bin/file conftest.$ac_objext` in 6568 *32-bit*) 6569 LD="${LD-ld} -melf32bsmip" 6570 ;; 6571 *N32*) 6572 LD="${LD-ld} -melf32bmipn32" 6573 ;; 6574 *64-bit*) 6575 LD="${LD-ld} -melf64bmip" 6576 ;; 6577 esac 6578 else 6579 case `/usr/bin/file conftest.$ac_objext` in 6580 *32-bit*) 6581 LD="${LD-ld} -32" 6582 ;; 6583 *N32*) 6584 LD="${LD-ld} -n32" 6585 ;; 6586 *64-bit*) 6587 LD="${LD-ld} -64" 6588 ;; 6589 esac 6590 fi 6591 fi 6592 rm -rf conftest* 6593 ;; 6594 6595x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6596s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6597 # Find out which ABI we are using. 6598 echo 'int i;' > conftest.$ac_ext 6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6600 (eval $ac_compile) 2>&5 6601 ac_status=$? 6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6603 test $ac_status = 0; }; then 6604 case `/usr/bin/file conftest.o` in 6605 *32-bit*) 6606 case $host in 6607 x86_64-*kfreebsd*-gnu) 6608 LD="${LD-ld} -m elf_i386_fbsd" 6609 ;; 6610 x86_64-*linux*) 6611 case `/usr/bin/file conftest.o` in 6612 *x86-64*) 6613 LD="${LD-ld} -m elf32_x86_64" 6614 ;; 6615 *) 6616 LD="${LD-ld} -m elf_i386" 6617 ;; 6618 esac 6619 ;; 6620 powerpc64le-*linux*) 6621 LD="${LD-ld} -m elf32lppclinux" 6622 ;; 6623 powerpc64-*linux*) 6624 LD="${LD-ld} -m elf32ppclinux" 6625 ;; 6626 s390x-*linux*) 6627 LD="${LD-ld} -m elf_s390" 6628 ;; 6629 sparc64-*linux*) 6630 LD="${LD-ld} -m elf32_sparc" 6631 ;; 6632 esac 6633 ;; 6634 *64-bit*) 6635 case $host in 6636 x86_64-*kfreebsd*-gnu) 6637 LD="${LD-ld} -m elf_x86_64_fbsd" 6638 ;; 6639 x86_64-*linux*) 6640 LD="${LD-ld} -m elf_x86_64" 6641 ;; 6642 powerpcle-*linux*) 6643 LD="${LD-ld} -m elf64lppc" 6644 ;; 6645 powerpc-*linux*) 6646 LD="${LD-ld} -m elf64ppc" 6647 ;; 6648 s390*-*linux*|s390*-*tpf*) 6649 LD="${LD-ld} -m elf64_s390" 6650 ;; 6651 sparc*-*linux*) 6652 LD="${LD-ld} -m elf64_sparc" 6653 ;; 6654 esac 6655 ;; 6656 esac 6657 fi 6658 rm -rf conftest* 6659 ;; 6660 6661*-*-sco3.2v5*) 6662 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6663 SAVE_CFLAGS="$CFLAGS" 6664 CFLAGS="$CFLAGS -belf" 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6666$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6667if test "${lt_cv_cc_needs_belf+set}" = set; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 ac_ext=c 6671ac_cpp='$CPP $CPPFLAGS' 6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6674ac_compiler_gnu=$ac_cv_c_compiler_gnu 6675 6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6677/* end confdefs.h. */ 6678 6679int 6680main () 6681{ 6682 6683 ; 6684 return 0; 6685} 6686_ACEOF 6687if ac_fn_c_try_link "$LINENO"; then : 6688 lt_cv_cc_needs_belf=yes 6689else 6690 lt_cv_cc_needs_belf=no 6691fi 6692rm -f core conftest.err conftest.$ac_objext \ 6693 conftest$ac_exeext conftest.$ac_ext 6694 ac_ext=c 6695ac_cpp='$CPP $CPPFLAGS' 6696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6698ac_compiler_gnu=$ac_cv_c_compiler_gnu 6699 6700fi 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6702$as_echo "$lt_cv_cc_needs_belf" >&6; } 6703 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6704 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6705 CFLAGS="$SAVE_CFLAGS" 6706 fi 6707 ;; 6708sparc*-*solaris*) 6709 # Find out which ABI we are using. 6710 echo 'int i;' > conftest.$ac_ext 6711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6712 (eval $ac_compile) 2>&5 6713 ac_status=$? 6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6715 test $ac_status = 0; }; then 6716 case `/usr/bin/file conftest.o` in 6717 *64-bit*) 6718 case $lt_cv_prog_gnu_ld in 6719 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6720 *) 6721 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6722 LD="${LD-ld} -64" 6723 fi 6724 ;; 6725 esac 6726 ;; 6727 esac 6728 fi 6729 rm -rf conftest* 6730 ;; 6731esac 6732 6733need_locks="$enable_libtool_lock" 6734 6735 6736 case $host_os in 6737 rhapsody* | darwin*) 6738 if test -n "$ac_tool_prefix"; then 6739 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6740set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6742$as_echo_n "checking for $ac_word... " >&6; } 6743if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 if test -n "$DSYMUTIL"; then 6747 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6748else 6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750for as_dir in $PATH 6751do 6752 IFS=$as_save_IFS 6753 test -z "$as_dir" && as_dir=. 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6756 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760done 6761 done 6762IFS=$as_save_IFS 6763 6764fi 6765fi 6766DSYMUTIL=$ac_cv_prog_DSYMUTIL 6767if test -n "$DSYMUTIL"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6769$as_echo "$DSYMUTIL" >&6; } 6770else 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772$as_echo "no" >&6; } 6773fi 6774 6775 6776fi 6777if test -z "$ac_cv_prog_DSYMUTIL"; then 6778 ac_ct_DSYMUTIL=$DSYMUTIL 6779 # Extract the first word of "dsymutil", so it can be a program name with args. 6780set dummy dsymutil; ac_word=$2 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6782$as_echo_n "checking for $ac_word... " >&6; } 6783if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6784 $as_echo_n "(cached) " >&6 6785else 6786 if test -n "$ac_ct_DSYMUTIL"; then 6787 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6788else 6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6790for as_dir in $PATH 6791do 6792 IFS=$as_save_IFS 6793 test -z "$as_dir" && as_dir=. 6794 for ac_exec_ext in '' $ac_executable_extensions; do 6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6796 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6798 break 2 6799 fi 6800done 6801 done 6802IFS=$as_save_IFS 6803 6804fi 6805fi 6806ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6807if test -n "$ac_ct_DSYMUTIL"; then 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6809$as_echo "$ac_ct_DSYMUTIL" >&6; } 6810else 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6812$as_echo "no" >&6; } 6813fi 6814 6815 if test "x$ac_ct_DSYMUTIL" = x; then 6816 DSYMUTIL=":" 6817 else 6818 case $cross_compiling:$ac_tool_warned in 6819yes:) 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6822ac_tool_warned=yes ;; 6823esac 6824 DSYMUTIL=$ac_ct_DSYMUTIL 6825 fi 6826else 6827 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6828fi 6829 6830 if test -n "$ac_tool_prefix"; then 6831 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6832set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6834$as_echo_n "checking for $ac_word... " >&6; } 6835if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 if test -n "$NMEDIT"; then 6839 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6840else 6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6842for as_dir in $PATH 6843do 6844 IFS=$as_save_IFS 6845 test -z "$as_dir" && as_dir=. 6846 for ac_exec_ext in '' $ac_executable_extensions; do 6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6848 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6850 break 2 6851 fi 6852done 6853 done 6854IFS=$as_save_IFS 6855 6856fi 6857fi 6858NMEDIT=$ac_cv_prog_NMEDIT 6859if test -n "$NMEDIT"; then 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6861$as_echo "$NMEDIT" >&6; } 6862else 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6864$as_echo "no" >&6; } 6865fi 6866 6867 6868fi 6869if test -z "$ac_cv_prog_NMEDIT"; then 6870 ac_ct_NMEDIT=$NMEDIT 6871 # Extract the first word of "nmedit", so it can be a program name with args. 6872set dummy nmedit; ac_word=$2 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6874$as_echo_n "checking for $ac_word... " >&6; } 6875if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6876 $as_echo_n "(cached) " >&6 6877else 6878 if test -n "$ac_ct_NMEDIT"; then 6879 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6880else 6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6882for as_dir in $PATH 6883do 6884 IFS=$as_save_IFS 6885 test -z "$as_dir" && as_dir=. 6886 for ac_exec_ext in '' $ac_executable_extensions; do 6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6888 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6890 break 2 6891 fi 6892done 6893 done 6894IFS=$as_save_IFS 6895 6896fi 6897fi 6898ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6899if test -n "$ac_ct_NMEDIT"; then 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6901$as_echo "$ac_ct_NMEDIT" >&6; } 6902else 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6904$as_echo "no" >&6; } 6905fi 6906 6907 if test "x$ac_ct_NMEDIT" = x; then 6908 NMEDIT=":" 6909 else 6910 case $cross_compiling:$ac_tool_warned in 6911yes:) 6912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6914ac_tool_warned=yes ;; 6915esac 6916 NMEDIT=$ac_ct_NMEDIT 6917 fi 6918else 6919 NMEDIT="$ac_cv_prog_NMEDIT" 6920fi 6921 6922 if test -n "$ac_tool_prefix"; then 6923 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6924set dummy ${ac_tool_prefix}lipo; ac_word=$2 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6926$as_echo_n "checking for $ac_word... " >&6; } 6927if test "${ac_cv_prog_LIPO+set}" = set; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 if test -n "$LIPO"; then 6931 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6932else 6933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6934for as_dir in $PATH 6935do 6936 IFS=$as_save_IFS 6937 test -z "$as_dir" && as_dir=. 6938 for ac_exec_ext in '' $ac_executable_extensions; do 6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6940 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6942 break 2 6943 fi 6944done 6945 done 6946IFS=$as_save_IFS 6947 6948fi 6949fi 6950LIPO=$ac_cv_prog_LIPO 6951if test -n "$LIPO"; then 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6953$as_echo "$LIPO" >&6; } 6954else 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6956$as_echo "no" >&6; } 6957fi 6958 6959 6960fi 6961if test -z "$ac_cv_prog_LIPO"; then 6962 ac_ct_LIPO=$LIPO 6963 # Extract the first word of "lipo", so it can be a program name with args. 6964set dummy lipo; ac_word=$2 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6966$as_echo_n "checking for $ac_word... " >&6; } 6967if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 if test -n "$ac_ct_LIPO"; then 6971 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6972else 6973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6974for as_dir in $PATH 6975do 6976 IFS=$as_save_IFS 6977 test -z "$as_dir" && as_dir=. 6978 for ac_exec_ext in '' $ac_executable_extensions; do 6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6980 ac_cv_prog_ac_ct_LIPO="lipo" 6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6982 break 2 6983 fi 6984done 6985 done 6986IFS=$as_save_IFS 6987 6988fi 6989fi 6990ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6991if test -n "$ac_ct_LIPO"; then 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6993$as_echo "$ac_ct_LIPO" >&6; } 6994else 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6996$as_echo "no" >&6; } 6997fi 6998 6999 if test "x$ac_ct_LIPO" = x; then 7000 LIPO=":" 7001 else 7002 case $cross_compiling:$ac_tool_warned in 7003yes:) 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7006ac_tool_warned=yes ;; 7007esac 7008 LIPO=$ac_ct_LIPO 7009 fi 7010else 7011 LIPO="$ac_cv_prog_LIPO" 7012fi 7013 7014 if test -n "$ac_tool_prefix"; then 7015 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7016set dummy ${ac_tool_prefix}otool; ac_word=$2 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7018$as_echo_n "checking for $ac_word... " >&6; } 7019if test "${ac_cv_prog_OTOOL+set}" = set; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 if test -n "$OTOOL"; then 7023 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7024else 7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7026for as_dir in $PATH 7027do 7028 IFS=$as_save_IFS 7029 test -z "$as_dir" && as_dir=. 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7032 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7034 break 2 7035 fi 7036done 7037 done 7038IFS=$as_save_IFS 7039 7040fi 7041fi 7042OTOOL=$ac_cv_prog_OTOOL 7043if test -n "$OTOOL"; then 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7045$as_echo "$OTOOL" >&6; } 7046else 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7048$as_echo "no" >&6; } 7049fi 7050 7051 7052fi 7053if test -z "$ac_cv_prog_OTOOL"; then 7054 ac_ct_OTOOL=$OTOOL 7055 # Extract the first word of "otool", so it can be a program name with args. 7056set dummy otool; ac_word=$2 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7058$as_echo_n "checking for $ac_word... " >&6; } 7059if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 if test -n "$ac_ct_OTOOL"; then 7063 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7064else 7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7066for as_dir in $PATH 7067do 7068 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7072 ac_cv_prog_ac_ct_OTOOL="otool" 7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077 done 7078IFS=$as_save_IFS 7079 7080fi 7081fi 7082ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7083if test -n "$ac_ct_OTOOL"; then 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7085$as_echo "$ac_ct_OTOOL" >&6; } 7086else 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7088$as_echo "no" >&6; } 7089fi 7090 7091 if test "x$ac_ct_OTOOL" = x; then 7092 OTOOL=":" 7093 else 7094 case $cross_compiling:$ac_tool_warned in 7095yes:) 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7098ac_tool_warned=yes ;; 7099esac 7100 OTOOL=$ac_ct_OTOOL 7101 fi 7102else 7103 OTOOL="$ac_cv_prog_OTOOL" 7104fi 7105 7106 if test -n "$ac_tool_prefix"; then 7107 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7108set dummy ${ac_tool_prefix}otool64; ac_word=$2 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7110$as_echo_n "checking for $ac_word... " >&6; } 7111if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7112 $as_echo_n "(cached) " >&6 7113else 7114 if test -n "$OTOOL64"; then 7115 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7116else 7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7118for as_dir in $PATH 7119do 7120 IFS=$as_save_IFS 7121 test -z "$as_dir" && as_dir=. 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7124 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128done 7129 done 7130IFS=$as_save_IFS 7131 7132fi 7133fi 7134OTOOL64=$ac_cv_prog_OTOOL64 7135if test -n "$OTOOL64"; then 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7137$as_echo "$OTOOL64" >&6; } 7138else 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7140$as_echo "no" >&6; } 7141fi 7142 7143 7144fi 7145if test -z "$ac_cv_prog_OTOOL64"; then 7146 ac_ct_OTOOL64=$OTOOL64 7147 # Extract the first word of "otool64", so it can be a program name with args. 7148set dummy otool64; ac_word=$2 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150$as_echo_n "checking for $ac_word... " >&6; } 7151if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 if test -n "$ac_ct_OTOOL64"; then 7155 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7156else 7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7158for as_dir in $PATH 7159do 7160 IFS=$as_save_IFS 7161 test -z "$as_dir" && as_dir=. 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7164 ac_cv_prog_ac_ct_OTOOL64="otool64" 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7166 break 2 7167 fi 7168done 7169 done 7170IFS=$as_save_IFS 7171 7172fi 7173fi 7174ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7175if test -n "$ac_ct_OTOOL64"; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7177$as_echo "$ac_ct_OTOOL64" >&6; } 7178else 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7180$as_echo "no" >&6; } 7181fi 7182 7183 if test "x$ac_ct_OTOOL64" = x; then 7184 OTOOL64=":" 7185 else 7186 case $cross_compiling:$ac_tool_warned in 7187yes:) 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7190ac_tool_warned=yes ;; 7191esac 7192 OTOOL64=$ac_ct_OTOOL64 7193 fi 7194else 7195 OTOOL64="$ac_cv_prog_OTOOL64" 7196fi 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7225$as_echo_n "checking for -single_module linker flag... " >&6; } 7226if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 lt_cv_apple_cc_single_mod=no 7230 if test -z "${LT_MULTI_MODULE}"; then 7231 # By default we will add the -single_module flag. You can override 7232 # by either setting the environment variable LT_MULTI_MODULE 7233 # non-empty at configure time, or by adding -multi_module to the 7234 # link flags. 7235 rm -rf libconftest.dylib* 7236 echo "int foo(void){return 1;}" > conftest.c 7237 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7238-dynamiclib -Wl,-single_module conftest.c" >&5 7239 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7240 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7241 _lt_result=$? 7242 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7243 lt_cv_apple_cc_single_mod=yes 7244 else 7245 cat conftest.err >&5 7246 fi 7247 rm -rf libconftest.dylib* 7248 rm -f conftest.* 7249 fi 7250fi 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7252$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7254$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7255if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 lt_cv_ld_exported_symbols_list=no 7259 save_LDFLAGS=$LDFLAGS 7260 echo "_main" > conftest.sym 7261 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263/* end confdefs.h. */ 7264 7265int 7266main () 7267{ 7268 7269 ; 7270 return 0; 7271} 7272_ACEOF 7273if ac_fn_c_try_link "$LINENO"; then : 7274 lt_cv_ld_exported_symbols_list=yes 7275else 7276 lt_cv_ld_exported_symbols_list=no 7277fi 7278rm -f core conftest.err conftest.$ac_objext \ 7279 conftest$ac_exeext conftest.$ac_ext 7280 LDFLAGS="$save_LDFLAGS" 7281 7282fi 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7284$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7286$as_echo_n "checking for -force_load linker flag... " >&6; } 7287if test "${lt_cv_ld_force_load+set}" = set; then : 7288 $as_echo_n "(cached) " >&6 7289else 7290 lt_cv_ld_force_load=no 7291 cat > conftest.c << _LT_EOF 7292int forced_loaded() { return 2;} 7293_LT_EOF 7294 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7295 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7296 echo "$AR cru libconftest.a conftest.o" >&5 7297 $AR cru libconftest.a conftest.o 2>&5 7298 cat > conftest.c << _LT_EOF 7299int main() { return 0;} 7300_LT_EOF 7301 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7302 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7303 _lt_result=$? 7304 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7305 lt_cv_ld_force_load=yes 7306 else 7307 cat conftest.err >&5 7308 fi 7309 rm -f conftest.err libconftest.a conftest conftest.c 7310 rm -rf conftest.dSYM 7311 7312fi 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7314$as_echo "$lt_cv_ld_force_load" >&6; } 7315 case $host_os in 7316 rhapsody* | darwin1.[012]) 7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7318 darwin1.*) 7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7320 darwin*) # darwin 5.x on 7321 # if running on 10.5 or later, the deployment target defaults 7322 # to the OS version, if on x86, and 10.4, the deployment 7323 # target defaults to 10.4. Don't you love it? 7324 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7325 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7327 10.[012]*) 7328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7329 10.*) 7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7331 esac 7332 ;; 7333 esac 7334 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7335 _lt_dar_single_mod='$single_module' 7336 fi 7337 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7338 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7339 else 7340 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7341 fi 7342 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7343 _lt_dsymutil='~$DSYMUTIL $lib || :' 7344 else 7345 _lt_dsymutil= 7346 fi 7347 ;; 7348 esac 7349 7350ac_ext=c 7351ac_cpp='$CPP $CPPFLAGS' 7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7354ac_compiler_gnu=$ac_cv_c_compiler_gnu 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7356$as_echo_n "checking how to run the C preprocessor... " >&6; } 7357# On Suns, sometimes $CPP names a directory. 7358if test -n "$CPP" && test -d "$CPP"; then 7359 CPP= 7360fi 7361if test -z "$CPP"; then 7362 if test "${ac_cv_prog_CPP+set}" = set; then : 7363 $as_echo_n "(cached) " >&6 7364else 7365 # Double quotes because CPP needs to be expanded 7366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7367 do 7368 ac_preproc_ok=false 7369for ac_c_preproc_warn_flag in '' yes 7370do 7371 # Use a header file that comes with gcc, so configuring glibc 7372 # with a fresh cross-compiler works. 7373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7374 # <limits.h> exists even on freestanding compilers. 7375 # On the NeXT, cc -E runs the code through the compiler's parser, 7376 # not just through cpp. "Syntax error" is here to catch this case. 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379#ifdef __STDC__ 7380# include <limits.h> 7381#else 7382# include <assert.h> 7383#endif 7384 Syntax error 7385_ACEOF 7386if ac_fn_c_try_cpp "$LINENO"; then : 7387 7388else 7389 # Broken: fails on valid input. 7390continue 7391fi 7392rm -f conftest.err conftest.$ac_ext 7393 7394 # OK, works on sane cases. Now check whether nonexistent headers 7395 # can be detected and how. 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398#include <ac_nonexistent.h> 7399_ACEOF 7400if ac_fn_c_try_cpp "$LINENO"; then : 7401 # Broken: success on invalid input. 7402continue 7403else 7404 # Passes both tests. 7405ac_preproc_ok=: 7406break 7407fi 7408rm -f conftest.err conftest.$ac_ext 7409 7410done 7411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7412rm -f conftest.err conftest.$ac_ext 7413if $ac_preproc_ok; then : 7414 break 7415fi 7416 7417 done 7418 ac_cv_prog_CPP=$CPP 7419 7420fi 7421 CPP=$ac_cv_prog_CPP 7422else 7423 ac_cv_prog_CPP=$CPP 7424fi 7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7426$as_echo "$CPP" >&6; } 7427ac_preproc_ok=false 7428for ac_c_preproc_warn_flag in '' yes 7429do 7430 # Use a header file that comes with gcc, so configuring glibc 7431 # with a fresh cross-compiler works. 7432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7433 # <limits.h> exists even on freestanding compilers. 7434 # On the NeXT, cc -E runs the code through the compiler's parser, 7435 # not just through cpp. "Syntax error" is here to catch this case. 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437/* end confdefs.h. */ 7438#ifdef __STDC__ 7439# include <limits.h> 7440#else 7441# include <assert.h> 7442#endif 7443 Syntax error 7444_ACEOF 7445if ac_fn_c_try_cpp "$LINENO"; then : 7446 7447else 7448 # Broken: fails on valid input. 7449continue 7450fi 7451rm -f conftest.err conftest.$ac_ext 7452 7453 # OK, works on sane cases. Now check whether nonexistent headers 7454 # can be detected and how. 7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456/* end confdefs.h. */ 7457#include <ac_nonexistent.h> 7458_ACEOF 7459if ac_fn_c_try_cpp "$LINENO"; then : 7460 # Broken: success on invalid input. 7461continue 7462else 7463 # Passes both tests. 7464ac_preproc_ok=: 7465break 7466fi 7467rm -f conftest.err conftest.$ac_ext 7468 7469done 7470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7471rm -f conftest.err conftest.$ac_ext 7472if $ac_preproc_ok; then : 7473 7474else 7475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7477as_fn_error "C preprocessor \"$CPP\" fails sanity check 7478See \`config.log' for more details." "$LINENO" 5; } 7479fi 7480 7481ac_ext=c 7482ac_cpp='$CPP $CPPFLAGS' 7483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7485ac_compiler_gnu=$ac_cv_c_compiler_gnu 7486 7487 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7489$as_echo_n "checking for ANSI C header files... " >&6; } 7490if test "${ac_cv_header_stdc+set}" = set; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7494/* end confdefs.h. */ 7495#include <stdlib.h> 7496#include <stdarg.h> 7497#include <string.h> 7498#include <float.h> 7499 7500int 7501main () 7502{ 7503 7504 ; 7505 return 0; 7506} 7507_ACEOF 7508if ac_fn_c_try_compile "$LINENO"; then : 7509 ac_cv_header_stdc=yes 7510else 7511 ac_cv_header_stdc=no 7512fi 7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7514 7515if test $ac_cv_header_stdc = yes; then 7516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519#include <string.h> 7520 7521_ACEOF 7522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7523 $EGREP "memchr" >/dev/null 2>&1; then : 7524 7525else 7526 ac_cv_header_stdc=no 7527fi 7528rm -f conftest* 7529 7530fi 7531 7532if test $ac_cv_header_stdc = yes; then 7533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536#include <stdlib.h> 7537 7538_ACEOF 7539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7540 $EGREP "free" >/dev/null 2>&1; then : 7541 7542else 7543 ac_cv_header_stdc=no 7544fi 7545rm -f conftest* 7546 7547fi 7548 7549if test $ac_cv_header_stdc = yes; then 7550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7551 if test "$cross_compiling" = yes; then : 7552 : 7553else 7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7555/* end confdefs.h. */ 7556#include <ctype.h> 7557#include <stdlib.h> 7558#if ((' ' & 0x0FF) == 0x020) 7559# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7560# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7561#else 7562# define ISLOWER(c) \ 7563 (('a' <= (c) && (c) <= 'i') \ 7564 || ('j' <= (c) && (c) <= 'r') \ 7565 || ('s' <= (c) && (c) <= 'z')) 7566# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7567#endif 7568 7569#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7570int 7571main () 7572{ 7573 int i; 7574 for (i = 0; i < 256; i++) 7575 if (XOR (islower (i), ISLOWER (i)) 7576 || toupper (i) != TOUPPER (i)) 7577 return 2; 7578 return 0; 7579} 7580_ACEOF 7581if ac_fn_c_try_run "$LINENO"; then : 7582 7583else 7584 ac_cv_header_stdc=no 7585fi 7586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7587 conftest.$ac_objext conftest.beam conftest.$ac_ext 7588fi 7589 7590fi 7591fi 7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7593$as_echo "$ac_cv_header_stdc" >&6; } 7594if test $ac_cv_header_stdc = yes; then 7595 7596$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7597 7598fi 7599 7600# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7602 inttypes.h stdint.h unistd.h 7603do : 7604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7605ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7606" 7607eval as_val=\$$as_ac_Header 7608 if test "x$as_val" = x""yes; then : 7609 cat >>confdefs.h <<_ACEOF 7610#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7611_ACEOF 7612 7613fi 7614 7615done 7616 7617 7618for ac_header in dlfcn.h 7619do : 7620 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7621" 7622if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7623 cat >>confdefs.h <<_ACEOF 7624#define HAVE_DLFCN_H 1 7625_ACEOF 7626 7627fi 7628 7629done 7630 7631 7632 7633 7634 7635# Set options 7636 7637 7638 7639 enable_dlopen=no 7640 7641 7642 enable_win32_dll=no 7643 7644 7645 # Check whether --enable-shared was given. 7646if test "${enable_shared+set}" = set; then : 7647 enableval=$enable_shared; p=${PACKAGE-default} 7648 case $enableval in 7649 yes) enable_shared=yes ;; 7650 no) enable_shared=no ;; 7651 *) 7652 enable_shared=no 7653 # Look at the argument we got. We use all the common list separators. 7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7655 for pkg in $enableval; do 7656 IFS="$lt_save_ifs" 7657 if test "X$pkg" = "X$p"; then 7658 enable_shared=yes 7659 fi 7660 done 7661 IFS="$lt_save_ifs" 7662 ;; 7663 esac 7664else 7665 enable_shared=yes 7666fi 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 # Check whether --enable-static was given. 7677if test "${enable_static+set}" = set; then : 7678 enableval=$enable_static; p=${PACKAGE-default} 7679 case $enableval in 7680 yes) enable_static=yes ;; 7681 no) enable_static=no ;; 7682 *) 7683 enable_static=no 7684 # Look at the argument we got. We use all the common list separators. 7685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7686 for pkg in $enableval; do 7687 IFS="$lt_save_ifs" 7688 if test "X$pkg" = "X$p"; then 7689 enable_static=yes 7690 fi 7691 done 7692 IFS="$lt_save_ifs" 7693 ;; 7694 esac 7695else 7696 enable_static=yes 7697fi 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708# Check whether --with-pic was given. 7709if test "${with_pic+set}" = set; then : 7710 withval=$with_pic; pic_mode="$withval" 7711else 7712 pic_mode=default 7713fi 7714 7715 7716test -z "$pic_mode" && pic_mode=default 7717 7718 7719 7720 7721 7722 7723 7724 # Check whether --enable-fast-install was given. 7725if test "${enable_fast_install+set}" = set; then : 7726 enableval=$enable_fast_install; p=${PACKAGE-default} 7727 case $enableval in 7728 yes) enable_fast_install=yes ;; 7729 no) enable_fast_install=no ;; 7730 *) 7731 enable_fast_install=no 7732 # Look at the argument we got. We use all the common list separators. 7733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7734 for pkg in $enableval; do 7735 IFS="$lt_save_ifs" 7736 if test "X$pkg" = "X$p"; then 7737 enable_fast_install=yes 7738 fi 7739 done 7740 IFS="$lt_save_ifs" 7741 ;; 7742 esac 7743else 7744 enable_fast_install=yes 7745fi 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757# This can be used to rebuild libtool when needed 7758LIBTOOL_DEPS="$ltmain" 7759 7760# Always use our own libtool. 7761LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788test -z "$LN_S" && LN_S="ln -s" 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803if test -n "${ZSH_VERSION+set}" ; then 7804 setopt NO_GLOB_SUBST 7805fi 7806 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7808$as_echo_n "checking for objdir... " >&6; } 7809if test "${lt_cv_objdir+set}" = set; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 rm -f .libs 2>/dev/null 7813mkdir .libs 2>/dev/null 7814if test -d .libs; then 7815 lt_cv_objdir=.libs 7816else 7817 # MS-DOS does not allow filenames that begin with a dot. 7818 lt_cv_objdir=_libs 7819fi 7820rmdir .libs 2>/dev/null 7821fi 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7823$as_echo "$lt_cv_objdir" >&6; } 7824objdir=$lt_cv_objdir 7825 7826 7827 7828 7829 7830cat >>confdefs.h <<_ACEOF 7831#define LT_OBJDIR "$lt_cv_objdir/" 7832_ACEOF 7833 7834 7835 7836 7837case $host_os in 7838aix3*) 7839 # AIX sometimes has problems with the GCC collect2 program. For some 7840 # reason, if we set the COLLECT_NAMES environment variable, the problems 7841 # vanish in a puff of smoke. 7842 if test "X${COLLECT_NAMES+set}" != Xset; then 7843 COLLECT_NAMES= 7844 export COLLECT_NAMES 7845 fi 7846 ;; 7847esac 7848 7849# Global variables: 7850ofile=libtool 7851can_build_shared=yes 7852 7853# All known linkers require a `.a' archive for static linking (except MSVC, 7854# which needs '.lib'). 7855libext=a 7856 7857with_gnu_ld="$lt_cv_prog_gnu_ld" 7858 7859old_CC="$CC" 7860old_CFLAGS="$CFLAGS" 7861 7862# Set sane defaults for various variables 7863test -z "$CC" && CC=cc 7864test -z "$LTCC" && LTCC=$CC 7865test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7866test -z "$LD" && LD=ld 7867test -z "$ac_objext" && ac_objext=o 7868 7869for cc_temp in $compiler""; do 7870 case $cc_temp in 7871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7873 \-*) ;; 7874 *) break;; 7875 esac 7876done 7877cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7878 7879 7880# Only perform the check for file, if the check method requires it 7881test -z "$MAGIC_CMD" && MAGIC_CMD=file 7882case $deplibs_check_method in 7883file_magic*) 7884 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7886$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7887if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7888 $as_echo_n "(cached) " >&6 7889else 7890 case $MAGIC_CMD in 7891[\\/*] | ?:[\\/]*) 7892 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7893 ;; 7894*) 7895 lt_save_MAGIC_CMD="$MAGIC_CMD" 7896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7898 for ac_dir in $ac_dummy; do 7899 IFS="$lt_save_ifs" 7900 test -z "$ac_dir" && ac_dir=. 7901 if test -f $ac_dir/${ac_tool_prefix}file; then 7902 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7903 if test -n "$file_magic_test_file"; then 7904 case $deplibs_check_method in 7905 "file_magic "*) 7906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7909 $EGREP "$file_magic_regex" > /dev/null; then 7910 : 7911 else 7912 cat <<_LT_EOF 1>&2 7913 7914*** Warning: the command libtool uses to detect shared libraries, 7915*** $file_magic_cmd, produces output that libtool cannot recognize. 7916*** The result is that libtool may fail to recognize shared libraries 7917*** as such. This will affect the creation of libtool libraries that 7918*** depend on shared libraries, but programs linked with such libtool 7919*** libraries will work regardless of this problem. Nevertheless, you 7920*** may want to report the problem to your system manager and/or to 7921*** bug-libtool@gnu.org 7922 7923_LT_EOF 7924 fi ;; 7925 esac 7926 fi 7927 break 7928 fi 7929 done 7930 IFS="$lt_save_ifs" 7931 MAGIC_CMD="$lt_save_MAGIC_CMD" 7932 ;; 7933esac 7934fi 7935 7936MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7937if test -n "$MAGIC_CMD"; then 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7939$as_echo "$MAGIC_CMD" >&6; } 7940else 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942$as_echo "no" >&6; } 7943fi 7944 7945 7946 7947 7948 7949if test -z "$lt_cv_path_MAGIC_CMD"; then 7950 if test -n "$ac_tool_prefix"; then 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7952$as_echo_n "checking for file... " >&6; } 7953if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 case $MAGIC_CMD in 7957[\\/*] | ?:[\\/]*) 7958 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7959 ;; 7960*) 7961 lt_save_MAGIC_CMD="$MAGIC_CMD" 7962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7963 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7964 for ac_dir in $ac_dummy; do 7965 IFS="$lt_save_ifs" 7966 test -z "$ac_dir" && ac_dir=. 7967 if test -f $ac_dir/file; then 7968 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7969 if test -n "$file_magic_test_file"; then 7970 case $deplibs_check_method in 7971 "file_magic "*) 7972 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7974 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7975 $EGREP "$file_magic_regex" > /dev/null; then 7976 : 7977 else 7978 cat <<_LT_EOF 1>&2 7979 7980*** Warning: the command libtool uses to detect shared libraries, 7981*** $file_magic_cmd, produces output that libtool cannot recognize. 7982*** The result is that libtool may fail to recognize shared libraries 7983*** as such. This will affect the creation of libtool libraries that 7984*** depend on shared libraries, but programs linked with such libtool 7985*** libraries will work regardless of this problem. Nevertheless, you 7986*** may want to report the problem to your system manager and/or to 7987*** bug-libtool@gnu.org 7988 7989_LT_EOF 7990 fi ;; 7991 esac 7992 fi 7993 break 7994 fi 7995 done 7996 IFS="$lt_save_ifs" 7997 MAGIC_CMD="$lt_save_MAGIC_CMD" 7998 ;; 7999esac 8000fi 8001 8002MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8003if test -n "$MAGIC_CMD"; then 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8005$as_echo "$MAGIC_CMD" >&6; } 8006else 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8008$as_echo "no" >&6; } 8009fi 8010 8011 8012 else 8013 MAGIC_CMD=: 8014 fi 8015fi 8016 8017 fi 8018 ;; 8019esac 8020 8021# Use C for the default configuration in the libtool script 8022 8023lt_save_CC="$CC" 8024ac_ext=c 8025ac_cpp='$CPP $CPPFLAGS' 8026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8028ac_compiler_gnu=$ac_cv_c_compiler_gnu 8029 8030 8031# Source file extension for C test sources. 8032ac_ext=c 8033 8034# Object file extension for compiled C test sources. 8035objext=o 8036objext=$objext 8037 8038# Code to be used in simple compile tests 8039lt_simple_compile_test_code="int some_variable = 0;" 8040 8041# Code to be used in simple link tests 8042lt_simple_link_test_code='int main(){return(0);}' 8043 8044 8045 8046 8047 8048 8049 8050# If no C compiler was specified, use CC. 8051LTCC=${LTCC-"$CC"} 8052 8053# If no C compiler flags were specified, use CFLAGS. 8054LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8055 8056# Allow CC to be a program name with arguments. 8057compiler=$CC 8058 8059# Save the default compiler, since it gets overwritten when the other 8060# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8061compiler_DEFAULT=$CC 8062 8063# save warnings/boilerplate of simple test code 8064ac_outfile=conftest.$ac_objext 8065echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8066eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8067_lt_compiler_boilerplate=`cat conftest.err` 8068$RM conftest* 8069 8070ac_outfile=conftest.$ac_objext 8071echo "$lt_simple_link_test_code" >conftest.$ac_ext 8072eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8073_lt_linker_boilerplate=`cat conftest.err` 8074$RM -r conftest* 8075 8076 8077## CAVEAT EMPTOR: 8078## There is no encapsulation within the following macros, do not change 8079## the running order or otherwise move them around unless you know exactly 8080## what you are doing... 8081if test -n "$compiler"; then 8082 8083lt_prog_compiler_no_builtin_flag= 8084 8085if test "$GCC" = yes; then 8086 case $cc_basename in 8087 nvcc*) 8088 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8089 *) 8090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8091 esac 8092 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8094$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8095if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8096 $as_echo_n "(cached) " >&6 8097else 8098 lt_cv_prog_compiler_rtti_exceptions=no 8099 ac_outfile=conftest.$ac_objext 8100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8101 lt_compiler_flag="-fno-rtti -fno-exceptions" 8102 # Insert the option either (1) after the last *FLAGS variable, or 8103 # (2) before a word containing "conftest.", or (3) at the end. 8104 # Note that $ac_compile itself does not contain backslashes and begins 8105 # with a dollar sign (not a hyphen), so the echo should work correctly. 8106 # The option is referenced via a variable to avoid confusing sed. 8107 lt_compile=`echo "$ac_compile" | $SED \ 8108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8110 -e 's:$: $lt_compiler_flag:'` 8111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8112 (eval "$lt_compile" 2>conftest.err) 8113 ac_status=$? 8114 cat conftest.err >&5 8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8116 if (exit $ac_status) && test -s "$ac_outfile"; then 8117 # The compiler can only warn and ignore the option if not recognized 8118 # So say no if there are warnings other than the usual output. 8119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8122 lt_cv_prog_compiler_rtti_exceptions=yes 8123 fi 8124 fi 8125 $RM conftest* 8126 8127fi 8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8129$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8130 8131if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8133else 8134 : 8135fi 8136 8137fi 8138 8139 8140 8141 8142 8143 8144 lt_prog_compiler_wl= 8145lt_prog_compiler_pic= 8146lt_prog_compiler_static= 8147 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8149$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8150 8151 if test "$GCC" = yes; then 8152 lt_prog_compiler_wl='-Wl,' 8153 lt_prog_compiler_static='-static' 8154 8155 case $host_os in 8156 aix*) 8157 # All AIX code is PIC. 8158 if test "$host_cpu" = ia64; then 8159 # AIX 5 now supports IA64 processor 8160 lt_prog_compiler_static='-Bstatic' 8161 fi 8162 lt_prog_compiler_pic='-fPIC' 8163 ;; 8164 8165 amigaos*) 8166 case $host_cpu in 8167 powerpc) 8168 # see comment about AmigaOS4 .so support 8169 lt_prog_compiler_pic='-fPIC' 8170 ;; 8171 m68k) 8172 # FIXME: we need at least 68020 code to build shared libraries, but 8173 # adding the `-m68020' flag to GCC prevents building anything better, 8174 # like `-m68040'. 8175 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8176 ;; 8177 esac 8178 ;; 8179 8180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8181 # PIC is the default for these OSes. 8182 ;; 8183 8184 mingw* | cygwin* | pw32* | os2* | cegcc*) 8185 # This hack is so that the source file can tell whether it is being 8186 # built for inclusion in a dll (and should export symbols for example). 8187 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8188 # (--disable-auto-import) libraries 8189 lt_prog_compiler_pic='-DDLL_EXPORT' 8190 ;; 8191 8192 darwin* | rhapsody*) 8193 # PIC is the default on this platform 8194 # Common symbols not allowed in MH_DYLIB files 8195 lt_prog_compiler_pic='-fno-common' 8196 ;; 8197 8198 haiku*) 8199 # PIC is the default for Haiku. 8200 # The "-static" flag exists, but is broken. 8201 lt_prog_compiler_static= 8202 ;; 8203 8204 hpux*) 8205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8207 # sets the default TLS model and affects inlining. 8208 case $host_cpu in 8209 hppa*64*) 8210 # +Z the default 8211 ;; 8212 *) 8213 lt_prog_compiler_pic='-fPIC' 8214 ;; 8215 esac 8216 ;; 8217 8218 interix[3-9]*) 8219 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8220 # Instead, we relocate shared libraries at runtime. 8221 ;; 8222 8223 msdosdjgpp*) 8224 # Just because we use GCC doesn't mean we suddenly get shared libraries 8225 # on systems that don't support them. 8226 lt_prog_compiler_can_build_shared=no 8227 enable_shared=no 8228 ;; 8229 8230 *nto* | *qnx*) 8231 # QNX uses GNU C++, but need to define -shared option too, otherwise 8232 # it will coredump. 8233 lt_prog_compiler_pic='-fPIC -shared' 8234 ;; 8235 8236 sysv4*MP*) 8237 if test -d /usr/nec; then 8238 lt_prog_compiler_pic=-Kconform_pic 8239 fi 8240 ;; 8241 8242 *) 8243 lt_prog_compiler_pic='-fPIC' 8244 ;; 8245 esac 8246 8247 case $cc_basename in 8248 nvcc*) # Cuda Compiler Driver 2.2 8249 lt_prog_compiler_wl='-Xlinker ' 8250 lt_prog_compiler_pic='-Xcompiler -fPIC' 8251 ;; 8252 esac 8253 else 8254 # PORTME Check for flag to pass linker flags through the system compiler. 8255 case $host_os in 8256 aix*) 8257 lt_prog_compiler_wl='-Wl,' 8258 if test "$host_cpu" = ia64; then 8259 # AIX 5 now supports IA64 processor 8260 lt_prog_compiler_static='-Bstatic' 8261 else 8262 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8263 fi 8264 ;; 8265 8266 mingw* | cygwin* | pw32* | os2* | cegcc*) 8267 # This hack is so that the source file can tell whether it is being 8268 # built for inclusion in a dll (and should export symbols for example). 8269 lt_prog_compiler_pic='-DDLL_EXPORT' 8270 ;; 8271 8272 hpux9* | hpux10* | hpux11*) 8273 lt_prog_compiler_wl='-Wl,' 8274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8275 # not for PA HP-UX. 8276 case $host_cpu in 8277 hppa*64*|ia64*) 8278 # +Z the default 8279 ;; 8280 *) 8281 lt_prog_compiler_pic='+Z' 8282 ;; 8283 esac 8284 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8285 lt_prog_compiler_static='${wl}-a ${wl}archive' 8286 ;; 8287 8288 irix5* | irix6* | nonstopux*) 8289 lt_prog_compiler_wl='-Wl,' 8290 # PIC (with -KPIC) is the default. 8291 lt_prog_compiler_static='-non_shared' 8292 ;; 8293 8294 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8295 case $cc_basename in 8296 # old Intel for x86_64 which still supported -KPIC. 8297 ecc*) 8298 lt_prog_compiler_wl='-Wl,' 8299 lt_prog_compiler_pic='-KPIC' 8300 lt_prog_compiler_static='-static' 8301 ;; 8302 # icc used to be incompatible with GCC. 8303 # ICC 10 doesn't accept -KPIC any more. 8304 icc* | ifort*) 8305 lt_prog_compiler_wl='-Wl,' 8306 lt_prog_compiler_pic='-fPIC' 8307 lt_prog_compiler_static='-static' 8308 ;; 8309 # Lahey Fortran 8.1. 8310 lf95*) 8311 lt_prog_compiler_wl='-Wl,' 8312 lt_prog_compiler_pic='--shared' 8313 lt_prog_compiler_static='--static' 8314 ;; 8315 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8316 # Portland Group compilers (*not* the Pentium gcc compiler, 8317 # which looks to be a dead project) 8318 lt_prog_compiler_wl='-Wl,' 8319 lt_prog_compiler_pic='-fpic' 8320 lt_prog_compiler_static='-Bstatic' 8321 ;; 8322 ccc*) 8323 lt_prog_compiler_wl='-Wl,' 8324 # All Alpha code is PIC. 8325 lt_prog_compiler_static='-non_shared' 8326 ;; 8327 xl* | bgxl* | bgf* | mpixl*) 8328 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8329 lt_prog_compiler_wl='-Wl,' 8330 lt_prog_compiler_pic='-qpic' 8331 lt_prog_compiler_static='-qstaticlink' 8332 ;; 8333 *) 8334 case `$CC -V 2>&1 | sed 5q` in 8335 *Sun\ F* | *Sun*Fortran*) 8336 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8337 lt_prog_compiler_pic='-KPIC' 8338 lt_prog_compiler_static='-Bstatic' 8339 lt_prog_compiler_wl='' 8340 ;; 8341 *Sun\ C*) 8342 # Sun C 5.9 8343 lt_prog_compiler_pic='-KPIC' 8344 lt_prog_compiler_static='-Bstatic' 8345 lt_prog_compiler_wl='-Wl,' 8346 ;; 8347 esac 8348 ;; 8349 esac 8350 ;; 8351 8352 newsos6) 8353 lt_prog_compiler_pic='-KPIC' 8354 lt_prog_compiler_static='-Bstatic' 8355 ;; 8356 8357 *nto* | *qnx*) 8358 # QNX uses GNU C++, but need to define -shared option too, otherwise 8359 # it will coredump. 8360 lt_prog_compiler_pic='-fPIC -shared' 8361 ;; 8362 8363 osf3* | osf4* | osf5*) 8364 lt_prog_compiler_wl='-Wl,' 8365 # All OSF/1 code is PIC. 8366 lt_prog_compiler_static='-non_shared' 8367 ;; 8368 8369 rdos*) 8370 lt_prog_compiler_static='-non_shared' 8371 ;; 8372 8373 solaris*) 8374 lt_prog_compiler_pic='-KPIC' 8375 lt_prog_compiler_static='-Bstatic' 8376 case $cc_basename in 8377 f77* | f90* | f95*) 8378 lt_prog_compiler_wl='-Qoption ld ';; 8379 *) 8380 lt_prog_compiler_wl='-Wl,';; 8381 esac 8382 ;; 8383 8384 sunos4*) 8385 lt_prog_compiler_wl='-Qoption ld ' 8386 lt_prog_compiler_pic='-PIC' 8387 lt_prog_compiler_static='-Bstatic' 8388 ;; 8389 8390 sysv4 | sysv4.2uw2* | sysv4.3*) 8391 lt_prog_compiler_wl='-Wl,' 8392 lt_prog_compiler_pic='-KPIC' 8393 lt_prog_compiler_static='-Bstatic' 8394 ;; 8395 8396 sysv4*MP*) 8397 if test -d /usr/nec ;then 8398 lt_prog_compiler_pic='-Kconform_pic' 8399 lt_prog_compiler_static='-Bstatic' 8400 fi 8401 ;; 8402 8403 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8404 lt_prog_compiler_wl='-Wl,' 8405 lt_prog_compiler_pic='-KPIC' 8406 lt_prog_compiler_static='-Bstatic' 8407 ;; 8408 8409 unicos*) 8410 lt_prog_compiler_wl='-Wl,' 8411 lt_prog_compiler_can_build_shared=no 8412 ;; 8413 8414 uts4*) 8415 lt_prog_compiler_pic='-pic' 8416 lt_prog_compiler_static='-Bstatic' 8417 ;; 8418 8419 *) 8420 lt_prog_compiler_can_build_shared=no 8421 ;; 8422 esac 8423 fi 8424 8425case $host_os in 8426 # For platforms which do not support PIC, -DPIC is meaningless: 8427 *djgpp*) 8428 lt_prog_compiler_pic= 8429 ;; 8430 *) 8431 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8432 ;; 8433esac 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8435$as_echo "$lt_prog_compiler_pic" >&6; } 8436 8437 8438 8439 8440 8441 8442# 8443# Check to make sure the PIC flag actually works. 8444# 8445if test -n "$lt_prog_compiler_pic"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8447$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8448if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 lt_cv_prog_compiler_pic_works=no 8452 ac_outfile=conftest.$ac_objext 8453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8454 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8455 # Insert the option either (1) after the last *FLAGS variable, or 8456 # (2) before a word containing "conftest.", or (3) at the end. 8457 # Note that $ac_compile itself does not contain backslashes and begins 8458 # with a dollar sign (not a hyphen), so the echo should work correctly. 8459 # The option is referenced via a variable to avoid confusing sed. 8460 lt_compile=`echo "$ac_compile" | $SED \ 8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8463 -e 's:$: $lt_compiler_flag:'` 8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8465 (eval "$lt_compile" 2>conftest.err) 8466 ac_status=$? 8467 cat conftest.err >&5 8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8469 if (exit $ac_status) && test -s "$ac_outfile"; then 8470 # The compiler can only warn and ignore the option if not recognized 8471 # So say no if there are warnings other than the usual output. 8472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8475 lt_cv_prog_compiler_pic_works=yes 8476 fi 8477 fi 8478 $RM conftest* 8479 8480fi 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8482$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8483 8484if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8485 case $lt_prog_compiler_pic in 8486 "" | " "*) ;; 8487 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8488 esac 8489else 8490 lt_prog_compiler_pic= 8491 lt_prog_compiler_can_build_shared=no 8492fi 8493 8494fi 8495 8496 8497 8498 8499 8500 8501# 8502# Check to make sure the static flag actually works. 8503# 8504wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8506$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8507if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8508 $as_echo_n "(cached) " >&6 8509else 8510 lt_cv_prog_compiler_static_works=no 8511 save_LDFLAGS="$LDFLAGS" 8512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8513 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8515 # The linker can only warn and ignore the option if not recognized 8516 # So say no if there are warnings 8517 if test -s conftest.err; then 8518 # Append any errors to the config.log. 8519 cat conftest.err 1>&5 8520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8522 if diff conftest.exp conftest.er2 >/dev/null; then 8523 lt_cv_prog_compiler_static_works=yes 8524 fi 8525 else 8526 lt_cv_prog_compiler_static_works=yes 8527 fi 8528 fi 8529 $RM -r conftest* 8530 LDFLAGS="$save_LDFLAGS" 8531 8532fi 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8534$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8535 8536if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8537 : 8538else 8539 lt_prog_compiler_static= 8540fi 8541 8542 8543 8544 8545 8546 8547 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8549$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8550if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8551 $as_echo_n "(cached) " >&6 8552else 8553 lt_cv_prog_compiler_c_o=no 8554 $RM -r conftest 2>/dev/null 8555 mkdir conftest 8556 cd conftest 8557 mkdir out 8558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8559 8560 lt_compiler_flag="-o out/conftest2.$ac_objext" 8561 # Insert the option either (1) after the last *FLAGS variable, or 8562 # (2) before a word containing "conftest.", or (3) at the end. 8563 # Note that $ac_compile itself does not contain backslashes and begins 8564 # with a dollar sign (not a hyphen), so the echo should work correctly. 8565 lt_compile=`echo "$ac_compile" | $SED \ 8566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8568 -e 's:$: $lt_compiler_flag:'` 8569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8570 (eval "$lt_compile" 2>out/conftest.err) 8571 ac_status=$? 8572 cat out/conftest.err >&5 8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8574 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8575 then 8576 # The compiler can only warn and ignore the option if not recognized 8577 # So say no if there are warnings 8578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8581 lt_cv_prog_compiler_c_o=yes 8582 fi 8583 fi 8584 chmod u+w . 2>&5 8585 $RM conftest* 8586 # SGI C++ compiler will create directory out/ii_files/ for 8587 # template instantiation 8588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8589 $RM out/* && rmdir out 8590 cd .. 8591 $RM -r conftest 8592 $RM conftest* 8593 8594fi 8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8596$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8597 8598 8599 8600 8601 8602 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8604$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8605if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 lt_cv_prog_compiler_c_o=no 8609 $RM -r conftest 2>/dev/null 8610 mkdir conftest 8611 cd conftest 8612 mkdir out 8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8614 8615 lt_compiler_flag="-o out/conftest2.$ac_objext" 8616 # Insert the option either (1) after the last *FLAGS variable, or 8617 # (2) before a word containing "conftest.", or (3) at the end. 8618 # Note that $ac_compile itself does not contain backslashes and begins 8619 # with a dollar sign (not a hyphen), so the echo should work correctly. 8620 lt_compile=`echo "$ac_compile" | $SED \ 8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8623 -e 's:$: $lt_compiler_flag:'` 8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8625 (eval "$lt_compile" 2>out/conftest.err) 8626 ac_status=$? 8627 cat out/conftest.err >&5 8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8629 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8630 then 8631 # The compiler can only warn and ignore the option if not recognized 8632 # So say no if there are warnings 8633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8636 lt_cv_prog_compiler_c_o=yes 8637 fi 8638 fi 8639 chmod u+w . 2>&5 8640 $RM conftest* 8641 # SGI C++ compiler will create directory out/ii_files/ for 8642 # template instantiation 8643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8644 $RM out/* && rmdir out 8645 cd .. 8646 $RM -r conftest 8647 $RM conftest* 8648 8649fi 8650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8651$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8652 8653 8654 8655 8656hard_links="nottested" 8657if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8658 # do not overwrite the value of need_locks provided by the user 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8660$as_echo_n "checking if we can lock with hard links... " >&6; } 8661 hard_links=yes 8662 $RM conftest* 8663 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8664 touch conftest.a 8665 ln conftest.a conftest.b 2>&5 || hard_links=no 8666 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8668$as_echo "$hard_links" >&6; } 8669 if test "$hard_links" = no; then 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8671$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8672 need_locks=warn 8673 fi 8674else 8675 need_locks=no 8676fi 8677 8678 8679 8680 8681 8682 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8684$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8685 8686 runpath_var= 8687 allow_undefined_flag= 8688 always_export_symbols=no 8689 archive_cmds= 8690 archive_expsym_cmds= 8691 compiler_needs_object=no 8692 enable_shared_with_static_runtimes=no 8693 export_dynamic_flag_spec= 8694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8695 hardcode_automatic=no 8696 hardcode_direct=no 8697 hardcode_direct_absolute=no 8698 hardcode_libdir_flag_spec= 8699 hardcode_libdir_flag_spec_ld= 8700 hardcode_libdir_separator= 8701 hardcode_minus_L=no 8702 hardcode_shlibpath_var=unsupported 8703 inherit_rpath=no 8704 link_all_deplibs=unknown 8705 module_cmds= 8706 module_expsym_cmds= 8707 old_archive_from_new_cmds= 8708 old_archive_from_expsyms_cmds= 8709 thread_safe_flag_spec= 8710 whole_archive_flag_spec= 8711 # include_expsyms should be a list of space-separated symbols to be *always* 8712 # included in the symbol list 8713 include_expsyms= 8714 # exclude_expsyms can be an extended regexp of symbols to exclude 8715 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8717 # as well as any symbol that contains `d'. 8718 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8720 # platforms (ab)use it in PIC code, but their linkers get confused if 8721 # the symbol is explicitly referenced. Since portable code cannot 8722 # rely on this symbol name, it's probably fine to never include it in 8723 # preloaded symbol tables. 8724 # Exclude shared library initialization/finalization symbols. 8725 extract_expsyms_cmds= 8726 8727 case $host_os in 8728 cygwin* | mingw* | pw32* | cegcc*) 8729 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8730 # When not using gcc, we currently assume that we are using 8731 # Microsoft Visual C++. 8732 if test "$GCC" != yes; then 8733 with_gnu_ld=no 8734 fi 8735 ;; 8736 interix*) 8737 # we just hope/assume this is gcc and not c89 (= MSVC++) 8738 with_gnu_ld=yes 8739 ;; 8740 openbsd*) 8741 with_gnu_ld=no 8742 ;; 8743 esac 8744 8745 ld_shlibs=yes 8746 8747 # On some targets, GNU ld is compatible enough with the native linker 8748 # that we're better off using the native interface for both. 8749 lt_use_gnu_ld_interface=no 8750 if test "$with_gnu_ld" = yes; then 8751 case $host_os in 8752 aix*) 8753 # The AIX port of GNU ld has always aspired to compatibility 8754 # with the native linker. However, as the warning in the GNU ld 8755 # block says, versions before 2.19.5* couldn't really create working 8756 # shared libraries, regardless of the interface used. 8757 case `$LD -v 2>&1` in 8758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8759 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8760 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8761 *) 8762 lt_use_gnu_ld_interface=yes 8763 ;; 8764 esac 8765 ;; 8766 *) 8767 lt_use_gnu_ld_interface=yes 8768 ;; 8769 esac 8770 fi 8771 8772 if test "$lt_use_gnu_ld_interface" = yes; then 8773 # If archive_cmds runs LD, not CC, wlarc should be empty 8774 wlarc='${wl}' 8775 8776 # Set some defaults for GNU ld with shared library support. These 8777 # are reset later if shared libraries are not supported. Putting them 8778 # here allows them to be overridden if necessary. 8779 runpath_var=LD_RUN_PATH 8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8781 export_dynamic_flag_spec='${wl}--export-dynamic' 8782 # ancient GNU ld didn't support --whole-archive et. al. 8783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8784 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8785 else 8786 whole_archive_flag_spec= 8787 fi 8788 supports_anon_versioning=no 8789 case `$LD -v 2>&1` in 8790 *GNU\ gold*) supports_anon_versioning=yes ;; 8791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8794 *\ 2.11.*) ;; # other 2.11 versions 8795 *) supports_anon_versioning=yes ;; 8796 esac 8797 8798 # See if GNU ld supports shared libraries. 8799 case $host_os in 8800 aix[3-9]*) 8801 # On AIX/PPC, the GNU linker is very broken 8802 if test "$host_cpu" != ia64; then 8803 ld_shlibs=no 8804 cat <<_LT_EOF 1>&2 8805 8806*** Warning: the GNU linker, at least up to release 2.19, is reported 8807*** to be unable to reliably create shared libraries on AIX. 8808*** Therefore, libtool is disabling shared libraries support. If you 8809*** really care for shared libraries, you may want to install binutils 8810*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8811*** You will then need to restart the configuration process. 8812 8813_LT_EOF 8814 fi 8815 ;; 8816 8817 amigaos*) 8818 case $host_cpu in 8819 powerpc) 8820 # see comment about AmigaOS4 .so support 8821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8822 archive_expsym_cmds='' 8823 ;; 8824 m68k) 8825 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)' 8826 hardcode_libdir_flag_spec='-L$libdir' 8827 hardcode_minus_L=yes 8828 ;; 8829 esac 8830 ;; 8831 8832 beos*) 8833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8834 allow_undefined_flag=unsupported 8835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8836 # support --undefined. This deserves some investigation. FIXME 8837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8838 else 8839 ld_shlibs=no 8840 fi 8841 ;; 8842 8843 cygwin* | mingw* | pw32* | cegcc*) 8844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8845 # as there is no search path for DLLs. 8846 hardcode_libdir_flag_spec='-L$libdir' 8847 export_dynamic_flag_spec='${wl}--export-all-symbols' 8848 allow_undefined_flag=unsupported 8849 always_export_symbols=no 8850 enable_shared_with_static_runtimes=yes 8851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8852 8853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8855 # If the export-symbols file already is a .def file (1st line 8856 # is EXPORTS), use it as is; otherwise, prepend... 8857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8858 cp $export_symbols $output_objdir/$soname.def; 8859 else 8860 echo EXPORTS > $output_objdir/$soname.def; 8861 cat $export_symbols >> $output_objdir/$soname.def; 8862 fi~ 8863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8864 else 8865 ld_shlibs=no 8866 fi 8867 ;; 8868 8869 haiku*) 8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8871 link_all_deplibs=yes 8872 ;; 8873 8874 interix[3-9]*) 8875 hardcode_direct=no 8876 hardcode_shlibpath_var=no 8877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8878 export_dynamic_flag_spec='${wl}-E' 8879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8880 # Instead, shared libraries are loaded at an image base (0x10000000 by 8881 # default) and relocated if they conflict, which is a slow very memory 8882 # consuming and fragmenting process. To avoid this, we pick a random, 8883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8884 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8886 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' 8887 ;; 8888 8889 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8890 tmp_diet=no 8891 if test "$host_os" = linux-dietlibc; then 8892 case $cc_basename in 8893 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8894 esac 8895 fi 8896 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8897 && test "$tmp_diet" = no 8898 then 8899 tmp_addflag= 8900 tmp_sharedflag='-shared' 8901 case $cc_basename,$host_cpu in 8902 pgcc*) # Portland Group C compiler 8903 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' 8904 tmp_addflag=' $pic_flag' 8905 ;; 8906 pgf77* | pgf90* | pgf95* | pgfortran*) 8907 # Portland Group f77 and f90 compilers 8908 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' 8909 tmp_addflag=' $pic_flag -Mnomain' ;; 8910 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8911 tmp_addflag=' -i_dynamic' ;; 8912 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8913 tmp_addflag=' -i_dynamic -nofor_main' ;; 8914 ifc* | ifort*) # Intel Fortran compiler 8915 tmp_addflag=' -nofor_main' ;; 8916 lf95*) # Lahey Fortran 8.1 8917 whole_archive_flag_spec= 8918 tmp_sharedflag='--shared' ;; 8919 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8920 tmp_sharedflag='-qmkshrobj' 8921 tmp_addflag= ;; 8922 nvcc*) # Cuda Compiler Driver 2.2 8923 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8924 compiler_needs_object=yes 8925 ;; 8926 esac 8927 case `$CC -V 2>&1 | sed 5q` in 8928 *Sun\ C*) # Sun C 5.9 8929 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' 8930 compiler_needs_object=yes 8931 tmp_sharedflag='-G' ;; 8932 *Sun\ F*) # Sun Fortran 8.3 8933 tmp_sharedflag='-G' ;; 8934 esac 8935 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8936 8937 if test "x$supports_anon_versioning" = xyes; then 8938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8940 echo "local: *; };" >> $output_objdir/$libname.ver~ 8941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8942 fi 8943 8944 case $cc_basename in 8945 xlf* | bgf* | bgxlf* | mpixlf*) 8946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8947 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8948 hardcode_libdir_flag_spec= 8949 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8950 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8951 if test "x$supports_anon_versioning" = xyes; then 8952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8954 echo "local: *; };" >> $output_objdir/$libname.ver~ 8955 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8956 fi 8957 ;; 8958 esac 8959 else 8960 ld_shlibs=no 8961 fi 8962 ;; 8963 8964 netbsd*) 8965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8967 wlarc= 8968 else 8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8971 fi 8972 ;; 8973 8974 solaris*) 8975 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8976 ld_shlibs=no 8977 cat <<_LT_EOF 1>&2 8978 8979*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8980*** create shared libraries on Solaris systems. Therefore, libtool 8981*** is disabling shared libraries support. We urge you to upgrade GNU 8982*** binutils to release 2.9.1 or newer. Another option is to modify 8983*** your PATH or compiler configuration so that the native linker is 8984*** used, and then restart. 8985 8986_LT_EOF 8987 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8990 else 8991 ld_shlibs=no 8992 fi 8993 ;; 8994 8995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8996 case `$LD -v 2>&1` in 8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8998 ld_shlibs=no 8999 cat <<_LT_EOF 1>&2 9000 9001*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9002*** reliably create shared libraries on SCO systems. Therefore, libtool 9003*** is disabling shared libraries support. We urge you to upgrade GNU 9004*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9005*** your PATH or compiler configuration so that the native linker is 9006*** used, and then restart. 9007 9008_LT_EOF 9009 ;; 9010 *) 9011 # For security reasons, it is highly recommended that you always 9012 # use absolute paths for naming shared libraries, and exclude the 9013 # DT_RUNPATH tag from executables and libraries. But doing so 9014 # requires that you compile everything twice, which is a pain. 9015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9019 else 9020 ld_shlibs=no 9021 fi 9022 ;; 9023 esac 9024 ;; 9025 9026 sunos4*) 9027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9028 wlarc= 9029 hardcode_direct=yes 9030 hardcode_shlibpath_var=no 9031 ;; 9032 9033 *) 9034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9037 else 9038 ld_shlibs=no 9039 fi 9040 ;; 9041 esac 9042 9043 if test "$ld_shlibs" = no; then 9044 runpath_var= 9045 hardcode_libdir_flag_spec= 9046 export_dynamic_flag_spec= 9047 whole_archive_flag_spec= 9048 fi 9049 else 9050 # PORTME fill in a description of your system's linker (not GNU ld) 9051 case $host_os in 9052 aix3*) 9053 allow_undefined_flag=unsupported 9054 always_export_symbols=yes 9055 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' 9056 # Note: this linker hardcodes the directories in LIBPATH if there 9057 # are no directories specified by -L. 9058 hardcode_minus_L=yes 9059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9060 # Neither direct hardcoding nor static linking is supported with a 9061 # broken collect2. 9062 hardcode_direct=unsupported 9063 fi 9064 ;; 9065 9066 aix[4-9]*) 9067 if test "$host_cpu" = ia64; then 9068 # On IA64, the linker does run time linking by default, so we don't 9069 # have to do anything special. 9070 aix_use_runtimelinking=no 9071 exp_sym_flag='-Bexport' 9072 no_entry_flag="" 9073 else 9074 # If we're using GNU nm, then we don't want the "-C" option. 9075 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9076 # Also, AIX nm treats weak defined symbols like other global 9077 # defined symbols, whereas GNU nm marks them as "W". 9078 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9079 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' 9080 else 9081 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' 9082 fi 9083 aix_use_runtimelinking=no 9084 9085 # Test if we are trying to use run time linking or normal 9086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9087 # need to do runtime linking. 9088 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9089 for ld_flag in $LDFLAGS; do 9090 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9091 aix_use_runtimelinking=yes 9092 break 9093 fi 9094 done 9095 ;; 9096 esac 9097 9098 exp_sym_flag='-bexport' 9099 no_entry_flag='-bnoentry' 9100 fi 9101 9102 # When large executables or shared objects are built, AIX ld can 9103 # have problems creating the table of contents. If linking a library 9104 # or program results in "error TOC overflow" add -mminimal-toc to 9105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9107 9108 archive_cmds='' 9109 hardcode_direct=yes 9110 hardcode_direct_absolute=yes 9111 hardcode_libdir_separator=':' 9112 link_all_deplibs=yes 9113 file_list_spec='${wl}-f,' 9114 9115 if test "$GCC" = yes; then 9116 case $host_os in aix4.[012]|aix4.[012].*) 9117 # We only want to do this on AIX 4.2 and lower, the check 9118 # below for broken collect2 doesn't work under 4.3+ 9119 collect2name=`${CC} -print-prog-name=collect2` 9120 if test -f "$collect2name" && 9121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9122 then 9123 # We have reworked collect2 9124 : 9125 else 9126 # We have old collect2 9127 hardcode_direct=unsupported 9128 # It fails to find uninstalled libraries when the uninstalled 9129 # path is not listed in the libpath. Setting hardcode_minus_L 9130 # to unsupported forces relinking 9131 hardcode_minus_L=yes 9132 hardcode_libdir_flag_spec='-L$libdir' 9133 hardcode_libdir_separator= 9134 fi 9135 ;; 9136 esac 9137 shared_flag='-shared' 9138 if test "$aix_use_runtimelinking" = yes; then 9139 shared_flag="$shared_flag "'${wl}-G' 9140 fi 9141 else 9142 # not using gcc 9143 if test "$host_cpu" = ia64; then 9144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9145 # chokes on -Wl,-G. The following line is correct: 9146 shared_flag='-G' 9147 else 9148 if test "$aix_use_runtimelinking" = yes; then 9149 shared_flag='${wl}-G' 9150 else 9151 shared_flag='${wl}-bM:SRE' 9152 fi 9153 fi 9154 fi 9155 9156 export_dynamic_flag_spec='${wl}-bexpall' 9157 # It seems that -bexpall does not export symbols beginning with 9158 # underscore (_), so it is better to generate a list of symbols to export. 9159 always_export_symbols=yes 9160 if test "$aix_use_runtimelinking" = yes; then 9161 # Warning - without using the other runtime loading flags (-brtl), 9162 # -berok will link without error, but may produce a broken library. 9163 allow_undefined_flag='-berok' 9164 # Determine the default libpath from the value encoded in an 9165 # empty executable. 9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9167/* end confdefs.h. */ 9168 9169int 9170main () 9171{ 9172 9173 ; 9174 return 0; 9175} 9176_ACEOF 9177if ac_fn_c_try_link "$LINENO"; then : 9178 9179lt_aix_libpath_sed=' 9180 /Import File Strings/,/^$/ { 9181 /^0/ { 9182 s/^0 *\(.*\)$/\1/ 9183 p 9184 } 9185 }' 9186aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9187# Check for a 64-bit object if we didn't find anything. 9188if test -z "$aix_libpath"; then 9189 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9190fi 9191fi 9192rm -f core conftest.err conftest.$ac_objext \ 9193 conftest$ac_exeext conftest.$ac_ext 9194if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9195 9196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9197 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" 9198 else 9199 if test "$host_cpu" = ia64; then 9200 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9201 allow_undefined_flag="-z nodefs" 9202 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" 9203 else 9204 # Determine the default libpath from the value encoded in an 9205 # empty executable. 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207/* end confdefs.h. */ 9208 9209int 9210main () 9211{ 9212 9213 ; 9214 return 0; 9215} 9216_ACEOF 9217if ac_fn_c_try_link "$LINENO"; then : 9218 9219lt_aix_libpath_sed=' 9220 /Import File Strings/,/^$/ { 9221 /^0/ { 9222 s/^0 *\(.*\)$/\1/ 9223 p 9224 } 9225 }' 9226aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9227# Check for a 64-bit object if we didn't find anything. 9228if test -z "$aix_libpath"; then 9229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9230fi 9231fi 9232rm -f core conftest.err conftest.$ac_objext \ 9233 conftest$ac_exeext conftest.$ac_ext 9234if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9235 9236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9237 # Warning - without using the other run time loading flags, 9238 # -berok will link without error, but may produce a broken library. 9239 no_undefined_flag=' ${wl}-bernotok' 9240 allow_undefined_flag=' ${wl}-berok' 9241 if test "$with_gnu_ld" = yes; then 9242 # We only use this code for GNU lds that support --whole-archive. 9243 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9244 else 9245 # Exported symbols can be pulled into shared objects from archives 9246 whole_archive_flag_spec='$convenience' 9247 fi 9248 archive_cmds_need_lc=yes 9249 # This is similar to how AIX traditionally builds its shared libraries. 9250 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' 9251 fi 9252 fi 9253 ;; 9254 9255 amigaos*) 9256 case $host_cpu in 9257 powerpc) 9258 # see comment about AmigaOS4 .so support 9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9260 archive_expsym_cmds='' 9261 ;; 9262 m68k) 9263 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)' 9264 hardcode_libdir_flag_spec='-L$libdir' 9265 hardcode_minus_L=yes 9266 ;; 9267 esac 9268 ;; 9269 9270 bsdi[45]*) 9271 export_dynamic_flag_spec=-rdynamic 9272 ;; 9273 9274 cygwin* | mingw* | pw32* | cegcc*) 9275 # When not using gcc, we currently assume that we are using 9276 # Microsoft Visual C++. 9277 # hardcode_libdir_flag_spec is actually meaningless, as there is 9278 # no search path for DLLs. 9279 hardcode_libdir_flag_spec=' ' 9280 allow_undefined_flag=unsupported 9281 # Tell ltmain to make .lib files, not .a files. 9282 libext=lib 9283 # Tell ltmain to make .dll files, not .so files. 9284 shrext_cmds=".dll" 9285 # FIXME: Setting linknames here is a bad hack. 9286 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9287 # The linker will automatically build a .lib file if we build a DLL. 9288 old_archive_from_new_cmds='true' 9289 # FIXME: Should let the user specify the lib program. 9290 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9291 fix_srcfile_path='`cygpath -w "$srcfile"`' 9292 enable_shared_with_static_runtimes=yes 9293 ;; 9294 9295 darwin* | rhapsody*) 9296 9297 9298 archive_cmds_need_lc=no 9299 hardcode_direct=no 9300 hardcode_automatic=yes 9301 hardcode_shlibpath_var=unsupported 9302 if test "$lt_cv_ld_force_load" = "yes"; then 9303 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\"`' 9304 else 9305 whole_archive_flag_spec='' 9306 fi 9307 link_all_deplibs=yes 9308 allow_undefined_flag="$_lt_dar_allow_undefined" 9309 case $cc_basename in 9310 ifort*) _lt_dar_can_shared=yes ;; 9311 *) _lt_dar_can_shared=$GCC ;; 9312 esac 9313 if test "$_lt_dar_can_shared" = "yes"; then 9314 output_verbose_link_cmd=func_echo_all 9315 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9316 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9317 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}" 9318 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}" 9319 9320 else 9321 ld_shlibs=no 9322 fi 9323 9324 ;; 9325 9326 dgux*) 9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9328 hardcode_libdir_flag_spec='-L$libdir' 9329 hardcode_shlibpath_var=no 9330 ;; 9331 9332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9333 # support. Future versions do this automatically, but an explicit c++rt0.o 9334 # does not break anything, and helps significantly (at the cost of a little 9335 # extra space). 9336 freebsd2.2*) 9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9338 hardcode_libdir_flag_spec='-R$libdir' 9339 hardcode_direct=yes 9340 hardcode_shlibpath_var=no 9341 ;; 9342 9343 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9344 freebsd2.*) 9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9346 hardcode_direct=yes 9347 hardcode_minus_L=yes 9348 hardcode_shlibpath_var=no 9349 ;; 9350 9351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9352 freebsd* | dragonfly*) 9353 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9354 hardcode_libdir_flag_spec='-R$libdir' 9355 hardcode_direct=yes 9356 hardcode_shlibpath_var=no 9357 ;; 9358 9359 hpux9*) 9360 if test "$GCC" = yes; then 9361 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' 9362 else 9363 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' 9364 fi 9365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9366 hardcode_libdir_separator=: 9367 hardcode_direct=yes 9368 9369 # hardcode_minus_L: Not really in the search PATH, 9370 # but as the default location of the library. 9371 hardcode_minus_L=yes 9372 export_dynamic_flag_spec='${wl}-E' 9373 ;; 9374 9375 hpux10*) 9376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9378 else 9379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9380 fi 9381 if test "$with_gnu_ld" = no; then 9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9383 hardcode_libdir_flag_spec_ld='+b $libdir' 9384 hardcode_libdir_separator=: 9385 hardcode_direct=yes 9386 hardcode_direct_absolute=yes 9387 export_dynamic_flag_spec='${wl}-E' 9388 # hardcode_minus_L: Not really in the search PATH, 9389 # but as the default location of the library. 9390 hardcode_minus_L=yes 9391 fi 9392 ;; 9393 9394 hpux11*) 9395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9396 case $host_cpu in 9397 hppa*64*) 9398 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9399 ;; 9400 ia64*) 9401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9402 ;; 9403 *) 9404 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9405 ;; 9406 esac 9407 else 9408 case $host_cpu in 9409 hppa*64*) 9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9411 ;; 9412 ia64*) 9413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9414 ;; 9415 *) 9416 9417 # Older versions of the 11.00 compiler do not understand -b yet 9418 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9420$as_echo_n "checking if $CC understands -b... " >&6; } 9421if test "${lt_cv_prog_compiler__b+set}" = set; then : 9422 $as_echo_n "(cached) " >&6 9423else 9424 lt_cv_prog_compiler__b=no 9425 save_LDFLAGS="$LDFLAGS" 9426 LDFLAGS="$LDFLAGS -b" 9427 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9429 # The linker can only warn and ignore the option if not recognized 9430 # So say no if there are warnings 9431 if test -s conftest.err; then 9432 # Append any errors to the config.log. 9433 cat conftest.err 1>&5 9434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9436 if diff conftest.exp conftest.er2 >/dev/null; then 9437 lt_cv_prog_compiler__b=yes 9438 fi 9439 else 9440 lt_cv_prog_compiler__b=yes 9441 fi 9442 fi 9443 $RM -r conftest* 9444 LDFLAGS="$save_LDFLAGS" 9445 9446fi 9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9448$as_echo "$lt_cv_prog_compiler__b" >&6; } 9449 9450if test x"$lt_cv_prog_compiler__b" = xyes; then 9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9452else 9453 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9454fi 9455 9456 ;; 9457 esac 9458 fi 9459 if test "$with_gnu_ld" = no; then 9460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9461 hardcode_libdir_separator=: 9462 9463 case $host_cpu in 9464 hppa*64*|ia64*) 9465 hardcode_direct=no 9466 hardcode_shlibpath_var=no 9467 ;; 9468 *) 9469 hardcode_direct=yes 9470 hardcode_direct_absolute=yes 9471 export_dynamic_flag_spec='${wl}-E' 9472 9473 # hardcode_minus_L: Not really in the search PATH, 9474 # but as the default location of the library. 9475 hardcode_minus_L=yes 9476 ;; 9477 esac 9478 fi 9479 ;; 9480 9481 irix5* | irix6* | nonstopux*) 9482 if test "$GCC" = yes; then 9483 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' 9484 # Try to use the -exported_symbol ld option, if it does not 9485 # work, assume that -exports_file does not work either and 9486 # implicitly export all symbols. 9487 save_LDFLAGS="$LDFLAGS" 9488 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9490/* end confdefs.h. */ 9491int foo(void) {} 9492_ACEOF 9493if ac_fn_c_try_link "$LINENO"; then : 9494 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' 9495 9496fi 9497rm -f core conftest.err conftest.$ac_objext \ 9498 conftest$ac_exeext conftest.$ac_ext 9499 LDFLAGS="$save_LDFLAGS" 9500 else 9501 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' 9502 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' 9503 fi 9504 archive_cmds_need_lc='no' 9505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9506 hardcode_libdir_separator=: 9507 inherit_rpath=yes 9508 link_all_deplibs=yes 9509 ;; 9510 9511 netbsd*) 9512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9514 else 9515 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9516 fi 9517 hardcode_libdir_flag_spec='-R$libdir' 9518 hardcode_direct=yes 9519 hardcode_shlibpath_var=no 9520 ;; 9521 9522 newsos6) 9523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9524 hardcode_direct=yes 9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9526 hardcode_libdir_separator=: 9527 hardcode_shlibpath_var=no 9528 ;; 9529 9530 *nto* | *qnx*) 9531 ;; 9532 9533 openbsd*) 9534 if test -f /usr/libexec/ld.so; then 9535 hardcode_direct=yes 9536 hardcode_shlibpath_var=no 9537 hardcode_direct_absolute=yes 9538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9542 export_dynamic_flag_spec='${wl}-E' 9543 else 9544 case $host_os in 9545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9547 hardcode_libdir_flag_spec='-R$libdir' 9548 ;; 9549 *) 9550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9552 ;; 9553 esac 9554 fi 9555 else 9556 ld_shlibs=no 9557 fi 9558 ;; 9559 9560 os2*) 9561 hardcode_libdir_flag_spec='-L$libdir' 9562 hardcode_minus_L=yes 9563 allow_undefined_flag=unsupported 9564 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' 9565 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9566 ;; 9567 9568 osf3*) 9569 if test "$GCC" = yes; then 9570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9571 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' 9572 else 9573 allow_undefined_flag=' -expect_unresolved \*' 9574 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' 9575 fi 9576 archive_cmds_need_lc='no' 9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9578 hardcode_libdir_separator=: 9579 ;; 9580 9581 osf4* | osf5*) # as osf3* with the addition of -msym flag 9582 if test "$GCC" = yes; then 9583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9584 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' 9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9586 else 9587 allow_undefined_flag=' -expect_unresolved \*' 9588 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' 9589 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~ 9590 $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' 9591 9592 # Both c and cxx compiler support -rpath directly 9593 hardcode_libdir_flag_spec='-rpath $libdir' 9594 fi 9595 archive_cmds_need_lc='no' 9596 hardcode_libdir_separator=: 9597 ;; 9598 9599 solaris*) 9600 no_undefined_flag=' -z defs' 9601 if test "$GCC" = yes; then 9602 wlarc='${wl}' 9603 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9605 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9606 else 9607 case `$CC -V 2>&1` in 9608 *"Compilers 5.0"*) 9609 wlarc='' 9610 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9613 ;; 9614 *) 9615 wlarc='${wl}' 9616 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9618 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9619 ;; 9620 esac 9621 fi 9622 hardcode_libdir_flag_spec='-R$libdir' 9623 hardcode_shlibpath_var=no 9624 case $host_os in 9625 solaris2.[0-5] | solaris2.[0-5].*) ;; 9626 *) 9627 # The compiler driver will combine and reorder linker options, 9628 # but understands `-z linker_flag'. GCC discards it without `$wl', 9629 # but is careful enough not to reorder. 9630 # Supported since Solaris 2.6 (maybe 2.5.1?) 9631 if test "$GCC" = yes; then 9632 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9633 else 9634 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9635 fi 9636 ;; 9637 esac 9638 link_all_deplibs=yes 9639 ;; 9640 9641 sunos4*) 9642 if test "x$host_vendor" = xsequent; then 9643 # Use $CC to link under sequent, because it throws in some extra .o 9644 # files that make .init and .fini sections work. 9645 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9646 else 9647 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9648 fi 9649 hardcode_libdir_flag_spec='-L$libdir' 9650 hardcode_direct=yes 9651 hardcode_minus_L=yes 9652 hardcode_shlibpath_var=no 9653 ;; 9654 9655 sysv4) 9656 case $host_vendor in 9657 sni) 9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9659 hardcode_direct=yes # is this really true??? 9660 ;; 9661 siemens) 9662 ## LD is ld it makes a PLAMLIB 9663 ## CC just makes a GrossModule. 9664 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9665 reload_cmds='$CC -r -o $output$reload_objs' 9666 hardcode_direct=no 9667 ;; 9668 motorola) 9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9670 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9671 ;; 9672 esac 9673 runpath_var='LD_RUN_PATH' 9674 hardcode_shlibpath_var=no 9675 ;; 9676 9677 sysv4.3*) 9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9679 hardcode_shlibpath_var=no 9680 export_dynamic_flag_spec='-Bexport' 9681 ;; 9682 9683 sysv4*MP*) 9684 if test -d /usr/nec; then 9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9686 hardcode_shlibpath_var=no 9687 runpath_var=LD_RUN_PATH 9688 hardcode_runpath_var=yes 9689 ld_shlibs=yes 9690 fi 9691 ;; 9692 9693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9694 no_undefined_flag='${wl}-z,text' 9695 archive_cmds_need_lc=no 9696 hardcode_shlibpath_var=no 9697 runpath_var='LD_RUN_PATH' 9698 9699 if test "$GCC" = yes; then 9700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9702 else 9703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9705 fi 9706 ;; 9707 9708 sysv5* | sco3.2v5* | sco5v6*) 9709 # Note: We can NOT use -z defs as we might desire, because we do not 9710 # link with -lc, and that would cause any symbols used from libc to 9711 # always be unresolved, which means just about no library would 9712 # ever link correctly. If we're not using GNU ld we use -z text 9713 # though, which does catch some bad symbols but isn't as heavy-handed 9714 # as -z defs. 9715 no_undefined_flag='${wl}-z,text' 9716 allow_undefined_flag='${wl}-z,nodefs' 9717 archive_cmds_need_lc=no 9718 hardcode_shlibpath_var=no 9719 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9720 hardcode_libdir_separator=':' 9721 link_all_deplibs=yes 9722 export_dynamic_flag_spec='${wl}-Bexport' 9723 runpath_var='LD_RUN_PATH' 9724 9725 if test "$GCC" = yes; then 9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9728 else 9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9731 fi 9732 ;; 9733 9734 uts4*) 9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9736 hardcode_libdir_flag_spec='-L$libdir' 9737 hardcode_shlibpath_var=no 9738 ;; 9739 9740 *) 9741 ld_shlibs=no 9742 ;; 9743 esac 9744 9745 if test x$host_vendor = xsni; then 9746 case $host in 9747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9748 export_dynamic_flag_spec='${wl}-Blargedynsym' 9749 ;; 9750 esac 9751 fi 9752 fi 9753 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9755$as_echo "$ld_shlibs" >&6; } 9756test "$ld_shlibs" = no && can_build_shared=no 9757 9758with_gnu_ld=$with_gnu_ld 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774# 9775# Do we need to explicitly link libc? 9776# 9777case "x$archive_cmds_need_lc" in 9778x|xyes) 9779 # Assume -lc should be added 9780 archive_cmds_need_lc=yes 9781 9782 if test "$enable_shared" = yes && test "$GCC" = yes; then 9783 case $archive_cmds in 9784 *'~'*) 9785 # FIXME: we may have to deal with multi-command sequences. 9786 ;; 9787 '$CC '*) 9788 # Test whether the compiler implicitly links with -lc since on some 9789 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9790 # to ld, don't add -lc before -lgcc. 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9792$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9793if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9794 $as_echo_n "(cached) " >&6 9795else 9796 $RM conftest* 9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9798 9799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9800 (eval $ac_compile) 2>&5 9801 ac_status=$? 9802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9803 test $ac_status = 0; } 2>conftest.err; then 9804 soname=conftest 9805 lib=conftest 9806 libobjs=conftest.$ac_objext 9807 deplibs= 9808 wl=$lt_prog_compiler_wl 9809 pic_flag=$lt_prog_compiler_pic 9810 compiler_flags=-v 9811 linker_flags=-v 9812 verstring= 9813 output_objdir=. 9814 libname=conftest 9815 lt_save_allow_undefined_flag=$allow_undefined_flag 9816 allow_undefined_flag= 9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9818 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9819 ac_status=$? 9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9821 test $ac_status = 0; } 9822 then 9823 lt_cv_archive_cmds_need_lc=no 9824 else 9825 lt_cv_archive_cmds_need_lc=yes 9826 fi 9827 allow_undefined_flag=$lt_save_allow_undefined_flag 9828 else 9829 cat conftest.err 1>&5 9830 fi 9831 $RM conftest* 9832 9833fi 9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9835$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9836 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9837 ;; 9838 esac 9839 fi 9840 ;; 9841esac 9842 9843 9844 9845 9846 9847 9848 9849 9850 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10000$as_echo_n "checking dynamic linker characteristics... " >&6; } 10001 10002if test "$GCC" = yes; then 10003 case $host_os in 10004 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10005 *) lt_awk_arg="/^libraries:/" ;; 10006 esac 10007 case $host_os in 10008 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10009 *) lt_sed_strip_eq="s,=/,/,g" ;; 10010 esac 10011 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10012 case $lt_search_path_spec in 10013 *\;*) 10014 # if the path contains ";" then we assume it to be the separator 10015 # otherwise default to the standard path separator (i.e. ":") - it is 10016 # assumed that no part of a normal pathname contains ";" but that should 10017 # okay in the real world where ";" in dirpaths is itself problematic. 10018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10019 ;; 10020 *) 10021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10022 ;; 10023 esac 10024 # Ok, now we have the path, separated by spaces, we can step through it 10025 # and add multilib dir if necessary. 10026 lt_tmp_lt_search_path_spec= 10027 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10028 for lt_sys_path in $lt_search_path_spec; do 10029 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10031 else 10032 test -d "$lt_sys_path" && \ 10033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10034 fi 10035 done 10036 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10037BEGIN {RS=" "; FS="/|\n";} { 10038 lt_foo=""; 10039 lt_count=0; 10040 for (lt_i = NF; lt_i > 0; lt_i--) { 10041 if ($lt_i != "" && $lt_i != ".") { 10042 if ($lt_i == "..") { 10043 lt_count++; 10044 } else { 10045 if (lt_count == 0) { 10046 lt_foo="/" $lt_i lt_foo; 10047 } else { 10048 lt_count--; 10049 } 10050 } 10051 } 10052 } 10053 if (lt_foo != "") { lt_freq[lt_foo]++; } 10054 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10055}'` 10056 # AWK program above erroneously prepends '/' to C:/dos/paths 10057 # for these hosts. 10058 case $host_os in 10059 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10060 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10061 esac 10062 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10063else 10064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10065fi 10066library_names_spec= 10067libname_spec='lib$name' 10068soname_spec= 10069shrext_cmds=".so" 10070postinstall_cmds= 10071postuninstall_cmds= 10072finish_cmds= 10073finish_eval= 10074shlibpath_var= 10075shlibpath_overrides_runpath=unknown 10076version_type=none 10077dynamic_linker="$host_os ld.so" 10078sys_lib_dlsearch_path_spec="/lib /usr/lib" 10079need_lib_prefix=unknown 10080hardcode_into_libs=no 10081 10082# when you set need_version to no, make sure it does not cause -set_version 10083# flags to be left without arguments 10084need_version=unknown 10085 10086case $host_os in 10087aix3*) 10088 version_type=linux 10089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10090 shlibpath_var=LIBPATH 10091 10092 # AIX 3 has no versioning support, so we append a major version to the name. 10093 soname_spec='${libname}${release}${shared_ext}$major' 10094 ;; 10095 10096aix[4-9]*) 10097 version_type=linux 10098 need_lib_prefix=no 10099 need_version=no 10100 hardcode_into_libs=yes 10101 if test "$host_cpu" = ia64; then 10102 # AIX 5 supports IA64 10103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10104 shlibpath_var=LD_LIBRARY_PATH 10105 else 10106 # With GCC up to 2.95.x, collect2 would create an import file 10107 # for dependence libraries. The import file would start with 10108 # the line `#! .'. This would cause the generated library to 10109 # depend on `.', always an invalid library. This was fixed in 10110 # development snapshots of GCC prior to 3.0. 10111 case $host_os in 10112 aix4 | aix4.[01] | aix4.[01].*) 10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10114 echo ' yes ' 10115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10116 : 10117 else 10118 can_build_shared=no 10119 fi 10120 ;; 10121 esac 10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10123 # soname into executable. Probably we can add versioning support to 10124 # collect2, so additional links can be useful in future. 10125 if test "$aix_use_runtimelinking" = yes; then 10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10127 # instead of lib<name>.a to let people know that these are not 10128 # typical AIX shared libraries. 10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10130 else 10131 # We preserve .a as extension for shared libraries through AIX4.2 10132 # and later when we are not doing run time linking. 10133 library_names_spec='${libname}${release}.a $libname.a' 10134 soname_spec='${libname}${release}${shared_ext}$major' 10135 fi 10136 shlibpath_var=LIBPATH 10137 fi 10138 ;; 10139 10140amigaos*) 10141 case $host_cpu in 10142 powerpc) 10143 # Since July 2007 AmigaOS4 officially supports .so libraries. 10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10146 ;; 10147 m68k) 10148 library_names_spec='$libname.ixlibrary $libname.a' 10149 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10150 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' 10151 ;; 10152 esac 10153 ;; 10154 10155beos*) 10156 library_names_spec='${libname}${shared_ext}' 10157 dynamic_linker="$host_os ld.so" 10158 shlibpath_var=LIBRARY_PATH 10159 ;; 10160 10161bsdi[45]*) 10162 version_type=linux 10163 need_version=no 10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10165 soname_spec='${libname}${release}${shared_ext}$major' 10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10167 shlibpath_var=LD_LIBRARY_PATH 10168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10170 # the default ld.so.conf also contains /usr/contrib/lib and 10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10172 # libtool to hard-code these into programs 10173 ;; 10174 10175cygwin* | mingw* | pw32* | cegcc*) 10176 version_type=windows 10177 shrext_cmds=".dll" 10178 need_version=no 10179 need_lib_prefix=no 10180 10181 case $GCC,$host_os in 10182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10183 library_names_spec='$libname.dll.a' 10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10185 postinstall_cmds='base_file=`basename \${file}`~ 10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10187 dldir=$destdir/`dirname \$dlpath`~ 10188 test -d \$dldir || mkdir -p \$dldir~ 10189 $install_prog $dir/$dlname \$dldir/$dlname~ 10190 chmod a+x \$dldir/$dlname~ 10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10193 fi' 10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10195 dlpath=$dir/\$dldll~ 10196 $RM \$dlpath' 10197 shlibpath_overrides_runpath=yes 10198 10199 case $host_os in 10200 cygwin*) 10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10203 10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10205 ;; 10206 mingw* | cegcc*) 10207 # MinGW DLLs use traditional 'lib' prefix 10208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10209 ;; 10210 pw32*) 10211 # pw32 DLLs use 'pw' prefix rather than 'lib' 10212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10213 ;; 10214 esac 10215 ;; 10216 10217 *) 10218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10219 ;; 10220 esac 10221 dynamic_linker='Win32 ld.exe' 10222 # FIXME: first we should search . and the directory the executable is in 10223 shlibpath_var=PATH 10224 ;; 10225 10226darwin* | rhapsody*) 10227 dynamic_linker="$host_os dyld" 10228 version_type=darwin 10229 need_lib_prefix=no 10230 need_version=no 10231 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10232 soname_spec='${libname}${release}${major}$shared_ext' 10233 shlibpath_overrides_runpath=yes 10234 shlibpath_var=DYLD_LIBRARY_PATH 10235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10236 10237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10239 ;; 10240 10241dgux*) 10242 version_type=linux 10243 need_lib_prefix=no 10244 need_version=no 10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10246 soname_spec='${libname}${release}${shared_ext}$major' 10247 shlibpath_var=LD_LIBRARY_PATH 10248 ;; 10249 10250freebsd* | dragonfly*) 10251 # DragonFly does not have aout. When/if they implement a new 10252 # versioning mechanism, adjust this. 10253 if test -x /usr/bin/objformat; then 10254 objformat=`/usr/bin/objformat` 10255 else 10256 case $host_os in 10257 freebsd[23].*) objformat=aout ;; 10258 *) objformat=elf ;; 10259 esac 10260 fi 10261 version_type=freebsd-$objformat 10262 case $version_type in 10263 freebsd-elf*) 10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10265 need_version=no 10266 need_lib_prefix=no 10267 ;; 10268 freebsd-*) 10269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10270 need_version=yes 10271 ;; 10272 esac 10273 shlibpath_var=LD_LIBRARY_PATH 10274 case $host_os in 10275 freebsd2.*) 10276 shlibpath_overrides_runpath=yes 10277 ;; 10278 freebsd3.[01]* | freebsdelf3.[01]*) 10279 shlibpath_overrides_runpath=yes 10280 hardcode_into_libs=yes 10281 ;; 10282 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10283 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10284 shlibpath_overrides_runpath=no 10285 hardcode_into_libs=yes 10286 ;; 10287 *) # from 4.6 on, and DragonFly 10288 shlibpath_overrides_runpath=yes 10289 hardcode_into_libs=yes 10290 ;; 10291 esac 10292 ;; 10293 10294gnu*) 10295 version_type=linux 10296 need_lib_prefix=no 10297 need_version=no 10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10299 soname_spec='${libname}${release}${shared_ext}$major' 10300 shlibpath_var=LD_LIBRARY_PATH 10301 hardcode_into_libs=yes 10302 ;; 10303 10304haiku*) 10305 version_type=linux 10306 need_lib_prefix=no 10307 need_version=no 10308 dynamic_linker="$host_os runtime_loader" 10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10310 soname_spec='${libname}${release}${shared_ext}$major' 10311 shlibpath_var=LIBRARY_PATH 10312 shlibpath_overrides_runpath=yes 10313 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10314 hardcode_into_libs=yes 10315 ;; 10316 10317hpux9* | hpux10* | hpux11*) 10318 # Give a soname corresponding to the major version so that dld.sl refuses to 10319 # link against other versions. 10320 version_type=sunos 10321 need_lib_prefix=no 10322 need_version=no 10323 case $host_cpu in 10324 ia64*) 10325 shrext_cmds='.so' 10326 hardcode_into_libs=yes 10327 dynamic_linker="$host_os dld.so" 10328 shlibpath_var=LD_LIBRARY_PATH 10329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10331 soname_spec='${libname}${release}${shared_ext}$major' 10332 if test "X$HPUX_IA64_MODE" = X32; then 10333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10334 else 10335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10336 fi 10337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10338 ;; 10339 hppa*64*) 10340 shrext_cmds='.sl' 10341 hardcode_into_libs=yes 10342 dynamic_linker="$host_os dld.sl" 10343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10346 soname_spec='${libname}${release}${shared_ext}$major' 10347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10349 ;; 10350 *) 10351 shrext_cmds='.sl' 10352 dynamic_linker="$host_os dld.sl" 10353 shlibpath_var=SHLIB_PATH 10354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10356 soname_spec='${libname}${release}${shared_ext}$major' 10357 ;; 10358 esac 10359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10360 postinstall_cmds='chmod 555 $lib' 10361 # or fails outright, so override atomically: 10362 install_override_mode=555 10363 ;; 10364 10365interix[3-9]*) 10366 version_type=linux 10367 need_lib_prefix=no 10368 need_version=no 10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10370 soname_spec='${libname}${release}${shared_ext}$major' 10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10372 shlibpath_var=LD_LIBRARY_PATH 10373 shlibpath_overrides_runpath=no 10374 hardcode_into_libs=yes 10375 ;; 10376 10377irix5* | irix6* | nonstopux*) 10378 case $host_os in 10379 nonstopux*) version_type=nonstopux ;; 10380 *) 10381 if test "$lt_cv_prog_gnu_ld" = yes; then 10382 version_type=linux 10383 else 10384 version_type=irix 10385 fi ;; 10386 esac 10387 need_lib_prefix=no 10388 need_version=no 10389 soname_spec='${libname}${release}${shared_ext}$major' 10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10391 case $host_os in 10392 irix5* | nonstopux*) 10393 libsuff= shlibsuff= 10394 ;; 10395 *) 10396 case $LD in # libtool.m4 will add one of these switches to LD 10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10398 libsuff= shlibsuff= libmagic=32-bit;; 10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10400 libsuff=32 shlibsuff=N32 libmagic=N32;; 10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10402 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10403 *) libsuff= shlibsuff= libmagic=never-match;; 10404 esac 10405 ;; 10406 esac 10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10408 shlibpath_overrides_runpath=no 10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10411 hardcode_into_libs=yes 10412 ;; 10413 10414# No shared lib support for Linux oldld, aout, or coff. 10415linux*oldld* | linux*aout* | linux*coff*) 10416 dynamic_linker=no 10417 ;; 10418 10419# This must be Linux ELF. 10420linux* | k*bsd*-gnu | kopensolaris*-gnu) 10421 version_type=linux 10422 need_lib_prefix=no 10423 need_version=no 10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10425 soname_spec='${libname}${release}${shared_ext}$major' 10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10427 shlibpath_var=LD_LIBRARY_PATH 10428 shlibpath_overrides_runpath=no 10429 10430 # Some binutils ld are patched to set DT_RUNPATH 10431 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10432 $as_echo_n "(cached) " >&6 10433else 10434 lt_cv_shlibpath_overrides_runpath=no 10435 save_LDFLAGS=$LDFLAGS 10436 save_libdir=$libdir 10437 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10438 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440/* end confdefs.h. */ 10441 10442int 10443main () 10444{ 10445 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450if ac_fn_c_try_link "$LINENO"; then : 10451 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10452 lt_cv_shlibpath_overrides_runpath=yes 10453fi 10454fi 10455rm -f core conftest.err conftest.$ac_objext \ 10456 conftest$ac_exeext conftest.$ac_ext 10457 LDFLAGS=$save_LDFLAGS 10458 libdir=$save_libdir 10459 10460fi 10461 10462 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10463 10464 # This implies no fast_install, which is unacceptable. 10465 # Some rework will be needed to allow for fast_install 10466 # before this can be enabled. 10467 hardcode_into_libs=yes 10468 10469 # Append ld.so.conf contents to the search path 10470 if test -f /etc/ld.so.conf; then 10471 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' ' '` 10472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10473 fi 10474 10475 # We used to test for /lib/ld.so.1 and disable shared libraries on 10476 # powerpc, because MkLinux only supported shared libraries with the 10477 # GNU dynamic linker. Since this was broken with cross compilers, 10478 # most powerpc-linux boxes support dynamic linking these days and 10479 # people can always --disable-shared, the test was removed, and we 10480 # assume the GNU/Linux dynamic linker is in use. 10481 dynamic_linker='GNU/Linux ld.so' 10482 ;; 10483 10484netbsd*) 10485 version_type=sunos 10486 need_lib_prefix=no 10487 need_version=no 10488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10491 dynamic_linker='NetBSD (a.out) ld.so' 10492 else 10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10494 soname_spec='${libname}${release}${shared_ext}$major' 10495 dynamic_linker='NetBSD ld.elf_so' 10496 fi 10497 shlibpath_var=LD_LIBRARY_PATH 10498 shlibpath_overrides_runpath=yes 10499 hardcode_into_libs=yes 10500 ;; 10501 10502newsos6) 10503 version_type=linux 10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10505 shlibpath_var=LD_LIBRARY_PATH 10506 shlibpath_overrides_runpath=yes 10507 ;; 10508 10509*nto* | *qnx*) 10510 version_type=qnx 10511 need_lib_prefix=no 10512 need_version=no 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 shlibpath_var=LD_LIBRARY_PATH 10516 shlibpath_overrides_runpath=no 10517 hardcode_into_libs=yes 10518 dynamic_linker='ldqnx.so' 10519 ;; 10520 10521openbsd*) 10522 version_type=sunos 10523 sys_lib_dlsearch_path_spec="/usr/lib" 10524 need_lib_prefix=no 10525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10526 case $host_os in 10527 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10528 *) need_version=no ;; 10529 esac 10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10532 shlibpath_var=LD_LIBRARY_PATH 10533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10534 case $host_os in 10535 openbsd2.[89] | openbsd2.[89].*) 10536 shlibpath_overrides_runpath=no 10537 ;; 10538 *) 10539 shlibpath_overrides_runpath=yes 10540 ;; 10541 esac 10542 else 10543 shlibpath_overrides_runpath=yes 10544 fi 10545 ;; 10546 10547os2*) 10548 libname_spec='$name' 10549 shrext_cmds=".dll" 10550 need_lib_prefix=no 10551 library_names_spec='$libname${shared_ext} $libname.a' 10552 dynamic_linker='OS/2 ld.exe' 10553 shlibpath_var=LIBPATH 10554 ;; 10555 10556osf3* | osf4* | osf5*) 10557 version_type=osf 10558 need_lib_prefix=no 10559 need_version=no 10560 soname_spec='${libname}${release}${shared_ext}$major' 10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10562 shlibpath_var=LD_LIBRARY_PATH 10563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10565 ;; 10566 10567rdos*) 10568 dynamic_linker=no 10569 ;; 10570 10571solaris*) 10572 version_type=linux 10573 need_lib_prefix=no 10574 need_version=no 10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10576 soname_spec='${libname}${release}${shared_ext}$major' 10577 shlibpath_var=LD_LIBRARY_PATH 10578 shlibpath_overrides_runpath=yes 10579 hardcode_into_libs=yes 10580 # ldd complains unless libraries are executable 10581 postinstall_cmds='chmod +x $lib' 10582 ;; 10583 10584sunos4*) 10585 version_type=sunos 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10588 shlibpath_var=LD_LIBRARY_PATH 10589 shlibpath_overrides_runpath=yes 10590 if test "$with_gnu_ld" = yes; then 10591 need_lib_prefix=no 10592 fi 10593 need_version=yes 10594 ;; 10595 10596sysv4 | sysv4.3*) 10597 version_type=linux 10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10599 soname_spec='${libname}${release}${shared_ext}$major' 10600 shlibpath_var=LD_LIBRARY_PATH 10601 case $host_vendor in 10602 sni) 10603 shlibpath_overrides_runpath=no 10604 need_lib_prefix=no 10605 runpath_var=LD_RUN_PATH 10606 ;; 10607 siemens) 10608 need_lib_prefix=no 10609 ;; 10610 motorola) 10611 need_lib_prefix=no 10612 need_version=no 10613 shlibpath_overrides_runpath=no 10614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10615 ;; 10616 esac 10617 ;; 10618 10619sysv4*MP*) 10620 if test -d /usr/nec ;then 10621 version_type=linux 10622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10623 soname_spec='$libname${shared_ext}.$major' 10624 shlibpath_var=LD_LIBRARY_PATH 10625 fi 10626 ;; 10627 10628sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10629 version_type=freebsd-elf 10630 need_lib_prefix=no 10631 need_version=no 10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10633 soname_spec='${libname}${release}${shared_ext}$major' 10634 shlibpath_var=LD_LIBRARY_PATH 10635 shlibpath_overrides_runpath=yes 10636 hardcode_into_libs=yes 10637 if test "$with_gnu_ld" = yes; then 10638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10639 else 10640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10641 case $host_os in 10642 sco3.2v5*) 10643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10644 ;; 10645 esac 10646 fi 10647 sys_lib_dlsearch_path_spec='/usr/lib' 10648 ;; 10649 10650tpf*) 10651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10652 version_type=linux 10653 need_lib_prefix=no 10654 need_version=no 10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10656 shlibpath_var=LD_LIBRARY_PATH 10657 shlibpath_overrides_runpath=no 10658 hardcode_into_libs=yes 10659 ;; 10660 10661uts4*) 10662 version_type=linux 10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10664 soname_spec='${libname}${release}${shared_ext}$major' 10665 shlibpath_var=LD_LIBRARY_PATH 10666 ;; 10667 10668*) 10669 dynamic_linker=no 10670 ;; 10671esac 10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10673$as_echo "$dynamic_linker" >&6; } 10674test "$dynamic_linker" = no && can_build_shared=no 10675 10676variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10677if test "$GCC" = yes; then 10678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10679fi 10680 10681if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10682 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10683fi 10684if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10685 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10686fi 10687 10688 10689 10690 10691 10692 10693 10694 10695 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10780$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10781hardcode_action= 10782if test -n "$hardcode_libdir_flag_spec" || 10783 test -n "$runpath_var" || 10784 test "X$hardcode_automatic" = "Xyes" ; then 10785 10786 # We can hardcode non-existent directories. 10787 if test "$hardcode_direct" != no && 10788 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10789 # have to relink, otherwise we might link with an installed library 10790 # when we should be linking with a yet-to-be-installed one 10791 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10792 test "$hardcode_minus_L" != no; then 10793 # Linking always hardcodes the temporary library directory. 10794 hardcode_action=relink 10795 else 10796 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10797 hardcode_action=immediate 10798 fi 10799else 10800 # We cannot hardcode anything, or else we can only hardcode existing 10801 # directories. 10802 hardcode_action=unsupported 10803fi 10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10805$as_echo "$hardcode_action" >&6; } 10806 10807if test "$hardcode_action" = relink || 10808 test "$inherit_rpath" = yes; then 10809 # Fast installation is not supported 10810 enable_fast_install=no 10811elif test "$shlibpath_overrides_runpath" = yes || 10812 test "$enable_shared" = no; then 10813 # Fast installation is not necessary 10814 enable_fast_install=needless 10815fi 10816 10817 10818 10819 10820 10821 10822 if test "x$enable_dlopen" != xyes; then 10823 enable_dlopen=unknown 10824 enable_dlopen_self=unknown 10825 enable_dlopen_self_static=unknown 10826else 10827 lt_cv_dlopen=no 10828 lt_cv_dlopen_libs= 10829 10830 case $host_os in 10831 beos*) 10832 lt_cv_dlopen="load_add_on" 10833 lt_cv_dlopen_libs= 10834 lt_cv_dlopen_self=yes 10835 ;; 10836 10837 mingw* | pw32* | cegcc*) 10838 lt_cv_dlopen="LoadLibrary" 10839 lt_cv_dlopen_libs= 10840 ;; 10841 10842 cygwin*) 10843 lt_cv_dlopen="dlopen" 10844 lt_cv_dlopen_libs= 10845 ;; 10846 10847 darwin*) 10848 # if libdl is installed we need to link against it 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10850$as_echo_n "checking for dlopen in -ldl... " >&6; } 10851if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10852 $as_echo_n "(cached) " >&6 10853else 10854 ac_check_lib_save_LIBS=$LIBS 10855LIBS="-ldl $LIBS" 10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10857/* end confdefs.h. */ 10858 10859/* Override any GCC internal prototype to avoid an error. 10860 Use char because int might match the return type of a GCC 10861 builtin and then its argument prototype would still apply. */ 10862#ifdef __cplusplus 10863extern "C" 10864#endif 10865char dlopen (); 10866int 10867main () 10868{ 10869return dlopen (); 10870 ; 10871 return 0; 10872} 10873_ACEOF 10874if ac_fn_c_try_link "$LINENO"; then : 10875 ac_cv_lib_dl_dlopen=yes 10876else 10877 ac_cv_lib_dl_dlopen=no 10878fi 10879rm -f core conftest.err conftest.$ac_objext \ 10880 conftest$ac_exeext conftest.$ac_ext 10881LIBS=$ac_check_lib_save_LIBS 10882fi 10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10884$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10885if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10887else 10888 10889 lt_cv_dlopen="dyld" 10890 lt_cv_dlopen_libs= 10891 lt_cv_dlopen_self=yes 10892 10893fi 10894 10895 ;; 10896 10897 *) 10898 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10899if test "x$ac_cv_func_shl_load" = x""yes; then : 10900 lt_cv_dlopen="shl_load" 10901else 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10903$as_echo_n "checking for shl_load in -ldld... " >&6; } 10904if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10905 $as_echo_n "(cached) " >&6 10906else 10907 ac_check_lib_save_LIBS=$LIBS 10908LIBS="-ldld $LIBS" 10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10910/* end confdefs.h. */ 10911 10912/* Override any GCC internal prototype to avoid an error. 10913 Use char because int might match the return type of a GCC 10914 builtin and then its argument prototype would still apply. */ 10915#ifdef __cplusplus 10916extern "C" 10917#endif 10918char shl_load (); 10919int 10920main () 10921{ 10922return shl_load (); 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927if ac_fn_c_try_link "$LINENO"; then : 10928 ac_cv_lib_dld_shl_load=yes 10929else 10930 ac_cv_lib_dld_shl_load=no 10931fi 10932rm -f core conftest.err conftest.$ac_objext \ 10933 conftest$ac_exeext conftest.$ac_ext 10934LIBS=$ac_check_lib_save_LIBS 10935fi 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10937$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10938if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10940else 10941 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10942if test "x$ac_cv_func_dlopen" = x""yes; then : 10943 lt_cv_dlopen="dlopen" 10944else 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10946$as_echo_n "checking for dlopen in -ldl... " >&6; } 10947if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10948 $as_echo_n "(cached) " >&6 10949else 10950 ac_check_lib_save_LIBS=$LIBS 10951LIBS="-ldl $LIBS" 10952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10953/* end confdefs.h. */ 10954 10955/* Override any GCC internal prototype to avoid an error. 10956 Use char because int might match the return type of a GCC 10957 builtin and then its argument prototype would still apply. */ 10958#ifdef __cplusplus 10959extern "C" 10960#endif 10961char dlopen (); 10962int 10963main () 10964{ 10965return dlopen (); 10966 ; 10967 return 0; 10968} 10969_ACEOF 10970if ac_fn_c_try_link "$LINENO"; then : 10971 ac_cv_lib_dl_dlopen=yes 10972else 10973 ac_cv_lib_dl_dlopen=no 10974fi 10975rm -f core conftest.err conftest.$ac_objext \ 10976 conftest$ac_exeext conftest.$ac_ext 10977LIBS=$ac_check_lib_save_LIBS 10978fi 10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10980$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10981if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10983else 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10985$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10986if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10987 $as_echo_n "(cached) " >&6 10988else 10989 ac_check_lib_save_LIBS=$LIBS 10990LIBS="-lsvld $LIBS" 10991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10992/* end confdefs.h. */ 10993 10994/* Override any GCC internal prototype to avoid an error. 10995 Use char because int might match the return type of a GCC 10996 builtin and then its argument prototype would still apply. */ 10997#ifdef __cplusplus 10998extern "C" 10999#endif 11000char dlopen (); 11001int 11002main () 11003{ 11004return dlopen (); 11005 ; 11006 return 0; 11007} 11008_ACEOF 11009if ac_fn_c_try_link "$LINENO"; then : 11010 ac_cv_lib_svld_dlopen=yes 11011else 11012 ac_cv_lib_svld_dlopen=no 11013fi 11014rm -f core conftest.err conftest.$ac_objext \ 11015 conftest$ac_exeext conftest.$ac_ext 11016LIBS=$ac_check_lib_save_LIBS 11017fi 11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11019$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11020if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11022else 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11024$as_echo_n "checking for dld_link in -ldld... " >&6; } 11025if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11026 $as_echo_n "(cached) " >&6 11027else 11028 ac_check_lib_save_LIBS=$LIBS 11029LIBS="-ldld $LIBS" 11030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11031/* end confdefs.h. */ 11032 11033/* Override any GCC internal prototype to avoid an error. 11034 Use char because int might match the return type of a GCC 11035 builtin and then its argument prototype would still apply. */ 11036#ifdef __cplusplus 11037extern "C" 11038#endif 11039char dld_link (); 11040int 11041main () 11042{ 11043return dld_link (); 11044 ; 11045 return 0; 11046} 11047_ACEOF 11048if ac_fn_c_try_link "$LINENO"; then : 11049 ac_cv_lib_dld_dld_link=yes 11050else 11051 ac_cv_lib_dld_dld_link=no 11052fi 11053rm -f core conftest.err conftest.$ac_objext \ 11054 conftest$ac_exeext conftest.$ac_ext 11055LIBS=$ac_check_lib_save_LIBS 11056fi 11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11058$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11059if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11061fi 11062 11063 11064fi 11065 11066 11067fi 11068 11069 11070fi 11071 11072 11073fi 11074 11075 11076fi 11077 11078 ;; 11079 esac 11080 11081 if test "x$lt_cv_dlopen" != xno; then 11082 enable_dlopen=yes 11083 else 11084 enable_dlopen=no 11085 fi 11086 11087 case $lt_cv_dlopen in 11088 dlopen) 11089 save_CPPFLAGS="$CPPFLAGS" 11090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11091 11092 save_LDFLAGS="$LDFLAGS" 11093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11094 11095 save_LIBS="$LIBS" 11096 LIBS="$lt_cv_dlopen_libs $LIBS" 11097 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11099$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11100if test "${lt_cv_dlopen_self+set}" = set; then : 11101 $as_echo_n "(cached) " >&6 11102else 11103 if test "$cross_compiling" = yes; then : 11104 lt_cv_dlopen_self=cross 11105else 11106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11107 lt_status=$lt_dlunknown 11108 cat > conftest.$ac_ext <<_LT_EOF 11109#line 11109 "configure" 11110#include "confdefs.h" 11111 11112#if HAVE_DLFCN_H 11113#include <dlfcn.h> 11114#endif 11115 11116#include <stdio.h> 11117 11118#ifdef RTLD_GLOBAL 11119# define LT_DLGLOBAL RTLD_GLOBAL 11120#else 11121# ifdef DL_GLOBAL 11122# define LT_DLGLOBAL DL_GLOBAL 11123# else 11124# define LT_DLGLOBAL 0 11125# endif 11126#endif 11127 11128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11129 find out it does not work in some platform. */ 11130#ifndef LT_DLLAZY_OR_NOW 11131# ifdef RTLD_LAZY 11132# define LT_DLLAZY_OR_NOW RTLD_LAZY 11133# else 11134# ifdef DL_LAZY 11135# define LT_DLLAZY_OR_NOW DL_LAZY 11136# else 11137# ifdef RTLD_NOW 11138# define LT_DLLAZY_OR_NOW RTLD_NOW 11139# else 11140# ifdef DL_NOW 11141# define LT_DLLAZY_OR_NOW DL_NOW 11142# else 11143# define LT_DLLAZY_OR_NOW 0 11144# endif 11145# endif 11146# endif 11147# endif 11148#endif 11149 11150/* When -fvisbility=hidden is used, assume the code has been annotated 11151 correspondingly for the symbols needed. */ 11152#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11153void fnord () __attribute__((visibility("default"))); 11154#endif 11155 11156void fnord () { int i=42; } 11157int main () 11158{ 11159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11160 int status = $lt_dlunknown; 11161 11162 if (self) 11163 { 11164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11165 else 11166 { 11167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11168 else puts (dlerror ()); 11169 } 11170 /* dlclose (self); */ 11171 } 11172 else 11173 puts (dlerror ()); 11174 11175 return status; 11176} 11177_LT_EOF 11178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11179 (eval $ac_link) 2>&5 11180 ac_status=$? 11181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11182 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11183 (./conftest; exit; ) >&5 2>/dev/null 11184 lt_status=$? 11185 case x$lt_status in 11186 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11187 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11188 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11189 esac 11190 else : 11191 # compilation failed 11192 lt_cv_dlopen_self=no 11193 fi 11194fi 11195rm -fr conftest* 11196 11197 11198fi 11199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11200$as_echo "$lt_cv_dlopen_self" >&6; } 11201 11202 if test "x$lt_cv_dlopen_self" = xyes; then 11203 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11205$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11206if test "${lt_cv_dlopen_self_static+set}" = set; then : 11207 $as_echo_n "(cached) " >&6 11208else 11209 if test "$cross_compiling" = yes; then : 11210 lt_cv_dlopen_self_static=cross 11211else 11212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11213 lt_status=$lt_dlunknown 11214 cat > conftest.$ac_ext <<_LT_EOF 11215#line 11215 "configure" 11216#include "confdefs.h" 11217 11218#if HAVE_DLFCN_H 11219#include <dlfcn.h> 11220#endif 11221 11222#include <stdio.h> 11223 11224#ifdef RTLD_GLOBAL 11225# define LT_DLGLOBAL RTLD_GLOBAL 11226#else 11227# ifdef DL_GLOBAL 11228# define LT_DLGLOBAL DL_GLOBAL 11229# else 11230# define LT_DLGLOBAL 0 11231# endif 11232#endif 11233 11234/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11235 find out it does not work in some platform. */ 11236#ifndef LT_DLLAZY_OR_NOW 11237# ifdef RTLD_LAZY 11238# define LT_DLLAZY_OR_NOW RTLD_LAZY 11239# else 11240# ifdef DL_LAZY 11241# define LT_DLLAZY_OR_NOW DL_LAZY 11242# else 11243# ifdef RTLD_NOW 11244# define LT_DLLAZY_OR_NOW RTLD_NOW 11245# else 11246# ifdef DL_NOW 11247# define LT_DLLAZY_OR_NOW DL_NOW 11248# else 11249# define LT_DLLAZY_OR_NOW 0 11250# endif 11251# endif 11252# endif 11253# endif 11254#endif 11255 11256/* When -fvisbility=hidden is used, assume the code has been annotated 11257 correspondingly for the symbols needed. */ 11258#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11259void fnord () __attribute__((visibility("default"))); 11260#endif 11261 11262void fnord () { int i=42; } 11263int main () 11264{ 11265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11266 int status = $lt_dlunknown; 11267 11268 if (self) 11269 { 11270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11271 else 11272 { 11273 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11274 else puts (dlerror ()); 11275 } 11276 /* dlclose (self); */ 11277 } 11278 else 11279 puts (dlerror ()); 11280 11281 return status; 11282} 11283_LT_EOF 11284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11285 (eval $ac_link) 2>&5 11286 ac_status=$? 11287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11288 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11289 (./conftest; exit; ) >&5 2>/dev/null 11290 lt_status=$? 11291 case x$lt_status in 11292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11295 esac 11296 else : 11297 # compilation failed 11298 lt_cv_dlopen_self_static=no 11299 fi 11300fi 11301rm -fr conftest* 11302 11303 11304fi 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11306$as_echo "$lt_cv_dlopen_self_static" >&6; } 11307 fi 11308 11309 CPPFLAGS="$save_CPPFLAGS" 11310 LDFLAGS="$save_LDFLAGS" 11311 LIBS="$save_LIBS" 11312 ;; 11313 esac 11314 11315 case $lt_cv_dlopen_self in 11316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11317 *) enable_dlopen_self=unknown ;; 11318 esac 11319 11320 case $lt_cv_dlopen_self_static in 11321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11322 *) enable_dlopen_self_static=unknown ;; 11323 esac 11324fi 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342striplib= 11343old_striplib= 11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11345$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11346if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11348 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11350$as_echo "yes" >&6; } 11351else 11352# FIXME - insert some real tests, host_os isn't really good enough 11353 case $host_os in 11354 darwin*) 11355 if test -n "$STRIP" ; then 11356 striplib="$STRIP -x" 11357 old_striplib="$STRIP -S" 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11359$as_echo "yes" >&6; } 11360 else 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11362$as_echo "no" >&6; } 11363 fi 11364 ;; 11365 *) 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11367$as_echo "no" >&6; } 11368 ;; 11369 esac 11370fi 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 # Report which library types will actually be built 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11385$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11387$as_echo "$can_build_shared" >&6; } 11388 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11390$as_echo_n "checking whether to build shared libraries... " >&6; } 11391 test "$can_build_shared" = "no" && enable_shared=no 11392 11393 # On AIX, shared libraries and static libraries use the same namespace, and 11394 # are all built from PIC. 11395 case $host_os in 11396 aix3*) 11397 test "$enable_shared" = yes && enable_static=no 11398 if test -n "$RANLIB"; then 11399 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11400 postinstall_cmds='$RANLIB $lib' 11401 fi 11402 ;; 11403 11404 aix[4-9]*) 11405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11406 test "$enable_shared" = yes && enable_static=no 11407 fi 11408 ;; 11409 esac 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11411$as_echo "$enable_shared" >&6; } 11412 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11414$as_echo_n "checking whether to build static libraries... " >&6; } 11415 # Make sure either enable_shared or enable_static is yes. 11416 test "$enable_shared" = yes || enable_static=yes 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11418$as_echo "$enable_static" >&6; } 11419 11420 11421 11422 11423fi 11424ac_ext=c 11425ac_cpp='$CPP $CPPFLAGS' 11426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11428ac_compiler_gnu=$ac_cv_c_compiler_gnu 11429 11430CC="$lt_save_CC" 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 ac_config_commands="$ac_config_commands libtool" 11445 11446 11447 11448 11449# Only expand once: 11450 11451 11452 11453 11454 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11456$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11457 # Check whether --enable-maintainer-mode was given. 11458if test "${enable_maintainer_mode+set}" = set; then : 11459 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11460else 11461 USE_MAINTAINER_MODE=no 11462fi 11463 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11465$as_echo "$USE_MAINTAINER_MODE" >&6; } 11466 if test $USE_MAINTAINER_MODE = yes; then 11467 MAINTAINER_MODE_TRUE= 11468 MAINTAINER_MODE_FALSE='#' 11469else 11470 MAINTAINER_MODE_TRUE='#' 11471 MAINTAINER_MODE_FALSE= 11472fi 11473 11474 MAINT=$MAINTAINER_MODE_TRUE 11475 11476 11477 11478# For libtool versioning info, format is CURRENT:REVISION:AGE 11479libtool_VERSION=2:0:1 11480 11481 11482# Get target configury. 11483. ${srcdir}/configure.tgt 11484if test -n "$UNSUPPORTED"; then 11485 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5 11486fi 11487 11488# Disable fallbacks to __sync routines from libgcc. Otherwise we'll 11489# make silly decisions about what the cpu can do. 11490CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS" 11491 11492# Check header files. 11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11494$as_echo_n "checking for ANSI C header files... " >&6; } 11495if test "${ac_cv_header_stdc+set}" = set; then : 11496 $as_echo_n "(cached) " >&6 11497else 11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11499/* end confdefs.h. */ 11500#include <stdlib.h> 11501#include <stdarg.h> 11502#include <string.h> 11503#include <float.h> 11504 11505int 11506main () 11507{ 11508 11509 ; 11510 return 0; 11511} 11512_ACEOF 11513if ac_fn_c_try_compile "$LINENO"; then : 11514 ac_cv_header_stdc=yes 11515else 11516 ac_cv_header_stdc=no 11517fi 11518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11519 11520if test $ac_cv_header_stdc = yes; then 11521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11523/* end confdefs.h. */ 11524#include <string.h> 11525 11526_ACEOF 11527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11528 $EGREP "memchr" >/dev/null 2>&1; then : 11529 11530else 11531 ac_cv_header_stdc=no 11532fi 11533rm -f conftest* 11534 11535fi 11536 11537if test $ac_cv_header_stdc = yes; then 11538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11540/* end confdefs.h. */ 11541#include <stdlib.h> 11542 11543_ACEOF 11544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11545 $EGREP "free" >/dev/null 2>&1; then : 11546 11547else 11548 ac_cv_header_stdc=no 11549fi 11550rm -f conftest* 11551 11552fi 11553 11554if test $ac_cv_header_stdc = yes; then 11555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11556 if test "$cross_compiling" = yes; then : 11557 : 11558else 11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11560/* end confdefs.h. */ 11561#include <ctype.h> 11562#include <stdlib.h> 11563#if ((' ' & 0x0FF) == 0x020) 11564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11566#else 11567# define ISLOWER(c) \ 11568 (('a' <= (c) && (c) <= 'i') \ 11569 || ('j' <= (c) && (c) <= 'r') \ 11570 || ('s' <= (c) && (c) <= 'z')) 11571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11572#endif 11573 11574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11575int 11576main () 11577{ 11578 int i; 11579 for (i = 0; i < 256; i++) 11580 if (XOR (islower (i), ISLOWER (i)) 11581 || toupper (i) != TOUPPER (i)) 11582 return 2; 11583 return 0; 11584} 11585_ACEOF 11586if ac_fn_c_try_run "$LINENO"; then : 11587 11588else 11589 ac_cv_header_stdc=no 11590fi 11591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11592 conftest.$ac_objext conftest.beam conftest.$ac_ext 11593fi 11594 11595fi 11596fi 11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11598$as_echo "$ac_cv_header_stdc" >&6; } 11599if test $ac_cv_header_stdc = yes; then 11600 11601$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11602 11603fi 11604 11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 11606$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 11607if test "${gcc_cv_header_string+set}" = set; then : 11608 $as_echo_n "(cached) " >&6 11609else 11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11611/* end confdefs.h. */ 11612#include <string.h> 11613#include <strings.h> 11614int 11615main () 11616{ 11617 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622if ac_fn_c_try_compile "$LINENO"; then : 11623 gcc_cv_header_string=yes 11624else 11625 gcc_cv_header_string=no 11626fi 11627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11628fi 11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 11630$as_echo "$gcc_cv_header_string" >&6; } 11631if test $gcc_cv_header_string = yes; then 11632 11633$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 11634 11635fi 11636 11637 11638 11639inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 11640 11641acx_cv_header_stdint=stddef.h 11642acx_cv_header_stdint_kind="(already complete)" 11643for i in stdint.h $inttype_headers; do 11644 unset ac_cv_type_uintptr_t 11645 unset ac_cv_type_uintmax_t 11646 unset ac_cv_type_int_least32_t 11647 unset ac_cv_type_int_fast32_t 11648 unset ac_cv_type_uint64_t 11649 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 11650 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 11651#include <$i> 11652" 11653if test "x$ac_cv_type_uintmax_t" = x""yes; then : 11654 acx_cv_header_stdint=$i 11655else 11656 continue 11657fi 11658 11659 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 11660#include <$i> 11661" 11662if test "x$ac_cv_type_uintptr_t" = x""yes; then : 11663 11664else 11665 acx_cv_header_stdint_kind="(mostly complete)" 11666fi 11667 11668 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 11669#include <$i> 11670" 11671if test "x$ac_cv_type_int_least32_t" = x""yes; then : 11672 11673else 11674 acx_cv_header_stdint_kind="(mostly complete)" 11675fi 11676 11677 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 11678#include <$i> 11679" 11680if test "x$ac_cv_type_int_fast32_t" = x""yes; then : 11681 11682else 11683 acx_cv_header_stdint_kind="(mostly complete)" 11684fi 11685 11686 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 11687#include <$i> 11688" 11689if test "x$ac_cv_type_uint64_t" = x""yes; then : 11690 11691else 11692 acx_cv_header_stdint_kind="(lacks uint64_t)" 11693fi 11694 11695 break 11696done 11697if test "$acx_cv_header_stdint" = stddef.h; then 11698 acx_cv_header_stdint_kind="(lacks uintmax_t)" 11699 for i in stdint.h $inttype_headers; do 11700 unset ac_cv_type_uintptr_t 11701 unset ac_cv_type_uint32_t 11702 unset ac_cv_type_uint64_t 11703 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 11704 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 11705#include <$i> 11706" 11707if test "x$ac_cv_type_uint32_t" = x""yes; then : 11708 acx_cv_header_stdint=$i 11709else 11710 continue 11711fi 11712 11713 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 11714#include <$i> 11715" 11716if test "x$ac_cv_type_uint64_t" = x""yes; then : 11717 11718fi 11719 11720 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 11721#include <$i> 11722" 11723if test "x$ac_cv_type_uintptr_t" = x""yes; then : 11724 11725fi 11726 11727 break 11728 done 11729fi 11730if test "$acx_cv_header_stdint" = stddef.h; then 11731 acx_cv_header_stdint_kind="(u_intXX_t style)" 11732 for i in sys/types.h $inttype_headers; do 11733 unset ac_cv_type_u_int32_t 11734 unset ac_cv_type_u_int64_t 11735 $as_echo_n "looking for u_intXX_t types in $i, " >&6 11736 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 11737#include <$i> 11738" 11739if test "x$ac_cv_type_u_int32_t" = x""yes; then : 11740 acx_cv_header_stdint=$i 11741else 11742 continue 11743fi 11744 11745 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 11746#include <$i> 11747" 11748if test "x$ac_cv_type_u_int64_t" = x""yes; then : 11749 11750fi 11751 11752 break 11753 done 11754fi 11755if test "$acx_cv_header_stdint" = stddef.h; then 11756 acx_cv_header_stdint_kind="(using manual detection)" 11757fi 11758 11759test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 11760test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 11761test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 11762test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 11763test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 11764 11765# ----------------- Summarize what we found so far 11766 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 11768$as_echo_n "checking what to include in gstdint.h... " >&6; } 11769 11770case `$as_basename -- gstdint.h || 11771$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 11772 Xgstdint.h : 'X\(//\)$' \| \ 11773 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || 11774$as_echo X/gstdint.h | 11775 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11776 s//\1/ 11777 q 11778 } 11779 /^X\/\(\/\/\)$/{ 11780 s//\1/ 11781 q 11782 } 11783 /^X\/\(\/\).*/{ 11784 s//\1/ 11785 q 11786 } 11787 s/.*/./; q'` in 11788 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 11789$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 11790 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 11791$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 11792 *) ;; 11793esac 11794 11795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 11796$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 11797 11798# ----------------- done included file, check C basic types -------- 11799 11800# Lacking an uintptr_t? Test size of void * 11801case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 11802 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 11803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11805# This bug is HP SR number 8606223364. 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 11807$as_echo_n "checking size of void *... " >&6; } 11808if test "${ac_cv_sizeof_void_p+set}" = set; then : 11809 $as_echo_n "(cached) " >&6 11810else 11811 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 11812 11813else 11814 if test "$ac_cv_type_void_p" = yes; then 11815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11817{ as_fn_set_status 77 11818as_fn_error "cannot compute sizeof (void *) 11819See \`config.log' for more details." "$LINENO" 5; }; } 11820 else 11821 ac_cv_sizeof_void_p=0 11822 fi 11823fi 11824 11825fi 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 11827$as_echo "$ac_cv_sizeof_void_p" >&6; } 11828 11829 11830 11831cat >>confdefs.h <<_ACEOF 11832#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 11833_ACEOF 11834 11835 ;; 11836esac 11837 11838# Lacking an uint64_t? Test size of long 11839case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 11840 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 11841# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11842# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11843# This bug is HP SR number 8606223364. 11844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 11845$as_echo_n "checking size of long... " >&6; } 11846if test "${ac_cv_sizeof_long+set}" = set; then : 11847 $as_echo_n "(cached) " >&6 11848else 11849 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 11850 11851else 11852 if test "$ac_cv_type_long" = yes; then 11853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11855{ as_fn_set_status 77 11856as_fn_error "cannot compute sizeof (long) 11857See \`config.log' for more details." "$LINENO" 5; }; } 11858 else 11859 ac_cv_sizeof_long=0 11860 fi 11861fi 11862 11863fi 11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 11865$as_echo "$ac_cv_sizeof_long" >&6; } 11866 11867 11868 11869cat >>confdefs.h <<_ACEOF 11870#define SIZEOF_LONG $ac_cv_sizeof_long 11871_ACEOF 11872 11873 ;; 11874esac 11875 11876if test $acx_cv_header_stdint = stddef.h; then 11877 # Lacking a good header? Test size of everything and deduce all types. 11878 # The cast to long int works around a bug in the HP C Compiler 11879# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11880# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11881# This bug is HP SR number 8606223364. 11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 11883$as_echo_n "checking size of int... " >&6; } 11884if test "${ac_cv_sizeof_int+set}" = set; then : 11885 $as_echo_n "(cached) " >&6 11886else 11887 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 11888 11889else 11890 if test "$ac_cv_type_int" = yes; then 11891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11893{ as_fn_set_status 77 11894as_fn_error "cannot compute sizeof (int) 11895See \`config.log' for more details." "$LINENO" 5; }; } 11896 else 11897 ac_cv_sizeof_int=0 11898 fi 11899fi 11900 11901fi 11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 11903$as_echo "$ac_cv_sizeof_int" >&6; } 11904 11905 11906 11907cat >>confdefs.h <<_ACEOF 11908#define SIZEOF_INT $ac_cv_sizeof_int 11909_ACEOF 11910 11911 11912 # The cast to long int works around a bug in the HP C Compiler 11913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11915# This bug is HP SR number 8606223364. 11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 11917$as_echo_n "checking size of short... " >&6; } 11918if test "${ac_cv_sizeof_short+set}" = set; then : 11919 $as_echo_n "(cached) " >&6 11920else 11921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 11922 11923else 11924 if test "$ac_cv_type_short" = yes; then 11925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11927{ as_fn_set_status 77 11928as_fn_error "cannot compute sizeof (short) 11929See \`config.log' for more details." "$LINENO" 5; }; } 11930 else 11931 ac_cv_sizeof_short=0 11932 fi 11933fi 11934 11935fi 11936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 11937$as_echo "$ac_cv_sizeof_short" >&6; } 11938 11939 11940 11941cat >>confdefs.h <<_ACEOF 11942#define SIZEOF_SHORT $ac_cv_sizeof_short 11943_ACEOF 11944 11945 11946 # The cast to long int works around a bug in the HP C Compiler 11947# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11948# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11949# This bug is HP SR number 8606223364. 11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 11951$as_echo_n "checking size of char... " >&6; } 11952if test "${ac_cv_sizeof_char+set}" = set; then : 11953 $as_echo_n "(cached) " >&6 11954else 11955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 11956 11957else 11958 if test "$ac_cv_type_char" = yes; then 11959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11961{ as_fn_set_status 77 11962as_fn_error "cannot compute sizeof (char) 11963See \`config.log' for more details." "$LINENO" 5; }; } 11964 else 11965 ac_cv_sizeof_char=0 11966 fi 11967fi 11968 11969fi 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 11971$as_echo "$ac_cv_sizeof_char" >&6; } 11972 11973 11974 11975cat >>confdefs.h <<_ACEOF 11976#define SIZEOF_CHAR $ac_cv_sizeof_char 11977_ACEOF 11978 11979 11980 11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 11982$as_echo_n "checking for type equivalent to int8_t... " >&6; } 11983 case "$ac_cv_sizeof_char" in 11984 1) acx_cv_type_int8_t=char ;; 11985 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 11986 esac 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 11988$as_echo "$acx_cv_type_int8_t" >&6; } 11989 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 11991$as_echo_n "checking for type equivalent to int16_t... " >&6; } 11992 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 11993 2:*) acx_cv_type_int16_t=int ;; 11994 *:2) acx_cv_type_int16_t=short ;; 11995 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 11996 esac 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 11998$as_echo "$acx_cv_type_int16_t" >&6; } 11999 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 12001$as_echo_n "checking for type equivalent to int32_t... " >&6; } 12002 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 12003 4:*) acx_cv_type_int32_t=int ;; 12004 *:4) acx_cv_type_int32_t=long ;; 12005 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 12006 esac 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 12008$as_echo "$acx_cv_type_int32_t" >&6; } 12009fi 12010 12011# These tests are here to make the output prettier 12012 12013if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 12014 case "$ac_cv_sizeof_long" in 12015 8) acx_cv_type_int64_t=long ;; 12016 esac 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 12018$as_echo_n "checking for type equivalent to int64_t... " >&6; } 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 12020$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 12021fi 12022 12023# Now we can use the above types 12024 12025if test "$ac_cv_type_uintptr_t" != yes; then 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 12027$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 12028 case $ac_cv_sizeof_void_p in 12029 2) acx_cv_type_intptr_t=int16_t ;; 12030 4) acx_cv_type_intptr_t=int32_t ;; 12031 8) acx_cv_type_intptr_t=int64_t ;; 12032 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 12033 esac 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 12035$as_echo "$acx_cv_type_intptr_t" >&6; } 12036fi 12037 12038# ----------------- done all checks, emit header ------------- 12039ac_config_commands="$ac_config_commands gstdint.h" 12040 12041 12042 12043for ac_header in fenv.h 12044do : 12045 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" 12046if test "x$ac_cv_header_fenv_h" = x""yes; then : 12047 cat >>confdefs.h <<_ACEOF 12048#define HAVE_FENV_H 1 12049_ACEOF 12050 12051fi 12052 12053done 12054 12055 12056# Check for common type sizes 12057 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5 12059$as_echo_n "checking for 1 byte integer... " >&6; } 12060if test "${libat_cv_have_mode_QI+set}" = set; then : 12061 $as_echo_n "(cached) " >&6 12062else 12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12064/* end confdefs.h. */ 12065int x __attribute__((mode(QI))); 12066_ACEOF 12067if ac_fn_c_try_compile "$LINENO"; then : 12068 libat_cv_have_mode_QI=yes 12069else 12070 libat_cv_have_mode_QI=no 12071fi 12072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12073fi 12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5 12075$as_echo "$libat_cv_have_mode_QI" >&6; } 12076 12077 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '` 12078 12079cat >>confdefs.h <<_ACEOF 12080#define HAVE_INT1 $yesno 12081_ACEOF 12082 12083 12084 if test x$libat_cv_have_mode_QI = xyes; then 12085 SIZES="$SIZES 1" 12086 fi 12087 12088 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5 12090$as_echo_n "checking for 2 byte integer... " >&6; } 12091if test "${libat_cv_have_mode_HI+set}" = set; then : 12092 $as_echo_n "(cached) " >&6 12093else 12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12095/* end confdefs.h. */ 12096int x __attribute__((mode(HI))); 12097_ACEOF 12098if ac_fn_c_try_compile "$LINENO"; then : 12099 libat_cv_have_mode_HI=yes 12100else 12101 libat_cv_have_mode_HI=no 12102fi 12103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12104fi 12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5 12106$as_echo "$libat_cv_have_mode_HI" >&6; } 12107 12108 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '` 12109 12110cat >>confdefs.h <<_ACEOF 12111#define HAVE_INT2 $yesno 12112_ACEOF 12113 12114 12115 if test x$libat_cv_have_mode_HI = xyes; then 12116 SIZES="$SIZES 2" 12117 fi 12118 12119 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5 12121$as_echo_n "checking for 4 byte integer... " >&6; } 12122if test "${libat_cv_have_mode_SI+set}" = set; then : 12123 $as_echo_n "(cached) " >&6 12124else 12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12126/* end confdefs.h. */ 12127int x __attribute__((mode(SI))); 12128_ACEOF 12129if ac_fn_c_try_compile "$LINENO"; then : 12130 libat_cv_have_mode_SI=yes 12131else 12132 libat_cv_have_mode_SI=no 12133fi 12134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12135fi 12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5 12137$as_echo "$libat_cv_have_mode_SI" >&6; } 12138 12139 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '` 12140 12141cat >>confdefs.h <<_ACEOF 12142#define HAVE_INT4 $yesno 12143_ACEOF 12144 12145 12146 if test x$libat_cv_have_mode_SI = xyes; then 12147 SIZES="$SIZES 4" 12148 fi 12149 12150 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5 12152$as_echo_n "checking for 8 byte integer... " >&6; } 12153if test "${libat_cv_have_mode_DI+set}" = set; then : 12154 $as_echo_n "(cached) " >&6 12155else 12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12157/* end confdefs.h. */ 12158int x __attribute__((mode(DI))); 12159_ACEOF 12160if ac_fn_c_try_compile "$LINENO"; then : 12161 libat_cv_have_mode_DI=yes 12162else 12163 libat_cv_have_mode_DI=no 12164fi 12165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12166fi 12167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5 12168$as_echo "$libat_cv_have_mode_DI" >&6; } 12169 12170 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '` 12171 12172cat >>confdefs.h <<_ACEOF 12173#define HAVE_INT8 $yesno 12174_ACEOF 12175 12176 12177 if test x$libat_cv_have_mode_DI = xyes; then 12178 SIZES="$SIZES 8" 12179 fi 12180 12181 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5 12183$as_echo_n "checking for 16 byte integer... " >&6; } 12184if test "${libat_cv_have_mode_TI+set}" = set; then : 12185 $as_echo_n "(cached) " >&6 12186else 12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12188/* end confdefs.h. */ 12189int x __attribute__((mode(TI))); 12190_ACEOF 12191if ac_fn_c_try_compile "$LINENO"; then : 12192 libat_cv_have_mode_TI=yes 12193else 12194 libat_cv_have_mode_TI=no 12195fi 12196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12197fi 12198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5 12199$as_echo "$libat_cv_have_mode_TI" >&6; } 12200 12201 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '` 12202 12203cat >>confdefs.h <<_ACEOF 12204#define HAVE_INT16 $yesno 12205_ACEOF 12206 12207 12208 if test x$libat_cv_have_mode_TI = xyes; then 12209 SIZES="$SIZES 16" 12210 fi 12211 12212 12213 12214# Check for compiler builtins of atomic operations. 12215 12216 # Do link tests if possible, instead asm tests, limited to some platforms 12217 # see discussion in PR target/40134, PR libstdc++/40133 and the thread 12218 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html 12219 atomic_builtins_link_tests=no 12220 if test x$gcc_no_link != xyes; then 12221 # Can do link tests. Limit to some tested platforms 12222 case "$host" in 12223 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*) 12224 atomic_builtins_link_tests=yes 12225 ;; 12226 esac 12227 fi 12228 12229 12230 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5 12232$as_echo_n "checking for __atomic_load/store for size 1... " >&6; } 12233if test "${libat_cv_have_at_ldst_1+set}" = set; then : 12234 $as_echo_n "(cached) " >&6 12235else 12236 12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12238/* end confdefs.h. */ 12239 12240int 12241main () 12242{ 12243typedef int T __attribute__((mode(QI))); 12244 T *x; volatile T sink; asm("" : "=g"(x)); 12245 sink = __atomic_load_n(x, 0); 12246 __atomic_store_n(x, sink, 0); 12247 ; 12248 return 0; 12249} 12250_ACEOF 12251 if test x$atomic_builtins_link_tests = xyes; then 12252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12253 (eval $ac_link) 2>&5 12254 ac_status=$? 12255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12256 test $ac_status = 0; }; then 12257 eval libat_cv_have_at_ldst_1=yes 12258 else 12259 eval libat_cv_have_at_ldst_1=no 12260 fi 12261 else 12262 old_CFLAGS="$CFLAGS" 12263 # Compile unoptimized. 12264 CFLAGS="$CFLAGS -O0 -S" 12265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12266 (eval $ac_compile) 2>&5 12267 ac_status=$? 12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12269 test $ac_status = 0; }; then 12270 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12271 eval libat_cv_have_at_ldst_1=no 12272 else 12273 eval libat_cv_have_at_ldst_1=yes 12274 fi 12275 else 12276 eval libat_cv_have_at_ldst_1=no 12277 fi 12278 CFLAGS="$old_CFLAGS" 12279 fi 12280 rm -f conftest* 12281 12282fi 12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5 12284$as_echo "$libat_cv_have_at_ldst_1" >&6; } 12285 12286 12287 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '` 12288 12289cat >>confdefs.h <<_ACEOF 12290#define HAVE_ATOMIC_LDST_1 $yesno 12291_ACEOF 12292 12293 12294 12295 12296 12297 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5 12299$as_echo_n "checking for __atomic_load/store for size 2... " >&6; } 12300if test "${libat_cv_have_at_ldst_2+set}" = set; then : 12301 $as_echo_n "(cached) " >&6 12302else 12303 12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12305/* end confdefs.h. */ 12306 12307int 12308main () 12309{ 12310typedef int T __attribute__((mode(HI))); 12311 T *x; volatile T sink; asm("" : "=g"(x)); 12312 sink = __atomic_load_n(x, 0); 12313 __atomic_store_n(x, sink, 0); 12314 ; 12315 return 0; 12316} 12317_ACEOF 12318 if test x$atomic_builtins_link_tests = xyes; then 12319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12320 (eval $ac_link) 2>&5 12321 ac_status=$? 12322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12323 test $ac_status = 0; }; then 12324 eval libat_cv_have_at_ldst_2=yes 12325 else 12326 eval libat_cv_have_at_ldst_2=no 12327 fi 12328 else 12329 old_CFLAGS="$CFLAGS" 12330 # Compile unoptimized. 12331 CFLAGS="$CFLAGS -O0 -S" 12332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12333 (eval $ac_compile) 2>&5 12334 ac_status=$? 12335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12336 test $ac_status = 0; }; then 12337 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12338 eval libat_cv_have_at_ldst_2=no 12339 else 12340 eval libat_cv_have_at_ldst_2=yes 12341 fi 12342 else 12343 eval libat_cv_have_at_ldst_2=no 12344 fi 12345 CFLAGS="$old_CFLAGS" 12346 fi 12347 rm -f conftest* 12348 12349fi 12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5 12351$as_echo "$libat_cv_have_at_ldst_2" >&6; } 12352 12353 12354 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '` 12355 12356cat >>confdefs.h <<_ACEOF 12357#define HAVE_ATOMIC_LDST_2 $yesno 12358_ACEOF 12359 12360 12361 12362 12363 12364 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5 12366$as_echo_n "checking for __atomic_load/store for size 4... " >&6; } 12367if test "${libat_cv_have_at_ldst_4+set}" = set; then : 12368 $as_echo_n "(cached) " >&6 12369else 12370 12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12372/* end confdefs.h. */ 12373 12374int 12375main () 12376{ 12377typedef int T __attribute__((mode(SI))); 12378 T *x; volatile T sink; asm("" : "=g"(x)); 12379 sink = __atomic_load_n(x, 0); 12380 __atomic_store_n(x, sink, 0); 12381 ; 12382 return 0; 12383} 12384_ACEOF 12385 if test x$atomic_builtins_link_tests = xyes; then 12386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12387 (eval $ac_link) 2>&5 12388 ac_status=$? 12389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12390 test $ac_status = 0; }; then 12391 eval libat_cv_have_at_ldst_4=yes 12392 else 12393 eval libat_cv_have_at_ldst_4=no 12394 fi 12395 else 12396 old_CFLAGS="$CFLAGS" 12397 # Compile unoptimized. 12398 CFLAGS="$CFLAGS -O0 -S" 12399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12400 (eval $ac_compile) 2>&5 12401 ac_status=$? 12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12403 test $ac_status = 0; }; then 12404 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12405 eval libat_cv_have_at_ldst_4=no 12406 else 12407 eval libat_cv_have_at_ldst_4=yes 12408 fi 12409 else 12410 eval libat_cv_have_at_ldst_4=no 12411 fi 12412 CFLAGS="$old_CFLAGS" 12413 fi 12414 rm -f conftest* 12415 12416fi 12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5 12418$as_echo "$libat_cv_have_at_ldst_4" >&6; } 12419 12420 12421 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '` 12422 12423cat >>confdefs.h <<_ACEOF 12424#define HAVE_ATOMIC_LDST_4 $yesno 12425_ACEOF 12426 12427 12428 12429 12430 12431 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5 12433$as_echo_n "checking for __atomic_load/store for size 8... " >&6; } 12434if test "${libat_cv_have_at_ldst_8+set}" = set; then : 12435 $as_echo_n "(cached) " >&6 12436else 12437 12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12439/* end confdefs.h. */ 12440 12441int 12442main () 12443{ 12444typedef int T __attribute__((mode(DI))); 12445 T *x; volatile T sink; asm("" : "=g"(x)); 12446 sink = __atomic_load_n(x, 0); 12447 __atomic_store_n(x, sink, 0); 12448 ; 12449 return 0; 12450} 12451_ACEOF 12452 if test x$atomic_builtins_link_tests = xyes; then 12453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12454 (eval $ac_link) 2>&5 12455 ac_status=$? 12456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12457 test $ac_status = 0; }; then 12458 eval libat_cv_have_at_ldst_8=yes 12459 else 12460 eval libat_cv_have_at_ldst_8=no 12461 fi 12462 else 12463 old_CFLAGS="$CFLAGS" 12464 # Compile unoptimized. 12465 CFLAGS="$CFLAGS -O0 -S" 12466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12467 (eval $ac_compile) 2>&5 12468 ac_status=$? 12469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12470 test $ac_status = 0; }; then 12471 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12472 eval libat_cv_have_at_ldst_8=no 12473 else 12474 eval libat_cv_have_at_ldst_8=yes 12475 fi 12476 else 12477 eval libat_cv_have_at_ldst_8=no 12478 fi 12479 CFLAGS="$old_CFLAGS" 12480 fi 12481 rm -f conftest* 12482 12483fi 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5 12485$as_echo "$libat_cv_have_at_ldst_8" >&6; } 12486 12487 12488 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '` 12489 12490cat >>confdefs.h <<_ACEOF 12491#define HAVE_ATOMIC_LDST_8 $yesno 12492_ACEOF 12493 12494 12495 12496 12497 12498 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5 12500$as_echo_n "checking for __atomic_load/store for size 16... " >&6; } 12501if test "${libat_cv_have_at_ldst_16+set}" = set; then : 12502 $as_echo_n "(cached) " >&6 12503else 12504 12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12506/* end confdefs.h. */ 12507 12508int 12509main () 12510{ 12511typedef int T __attribute__((mode(TI))); 12512 T *x; volatile T sink; asm("" : "=g"(x)); 12513 sink = __atomic_load_n(x, 0); 12514 __atomic_store_n(x, sink, 0); 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519 if test x$atomic_builtins_link_tests = xyes; then 12520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12521 (eval $ac_link) 2>&5 12522 ac_status=$? 12523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12524 test $ac_status = 0; }; then 12525 eval libat_cv_have_at_ldst_16=yes 12526 else 12527 eval libat_cv_have_at_ldst_16=no 12528 fi 12529 else 12530 old_CFLAGS="$CFLAGS" 12531 # Compile unoptimized. 12532 CFLAGS="$CFLAGS -O0 -S" 12533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12534 (eval $ac_compile) 2>&5 12535 ac_status=$? 12536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12537 test $ac_status = 0; }; then 12538 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12539 eval libat_cv_have_at_ldst_16=no 12540 else 12541 eval libat_cv_have_at_ldst_16=yes 12542 fi 12543 else 12544 eval libat_cv_have_at_ldst_16=no 12545 fi 12546 CFLAGS="$old_CFLAGS" 12547 fi 12548 rm -f conftest* 12549 12550fi 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5 12552$as_echo "$libat_cv_have_at_ldst_16" >&6; } 12553 12554 12555 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '` 12556 12557cat >>confdefs.h <<_ACEOF 12558#define HAVE_ATOMIC_LDST_16 $yesno 12559_ACEOF 12560 12561 12562 12563 12564 12565 12566 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5 12568$as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; } 12569if test "${libat_cv_have_at_tas_1+set}" = set; then : 12570 $as_echo_n "(cached) " >&6 12571else 12572 12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12574/* end confdefs.h. */ 12575 12576int 12577main () 12578{ 12579typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x)); 12580 __atomic_test_and_set(x, 0); 12581 ; 12582 return 0; 12583} 12584_ACEOF 12585 if test x$atomic_builtins_link_tests = xyes; then 12586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12587 (eval $ac_link) 2>&5 12588 ac_status=$? 12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12590 test $ac_status = 0; }; then 12591 eval libat_cv_have_at_tas_1=yes 12592 else 12593 eval libat_cv_have_at_tas_1=no 12594 fi 12595 else 12596 old_CFLAGS="$CFLAGS" 12597 # Compile unoptimized. 12598 CFLAGS="$CFLAGS -O0 -S" 12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12600 (eval $ac_compile) 2>&5 12601 ac_status=$? 12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12603 test $ac_status = 0; }; then 12604 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12605 eval libat_cv_have_at_tas_1=no 12606 else 12607 eval libat_cv_have_at_tas_1=yes 12608 fi 12609 else 12610 eval libat_cv_have_at_tas_1=no 12611 fi 12612 CFLAGS="$old_CFLAGS" 12613 fi 12614 rm -f conftest* 12615 12616fi 12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5 12618$as_echo "$libat_cv_have_at_tas_1" >&6; } 12619 12620 12621 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '` 12622 12623cat >>confdefs.h <<_ACEOF 12624#define HAVE_ATOMIC_TAS_1 $yesno 12625_ACEOF 12626 12627 12628 12629 12630 12631 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5 12633$as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; } 12634if test "${libat_cv_have_at_tas_2+set}" = set; then : 12635 $as_echo_n "(cached) " >&6 12636else 12637 12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12639/* end confdefs.h. */ 12640 12641int 12642main () 12643{ 12644typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x)); 12645 __atomic_test_and_set(x, 0); 12646 ; 12647 return 0; 12648} 12649_ACEOF 12650 if test x$atomic_builtins_link_tests = xyes; then 12651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12652 (eval $ac_link) 2>&5 12653 ac_status=$? 12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12655 test $ac_status = 0; }; then 12656 eval libat_cv_have_at_tas_2=yes 12657 else 12658 eval libat_cv_have_at_tas_2=no 12659 fi 12660 else 12661 old_CFLAGS="$CFLAGS" 12662 # Compile unoptimized. 12663 CFLAGS="$CFLAGS -O0 -S" 12664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12665 (eval $ac_compile) 2>&5 12666 ac_status=$? 12667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12668 test $ac_status = 0; }; then 12669 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12670 eval libat_cv_have_at_tas_2=no 12671 else 12672 eval libat_cv_have_at_tas_2=yes 12673 fi 12674 else 12675 eval libat_cv_have_at_tas_2=no 12676 fi 12677 CFLAGS="$old_CFLAGS" 12678 fi 12679 rm -f conftest* 12680 12681fi 12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5 12683$as_echo "$libat_cv_have_at_tas_2" >&6; } 12684 12685 12686 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '` 12687 12688cat >>confdefs.h <<_ACEOF 12689#define HAVE_ATOMIC_TAS_2 $yesno 12690_ACEOF 12691 12692 12693 12694 12695 12696 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5 12698$as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; } 12699if test "${libat_cv_have_at_tas_4+set}" = set; then : 12700 $as_echo_n "(cached) " >&6 12701else 12702 12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12704/* end confdefs.h. */ 12705 12706int 12707main () 12708{ 12709typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x)); 12710 __atomic_test_and_set(x, 0); 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715 if test x$atomic_builtins_link_tests = xyes; then 12716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12717 (eval $ac_link) 2>&5 12718 ac_status=$? 12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12720 test $ac_status = 0; }; then 12721 eval libat_cv_have_at_tas_4=yes 12722 else 12723 eval libat_cv_have_at_tas_4=no 12724 fi 12725 else 12726 old_CFLAGS="$CFLAGS" 12727 # Compile unoptimized. 12728 CFLAGS="$CFLAGS -O0 -S" 12729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12730 (eval $ac_compile) 2>&5 12731 ac_status=$? 12732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12733 test $ac_status = 0; }; then 12734 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12735 eval libat_cv_have_at_tas_4=no 12736 else 12737 eval libat_cv_have_at_tas_4=yes 12738 fi 12739 else 12740 eval libat_cv_have_at_tas_4=no 12741 fi 12742 CFLAGS="$old_CFLAGS" 12743 fi 12744 rm -f conftest* 12745 12746fi 12747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5 12748$as_echo "$libat_cv_have_at_tas_4" >&6; } 12749 12750 12751 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '` 12752 12753cat >>confdefs.h <<_ACEOF 12754#define HAVE_ATOMIC_TAS_4 $yesno 12755_ACEOF 12756 12757 12758 12759 12760 12761 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5 12763$as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; } 12764if test "${libat_cv_have_at_tas_8+set}" = set; then : 12765 $as_echo_n "(cached) " >&6 12766else 12767 12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12769/* end confdefs.h. */ 12770 12771int 12772main () 12773{ 12774typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x)); 12775 __atomic_test_and_set(x, 0); 12776 ; 12777 return 0; 12778} 12779_ACEOF 12780 if test x$atomic_builtins_link_tests = xyes; then 12781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12782 (eval $ac_link) 2>&5 12783 ac_status=$? 12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12785 test $ac_status = 0; }; then 12786 eval libat_cv_have_at_tas_8=yes 12787 else 12788 eval libat_cv_have_at_tas_8=no 12789 fi 12790 else 12791 old_CFLAGS="$CFLAGS" 12792 # Compile unoptimized. 12793 CFLAGS="$CFLAGS -O0 -S" 12794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12795 (eval $ac_compile) 2>&5 12796 ac_status=$? 12797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12798 test $ac_status = 0; }; then 12799 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12800 eval libat_cv_have_at_tas_8=no 12801 else 12802 eval libat_cv_have_at_tas_8=yes 12803 fi 12804 else 12805 eval libat_cv_have_at_tas_8=no 12806 fi 12807 CFLAGS="$old_CFLAGS" 12808 fi 12809 rm -f conftest* 12810 12811fi 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5 12813$as_echo "$libat_cv_have_at_tas_8" >&6; } 12814 12815 12816 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '` 12817 12818cat >>confdefs.h <<_ACEOF 12819#define HAVE_ATOMIC_TAS_8 $yesno 12820_ACEOF 12821 12822 12823 12824 12825 12826 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5 12828$as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; } 12829if test "${libat_cv_have_at_tas_16+set}" = set; then : 12830 $as_echo_n "(cached) " >&6 12831else 12832 12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12834/* end confdefs.h. */ 12835 12836int 12837main () 12838{ 12839typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x)); 12840 __atomic_test_and_set(x, 0); 12841 ; 12842 return 0; 12843} 12844_ACEOF 12845 if test x$atomic_builtins_link_tests = xyes; then 12846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12847 (eval $ac_link) 2>&5 12848 ac_status=$? 12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12850 test $ac_status = 0; }; then 12851 eval libat_cv_have_at_tas_16=yes 12852 else 12853 eval libat_cv_have_at_tas_16=no 12854 fi 12855 else 12856 old_CFLAGS="$CFLAGS" 12857 # Compile unoptimized. 12858 CFLAGS="$CFLAGS -O0 -S" 12859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12860 (eval $ac_compile) 2>&5 12861 ac_status=$? 12862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12863 test $ac_status = 0; }; then 12864 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12865 eval libat_cv_have_at_tas_16=no 12866 else 12867 eval libat_cv_have_at_tas_16=yes 12868 fi 12869 else 12870 eval libat_cv_have_at_tas_16=no 12871 fi 12872 CFLAGS="$old_CFLAGS" 12873 fi 12874 rm -f conftest* 12875 12876fi 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5 12878$as_echo "$libat_cv_have_at_tas_16" >&6; } 12879 12880 12881 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '` 12882 12883cat >>confdefs.h <<_ACEOF 12884#define HAVE_ATOMIC_TAS_16 $yesno 12885_ACEOF 12886 12887 12888 12889 12890 12891 12892 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5 12894$as_echo_n "checking for __atomic_exchange for size 1... " >&6; } 12895if test "${libat_cv_have_at_exch_1+set}" = set; then : 12896 $as_echo_n "(cached) " >&6 12897else 12898 12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12900/* end confdefs.h. */ 12901 12902int 12903main () 12904{ 12905typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x)); 12906 __atomic_exchange_n(x, 0, 0); 12907 ; 12908 return 0; 12909} 12910_ACEOF 12911 if test x$atomic_builtins_link_tests = xyes; then 12912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12913 (eval $ac_link) 2>&5 12914 ac_status=$? 12915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12916 test $ac_status = 0; }; then 12917 eval libat_cv_have_at_exch_1=yes 12918 else 12919 eval libat_cv_have_at_exch_1=no 12920 fi 12921 else 12922 old_CFLAGS="$CFLAGS" 12923 # Compile unoptimized. 12924 CFLAGS="$CFLAGS -O0 -S" 12925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12926 (eval $ac_compile) 2>&5 12927 ac_status=$? 12928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12929 test $ac_status = 0; }; then 12930 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12931 eval libat_cv_have_at_exch_1=no 12932 else 12933 eval libat_cv_have_at_exch_1=yes 12934 fi 12935 else 12936 eval libat_cv_have_at_exch_1=no 12937 fi 12938 CFLAGS="$old_CFLAGS" 12939 fi 12940 rm -f conftest* 12941 12942fi 12943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5 12944$as_echo "$libat_cv_have_at_exch_1" >&6; } 12945 12946 12947 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '` 12948 12949cat >>confdefs.h <<_ACEOF 12950#define HAVE_ATOMIC_EXCHANGE_1 $yesno 12951_ACEOF 12952 12953 12954 12955 12956 12957 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5 12959$as_echo_n "checking for __atomic_exchange for size 2... " >&6; } 12960if test "${libat_cv_have_at_exch_2+set}" = set; then : 12961 $as_echo_n "(cached) " >&6 12962else 12963 12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12965/* end confdefs.h. */ 12966 12967int 12968main () 12969{ 12970typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x)); 12971 __atomic_exchange_n(x, 0, 0); 12972 ; 12973 return 0; 12974} 12975_ACEOF 12976 if test x$atomic_builtins_link_tests = xyes; then 12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12978 (eval $ac_link) 2>&5 12979 ac_status=$? 12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12981 test $ac_status = 0; }; then 12982 eval libat_cv_have_at_exch_2=yes 12983 else 12984 eval libat_cv_have_at_exch_2=no 12985 fi 12986 else 12987 old_CFLAGS="$CFLAGS" 12988 # Compile unoptimized. 12989 CFLAGS="$CFLAGS -O0 -S" 12990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12991 (eval $ac_compile) 2>&5 12992 ac_status=$? 12993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12994 test $ac_status = 0; }; then 12995 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12996 eval libat_cv_have_at_exch_2=no 12997 else 12998 eval libat_cv_have_at_exch_2=yes 12999 fi 13000 else 13001 eval libat_cv_have_at_exch_2=no 13002 fi 13003 CFLAGS="$old_CFLAGS" 13004 fi 13005 rm -f conftest* 13006 13007fi 13008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5 13009$as_echo "$libat_cv_have_at_exch_2" >&6; } 13010 13011 13012 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '` 13013 13014cat >>confdefs.h <<_ACEOF 13015#define HAVE_ATOMIC_EXCHANGE_2 $yesno 13016_ACEOF 13017 13018 13019 13020 13021 13022 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5 13024$as_echo_n "checking for __atomic_exchange for size 4... " >&6; } 13025if test "${libat_cv_have_at_exch_4+set}" = set; then : 13026 $as_echo_n "(cached) " >&6 13027else 13028 13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13030/* end confdefs.h. */ 13031 13032int 13033main () 13034{ 13035typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x)); 13036 __atomic_exchange_n(x, 0, 0); 13037 ; 13038 return 0; 13039} 13040_ACEOF 13041 if test x$atomic_builtins_link_tests = xyes; then 13042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13043 (eval $ac_link) 2>&5 13044 ac_status=$? 13045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13046 test $ac_status = 0; }; then 13047 eval libat_cv_have_at_exch_4=yes 13048 else 13049 eval libat_cv_have_at_exch_4=no 13050 fi 13051 else 13052 old_CFLAGS="$CFLAGS" 13053 # Compile unoptimized. 13054 CFLAGS="$CFLAGS -O0 -S" 13055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13056 (eval $ac_compile) 2>&5 13057 ac_status=$? 13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13059 test $ac_status = 0; }; then 13060 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13061 eval libat_cv_have_at_exch_4=no 13062 else 13063 eval libat_cv_have_at_exch_4=yes 13064 fi 13065 else 13066 eval libat_cv_have_at_exch_4=no 13067 fi 13068 CFLAGS="$old_CFLAGS" 13069 fi 13070 rm -f conftest* 13071 13072fi 13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5 13074$as_echo "$libat_cv_have_at_exch_4" >&6; } 13075 13076 13077 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '` 13078 13079cat >>confdefs.h <<_ACEOF 13080#define HAVE_ATOMIC_EXCHANGE_4 $yesno 13081_ACEOF 13082 13083 13084 13085 13086 13087 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5 13089$as_echo_n "checking for __atomic_exchange for size 8... " >&6; } 13090if test "${libat_cv_have_at_exch_8+set}" = set; then : 13091 $as_echo_n "(cached) " >&6 13092else 13093 13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13095/* end confdefs.h. */ 13096 13097int 13098main () 13099{ 13100typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x)); 13101 __atomic_exchange_n(x, 0, 0); 13102 ; 13103 return 0; 13104} 13105_ACEOF 13106 if test x$atomic_builtins_link_tests = xyes; then 13107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13108 (eval $ac_link) 2>&5 13109 ac_status=$? 13110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13111 test $ac_status = 0; }; then 13112 eval libat_cv_have_at_exch_8=yes 13113 else 13114 eval libat_cv_have_at_exch_8=no 13115 fi 13116 else 13117 old_CFLAGS="$CFLAGS" 13118 # Compile unoptimized. 13119 CFLAGS="$CFLAGS -O0 -S" 13120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13121 (eval $ac_compile) 2>&5 13122 ac_status=$? 13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13124 test $ac_status = 0; }; then 13125 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13126 eval libat_cv_have_at_exch_8=no 13127 else 13128 eval libat_cv_have_at_exch_8=yes 13129 fi 13130 else 13131 eval libat_cv_have_at_exch_8=no 13132 fi 13133 CFLAGS="$old_CFLAGS" 13134 fi 13135 rm -f conftest* 13136 13137fi 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5 13139$as_echo "$libat_cv_have_at_exch_8" >&6; } 13140 13141 13142 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '` 13143 13144cat >>confdefs.h <<_ACEOF 13145#define HAVE_ATOMIC_EXCHANGE_8 $yesno 13146_ACEOF 13147 13148 13149 13150 13151 13152 13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5 13154$as_echo_n "checking for __atomic_exchange for size 16... " >&6; } 13155if test "${libat_cv_have_at_exch_16+set}" = set; then : 13156 $as_echo_n "(cached) " >&6 13157else 13158 13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13160/* end confdefs.h. */ 13161 13162int 13163main () 13164{ 13165typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x)); 13166 __atomic_exchange_n(x, 0, 0); 13167 ; 13168 return 0; 13169} 13170_ACEOF 13171 if test x$atomic_builtins_link_tests = xyes; then 13172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13173 (eval $ac_link) 2>&5 13174 ac_status=$? 13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13176 test $ac_status = 0; }; then 13177 eval libat_cv_have_at_exch_16=yes 13178 else 13179 eval libat_cv_have_at_exch_16=no 13180 fi 13181 else 13182 old_CFLAGS="$CFLAGS" 13183 # Compile unoptimized. 13184 CFLAGS="$CFLAGS -O0 -S" 13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13186 (eval $ac_compile) 2>&5 13187 ac_status=$? 13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13189 test $ac_status = 0; }; then 13190 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13191 eval libat_cv_have_at_exch_16=no 13192 else 13193 eval libat_cv_have_at_exch_16=yes 13194 fi 13195 else 13196 eval libat_cv_have_at_exch_16=no 13197 fi 13198 CFLAGS="$old_CFLAGS" 13199 fi 13200 rm -f conftest* 13201 13202fi 13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5 13204$as_echo "$libat_cv_have_at_exch_16" >&6; } 13205 13206 13207 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '` 13208 13209cat >>confdefs.h <<_ACEOF 13210#define HAVE_ATOMIC_EXCHANGE_16 $yesno 13211_ACEOF 13212 13213 13214 13215 13216 13217 13218 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5 13220$as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; } 13221if test "${libat_cv_have_at_cas_1+set}" = set; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13226/* end confdefs.h. */ 13227 13228int 13229main () 13230{ 13231typedef int T __attribute__((mode(QI))); T *x, *y; 13232 asm("" : "=g"(x), "=g"(y)); 13233 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238 if test x$atomic_builtins_link_tests = xyes; then 13239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13240 (eval $ac_link) 2>&5 13241 ac_status=$? 13242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13243 test $ac_status = 0; }; then 13244 eval libat_cv_have_at_cas_1=yes 13245 else 13246 eval libat_cv_have_at_cas_1=no 13247 fi 13248 else 13249 old_CFLAGS="$CFLAGS" 13250 # Compile unoptimized. 13251 CFLAGS="$CFLAGS -O0 -S" 13252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13253 (eval $ac_compile) 2>&5 13254 ac_status=$? 13255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13256 test $ac_status = 0; }; then 13257 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13258 eval libat_cv_have_at_cas_1=no 13259 else 13260 eval libat_cv_have_at_cas_1=yes 13261 fi 13262 else 13263 eval libat_cv_have_at_cas_1=no 13264 fi 13265 CFLAGS="$old_CFLAGS" 13266 fi 13267 rm -f conftest* 13268 13269fi 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5 13271$as_echo "$libat_cv_have_at_cas_1" >&6; } 13272 13273 13274 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '` 13275 13276cat >>confdefs.h <<_ACEOF 13277#define HAVE_ATOMIC_CAS_1 $yesno 13278_ACEOF 13279 13280 13281 13282 13283 13284 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5 13286$as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; } 13287if test "${libat_cv_have_at_cas_2+set}" = set; then : 13288 $as_echo_n "(cached) " >&6 13289else 13290 13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13292/* end confdefs.h. */ 13293 13294int 13295main () 13296{ 13297typedef int T __attribute__((mode(HI))); T *x, *y; 13298 asm("" : "=g"(x), "=g"(y)); 13299 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13300 ; 13301 return 0; 13302} 13303_ACEOF 13304 if test x$atomic_builtins_link_tests = xyes; then 13305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13306 (eval $ac_link) 2>&5 13307 ac_status=$? 13308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13309 test $ac_status = 0; }; then 13310 eval libat_cv_have_at_cas_2=yes 13311 else 13312 eval libat_cv_have_at_cas_2=no 13313 fi 13314 else 13315 old_CFLAGS="$CFLAGS" 13316 # Compile unoptimized. 13317 CFLAGS="$CFLAGS -O0 -S" 13318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13319 (eval $ac_compile) 2>&5 13320 ac_status=$? 13321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13322 test $ac_status = 0; }; then 13323 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13324 eval libat_cv_have_at_cas_2=no 13325 else 13326 eval libat_cv_have_at_cas_2=yes 13327 fi 13328 else 13329 eval libat_cv_have_at_cas_2=no 13330 fi 13331 CFLAGS="$old_CFLAGS" 13332 fi 13333 rm -f conftest* 13334 13335fi 13336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5 13337$as_echo "$libat_cv_have_at_cas_2" >&6; } 13338 13339 13340 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '` 13341 13342cat >>confdefs.h <<_ACEOF 13343#define HAVE_ATOMIC_CAS_2 $yesno 13344_ACEOF 13345 13346 13347 13348 13349 13350 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5 13352$as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; } 13353if test "${libat_cv_have_at_cas_4+set}" = set; then : 13354 $as_echo_n "(cached) " >&6 13355else 13356 13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13358/* end confdefs.h. */ 13359 13360int 13361main () 13362{ 13363typedef int T __attribute__((mode(SI))); T *x, *y; 13364 asm("" : "=g"(x), "=g"(y)); 13365 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13366 ; 13367 return 0; 13368} 13369_ACEOF 13370 if test x$atomic_builtins_link_tests = xyes; then 13371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13372 (eval $ac_link) 2>&5 13373 ac_status=$? 13374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13375 test $ac_status = 0; }; then 13376 eval libat_cv_have_at_cas_4=yes 13377 else 13378 eval libat_cv_have_at_cas_4=no 13379 fi 13380 else 13381 old_CFLAGS="$CFLAGS" 13382 # Compile unoptimized. 13383 CFLAGS="$CFLAGS -O0 -S" 13384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13385 (eval $ac_compile) 2>&5 13386 ac_status=$? 13387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13388 test $ac_status = 0; }; then 13389 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13390 eval libat_cv_have_at_cas_4=no 13391 else 13392 eval libat_cv_have_at_cas_4=yes 13393 fi 13394 else 13395 eval libat_cv_have_at_cas_4=no 13396 fi 13397 CFLAGS="$old_CFLAGS" 13398 fi 13399 rm -f conftest* 13400 13401fi 13402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5 13403$as_echo "$libat_cv_have_at_cas_4" >&6; } 13404 13405 13406 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '` 13407 13408cat >>confdefs.h <<_ACEOF 13409#define HAVE_ATOMIC_CAS_4 $yesno 13410_ACEOF 13411 13412 13413 13414 13415 13416 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5 13418$as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; } 13419if test "${libat_cv_have_at_cas_8+set}" = set; then : 13420 $as_echo_n "(cached) " >&6 13421else 13422 13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13424/* end confdefs.h. */ 13425 13426int 13427main () 13428{ 13429typedef int T __attribute__((mode(DI))); T *x, *y; 13430 asm("" : "=g"(x), "=g"(y)); 13431 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13432 ; 13433 return 0; 13434} 13435_ACEOF 13436 if test x$atomic_builtins_link_tests = xyes; then 13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13438 (eval $ac_link) 2>&5 13439 ac_status=$? 13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13441 test $ac_status = 0; }; then 13442 eval libat_cv_have_at_cas_8=yes 13443 else 13444 eval libat_cv_have_at_cas_8=no 13445 fi 13446 else 13447 old_CFLAGS="$CFLAGS" 13448 # Compile unoptimized. 13449 CFLAGS="$CFLAGS -O0 -S" 13450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13451 (eval $ac_compile) 2>&5 13452 ac_status=$? 13453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13454 test $ac_status = 0; }; then 13455 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13456 eval libat_cv_have_at_cas_8=no 13457 else 13458 eval libat_cv_have_at_cas_8=yes 13459 fi 13460 else 13461 eval libat_cv_have_at_cas_8=no 13462 fi 13463 CFLAGS="$old_CFLAGS" 13464 fi 13465 rm -f conftest* 13466 13467fi 13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5 13469$as_echo "$libat_cv_have_at_cas_8" >&6; } 13470 13471 13472 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '` 13473 13474cat >>confdefs.h <<_ACEOF 13475#define HAVE_ATOMIC_CAS_8 $yesno 13476_ACEOF 13477 13478 13479 13480 13481 13482 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5 13484$as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; } 13485if test "${libat_cv_have_at_cas_16+set}" = set; then : 13486 $as_echo_n "(cached) " >&6 13487else 13488 13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13490/* end confdefs.h. */ 13491 13492int 13493main () 13494{ 13495typedef int T __attribute__((mode(TI))); T *x, *y; 13496 asm("" : "=g"(x), "=g"(y)); 13497 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13498 ; 13499 return 0; 13500} 13501_ACEOF 13502 if test x$atomic_builtins_link_tests = xyes; then 13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13504 (eval $ac_link) 2>&5 13505 ac_status=$? 13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13507 test $ac_status = 0; }; then 13508 eval libat_cv_have_at_cas_16=yes 13509 else 13510 eval libat_cv_have_at_cas_16=no 13511 fi 13512 else 13513 old_CFLAGS="$CFLAGS" 13514 # Compile unoptimized. 13515 CFLAGS="$CFLAGS -O0 -S" 13516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13517 (eval $ac_compile) 2>&5 13518 ac_status=$? 13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13520 test $ac_status = 0; }; then 13521 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13522 eval libat_cv_have_at_cas_16=no 13523 else 13524 eval libat_cv_have_at_cas_16=yes 13525 fi 13526 else 13527 eval libat_cv_have_at_cas_16=no 13528 fi 13529 CFLAGS="$old_CFLAGS" 13530 fi 13531 rm -f conftest* 13532 13533fi 13534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5 13535$as_echo "$libat_cv_have_at_cas_16" >&6; } 13536 13537 13538 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '` 13539 13540cat >>confdefs.h <<_ACEOF 13541#define HAVE_ATOMIC_CAS_16 $yesno 13542_ACEOF 13543 13544 13545 13546 13547 13548 13549 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5 13551$as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; } 13552if test "${libat_cv_have_at_fadd_1+set}" = set; then : 13553 $as_echo_n "(cached) " >&6 13554else 13555 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558 13559int 13560main () 13561{ 13562typedef int T __attribute__((mode(QI))); T *x, y; 13563 asm("" : "=g"(x), "=g"(y)); 13564 __atomic_fetch_add (x, y, 0); 13565 __atomic_add_fetch (x, y, 0); 13566 ; 13567 return 0; 13568} 13569_ACEOF 13570 if test x$atomic_builtins_link_tests = xyes; then 13571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13572 (eval $ac_link) 2>&5 13573 ac_status=$? 13574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13575 test $ac_status = 0; }; then 13576 eval libat_cv_have_at_fadd_1=yes 13577 else 13578 eval libat_cv_have_at_fadd_1=no 13579 fi 13580 else 13581 old_CFLAGS="$CFLAGS" 13582 # Compile unoptimized. 13583 CFLAGS="$CFLAGS -O0 -S" 13584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13585 (eval $ac_compile) 2>&5 13586 ac_status=$? 13587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13588 test $ac_status = 0; }; then 13589 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13590 eval libat_cv_have_at_fadd_1=no 13591 else 13592 eval libat_cv_have_at_fadd_1=yes 13593 fi 13594 else 13595 eval libat_cv_have_at_fadd_1=no 13596 fi 13597 CFLAGS="$old_CFLAGS" 13598 fi 13599 rm -f conftest* 13600 13601fi 13602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5 13603$as_echo "$libat_cv_have_at_fadd_1" >&6; } 13604 13605 13606 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '` 13607 13608cat >>confdefs.h <<_ACEOF 13609#define HAVE_ATOMIC_FETCH_ADD_1 $yesno 13610_ACEOF 13611 13612 13613 13614 13615 13616 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5 13618$as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; } 13619if test "${libat_cv_have_at_fadd_2+set}" = set; then : 13620 $as_echo_n "(cached) " >&6 13621else 13622 13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13624/* end confdefs.h. */ 13625 13626int 13627main () 13628{ 13629typedef int T __attribute__((mode(HI))); T *x, y; 13630 asm("" : "=g"(x), "=g"(y)); 13631 __atomic_fetch_add (x, y, 0); 13632 __atomic_add_fetch (x, y, 0); 13633 ; 13634 return 0; 13635} 13636_ACEOF 13637 if test x$atomic_builtins_link_tests = xyes; then 13638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13639 (eval $ac_link) 2>&5 13640 ac_status=$? 13641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13642 test $ac_status = 0; }; then 13643 eval libat_cv_have_at_fadd_2=yes 13644 else 13645 eval libat_cv_have_at_fadd_2=no 13646 fi 13647 else 13648 old_CFLAGS="$CFLAGS" 13649 # Compile unoptimized. 13650 CFLAGS="$CFLAGS -O0 -S" 13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13652 (eval $ac_compile) 2>&5 13653 ac_status=$? 13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13655 test $ac_status = 0; }; then 13656 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13657 eval libat_cv_have_at_fadd_2=no 13658 else 13659 eval libat_cv_have_at_fadd_2=yes 13660 fi 13661 else 13662 eval libat_cv_have_at_fadd_2=no 13663 fi 13664 CFLAGS="$old_CFLAGS" 13665 fi 13666 rm -f conftest* 13667 13668fi 13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5 13670$as_echo "$libat_cv_have_at_fadd_2" >&6; } 13671 13672 13673 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '` 13674 13675cat >>confdefs.h <<_ACEOF 13676#define HAVE_ATOMIC_FETCH_ADD_2 $yesno 13677_ACEOF 13678 13679 13680 13681 13682 13683 13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5 13685$as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; } 13686if test "${libat_cv_have_at_fadd_4+set}" = set; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13691/* end confdefs.h. */ 13692 13693int 13694main () 13695{ 13696typedef int T __attribute__((mode(SI))); T *x, y; 13697 asm("" : "=g"(x), "=g"(y)); 13698 __atomic_fetch_add (x, y, 0); 13699 __atomic_add_fetch (x, y, 0); 13700 ; 13701 return 0; 13702} 13703_ACEOF 13704 if test x$atomic_builtins_link_tests = xyes; then 13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13706 (eval $ac_link) 2>&5 13707 ac_status=$? 13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13709 test $ac_status = 0; }; then 13710 eval libat_cv_have_at_fadd_4=yes 13711 else 13712 eval libat_cv_have_at_fadd_4=no 13713 fi 13714 else 13715 old_CFLAGS="$CFLAGS" 13716 # Compile unoptimized. 13717 CFLAGS="$CFLAGS -O0 -S" 13718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13719 (eval $ac_compile) 2>&5 13720 ac_status=$? 13721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13722 test $ac_status = 0; }; then 13723 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13724 eval libat_cv_have_at_fadd_4=no 13725 else 13726 eval libat_cv_have_at_fadd_4=yes 13727 fi 13728 else 13729 eval libat_cv_have_at_fadd_4=no 13730 fi 13731 CFLAGS="$old_CFLAGS" 13732 fi 13733 rm -f conftest* 13734 13735fi 13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5 13737$as_echo "$libat_cv_have_at_fadd_4" >&6; } 13738 13739 13740 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '` 13741 13742cat >>confdefs.h <<_ACEOF 13743#define HAVE_ATOMIC_FETCH_ADD_4 $yesno 13744_ACEOF 13745 13746 13747 13748 13749 13750 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5 13752$as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; } 13753if test "${libat_cv_have_at_fadd_8+set}" = set; then : 13754 $as_echo_n "(cached) " >&6 13755else 13756 13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13758/* end confdefs.h. */ 13759 13760int 13761main () 13762{ 13763typedef int T __attribute__((mode(DI))); T *x, y; 13764 asm("" : "=g"(x), "=g"(y)); 13765 __atomic_fetch_add (x, y, 0); 13766 __atomic_add_fetch (x, y, 0); 13767 ; 13768 return 0; 13769} 13770_ACEOF 13771 if test x$atomic_builtins_link_tests = xyes; then 13772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13773 (eval $ac_link) 2>&5 13774 ac_status=$? 13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13776 test $ac_status = 0; }; then 13777 eval libat_cv_have_at_fadd_8=yes 13778 else 13779 eval libat_cv_have_at_fadd_8=no 13780 fi 13781 else 13782 old_CFLAGS="$CFLAGS" 13783 # Compile unoptimized. 13784 CFLAGS="$CFLAGS -O0 -S" 13785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13786 (eval $ac_compile) 2>&5 13787 ac_status=$? 13788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13789 test $ac_status = 0; }; then 13790 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13791 eval libat_cv_have_at_fadd_8=no 13792 else 13793 eval libat_cv_have_at_fadd_8=yes 13794 fi 13795 else 13796 eval libat_cv_have_at_fadd_8=no 13797 fi 13798 CFLAGS="$old_CFLAGS" 13799 fi 13800 rm -f conftest* 13801 13802fi 13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5 13804$as_echo "$libat_cv_have_at_fadd_8" >&6; } 13805 13806 13807 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '` 13808 13809cat >>confdefs.h <<_ACEOF 13810#define HAVE_ATOMIC_FETCH_ADD_8 $yesno 13811_ACEOF 13812 13813 13814 13815 13816 13817 13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5 13819$as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; } 13820if test "${libat_cv_have_at_fadd_16+set}" = set; then : 13821 $as_echo_n "(cached) " >&6 13822else 13823 13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13825/* end confdefs.h. */ 13826 13827int 13828main () 13829{ 13830typedef int T __attribute__((mode(TI))); T *x, y; 13831 asm("" : "=g"(x), "=g"(y)); 13832 __atomic_fetch_add (x, y, 0); 13833 __atomic_add_fetch (x, y, 0); 13834 ; 13835 return 0; 13836} 13837_ACEOF 13838 if test x$atomic_builtins_link_tests = xyes; then 13839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13840 (eval $ac_link) 2>&5 13841 ac_status=$? 13842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13843 test $ac_status = 0; }; then 13844 eval libat_cv_have_at_fadd_16=yes 13845 else 13846 eval libat_cv_have_at_fadd_16=no 13847 fi 13848 else 13849 old_CFLAGS="$CFLAGS" 13850 # Compile unoptimized. 13851 CFLAGS="$CFLAGS -O0 -S" 13852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13853 (eval $ac_compile) 2>&5 13854 ac_status=$? 13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13856 test $ac_status = 0; }; then 13857 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13858 eval libat_cv_have_at_fadd_16=no 13859 else 13860 eval libat_cv_have_at_fadd_16=yes 13861 fi 13862 else 13863 eval libat_cv_have_at_fadd_16=no 13864 fi 13865 CFLAGS="$old_CFLAGS" 13866 fi 13867 rm -f conftest* 13868 13869fi 13870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5 13871$as_echo "$libat_cv_have_at_fadd_16" >&6; } 13872 13873 13874 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '` 13875 13876cat >>confdefs.h <<_ACEOF 13877#define HAVE_ATOMIC_FETCH_ADD_16 $yesno 13878_ACEOF 13879 13880 13881 13882 13883 13884 13885 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5 13887$as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; } 13888if test "${libat_cv_have_at_fop_1+set}" = set; then : 13889 $as_echo_n "(cached) " >&6 13890else 13891 13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13893/* end confdefs.h. */ 13894 13895int 13896main () 13897{ 13898typedef int T __attribute__((mode(QI))); T *x, y; 13899 asm("" : "=g"(x), "=g"(y)); 13900 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 13901 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 13902 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 13903 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 13904 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 13905 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 13906 ; 13907 return 0; 13908} 13909_ACEOF 13910 if test x$atomic_builtins_link_tests = xyes; then 13911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13912 (eval $ac_link) 2>&5 13913 ac_status=$? 13914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13915 test $ac_status = 0; }; then 13916 eval libat_cv_have_at_fop_1=yes 13917 else 13918 eval libat_cv_have_at_fop_1=no 13919 fi 13920 else 13921 old_CFLAGS="$CFLAGS" 13922 # Compile unoptimized. 13923 CFLAGS="$CFLAGS -O0 -S" 13924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13925 (eval $ac_compile) 2>&5 13926 ac_status=$? 13927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13928 test $ac_status = 0; }; then 13929 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13930 eval libat_cv_have_at_fop_1=no 13931 else 13932 eval libat_cv_have_at_fop_1=yes 13933 fi 13934 else 13935 eval libat_cv_have_at_fop_1=no 13936 fi 13937 CFLAGS="$old_CFLAGS" 13938 fi 13939 rm -f conftest* 13940 13941fi 13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5 13943$as_echo "$libat_cv_have_at_fop_1" >&6; } 13944 13945 13946 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '` 13947 13948cat >>confdefs.h <<_ACEOF 13949#define HAVE_ATOMIC_FETCH_OP_1 $yesno 13950_ACEOF 13951 13952 13953 13954 13955 13956 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5 13958$as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; } 13959if test "${libat_cv_have_at_fop_2+set}" = set; then : 13960 $as_echo_n "(cached) " >&6 13961else 13962 13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13964/* end confdefs.h. */ 13965 13966int 13967main () 13968{ 13969typedef int T __attribute__((mode(HI))); T *x, y; 13970 asm("" : "=g"(x), "=g"(y)); 13971 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 13972 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 13973 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 13974 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 13975 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 13976 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 13977 ; 13978 return 0; 13979} 13980_ACEOF 13981 if test x$atomic_builtins_link_tests = xyes; then 13982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13983 (eval $ac_link) 2>&5 13984 ac_status=$? 13985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13986 test $ac_status = 0; }; then 13987 eval libat_cv_have_at_fop_2=yes 13988 else 13989 eval libat_cv_have_at_fop_2=no 13990 fi 13991 else 13992 old_CFLAGS="$CFLAGS" 13993 # Compile unoptimized. 13994 CFLAGS="$CFLAGS -O0 -S" 13995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13996 (eval $ac_compile) 2>&5 13997 ac_status=$? 13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13999 test $ac_status = 0; }; then 14000 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 14001 eval libat_cv_have_at_fop_2=no 14002 else 14003 eval libat_cv_have_at_fop_2=yes 14004 fi 14005 else 14006 eval libat_cv_have_at_fop_2=no 14007 fi 14008 CFLAGS="$old_CFLAGS" 14009 fi 14010 rm -f conftest* 14011 14012fi 14013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5 14014$as_echo "$libat_cv_have_at_fop_2" >&6; } 14015 14016 14017 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '` 14018 14019cat >>confdefs.h <<_ACEOF 14020#define HAVE_ATOMIC_FETCH_OP_2 $yesno 14021_ACEOF 14022 14023 14024 14025 14026 14027 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5 14029$as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; } 14030if test "${libat_cv_have_at_fop_4+set}" = set; then : 14031 $as_echo_n "(cached) " >&6 14032else 14033 14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14035/* end confdefs.h. */ 14036 14037int 14038main () 14039{ 14040typedef int T __attribute__((mode(SI))); T *x, y; 14041 asm("" : "=g"(x), "=g"(y)); 14042 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 14043 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 14044 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 14045 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 14046 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 14047 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 14048 ; 14049 return 0; 14050} 14051_ACEOF 14052 if test x$atomic_builtins_link_tests = xyes; then 14053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14054 (eval $ac_link) 2>&5 14055 ac_status=$? 14056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14057 test $ac_status = 0; }; then 14058 eval libat_cv_have_at_fop_4=yes 14059 else 14060 eval libat_cv_have_at_fop_4=no 14061 fi 14062 else 14063 old_CFLAGS="$CFLAGS" 14064 # Compile unoptimized. 14065 CFLAGS="$CFLAGS -O0 -S" 14066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14067 (eval $ac_compile) 2>&5 14068 ac_status=$? 14069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14070 test $ac_status = 0; }; then 14071 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 14072 eval libat_cv_have_at_fop_4=no 14073 else 14074 eval libat_cv_have_at_fop_4=yes 14075 fi 14076 else 14077 eval libat_cv_have_at_fop_4=no 14078 fi 14079 CFLAGS="$old_CFLAGS" 14080 fi 14081 rm -f conftest* 14082 14083fi 14084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5 14085$as_echo "$libat_cv_have_at_fop_4" >&6; } 14086 14087 14088 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '` 14089 14090cat >>confdefs.h <<_ACEOF 14091#define HAVE_ATOMIC_FETCH_OP_4 $yesno 14092_ACEOF 14093 14094 14095 14096 14097 14098 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5 14100$as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; } 14101if test "${libat_cv_have_at_fop_8+set}" = set; then : 14102 $as_echo_n "(cached) " >&6 14103else 14104 14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14106/* end confdefs.h. */ 14107 14108int 14109main () 14110{ 14111typedef int T __attribute__((mode(DI))); T *x, y; 14112 asm("" : "=g"(x), "=g"(y)); 14113 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 14114 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 14115 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 14116 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 14117 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 14118 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 14119 ; 14120 return 0; 14121} 14122_ACEOF 14123 if test x$atomic_builtins_link_tests = xyes; then 14124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14125 (eval $ac_link) 2>&5 14126 ac_status=$? 14127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14128 test $ac_status = 0; }; then 14129 eval libat_cv_have_at_fop_8=yes 14130 else 14131 eval libat_cv_have_at_fop_8=no 14132 fi 14133 else 14134 old_CFLAGS="$CFLAGS" 14135 # Compile unoptimized. 14136 CFLAGS="$CFLAGS -O0 -S" 14137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14138 (eval $ac_compile) 2>&5 14139 ac_status=$? 14140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14141 test $ac_status = 0; }; then 14142 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 14143 eval libat_cv_have_at_fop_8=no 14144 else 14145 eval libat_cv_have_at_fop_8=yes 14146 fi 14147 else 14148 eval libat_cv_have_at_fop_8=no 14149 fi 14150 CFLAGS="$old_CFLAGS" 14151 fi 14152 rm -f conftest* 14153 14154fi 14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5 14156$as_echo "$libat_cv_have_at_fop_8" >&6; } 14157 14158 14159 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '` 14160 14161cat >>confdefs.h <<_ACEOF 14162#define HAVE_ATOMIC_FETCH_OP_8 $yesno 14163_ACEOF 14164 14165 14166 14167 14168 14169 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5 14171$as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; } 14172if test "${libat_cv_have_at_fop_16+set}" = set; then : 14173 $as_echo_n "(cached) " >&6 14174else 14175 14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14177/* end confdefs.h. */ 14178 14179int 14180main () 14181{ 14182typedef int T __attribute__((mode(TI))); T *x, y; 14183 asm("" : "=g"(x), "=g"(y)); 14184 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 14185 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 14186 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 14187 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 14188 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 14189 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 14190 ; 14191 return 0; 14192} 14193_ACEOF 14194 if test x$atomic_builtins_link_tests = xyes; then 14195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14196 (eval $ac_link) 2>&5 14197 ac_status=$? 14198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14199 test $ac_status = 0; }; then 14200 eval libat_cv_have_at_fop_16=yes 14201 else 14202 eval libat_cv_have_at_fop_16=no 14203 fi 14204 else 14205 old_CFLAGS="$CFLAGS" 14206 # Compile unoptimized. 14207 CFLAGS="$CFLAGS -O0 -S" 14208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14209 (eval $ac_compile) 2>&5 14210 ac_status=$? 14211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14212 test $ac_status = 0; }; then 14213 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 14214 eval libat_cv_have_at_fop_16=no 14215 else 14216 eval libat_cv_have_at_fop_16=yes 14217 fi 14218 else 14219 eval libat_cv_have_at_fop_16=no 14220 fi 14221 CFLAGS="$old_CFLAGS" 14222 fi 14223 rm -f conftest* 14224 14225fi 14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5 14227$as_echo "$libat_cv_have_at_fop_16" >&6; } 14228 14229 14230 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '` 14231 14232cat >>confdefs.h <<_ACEOF 14233#define HAVE_ATOMIC_FETCH_OP_16 $yesno 14234_ACEOF 14235 14236 14237 14238 14239 14240 14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14242$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14243if test "${ac_cv_c_bigendian+set}" = set; then : 14244 $as_echo_n "(cached) " >&6 14245else 14246 ac_cv_c_bigendian=unknown 14247 # See if we're dealing with a universal compiler. 14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14249/* end confdefs.h. */ 14250#ifndef __APPLE_CC__ 14251 not a universal capable compiler 14252 #endif 14253 typedef int dummy; 14254 14255_ACEOF 14256if ac_fn_c_try_compile "$LINENO"; then : 14257 14258 # Check for potential -arch flags. It is not universal unless 14259 # there are at least two -arch flags with different values. 14260 ac_arch= 14261 ac_prev= 14262 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14263 if test -n "$ac_prev"; then 14264 case $ac_word in 14265 i?86 | x86_64 | ppc | ppc64) 14266 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14267 ac_arch=$ac_word 14268 else 14269 ac_cv_c_bigendian=universal 14270 break 14271 fi 14272 ;; 14273 esac 14274 ac_prev= 14275 elif test "x$ac_word" = "x-arch"; then 14276 ac_prev=arch 14277 fi 14278 done 14279fi 14280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14281 if test $ac_cv_c_bigendian = unknown; then 14282 # See if sys/param.h defines the BYTE_ORDER macro. 14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14284/* end confdefs.h. */ 14285#include <sys/types.h> 14286 #include <sys/param.h> 14287 14288int 14289main () 14290{ 14291#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14292 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14293 && LITTLE_ENDIAN) 14294 bogus endian macros 14295 #endif 14296 14297 ; 14298 return 0; 14299} 14300_ACEOF 14301if ac_fn_c_try_compile "$LINENO"; then : 14302 # It does; now see whether it defined to BIG_ENDIAN or not. 14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14304/* end confdefs.h. */ 14305#include <sys/types.h> 14306 #include <sys/param.h> 14307 14308int 14309main () 14310{ 14311#if BYTE_ORDER != BIG_ENDIAN 14312 not big endian 14313 #endif 14314 14315 ; 14316 return 0; 14317} 14318_ACEOF 14319if ac_fn_c_try_compile "$LINENO"; then : 14320 ac_cv_c_bigendian=yes 14321else 14322 ac_cv_c_bigendian=no 14323fi 14324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14325fi 14326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14327 fi 14328 if test $ac_cv_c_bigendian = unknown; then 14329 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14331/* end confdefs.h. */ 14332#include <limits.h> 14333 14334int 14335main () 14336{ 14337#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14338 bogus endian macros 14339 #endif 14340 14341 ; 14342 return 0; 14343} 14344_ACEOF 14345if ac_fn_c_try_compile "$LINENO"; then : 14346 # It does; now see whether it defined to _BIG_ENDIAN or not. 14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14348/* end confdefs.h. */ 14349#include <limits.h> 14350 14351int 14352main () 14353{ 14354#ifndef _BIG_ENDIAN 14355 not big endian 14356 #endif 14357 14358 ; 14359 return 0; 14360} 14361_ACEOF 14362if ac_fn_c_try_compile "$LINENO"; then : 14363 ac_cv_c_bigendian=yes 14364else 14365 ac_cv_c_bigendian=no 14366fi 14367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14370 fi 14371 if test $ac_cv_c_bigendian = unknown; then 14372 # Compile a test program. 14373 if test "$cross_compiling" = yes; then : 14374 # Try to guess by grepping values from an object file. 14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14376/* end confdefs.h. */ 14377short int ascii_mm[] = 14378 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14379 short int ascii_ii[] = 14380 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14381 int use_ascii (int i) { 14382 return ascii_mm[i] + ascii_ii[i]; 14383 } 14384 short int ebcdic_ii[] = 14385 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14386 short int ebcdic_mm[] = 14387 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14388 int use_ebcdic (int i) { 14389 return ebcdic_mm[i] + ebcdic_ii[i]; 14390 } 14391 extern int foo; 14392 14393int 14394main () 14395{ 14396return use_ascii (foo) == use_ebcdic (foo); 14397 ; 14398 return 0; 14399} 14400_ACEOF 14401if ac_fn_c_try_compile "$LINENO"; then : 14402 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14403 ac_cv_c_bigendian=yes 14404 fi 14405 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14406 if test "$ac_cv_c_bigendian" = unknown; then 14407 ac_cv_c_bigendian=no 14408 else 14409 # finding both strings is unlikely to happen, but who knows? 14410 ac_cv_c_bigendian=unknown 14411 fi 14412 fi 14413fi 14414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14415else 14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14417/* end confdefs.h. */ 14418$ac_includes_default 14419int 14420main () 14421{ 14422 14423 /* Are we little or big endian? From Harbison&Steele. */ 14424 union 14425 { 14426 long int l; 14427 char c[sizeof (long int)]; 14428 } u; 14429 u.l = 1; 14430 return u.c[sizeof (long int) - 1] == 1; 14431 14432 ; 14433 return 0; 14434} 14435_ACEOF 14436if ac_fn_c_try_run "$LINENO"; then : 14437 ac_cv_c_bigendian=no 14438else 14439 ac_cv_c_bigendian=yes 14440fi 14441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14442 conftest.$ac_objext conftest.beam conftest.$ac_ext 14443fi 14444 14445 fi 14446fi 14447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14448$as_echo "$ac_cv_c_bigendian" >&6; } 14449 case $ac_cv_c_bigendian in #( 14450 yes) 14451 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14452;; #( 14453 no) 14454 ;; #( 14455 universal) 14456 14457$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14458 14459 ;; #( 14460 *) 14461 as_fn_error "unknown endianness 14462 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14463 esac 14464 14465# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE. 14466 14467 14468 14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5 14470$as_echo_n "checking for the word size... " >&6; } 14471if test "${libat_cv_wordsize+set}" = set; then : 14472 $as_echo_n "(cached) " >&6 14473else 14474 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then : 14475 14476else 14477 as_fn_error "Could not determine word size." "$LINENO" 5 14478fi 14479 14480fi 14481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5 14482$as_echo "$libat_cv_wordsize" >&6; } 14483 14484cat >>confdefs.h <<_ACEOF 14485#define WORDSIZE $libat_cv_wordsize 14486_ACEOF 14487 14488 14489 14490# Check to see if -pthread or -lpthread is needed. Prefer the former. 14491# In case the pthread.h system header is not found, this test will fail. 14492case " $config_path " in 14493 *" posix "*) 14494 XPCFLAGS="" 14495 CFLAGS="$CFLAGS -pthread" 14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14497/* end confdefs.h. */ 14498#include <pthread.h> 14499 void *g(void *d) { return NULL; } 14500int 14501main () 14502{ 14503pthread_t t; pthread_create(&t,NULL,g,NULL); 14504 ; 14505 return 0; 14506} 14507_ACEOF 14508if ac_fn_c_try_link "$LINENO"; then : 14509 XPCFLAGS=" -pthread" 14510else 14511 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS" 14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14513/* end confdefs.h. */ 14514#include <pthread.h> 14515 void *g(void *d) { return NULL; } 14516int 14517main () 14518{ 14519pthread_t t; pthread_create(&t,NULL,g,NULL); 14520 ; 14521 return 0; 14522} 14523_ACEOF 14524if ac_fn_c_try_link "$LINENO"; then : 14525 14526else 14527 as_fn_error "Pthreads are required to build libatomic" "$LINENO" 5 14528fi 14529rm -f core conftest.err conftest.$ac_objext \ 14530 conftest$ac_exeext conftest.$ac_ext 14531fi 14532rm -f core conftest.err conftest.$ac_objext \ 14533 conftest$ac_exeext conftest.$ac_ext 14534 CFLAGS="$save_CFLAGS $XPCFLAGS" 14535 ;; 14536esac 14537 14538# See what sort of export controls are available. 14539 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 14541$as_echo_n "checking whether the target supports hidden visibility... " >&6; } 14542if test "${libat_cv_have_attribute_visibility+set}" = set; then : 14543 $as_echo_n "(cached) " >&6 14544else 14545 14546 save_CFLAGS="$CFLAGS" 14547 CFLAGS="$CFLAGS -Werror" 14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14549/* end confdefs.h. */ 14550void __attribute__((visibility("hidden"))) foo(void) { } 14551int 14552main () 14553{ 14554 14555 ; 14556 return 0; 14557} 14558_ACEOF 14559if ac_fn_c_try_compile "$LINENO"; then : 14560 libat_cv_have_attribute_visibility=yes 14561else 14562 libat_cv_have_attribute_visibility=no 14563fi 14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14565 CFLAGS="$save_CFLAGS" 14566fi 14567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5 14568$as_echo "$libat_cv_have_attribute_visibility" >&6; } 14569 if test $libat_cv_have_attribute_visibility = yes; then 14570 14571$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h 14572 14573 fi 14574 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 14576$as_echo_n "checking whether the target supports dllexport... " >&6; } 14577if test "${libat_cv_have_attribute_dllexport+set}" = set; then : 14578 $as_echo_n "(cached) " >&6 14579else 14580 14581 save_CFLAGS="$CFLAGS" 14582 CFLAGS="$CFLAGS -Werror" 14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585void __attribute__((dllexport)) foo(void) { } 14586int 14587main () 14588{ 14589 14590 ; 14591 return 0; 14592} 14593_ACEOF 14594if ac_fn_c_try_compile "$LINENO"; then : 14595 libat_cv_have_attribute_dllexport=yes 14596else 14597 libat_cv_have_attribute_dllexport=no 14598fi 14599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14600 CFLAGS="$save_CFLAGS" 14601fi 14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5 14603$as_echo "$libat_cv_have_attribute_dllexport" >&6; } 14604 if test $libat_cv_have_attribute_dllexport = yes; then 14605 14606$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h 14607 14608 fi 14609 14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 14611$as_echo_n "checking whether the target supports symbol aliases... " >&6; } 14612if test "${libat_cv_have_attribute_alias+set}" = set; then : 14613 $as_echo_n "(cached) " >&6 14614else 14615 14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14617/* end confdefs.h. */ 14618 14619void foo(void) { } 14620extern void bar(void) __attribute__((alias("foo"))); 14621int 14622main () 14623{ 14624bar(); 14625 ; 14626 return 0; 14627} 14628_ACEOF 14629if ac_fn_c_try_link "$LINENO"; then : 14630 libat_cv_have_attribute_alias=yes 14631else 14632 libat_cv_have_attribute_alias=no 14633fi 14634rm -f core conftest.err conftest.$ac_objext \ 14635 conftest$ac_exeext conftest.$ac_ext 14636fi 14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5 14638$as_echo "$libat_cv_have_attribute_alias" >&6; } 14639 if test $libat_cv_have_attribute_alias = yes; then 14640 14641$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h 14642 14643 fi 14644if test x$try_ifunc = xyes; then 14645 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5 14647$as_echo_n "checking whether the target supports the ifunc attribute... " >&6; } 14648if test "${libat_cv_have_ifunc+set}" = set; then : 14649 $as_echo_n "(cached) " >&6 14650else 14651 14652 save_CFLAGS="$CFLAGS" 14653 CFLAGS="$CFLAGS -Werror" 14654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14655/* end confdefs.h. */ 14656 14657 int foo_alt(void) { return 0; } 14658 void *foo_sel(void) { return foo_alt; } 14659 int foo(void) __attribute__((ifunc("foo_sel"))); 14660int 14661main () 14662{ 14663return foo(); 14664 ; 14665 return 0; 14666} 14667_ACEOF 14668if ac_fn_c_try_link "$LINENO"; then : 14669 libat_cv_have_ifunc=yes 14670else 14671 libat_cv_have_ifunc=no 14672fi 14673rm -f core conftest.err conftest.$ac_objext \ 14674 conftest$ac_exeext conftest.$ac_ext 14675fi 14676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5 14677$as_echo "$libat_cv_have_ifunc" >&6; } 14678 14679 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '` 14680 14681cat >>confdefs.h <<_ACEOF 14682#define HAVE_IFUNC $yesno 14683_ACEOF 14684 14685 14686 14687fi 14688 14689# Check linker support. 14690 14691 14692# Check whether --with-gnu-ld was given. 14693if test "${with_gnu_ld+set}" = set; then : 14694 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 14695else 14696 with_gnu_ld=no 14697fi 14698 14699ac_prog=ld 14700if test "$GCC" = yes; then 14701 # Check if gcc -print-prog-name=ld gives a path. 14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14703$as_echo_n "checking for ld used by $CC... " >&6; } 14704 case $host in 14705 *-*-mingw*) 14706 # gcc leaves a trailing carriage return which upsets mingw 14707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14708 *) 14709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14710 esac 14711 case $ac_prog in 14712 # Accept absolute paths. 14713 [\\/]* | ?:[\\/]*) 14714 re_direlt='/[^/][^/]*/\.\./' 14715 # Canonicalize the pathname of ld 14716 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14717 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14718 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14719 done 14720 test -z "$LD" && LD="$ac_prog" 14721 ;; 14722 "") 14723 # If it fails, then pretend we aren't using GCC. 14724 ac_prog=ld 14725 ;; 14726 *) 14727 # If it is relative, then search for the first ld in PATH. 14728 with_gnu_ld=unknown 14729 ;; 14730 esac 14731elif test "$with_gnu_ld" = yes; then 14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14733$as_echo_n "checking for GNU ld... " >&6; } 14734else 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14736$as_echo_n "checking for non-GNU ld... " >&6; } 14737fi 14738if test "${lt_cv_path_LD+set}" = set; then : 14739 $as_echo_n "(cached) " >&6 14740else 14741 if test -z "$LD"; then 14742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14743 for ac_dir in $PATH; do 14744 IFS="$lt_save_ifs" 14745 test -z "$ac_dir" && ac_dir=. 14746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14747 lt_cv_path_LD="$ac_dir/$ac_prog" 14748 # Check to see if the program is GNU ld. I'd rather use --version, 14749 # but apparently some variants of GNU ld only accept -v. 14750 # Break only if it was the GNU/non-GNU ld that we prefer. 14751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14752 *GNU* | *'with BFD'*) 14753 test "$with_gnu_ld" != no && break 14754 ;; 14755 *) 14756 test "$with_gnu_ld" != yes && break 14757 ;; 14758 esac 14759 fi 14760 done 14761 IFS="$lt_save_ifs" 14762else 14763 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14764fi 14765fi 14766 14767LD="$lt_cv_path_LD" 14768if test -n "$LD"; then 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14770$as_echo "$LD" >&6; } 14771else 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14773$as_echo "no" >&6; } 14774fi 14775test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 14776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14777$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14778if test "${lt_cv_prog_gnu_ld+set}" = set; then : 14779 $as_echo_n "(cached) " >&6 14780else 14781 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14782case `$LD -v 2>&1 </dev/null` in 14783*GNU* | *'with BFD'*) 14784 lt_cv_prog_gnu_ld=yes 14785 ;; 14786*) 14787 lt_cv_prog_gnu_ld=no 14788 ;; 14789esac 14790fi 14791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14792$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14793with_gnu_ld=$lt_cv_prog_gnu_ld 14794 14795 14796 14797 14798 14799 14800 14801 # If we're not using GNU ld, then there's no point in even trying these 14802 # tests. Check for that first. We should have already tested for gld 14803 # by now (in libtool), but require it now just to be safe... 14804 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' 14805 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' 14806 14807 14808 14809 # The name set by libtool depends on the version of libtool. Shame on us 14810 # for depending on an impl detail, but c'est la vie. Older versions used 14811 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on 14812 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually 14813 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't 14814 # set (hence we're using an older libtool), then set it. 14815 if test x${with_gnu_ld+set} != xset; then 14816 if test x${ac_cv_prog_gnu_ld+set} != xset; then 14817 # We got through "ac_require(ac_prog_ld)" and still not set? Huh? 14818 with_gnu_ld=no 14819 else 14820 with_gnu_ld=$ac_cv_prog_gnu_ld 14821 fi 14822 fi 14823 14824 # Start by getting the version number. I think the libtool test already 14825 # does some of this, but throws away the result. 14826 libat_ld_is_gold=no 14827 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then 14828 libat_ld_is_gold=yes 14829 fi 14830 14831 ldver=`$LD --version 2>/dev/null | 14832 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'` 14833 14834 libat_gnu_ld_version=`echo $ldver | \ 14835 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` 14836 14837 # Set --gc-sections. 14838 if test "$with_gnu_ld" = "notbroken"; then 14839 # GNU ld it is! Joy and bunny rabbits! 14840 14841 # All these tests are for C++; save the language and the compiler flags. 14842 # Need to do this so that g++ won't try to link in libstdc++ 14843 ac_test_CFLAGS="${CFLAGS+set}" 14844 ac_save_CFLAGS="$CFLAGS" 14845 CFLAGS='-x c++ -Wl,--gc-sections' 14846 14847 # Check for -Wl,--gc-sections 14848 # XXX This test is broken at the moment, as symbols required for linking 14849 # are now in libsupc++ (not built yet). In addition, this test has 14850 # cored on solaris in the past. In addition, --gc-sections doesn't 14851 # really work at the moment (keeps on discarding used sections, first 14852 # .eh_frame and now some of the glibc sections for iconv). 14853 # Bzzzzt. Thanks for playing, maybe next time. 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 14855$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } 14856 if test "$cross_compiling" = yes; then : 14857 ac_sectionLDflags=yes 14858else 14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14860/* end confdefs.h. */ 14861 14862 int main(void) 14863 { 14864 try { throw 1; } 14865 catch (...) { }; 14866 return 0; 14867 } 14868 14869_ACEOF 14870if ac_fn_c_try_run "$LINENO"; then : 14871 ac_sectionLDflags=yes 14872else 14873 ac_sectionLDflags=no 14874fi 14875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14876 conftest.$ac_objext conftest.beam conftest.$ac_ext 14877fi 14878 14879 if test "$ac_test_CFLAGS" = set; then 14880 CFLAGS="$ac_save_CFLAGS" 14881 else 14882 # this is the suspicious part 14883 CFLAGS='' 14884 fi 14885 if test "$ac_sectionLDflags" = "yes"; then 14886 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" 14887 fi 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 14889$as_echo "$ac_sectionLDflags" >&6; } 14890 fi 14891 14892 # Set linker optimization flags. 14893 if test x"$with_gnu_ld" = x"yes"; then 14894 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" 14895 fi 14896 14897 14898 14899 14900 14901 14902 # Check whether --enable-symvers was given. 14903if test "${enable_symvers+set}" = set; then : 14904 enableval=$enable_symvers; 14905 case "$enableval" in 14906 yes|no|gnu*|sun) ;; 14907 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; 14908 esac 14909 14910else 14911 enable_symvers=yes 14912fi 14913 14914 14915 14916# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we 14917# don't know enough about $LD to do tricks... 14918 14919 14920# Turn a 'yes' into a suitable default. 14921if test x$enable_symvers = xyes ; then 14922 # FIXME The following test is too strict, in theory. 14923 if test $enable_shared = no || test "x$LD" = x; then 14924 enable_symvers=no 14925 else 14926 if test $with_gnu_ld = yes ; then 14927 enable_symvers=gnu 14928 else 14929 case ${target_os} in 14930 # Sun symbol versioning exists since Solaris 2.5. 14931 solaris2.[5-9]* | solaris2.1[0-9]*) 14932 enable_symvers=sun ;; 14933 *) 14934 enable_symvers=no ;; 14935 esac 14936 fi 14937 fi 14938fi 14939 14940# Check if 'sun' was requested on non-Solaris 2 platforms. 14941if test x$enable_symvers = xsun ; then 14942 case ${target_os} in 14943 solaris2*) 14944 # All fine. 14945 ;; 14946 *) 14947 # Unlikely to work. 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 14949$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} 14950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 14951$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 14953$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 14954 enable_symvers=no 14955 ;; 14956 esac 14957fi 14958 14959# Check to see if libgcc_s exists, indicating that shared libgcc is possible. 14960if test $enable_symvers != no; then 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 14962$as_echo_n "checking for shared libgcc... " >&6; } 14963 ac_save_CFLAGS="$CFLAGS" 14964 CFLAGS=' -lgcc_s' 14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14966/* end confdefs.h. */ 14967 14968int 14969main () 14970{ 14971return 0; 14972 ; 14973 return 0; 14974} 14975_ACEOF 14976if ac_fn_c_try_link "$LINENO"; then : 14977 libat_shared_libgcc=yes 14978else 14979 libat_shared_libgcc=no 14980fi 14981rm -f core conftest.err conftest.$ac_objext \ 14982 conftest$ac_exeext conftest.$ac_ext 14983 CFLAGS="$ac_save_CFLAGS" 14984 if test $libat_shared_libgcc = no; then 14985 cat > conftest.c <<EOF 14986int main (void) { return 0; } 14987EOF 14988 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ 14989 -shared -shared-libgcc -o conftest.so \ 14990 conftest.c -v 2>&1 >/dev/null \ 14991 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` 14992 rm -f conftest.c conftest.so 14993 if test x${libat_libgcc_s_suffix+set} = xset; then 14994 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix" 14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14996/* end confdefs.h. */ 14997 14998int 14999main () 15000{ 15001return 0; 15002 ; 15003 return 0; 15004} 15005_ACEOF 15006if ac_fn_c_try_link "$LINENO"; then : 15007 libat_shared_libgcc=yes 15008fi 15009rm -f core conftest.err conftest.$ac_objext \ 15010 conftest$ac_exeext conftest.$ac_ext 15011 CFLAGS="$ac_save_CFLAGS" 15012 fi 15013 fi 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5 15015$as_echo "$libat_shared_libgcc" >&6; } 15016fi 15017 15018# For GNU ld, we need at least this version. The format is described in 15019# LIBAT_CHECK_LINKER_FEATURES above. 15020libat_min_gnu_ld_version=21400 15021# XXXXXXXXXXX libat_gnu_ld_version=21390 15022 15023# Check to see if unspecified "yes" value can win, given results above. 15024# Change "yes" into either "no" or a style name. 15025if test $enable_symvers != no && test $libat_shared_libgcc = yes; then 15026 if test $with_gnu_ld = yes; then 15027 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then 15028 enable_symvers=gnu 15029 elif test $libat_ld_is_gold = yes ; then 15030 enable_symvers=gnu 15031 else 15032 # The right tools, the right setup, but too old. Fallbacks? 15033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5 15034$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;} 15035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 15036$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} 15037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 15038$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} 15039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5 15040$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;} 15041 if test $libat_gnu_ld_version -ge 21200 ; then 15042 # Globbing fix is present, proper block support is not. 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 15044$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 15045 enable_symvers=no 15046 else 15047 # 2.11 or older. 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 15049$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 15050 enable_symvers=no 15051 fi 15052 fi 15053 elif test $enable_symvers = sun; then 15054 : All interesting versions of Sun ld support sun style symbol versioning. 15055 else 15056 # just fail for now 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 15058$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} 15059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 15060$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 15062$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 15064$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 15065 enable_symvers=no 15066 fi 15067fi 15068if test $enable_symvers = gnu; then 15069 15070$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h 15071 15072fi 15073 15074 if test $enable_symvers != no; then 15075 LIBAT_BUILD_VERSIONED_SHLIB_TRUE= 15076 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#' 15077else 15078 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#' 15079 LIBAT_BUILD_VERSIONED_SHLIB_FALSE= 15080fi 15081 15082 if test $enable_symvers = gnu; then 15083 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE= 15084 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' 15085else 15086 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' 15087 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE= 15088fi 15089 15090 if test $enable_symvers = sun; then 15091 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE= 15092 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' 15093else 15094 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' 15095 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE= 15096fi 15097 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 15099$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} 15100 15101 15102# Cleanup and exit. 15103CFLAGS="$save_CFLAGS" 15104cat >confcache <<\_ACEOF 15105# This file is a shell script that caches the results of configure 15106# tests run on this system so they can be shared between configure 15107# scripts and configure runs, see configure's option --config-cache. 15108# It is not useful on other systems. If it contains results you don't 15109# want to keep, you may remove or edit it. 15110# 15111# config.status only pays attention to the cache file if you give it 15112# the --recheck option to rerun configure. 15113# 15114# `ac_cv_env_foo' variables (set or unset) will be overridden when 15115# loading this file, other *unset* `ac_cv_foo' will be assigned the 15116# following values. 15117 15118_ACEOF 15119 15120# The following way of writing the cache mishandles newlines in values, 15121# but we know of no workaround that is simple, portable, and efficient. 15122# So, we kill variables containing newlines. 15123# Ultrix sh set writes to stderr and can't be redirected directly, 15124# and sets the high bit in the cache file unless we assign to the vars. 15125( 15126 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15127 eval ac_val=\$$ac_var 15128 case $ac_val in #( 15129 *${as_nl}*) 15130 case $ac_var in #( 15131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15132$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15133 esac 15134 case $ac_var in #( 15135 _ | IFS | as_nl) ;; #( 15136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15137 *) { eval $ac_var=; unset $ac_var;} ;; 15138 esac ;; 15139 esac 15140 done 15141 15142 (set) 2>&1 | 15143 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15144 *${as_nl}ac_space=\ *) 15145 # `set' does not quote correctly, so add quotes: double-quote 15146 # substitution turns \\\\ into \\, and sed turns \\ into \. 15147 sed -n \ 15148 "s/'/'\\\\''/g; 15149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15150 ;; #( 15151 *) 15152 # `set' quotes correctly as required by POSIX, so do not add quotes. 15153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15154 ;; 15155 esac | 15156 sort 15157) | 15158 sed ' 15159 /^ac_cv_env_/b end 15160 t clear 15161 :clear 15162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15163 t end 15164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15165 :end' >>confcache 15166if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15167 if test -w "$cache_file"; then 15168 test "x$cache_file" != "x/dev/null" && 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15170$as_echo "$as_me: updating cache $cache_file" >&6;} 15171 cat confcache >$cache_file 15172 else 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15174$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15175 fi 15176fi 15177rm -f confcache 15178 15179# Add -Wall -Werror if we are using GCC. 15180if test "x$GCC" = "xyes"; then 15181 XCFLAGS="$XCFLAGS -Wall -Werror" 15182fi 15183 15184XCFLAGS="$XCFLAGS $XPCFLAGS" 15185 15186 15187 15188 15189 15190 15191 15192 if test x$libat_cv_have_ifunc = xyes; then 15193 HAVE_IFUNC_TRUE= 15194 HAVE_IFUNC_FALSE='#' 15195else 15196 HAVE_IFUNC_TRUE='#' 15197 HAVE_IFUNC_FALSE= 15198fi 15199 15200 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then 15201 ARCH_ARM_LINUX_TRUE= 15202 ARCH_ARM_LINUX_FALSE='#' 15203else 15204 ARCH_ARM_LINUX_TRUE='#' 15205 ARCH_ARM_LINUX_FALSE= 15206fi 15207 15208 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then 15209 ARCH_I386_TRUE= 15210 ARCH_I386_FALSE='#' 15211else 15212 ARCH_I386_TRUE='#' 15213 ARCH_I386_FALSE= 15214fi 15215 15216 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then 15217 ARCH_X86_64_TRUE= 15218 ARCH_X86_64_FALSE='#' 15219else 15220 ARCH_X86_64_TRUE='#' 15221 ARCH_X86_64_FALSE= 15222fi 15223 15224 15225if test ${multilib} = yes; then 15226 multilib_arg="--enable-multilib" 15227else 15228 multilib_arg= 15229fi 15230 15231ac_config_files="$ac_config_files Makefile testsuite/Makefile" 15232 15233cat >confcache <<\_ACEOF 15234# This file is a shell script that caches the results of configure 15235# tests run on this system so they can be shared between configure 15236# scripts and configure runs, see configure's option --config-cache. 15237# It is not useful on other systems. If it contains results you don't 15238# want to keep, you may remove or edit it. 15239# 15240# config.status only pays attention to the cache file if you give it 15241# the --recheck option to rerun configure. 15242# 15243# `ac_cv_env_foo' variables (set or unset) will be overridden when 15244# loading this file, other *unset* `ac_cv_foo' will be assigned the 15245# following values. 15246 15247_ACEOF 15248 15249# The following way of writing the cache mishandles newlines in values, 15250# but we know of no workaround that is simple, portable, and efficient. 15251# So, we kill variables containing newlines. 15252# Ultrix sh set writes to stderr and can't be redirected directly, 15253# and sets the high bit in the cache file unless we assign to the vars. 15254( 15255 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15256 eval ac_val=\$$ac_var 15257 case $ac_val in #( 15258 *${as_nl}*) 15259 case $ac_var in #( 15260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15262 esac 15263 case $ac_var in #( 15264 _ | IFS | as_nl) ;; #( 15265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15266 *) { eval $ac_var=; unset $ac_var;} ;; 15267 esac ;; 15268 esac 15269 done 15270 15271 (set) 2>&1 | 15272 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15273 *${as_nl}ac_space=\ *) 15274 # `set' does not quote correctly, so add quotes: double-quote 15275 # substitution turns \\\\ into \\, and sed turns \\ into \. 15276 sed -n \ 15277 "s/'/'\\\\''/g; 15278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15279 ;; #( 15280 *) 15281 # `set' quotes correctly as required by POSIX, so do not add quotes. 15282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15283 ;; 15284 esac | 15285 sort 15286) | 15287 sed ' 15288 /^ac_cv_env_/b end 15289 t clear 15290 :clear 15291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15292 t end 15293 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15294 :end' >>confcache 15295if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15296 if test -w "$cache_file"; then 15297 test "x$cache_file" != "x/dev/null" && 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15299$as_echo "$as_me: updating cache $cache_file" >&6;} 15300 cat confcache >$cache_file 15301 else 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15303$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15304 fi 15305fi 15306rm -f confcache 15307 15308test "x$prefix" = xNONE && prefix=$ac_default_prefix 15309# Let make expand exec_prefix. 15310test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15311 15312DEFS=-DHAVE_CONFIG_H 15313 15314ac_libobjs= 15315ac_ltlibobjs= 15316for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15317 # 1. Remove the extension, and $U if already installed. 15318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15319 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15321 # will be set to the directory where LIBOBJS objects are built. 15322 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15323 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15324done 15325LIBOBJS=$ac_libobjs 15326 15327LTLIBOBJS=$ac_ltlibobjs 15328 15329 15330if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 15331 as_fn_error "conditional \"GENINSRC\" was never defined. 15332Usually this means the macro was only invoked conditionally." "$LINENO" 5 15333fi 15334 if test -n "$EXEEXT"; then 15335 am__EXEEXT_TRUE= 15336 am__EXEEXT_FALSE='#' 15337else 15338 am__EXEEXT_TRUE='#' 15339 am__EXEEXT_FALSE= 15340fi 15341 15342if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15343 as_fn_error "conditional \"AMDEP\" was never defined. 15344Usually this means the macro was only invoked conditionally." "$LINENO" 5 15345fi 15346if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15347 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15348Usually this means the macro was only invoked conditionally." "$LINENO" 5 15349fi 15350if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 15351 as_fn_error "conditional \"am__fastdepCCAS\" was never defined. 15352Usually this means the macro was only invoked conditionally." "$LINENO" 5 15353fi 15354if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15355 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 15356Usually this means the macro was only invoked conditionally." "$LINENO" 5 15357fi 15358 15359if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then 15360 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined. 15361Usually this means the macro was only invoked conditionally." "$LINENO" 5 15362fi 15363if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then 15364 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined. 15365Usually this means the macro was only invoked conditionally." "$LINENO" 5 15366fi 15367if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then 15368 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined. 15369Usually this means the macro was only invoked conditionally." "$LINENO" 5 15370fi 15371if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then 15372 as_fn_error "conditional \"HAVE_IFUNC\" was never defined. 15373Usually this means the macro was only invoked conditionally." "$LINENO" 5 15374fi 15375if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then 15376 as_fn_error "conditional \"ARCH_ARM_LINUX\" was never defined. 15377Usually this means the macro was only invoked conditionally." "$LINENO" 5 15378fi 15379if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then 15380 as_fn_error "conditional \"ARCH_I386\" was never defined. 15381Usually this means the macro was only invoked conditionally." "$LINENO" 5 15382fi 15383if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then 15384 as_fn_error "conditional \"ARCH_X86_64\" was never defined. 15385Usually this means the macro was only invoked conditionally." "$LINENO" 5 15386fi 15387 15388: ${CONFIG_STATUS=./config.status} 15389ac_write_fail=0 15390ac_clean_files_save=$ac_clean_files 15391ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15392{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15393$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15394as_write_fail=0 15395cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15396#! $SHELL 15397# Generated by $as_me. 15398# Run this file to recreate the current configuration. 15399# Compiler output produced by configure, useful for debugging 15400# configure, is in config.log if it exists. 15401 15402debug=false 15403ac_cs_recheck=false 15404ac_cs_silent=false 15405 15406SHELL=\${CONFIG_SHELL-$SHELL} 15407export SHELL 15408_ASEOF 15409cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15410## -------------------- ## 15411## M4sh Initialization. ## 15412## -------------------- ## 15413 15414# Be more Bourne compatible 15415DUALCASE=1; export DUALCASE # for MKS sh 15416if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15417 emulate sh 15418 NULLCMD=: 15419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15420 # is contrary to our usage. Disable this feature. 15421 alias -g '${1+"$@"}'='"$@"' 15422 setopt NO_GLOB_SUBST 15423else 15424 case `(set -o) 2>/dev/null` in #( 15425 *posix*) : 15426 set -o posix ;; #( 15427 *) : 15428 ;; 15429esac 15430fi 15431 15432 15433as_nl=' 15434' 15435export as_nl 15436# Printing a long string crashes Solaris 7 /usr/bin/printf. 15437as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15438as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15439as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15440# Prefer a ksh shell builtin over an external printf program on Solaris, 15441# but without wasting forks for bash or zsh. 15442if test -z "$BASH_VERSION$ZSH_VERSION" \ 15443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15444 as_echo='print -r --' 15445 as_echo_n='print -rn --' 15446elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15447 as_echo='printf %s\n' 15448 as_echo_n='printf %s' 15449else 15450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15452 as_echo_n='/usr/ucb/echo -n' 15453 else 15454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15455 as_echo_n_body='eval 15456 arg=$1; 15457 case $arg in #( 15458 *"$as_nl"*) 15459 expr "X$arg" : "X\\(.*\\)$as_nl"; 15460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15461 esac; 15462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15463 ' 15464 export as_echo_n_body 15465 as_echo_n='sh -c $as_echo_n_body as_echo' 15466 fi 15467 export as_echo_body 15468 as_echo='sh -c $as_echo_body as_echo' 15469fi 15470 15471# The user is always right. 15472if test "${PATH_SEPARATOR+set}" != set; then 15473 PATH_SEPARATOR=: 15474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15476 PATH_SEPARATOR=';' 15477 } 15478fi 15479 15480 15481# IFS 15482# We need space, tab and new line, in precisely that order. Quoting is 15483# there to prevent editors from complaining about space-tab. 15484# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15485# splitting by setting IFS to empty value.) 15486IFS=" "" $as_nl" 15487 15488# Find who we are. Look in the path if we contain no directory separator. 15489case $0 in #(( 15490 *[\\/]* ) as_myself=$0 ;; 15491 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15492for as_dir in $PATH 15493do 15494 IFS=$as_save_IFS 15495 test -z "$as_dir" && as_dir=. 15496 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15497 done 15498IFS=$as_save_IFS 15499 15500 ;; 15501esac 15502# We did not find ourselves, most probably we were run as `sh COMMAND' 15503# in which case we are not to be found in the path. 15504if test "x$as_myself" = x; then 15505 as_myself=$0 15506fi 15507if test ! -f "$as_myself"; then 15508 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15509 exit 1 15510fi 15511 15512# Unset variables that we do not need and which cause bugs (e.g. in 15513# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15514# suppresses any "Segmentation fault" message there. '((' could 15515# trigger a bug in pdksh 5.2.14. 15516for as_var in BASH_ENV ENV MAIL MAILPATH 15517do eval test x\${$as_var+set} = xset \ 15518 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15519done 15520PS1='$ ' 15521PS2='> ' 15522PS4='+ ' 15523 15524# NLS nuisances. 15525LC_ALL=C 15526export LC_ALL 15527LANGUAGE=C 15528export LANGUAGE 15529 15530# CDPATH. 15531(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15532 15533 15534# as_fn_error ERROR [LINENO LOG_FD] 15535# --------------------------------- 15536# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15537# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15538# script with status $?, using 1 if that was 0. 15539as_fn_error () 15540{ 15541 as_status=$?; test $as_status -eq 0 && as_status=1 15542 if test "$3"; then 15543 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15544 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 15545 fi 15546 $as_echo "$as_me: error: $1" >&2 15547 as_fn_exit $as_status 15548} # as_fn_error 15549 15550 15551# as_fn_set_status STATUS 15552# ----------------------- 15553# Set $? to STATUS, without forking. 15554as_fn_set_status () 15555{ 15556 return $1 15557} # as_fn_set_status 15558 15559# as_fn_exit STATUS 15560# ----------------- 15561# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15562as_fn_exit () 15563{ 15564 set +e 15565 as_fn_set_status $1 15566 exit $1 15567} # as_fn_exit 15568 15569# as_fn_unset VAR 15570# --------------- 15571# Portably unset VAR. 15572as_fn_unset () 15573{ 15574 { eval $1=; unset $1;} 15575} 15576as_unset=as_fn_unset 15577# as_fn_append VAR VALUE 15578# ---------------------- 15579# Append the text in VALUE to the end of the definition contained in VAR. Take 15580# advantage of any shell optimizations that allow amortized linear growth over 15581# repeated appends, instead of the typical quadratic growth present in naive 15582# implementations. 15583if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15584 eval 'as_fn_append () 15585 { 15586 eval $1+=\$2 15587 }' 15588else 15589 as_fn_append () 15590 { 15591 eval $1=\$$1\$2 15592 } 15593fi # as_fn_append 15594 15595# as_fn_arith ARG... 15596# ------------------ 15597# Perform arithmetic evaluation on the ARGs, and store the result in the 15598# global $as_val. Take advantage of shells that can avoid forks. The arguments 15599# must be portable across $(()) and expr. 15600if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15601 eval 'as_fn_arith () 15602 { 15603 as_val=$(( $* )) 15604 }' 15605else 15606 as_fn_arith () 15607 { 15608 as_val=`expr "$@" || test $? -eq 1` 15609 } 15610fi # as_fn_arith 15611 15612 15613if expr a : '\(a\)' >/dev/null 2>&1 && 15614 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15615 as_expr=expr 15616else 15617 as_expr=false 15618fi 15619 15620if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15621 as_basename=basename 15622else 15623 as_basename=false 15624fi 15625 15626if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15627 as_dirname=dirname 15628else 15629 as_dirname=false 15630fi 15631 15632as_me=`$as_basename -- "$0" || 15633$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15634 X"$0" : 'X\(//\)$' \| \ 15635 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15636$as_echo X/"$0" | 15637 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15638 s//\1/ 15639 q 15640 } 15641 /^X\/\(\/\/\)$/{ 15642 s//\1/ 15643 q 15644 } 15645 /^X\/\(\/\).*/{ 15646 s//\1/ 15647 q 15648 } 15649 s/.*/./; q'` 15650 15651# Avoid depending upon Character Ranges. 15652as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15653as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15654as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15655as_cr_digits='0123456789' 15656as_cr_alnum=$as_cr_Letters$as_cr_digits 15657 15658ECHO_C= ECHO_N= ECHO_T= 15659case `echo -n x` in #((((( 15660-n*) 15661 case `echo 'xy\c'` in 15662 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15663 xy) ECHO_C='\c';; 15664 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15665 ECHO_T=' ';; 15666 esac;; 15667*) 15668 ECHO_N='-n';; 15669esac 15670 15671rm -f conf$$ conf$$.exe conf$$.file 15672if test -d conf$$.dir; then 15673 rm -f conf$$.dir/conf$$.file 15674else 15675 rm -f conf$$.dir 15676 mkdir conf$$.dir 2>/dev/null 15677fi 15678if (echo >conf$$.file) 2>/dev/null; then 15679 if ln -s conf$$.file conf$$ 2>/dev/null; then 15680 as_ln_s='ln -s' 15681 # ... but there are two gotchas: 15682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15684 # In both cases, we have to default to `cp -p'. 15685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15686 as_ln_s='cp -p' 15687 elif ln conf$$.file conf$$ 2>/dev/null; then 15688 as_ln_s=ln 15689 else 15690 as_ln_s='cp -p' 15691 fi 15692else 15693 as_ln_s='cp -p' 15694fi 15695rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15696rmdir conf$$.dir 2>/dev/null 15697 15698 15699# as_fn_mkdir_p 15700# ------------- 15701# Create "$as_dir" as a directory, including parents if necessary. 15702as_fn_mkdir_p () 15703{ 15704 15705 case $as_dir in #( 15706 -*) as_dir=./$as_dir;; 15707 esac 15708 test -d "$as_dir" || eval $as_mkdir_p || { 15709 as_dirs= 15710 while :; do 15711 case $as_dir in #( 15712 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15713 *) as_qdir=$as_dir;; 15714 esac 15715 as_dirs="'$as_qdir' $as_dirs" 15716 as_dir=`$as_dirname -- "$as_dir" || 15717$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15718 X"$as_dir" : 'X\(//\)[^/]' \| \ 15719 X"$as_dir" : 'X\(//\)$' \| \ 15720 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15721$as_echo X"$as_dir" | 15722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15723 s//\1/ 15724 q 15725 } 15726 /^X\(\/\/\)[^/].*/{ 15727 s//\1/ 15728 q 15729 } 15730 /^X\(\/\/\)$/{ 15731 s//\1/ 15732 q 15733 } 15734 /^X\(\/\).*/{ 15735 s//\1/ 15736 q 15737 } 15738 s/.*/./; q'` 15739 test -d "$as_dir" && break 15740 done 15741 test -z "$as_dirs" || eval "mkdir $as_dirs" 15742 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15743 15744 15745} # as_fn_mkdir_p 15746if mkdir -p . 2>/dev/null; then 15747 as_mkdir_p='mkdir -p "$as_dir"' 15748else 15749 test -d ./-p && rmdir ./-p 15750 as_mkdir_p=false 15751fi 15752 15753if test -x / >/dev/null 2>&1; then 15754 as_test_x='test -x' 15755else 15756 if ls -dL / >/dev/null 2>&1; then 15757 as_ls_L_option=L 15758 else 15759 as_ls_L_option= 15760 fi 15761 as_test_x=' 15762 eval sh -c '\'' 15763 if test -d "$1"; then 15764 test -d "$1/."; 15765 else 15766 case $1 in #( 15767 -*)set "./$1";; 15768 esac; 15769 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15770 ???[sx]*):;;*)false;;esac;fi 15771 '\'' sh 15772 ' 15773fi 15774as_executable_p=$as_test_x 15775 15776# Sed expression to map a string onto a valid CPP name. 15777as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15778 15779# Sed expression to map a string onto a valid variable name. 15780as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15781 15782 15783exec 6>&1 15784## ----------------------------------- ## 15785## Main body of $CONFIG_STATUS script. ## 15786## ----------------------------------- ## 15787_ASEOF 15788test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15789 15790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15791# Save the log message, to keep $0 and so on meaningful, and to 15792# report actual input values of CONFIG_FILES etc. instead of their 15793# values after options handling. 15794ac_log=" 15795This file was extended by GNU Atomic Library $as_me 1.0, which was 15796generated by GNU Autoconf 2.64. Invocation command line was 15797 15798 CONFIG_FILES = $CONFIG_FILES 15799 CONFIG_HEADERS = $CONFIG_HEADERS 15800 CONFIG_LINKS = $CONFIG_LINKS 15801 CONFIG_COMMANDS = $CONFIG_COMMANDS 15802 $ $0 $@ 15803 15804on `(hostname || uname -n) 2>/dev/null | sed 1q` 15805" 15806 15807_ACEOF 15808 15809case $ac_config_files in *" 15810"*) set x $ac_config_files; shift; ac_config_files=$*;; 15811esac 15812 15813case $ac_config_headers in *" 15814"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15815esac 15816 15817 15818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15819# Files that config.status was made for. 15820config_files="$ac_config_files" 15821config_headers="$ac_config_headers" 15822config_commands="$ac_config_commands" 15823 15824_ACEOF 15825 15826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15827ac_cs_usage="\ 15828\`$as_me' instantiates files and other configuration actions 15829from templates according to the current configuration. Unless the files 15830and actions are specified as TAGs, all are instantiated by default. 15831 15832Usage: $0 [OPTION]... [TAG]... 15833 15834 -h, --help print this help, then exit 15835 -V, --version print version number and configuration settings, then exit 15836 -q, --quiet, --silent 15837 do not print progress messages 15838 -d, --debug don't remove temporary files 15839 --recheck update $as_me by reconfiguring in the same conditions 15840 --file=FILE[:TEMPLATE] 15841 instantiate the configuration file FILE 15842 --header=FILE[:TEMPLATE] 15843 instantiate the configuration header FILE 15844 15845Configuration files: 15846$config_files 15847 15848Configuration headers: 15849$config_headers 15850 15851Configuration commands: 15852$config_commands 15853 15854Report bugs to the package provider. 15855GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>. 15856General help using GNU software: <http://www.gnu.org/gethelp/>." 15857 15858_ACEOF 15859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15860ac_cs_version="\\ 15861GNU Atomic Library config.status 1.0 15862configured by $0, generated by GNU Autoconf 2.64, 15863 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15864 15865Copyright (C) 2009 Free Software Foundation, Inc. 15866This config.status script is free software; the Free Software Foundation 15867gives unlimited permission to copy, distribute and modify it." 15868 15869ac_pwd='$ac_pwd' 15870srcdir='$srcdir' 15871INSTALL='$INSTALL' 15872MKDIR_P='$MKDIR_P' 15873AWK='$AWK' 15874test -n "\$AWK" || AWK=awk 15875_ACEOF 15876 15877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15878# The default lists apply if the user does not specify any file. 15879ac_need_defaults=: 15880while test $# != 0 15881do 15882 case $1 in 15883 --*=*) 15884 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15885 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15886 ac_shift=: 15887 ;; 15888 *) 15889 ac_option=$1 15890 ac_optarg=$2 15891 ac_shift=shift 15892 ;; 15893 esac 15894 15895 case $ac_option in 15896 # Handling of the options. 15897 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15898 ac_cs_recheck=: ;; 15899 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15900 $as_echo "$ac_cs_version"; exit ;; 15901 --debug | --debu | --deb | --de | --d | -d ) 15902 debug=: ;; 15903 --file | --fil | --fi | --f ) 15904 $ac_shift 15905 case $ac_optarg in 15906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15907 esac 15908 as_fn_append CONFIG_FILES " '$ac_optarg'" 15909 ac_need_defaults=false;; 15910 --header | --heade | --head | --hea ) 15911 $ac_shift 15912 case $ac_optarg in 15913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15914 esac 15915 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15916 ac_need_defaults=false;; 15917 --he | --h) 15918 # Conflict between --help and --header 15919 as_fn_error "ambiguous option: \`$1' 15920Try \`$0 --help' for more information.";; 15921 --help | --hel | -h ) 15922 $as_echo "$ac_cs_usage"; exit ;; 15923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15924 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15925 ac_cs_silent=: ;; 15926 15927 # This is an error. 15928 -*) as_fn_error "unrecognized option: \`$1' 15929Try \`$0 --help' for more information." ;; 15930 15931 *) as_fn_append ac_config_targets " $1" 15932 ac_need_defaults=false ;; 15933 15934 esac 15935 shift 15936done 15937 15938ac_configure_extra_args= 15939 15940if $ac_cs_silent; then 15941 exec 6>/dev/null 15942 ac_configure_extra_args="$ac_configure_extra_args --silent" 15943fi 15944 15945_ACEOF 15946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15947if \$ac_cs_recheck; then 15948 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15949 shift 15950 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15951 CONFIG_SHELL='$SHELL' 15952 export CONFIG_SHELL 15953 exec "\$@" 15954fi 15955 15956_ACEOF 15957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15958exec 5>>config.log 15959{ 15960 echo 15961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15962## Running $as_me. ## 15963_ASBOX 15964 $as_echo "$ac_log" 15965} >&5 15966 15967_ACEOF 15968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15969# 15970# INIT-COMMANDS 15971# 15972 15973srcdir="$srcdir" 15974host="$host" 15975target="$target" 15976with_multisubdir="$with_multisubdir" 15977with_multisrctop="$with_multisrctop" 15978with_target_subdir="$with_target_subdir" 15979ac_configure_args="${multilib_arg} ${ac_configure_args}" 15980multi_basedir="$multi_basedir" 15981CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 15982CC="$CC" 15983CXX="$CXX" 15984GFORTRAN="$GFORTRAN" 15985GCJ="$GCJ" 15986AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15987 15988 15989# The HP-UX ksh and POSIX shell print the target directory to stdout 15990# if CDPATH is set. 15991(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15992 15993sed_quote_subst='$sed_quote_subst' 15994double_quote_subst='$double_quote_subst' 15995delay_variable_subst='$delay_variable_subst' 15996macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15997macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15998enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15999enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16000pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16001enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16002SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16003ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16004host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16005host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16006host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16007build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16008build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16009build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16010SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16011Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16012GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16013EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16014FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16015LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16016NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16017LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16018max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16019ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16020exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16021lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16022lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16023lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16024reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16025reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16026OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16027deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16028file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16029AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16030AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16031STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16032RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16033old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16034old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16035old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16036lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16037CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16038CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16039compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16040GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16041lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16042lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16043lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16044lt_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"`' 16045objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16046MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16047lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16048lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16049lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16050lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16051lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16052need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16053DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16054NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16055LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16056OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16057OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16058libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16059shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16060extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16061archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16062enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16063export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16064whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16065compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16066old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16067old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16068archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16069archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16070module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16071module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16072with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16073allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16074no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16075hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16076hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16077hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16078hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16079hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16080hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16081hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16082hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16083inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16084link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16085fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16086always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16087export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16088exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16089include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16090prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16091file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16092variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16093need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16094need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16095version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16096runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16097shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16098shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16099libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16100library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16101soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16102install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16103postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16104postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16105finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16106finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16107hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16108sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16109sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16110hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16111enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16112enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16113enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16114old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16115striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16116 16117LTCC='$LTCC' 16118LTCFLAGS='$LTCFLAGS' 16119compiler='$compiler_DEFAULT' 16120 16121# A function that is used when there is no print builtin or printf. 16122func_fallback_echo () 16123{ 16124 eval 'cat <<_LTECHO_EOF 16125\$1 16126_LTECHO_EOF' 16127} 16128 16129# Quote evaled strings. 16130for var in SHELL \ 16131ECHO \ 16132SED \ 16133GREP \ 16134EGREP \ 16135FGREP \ 16136LD \ 16137NM \ 16138LN_S \ 16139lt_SP2NL \ 16140lt_NL2SP \ 16141reload_flag \ 16142OBJDUMP \ 16143deplibs_check_method \ 16144file_magic_cmd \ 16145AR \ 16146AR_FLAGS \ 16147STRIP \ 16148RANLIB \ 16149CC \ 16150CFLAGS \ 16151compiler \ 16152lt_cv_sys_global_symbol_pipe \ 16153lt_cv_sys_global_symbol_to_cdecl \ 16154lt_cv_sys_global_symbol_to_c_name_address \ 16155lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16156lt_prog_compiler_no_builtin_flag \ 16157lt_prog_compiler_wl \ 16158lt_prog_compiler_pic \ 16159lt_prog_compiler_static \ 16160lt_cv_prog_compiler_c_o \ 16161need_locks \ 16162DSYMUTIL \ 16163NMEDIT \ 16164LIPO \ 16165OTOOL \ 16166OTOOL64 \ 16167shrext_cmds \ 16168export_dynamic_flag_spec \ 16169whole_archive_flag_spec \ 16170compiler_needs_object \ 16171with_gnu_ld \ 16172allow_undefined_flag \ 16173no_undefined_flag \ 16174hardcode_libdir_flag_spec \ 16175hardcode_libdir_flag_spec_ld \ 16176hardcode_libdir_separator \ 16177fix_srcfile_path \ 16178exclude_expsyms \ 16179include_expsyms \ 16180file_list_spec \ 16181variables_saved_for_relink \ 16182libname_spec \ 16183library_names_spec \ 16184soname_spec \ 16185install_override_mode \ 16186finish_eval \ 16187old_striplib \ 16188striplib; do 16189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16190 *[\\\\\\\`\\"\\\$]*) 16191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16192 ;; 16193 *) 16194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16195 ;; 16196 esac 16197done 16198 16199# Double-quote double-evaled strings. 16200for var in reload_cmds \ 16201old_postinstall_cmds \ 16202old_postuninstall_cmds \ 16203old_archive_cmds \ 16204extract_expsyms_cmds \ 16205old_archive_from_new_cmds \ 16206old_archive_from_expsyms_cmds \ 16207archive_cmds \ 16208archive_expsym_cmds \ 16209module_cmds \ 16210module_expsym_cmds \ 16211export_symbols_cmds \ 16212prelink_cmds \ 16213postinstall_cmds \ 16214postuninstall_cmds \ 16215finish_cmds \ 16216sys_lib_search_path_spec \ 16217sys_lib_dlsearch_path_spec; do 16218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16219 *[\\\\\\\`\\"\\\$]*) 16220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16221 ;; 16222 *) 16223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16224 ;; 16225 esac 16226done 16227 16228ac_aux_dir='$ac_aux_dir' 16229xsi_shell='$xsi_shell' 16230lt_shell_append='$lt_shell_append' 16231 16232# See if we are running on zsh, and set the options which allow our 16233# commands through without removal of \ escapes INIT. 16234if test -n "\${ZSH_VERSION+set}" ; then 16235 setopt NO_GLOB_SUBST 16236fi 16237 16238 16239 PACKAGE='$PACKAGE' 16240 VERSION='$VERSION' 16241 TIMESTAMP='$TIMESTAMP' 16242 RM='$RM' 16243 ofile='$ofile' 16244 16245 16246 16247 16248GCC="$GCC" 16249CC="$CC" 16250acx_cv_header_stdint="$acx_cv_header_stdint" 16251acx_cv_type_int8_t="$acx_cv_type_int8_t" 16252acx_cv_type_int16_t="$acx_cv_type_int16_t" 16253acx_cv_type_int32_t="$acx_cv_type_int32_t" 16254acx_cv_type_int64_t="$acx_cv_type_int64_t" 16255acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 16256ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 16257ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 16258ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 16259ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 16260ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 16261ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 16262ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 16263ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 16264 16265 16266_ACEOF 16267 16268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16269 16270# Handling of arguments. 16271for ac_config_target in $ac_config_targets 16272do 16273 case $ac_config_target in 16274 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;; 16275 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 16276 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16277 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16278 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 16279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16280 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 16281 16282 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16283 esac 16284done 16285 16286 16287# If the user did not use the arguments to specify the items to instantiate, 16288# then the envvar interface is used. Set only those that are not. 16289# We use the long form for the default assignment because of an extremely 16290# bizarre bug on SunOS 4.1.3. 16291if $ac_need_defaults; then 16292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16294 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16295fi 16296 16297# Have a temporary directory for convenience. Make it in the build tree 16298# simply because there is no reason against having it here, and in addition, 16299# creating and moving files from /tmp can sometimes cause problems. 16300# Hook for its removal unless debugging. 16301# Note that there is a small window in which the directory will not be cleaned: 16302# after its creation but before its name has been assigned to `$tmp'. 16303$debug || 16304{ 16305 tmp= 16306 trap 'exit_status=$? 16307 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16308' 0 16309 trap 'as_fn_exit 1' 1 2 13 15 16310} 16311# Create a (secure) tmp directory for tmp files. 16312 16313{ 16314 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16315 test -n "$tmp" && test -d "$tmp" 16316} || 16317{ 16318 tmp=./conf$$-$RANDOM 16319 (umask 077 && mkdir "$tmp") 16320} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16321 16322# Set up the scripts for CONFIG_FILES section. 16323# No need to generate them if there are no CONFIG_FILES. 16324# This happens for instance with `./config.status config.h'. 16325if test -n "$CONFIG_FILES"; then 16326 16327 16328ac_cr=`echo X | tr X '\015'` 16329# On cygwin, bash can eat \r inside `` if the user requested igncr. 16330# But we know of no other shell where ac_cr would be empty at this 16331# point, so we can use a bashism as a fallback. 16332if test "x$ac_cr" = x; then 16333 eval ac_cr=\$\'\\r\' 16334fi 16335ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16336if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16337 ac_cs_awk_cr='\r' 16338else 16339 ac_cs_awk_cr=$ac_cr 16340fi 16341 16342echo 'BEGIN {' >"$tmp/subs1.awk" && 16343_ACEOF 16344 16345 16346{ 16347 echo "cat >conf$$subs.awk <<_ACEOF" && 16348 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16349 echo "_ACEOF" 16350} >conf$$subs.sh || 16351 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16352ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16353ac_delim='%!_!# ' 16354for ac_last_try in false false false false false :; do 16355 . ./conf$$subs.sh || 16356 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16357 16358 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16359 if test $ac_delim_n = $ac_delim_num; then 16360 break 16361 elif $ac_last_try; then 16362 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16363 else 16364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16365 fi 16366done 16367rm -f conf$$subs.sh 16368 16369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16370cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16371_ACEOF 16372sed -n ' 16373h 16374s/^/S["/; s/!.*/"]=/ 16375p 16376g 16377s/^[^!]*!// 16378:repl 16379t repl 16380s/'"$ac_delim"'$// 16381t delim 16382:nl 16383h 16384s/\(.\{148\}\).*/\1/ 16385t more1 16386s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16387p 16388n 16389b repl 16390:more1 16391s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16392p 16393g 16394s/.\{148\}// 16395t nl 16396:delim 16397h 16398s/\(.\{148\}\).*/\1/ 16399t more2 16400s/["\\]/\\&/g; s/^/"/; s/$/"/ 16401p 16402b 16403:more2 16404s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16405p 16406g 16407s/.\{148\}// 16408t delim 16409' <conf$$subs.awk | sed ' 16410/^[^""]/{ 16411 N 16412 s/\n// 16413} 16414' >>$CONFIG_STATUS || ac_write_fail=1 16415rm -f conf$$subs.awk 16416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16417_ACAWK 16418cat >>"\$tmp/subs1.awk" <<_ACAWK && 16419 for (key in S) S_is_set[key] = 1 16420 FS = "" 16421 16422} 16423{ 16424 line = $ 0 16425 nfields = split(line, field, "@") 16426 substed = 0 16427 len = length(field[1]) 16428 for (i = 2; i < nfields; i++) { 16429 key = field[i] 16430 keylen = length(key) 16431 if (S_is_set[key]) { 16432 value = S[key] 16433 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16434 len += length(value) + length(field[++i]) 16435 substed = 1 16436 } else 16437 len += 1 + keylen 16438 } 16439 16440 print line 16441} 16442 16443_ACAWK 16444_ACEOF 16445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16446if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16447 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16448else 16449 cat 16450fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16451 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16452_ACEOF 16453 16454# VPATH may cause trouble with some makes, so we remove $(srcdir), 16455# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16456# trailing colons and then remove the whole line if VPATH becomes empty 16457# (actually we leave an empty line to preserve line numbers). 16458if test "x$srcdir" = x.; then 16459 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16460s/:*\$(srcdir):*/:/ 16461s/:*\${srcdir}:*/:/ 16462s/:*@srcdir@:*/:/ 16463s/^\([^=]*=[ ]*\):*/\1/ 16464s/:*$// 16465s/^[^=]*=[ ]*$// 16466}' 16467fi 16468 16469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16470fi # test -n "$CONFIG_FILES" 16471 16472# Set up the scripts for CONFIG_HEADERS section. 16473# No need to generate them if there are no CONFIG_HEADERS. 16474# This happens for instance with `./config.status Makefile'. 16475if test -n "$CONFIG_HEADERS"; then 16476cat >"$tmp/defines.awk" <<\_ACAWK || 16477BEGIN { 16478_ACEOF 16479 16480# Transform confdefs.h into an awk script `defines.awk', embedded as 16481# here-document in config.status, that substitutes the proper values into 16482# config.h.in to produce config.h. 16483 16484# Create a delimiter string that does not exist in confdefs.h, to ease 16485# handling of long lines. 16486ac_delim='%!_!# ' 16487for ac_last_try in false false :; do 16488 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16489 if test -z "$ac_t"; then 16490 break 16491 elif $ac_last_try; then 16492 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 16493 else 16494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16495 fi 16496done 16497 16498# For the awk script, D is an array of macro values keyed by name, 16499# likewise P contains macro parameters if any. Preserve backslash 16500# newline sequences. 16501 16502ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16503sed -n ' 16504s/.\{148\}/&'"$ac_delim"'/g 16505t rset 16506:rset 16507s/^[ ]*#[ ]*define[ ][ ]*/ / 16508t def 16509d 16510:def 16511s/\\$// 16512t bsnl 16513s/["\\]/\\&/g 16514s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16515D["\1"]=" \3"/p 16516s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16517d 16518:bsnl 16519s/["\\]/\\&/g 16520s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16521D["\1"]=" \3\\\\\\n"\\/p 16522t cont 16523s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16524t cont 16525d 16526:cont 16527n 16528s/.\{148\}/&'"$ac_delim"'/g 16529t clear 16530:clear 16531s/\\$// 16532t bsnlc 16533s/["\\]/\\&/g; s/^/"/; s/$/"/p 16534d 16535:bsnlc 16536s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16537b cont 16538' <confdefs.h | sed ' 16539s/'"$ac_delim"'/"\\\ 16540"/g' >>$CONFIG_STATUS || ac_write_fail=1 16541 16542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16543 for (key in D) D_is_set[key] = 1 16544 FS = "" 16545} 16546/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16547 line = \$ 0 16548 split(line, arg, " ") 16549 if (arg[1] == "#") { 16550 defundef = arg[2] 16551 mac1 = arg[3] 16552 } else { 16553 defundef = substr(arg[1], 2) 16554 mac1 = arg[2] 16555 } 16556 split(mac1, mac2, "(") #) 16557 macro = mac2[1] 16558 prefix = substr(line, 1, index(line, defundef) - 1) 16559 if (D_is_set[macro]) { 16560 # Preserve the white space surrounding the "#". 16561 print prefix "define", macro P[macro] D[macro] 16562 next 16563 } else { 16564 # Replace #undef with comments. This is necessary, for example, 16565 # in the case of _POSIX_SOURCE, which is predefined and required 16566 # on some systems where configure will not decide to define it. 16567 if (defundef == "undef") { 16568 print "/*", prefix defundef, macro, "*/" 16569 next 16570 } 16571 } 16572} 16573{ print } 16574_ACAWK 16575_ACEOF 16576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16577 as_fn_error "could not setup config headers machinery" "$LINENO" 5 16578fi # test -n "$CONFIG_HEADERS" 16579 16580 16581eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16582shift 16583for ac_tag 16584do 16585 case $ac_tag in 16586 :[FHLC]) ac_mode=$ac_tag; continue;; 16587 esac 16588 case $ac_mode$ac_tag in 16589 :[FHL]*:*);; 16590 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 16591 :[FH]-) ac_tag=-:-;; 16592 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16593 esac 16594 ac_save_IFS=$IFS 16595 IFS=: 16596 set x $ac_tag 16597 IFS=$ac_save_IFS 16598 shift 16599 ac_file=$1 16600 shift 16601 16602 case $ac_mode in 16603 :L) ac_source=$1;; 16604 :[FH]) 16605 ac_file_inputs= 16606 for ac_f 16607 do 16608 case $ac_f in 16609 -) ac_f="$tmp/stdin";; 16610 *) # Look for the file first in the build tree, then in the source tree 16611 # (if the path is not absolute). The absolute path cannot be DOS-style, 16612 # because $ac_f cannot contain `:'. 16613 test -f "$ac_f" || 16614 case $ac_f in 16615 [\\/$]*) false;; 16616 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16617 esac || 16618 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16619 esac 16620 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16621 as_fn_append ac_file_inputs " '$ac_f'" 16622 done 16623 16624 # Let's still pretend it is `configure' which instantiates (i.e., don't 16625 # use $as_me), people would be surprised to read: 16626 # /* config.h. Generated by config.status. */ 16627 configure_input='Generated from '` 16628 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16629 `' by configure.' 16630 if test x"$ac_file" != x-; then 16631 configure_input="$ac_file. $configure_input" 16632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16633$as_echo "$as_me: creating $ac_file" >&6;} 16634 fi 16635 # Neutralize special characters interpreted by sed in replacement strings. 16636 case $configure_input in #( 16637 *\&* | *\|* | *\\* ) 16638 ac_sed_conf_input=`$as_echo "$configure_input" | 16639 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16640 *) ac_sed_conf_input=$configure_input;; 16641 esac 16642 16643 case $ac_tag in 16644 *:-:* | *:-) cat >"$tmp/stdin" \ 16645 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 16646 esac 16647 ;; 16648 esac 16649 16650 ac_dir=`$as_dirname -- "$ac_file" || 16651$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16652 X"$ac_file" : 'X\(//\)[^/]' \| \ 16653 X"$ac_file" : 'X\(//\)$' \| \ 16654 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16655$as_echo X"$ac_file" | 16656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16657 s//\1/ 16658 q 16659 } 16660 /^X\(\/\/\)[^/].*/{ 16661 s//\1/ 16662 q 16663 } 16664 /^X\(\/\/\)$/{ 16665 s//\1/ 16666 q 16667 } 16668 /^X\(\/\).*/{ 16669 s//\1/ 16670 q 16671 } 16672 s/.*/./; q'` 16673 as_dir="$ac_dir"; as_fn_mkdir_p 16674 ac_builddir=. 16675 16676case "$ac_dir" in 16677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16678*) 16679 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16680 # A ".." for each directory in $ac_dir_suffix. 16681 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16682 case $ac_top_builddir_sub in 16683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16685 esac ;; 16686esac 16687ac_abs_top_builddir=$ac_pwd 16688ac_abs_builddir=$ac_pwd$ac_dir_suffix 16689# for backward compatibility: 16690ac_top_builddir=$ac_top_build_prefix 16691 16692case $srcdir in 16693 .) # We are building in place. 16694 ac_srcdir=. 16695 ac_top_srcdir=$ac_top_builddir_sub 16696 ac_abs_top_srcdir=$ac_pwd ;; 16697 [\\/]* | ?:[\\/]* ) # Absolute name. 16698 ac_srcdir=$srcdir$ac_dir_suffix; 16699 ac_top_srcdir=$srcdir 16700 ac_abs_top_srcdir=$srcdir ;; 16701 *) # Relative name. 16702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16703 ac_top_srcdir=$ac_top_build_prefix$srcdir 16704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16705esac 16706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16707 16708 16709 case $ac_mode in 16710 :F) 16711 # 16712 # CONFIG_FILE 16713 # 16714 16715 case $INSTALL in 16716 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16717 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16718 esac 16719 ac_MKDIR_P=$MKDIR_P 16720 case $MKDIR_P in 16721 [\\/$]* | ?:[\\/]* ) ;; 16722 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16723 esac 16724_ACEOF 16725 16726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16727# If the template does not know about datarootdir, expand it. 16728# FIXME: This hack should be removed a few years after 2.60. 16729ac_datarootdir_hack=; ac_datarootdir_seen= 16730ac_sed_dataroot=' 16731/datarootdir/ { 16732 p 16733 q 16734} 16735/@datadir@/p 16736/@docdir@/p 16737/@infodir@/p 16738/@localedir@/p 16739/@mandir@/p' 16740case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16741*datarootdir*) ac_datarootdir_seen=yes;; 16742*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16744$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16745_ACEOF 16746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16747 ac_datarootdir_hack=' 16748 s&@datadir@&$datadir&g 16749 s&@docdir@&$docdir&g 16750 s&@infodir@&$infodir&g 16751 s&@localedir@&$localedir&g 16752 s&@mandir@&$mandir&g 16753 s&\\\${datarootdir}&$datarootdir&g' ;; 16754esac 16755_ACEOF 16756 16757# Neutralize VPATH when `$srcdir' = `.'. 16758# Shell code in configure.ac might set extrasub. 16759# FIXME: do we really want to maintain this feature? 16760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16761ac_sed_extra="$ac_vpsub 16762$extrasub 16763_ACEOF 16764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16765:t 16766/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16767s|@configure_input@|$ac_sed_conf_input|;t t 16768s&@top_builddir@&$ac_top_builddir_sub&;t t 16769s&@top_build_prefix@&$ac_top_build_prefix&;t t 16770s&@srcdir@&$ac_srcdir&;t t 16771s&@abs_srcdir@&$ac_abs_srcdir&;t t 16772s&@top_srcdir@&$ac_top_srcdir&;t t 16773s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16774s&@builddir@&$ac_builddir&;t t 16775s&@abs_builddir@&$ac_abs_builddir&;t t 16776s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16777s&@INSTALL@&$ac_INSTALL&;t t 16778s&@MKDIR_P@&$ac_MKDIR_P&;t t 16779$ac_datarootdir_hack 16780" 16781eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16782 || as_fn_error "could not create $ac_file" "$LINENO" 5 16783 16784test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16785 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16786 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16788which seems to be undefined. Please make sure it is defined." >&5 16789$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16790which seems to be undefined. Please make sure it is defined." >&2;} 16791 16792 rm -f "$tmp/stdin" 16793 case $ac_file in 16794 -) cat "$tmp/out" && rm -f "$tmp/out";; 16795 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16796 esac \ 16797 || as_fn_error "could not create $ac_file" "$LINENO" 5 16798 ;; 16799 :H) 16800 # 16801 # CONFIG_HEADER 16802 # 16803 if test x"$ac_file" != x-; then 16804 { 16805 $as_echo "/* $configure_input */" \ 16806 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16807 } >"$tmp/config.h" \ 16808 || as_fn_error "could not create $ac_file" "$LINENO" 5 16809 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16811$as_echo "$as_me: $ac_file is unchanged" >&6;} 16812 else 16813 rm -f "$ac_file" 16814 mv "$tmp/config.h" "$ac_file" \ 16815 || as_fn_error "could not create $ac_file" "$LINENO" 5 16816 fi 16817 else 16818 $as_echo "/* $configure_input */" \ 16819 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16820 || as_fn_error "could not create -" "$LINENO" 5 16821 fi 16822# Compute "$ac_file"'s index in $config_headers. 16823_am_arg="$ac_file" 16824_am_stamp_count=1 16825for _am_header in $config_headers :; do 16826 case $_am_header in 16827 $_am_arg | $_am_arg:* ) 16828 break ;; 16829 * ) 16830 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16831 esac 16832done 16833echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16834$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16835 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16836 X"$_am_arg" : 'X\(//\)$' \| \ 16837 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16838$as_echo X"$_am_arg" | 16839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16840 s//\1/ 16841 q 16842 } 16843 /^X\(\/\/\)[^/].*/{ 16844 s//\1/ 16845 q 16846 } 16847 /^X\(\/\/\)$/{ 16848 s//\1/ 16849 q 16850 } 16851 /^X\(\/\).*/{ 16852 s//\1/ 16853 q 16854 } 16855 s/.*/./; q'`/stamp-h$_am_stamp_count 16856 ;; 16857 16858 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16859$as_echo "$as_me: executing $ac_file commands" >&6;} 16860 ;; 16861 esac 16862 16863 16864 case $ac_file$ac_mode in 16865 "default-1":C) 16866# Only add multilib support code if we just rebuilt the top-level 16867# Makefile. 16868case " $CONFIG_FILES " in 16869 *" Makefile "*) 16870 ac_file=Makefile . ${multi_basedir}/config-ml.in 16871 ;; 16872esac ;; 16873 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16874 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16875 # are listed without --file. Let's play safe and only enable the eval 16876 # if we detect the quoting. 16877 case $CONFIG_FILES in 16878 *\'*) eval set x "$CONFIG_FILES" ;; 16879 *) set x $CONFIG_FILES ;; 16880 esac 16881 shift 16882 for mf 16883 do 16884 # Strip MF so we end up with the name of the file. 16885 mf=`echo "$mf" | sed -e 's/:.*$//'` 16886 # Check whether this is an Automake generated Makefile or not. 16887 # We used to match only the files named `Makefile.in', but 16888 # some people rename them; so instead we look at the file content. 16889 # Grep'ing the first line is not enough: some people post-process 16890 # each Makefile.in and add a new line on top of each file to say so. 16891 # Grep'ing the whole file is not good either: AIX grep has a line 16892 # limit of 2048, but all sed's we know have understand at least 4000. 16893 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16894 dirpart=`$as_dirname -- "$mf" || 16895$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16896 X"$mf" : 'X\(//\)[^/]' \| \ 16897 X"$mf" : 'X\(//\)$' \| \ 16898 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16899$as_echo X"$mf" | 16900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16901 s//\1/ 16902 q 16903 } 16904 /^X\(\/\/\)[^/].*/{ 16905 s//\1/ 16906 q 16907 } 16908 /^X\(\/\/\)$/{ 16909 s//\1/ 16910 q 16911 } 16912 /^X\(\/\).*/{ 16913 s//\1/ 16914 q 16915 } 16916 s/.*/./; q'` 16917 else 16918 continue 16919 fi 16920 # Extract the definition of DEPDIR, am__include, and am__quote 16921 # from the Makefile without running `make'. 16922 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16923 test -z "$DEPDIR" && continue 16924 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16925 test -z "am__include" && continue 16926 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16927 # When using ansi2knr, U may be empty or an underscore; expand it 16928 U=`sed -n 's/^U = //p' < "$mf"` 16929 # Find all dependency output files, they are included files with 16930 # $(DEPDIR) in their names. We invoke sed twice because it is the 16931 # simplest approach to changing $(DEPDIR) to its actual value in the 16932 # expansion. 16933 for file in `sed -n " 16934 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16935 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16936 # Make sure the directory exists. 16937 test -f "$dirpart/$file" && continue 16938 fdir=`$as_dirname -- "$file" || 16939$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16940 X"$file" : 'X\(//\)[^/]' \| \ 16941 X"$file" : 'X\(//\)$' \| \ 16942 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16943$as_echo X"$file" | 16944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16945 s//\1/ 16946 q 16947 } 16948 /^X\(\/\/\)[^/].*/{ 16949 s//\1/ 16950 q 16951 } 16952 /^X\(\/\/\)$/{ 16953 s//\1/ 16954 q 16955 } 16956 /^X\(\/\).*/{ 16957 s//\1/ 16958 q 16959 } 16960 s/.*/./; q'` 16961 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16962 # echo "creating $dirpart/$file" 16963 echo '# dummy' > "$dirpart/$file" 16964 done 16965 done 16966} 16967 ;; 16968 "libtool":C) 16969 16970 # See if we are running on zsh, and set the options which allow our 16971 # commands through without removal of \ escapes. 16972 if test -n "${ZSH_VERSION+set}" ; then 16973 setopt NO_GLOB_SUBST 16974 fi 16975 16976 cfgfile="${ofile}T" 16977 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16978 $RM "$cfgfile" 16979 16980 cat <<_LT_EOF >> "$cfgfile" 16981#! $SHELL 16982 16983# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16984# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16985# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16986# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16987# 16988# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16989# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16990# Written by Gordon Matzigkeit, 1996 16991# 16992# This file is part of GNU Libtool. 16993# 16994# GNU Libtool is free software; you can redistribute it and/or 16995# modify it under the terms of the GNU General Public License as 16996# published by the Free Software Foundation; either version 2 of 16997# the License, or (at your option) any later version. 16998# 16999# As a special exception to the GNU General Public License, 17000# if you distribute this file as part of a program or library that 17001# is built using GNU Libtool, you may include this file under the 17002# same distribution terms that you use for the rest of that program. 17003# 17004# GNU Libtool is distributed in the hope that it will be useful, 17005# but WITHOUT ANY WARRANTY; without even the implied warranty of 17006# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17007# GNU General Public License for more details. 17008# 17009# You should have received a copy of the GNU General Public License 17010# along with GNU Libtool; see the file COPYING. If not, a copy 17011# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17012# obtained by writing to the Free Software Foundation, Inc., 17013# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17014 17015 17016# The names of the tagged configurations supported by this script. 17017available_tags="" 17018 17019# ### BEGIN LIBTOOL CONFIG 17020 17021# Which release of libtool.m4 was used? 17022macro_version=$macro_version 17023macro_revision=$macro_revision 17024 17025# Whether or not to build shared libraries. 17026build_libtool_libs=$enable_shared 17027 17028# Whether or not to build static libraries. 17029build_old_libs=$enable_static 17030 17031# What type of objects to build. 17032pic_mode=$pic_mode 17033 17034# Whether or not to optimize for fast installation. 17035fast_install=$enable_fast_install 17036 17037# Shell to use when invoking shell scripts. 17038SHELL=$lt_SHELL 17039 17040# An echo program that protects backslashes. 17041ECHO=$lt_ECHO 17042 17043# The host system. 17044host_alias=$host_alias 17045host=$host 17046host_os=$host_os 17047 17048# The build system. 17049build_alias=$build_alias 17050build=$build 17051build_os=$build_os 17052 17053# A sed program that does not truncate output. 17054SED=$lt_SED 17055 17056# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17057Xsed="\$SED -e 1s/^X//" 17058 17059# A grep program that handles long lines. 17060GREP=$lt_GREP 17061 17062# An ERE matcher. 17063EGREP=$lt_EGREP 17064 17065# A literal string matcher. 17066FGREP=$lt_FGREP 17067 17068# A BSD- or MS-compatible name lister. 17069NM=$lt_NM 17070 17071# Whether we need soft or hard links. 17072LN_S=$lt_LN_S 17073 17074# What is the maximum length of a command? 17075max_cmd_len=$max_cmd_len 17076 17077# Object file suffix (normally "o"). 17078objext=$ac_objext 17079 17080# Executable file suffix (normally ""). 17081exeext=$exeext 17082 17083# whether the shell understands "unset". 17084lt_unset=$lt_unset 17085 17086# turn spaces into newlines. 17087SP2NL=$lt_lt_SP2NL 17088 17089# turn newlines into spaces. 17090NL2SP=$lt_lt_NL2SP 17091 17092# An object symbol dumper. 17093OBJDUMP=$lt_OBJDUMP 17094 17095# Method to check whether dependent libraries are shared objects. 17096deplibs_check_method=$lt_deplibs_check_method 17097 17098# Command to use when deplibs_check_method == "file_magic". 17099file_magic_cmd=$lt_file_magic_cmd 17100 17101# The archiver. 17102AR=$lt_AR 17103AR_FLAGS=$lt_AR_FLAGS 17104 17105# A symbol stripping program. 17106STRIP=$lt_STRIP 17107 17108# Commands used to install an old-style archive. 17109RANLIB=$lt_RANLIB 17110old_postinstall_cmds=$lt_old_postinstall_cmds 17111old_postuninstall_cmds=$lt_old_postuninstall_cmds 17112 17113# Whether to use a lock for old archive extraction. 17114lock_old_archive_extraction=$lock_old_archive_extraction 17115 17116# A C compiler. 17117LTCC=$lt_CC 17118 17119# LTCC compiler flags. 17120LTCFLAGS=$lt_CFLAGS 17121 17122# Take the output of nm and produce a listing of raw symbols and C names. 17123global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17124 17125# Transform the output of nm in a proper C declaration. 17126global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17127 17128# Transform the output of nm in a C name address pair. 17129global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17130 17131# Transform the output of nm in a C name address pair when lib prefix is needed. 17132global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17133 17134# The name of the directory that contains temporary libtool files. 17135objdir=$objdir 17136 17137# Used to examine libraries when file_magic_cmd begins with "file". 17138MAGIC_CMD=$MAGIC_CMD 17139 17140# Must we lock files when doing compilation? 17141need_locks=$lt_need_locks 17142 17143# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17144DSYMUTIL=$lt_DSYMUTIL 17145 17146# Tool to change global to local symbols on Mac OS X. 17147NMEDIT=$lt_NMEDIT 17148 17149# Tool to manipulate fat objects and archives on Mac OS X. 17150LIPO=$lt_LIPO 17151 17152# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17153OTOOL=$lt_OTOOL 17154 17155# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17156OTOOL64=$lt_OTOOL64 17157 17158# Old archive suffix (normally "a"). 17159libext=$libext 17160 17161# Shared library suffix (normally ".so"). 17162shrext_cmds=$lt_shrext_cmds 17163 17164# The commands to extract the exported symbol list from a shared archive. 17165extract_expsyms_cmds=$lt_extract_expsyms_cmds 17166 17167# Variables whose values should be saved in libtool wrapper scripts and 17168# restored at link time. 17169variables_saved_for_relink=$lt_variables_saved_for_relink 17170 17171# Do we need the "lib" prefix for modules? 17172need_lib_prefix=$need_lib_prefix 17173 17174# Do we need a version for libraries? 17175need_version=$need_version 17176 17177# Library versioning type. 17178version_type=$version_type 17179 17180# Shared library runtime path variable. 17181runpath_var=$runpath_var 17182 17183# Shared library path variable. 17184shlibpath_var=$shlibpath_var 17185 17186# Is shlibpath searched before the hard-coded library search path? 17187shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17188 17189# Format of library name prefix. 17190libname_spec=$lt_libname_spec 17191 17192# List of archive names. First name is the real one, the rest are links. 17193# The last name is the one that the linker finds with -lNAME 17194library_names_spec=$lt_library_names_spec 17195 17196# The coded name of the library, if different from the real name. 17197soname_spec=$lt_soname_spec 17198 17199# Permission mode override for installation of shared libraries. 17200install_override_mode=$lt_install_override_mode 17201 17202# Command to use after installation of a shared archive. 17203postinstall_cmds=$lt_postinstall_cmds 17204 17205# Command to use after uninstallation of a shared archive. 17206postuninstall_cmds=$lt_postuninstall_cmds 17207 17208# Commands used to finish a libtool library installation in a directory. 17209finish_cmds=$lt_finish_cmds 17210 17211# As "finish_cmds", except a single script fragment to be evaled but 17212# not shown. 17213finish_eval=$lt_finish_eval 17214 17215# Whether we should hardcode library paths into libraries. 17216hardcode_into_libs=$hardcode_into_libs 17217 17218# Compile-time system search path for libraries. 17219sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17220 17221# Run-time system search path for libraries. 17222sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17223 17224# Whether dlopen is supported. 17225dlopen_support=$enable_dlopen 17226 17227# Whether dlopen of programs is supported. 17228dlopen_self=$enable_dlopen_self 17229 17230# Whether dlopen of statically linked programs is supported. 17231dlopen_self_static=$enable_dlopen_self_static 17232 17233# Commands to strip libraries. 17234old_striplib=$lt_old_striplib 17235striplib=$lt_striplib 17236 17237 17238# The linker used to build libraries. 17239LD=$lt_LD 17240 17241# How to create reloadable object files. 17242reload_flag=$lt_reload_flag 17243reload_cmds=$lt_reload_cmds 17244 17245# Commands used to build an old-style archive. 17246old_archive_cmds=$lt_old_archive_cmds 17247 17248# A language specific compiler. 17249CC=$lt_compiler 17250 17251# Is the compiler the GNU compiler? 17252with_gcc=$GCC 17253 17254# Compiler flag to turn off builtin functions. 17255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17256 17257# How to pass a linker flag through the compiler. 17258wl=$lt_lt_prog_compiler_wl 17259 17260# Additional compiler flags for building library objects. 17261pic_flag=$lt_lt_prog_compiler_pic 17262 17263# Compiler flag to prevent dynamic linking. 17264link_static_flag=$lt_lt_prog_compiler_static 17265 17266# Does compiler simultaneously support -c and -o options? 17267compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17268 17269# Whether or not to add -lc for building shared libraries. 17270build_libtool_need_lc=$archive_cmds_need_lc 17271 17272# Whether or not to disallow shared libs when runtime libs are static. 17273allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17274 17275# Compiler flag to allow reflexive dlopens. 17276export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17277 17278# Compiler flag to generate shared objects directly from archives. 17279whole_archive_flag_spec=$lt_whole_archive_flag_spec 17280 17281# Whether the compiler copes with passing no objects directly. 17282compiler_needs_object=$lt_compiler_needs_object 17283 17284# Create an old-style archive from a shared archive. 17285old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17286 17287# Create a temporary old-style archive to link instead of a shared archive. 17288old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17289 17290# Commands used to build a shared archive. 17291archive_cmds=$lt_archive_cmds 17292archive_expsym_cmds=$lt_archive_expsym_cmds 17293 17294# Commands used to build a loadable module if different from building 17295# a shared archive. 17296module_cmds=$lt_module_cmds 17297module_expsym_cmds=$lt_module_expsym_cmds 17298 17299# Whether we are building with GNU ld or not. 17300with_gnu_ld=$lt_with_gnu_ld 17301 17302# Flag that allows shared libraries with undefined symbols to be built. 17303allow_undefined_flag=$lt_allow_undefined_flag 17304 17305# Flag that enforces no undefined symbols. 17306no_undefined_flag=$lt_no_undefined_flag 17307 17308# Flag to hardcode \$libdir into a binary during linking. 17309# This must work even if \$libdir does not exist 17310hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17311 17312# If ld is used when linking, flag to hardcode \$libdir into a binary 17313# during linking. This must work even if \$libdir does not exist. 17314hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17315 17316# Whether we need a single "-rpath" flag with a separated argument. 17317hardcode_libdir_separator=$lt_hardcode_libdir_separator 17318 17319# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17320# DIR into the resulting binary. 17321hardcode_direct=$hardcode_direct 17322 17323# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17324# DIR into the resulting binary and the resulting library dependency is 17325# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17326# library is relocated. 17327hardcode_direct_absolute=$hardcode_direct_absolute 17328 17329# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17330# into the resulting binary. 17331hardcode_minus_L=$hardcode_minus_L 17332 17333# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17334# into the resulting binary. 17335hardcode_shlibpath_var=$hardcode_shlibpath_var 17336 17337# Set to "yes" if building a shared library automatically hardcodes DIR 17338# into the library and all subsequent libraries and executables linked 17339# against it. 17340hardcode_automatic=$hardcode_automatic 17341 17342# Set to yes if linker adds runtime paths of dependent libraries 17343# to runtime path list. 17344inherit_rpath=$inherit_rpath 17345 17346# Whether libtool must link a program against all its dependency libraries. 17347link_all_deplibs=$link_all_deplibs 17348 17349# Fix the shell variable \$srcfile for the compiler. 17350fix_srcfile_path=$lt_fix_srcfile_path 17351 17352# Set to "yes" if exported symbols are required. 17353always_export_symbols=$always_export_symbols 17354 17355# The commands to list exported symbols. 17356export_symbols_cmds=$lt_export_symbols_cmds 17357 17358# Symbols that should not be listed in the preloaded symbols. 17359exclude_expsyms=$lt_exclude_expsyms 17360 17361# Symbols that must always be exported. 17362include_expsyms=$lt_include_expsyms 17363 17364# Commands necessary for linking programs (against libraries) with templates. 17365prelink_cmds=$lt_prelink_cmds 17366 17367# Specify filename containing input files. 17368file_list_spec=$lt_file_list_spec 17369 17370# How to hardcode a shared library path into an executable. 17371hardcode_action=$hardcode_action 17372 17373# ### END LIBTOOL CONFIG 17374 17375_LT_EOF 17376 17377 case $host_os in 17378 aix3*) 17379 cat <<\_LT_EOF >> "$cfgfile" 17380# AIX sometimes has problems with the GCC collect2 program. For some 17381# reason, if we set the COLLECT_NAMES environment variable, the problems 17382# vanish in a puff of smoke. 17383if test "X${COLLECT_NAMES+set}" != Xset; then 17384 COLLECT_NAMES= 17385 export COLLECT_NAMES 17386fi 17387_LT_EOF 17388 ;; 17389 esac 17390 17391 17392ltmain="$ac_aux_dir/ltmain.sh" 17393 17394 17395 # We use sed instead of cat because bash on DJGPP gets confused if 17396 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17397 # text mode, it properly converts lines to CR/LF. This bash problem 17398 # is reportedly fixed, but why not run on old versions too? 17399 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17400 || (rm -f "$cfgfile"; exit 1) 17401 17402 case $xsi_shell in 17403 yes) 17404 cat << \_LT_EOF >> "$cfgfile" 17405 17406# func_dirname file append nondir_replacement 17407# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17408# otherwise set result to NONDIR_REPLACEMENT. 17409func_dirname () 17410{ 17411 case ${1} in 17412 */*) func_dirname_result="${1%/*}${2}" ;; 17413 * ) func_dirname_result="${3}" ;; 17414 esac 17415} 17416 17417# func_basename file 17418func_basename () 17419{ 17420 func_basename_result="${1##*/}" 17421} 17422 17423# func_dirname_and_basename file append nondir_replacement 17424# perform func_basename and func_dirname in a single function 17425# call: 17426# dirname: Compute the dirname of FILE. If nonempty, 17427# add APPEND to the result, otherwise set result 17428# to NONDIR_REPLACEMENT. 17429# value returned in "$func_dirname_result" 17430# basename: Compute filename of FILE. 17431# value retuned in "$func_basename_result" 17432# Implementation must be kept synchronized with func_dirname 17433# and func_basename. For efficiency, we do not delegate to 17434# those functions but instead duplicate the functionality here. 17435func_dirname_and_basename () 17436{ 17437 case ${1} in 17438 */*) func_dirname_result="${1%/*}${2}" ;; 17439 * ) func_dirname_result="${3}" ;; 17440 esac 17441 func_basename_result="${1##*/}" 17442} 17443 17444# func_stripname prefix suffix name 17445# strip PREFIX and SUFFIX off of NAME. 17446# PREFIX and SUFFIX must not contain globbing or regex special 17447# characters, hashes, percent signs, but SUFFIX may contain a leading 17448# dot (in which case that matches only a dot). 17449func_stripname () 17450{ 17451 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17452 # positional parameters, so assign one to ordinary parameter first. 17453 func_stripname_result=${3} 17454 func_stripname_result=${func_stripname_result#"${1}"} 17455 func_stripname_result=${func_stripname_result%"${2}"} 17456} 17457 17458# func_opt_split 17459func_opt_split () 17460{ 17461 func_opt_split_opt=${1%%=*} 17462 func_opt_split_arg=${1#*=} 17463} 17464 17465# func_lo2o object 17466func_lo2o () 17467{ 17468 case ${1} in 17469 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17470 *) func_lo2o_result=${1} ;; 17471 esac 17472} 17473 17474# func_xform libobj-or-source 17475func_xform () 17476{ 17477 func_xform_result=${1%.*}.lo 17478} 17479 17480# func_arith arithmetic-term... 17481func_arith () 17482{ 17483 func_arith_result=$(( $* )) 17484} 17485 17486# func_len string 17487# STRING may not start with a hyphen. 17488func_len () 17489{ 17490 func_len_result=${#1} 17491} 17492 17493_LT_EOF 17494 ;; 17495 *) # Bourne compatible functions. 17496 cat << \_LT_EOF >> "$cfgfile" 17497 17498# func_dirname file append nondir_replacement 17499# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17500# otherwise set result to NONDIR_REPLACEMENT. 17501func_dirname () 17502{ 17503 # Extract subdirectory from the argument. 17504 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17505 if test "X$func_dirname_result" = "X${1}"; then 17506 func_dirname_result="${3}" 17507 else 17508 func_dirname_result="$func_dirname_result${2}" 17509 fi 17510} 17511 17512# func_basename file 17513func_basename () 17514{ 17515 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17516} 17517 17518 17519# func_stripname prefix suffix name 17520# strip PREFIX and SUFFIX off of NAME. 17521# PREFIX and SUFFIX must not contain globbing or regex special 17522# characters, hashes, percent signs, but SUFFIX may contain a leading 17523# dot (in which case that matches only a dot). 17524# func_strip_suffix prefix name 17525func_stripname () 17526{ 17527 case ${2} in 17528 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17529 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17530 esac 17531} 17532 17533# sed scripts: 17534my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17535my_sed_long_arg='1s/^-[^=]*=//' 17536 17537# func_opt_split 17538func_opt_split () 17539{ 17540 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17541 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17542} 17543 17544# func_lo2o object 17545func_lo2o () 17546{ 17547 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17548} 17549 17550# func_xform libobj-or-source 17551func_xform () 17552{ 17553 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17554} 17555 17556# func_arith arithmetic-term... 17557func_arith () 17558{ 17559 func_arith_result=`expr "$@"` 17560} 17561 17562# func_len string 17563# STRING may not start with a hyphen. 17564func_len () 17565{ 17566 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17567} 17568 17569_LT_EOF 17570esac 17571 17572case $lt_shell_append in 17573 yes) 17574 cat << \_LT_EOF >> "$cfgfile" 17575 17576# func_append var value 17577# Append VALUE to the end of shell variable VAR. 17578func_append () 17579{ 17580 eval "$1+=\$2" 17581} 17582_LT_EOF 17583 ;; 17584 *) 17585 cat << \_LT_EOF >> "$cfgfile" 17586 17587# func_append var value 17588# Append VALUE to the end of shell variable VAR. 17589func_append () 17590{ 17591 eval "$1=\$$1\$2" 17592} 17593 17594_LT_EOF 17595 ;; 17596 esac 17597 17598 17599 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17600 || (rm -f "$cfgfile"; exit 1) 17601 17602 mv -f "$cfgfile" "$ofile" || 17603 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17604 chmod +x "$ofile" 17605 17606 ;; 17607 "gstdint.h":C) 17608if test "$GCC" = yes; then 17609 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 17610else 17611 echo "/* generated for $CC */" > tmp-stdint.h 17612fi 17613 17614sed 's/^ *//' >> tmp-stdint.h <<EOF 17615 17616 #ifndef GCC_GENERATED_STDINT_H 17617 #define GCC_GENERATED_STDINT_H 1 17618 17619 #include <sys/types.h> 17620EOF 17621 17622if test "$acx_cv_header_stdint" != stdint.h; then 17623 echo "#include <stddef.h>" >> tmp-stdint.h 17624fi 17625if test "$acx_cv_header_stdint" != stddef.h; then 17626 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 17627fi 17628 17629sed 's/^ *//' >> tmp-stdint.h <<EOF 17630 /* glibc uses these symbols as guards to prevent redefinitions. */ 17631 #ifdef __int8_t_defined 17632 #define _INT8_T 17633 #define _INT16_T 17634 #define _INT32_T 17635 #endif 17636 #ifdef __uint32_t_defined 17637 #define _UINT32_T 17638 #endif 17639 17640EOF 17641 17642# ----------------- done header, emit basic int types ------------- 17643if test "$acx_cv_header_stdint" = stddef.h; then 17644 sed 's/^ *//' >> tmp-stdint.h <<EOF 17645 17646 #ifndef _UINT8_T 17647 #define _UINT8_T 17648 #ifndef __uint8_t_defined 17649 #define __uint8_t_defined 17650 #ifndef uint8_t 17651 typedef unsigned $acx_cv_type_int8_t uint8_t; 17652 #endif 17653 #endif 17654 #endif 17655 17656 #ifndef _UINT16_T 17657 #define _UINT16_T 17658 #ifndef __uint16_t_defined 17659 #define __uint16_t_defined 17660 #ifndef uint16_t 17661 typedef unsigned $acx_cv_type_int16_t uint16_t; 17662 #endif 17663 #endif 17664 #endif 17665 17666 #ifndef _UINT32_T 17667 #define _UINT32_T 17668 #ifndef __uint32_t_defined 17669 #define __uint32_t_defined 17670 #ifndef uint32_t 17671 typedef unsigned $acx_cv_type_int32_t uint32_t; 17672 #endif 17673 #endif 17674 #endif 17675 17676 #ifndef _INT8_T 17677 #define _INT8_T 17678 #ifndef __int8_t_defined 17679 #define __int8_t_defined 17680 #ifndef int8_t 17681 typedef $acx_cv_type_int8_t int8_t; 17682 #endif 17683 #endif 17684 #endif 17685 17686 #ifndef _INT16_T 17687 #define _INT16_T 17688 #ifndef __int16_t_defined 17689 #define __int16_t_defined 17690 #ifndef int16_t 17691 typedef $acx_cv_type_int16_t int16_t; 17692 #endif 17693 #endif 17694 #endif 17695 17696 #ifndef _INT32_T 17697 #define _INT32_T 17698 #ifndef __int32_t_defined 17699 #define __int32_t_defined 17700 #ifndef int32_t 17701 typedef $acx_cv_type_int32_t int32_t; 17702 #endif 17703 #endif 17704 #endif 17705EOF 17706elif test "$ac_cv_type_u_int32_t" = yes; then 17707 sed 's/^ *//' >> tmp-stdint.h <<EOF 17708 17709 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 17710 #ifndef _INT8_T 17711 #define _INT8_T 17712 #endif 17713 #ifndef _INT16_T 17714 #define _INT16_T 17715 #endif 17716 #ifndef _INT32_T 17717 #define _INT32_T 17718 #endif 17719 17720 #ifndef _UINT8_T 17721 #define _UINT8_T 17722 #ifndef __uint8_t_defined 17723 #define __uint8_t_defined 17724 #ifndef uint8_t 17725 typedef u_int8_t uint8_t; 17726 #endif 17727 #endif 17728 #endif 17729 17730 #ifndef _UINT16_T 17731 #define _UINT16_T 17732 #ifndef __uint16_t_defined 17733 #define __uint16_t_defined 17734 #ifndef uint16_t 17735 typedef u_int16_t uint16_t; 17736 #endif 17737 #endif 17738 #endif 17739 17740 #ifndef _UINT32_T 17741 #define _UINT32_T 17742 #ifndef __uint32_t_defined 17743 #define __uint32_t_defined 17744 #ifndef uint32_t 17745 typedef u_int32_t uint32_t; 17746 #endif 17747 #endif 17748 #endif 17749EOF 17750else 17751 sed 's/^ *//' >> tmp-stdint.h <<EOF 17752 17753 /* Some systems have guard macros to prevent redefinitions, define them. */ 17754 #ifndef _INT8_T 17755 #define _INT8_T 17756 #endif 17757 #ifndef _INT16_T 17758 #define _INT16_T 17759 #endif 17760 #ifndef _INT32_T 17761 #define _INT32_T 17762 #endif 17763 #ifndef _UINT8_T 17764 #define _UINT8_T 17765 #endif 17766 #ifndef _UINT16_T 17767 #define _UINT16_T 17768 #endif 17769 #ifndef _UINT32_T 17770 #define _UINT32_T 17771 #endif 17772EOF 17773fi 17774 17775# ------------- done basic int types, emit int64_t types ------------ 17776if test "$ac_cv_type_uint64_t" = yes; then 17777 sed 's/^ *//' >> tmp-stdint.h <<EOF 17778 17779 /* system headers have good uint64_t and int64_t */ 17780 #ifndef _INT64_T 17781 #define _INT64_T 17782 #endif 17783 #ifndef _UINT64_T 17784 #define _UINT64_T 17785 #endif 17786EOF 17787elif test "$ac_cv_type_u_int64_t" = yes; then 17788 sed 's/^ *//' >> tmp-stdint.h <<EOF 17789 17790 /* system headers have an u_int64_t (and int64_t) */ 17791 #ifndef _INT64_T 17792 #define _INT64_T 17793 #endif 17794 #ifndef _UINT64_T 17795 #define _UINT64_T 17796 #ifndef __uint64_t_defined 17797 #define __uint64_t_defined 17798 #ifndef uint64_t 17799 typedef u_int64_t uint64_t; 17800 #endif 17801 #endif 17802 #endif 17803EOF 17804elif test -n "$acx_cv_type_int64_t"; then 17805 sed 's/^ *//' >> tmp-stdint.h <<EOF 17806 17807 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 17808 #ifndef _INT64_T 17809 #define _INT64_T 17810 #ifndef int64_t 17811 typedef $acx_cv_type_int64_t int64_t; 17812 #endif 17813 #endif 17814 #ifndef _UINT64_T 17815 #define _UINT64_T 17816 #ifndef __uint64_t_defined 17817 #define __uint64_t_defined 17818 #ifndef uint64_t 17819 typedef unsigned $acx_cv_type_int64_t uint64_t; 17820 #endif 17821 #endif 17822 #endif 17823EOF 17824else 17825 sed 's/^ *//' >> tmp-stdint.h <<EOF 17826 17827 /* some common heuristics for int64_t, using compiler-specific tests */ 17828 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 17829 #ifndef _INT64_T 17830 #define _INT64_T 17831 #ifndef __int64_t_defined 17832 #ifndef int64_t 17833 typedef long long int64_t; 17834 #endif 17835 #endif 17836 #endif 17837 #ifndef _UINT64_T 17838 #define _UINT64_T 17839 #ifndef uint64_t 17840 typedef unsigned long long uint64_t; 17841 #endif 17842 #endif 17843 17844 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 17845 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 17846 does not implement __extension__. But that compiler doesn't define 17847 __GNUC_MINOR__. */ 17848 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 17849 # define __extension__ 17850 # endif 17851 17852 # ifndef _INT64_T 17853 # define _INT64_T 17854 # ifndef int64_t 17855 __extension__ typedef long long int64_t; 17856 # endif 17857 # endif 17858 # ifndef _UINT64_T 17859 # define _UINT64_T 17860 # ifndef uint64_t 17861 __extension__ typedef unsigned long long uint64_t; 17862 # endif 17863 # endif 17864 17865 #elif !defined __STRICT_ANSI__ 17866 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 17867 17868 # ifndef _INT64_T 17869 # define _INT64_T 17870 # ifndef int64_t 17871 typedef __int64 int64_t; 17872 # endif 17873 # endif 17874 # ifndef _UINT64_T 17875 # define _UINT64_T 17876 # ifndef uint64_t 17877 typedef unsigned __int64 uint64_t; 17878 # endif 17879 # endif 17880 # endif /* compiler */ 17881 17882 #endif /* ANSI version */ 17883EOF 17884fi 17885 17886# ------------- done int64_t types, emit intptr types ------------ 17887if test "$ac_cv_type_uintptr_t" != yes; then 17888 sed 's/^ *//' >> tmp-stdint.h <<EOF 17889 17890 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 17891 #ifndef __uintptr_t_defined 17892 #ifndef uintptr_t 17893 typedef u$acx_cv_type_intptr_t uintptr_t; 17894 #endif 17895 #endif 17896 #ifndef __intptr_t_defined 17897 #ifndef intptr_t 17898 typedef $acx_cv_type_intptr_t intptr_t; 17899 #endif 17900 #endif 17901EOF 17902fi 17903 17904# ------------- done intptr types, emit int_least types ------------ 17905if test "$ac_cv_type_int_least32_t" != yes; then 17906 sed 's/^ *//' >> tmp-stdint.h <<EOF 17907 17908 /* Define int_least types */ 17909 typedef int8_t int_least8_t; 17910 typedef int16_t int_least16_t; 17911 typedef int32_t int_least32_t; 17912 #ifdef _INT64_T 17913 typedef int64_t int_least64_t; 17914 #endif 17915 17916 typedef uint8_t uint_least8_t; 17917 typedef uint16_t uint_least16_t; 17918 typedef uint32_t uint_least32_t; 17919 #ifdef _UINT64_T 17920 typedef uint64_t uint_least64_t; 17921 #endif 17922EOF 17923fi 17924 17925# ------------- done intptr types, emit int_fast types ------------ 17926if test "$ac_cv_type_int_fast32_t" != yes; then 17927 sed 's/^ *//' >> tmp-stdint.h <<EOF 17928 17929 /* Define int_fast types. short is often slow */ 17930 typedef int8_t int_fast8_t; 17931 typedef int int_fast16_t; 17932 typedef int32_t int_fast32_t; 17933 #ifdef _INT64_T 17934 typedef int64_t int_fast64_t; 17935 #endif 17936 17937 typedef uint8_t uint_fast8_t; 17938 typedef unsigned int uint_fast16_t; 17939 typedef uint32_t uint_fast32_t; 17940 #ifdef _UINT64_T 17941 typedef uint64_t uint_fast64_t; 17942 #endif 17943EOF 17944fi 17945 17946if test "$ac_cv_type_uintmax_t" != yes; then 17947 sed 's/^ *//' >> tmp-stdint.h <<EOF 17948 17949 /* Define intmax based on what we found */ 17950 #ifndef intmax_t 17951 #ifdef _INT64_T 17952 typedef int64_t intmax_t; 17953 #else 17954 typedef long intmax_t; 17955 #endif 17956 #endif 17957 #ifndef uintmax_t 17958 #ifdef _UINT64_T 17959 typedef uint64_t uintmax_t; 17960 #else 17961 typedef unsigned long uintmax_t; 17962 #endif 17963 #endif 17964EOF 17965fi 17966 17967sed 's/^ *//' >> tmp-stdint.h <<EOF 17968 17969 #endif /* GCC_GENERATED_STDINT_H */ 17970EOF 17971 17972if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 17973 rm -f tmp-stdint.h 17974else 17975 mv -f tmp-stdint.h gstdint.h 17976fi 17977 17978 ;; 17979 17980 esac 17981done # for ac_tag 17982 17983 17984as_fn_exit 0 17985_ACEOF 17986ac_clean_files=$ac_clean_files_save 17987 17988test $ac_write_fail = 0 || 17989 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 17990 17991 17992# configure is writing to config.log, and then calls config.status. 17993# config.status does its own redirection, appending to config.log. 17994# Unfortunately, on DOS this fails, as config.log is still kept open 17995# by configure, so config.status won't be able to write to it; its 17996# output is simply discarded. So we exec the FD to /dev/null, 17997# effectively closing config.log, so it can be properly (re)opened and 17998# appended to by config.status. When coming back to configure, we 17999# need to make the FD available again. 18000if test "$no_create" != yes; then 18001 ac_cs_success=: 18002 ac_config_status_args= 18003 test "$silent" = yes && 18004 ac_config_status_args="$ac_config_status_args --quiet" 18005 exec 5>/dev/null 18006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18007 exec 5>>config.log 18008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18009 # would make configure fail if this is the last instruction. 18010 $ac_cs_success || as_fn_exit $? 18011fi 18012if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18014$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18015fi 18016 18017