1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for random128 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: courier-users@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='random128' 592PACKAGE_TARNAME='random128' 593PACKAGE_VERSION='0.10' 594PACKAGE_STRING='random128 0.10' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="random128.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639LT_SYS_LIBRARY_PATH 640OTOOL64 641OTOOL 642LIPO 643NMEDIT 644DSYMUTIL 645MANIFEST_TOOL 646RANLIB 647ac_ct_AR 648AR 649DLLTOOL 650OBJDUMP 651NM 652ac_ct_DUMPBIN 653DUMPBIN 654LD 655FGREP 656SED 657host_os 658host_vendor 659host_cpu 660host 661build_os 662build_vendor 663build_cpu 664build 665LIBTOOL 666W 667PS 668LN_S 669EGREP 670GREP 671CPP 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__include 680DEPDIR 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688AM_BACKSLASH 689AM_DEFAULT_VERBOSITY 690AM_DEFAULT_V 691AM_V 692am__untar 693am__tar 694AMTAR 695am__leading_dot 696SET_MAKE 697AWK 698mkdir_p 699MKDIR_P 700INSTALL_STRIP_PROGRAM 701STRIP 702install_sh 703MAKEINFO 704AUTOHEADER 705AUTOMAKE 706AUTOCONF 707ACLOCAL 708VERSION 709PACKAGE 710CYGPATH_W 711am__isrc 712INSTALL_DATA 713INSTALL_SCRIPT 714INSTALL_PROGRAM 715target_alias 716host_alias 717build_alias 718LIBS 719ECHO_T 720ECHO_N 721ECHO_C 722DEFS 723mandir 724localedir 725libdir 726psdir 727pdfdir 728dvidir 729htmldir 730infodir 731docdir 732oldincludedir 733includedir 734localstatedir 735sharedstatedir 736sysconfdir 737datadir 738datarootdir 739libexecdir 740sbindir 741bindir 742program_transform_name 743prefix 744exec_prefix 745PACKAGE_URL 746PACKAGE_BUGREPORT 747PACKAGE_STRING 748PACKAGE_VERSION 749PACKAGE_TARNAME 750PACKAGE_NAME 751PATH_SEPARATOR 752SHELL 753am__quote' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_silent_rules 758enable_dependency_tracking 759enable_shared 760enable_static 761with_pic 762enable_fast_install 763with_aix_soname 764with_gnu_ld 765with_sysroot 766enable_libtool_lock 767enable_largefile 768with_random 769' 770 ac_precious_vars='build_alias 771host_alias 772target_alias 773CC 774CFLAGS 775LDFLAGS 776LIBS 777CPPFLAGS 778CPP 779LT_SYS_LIBRARY_PATH' 780 781 782# Initialize some variables set by options. 783ac_init_help= 784ac_init_version=false 785ac_unrecognized_opts= 786ac_unrecognized_sep= 787# The variables have the same names as the options, with 788# dashes changed to underlines. 789cache_file=/dev/null 790exec_prefix=NONE 791no_create= 792no_recursion= 793prefix=NONE 794program_prefix=NONE 795program_suffix=NONE 796program_transform_name=s,x,x, 797silent= 798site= 799srcdir= 800verbose= 801x_includes=NONE 802x_libraries=NONE 803 804# Installation directory options. 805# These are left unexpanded so users can "make install exec_prefix=/foo" 806# and all the variables that are supposed to be based on exec_prefix 807# by default will actually change. 808# Use braces instead of parens because sh, perl, etc. also accept them. 809# (The list follows the same order as the GNU Coding Standards.) 810bindir='${exec_prefix}/bin' 811sbindir='${exec_prefix}/sbin' 812libexecdir='${exec_prefix}/libexec' 813datarootdir='${prefix}/share' 814datadir='${datarootdir}' 815sysconfdir='${prefix}/etc' 816sharedstatedir='${prefix}/com' 817localstatedir='${prefix}/var' 818includedir='${prefix}/include' 819oldincludedir='/usr/include' 820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 821infodir='${datarootdir}/info' 822htmldir='${docdir}' 823dvidir='${docdir}' 824pdfdir='${docdir}' 825psdir='${docdir}' 826libdir='${exec_prefix}/lib' 827localedir='${datarootdir}/locale' 828mandir='${datarootdir}/man' 829 830ac_prev= 831ac_dashdash= 832for ac_option 833do 834 # If the previous option needs an argument, assign it. 835 if test -n "$ac_prev"; then 836 eval $ac_prev=\$ac_option 837 ac_prev= 838 continue 839 fi 840 841 case $ac_option in 842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 843 *=) ac_optarg= ;; 844 *) ac_optarg=yes ;; 845 esac 846 847 # Accept the important Cygnus configure options, so we can diagnose typos. 848 849 case $ac_dashdash$ac_option in 850 --) 851 ac_dashdash=yes ;; 852 853 -bindir | --bindir | --bindi | --bind | --bin | --bi) 854 ac_prev=bindir ;; 855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 856 bindir=$ac_optarg ;; 857 858 -build | --build | --buil | --bui | --bu) 859 ac_prev=build_alias ;; 860 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 861 build_alias=$ac_optarg ;; 862 863 -cache-file | --cache-file | --cache-fil | --cache-fi \ 864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 865 ac_prev=cache_file ;; 866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 868 cache_file=$ac_optarg ;; 869 870 --config-cache | -C) 871 cache_file=config.cache ;; 872 873 -datadir | --datadir | --datadi | --datad) 874 ac_prev=datadir ;; 875 -datadir=* | --datadir=* | --datadi=* | --datad=*) 876 datadir=$ac_optarg ;; 877 878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 879 | --dataroo | --dataro | --datar) 880 ac_prev=datarootdir ;; 881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 883 datarootdir=$ac_optarg ;; 884 885 -disable-* | --disable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 as_fn_error $? "invalid feature name: $ac_useropt" 890 ac_useropt_orig=$ac_useropt 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 892 case $ac_user_opts in 893 *" 894"enable_$ac_useropt" 895"*) ;; 896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 897 ac_unrecognized_sep=', ';; 898 esac 899 eval enable_$ac_useropt=no ;; 900 901 -docdir | --docdir | --docdi | --doc | --do) 902 ac_prev=docdir ;; 903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 904 docdir=$ac_optarg ;; 905 906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 907 ac_prev=dvidir ;; 908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 909 dvidir=$ac_optarg ;; 910 911 -enable-* | --enable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=\$ac_optarg ;; 926 927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 929 | --exec | --exe | --ex) 930 ac_prev=exec_prefix ;; 931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 933 | --exec=* | --exe=* | --ex=*) 934 exec_prefix=$ac_optarg ;; 935 936 -gas | --gas | --ga | --g) 937 # Obsolete; use --with-gas. 938 with_gas=yes ;; 939 940 -help | --help | --hel | --he | -h) 941 ac_init_help=long ;; 942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 943 ac_init_help=recursive ;; 944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 945 ac_init_help=short ;; 946 947 -host | --host | --hos | --ho) 948 ac_prev=host_alias ;; 949 -host=* | --host=* | --hos=* | --ho=*) 950 host_alias=$ac_optarg ;; 951 952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 953 ac_prev=htmldir ;; 954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 955 | --ht=*) 956 htmldir=$ac_optarg ;; 957 958 -includedir | --includedir | --includedi | --included | --include \ 959 | --includ | --inclu | --incl | --inc) 960 ac_prev=includedir ;; 961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 962 | --includ=* | --inclu=* | --incl=* | --inc=*) 963 includedir=$ac_optarg ;; 964 965 -infodir | --infodir | --infodi | --infod | --info | --inf) 966 ac_prev=infodir ;; 967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 968 infodir=$ac_optarg ;; 969 970 -libdir | --libdir | --libdi | --libd) 971 ac_prev=libdir ;; 972 -libdir=* | --libdir=* | --libdi=* | --libd=*) 973 libdir=$ac_optarg ;; 974 975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 976 | --libexe | --libex | --libe) 977 ac_prev=libexecdir ;; 978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 979 | --libexe=* | --libex=* | --libe=*) 980 libexecdir=$ac_optarg ;; 981 982 -localedir | --localedir | --localedi | --localed | --locale) 983 ac_prev=localedir ;; 984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 985 localedir=$ac_optarg ;; 986 987 -localstatedir | --localstatedir | --localstatedi | --localstated \ 988 | --localstate | --localstat | --localsta | --localst | --locals) 989 ac_prev=localstatedir ;; 990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 992 localstatedir=$ac_optarg ;; 993 994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 995 ac_prev=mandir ;; 996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 997 mandir=$ac_optarg ;; 998 999 -nfp | --nfp | --nf) 1000 # Obsolete; use --without-fp. 1001 with_fp=no ;; 1002 1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1004 | --no-cr | --no-c | -n) 1005 no_create=yes ;; 1006 1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1009 no_recursion=yes ;; 1010 1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1013 | --oldin | --oldi | --old | --ol | --o) 1014 ac_prev=oldincludedir ;; 1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1018 oldincludedir=$ac_optarg ;; 1019 1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1021 ac_prev=prefix ;; 1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1023 prefix=$ac_optarg ;; 1024 1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1026 | --program-pre | --program-pr | --program-p) 1027 ac_prev=program_prefix ;; 1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1030 program_prefix=$ac_optarg ;; 1031 1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1033 | --program-suf | --program-su | --program-s) 1034 ac_prev=program_suffix ;; 1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1037 program_suffix=$ac_optarg ;; 1038 1039 -program-transform-name | --program-transform-name \ 1040 | --program-transform-nam | --program-transform-na \ 1041 | --program-transform-n | --program-transform- \ 1042 | --program-transform | --program-transfor \ 1043 | --program-transfo | --program-transf \ 1044 | --program-trans | --program-tran \ 1045 | --progr-tra | --program-tr | --program-t) 1046 ac_prev=program_transform_name ;; 1047 -program-transform-name=* | --program-transform-name=* \ 1048 | --program-transform-nam=* | --program-transform-na=* \ 1049 | --program-transform-n=* | --program-transform-=* \ 1050 | --program-transform=* | --program-transfor=* \ 1051 | --program-transfo=* | --program-transf=* \ 1052 | --program-trans=* | --program-tran=* \ 1053 | --progr-tra=* | --program-tr=* | --program-t=*) 1054 program_transform_name=$ac_optarg ;; 1055 1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1057 ac_prev=pdfdir ;; 1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1059 pdfdir=$ac_optarg ;; 1060 1061 -psdir | --psdir | --psdi | --psd | --ps) 1062 ac_prev=psdir ;; 1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1064 psdir=$ac_optarg ;; 1065 1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1067 | -silent | --silent | --silen | --sile | --sil) 1068 silent=yes ;; 1069 1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1071 ac_prev=sbindir ;; 1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1073 | --sbi=* | --sb=*) 1074 sbindir=$ac_optarg ;; 1075 1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1078 | --sharedst | --shareds | --shared | --share | --shar \ 1079 | --sha | --sh) 1080 ac_prev=sharedstatedir ;; 1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1084 | --sha=* | --sh=*) 1085 sharedstatedir=$ac_optarg ;; 1086 1087 -site | --site | --sit) 1088 ac_prev=site ;; 1089 -site=* | --site=* | --sit=*) 1090 site=$ac_optarg ;; 1091 1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1093 ac_prev=srcdir ;; 1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1095 srcdir=$ac_optarg ;; 1096 1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1098 | --syscon | --sysco | --sysc | --sys | --sy) 1099 ac_prev=sysconfdir ;; 1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1102 sysconfdir=$ac_optarg ;; 1103 1104 -target | --target | --targe | --targ | --tar | --ta | --t) 1105 ac_prev=target_alias ;; 1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1107 target_alias=$ac_optarg ;; 1108 1109 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1110 verbose=yes ;; 1111 1112 -version | --version | --versio | --versi | --vers | -V) 1113 ac_init_version=: ;; 1114 1115 -with-* | --with-*) 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119 as_fn_error $? "invalid package name: $ac_useropt" 1120 ac_useropt_orig=$ac_useropt 1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1122 case $ac_user_opts in 1123 *" 1124"with_$ac_useropt" 1125"*) ;; 1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1127 ac_unrecognized_sep=', ';; 1128 esac 1129 eval with_$ac_useropt=\$ac_optarg ;; 1130 1131 -without-* | --without-*) 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1133 # Reject names that are not valid shell variable names. 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1135 as_fn_error $? "invalid package name: $ac_useropt" 1136 ac_useropt_orig=$ac_useropt 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1138 case $ac_user_opts in 1139 *" 1140"with_$ac_useropt" 1141"*) ;; 1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1143 ac_unrecognized_sep=', ';; 1144 esac 1145 eval with_$ac_useropt=no ;; 1146 1147 --x) 1148 # Obsolete; use --with-x. 1149 with_x=yes ;; 1150 1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1152 | --x-incl | --x-inc | --x-in | --x-i) 1153 ac_prev=x_includes ;; 1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1156 x_includes=$ac_optarg ;; 1157 1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1160 ac_prev=x_libraries ;; 1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1163 x_libraries=$ac_optarg ;; 1164 1165 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1166Try \`$0 --help' for more information" 1167 ;; 1168 1169 *=*) 1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1171 # Reject names that are not valid shell variable names. 1172 case $ac_envvar in #( 1173 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1175 esac 1176 eval $ac_envvar=\$ac_optarg 1177 export $ac_envvar ;; 1178 1179 *) 1180 # FIXME: should be removed in autoconf 3.0. 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1185 ;; 1186 1187 esac 1188done 1189 1190if test -n "$ac_prev"; then 1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1192 as_fn_error $? "missing argument to $ac_option" 1193fi 1194 1195if test -n "$ac_unrecognized_opts"; then 1196 case $enable_option_checking in 1197 no) ;; 1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1200 esac 1201fi 1202 1203# Check all directory arguments for consistency. 1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1205 datadir sysconfdir sharedstatedir localstatedir includedir \ 1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1207 libdir localedir mandir 1208do 1209 eval ac_val=\$$ac_var 1210 # Remove trailing slashes. 1211 case $ac_val in 1212 */ ) 1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1214 eval $ac_var=\$ac_val;; 1215 esac 1216 # Be sure to have absolute directory names. 1217 case $ac_val in 1218 [\\/$]* | ?:[\\/]* ) continue;; 1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1220 esac 1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1222done 1223 1224# There might be people who depend on the old broken behavior: `$host' 1225# used to hold the argument of --host etc. 1226# FIXME: To remove some day. 1227build=$build_alias 1228host=$host_alias 1229target=$target_alias 1230 1231# FIXME: To remove some day. 1232if test "x$host_alias" != x; then 1233 if test "x$build_alias" = x; then 1234 cross_compiling=maybe 1235 elif test "x$build_alias" != "x$host_alias"; then 1236 cross_compiling=yes 1237 fi 1238fi 1239 1240ac_tool_prefix= 1241test -n "$host_alias" && ac_tool_prefix=$host_alias- 1242 1243test "$silent" = yes && exec 6>/dev/null 1244 1245 1246ac_pwd=`pwd` && test -n "$ac_pwd" && 1247ac_ls_di=`ls -di .` && 1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1249 as_fn_error $? "working directory cannot be determined" 1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1251 as_fn_error $? "pwd does not report name of working directory" 1252 1253 1254# Find the source files, if location was not specified. 1255if test -z "$srcdir"; then 1256 ac_srcdir_defaulted=yes 1257 # Try the directory containing this script, then the parent directory. 1258 ac_confdir=`$as_dirname -- "$as_myself" || 1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1260 X"$as_myself" : 'X\(//\)[^/]' \| \ 1261 X"$as_myself" : 'X\(//\)$' \| \ 1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1263$as_echo X"$as_myself" | 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)[^/].*/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\).*/{ 1277 s//\1/ 1278 q 1279 } 1280 s/.*/./; q'` 1281 srcdir=$ac_confdir 1282 if test ! -r "$srcdir/$ac_unique_file"; then 1283 srcdir=.. 1284 fi 1285else 1286 ac_srcdir_defaulted=no 1287fi 1288if test ! -r "$srcdir/$ac_unique_file"; then 1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1291fi 1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1293ac_abs_confdir=`( 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1295 pwd)` 1296# When building in place, set srcdir=. 1297if test "$ac_abs_confdir" = "$ac_pwd"; then 1298 srcdir=. 1299fi 1300# Remove unnecessary trailing slashes from srcdir. 1301# Double slashes in file names in object file debugging info 1302# mess up M-x gdb in Emacs. 1303case $srcdir in 1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1305esac 1306for ac_var in $ac_precious_vars; do 1307 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_env_${ac_var}_value=\$${ac_var} 1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1311done 1312 1313# 1314# Report the --help message. 1315# 1316if test "$ac_init_help" = "long"; then 1317 # Omit some internal or obsolete options to make the list less imposing. 1318 # This message is too long to be a string in the A/UX 3.1 sh. 1319 cat <<_ACEOF 1320\`configure' configures random128 0.10 to adapt to many kinds of systems. 1321 1322Usage: $0 [OPTION]... [VAR=VALUE]... 1323 1324To assign environment variables (e.g., CC, CFLAGS...), specify them as 1325VAR=VALUE. See below for descriptions of some of the useful variables. 1326 1327Defaults for the options are specified in brackets. 1328 1329Configuration: 1330 -h, --help display this help and exit 1331 --help=short display options specific to this package 1332 --help=recursive display the short help of all the included packages 1333 -V, --version display version information and exit 1334 -q, --quiet, --silent do not print \`checking ...' messages 1335 --cache-file=FILE cache test results in FILE [disabled] 1336 -C, --config-cache alias for \`--cache-file=config.cache' 1337 -n, --no-create do not create output files 1338 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1339 1340Installation directories: 1341 --prefix=PREFIX install architecture-independent files in PREFIX 1342 [$ac_default_prefix] 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1344 [PREFIX] 1345 1346By default, \`make install' will install all the files in 1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1348an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1349for instance \`--prefix=\$HOME'. 1350 1351For better control, use the options below. 1352 1353Fine tuning of the installation directories: 1354 --bindir=DIR user executables [EPREFIX/bin] 1355 --sbindir=DIR system admin executables [EPREFIX/sbin] 1356 --libexecdir=DIR program executables [EPREFIX/libexec] 1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1360 --libdir=DIR object code libraries [EPREFIX/lib] 1361 --includedir=DIR C header files [PREFIX/include] 1362 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1365 --infodir=DIR info documentation [DATAROOTDIR/info] 1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1367 --mandir=DIR man documentation [DATAROOTDIR/man] 1368 --docdir=DIR documentation root [DATAROOTDIR/doc/random128] 1369 --htmldir=DIR html documentation [DOCDIR] 1370 --dvidir=DIR dvi documentation [DOCDIR] 1371 --pdfdir=DIR pdf documentation [DOCDIR] 1372 --psdir=DIR ps documentation [DOCDIR] 1373_ACEOF 1374 1375 cat <<\_ACEOF 1376 1377Program names: 1378 --program-prefix=PREFIX prepend PREFIX to installed program names 1379 --program-suffix=SUFFIX append SUFFIX to installed program names 1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1381 1382System types: 1383 --build=BUILD configure for building on BUILD [guessed] 1384 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1385_ACEOF 1386fi 1387 1388if test -n "$ac_init_help"; then 1389 case $ac_init_help in 1390 short | recursive ) echo "Configuration of random128 0.10:";; 1391 esac 1392 cat <<\_ACEOF 1393 1394Optional Features: 1395 --disable-option-checking ignore unrecognized --enable/--with options 1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1398 --enable-silent-rules less verbose build output (undo: "make V=1") 1399 --disable-silent-rules verbose build output (undo: "make V=0") 1400 --enable-dependency-tracking 1401 do not reject slow dependency extractors 1402 --disable-dependency-tracking 1403 speeds up one-time build 1404 --enable-shared[=PKGS] build shared libraries [default=yes] 1405 --enable-static[=PKGS] build static libraries [default=yes] 1406 --enable-fast-install[=PKGS] 1407 optimize for fast installation [default=yes] 1408 --disable-libtool-lock avoid locking (might break parallel builds) 1409 --disable-largefile omit support for large files 1410 1411Optional Packages: 1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1415 both] 1416 --with-aix-soname=aix|svr4|both 1417 shared library versioning (aka "SONAME") variant to 1418 provide on AIX, [default=aix]. 1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1420 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1421 compiler's sysroot if not specified). 1422 --with-random=/dev/urandom - location of the system random file generator 1423--without-random - there is no system random file generator 1424 1425Some influential environment variables: 1426 CC C compiler command 1427 CFLAGS C compiler flags 1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1429 nonstandard directory <lib dir> 1430 LIBS libraries to pass to the linker, e.g. -l<library> 1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1432 you have headers in a nonstandard directory <include dir> 1433 CPP C preprocessor 1434 LT_SYS_LIBRARY_PATH 1435 User-defined run-time library search path. 1436 1437Use these variables to override the choices made by `configure' or to help 1438it to find libraries and programs with nonstandard names/locations. 1439 1440Report bugs to <courier-users@lists.sourceforge.net>. 1441_ACEOF 1442ac_status=$? 1443fi 1444 1445if test "$ac_init_help" = "recursive"; then 1446 # If there are subdirs, report their specific --help. 1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1448 test -d "$ac_dir" || 1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1450 continue 1451 ac_builddir=. 1452 1453case "$ac_dir" in 1454.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1455*) 1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1457 # A ".." for each directory in $ac_dir_suffix. 1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1459 case $ac_top_builddir_sub in 1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1462 esac ;; 1463esac 1464ac_abs_top_builddir=$ac_pwd 1465ac_abs_builddir=$ac_pwd$ac_dir_suffix 1466# for backward compatibility: 1467ac_top_builddir=$ac_top_build_prefix 1468 1469case $srcdir in 1470 .) # We are building in place. 1471 ac_srcdir=. 1472 ac_top_srcdir=$ac_top_builddir_sub 1473 ac_abs_top_srcdir=$ac_pwd ;; 1474 [\\/]* | ?:[\\/]* ) # Absolute name. 1475 ac_srcdir=$srcdir$ac_dir_suffix; 1476 ac_top_srcdir=$srcdir 1477 ac_abs_top_srcdir=$srcdir ;; 1478 *) # Relative name. 1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1480 ac_top_srcdir=$ac_top_build_prefix$srcdir 1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1482esac 1483ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1484 1485 cd "$ac_dir" || { ac_status=$?; continue; } 1486 # Check for guested configure. 1487 if test -f "$ac_srcdir/configure.gnu"; then 1488 echo && 1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1490 elif test -f "$ac_srcdir/configure"; then 1491 echo && 1492 $SHELL "$ac_srcdir/configure" --help=recursive 1493 else 1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1495 fi || ac_status=$? 1496 cd "$ac_pwd" || { ac_status=$?; break; } 1497 done 1498fi 1499 1500test -n "$ac_init_help" && exit $ac_status 1501if $ac_init_version; then 1502 cat <<\_ACEOF 1503random128 configure 0.10 1504generated by GNU Autoconf 2.69 1505 1506Copyright (C) 2012 Free Software Foundation, Inc. 1507This configure script is free software; the Free Software Foundation 1508gives unlimited permission to copy, distribute and modify it. 1509_ACEOF 1510 exit 1511fi 1512 1513## ------------------------ ## 1514## Autoconf initialization. ## 1515## ------------------------ ## 1516 1517# ac_fn_c_try_compile LINENO 1518# -------------------------- 1519# Try to compile conftest.$ac_ext, and return whether this succeeded. 1520ac_fn_c_try_compile () 1521{ 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1523 rm -f conftest.$ac_objext 1524 if { { ac_try="$ac_compile" 1525case "(($ac_try" in 1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1527 *) ac_try_echo=$ac_try;; 1528esac 1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1530$as_echo "$ac_try_echo"; } >&5 1531 (eval "$ac_compile") 2>conftest.err 1532 ac_status=$? 1533 if test -s conftest.err; then 1534 grep -v '^ *+' conftest.err >conftest.er1 1535 cat conftest.er1 >&5 1536 mv -f conftest.er1 conftest.err 1537 fi 1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1539 test $ac_status = 0; } && { 1540 test -z "$ac_c_werror_flag" || 1541 test ! -s conftest.err 1542 } && test -s conftest.$ac_objext; then : 1543 ac_retval=0 1544else 1545 $as_echo "$as_me: failed program was:" >&5 1546sed 's/^/| /' conftest.$ac_ext >&5 1547 1548 ac_retval=1 1549fi 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1551 as_fn_set_status $ac_retval 1552 1553} # ac_fn_c_try_compile 1554 1555# ac_fn_c_try_cpp LINENO 1556# ---------------------- 1557# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1558ac_fn_c_try_cpp () 1559{ 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 if { { ac_try="$ac_cpp conftest.$ac_ext" 1562case "(($ac_try" in 1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1564 *) ac_try_echo=$ac_try;; 1565esac 1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1567$as_echo "$ac_try_echo"; } >&5 1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1569 ac_status=$? 1570 if test -s conftest.err; then 1571 grep -v '^ *+' conftest.err >conftest.er1 1572 cat conftest.er1 >&5 1573 mv -f conftest.er1 conftest.err 1574 fi 1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1576 test $ac_status = 0; } > conftest.i && { 1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1578 test ! -s conftest.err 1579 }; then : 1580 ac_retval=0 1581else 1582 $as_echo "$as_me: failed program was:" >&5 1583sed 's/^/| /' conftest.$ac_ext >&5 1584 1585 ac_retval=1 1586fi 1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1588 as_fn_set_status $ac_retval 1589 1590} # ac_fn_c_try_cpp 1591 1592# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1593# ------------------------------------------------------- 1594# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1595# the include files in INCLUDES and setting the cache variable VAR 1596# accordingly. 1597ac_fn_c_check_header_mongrel () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 if eval \${$3+:} false; then : 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1602$as_echo_n "checking for $2... " >&6; } 1603if eval \${$3+:} false; then : 1604 $as_echo_n "(cached) " >&6 1605fi 1606eval ac_res=\$$3 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1608$as_echo "$ac_res" >&6; } 1609else 1610 # Is the header compilable? 1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1612$as_echo_n "checking $2 usability... " >&6; } 1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1614/* end confdefs.h. */ 1615$4 1616#include <$2> 1617_ACEOF 1618if ac_fn_c_try_compile "$LINENO"; then : 1619 ac_header_compiler=yes 1620else 1621 ac_header_compiler=no 1622fi 1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1625$as_echo "$ac_header_compiler" >&6; } 1626 1627# Is the header present? 1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1629$as_echo_n "checking $2 presence... " >&6; } 1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1631/* end confdefs.h. */ 1632#include <$2> 1633_ACEOF 1634if ac_fn_c_try_cpp "$LINENO"; then : 1635 ac_header_preproc=yes 1636else 1637 ac_header_preproc=no 1638fi 1639rm -f conftest.err conftest.i conftest.$ac_ext 1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1641$as_echo "$ac_header_preproc" >&6; } 1642 1643# So? What about this header? 1644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1645 yes:no: ) 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1647$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1650 ;; 1651 no:yes:* ) 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1653$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1655$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1657$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1659$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1662( $as_echo "## -------------------------------------------------- ## 1663## Report this to courier-users@lists.sourceforge.net ## 1664## -------------------------------------------------- ##" 1665 ) | sed "s/^/$as_me: WARNING: /" >&2 1666 ;; 1667esac 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672else 1673 eval "$3=\$ac_header_compiler" 1674fi 1675eval ac_res=\$$3 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677$as_echo "$ac_res" >&6; } 1678fi 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} # ac_fn_c_check_header_mongrel 1682 1683# ac_fn_c_try_run LINENO 1684# ---------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1686# that executables *can* be run. 1687ac_fn_c_try_run () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>&5 1698 ac_status=$? 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1701 { { case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_try") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; }; }; then : 1711 ac_retval=0 1712else 1713 $as_echo "$as_me: program exited with status $ac_status" >&5 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=$ac_status 1718fi 1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_run 1724 1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1726# ------------------------------------------------------- 1727# Tests whether HEADER exists and can be compiled using the include files in 1728# INCLUDES, setting the cache variable VAR accordingly. 1729ac_fn_c_check_header_compile () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739$4 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_compile "$LINENO"; then : 1743 eval "$3=yes" 1744else 1745 eval "$3=no" 1746fi 1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=1 1791fi 1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1794 # interfere with the next link command; also delete a directory that is 1795 # left behind by Apple's compiler. We do this before executing the actions. 1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_link 1801 1802# ac_fn_c_check_func LINENO FUNC VAR 1803# ---------------------------------- 1804# Tests whether FUNC exists, setting the cache variable VAR accordingly 1805ac_fn_c_check_func () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1809$as_echo_n "checking for $2... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1817#define $2 innocuous_$2 1818 1819/* System header to define __stub macros and hopefully few prototypes, 1820 which can conflict with char $2 (); below. 1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1822 <limits.h> exists even on freestanding compilers. */ 1823 1824#ifdef __STDC__ 1825# include <limits.h> 1826#else 1827# include <assert.h> 1828#endif 1829 1830#undef $2 1831 1832/* Override any GCC internal prototype to avoid an error. 1833 Use char because int might match the return type of a GCC 1834 builtin and then its argument prototype would still apply. */ 1835#ifdef __cplusplus 1836extern "C" 1837#endif 1838char $2 (); 1839/* The GNU C library defines this for functions which it implements 1840 to always fail with ENOSYS. Some functions are actually named 1841 something starting with __ and the normal name is an alias. */ 1842#if defined __stub_$2 || defined __stub___$2 1843choke me 1844#endif 1845 1846int 1847main () 1848{ 1849return $2 (); 1850 ; 1851 return 0; 1852} 1853_ACEOF 1854if ac_fn_c_try_link "$LINENO"; then : 1855 eval "$3=yes" 1856else 1857 eval "$3=no" 1858fi 1859rm -f core conftest.err conftest.$ac_objext \ 1860 conftest$ac_exeext conftest.$ac_ext 1861fi 1862eval ac_res=\$$3 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1864$as_echo "$ac_res" >&6; } 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 1867} # ac_fn_c_check_func 1868 1869# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1870# ------------------------------------------- 1871# Tests whether TYPE exists after having included INCLUDES, setting cache 1872# variable VAR accordingly. 1873ac_fn_c_check_type () 1874{ 1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1877$as_echo_n "checking for $2... " >&6; } 1878if eval \${$3+:} false; then : 1879 $as_echo_n "(cached) " >&6 1880else 1881 eval "$3=no" 1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884$4 1885int 1886main () 1887{ 1888if (sizeof ($2)) 1889 return 0; 1890 ; 1891 return 0; 1892} 1893_ACEOF 1894if ac_fn_c_try_compile "$LINENO"; then : 1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1896/* end confdefs.h. */ 1897$4 1898int 1899main () 1900{ 1901if (sizeof (($2))) 1902 return 0; 1903 ; 1904 return 0; 1905} 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 1909else 1910 eval "$3=yes" 1911fi 1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1915fi 1916eval ac_res=\$$3 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1918$as_echo "$ac_res" >&6; } 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 1921} # ac_fn_c_check_type 1922cat >config.log <<_ACEOF 1923This file contains any messages produced by compilers while 1924running configure, to aid debugging if configure makes a mistake. 1925 1926It was created by random128 $as_me 0.10, which was 1927generated by GNU Autoconf 2.69. Invocation command line was 1928 1929 $ $0 $@ 1930 1931_ACEOF 1932exec 5>>config.log 1933{ 1934cat <<_ASUNAME 1935## --------- ## 1936## Platform. ## 1937## --------- ## 1938 1939hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1940uname -m = `(uname -m) 2>/dev/null || echo unknown` 1941uname -r = `(uname -r) 2>/dev/null || echo unknown` 1942uname -s = `(uname -s) 2>/dev/null || echo unknown` 1943uname -v = `(uname -v) 2>/dev/null || echo unknown` 1944 1945/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1946/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1947 1948/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1949/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1950/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1951/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1952/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1953/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1954/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1955 1956_ASUNAME 1957 1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1959for as_dir in $PATH 1960do 1961 IFS=$as_save_IFS 1962 test -z "$as_dir" && as_dir=. 1963 $as_echo "PATH: $as_dir" 1964 done 1965IFS=$as_save_IFS 1966 1967} >&5 1968 1969cat >&5 <<_ACEOF 1970 1971 1972## ----------- ## 1973## Core tests. ## 1974## ----------- ## 1975 1976_ACEOF 1977 1978 1979# Keep a trace of the command line. 1980# Strip out --no-create and --no-recursion so they do not pile up. 1981# Strip out --silent because we don't want to record it for future runs. 1982# Also quote any args containing shell meta-characters. 1983# Make two passes to allow for proper duplicate-argument suppression. 1984ac_configure_args= 1985ac_configure_args0= 1986ac_configure_args1= 1987ac_must_keep_next=false 1988for ac_pass in 1 2 1989do 1990 for ac_arg 1991 do 1992 case $ac_arg in 1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1995 | -silent | --silent | --silen | --sile | --sil) 1996 continue ;; 1997 *\'*) 1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1999 esac 2000 case $ac_pass in 2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2002 2) 2003 as_fn_append ac_configure_args1 " '$ac_arg'" 2004 if test $ac_must_keep_next = true; then 2005 ac_must_keep_next=false # Got value, back to normal. 2006 else 2007 case $ac_arg in 2008 *=* | --config-cache | -C | -disable-* | --disable-* \ 2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2011 | -with-* | --with-* | -without-* | --without-* | --x) 2012 case "$ac_configure_args0 " in 2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2014 esac 2015 ;; 2016 -* ) ac_must_keep_next=true ;; 2017 esac 2018 fi 2019 as_fn_append ac_configure_args " '$ac_arg'" 2020 ;; 2021 esac 2022 done 2023done 2024{ ac_configure_args0=; unset ac_configure_args0;} 2025{ ac_configure_args1=; unset ac_configure_args1;} 2026 2027# When interrupted or exit'd, cleanup temporary files, and complete 2028# config.log. We remove comments because anyway the quotes in there 2029# would cause problems or look ugly. 2030# WARNING: Use '\'' to represent an apostrophe within the trap. 2031# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2032trap 'exit_status=$? 2033 # Save into config.log some information that might help in debugging. 2034 { 2035 echo 2036 2037 $as_echo "## ---------------- ## 2038## Cache variables. ## 2039## ---------------- ##" 2040 echo 2041 # The following way of writing the cache mishandles newlines in values, 2042( 2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2044 eval ac_val=\$$ac_var 2045 case $ac_val in #( 2046 *${as_nl}*) 2047 case $ac_var in #( 2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2049$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2050 esac 2051 case $ac_var in #( 2052 _ | IFS | as_nl) ;; #( 2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2054 *) { eval $ac_var=; unset $ac_var;} ;; 2055 esac ;; 2056 esac 2057 done 2058 (set) 2>&1 | 2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2060 *${as_nl}ac_space=\ *) 2061 sed -n \ 2062 "s/'\''/'\''\\\\'\'''\''/g; 2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2064 ;; #( 2065 *) 2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2067 ;; 2068 esac | 2069 sort 2070) 2071 echo 2072 2073 $as_echo "## ----------------- ## 2074## Output variables. ## 2075## ----------------- ##" 2076 echo 2077 for ac_var in $ac_subst_vars 2078 do 2079 eval ac_val=\$$ac_var 2080 case $ac_val in 2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2082 esac 2083 $as_echo "$ac_var='\''$ac_val'\''" 2084 done | sort 2085 echo 2086 2087 if test -n "$ac_subst_files"; then 2088 $as_echo "## ------------------- ## 2089## File substitutions. ## 2090## ------------------- ##" 2091 echo 2092 for ac_var in $ac_subst_files 2093 do 2094 eval ac_val=\$$ac_var 2095 case $ac_val in 2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2097 esac 2098 $as_echo "$ac_var='\''$ac_val'\''" 2099 done | sort 2100 echo 2101 fi 2102 2103 if test -s confdefs.h; then 2104 $as_echo "## ----------- ## 2105## confdefs.h. ## 2106## ----------- ##" 2107 echo 2108 cat confdefs.h 2109 echo 2110 fi 2111 test "$ac_signal" != 0 && 2112 $as_echo "$as_me: caught signal $ac_signal" 2113 $as_echo "$as_me: exit $exit_status" 2114 } >&5 2115 rm -f core *.core core.conftest.* && 2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2117 exit $exit_status 2118' 0 2119for ac_signal in 1 2 13 15; do 2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2121done 2122ac_signal=0 2123 2124# confdefs.h avoids OS command line length limits that DEFS can exceed. 2125rm -f -r conftest* confdefs.h 2126 2127$as_echo "/* confdefs.h */" > confdefs.h 2128 2129# Predefined preprocessor variables. 2130 2131cat >>confdefs.h <<_ACEOF 2132#define PACKAGE_NAME "$PACKAGE_NAME" 2133_ACEOF 2134 2135cat >>confdefs.h <<_ACEOF 2136#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2137_ACEOF 2138 2139cat >>confdefs.h <<_ACEOF 2140#define PACKAGE_VERSION "$PACKAGE_VERSION" 2141_ACEOF 2142 2143cat >>confdefs.h <<_ACEOF 2144#define PACKAGE_STRING "$PACKAGE_STRING" 2145_ACEOF 2146 2147cat >>confdefs.h <<_ACEOF 2148#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2149_ACEOF 2150 2151cat >>confdefs.h <<_ACEOF 2152#define PACKAGE_URL "$PACKAGE_URL" 2153_ACEOF 2154 2155 2156# Let the site file select an alternate cache file if it wants to. 2157# Prefer an explicitly selected file to automatically selected ones. 2158ac_site_file1=NONE 2159ac_site_file2=NONE 2160if test -n "$CONFIG_SITE"; then 2161 # We do not want a PATH search for config.site. 2162 case $CONFIG_SITE in #(( 2163 -*) ac_site_file1=./$CONFIG_SITE;; 2164 */*) ac_site_file1=$CONFIG_SITE;; 2165 *) ac_site_file1=./$CONFIG_SITE;; 2166 esac 2167elif test "x$prefix" != xNONE; then 2168 ac_site_file1=$prefix/share/config.site 2169 ac_site_file2=$prefix/etc/config.site 2170else 2171 ac_site_file1=$ac_default_prefix/share/config.site 2172 ac_site_file2=$ac_default_prefix/etc/config.site 2173fi 2174for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2175do 2176 test "x$ac_site_file" = xNONE && continue 2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2179$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2180 sed 's/^/| /' "$ac_site_file" >&5 2181 . "$ac_site_file" \ 2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2184as_fn_error $? "failed to load site script $ac_site_file 2185See \`config.log' for more details" "$LINENO" 5; } 2186 fi 2187done 2188 2189if test -r "$cache_file"; then 2190 # Some versions of bash will fail to source /dev/null (special files 2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2194$as_echo "$as_me: loading cache $cache_file" >&6;} 2195 case $cache_file in 2196 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2197 *) . "./$cache_file";; 2198 esac 2199 fi 2200else 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2202$as_echo "$as_me: creating cache $cache_file" >&6;} 2203 >$cache_file 2204fi 2205 2206# Check that the precious variables saved in the cache have kept the same 2207# value. 2208ac_cache_corrupted=false 2209for ac_var in $ac_precious_vars; do 2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2211 eval ac_new_set=\$ac_env_${ac_var}_set 2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2213 eval ac_new_val=\$ac_env_${ac_var}_value 2214 case $ac_old_set,$ac_new_set in 2215 set,) 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2217$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2218 ac_cache_corrupted=: ;; 2219 ,set) 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2221$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2222 ac_cache_corrupted=: ;; 2223 ,);; 2224 *) 2225 if test "x$ac_old_val" != "x$ac_new_val"; then 2226 # differences in whitespace do not lead to failure. 2227 ac_old_val_w=`echo x $ac_old_val` 2228 ac_new_val_w=`echo x $ac_new_val` 2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2231$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2232 ac_cache_corrupted=: 2233 else 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2235$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2236 eval $ac_var=\$ac_old_val 2237 fi 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2239$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2241$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2242 fi;; 2243 esac 2244 # Pass precious variables to config.status. 2245 if test "$ac_new_set" = set; then 2246 case $ac_new_val in 2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2248 *) ac_arg=$ac_var=$ac_new_val ;; 2249 esac 2250 case " $ac_configure_args " in 2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2253 esac 2254 fi 2255done 2256if $ac_cache_corrupted; then 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2260$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2262fi 2263## -------------------- ## 2264## Main body of script. ## 2265## -------------------- ## 2266 2267ac_ext=c 2268ac_cpp='$CPP $CPPFLAGS' 2269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2271ac_compiler_gnu=$ac_cv_c_compiler_gnu 2272 2273 2274 2275>confdefs.h # Kill PACKAGE_ macros 2276 2277 2278ac_aux_dir= 2279for ac_dir in ../.. "$srcdir"/../..; do 2280 if test -f "$ac_dir/install-sh"; then 2281 ac_aux_dir=$ac_dir 2282 ac_install_sh="$ac_aux_dir/install-sh -c" 2283 break 2284 elif test -f "$ac_dir/install.sh"; then 2285 ac_aux_dir=$ac_dir 2286 ac_install_sh="$ac_aux_dir/install.sh -c" 2287 break 2288 elif test -f "$ac_dir/shtool"; then 2289 ac_aux_dir=$ac_dir 2290 ac_install_sh="$ac_aux_dir/shtool install -c" 2291 break 2292 fi 2293done 2294if test -z "$ac_aux_dir"; then 2295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2296fi 2297 2298# These three variables are undocumented and unsupported, 2299# and are intended to be withdrawn in a future Autoconf release. 2300# They can cause serious problems if a builder's source tree is in a directory 2301# whose full name contains unusual characters. 2302ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2303ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2304ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2305 2306 2307am__api_version='1.16' 2308 2309# Find a good install program. We prefer a C program (faster), 2310# so one script is as good as another. But avoid the broken or 2311# incompatible versions: 2312# SysV /etc/install, /usr/sbin/install 2313# SunOS /usr/etc/install 2314# IRIX /sbin/install 2315# AIX /bin/install 2316# AmigaOS /C/install, which installs bootblocks on floppy discs 2317# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2318# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2319# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2320# OS/2's system install, which has a completely different semantic 2321# ./install, which can be erroneously created by make from ./install.sh. 2322# Reject install programs that cannot install multiple files. 2323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2324$as_echo_n "checking for a BSD-compatible install... " >&6; } 2325if test -z "$INSTALL"; then 2326if ${ac_cv_path_install+:} false; then : 2327 $as_echo_n "(cached) " >&6 2328else 2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2330for as_dir in $PATH 2331do 2332 IFS=$as_save_IFS 2333 test -z "$as_dir" && as_dir=. 2334 # Account for people who put trailing slashes in PATH elements. 2335case $as_dir/ in #(( 2336 ./ | .// | /[cC]/* | \ 2337 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2338 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2339 /usr/ucb/* ) ;; 2340 *) 2341 # OSF1 and SCO ODT 3.0 have their own names for install. 2342 # Don't use installbsd from OSF since it installs stuff as root 2343 # by default. 2344 for ac_prog in ginstall scoinst install; do 2345 for ac_exec_ext in '' $ac_executable_extensions; do 2346 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2347 if test $ac_prog = install && 2348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2349 # AIX install. It has an incompatible calling convention. 2350 : 2351 elif test $ac_prog = install && 2352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2353 # program-specific install script used by HP pwplus--don't use. 2354 : 2355 else 2356 rm -rf conftest.one conftest.two conftest.dir 2357 echo one > conftest.one 2358 echo two > conftest.two 2359 mkdir conftest.dir 2360 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2361 test -s conftest.one && test -s conftest.two && 2362 test -s conftest.dir/conftest.one && 2363 test -s conftest.dir/conftest.two 2364 then 2365 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2366 break 3 2367 fi 2368 fi 2369 fi 2370 done 2371 done 2372 ;; 2373esac 2374 2375 done 2376IFS=$as_save_IFS 2377 2378rm -rf conftest.one conftest.two conftest.dir 2379 2380fi 2381 if test "${ac_cv_path_install+set}" = set; then 2382 INSTALL=$ac_cv_path_install 2383 else 2384 # As a last resort, use the slow shell script. Don't cache a 2385 # value for INSTALL within a source directory, because that will 2386 # break other packages using the cache if that directory is 2387 # removed, or if the value is a relative name. 2388 INSTALL=$ac_install_sh 2389 fi 2390fi 2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2392$as_echo "$INSTALL" >&6; } 2393 2394# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2395# It thinks the first close brace ends the variable substitution. 2396test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2397 2398test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2399 2400test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2401 2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2403$as_echo_n "checking whether build environment is sane... " >&6; } 2404# Reject unsafe characters in $srcdir or the absolute working directory 2405# name. Accept space and tab only in the latter. 2406am_lf=' 2407' 2408case `pwd` in 2409 *[\\\"\#\$\&\'\`$am_lf]*) 2410 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2411esac 2412case $srcdir in 2413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2414 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2415esac 2416 2417# Do 'set' in a subshell so we don't clobber the current shell's 2418# arguments. Must try -L first in case configure is actually a 2419# symlink; some systems play weird games with the mod time of symlinks 2420# (eg FreeBSD returns the mod time of the symlink's containing 2421# directory). 2422if ( 2423 am_has_slept=no 2424 for am_try in 1 2; do 2425 echo "timestamp, slept: $am_has_slept" > conftest.file 2426 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2427 if test "$*" = "X"; then 2428 # -L didn't work. 2429 set X `ls -t "$srcdir/configure" conftest.file` 2430 fi 2431 if test "$*" != "X $srcdir/configure conftest.file" \ 2432 && test "$*" != "X conftest.file $srcdir/configure"; then 2433 2434 # If neither matched, then we have a broken ls. This can happen 2435 # if, for instance, CONFIG_SHELL is bash and it inherits a 2436 # broken ls alias from the environment. This has actually 2437 # happened. Such a system could not be considered "sane". 2438 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2439 alias in your environment" "$LINENO" 5 2440 fi 2441 if test "$2" = conftest.file || test $am_try -eq 2; then 2442 break 2443 fi 2444 # Just in case. 2445 sleep 1 2446 am_has_slept=yes 2447 done 2448 test "$2" = conftest.file 2449 ) 2450then 2451 # Ok. 2452 : 2453else 2454 as_fn_error $? "newly created file is older than distributed files! 2455Check your system clock" "$LINENO" 5 2456fi 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2458$as_echo "yes" >&6; } 2459# If we didn't sleep, we still need to ensure time stamps of config.status and 2460# generated files are strictly newer. 2461am_sleep_pid= 2462if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2463 ( sleep 1 ) & 2464 am_sleep_pid=$! 2465fi 2466 2467rm -f conftest.file 2468 2469test "$program_prefix" != NONE && 2470 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2471# Use a double $ so make ignores it. 2472test "$program_suffix" != NONE && 2473 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2474# Double any \ or $. 2475# By default was `s,x,x', remove it if useless. 2476ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2477program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2478 2479# Expand $ac_aux_dir to an absolute path. 2480am_aux_dir=`cd "$ac_aux_dir" && pwd` 2481 2482if test x"${MISSING+set}" != xset; then 2483 case $am_aux_dir in 2484 *\ * | *\ *) 2485 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2486 *) 2487 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2488 esac 2489fi 2490# Use eval to expand $SHELL 2491if eval "$MISSING --is-lightweight"; then 2492 am_missing_run="$MISSING " 2493else 2494 am_missing_run= 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2496$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2497fi 2498 2499if test x"${install_sh+set}" != xset; then 2500 case $am_aux_dir in 2501 *\ * | *\ *) 2502 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2503 *) 2504 install_sh="\${SHELL} $am_aux_dir/install-sh" 2505 esac 2506fi 2507 2508# Installed binaries are usually stripped using 'strip' when the user 2509# run "make install-strip". However 'strip' might not be the right 2510# tool to use in cross-compilation environments, therefore Automake 2511# will honor the 'STRIP' environment variable to overrule this program. 2512if test "$cross_compiling" != no; then 2513 if test -n "$ac_tool_prefix"; then 2514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2515set dummy ${ac_tool_prefix}strip; ac_word=$2 2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2517$as_echo_n "checking for $ac_word... " >&6; } 2518if ${ac_cv_prog_STRIP+:} false; then : 2519 $as_echo_n "(cached) " >&6 2520else 2521 if test -n "$STRIP"; then 2522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2523else 2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2525for as_dir in $PATH 2526do 2527 IFS=$as_save_IFS 2528 test -z "$as_dir" && as_dir=. 2529 for ac_exec_ext in '' $ac_executable_extensions; do 2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2531 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2533 break 2 2534 fi 2535done 2536 done 2537IFS=$as_save_IFS 2538 2539fi 2540fi 2541STRIP=$ac_cv_prog_STRIP 2542if test -n "$STRIP"; then 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2544$as_echo "$STRIP" >&6; } 2545else 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2547$as_echo "no" >&6; } 2548fi 2549 2550 2551fi 2552if test -z "$ac_cv_prog_STRIP"; then 2553 ac_ct_STRIP=$STRIP 2554 # Extract the first word of "strip", so it can be a program name with args. 2555set dummy strip; ac_word=$2 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2557$as_echo_n "checking for $ac_word... " >&6; } 2558if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2559 $as_echo_n "(cached) " >&6 2560else 2561 if test -n "$ac_ct_STRIP"; then 2562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2563else 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2571 ac_cv_prog_ac_ct_STRIP="strip" 2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2573 break 2 2574 fi 2575done 2576 done 2577IFS=$as_save_IFS 2578 2579fi 2580fi 2581ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2582if test -n "$ac_ct_STRIP"; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2584$as_echo "$ac_ct_STRIP" >&6; } 2585else 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2587$as_echo "no" >&6; } 2588fi 2589 2590 if test "x$ac_ct_STRIP" = x; then 2591 STRIP=":" 2592 else 2593 case $cross_compiling:$ac_tool_warned in 2594yes:) 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2597ac_tool_warned=yes ;; 2598esac 2599 STRIP=$ac_ct_STRIP 2600 fi 2601else 2602 STRIP="$ac_cv_prog_STRIP" 2603fi 2604 2605fi 2606INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2607 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2609$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2610if test -z "$MKDIR_P"; then 2611 if ${ac_cv_path_mkdir+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2615for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2616do 2617 IFS=$as_save_IFS 2618 test -z "$as_dir" && as_dir=. 2619 for ac_prog in mkdir gmkdir; do 2620 for ac_exec_ext in '' $ac_executable_extensions; do 2621 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2622 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2623 'mkdir (GNU coreutils) '* | \ 2624 'mkdir (coreutils) '* | \ 2625 'mkdir (fileutils) '4.1*) 2626 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2627 break 3;; 2628 esac 2629 done 2630 done 2631 done 2632IFS=$as_save_IFS 2633 2634fi 2635 2636 test -d ./--version && rmdir ./--version 2637 if test "${ac_cv_path_mkdir+set}" = set; then 2638 MKDIR_P="$ac_cv_path_mkdir -p" 2639 else 2640 # As a last resort, use the slow shell script. Don't cache a 2641 # value for MKDIR_P within a source directory, because that will 2642 # break other packages using the cache if that directory is 2643 # removed, or if the value is a relative name. 2644 MKDIR_P="$ac_install_sh -d" 2645 fi 2646fi 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2648$as_echo "$MKDIR_P" >&6; } 2649 2650for ac_prog in gawk mawk nawk awk 2651do 2652 # Extract the first word of "$ac_prog", so it can be a program name with args. 2653set dummy $ac_prog; ac_word=$2 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2655$as_echo_n "checking for $ac_word... " >&6; } 2656if ${ac_cv_prog_AWK+:} false; then : 2657 $as_echo_n "(cached) " >&6 2658else 2659 if test -n "$AWK"; then 2660 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2661else 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2669 ac_cv_prog_AWK="$ac_prog" 2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674 done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679AWK=$ac_cv_prog_AWK 2680if test -n "$AWK"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2682$as_echo "$AWK" >&6; } 2683else 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2685$as_echo "no" >&6; } 2686fi 2687 2688 2689 test -n "$AWK" && break 2690done 2691 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2693$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2694set x ${MAKE-make} 2695ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2696if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2697 $as_echo_n "(cached) " >&6 2698else 2699 cat >conftest.make <<\_ACEOF 2700SHELL = /bin/sh 2701all: 2702 @echo '@@@%%%=$(MAKE)=@@@%%%' 2703_ACEOF 2704# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2705case `${MAKE-make} -f conftest.make 2>/dev/null` in 2706 *@@@%%%=?*=@@@%%%*) 2707 eval ac_cv_prog_make_${ac_make}_set=yes;; 2708 *) 2709 eval ac_cv_prog_make_${ac_make}_set=no;; 2710esac 2711rm -f conftest.make 2712fi 2713if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2715$as_echo "yes" >&6; } 2716 SET_MAKE= 2717else 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719$as_echo "no" >&6; } 2720 SET_MAKE="MAKE=${MAKE-make}" 2721fi 2722 2723rm -rf .tst 2>/dev/null 2724mkdir .tst 2>/dev/null 2725if test -d .tst; then 2726 am__leading_dot=. 2727else 2728 am__leading_dot=_ 2729fi 2730rmdir .tst 2>/dev/null 2731 2732# Check whether --enable-silent-rules was given. 2733if test "${enable_silent_rules+set}" = set; then : 2734 enableval=$enable_silent_rules; 2735fi 2736 2737case $enable_silent_rules in # ((( 2738 yes) AM_DEFAULT_VERBOSITY=0;; 2739 no) AM_DEFAULT_VERBOSITY=1;; 2740 *) AM_DEFAULT_VERBOSITY=1;; 2741esac 2742am_make=${MAKE-make} 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2744$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2745if ${am_cv_make_support_nested_variables+:} false; then : 2746 $as_echo_n "(cached) " >&6 2747else 2748 if $as_echo 'TRUE=$(BAR$(V)) 2749BAR0=false 2750BAR1=true 2751V=1 2752am__doit: 2753 @$(TRUE) 2754.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2755 am_cv_make_support_nested_variables=yes 2756else 2757 am_cv_make_support_nested_variables=no 2758fi 2759fi 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2761$as_echo "$am_cv_make_support_nested_variables" >&6; } 2762if test $am_cv_make_support_nested_variables = yes; then 2763 AM_V='$(V)' 2764 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2765else 2766 AM_V=$AM_DEFAULT_VERBOSITY 2767 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2768fi 2769AM_BACKSLASH='\' 2770 2771if test "`cd $srcdir && pwd`" != "`pwd`"; then 2772 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2773 # is not polluted with repeated "-I." 2774 am__isrc=' -I$(srcdir)' 2775 # test to see if srcdir already configured 2776 if test -f $srcdir/config.status; then 2777 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2778 fi 2779fi 2780 2781# test whether we have cygpath 2782if test -z "$CYGPATH_W"; then 2783 if (cygpath --version) >/dev/null 2>/dev/null; then 2784 CYGPATH_W='cygpath -w' 2785 else 2786 CYGPATH_W=echo 2787 fi 2788fi 2789 2790 2791# Define the identity of the package. 2792 PACKAGE='random128' 2793 VERSION='0.10' 2794 2795 2796# Some tools Automake needs. 2797 2798ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2799 2800 2801AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2802 2803 2804AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2805 2806 2807AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2808 2809 2810MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2811 2812# For better backward compatibility. To be removed once Automake 1.9.x 2813# dies out for good. For more background, see: 2814# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2815# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2816mkdir_p='$(MKDIR_P)' 2817 2818# We need awk for the "check" target (and possibly the TAP driver). The 2819# system "awk" is bad on some platforms. 2820# Always define AMTAR for backward compatibility. Yes, it's still used 2821# in the wild :-( We should find a proper way to deprecate it ... 2822AMTAR='$${TAR-tar}' 2823 2824 2825# We'll loop over all known methods to create a tar archive until one works. 2826_am_tools='gnutar pax cpio none' 2827 2828am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2829 2830 2831 2832 2833 2834 2835# POSIX will say in a future version that running "rm -f" with no argument 2836# is OK; and we want to be able to make that assumption in our Makefile 2837# recipes. So use an aggressive probe to check that the usage we want is 2838# actually supported "in the wild" to an acceptable degree. 2839# See automake bug#10828. 2840# To make any issue more visible, cause the running configure to be aborted 2841# by default if the 'rm' program in use doesn't match our expectations; the 2842# user can still override this though. 2843if rm -f && rm -fr && rm -rf; then : OK; else 2844 cat >&2 <<'END' 2845Oops! 2846 2847Your 'rm' program seems unable to run without file operands specified 2848on the command line, even when the '-f' option is present. This is contrary 2849to the behaviour of most rm programs out there, and not conforming with 2850the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2851 2852Please tell bug-automake@gnu.org about your system, including the value 2853of your $PATH and any error possibly output before this message. This 2854can help us improve future automake versions. 2855 2856END 2857 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2858 echo 'Configuration will proceed anyway, since you have set the' >&2 2859 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2860 echo >&2 2861 else 2862 cat >&2 <<'END' 2863Aborting the configuration process, to ensure you take notice of the issue. 2864 2865You can download and install GNU coreutils to get an 'rm' implementation 2866that behaves properly: <https://www.gnu.org/software/coreutils/>. 2867 2868If you want to complete the configuration process using your problematic 2869'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2870to "yes", and re-run configure. 2871 2872END 2873 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2874 fi 2875fi 2876 2877LPATH="$PATH:/usr/local/bin" 2878 2879 2880ac_config_headers="$ac_config_headers config.h" 2881 2882DEPDIR="${am__leading_dot}deps" 2883 2884ac_config_commands="$ac_config_commands depfiles" 2885 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2887$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2888cat > confinc.mk << 'END' 2889am__doit: 2890 @echo this is the am__doit target >confinc.out 2891.PHONY: am__doit 2892END 2893am__include="#" 2894am__quote= 2895# BSD make does it like this. 2896echo '.include "confinc.mk" # ignored' > confmf.BSD 2897# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2898echo 'include confinc.mk # ignored' > confmf.GNU 2899_am_result=no 2900for s in GNU BSD; do 2901 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2902 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2903 ac_status=$? 2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2905 (exit $ac_status); } 2906 case $?:`cat confinc.out 2>/dev/null` in #( 2907 '0:this is the am__doit target') : 2908 case $s in #( 2909 BSD) : 2910 am__include='.include' am__quote='"' ;; #( 2911 *) : 2912 am__include='include' am__quote='' ;; 2913esac ;; #( 2914 *) : 2915 ;; 2916esac 2917 if test "$am__include" != "#"; then 2918 _am_result="yes ($s style)" 2919 break 2920 fi 2921done 2922rm -f confinc.* confmf.* 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2924$as_echo "${_am_result}" >&6; } 2925 2926# Check whether --enable-dependency-tracking was given. 2927if test "${enable_dependency_tracking+set}" = set; then : 2928 enableval=$enable_dependency_tracking; 2929fi 2930 2931if test "x$enable_dependency_tracking" != xno; then 2932 am_depcomp="$ac_aux_dir/depcomp" 2933 AMDEPBACKSLASH='\' 2934 am__nodep='_no' 2935fi 2936 if test "x$enable_dependency_tracking" != xno; then 2937 AMDEP_TRUE= 2938 AMDEP_FALSE='#' 2939else 2940 AMDEP_TRUE='#' 2941 AMDEP_FALSE= 2942fi 2943 2944 2945ac_ext=c 2946ac_cpp='$CPP $CPPFLAGS' 2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2949ac_compiler_gnu=$ac_cv_c_compiler_gnu 2950if test -n "$ac_tool_prefix"; then 2951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2952set dummy ${ac_tool_prefix}gcc; ac_word=$2 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954$as_echo_n "checking for $ac_word... " >&6; } 2955if ${ac_cv_prog_CC+:} false; then : 2956 $as_echo_n "(cached) " >&6 2957else 2958 if test -n "$CC"; then 2959 ac_cv_prog_CC="$CC" # Let the user override the test. 2960else 2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2962for as_dir in $PATH 2963do 2964 IFS=$as_save_IFS 2965 test -z "$as_dir" && as_dir=. 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2968 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2970 break 2 2971 fi 2972done 2973 done 2974IFS=$as_save_IFS 2975 2976fi 2977fi 2978CC=$ac_cv_prog_CC 2979if test -n "$CC"; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2981$as_echo "$CC" >&6; } 2982else 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984$as_echo "no" >&6; } 2985fi 2986 2987 2988fi 2989if test -z "$ac_cv_prog_CC"; then 2990 ac_ct_CC=$CC 2991 # Extract the first word of "gcc", so it can be a program name with args. 2992set dummy gcc; ac_word=$2 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994$as_echo_n "checking for $ac_word... " >&6; } 2995if ${ac_cv_prog_ac_ct_CC+:} false; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 if test -n "$ac_ct_CC"; then 2999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3000else 3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002for as_dir in $PATH 3003do 3004 IFS=$as_save_IFS 3005 test -z "$as_dir" && as_dir=. 3006 for ac_exec_ext in '' $ac_executable_extensions; do 3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3008 ac_cv_prog_ac_ct_CC="gcc" 3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3010 break 2 3011 fi 3012done 3013 done 3014IFS=$as_save_IFS 3015 3016fi 3017fi 3018ac_ct_CC=$ac_cv_prog_ac_ct_CC 3019if test -n "$ac_ct_CC"; then 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3021$as_echo "$ac_ct_CC" >&6; } 3022else 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3024$as_echo "no" >&6; } 3025fi 3026 3027 if test "x$ac_ct_CC" = x; then 3028 CC="" 3029 else 3030 case $cross_compiling:$ac_tool_warned in 3031yes:) 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3034ac_tool_warned=yes ;; 3035esac 3036 CC=$ac_ct_CC 3037 fi 3038else 3039 CC="$ac_cv_prog_CC" 3040fi 3041 3042if test -z "$CC"; then 3043 if test -n "$ac_tool_prefix"; then 3044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3045set dummy ${ac_tool_prefix}cc; ac_word=$2 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3047$as_echo_n "checking for $ac_word... " >&6; } 3048if ${ac_cv_prog_CC+:} false; then : 3049 $as_echo_n "(cached) " >&6 3050else 3051 if test -n "$CC"; then 3052 ac_cv_prog_CC="$CC" # Let the user override the test. 3053else 3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3055for as_dir in $PATH 3056do 3057 IFS=$as_save_IFS 3058 test -z "$as_dir" && as_dir=. 3059 for ac_exec_ext in '' $ac_executable_extensions; do 3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3061 ac_cv_prog_CC="${ac_tool_prefix}cc" 3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3063 break 2 3064 fi 3065done 3066 done 3067IFS=$as_save_IFS 3068 3069fi 3070fi 3071CC=$ac_cv_prog_CC 3072if test -n "$CC"; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3074$as_echo "$CC" >&6; } 3075else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077$as_echo "no" >&6; } 3078fi 3079 3080 3081 fi 3082fi 3083if test -z "$CC"; then 3084 # Extract the first word of "cc", so it can be a program name with args. 3085set dummy cc; ac_word=$2 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3087$as_echo_n "checking for $ac_word... " >&6; } 3088if ${ac_cv_prog_CC+:} false; then : 3089 $as_echo_n "(cached) " >&6 3090else 3091 if test -n "$CC"; then 3092 ac_cv_prog_CC="$CC" # Let the user override the test. 3093else 3094 ac_prog_rejected=no 3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3096for as_dir in $PATH 3097do 3098 IFS=$as_save_IFS 3099 test -z "$as_dir" && as_dir=. 3100 for ac_exec_ext in '' $ac_executable_extensions; do 3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3103 ac_prog_rejected=yes 3104 continue 3105 fi 3106 ac_cv_prog_CC="cc" 3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3108 break 2 3109 fi 3110done 3111 done 3112IFS=$as_save_IFS 3113 3114if test $ac_prog_rejected = yes; then 3115 # We found a bogon in the path, so make sure we never use it. 3116 set dummy $ac_cv_prog_CC 3117 shift 3118 if test $# != 0; then 3119 # We chose a different compiler from the bogus one. 3120 # However, it has the same basename, so the bogon will be chosen 3121 # first if we set CC to just the basename; use the full file name. 3122 shift 3123 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3124 fi 3125fi 3126fi 3127fi 3128CC=$ac_cv_prog_CC 3129if test -n "$CC"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3131$as_echo "$CC" >&6; } 3132else 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134$as_echo "no" >&6; } 3135fi 3136 3137 3138fi 3139if test -z "$CC"; then 3140 if test -n "$ac_tool_prefix"; then 3141 for ac_prog in cl.exe 3142 do 3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3144set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3146$as_echo_n "checking for $ac_word... " >&6; } 3147if ${ac_cv_prog_CC+:} false; then : 3148 $as_echo_n "(cached) " >&6 3149else 3150 if test -n "$CC"; then 3151 ac_cv_prog_CC="$CC" # Let the user override the test. 3152else 3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154for as_dir in $PATH 3155do 3156 IFS=$as_save_IFS 3157 test -z "$as_dir" && as_dir=. 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3162 break 2 3163 fi 3164done 3165 done 3166IFS=$as_save_IFS 3167 3168fi 3169fi 3170CC=$ac_cv_prog_CC 3171if test -n "$CC"; then 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3173$as_echo "$CC" >&6; } 3174else 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176$as_echo "no" >&6; } 3177fi 3178 3179 3180 test -n "$CC" && break 3181 done 3182fi 3183if test -z "$CC"; then 3184 ac_ct_CC=$CC 3185 for ac_prog in cl.exe 3186do 3187 # Extract the first word of "$ac_prog", so it can be a program name with args. 3188set dummy $ac_prog; ac_word=$2 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190$as_echo_n "checking for $ac_word... " >&6; } 3191if ${ac_cv_prog_ac_ct_CC+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 if test -n "$ac_ct_CC"; then 3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3196else 3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3204 ac_cv_prog_ac_ct_CC="$ac_prog" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212fi 3213fi 3214ac_ct_CC=$ac_cv_prog_ac_ct_CC 3215if test -n "$ac_ct_CC"; then 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3217$as_echo "$ac_ct_CC" >&6; } 3218else 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3220$as_echo "no" >&6; } 3221fi 3222 3223 3224 test -n "$ac_ct_CC" && break 3225done 3226 3227 if test "x$ac_ct_CC" = x; then 3228 CC="" 3229 else 3230 case $cross_compiling:$ac_tool_warned in 3231yes:) 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3234ac_tool_warned=yes ;; 3235esac 3236 CC=$ac_ct_CC 3237 fi 3238fi 3239 3240fi 3241 3242 3243test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3245as_fn_error $? "no acceptable C compiler found in \$PATH 3246See \`config.log' for more details" "$LINENO" 5; } 3247 3248# Provide some information about the compiler. 3249$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3250set X $ac_compile 3251ac_compiler=$2 3252for ac_option in --version -v -V -qversion; do 3253 { { ac_try="$ac_compiler $ac_option >&5" 3254case "(($ac_try" in 3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3256 *) ac_try_echo=$ac_try;; 3257esac 3258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3259$as_echo "$ac_try_echo"; } >&5 3260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3261 ac_status=$? 3262 if test -s conftest.err; then 3263 sed '10a\ 3264... rest of stderr output deleted ... 3265 10q' conftest.err >conftest.er1 3266 cat conftest.er1 >&5 3267 fi 3268 rm -f conftest.er1 conftest.err 3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3270 test $ac_status = 0; } 3271done 3272 3273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3274/* end confdefs.h. */ 3275 3276int 3277main () 3278{ 3279 3280 ; 3281 return 0; 3282} 3283_ACEOF 3284ac_clean_files_save=$ac_clean_files 3285ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3286# Try to create an executable without -o first, disregard a.out. 3287# It will help us diagnose broken compilers, and finding out an intuition 3288# of exeext. 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3290$as_echo_n "checking whether the C compiler works... " >&6; } 3291ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3292 3293# The possible output files: 3294ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3295 3296ac_rmfiles= 3297for ac_file in $ac_files 3298do 3299 case $ac_file in 3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3301 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3302 esac 3303done 3304rm -f $ac_rmfiles 3305 3306if { { ac_try="$ac_link_default" 3307case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310esac 3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3312$as_echo "$ac_try_echo"; } >&5 3313 (eval "$ac_link_default") 2>&5 3314 ac_status=$? 3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3316 test $ac_status = 0; }; then : 3317 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3318# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3319# in a Makefile. We should not override ac_cv_exeext if it was cached, 3320# so that the user can short-circuit this test for compilers unknown to 3321# Autoconf. 3322for ac_file in $ac_files '' 3323do 3324 test -f "$ac_file" || continue 3325 case $ac_file in 3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3327 ;; 3328 [ab].out ) 3329 # We found the default executable, but exeext='' is most 3330 # certainly right. 3331 break;; 3332 *.* ) 3333 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3334 then :; else 3335 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3336 fi 3337 # We set ac_cv_exeext here because the later test for it is not 3338 # safe: cross compilers may not add the suffix if given an `-o' 3339 # argument, so we may need to know it at that point already. 3340 # Even if this section looks crufty: it has the advantage of 3341 # actually working. 3342 break;; 3343 * ) 3344 break;; 3345 esac 3346done 3347test "$ac_cv_exeext" = no && ac_cv_exeext= 3348 3349else 3350 ac_file='' 3351fi 3352if test -z "$ac_file"; then : 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3354$as_echo "no" >&6; } 3355$as_echo "$as_me: failed program was:" >&5 3356sed 's/^/| /' conftest.$ac_ext >&5 3357 3358{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3360as_fn_error 77 "C compiler cannot create executables 3361See \`config.log' for more details" "$LINENO" 5; } 3362else 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3364$as_echo "yes" >&6; } 3365fi 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3367$as_echo_n "checking for C compiler default output file name... " >&6; } 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3369$as_echo "$ac_file" >&6; } 3370ac_exeext=$ac_cv_exeext 3371 3372rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3373ac_clean_files=$ac_clean_files_save 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3375$as_echo_n "checking for suffix of executables... " >&6; } 3376if { { ac_try="$ac_link" 3377case "(($ac_try" in 3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3379 *) ac_try_echo=$ac_try;; 3380esac 3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3382$as_echo "$ac_try_echo"; } >&5 3383 (eval "$ac_link") 2>&5 3384 ac_status=$? 3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3386 test $ac_status = 0; }; then : 3387 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3388# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3389# work properly (i.e., refer to `conftest.exe'), while it won't with 3390# `rm'. 3391for ac_file in conftest.exe conftest conftest.*; do 3392 test -f "$ac_file" || continue 3393 case $ac_file in 3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3395 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3396 break;; 3397 * ) break;; 3398 esac 3399done 3400else 3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3403as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3404See \`config.log' for more details" "$LINENO" 5; } 3405fi 3406rm -f conftest conftest$ac_cv_exeext 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3408$as_echo "$ac_cv_exeext" >&6; } 3409 3410rm -f conftest.$ac_ext 3411EXEEXT=$ac_cv_exeext 3412ac_exeext=$EXEEXT 3413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414/* end confdefs.h. */ 3415#include <stdio.h> 3416int 3417main () 3418{ 3419FILE *f = fopen ("conftest.out", "w"); 3420 return ferror (f) || fclose (f) != 0; 3421 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426ac_clean_files="$ac_clean_files conftest.out" 3427# Check that the compiler produces executables we can run. If not, either 3428# the compiler is broken, or we cross compile. 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3430$as_echo_n "checking whether we are cross compiling... " >&6; } 3431if test "$cross_compiling" != yes; then 3432 { { ac_try="$ac_link" 3433case "(($ac_try" in 3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3435 *) ac_try_echo=$ac_try;; 3436esac 3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3438$as_echo "$ac_try_echo"; } >&5 3439 (eval "$ac_link") 2>&5 3440 ac_status=$? 3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3442 test $ac_status = 0; } 3443 if { ac_try='./conftest$ac_cv_exeext' 3444 { { case "(($ac_try" in 3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446 *) ac_try_echo=$ac_try;; 3447esac 3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3449$as_echo "$ac_try_echo"; } >&5 3450 (eval "$ac_try") 2>&5 3451 ac_status=$? 3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3453 test $ac_status = 0; }; }; then 3454 cross_compiling=no 3455 else 3456 if test "$cross_compiling" = maybe; then 3457 cross_compiling=yes 3458 else 3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3461as_fn_error $? "cannot run C compiled programs. 3462If you meant to cross compile, use \`--host'. 3463See \`config.log' for more details" "$LINENO" 5; } 3464 fi 3465 fi 3466fi 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3468$as_echo "$cross_compiling" >&6; } 3469 3470rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3471ac_clean_files=$ac_clean_files_save 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3473$as_echo_n "checking for suffix of object files... " >&6; } 3474if ${ac_cv_objext+:} false; then : 3475 $as_echo_n "(cached) " >&6 3476else 3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478/* end confdefs.h. */ 3479 3480int 3481main () 3482{ 3483 3484 ; 3485 return 0; 3486} 3487_ACEOF 3488rm -f conftest.o conftest.obj 3489if { { ac_try="$ac_compile" 3490case "(($ac_try" in 3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3492 *) ac_try_echo=$ac_try;; 3493esac 3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3495$as_echo "$ac_try_echo"; } >&5 3496 (eval "$ac_compile") 2>&5 3497 ac_status=$? 3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3499 test $ac_status = 0; }; then : 3500 for ac_file in conftest.o conftest.obj conftest.*; do 3501 test -f "$ac_file" || continue; 3502 case $ac_file in 3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3505 break;; 3506 esac 3507done 3508else 3509 $as_echo "$as_me: failed program was:" >&5 3510sed 's/^/| /' conftest.$ac_ext >&5 3511 3512{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3514as_fn_error $? "cannot compute suffix of object files: cannot compile 3515See \`config.log' for more details" "$LINENO" 5; } 3516fi 3517rm -f conftest.$ac_cv_objext conftest.$ac_ext 3518fi 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3520$as_echo "$ac_cv_objext" >&6; } 3521OBJEXT=$ac_cv_objext 3522ac_objext=$OBJEXT 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3524$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3525if ${ac_cv_c_compiler_gnu+:} false; then : 3526 $as_echo_n "(cached) " >&6 3527else 3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3529/* end confdefs.h. */ 3530 3531int 3532main () 3533{ 3534#ifndef __GNUC__ 3535 choke me 3536#endif 3537 3538 ; 3539 return 0; 3540} 3541_ACEOF 3542if ac_fn_c_try_compile "$LINENO"; then : 3543 ac_compiler_gnu=yes 3544else 3545 ac_compiler_gnu=no 3546fi 3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3548ac_cv_c_compiler_gnu=$ac_compiler_gnu 3549 3550fi 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3552$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3553if test $ac_compiler_gnu = yes; then 3554 GCC=yes 3555else 3556 GCC= 3557fi 3558ac_test_CFLAGS=${CFLAGS+set} 3559ac_save_CFLAGS=$CFLAGS 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3561$as_echo_n "checking whether $CC accepts -g... " >&6; } 3562if ${ac_cv_prog_cc_g+:} false; then : 3563 $as_echo_n "(cached) " >&6 3564else 3565 ac_save_c_werror_flag=$ac_c_werror_flag 3566 ac_c_werror_flag=yes 3567 ac_cv_prog_cc_g=no 3568 CFLAGS="-g" 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3570/* end confdefs.h. */ 3571 3572int 3573main () 3574{ 3575 3576 ; 3577 return 0; 3578} 3579_ACEOF 3580if ac_fn_c_try_compile "$LINENO"; then : 3581 ac_cv_prog_cc_g=yes 3582else 3583 CFLAGS="" 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595if ac_fn_c_try_compile "$LINENO"; then : 3596 3597else 3598 ac_c_werror_flag=$ac_save_c_werror_flag 3599 CFLAGS="-g" 3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601/* end confdefs.h. */ 3602 3603int 3604main () 3605{ 3606 3607 ; 3608 return 0; 3609} 3610_ACEOF 3611if ac_fn_c_try_compile "$LINENO"; then : 3612 ac_cv_prog_cc_g=yes 3613fi 3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3615fi 3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3617fi 3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3619 ac_c_werror_flag=$ac_save_c_werror_flag 3620fi 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3622$as_echo "$ac_cv_prog_cc_g" >&6; } 3623if test "$ac_test_CFLAGS" = set; then 3624 CFLAGS=$ac_save_CFLAGS 3625elif test $ac_cv_prog_cc_g = yes; then 3626 if test "$GCC" = yes; then 3627 CFLAGS="-g -O2" 3628 else 3629 CFLAGS="-g" 3630 fi 3631else 3632 if test "$GCC" = yes; then 3633 CFLAGS="-O2" 3634 else 3635 CFLAGS= 3636 fi 3637fi 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3639$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3640if ${ac_cv_prog_cc_c89+:} false; then : 3641 $as_echo_n "(cached) " >&6 3642else 3643 ac_cv_prog_cc_c89=no 3644ac_save_CC=$CC 3645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3646/* end confdefs.h. */ 3647#include <stdarg.h> 3648#include <stdio.h> 3649struct stat; 3650/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3651struct buf { int x; }; 3652FILE * (*rcsopen) (struct buf *, struct stat *, int); 3653static char *e (p, i) 3654 char **p; 3655 int i; 3656{ 3657 return p[i]; 3658} 3659static char *f (char * (*g) (char **, int), char **p, ...) 3660{ 3661 char *s; 3662 va_list v; 3663 va_start (v,p); 3664 s = g (p, va_arg (v,int)); 3665 va_end (v); 3666 return s; 3667} 3668 3669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3670 function prototypes and stuff, but not '\xHH' hex character constants. 3671 These don't provoke an error unfortunately, instead are silently treated 3672 as 'x'. The following induces an error, until -std is added to get 3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3674 array size at least. It's necessary to write '\x00'==0 to get something 3675 that's true only with -std. */ 3676int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3677 3678/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3679 inside strings and character constants. */ 3680#define FOO(x) 'x' 3681int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3682 3683int test (int i, double x); 3684struct s1 {int (*f) (int a);}; 3685struct s2 {int (*f) (double a);}; 3686int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3687int argc; 3688char **argv; 3689int 3690main () 3691{ 3692return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3693 ; 3694 return 0; 3695} 3696_ACEOF 3697for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3699do 3700 CC="$ac_save_CC $ac_arg" 3701 if ac_fn_c_try_compile "$LINENO"; then : 3702 ac_cv_prog_cc_c89=$ac_arg 3703fi 3704rm -f core conftest.err conftest.$ac_objext 3705 test "x$ac_cv_prog_cc_c89" != "xno" && break 3706done 3707rm -f conftest.$ac_ext 3708CC=$ac_save_CC 3709 3710fi 3711# AC_CACHE_VAL 3712case "x$ac_cv_prog_cc_c89" in 3713 x) 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3715$as_echo "none needed" >&6; } ;; 3716 xno) 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3718$as_echo "unsupported" >&6; } ;; 3719 *) 3720 CC="$CC $ac_cv_prog_cc_c89" 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3722$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3723esac 3724if test "x$ac_cv_prog_cc_c89" != xno; then : 3725 3726fi 3727 3728ac_ext=c 3729ac_cpp='$CPP $CPPFLAGS' 3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3732ac_compiler_gnu=$ac_cv_c_compiler_gnu 3733 3734ac_ext=c 3735ac_cpp='$CPP $CPPFLAGS' 3736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3738ac_compiler_gnu=$ac_cv_c_compiler_gnu 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3740$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3741if ${am_cv_prog_cc_c_o+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3745/* end confdefs.h. */ 3746 3747int 3748main () 3749{ 3750 3751 ; 3752 return 0; 3753} 3754_ACEOF 3755 # Make sure it works both with $CC and with simple cc. 3756 # Following AC_PROG_CC_C_O, we do the test twice because some 3757 # compilers refuse to overwrite an existing .o file with -o, 3758 # though they will create one. 3759 am_cv_prog_cc_c_o=yes 3760 for am_i in 1 2; do 3761 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3762 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3763 ac_status=$? 3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3765 (exit $ac_status); } \ 3766 && test -f conftest2.$ac_objext; then 3767 : OK 3768 else 3769 am_cv_prog_cc_c_o=no 3770 break 3771 fi 3772 done 3773 rm -f core conftest* 3774 unset am_i 3775fi 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3777$as_echo "$am_cv_prog_cc_c_o" >&6; } 3778if test "$am_cv_prog_cc_c_o" != yes; then 3779 # Losing compiler, so override with the script. 3780 # FIXME: It is wrong to rewrite CC. 3781 # But if we don't then we get into trouble of one sort or another. 3782 # A longer-term fix would be to have automake use am__CC in this case, 3783 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3784 CC="$am_aux_dir/compile $CC" 3785fi 3786ac_ext=c 3787ac_cpp='$CPP $CPPFLAGS' 3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3790ac_compiler_gnu=$ac_cv_c_compiler_gnu 3791 3792 3793depcc="$CC" am_compiler_list= 3794 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3796$as_echo_n "checking dependency style of $depcc... " >&6; } 3797if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3798 $as_echo_n "(cached) " >&6 3799else 3800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3801 # We make a subdir and do the tests there. Otherwise we can end up 3802 # making bogus files that we don't know about and never remove. For 3803 # instance it was reported that on HP-UX the gcc test will end up 3804 # making a dummy file named 'D' -- because '-MD' means "put the output 3805 # in D". 3806 rm -rf conftest.dir 3807 mkdir conftest.dir 3808 # Copy depcomp to subdir because otherwise we won't find it if we're 3809 # using a relative directory. 3810 cp "$am_depcomp" conftest.dir 3811 cd conftest.dir 3812 # We will build objects and dependencies in a subdirectory because 3813 # it helps to detect inapplicable dependency modes. For instance 3814 # both Tru64's cc and ICC support -MD to output dependencies as a 3815 # side effect of compilation, but ICC will put the dependencies in 3816 # the current directory while Tru64 will put them in the object 3817 # directory. 3818 mkdir sub 3819 3820 am_cv_CC_dependencies_compiler_type=none 3821 if test "$am_compiler_list" = ""; then 3822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3823 fi 3824 am__universal=false 3825 case " $depcc " in #( 3826 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3827 esac 3828 3829 for depmode in $am_compiler_list; do 3830 # Setup a source with many dependencies, because some compilers 3831 # like to wrap large dependency lists on column 80 (with \), and 3832 # we should not choose a depcomp mode which is confused by this. 3833 # 3834 # We need to recreate these files for each test, as the compiler may 3835 # overwrite some of them when testing with obscure command lines. 3836 # This happens at least with the AIX C compiler. 3837 : > sub/conftest.c 3838 for i in 1 2 3 4 5 6; do 3839 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3840 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3841 # Solaris 10 /bin/sh. 3842 echo '/* dummy */' > sub/conftst$i.h 3843 done 3844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3845 3846 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3847 # mode. It turns out that the SunPro C++ compiler does not properly 3848 # handle '-M -o', and we need to detect this. Also, some Intel 3849 # versions had trouble with output in subdirs. 3850 am__obj=sub/conftest.${OBJEXT-o} 3851 am__minus_obj="-o $am__obj" 3852 case $depmode in 3853 gcc) 3854 # This depmode causes a compiler race in universal mode. 3855 test "$am__universal" = false || continue 3856 ;; 3857 nosideeffect) 3858 # After this tag, mechanisms are not by side-effect, so they'll 3859 # only be used when explicitly requested. 3860 if test "x$enable_dependency_tracking" = xyes; then 3861 continue 3862 else 3863 break 3864 fi 3865 ;; 3866 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3867 # This compiler won't grok '-c -o', but also, the minuso test has 3868 # not run yet. These depmodes are late enough in the game, and 3869 # so weak that their functioning should not be impacted. 3870 am__obj=conftest.${OBJEXT-o} 3871 am__minus_obj= 3872 ;; 3873 none) break ;; 3874 esac 3875 if depmode=$depmode \ 3876 source=sub/conftest.c object=$am__obj \ 3877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3878 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3879 >/dev/null 2>conftest.err && 3880 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3881 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3882 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3883 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3884 # icc doesn't choke on unknown options, it will just issue warnings 3885 # or remarks (even with -Werror). So we grep stderr for any message 3886 # that says an option was ignored or not supported. 3887 # When given -MP, icc 7.0 and 7.1 complain thusly: 3888 # icc: Command line warning: ignoring option '-M'; no argument required 3889 # The diagnosis changed in icc 8.0: 3890 # icc: Command line remark: option '-MP' not supported 3891 if (grep 'ignoring option' conftest.err || 3892 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3893 am_cv_CC_dependencies_compiler_type=$depmode 3894 break 3895 fi 3896 fi 3897 done 3898 3899 cd .. 3900 rm -rf conftest.dir 3901else 3902 am_cv_CC_dependencies_compiler_type=none 3903fi 3904 3905fi 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3907$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3908CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3909 3910 if 3911 test "x$enable_dependency_tracking" != xno \ 3912 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3913 am__fastdepCC_TRUE= 3914 am__fastdepCC_FALSE='#' 3915else 3916 am__fastdepCC_TRUE='#' 3917 am__fastdepCC_FALSE= 3918fi 3919 3920 3921 3922ac_ext=c 3923ac_cpp='$CPP $CPPFLAGS' 3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3926ac_compiler_gnu=$ac_cv_c_compiler_gnu 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3928$as_echo_n "checking how to run the C preprocessor... " >&6; } 3929# On Suns, sometimes $CPP names a directory. 3930if test -n "$CPP" && test -d "$CPP"; then 3931 CPP= 3932fi 3933if test -z "$CPP"; then 3934 if ${ac_cv_prog_CPP+:} false; then : 3935 $as_echo_n "(cached) " >&6 3936else 3937 # Double quotes because CPP needs to be expanded 3938 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3939 do 3940 ac_preproc_ok=false 3941for ac_c_preproc_warn_flag in '' yes 3942do 3943 # Use a header file that comes with gcc, so configuring glibc 3944 # with a fresh cross-compiler works. 3945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3946 # <limits.h> exists even on freestanding compilers. 3947 # On the NeXT, cc -E runs the code through the compiler's parser, 3948 # not just through cpp. "Syntax error" is here to catch this case. 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951#ifdef __STDC__ 3952# include <limits.h> 3953#else 3954# include <assert.h> 3955#endif 3956 Syntax error 3957_ACEOF 3958if ac_fn_c_try_cpp "$LINENO"; then : 3959 3960else 3961 # Broken: fails on valid input. 3962continue 3963fi 3964rm -f conftest.err conftest.i conftest.$ac_ext 3965 3966 # OK, works on sane cases. Now check whether nonexistent headers 3967 # can be detected and how. 3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3969/* end confdefs.h. */ 3970#include <ac_nonexistent.h> 3971_ACEOF 3972if ac_fn_c_try_cpp "$LINENO"; then : 3973 # Broken: success on invalid input. 3974continue 3975else 3976 # Passes both tests. 3977ac_preproc_ok=: 3978break 3979fi 3980rm -f conftest.err conftest.i conftest.$ac_ext 3981 3982done 3983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3984rm -f conftest.i conftest.err conftest.$ac_ext 3985if $ac_preproc_ok; then : 3986 break 3987fi 3988 3989 done 3990 ac_cv_prog_CPP=$CPP 3991 3992fi 3993 CPP=$ac_cv_prog_CPP 3994else 3995 ac_cv_prog_CPP=$CPP 3996fi 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3998$as_echo "$CPP" >&6; } 3999ac_preproc_ok=false 4000for ac_c_preproc_warn_flag in '' yes 4001do 4002 # Use a header file that comes with gcc, so configuring glibc 4003 # with a fresh cross-compiler works. 4004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4005 # <limits.h> exists even on freestanding compilers. 4006 # On the NeXT, cc -E runs the code through the compiler's parser, 4007 # not just through cpp. "Syntax error" is here to catch this case. 4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4009/* end confdefs.h. */ 4010#ifdef __STDC__ 4011# include <limits.h> 4012#else 4013# include <assert.h> 4014#endif 4015 Syntax error 4016_ACEOF 4017if ac_fn_c_try_cpp "$LINENO"; then : 4018 4019else 4020 # Broken: fails on valid input. 4021continue 4022fi 4023rm -f conftest.err conftest.i conftest.$ac_ext 4024 4025 # OK, works on sane cases. Now check whether nonexistent headers 4026 # can be detected and how. 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029#include <ac_nonexistent.h> 4030_ACEOF 4031if ac_fn_c_try_cpp "$LINENO"; then : 4032 # Broken: success on invalid input. 4033continue 4034else 4035 # Passes both tests. 4036ac_preproc_ok=: 4037break 4038fi 4039rm -f conftest.err conftest.i conftest.$ac_ext 4040 4041done 4042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4043rm -f conftest.i conftest.err conftest.$ac_ext 4044if $ac_preproc_ok; then : 4045 4046else 4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4049as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4050See \`config.log' for more details" "$LINENO" 5; } 4051fi 4052 4053ac_ext=c 4054ac_cpp='$CPP $CPPFLAGS' 4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4057ac_compiler_gnu=$ac_cv_c_compiler_gnu 4058 4059 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4061$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4062if ${ac_cv_path_GREP+:} false; then : 4063 $as_echo_n "(cached) " >&6 4064else 4065 if test -z "$GREP"; then 4066 ac_path_GREP_found=false 4067 # Loop through the user's path and test for each of PROGNAME-LIST 4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4070do 4071 IFS=$as_save_IFS 4072 test -z "$as_dir" && as_dir=. 4073 for ac_prog in grep ggrep; do 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4076 as_fn_executable_p "$ac_path_GREP" || continue 4077# Check for GNU ac_path_GREP and select it if it is found. 4078 # Check for GNU $ac_path_GREP 4079case `"$ac_path_GREP" --version 2>&1` in 4080*GNU*) 4081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4082*) 4083 ac_count=0 4084 $as_echo_n 0123456789 >"conftest.in" 4085 while : 4086 do 4087 cat "conftest.in" "conftest.in" >"conftest.tmp" 4088 mv "conftest.tmp" "conftest.in" 4089 cp "conftest.in" "conftest.nl" 4090 $as_echo 'GREP' >> "conftest.nl" 4091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4093 as_fn_arith $ac_count + 1 && ac_count=$as_val 4094 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4095 # Best one so far, save it but keep looking for a better one 4096 ac_cv_path_GREP="$ac_path_GREP" 4097 ac_path_GREP_max=$ac_count 4098 fi 4099 # 10*(2^10) chars as input seems more than enough 4100 test $ac_count -gt 10 && break 4101 done 4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4103esac 4104 4105 $ac_path_GREP_found && break 3 4106 done 4107 done 4108 done 4109IFS=$as_save_IFS 4110 if test -z "$ac_cv_path_GREP"; then 4111 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4112 fi 4113else 4114 ac_cv_path_GREP=$GREP 4115fi 4116 4117fi 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4119$as_echo "$ac_cv_path_GREP" >&6; } 4120 GREP="$ac_cv_path_GREP" 4121 4122 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4124$as_echo_n "checking for egrep... " >&6; } 4125if ${ac_cv_path_EGREP+:} false; then : 4126 $as_echo_n "(cached) " >&6 4127else 4128 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4129 then ac_cv_path_EGREP="$GREP -E" 4130 else 4131 if test -z "$EGREP"; then 4132 ac_path_EGREP_found=false 4133 # Loop through the user's path and test for each of PROGNAME-LIST 4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4136do 4137 IFS=$as_save_IFS 4138 test -z "$as_dir" && as_dir=. 4139 for ac_prog in egrep; do 4140 for ac_exec_ext in '' $ac_executable_extensions; do 4141 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4142 as_fn_executable_p "$ac_path_EGREP" || continue 4143# Check for GNU ac_path_EGREP and select it if it is found. 4144 # Check for GNU $ac_path_EGREP 4145case `"$ac_path_EGREP" --version 2>&1` in 4146*GNU*) 4147 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4148*) 4149 ac_count=0 4150 $as_echo_n 0123456789 >"conftest.in" 4151 while : 4152 do 4153 cat "conftest.in" "conftest.in" >"conftest.tmp" 4154 mv "conftest.tmp" "conftest.in" 4155 cp "conftest.in" "conftest.nl" 4156 $as_echo 'EGREP' >> "conftest.nl" 4157 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4159 as_fn_arith $ac_count + 1 && ac_count=$as_val 4160 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4161 # Best one so far, save it but keep looking for a better one 4162 ac_cv_path_EGREP="$ac_path_EGREP" 4163 ac_path_EGREP_max=$ac_count 4164 fi 4165 # 10*(2^10) chars as input seems more than enough 4166 test $ac_count -gt 10 && break 4167 done 4168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4169esac 4170 4171 $ac_path_EGREP_found && break 3 4172 done 4173 done 4174 done 4175IFS=$as_save_IFS 4176 if test -z "$ac_cv_path_EGREP"; then 4177 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4178 fi 4179else 4180 ac_cv_path_EGREP=$EGREP 4181fi 4182 4183 fi 4184fi 4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4186$as_echo "$ac_cv_path_EGREP" >&6; } 4187 EGREP="$ac_cv_path_EGREP" 4188 4189 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4191$as_echo_n "checking for ANSI C header files... " >&6; } 4192if ${ac_cv_header_stdc+:} false; then : 4193 $as_echo_n "(cached) " >&6 4194else 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197#include <stdlib.h> 4198#include <stdarg.h> 4199#include <string.h> 4200#include <float.h> 4201 4202int 4203main () 4204{ 4205 4206 ; 4207 return 0; 4208} 4209_ACEOF 4210if ac_fn_c_try_compile "$LINENO"; then : 4211 ac_cv_header_stdc=yes 4212else 4213 ac_cv_header_stdc=no 4214fi 4215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4216 4217if test $ac_cv_header_stdc = yes; then 4218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220/* end confdefs.h. */ 4221#include <string.h> 4222 4223_ACEOF 4224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4225 $EGREP "memchr" >/dev/null 2>&1; then : 4226 4227else 4228 ac_cv_header_stdc=no 4229fi 4230rm -f conftest* 4231 4232fi 4233 4234if test $ac_cv_header_stdc = yes; then 4235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238#include <stdlib.h> 4239 4240_ACEOF 4241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4242 $EGREP "free" >/dev/null 2>&1; then : 4243 4244else 4245 ac_cv_header_stdc=no 4246fi 4247rm -f conftest* 4248 4249fi 4250 4251if test $ac_cv_header_stdc = yes; then 4252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4253 if test "$cross_compiling" = yes; then : 4254 : 4255else 4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257/* end confdefs.h. */ 4258#include <ctype.h> 4259#include <stdlib.h> 4260#if ((' ' & 0x0FF) == 0x020) 4261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4263#else 4264# define ISLOWER(c) \ 4265 (('a' <= (c) && (c) <= 'i') \ 4266 || ('j' <= (c) && (c) <= 'r') \ 4267 || ('s' <= (c) && (c) <= 'z')) 4268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4269#endif 4270 4271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4272int 4273main () 4274{ 4275 int i; 4276 for (i = 0; i < 256; i++) 4277 if (XOR (islower (i), ISLOWER (i)) 4278 || toupper (i) != TOUPPER (i)) 4279 return 2; 4280 return 0; 4281} 4282_ACEOF 4283if ac_fn_c_try_run "$LINENO"; then : 4284 4285else 4286 ac_cv_header_stdc=no 4287fi 4288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4289 conftest.$ac_objext conftest.beam conftest.$ac_ext 4290fi 4291 4292fi 4293fi 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4295$as_echo "$ac_cv_header_stdc" >&6; } 4296if test $ac_cv_header_stdc = yes; then 4297 4298$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4299 4300fi 4301 4302# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4303for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4304 inttypes.h stdint.h unistd.h 4305do : 4306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4308" 4309if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4310 cat >>confdefs.h <<_ACEOF 4311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4312_ACEOF 4313 4314fi 4315 4316done 4317 4318 4319 4320 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4321if test "x$ac_cv_header_minix_config_h" = xyes; then : 4322 MINIX=yes 4323else 4324 MINIX= 4325fi 4326 4327 4328 if test "$MINIX" = yes; then 4329 4330$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4331 4332 4333$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4334 4335 4336$as_echo "#define _MINIX 1" >>confdefs.h 4337 4338 fi 4339 4340 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4342$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4343if ${ac_cv_safe_to_define___extensions__+:} false; then : 4344 $as_echo_n "(cached) " >&6 4345else 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4347/* end confdefs.h. */ 4348 4349# define __EXTENSIONS__ 1 4350 $ac_includes_default 4351int 4352main () 4353{ 4354 4355 ; 4356 return 0; 4357} 4358_ACEOF 4359if ac_fn_c_try_compile "$LINENO"; then : 4360 ac_cv_safe_to_define___extensions__=yes 4361else 4362 ac_cv_safe_to_define___extensions__=no 4363fi 4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4365fi 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4367$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4368 test $ac_cv_safe_to_define___extensions__ = yes && 4369 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4370 4371 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4372 4373 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4374 4375 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4376 4377 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4378 4379 4380 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4382$as_echo_n "checking whether ln -s works... " >&6; } 4383LN_S=$as_ln_s 4384if test "$LN_S" = "ln -s"; then 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4386$as_echo "yes" >&6; } 4387else 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4389$as_echo "no, using $LN_S" >&6; } 4390fi 4391 4392ac_ext=c 4393ac_cpp='$CPP $CPPFLAGS' 4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397if test -n "$ac_tool_prefix"; then 4398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4399set dummy ${ac_tool_prefix}gcc; ac_word=$2 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4401$as_echo_n "checking for $ac_word... " >&6; } 4402if ${ac_cv_prog_CC+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404else 4405 if test -n "$CC"; then 4406 ac_cv_prog_CC="$CC" # Let the user override the test. 4407else 4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4409for as_dir in $PATH 4410do 4411 IFS=$as_save_IFS 4412 test -z "$as_dir" && as_dir=. 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4415 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4417 break 2 4418 fi 4419done 4420 done 4421IFS=$as_save_IFS 4422 4423fi 4424fi 4425CC=$ac_cv_prog_CC 4426if test -n "$CC"; then 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4428$as_echo "$CC" >&6; } 4429else 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4431$as_echo "no" >&6; } 4432fi 4433 4434 4435fi 4436if test -z "$ac_cv_prog_CC"; then 4437 ac_ct_CC=$CC 4438 # Extract the first word of "gcc", so it can be a program name with args. 4439set dummy gcc; ac_word=$2 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4441$as_echo_n "checking for $ac_word... " >&6; } 4442if ${ac_cv_prog_ac_ct_CC+:} false; then : 4443 $as_echo_n "(cached) " >&6 4444else 4445 if test -n "$ac_ct_CC"; then 4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4447else 4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4449for as_dir in $PATH 4450do 4451 IFS=$as_save_IFS 4452 test -z "$as_dir" && as_dir=. 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4455 ac_cv_prog_ac_ct_CC="gcc" 4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4457 break 2 4458 fi 4459done 4460 done 4461IFS=$as_save_IFS 4462 4463fi 4464fi 4465ac_ct_CC=$ac_cv_prog_ac_ct_CC 4466if test -n "$ac_ct_CC"; then 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4468$as_echo "$ac_ct_CC" >&6; } 4469else 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4471$as_echo "no" >&6; } 4472fi 4473 4474 if test "x$ac_ct_CC" = x; then 4475 CC="" 4476 else 4477 case $cross_compiling:$ac_tool_warned in 4478yes:) 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4481ac_tool_warned=yes ;; 4482esac 4483 CC=$ac_ct_CC 4484 fi 4485else 4486 CC="$ac_cv_prog_CC" 4487fi 4488 4489if test -z "$CC"; then 4490 if test -n "$ac_tool_prefix"; then 4491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4492set dummy ${ac_tool_prefix}cc; ac_word=$2 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4494$as_echo_n "checking for $ac_word... " >&6; } 4495if ${ac_cv_prog_CC+:} false; then : 4496 $as_echo_n "(cached) " >&6 4497else 4498 if test -n "$CC"; then 4499 ac_cv_prog_CC="$CC" # Let the user override the test. 4500else 4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4502for as_dir in $PATH 4503do 4504 IFS=$as_save_IFS 4505 test -z "$as_dir" && as_dir=. 4506 for ac_exec_ext in '' $ac_executable_extensions; do 4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4508 ac_cv_prog_CC="${ac_tool_prefix}cc" 4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4510 break 2 4511 fi 4512done 4513 done 4514IFS=$as_save_IFS 4515 4516fi 4517fi 4518CC=$ac_cv_prog_CC 4519if test -n "$CC"; then 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4521$as_echo "$CC" >&6; } 4522else 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4524$as_echo "no" >&6; } 4525fi 4526 4527 4528 fi 4529fi 4530if test -z "$CC"; then 4531 # Extract the first word of "cc", so it can be a program name with args. 4532set dummy cc; ac_word=$2 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4534$as_echo_n "checking for $ac_word... " >&6; } 4535if ${ac_cv_prog_CC+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 if test -n "$CC"; then 4539 ac_cv_prog_CC="$CC" # Let the user override the test. 4540else 4541 ac_prog_rejected=no 4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4543for as_dir in $PATH 4544do 4545 IFS=$as_save_IFS 4546 test -z "$as_dir" && as_dir=. 4547 for ac_exec_ext in '' $ac_executable_extensions; do 4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4550 ac_prog_rejected=yes 4551 continue 4552 fi 4553 ac_cv_prog_CC="cc" 4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4555 break 2 4556 fi 4557done 4558 done 4559IFS=$as_save_IFS 4560 4561if test $ac_prog_rejected = yes; then 4562 # We found a bogon in the path, so make sure we never use it. 4563 set dummy $ac_cv_prog_CC 4564 shift 4565 if test $# != 0; then 4566 # We chose a different compiler from the bogus one. 4567 # However, it has the same basename, so the bogon will be chosen 4568 # first if we set CC to just the basename; use the full file name. 4569 shift 4570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4571 fi 4572fi 4573fi 4574fi 4575CC=$ac_cv_prog_CC 4576if test -n "$CC"; then 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4578$as_echo "$CC" >&6; } 4579else 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4581$as_echo "no" >&6; } 4582fi 4583 4584 4585fi 4586if test -z "$CC"; then 4587 if test -n "$ac_tool_prefix"; then 4588 for ac_prog in cl.exe 4589 do 4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4591set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4593$as_echo_n "checking for $ac_word... " >&6; } 4594if ${ac_cv_prog_CC+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 if test -n "$CC"; then 4598 ac_cv_prog_CC="$CC" # Let the user override the test. 4599else 4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH 4602do 4603 IFS=$as_save_IFS 4604 test -z "$as_dir" && as_dir=. 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4609 break 2 4610 fi 4611done 4612 done 4613IFS=$as_save_IFS 4614 4615fi 4616fi 4617CC=$ac_cv_prog_CC 4618if test -n "$CC"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4620$as_echo "$CC" >&6; } 4621else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623$as_echo "no" >&6; } 4624fi 4625 4626 4627 test -n "$CC" && break 4628 done 4629fi 4630if test -z "$CC"; then 4631 ac_ct_CC=$CC 4632 for ac_prog in cl.exe 4633do 4634 # Extract the first word of "$ac_prog", so it can be a program name with args. 4635set dummy $ac_prog; ac_word=$2 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4637$as_echo_n "checking for $ac_word... " >&6; } 4638if ${ac_cv_prog_ac_ct_CC+:} false; then : 4639 $as_echo_n "(cached) " >&6 4640else 4641 if test -n "$ac_ct_CC"; then 4642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4643else 4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4645for as_dir in $PATH 4646do 4647 IFS=$as_save_IFS 4648 test -z "$as_dir" && as_dir=. 4649 for ac_exec_ext in '' $ac_executable_extensions; do 4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4651 ac_cv_prog_ac_ct_CC="$ac_prog" 4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4653 break 2 4654 fi 4655done 4656 done 4657IFS=$as_save_IFS 4658 4659fi 4660fi 4661ac_ct_CC=$ac_cv_prog_ac_ct_CC 4662if test -n "$ac_ct_CC"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4664$as_echo "$ac_ct_CC" >&6; } 4665else 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667$as_echo "no" >&6; } 4668fi 4669 4670 4671 test -n "$ac_ct_CC" && break 4672done 4673 4674 if test "x$ac_ct_CC" = x; then 4675 CC="" 4676 else 4677 case $cross_compiling:$ac_tool_warned in 4678yes:) 4679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4681ac_tool_warned=yes ;; 4682esac 4683 CC=$ac_ct_CC 4684 fi 4685fi 4686 4687fi 4688 4689 4690test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4692as_fn_error $? "no acceptable C compiler found in \$PATH 4693See \`config.log' for more details" "$LINENO" 5; } 4694 4695# Provide some information about the compiler. 4696$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4697set X $ac_compile 4698ac_compiler=$2 4699for ac_option in --version -v -V -qversion; do 4700 { { ac_try="$ac_compiler $ac_option >&5" 4701case "(($ac_try" in 4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4703 *) ac_try_echo=$ac_try;; 4704esac 4705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4706$as_echo "$ac_try_echo"; } >&5 4707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4708 ac_status=$? 4709 if test -s conftest.err; then 4710 sed '10a\ 4711... rest of stderr output deleted ... 4712 10q' conftest.err >conftest.er1 4713 cat conftest.er1 >&5 4714 fi 4715 rm -f conftest.er1 conftest.err 4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4717 test $ac_status = 0; } 4718done 4719 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4721$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4722if ${ac_cv_c_compiler_gnu+:} false; then : 4723 $as_echo_n "(cached) " >&6 4724else 4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4726/* end confdefs.h. */ 4727 4728int 4729main () 4730{ 4731#ifndef __GNUC__ 4732 choke me 4733#endif 4734 4735 ; 4736 return 0; 4737} 4738_ACEOF 4739if ac_fn_c_try_compile "$LINENO"; then : 4740 ac_compiler_gnu=yes 4741else 4742 ac_compiler_gnu=no 4743fi 4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4745ac_cv_c_compiler_gnu=$ac_compiler_gnu 4746 4747fi 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4749$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4750if test $ac_compiler_gnu = yes; then 4751 GCC=yes 4752else 4753 GCC= 4754fi 4755ac_test_CFLAGS=${CFLAGS+set} 4756ac_save_CFLAGS=$CFLAGS 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4758$as_echo_n "checking whether $CC accepts -g... " >&6; } 4759if ${ac_cv_prog_cc_g+:} false; then : 4760 $as_echo_n "(cached) " >&6 4761else 4762 ac_save_c_werror_flag=$ac_c_werror_flag 4763 ac_c_werror_flag=yes 4764 ac_cv_prog_cc_g=no 4765 CFLAGS="-g" 4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4767/* end confdefs.h. */ 4768 4769int 4770main () 4771{ 4772 4773 ; 4774 return 0; 4775} 4776_ACEOF 4777if ac_fn_c_try_compile "$LINENO"; then : 4778 ac_cv_prog_cc_g=yes 4779else 4780 CFLAGS="" 4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4782/* end confdefs.h. */ 4783 4784int 4785main () 4786{ 4787 4788 ; 4789 return 0; 4790} 4791_ACEOF 4792if ac_fn_c_try_compile "$LINENO"; then : 4793 4794else 4795 ac_c_werror_flag=$ac_save_c_werror_flag 4796 CFLAGS="-g" 4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798/* end confdefs.h. */ 4799 4800int 4801main () 4802{ 4803 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808if ac_fn_c_try_compile "$LINENO"; then : 4809 ac_cv_prog_cc_g=yes 4810fi 4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4812fi 4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4814fi 4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4816 ac_c_werror_flag=$ac_save_c_werror_flag 4817fi 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4819$as_echo "$ac_cv_prog_cc_g" >&6; } 4820if test "$ac_test_CFLAGS" = set; then 4821 CFLAGS=$ac_save_CFLAGS 4822elif test $ac_cv_prog_cc_g = yes; then 4823 if test "$GCC" = yes; then 4824 CFLAGS="-g -O2" 4825 else 4826 CFLAGS="-g" 4827 fi 4828else 4829 if test "$GCC" = yes; then 4830 CFLAGS="-O2" 4831 else 4832 CFLAGS= 4833 fi 4834fi 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4836$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4837if ${ac_cv_prog_cc_c89+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839else 4840 ac_cv_prog_cc_c89=no 4841ac_save_CC=$CC 4842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843/* end confdefs.h. */ 4844#include <stdarg.h> 4845#include <stdio.h> 4846struct stat; 4847/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4848struct buf { int x; }; 4849FILE * (*rcsopen) (struct buf *, struct stat *, int); 4850static char *e (p, i) 4851 char **p; 4852 int i; 4853{ 4854 return p[i]; 4855} 4856static char *f (char * (*g) (char **, int), char **p, ...) 4857{ 4858 char *s; 4859 va_list v; 4860 va_start (v,p); 4861 s = g (p, va_arg (v,int)); 4862 va_end (v); 4863 return s; 4864} 4865 4866/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4867 function prototypes and stuff, but not '\xHH' hex character constants. 4868 These don't provoke an error unfortunately, instead are silently treated 4869 as 'x'. The following induces an error, until -std is added to get 4870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4871 array size at least. It's necessary to write '\x00'==0 to get something 4872 that's true only with -std. */ 4873int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4874 4875/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4876 inside strings and character constants. */ 4877#define FOO(x) 'x' 4878int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4879 4880int test (int i, double x); 4881struct s1 {int (*f) (int a);}; 4882struct s2 {int (*f) (double a);}; 4883int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4884int argc; 4885char **argv; 4886int 4887main () 4888{ 4889return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4890 ; 4891 return 0; 4892} 4893_ACEOF 4894for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4896do 4897 CC="$ac_save_CC $ac_arg" 4898 if ac_fn_c_try_compile "$LINENO"; then : 4899 ac_cv_prog_cc_c89=$ac_arg 4900fi 4901rm -f core conftest.err conftest.$ac_objext 4902 test "x$ac_cv_prog_cc_c89" != "xno" && break 4903done 4904rm -f conftest.$ac_ext 4905CC=$ac_save_CC 4906 4907fi 4908# AC_CACHE_VAL 4909case "x$ac_cv_prog_cc_c89" in 4910 x) 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4912$as_echo "none needed" >&6; } ;; 4913 xno) 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4915$as_echo "unsupported" >&6; } ;; 4916 *) 4917 CC="$CC $ac_cv_prog_cc_c89" 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4919$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4920esac 4921if test "x$ac_cv_prog_cc_c89" != xno; then : 4922 4923fi 4924 4925ac_ext=c 4926ac_cpp='$CPP $CPPFLAGS' 4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4929ac_compiler_gnu=$ac_cv_c_compiler_gnu 4930 4931ac_ext=c 4932ac_cpp='$CPP $CPPFLAGS' 4933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4935ac_compiler_gnu=$ac_cv_c_compiler_gnu 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4937$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4938if ${am_cv_prog_cc_c_o+:} false; then : 4939 $as_echo_n "(cached) " >&6 4940else 4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4942/* end confdefs.h. */ 4943 4944int 4945main () 4946{ 4947 4948 ; 4949 return 0; 4950} 4951_ACEOF 4952 # Make sure it works both with $CC and with simple cc. 4953 # Following AC_PROG_CC_C_O, we do the test twice because some 4954 # compilers refuse to overwrite an existing .o file with -o, 4955 # though they will create one. 4956 am_cv_prog_cc_c_o=yes 4957 for am_i in 1 2; do 4958 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4959 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4960 ac_status=$? 4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 (exit $ac_status); } \ 4963 && test -f conftest2.$ac_objext; then 4964 : OK 4965 else 4966 am_cv_prog_cc_c_o=no 4967 break 4968 fi 4969 done 4970 rm -f core conftest* 4971 unset am_i 4972fi 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4974$as_echo "$am_cv_prog_cc_c_o" >&6; } 4975if test "$am_cv_prog_cc_c_o" != yes; then 4976 # Losing compiler, so override with the script. 4977 # FIXME: It is wrong to rewrite CC. 4978 # But if we don't then we get into trouble of one sort or another. 4979 # A longer-term fix would be to have automake use am__CC in this case, 4980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4981 CC="$am_aux_dir/compile $CC" 4982fi 4983ac_ext=c 4984ac_cpp='$CPP $CPPFLAGS' 4985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4987ac_compiler_gnu=$ac_cv_c_compiler_gnu 4988 4989 4990depcc="$CC" am_compiler_list= 4991 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4993$as_echo_n "checking dependency style of $depcc... " >&6; } 4994if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4998 # We make a subdir and do the tests there. Otherwise we can end up 4999 # making bogus files that we don't know about and never remove. For 5000 # instance it was reported that on HP-UX the gcc test will end up 5001 # making a dummy file named 'D' -- because '-MD' means "put the output 5002 # in D". 5003 rm -rf conftest.dir 5004 mkdir conftest.dir 5005 # Copy depcomp to subdir because otherwise we won't find it if we're 5006 # using a relative directory. 5007 cp "$am_depcomp" conftest.dir 5008 cd conftest.dir 5009 # We will build objects and dependencies in a subdirectory because 5010 # it helps to detect inapplicable dependency modes. For instance 5011 # both Tru64's cc and ICC support -MD to output dependencies as a 5012 # side effect of compilation, but ICC will put the dependencies in 5013 # the current directory while Tru64 will put them in the object 5014 # directory. 5015 mkdir sub 5016 5017 am_cv_CC_dependencies_compiler_type=none 5018 if test "$am_compiler_list" = ""; then 5019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5020 fi 5021 am__universal=false 5022 case " $depcc " in #( 5023 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5024 esac 5025 5026 for depmode in $am_compiler_list; do 5027 # Setup a source with many dependencies, because some compilers 5028 # like to wrap large dependency lists on column 80 (with \), and 5029 # we should not choose a depcomp mode which is confused by this. 5030 # 5031 # We need to recreate these files for each test, as the compiler may 5032 # overwrite some of them when testing with obscure command lines. 5033 # This happens at least with the AIX C compiler. 5034 : > sub/conftest.c 5035 for i in 1 2 3 4 5 6; do 5036 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5037 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5038 # Solaris 10 /bin/sh. 5039 echo '/* dummy */' > sub/conftst$i.h 5040 done 5041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5042 5043 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5044 # mode. It turns out that the SunPro C++ compiler does not properly 5045 # handle '-M -o', and we need to detect this. Also, some Intel 5046 # versions had trouble with output in subdirs. 5047 am__obj=sub/conftest.${OBJEXT-o} 5048 am__minus_obj="-o $am__obj" 5049 case $depmode in 5050 gcc) 5051 # This depmode causes a compiler race in universal mode. 5052 test "$am__universal" = false || continue 5053 ;; 5054 nosideeffect) 5055 # After this tag, mechanisms are not by side-effect, so they'll 5056 # only be used when explicitly requested. 5057 if test "x$enable_dependency_tracking" = xyes; then 5058 continue 5059 else 5060 break 5061 fi 5062 ;; 5063 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5064 # This compiler won't grok '-c -o', but also, the minuso test has 5065 # not run yet. These depmodes are late enough in the game, and 5066 # so weak that their functioning should not be impacted. 5067 am__obj=conftest.${OBJEXT-o} 5068 am__minus_obj= 5069 ;; 5070 none) break ;; 5071 esac 5072 if depmode=$depmode \ 5073 source=sub/conftest.c object=$am__obj \ 5074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5075 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5076 >/dev/null 2>conftest.err && 5077 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5079 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5081 # icc doesn't choke on unknown options, it will just issue warnings 5082 # or remarks (even with -Werror). So we grep stderr for any message 5083 # that says an option was ignored or not supported. 5084 # When given -MP, icc 7.0 and 7.1 complain thusly: 5085 # icc: Command line warning: ignoring option '-M'; no argument required 5086 # The diagnosis changed in icc 8.0: 5087 # icc: Command line remark: option '-MP' not supported 5088 if (grep 'ignoring option' conftest.err || 5089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5090 am_cv_CC_dependencies_compiler_type=$depmode 5091 break 5092 fi 5093 fi 5094 done 5095 5096 cd .. 5097 rm -rf conftest.dir 5098else 5099 am_cv_CC_dependencies_compiler_type=none 5100fi 5101 5102fi 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5104$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5105CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5106 5107 if 5108 test "x$enable_dependency_tracking" != xno \ 5109 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5110 am__fastdepCC_TRUE= 5111 am__fastdepCC_FALSE='#' 5112else 5113 am__fastdepCC_TRUE='#' 5114 am__fastdepCC_FALSE= 5115fi 5116 5117 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5119$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5120if ${ac_cv_prog_cc_c99+:} false; then : 5121 $as_echo_n "(cached) " >&6 5122else 5123 ac_cv_prog_cc_c99=no 5124ac_save_CC=$CC 5125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126/* end confdefs.h. */ 5127#include <stdarg.h> 5128#include <stdbool.h> 5129#include <stdlib.h> 5130#include <wchar.h> 5131#include <stdio.h> 5132 5133// Check varargs macros. These examples are taken from C99 6.10.3.5. 5134#define debug(...) fprintf (stderr, __VA_ARGS__) 5135#define showlist(...) puts (#__VA_ARGS__) 5136#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5137static void 5138test_varargs_macros (void) 5139{ 5140 int x = 1234; 5141 int y = 5678; 5142 debug ("Flag"); 5143 debug ("X = %d\n", x); 5144 showlist (The first, second, and third items.); 5145 report (x>y, "x is %d but y is %d", x, y); 5146} 5147 5148// Check long long types. 5149#define BIG64 18446744073709551615ull 5150#define BIG32 4294967295ul 5151#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5152#if !BIG_OK 5153 your preprocessor is broken; 5154#endif 5155#if BIG_OK 5156#else 5157 your preprocessor is broken; 5158#endif 5159static long long int bignum = -9223372036854775807LL; 5160static unsigned long long int ubignum = BIG64; 5161 5162struct incomplete_array 5163{ 5164 int datasize; 5165 double data[]; 5166}; 5167 5168struct named_init { 5169 int number; 5170 const wchar_t *name; 5171 double average; 5172}; 5173 5174typedef const char *ccp; 5175 5176static inline int 5177test_restrict (ccp restrict text) 5178{ 5179 // See if C++-style comments work. 5180 // Iterate through items via the restricted pointer. 5181 // Also check for declarations in for loops. 5182 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5183 continue; 5184 return 0; 5185} 5186 5187// Check varargs and va_copy. 5188static void 5189test_varargs (const char *format, ...) 5190{ 5191 va_list args; 5192 va_start (args, format); 5193 va_list args_copy; 5194 va_copy (args_copy, args); 5195 5196 const char *str; 5197 int number; 5198 float fnumber; 5199 5200 while (*format) 5201 { 5202 switch (*format++) 5203 { 5204 case 's': // string 5205 str = va_arg (args_copy, const char *); 5206 break; 5207 case 'd': // int 5208 number = va_arg (args_copy, int); 5209 break; 5210 case 'f': // float 5211 fnumber = va_arg (args_copy, double); 5212 break; 5213 default: 5214 break; 5215 } 5216 } 5217 va_end (args_copy); 5218 va_end (args); 5219} 5220 5221int 5222main () 5223{ 5224 5225 // Check bool. 5226 _Bool success = false; 5227 5228 // Check restrict. 5229 if (test_restrict ("String literal") == 0) 5230 success = true; 5231 char *restrict newvar = "Another string"; 5232 5233 // Check varargs. 5234 test_varargs ("s, d' f .", "string", 65, 34.234); 5235 test_varargs_macros (); 5236 5237 // Check flexible array members. 5238 struct incomplete_array *ia = 5239 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5240 ia->datasize = 10; 5241 for (int i = 0; i < ia->datasize; ++i) 5242 ia->data[i] = i * 1.234; 5243 5244 // Check named initializers. 5245 struct named_init ni = { 5246 .number = 34, 5247 .name = L"Test wide string", 5248 .average = 543.34343, 5249 }; 5250 5251 ni.number = 58; 5252 5253 int dynamic_array[ni.number]; 5254 dynamic_array[ni.number - 1] = 543; 5255 5256 // work around unused variable warnings 5257 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5258 || dynamic_array[ni.number - 1] != 543); 5259 5260 ; 5261 return 0; 5262} 5263_ACEOF 5264for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5265do 5266 CC="$ac_save_CC $ac_arg" 5267 if ac_fn_c_try_compile "$LINENO"; then : 5268 ac_cv_prog_cc_c99=$ac_arg 5269fi 5270rm -f core conftest.err conftest.$ac_objext 5271 test "x$ac_cv_prog_cc_c99" != "xno" && break 5272done 5273rm -f conftest.$ac_ext 5274CC=$ac_save_CC 5275 5276fi 5277# AC_CACHE_VAL 5278case "x$ac_cv_prog_cc_c99" in 5279 x) 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5281$as_echo "none needed" >&6; } ;; 5282 xno) 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5284$as_echo "unsupported" >&6; } ;; 5285 *) 5286 CC="$CC $ac_cv_prog_cc_c99" 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5288$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5289esac 5290if test "x$ac_cv_prog_cc_c99" != xno; then : 5291 5292fi 5293 5294 5295for ac_prog in ps 5296do 5297 # Extract the first word of "$ac_prog", so it can be a program name with args. 5298set dummy $ac_prog; ac_word=$2 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5300$as_echo_n "checking for $ac_word... " >&6; } 5301if ${ac_cv_path_PS+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 case $PS in 5305 [\\/]* | ?:[\\/]*) 5306 ac_cv_path_PS="$PS" # Let the user override the test with a path. 5307 ;; 5308 *) 5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5310for as_dir in $LPATH 5311do 5312 IFS=$as_save_IFS 5313 test -z "$as_dir" && as_dir=. 5314 for ac_exec_ext in '' $ac_executable_extensions; do 5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5316 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext" 5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5318 break 2 5319 fi 5320done 5321 done 5322IFS=$as_save_IFS 5323 5324 ;; 5325esac 5326fi 5327PS=$ac_cv_path_PS 5328if test -n "$PS"; then 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5 5330$as_echo "$PS" >&6; } 5331else 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5333$as_echo "no" >&6; } 5334fi 5335 5336 5337 test -n "$PS" && break 5338done 5339test -n "$PS" || PS="ps" 5340 5341for ac_prog in w 5342do 5343 # Extract the first word of "$ac_prog", so it can be a program name with args. 5344set dummy $ac_prog; ac_word=$2 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5346$as_echo_n "checking for $ac_word... " >&6; } 5347if ${ac_cv_path_W+:} false; then : 5348 $as_echo_n "(cached) " >&6 5349else 5350 case $W in 5351 [\\/]* | ?:[\\/]*) 5352 ac_cv_path_W="$W" # Let the user override the test with a path. 5353 ;; 5354 *) 5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356for as_dir in $LPATH 5357do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5362 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370 ;; 5371esac 5372fi 5373W=$ac_cv_path_W 5374if test -n "$W"; then 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W" >&5 5376$as_echo "$W" >&6; } 5377else 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5379$as_echo "no" >&6; } 5380fi 5381 5382 5383 test -n "$W" && break 5384done 5385test -n "$W" || W="w" 5386 5387case `pwd` in 5388 *\ * | *\ *) 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5390$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5391esac 5392 5393 5394 5395macro_version='2.4.6' 5396macro_revision='2.4.6' 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410ltmain=$ac_aux_dir/ltmain.sh 5411 5412# Make sure we can run config.sub. 5413$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5414 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5415 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5417$as_echo_n "checking build system type... " >&6; } 5418if ${ac_cv_build+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 ac_build_alias=$build_alias 5422test "x$ac_build_alias" = x && 5423 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5424test "x$ac_build_alias" = x && 5425 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5426ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5427 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5428 5429fi 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5431$as_echo "$ac_cv_build" >&6; } 5432case $ac_cv_build in 5433*-*-*) ;; 5434*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5435esac 5436build=$ac_cv_build 5437ac_save_IFS=$IFS; IFS='-' 5438set x $ac_cv_build 5439shift 5440build_cpu=$1 5441build_vendor=$2 5442shift; shift 5443# Remember, the first character of IFS is used to create $*, 5444# except with old shells: 5445build_os=$* 5446IFS=$ac_save_IFS 5447case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5448 5449 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5451$as_echo_n "checking host system type... " >&6; } 5452if ${ac_cv_host+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 if test "x$host_alias" = x; then 5456 ac_cv_host=$ac_cv_build 5457else 5458 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5460fi 5461 5462fi 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5464$as_echo "$ac_cv_host" >&6; } 5465case $ac_cv_host in 5466*-*-*) ;; 5467*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5468esac 5469host=$ac_cv_host 5470ac_save_IFS=$IFS; IFS='-' 5471set x $ac_cv_host 5472shift 5473host_cpu=$1 5474host_vendor=$2 5475shift; shift 5476# Remember, the first character of IFS is used to create $*, 5477# except with old shells: 5478host_os=$* 5479IFS=$ac_save_IFS 5480case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5481 5482 5483# Backslashify metacharacters that are still active within 5484# double-quoted strings. 5485sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5486 5487# Same as above, but do not quote variable references. 5488double_quote_subst='s/\(["`\\]\)/\\\1/g' 5489 5490# Sed substitution to delay expansion of an escaped shell variable in a 5491# double_quote_subst'ed string. 5492delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5493 5494# Sed substitution to delay expansion of an escaped single quote. 5495delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5496 5497# Sed substitution to avoid accidental globbing in evaled expressions 5498no_glob_subst='s/\*/\\\*/g' 5499 5500ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5501ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5502ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5503 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5505$as_echo_n "checking how to print strings... " >&6; } 5506# Test print first, because it will be a builtin if present. 5507if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5508 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5509 ECHO='print -r --' 5510elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5511 ECHO='printf %s\n' 5512else 5513 # Use this function as a fallback that always works. 5514 func_fallback_echo () 5515 { 5516 eval 'cat <<_LTECHO_EOF 5517$1 5518_LTECHO_EOF' 5519 } 5520 ECHO='func_fallback_echo' 5521fi 5522 5523# func_echo_all arg... 5524# Invoke $ECHO with all args, space-separated. 5525func_echo_all () 5526{ 5527 $ECHO "" 5528} 5529 5530case $ECHO in 5531 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5532$as_echo "printf" >&6; } ;; 5533 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5534$as_echo "print -r" >&6; } ;; 5535 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5536$as_echo "cat" >&6; } ;; 5537esac 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5553$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5554if ${ac_cv_path_SED+:} false; then : 5555 $as_echo_n "(cached) " >&6 5556else 5557 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5558 for ac_i in 1 2 3 4 5 6 7; do 5559 ac_script="$ac_script$as_nl$ac_script" 5560 done 5561 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5562 { ac_script=; unset ac_script;} 5563 if test -z "$SED"; then 5564 ac_path_SED_found=false 5565 # Loop through the user's path and test for each of PROGNAME-LIST 5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5567for as_dir in $PATH 5568do 5569 IFS=$as_save_IFS 5570 test -z "$as_dir" && as_dir=. 5571 for ac_prog in sed gsed; do 5572 for ac_exec_ext in '' $ac_executable_extensions; do 5573 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5574 as_fn_executable_p "$ac_path_SED" || continue 5575# Check for GNU ac_path_SED and select it if it is found. 5576 # Check for GNU $ac_path_SED 5577case `"$ac_path_SED" --version 2>&1` in 5578*GNU*) 5579 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5580*) 5581 ac_count=0 5582 $as_echo_n 0123456789 >"conftest.in" 5583 while : 5584 do 5585 cat "conftest.in" "conftest.in" >"conftest.tmp" 5586 mv "conftest.tmp" "conftest.in" 5587 cp "conftest.in" "conftest.nl" 5588 $as_echo '' >> "conftest.nl" 5589 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5591 as_fn_arith $ac_count + 1 && ac_count=$as_val 5592 if test $ac_count -gt ${ac_path_SED_max-0}; then 5593 # Best one so far, save it but keep looking for a better one 5594 ac_cv_path_SED="$ac_path_SED" 5595 ac_path_SED_max=$ac_count 5596 fi 5597 # 10*(2^10) chars as input seems more than enough 5598 test $ac_count -gt 10 && break 5599 done 5600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5601esac 5602 5603 $ac_path_SED_found && break 3 5604 done 5605 done 5606 done 5607IFS=$as_save_IFS 5608 if test -z "$ac_cv_path_SED"; then 5609 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5610 fi 5611else 5612 ac_cv_path_SED=$SED 5613fi 5614 5615fi 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5617$as_echo "$ac_cv_path_SED" >&6; } 5618 SED="$ac_cv_path_SED" 5619 rm -f conftest.sed 5620 5621test -z "$SED" && SED=sed 5622Xsed="$SED -e 1s/^X//" 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5635$as_echo_n "checking for fgrep... " >&6; } 5636if ${ac_cv_path_FGREP+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638else 5639 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5640 then ac_cv_path_FGREP="$GREP -F" 5641 else 5642 if test -z "$FGREP"; then 5643 ac_path_FGREP_found=false 5644 # Loop through the user's path and test for each of PROGNAME-LIST 5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5646for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5647do 5648 IFS=$as_save_IFS 5649 test -z "$as_dir" && as_dir=. 5650 for ac_prog in fgrep; do 5651 for ac_exec_ext in '' $ac_executable_extensions; do 5652 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5653 as_fn_executable_p "$ac_path_FGREP" || continue 5654# Check for GNU ac_path_FGREP and select it if it is found. 5655 # Check for GNU $ac_path_FGREP 5656case `"$ac_path_FGREP" --version 2>&1` in 5657*GNU*) 5658 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5659*) 5660 ac_count=0 5661 $as_echo_n 0123456789 >"conftest.in" 5662 while : 5663 do 5664 cat "conftest.in" "conftest.in" >"conftest.tmp" 5665 mv "conftest.tmp" "conftest.in" 5666 cp "conftest.in" "conftest.nl" 5667 $as_echo 'FGREP' >> "conftest.nl" 5668 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5670 as_fn_arith $ac_count + 1 && ac_count=$as_val 5671 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5672 # Best one so far, save it but keep looking for a better one 5673 ac_cv_path_FGREP="$ac_path_FGREP" 5674 ac_path_FGREP_max=$ac_count 5675 fi 5676 # 10*(2^10) chars as input seems more than enough 5677 test $ac_count -gt 10 && break 5678 done 5679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5680esac 5681 5682 $ac_path_FGREP_found && break 3 5683 done 5684 done 5685 done 5686IFS=$as_save_IFS 5687 if test -z "$ac_cv_path_FGREP"; then 5688 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5689 fi 5690else 5691 ac_cv_path_FGREP=$FGREP 5692fi 5693 5694 fi 5695fi 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5697$as_echo "$ac_cv_path_FGREP" >&6; } 5698 FGREP="$ac_cv_path_FGREP" 5699 5700 5701test -z "$GREP" && GREP=grep 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721# Check whether --with-gnu-ld was given. 5722if test "${with_gnu_ld+set}" = set; then : 5723 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5724else 5725 with_gnu_ld=no 5726fi 5727 5728ac_prog=ld 5729if test yes = "$GCC"; then 5730 # Check if gcc -print-prog-name=ld gives a path. 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5732$as_echo_n "checking for ld used by $CC... " >&6; } 5733 case $host in 5734 *-*-mingw*) 5735 # gcc leaves a trailing carriage return, which upsets mingw 5736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5737 *) 5738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5739 esac 5740 case $ac_prog in 5741 # Accept absolute paths. 5742 [\\/]* | ?:[\\/]*) 5743 re_direlt='/[^/][^/]*/\.\./' 5744 # Canonicalize the pathname of ld 5745 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5746 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5747 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5748 done 5749 test -z "$LD" && LD=$ac_prog 5750 ;; 5751 "") 5752 # If it fails, then pretend we aren't using GCC. 5753 ac_prog=ld 5754 ;; 5755 *) 5756 # If it is relative, then search for the first ld in PATH. 5757 with_gnu_ld=unknown 5758 ;; 5759 esac 5760elif test yes = "$with_gnu_ld"; then 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5762$as_echo_n "checking for GNU ld... " >&6; } 5763else 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5765$as_echo_n "checking for non-GNU ld... " >&6; } 5766fi 5767if ${lt_cv_path_LD+:} false; then : 5768 $as_echo_n "(cached) " >&6 5769else 5770 if test -z "$LD"; then 5771 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5772 for ac_dir in $PATH; do 5773 IFS=$lt_save_ifs 5774 test -z "$ac_dir" && ac_dir=. 5775 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5776 lt_cv_path_LD=$ac_dir/$ac_prog 5777 # Check to see if the program is GNU ld. I'd rather use --version, 5778 # but apparently some variants of GNU ld only accept -v. 5779 # Break only if it was the GNU/non-GNU ld that we prefer. 5780 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5781 *GNU* | *'with BFD'*) 5782 test no != "$with_gnu_ld" && break 5783 ;; 5784 *) 5785 test yes != "$with_gnu_ld" && break 5786 ;; 5787 esac 5788 fi 5789 done 5790 IFS=$lt_save_ifs 5791else 5792 lt_cv_path_LD=$LD # Let the user override the test with a path. 5793fi 5794fi 5795 5796LD=$lt_cv_path_LD 5797if test -n "$LD"; then 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5799$as_echo "$LD" >&6; } 5800else 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5802$as_echo "no" >&6; } 5803fi 5804test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5806$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5807if ${lt_cv_prog_gnu_ld+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5811case `$LD -v 2>&1 </dev/null` in 5812*GNU* | *'with BFD'*) 5813 lt_cv_prog_gnu_ld=yes 5814 ;; 5815*) 5816 lt_cv_prog_gnu_ld=no 5817 ;; 5818esac 5819fi 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5821$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5822with_gnu_ld=$lt_cv_prog_gnu_ld 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5833$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5834if ${lt_cv_path_NM+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 if test -n "$NM"; then 5838 # Let the user override the test. 5839 lt_cv_path_NM=$NM 5840else 5841 lt_nm_to_check=${ac_tool_prefix}nm 5842 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5843 lt_nm_to_check="$lt_nm_to_check nm" 5844 fi 5845 for lt_tmp_nm in $lt_nm_to_check; do 5846 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5847 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5848 IFS=$lt_save_ifs 5849 test -z "$ac_dir" && ac_dir=. 5850 tmp_nm=$ac_dir/$lt_tmp_nm 5851 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5852 # Check to see if the nm accepts a BSD-compat flag. 5853 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5854 # nm: unknown option "B" ignored 5855 # Tru64's nm complains that /dev/null is an invalid object file 5856 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5857 case $build_os in 5858 mingw*) lt_bad_file=conftest.nm/nofile ;; 5859 *) lt_bad_file=/dev/null ;; 5860 esac 5861 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5862 *$lt_bad_file* | *'Invalid file or object type'*) 5863 lt_cv_path_NM="$tmp_nm -B" 5864 break 2 5865 ;; 5866 *) 5867 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5868 */dev/null*) 5869 lt_cv_path_NM="$tmp_nm -p" 5870 break 2 5871 ;; 5872 *) 5873 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5874 continue # so that we can try to find one that supports BSD flags 5875 ;; 5876 esac 5877 ;; 5878 esac 5879 fi 5880 done 5881 IFS=$lt_save_ifs 5882 done 5883 : ${lt_cv_path_NM=no} 5884fi 5885fi 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5887$as_echo "$lt_cv_path_NM" >&6; } 5888if test no != "$lt_cv_path_NM"; then 5889 NM=$lt_cv_path_NM 5890else 5891 # Didn't find any BSD compatible name lister, look for dumpbin. 5892 if test -n "$DUMPBIN"; then : 5893 # Let the user override the test. 5894 else 5895 if test -n "$ac_tool_prefix"; then 5896 for ac_prog in dumpbin "link -dump" 5897 do 5898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5899set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5901$as_echo_n "checking for $ac_word... " >&6; } 5902if ${ac_cv_prog_DUMPBIN+:} false; then : 5903 $as_echo_n "(cached) " >&6 5904else 5905 if test -n "$DUMPBIN"; then 5906 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5907else 5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909for as_dir in $PATH 5910do 5911 IFS=$as_save_IFS 5912 test -z "$as_dir" && as_dir=. 5913 for ac_exec_ext in '' $ac_executable_extensions; do 5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5915 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5917 break 2 5918 fi 5919done 5920 done 5921IFS=$as_save_IFS 5922 5923fi 5924fi 5925DUMPBIN=$ac_cv_prog_DUMPBIN 5926if test -n "$DUMPBIN"; then 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5928$as_echo "$DUMPBIN" >&6; } 5929else 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5931$as_echo "no" >&6; } 5932fi 5933 5934 5935 test -n "$DUMPBIN" && break 5936 done 5937fi 5938if test -z "$DUMPBIN"; then 5939 ac_ct_DUMPBIN=$DUMPBIN 5940 for ac_prog in dumpbin "link -dump" 5941do 5942 # Extract the first word of "$ac_prog", so it can be a program name with args. 5943set dummy $ac_prog; ac_word=$2 5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5945$as_echo_n "checking for $ac_word... " >&6; } 5946if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948else 5949 if test -n "$ac_ct_DUMPBIN"; then 5950 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5951else 5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5953for as_dir in $PATH 5954do 5955 IFS=$as_save_IFS 5956 test -z "$as_dir" && as_dir=. 5957 for ac_exec_ext in '' $ac_executable_extensions; do 5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5959 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5961 break 2 5962 fi 5963done 5964 done 5965IFS=$as_save_IFS 5966 5967fi 5968fi 5969ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5970if test -n "$ac_ct_DUMPBIN"; then 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5972$as_echo "$ac_ct_DUMPBIN" >&6; } 5973else 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5975$as_echo "no" >&6; } 5976fi 5977 5978 5979 test -n "$ac_ct_DUMPBIN" && break 5980done 5981 5982 if test "x$ac_ct_DUMPBIN" = x; then 5983 DUMPBIN=":" 5984 else 5985 case $cross_compiling:$ac_tool_warned in 5986yes:) 5987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5989ac_tool_warned=yes ;; 5990esac 5991 DUMPBIN=$ac_ct_DUMPBIN 5992 fi 5993fi 5994 5995 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5996 *COFF*) 5997 DUMPBIN="$DUMPBIN -symbols -headers" 5998 ;; 5999 *) 6000 DUMPBIN=: 6001 ;; 6002 esac 6003 fi 6004 6005 if test : != "$DUMPBIN"; then 6006 NM=$DUMPBIN 6007 fi 6008fi 6009test -z "$NM" && NM=nm 6010 6011 6012 6013 6014 6015 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6017$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6018if ${lt_cv_nm_interface+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 lt_cv_nm_interface="BSD nm" 6022 echo "int some_variable = 0;" > conftest.$ac_ext 6023 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6024 (eval "$ac_compile" 2>conftest.err) 6025 cat conftest.err >&5 6026 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6027 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6028 cat conftest.err >&5 6029 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6030 cat conftest.out >&5 6031 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6032 lt_cv_nm_interface="MS dumpbin" 6033 fi 6034 rm -f conftest* 6035fi 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6037$as_echo "$lt_cv_nm_interface" >&6; } 6038 6039# find the maximum length of command line arguments 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6041$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6042if ${lt_cv_sys_max_cmd_len+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 i=0 6046 teststring=ABCD 6047 6048 case $build_os in 6049 msdosdjgpp*) 6050 # On DJGPP, this test can blow up pretty badly due to problems in libc 6051 # (any single argument exceeding 2000 bytes causes a buffer overrun 6052 # during glob expansion). Even if it were fixed, the result of this 6053 # check would be larger than it should be. 6054 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6055 ;; 6056 6057 gnu*) 6058 # Under GNU Hurd, this test is not required because there is 6059 # no limit to the length of command line arguments. 6060 # Libtool will interpret -1 as no limit whatsoever 6061 lt_cv_sys_max_cmd_len=-1; 6062 ;; 6063 6064 cygwin* | mingw* | cegcc*) 6065 # On Win9x/ME, this test blows up -- it succeeds, but takes 6066 # about 5 minutes as the teststring grows exponentially. 6067 # Worse, since 9x/ME are not pre-emptively multitasking, 6068 # you end up with a "frozen" computer, even though with patience 6069 # the test eventually succeeds (with a max line length of 256k). 6070 # Instead, let's just punt: use the minimum linelength reported by 6071 # all of the supported platforms: 8192 (on NT/2K/XP). 6072 lt_cv_sys_max_cmd_len=8192; 6073 ;; 6074 6075 mint*) 6076 # On MiNT this can take a long time and run out of memory. 6077 lt_cv_sys_max_cmd_len=8192; 6078 ;; 6079 6080 amigaos*) 6081 # On AmigaOS with pdksh, this test takes hours, literally. 6082 # So we just punt and use a minimum line length of 8192. 6083 lt_cv_sys_max_cmd_len=8192; 6084 ;; 6085 6086 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6087 # This has been around since 386BSD, at least. Likely further. 6088 if test -x /sbin/sysctl; then 6089 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6090 elif test -x /usr/sbin/sysctl; then 6091 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6092 else 6093 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6094 fi 6095 # And add a safety zone 6096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6098 ;; 6099 6100 interix*) 6101 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6102 lt_cv_sys_max_cmd_len=196608 6103 ;; 6104 6105 os2*) 6106 # The test takes a long time on OS/2. 6107 lt_cv_sys_max_cmd_len=8192 6108 ;; 6109 6110 osf*) 6111 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6112 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6113 # nice to cause kernel panics so lets avoid the loop below. 6114 # First set a reasonable default. 6115 lt_cv_sys_max_cmd_len=16384 6116 # 6117 if test -x /sbin/sysconfig; then 6118 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6119 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6120 esac 6121 fi 6122 ;; 6123 sco3.2v5*) 6124 lt_cv_sys_max_cmd_len=102400 6125 ;; 6126 sysv5* | sco5v6* | sysv4.2uw2*) 6127 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6128 if test -n "$kargmax"; then 6129 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6130 else 6131 lt_cv_sys_max_cmd_len=32768 6132 fi 6133 ;; 6134 *) 6135 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6136 if test -n "$lt_cv_sys_max_cmd_len" && \ 6137 test undefined != "$lt_cv_sys_max_cmd_len"; then 6138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6140 else 6141 # Make teststring a little bigger before we do anything with it. 6142 # a 1K string should be a reasonable start. 6143 for i in 1 2 3 4 5 6 7 8; do 6144 teststring=$teststring$teststring 6145 done 6146 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6147 # If test is not a shell built-in, we'll probably end up computing a 6148 # maximum length that is only half of the actual maximum length, but 6149 # we can't tell. 6150 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6151 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6152 test 17 != "$i" # 1/2 MB should be enough 6153 do 6154 i=`expr $i + 1` 6155 teststring=$teststring$teststring 6156 done 6157 # Only check the string length outside the loop. 6158 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6159 teststring= 6160 # Add a significant safety factor because C++ compilers can tack on 6161 # massive amounts of additional arguments before passing them to the 6162 # linker. It appears as though 1/2 is a usable value. 6163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6164 fi 6165 ;; 6166 esac 6167 6168fi 6169 6170if test -n "$lt_cv_sys_max_cmd_len"; then 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6172$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6173else 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6175$as_echo "none" >&6; } 6176fi 6177max_cmd_len=$lt_cv_sys_max_cmd_len 6178 6179 6180 6181 6182 6183 6184: ${CP="cp -f"} 6185: ${MV="mv -f"} 6186: ${RM="rm -f"} 6187 6188if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6189 lt_unset=unset 6190else 6191 lt_unset=false 6192fi 6193 6194 6195 6196 6197 6198# test EBCDIC or ASCII 6199case `echo X|tr X '\101'` in 6200 A) # ASCII based system 6201 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6202 lt_SP2NL='tr \040 \012' 6203 lt_NL2SP='tr \015\012 \040\040' 6204 ;; 6205 *) # EBCDIC based system 6206 lt_SP2NL='tr \100 \n' 6207 lt_NL2SP='tr \r\n \100\100' 6208 ;; 6209esac 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6220$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6221if ${lt_cv_to_host_file_cmd+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 case $host in 6225 *-*-mingw* ) 6226 case $build in 6227 *-*-mingw* ) # actually msys 6228 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6229 ;; 6230 *-*-cygwin* ) 6231 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6232 ;; 6233 * ) # otherwise, assume *nix 6234 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6235 ;; 6236 esac 6237 ;; 6238 *-*-cygwin* ) 6239 case $build in 6240 *-*-mingw* ) # actually msys 6241 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6242 ;; 6243 *-*-cygwin* ) 6244 lt_cv_to_host_file_cmd=func_convert_file_noop 6245 ;; 6246 * ) # otherwise, assume *nix 6247 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6248 ;; 6249 esac 6250 ;; 6251 * ) # unhandled hosts (and "normal" native builds) 6252 lt_cv_to_host_file_cmd=func_convert_file_noop 6253 ;; 6254esac 6255 6256fi 6257 6258to_host_file_cmd=$lt_cv_to_host_file_cmd 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6260$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6261 6262 6263 6264 6265 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6267$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6268if ${lt_cv_to_tool_file_cmd+:} false; then : 6269 $as_echo_n "(cached) " >&6 6270else 6271 #assume ordinary cross tools, or native build. 6272lt_cv_to_tool_file_cmd=func_convert_file_noop 6273case $host in 6274 *-*-mingw* ) 6275 case $build in 6276 *-*-mingw* ) # actually msys 6277 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6278 ;; 6279 esac 6280 ;; 6281esac 6282 6283fi 6284 6285to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6287$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6288 6289 6290 6291 6292 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6294$as_echo_n "checking for $LD option to reload object files... " >&6; } 6295if ${lt_cv_ld_reload_flag+:} false; then : 6296 $as_echo_n "(cached) " >&6 6297else 6298 lt_cv_ld_reload_flag='-r' 6299fi 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6301$as_echo "$lt_cv_ld_reload_flag" >&6; } 6302reload_flag=$lt_cv_ld_reload_flag 6303case $reload_flag in 6304"" | " "*) ;; 6305*) reload_flag=" $reload_flag" ;; 6306esac 6307reload_cmds='$LD$reload_flag -o $output$reload_objs' 6308case $host_os in 6309 cygwin* | mingw* | pw32* | cegcc*) 6310 if test yes != "$GCC"; then 6311 reload_cmds=false 6312 fi 6313 ;; 6314 darwin*) 6315 if test yes = "$GCC"; then 6316 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6317 else 6318 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6319 fi 6320 ;; 6321esac 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331if test -n "$ac_tool_prefix"; then 6332 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6333set dummy ${ac_tool_prefix}objdump; ac_word=$2 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6335$as_echo_n "checking for $ac_word... " >&6; } 6336if ${ac_cv_prog_OBJDUMP+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 if test -n "$OBJDUMP"; then 6340 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6341else 6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6343for as_dir in $PATH 6344do 6345 IFS=$as_save_IFS 6346 test -z "$as_dir" && as_dir=. 6347 for ac_exec_ext in '' $ac_executable_extensions; do 6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6349 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6351 break 2 6352 fi 6353done 6354 done 6355IFS=$as_save_IFS 6356 6357fi 6358fi 6359OBJDUMP=$ac_cv_prog_OBJDUMP 6360if test -n "$OBJDUMP"; then 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6362$as_echo "$OBJDUMP" >&6; } 6363else 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6365$as_echo "no" >&6; } 6366fi 6367 6368 6369fi 6370if test -z "$ac_cv_prog_OBJDUMP"; then 6371 ac_ct_OBJDUMP=$OBJDUMP 6372 # Extract the first word of "objdump", so it can be a program name with args. 6373set dummy objdump; ac_word=$2 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6375$as_echo_n "checking for $ac_word... " >&6; } 6376if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6377 $as_echo_n "(cached) " >&6 6378else 6379 if test -n "$ac_ct_OBJDUMP"; then 6380 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6381else 6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6383for as_dir in $PATH 6384do 6385 IFS=$as_save_IFS 6386 test -z "$as_dir" && as_dir=. 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6389 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6391 break 2 6392 fi 6393done 6394 done 6395IFS=$as_save_IFS 6396 6397fi 6398fi 6399ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6400if test -n "$ac_ct_OBJDUMP"; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6402$as_echo "$ac_ct_OBJDUMP" >&6; } 6403else 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405$as_echo "no" >&6; } 6406fi 6407 6408 if test "x$ac_ct_OBJDUMP" = x; then 6409 OBJDUMP="false" 6410 else 6411 case $cross_compiling:$ac_tool_warned in 6412yes:) 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6415ac_tool_warned=yes ;; 6416esac 6417 OBJDUMP=$ac_ct_OBJDUMP 6418 fi 6419else 6420 OBJDUMP="$ac_cv_prog_OBJDUMP" 6421fi 6422 6423test -z "$OBJDUMP" && OBJDUMP=objdump 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6434$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6435if ${lt_cv_deplibs_check_method+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 lt_cv_file_magic_cmd='$MAGIC_CMD' 6439lt_cv_file_magic_test_file= 6440lt_cv_deplibs_check_method='unknown' 6441# Need to set the preceding variable on all platforms that support 6442# interlibrary dependencies. 6443# 'none' -- dependencies not supported. 6444# 'unknown' -- same as none, but documents that we really don't know. 6445# 'pass_all' -- all dependencies passed with no checks. 6446# 'test_compile' -- check by making test program. 6447# 'file_magic [[regex]]' -- check by looking for files in library path 6448# that responds to the $file_magic_cmd with a given extended regex. 6449# If you have 'file' or equivalent on your system and you're not sure 6450# whether 'pass_all' will *always* work, you probably want this one. 6451 6452case $host_os in 6453aix[4-9]*) 6454 lt_cv_deplibs_check_method=pass_all 6455 ;; 6456 6457beos*) 6458 lt_cv_deplibs_check_method=pass_all 6459 ;; 6460 6461bsdi[45]*) 6462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6463 lt_cv_file_magic_cmd='/usr/bin/file -L' 6464 lt_cv_file_magic_test_file=/shlib/libc.so 6465 ;; 6466 6467cygwin*) 6468 # func_win32_libid is a shell function defined in ltmain.sh 6469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6470 lt_cv_file_magic_cmd='func_win32_libid' 6471 ;; 6472 6473mingw* | pw32*) 6474 # Base MSYS/MinGW do not provide the 'file' command needed by 6475 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6476 # unless we find 'file', for example because we are cross-compiling. 6477 if ( file / ) >/dev/null 2>&1; then 6478 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6479 lt_cv_file_magic_cmd='func_win32_libid' 6480 else 6481 # Keep this pattern in sync with the one in func_win32_libid. 6482 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6483 lt_cv_file_magic_cmd='$OBJDUMP -f' 6484 fi 6485 ;; 6486 6487cegcc*) 6488 # use the weaker test based on 'objdump'. See mingw*. 6489 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6490 lt_cv_file_magic_cmd='$OBJDUMP -f' 6491 ;; 6492 6493darwin* | rhapsody*) 6494 lt_cv_deplibs_check_method=pass_all 6495 ;; 6496 6497freebsd* | dragonfly*) 6498 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6499 case $host_cpu in 6500 i*86 ) 6501 # Not sure whether the presence of OpenBSD here was a mistake. 6502 # Let's accept both of them until this is cleared up. 6503 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6504 lt_cv_file_magic_cmd=/usr/bin/file 6505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6506 ;; 6507 esac 6508 else 6509 lt_cv_deplibs_check_method=pass_all 6510 fi 6511 ;; 6512 6513haiku*) 6514 lt_cv_deplibs_check_method=pass_all 6515 ;; 6516 6517hpux10.20* | hpux11*) 6518 lt_cv_file_magic_cmd=/usr/bin/file 6519 case $host_cpu in 6520 ia64*) 6521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6522 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6523 ;; 6524 hppa*64*) 6525 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]' 6526 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6527 ;; 6528 *) 6529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6530 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6531 ;; 6532 esac 6533 ;; 6534 6535interix[3-9]*) 6536 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6538 ;; 6539 6540irix5* | irix6* | nonstopux*) 6541 case $LD in 6542 *-32|*"-32 ") libmagic=32-bit;; 6543 *-n32|*"-n32 ") libmagic=N32;; 6544 *-64|*"-64 ") libmagic=64-bit;; 6545 *) libmagic=never-match;; 6546 esac 6547 lt_cv_deplibs_check_method=pass_all 6548 ;; 6549 6550# This must be glibc/ELF. 6551linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6552 lt_cv_deplibs_check_method=pass_all 6553 ;; 6554 6555netbsd*) 6556 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6558 else 6559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6560 fi 6561 ;; 6562 6563newos6*) 6564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6565 lt_cv_file_magic_cmd=/usr/bin/file 6566 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6567 ;; 6568 6569*nto* | *qnx*) 6570 lt_cv_deplibs_check_method=pass_all 6571 ;; 6572 6573openbsd* | bitrig*) 6574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6576 else 6577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6578 fi 6579 ;; 6580 6581osf3* | osf4* | osf5*) 6582 lt_cv_deplibs_check_method=pass_all 6583 ;; 6584 6585rdos*) 6586 lt_cv_deplibs_check_method=pass_all 6587 ;; 6588 6589solaris*) 6590 lt_cv_deplibs_check_method=pass_all 6591 ;; 6592 6593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6594 lt_cv_deplibs_check_method=pass_all 6595 ;; 6596 6597sysv4 | sysv4.3*) 6598 case $host_vendor in 6599 motorola) 6600 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]' 6601 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6602 ;; 6603 ncr) 6604 lt_cv_deplibs_check_method=pass_all 6605 ;; 6606 sequent) 6607 lt_cv_file_magic_cmd='/bin/file' 6608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6609 ;; 6610 sni) 6611 lt_cv_file_magic_cmd='/bin/file' 6612 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6613 lt_cv_file_magic_test_file=/lib/libc.so 6614 ;; 6615 siemens) 6616 lt_cv_deplibs_check_method=pass_all 6617 ;; 6618 pc) 6619 lt_cv_deplibs_check_method=pass_all 6620 ;; 6621 esac 6622 ;; 6623 6624tpf*) 6625 lt_cv_deplibs_check_method=pass_all 6626 ;; 6627os2*) 6628 lt_cv_deplibs_check_method=pass_all 6629 ;; 6630esac 6631 6632fi 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6634$as_echo "$lt_cv_deplibs_check_method" >&6; } 6635 6636file_magic_glob= 6637want_nocaseglob=no 6638if test "$build" = "$host"; then 6639 case $host_os in 6640 mingw* | pw32*) 6641 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6642 want_nocaseglob=yes 6643 else 6644 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6645 fi 6646 ;; 6647 esac 6648fi 6649 6650file_magic_cmd=$lt_cv_file_magic_cmd 6651deplibs_check_method=$lt_cv_deplibs_check_method 6652test -z "$deplibs_check_method" && deplibs_check_method=unknown 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675if test -n "$ac_tool_prefix"; then 6676 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6677set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6679$as_echo_n "checking for $ac_word... " >&6; } 6680if ${ac_cv_prog_DLLTOOL+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 if test -n "$DLLTOOL"; then 6684 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6685else 6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687for as_dir in $PATH 6688do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6693 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703DLLTOOL=$ac_cv_prog_DLLTOOL 6704if test -n "$DLLTOOL"; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6706$as_echo "$DLLTOOL" >&6; } 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709$as_echo "no" >&6; } 6710fi 6711 6712 6713fi 6714if test -z "$ac_cv_prog_DLLTOOL"; then 6715 ac_ct_DLLTOOL=$DLLTOOL 6716 # Extract the first word of "dlltool", so it can be a program name with args. 6717set dummy dlltool; ac_word=$2 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6719$as_echo_n "checking for $ac_word... " >&6; } 6720if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 if test -n "$ac_ct_DLLTOOL"; then 6724 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6725else 6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6727for as_dir in $PATH 6728do 6729 IFS=$as_save_IFS 6730 test -z "$as_dir" && as_dir=. 6731 for ac_exec_ext in '' $ac_executable_extensions; do 6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6733 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6735 break 2 6736 fi 6737done 6738 done 6739IFS=$as_save_IFS 6740 6741fi 6742fi 6743ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6744if test -n "$ac_ct_DLLTOOL"; then 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6746$as_echo "$ac_ct_DLLTOOL" >&6; } 6747else 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6749$as_echo "no" >&6; } 6750fi 6751 6752 if test "x$ac_ct_DLLTOOL" = x; then 6753 DLLTOOL="false" 6754 else 6755 case $cross_compiling:$ac_tool_warned in 6756yes:) 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6759ac_tool_warned=yes ;; 6760esac 6761 DLLTOOL=$ac_ct_DLLTOOL 6762 fi 6763else 6764 DLLTOOL="$ac_cv_prog_DLLTOOL" 6765fi 6766 6767test -z "$DLLTOOL" && DLLTOOL=dlltool 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6779$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6780if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 lt_cv_sharedlib_from_linklib_cmd='unknown' 6784 6785case $host_os in 6786cygwin* | mingw* | pw32* | cegcc*) 6787 # two different shell functions defined in ltmain.sh; 6788 # decide which one to use based on capabilities of $DLLTOOL 6789 case `$DLLTOOL --help 2>&1` in 6790 *--identify-strict*) 6791 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6792 ;; 6793 *) 6794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6795 ;; 6796 esac 6797 ;; 6798*) 6799 # fallback: assume linklib IS sharedlib 6800 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6801 ;; 6802esac 6803 6804fi 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6806$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6807sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6808test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6809 6810 6811 6812 6813 6814 6815 6816if test -n "$ac_tool_prefix"; then 6817 for ac_prog in ar 6818 do 6819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6820set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6822$as_echo_n "checking for $ac_word... " >&6; } 6823if ${ac_cv_prog_AR+:} false; then : 6824 $as_echo_n "(cached) " >&6 6825else 6826 if test -n "$AR"; then 6827 ac_cv_prog_AR="$AR" # Let the user override the test. 6828else 6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6830for as_dir in $PATH 6831do 6832 IFS=$as_save_IFS 6833 test -z "$as_dir" && as_dir=. 6834 for ac_exec_ext in '' $ac_executable_extensions; do 6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6836 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6838 break 2 6839 fi 6840done 6841 done 6842IFS=$as_save_IFS 6843 6844fi 6845fi 6846AR=$ac_cv_prog_AR 6847if test -n "$AR"; then 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6849$as_echo "$AR" >&6; } 6850else 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6852$as_echo "no" >&6; } 6853fi 6854 6855 6856 test -n "$AR" && break 6857 done 6858fi 6859if test -z "$AR"; then 6860 ac_ct_AR=$AR 6861 for ac_prog in ar 6862do 6863 # Extract the first word of "$ac_prog", so it can be a program name with args. 6864set dummy $ac_prog; ac_word=$2 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6866$as_echo_n "checking for $ac_word... " >&6; } 6867if ${ac_cv_prog_ac_ct_AR+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 if test -n "$ac_ct_AR"; then 6871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6872else 6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6874for as_dir in $PATH 6875do 6876 IFS=$as_save_IFS 6877 test -z "$as_dir" && as_dir=. 6878 for ac_exec_ext in '' $ac_executable_extensions; do 6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6880 ac_cv_prog_ac_ct_AR="$ac_prog" 6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6882 break 2 6883 fi 6884done 6885 done 6886IFS=$as_save_IFS 6887 6888fi 6889fi 6890ac_ct_AR=$ac_cv_prog_ac_ct_AR 6891if test -n "$ac_ct_AR"; then 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6893$as_echo "$ac_ct_AR" >&6; } 6894else 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6896$as_echo "no" >&6; } 6897fi 6898 6899 6900 test -n "$ac_ct_AR" && break 6901done 6902 6903 if test "x$ac_ct_AR" = x; then 6904 AR="false" 6905 else 6906 case $cross_compiling:$ac_tool_warned in 6907yes:) 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6910ac_tool_warned=yes ;; 6911esac 6912 AR=$ac_ct_AR 6913 fi 6914fi 6915 6916: ${AR=ar} 6917: ${AR_FLAGS=cru} 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6930$as_echo_n "checking for archiver @FILE support... " >&6; } 6931if ${lt_cv_ar_at_file+:} false; then : 6932 $as_echo_n "(cached) " >&6 6933else 6934 lt_cv_ar_at_file=no 6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6936/* end confdefs.h. */ 6937 6938int 6939main () 6940{ 6941 6942 ; 6943 return 0; 6944} 6945_ACEOF 6946if ac_fn_c_try_compile "$LINENO"; then : 6947 echo conftest.$ac_objext > conftest.lst 6948 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6950 (eval $lt_ar_try) 2>&5 6951 ac_status=$? 6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6953 test $ac_status = 0; } 6954 if test 0 -eq "$ac_status"; then 6955 # Ensure the archiver fails upon bogus file names. 6956 rm -f conftest.$ac_objext libconftest.a 6957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6958 (eval $lt_ar_try) 2>&5 6959 ac_status=$? 6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6961 test $ac_status = 0; } 6962 if test 0 -ne "$ac_status"; then 6963 lt_cv_ar_at_file=@ 6964 fi 6965 fi 6966 rm -f conftest.* libconftest.a 6967 6968fi 6969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6970 6971fi 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6973$as_echo "$lt_cv_ar_at_file" >&6; } 6974 6975if test no = "$lt_cv_ar_at_file"; then 6976 archiver_list_spec= 6977else 6978 archiver_list_spec=$lt_cv_ar_at_file 6979fi 6980 6981 6982 6983 6984 6985 6986 6987if test -n "$ac_tool_prefix"; then 6988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6989set dummy ${ac_tool_prefix}strip; ac_word=$2 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6991$as_echo_n "checking for $ac_word... " >&6; } 6992if ${ac_cv_prog_STRIP+:} false; then : 6993 $as_echo_n "(cached) " >&6 6994else 6995 if test -n "$STRIP"; then 6996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6997else 6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6999for as_dir in $PATH 7000do 7001 IFS=$as_save_IFS 7002 test -z "$as_dir" && as_dir=. 7003 for ac_exec_ext in '' $ac_executable_extensions; do 7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7005 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7007 break 2 7008 fi 7009done 7010 done 7011IFS=$as_save_IFS 7012 7013fi 7014fi 7015STRIP=$ac_cv_prog_STRIP 7016if test -n "$STRIP"; then 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7018$as_echo "$STRIP" >&6; } 7019else 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7021$as_echo "no" >&6; } 7022fi 7023 7024 7025fi 7026if test -z "$ac_cv_prog_STRIP"; then 7027 ac_ct_STRIP=$STRIP 7028 # Extract the first word of "strip", so it can be a program name with args. 7029set dummy strip; ac_word=$2 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7031$as_echo_n "checking for $ac_word... " >&6; } 7032if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 if test -n "$ac_ct_STRIP"; then 7036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7037else 7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7039for as_dir in $PATH 7040do 7041 IFS=$as_save_IFS 7042 test -z "$as_dir" && as_dir=. 7043 for ac_exec_ext in '' $ac_executable_extensions; do 7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7045 ac_cv_prog_ac_ct_STRIP="strip" 7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7047 break 2 7048 fi 7049done 7050 done 7051IFS=$as_save_IFS 7052 7053fi 7054fi 7055ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7056if test -n "$ac_ct_STRIP"; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7058$as_echo "$ac_ct_STRIP" >&6; } 7059else 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7061$as_echo "no" >&6; } 7062fi 7063 7064 if test "x$ac_ct_STRIP" = x; then 7065 STRIP=":" 7066 else 7067 case $cross_compiling:$ac_tool_warned in 7068yes:) 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7071ac_tool_warned=yes ;; 7072esac 7073 STRIP=$ac_ct_STRIP 7074 fi 7075else 7076 STRIP="$ac_cv_prog_STRIP" 7077fi 7078 7079test -z "$STRIP" && STRIP=: 7080 7081 7082 7083 7084 7085 7086if test -n "$ac_tool_prefix"; then 7087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7088set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7090$as_echo_n "checking for $ac_word... " >&6; } 7091if ${ac_cv_prog_RANLIB+:} false; then : 7092 $as_echo_n "(cached) " >&6 7093else 7094 if test -n "$RANLIB"; then 7095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7096else 7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098for as_dir in $PATH 7099do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108done 7109 done 7110IFS=$as_save_IFS 7111 7112fi 7113fi 7114RANLIB=$ac_cv_prog_RANLIB 7115if test -n "$RANLIB"; then 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7117$as_echo "$RANLIB" >&6; } 7118else 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7120$as_echo "no" >&6; } 7121fi 7122 7123 7124fi 7125if test -z "$ac_cv_prog_RANLIB"; then 7126 ac_ct_RANLIB=$RANLIB 7127 # Extract the first word of "ranlib", so it can be a program name with args. 7128set dummy ranlib; ac_word=$2 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130$as_echo_n "checking for $ac_word... " >&6; } 7131if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 if test -n "$ac_ct_RANLIB"; then 7135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7136else 7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 test -z "$as_dir" && as_dir=. 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7144 ac_cv_prog_ac_ct_RANLIB="ranlib" 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148done 7149 done 7150IFS=$as_save_IFS 7151 7152fi 7153fi 7154ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7155if test -n "$ac_ct_RANLIB"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7157$as_echo "$ac_ct_RANLIB" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160$as_echo "no" >&6; } 7161fi 7162 7163 if test "x$ac_ct_RANLIB" = x; then 7164 RANLIB=":" 7165 else 7166 case $cross_compiling:$ac_tool_warned in 7167yes:) 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7170ac_tool_warned=yes ;; 7171esac 7172 RANLIB=$ac_ct_RANLIB 7173 fi 7174else 7175 RANLIB="$ac_cv_prog_RANLIB" 7176fi 7177 7178test -z "$RANLIB" && RANLIB=: 7179 7180 7181 7182 7183 7184 7185# Determine commands to create old-style static archives. 7186old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7187old_postinstall_cmds='chmod 644 $oldlib' 7188old_postuninstall_cmds= 7189 7190if test -n "$RANLIB"; then 7191 case $host_os in 7192 bitrig* | openbsd*) 7193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7194 ;; 7195 *) 7196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7197 ;; 7198 esac 7199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7200fi 7201 7202case $host_os in 7203 darwin*) 7204 lock_old_archive_extraction=yes ;; 7205 *) 7206 lock_old_archive_extraction=no ;; 7207esac 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247# If no C compiler was specified, use CC. 7248LTCC=${LTCC-"$CC"} 7249 7250# If no C compiler flags were specified, use CFLAGS. 7251LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7252 7253# Allow CC to be a program name with arguments. 7254compiler=$CC 7255 7256 7257# Check for command to grab the raw symbol name followed by C symbol from nm. 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7259$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7260if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7261 $as_echo_n "(cached) " >&6 7262else 7263 7264# These are sane defaults that work on at least a few old systems. 7265# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7266 7267# Character class describing NM global symbol codes. 7268symcode='[BCDEGRST]' 7269 7270# Regexp to match symbols that can be accessed directly from C. 7271sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7272 7273# Define system-specific variables. 7274case $host_os in 7275aix*) 7276 symcode='[BCDT]' 7277 ;; 7278cygwin* | mingw* | pw32* | cegcc*) 7279 symcode='[ABCDGISTW]' 7280 ;; 7281hpux*) 7282 if test ia64 = "$host_cpu"; then 7283 symcode='[ABCDEGRST]' 7284 fi 7285 ;; 7286irix* | nonstopux*) 7287 symcode='[BCDEGRST]' 7288 ;; 7289osf*) 7290 symcode='[BCDEGQRST]' 7291 ;; 7292solaris*) 7293 symcode='[BDRT]' 7294 ;; 7295sco3.2v5*) 7296 symcode='[DT]' 7297 ;; 7298sysv4.2uw2*) 7299 symcode='[DT]' 7300 ;; 7301sysv5* | sco5v6* | unixware* | OpenUNIX*) 7302 symcode='[ABDT]' 7303 ;; 7304sysv4) 7305 symcode='[DFNSTU]' 7306 ;; 7307esac 7308 7309# If we're using GNU nm, then use its standard symbol codes. 7310case `$NM -V 2>&1` in 7311*GNU* | *'with BFD'*) 7312 symcode='[ABCDGIRSTW]' ;; 7313esac 7314 7315if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7316 # Gets list of data symbols to import. 7317 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7318 # Adjust the below global symbol transforms to fixup imported variables. 7319 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7320 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7321 lt_c_name_lib_hook="\ 7322 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7323 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7324else 7325 # Disable hooks by default. 7326 lt_cv_sys_global_symbol_to_import= 7327 lt_cdecl_hook= 7328 lt_c_name_hook= 7329 lt_c_name_lib_hook= 7330fi 7331 7332# Transform an extracted symbol line into a proper C declaration. 7333# Some systems (esp. on ia64) link data and code symbols differently, 7334# so use this general approach. 7335lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7336$lt_cdecl_hook\ 7337" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7338" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7339 7340# Transform an extracted symbol line into symbol name and symbol address 7341lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7342$lt_c_name_hook\ 7343" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7344" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7345 7346# Transform an extracted symbol line into symbol name with lib prefix and 7347# symbol address. 7348lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7349$lt_c_name_lib_hook\ 7350" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7351" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7352" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7353 7354# Handle CRLF in mingw tool chain 7355opt_cr= 7356case $build_os in 7357mingw*) 7358 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7359 ;; 7360esac 7361 7362# Try without a prefix underscore, then with it. 7363for ac_symprfx in "" "_"; do 7364 7365 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7366 symxfrm="\\1 $ac_symprfx\\2 \\2" 7367 7368 # Write the raw and C identifiers. 7369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7370 # Fake it for dumpbin and say T for any non-static function, 7371 # D for any global variable and I for any imported variable. 7372 # Also find C++ and __fastcall symbols from MSVC++, 7373 # which start with @ or ?. 7374 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7375" {last_section=section; section=\$ 3};"\ 7376" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7377" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7378" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7379" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7380" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7381" \$ 0!~/External *\|/{next};"\ 7382" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7383" {if(hide[section]) next};"\ 7384" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7385" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7386" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7387" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7388" ' prfx=^$ac_symprfx" 7389 else 7390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7391 fi 7392 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7393 7394 # Check to see that the pipe works correctly. 7395 pipe_works=no 7396 7397 rm -f conftest* 7398 cat > conftest.$ac_ext <<_LT_EOF 7399#ifdef __cplusplus 7400extern "C" { 7401#endif 7402char nm_test_var; 7403void nm_test_func(void); 7404void nm_test_func(void){} 7405#ifdef __cplusplus 7406} 7407#endif 7408int main(){nm_test_var='a';nm_test_func();return(0);} 7409_LT_EOF 7410 7411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7412 (eval $ac_compile) 2>&5 7413 ac_status=$? 7414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7415 test $ac_status = 0; }; then 7416 # Now try to grab the symbols. 7417 nlist=conftest.nm 7418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7419 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7420 ac_status=$? 7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7422 test $ac_status = 0; } && test -s "$nlist"; then 7423 # Try sorting and uniquifying the output. 7424 if sort "$nlist" | uniq > "$nlist"T; then 7425 mv -f "$nlist"T "$nlist" 7426 else 7427 rm -f "$nlist"T 7428 fi 7429 7430 # Make sure that we snagged all the symbols we need. 7431 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7432 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7433 cat <<_LT_EOF > conftest.$ac_ext 7434/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7435#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7436/* DATA imports from DLLs on WIN32 can't be const, because runtime 7437 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7438# define LT_DLSYM_CONST 7439#elif defined __osf__ 7440/* This system does not cope well with relocations in const data. */ 7441# define LT_DLSYM_CONST 7442#else 7443# define LT_DLSYM_CONST const 7444#endif 7445 7446#ifdef __cplusplus 7447extern "C" { 7448#endif 7449 7450_LT_EOF 7451 # Now generate the symbol file. 7452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7453 7454 cat <<_LT_EOF >> conftest.$ac_ext 7455 7456/* The mapping between symbol names and symbols. */ 7457LT_DLSYM_CONST struct { 7458 const char *name; 7459 void *address; 7460} 7461lt__PROGRAM__LTX_preloaded_symbols[] = 7462{ 7463 { "@PROGRAM@", (void *) 0 }, 7464_LT_EOF 7465 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7466 cat <<\_LT_EOF >> conftest.$ac_ext 7467 {0, (void *) 0} 7468}; 7469 7470/* This works around a problem in FreeBSD linker */ 7471#ifdef FREEBSD_WORKAROUND 7472static const void *lt_preloaded_setup() { 7473 return lt__PROGRAM__LTX_preloaded_symbols; 7474} 7475#endif 7476 7477#ifdef __cplusplus 7478} 7479#endif 7480_LT_EOF 7481 # Now try linking the two files. 7482 mv conftest.$ac_objext conftstm.$ac_objext 7483 lt_globsym_save_LIBS=$LIBS 7484 lt_globsym_save_CFLAGS=$CFLAGS 7485 LIBS=conftstm.$ac_objext 7486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7488 (eval $ac_link) 2>&5 7489 ac_status=$? 7490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7491 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7492 pipe_works=yes 7493 fi 7494 LIBS=$lt_globsym_save_LIBS 7495 CFLAGS=$lt_globsym_save_CFLAGS 7496 else 7497 echo "cannot find nm_test_func in $nlist" >&5 7498 fi 7499 else 7500 echo "cannot find nm_test_var in $nlist" >&5 7501 fi 7502 else 7503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7504 fi 7505 else 7506 echo "$progname: failed program was:" >&5 7507 cat conftest.$ac_ext >&5 7508 fi 7509 rm -rf conftest* conftst* 7510 7511 # Do not use the global_symbol_pipe unless it works. 7512 if test yes = "$pipe_works"; then 7513 break 7514 else 7515 lt_cv_sys_global_symbol_pipe= 7516 fi 7517done 7518 7519fi 7520 7521if test -z "$lt_cv_sys_global_symbol_pipe"; then 7522 lt_cv_sys_global_symbol_to_cdecl= 7523fi 7524if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7526$as_echo "failed" >&6; } 7527else 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7529$as_echo "ok" >&6; } 7530fi 7531 7532# Response file support. 7533if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7534 nm_file_list_spec='@' 7535elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7536 nm_file_list_spec='@' 7537fi 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7576$as_echo_n "checking for sysroot... " >&6; } 7577 7578# Check whether --with-sysroot was given. 7579if test "${with_sysroot+set}" = set; then : 7580 withval=$with_sysroot; 7581else 7582 with_sysroot=no 7583fi 7584 7585 7586lt_sysroot= 7587case $with_sysroot in #( 7588 yes) 7589 if test yes = "$GCC"; then 7590 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7591 fi 7592 ;; #( 7593 /*) 7594 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7595 ;; #( 7596 no|'') 7597 ;; #( 7598 *) 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7600$as_echo "$with_sysroot" >&6; } 7601 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7602 ;; 7603esac 7604 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7606$as_echo "${lt_sysroot:-no}" >&6; } 7607 7608 7609 7610 7611 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7613$as_echo_n "checking for a working dd... " >&6; } 7614if ${ac_cv_path_lt_DD+:} false; then : 7615 $as_echo_n "(cached) " >&6 7616else 7617 printf 0123456789abcdef0123456789abcdef >conftest.i 7618cat conftest.i conftest.i >conftest2.i 7619: ${lt_DD:=$DD} 7620if test -z "$lt_DD"; then 7621 ac_path_lt_DD_found=false 7622 # Loop through the user's path and test for each of PROGNAME-LIST 7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7624for as_dir in $PATH 7625do 7626 IFS=$as_save_IFS 7627 test -z "$as_dir" && as_dir=. 7628 for ac_prog in dd; do 7629 for ac_exec_ext in '' $ac_executable_extensions; do 7630 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7631 as_fn_executable_p "$ac_path_lt_DD" || continue 7632if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7633 cmp -s conftest.i conftest.out \ 7634 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7635fi 7636 $ac_path_lt_DD_found && break 3 7637 done 7638 done 7639 done 7640IFS=$as_save_IFS 7641 if test -z "$ac_cv_path_lt_DD"; then 7642 : 7643 fi 7644else 7645 ac_cv_path_lt_DD=$lt_DD 7646fi 7647 7648rm -f conftest.i conftest2.i conftest.out 7649fi 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7651$as_echo "$ac_cv_path_lt_DD" >&6; } 7652 7653 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7655$as_echo_n "checking how to truncate binary pipes... " >&6; } 7656if ${lt_cv_truncate_bin+:} false; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 printf 0123456789abcdef0123456789abcdef >conftest.i 7660cat conftest.i conftest.i >conftest2.i 7661lt_cv_truncate_bin= 7662if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7663 cmp -s conftest.i conftest.out \ 7664 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7665fi 7666rm -f conftest.i conftest2.i conftest.out 7667test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7668fi 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7670$as_echo "$lt_cv_truncate_bin" >&6; } 7671 7672 7673 7674 7675 7676 7677 7678# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7679func_cc_basename () 7680{ 7681 for cc_temp in $*""; do 7682 case $cc_temp in 7683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7685 \-*) ;; 7686 *) break;; 7687 esac 7688 done 7689 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7690} 7691 7692# Check whether --enable-libtool-lock was given. 7693if test "${enable_libtool_lock+set}" = set; then : 7694 enableval=$enable_libtool_lock; 7695fi 7696 7697test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7698 7699# Some flags need to be propagated to the compiler or linker for good 7700# libtool support. 7701case $host in 7702ia64-*-hpux*) 7703 # Find out what ABI is being produced by ac_compile, and set mode 7704 # options accordingly. 7705 echo 'int i;' > conftest.$ac_ext 7706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7707 (eval $ac_compile) 2>&5 7708 ac_status=$? 7709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7710 test $ac_status = 0; }; then 7711 case `/usr/bin/file conftest.$ac_objext` in 7712 *ELF-32*) 7713 HPUX_IA64_MODE=32 7714 ;; 7715 *ELF-64*) 7716 HPUX_IA64_MODE=64 7717 ;; 7718 esac 7719 fi 7720 rm -rf conftest* 7721 ;; 7722*-*-irix6*) 7723 # Find out what ABI is being produced by ac_compile, and set linker 7724 # options accordingly. 7725 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7727 (eval $ac_compile) 2>&5 7728 ac_status=$? 7729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7730 test $ac_status = 0; }; then 7731 if test yes = "$lt_cv_prog_gnu_ld"; then 7732 case `/usr/bin/file conftest.$ac_objext` in 7733 *32-bit*) 7734 LD="${LD-ld} -melf32bsmip" 7735 ;; 7736 *N32*) 7737 LD="${LD-ld} -melf32bmipn32" 7738 ;; 7739 *64-bit*) 7740 LD="${LD-ld} -melf64bmip" 7741 ;; 7742 esac 7743 else 7744 case `/usr/bin/file conftest.$ac_objext` in 7745 *32-bit*) 7746 LD="${LD-ld} -32" 7747 ;; 7748 *N32*) 7749 LD="${LD-ld} -n32" 7750 ;; 7751 *64-bit*) 7752 LD="${LD-ld} -64" 7753 ;; 7754 esac 7755 fi 7756 fi 7757 rm -rf conftest* 7758 ;; 7759 7760mips64*-*linux*) 7761 # Find out what ABI is being produced by ac_compile, and set linker 7762 # options accordingly. 7763 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7765 (eval $ac_compile) 2>&5 7766 ac_status=$? 7767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7768 test $ac_status = 0; }; then 7769 emul=elf 7770 case `/usr/bin/file conftest.$ac_objext` in 7771 *32-bit*) 7772 emul="${emul}32" 7773 ;; 7774 *64-bit*) 7775 emul="${emul}64" 7776 ;; 7777 esac 7778 case `/usr/bin/file conftest.$ac_objext` in 7779 *MSB*) 7780 emul="${emul}btsmip" 7781 ;; 7782 *LSB*) 7783 emul="${emul}ltsmip" 7784 ;; 7785 esac 7786 case `/usr/bin/file conftest.$ac_objext` in 7787 *N32*) 7788 emul="${emul}n32" 7789 ;; 7790 esac 7791 LD="${LD-ld} -m $emul" 7792 fi 7793 rm -rf conftest* 7794 ;; 7795 7796x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7797s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7798 # Find out what ABI is being produced by ac_compile, and set linker 7799 # options accordingly. Note that the listed cases only cover the 7800 # situations where additional linker options are needed (such as when 7801 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7802 # vice versa); the common cases where no linker options are needed do 7803 # not appear in the list. 7804 echo 'int i;' > conftest.$ac_ext 7805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7806 (eval $ac_compile) 2>&5 7807 ac_status=$? 7808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7809 test $ac_status = 0; }; then 7810 case `/usr/bin/file conftest.o` in 7811 *32-bit*) 7812 case $host in 7813 x86_64-*kfreebsd*-gnu) 7814 LD="${LD-ld} -m elf_i386_fbsd" 7815 ;; 7816 x86_64-*linux*) 7817 case `/usr/bin/file conftest.o` in 7818 *x86-64*) 7819 LD="${LD-ld} -m elf32_x86_64" 7820 ;; 7821 *) 7822 LD="${LD-ld} -m elf_i386" 7823 ;; 7824 esac 7825 ;; 7826 powerpc64le-*linux*) 7827 LD="${LD-ld} -m elf32lppclinux" 7828 ;; 7829 powerpc64-*linux*) 7830 LD="${LD-ld} -m elf32ppclinux" 7831 ;; 7832 s390x-*linux*) 7833 LD="${LD-ld} -m elf_s390" 7834 ;; 7835 sparc64-*linux*) 7836 LD="${LD-ld} -m elf32_sparc" 7837 ;; 7838 esac 7839 ;; 7840 *64-bit*) 7841 case $host in 7842 x86_64-*kfreebsd*-gnu) 7843 LD="${LD-ld} -m elf_x86_64_fbsd" 7844 ;; 7845 x86_64-*linux*) 7846 LD="${LD-ld} -m elf_x86_64" 7847 ;; 7848 powerpcle-*linux*) 7849 LD="${LD-ld} -m elf64lppc" 7850 ;; 7851 powerpc-*linux*) 7852 LD="${LD-ld} -m elf64ppc" 7853 ;; 7854 s390*-*linux*|s390*-*tpf*) 7855 LD="${LD-ld} -m elf64_s390" 7856 ;; 7857 sparc*-*linux*) 7858 LD="${LD-ld} -m elf64_sparc" 7859 ;; 7860 esac 7861 ;; 7862 esac 7863 fi 7864 rm -rf conftest* 7865 ;; 7866 7867*-*-sco3.2v5*) 7868 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7869 SAVE_CFLAGS=$CFLAGS 7870 CFLAGS="$CFLAGS -belf" 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7872$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7873if ${lt_cv_cc_needs_belf+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875else 7876 ac_ext=c 7877ac_cpp='$CPP $CPPFLAGS' 7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7880ac_compiler_gnu=$ac_cv_c_compiler_gnu 7881 7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7883/* end confdefs.h. */ 7884 7885int 7886main () 7887{ 7888 7889 ; 7890 return 0; 7891} 7892_ACEOF 7893if ac_fn_c_try_link "$LINENO"; then : 7894 lt_cv_cc_needs_belf=yes 7895else 7896 lt_cv_cc_needs_belf=no 7897fi 7898rm -f core conftest.err conftest.$ac_objext \ 7899 conftest$ac_exeext conftest.$ac_ext 7900 ac_ext=c 7901ac_cpp='$CPP $CPPFLAGS' 7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7904ac_compiler_gnu=$ac_cv_c_compiler_gnu 7905 7906fi 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7908$as_echo "$lt_cv_cc_needs_belf" >&6; } 7909 if test yes != "$lt_cv_cc_needs_belf"; then 7910 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7911 CFLAGS=$SAVE_CFLAGS 7912 fi 7913 ;; 7914*-*solaris*) 7915 # Find out what ABI is being produced by ac_compile, and set linker 7916 # options accordingly. 7917 echo 'int i;' > conftest.$ac_ext 7918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7919 (eval $ac_compile) 2>&5 7920 ac_status=$? 7921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7922 test $ac_status = 0; }; then 7923 case `/usr/bin/file conftest.o` in 7924 *64-bit*) 7925 case $lt_cv_prog_gnu_ld in 7926 yes*) 7927 case $host in 7928 i?86-*-solaris*|x86_64-*-solaris*) 7929 LD="${LD-ld} -m elf_x86_64" 7930 ;; 7931 sparc*-*-solaris*) 7932 LD="${LD-ld} -m elf64_sparc" 7933 ;; 7934 esac 7935 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7936 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7937 LD=${LD-ld}_sol2 7938 fi 7939 ;; 7940 *) 7941 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7942 LD="${LD-ld} -64" 7943 fi 7944 ;; 7945 esac 7946 ;; 7947 esac 7948 fi 7949 rm -rf conftest* 7950 ;; 7951esac 7952 7953need_locks=$enable_libtool_lock 7954 7955if test -n "$ac_tool_prefix"; then 7956 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7957set dummy ${ac_tool_prefix}mt; ac_word=$2 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7959$as_echo_n "checking for $ac_word... " >&6; } 7960if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7961 $as_echo_n "(cached) " >&6 7962else 7963 if test -n "$MANIFEST_TOOL"; then 7964 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7965else 7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7967for as_dir in $PATH 7968do 7969 IFS=$as_save_IFS 7970 test -z "$as_dir" && as_dir=. 7971 for ac_exec_ext in '' $ac_executable_extensions; do 7972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7973 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7975 break 2 7976 fi 7977done 7978 done 7979IFS=$as_save_IFS 7980 7981fi 7982fi 7983MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7984if test -n "$MANIFEST_TOOL"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7986$as_echo "$MANIFEST_TOOL" >&6; } 7987else 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989$as_echo "no" >&6; } 7990fi 7991 7992 7993fi 7994if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7995 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7996 # Extract the first word of "mt", so it can be a program name with args. 7997set dummy mt; ac_word=$2 7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7999$as_echo_n "checking for $ac_word... " >&6; } 8000if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8001 $as_echo_n "(cached) " >&6 8002else 8003 if test -n "$ac_ct_MANIFEST_TOOL"; then 8004 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8005else 8006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8007for as_dir in $PATH 8008do 8009 IFS=$as_save_IFS 8010 test -z "$as_dir" && as_dir=. 8011 for ac_exec_ext in '' $ac_executable_extensions; do 8012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8013 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8015 break 2 8016 fi 8017done 8018 done 8019IFS=$as_save_IFS 8020 8021fi 8022fi 8023ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8024if test -n "$ac_ct_MANIFEST_TOOL"; then 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8026$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8027else 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8029$as_echo "no" >&6; } 8030fi 8031 8032 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8033 MANIFEST_TOOL=":" 8034 else 8035 case $cross_compiling:$ac_tool_warned in 8036yes:) 8037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8039ac_tool_warned=yes ;; 8040esac 8041 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8042 fi 8043else 8044 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8045fi 8046 8047test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8049$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8050if ${lt_cv_path_mainfest_tool+:} false; then : 8051 $as_echo_n "(cached) " >&6 8052else 8053 lt_cv_path_mainfest_tool=no 8054 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8055 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8056 cat conftest.err >&5 8057 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8058 lt_cv_path_mainfest_tool=yes 8059 fi 8060 rm -f conftest* 8061fi 8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8063$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8064if test yes != "$lt_cv_path_mainfest_tool"; then 8065 MANIFEST_TOOL=: 8066fi 8067 8068 8069 8070 8071 8072 8073 case $host_os in 8074 rhapsody* | darwin*) 8075 if test -n "$ac_tool_prefix"; then 8076 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8077set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8079$as_echo_n "checking for $ac_word... " >&6; } 8080if ${ac_cv_prog_DSYMUTIL+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 if test -n "$DSYMUTIL"; then 8084 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8085else 8086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8087for as_dir in $PATH 8088do 8089 IFS=$as_save_IFS 8090 test -z "$as_dir" && as_dir=. 8091 for ac_exec_ext in '' $ac_executable_extensions; do 8092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8093 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8095 break 2 8096 fi 8097done 8098 done 8099IFS=$as_save_IFS 8100 8101fi 8102fi 8103DSYMUTIL=$ac_cv_prog_DSYMUTIL 8104if test -n "$DSYMUTIL"; then 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8106$as_echo "$DSYMUTIL" >&6; } 8107else 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8109$as_echo "no" >&6; } 8110fi 8111 8112 8113fi 8114if test -z "$ac_cv_prog_DSYMUTIL"; then 8115 ac_ct_DSYMUTIL=$DSYMUTIL 8116 # Extract the first word of "dsymutil", so it can be a program name with args. 8117set dummy dsymutil; ac_word=$2 8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8119$as_echo_n "checking for $ac_word... " >&6; } 8120if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 if test -n "$ac_ct_DSYMUTIL"; then 8124 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8125else 8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127for as_dir in $PATH 8128do 8129 IFS=$as_save_IFS 8130 test -z "$as_dir" && as_dir=. 8131 for ac_exec_ext in '' $ac_executable_extensions; do 8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8133 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8135 break 2 8136 fi 8137done 8138 done 8139IFS=$as_save_IFS 8140 8141fi 8142fi 8143ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8144if test -n "$ac_ct_DSYMUTIL"; then 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8146$as_echo "$ac_ct_DSYMUTIL" >&6; } 8147else 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8149$as_echo "no" >&6; } 8150fi 8151 8152 if test "x$ac_ct_DSYMUTIL" = x; then 8153 DSYMUTIL=":" 8154 else 8155 case $cross_compiling:$ac_tool_warned in 8156yes:) 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8159ac_tool_warned=yes ;; 8160esac 8161 DSYMUTIL=$ac_ct_DSYMUTIL 8162 fi 8163else 8164 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8165fi 8166 8167 if test -n "$ac_tool_prefix"; then 8168 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8169set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8171$as_echo_n "checking for $ac_word... " >&6; } 8172if ${ac_cv_prog_NMEDIT+:} false; then : 8173 $as_echo_n "(cached) " >&6 8174else 8175 if test -n "$NMEDIT"; then 8176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8177else 8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8179for as_dir in $PATH 8180do 8181 IFS=$as_save_IFS 8182 test -z "$as_dir" && as_dir=. 8183 for ac_exec_ext in '' $ac_executable_extensions; do 8184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8187 break 2 8188 fi 8189done 8190 done 8191IFS=$as_save_IFS 8192 8193fi 8194fi 8195NMEDIT=$ac_cv_prog_NMEDIT 8196if test -n "$NMEDIT"; then 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8198$as_echo "$NMEDIT" >&6; } 8199else 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8201$as_echo "no" >&6; } 8202fi 8203 8204 8205fi 8206if test -z "$ac_cv_prog_NMEDIT"; then 8207 ac_ct_NMEDIT=$NMEDIT 8208 # Extract the first word of "nmedit", so it can be a program name with args. 8209set dummy nmedit; ac_word=$2 8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8211$as_echo_n "checking for $ac_word... " >&6; } 8212if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8213 $as_echo_n "(cached) " >&6 8214else 8215 if test -n "$ac_ct_NMEDIT"; then 8216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8217else 8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8219for as_dir in $PATH 8220do 8221 IFS=$as_save_IFS 8222 test -z "$as_dir" && as_dir=. 8223 for ac_exec_ext in '' $ac_executable_extensions; do 8224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8225 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8227 break 2 8228 fi 8229done 8230 done 8231IFS=$as_save_IFS 8232 8233fi 8234fi 8235ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8236if test -n "$ac_ct_NMEDIT"; then 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8238$as_echo "$ac_ct_NMEDIT" >&6; } 8239else 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8241$as_echo "no" >&6; } 8242fi 8243 8244 if test "x$ac_ct_NMEDIT" = x; then 8245 NMEDIT=":" 8246 else 8247 case $cross_compiling:$ac_tool_warned in 8248yes:) 8249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8251ac_tool_warned=yes ;; 8252esac 8253 NMEDIT=$ac_ct_NMEDIT 8254 fi 8255else 8256 NMEDIT="$ac_cv_prog_NMEDIT" 8257fi 8258 8259 if test -n "$ac_tool_prefix"; then 8260 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8261set dummy ${ac_tool_prefix}lipo; ac_word=$2 8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8263$as_echo_n "checking for $ac_word... " >&6; } 8264if ${ac_cv_prog_LIPO+:} false; then : 8265 $as_echo_n "(cached) " >&6 8266else 8267 if test -n "$LIPO"; then 8268 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8269else 8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8271for as_dir in $PATH 8272do 8273 IFS=$as_save_IFS 8274 test -z "$as_dir" && as_dir=. 8275 for ac_exec_ext in '' $ac_executable_extensions; do 8276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8277 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8279 break 2 8280 fi 8281done 8282 done 8283IFS=$as_save_IFS 8284 8285fi 8286fi 8287LIPO=$ac_cv_prog_LIPO 8288if test -n "$LIPO"; then 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8290$as_echo "$LIPO" >&6; } 8291else 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8293$as_echo "no" >&6; } 8294fi 8295 8296 8297fi 8298if test -z "$ac_cv_prog_LIPO"; then 8299 ac_ct_LIPO=$LIPO 8300 # Extract the first word of "lipo", so it can be a program name with args. 8301set dummy lipo; ac_word=$2 8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8303$as_echo_n "checking for $ac_word... " >&6; } 8304if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 if test -n "$ac_ct_LIPO"; then 8308 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8309else 8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8311for as_dir in $PATH 8312do 8313 IFS=$as_save_IFS 8314 test -z "$as_dir" && as_dir=. 8315 for ac_exec_ext in '' $ac_executable_extensions; do 8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8317 ac_cv_prog_ac_ct_LIPO="lipo" 8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8319 break 2 8320 fi 8321done 8322 done 8323IFS=$as_save_IFS 8324 8325fi 8326fi 8327ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8328if test -n "$ac_ct_LIPO"; then 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8330$as_echo "$ac_ct_LIPO" >&6; } 8331else 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8333$as_echo "no" >&6; } 8334fi 8335 8336 if test "x$ac_ct_LIPO" = x; then 8337 LIPO=":" 8338 else 8339 case $cross_compiling:$ac_tool_warned in 8340yes:) 8341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8343ac_tool_warned=yes ;; 8344esac 8345 LIPO=$ac_ct_LIPO 8346 fi 8347else 8348 LIPO="$ac_cv_prog_LIPO" 8349fi 8350 8351 if test -n "$ac_tool_prefix"; then 8352 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8353set dummy ${ac_tool_prefix}otool; ac_word=$2 8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8355$as_echo_n "checking for $ac_word... " >&6; } 8356if ${ac_cv_prog_OTOOL+:} false; then : 8357 $as_echo_n "(cached) " >&6 8358else 8359 if test -n "$OTOOL"; then 8360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8361else 8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8363for as_dir in $PATH 8364do 8365 IFS=$as_save_IFS 8366 test -z "$as_dir" && as_dir=. 8367 for ac_exec_ext in '' $ac_executable_extensions; do 8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8369 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8371 break 2 8372 fi 8373done 8374 done 8375IFS=$as_save_IFS 8376 8377fi 8378fi 8379OTOOL=$ac_cv_prog_OTOOL 8380if test -n "$OTOOL"; then 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8382$as_echo "$OTOOL" >&6; } 8383else 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8385$as_echo "no" >&6; } 8386fi 8387 8388 8389fi 8390if test -z "$ac_cv_prog_OTOOL"; then 8391 ac_ct_OTOOL=$OTOOL 8392 # Extract the first word of "otool", so it can be a program name with args. 8393set dummy otool; ac_word=$2 8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8395$as_echo_n "checking for $ac_word... " >&6; } 8396if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 if test -n "$ac_ct_OTOOL"; then 8400 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8401else 8402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8403for as_dir in $PATH 8404do 8405 IFS=$as_save_IFS 8406 test -z "$as_dir" && as_dir=. 8407 for ac_exec_ext in '' $ac_executable_extensions; do 8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8409 ac_cv_prog_ac_ct_OTOOL="otool" 8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8411 break 2 8412 fi 8413done 8414 done 8415IFS=$as_save_IFS 8416 8417fi 8418fi 8419ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8420if test -n "$ac_ct_OTOOL"; then 8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8422$as_echo "$ac_ct_OTOOL" >&6; } 8423else 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8425$as_echo "no" >&6; } 8426fi 8427 8428 if test "x$ac_ct_OTOOL" = x; then 8429 OTOOL=":" 8430 else 8431 case $cross_compiling:$ac_tool_warned in 8432yes:) 8433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8435ac_tool_warned=yes ;; 8436esac 8437 OTOOL=$ac_ct_OTOOL 8438 fi 8439else 8440 OTOOL="$ac_cv_prog_OTOOL" 8441fi 8442 8443 if test -n "$ac_tool_prefix"; then 8444 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8445set dummy ${ac_tool_prefix}otool64; ac_word=$2 8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8447$as_echo_n "checking for $ac_word... " >&6; } 8448if ${ac_cv_prog_OTOOL64+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 if test -n "$OTOOL64"; then 8452 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8453else 8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8455for as_dir in $PATH 8456do 8457 IFS=$as_save_IFS 8458 test -z "$as_dir" && as_dir=. 8459 for ac_exec_ext in '' $ac_executable_extensions; do 8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8463 break 2 8464 fi 8465done 8466 done 8467IFS=$as_save_IFS 8468 8469fi 8470fi 8471OTOOL64=$ac_cv_prog_OTOOL64 8472if test -n "$OTOOL64"; then 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8474$as_echo "$OTOOL64" >&6; } 8475else 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8477$as_echo "no" >&6; } 8478fi 8479 8480 8481fi 8482if test -z "$ac_cv_prog_OTOOL64"; then 8483 ac_ct_OTOOL64=$OTOOL64 8484 # Extract the first word of "otool64", so it can be a program name with args. 8485set dummy otool64; ac_word=$2 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8487$as_echo_n "checking for $ac_word... " >&6; } 8488if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8489 $as_echo_n "(cached) " >&6 8490else 8491 if test -n "$ac_ct_OTOOL64"; then 8492 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8493else 8494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8495for as_dir in $PATH 8496do 8497 IFS=$as_save_IFS 8498 test -z "$as_dir" && as_dir=. 8499 for ac_exec_ext in '' $ac_executable_extensions; do 8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8501 ac_cv_prog_ac_ct_OTOOL64="otool64" 8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8503 break 2 8504 fi 8505done 8506 done 8507IFS=$as_save_IFS 8508 8509fi 8510fi 8511ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8512if test -n "$ac_ct_OTOOL64"; then 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8514$as_echo "$ac_ct_OTOOL64" >&6; } 8515else 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8517$as_echo "no" >&6; } 8518fi 8519 8520 if test "x$ac_ct_OTOOL64" = x; then 8521 OTOOL64=":" 8522 else 8523 case $cross_compiling:$ac_tool_warned in 8524yes:) 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8527ac_tool_warned=yes ;; 8528esac 8529 OTOOL64=$ac_ct_OTOOL64 8530 fi 8531else 8532 OTOOL64="$ac_cv_prog_OTOOL64" 8533fi 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8562$as_echo_n "checking for -single_module linker flag... " >&6; } 8563if ${lt_cv_apple_cc_single_mod+:} false; then : 8564 $as_echo_n "(cached) " >&6 8565else 8566 lt_cv_apple_cc_single_mod=no 8567 if test -z "$LT_MULTI_MODULE"; then 8568 # By default we will add the -single_module flag. You can override 8569 # by either setting the environment variable LT_MULTI_MODULE 8570 # non-empty at configure time, or by adding -multi_module to the 8571 # link flags. 8572 rm -rf libconftest.dylib* 8573 echo "int foo(void){return 1;}" > conftest.c 8574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8575-dynamiclib -Wl,-single_module conftest.c" >&5 8576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8578 _lt_result=$? 8579 # If there is a non-empty error log, and "single_module" 8580 # appears in it, assume the flag caused a linker warning 8581 if test -s conftest.err && $GREP single_module conftest.err; then 8582 cat conftest.err >&5 8583 # Otherwise, if the output was created with a 0 exit code from 8584 # the compiler, it worked. 8585 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8586 lt_cv_apple_cc_single_mod=yes 8587 else 8588 cat conftest.err >&5 8589 fi 8590 rm -rf libconftest.dylib* 8591 rm -f conftest.* 8592 fi 8593fi 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8595$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8596 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8598$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8599if ${lt_cv_ld_exported_symbols_list+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 lt_cv_ld_exported_symbols_list=no 8603 save_LDFLAGS=$LDFLAGS 8604 echo "_main" > conftest.sym 8605 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608 8609int 8610main () 8611{ 8612 8613 ; 8614 return 0; 8615} 8616_ACEOF 8617if ac_fn_c_try_link "$LINENO"; then : 8618 lt_cv_ld_exported_symbols_list=yes 8619else 8620 lt_cv_ld_exported_symbols_list=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext \ 8623 conftest$ac_exeext conftest.$ac_ext 8624 LDFLAGS=$save_LDFLAGS 8625 8626fi 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8628$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8629 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8631$as_echo_n "checking for -force_load linker flag... " >&6; } 8632if ${lt_cv_ld_force_load+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 lt_cv_ld_force_load=no 8636 cat > conftest.c << _LT_EOF 8637int forced_loaded() { return 2;} 8638_LT_EOF 8639 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8640 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8641 echo "$AR cru libconftest.a conftest.o" >&5 8642 $AR cru libconftest.a conftest.o 2>&5 8643 echo "$RANLIB libconftest.a" >&5 8644 $RANLIB libconftest.a 2>&5 8645 cat > conftest.c << _LT_EOF 8646int main() { return 0;} 8647_LT_EOF 8648 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8649 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8650 _lt_result=$? 8651 if test -s conftest.err && $GREP force_load conftest.err; then 8652 cat conftest.err >&5 8653 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8654 lt_cv_ld_force_load=yes 8655 else 8656 cat conftest.err >&5 8657 fi 8658 rm -f conftest.err libconftest.a conftest conftest.c 8659 rm -rf conftest.dSYM 8660 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8663$as_echo "$lt_cv_ld_force_load" >&6; } 8664 case $host_os in 8665 rhapsody* | darwin1.[012]) 8666 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8667 darwin1.*) 8668 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8669 darwin*) # darwin 5.x on 8670 # if running on 10.5 or later, the deployment target defaults 8671 # to the OS version, if on x86, and 10.4, the deployment 8672 # target defaults to 10.4. Don't you love it? 8673 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8674 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8675 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8676 10.[012][,.]*) 8677 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8678 10.*) 8679 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8680 esac 8681 ;; 8682 esac 8683 if test yes = "$lt_cv_apple_cc_single_mod"; then 8684 _lt_dar_single_mod='$single_module' 8685 fi 8686 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8687 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8688 else 8689 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8690 fi 8691 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8692 _lt_dsymutil='~$DSYMUTIL $lib || :' 8693 else 8694 _lt_dsymutil= 8695 fi 8696 ;; 8697 esac 8698 8699# func_munge_path_list VARIABLE PATH 8700# ----------------------------------- 8701# VARIABLE is name of variable containing _space_ separated list of 8702# directories to be munged by the contents of PATH, which is string 8703# having a format: 8704# "DIR[:DIR]:" 8705# string "DIR[ DIR]" will be prepended to VARIABLE 8706# ":DIR[:DIR]" 8707# string "DIR[ DIR]" will be appended to VARIABLE 8708# "DIRP[:DIRP]::[DIRA:]DIRA" 8709# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8710# "DIRA[ DIRA]" will be appended to VARIABLE 8711# "DIR[:DIR]" 8712# VARIABLE will be replaced by "DIR[ DIR]" 8713func_munge_path_list () 8714{ 8715 case x$2 in 8716 x) 8717 ;; 8718 *:) 8719 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8720 ;; 8721 x:*) 8722 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8723 ;; 8724 *::*) 8725 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8726 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8727 ;; 8728 *) 8729 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8730 ;; 8731 esac 8732} 8733 8734for ac_header in dlfcn.h 8735do : 8736 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8737" 8738if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8739 cat >>confdefs.h <<_ACEOF 8740#define HAVE_DLFCN_H 1 8741_ACEOF 8742 8743fi 8744 8745done 8746 8747 8748 8749 8750 8751# Set options 8752 8753 8754 8755 enable_dlopen=no 8756 8757 8758 enable_win32_dll=no 8759 8760 8761 # Check whether --enable-shared was given. 8762if test "${enable_shared+set}" = set; then : 8763 enableval=$enable_shared; p=${PACKAGE-default} 8764 case $enableval in 8765 yes) enable_shared=yes ;; 8766 no) enable_shared=no ;; 8767 *) 8768 enable_shared=no 8769 # Look at the argument we got. We use all the common list separators. 8770 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8771 for pkg in $enableval; do 8772 IFS=$lt_save_ifs 8773 if test "X$pkg" = "X$p"; then 8774 enable_shared=yes 8775 fi 8776 done 8777 IFS=$lt_save_ifs 8778 ;; 8779 esac 8780else 8781 enable_shared=yes 8782fi 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 # Check whether --enable-static was given. 8793if test "${enable_static+set}" = set; then : 8794 enableval=$enable_static; p=${PACKAGE-default} 8795 case $enableval in 8796 yes) enable_static=yes ;; 8797 no) enable_static=no ;; 8798 *) 8799 enable_static=no 8800 # Look at the argument we got. We use all the common list separators. 8801 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8802 for pkg in $enableval; do 8803 IFS=$lt_save_ifs 8804 if test "X$pkg" = "X$p"; then 8805 enable_static=yes 8806 fi 8807 done 8808 IFS=$lt_save_ifs 8809 ;; 8810 esac 8811else 8812 enable_static=yes 8813fi 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824# Check whether --with-pic was given. 8825if test "${with_pic+set}" = set; then : 8826 withval=$with_pic; lt_p=${PACKAGE-default} 8827 case $withval in 8828 yes|no) pic_mode=$withval ;; 8829 *) 8830 pic_mode=default 8831 # Look at the argument we got. We use all the common list separators. 8832 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8833 for lt_pkg in $withval; do 8834 IFS=$lt_save_ifs 8835 if test "X$lt_pkg" = "X$lt_p"; then 8836 pic_mode=yes 8837 fi 8838 done 8839 IFS=$lt_save_ifs 8840 ;; 8841 esac 8842else 8843 pic_mode=default 8844fi 8845 8846 8847 8848 8849 8850 8851 8852 8853 # Check whether --enable-fast-install was given. 8854if test "${enable_fast_install+set}" = set; then : 8855 enableval=$enable_fast_install; p=${PACKAGE-default} 8856 case $enableval in 8857 yes) enable_fast_install=yes ;; 8858 no) enable_fast_install=no ;; 8859 *) 8860 enable_fast_install=no 8861 # Look at the argument we got. We use all the common list separators. 8862 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8863 for pkg in $enableval; do 8864 IFS=$lt_save_ifs 8865 if test "X$pkg" = "X$p"; then 8866 enable_fast_install=yes 8867 fi 8868 done 8869 IFS=$lt_save_ifs 8870 ;; 8871 esac 8872else 8873 enable_fast_install=yes 8874fi 8875 8876 8877 8878 8879 8880 8881 8882 8883 shared_archive_member_spec= 8884case $host,$enable_shared in 8885power*-*-aix[5-9]*,yes) 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8887$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8888 8889# Check whether --with-aix-soname was given. 8890if test "${with_aix_soname+set}" = set; then : 8891 withval=$with_aix_soname; case $withval in 8892 aix|svr4|both) 8893 ;; 8894 *) 8895 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8896 ;; 8897 esac 8898 lt_cv_with_aix_soname=$with_aix_soname 8899else 8900 if ${lt_cv_with_aix_soname+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902else 8903 lt_cv_with_aix_soname=aix 8904fi 8905 8906 with_aix_soname=$lt_cv_with_aix_soname 8907fi 8908 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8910$as_echo "$with_aix_soname" >&6; } 8911 if test aix != "$with_aix_soname"; then 8912 # For the AIX way of multilib, we name the shared archive member 8913 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8914 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8915 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8916 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8917 if test 64 = "${OBJECT_MODE-32}"; then 8918 shared_archive_member_spec=shr_64 8919 else 8920 shared_archive_member_spec=shr 8921 fi 8922 fi 8923 ;; 8924*) 8925 with_aix_soname=aix 8926 ;; 8927esac 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938# This can be used to rebuild libtool when needed 8939LIBTOOL_DEPS=$ltmain 8940 8941# Always use our own libtool. 8942LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973test -z "$LN_S" && LN_S="ln -s" 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988if test -n "${ZSH_VERSION+set}"; then 8989 setopt NO_GLOB_SUBST 8990fi 8991 8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8993$as_echo_n "checking for objdir... " >&6; } 8994if ${lt_cv_objdir+:} false; then : 8995 $as_echo_n "(cached) " >&6 8996else 8997 rm -f .libs 2>/dev/null 8998mkdir .libs 2>/dev/null 8999if test -d .libs; then 9000 lt_cv_objdir=.libs 9001else 9002 # MS-DOS does not allow filenames that begin with a dot. 9003 lt_cv_objdir=_libs 9004fi 9005rmdir .libs 2>/dev/null 9006fi 9007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9008$as_echo "$lt_cv_objdir" >&6; } 9009objdir=$lt_cv_objdir 9010 9011 9012 9013 9014 9015cat >>confdefs.h <<_ACEOF 9016#define LT_OBJDIR "$lt_cv_objdir/" 9017_ACEOF 9018 9019 9020 9021 9022case $host_os in 9023aix3*) 9024 # AIX sometimes has problems with the GCC collect2 program. For some 9025 # reason, if we set the COLLECT_NAMES environment variable, the problems 9026 # vanish in a puff of smoke. 9027 if test set != "${COLLECT_NAMES+set}"; then 9028 COLLECT_NAMES= 9029 export COLLECT_NAMES 9030 fi 9031 ;; 9032esac 9033 9034# Global variables: 9035ofile=libtool 9036can_build_shared=yes 9037 9038# All known linkers require a '.a' archive for static linking (except MSVC, 9039# which needs '.lib'). 9040libext=a 9041 9042with_gnu_ld=$lt_cv_prog_gnu_ld 9043 9044old_CC=$CC 9045old_CFLAGS=$CFLAGS 9046 9047# Set sane defaults for various variables 9048test -z "$CC" && CC=cc 9049test -z "$LTCC" && LTCC=$CC 9050test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9051test -z "$LD" && LD=ld 9052test -z "$ac_objext" && ac_objext=o 9053 9054func_cc_basename $compiler 9055cc_basename=$func_cc_basename_result 9056 9057 9058# Only perform the check for file, if the check method requires it 9059test -z "$MAGIC_CMD" && MAGIC_CMD=file 9060case $deplibs_check_method in 9061file_magic*) 9062 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9064$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9065if ${lt_cv_path_MAGIC_CMD+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067else 9068 case $MAGIC_CMD in 9069[\\/*] | ?:[\\/]*) 9070 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9071 ;; 9072*) 9073 lt_save_MAGIC_CMD=$MAGIC_CMD 9074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9076 for ac_dir in $ac_dummy; do 9077 IFS=$lt_save_ifs 9078 test -z "$ac_dir" && ac_dir=. 9079 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9080 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9081 if test -n "$file_magic_test_file"; then 9082 case $deplibs_check_method in 9083 "file_magic "*) 9084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9087 $EGREP "$file_magic_regex" > /dev/null; then 9088 : 9089 else 9090 cat <<_LT_EOF 1>&2 9091 9092*** Warning: the command libtool uses to detect shared libraries, 9093*** $file_magic_cmd, produces output that libtool cannot recognize. 9094*** The result is that libtool may fail to recognize shared libraries 9095*** as such. This will affect the creation of libtool libraries that 9096*** depend on shared libraries, but programs linked with such libtool 9097*** libraries will work regardless of this problem. Nevertheless, you 9098*** may want to report the problem to your system manager and/or to 9099*** bug-libtool@gnu.org 9100 9101_LT_EOF 9102 fi ;; 9103 esac 9104 fi 9105 break 9106 fi 9107 done 9108 IFS=$lt_save_ifs 9109 MAGIC_CMD=$lt_save_MAGIC_CMD 9110 ;; 9111esac 9112fi 9113 9114MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9115if test -n "$MAGIC_CMD"; then 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9117$as_echo "$MAGIC_CMD" >&6; } 9118else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120$as_echo "no" >&6; } 9121fi 9122 9123 9124 9125 9126 9127if test -z "$lt_cv_path_MAGIC_CMD"; then 9128 if test -n "$ac_tool_prefix"; then 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9130$as_echo_n "checking for file... " >&6; } 9131if ${lt_cv_path_MAGIC_CMD+:} false; then : 9132 $as_echo_n "(cached) " >&6 9133else 9134 case $MAGIC_CMD in 9135[\\/*] | ?:[\\/]*) 9136 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9137 ;; 9138*) 9139 lt_save_MAGIC_CMD=$MAGIC_CMD 9140 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9141 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9142 for ac_dir in $ac_dummy; do 9143 IFS=$lt_save_ifs 9144 test -z "$ac_dir" && ac_dir=. 9145 if test -f "$ac_dir/file"; then 9146 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9147 if test -n "$file_magic_test_file"; then 9148 case $deplibs_check_method in 9149 "file_magic "*) 9150 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9151 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9152 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9153 $EGREP "$file_magic_regex" > /dev/null; then 9154 : 9155 else 9156 cat <<_LT_EOF 1>&2 9157 9158*** Warning: the command libtool uses to detect shared libraries, 9159*** $file_magic_cmd, produces output that libtool cannot recognize. 9160*** The result is that libtool may fail to recognize shared libraries 9161*** as such. This will affect the creation of libtool libraries that 9162*** depend on shared libraries, but programs linked with such libtool 9163*** libraries will work regardless of this problem. Nevertheless, you 9164*** may want to report the problem to your system manager and/or to 9165*** bug-libtool@gnu.org 9166 9167_LT_EOF 9168 fi ;; 9169 esac 9170 fi 9171 break 9172 fi 9173 done 9174 IFS=$lt_save_ifs 9175 MAGIC_CMD=$lt_save_MAGIC_CMD 9176 ;; 9177esac 9178fi 9179 9180MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9181if test -n "$MAGIC_CMD"; then 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9183$as_echo "$MAGIC_CMD" >&6; } 9184else 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9186$as_echo "no" >&6; } 9187fi 9188 9189 9190 else 9191 MAGIC_CMD=: 9192 fi 9193fi 9194 9195 fi 9196 ;; 9197esac 9198 9199# Use C for the default configuration in the libtool script 9200 9201lt_save_CC=$CC 9202ac_ext=c 9203ac_cpp='$CPP $CPPFLAGS' 9204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9206ac_compiler_gnu=$ac_cv_c_compiler_gnu 9207 9208 9209# Source file extension for C test sources. 9210ac_ext=c 9211 9212# Object file extension for compiled C test sources. 9213objext=o 9214objext=$objext 9215 9216# Code to be used in simple compile tests 9217lt_simple_compile_test_code="int some_variable = 0;" 9218 9219# Code to be used in simple link tests 9220lt_simple_link_test_code='int main(){return(0);}' 9221 9222 9223 9224 9225 9226 9227 9228# If no C compiler was specified, use CC. 9229LTCC=${LTCC-"$CC"} 9230 9231# If no C compiler flags were specified, use CFLAGS. 9232LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9233 9234# Allow CC to be a program name with arguments. 9235compiler=$CC 9236 9237# Save the default compiler, since it gets overwritten when the other 9238# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9239compiler_DEFAULT=$CC 9240 9241# save warnings/boilerplate of simple test code 9242ac_outfile=conftest.$ac_objext 9243echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9244eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9245_lt_compiler_boilerplate=`cat conftest.err` 9246$RM conftest* 9247 9248ac_outfile=conftest.$ac_objext 9249echo "$lt_simple_link_test_code" >conftest.$ac_ext 9250eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9251_lt_linker_boilerplate=`cat conftest.err` 9252$RM -r conftest* 9253 9254 9255if test -n "$compiler"; then 9256 9257lt_prog_compiler_no_builtin_flag= 9258 9259if test yes = "$GCC"; then 9260 case $cc_basename in 9261 nvcc*) 9262 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9263 *) 9264 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9265 esac 9266 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9268$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9269if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9270 $as_echo_n "(cached) " >&6 9271else 9272 lt_cv_prog_compiler_rtti_exceptions=no 9273 ac_outfile=conftest.$ac_objext 9274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9275 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9276 # Insert the option either (1) after the last *FLAGS variable, or 9277 # (2) before a word containing "conftest.", or (3) at the end. 9278 # Note that $ac_compile itself does not contain backslashes and begins 9279 # with a dollar sign (not a hyphen), so the echo should work correctly. 9280 # The option is referenced via a variable to avoid confusing sed. 9281 lt_compile=`echo "$ac_compile" | $SED \ 9282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9284 -e 's:$: $lt_compiler_flag:'` 9285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9286 (eval "$lt_compile" 2>conftest.err) 9287 ac_status=$? 9288 cat conftest.err >&5 9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9290 if (exit $ac_status) && test -s "$ac_outfile"; then 9291 # The compiler can only warn and ignore the option if not recognized 9292 # So say no if there are warnings other than the usual output. 9293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9296 lt_cv_prog_compiler_rtti_exceptions=yes 9297 fi 9298 fi 9299 $RM conftest* 9300 9301fi 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9303$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9304 9305if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9306 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9307else 9308 : 9309fi 9310 9311fi 9312 9313 9314 9315 9316 9317 9318 lt_prog_compiler_wl= 9319lt_prog_compiler_pic= 9320lt_prog_compiler_static= 9321 9322 9323 if test yes = "$GCC"; then 9324 lt_prog_compiler_wl='-Wl,' 9325 lt_prog_compiler_static='-static' 9326 9327 case $host_os in 9328 aix*) 9329 # All AIX code is PIC. 9330 if test ia64 = "$host_cpu"; then 9331 # AIX 5 now supports IA64 processor 9332 lt_prog_compiler_static='-Bstatic' 9333 fi 9334 lt_prog_compiler_pic='-fPIC' 9335 ;; 9336 9337 amigaos*) 9338 case $host_cpu in 9339 powerpc) 9340 # see comment about AmigaOS4 .so support 9341 lt_prog_compiler_pic='-fPIC' 9342 ;; 9343 m68k) 9344 # FIXME: we need at least 68020 code to build shared libraries, but 9345 # adding the '-m68020' flag to GCC prevents building anything better, 9346 # like '-m68040'. 9347 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9348 ;; 9349 esac 9350 ;; 9351 9352 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9353 # PIC is the default for these OSes. 9354 ;; 9355 9356 mingw* | cygwin* | pw32* | os2* | cegcc*) 9357 # This hack is so that the source file can tell whether it is being 9358 # built for inclusion in a dll (and should export symbols for example). 9359 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9360 # (--disable-auto-import) libraries 9361 lt_prog_compiler_pic='-DDLL_EXPORT' 9362 case $host_os in 9363 os2*) 9364 lt_prog_compiler_static='$wl-static' 9365 ;; 9366 esac 9367 ;; 9368 9369 darwin* | rhapsody*) 9370 # PIC is the default on this platform 9371 # Common symbols not allowed in MH_DYLIB files 9372 lt_prog_compiler_pic='-fno-common' 9373 ;; 9374 9375 haiku*) 9376 # PIC is the default for Haiku. 9377 # The "-static" flag exists, but is broken. 9378 lt_prog_compiler_static= 9379 ;; 9380 9381 hpux*) 9382 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9383 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9384 # sets the default TLS model and affects inlining. 9385 case $host_cpu in 9386 hppa*64*) 9387 # +Z the default 9388 ;; 9389 *) 9390 lt_prog_compiler_pic='-fPIC' 9391 ;; 9392 esac 9393 ;; 9394 9395 interix[3-9]*) 9396 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9397 # Instead, we relocate shared libraries at runtime. 9398 ;; 9399 9400 msdosdjgpp*) 9401 # Just because we use GCC doesn't mean we suddenly get shared libraries 9402 # on systems that don't support them. 9403 lt_prog_compiler_can_build_shared=no 9404 enable_shared=no 9405 ;; 9406 9407 *nto* | *qnx*) 9408 # QNX uses GNU C++, but need to define -shared option too, otherwise 9409 # it will coredump. 9410 lt_prog_compiler_pic='-fPIC -shared' 9411 ;; 9412 9413 sysv4*MP*) 9414 if test -d /usr/nec; then 9415 lt_prog_compiler_pic=-Kconform_pic 9416 fi 9417 ;; 9418 9419 *) 9420 lt_prog_compiler_pic='-fPIC' 9421 ;; 9422 esac 9423 9424 case $cc_basename in 9425 nvcc*) # Cuda Compiler Driver 2.2 9426 lt_prog_compiler_wl='-Xlinker ' 9427 if test -n "$lt_prog_compiler_pic"; then 9428 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9429 fi 9430 ;; 9431 esac 9432 else 9433 # PORTME Check for flag to pass linker flags through the system compiler. 9434 case $host_os in 9435 aix*) 9436 lt_prog_compiler_wl='-Wl,' 9437 if test ia64 = "$host_cpu"; then 9438 # AIX 5 now supports IA64 processor 9439 lt_prog_compiler_static='-Bstatic' 9440 else 9441 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9442 fi 9443 ;; 9444 9445 darwin* | rhapsody*) 9446 # PIC is the default on this platform 9447 # Common symbols not allowed in MH_DYLIB files 9448 lt_prog_compiler_pic='-fno-common' 9449 case $cc_basename in 9450 nagfor*) 9451 # NAG Fortran compiler 9452 lt_prog_compiler_wl='-Wl,-Wl,,' 9453 lt_prog_compiler_pic='-PIC' 9454 lt_prog_compiler_static='-Bstatic' 9455 ;; 9456 esac 9457 ;; 9458 9459 mingw* | cygwin* | pw32* | os2* | cegcc*) 9460 # This hack is so that the source file can tell whether it is being 9461 # built for inclusion in a dll (and should export symbols for example). 9462 lt_prog_compiler_pic='-DDLL_EXPORT' 9463 case $host_os in 9464 os2*) 9465 lt_prog_compiler_static='$wl-static' 9466 ;; 9467 esac 9468 ;; 9469 9470 hpux9* | hpux10* | hpux11*) 9471 lt_prog_compiler_wl='-Wl,' 9472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9473 # not for PA HP-UX. 9474 case $host_cpu in 9475 hppa*64*|ia64*) 9476 # +Z the default 9477 ;; 9478 *) 9479 lt_prog_compiler_pic='+Z' 9480 ;; 9481 esac 9482 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9483 lt_prog_compiler_static='$wl-a ${wl}archive' 9484 ;; 9485 9486 irix5* | irix6* | nonstopux*) 9487 lt_prog_compiler_wl='-Wl,' 9488 # PIC (with -KPIC) is the default. 9489 lt_prog_compiler_static='-non_shared' 9490 ;; 9491 9492 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9493 case $cc_basename in 9494 # old Intel for x86_64, which still supported -KPIC. 9495 ecc*) 9496 lt_prog_compiler_wl='-Wl,' 9497 lt_prog_compiler_pic='-KPIC' 9498 lt_prog_compiler_static='-static' 9499 ;; 9500 # icc used to be incompatible with GCC. 9501 # ICC 10 doesn't accept -KPIC any more. 9502 icc* | ifort*) 9503 lt_prog_compiler_wl='-Wl,' 9504 lt_prog_compiler_pic='-fPIC' 9505 lt_prog_compiler_static='-static' 9506 ;; 9507 # Lahey Fortran 8.1. 9508 lf95*) 9509 lt_prog_compiler_wl='-Wl,' 9510 lt_prog_compiler_pic='--shared' 9511 lt_prog_compiler_static='--static' 9512 ;; 9513 nagfor*) 9514 # NAG Fortran compiler 9515 lt_prog_compiler_wl='-Wl,-Wl,,' 9516 lt_prog_compiler_pic='-PIC' 9517 lt_prog_compiler_static='-Bstatic' 9518 ;; 9519 tcc*) 9520 # Fabrice Bellard et al's Tiny C Compiler 9521 lt_prog_compiler_wl='-Wl,' 9522 lt_prog_compiler_pic='-fPIC' 9523 lt_prog_compiler_static='-static' 9524 ;; 9525 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9526 # Portland Group compilers (*not* the Pentium gcc compiler, 9527 # which looks to be a dead project) 9528 lt_prog_compiler_wl='-Wl,' 9529 lt_prog_compiler_pic='-fpic' 9530 lt_prog_compiler_static='-Bstatic' 9531 ;; 9532 ccc*) 9533 lt_prog_compiler_wl='-Wl,' 9534 # All Alpha code is PIC. 9535 lt_prog_compiler_static='-non_shared' 9536 ;; 9537 xl* | bgxl* | bgf* | mpixl*) 9538 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9539 lt_prog_compiler_wl='-Wl,' 9540 lt_prog_compiler_pic='-qpic' 9541 lt_prog_compiler_static='-qstaticlink' 9542 ;; 9543 *) 9544 case `$CC -V 2>&1 | sed 5q` in 9545 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9546 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9547 lt_prog_compiler_pic='-KPIC' 9548 lt_prog_compiler_static='-Bstatic' 9549 lt_prog_compiler_wl='' 9550 ;; 9551 *Sun\ F* | *Sun*Fortran*) 9552 lt_prog_compiler_pic='-KPIC' 9553 lt_prog_compiler_static='-Bstatic' 9554 lt_prog_compiler_wl='-Qoption ld ' 9555 ;; 9556 *Sun\ C*) 9557 # Sun C 5.9 9558 lt_prog_compiler_pic='-KPIC' 9559 lt_prog_compiler_static='-Bstatic' 9560 lt_prog_compiler_wl='-Wl,' 9561 ;; 9562 *Intel*\ [CF]*Compiler*) 9563 lt_prog_compiler_wl='-Wl,' 9564 lt_prog_compiler_pic='-fPIC' 9565 lt_prog_compiler_static='-static' 9566 ;; 9567 *Portland\ Group*) 9568 lt_prog_compiler_wl='-Wl,' 9569 lt_prog_compiler_pic='-fpic' 9570 lt_prog_compiler_static='-Bstatic' 9571 ;; 9572 esac 9573 ;; 9574 esac 9575 ;; 9576 9577 newsos6) 9578 lt_prog_compiler_pic='-KPIC' 9579 lt_prog_compiler_static='-Bstatic' 9580 ;; 9581 9582 *nto* | *qnx*) 9583 # QNX uses GNU C++, but need to define -shared option too, otherwise 9584 # it will coredump. 9585 lt_prog_compiler_pic='-fPIC -shared' 9586 ;; 9587 9588 osf3* | osf4* | osf5*) 9589 lt_prog_compiler_wl='-Wl,' 9590 # All OSF/1 code is PIC. 9591 lt_prog_compiler_static='-non_shared' 9592 ;; 9593 9594 rdos*) 9595 lt_prog_compiler_static='-non_shared' 9596 ;; 9597 9598 solaris*) 9599 lt_prog_compiler_pic='-KPIC' 9600 lt_prog_compiler_static='-Bstatic' 9601 case $cc_basename in 9602 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9603 lt_prog_compiler_wl='-Qoption ld ';; 9604 *) 9605 lt_prog_compiler_wl='-Wl,';; 9606 esac 9607 ;; 9608 9609 sunos4*) 9610 lt_prog_compiler_wl='-Qoption ld ' 9611 lt_prog_compiler_pic='-PIC' 9612 lt_prog_compiler_static='-Bstatic' 9613 ;; 9614 9615 sysv4 | sysv4.2uw2* | sysv4.3*) 9616 lt_prog_compiler_wl='-Wl,' 9617 lt_prog_compiler_pic='-KPIC' 9618 lt_prog_compiler_static='-Bstatic' 9619 ;; 9620 9621 sysv4*MP*) 9622 if test -d /usr/nec; then 9623 lt_prog_compiler_pic='-Kconform_pic' 9624 lt_prog_compiler_static='-Bstatic' 9625 fi 9626 ;; 9627 9628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9629 lt_prog_compiler_wl='-Wl,' 9630 lt_prog_compiler_pic='-KPIC' 9631 lt_prog_compiler_static='-Bstatic' 9632 ;; 9633 9634 unicos*) 9635 lt_prog_compiler_wl='-Wl,' 9636 lt_prog_compiler_can_build_shared=no 9637 ;; 9638 9639 uts4*) 9640 lt_prog_compiler_pic='-pic' 9641 lt_prog_compiler_static='-Bstatic' 9642 ;; 9643 9644 *) 9645 lt_prog_compiler_can_build_shared=no 9646 ;; 9647 esac 9648 fi 9649 9650case $host_os in 9651 # For platforms that do not support PIC, -DPIC is meaningless: 9652 *djgpp*) 9653 lt_prog_compiler_pic= 9654 ;; 9655 *) 9656 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9657 ;; 9658esac 9659 9660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9661$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9662if ${lt_cv_prog_compiler_pic+:} false; then : 9663 $as_echo_n "(cached) " >&6 9664else 9665 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9666fi 9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9668$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9669lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9670 9671# 9672# Check to make sure the PIC flag actually works. 9673# 9674if test -n "$lt_prog_compiler_pic"; then 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9676$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9677if ${lt_cv_prog_compiler_pic_works+:} false; then : 9678 $as_echo_n "(cached) " >&6 9679else 9680 lt_cv_prog_compiler_pic_works=no 9681 ac_outfile=conftest.$ac_objext 9682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9683 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9684 # Insert the option either (1) after the last *FLAGS variable, or 9685 # (2) before a word containing "conftest.", or (3) at the end. 9686 # Note that $ac_compile itself does not contain backslashes and begins 9687 # with a dollar sign (not a hyphen), so the echo should work correctly. 9688 # The option is referenced via a variable to avoid confusing sed. 9689 lt_compile=`echo "$ac_compile" | $SED \ 9690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9692 -e 's:$: $lt_compiler_flag:'` 9693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9694 (eval "$lt_compile" 2>conftest.err) 9695 ac_status=$? 9696 cat conftest.err >&5 9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9698 if (exit $ac_status) && test -s "$ac_outfile"; then 9699 # The compiler can only warn and ignore the option if not recognized 9700 # So say no if there are warnings other than the usual output. 9701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9704 lt_cv_prog_compiler_pic_works=yes 9705 fi 9706 fi 9707 $RM conftest* 9708 9709fi 9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9711$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9712 9713if test yes = "$lt_cv_prog_compiler_pic_works"; then 9714 case $lt_prog_compiler_pic in 9715 "" | " "*) ;; 9716 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9717 esac 9718else 9719 lt_prog_compiler_pic= 9720 lt_prog_compiler_can_build_shared=no 9721fi 9722 9723fi 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735# 9736# Check to make sure the static flag actually works. 9737# 9738wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9740$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9741if ${lt_cv_prog_compiler_static_works+:} false; then : 9742 $as_echo_n "(cached) " >&6 9743else 9744 lt_cv_prog_compiler_static_works=no 9745 save_LDFLAGS=$LDFLAGS 9746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9747 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9749 # The linker can only warn and ignore the option if not recognized 9750 # So say no if there are warnings 9751 if test -s conftest.err; then 9752 # Append any errors to the config.log. 9753 cat conftest.err 1>&5 9754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9756 if diff conftest.exp conftest.er2 >/dev/null; then 9757 lt_cv_prog_compiler_static_works=yes 9758 fi 9759 else 9760 lt_cv_prog_compiler_static_works=yes 9761 fi 9762 fi 9763 $RM -r conftest* 9764 LDFLAGS=$save_LDFLAGS 9765 9766fi 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9768$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9769 9770if test yes = "$lt_cv_prog_compiler_static_works"; then 9771 : 9772else 9773 lt_prog_compiler_static= 9774fi 9775 9776 9777 9778 9779 9780 9781 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9783$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9784if ${lt_cv_prog_compiler_c_o+:} false; then : 9785 $as_echo_n "(cached) " >&6 9786else 9787 lt_cv_prog_compiler_c_o=no 9788 $RM -r conftest 2>/dev/null 9789 mkdir conftest 9790 cd conftest 9791 mkdir out 9792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9793 9794 lt_compiler_flag="-o out/conftest2.$ac_objext" 9795 # Insert the option either (1) after the last *FLAGS variable, or 9796 # (2) before a word containing "conftest.", or (3) at the end. 9797 # Note that $ac_compile itself does not contain backslashes and begins 9798 # with a dollar sign (not a hyphen), so the echo should work correctly. 9799 lt_compile=`echo "$ac_compile" | $SED \ 9800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9802 -e 's:$: $lt_compiler_flag:'` 9803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9804 (eval "$lt_compile" 2>out/conftest.err) 9805 ac_status=$? 9806 cat out/conftest.err >&5 9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9808 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9809 then 9810 # The compiler can only warn and ignore the option if not recognized 9811 # So say no if there are warnings 9812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9815 lt_cv_prog_compiler_c_o=yes 9816 fi 9817 fi 9818 chmod u+w . 2>&5 9819 $RM conftest* 9820 # SGI C++ compiler will create directory out/ii_files/ for 9821 # template instantiation 9822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9823 $RM out/* && rmdir out 9824 cd .. 9825 $RM -r conftest 9826 $RM conftest* 9827 9828fi 9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9830$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9831 9832 9833 9834 9835 9836 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9838$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9839if ${lt_cv_prog_compiler_c_o+:} false; then : 9840 $as_echo_n "(cached) " >&6 9841else 9842 lt_cv_prog_compiler_c_o=no 9843 $RM -r conftest 2>/dev/null 9844 mkdir conftest 9845 cd conftest 9846 mkdir out 9847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9848 9849 lt_compiler_flag="-o out/conftest2.$ac_objext" 9850 # Insert the option either (1) after the last *FLAGS variable, or 9851 # (2) before a word containing "conftest.", or (3) at the end. 9852 # Note that $ac_compile itself does not contain backslashes and begins 9853 # with a dollar sign (not a hyphen), so the echo should work correctly. 9854 lt_compile=`echo "$ac_compile" | $SED \ 9855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9857 -e 's:$: $lt_compiler_flag:'` 9858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9859 (eval "$lt_compile" 2>out/conftest.err) 9860 ac_status=$? 9861 cat out/conftest.err >&5 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9864 then 9865 # The compiler can only warn and ignore the option if not recognized 9866 # So say no if there are warnings 9867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9870 lt_cv_prog_compiler_c_o=yes 9871 fi 9872 fi 9873 chmod u+w . 2>&5 9874 $RM conftest* 9875 # SGI C++ compiler will create directory out/ii_files/ for 9876 # template instantiation 9877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9878 $RM out/* && rmdir out 9879 cd .. 9880 $RM -r conftest 9881 $RM conftest* 9882 9883fi 9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9885$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9886 9887 9888 9889 9890hard_links=nottested 9891if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9892 # do not overwrite the value of need_locks provided by the user 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9894$as_echo_n "checking if we can lock with hard links... " >&6; } 9895 hard_links=yes 9896 $RM conftest* 9897 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9898 touch conftest.a 9899 ln conftest.a conftest.b 2>&5 || hard_links=no 9900 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9902$as_echo "$hard_links" >&6; } 9903 if test no = "$hard_links"; then 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9905$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9906 need_locks=warn 9907 fi 9908else 9909 need_locks=no 9910fi 9911 9912 9913 9914 9915 9916 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9918$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9919 9920 runpath_var= 9921 allow_undefined_flag= 9922 always_export_symbols=no 9923 archive_cmds= 9924 archive_expsym_cmds= 9925 compiler_needs_object=no 9926 enable_shared_with_static_runtimes=no 9927 export_dynamic_flag_spec= 9928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9929 hardcode_automatic=no 9930 hardcode_direct=no 9931 hardcode_direct_absolute=no 9932 hardcode_libdir_flag_spec= 9933 hardcode_libdir_separator= 9934 hardcode_minus_L=no 9935 hardcode_shlibpath_var=unsupported 9936 inherit_rpath=no 9937 link_all_deplibs=unknown 9938 module_cmds= 9939 module_expsym_cmds= 9940 old_archive_from_new_cmds= 9941 old_archive_from_expsyms_cmds= 9942 thread_safe_flag_spec= 9943 whole_archive_flag_spec= 9944 # include_expsyms should be a list of space-separated symbols to be *always* 9945 # included in the symbol list 9946 include_expsyms= 9947 # exclude_expsyms can be an extended regexp of symbols to exclude 9948 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9949 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9950 # as well as any symbol that contains 'd'. 9951 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9952 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9953 # platforms (ab)use it in PIC code, but their linkers get confused if 9954 # the symbol is explicitly referenced. Since portable code cannot 9955 # rely on this symbol name, it's probably fine to never include it in 9956 # preloaded symbol tables. 9957 # Exclude shared library initialization/finalization symbols. 9958 extract_expsyms_cmds= 9959 9960 case $host_os in 9961 cygwin* | mingw* | pw32* | cegcc*) 9962 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9963 # When not using gcc, we currently assume that we are using 9964 # Microsoft Visual C++. 9965 if test yes != "$GCC"; then 9966 with_gnu_ld=no 9967 fi 9968 ;; 9969 interix*) 9970 # we just hope/assume this is gcc and not c89 (= MSVC++) 9971 with_gnu_ld=yes 9972 ;; 9973 openbsd* | bitrig*) 9974 with_gnu_ld=no 9975 ;; 9976 esac 9977 9978 ld_shlibs=yes 9979 9980 # On some targets, GNU ld is compatible enough with the native linker 9981 # that we're better off using the native interface for both. 9982 lt_use_gnu_ld_interface=no 9983 if test yes = "$with_gnu_ld"; then 9984 case $host_os in 9985 aix*) 9986 # The AIX port of GNU ld has always aspired to compatibility 9987 # with the native linker. However, as the warning in the GNU ld 9988 # block says, versions before 2.19.5* couldn't really create working 9989 # shared libraries, regardless of the interface used. 9990 case `$LD -v 2>&1` in 9991 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9992 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9993 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9994 *) 9995 lt_use_gnu_ld_interface=yes 9996 ;; 9997 esac 9998 ;; 9999 *) 10000 lt_use_gnu_ld_interface=yes 10001 ;; 10002 esac 10003 fi 10004 10005 if test yes = "$lt_use_gnu_ld_interface"; then 10006 # If archive_cmds runs LD, not CC, wlarc should be empty 10007 wlarc='$wl' 10008 10009 # Set some defaults for GNU ld with shared library support. These 10010 # are reset later if shared libraries are not supported. Putting them 10011 # here allows them to be overridden if necessary. 10012 runpath_var=LD_RUN_PATH 10013 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10014 export_dynamic_flag_spec='$wl--export-dynamic' 10015 # ancient GNU ld didn't support --whole-archive et. al. 10016 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10017 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10018 else 10019 whole_archive_flag_spec= 10020 fi 10021 supports_anon_versioning=no 10022 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10023 *GNU\ gold*) supports_anon_versioning=yes ;; 10024 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10025 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10026 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10027 *\ 2.11.*) ;; # other 2.11 versions 10028 *) supports_anon_versioning=yes ;; 10029 esac 10030 10031 # See if GNU ld supports shared libraries. 10032 case $host_os in 10033 aix[3-9]*) 10034 # On AIX/PPC, the GNU linker is very broken 10035 if test ia64 != "$host_cpu"; then 10036 ld_shlibs=no 10037 cat <<_LT_EOF 1>&2 10038 10039*** Warning: the GNU linker, at least up to release 2.19, is reported 10040*** to be unable to reliably create shared libraries on AIX. 10041*** Therefore, libtool is disabling shared libraries support. If you 10042*** really care for shared libraries, you may want to install binutils 10043*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10044*** You will then need to restart the configuration process. 10045 10046_LT_EOF 10047 fi 10048 ;; 10049 10050 amigaos*) 10051 case $host_cpu in 10052 powerpc) 10053 # see comment about AmigaOS4 .so support 10054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10055 archive_expsym_cmds='' 10056 ;; 10057 m68k) 10058 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)' 10059 hardcode_libdir_flag_spec='-L$libdir' 10060 hardcode_minus_L=yes 10061 ;; 10062 esac 10063 ;; 10064 10065 beos*) 10066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10067 allow_undefined_flag=unsupported 10068 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10069 # support --undefined. This deserves some investigation. FIXME 10070 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10071 else 10072 ld_shlibs=no 10073 fi 10074 ;; 10075 10076 cygwin* | mingw* | pw32* | cegcc*) 10077 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10078 # as there is no search path for DLLs. 10079 hardcode_libdir_flag_spec='-L$libdir' 10080 export_dynamic_flag_spec='$wl--export-all-symbols' 10081 allow_undefined_flag=unsupported 10082 always_export_symbols=no 10083 enable_shared_with_static_runtimes=yes 10084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10085 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10086 10087 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10089 # If the export-symbols file already is a .def file, use it as 10090 # is; otherwise, prepend EXPORTS... 10091 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10092 cp $export_symbols $output_objdir/$soname.def; 10093 else 10094 echo EXPORTS > $output_objdir/$soname.def; 10095 cat $export_symbols >> $output_objdir/$soname.def; 10096 fi~ 10097 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10098 else 10099 ld_shlibs=no 10100 fi 10101 ;; 10102 10103 haiku*) 10104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10105 link_all_deplibs=yes 10106 ;; 10107 10108 os2*) 10109 hardcode_libdir_flag_spec='-L$libdir' 10110 hardcode_minus_L=yes 10111 allow_undefined_flag=unsupported 10112 shrext_cmds=.dll 10113 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10114 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10115 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10116 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10117 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10118 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10119 emximp -o $lib $output_objdir/$libname.def' 10120 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10123 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10124 prefix_cmds="$SED"~ 10125 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10126 prefix_cmds="$prefix_cmds -e 1d"; 10127 fi~ 10128 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10129 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10131 emximp -o $lib $output_objdir/$libname.def' 10132 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10133 enable_shared_with_static_runtimes=yes 10134 ;; 10135 10136 interix[3-9]*) 10137 hardcode_direct=no 10138 hardcode_shlibpath_var=no 10139 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10140 export_dynamic_flag_spec='$wl-E' 10141 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10142 # Instead, shared libraries are loaded at an image base (0x10000000 by 10143 # default) and relocated if they conflict, which is a slow very memory 10144 # consuming and fragmenting process. To avoid this, we pick a random, 10145 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10146 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10147 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10148 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' 10149 ;; 10150 10151 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10152 tmp_diet=no 10153 if test linux-dietlibc = "$host_os"; then 10154 case $cc_basename in 10155 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10156 esac 10157 fi 10158 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10159 && test no = "$tmp_diet" 10160 then 10161 tmp_addflag=' $pic_flag' 10162 tmp_sharedflag='-shared' 10163 case $cc_basename,$host_cpu in 10164 pgcc*) # Portland Group C compiler 10165 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' 10166 tmp_addflag=' $pic_flag' 10167 ;; 10168 pgf77* | pgf90* | pgf95* | pgfortran*) 10169 # Portland Group f77 and f90 compilers 10170 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' 10171 tmp_addflag=' $pic_flag -Mnomain' ;; 10172 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10173 tmp_addflag=' -i_dynamic' ;; 10174 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10175 tmp_addflag=' -i_dynamic -nofor_main' ;; 10176 ifc* | ifort*) # Intel Fortran compiler 10177 tmp_addflag=' -nofor_main' ;; 10178 lf95*) # Lahey Fortran 8.1 10179 whole_archive_flag_spec= 10180 tmp_sharedflag='--shared' ;; 10181 nagfor*) # NAGFOR 5.3 10182 tmp_sharedflag='-Wl,-shared' ;; 10183 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10184 tmp_sharedflag='-qmkshrobj' 10185 tmp_addflag= ;; 10186 nvcc*) # Cuda Compiler Driver 2.2 10187 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' 10188 compiler_needs_object=yes 10189 ;; 10190 esac 10191 case `$CC -V 2>&1 | sed 5q` in 10192 *Sun\ C*) # Sun C 5.9 10193 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' 10194 compiler_needs_object=yes 10195 tmp_sharedflag='-G' ;; 10196 *Sun\ F*) # Sun Fortran 8.3 10197 tmp_sharedflag='-G' ;; 10198 esac 10199 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10200 10201 if test yes = "$supports_anon_versioning"; then 10202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10204 echo "local: *; };" >> $output_objdir/$libname.ver~ 10205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10206 fi 10207 10208 case $cc_basename in 10209 tcc*) 10210 export_dynamic_flag_spec='-rdynamic' 10211 ;; 10212 xlf* | bgf* | bgxlf* | mpixlf*) 10213 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10214 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10215 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10216 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10217 if test yes = "$supports_anon_versioning"; then 10218 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10220 echo "local: *; };" >> $output_objdir/$libname.ver~ 10221 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10222 fi 10223 ;; 10224 esac 10225 else 10226 ld_shlibs=no 10227 fi 10228 ;; 10229 10230 netbsd*) 10231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10232 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10233 wlarc= 10234 else 10235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10236 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10237 fi 10238 ;; 10239 10240 solaris*) 10241 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10242 ld_shlibs=no 10243 cat <<_LT_EOF 1>&2 10244 10245*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10246*** create shared libraries on Solaris systems. Therefore, libtool 10247*** is disabling shared libraries support. We urge you to upgrade GNU 10248*** binutils to release 2.9.1 or newer. Another option is to modify 10249*** your PATH or compiler configuration so that the native linker is 10250*** used, and then restart. 10251 10252_LT_EOF 10253 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10255 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10256 else 10257 ld_shlibs=no 10258 fi 10259 ;; 10260 10261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10262 case `$LD -v 2>&1` in 10263 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10264 ld_shlibs=no 10265 cat <<_LT_EOF 1>&2 10266 10267*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10268*** reliably create shared libraries on SCO systems. Therefore, libtool 10269*** is disabling shared libraries support. We urge you to upgrade GNU 10270*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10271*** your PATH or compiler configuration so that the native linker is 10272*** used, and then restart. 10273 10274_LT_EOF 10275 ;; 10276 *) 10277 # For security reasons, it is highly recommended that you always 10278 # use absolute paths for naming shared libraries, and exclude the 10279 # DT_RUNPATH tag from executables and libraries. But doing so 10280 # requires that you compile everything twice, which is a pain. 10281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10282 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10285 else 10286 ld_shlibs=no 10287 fi 10288 ;; 10289 esac 10290 ;; 10291 10292 sunos4*) 10293 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10294 wlarc= 10295 hardcode_direct=yes 10296 hardcode_shlibpath_var=no 10297 ;; 10298 10299 *) 10300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10302 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10303 else 10304 ld_shlibs=no 10305 fi 10306 ;; 10307 esac 10308 10309 if test no = "$ld_shlibs"; then 10310 runpath_var= 10311 hardcode_libdir_flag_spec= 10312 export_dynamic_flag_spec= 10313 whole_archive_flag_spec= 10314 fi 10315 else 10316 # PORTME fill in a description of your system's linker (not GNU ld) 10317 case $host_os in 10318 aix3*) 10319 allow_undefined_flag=unsupported 10320 always_export_symbols=yes 10321 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' 10322 # Note: this linker hardcodes the directories in LIBPATH if there 10323 # are no directories specified by -L. 10324 hardcode_minus_L=yes 10325 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10326 # Neither direct hardcoding nor static linking is supported with a 10327 # broken collect2. 10328 hardcode_direct=unsupported 10329 fi 10330 ;; 10331 10332 aix[4-9]*) 10333 if test ia64 = "$host_cpu"; then 10334 # On IA64, the linker does run time linking by default, so we don't 10335 # have to do anything special. 10336 aix_use_runtimelinking=no 10337 exp_sym_flag='-Bexport' 10338 no_entry_flag= 10339 else 10340 # If we're using GNU nm, then we don't want the "-C" option. 10341 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10342 # Without the "-l" option, or with the "-B" option, AIX nm treats 10343 # weak defined symbols like other global defined symbols, whereas 10344 # GNU nm marks them as "W". 10345 # While the 'weak' keyword is ignored in the Export File, we need 10346 # it in the Import File for the 'aix-soname' feature, so we have 10347 # to replace the "-B" option with "-P" for AIX nm. 10348 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10349 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10350 else 10351 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10352 fi 10353 aix_use_runtimelinking=no 10354 10355 # Test if we are trying to use run time linking or normal 10356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10357 # have runtime linking enabled, and use it for executables. 10358 # For shared libraries, we enable/disable runtime linking 10359 # depending on the kind of the shared library created - 10360 # when "with_aix_soname,aix_use_runtimelinking" is: 10361 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10362 # "aix,yes" lib.so shared, rtl:yes, for executables 10363 # lib.a static archive 10364 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10365 # lib.a(lib.so.V) shared, rtl:no, for executables 10366 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10367 # lib.a(lib.so.V) shared, rtl:no 10368 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10369 # lib.a static archive 10370 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10371 for ld_flag in $LDFLAGS; do 10372 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10373 aix_use_runtimelinking=yes 10374 break 10375 fi 10376 done 10377 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10378 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10379 # so we don't have lib.a shared libs to link our executables. 10380 # We have to force runtime linking in this case. 10381 aix_use_runtimelinking=yes 10382 LDFLAGS="$LDFLAGS -Wl,-brtl" 10383 fi 10384 ;; 10385 esac 10386 10387 exp_sym_flag='-bexport' 10388 no_entry_flag='-bnoentry' 10389 fi 10390 10391 # When large executables or shared objects are built, AIX ld can 10392 # have problems creating the table of contents. If linking a library 10393 # or program results in "error TOC overflow" add -mminimal-toc to 10394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10396 10397 archive_cmds='' 10398 hardcode_direct=yes 10399 hardcode_direct_absolute=yes 10400 hardcode_libdir_separator=':' 10401 link_all_deplibs=yes 10402 file_list_spec='$wl-f,' 10403 case $with_aix_soname,$aix_use_runtimelinking in 10404 aix,*) ;; # traditional, no import file 10405 svr4,* | *,yes) # use import file 10406 # The Import File defines what to hardcode. 10407 hardcode_direct=no 10408 hardcode_direct_absolute=no 10409 ;; 10410 esac 10411 10412 if test yes = "$GCC"; then 10413 case $host_os in aix4.[012]|aix4.[012].*) 10414 # We only want to do this on AIX 4.2 and lower, the check 10415 # below for broken collect2 doesn't work under 4.3+ 10416 collect2name=`$CC -print-prog-name=collect2` 10417 if test -f "$collect2name" && 10418 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10419 then 10420 # We have reworked collect2 10421 : 10422 else 10423 # We have old collect2 10424 hardcode_direct=unsupported 10425 # It fails to find uninstalled libraries when the uninstalled 10426 # path is not listed in the libpath. Setting hardcode_minus_L 10427 # to unsupported forces relinking 10428 hardcode_minus_L=yes 10429 hardcode_libdir_flag_spec='-L$libdir' 10430 hardcode_libdir_separator= 10431 fi 10432 ;; 10433 esac 10434 shared_flag='-shared' 10435 if test yes = "$aix_use_runtimelinking"; then 10436 shared_flag="$shared_flag "'$wl-G' 10437 fi 10438 # Need to ensure runtime linking is disabled for the traditional 10439 # shared library, or the linker may eventually find shared libraries 10440 # /with/ Import File - we do not want to mix them. 10441 shared_flag_aix='-shared' 10442 shared_flag_svr4='-shared $wl-G' 10443 else 10444 # not using gcc 10445 if test ia64 = "$host_cpu"; then 10446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10447 # chokes on -Wl,-G. The following line is correct: 10448 shared_flag='-G' 10449 else 10450 if test yes = "$aix_use_runtimelinking"; then 10451 shared_flag='$wl-G' 10452 else 10453 shared_flag='$wl-bM:SRE' 10454 fi 10455 shared_flag_aix='$wl-bM:SRE' 10456 shared_flag_svr4='$wl-G' 10457 fi 10458 fi 10459 10460 export_dynamic_flag_spec='$wl-bexpall' 10461 # It seems that -bexpall does not export symbols beginning with 10462 # underscore (_), so it is better to generate a list of symbols to export. 10463 always_export_symbols=yes 10464 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10465 # Warning - without using the other runtime loading flags (-brtl), 10466 # -berok will link without error, but may produce a broken library. 10467 allow_undefined_flag='-berok' 10468 # Determine the default libpath from the value encoded in an 10469 # empty executable. 10470 if test set = "${lt_cv_aix_libpath+set}"; then 10471 aix_libpath=$lt_cv_aix_libpath 10472else 10473 if ${lt_cv_aix_libpath_+:} false; then : 10474 $as_echo_n "(cached) " >&6 10475else 10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10477/* end confdefs.h. */ 10478 10479int 10480main () 10481{ 10482 10483 ; 10484 return 0; 10485} 10486_ACEOF 10487if ac_fn_c_try_link "$LINENO"; then : 10488 10489 lt_aix_libpath_sed=' 10490 /Import File Strings/,/^$/ { 10491 /^0/ { 10492 s/^0 *\([^ ]*\) *$/\1/ 10493 p 10494 } 10495 }' 10496 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10497 # Check for a 64-bit object if we didn't find anything. 10498 if test -z "$lt_cv_aix_libpath_"; then 10499 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10500 fi 10501fi 10502rm -f core conftest.err conftest.$ac_objext \ 10503 conftest$ac_exeext conftest.$ac_ext 10504 if test -z "$lt_cv_aix_libpath_"; then 10505 lt_cv_aix_libpath_=/usr/lib:/lib 10506 fi 10507 10508fi 10509 10510 aix_libpath=$lt_cv_aix_libpath_ 10511fi 10512 10513 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10514 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10515 else 10516 if test ia64 = "$host_cpu"; then 10517 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10518 allow_undefined_flag="-z nodefs" 10519 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" 10520 else 10521 # Determine the default libpath from the value encoded in an 10522 # empty executable. 10523 if test set = "${lt_cv_aix_libpath+set}"; then 10524 aix_libpath=$lt_cv_aix_libpath 10525else 10526 if ${lt_cv_aix_libpath_+:} false; then : 10527 $as_echo_n "(cached) " >&6 10528else 10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10530/* end confdefs.h. */ 10531 10532int 10533main () 10534{ 10535 10536 ; 10537 return 0; 10538} 10539_ACEOF 10540if ac_fn_c_try_link "$LINENO"; then : 10541 10542 lt_aix_libpath_sed=' 10543 /Import File Strings/,/^$/ { 10544 /^0/ { 10545 s/^0 *\([^ ]*\) *$/\1/ 10546 p 10547 } 10548 }' 10549 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10550 # Check for a 64-bit object if we didn't find anything. 10551 if test -z "$lt_cv_aix_libpath_"; then 10552 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10553 fi 10554fi 10555rm -f core conftest.err conftest.$ac_objext \ 10556 conftest$ac_exeext conftest.$ac_ext 10557 if test -z "$lt_cv_aix_libpath_"; then 10558 lt_cv_aix_libpath_=/usr/lib:/lib 10559 fi 10560 10561fi 10562 10563 aix_libpath=$lt_cv_aix_libpath_ 10564fi 10565 10566 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10567 # Warning - without using the other run time loading flags, 10568 # -berok will link without error, but may produce a broken library. 10569 no_undefined_flag=' $wl-bernotok' 10570 allow_undefined_flag=' $wl-berok' 10571 if test yes = "$with_gnu_ld"; then 10572 # We only use this code for GNU lds that support --whole-archive. 10573 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10574 else 10575 # Exported symbols can be pulled into shared objects from archives 10576 whole_archive_flag_spec='$convenience' 10577 fi 10578 archive_cmds_need_lc=yes 10579 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10580 # -brtl affects multiple linker settings, -berok does not and is overridden later 10581 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10582 if test svr4 != "$with_aix_soname"; then 10583 # This is similar to how AIX traditionally builds its shared libraries. 10584 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10585 fi 10586 if test aix != "$with_aix_soname"; then 10587 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10588 else 10589 # used by -dlpreopen to get the symbols 10590 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10591 fi 10592 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10593 fi 10594 fi 10595 ;; 10596 10597 amigaos*) 10598 case $host_cpu in 10599 powerpc) 10600 # see comment about AmigaOS4 .so support 10601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10602 archive_expsym_cmds='' 10603 ;; 10604 m68k) 10605 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)' 10606 hardcode_libdir_flag_spec='-L$libdir' 10607 hardcode_minus_L=yes 10608 ;; 10609 esac 10610 ;; 10611 10612 bsdi[45]*) 10613 export_dynamic_flag_spec=-rdynamic 10614 ;; 10615 10616 cygwin* | mingw* | pw32* | cegcc*) 10617 # When not using gcc, we currently assume that we are using 10618 # Microsoft Visual C++. 10619 # hardcode_libdir_flag_spec is actually meaningless, as there is 10620 # no search path for DLLs. 10621 case $cc_basename in 10622 cl*) 10623 # Native MSVC 10624 hardcode_libdir_flag_spec=' ' 10625 allow_undefined_flag=unsupported 10626 always_export_symbols=yes 10627 file_list_spec='@' 10628 # Tell ltmain to make .lib files, not .a files. 10629 libext=lib 10630 # Tell ltmain to make .dll files, not .so files. 10631 shrext_cmds=.dll 10632 # FIXME: Setting linknames here is a bad hack. 10633 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10634 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10635 cp "$export_symbols" "$output_objdir/$soname.def"; 10636 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10637 else 10638 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10639 fi~ 10640 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10641 linknames=' 10642 # The linker will not automatically build a static lib if we build a DLL. 10643 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10644 enable_shared_with_static_runtimes=yes 10645 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10647 # Don't use ranlib 10648 old_postinstall_cmds='chmod 644 $oldlib' 10649 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10650 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10651 case $lt_outputfile in 10652 *.exe|*.EXE) ;; 10653 *) 10654 lt_outputfile=$lt_outputfile.exe 10655 lt_tool_outputfile=$lt_tool_outputfile.exe 10656 ;; 10657 esac~ 10658 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10659 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10660 $RM "$lt_outputfile.manifest"; 10661 fi' 10662 ;; 10663 *) 10664 # Assume MSVC wrapper 10665 hardcode_libdir_flag_spec=' ' 10666 allow_undefined_flag=unsupported 10667 # Tell ltmain to make .lib files, not .a files. 10668 libext=lib 10669 # Tell ltmain to make .dll files, not .so files. 10670 shrext_cmds=.dll 10671 # FIXME: Setting linknames here is a bad hack. 10672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10673 # The linker will automatically build a .lib file if we build a DLL. 10674 old_archive_from_new_cmds='true' 10675 # FIXME: Should let the user specify the lib program. 10676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10677 enable_shared_with_static_runtimes=yes 10678 ;; 10679 esac 10680 ;; 10681 10682 darwin* | rhapsody*) 10683 10684 10685 archive_cmds_need_lc=no 10686 hardcode_direct=no 10687 hardcode_automatic=yes 10688 hardcode_shlibpath_var=unsupported 10689 if test yes = "$lt_cv_ld_force_load"; then 10690 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\"`' 10691 10692 else 10693 whole_archive_flag_spec='' 10694 fi 10695 link_all_deplibs=yes 10696 allow_undefined_flag=$_lt_dar_allow_undefined 10697 case $cc_basename in 10698 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10699 *) _lt_dar_can_shared=$GCC ;; 10700 esac 10701 if test yes = "$_lt_dar_can_shared"; then 10702 output_verbose_link_cmd=func_echo_all 10703 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10704 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10705 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" 10706 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" 10707 10708 else 10709 ld_shlibs=no 10710 fi 10711 10712 ;; 10713 10714 dgux*) 10715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10716 hardcode_libdir_flag_spec='-L$libdir' 10717 hardcode_shlibpath_var=no 10718 ;; 10719 10720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10721 # support. Future versions do this automatically, but an explicit c++rt0.o 10722 # does not break anything, and helps significantly (at the cost of a little 10723 # extra space). 10724 freebsd2.2*) 10725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10726 hardcode_libdir_flag_spec='-R$libdir' 10727 hardcode_direct=yes 10728 hardcode_shlibpath_var=no 10729 ;; 10730 10731 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10732 freebsd2.*) 10733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10734 hardcode_direct=yes 10735 hardcode_minus_L=yes 10736 hardcode_shlibpath_var=no 10737 ;; 10738 10739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10740 freebsd* | dragonfly*) 10741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10742 hardcode_libdir_flag_spec='-R$libdir' 10743 hardcode_direct=yes 10744 hardcode_shlibpath_var=no 10745 ;; 10746 10747 hpux9*) 10748 if test yes = "$GCC"; then 10749 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10750 else 10751 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10752 fi 10753 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10754 hardcode_libdir_separator=: 10755 hardcode_direct=yes 10756 10757 # hardcode_minus_L: Not really in the search PATH, 10758 # but as the default location of the library. 10759 hardcode_minus_L=yes 10760 export_dynamic_flag_spec='$wl-E' 10761 ;; 10762 10763 hpux10*) 10764 if test yes,no = "$GCC,$with_gnu_ld"; then 10765 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10766 else 10767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10768 fi 10769 if test no = "$with_gnu_ld"; then 10770 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10771 hardcode_libdir_separator=: 10772 hardcode_direct=yes 10773 hardcode_direct_absolute=yes 10774 export_dynamic_flag_spec='$wl-E' 10775 # hardcode_minus_L: Not really in the search PATH, 10776 # but as the default location of the library. 10777 hardcode_minus_L=yes 10778 fi 10779 ;; 10780 10781 hpux11*) 10782 if test yes,no = "$GCC,$with_gnu_ld"; then 10783 case $host_cpu in 10784 hppa*64*) 10785 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10786 ;; 10787 ia64*) 10788 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10789 ;; 10790 *) 10791 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10792 ;; 10793 esac 10794 else 10795 case $host_cpu in 10796 hppa*64*) 10797 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10798 ;; 10799 ia64*) 10800 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10801 ;; 10802 *) 10803 10804 # Older versions of the 11.00 compiler do not understand -b yet 10805 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10807$as_echo_n "checking if $CC understands -b... " >&6; } 10808if ${lt_cv_prog_compiler__b+:} false; then : 10809 $as_echo_n "(cached) " >&6 10810else 10811 lt_cv_prog_compiler__b=no 10812 save_LDFLAGS=$LDFLAGS 10813 LDFLAGS="$LDFLAGS -b" 10814 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10816 # The linker can only warn and ignore the option if not recognized 10817 # So say no if there are warnings 10818 if test -s conftest.err; then 10819 # Append any errors to the config.log. 10820 cat conftest.err 1>&5 10821 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10823 if diff conftest.exp conftest.er2 >/dev/null; then 10824 lt_cv_prog_compiler__b=yes 10825 fi 10826 else 10827 lt_cv_prog_compiler__b=yes 10828 fi 10829 fi 10830 $RM -r conftest* 10831 LDFLAGS=$save_LDFLAGS 10832 10833fi 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10835$as_echo "$lt_cv_prog_compiler__b" >&6; } 10836 10837if test yes = "$lt_cv_prog_compiler__b"; then 10838 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10839else 10840 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10841fi 10842 10843 ;; 10844 esac 10845 fi 10846 if test no = "$with_gnu_ld"; then 10847 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10848 hardcode_libdir_separator=: 10849 10850 case $host_cpu in 10851 hppa*64*|ia64*) 10852 hardcode_direct=no 10853 hardcode_shlibpath_var=no 10854 ;; 10855 *) 10856 hardcode_direct=yes 10857 hardcode_direct_absolute=yes 10858 export_dynamic_flag_spec='$wl-E' 10859 10860 # hardcode_minus_L: Not really in the search PATH, 10861 # but as the default location of the library. 10862 hardcode_minus_L=yes 10863 ;; 10864 esac 10865 fi 10866 ;; 10867 10868 irix5* | irix6* | nonstopux*) 10869 if test yes = "$GCC"; then 10870 archive_cmds='$CC -shared $pic_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' 10871 # Try to use the -exported_symbol ld option, if it does not 10872 # work, assume that -exports_file does not work either and 10873 # implicitly export all symbols. 10874 # This should be the same for all languages, so no per-tag cache variable. 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10876$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10877if ${lt_cv_irix_exported_symbol+:} false; then : 10878 $as_echo_n "(cached) " >&6 10879else 10880 save_LDFLAGS=$LDFLAGS 10881 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10883/* end confdefs.h. */ 10884int foo (void) { return 0; } 10885_ACEOF 10886if ac_fn_c_try_link "$LINENO"; then : 10887 lt_cv_irix_exported_symbol=yes 10888else 10889 lt_cv_irix_exported_symbol=no 10890fi 10891rm -f core conftest.err conftest.$ac_objext \ 10892 conftest$ac_exeext conftest.$ac_ext 10893 LDFLAGS=$save_LDFLAGS 10894fi 10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10896$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10897 if test yes = "$lt_cv_irix_exported_symbol"; then 10898 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib' 10899 fi 10900 else 10901 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' 10902 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' 10903 fi 10904 archive_cmds_need_lc='no' 10905 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10906 hardcode_libdir_separator=: 10907 inherit_rpath=yes 10908 link_all_deplibs=yes 10909 ;; 10910 10911 linux*) 10912 case $cc_basename in 10913 tcc*) 10914 # Fabrice Bellard et al's Tiny C Compiler 10915 ld_shlibs=yes 10916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10917 ;; 10918 esac 10919 ;; 10920 10921 netbsd*) 10922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10924 else 10925 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10926 fi 10927 hardcode_libdir_flag_spec='-R$libdir' 10928 hardcode_direct=yes 10929 hardcode_shlibpath_var=no 10930 ;; 10931 10932 newsos6) 10933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10934 hardcode_direct=yes 10935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10936 hardcode_libdir_separator=: 10937 hardcode_shlibpath_var=no 10938 ;; 10939 10940 *nto* | *qnx*) 10941 ;; 10942 10943 openbsd* | bitrig*) 10944 if test -f /usr/libexec/ld.so; then 10945 hardcode_direct=yes 10946 hardcode_shlibpath_var=no 10947 hardcode_direct_absolute=yes 10948 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10950 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10951 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10952 export_dynamic_flag_spec='$wl-E' 10953 else 10954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10955 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10956 fi 10957 else 10958 ld_shlibs=no 10959 fi 10960 ;; 10961 10962 os2*) 10963 hardcode_libdir_flag_spec='-L$libdir' 10964 hardcode_minus_L=yes 10965 allow_undefined_flag=unsupported 10966 shrext_cmds=.dll 10967 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10968 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10969 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10970 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10971 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10972 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10973 emximp -o $lib $output_objdir/$libname.def' 10974 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10975 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10976 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10977 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10978 prefix_cmds="$SED"~ 10979 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10980 prefix_cmds="$prefix_cmds -e 1d"; 10981 fi~ 10982 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10983 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10984 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10985 emximp -o $lib $output_objdir/$libname.def' 10986 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10987 enable_shared_with_static_runtimes=yes 10988 ;; 10989 10990 osf3*) 10991 if test yes = "$GCC"; then 10992 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10993 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' 10994 else 10995 allow_undefined_flag=' -expect_unresolved \*' 10996 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' 10997 fi 10998 archive_cmds_need_lc='no' 10999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11000 hardcode_libdir_separator=: 11001 ;; 11002 11003 osf4* | osf5*) # as osf3* with the addition of -msym flag 11004 if test yes = "$GCC"; then 11005 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11006 archive_cmds='$CC -shared$allow_undefined_flag $pic_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' 11007 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11008 else 11009 allow_undefined_flag=' -expect_unresolved \*' 11010 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' 11011 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~ 11012 $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' 11013 11014 # Both c and cxx compiler support -rpath directly 11015 hardcode_libdir_flag_spec='-rpath $libdir' 11016 fi 11017 archive_cmds_need_lc='no' 11018 hardcode_libdir_separator=: 11019 ;; 11020 11021 solaris*) 11022 no_undefined_flag=' -z defs' 11023 if test yes = "$GCC"; then 11024 wlarc='$wl' 11025 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11027 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11028 else 11029 case `$CC -V 2>&1` in 11030 *"Compilers 5.0"*) 11031 wlarc='' 11032 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11034 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11035 ;; 11036 *) 11037 wlarc='$wl' 11038 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11039 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11040 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11041 ;; 11042 esac 11043 fi 11044 hardcode_libdir_flag_spec='-R$libdir' 11045 hardcode_shlibpath_var=no 11046 case $host_os in 11047 solaris2.[0-5] | solaris2.[0-5].*) ;; 11048 *) 11049 # The compiler driver will combine and reorder linker options, 11050 # but understands '-z linker_flag'. GCC discards it without '$wl', 11051 # but is careful enough not to reorder. 11052 # Supported since Solaris 2.6 (maybe 2.5.1?) 11053 if test yes = "$GCC"; then 11054 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11055 else 11056 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11057 fi 11058 ;; 11059 esac 11060 link_all_deplibs=yes 11061 ;; 11062 11063 sunos4*) 11064 if test sequent = "$host_vendor"; then 11065 # Use $CC to link under sequent, because it throws in some extra .o 11066 # files that make .init and .fini sections work. 11067 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11068 else 11069 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11070 fi 11071 hardcode_libdir_flag_spec='-L$libdir' 11072 hardcode_direct=yes 11073 hardcode_minus_L=yes 11074 hardcode_shlibpath_var=no 11075 ;; 11076 11077 sysv4) 11078 case $host_vendor in 11079 sni) 11080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11081 hardcode_direct=yes # is this really true??? 11082 ;; 11083 siemens) 11084 ## LD is ld it makes a PLAMLIB 11085 ## CC just makes a GrossModule. 11086 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11087 reload_cmds='$CC -r -o $output$reload_objs' 11088 hardcode_direct=no 11089 ;; 11090 motorola) 11091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11092 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11093 ;; 11094 esac 11095 runpath_var='LD_RUN_PATH' 11096 hardcode_shlibpath_var=no 11097 ;; 11098 11099 sysv4.3*) 11100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11101 hardcode_shlibpath_var=no 11102 export_dynamic_flag_spec='-Bexport' 11103 ;; 11104 11105 sysv4*MP*) 11106 if test -d /usr/nec; then 11107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11108 hardcode_shlibpath_var=no 11109 runpath_var=LD_RUN_PATH 11110 hardcode_runpath_var=yes 11111 ld_shlibs=yes 11112 fi 11113 ;; 11114 11115 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11116 no_undefined_flag='$wl-z,text' 11117 archive_cmds_need_lc=no 11118 hardcode_shlibpath_var=no 11119 runpath_var='LD_RUN_PATH' 11120 11121 if test yes = "$GCC"; then 11122 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11123 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11124 else 11125 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11126 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11127 fi 11128 ;; 11129 11130 sysv5* | sco3.2v5* | sco5v6*) 11131 # Note: We CANNOT use -z defs as we might desire, because we do not 11132 # link with -lc, and that would cause any symbols used from libc to 11133 # always be unresolved, which means just about no library would 11134 # ever link correctly. If we're not using GNU ld we use -z text 11135 # though, which does catch some bad symbols but isn't as heavy-handed 11136 # as -z defs. 11137 no_undefined_flag='$wl-z,text' 11138 allow_undefined_flag='$wl-z,nodefs' 11139 archive_cmds_need_lc=no 11140 hardcode_shlibpath_var=no 11141 hardcode_libdir_flag_spec='$wl-R,$libdir' 11142 hardcode_libdir_separator=':' 11143 link_all_deplibs=yes 11144 export_dynamic_flag_spec='$wl-Bexport' 11145 runpath_var='LD_RUN_PATH' 11146 11147 if test yes = "$GCC"; then 11148 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11149 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11150 else 11151 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11152 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11153 fi 11154 ;; 11155 11156 uts4*) 11157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11158 hardcode_libdir_flag_spec='-L$libdir' 11159 hardcode_shlibpath_var=no 11160 ;; 11161 11162 *) 11163 ld_shlibs=no 11164 ;; 11165 esac 11166 11167 if test sni = "$host_vendor"; then 11168 case $host in 11169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11170 export_dynamic_flag_spec='$wl-Blargedynsym' 11171 ;; 11172 esac 11173 fi 11174 fi 11175 11176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11177$as_echo "$ld_shlibs" >&6; } 11178test no = "$ld_shlibs" && can_build_shared=no 11179 11180with_gnu_ld=$with_gnu_ld 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196# 11197# Do we need to explicitly link libc? 11198# 11199case "x$archive_cmds_need_lc" in 11200x|xyes) 11201 # Assume -lc should be added 11202 archive_cmds_need_lc=yes 11203 11204 if test yes,yes = "$GCC,$enable_shared"; then 11205 case $archive_cmds in 11206 *'~'*) 11207 # FIXME: we may have to deal with multi-command sequences. 11208 ;; 11209 '$CC '*) 11210 # Test whether the compiler implicitly links with -lc since on some 11211 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11212 # to ld, don't add -lc before -lgcc. 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11214$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11215if ${lt_cv_archive_cmds_need_lc+:} false; then : 11216 $as_echo_n "(cached) " >&6 11217else 11218 $RM conftest* 11219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11220 11221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11222 (eval $ac_compile) 2>&5 11223 ac_status=$? 11224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11225 test $ac_status = 0; } 2>conftest.err; then 11226 soname=conftest 11227 lib=conftest 11228 libobjs=conftest.$ac_objext 11229 deplibs= 11230 wl=$lt_prog_compiler_wl 11231 pic_flag=$lt_prog_compiler_pic 11232 compiler_flags=-v 11233 linker_flags=-v 11234 verstring= 11235 output_objdir=. 11236 libname=conftest 11237 lt_save_allow_undefined_flag=$allow_undefined_flag 11238 allow_undefined_flag= 11239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11240 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11241 ac_status=$? 11242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11243 test $ac_status = 0; } 11244 then 11245 lt_cv_archive_cmds_need_lc=no 11246 else 11247 lt_cv_archive_cmds_need_lc=yes 11248 fi 11249 allow_undefined_flag=$lt_save_allow_undefined_flag 11250 else 11251 cat conftest.err 1>&5 11252 fi 11253 $RM conftest* 11254 11255fi 11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11257$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11258 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11259 ;; 11260 esac 11261 fi 11262 ;; 11263esac 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11417$as_echo_n "checking dynamic linker characteristics... " >&6; } 11418 11419if test yes = "$GCC"; then 11420 case $host_os in 11421 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11422 *) lt_awk_arg='/^libraries:/' ;; 11423 esac 11424 case $host_os in 11425 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11426 *) lt_sed_strip_eq='s|=/|/|g' ;; 11427 esac 11428 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11429 case $lt_search_path_spec in 11430 *\;*) 11431 # if the path contains ";" then we assume it to be the separator 11432 # otherwise default to the standard path separator (i.e. ":") - it is 11433 # assumed that no part of a normal pathname contains ";" but that should 11434 # okay in the real world where ";" in dirpaths is itself problematic. 11435 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11436 ;; 11437 *) 11438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11439 ;; 11440 esac 11441 # Ok, now we have the path, separated by spaces, we can step through it 11442 # and add multilib dir if necessary... 11443 lt_tmp_lt_search_path_spec= 11444 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11445 # ...but if some path component already ends with the multilib dir we assume 11446 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11447 case "$lt_multi_os_dir; $lt_search_path_spec " in 11448 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11449 lt_multi_os_dir= 11450 ;; 11451 esac 11452 for lt_sys_path in $lt_search_path_spec; do 11453 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11455 elif test -n "$lt_multi_os_dir"; then 11456 test -d "$lt_sys_path" && \ 11457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11458 fi 11459 done 11460 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11461BEGIN {RS = " "; FS = "/|\n";} { 11462 lt_foo = ""; 11463 lt_count = 0; 11464 for (lt_i = NF; lt_i > 0; lt_i--) { 11465 if ($lt_i != "" && $lt_i != ".") { 11466 if ($lt_i == "..") { 11467 lt_count++; 11468 } else { 11469 if (lt_count == 0) { 11470 lt_foo = "/" $lt_i lt_foo; 11471 } else { 11472 lt_count--; 11473 } 11474 } 11475 } 11476 } 11477 if (lt_foo != "") { lt_freq[lt_foo]++; } 11478 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11479}'` 11480 # AWK program above erroneously prepends '/' to C:/dos/paths 11481 # for these hosts. 11482 case $host_os in 11483 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11484 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11485 esac 11486 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11487else 11488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11489fi 11490library_names_spec= 11491libname_spec='lib$name' 11492soname_spec= 11493shrext_cmds=.so 11494postinstall_cmds= 11495postuninstall_cmds= 11496finish_cmds= 11497finish_eval= 11498shlibpath_var= 11499shlibpath_overrides_runpath=unknown 11500version_type=none 11501dynamic_linker="$host_os ld.so" 11502sys_lib_dlsearch_path_spec="/lib /usr/lib" 11503need_lib_prefix=unknown 11504hardcode_into_libs=no 11505 11506# when you set need_version to no, make sure it does not cause -set_version 11507# flags to be left without arguments 11508need_version=unknown 11509 11510 11511 11512case $host_os in 11513aix3*) 11514 version_type=linux # correct to gnu/linux during the next big refactor 11515 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11516 shlibpath_var=LIBPATH 11517 11518 # AIX 3 has no versioning support, so we append a major version to the name. 11519 soname_spec='$libname$release$shared_ext$major' 11520 ;; 11521 11522aix[4-9]*) 11523 version_type=linux # correct to gnu/linux during the next big refactor 11524 need_lib_prefix=no 11525 need_version=no 11526 hardcode_into_libs=yes 11527 if test ia64 = "$host_cpu"; then 11528 # AIX 5 supports IA64 11529 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11530 shlibpath_var=LD_LIBRARY_PATH 11531 else 11532 # With GCC up to 2.95.x, collect2 would create an import file 11533 # for dependence libraries. The import file would start with 11534 # the line '#! .'. This would cause the generated library to 11535 # depend on '.', always an invalid library. This was fixed in 11536 # development snapshots of GCC prior to 3.0. 11537 case $host_os in 11538 aix4 | aix4.[01] | aix4.[01].*) 11539 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11540 echo ' yes ' 11541 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11542 : 11543 else 11544 can_build_shared=no 11545 fi 11546 ;; 11547 esac 11548 # Using Import Files as archive members, it is possible to support 11549 # filename-based versioning of shared library archives on AIX. While 11550 # this would work for both with and without runtime linking, it will 11551 # prevent static linking of such archives. So we do filename-based 11552 # shared library versioning with .so extension only, which is used 11553 # when both runtime linking and shared linking is enabled. 11554 # Unfortunately, runtime linking may impact performance, so we do 11555 # not want this to be the default eventually. Also, we use the 11556 # versioned .so libs for executables only if there is the -brtl 11557 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11558 # To allow for filename-based versioning support, we need to create 11559 # libNAME.so.V as an archive file, containing: 11560 # *) an Import File, referring to the versioned filename of the 11561 # archive as well as the shared archive member, telling the 11562 # bitwidth (32 or 64) of that shared object, and providing the 11563 # list of exported symbols of that shared object, eventually 11564 # decorated with the 'weak' keyword 11565 # *) the shared object with the F_LOADONLY flag set, to really avoid 11566 # it being seen by the linker. 11567 # At run time we better use the real file rather than another symlink, 11568 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11569 11570 case $with_aix_soname,$aix_use_runtimelinking in 11571 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11572 # soname into executable. Probably we can add versioning support to 11573 # collect2, so additional links can be useful in future. 11574 aix,yes) # traditional libtool 11575 dynamic_linker='AIX unversionable lib.so' 11576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11577 # instead of lib<name>.a to let people know that these are not 11578 # typical AIX shared libraries. 11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11580 ;; 11581 aix,no) # traditional AIX only 11582 dynamic_linker='AIX lib.a(lib.so.V)' 11583 # We preserve .a as extension for shared libraries through AIX4.2 11584 # and later when we are not doing run time linking. 11585 library_names_spec='$libname$release.a $libname.a' 11586 soname_spec='$libname$release$shared_ext$major' 11587 ;; 11588 svr4,*) # full svr4 only 11589 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11590 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11591 # We do not specify a path in Import Files, so LIBPATH fires. 11592 shlibpath_overrides_runpath=yes 11593 ;; 11594 *,yes) # both, prefer svr4 11595 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11596 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11597 # unpreferred sharedlib libNAME.a needs extra handling 11598 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11599 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11600 # We do not specify a path in Import Files, so LIBPATH fires. 11601 shlibpath_overrides_runpath=yes 11602 ;; 11603 *,no) # both, prefer aix 11604 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11605 library_names_spec='$libname$release.a $libname.a' 11606 soname_spec='$libname$release$shared_ext$major' 11607 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11608 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11609 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11610 ;; 11611 esac 11612 shlibpath_var=LIBPATH 11613 fi 11614 ;; 11615 11616amigaos*) 11617 case $host_cpu in 11618 powerpc) 11619 # Since July 2007 AmigaOS4 officially supports .so libraries. 11620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11622 ;; 11623 m68k) 11624 library_names_spec='$libname.ixlibrary $libname.a' 11625 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11626 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11627 ;; 11628 esac 11629 ;; 11630 11631beos*) 11632 library_names_spec='$libname$shared_ext' 11633 dynamic_linker="$host_os ld.so" 11634 shlibpath_var=LIBRARY_PATH 11635 ;; 11636 11637bsdi[45]*) 11638 version_type=linux # correct to gnu/linux during the next big refactor 11639 need_version=no 11640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11641 soname_spec='$libname$release$shared_ext$major' 11642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11643 shlibpath_var=LD_LIBRARY_PATH 11644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11646 # the default ld.so.conf also contains /usr/contrib/lib and 11647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11648 # libtool to hard-code these into programs 11649 ;; 11650 11651cygwin* | mingw* | pw32* | cegcc*) 11652 version_type=windows 11653 shrext_cmds=.dll 11654 need_version=no 11655 need_lib_prefix=no 11656 11657 case $GCC,$cc_basename in 11658 yes,*) 11659 # gcc 11660 library_names_spec='$libname.dll.a' 11661 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11662 postinstall_cmds='base_file=`basename \$file`~ 11663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11664 dldir=$destdir/`dirname \$dlpath`~ 11665 test -d \$dldir || mkdir -p \$dldir~ 11666 $install_prog $dir/$dlname \$dldir/$dlname~ 11667 chmod a+x \$dldir/$dlname~ 11668 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11669 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11670 fi' 11671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11672 dlpath=$dir/\$dldll~ 11673 $RM \$dlpath' 11674 shlibpath_overrides_runpath=yes 11675 11676 case $host_os in 11677 cygwin*) 11678 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11679 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11680 11681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11682 ;; 11683 mingw* | cegcc*) 11684 # MinGW DLLs use traditional 'lib' prefix 11685 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11686 ;; 11687 pw32*) 11688 # pw32 DLLs use 'pw' prefix rather than 'lib' 11689 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11690 ;; 11691 esac 11692 dynamic_linker='Win32 ld.exe' 11693 ;; 11694 11695 *,cl*) 11696 # Native MSVC 11697 libname_spec='$name' 11698 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11699 library_names_spec='$libname.dll.lib' 11700 11701 case $build_os in 11702 mingw*) 11703 sys_lib_search_path_spec= 11704 lt_save_ifs=$IFS 11705 IFS=';' 11706 for lt_path in $LIB 11707 do 11708 IFS=$lt_save_ifs 11709 # Let DOS variable expansion print the short 8.3 style file name. 11710 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11711 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11712 done 11713 IFS=$lt_save_ifs 11714 # Convert to MSYS style. 11715 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11716 ;; 11717 cygwin*) 11718 # Convert to unix form, then to dos form, then back to unix form 11719 # but this time dos style (no spaces!) so that the unix form looks 11720 # like /cygdrive/c/PROGRA~1:/cygdr... 11721 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11722 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11723 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11724 ;; 11725 *) 11726 sys_lib_search_path_spec=$LIB 11727 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11728 # It is most probably a Windows format PATH. 11729 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11730 else 11731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11732 fi 11733 # FIXME: find the short name or the path components, as spaces are 11734 # common. (e.g. "Program Files" -> "PROGRA~1") 11735 ;; 11736 esac 11737 11738 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11739 postinstall_cmds='base_file=`basename \$file`~ 11740 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11741 dldir=$destdir/`dirname \$dlpath`~ 11742 test -d \$dldir || mkdir -p \$dldir~ 11743 $install_prog $dir/$dlname \$dldir/$dlname' 11744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11745 dlpath=$dir/\$dldll~ 11746 $RM \$dlpath' 11747 shlibpath_overrides_runpath=yes 11748 dynamic_linker='Win32 link.exe' 11749 ;; 11750 11751 *) 11752 # Assume MSVC wrapper 11753 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11754 dynamic_linker='Win32 ld.exe' 11755 ;; 11756 esac 11757 # FIXME: first we should search . and the directory the executable is in 11758 shlibpath_var=PATH 11759 ;; 11760 11761darwin* | rhapsody*) 11762 dynamic_linker="$host_os dyld" 11763 version_type=darwin 11764 need_lib_prefix=no 11765 need_version=no 11766 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11767 soname_spec='$libname$release$major$shared_ext' 11768 shlibpath_overrides_runpath=yes 11769 shlibpath_var=DYLD_LIBRARY_PATH 11770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11771 11772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11774 ;; 11775 11776dgux*) 11777 version_type=linux # correct to gnu/linux during the next big refactor 11778 need_lib_prefix=no 11779 need_version=no 11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11781 soname_spec='$libname$release$shared_ext$major' 11782 shlibpath_var=LD_LIBRARY_PATH 11783 ;; 11784 11785freebsd* | dragonfly*) 11786 # DragonFly does not have aout. When/if they implement a new 11787 # versioning mechanism, adjust this. 11788 if test -x /usr/bin/objformat; then 11789 objformat=`/usr/bin/objformat` 11790 else 11791 case $host_os in 11792 freebsd[23].*) objformat=aout ;; 11793 *) objformat=elf ;; 11794 esac 11795 fi 11796 version_type=freebsd-$objformat 11797 case $version_type in 11798 freebsd-elf*) 11799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11800 soname_spec='$libname$release$shared_ext$major' 11801 need_version=no 11802 need_lib_prefix=no 11803 ;; 11804 freebsd-*) 11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11806 need_version=yes 11807 ;; 11808 esac 11809 shlibpath_var=LD_LIBRARY_PATH 11810 case $host_os in 11811 freebsd2.*) 11812 shlibpath_overrides_runpath=yes 11813 ;; 11814 freebsd3.[01]* | freebsdelf3.[01]*) 11815 shlibpath_overrides_runpath=yes 11816 hardcode_into_libs=yes 11817 ;; 11818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11820 shlibpath_overrides_runpath=no 11821 hardcode_into_libs=yes 11822 ;; 11823 *) # from 4.6 on, and DragonFly 11824 shlibpath_overrides_runpath=yes 11825 hardcode_into_libs=yes 11826 ;; 11827 esac 11828 ;; 11829 11830haiku*) 11831 version_type=linux # correct to gnu/linux during the next big refactor 11832 need_lib_prefix=no 11833 need_version=no 11834 dynamic_linker="$host_os runtime_loader" 11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11836 soname_spec='$libname$release$shared_ext$major' 11837 shlibpath_var=LIBRARY_PATH 11838 shlibpath_overrides_runpath=no 11839 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11840 hardcode_into_libs=yes 11841 ;; 11842 11843hpux9* | hpux10* | hpux11*) 11844 # Give a soname corresponding to the major version so that dld.sl refuses to 11845 # link against other versions. 11846 version_type=sunos 11847 need_lib_prefix=no 11848 need_version=no 11849 case $host_cpu in 11850 ia64*) 11851 shrext_cmds='.so' 11852 hardcode_into_libs=yes 11853 dynamic_linker="$host_os dld.so" 11854 shlibpath_var=LD_LIBRARY_PATH 11855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11857 soname_spec='$libname$release$shared_ext$major' 11858 if test 32 = "$HPUX_IA64_MODE"; then 11859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11860 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11861 else 11862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11863 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11864 fi 11865 ;; 11866 hppa*64*) 11867 shrext_cmds='.sl' 11868 hardcode_into_libs=yes 11869 dynamic_linker="$host_os dld.sl" 11870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11873 soname_spec='$libname$release$shared_ext$major' 11874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11876 ;; 11877 *) 11878 shrext_cmds='.sl' 11879 dynamic_linker="$host_os dld.sl" 11880 shlibpath_var=SHLIB_PATH 11881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11883 soname_spec='$libname$release$shared_ext$major' 11884 ;; 11885 esac 11886 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11887 postinstall_cmds='chmod 555 $lib' 11888 # or fails outright, so override atomically: 11889 install_override_mode=555 11890 ;; 11891 11892interix[3-9]*) 11893 version_type=linux # correct to gnu/linux during the next big refactor 11894 need_lib_prefix=no 11895 need_version=no 11896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11897 soname_spec='$libname$release$shared_ext$major' 11898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11899 shlibpath_var=LD_LIBRARY_PATH 11900 shlibpath_overrides_runpath=no 11901 hardcode_into_libs=yes 11902 ;; 11903 11904irix5* | irix6* | nonstopux*) 11905 case $host_os in 11906 nonstopux*) version_type=nonstopux ;; 11907 *) 11908 if test yes = "$lt_cv_prog_gnu_ld"; then 11909 version_type=linux # correct to gnu/linux during the next big refactor 11910 else 11911 version_type=irix 11912 fi ;; 11913 esac 11914 need_lib_prefix=no 11915 need_version=no 11916 soname_spec='$libname$release$shared_ext$major' 11917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11918 case $host_os in 11919 irix5* | nonstopux*) 11920 libsuff= shlibsuff= 11921 ;; 11922 *) 11923 case $LD in # libtool.m4 will add one of these switches to LD 11924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11925 libsuff= shlibsuff= libmagic=32-bit;; 11926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11927 libsuff=32 shlibsuff=N32 libmagic=N32;; 11928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11929 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11930 *) libsuff= shlibsuff= libmagic=never-match;; 11931 esac 11932 ;; 11933 esac 11934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11935 shlibpath_overrides_runpath=no 11936 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11937 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11938 hardcode_into_libs=yes 11939 ;; 11940 11941# No shared lib support for Linux oldld, aout, or coff. 11942linux*oldld* | linux*aout* | linux*coff*) 11943 dynamic_linker=no 11944 ;; 11945 11946linux*android*) 11947 version_type=none # Android doesn't support versioned libraries. 11948 need_lib_prefix=no 11949 need_version=no 11950 library_names_spec='$libname$release$shared_ext' 11951 soname_spec='$libname$release$shared_ext' 11952 finish_cmds= 11953 shlibpath_var=LD_LIBRARY_PATH 11954 shlibpath_overrides_runpath=yes 11955 11956 # This implies no fast_install, which is unacceptable. 11957 # Some rework will be needed to allow for fast_install 11958 # before this can be enabled. 11959 hardcode_into_libs=yes 11960 11961 dynamic_linker='Android linker' 11962 # Don't embed -rpath directories since the linker doesn't support them. 11963 hardcode_libdir_flag_spec='-L$libdir' 11964 ;; 11965 11966# This must be glibc/ELF. 11967linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11968 version_type=linux # correct to gnu/linux during the next big refactor 11969 need_lib_prefix=no 11970 need_version=no 11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11972 soname_spec='$libname$release$shared_ext$major' 11973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11974 shlibpath_var=LD_LIBRARY_PATH 11975 shlibpath_overrides_runpath=no 11976 11977 # Some binutils ld are patched to set DT_RUNPATH 11978 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11979 $as_echo_n "(cached) " >&6 11980else 11981 lt_cv_shlibpath_overrides_runpath=no 11982 save_LDFLAGS=$LDFLAGS 11983 save_libdir=$libdir 11984 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11985 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11987/* end confdefs.h. */ 11988 11989int 11990main () 11991{ 11992 11993 ; 11994 return 0; 11995} 11996_ACEOF 11997if ac_fn_c_try_link "$LINENO"; then : 11998 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11999 lt_cv_shlibpath_overrides_runpath=yes 12000fi 12001fi 12002rm -f core conftest.err conftest.$ac_objext \ 12003 conftest$ac_exeext conftest.$ac_ext 12004 LDFLAGS=$save_LDFLAGS 12005 libdir=$save_libdir 12006 12007fi 12008 12009 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12010 12011 # This implies no fast_install, which is unacceptable. 12012 # Some rework will be needed to allow for fast_install 12013 # before this can be enabled. 12014 hardcode_into_libs=yes 12015 12016 # Add ABI-specific directories to the system library path. 12017 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12018 12019 # Ideally, we could use ldconfig to report *all* directores which are 12020 # searched for libraries, however this is still not possible. Aside from not 12021 # being certain /sbin/ldconfig is available, command 12022 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12023 # even though it is searched at run-time. Try to do the best guess by 12024 # appending ld.so.conf contents (and includes) to the search path. 12025 if test -f /etc/ld.so.conf; then 12026 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' ' '` 12027 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12028 fi 12029 12030 # We used to test for /lib/ld.so.1 and disable shared libraries on 12031 # powerpc, because MkLinux only supported shared libraries with the 12032 # GNU dynamic linker. Since this was broken with cross compilers, 12033 # most powerpc-linux boxes support dynamic linking these days and 12034 # people can always --disable-shared, the test was removed, and we 12035 # assume the GNU/Linux dynamic linker is in use. 12036 dynamic_linker='GNU/Linux ld.so' 12037 ;; 12038 12039netbsd*) 12040 version_type=sunos 12041 need_lib_prefix=no 12042 need_version=no 12043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12044 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12046 dynamic_linker='NetBSD (a.out) ld.so' 12047 else 12048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12049 soname_spec='$libname$release$shared_ext$major' 12050 dynamic_linker='NetBSD ld.elf_so' 12051 fi 12052 shlibpath_var=LD_LIBRARY_PATH 12053 shlibpath_overrides_runpath=yes 12054 hardcode_into_libs=yes 12055 ;; 12056 12057newsos6) 12058 version_type=linux # correct to gnu/linux during the next big refactor 12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12060 shlibpath_var=LD_LIBRARY_PATH 12061 shlibpath_overrides_runpath=yes 12062 ;; 12063 12064*nto* | *qnx*) 12065 version_type=qnx 12066 need_lib_prefix=no 12067 need_version=no 12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12069 soname_spec='$libname$release$shared_ext$major' 12070 shlibpath_var=LD_LIBRARY_PATH 12071 shlibpath_overrides_runpath=no 12072 hardcode_into_libs=yes 12073 dynamic_linker='ldqnx.so' 12074 ;; 12075 12076openbsd* | bitrig*) 12077 version_type=sunos 12078 sys_lib_dlsearch_path_spec=/usr/lib 12079 need_lib_prefix=no 12080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12081 need_version=no 12082 else 12083 need_version=yes 12084 fi 12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12087 shlibpath_var=LD_LIBRARY_PATH 12088 shlibpath_overrides_runpath=yes 12089 ;; 12090 12091os2*) 12092 libname_spec='$name' 12093 version_type=windows 12094 shrext_cmds=.dll 12095 need_version=no 12096 need_lib_prefix=no 12097 # OS/2 can only load a DLL with a base name of 8 characters or less. 12098 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12099 v=$($ECHO $release$versuffix | tr -d .-); 12100 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12101 $ECHO $n$v`$shared_ext' 12102 library_names_spec='${libname}_dll.$libext' 12103 dynamic_linker='OS/2 ld.exe' 12104 shlibpath_var=BEGINLIBPATH 12105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12107 postinstall_cmds='base_file=`basename \$file`~ 12108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12109 dldir=$destdir/`dirname \$dlpath`~ 12110 test -d \$dldir || mkdir -p \$dldir~ 12111 $install_prog $dir/$dlname \$dldir/$dlname~ 12112 chmod a+x \$dldir/$dlname~ 12113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12115 fi' 12116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12117 dlpath=$dir/\$dldll~ 12118 $RM \$dlpath' 12119 ;; 12120 12121osf3* | osf4* | osf5*) 12122 version_type=osf 12123 need_lib_prefix=no 12124 need_version=no 12125 soname_spec='$libname$release$shared_ext$major' 12126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12127 shlibpath_var=LD_LIBRARY_PATH 12128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12130 ;; 12131 12132rdos*) 12133 dynamic_linker=no 12134 ;; 12135 12136solaris*) 12137 version_type=linux # correct to gnu/linux during the next big refactor 12138 need_lib_prefix=no 12139 need_version=no 12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12141 soname_spec='$libname$release$shared_ext$major' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 shlibpath_overrides_runpath=yes 12144 hardcode_into_libs=yes 12145 # ldd complains unless libraries are executable 12146 postinstall_cmds='chmod +x $lib' 12147 ;; 12148 12149sunos4*) 12150 version_type=sunos 12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12153 shlibpath_var=LD_LIBRARY_PATH 12154 shlibpath_overrides_runpath=yes 12155 if test yes = "$with_gnu_ld"; then 12156 need_lib_prefix=no 12157 fi 12158 need_version=yes 12159 ;; 12160 12161sysv4 | sysv4.3*) 12162 version_type=linux # correct to gnu/linux during the next big refactor 12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12164 soname_spec='$libname$release$shared_ext$major' 12165 shlibpath_var=LD_LIBRARY_PATH 12166 case $host_vendor in 12167 sni) 12168 shlibpath_overrides_runpath=no 12169 need_lib_prefix=no 12170 runpath_var=LD_RUN_PATH 12171 ;; 12172 siemens) 12173 need_lib_prefix=no 12174 ;; 12175 motorola) 12176 need_lib_prefix=no 12177 need_version=no 12178 shlibpath_overrides_runpath=no 12179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12180 ;; 12181 esac 12182 ;; 12183 12184sysv4*MP*) 12185 if test -d /usr/nec; then 12186 version_type=linux # correct to gnu/linux during the next big refactor 12187 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12188 soname_spec='$libname$shared_ext.$major' 12189 shlibpath_var=LD_LIBRARY_PATH 12190 fi 12191 ;; 12192 12193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12194 version_type=sco 12195 need_lib_prefix=no 12196 need_version=no 12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12198 soname_spec='$libname$release$shared_ext$major' 12199 shlibpath_var=LD_LIBRARY_PATH 12200 shlibpath_overrides_runpath=yes 12201 hardcode_into_libs=yes 12202 if test yes = "$with_gnu_ld"; then 12203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12204 else 12205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12206 case $host_os in 12207 sco3.2v5*) 12208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12209 ;; 12210 esac 12211 fi 12212 sys_lib_dlsearch_path_spec='/usr/lib' 12213 ;; 12214 12215tpf*) 12216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12217 version_type=linux # correct to gnu/linux during the next big refactor 12218 need_lib_prefix=no 12219 need_version=no 12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12221 shlibpath_var=LD_LIBRARY_PATH 12222 shlibpath_overrides_runpath=no 12223 hardcode_into_libs=yes 12224 ;; 12225 12226uts4*) 12227 version_type=linux # correct to gnu/linux during the next big refactor 12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12229 soname_spec='$libname$release$shared_ext$major' 12230 shlibpath_var=LD_LIBRARY_PATH 12231 ;; 12232 12233*) 12234 dynamic_linker=no 12235 ;; 12236esac 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12238$as_echo "$dynamic_linker" >&6; } 12239test no = "$dynamic_linker" && can_build_shared=no 12240 12241variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12242if test yes = "$GCC"; then 12243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12244fi 12245 12246if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12247 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12248fi 12249 12250if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12251 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12252fi 12253 12254# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12255configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12256 12257# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12258func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12259 12260# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12261configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12360$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12361hardcode_action= 12362if test -n "$hardcode_libdir_flag_spec" || 12363 test -n "$runpath_var" || 12364 test yes = "$hardcode_automatic"; then 12365 12366 # We can hardcode non-existent directories. 12367 if test no != "$hardcode_direct" && 12368 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12369 # have to relink, otherwise we might link with an installed library 12370 # when we should be linking with a yet-to-be-installed one 12371 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12372 test no != "$hardcode_minus_L"; then 12373 # Linking always hardcodes the temporary library directory. 12374 hardcode_action=relink 12375 else 12376 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12377 hardcode_action=immediate 12378 fi 12379else 12380 # We cannot hardcode anything, or else we can only hardcode existing 12381 # directories. 12382 hardcode_action=unsupported 12383fi 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12385$as_echo "$hardcode_action" >&6; } 12386 12387if test relink = "$hardcode_action" || 12388 test yes = "$inherit_rpath"; then 12389 # Fast installation is not supported 12390 enable_fast_install=no 12391elif test yes = "$shlibpath_overrides_runpath" || 12392 test no = "$enable_shared"; then 12393 # Fast installation is not necessary 12394 enable_fast_install=needless 12395fi 12396 12397 12398 12399 12400 12401 12402 if test yes != "$enable_dlopen"; then 12403 enable_dlopen=unknown 12404 enable_dlopen_self=unknown 12405 enable_dlopen_self_static=unknown 12406else 12407 lt_cv_dlopen=no 12408 lt_cv_dlopen_libs= 12409 12410 case $host_os in 12411 beos*) 12412 lt_cv_dlopen=load_add_on 12413 lt_cv_dlopen_libs= 12414 lt_cv_dlopen_self=yes 12415 ;; 12416 12417 mingw* | pw32* | cegcc*) 12418 lt_cv_dlopen=LoadLibrary 12419 lt_cv_dlopen_libs= 12420 ;; 12421 12422 cygwin*) 12423 lt_cv_dlopen=dlopen 12424 lt_cv_dlopen_libs= 12425 ;; 12426 12427 darwin*) 12428 # if libdl is installed we need to link against it 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12430$as_echo_n "checking for dlopen in -ldl... " >&6; } 12431if ${ac_cv_lib_dl_dlopen+:} false; then : 12432 $as_echo_n "(cached) " >&6 12433else 12434 ac_check_lib_save_LIBS=$LIBS 12435LIBS="-ldl $LIBS" 12436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12437/* end confdefs.h. */ 12438 12439/* Override any GCC internal prototype to avoid an error. 12440 Use char because int might match the return type of a GCC 12441 builtin and then its argument prototype would still apply. */ 12442#ifdef __cplusplus 12443extern "C" 12444#endif 12445char dlopen (); 12446int 12447main () 12448{ 12449return dlopen (); 12450 ; 12451 return 0; 12452} 12453_ACEOF 12454if ac_fn_c_try_link "$LINENO"; then : 12455 ac_cv_lib_dl_dlopen=yes 12456else 12457 ac_cv_lib_dl_dlopen=no 12458fi 12459rm -f core conftest.err conftest.$ac_objext \ 12460 conftest$ac_exeext conftest.$ac_ext 12461LIBS=$ac_check_lib_save_LIBS 12462fi 12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12464$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12465if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12466 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12467else 12468 12469 lt_cv_dlopen=dyld 12470 lt_cv_dlopen_libs= 12471 lt_cv_dlopen_self=yes 12472 12473fi 12474 12475 ;; 12476 12477 tpf*) 12478 # Don't try to run any link tests for TPF. We know it's impossible 12479 # because TPF is a cross-compiler, and we know how we open DSOs. 12480 lt_cv_dlopen=dlopen 12481 lt_cv_dlopen_libs= 12482 lt_cv_dlopen_self=no 12483 ;; 12484 12485 *) 12486 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12487if test "x$ac_cv_func_shl_load" = xyes; then : 12488 lt_cv_dlopen=shl_load 12489else 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12491$as_echo_n "checking for shl_load in -ldld... " >&6; } 12492if ${ac_cv_lib_dld_shl_load+:} false; then : 12493 $as_echo_n "(cached) " >&6 12494else 12495 ac_check_lib_save_LIBS=$LIBS 12496LIBS="-ldld $LIBS" 12497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12498/* end confdefs.h. */ 12499 12500/* Override any GCC internal prototype to avoid an error. 12501 Use char because int might match the return type of a GCC 12502 builtin and then its argument prototype would still apply. */ 12503#ifdef __cplusplus 12504extern "C" 12505#endif 12506char shl_load (); 12507int 12508main () 12509{ 12510return shl_load (); 12511 ; 12512 return 0; 12513} 12514_ACEOF 12515if ac_fn_c_try_link "$LINENO"; then : 12516 ac_cv_lib_dld_shl_load=yes 12517else 12518 ac_cv_lib_dld_shl_load=no 12519fi 12520rm -f core conftest.err conftest.$ac_objext \ 12521 conftest$ac_exeext conftest.$ac_ext 12522LIBS=$ac_check_lib_save_LIBS 12523fi 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12525$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12526if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12527 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12528else 12529 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12530if test "x$ac_cv_func_dlopen" = xyes; then : 12531 lt_cv_dlopen=dlopen 12532else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12534$as_echo_n "checking for dlopen in -ldl... " >&6; } 12535if ${ac_cv_lib_dl_dlopen+:} false; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 ac_check_lib_save_LIBS=$LIBS 12539LIBS="-ldl $LIBS" 12540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12541/* end confdefs.h. */ 12542 12543/* Override any GCC internal prototype to avoid an error. 12544 Use char because int might match the return type of a GCC 12545 builtin and then its argument prototype would still apply. */ 12546#ifdef __cplusplus 12547extern "C" 12548#endif 12549char dlopen (); 12550int 12551main () 12552{ 12553return dlopen (); 12554 ; 12555 return 0; 12556} 12557_ACEOF 12558if ac_fn_c_try_link "$LINENO"; then : 12559 ac_cv_lib_dl_dlopen=yes 12560else 12561 ac_cv_lib_dl_dlopen=no 12562fi 12563rm -f core conftest.err conftest.$ac_objext \ 12564 conftest$ac_exeext conftest.$ac_ext 12565LIBS=$ac_check_lib_save_LIBS 12566fi 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12568$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12569if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12570 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12571else 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12573$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12574if ${ac_cv_lib_svld_dlopen+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 ac_check_lib_save_LIBS=$LIBS 12578LIBS="-lsvld $LIBS" 12579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12580/* end confdefs.h. */ 12581 12582/* Override any GCC internal prototype to avoid an error. 12583 Use char because int might match the return type of a GCC 12584 builtin and then its argument prototype would still apply. */ 12585#ifdef __cplusplus 12586extern "C" 12587#endif 12588char dlopen (); 12589int 12590main () 12591{ 12592return dlopen (); 12593 ; 12594 return 0; 12595} 12596_ACEOF 12597if ac_fn_c_try_link "$LINENO"; then : 12598 ac_cv_lib_svld_dlopen=yes 12599else 12600 ac_cv_lib_svld_dlopen=no 12601fi 12602rm -f core conftest.err conftest.$ac_objext \ 12603 conftest$ac_exeext conftest.$ac_ext 12604LIBS=$ac_check_lib_save_LIBS 12605fi 12606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12607$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12608if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12609 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12610else 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12612$as_echo_n "checking for dld_link in -ldld... " >&6; } 12613if ${ac_cv_lib_dld_dld_link+:} false; then : 12614 $as_echo_n "(cached) " >&6 12615else 12616 ac_check_lib_save_LIBS=$LIBS 12617LIBS="-ldld $LIBS" 12618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619/* end confdefs.h. */ 12620 12621/* Override any GCC internal prototype to avoid an error. 12622 Use char because int might match the return type of a GCC 12623 builtin and then its argument prototype would still apply. */ 12624#ifdef __cplusplus 12625extern "C" 12626#endif 12627char dld_link (); 12628int 12629main () 12630{ 12631return dld_link (); 12632 ; 12633 return 0; 12634} 12635_ACEOF 12636if ac_fn_c_try_link "$LINENO"; then : 12637 ac_cv_lib_dld_dld_link=yes 12638else 12639 ac_cv_lib_dld_dld_link=no 12640fi 12641rm -f core conftest.err conftest.$ac_objext \ 12642 conftest$ac_exeext conftest.$ac_ext 12643LIBS=$ac_check_lib_save_LIBS 12644fi 12645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12646$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12647if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12648 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12649fi 12650 12651 12652fi 12653 12654 12655fi 12656 12657 12658fi 12659 12660 12661fi 12662 12663 12664fi 12665 12666 ;; 12667 esac 12668 12669 if test no = "$lt_cv_dlopen"; then 12670 enable_dlopen=no 12671 else 12672 enable_dlopen=yes 12673 fi 12674 12675 case $lt_cv_dlopen in 12676 dlopen) 12677 save_CPPFLAGS=$CPPFLAGS 12678 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12679 12680 save_LDFLAGS=$LDFLAGS 12681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12682 12683 save_LIBS=$LIBS 12684 LIBS="$lt_cv_dlopen_libs $LIBS" 12685 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12687$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12688if ${lt_cv_dlopen_self+:} false; then : 12689 $as_echo_n "(cached) " >&6 12690else 12691 if test yes = "$cross_compiling"; then : 12692 lt_cv_dlopen_self=cross 12693else 12694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12695 lt_status=$lt_dlunknown 12696 cat > conftest.$ac_ext <<_LT_EOF 12697#line $LINENO "configure" 12698#include "confdefs.h" 12699 12700#if HAVE_DLFCN_H 12701#include <dlfcn.h> 12702#endif 12703 12704#include <stdio.h> 12705 12706#ifdef RTLD_GLOBAL 12707# define LT_DLGLOBAL RTLD_GLOBAL 12708#else 12709# ifdef DL_GLOBAL 12710# define LT_DLGLOBAL DL_GLOBAL 12711# else 12712# define LT_DLGLOBAL 0 12713# endif 12714#endif 12715 12716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12717 find out it does not work in some platform. */ 12718#ifndef LT_DLLAZY_OR_NOW 12719# ifdef RTLD_LAZY 12720# define LT_DLLAZY_OR_NOW RTLD_LAZY 12721# else 12722# ifdef DL_LAZY 12723# define LT_DLLAZY_OR_NOW DL_LAZY 12724# else 12725# ifdef RTLD_NOW 12726# define LT_DLLAZY_OR_NOW RTLD_NOW 12727# else 12728# ifdef DL_NOW 12729# define LT_DLLAZY_OR_NOW DL_NOW 12730# else 12731# define LT_DLLAZY_OR_NOW 0 12732# endif 12733# endif 12734# endif 12735# endif 12736#endif 12737 12738/* When -fvisibility=hidden is used, assume the code has been annotated 12739 correspondingly for the symbols needed. */ 12740#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12741int fnord () __attribute__((visibility("default"))); 12742#endif 12743 12744int fnord () { return 42; } 12745int main () 12746{ 12747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12748 int status = $lt_dlunknown; 12749 12750 if (self) 12751 { 12752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12753 else 12754 { 12755 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12756 else puts (dlerror ()); 12757 } 12758 /* dlclose (self); */ 12759 } 12760 else 12761 puts (dlerror ()); 12762 12763 return status; 12764} 12765_LT_EOF 12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12767 (eval $ac_link) 2>&5 12768 ac_status=$? 12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12770 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12771 (./conftest; exit; ) >&5 2>/dev/null 12772 lt_status=$? 12773 case x$lt_status in 12774 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12775 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12776 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12777 esac 12778 else : 12779 # compilation failed 12780 lt_cv_dlopen_self=no 12781 fi 12782fi 12783rm -fr conftest* 12784 12785 12786fi 12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12788$as_echo "$lt_cv_dlopen_self" >&6; } 12789 12790 if test yes = "$lt_cv_dlopen_self"; then 12791 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12793$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12794if ${lt_cv_dlopen_self_static+:} false; then : 12795 $as_echo_n "(cached) " >&6 12796else 12797 if test yes = "$cross_compiling"; then : 12798 lt_cv_dlopen_self_static=cross 12799else 12800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12801 lt_status=$lt_dlunknown 12802 cat > conftest.$ac_ext <<_LT_EOF 12803#line $LINENO "configure" 12804#include "confdefs.h" 12805 12806#if HAVE_DLFCN_H 12807#include <dlfcn.h> 12808#endif 12809 12810#include <stdio.h> 12811 12812#ifdef RTLD_GLOBAL 12813# define LT_DLGLOBAL RTLD_GLOBAL 12814#else 12815# ifdef DL_GLOBAL 12816# define LT_DLGLOBAL DL_GLOBAL 12817# else 12818# define LT_DLGLOBAL 0 12819# endif 12820#endif 12821 12822/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12823 find out it does not work in some platform. */ 12824#ifndef LT_DLLAZY_OR_NOW 12825# ifdef RTLD_LAZY 12826# define LT_DLLAZY_OR_NOW RTLD_LAZY 12827# else 12828# ifdef DL_LAZY 12829# define LT_DLLAZY_OR_NOW DL_LAZY 12830# else 12831# ifdef RTLD_NOW 12832# define LT_DLLAZY_OR_NOW RTLD_NOW 12833# else 12834# ifdef DL_NOW 12835# define LT_DLLAZY_OR_NOW DL_NOW 12836# else 12837# define LT_DLLAZY_OR_NOW 0 12838# endif 12839# endif 12840# endif 12841# endif 12842#endif 12843 12844/* When -fvisibility=hidden is used, assume the code has been annotated 12845 correspondingly for the symbols needed. */ 12846#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12847int fnord () __attribute__((visibility("default"))); 12848#endif 12849 12850int fnord () { return 42; } 12851int main () 12852{ 12853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12854 int status = $lt_dlunknown; 12855 12856 if (self) 12857 { 12858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12859 else 12860 { 12861 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12862 else puts (dlerror ()); 12863 } 12864 /* dlclose (self); */ 12865 } 12866 else 12867 puts (dlerror ()); 12868 12869 return status; 12870} 12871_LT_EOF 12872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12873 (eval $ac_link) 2>&5 12874 ac_status=$? 12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12876 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12877 (./conftest; exit; ) >&5 2>/dev/null 12878 lt_status=$? 12879 case x$lt_status in 12880 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12881 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12882 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12883 esac 12884 else : 12885 # compilation failed 12886 lt_cv_dlopen_self_static=no 12887 fi 12888fi 12889rm -fr conftest* 12890 12891 12892fi 12893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12894$as_echo "$lt_cv_dlopen_self_static" >&6; } 12895 fi 12896 12897 CPPFLAGS=$save_CPPFLAGS 12898 LDFLAGS=$save_LDFLAGS 12899 LIBS=$save_LIBS 12900 ;; 12901 esac 12902 12903 case $lt_cv_dlopen_self in 12904 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12905 *) enable_dlopen_self=unknown ;; 12906 esac 12907 12908 case $lt_cv_dlopen_self_static in 12909 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12910 *) enable_dlopen_self_static=unknown ;; 12911 esac 12912fi 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930striplib= 12931old_striplib= 12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12933$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12934if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12935 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12936 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12938$as_echo "yes" >&6; } 12939else 12940# FIXME - insert some real tests, host_os isn't really good enough 12941 case $host_os in 12942 darwin*) 12943 if test -n "$STRIP"; then 12944 striplib="$STRIP -x" 12945 old_striplib="$STRIP -S" 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12947$as_echo "yes" >&6; } 12948 else 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12950$as_echo "no" >&6; } 12951 fi 12952 ;; 12953 *) 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12955$as_echo "no" >&6; } 12956 ;; 12957 esac 12958fi 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 # Report what library types will actually be built 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12973$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12975$as_echo "$can_build_shared" >&6; } 12976 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12978$as_echo_n "checking whether to build shared libraries... " >&6; } 12979 test no = "$can_build_shared" && enable_shared=no 12980 12981 # On AIX, shared libraries and static libraries use the same namespace, and 12982 # are all built from PIC. 12983 case $host_os in 12984 aix3*) 12985 test yes = "$enable_shared" && enable_static=no 12986 if test -n "$RANLIB"; then 12987 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12988 postinstall_cmds='$RANLIB $lib' 12989 fi 12990 ;; 12991 12992 aix[4-9]*) 12993 if test ia64 != "$host_cpu"; then 12994 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12995 yes,aix,yes) ;; # shared object as lib.so file only 12996 yes,svr4,*) ;; # shared object as lib.so archive member only 12997 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12998 esac 12999 fi 13000 ;; 13001 esac 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13003$as_echo "$enable_shared" >&6; } 13004 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13006$as_echo_n "checking whether to build static libraries... " >&6; } 13007 # Make sure either enable_shared or enable_static is yes. 13008 test yes = "$enable_shared" || enable_static=yes 13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13010$as_echo "$enable_static" >&6; } 13011 13012 13013 13014 13015fi 13016ac_ext=c 13017ac_cpp='$CPP $CPPFLAGS' 13018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13020ac_compiler_gnu=$ac_cv_c_compiler_gnu 13021 13022CC=$lt_save_CC 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 ac_config_commands="$ac_config_commands libtool" 13039 13040 13041 13042 13043# Only expand once: 13044 13045 13046 13047if test "$PS" = "ps" 13048then 13049 as_fn_error $? "Cannot find pathname to ps" "$LINENO" 5 13050fi 13051 13052if test x$GXX = xyes 13053then 13054 CFLAGS="-Wall $CFLAGS" 13055fi 13056 13057CFLAGS="-I.. -I$srcdir/.. $CFLAGS" 13058 13059 13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13061$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13062if ${ac_cv_header_sys_wait_h+:} false; then : 13063 $as_echo_n "(cached) " >&6 13064else 13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13066/* end confdefs.h. */ 13067#include <sys/types.h> 13068#include <sys/wait.h> 13069#ifndef WEXITSTATUS 13070# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13071#endif 13072#ifndef WIFEXITED 13073# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13074#endif 13075 13076int 13077main () 13078{ 13079 int s; 13080 wait (&s); 13081 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13082 ; 13083 return 0; 13084} 13085_ACEOF 13086if ac_fn_c_try_compile "$LINENO"; then : 13087 ac_cv_header_sys_wait_h=yes 13088else 13089 ac_cv_header_sys_wait_h=no 13090fi 13091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13092fi 13093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13094$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13095if test $ac_cv_header_sys_wait_h = yes; then 13096 13097$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13098 13099fi 13100 13101for ac_header in unistd.h fcntl.h 13102do : 13103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13104ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13105if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13106 cat >>confdefs.h <<_ACEOF 13107#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13108_ACEOF 13109 13110fi 13111 13112done 13113 13114 13115ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13116if test "x$ac_cv_type_pid_t" = xyes; then : 13117 13118else 13119 13120cat >>confdefs.h <<_ACEOF 13121#define pid_t int 13122_ACEOF 13123 13124fi 13125 13126# Check whether --enable-largefile was given. 13127if test "${enable_largefile+set}" = set; then : 13128 enableval=$enable_largefile; 13129fi 13130 13131if test "$enable_largefile" != no; then 13132 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13134$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13135if ${ac_cv_sys_largefile_CC+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137else 13138 ac_cv_sys_largefile_CC=no 13139 if test "$GCC" != yes; then 13140 ac_save_CC=$CC 13141 while :; do 13142 # IRIX 6.2 and later do not support large files by default, 13143 # so use the C compiler's -n32 option if that helps. 13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146#include <sys/types.h> 13147 /* Check that off_t can represent 2**63 - 1 correctly. 13148 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13149 since some C++ compilers masquerading as C compilers 13150 incorrectly reject 9223372036854775807. */ 13151#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13153 && LARGE_OFF_T % 2147483647 == 1) 13154 ? 1 : -1]; 13155int 13156main () 13157{ 13158 13159 ; 13160 return 0; 13161} 13162_ACEOF 13163 if ac_fn_c_try_compile "$LINENO"; then : 13164 break 13165fi 13166rm -f core conftest.err conftest.$ac_objext 13167 CC="$CC -n32" 13168 if ac_fn_c_try_compile "$LINENO"; then : 13169 ac_cv_sys_largefile_CC=' -n32'; break 13170fi 13171rm -f core conftest.err conftest.$ac_objext 13172 break 13173 done 13174 CC=$ac_save_CC 13175 rm -f conftest.$ac_ext 13176 fi 13177fi 13178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13179$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13180 if test "$ac_cv_sys_largefile_CC" != no; then 13181 CC=$CC$ac_cv_sys_largefile_CC 13182 fi 13183 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13185$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13186if ${ac_cv_sys_file_offset_bits+:} false; then : 13187 $as_echo_n "(cached) " >&6 13188else 13189 while :; do 13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13191/* end confdefs.h. */ 13192#include <sys/types.h> 13193 /* Check that off_t can represent 2**63 - 1 correctly. 13194 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13195 since some C++ compilers masquerading as C compilers 13196 incorrectly reject 9223372036854775807. */ 13197#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13199 && LARGE_OFF_T % 2147483647 == 1) 13200 ? 1 : -1]; 13201int 13202main () 13203{ 13204 13205 ; 13206 return 0; 13207} 13208_ACEOF 13209if ac_fn_c_try_compile "$LINENO"; then : 13210 ac_cv_sys_file_offset_bits=no; break 13211fi 13212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13214/* end confdefs.h. */ 13215#define _FILE_OFFSET_BITS 64 13216#include <sys/types.h> 13217 /* Check that off_t can represent 2**63 - 1 correctly. 13218 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13219 since some C++ compilers masquerading as C compilers 13220 incorrectly reject 9223372036854775807. */ 13221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13223 && LARGE_OFF_T % 2147483647 == 1) 13224 ? 1 : -1]; 13225int 13226main () 13227{ 13228 13229 ; 13230 return 0; 13231} 13232_ACEOF 13233if ac_fn_c_try_compile "$LINENO"; then : 13234 ac_cv_sys_file_offset_bits=64; break 13235fi 13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13237 ac_cv_sys_file_offset_bits=unknown 13238 break 13239done 13240fi 13241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13242$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13243case $ac_cv_sys_file_offset_bits in #( 13244 no | unknown) ;; 13245 *) 13246cat >>confdefs.h <<_ACEOF 13247#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13248_ACEOF 13249;; 13250esac 13251rm -rf conftest* 13252 if test $ac_cv_sys_file_offset_bits = unknown; then 13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13254$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13255if ${ac_cv_sys_large_files+:} false; then : 13256 $as_echo_n "(cached) " >&6 13257else 13258 while :; do 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260/* end confdefs.h. */ 13261#include <sys/types.h> 13262 /* Check that off_t can represent 2**63 - 1 correctly. 13263 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13264 since some C++ compilers masquerading as C compilers 13265 incorrectly reject 9223372036854775807. */ 13266#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13268 && LARGE_OFF_T % 2147483647 == 1) 13269 ? 1 : -1]; 13270int 13271main () 13272{ 13273 13274 ; 13275 return 0; 13276} 13277_ACEOF 13278if ac_fn_c_try_compile "$LINENO"; then : 13279 ac_cv_sys_large_files=no; break 13280fi 13281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13283/* end confdefs.h. */ 13284#define _LARGE_FILES 1 13285#include <sys/types.h> 13286 /* Check that off_t can represent 2**63 - 1 correctly. 13287 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13288 since some C++ compilers masquerading as C compilers 13289 incorrectly reject 9223372036854775807. */ 13290#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13292 && LARGE_OFF_T % 2147483647 == 1) 13293 ? 1 : -1]; 13294int 13295main () 13296{ 13297 13298 ; 13299 return 0; 13300} 13301_ACEOF 13302if ac_fn_c_try_compile "$LINENO"; then : 13303 ac_cv_sys_large_files=1; break 13304fi 13305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13306 ac_cv_sys_large_files=unknown 13307 break 13308done 13309fi 13310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13311$as_echo "$ac_cv_sys_large_files" >&6; } 13312case $ac_cv_sys_large_files in #( 13313 no | unknown) ;; 13314 *) 13315cat >>confdefs.h <<_ACEOF 13316#define _LARGE_FILES $ac_cv_sys_large_files 13317_ACEOF 13318;; 13319esac 13320rm -rf conftest* 13321 fi 13322 13323 13324fi 13325 13326 13327 13328# Check whether --with-random was given. 13329if test "${with_random+set}" = set; then : 13330 withval=$with_random; random="$withval" 13331else 13332 random="y" 13333fi 13334 13335 13336case "$random" in 13337/*) 13338 ;; 13339y*|1*) 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5 13341$as_echo_n "checking for random source... " >&6; } 13342if ${random_cv_RANDOM+:} false; then : 13343 $as_echo_n "(cached) " >&6 13344else 13345 if test -c /dev/urandom 13346 then 13347 random_cv_RANDOM=/dev/urandom 13348 else 13349 if test -c /dev/random 13350 then 13351 random_cv_RANDOM=/dev/random 13352 else 13353 random_cv_RANDOM="none" 13354 fi 13355 fi 13356 13357fi 13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_RANDOM" >&5 13359$as_echo "$random_cv_RANDOM" >&6; } 13360 random="$random_cv_RANDOM" 13361 ;; 13362*) 13363 random="none" 13364 ;; 13365esac 13366 13367if test "$random" != "none" 13368then 13369 13370cat >>confdefs.h <<_ACEOF 13371#define RANDOM "$random" 13372_ACEOF 13373 13374fi 13375 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for some good options for ps" >&5 13377$as_echo_n "checking for some good options for ps... " >&6; } 13378if ${random_cv_PS_OPTIONS+:} false; then : 13379 $as_echo_n "(cached) " >&6 13380else 13381 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al 13382 do 13383 ps $opts >/dev/null 2>/dev/null || continue 13384 break 13385 done 13386 random_cv_PS_OPTIONS="$opts" 13387 13388fi 13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_PS_OPTIONS" >&5 13390$as_echo "$random_cv_PS_OPTIONS" >&6; } 13391 13392 13393cat >>confdefs.h <<_ACEOF 13394#define PS_OPTIONS "$random_cv_PS_OPTIONS" 13395_ACEOF 13396 13397 13398cat >>confdefs.h <<_ACEOF 13399#define PS "$PS" 13400_ACEOF 13401 13402 13403if test "$W" != "w" 13404then 13405 13406cat >>confdefs.h <<_ACEOF 13407#define W "$w" 13408_ACEOF 13409 13410fi 13411 13412ac_config_files="$ac_config_files Makefile" 13413 13414cat >confcache <<\_ACEOF 13415# This file is a shell script that caches the results of configure 13416# tests run on this system so they can be shared between configure 13417# scripts and configure runs, see configure's option --config-cache. 13418# It is not useful on other systems. If it contains results you don't 13419# want to keep, you may remove or edit it. 13420# 13421# config.status only pays attention to the cache file if you give it 13422# the --recheck option to rerun configure. 13423# 13424# `ac_cv_env_foo' variables (set or unset) will be overridden when 13425# loading this file, other *unset* `ac_cv_foo' will be assigned the 13426# following values. 13427 13428_ACEOF 13429 13430# The following way of writing the cache mishandles newlines in values, 13431# but we know of no workaround that is simple, portable, and efficient. 13432# So, we kill variables containing newlines. 13433# Ultrix sh set writes to stderr and can't be redirected directly, 13434# and sets the high bit in the cache file unless we assign to the vars. 13435( 13436 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13437 eval ac_val=\$$ac_var 13438 case $ac_val in #( 13439 *${as_nl}*) 13440 case $ac_var in #( 13441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13442$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13443 esac 13444 case $ac_var in #( 13445 _ | IFS | as_nl) ;; #( 13446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13447 *) { eval $ac_var=; unset $ac_var;} ;; 13448 esac ;; 13449 esac 13450 done 13451 13452 (set) 2>&1 | 13453 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13454 *${as_nl}ac_space=\ *) 13455 # `set' does not quote correctly, so add quotes: double-quote 13456 # substitution turns \\\\ into \\, and sed turns \\ into \. 13457 sed -n \ 13458 "s/'/'\\\\''/g; 13459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13460 ;; #( 13461 *) 13462 # `set' quotes correctly as required by POSIX, so do not add quotes. 13463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13464 ;; 13465 esac | 13466 sort 13467) | 13468 sed ' 13469 /^ac_cv_env_/b end 13470 t clear 13471 :clear 13472 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13473 t end 13474 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13475 :end' >>confcache 13476if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13477 if test -w "$cache_file"; then 13478 if test "x$cache_file" != "x/dev/null"; then 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13480$as_echo "$as_me: updating cache $cache_file" >&6;} 13481 if test ! -f "$cache_file" || test -h "$cache_file"; then 13482 cat confcache >"$cache_file" 13483 else 13484 case $cache_file in #( 13485 */* | ?:*) 13486 mv -f confcache "$cache_file"$$ && 13487 mv -f "$cache_file"$$ "$cache_file" ;; #( 13488 *) 13489 mv -f confcache "$cache_file" ;; 13490 esac 13491 fi 13492 fi 13493 else 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13495$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13496 fi 13497fi 13498rm -f confcache 13499 13500test "x$prefix" = xNONE && prefix=$ac_default_prefix 13501# Let make expand exec_prefix. 13502test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13503 13504DEFS=-DHAVE_CONFIG_H 13505 13506ac_libobjs= 13507ac_ltlibobjs= 13508U= 13509for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13510 # 1. Remove the extension, and $U if already installed. 13511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13512 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13514 # will be set to the directory where LIBOBJS objects are built. 13515 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13516 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13517done 13518LIBOBJS=$ac_libobjs 13519 13520LTLIBOBJS=$ac_ltlibobjs 13521 13522 13523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13524$as_echo_n "checking that generated files are newer than configure... " >&6; } 13525 if test -n "$am_sleep_pid"; then 13526 # Hide warnings about reused PIDs. 13527 wait $am_sleep_pid 2>/dev/null 13528 fi 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13530$as_echo "done" >&6; } 13531 if test -n "$EXEEXT"; then 13532 am__EXEEXT_TRUE= 13533 am__EXEEXT_FALSE='#' 13534else 13535 am__EXEEXT_TRUE='#' 13536 am__EXEEXT_FALSE= 13537fi 13538 13539if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13540 as_fn_error $? "conditional \"AMDEP\" was never defined. 13541Usually this means the macro was only invoked conditionally." "$LINENO" 5 13542fi 13543if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13544 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13545Usually this means the macro was only invoked conditionally." "$LINENO" 5 13546fi 13547if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13548 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13549Usually this means the macro was only invoked conditionally." "$LINENO" 5 13550fi 13551 13552: "${CONFIG_STATUS=./config.status}" 13553ac_write_fail=0 13554ac_clean_files_save=$ac_clean_files 13555ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13556{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13557$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13558as_write_fail=0 13559cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13560#! $SHELL 13561# Generated by $as_me. 13562# Run this file to recreate the current configuration. 13563# Compiler output produced by configure, useful for debugging 13564# configure, is in config.log if it exists. 13565 13566debug=false 13567ac_cs_recheck=false 13568ac_cs_silent=false 13569 13570SHELL=\${CONFIG_SHELL-$SHELL} 13571export SHELL 13572_ASEOF 13573cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13574## -------------------- ## 13575## M4sh Initialization. ## 13576## -------------------- ## 13577 13578# Be more Bourne compatible 13579DUALCASE=1; export DUALCASE # for MKS sh 13580if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13581 emulate sh 13582 NULLCMD=: 13583 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13584 # is contrary to our usage. Disable this feature. 13585 alias -g '${1+"$@"}'='"$@"' 13586 setopt NO_GLOB_SUBST 13587else 13588 case `(set -o) 2>/dev/null` in #( 13589 *posix*) : 13590 set -o posix ;; #( 13591 *) : 13592 ;; 13593esac 13594fi 13595 13596 13597as_nl=' 13598' 13599export as_nl 13600# Printing a long string crashes Solaris 7 /usr/bin/printf. 13601as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13603as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13604# Prefer a ksh shell builtin over an external printf program on Solaris, 13605# but without wasting forks for bash or zsh. 13606if test -z "$BASH_VERSION$ZSH_VERSION" \ 13607 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13608 as_echo='print -r --' 13609 as_echo_n='print -rn --' 13610elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13611 as_echo='printf %s\n' 13612 as_echo_n='printf %s' 13613else 13614 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13615 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13616 as_echo_n='/usr/ucb/echo -n' 13617 else 13618 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13619 as_echo_n_body='eval 13620 arg=$1; 13621 case $arg in #( 13622 *"$as_nl"*) 13623 expr "X$arg" : "X\\(.*\\)$as_nl"; 13624 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13625 esac; 13626 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13627 ' 13628 export as_echo_n_body 13629 as_echo_n='sh -c $as_echo_n_body as_echo' 13630 fi 13631 export as_echo_body 13632 as_echo='sh -c $as_echo_body as_echo' 13633fi 13634 13635# The user is always right. 13636if test "${PATH_SEPARATOR+set}" != set; then 13637 PATH_SEPARATOR=: 13638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13639 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13640 PATH_SEPARATOR=';' 13641 } 13642fi 13643 13644 13645# IFS 13646# We need space, tab and new line, in precisely that order. Quoting is 13647# there to prevent editors from complaining about space-tab. 13648# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13649# splitting by setting IFS to empty value.) 13650IFS=" "" $as_nl" 13651 13652# Find who we are. Look in the path if we contain no directory separator. 13653as_myself= 13654case $0 in #(( 13655 *[\\/]* ) as_myself=$0 ;; 13656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13657for as_dir in $PATH 13658do 13659 IFS=$as_save_IFS 13660 test -z "$as_dir" && as_dir=. 13661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13662 done 13663IFS=$as_save_IFS 13664 13665 ;; 13666esac 13667# We did not find ourselves, most probably we were run as `sh COMMAND' 13668# in which case we are not to be found in the path. 13669if test "x$as_myself" = x; then 13670 as_myself=$0 13671fi 13672if test ! -f "$as_myself"; then 13673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13674 exit 1 13675fi 13676 13677# Unset variables that we do not need and which cause bugs (e.g. in 13678# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13679# suppresses any "Segmentation fault" message there. '((' could 13680# trigger a bug in pdksh 5.2.14. 13681for as_var in BASH_ENV ENV MAIL MAILPATH 13682do eval test x\${$as_var+set} = xset \ 13683 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13684done 13685PS1='$ ' 13686PS2='> ' 13687PS4='+ ' 13688 13689# NLS nuisances. 13690LC_ALL=C 13691export LC_ALL 13692LANGUAGE=C 13693export LANGUAGE 13694 13695# CDPATH. 13696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13697 13698 13699# as_fn_error STATUS ERROR [LINENO LOG_FD] 13700# ---------------------------------------- 13701# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13702# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13703# script with STATUS, using 1 if that was 0. 13704as_fn_error () 13705{ 13706 as_status=$1; test $as_status -eq 0 && as_status=1 13707 if test "$4"; then 13708 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13709 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13710 fi 13711 $as_echo "$as_me: error: $2" >&2 13712 as_fn_exit $as_status 13713} # as_fn_error 13714 13715 13716# as_fn_set_status STATUS 13717# ----------------------- 13718# Set $? to STATUS, without forking. 13719as_fn_set_status () 13720{ 13721 return $1 13722} # as_fn_set_status 13723 13724# as_fn_exit STATUS 13725# ----------------- 13726# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13727as_fn_exit () 13728{ 13729 set +e 13730 as_fn_set_status $1 13731 exit $1 13732} # as_fn_exit 13733 13734# as_fn_unset VAR 13735# --------------- 13736# Portably unset VAR. 13737as_fn_unset () 13738{ 13739 { eval $1=; unset $1;} 13740} 13741as_unset=as_fn_unset 13742# as_fn_append VAR VALUE 13743# ---------------------- 13744# Append the text in VALUE to the end of the definition contained in VAR. Take 13745# advantage of any shell optimizations that allow amortized linear growth over 13746# repeated appends, instead of the typical quadratic growth present in naive 13747# implementations. 13748if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13749 eval 'as_fn_append () 13750 { 13751 eval $1+=\$2 13752 }' 13753else 13754 as_fn_append () 13755 { 13756 eval $1=\$$1\$2 13757 } 13758fi # as_fn_append 13759 13760# as_fn_arith ARG... 13761# ------------------ 13762# Perform arithmetic evaluation on the ARGs, and store the result in the 13763# global $as_val. Take advantage of shells that can avoid forks. The arguments 13764# must be portable across $(()) and expr. 13765if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13766 eval 'as_fn_arith () 13767 { 13768 as_val=$(( $* )) 13769 }' 13770else 13771 as_fn_arith () 13772 { 13773 as_val=`expr "$@" || test $? -eq 1` 13774 } 13775fi # as_fn_arith 13776 13777 13778if expr a : '\(a\)' >/dev/null 2>&1 && 13779 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13780 as_expr=expr 13781else 13782 as_expr=false 13783fi 13784 13785if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13786 as_basename=basename 13787else 13788 as_basename=false 13789fi 13790 13791if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13792 as_dirname=dirname 13793else 13794 as_dirname=false 13795fi 13796 13797as_me=`$as_basename -- "$0" || 13798$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13799 X"$0" : 'X\(//\)$' \| \ 13800 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13801$as_echo X/"$0" | 13802 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13803 s//\1/ 13804 q 13805 } 13806 /^X\/\(\/\/\)$/{ 13807 s//\1/ 13808 q 13809 } 13810 /^X\/\(\/\).*/{ 13811 s//\1/ 13812 q 13813 } 13814 s/.*/./; q'` 13815 13816# Avoid depending upon Character Ranges. 13817as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13819as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13820as_cr_digits='0123456789' 13821as_cr_alnum=$as_cr_Letters$as_cr_digits 13822 13823ECHO_C= ECHO_N= ECHO_T= 13824case `echo -n x` in #((((( 13825-n*) 13826 case `echo 'xy\c'` in 13827 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13828 xy) ECHO_C='\c';; 13829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13830 ECHO_T=' ';; 13831 esac;; 13832*) 13833 ECHO_N='-n';; 13834esac 13835 13836rm -f conf$$ conf$$.exe conf$$.file 13837if test -d conf$$.dir; then 13838 rm -f conf$$.dir/conf$$.file 13839else 13840 rm -f conf$$.dir 13841 mkdir conf$$.dir 2>/dev/null 13842fi 13843if (echo >conf$$.file) 2>/dev/null; then 13844 if ln -s conf$$.file conf$$ 2>/dev/null; then 13845 as_ln_s='ln -s' 13846 # ... but there are two gotchas: 13847 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13848 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13849 # In both cases, we have to default to `cp -pR'. 13850 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13851 as_ln_s='cp -pR' 13852 elif ln conf$$.file conf$$ 2>/dev/null; then 13853 as_ln_s=ln 13854 else 13855 as_ln_s='cp -pR' 13856 fi 13857else 13858 as_ln_s='cp -pR' 13859fi 13860rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13861rmdir conf$$.dir 2>/dev/null 13862 13863 13864# as_fn_mkdir_p 13865# ------------- 13866# Create "$as_dir" as a directory, including parents if necessary. 13867as_fn_mkdir_p () 13868{ 13869 13870 case $as_dir in #( 13871 -*) as_dir=./$as_dir;; 13872 esac 13873 test -d "$as_dir" || eval $as_mkdir_p || { 13874 as_dirs= 13875 while :; do 13876 case $as_dir in #( 13877 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13878 *) as_qdir=$as_dir;; 13879 esac 13880 as_dirs="'$as_qdir' $as_dirs" 13881 as_dir=`$as_dirname -- "$as_dir" || 13882$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13883 X"$as_dir" : 'X\(//\)[^/]' \| \ 13884 X"$as_dir" : 'X\(//\)$' \| \ 13885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13886$as_echo X"$as_dir" | 13887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13888 s//\1/ 13889 q 13890 } 13891 /^X\(\/\/\)[^/].*/{ 13892 s//\1/ 13893 q 13894 } 13895 /^X\(\/\/\)$/{ 13896 s//\1/ 13897 q 13898 } 13899 /^X\(\/\).*/{ 13900 s//\1/ 13901 q 13902 } 13903 s/.*/./; q'` 13904 test -d "$as_dir" && break 13905 done 13906 test -z "$as_dirs" || eval "mkdir $as_dirs" 13907 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13908 13909 13910} # as_fn_mkdir_p 13911if mkdir -p . 2>/dev/null; then 13912 as_mkdir_p='mkdir -p "$as_dir"' 13913else 13914 test -d ./-p && rmdir ./-p 13915 as_mkdir_p=false 13916fi 13917 13918 13919# as_fn_executable_p FILE 13920# ----------------------- 13921# Test if FILE is an executable regular file. 13922as_fn_executable_p () 13923{ 13924 test -f "$1" && test -x "$1" 13925} # as_fn_executable_p 13926as_test_x='test -x' 13927as_executable_p=as_fn_executable_p 13928 13929# Sed expression to map a string onto a valid CPP name. 13930as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13931 13932# Sed expression to map a string onto a valid variable name. 13933as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13934 13935 13936exec 6>&1 13937## ----------------------------------- ## 13938## Main body of $CONFIG_STATUS script. ## 13939## ----------------------------------- ## 13940_ASEOF 13941test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13942 13943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13944# Save the log message, to keep $0 and so on meaningful, and to 13945# report actual input values of CONFIG_FILES etc. instead of their 13946# values after options handling. 13947ac_log=" 13948This file was extended by random128 $as_me 0.10, which was 13949generated by GNU Autoconf 2.69. Invocation command line was 13950 13951 CONFIG_FILES = $CONFIG_FILES 13952 CONFIG_HEADERS = $CONFIG_HEADERS 13953 CONFIG_LINKS = $CONFIG_LINKS 13954 CONFIG_COMMANDS = $CONFIG_COMMANDS 13955 $ $0 $@ 13956 13957on `(hostname || uname -n) 2>/dev/null | sed 1q` 13958" 13959 13960_ACEOF 13961 13962case $ac_config_files in *" 13963"*) set x $ac_config_files; shift; ac_config_files=$*;; 13964esac 13965 13966case $ac_config_headers in *" 13967"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13968esac 13969 13970 13971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13972# Files that config.status was made for. 13973config_files="$ac_config_files" 13974config_headers="$ac_config_headers" 13975config_commands="$ac_config_commands" 13976 13977_ACEOF 13978 13979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13980ac_cs_usage="\ 13981\`$as_me' instantiates files and other configuration actions 13982from templates according to the current configuration. Unless the files 13983and actions are specified as TAGs, all are instantiated by default. 13984 13985Usage: $0 [OPTION]... [TAG]... 13986 13987 -h, --help print this help, then exit 13988 -V, --version print version number and configuration settings, then exit 13989 --config print configuration, then exit 13990 -q, --quiet, --silent 13991 do not print progress messages 13992 -d, --debug don't remove temporary files 13993 --recheck update $as_me by reconfiguring in the same conditions 13994 --file=FILE[:TEMPLATE] 13995 instantiate the configuration file FILE 13996 --header=FILE[:TEMPLATE] 13997 instantiate the configuration header FILE 13998 13999Configuration files: 14000$config_files 14001 14002Configuration headers: 14003$config_headers 14004 14005Configuration commands: 14006$config_commands 14007 14008Report bugs to <courier-users@lists.sourceforge.net>." 14009 14010_ACEOF 14011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14012ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14013ac_cs_version="\\ 14014random128 config.status 0.10 14015configured by $0, generated by GNU Autoconf 2.69, 14016 with options \\"\$ac_cs_config\\" 14017 14018Copyright (C) 2012 Free Software Foundation, Inc. 14019This config.status script is free software; the Free Software Foundation 14020gives unlimited permission to copy, distribute and modify it." 14021 14022ac_pwd='$ac_pwd' 14023srcdir='$srcdir' 14024INSTALL='$INSTALL' 14025MKDIR_P='$MKDIR_P' 14026AWK='$AWK' 14027test -n "\$AWK" || AWK=awk 14028_ACEOF 14029 14030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14031# The default lists apply if the user does not specify any file. 14032ac_need_defaults=: 14033while test $# != 0 14034do 14035 case $1 in 14036 --*=?*) 14037 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14038 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14039 ac_shift=: 14040 ;; 14041 --*=) 14042 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14043 ac_optarg= 14044 ac_shift=: 14045 ;; 14046 *) 14047 ac_option=$1 14048 ac_optarg=$2 14049 ac_shift=shift 14050 ;; 14051 esac 14052 14053 case $ac_option in 14054 # Handling of the options. 14055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14056 ac_cs_recheck=: ;; 14057 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14058 $as_echo "$ac_cs_version"; exit ;; 14059 --config | --confi | --conf | --con | --co | --c ) 14060 $as_echo "$ac_cs_config"; exit ;; 14061 --debug | --debu | --deb | --de | --d | -d ) 14062 debug=: ;; 14063 --file | --fil | --fi | --f ) 14064 $ac_shift 14065 case $ac_optarg in 14066 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14067 '') as_fn_error $? "missing file argument" ;; 14068 esac 14069 as_fn_append CONFIG_FILES " '$ac_optarg'" 14070 ac_need_defaults=false;; 14071 --header | --heade | --head | --hea ) 14072 $ac_shift 14073 case $ac_optarg in 14074 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14075 esac 14076 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14077 ac_need_defaults=false;; 14078 --he | --h) 14079 # Conflict between --help and --header 14080 as_fn_error $? "ambiguous option: \`$1' 14081Try \`$0 --help' for more information.";; 14082 --help | --hel | -h ) 14083 $as_echo "$ac_cs_usage"; exit ;; 14084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14085 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14086 ac_cs_silent=: ;; 14087 14088 # This is an error. 14089 -*) as_fn_error $? "unrecognized option: \`$1' 14090Try \`$0 --help' for more information." ;; 14091 14092 *) as_fn_append ac_config_targets " $1" 14093 ac_need_defaults=false ;; 14094 14095 esac 14096 shift 14097done 14098 14099ac_configure_extra_args= 14100 14101if $ac_cs_silent; then 14102 exec 6>/dev/null 14103 ac_configure_extra_args="$ac_configure_extra_args --silent" 14104fi 14105 14106_ACEOF 14107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14108if \$ac_cs_recheck; then 14109 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14110 shift 14111 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14112 CONFIG_SHELL='$SHELL' 14113 export CONFIG_SHELL 14114 exec "\$@" 14115fi 14116 14117_ACEOF 14118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14119exec 5>>config.log 14120{ 14121 echo 14122 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14123## Running $as_me. ## 14124_ASBOX 14125 $as_echo "$ac_log" 14126} >&5 14127 14128_ACEOF 14129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14130# 14131# INIT-COMMANDS 14132# 14133AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14134 14135 14136# The HP-UX ksh and POSIX shell print the target directory to stdout 14137# if CDPATH is set. 14138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14139 14140sed_quote_subst='$sed_quote_subst' 14141double_quote_subst='$double_quote_subst' 14142delay_variable_subst='$delay_variable_subst' 14143macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14144macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14145enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14146enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14147pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14148enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14149shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14150SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14151ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14152PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14153host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14154host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14155host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14156build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14157build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14158build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14159SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14160Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14161GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14162EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14163FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14164LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14165NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14166LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14167max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14168ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14169exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14170lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14171lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14172lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14173lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14174lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14175reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14176reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14177OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14178deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14179file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14180file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14181want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14182DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14183sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14184AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14185AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14186archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14187STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14188RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14189old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14190old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14191old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14192lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14193CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14194CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14195compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14196GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14197lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14198lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14199lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14200lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14201lt_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"`' 14202lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14203nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14204lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14205lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14206objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14207MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14208lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14209lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14210lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14211lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14212lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14213need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14214MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14215DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14216NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14217LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14218OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14219OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14220libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14221shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14222extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14223archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14224enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14225export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14226whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14227compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14228old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14229old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14230archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14231archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14232module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14233module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14234with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14235allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14236no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14237hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14238hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14239hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14240hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14241hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14242hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14243hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14244inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14245link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14246always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14247export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14248exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14249include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14250prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14251postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14252file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14253variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14254need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14255need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14256version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14257runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14258shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14259shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14260libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14261library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14262soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14263install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14264postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14265postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14266finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14267finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14268hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14269sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14270configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14271configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14272hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14273enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14274enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14275enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14276old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14277striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14278 14279LTCC='$LTCC' 14280LTCFLAGS='$LTCFLAGS' 14281compiler='$compiler_DEFAULT' 14282 14283# A function that is used when there is no print builtin or printf. 14284func_fallback_echo () 14285{ 14286 eval 'cat <<_LTECHO_EOF 14287\$1 14288_LTECHO_EOF' 14289} 14290 14291# Quote evaled strings. 14292for var in SHELL \ 14293ECHO \ 14294PATH_SEPARATOR \ 14295SED \ 14296GREP \ 14297EGREP \ 14298FGREP \ 14299LD \ 14300NM \ 14301LN_S \ 14302lt_SP2NL \ 14303lt_NL2SP \ 14304reload_flag \ 14305OBJDUMP \ 14306deplibs_check_method \ 14307file_magic_cmd \ 14308file_magic_glob \ 14309want_nocaseglob \ 14310DLLTOOL \ 14311sharedlib_from_linklib_cmd \ 14312AR \ 14313AR_FLAGS \ 14314archiver_list_spec \ 14315STRIP \ 14316RANLIB \ 14317CC \ 14318CFLAGS \ 14319compiler \ 14320lt_cv_sys_global_symbol_pipe \ 14321lt_cv_sys_global_symbol_to_cdecl \ 14322lt_cv_sys_global_symbol_to_import \ 14323lt_cv_sys_global_symbol_to_c_name_address \ 14324lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14325lt_cv_nm_interface \ 14326nm_file_list_spec \ 14327lt_cv_truncate_bin \ 14328lt_prog_compiler_no_builtin_flag \ 14329lt_prog_compiler_pic \ 14330lt_prog_compiler_wl \ 14331lt_prog_compiler_static \ 14332lt_cv_prog_compiler_c_o \ 14333need_locks \ 14334MANIFEST_TOOL \ 14335DSYMUTIL \ 14336NMEDIT \ 14337LIPO \ 14338OTOOL \ 14339OTOOL64 \ 14340shrext_cmds \ 14341export_dynamic_flag_spec \ 14342whole_archive_flag_spec \ 14343compiler_needs_object \ 14344with_gnu_ld \ 14345allow_undefined_flag \ 14346no_undefined_flag \ 14347hardcode_libdir_flag_spec \ 14348hardcode_libdir_separator \ 14349exclude_expsyms \ 14350include_expsyms \ 14351file_list_spec \ 14352variables_saved_for_relink \ 14353libname_spec \ 14354library_names_spec \ 14355soname_spec \ 14356install_override_mode \ 14357finish_eval \ 14358old_striplib \ 14359striplib; do 14360 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14361 *[\\\\\\\`\\"\\\$]*) 14362 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14363 ;; 14364 *) 14365 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14366 ;; 14367 esac 14368done 14369 14370# Double-quote double-evaled strings. 14371for var in reload_cmds \ 14372old_postinstall_cmds \ 14373old_postuninstall_cmds \ 14374old_archive_cmds \ 14375extract_expsyms_cmds \ 14376old_archive_from_new_cmds \ 14377old_archive_from_expsyms_cmds \ 14378archive_cmds \ 14379archive_expsym_cmds \ 14380module_cmds \ 14381module_expsym_cmds \ 14382export_symbols_cmds \ 14383prelink_cmds \ 14384postlink_cmds \ 14385postinstall_cmds \ 14386postuninstall_cmds \ 14387finish_cmds \ 14388sys_lib_search_path_spec \ 14389configure_time_dlsearch_path \ 14390configure_time_lt_sys_library_path; do 14391 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14392 *[\\\\\\\`\\"\\\$]*) 14393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14394 ;; 14395 *) 14396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14397 ;; 14398 esac 14399done 14400 14401ac_aux_dir='$ac_aux_dir' 14402 14403# See if we are running on zsh, and set the options that allow our 14404# commands through without removal of \ escapes INIT. 14405if test -n "\${ZSH_VERSION+set}"; then 14406 setopt NO_GLOB_SUBST 14407fi 14408 14409 14410 PACKAGE='$PACKAGE' 14411 VERSION='$VERSION' 14412 RM='$RM' 14413 ofile='$ofile' 14414 14415 14416 14417 14418_ACEOF 14419 14420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14421 14422# Handling of arguments. 14423for ac_config_target in $ac_config_targets 14424do 14425 case $ac_config_target in 14426 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14427 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14428 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14430 14431 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14432 esac 14433done 14434 14435 14436# If the user did not use the arguments to specify the items to instantiate, 14437# then the envvar interface is used. Set only those that are not. 14438# We use the long form for the default assignment because of an extremely 14439# bizarre bug on SunOS 4.1.3. 14440if $ac_need_defaults; then 14441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14444fi 14445 14446# Have a temporary directory for convenience. Make it in the build tree 14447# simply because there is no reason against having it here, and in addition, 14448# creating and moving files from /tmp can sometimes cause problems. 14449# Hook for its removal unless debugging. 14450# Note that there is a small window in which the directory will not be cleaned: 14451# after its creation but before its name has been assigned to `$tmp'. 14452$debug || 14453{ 14454 tmp= ac_tmp= 14455 trap 'exit_status=$? 14456 : "${ac_tmp:=$tmp}" 14457 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14458' 0 14459 trap 'as_fn_exit 1' 1 2 13 15 14460} 14461# Create a (secure) tmp directory for tmp files. 14462 14463{ 14464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14465 test -d "$tmp" 14466} || 14467{ 14468 tmp=./conf$$-$RANDOM 14469 (umask 077 && mkdir "$tmp") 14470} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14471ac_tmp=$tmp 14472 14473# Set up the scripts for CONFIG_FILES section. 14474# No need to generate them if there are no CONFIG_FILES. 14475# This happens for instance with `./config.status config.h'. 14476if test -n "$CONFIG_FILES"; then 14477 14478 14479ac_cr=`echo X | tr X '\015'` 14480# On cygwin, bash can eat \r inside `` if the user requested igncr. 14481# But we know of no other shell where ac_cr would be empty at this 14482# point, so we can use a bashism as a fallback. 14483if test "x$ac_cr" = x; then 14484 eval ac_cr=\$\'\\r\' 14485fi 14486ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14487if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14488 ac_cs_awk_cr='\\r' 14489else 14490 ac_cs_awk_cr=$ac_cr 14491fi 14492 14493echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14494_ACEOF 14495 14496 14497{ 14498 echo "cat >conf$$subs.awk <<_ACEOF" && 14499 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14500 echo "_ACEOF" 14501} >conf$$subs.sh || 14502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14503ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14504ac_delim='%!_!# ' 14505for ac_last_try in false false false false false :; do 14506 . ./conf$$subs.sh || 14507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14508 14509 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14510 if test $ac_delim_n = $ac_delim_num; then 14511 break 14512 elif $ac_last_try; then 14513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14514 else 14515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14516 fi 14517done 14518rm -f conf$$subs.sh 14519 14520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14521cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14522_ACEOF 14523sed -n ' 14524h 14525s/^/S["/; s/!.*/"]=/ 14526p 14527g 14528s/^[^!]*!// 14529:repl 14530t repl 14531s/'"$ac_delim"'$// 14532t delim 14533:nl 14534h 14535s/\(.\{148\}\)..*/\1/ 14536t more1 14537s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14538p 14539n 14540b repl 14541:more1 14542s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14543p 14544g 14545s/.\{148\}// 14546t nl 14547:delim 14548h 14549s/\(.\{148\}\)..*/\1/ 14550t more2 14551s/["\\]/\\&/g; s/^/"/; s/$/"/ 14552p 14553b 14554:more2 14555s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14556p 14557g 14558s/.\{148\}// 14559t delim 14560' <conf$$subs.awk | sed ' 14561/^[^""]/{ 14562 N 14563 s/\n// 14564} 14565' >>$CONFIG_STATUS || ac_write_fail=1 14566rm -f conf$$subs.awk 14567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14568_ACAWK 14569cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14570 for (key in S) S_is_set[key] = 1 14571 FS = "" 14572 14573} 14574{ 14575 line = $ 0 14576 nfields = split(line, field, "@") 14577 substed = 0 14578 len = length(field[1]) 14579 for (i = 2; i < nfields; i++) { 14580 key = field[i] 14581 keylen = length(key) 14582 if (S_is_set[key]) { 14583 value = S[key] 14584 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14585 len += length(value) + length(field[++i]) 14586 substed = 1 14587 } else 14588 len += 1 + keylen 14589 } 14590 14591 print line 14592} 14593 14594_ACAWK 14595_ACEOF 14596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14597if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14598 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14599else 14600 cat 14601fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14602 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14603_ACEOF 14604 14605# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14606# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14607# trailing colons and then remove the whole line if VPATH becomes empty 14608# (actually we leave an empty line to preserve line numbers). 14609if test "x$srcdir" = x.; then 14610 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14611h 14612s/// 14613s/^/:/ 14614s/[ ]*$/:/ 14615s/:\$(srcdir):/:/g 14616s/:\${srcdir}:/:/g 14617s/:@srcdir@:/:/g 14618s/^:*// 14619s/:*$// 14620x 14621s/\(=[ ]*\).*/\1/ 14622G 14623s/\n// 14624s/^[^=]*=[ ]*$// 14625}' 14626fi 14627 14628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14629fi # test -n "$CONFIG_FILES" 14630 14631# Set up the scripts for CONFIG_HEADERS section. 14632# No need to generate them if there are no CONFIG_HEADERS. 14633# This happens for instance with `./config.status Makefile'. 14634if test -n "$CONFIG_HEADERS"; then 14635cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14636BEGIN { 14637_ACEOF 14638 14639# Transform confdefs.h into an awk script `defines.awk', embedded as 14640# here-document in config.status, that substitutes the proper values into 14641# config.h.in to produce config.h. 14642 14643# Create a delimiter string that does not exist in confdefs.h, to ease 14644# handling of long lines. 14645ac_delim='%!_!# ' 14646for ac_last_try in false false :; do 14647 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14648 if test -z "$ac_tt"; then 14649 break 14650 elif $ac_last_try; then 14651 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14652 else 14653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14654 fi 14655done 14656 14657# For the awk script, D is an array of macro values keyed by name, 14658# likewise P contains macro parameters if any. Preserve backslash 14659# newline sequences. 14660 14661ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14662sed -n ' 14663s/.\{148\}/&'"$ac_delim"'/g 14664t rset 14665:rset 14666s/^[ ]*#[ ]*define[ ][ ]*/ / 14667t def 14668d 14669:def 14670s/\\$// 14671t bsnl 14672s/["\\]/\\&/g 14673s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14674D["\1"]=" \3"/p 14675s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14676d 14677:bsnl 14678s/["\\]/\\&/g 14679s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14680D["\1"]=" \3\\\\\\n"\\/p 14681t cont 14682s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14683t cont 14684d 14685:cont 14686n 14687s/.\{148\}/&'"$ac_delim"'/g 14688t clear 14689:clear 14690s/\\$// 14691t bsnlc 14692s/["\\]/\\&/g; s/^/"/; s/$/"/p 14693d 14694:bsnlc 14695s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14696b cont 14697' <confdefs.h | sed ' 14698s/'"$ac_delim"'/"\\\ 14699"/g' >>$CONFIG_STATUS || ac_write_fail=1 14700 14701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14702 for (key in D) D_is_set[key] = 1 14703 FS = "" 14704} 14705/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14706 line = \$ 0 14707 split(line, arg, " ") 14708 if (arg[1] == "#") { 14709 defundef = arg[2] 14710 mac1 = arg[3] 14711 } else { 14712 defundef = substr(arg[1], 2) 14713 mac1 = arg[2] 14714 } 14715 split(mac1, mac2, "(") #) 14716 macro = mac2[1] 14717 prefix = substr(line, 1, index(line, defundef) - 1) 14718 if (D_is_set[macro]) { 14719 # Preserve the white space surrounding the "#". 14720 print prefix "define", macro P[macro] D[macro] 14721 next 14722 } else { 14723 # Replace #undef with comments. This is necessary, for example, 14724 # in the case of _POSIX_SOURCE, which is predefined and required 14725 # on some systems where configure will not decide to define it. 14726 if (defundef == "undef") { 14727 print "/*", prefix defundef, macro, "*/" 14728 next 14729 } 14730 } 14731} 14732{ print } 14733_ACAWK 14734_ACEOF 14735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14736 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14737fi # test -n "$CONFIG_HEADERS" 14738 14739 14740eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14741shift 14742for ac_tag 14743do 14744 case $ac_tag in 14745 :[FHLC]) ac_mode=$ac_tag; continue;; 14746 esac 14747 case $ac_mode$ac_tag in 14748 :[FHL]*:*);; 14749 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14750 :[FH]-) ac_tag=-:-;; 14751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14752 esac 14753 ac_save_IFS=$IFS 14754 IFS=: 14755 set x $ac_tag 14756 IFS=$ac_save_IFS 14757 shift 14758 ac_file=$1 14759 shift 14760 14761 case $ac_mode in 14762 :L) ac_source=$1;; 14763 :[FH]) 14764 ac_file_inputs= 14765 for ac_f 14766 do 14767 case $ac_f in 14768 -) ac_f="$ac_tmp/stdin";; 14769 *) # Look for the file first in the build tree, then in the source tree 14770 # (if the path is not absolute). The absolute path cannot be DOS-style, 14771 # because $ac_f cannot contain `:'. 14772 test -f "$ac_f" || 14773 case $ac_f in 14774 [\\/$]*) false;; 14775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14776 esac || 14777 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14778 esac 14779 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14780 as_fn_append ac_file_inputs " '$ac_f'" 14781 done 14782 14783 # Let's still pretend it is `configure' which instantiates (i.e., don't 14784 # use $as_me), people would be surprised to read: 14785 # /* config.h. Generated by config.status. */ 14786 configure_input='Generated from '` 14787 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14788 `' by configure.' 14789 if test x"$ac_file" != x-; then 14790 configure_input="$ac_file. $configure_input" 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14792$as_echo "$as_me: creating $ac_file" >&6;} 14793 fi 14794 # Neutralize special characters interpreted by sed in replacement strings. 14795 case $configure_input in #( 14796 *\&* | *\|* | *\\* ) 14797 ac_sed_conf_input=`$as_echo "$configure_input" | 14798 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14799 *) ac_sed_conf_input=$configure_input;; 14800 esac 14801 14802 case $ac_tag in 14803 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14805 esac 14806 ;; 14807 esac 14808 14809 ac_dir=`$as_dirname -- "$ac_file" || 14810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14811 X"$ac_file" : 'X\(//\)[^/]' \| \ 14812 X"$ac_file" : 'X\(//\)$' \| \ 14813 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14814$as_echo X"$ac_file" | 14815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14816 s//\1/ 14817 q 14818 } 14819 /^X\(\/\/\)[^/].*/{ 14820 s//\1/ 14821 q 14822 } 14823 /^X\(\/\/\)$/{ 14824 s//\1/ 14825 q 14826 } 14827 /^X\(\/\).*/{ 14828 s//\1/ 14829 q 14830 } 14831 s/.*/./; q'` 14832 as_dir="$ac_dir"; as_fn_mkdir_p 14833 ac_builddir=. 14834 14835case "$ac_dir" in 14836.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14837*) 14838 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14839 # A ".." for each directory in $ac_dir_suffix. 14840 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14841 case $ac_top_builddir_sub in 14842 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14843 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14844 esac ;; 14845esac 14846ac_abs_top_builddir=$ac_pwd 14847ac_abs_builddir=$ac_pwd$ac_dir_suffix 14848# for backward compatibility: 14849ac_top_builddir=$ac_top_build_prefix 14850 14851case $srcdir in 14852 .) # We are building in place. 14853 ac_srcdir=. 14854 ac_top_srcdir=$ac_top_builddir_sub 14855 ac_abs_top_srcdir=$ac_pwd ;; 14856 [\\/]* | ?:[\\/]* ) # Absolute name. 14857 ac_srcdir=$srcdir$ac_dir_suffix; 14858 ac_top_srcdir=$srcdir 14859 ac_abs_top_srcdir=$srcdir ;; 14860 *) # Relative name. 14861 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14862 ac_top_srcdir=$ac_top_build_prefix$srcdir 14863 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14864esac 14865ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14866 14867 14868 case $ac_mode in 14869 :F) 14870 # 14871 # CONFIG_FILE 14872 # 14873 14874 case $INSTALL in 14875 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14876 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14877 esac 14878 ac_MKDIR_P=$MKDIR_P 14879 case $MKDIR_P in 14880 [\\/$]* | ?:[\\/]* ) ;; 14881 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14882 esac 14883_ACEOF 14884 14885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14886# If the template does not know about datarootdir, expand it. 14887# FIXME: This hack should be removed a few years after 2.60. 14888ac_datarootdir_hack=; ac_datarootdir_seen= 14889ac_sed_dataroot=' 14890/datarootdir/ { 14891 p 14892 q 14893} 14894/@datadir@/p 14895/@docdir@/p 14896/@infodir@/p 14897/@localedir@/p 14898/@mandir@/p' 14899case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14900*datarootdir*) ac_datarootdir_seen=yes;; 14901*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14903$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14904_ACEOF 14905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14906 ac_datarootdir_hack=' 14907 s&@datadir@&$datadir&g 14908 s&@docdir@&$docdir&g 14909 s&@infodir@&$infodir&g 14910 s&@localedir@&$localedir&g 14911 s&@mandir@&$mandir&g 14912 s&\\\${datarootdir}&$datarootdir&g' ;; 14913esac 14914_ACEOF 14915 14916# Neutralize VPATH when `$srcdir' = `.'. 14917# Shell code in configure.ac might set extrasub. 14918# FIXME: do we really want to maintain this feature? 14919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14920ac_sed_extra="$ac_vpsub 14921$extrasub 14922_ACEOF 14923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14924:t 14925/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14926s|@configure_input@|$ac_sed_conf_input|;t t 14927s&@top_builddir@&$ac_top_builddir_sub&;t t 14928s&@top_build_prefix@&$ac_top_build_prefix&;t t 14929s&@srcdir@&$ac_srcdir&;t t 14930s&@abs_srcdir@&$ac_abs_srcdir&;t t 14931s&@top_srcdir@&$ac_top_srcdir&;t t 14932s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14933s&@builddir@&$ac_builddir&;t t 14934s&@abs_builddir@&$ac_abs_builddir&;t t 14935s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14936s&@INSTALL@&$ac_INSTALL&;t t 14937s&@MKDIR_P@&$ac_MKDIR_P&;t t 14938$ac_datarootdir_hack 14939" 14940eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14941 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14942 14943test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14944 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14945 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14946 "$ac_tmp/out"`; test -z "$ac_out"; } && 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14948which seems to be undefined. Please make sure it is defined" >&5 14949$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14950which seems to be undefined. Please make sure it is defined" >&2;} 14951 14952 rm -f "$ac_tmp/stdin" 14953 case $ac_file in 14954 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14955 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14956 esac \ 14957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14958 ;; 14959 :H) 14960 # 14961 # CONFIG_HEADER 14962 # 14963 if test x"$ac_file" != x-; then 14964 { 14965 $as_echo "/* $configure_input */" \ 14966 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14967 } >"$ac_tmp/config.h" \ 14968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14969 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14971$as_echo "$as_me: $ac_file is unchanged" >&6;} 14972 else 14973 rm -f "$ac_file" 14974 mv "$ac_tmp/config.h" "$ac_file" \ 14975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14976 fi 14977 else 14978 $as_echo "/* $configure_input */" \ 14979 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14980 || as_fn_error $? "could not create -" "$LINENO" 5 14981 fi 14982# Compute "$ac_file"'s index in $config_headers. 14983_am_arg="$ac_file" 14984_am_stamp_count=1 14985for _am_header in $config_headers :; do 14986 case $_am_header in 14987 $_am_arg | $_am_arg:* ) 14988 break ;; 14989 * ) 14990 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14991 esac 14992done 14993echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14994$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14995 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14996 X"$_am_arg" : 'X\(//\)$' \| \ 14997 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14998$as_echo X"$_am_arg" | 14999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15000 s//\1/ 15001 q 15002 } 15003 /^X\(\/\/\)[^/].*/{ 15004 s//\1/ 15005 q 15006 } 15007 /^X\(\/\/\)$/{ 15008 s//\1/ 15009 q 15010 } 15011 /^X\(\/\).*/{ 15012 s//\1/ 15013 q 15014 } 15015 s/.*/./; q'`/stamp-h$_am_stamp_count 15016 ;; 15017 15018 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15019$as_echo "$as_me: executing $ac_file commands" >&6;} 15020 ;; 15021 esac 15022 15023 15024 case $ac_file$ac_mode in 15025 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15026 # Older Autoconf quotes --file arguments for eval, but not when files 15027 # are listed without --file. Let's play safe and only enable the eval 15028 # if we detect the quoting. 15029 # TODO: see whether this extra hack can be removed once we start 15030 # requiring Autoconf 2.70 or later. 15031 case $CONFIG_FILES in #( 15032 *\'*) : 15033 eval set x "$CONFIG_FILES" ;; #( 15034 *) : 15035 set x $CONFIG_FILES ;; #( 15036 *) : 15037 ;; 15038esac 15039 shift 15040 # Used to flag and report bootstrapping failures. 15041 am_rc=0 15042 for am_mf 15043 do 15044 # Strip MF so we end up with the name of the file. 15045 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15046 # Check whether this is an Automake generated Makefile which includes 15047 # dependency-tracking related rules and includes. 15048 # Grep'ing the whole file directly is not great: AIX grep has a line 15049 # limit of 2048, but all sed's we know have understand at least 4000. 15050 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15051 || continue 15052 am_dirpart=`$as_dirname -- "$am_mf" || 15053$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15054 X"$am_mf" : 'X\(//\)[^/]' \| \ 15055 X"$am_mf" : 'X\(//\)$' \| \ 15056 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15057$as_echo X"$am_mf" | 15058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15059 s//\1/ 15060 q 15061 } 15062 /^X\(\/\/\)[^/].*/{ 15063 s//\1/ 15064 q 15065 } 15066 /^X\(\/\/\)$/{ 15067 s//\1/ 15068 q 15069 } 15070 /^X\(\/\).*/{ 15071 s//\1/ 15072 q 15073 } 15074 s/.*/./; q'` 15075 am_filepart=`$as_basename -- "$am_mf" || 15076$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15077 X"$am_mf" : 'X\(//\)$' \| \ 15078 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15079$as_echo X/"$am_mf" | 15080 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15081 s//\1/ 15082 q 15083 } 15084 /^X\/\(\/\/\)$/{ 15085 s//\1/ 15086 q 15087 } 15088 /^X\/\(\/\).*/{ 15089 s//\1/ 15090 q 15091 } 15092 s/.*/./; q'` 15093 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15094 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15095 | $MAKE -f - am--depfiles" >&5 15096 (cd "$am_dirpart" \ 15097 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15098 | $MAKE -f - am--depfiles) >&5 2>&5 15099 ac_status=$? 15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15101 (exit $ac_status); } || am_rc=$? 15102 done 15103 if test $am_rc -ne 0; then 15104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15106as_fn_error $? "Something went wrong bootstrapping makefile fragments 15107 for automatic dependency tracking. If GNU make was not used, consider 15108 re-running the configure script with MAKE=\"gmake\" (or whatever is 15109 necessary). You can also try re-running configure with the 15110 '--disable-dependency-tracking' option to at least be able to build 15111 the package (albeit without support for automatic dependency tracking). 15112See \`config.log' for more details" "$LINENO" 5; } 15113 fi 15114 { am_dirpart=; unset am_dirpart;} 15115 { am_filepart=; unset am_filepart;} 15116 { am_mf=; unset am_mf;} 15117 { am_rc=; unset am_rc;} 15118 rm -f conftest-deps.mk 15119} 15120 ;; 15121 "libtool":C) 15122 15123 # See if we are running on zsh, and set the options that allow our 15124 # commands through without removal of \ escapes. 15125 if test -n "${ZSH_VERSION+set}"; then 15126 setopt NO_GLOB_SUBST 15127 fi 15128 15129 cfgfile=${ofile}T 15130 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15131 $RM "$cfgfile" 15132 15133 cat <<_LT_EOF >> "$cfgfile" 15134#! $SHELL 15135# Generated automatically by $as_me ($PACKAGE) $VERSION 15136# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15137# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15138 15139# Provide generalized library-building support services. 15140# Written by Gordon Matzigkeit, 1996 15141 15142# Copyright (C) 2014 Free Software Foundation, Inc. 15143# This is free software; see the source for copying conditions. There is NO 15144# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15145 15146# GNU Libtool is free software; you can redistribute it and/or modify 15147# it under the terms of the GNU General Public License as published by 15148# the Free Software Foundation; either version 2 of of the License, or 15149# (at your option) any later version. 15150# 15151# As a special exception to the GNU General Public License, if you 15152# distribute this file as part of a program or library that is built 15153# using GNU Libtool, you may include this file under the same 15154# distribution terms that you use for the rest of that program. 15155# 15156# GNU Libtool is distributed in the hope that it will be useful, but 15157# WITHOUT ANY WARRANTY; without even the implied warranty of 15158# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15159# GNU General Public License for more details. 15160# 15161# You should have received a copy of the GNU General Public License 15162# along with this program. If not, see <http://www.gnu.org/licenses/>. 15163 15164 15165# The names of the tagged configurations supported by this script. 15166available_tags='' 15167 15168# Configured defaults for sys_lib_dlsearch_path munging. 15169: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15170 15171# ### BEGIN LIBTOOL CONFIG 15172 15173# Which release of libtool.m4 was used? 15174macro_version=$macro_version 15175macro_revision=$macro_revision 15176 15177# Whether or not to build shared libraries. 15178build_libtool_libs=$enable_shared 15179 15180# Whether or not to build static libraries. 15181build_old_libs=$enable_static 15182 15183# What type of objects to build. 15184pic_mode=$pic_mode 15185 15186# Whether or not to optimize for fast installation. 15187fast_install=$enable_fast_install 15188 15189# Shared archive member basename,for filename based shared library versioning on AIX. 15190shared_archive_member_spec=$shared_archive_member_spec 15191 15192# Shell to use when invoking shell scripts. 15193SHELL=$lt_SHELL 15194 15195# An echo program that protects backslashes. 15196ECHO=$lt_ECHO 15197 15198# The PATH separator for the build system. 15199PATH_SEPARATOR=$lt_PATH_SEPARATOR 15200 15201# The host system. 15202host_alias=$host_alias 15203host=$host 15204host_os=$host_os 15205 15206# The build system. 15207build_alias=$build_alias 15208build=$build 15209build_os=$build_os 15210 15211# A sed program that does not truncate output. 15212SED=$lt_SED 15213 15214# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15215Xsed="\$SED -e 1s/^X//" 15216 15217# A grep program that handles long lines. 15218GREP=$lt_GREP 15219 15220# An ERE matcher. 15221EGREP=$lt_EGREP 15222 15223# A literal string matcher. 15224FGREP=$lt_FGREP 15225 15226# A BSD- or MS-compatible name lister. 15227NM=$lt_NM 15228 15229# Whether we need soft or hard links. 15230LN_S=$lt_LN_S 15231 15232# What is the maximum length of a command? 15233max_cmd_len=$max_cmd_len 15234 15235# Object file suffix (normally "o"). 15236objext=$ac_objext 15237 15238# Executable file suffix (normally ""). 15239exeext=$exeext 15240 15241# whether the shell understands "unset". 15242lt_unset=$lt_unset 15243 15244# turn spaces into newlines. 15245SP2NL=$lt_lt_SP2NL 15246 15247# turn newlines into spaces. 15248NL2SP=$lt_lt_NL2SP 15249 15250# convert \$build file names to \$host format. 15251to_host_file_cmd=$lt_cv_to_host_file_cmd 15252 15253# convert \$build files to toolchain format. 15254to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15255 15256# An object symbol dumper. 15257OBJDUMP=$lt_OBJDUMP 15258 15259# Method to check whether dependent libraries are shared objects. 15260deplibs_check_method=$lt_deplibs_check_method 15261 15262# Command to use when deplibs_check_method = "file_magic". 15263file_magic_cmd=$lt_file_magic_cmd 15264 15265# How to find potential files when deplibs_check_method = "file_magic". 15266file_magic_glob=$lt_file_magic_glob 15267 15268# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15269want_nocaseglob=$lt_want_nocaseglob 15270 15271# DLL creation program. 15272DLLTOOL=$lt_DLLTOOL 15273 15274# Command to associate shared and link libraries. 15275sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15276 15277# The archiver. 15278AR=$lt_AR 15279 15280# Flags to create an archive. 15281AR_FLAGS=$lt_AR_FLAGS 15282 15283# How to feed a file listing to the archiver. 15284archiver_list_spec=$lt_archiver_list_spec 15285 15286# A symbol stripping program. 15287STRIP=$lt_STRIP 15288 15289# Commands used to install an old-style archive. 15290RANLIB=$lt_RANLIB 15291old_postinstall_cmds=$lt_old_postinstall_cmds 15292old_postuninstall_cmds=$lt_old_postuninstall_cmds 15293 15294# Whether to use a lock for old archive extraction. 15295lock_old_archive_extraction=$lock_old_archive_extraction 15296 15297# A C compiler. 15298LTCC=$lt_CC 15299 15300# LTCC compiler flags. 15301LTCFLAGS=$lt_CFLAGS 15302 15303# Take the output of nm and produce a listing of raw symbols and C names. 15304global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15305 15306# Transform the output of nm in a proper C declaration. 15307global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15308 15309# Transform the output of nm into a list of symbols to manually relocate. 15310global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15311 15312# Transform the output of nm in a C name address pair. 15313global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15314 15315# Transform the output of nm in a C name address pair when lib prefix is needed. 15316global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15317 15318# The name lister interface. 15319nm_interface=$lt_lt_cv_nm_interface 15320 15321# Specify filename containing input files for \$NM. 15322nm_file_list_spec=$lt_nm_file_list_spec 15323 15324# The root where to search for dependent libraries,and where our libraries should be installed. 15325lt_sysroot=$lt_sysroot 15326 15327# Command to truncate a binary pipe. 15328lt_truncate_bin=$lt_lt_cv_truncate_bin 15329 15330# The name of the directory that contains temporary libtool files. 15331objdir=$objdir 15332 15333# Used to examine libraries when file_magic_cmd begins with "file". 15334MAGIC_CMD=$MAGIC_CMD 15335 15336# Must we lock files when doing compilation? 15337need_locks=$lt_need_locks 15338 15339# Manifest tool. 15340MANIFEST_TOOL=$lt_MANIFEST_TOOL 15341 15342# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15343DSYMUTIL=$lt_DSYMUTIL 15344 15345# Tool to change global to local symbols on Mac OS X. 15346NMEDIT=$lt_NMEDIT 15347 15348# Tool to manipulate fat objects and archives on Mac OS X. 15349LIPO=$lt_LIPO 15350 15351# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15352OTOOL=$lt_OTOOL 15353 15354# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15355OTOOL64=$lt_OTOOL64 15356 15357# Old archive suffix (normally "a"). 15358libext=$libext 15359 15360# Shared library suffix (normally ".so"). 15361shrext_cmds=$lt_shrext_cmds 15362 15363# The commands to extract the exported symbol list from a shared archive. 15364extract_expsyms_cmds=$lt_extract_expsyms_cmds 15365 15366# Variables whose values should be saved in libtool wrapper scripts and 15367# restored at link time. 15368variables_saved_for_relink=$lt_variables_saved_for_relink 15369 15370# Do we need the "lib" prefix for modules? 15371need_lib_prefix=$need_lib_prefix 15372 15373# Do we need a version for libraries? 15374need_version=$need_version 15375 15376# Library versioning type. 15377version_type=$version_type 15378 15379# Shared library runtime path variable. 15380runpath_var=$runpath_var 15381 15382# Shared library path variable. 15383shlibpath_var=$shlibpath_var 15384 15385# Is shlibpath searched before the hard-coded library search path? 15386shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15387 15388# Format of library name prefix. 15389libname_spec=$lt_libname_spec 15390 15391# List of archive names. First name is the real one, the rest are links. 15392# The last name is the one that the linker finds with -lNAME 15393library_names_spec=$lt_library_names_spec 15394 15395# The coded name of the library, if different from the real name. 15396soname_spec=$lt_soname_spec 15397 15398# Permission mode override for installation of shared libraries. 15399install_override_mode=$lt_install_override_mode 15400 15401# Command to use after installation of a shared archive. 15402postinstall_cmds=$lt_postinstall_cmds 15403 15404# Command to use after uninstallation of a shared archive. 15405postuninstall_cmds=$lt_postuninstall_cmds 15406 15407# Commands used to finish a libtool library installation in a directory. 15408finish_cmds=$lt_finish_cmds 15409 15410# As "finish_cmds", except a single script fragment to be evaled but 15411# not shown. 15412finish_eval=$lt_finish_eval 15413 15414# Whether we should hardcode library paths into libraries. 15415hardcode_into_libs=$hardcode_into_libs 15416 15417# Compile-time system search path for libraries. 15418sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15419 15420# Detected run-time system search path for libraries. 15421sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15422 15423# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15424configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15425 15426# Whether dlopen is supported. 15427dlopen_support=$enable_dlopen 15428 15429# Whether dlopen of programs is supported. 15430dlopen_self=$enable_dlopen_self 15431 15432# Whether dlopen of statically linked programs is supported. 15433dlopen_self_static=$enable_dlopen_self_static 15434 15435# Commands to strip libraries. 15436old_striplib=$lt_old_striplib 15437striplib=$lt_striplib 15438 15439 15440# The linker used to build libraries. 15441LD=$lt_LD 15442 15443# How to create reloadable object files. 15444reload_flag=$lt_reload_flag 15445reload_cmds=$lt_reload_cmds 15446 15447# Commands used to build an old-style archive. 15448old_archive_cmds=$lt_old_archive_cmds 15449 15450# A language specific compiler. 15451CC=$lt_compiler 15452 15453# Is the compiler the GNU compiler? 15454with_gcc=$GCC 15455 15456# Compiler flag to turn off builtin functions. 15457no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15458 15459# Additional compiler flags for building library objects. 15460pic_flag=$lt_lt_prog_compiler_pic 15461 15462# How to pass a linker flag through the compiler. 15463wl=$lt_lt_prog_compiler_wl 15464 15465# Compiler flag to prevent dynamic linking. 15466link_static_flag=$lt_lt_prog_compiler_static 15467 15468# Does compiler simultaneously support -c and -o options? 15469compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15470 15471# Whether or not to add -lc for building shared libraries. 15472build_libtool_need_lc=$archive_cmds_need_lc 15473 15474# Whether or not to disallow shared libs when runtime libs are static. 15475allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15476 15477# Compiler flag to allow reflexive dlopens. 15478export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15479 15480# Compiler flag to generate shared objects directly from archives. 15481whole_archive_flag_spec=$lt_whole_archive_flag_spec 15482 15483# Whether the compiler copes with passing no objects directly. 15484compiler_needs_object=$lt_compiler_needs_object 15485 15486# Create an old-style archive from a shared archive. 15487old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15488 15489# Create a temporary old-style archive to link instead of a shared archive. 15490old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15491 15492# Commands used to build a shared archive. 15493archive_cmds=$lt_archive_cmds 15494archive_expsym_cmds=$lt_archive_expsym_cmds 15495 15496# Commands used to build a loadable module if different from building 15497# a shared archive. 15498module_cmds=$lt_module_cmds 15499module_expsym_cmds=$lt_module_expsym_cmds 15500 15501# Whether we are building with GNU ld or not. 15502with_gnu_ld=$lt_with_gnu_ld 15503 15504# Flag that allows shared libraries with undefined symbols to be built. 15505allow_undefined_flag=$lt_allow_undefined_flag 15506 15507# Flag that enforces no undefined symbols. 15508no_undefined_flag=$lt_no_undefined_flag 15509 15510# Flag to hardcode \$libdir into a binary during linking. 15511# This must work even if \$libdir does not exist 15512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15513 15514# Whether we need a single "-rpath" flag with a separated argument. 15515hardcode_libdir_separator=$lt_hardcode_libdir_separator 15516 15517# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15518# DIR into the resulting binary. 15519hardcode_direct=$hardcode_direct 15520 15521# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15522# DIR into the resulting binary and the resulting library dependency is 15523# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15524# library is relocated. 15525hardcode_direct_absolute=$hardcode_direct_absolute 15526 15527# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15528# into the resulting binary. 15529hardcode_minus_L=$hardcode_minus_L 15530 15531# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15532# into the resulting binary. 15533hardcode_shlibpath_var=$hardcode_shlibpath_var 15534 15535# Set to "yes" if building a shared library automatically hardcodes DIR 15536# into the library and all subsequent libraries and executables linked 15537# against it. 15538hardcode_automatic=$hardcode_automatic 15539 15540# Set to yes if linker adds runtime paths of dependent libraries 15541# to runtime path list. 15542inherit_rpath=$inherit_rpath 15543 15544# Whether libtool must link a program against all its dependency libraries. 15545link_all_deplibs=$link_all_deplibs 15546 15547# Set to "yes" if exported symbols are required. 15548always_export_symbols=$always_export_symbols 15549 15550# The commands to list exported symbols. 15551export_symbols_cmds=$lt_export_symbols_cmds 15552 15553# Symbols that should not be listed in the preloaded symbols. 15554exclude_expsyms=$lt_exclude_expsyms 15555 15556# Symbols that must always be exported. 15557include_expsyms=$lt_include_expsyms 15558 15559# Commands necessary for linking programs (against libraries) with templates. 15560prelink_cmds=$lt_prelink_cmds 15561 15562# Commands necessary for finishing linking programs. 15563postlink_cmds=$lt_postlink_cmds 15564 15565# Specify filename containing input files. 15566file_list_spec=$lt_file_list_spec 15567 15568# How to hardcode a shared library path into an executable. 15569hardcode_action=$hardcode_action 15570 15571# ### END LIBTOOL CONFIG 15572 15573_LT_EOF 15574 15575 cat <<'_LT_EOF' >> "$cfgfile" 15576 15577# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15578 15579# func_munge_path_list VARIABLE PATH 15580# ----------------------------------- 15581# VARIABLE is name of variable containing _space_ separated list of 15582# directories to be munged by the contents of PATH, which is string 15583# having a format: 15584# "DIR[:DIR]:" 15585# string "DIR[ DIR]" will be prepended to VARIABLE 15586# ":DIR[:DIR]" 15587# string "DIR[ DIR]" will be appended to VARIABLE 15588# "DIRP[:DIRP]::[DIRA:]DIRA" 15589# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15590# "DIRA[ DIRA]" will be appended to VARIABLE 15591# "DIR[:DIR]" 15592# VARIABLE will be replaced by "DIR[ DIR]" 15593func_munge_path_list () 15594{ 15595 case x$2 in 15596 x) 15597 ;; 15598 *:) 15599 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15600 ;; 15601 x:*) 15602 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15603 ;; 15604 *::*) 15605 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15606 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15607 ;; 15608 *) 15609 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15610 ;; 15611 esac 15612} 15613 15614 15615# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15616func_cc_basename () 15617{ 15618 for cc_temp in $*""; do 15619 case $cc_temp in 15620 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15621 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15622 \-*) ;; 15623 *) break;; 15624 esac 15625 done 15626 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15627} 15628 15629 15630# ### END FUNCTIONS SHARED WITH CONFIGURE 15631 15632_LT_EOF 15633 15634 case $host_os in 15635 aix3*) 15636 cat <<\_LT_EOF >> "$cfgfile" 15637# AIX sometimes has problems with the GCC collect2 program. For some 15638# reason, if we set the COLLECT_NAMES environment variable, the problems 15639# vanish in a puff of smoke. 15640if test set != "${COLLECT_NAMES+set}"; then 15641 COLLECT_NAMES= 15642 export COLLECT_NAMES 15643fi 15644_LT_EOF 15645 ;; 15646 esac 15647 15648 15649ltmain=$ac_aux_dir/ltmain.sh 15650 15651 15652 # We use sed instead of cat because bash on DJGPP gets confused if 15653 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15654 # text mode, it properly converts lines to CR/LF. This bash problem 15655 # is reportedly fixed, but why not run on old versions too? 15656 sed '$q' "$ltmain" >> "$cfgfile" \ 15657 || (rm -f "$cfgfile"; exit 1) 15658 15659 mv -f "$cfgfile" "$ofile" || 15660 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15661 chmod +x "$ofile" 15662 15663 ;; 15664 15665 esac 15666done # for ac_tag 15667 15668 15669as_fn_exit 0 15670_ACEOF 15671ac_clean_files=$ac_clean_files_save 15672 15673test $ac_write_fail = 0 || 15674 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15675 15676 15677# configure is writing to config.log, and then calls config.status. 15678# config.status does its own redirection, appending to config.log. 15679# Unfortunately, on DOS this fails, as config.log is still kept open 15680# by configure, so config.status won't be able to write to it; its 15681# output is simply discarded. So we exec the FD to /dev/null, 15682# effectively closing config.log, so it can be properly (re)opened and 15683# appended to by config.status. When coming back to configure, we 15684# need to make the FD available again. 15685if test "$no_create" != yes; then 15686 ac_cs_success=: 15687 ac_config_status_args= 15688 test "$silent" = yes && 15689 ac_config_status_args="$ac_config_status_args --quiet" 15690 exec 5>/dev/null 15691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15692 exec 5>>config.log 15693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15694 # would make configure fail if this is the last instruction. 15695 $ac_cs_success || as_fn_exit 1 15696fi 15697if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15699$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15700fi 15701 15702