1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ivykis-test-mt 0.1. 4# 5# Report bugs to <libivykis-discuss@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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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: libivykis-discuss@lists.sourceforge.net about your 279$0: system, 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='ivykis-test-mt' 592PACKAGE_TARNAME='ivykis-test-mt' 593PACKAGE_VERSION='0.1' 594PACKAGE_STRING='ivykis-test-mt 0.1' 595PACKAGE_BUGREPORT='libivykis-discuss@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="iv_event_bench.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 639HAVE_INOTIFY_FALSE 640HAVE_INOTIFY_TRUE 641HAVE_WIN32_FALSE 642HAVE_WIN32_TRUE 643HAVE_POSIX_FALSE 644HAVE_POSIX_TRUE 645CPP 646LT_SYS_LIBRARY_PATH 647OTOOL64 648OTOOL 649LIPO 650NMEDIT 651DSYMUTIL 652MANIFEST_TOOL 653RANLIB 654ac_ct_AR 655AR 656DLLTOOL 657OBJDUMP 658LN_S 659NM 660ac_ct_DUMPBIN 661DUMPBIN 662LD 663FGREP 664EGREP 665GREP 666SED 667am__fastdepCC_FALSE 668am__fastdepCC_TRUE 669CCDEPMODE 670am__nodep 671AMDEPBACKSLASH 672AMDEP_FALSE 673AMDEP_TRUE 674am__include 675DEPDIR 676OBJEXT 677EXEEXT 678ac_ct_CC 679CPPFLAGS 680LDFLAGS 681CFLAGS 682CC 683LIBTOOL 684host_os 685host_vendor 686host_cpu 687host 688build_os 689build_vendor 690build_cpu 691build 692AM_BACKSLASH 693AM_DEFAULT_VERBOSITY 694AM_DEFAULT_V 695AM_V 696am__untar 697am__tar 698AMTAR 699am__leading_dot 700SET_MAKE 701AWK 702mkdir_p 703MKDIR_P 704INSTALL_STRIP_PROGRAM 705STRIP 706install_sh 707MAKEINFO 708AUTOHEADER 709AUTOMAKE 710AUTOCONF 711ACLOCAL 712VERSION 713PACKAGE 714CYGPATH_W 715am__isrc 716INSTALL_DATA 717INSTALL_SCRIPT 718INSTALL_PROGRAM 719target_alias 720host_alias 721build_alias 722LIBS 723ECHO_T 724ECHO_N 725ECHO_C 726DEFS 727mandir 728localedir 729libdir 730psdir 731pdfdir 732dvidir 733htmldir 734infodir 735docdir 736oldincludedir 737includedir 738localstatedir 739sharedstatedir 740sysconfdir 741datadir 742datarootdir 743libexecdir 744sbindir 745bindir 746program_transform_name 747prefix 748exec_prefix 749PACKAGE_URL 750PACKAGE_BUGREPORT 751PACKAGE_STRING 752PACKAGE_VERSION 753PACKAGE_TARNAME 754PACKAGE_NAME 755PATH_SEPARATOR 756SHELL 757am__quote' 758ac_subst_files='' 759ac_user_opts=' 760enable_option_checking 761enable_silent_rules 762enable_shared 763enable_static 764with_pic 765enable_fast_install 766with_aix_soname 767enable_dependency_tracking 768with_gnu_ld 769with_sysroot 770enable_libtool_lock 771' 772 ac_precious_vars='build_alias 773host_alias 774target_alias 775CC 776CFLAGS 777LDFLAGS 778LIBS 779CPPFLAGS 780LT_SYS_LIBRARY_PATH 781CPP' 782 783 784# Initialize some variables set by options. 785ac_init_help= 786ac_init_version=false 787ac_unrecognized_opts= 788ac_unrecognized_sep= 789# The variables have the same names as the options, with 790# dashes changed to underlines. 791cache_file=/dev/null 792exec_prefix=NONE 793no_create= 794no_recursion= 795prefix=NONE 796program_prefix=NONE 797program_suffix=NONE 798program_transform_name=s,x,x, 799silent= 800site= 801srcdir= 802verbose= 803x_includes=NONE 804x_libraries=NONE 805 806# Installation directory options. 807# These are left unexpanded so users can "make install exec_prefix=/foo" 808# and all the variables that are supposed to be based on exec_prefix 809# by default will actually change. 810# Use braces instead of parens because sh, perl, etc. also accept them. 811# (The list follows the same order as the GNU Coding Standards.) 812bindir='${exec_prefix}/bin' 813sbindir='${exec_prefix}/sbin' 814libexecdir='${exec_prefix}/libexec' 815datarootdir='${prefix}/share' 816datadir='${datarootdir}' 817sysconfdir='${prefix}/etc' 818sharedstatedir='${prefix}/com' 819localstatedir='${prefix}/var' 820includedir='${prefix}/include' 821oldincludedir='/usr/include' 822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 823infodir='${datarootdir}/info' 824htmldir='${docdir}' 825dvidir='${docdir}' 826pdfdir='${docdir}' 827psdir='${docdir}' 828libdir='${exec_prefix}/lib' 829localedir='${datarootdir}/locale' 830mandir='${datarootdir}/man' 831 832ac_prev= 833ac_dashdash= 834for ac_option 835do 836 # If the previous option needs an argument, assign it. 837 if test -n "$ac_prev"; then 838 eval $ac_prev=\$ac_option 839 ac_prev= 840 continue 841 fi 842 843 case $ac_option in 844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 845 *=) ac_optarg= ;; 846 *) ac_optarg=yes ;; 847 esac 848 849 # Accept the important Cygnus configure options, so we can diagnose typos. 850 851 case $ac_dashdash$ac_option in 852 --) 853 ac_dashdash=yes ;; 854 855 -bindir | --bindir | --bindi | --bind | --bin | --bi) 856 ac_prev=bindir ;; 857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 858 bindir=$ac_optarg ;; 859 860 -build | --build | --buil | --bui | --bu) 861 ac_prev=build_alias ;; 862 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 863 build_alias=$ac_optarg ;; 864 865 -cache-file | --cache-file | --cache-fil | --cache-fi \ 866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 867 ac_prev=cache_file ;; 868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 870 cache_file=$ac_optarg ;; 871 872 --config-cache | -C) 873 cache_file=config.cache ;; 874 875 -datadir | --datadir | --datadi | --datad) 876 ac_prev=datadir ;; 877 -datadir=* | --datadir=* | --datadi=* | --datad=*) 878 datadir=$ac_optarg ;; 879 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 881 | --dataroo | --dataro | --datar) 882 ac_prev=datarootdir ;; 883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 885 datarootdir=$ac_optarg ;; 886 887 -disable-* | --disable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: $ac_useropt" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896"enable_$ac_useropt" 897"*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=no ;; 902 903 -docdir | --docdir | --docdi | --doc | --do) 904 ac_prev=docdir ;; 905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 906 docdir=$ac_optarg ;; 907 908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 909 ac_prev=dvidir ;; 910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 911 dvidir=$ac_optarg ;; 912 913 -enable-* | --enable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=\$ac_optarg ;; 928 929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 931 | --exec | --exe | --ex) 932 ac_prev=exec_prefix ;; 933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 935 | --exec=* | --exe=* | --ex=*) 936 exec_prefix=$ac_optarg ;; 937 938 -gas | --gas | --ga | --g) 939 # Obsolete; use --with-gas. 940 with_gas=yes ;; 941 942 -help | --help | --hel | --he | -h) 943 ac_init_help=long ;; 944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 945 ac_init_help=recursive ;; 946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 947 ac_init_help=short ;; 948 949 -host | --host | --hos | --ho) 950 ac_prev=host_alias ;; 951 -host=* | --host=* | --hos=* | --ho=*) 952 host_alias=$ac_optarg ;; 953 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 955 ac_prev=htmldir ;; 956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 957 | --ht=*) 958 htmldir=$ac_optarg ;; 959 960 -includedir | --includedir | --includedi | --included | --include \ 961 | --includ | --inclu | --incl | --inc) 962 ac_prev=includedir ;; 963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 964 | --includ=* | --inclu=* | --incl=* | --inc=*) 965 includedir=$ac_optarg ;; 966 967 -infodir | --infodir | --infodi | --infod | --info | --inf) 968 ac_prev=infodir ;; 969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 970 infodir=$ac_optarg ;; 971 972 -libdir | --libdir | --libdi | --libd) 973 ac_prev=libdir ;; 974 -libdir=* | --libdir=* | --libdi=* | --libd=*) 975 libdir=$ac_optarg ;; 976 977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 978 | --libexe | --libex | --libe) 979 ac_prev=libexecdir ;; 980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 981 | --libexe=* | --libex=* | --libe=*) 982 libexecdir=$ac_optarg ;; 983 984 -localedir | --localedir | --localedi | --localed | --locale) 985 ac_prev=localedir ;; 986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 987 localedir=$ac_optarg ;; 988 989 -localstatedir | --localstatedir | --localstatedi | --localstated \ 990 | --localstate | --localstat | --localsta | --localst | --locals) 991 ac_prev=localstatedir ;; 992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 994 localstatedir=$ac_optarg ;; 995 996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 997 ac_prev=mandir ;; 998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 999 mandir=$ac_optarg ;; 1000 1001 -nfp | --nfp | --nf) 1002 # Obsolete; use --without-fp. 1003 with_fp=no ;; 1004 1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1006 | --no-cr | --no-c | -n) 1007 no_create=yes ;; 1008 1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1011 no_recursion=yes ;; 1012 1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1015 | --oldin | --oldi | --old | --ol | --o) 1016 ac_prev=oldincludedir ;; 1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1020 oldincludedir=$ac_optarg ;; 1021 1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1023 ac_prev=prefix ;; 1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1025 prefix=$ac_optarg ;; 1026 1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1028 | --program-pre | --program-pr | --program-p) 1029 ac_prev=program_prefix ;; 1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1032 program_prefix=$ac_optarg ;; 1033 1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1035 | --program-suf | --program-su | --program-s) 1036 ac_prev=program_suffix ;; 1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1039 program_suffix=$ac_optarg ;; 1040 1041 -program-transform-name | --program-transform-name \ 1042 | --program-transform-nam | --program-transform-na \ 1043 | --program-transform-n | --program-transform- \ 1044 | --program-transform | --program-transfor \ 1045 | --program-transfo | --program-transf \ 1046 | --program-trans | --program-tran \ 1047 | --progr-tra | --program-tr | --program-t) 1048 ac_prev=program_transform_name ;; 1049 -program-transform-name=* | --program-transform-name=* \ 1050 | --program-transform-nam=* | --program-transform-na=* \ 1051 | --program-transform-n=* | --program-transform-=* \ 1052 | --program-transform=* | --program-transfor=* \ 1053 | --program-transfo=* | --program-transf=* \ 1054 | --program-trans=* | --program-tran=* \ 1055 | --progr-tra=* | --program-tr=* | --program-t=*) 1056 program_transform_name=$ac_optarg ;; 1057 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1059 ac_prev=pdfdir ;; 1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1061 pdfdir=$ac_optarg ;; 1062 1063 -psdir | --psdir | --psdi | --psd | --ps) 1064 ac_prev=psdir ;; 1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1066 psdir=$ac_optarg ;; 1067 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 silent=yes ;; 1071 1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1073 ac_prev=sbindir ;; 1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1075 | --sbi=* | --sb=*) 1076 sbindir=$ac_optarg ;; 1077 1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1080 | --sharedst | --shareds | --shared | --share | --shar \ 1081 | --sha | --sh) 1082 ac_prev=sharedstatedir ;; 1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1086 | --sha=* | --sh=*) 1087 sharedstatedir=$ac_optarg ;; 1088 1089 -site | --site | --sit) 1090 ac_prev=site ;; 1091 -site=* | --site=* | --sit=*) 1092 site=$ac_optarg ;; 1093 1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1095 ac_prev=srcdir ;; 1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1097 srcdir=$ac_optarg ;; 1098 1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1100 | --syscon | --sysco | --sysc | --sys | --sy) 1101 ac_prev=sysconfdir ;; 1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1104 sysconfdir=$ac_optarg ;; 1105 1106 -target | --target | --targe | --targ | --tar | --ta | --t) 1107 ac_prev=target_alias ;; 1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1109 target_alias=$ac_optarg ;; 1110 1111 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1112 verbose=yes ;; 1113 1114 -version | --version | --versio | --versi | --vers | -V) 1115 ac_init_version=: ;; 1116 1117 -with-* | --with-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=\$ac_optarg ;; 1132 1133 -without-* | --without-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: $ac_useropt" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=no ;; 1148 1149 --x) 1150 # Obsolete; use --with-x. 1151 with_x=yes ;; 1152 1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1154 | --x-incl | --x-inc | --x-in | --x-i) 1155 ac_prev=x_includes ;; 1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1158 x_includes=$ac_optarg ;; 1159 1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1162 ac_prev=x_libraries ;; 1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1165 x_libraries=$ac_optarg ;; 1166 1167 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1168Try \`$0 --help' for more information" 1169 ;; 1170 1171 *=*) 1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1173 # Reject names that are not valid shell variable names. 1174 case $ac_envvar in #( 1175 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1177 esac 1178 eval $ac_envvar=\$ac_optarg 1179 export $ac_envvar ;; 1180 1181 *) 1182 # FIXME: should be removed in autoconf 3.0. 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1187 ;; 1188 1189 esac 1190done 1191 1192if test -n "$ac_prev"; then 1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1194 as_fn_error $? "missing argument to $ac_option" 1195fi 1196 1197if test -n "$ac_unrecognized_opts"; then 1198 case $enable_option_checking in 1199 no) ;; 1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1202 esac 1203fi 1204 1205# Check all directory arguments for consistency. 1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1207 datadir sysconfdir sharedstatedir localstatedir includedir \ 1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1209 libdir localedir mandir 1210do 1211 eval ac_val=\$$ac_var 1212 # Remove trailing slashes. 1213 case $ac_val in 1214 */ ) 1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1216 eval $ac_var=\$ac_val;; 1217 esac 1218 # Be sure to have absolute directory names. 1219 case $ac_val in 1220 [\\/$]* | ?:[\\/]* ) continue;; 1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1222 esac 1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1224done 1225 1226# There might be people who depend on the old broken behavior: `$host' 1227# used to hold the argument of --host etc. 1228# FIXME: To remove some day. 1229build=$build_alias 1230host=$host_alias 1231target=$target_alias 1232 1233# FIXME: To remove some day. 1234if test "x$host_alias" != x; then 1235 if test "x$build_alias" = x; then 1236 cross_compiling=maybe 1237 elif test "x$build_alias" != "x$host_alias"; then 1238 cross_compiling=yes 1239 fi 1240fi 1241 1242ac_tool_prefix= 1243test -n "$host_alias" && ac_tool_prefix=$host_alias- 1244 1245test "$silent" = yes && exec 6>/dev/null 1246 1247 1248ac_pwd=`pwd` && test -n "$ac_pwd" && 1249ac_ls_di=`ls -di .` && 1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1251 as_fn_error $? "working directory cannot be determined" 1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1253 as_fn_error $? "pwd does not report name of working directory" 1254 1255 1256# Find the source files, if location was not specified. 1257if test -z "$srcdir"; then 1258 ac_srcdir_defaulted=yes 1259 # Try the directory containing this script, then the parent directory. 1260 ac_confdir=`$as_dirname -- "$as_myself" || 1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1262 X"$as_myself" : 'X\(//\)[^/]' \| \ 1263 X"$as_myself" : 'X\(//\)$' \| \ 1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1265$as_echo X"$as_myself" | 1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)[^/].*/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\/\)$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\).*/{ 1279 s//\1/ 1280 q 1281 } 1282 s/.*/./; q'` 1283 srcdir=$ac_confdir 1284 if test ! -r "$srcdir/$ac_unique_file"; then 1285 srcdir=.. 1286 fi 1287else 1288 ac_srcdir_defaulted=no 1289fi 1290if test ! -r "$srcdir/$ac_unique_file"; then 1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1293fi 1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1295ac_abs_confdir=`( 1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1297 pwd)` 1298# When building in place, set srcdir=. 1299if test "$ac_abs_confdir" = "$ac_pwd"; then 1300 srcdir=. 1301fi 1302# Remove unnecessary trailing slashes from srcdir. 1303# Double slashes in file names in object file debugging info 1304# mess up M-x gdb in Emacs. 1305case $srcdir in 1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1307esac 1308for ac_var in $ac_precious_vars; do 1309 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_env_${ac_var}_value=\$${ac_var} 1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1313done 1314 1315# 1316# Report the --help message. 1317# 1318if test "$ac_init_help" = "long"; then 1319 # Omit some internal or obsolete options to make the list less imposing. 1320 # This message is too long to be a string in the A/UX 3.1 sh. 1321 cat <<_ACEOF 1322\`configure' configures ivykis-test-mt 0.1 to adapt to many kinds of systems. 1323 1324Usage: $0 [OPTION]... [VAR=VALUE]... 1325 1326To assign environment variables (e.g., CC, CFLAGS...), specify them as 1327VAR=VALUE. See below for descriptions of some of the useful variables. 1328 1329Defaults for the options are specified in brackets. 1330 1331Configuration: 1332 -h, --help display this help and exit 1333 --help=short display options specific to this package 1334 --help=recursive display the short help of all the included packages 1335 -V, --version display version information and exit 1336 -q, --quiet, --silent do not print \`checking ...' messages 1337 --cache-file=FILE cache test results in FILE [disabled] 1338 -C, --config-cache alias for \`--cache-file=config.cache' 1339 -n, --no-create do not create output files 1340 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1341 1342Installation directories: 1343 --prefix=PREFIX install architecture-independent files in PREFIX 1344 [$ac_default_prefix] 1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1346 [PREFIX] 1347 1348By default, \`make install' will install all the files in 1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1350an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1351for instance \`--prefix=\$HOME'. 1352 1353For better control, use the options below. 1354 1355Fine tuning of the installation directories: 1356 --bindir=DIR user executables [EPREFIX/bin] 1357 --sbindir=DIR system admin executables [EPREFIX/sbin] 1358 --libexecdir=DIR program executables [EPREFIX/libexec] 1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1362 --libdir=DIR object code libraries [EPREFIX/lib] 1363 --includedir=DIR C header files [PREFIX/include] 1364 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1367 --infodir=DIR info documentation [DATAROOTDIR/info] 1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1369 --mandir=DIR man documentation [DATAROOTDIR/man] 1370 --docdir=DIR documentation root [DATAROOTDIR/doc/ivykis-test-mt] 1371 --htmldir=DIR html documentation [DOCDIR] 1372 --dvidir=DIR dvi documentation [DOCDIR] 1373 --pdfdir=DIR pdf documentation [DOCDIR] 1374 --psdir=DIR ps documentation [DOCDIR] 1375_ACEOF 1376 1377 cat <<\_ACEOF 1378 1379Program names: 1380 --program-prefix=PREFIX prepend PREFIX to installed program names 1381 --program-suffix=SUFFIX append SUFFIX to installed program names 1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1383 1384System types: 1385 --build=BUILD configure for building on BUILD [guessed] 1386 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1387_ACEOF 1388fi 1389 1390if test -n "$ac_init_help"; then 1391 case $ac_init_help in 1392 short | recursive ) echo "Configuration of ivykis-test-mt 0.1:";; 1393 esac 1394 cat <<\_ACEOF 1395 1396Optional Features: 1397 --disable-option-checking ignore unrecognized --enable/--with options 1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1400 --enable-silent-rules less verbose build output (undo: "make V=1") 1401 --disable-silent-rules verbose build output (undo: "make V=0") 1402 --enable-shared[=PKGS] build shared libraries [default=yes] 1403 --enable-static[=PKGS] build static libraries [default=yes] 1404 --enable-fast-install[=PKGS] 1405 optimize for fast installation [default=yes] 1406 --enable-dependency-tracking 1407 do not reject slow dependency extractors 1408 --disable-dependency-tracking 1409 speeds up one-time build 1410 --disable-libtool-lock avoid locking (might break parallel builds) 1411 1412Optional Packages: 1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1415 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1416 both] 1417 --with-aix-soname=aix|svr4|both 1418 shared library versioning (aka "SONAME") variant to 1419 provide on AIX, [default=aix]. 1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1421 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1422 compiler's sysroot if not specified). 1423 1424Some influential environment variables: 1425 CC C compiler command 1426 CFLAGS C compiler flags 1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1428 nonstandard directory <lib dir> 1429 LIBS libraries to pass to the linker, e.g. -l<library> 1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1431 you have headers in a nonstandard directory <include dir> 1432 LT_SYS_LIBRARY_PATH 1433 User-defined run-time library search path. 1434 CPP C preprocessor 1435 1436Use these variables to override the choices made by `configure' or to help 1437it to find libraries and programs with nonstandard names/locations. 1438 1439Report bugs to <libivykis-discuss@lists.sourceforge.net>. 1440_ACEOF 1441ac_status=$? 1442fi 1443 1444if test "$ac_init_help" = "recursive"; then 1445 # If there are subdirs, report their specific --help. 1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1447 test -d "$ac_dir" || 1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1449 continue 1450 ac_builddir=. 1451 1452case "$ac_dir" in 1453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1454*) 1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1456 # A ".." for each directory in $ac_dir_suffix. 1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1458 case $ac_top_builddir_sub in 1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1461 esac ;; 1462esac 1463ac_abs_top_builddir=$ac_pwd 1464ac_abs_builddir=$ac_pwd$ac_dir_suffix 1465# for backward compatibility: 1466ac_top_builddir=$ac_top_build_prefix 1467 1468case $srcdir in 1469 .) # We are building in place. 1470 ac_srcdir=. 1471 ac_top_srcdir=$ac_top_builddir_sub 1472 ac_abs_top_srcdir=$ac_pwd ;; 1473 [\\/]* | ?:[\\/]* ) # Absolute name. 1474 ac_srcdir=$srcdir$ac_dir_suffix; 1475 ac_top_srcdir=$srcdir 1476 ac_abs_top_srcdir=$srcdir ;; 1477 *) # Relative name. 1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1479 ac_top_srcdir=$ac_top_build_prefix$srcdir 1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1481esac 1482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1483 1484 cd "$ac_dir" || { ac_status=$?; continue; } 1485 # Check for guested configure. 1486 if test -f "$ac_srcdir/configure.gnu"; then 1487 echo && 1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1489 elif test -f "$ac_srcdir/configure"; then 1490 echo && 1491 $SHELL "$ac_srcdir/configure" --help=recursive 1492 else 1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1494 fi || ac_status=$? 1495 cd "$ac_pwd" || { ac_status=$?; break; } 1496 done 1497fi 1498 1499test -n "$ac_init_help" && exit $ac_status 1500if $ac_init_version; then 1501 cat <<\_ACEOF 1502ivykis-test-mt configure 0.1 1503generated by GNU Autoconf 2.69 1504 1505Copyright (C) 2012 Free Software Foundation, Inc. 1506This configure script is free software; the Free Software Foundation 1507gives unlimited permission to copy, distribute and modify it. 1508_ACEOF 1509 exit 1510fi 1511 1512## ------------------------ ## 1513## Autoconf initialization. ## 1514## ------------------------ ## 1515 1516# ac_fn_c_try_compile LINENO 1517# -------------------------- 1518# Try to compile conftest.$ac_ext, and return whether this succeeded. 1519ac_fn_c_try_compile () 1520{ 1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1522 rm -f conftest.$ac_objext 1523 if { { ac_try="$ac_compile" 1524case "(($ac_try" in 1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1526 *) ac_try_echo=$ac_try;; 1527esac 1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1529$as_echo "$ac_try_echo"; } >&5 1530 (eval "$ac_compile") 2>conftest.err 1531 ac_status=$? 1532 if test -s conftest.err; then 1533 grep -v '^ *+' conftest.err >conftest.er1 1534 cat conftest.er1 >&5 1535 mv -f conftest.er1 conftest.err 1536 fi 1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1538 test $ac_status = 0; } && { 1539 test -z "$ac_c_werror_flag" || 1540 test ! -s conftest.err 1541 } && test -s conftest.$ac_objext; then : 1542 ac_retval=0 1543else 1544 $as_echo "$as_me: failed program was:" >&5 1545sed 's/^/| /' conftest.$ac_ext >&5 1546 1547 ac_retval=1 1548fi 1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1550 as_fn_set_status $ac_retval 1551 1552} # ac_fn_c_try_compile 1553 1554# ac_fn_c_try_link LINENO 1555# ----------------------- 1556# Try to link conftest.$ac_ext, and return whether this succeeded. 1557ac_fn_c_try_link () 1558{ 1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1560 rm -f conftest.$ac_objext conftest$ac_exeext 1561 if { { ac_try="$ac_link" 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_link") 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; } && { 1577 test -z "$ac_c_werror_flag" || 1578 test ! -s conftest.err 1579 } && test -s conftest$ac_exeext && { 1580 test "$cross_compiling" = yes || 1581 test -x conftest$ac_exeext 1582 }; then : 1583 ac_retval=0 1584else 1585 $as_echo "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589fi 1590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1592 # interfere with the next link command; also delete a directory that is 1593 # left behind by Apple's compiler. We do this before executing the actions. 1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1596 as_fn_set_status $ac_retval 1597 1598} # ac_fn_c_try_link 1599 1600# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1601# ------------------------------------------------------- 1602# Tests whether HEADER exists and can be compiled using the include files in 1603# INCLUDES, setting the cache variable VAR accordingly. 1604ac_fn_c_check_header_compile () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1608$as_echo_n "checking for $2... " >&6; } 1609if eval \${$3+:} false; then : 1610 $as_echo_n "(cached) " >&6 1611else 1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613/* end confdefs.h. */ 1614$4 1615#include <$2> 1616_ACEOF 1617if ac_fn_c_try_compile "$LINENO"; then : 1618 eval "$3=yes" 1619else 1620 eval "$3=no" 1621fi 1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1623fi 1624eval ac_res=\$$3 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1626$as_echo "$ac_res" >&6; } 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 1629} # ac_fn_c_check_header_compile 1630 1631# ac_fn_c_try_cpp LINENO 1632# ---------------------- 1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_cpp () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_cpp conftest.$ac_ext" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } > conftest.i && { 1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 }; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 as_fn_set_status $ac_retval 1665 1666} # ac_fn_c_try_cpp 1667 1668# ac_fn_c_try_run LINENO 1669# ---------------------- 1670# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1671# that executables *can* be run. 1672ac_fn_c_try_run () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if { { ac_try="$ac_link" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_link") 2>&5 1683 ac_status=$? 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1686 { { case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_try") 2>&5 1693 ac_status=$? 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; }; }; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: program exited with status $ac_status" >&5 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=$ac_status 1703fi 1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_run 1709 1710# ac_fn_c_check_func LINENO FUNC VAR 1711# ---------------------------------- 1712# Tests whether FUNC exists, setting the cache variable VAR accordingly 1713ac_fn_c_check_func () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1717$as_echo_n "checking for $2... " >&6; } 1718if eval \${$3+:} false; then : 1719 $as_echo_n "(cached) " >&6 1720else 1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1722/* end confdefs.h. */ 1723/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1725#define $2 innocuous_$2 1726 1727/* System header to define __stub macros and hopefully few prototypes, 1728 which can conflict with char $2 (); below. 1729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1730 <limits.h> exists even on freestanding compilers. */ 1731 1732#ifdef __STDC__ 1733# include <limits.h> 1734#else 1735# include <assert.h> 1736#endif 1737 1738#undef $2 1739 1740/* Override any GCC internal prototype to avoid an error. 1741 Use char because int might match the return type of a GCC 1742 builtin and then its argument prototype would still apply. */ 1743#ifdef __cplusplus 1744extern "C" 1745#endif 1746char $2 (); 1747/* The GNU C library defines this for functions which it implements 1748 to always fail with ENOSYS. Some functions are actually named 1749 something starting with __ and the normal name is an alias. */ 1750#if defined __stub_$2 || defined __stub___$2 1751choke me 1752#endif 1753 1754int 1755main () 1756{ 1757return $2 (); 1758 ; 1759 return 0; 1760} 1761_ACEOF 1762if ac_fn_c_try_link "$LINENO"; then : 1763 eval "$3=yes" 1764else 1765 eval "$3=no" 1766fi 1767rm -f core conftest.err conftest.$ac_objext \ 1768 conftest$ac_exeext conftest.$ac_ext 1769fi 1770eval ac_res=\$$3 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1772$as_echo "$ac_res" >&6; } 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 1775} # ac_fn_c_check_func 1776cat >config.log <<_ACEOF 1777This file contains any messages produced by compilers while 1778running configure, to aid debugging if configure makes a mistake. 1779 1780It was created by ivykis-test-mt $as_me 0.1, which was 1781generated by GNU Autoconf 2.69. Invocation command line was 1782 1783 $ $0 $@ 1784 1785_ACEOF 1786exec 5>>config.log 1787{ 1788cat <<_ASUNAME 1789## --------- ## 1790## Platform. ## 1791## --------- ## 1792 1793hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1794uname -m = `(uname -m) 2>/dev/null || echo unknown` 1795uname -r = `(uname -r) 2>/dev/null || echo unknown` 1796uname -s = `(uname -s) 2>/dev/null || echo unknown` 1797uname -v = `(uname -v) 2>/dev/null || echo unknown` 1798 1799/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1800/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1801 1802/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1803/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1804/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1805/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1806/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1807/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1808/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1809 1810_ASUNAME 1811 1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1813for as_dir in $PATH 1814do 1815 IFS=$as_save_IFS 1816 test -z "$as_dir" && as_dir=. 1817 $as_echo "PATH: $as_dir" 1818 done 1819IFS=$as_save_IFS 1820 1821} >&5 1822 1823cat >&5 <<_ACEOF 1824 1825 1826## ----------- ## 1827## Core tests. ## 1828## ----------- ## 1829 1830_ACEOF 1831 1832 1833# Keep a trace of the command line. 1834# Strip out --no-create and --no-recursion so they do not pile up. 1835# Strip out --silent because we don't want to record it for future runs. 1836# Also quote any args containing shell meta-characters. 1837# Make two passes to allow for proper duplicate-argument suppression. 1838ac_configure_args= 1839ac_configure_args0= 1840ac_configure_args1= 1841ac_must_keep_next=false 1842for ac_pass in 1 2 1843do 1844 for ac_arg 1845 do 1846 case $ac_arg in 1847 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1849 | -silent | --silent | --silen | --sile | --sil) 1850 continue ;; 1851 *\'*) 1852 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1853 esac 1854 case $ac_pass in 1855 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1856 2) 1857 as_fn_append ac_configure_args1 " '$ac_arg'" 1858 if test $ac_must_keep_next = true; then 1859 ac_must_keep_next=false # Got value, back to normal. 1860 else 1861 case $ac_arg in 1862 *=* | --config-cache | -C | -disable-* | --disable-* \ 1863 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1864 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1865 | -with-* | --with-* | -without-* | --without-* | --x) 1866 case "$ac_configure_args0 " in 1867 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1868 esac 1869 ;; 1870 -* ) ac_must_keep_next=true ;; 1871 esac 1872 fi 1873 as_fn_append ac_configure_args " '$ac_arg'" 1874 ;; 1875 esac 1876 done 1877done 1878{ ac_configure_args0=; unset ac_configure_args0;} 1879{ ac_configure_args1=; unset ac_configure_args1;} 1880 1881# When interrupted or exit'd, cleanup temporary files, and complete 1882# config.log. We remove comments because anyway the quotes in there 1883# would cause problems or look ugly. 1884# WARNING: Use '\'' to represent an apostrophe within the trap. 1885# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1886trap 'exit_status=$? 1887 # Save into config.log some information that might help in debugging. 1888 { 1889 echo 1890 1891 $as_echo "## ---------------- ## 1892## Cache variables. ## 1893## ---------------- ##" 1894 echo 1895 # The following way of writing the cache mishandles newlines in values, 1896( 1897 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1898 eval ac_val=\$$ac_var 1899 case $ac_val in #( 1900 *${as_nl}*) 1901 case $ac_var in #( 1902 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1903$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1904 esac 1905 case $ac_var in #( 1906 _ | IFS | as_nl) ;; #( 1907 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1908 *) { eval $ac_var=; unset $ac_var;} ;; 1909 esac ;; 1910 esac 1911 done 1912 (set) 2>&1 | 1913 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1914 *${as_nl}ac_space=\ *) 1915 sed -n \ 1916 "s/'\''/'\''\\\\'\'''\''/g; 1917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1918 ;; #( 1919 *) 1920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1921 ;; 1922 esac | 1923 sort 1924) 1925 echo 1926 1927 $as_echo "## ----------------- ## 1928## Output variables. ## 1929## ----------------- ##" 1930 echo 1931 for ac_var in $ac_subst_vars 1932 do 1933 eval ac_val=\$$ac_var 1934 case $ac_val in 1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1936 esac 1937 $as_echo "$ac_var='\''$ac_val'\''" 1938 done | sort 1939 echo 1940 1941 if test -n "$ac_subst_files"; then 1942 $as_echo "## ------------------- ## 1943## File substitutions. ## 1944## ------------------- ##" 1945 echo 1946 for ac_var in $ac_subst_files 1947 do 1948 eval ac_val=\$$ac_var 1949 case $ac_val in 1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1951 esac 1952 $as_echo "$ac_var='\''$ac_val'\''" 1953 done | sort 1954 echo 1955 fi 1956 1957 if test -s confdefs.h; then 1958 $as_echo "## ----------- ## 1959## confdefs.h. ## 1960## ----------- ##" 1961 echo 1962 cat confdefs.h 1963 echo 1964 fi 1965 test "$ac_signal" != 0 && 1966 $as_echo "$as_me: caught signal $ac_signal" 1967 $as_echo "$as_me: exit $exit_status" 1968 } >&5 1969 rm -f core *.core core.conftest.* && 1970 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1971 exit $exit_status 1972' 0 1973for ac_signal in 1 2 13 15; do 1974 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1975done 1976ac_signal=0 1977 1978# confdefs.h avoids OS command line length limits that DEFS can exceed. 1979rm -f -r conftest* confdefs.h 1980 1981$as_echo "/* confdefs.h */" > confdefs.h 1982 1983# Predefined preprocessor variables. 1984 1985cat >>confdefs.h <<_ACEOF 1986#define PACKAGE_NAME "$PACKAGE_NAME" 1987_ACEOF 1988 1989cat >>confdefs.h <<_ACEOF 1990#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1991_ACEOF 1992 1993cat >>confdefs.h <<_ACEOF 1994#define PACKAGE_VERSION "$PACKAGE_VERSION" 1995_ACEOF 1996 1997cat >>confdefs.h <<_ACEOF 1998#define PACKAGE_STRING "$PACKAGE_STRING" 1999_ACEOF 2000 2001cat >>confdefs.h <<_ACEOF 2002#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2003_ACEOF 2004 2005cat >>confdefs.h <<_ACEOF 2006#define PACKAGE_URL "$PACKAGE_URL" 2007_ACEOF 2008 2009 2010# Let the site file select an alternate cache file if it wants to. 2011# Prefer an explicitly selected file to automatically selected ones. 2012ac_site_file1=NONE 2013ac_site_file2=NONE 2014if test -n "$CONFIG_SITE"; then 2015 # We do not want a PATH search for config.site. 2016 case $CONFIG_SITE in #(( 2017 -*) ac_site_file1=./$CONFIG_SITE;; 2018 */*) ac_site_file1=$CONFIG_SITE;; 2019 *) ac_site_file1=./$CONFIG_SITE;; 2020 esac 2021elif test "x$prefix" != xNONE; then 2022 ac_site_file1=$prefix/share/config.site 2023 ac_site_file2=$prefix/etc/config.site 2024else 2025 ac_site_file1=$ac_default_prefix/share/config.site 2026 ac_site_file2=$ac_default_prefix/etc/config.site 2027fi 2028for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2029do 2030 test "x$ac_site_file" = xNONE && continue 2031 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2033$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2034 sed 's/^/| /' "$ac_site_file" >&5 2035 . "$ac_site_file" \ 2036 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2038as_fn_error $? "failed to load site script $ac_site_file 2039See \`config.log' for more details" "$LINENO" 5; } 2040 fi 2041done 2042 2043if test -r "$cache_file"; then 2044 # Some versions of bash will fail to source /dev/null (special files 2045 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2046 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2048$as_echo "$as_me: loading cache $cache_file" >&6;} 2049 case $cache_file in 2050 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2051 *) . "./$cache_file";; 2052 esac 2053 fi 2054else 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2056$as_echo "$as_me: creating cache $cache_file" >&6;} 2057 >$cache_file 2058fi 2059 2060# Check that the precious variables saved in the cache have kept the same 2061# value. 2062ac_cache_corrupted=false 2063for ac_var in $ac_precious_vars; do 2064 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2065 eval ac_new_set=\$ac_env_${ac_var}_set 2066 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2067 eval ac_new_val=\$ac_env_${ac_var}_value 2068 case $ac_old_set,$ac_new_set in 2069 set,) 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2071$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2072 ac_cache_corrupted=: ;; 2073 ,set) 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2075$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2076 ac_cache_corrupted=: ;; 2077 ,);; 2078 *) 2079 if test "x$ac_old_val" != "x$ac_new_val"; then 2080 # differences in whitespace do not lead to failure. 2081 ac_old_val_w=`echo x $ac_old_val` 2082 ac_new_val_w=`echo x $ac_new_val` 2083 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2085$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2086 ac_cache_corrupted=: 2087 else 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2089$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2090 eval $ac_var=\$ac_old_val 2091 fi 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2093$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2095$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2096 fi;; 2097 esac 2098 # Pass precious variables to config.status. 2099 if test "$ac_new_set" = set; then 2100 case $ac_new_val in 2101 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2102 *) ac_arg=$ac_var=$ac_new_val ;; 2103 esac 2104 case " $ac_configure_args " in 2105 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2106 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2107 esac 2108 fi 2109done 2110if $ac_cache_corrupted; then 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2114$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2115 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2116fi 2117## -------------------- ## 2118## Main body of script. ## 2119## -------------------- ## 2120 2121ac_ext=c 2122ac_cpp='$CPP $CPPFLAGS' 2123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2125ac_compiler_gnu=$ac_cv_c_compiler_gnu 2126 2127 2128 2129ac_config_headers="$ac_config_headers config.h" 2130 2131am__api_version='1.16' 2132 2133ac_aux_dir= 2134for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2135 if test -f "$ac_dir/install-sh"; then 2136 ac_aux_dir=$ac_dir 2137 ac_install_sh="$ac_aux_dir/install-sh -c" 2138 break 2139 elif test -f "$ac_dir/install.sh"; then 2140 ac_aux_dir=$ac_dir 2141 ac_install_sh="$ac_aux_dir/install.sh -c" 2142 break 2143 elif test -f "$ac_dir/shtool"; then 2144 ac_aux_dir=$ac_dir 2145 ac_install_sh="$ac_aux_dir/shtool install -c" 2146 break 2147 fi 2148done 2149if test -z "$ac_aux_dir"; then 2150 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2151fi 2152 2153# These three variables are undocumented and unsupported, 2154# and are intended to be withdrawn in a future Autoconf release. 2155# They can cause serious problems if a builder's source tree is in a directory 2156# whose full name contains unusual characters. 2157ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2158ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2159ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2160 2161 2162# Find a good install program. We prefer a C program (faster), 2163# so one script is as good as another. But avoid the broken or 2164# incompatible versions: 2165# SysV /etc/install, /usr/sbin/install 2166# SunOS /usr/etc/install 2167# IRIX /sbin/install 2168# AIX /bin/install 2169# AmigaOS /C/install, which installs bootblocks on floppy discs 2170# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2171# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2172# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2173# OS/2's system install, which has a completely different semantic 2174# ./install, which can be erroneously created by make from ./install.sh. 2175# Reject install programs that cannot install multiple files. 2176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2177$as_echo_n "checking for a BSD-compatible install... " >&6; } 2178if test -z "$INSTALL"; then 2179if ${ac_cv_path_install+:} false; then : 2180 $as_echo_n "(cached) " >&6 2181else 2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2183for as_dir in $PATH 2184do 2185 IFS=$as_save_IFS 2186 test -z "$as_dir" && as_dir=. 2187 # Account for people who put trailing slashes in PATH elements. 2188case $as_dir/ in #(( 2189 ./ | .// | /[cC]/* | \ 2190 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2191 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2192 /usr/ucb/* ) ;; 2193 *) 2194 # OSF1 and SCO ODT 3.0 have their own names for install. 2195 # Don't use installbsd from OSF since it installs stuff as root 2196 # by default. 2197 for ac_prog in ginstall scoinst install; do 2198 for ac_exec_ext in '' $ac_executable_extensions; do 2199 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2200 if test $ac_prog = install && 2201 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2202 # AIX install. It has an incompatible calling convention. 2203 : 2204 elif test $ac_prog = install && 2205 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2206 # program-specific install script used by HP pwplus--don't use. 2207 : 2208 else 2209 rm -rf conftest.one conftest.two conftest.dir 2210 echo one > conftest.one 2211 echo two > conftest.two 2212 mkdir conftest.dir 2213 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2214 test -s conftest.one && test -s conftest.two && 2215 test -s conftest.dir/conftest.one && 2216 test -s conftest.dir/conftest.two 2217 then 2218 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2219 break 3 2220 fi 2221 fi 2222 fi 2223 done 2224 done 2225 ;; 2226esac 2227 2228 done 2229IFS=$as_save_IFS 2230 2231rm -rf conftest.one conftest.two conftest.dir 2232 2233fi 2234 if test "${ac_cv_path_install+set}" = set; then 2235 INSTALL=$ac_cv_path_install 2236 else 2237 # As a last resort, use the slow shell script. Don't cache a 2238 # value for INSTALL within a source directory, because that will 2239 # break other packages using the cache if that directory is 2240 # removed, or if the value is a relative name. 2241 INSTALL=$ac_install_sh 2242 fi 2243fi 2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2245$as_echo "$INSTALL" >&6; } 2246 2247# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2248# It thinks the first close brace ends the variable substitution. 2249test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2250 2251test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2252 2253test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2254 2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2256$as_echo_n "checking whether build environment is sane... " >&6; } 2257# Reject unsafe characters in $srcdir or the absolute working directory 2258# name. Accept space and tab only in the latter. 2259am_lf=' 2260' 2261case `pwd` in 2262 *[\\\"\#\$\&\'\`$am_lf]*) 2263 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2264esac 2265case $srcdir in 2266 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2267 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2268esac 2269 2270# Do 'set' in a subshell so we don't clobber the current shell's 2271# arguments. Must try -L first in case configure is actually a 2272# symlink; some systems play weird games with the mod time of symlinks 2273# (eg FreeBSD returns the mod time of the symlink's containing 2274# directory). 2275if ( 2276 am_has_slept=no 2277 for am_try in 1 2; do 2278 echo "timestamp, slept: $am_has_slept" > conftest.file 2279 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2280 if test "$*" = "X"; then 2281 # -L didn't work. 2282 set X `ls -t "$srcdir/configure" conftest.file` 2283 fi 2284 if test "$*" != "X $srcdir/configure conftest.file" \ 2285 && test "$*" != "X conftest.file $srcdir/configure"; then 2286 2287 # If neither matched, then we have a broken ls. This can happen 2288 # if, for instance, CONFIG_SHELL is bash and it inherits a 2289 # broken ls alias from the environment. This has actually 2290 # happened. Such a system could not be considered "sane". 2291 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2292 alias in your environment" "$LINENO" 5 2293 fi 2294 if test "$2" = conftest.file || test $am_try -eq 2; then 2295 break 2296 fi 2297 # Just in case. 2298 sleep 1 2299 am_has_slept=yes 2300 done 2301 test "$2" = conftest.file 2302 ) 2303then 2304 # Ok. 2305 : 2306else 2307 as_fn_error $? "newly created file is older than distributed files! 2308Check your system clock" "$LINENO" 5 2309fi 2310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2311$as_echo "yes" >&6; } 2312# If we didn't sleep, we still need to ensure time stamps of config.status and 2313# generated files are strictly newer. 2314am_sleep_pid= 2315if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2316 ( sleep 1 ) & 2317 am_sleep_pid=$! 2318fi 2319 2320rm -f conftest.file 2321 2322test "$program_prefix" != NONE && 2323 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2324# Use a double $ so make ignores it. 2325test "$program_suffix" != NONE && 2326 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2327# Double any \ or $. 2328# By default was `s,x,x', remove it if useless. 2329ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2330program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2331 2332# Expand $ac_aux_dir to an absolute path. 2333am_aux_dir=`cd "$ac_aux_dir" && pwd` 2334 2335if test x"${MISSING+set}" != xset; then 2336 case $am_aux_dir in 2337 *\ * | *\ *) 2338 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2339 *) 2340 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2341 esac 2342fi 2343# Use eval to expand $SHELL 2344if eval "$MISSING --is-lightweight"; then 2345 am_missing_run="$MISSING " 2346else 2347 am_missing_run= 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2349$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2350fi 2351 2352if test x"${install_sh+set}" != xset; then 2353 case $am_aux_dir in 2354 *\ * | *\ *) 2355 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2356 *) 2357 install_sh="\${SHELL} $am_aux_dir/install-sh" 2358 esac 2359fi 2360 2361# Installed binaries are usually stripped using 'strip' when the user 2362# run "make install-strip". However 'strip' might not be the right 2363# tool to use in cross-compilation environments, therefore Automake 2364# will honor the 'STRIP' environment variable to overrule this program. 2365if test "$cross_compiling" != no; then 2366 if test -n "$ac_tool_prefix"; then 2367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2368set dummy ${ac_tool_prefix}strip; ac_word=$2 2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2370$as_echo_n "checking for $ac_word... " >&6; } 2371if ${ac_cv_prog_STRIP+:} false; then : 2372 $as_echo_n "(cached) " >&6 2373else 2374 if test -n "$STRIP"; then 2375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2376else 2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2378for as_dir in $PATH 2379do 2380 IFS=$as_save_IFS 2381 test -z "$as_dir" && as_dir=. 2382 for ac_exec_ext in '' $ac_executable_extensions; do 2383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2384 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2386 break 2 2387 fi 2388done 2389 done 2390IFS=$as_save_IFS 2391 2392fi 2393fi 2394STRIP=$ac_cv_prog_STRIP 2395if test -n "$STRIP"; then 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2397$as_echo "$STRIP" >&6; } 2398else 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2400$as_echo "no" >&6; } 2401fi 2402 2403 2404fi 2405if test -z "$ac_cv_prog_STRIP"; then 2406 ac_ct_STRIP=$STRIP 2407 # Extract the first word of "strip", so it can be a program name with args. 2408set dummy strip; ac_word=$2 2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2410$as_echo_n "checking for $ac_word... " >&6; } 2411if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2412 $as_echo_n "(cached) " >&6 2413else 2414 if test -n "$ac_ct_STRIP"; then 2415 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2416else 2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418for as_dir in $PATH 2419do 2420 IFS=$as_save_IFS 2421 test -z "$as_dir" && as_dir=. 2422 for ac_exec_ext in '' $ac_executable_extensions; do 2423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2424 ac_cv_prog_ac_ct_STRIP="strip" 2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2426 break 2 2427 fi 2428done 2429 done 2430IFS=$as_save_IFS 2431 2432fi 2433fi 2434ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2435if test -n "$ac_ct_STRIP"; then 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2437$as_echo "$ac_ct_STRIP" >&6; } 2438else 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2440$as_echo "no" >&6; } 2441fi 2442 2443 if test "x$ac_ct_STRIP" = x; then 2444 STRIP=":" 2445 else 2446 case $cross_compiling:$ac_tool_warned in 2447yes:) 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2450ac_tool_warned=yes ;; 2451esac 2452 STRIP=$ac_ct_STRIP 2453 fi 2454else 2455 STRIP="$ac_cv_prog_STRIP" 2456fi 2457 2458fi 2459INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2460 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2462$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2463if test -z "$MKDIR_P"; then 2464 if ${ac_cv_path_mkdir+:} false; then : 2465 $as_echo_n "(cached) " >&6 2466else 2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2469do 2470 IFS=$as_save_IFS 2471 test -z "$as_dir" && as_dir=. 2472 for ac_prog in mkdir gmkdir; do 2473 for ac_exec_ext in '' $ac_executable_extensions; do 2474 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2475 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2476 'mkdir (GNU coreutils) '* | \ 2477 'mkdir (coreutils) '* | \ 2478 'mkdir (fileutils) '4.1*) 2479 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2480 break 3;; 2481 esac 2482 done 2483 done 2484 done 2485IFS=$as_save_IFS 2486 2487fi 2488 2489 test -d ./--version && rmdir ./--version 2490 if test "${ac_cv_path_mkdir+set}" = set; then 2491 MKDIR_P="$ac_cv_path_mkdir -p" 2492 else 2493 # As a last resort, use the slow shell script. Don't cache a 2494 # value for MKDIR_P within a source directory, because that will 2495 # break other packages using the cache if that directory is 2496 # removed, or if the value is a relative name. 2497 MKDIR_P="$ac_install_sh -d" 2498 fi 2499fi 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2501$as_echo "$MKDIR_P" >&6; } 2502 2503for ac_prog in gawk mawk nawk awk 2504do 2505 # Extract the first word of "$ac_prog", so it can be a program name with args. 2506set dummy $ac_prog; ac_word=$2 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2508$as_echo_n "checking for $ac_word... " >&6; } 2509if ${ac_cv_prog_AWK+:} false; then : 2510 $as_echo_n "(cached) " >&6 2511else 2512 if test -n "$AWK"; then 2513 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2514else 2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2516for as_dir in $PATH 2517do 2518 IFS=$as_save_IFS 2519 test -z "$as_dir" && as_dir=. 2520 for ac_exec_ext in '' $ac_executable_extensions; do 2521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2522 ac_cv_prog_AWK="$ac_prog" 2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2524 break 2 2525 fi 2526done 2527 done 2528IFS=$as_save_IFS 2529 2530fi 2531fi 2532AWK=$ac_cv_prog_AWK 2533if test -n "$AWK"; then 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2535$as_echo "$AWK" >&6; } 2536else 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2538$as_echo "no" >&6; } 2539fi 2540 2541 2542 test -n "$AWK" && break 2543done 2544 2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2546$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2547set x ${MAKE-make} 2548ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2549if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2550 $as_echo_n "(cached) " >&6 2551else 2552 cat >conftest.make <<\_ACEOF 2553SHELL = /bin/sh 2554all: 2555 @echo '@@@%%%=$(MAKE)=@@@%%%' 2556_ACEOF 2557# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2558case `${MAKE-make} -f conftest.make 2>/dev/null` in 2559 *@@@%%%=?*=@@@%%%*) 2560 eval ac_cv_prog_make_${ac_make}_set=yes;; 2561 *) 2562 eval ac_cv_prog_make_${ac_make}_set=no;; 2563esac 2564rm -f conftest.make 2565fi 2566if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2568$as_echo "yes" >&6; } 2569 SET_MAKE= 2570else 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2572$as_echo "no" >&6; } 2573 SET_MAKE="MAKE=${MAKE-make}" 2574fi 2575 2576rm -rf .tst 2>/dev/null 2577mkdir .tst 2>/dev/null 2578if test -d .tst; then 2579 am__leading_dot=. 2580else 2581 am__leading_dot=_ 2582fi 2583rmdir .tst 2>/dev/null 2584 2585# Check whether --enable-silent-rules was given. 2586if test "${enable_silent_rules+set}" = set; then : 2587 enableval=$enable_silent_rules; 2588fi 2589 2590case $enable_silent_rules in # ((( 2591 yes) AM_DEFAULT_VERBOSITY=0;; 2592 no) AM_DEFAULT_VERBOSITY=1;; 2593 *) AM_DEFAULT_VERBOSITY=1;; 2594esac 2595am_make=${MAKE-make} 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2597$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2598if ${am_cv_make_support_nested_variables+:} false; then : 2599 $as_echo_n "(cached) " >&6 2600else 2601 if $as_echo 'TRUE=$(BAR$(V)) 2602BAR0=false 2603BAR1=true 2604V=1 2605am__doit: 2606 @$(TRUE) 2607.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2608 am_cv_make_support_nested_variables=yes 2609else 2610 am_cv_make_support_nested_variables=no 2611fi 2612fi 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2614$as_echo "$am_cv_make_support_nested_variables" >&6; } 2615if test $am_cv_make_support_nested_variables = yes; then 2616 AM_V='$(V)' 2617 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2618else 2619 AM_V=$AM_DEFAULT_VERBOSITY 2620 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2621fi 2622AM_BACKSLASH='\' 2623 2624if test "`cd $srcdir && pwd`" != "`pwd`"; then 2625 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2626 # is not polluted with repeated "-I." 2627 am__isrc=' -I$(srcdir)' 2628 # test to see if srcdir already configured 2629 if test -f $srcdir/config.status; then 2630 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2631 fi 2632fi 2633 2634# test whether we have cygpath 2635if test -z "$CYGPATH_W"; then 2636 if (cygpath --version) >/dev/null 2>/dev/null; then 2637 CYGPATH_W='cygpath -w' 2638 else 2639 CYGPATH_W=echo 2640 fi 2641fi 2642 2643 2644# Define the identity of the package. 2645 PACKAGE='ivykis-test-mt' 2646 VERSION='0.1' 2647 2648 2649cat >>confdefs.h <<_ACEOF 2650#define PACKAGE "$PACKAGE" 2651_ACEOF 2652 2653 2654cat >>confdefs.h <<_ACEOF 2655#define VERSION "$VERSION" 2656_ACEOF 2657 2658# Some tools Automake needs. 2659 2660ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2661 2662 2663AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2664 2665 2666AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2667 2668 2669AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2670 2671 2672MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2673 2674# For better backward compatibility. To be removed once Automake 1.9.x 2675# dies out for good. For more background, see: 2676# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2677# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2678mkdir_p='$(MKDIR_P)' 2679 2680# We need awk for the "check" target (and possibly the TAP driver). The 2681# system "awk" is bad on some platforms. 2682# Always define AMTAR for backward compatibility. Yes, it's still used 2683# in the wild :-( We should find a proper way to deprecate it ... 2684AMTAR='$${TAR-tar}' 2685 2686 2687# We'll loop over all known methods to create a tar archive until one works. 2688_am_tools='gnutar pax cpio none' 2689 2690am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2691 2692 2693 2694 2695 2696 2697# POSIX will say in a future version that running "rm -f" with no argument 2698# is OK; and we want to be able to make that assumption in our Makefile 2699# recipes. So use an aggressive probe to check that the usage we want is 2700# actually supported "in the wild" to an acceptable degree. 2701# See automake bug#10828. 2702# To make any issue more visible, cause the running configure to be aborted 2703# by default if the 'rm' program in use doesn't match our expectations; the 2704# user can still override this though. 2705if rm -f && rm -fr && rm -rf; then : OK; else 2706 cat >&2 <<'END' 2707Oops! 2708 2709Your 'rm' program seems unable to run without file operands specified 2710on the command line, even when the '-f' option is present. This is contrary 2711to the behaviour of most rm programs out there, and not conforming with 2712the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2713 2714Please tell bug-automake@gnu.org about your system, including the value 2715of your $PATH and any error possibly output before this message. This 2716can help us improve future automake versions. 2717 2718END 2719 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2720 echo 'Configuration will proceed anyway, since you have set the' >&2 2721 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2722 echo >&2 2723 else 2724 cat >&2 <<'END' 2725Aborting the configuration process, to ensure you take notice of the issue. 2726 2727You can download and install GNU coreutils to get an 'rm' implementation 2728that behaves properly: <https://www.gnu.org/software/coreutils/>. 2729 2730If you want to complete the configuration process using your problematic 2731'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2732to "yes", and re-run configure. 2733 2734END 2735 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2736 fi 2737fi 2738 2739# Check whether --enable-silent-rules was given. 2740if test "${enable_silent_rules+set}" = set; then : 2741 enableval=$enable_silent_rules; 2742fi 2743 2744case $enable_silent_rules in # ((( 2745 yes) AM_DEFAULT_VERBOSITY=0;; 2746 no) AM_DEFAULT_VERBOSITY=1;; 2747 *) AM_DEFAULT_VERBOSITY=1;; 2748esac 2749am_make=${MAKE-make} 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2751$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2752if ${am_cv_make_support_nested_variables+:} false; then : 2753 $as_echo_n "(cached) " >&6 2754else 2755 if $as_echo 'TRUE=$(BAR$(V)) 2756BAR0=false 2757BAR1=true 2758V=1 2759am__doit: 2760 @$(TRUE) 2761.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2762 am_cv_make_support_nested_variables=yes 2763else 2764 am_cv_make_support_nested_variables=no 2765fi 2766fi 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2768$as_echo "$am_cv_make_support_nested_variables" >&6; } 2769if test $am_cv_make_support_nested_variables = yes; then 2770 AM_V='$(V)' 2771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2772else 2773 AM_V=$AM_DEFAULT_VERBOSITY 2774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2775fi 2776AM_BACKSLASH='\' 2777 2778 2779# 2780# On AIX 7.1, prevent AC_PROG_CC from adding -g to CFLAGS, as that 2781# leads to the following linker error: "The symbol refers to a csect 2782# with symbol number 0, which was not found. The new symbol cannot 2783# be associated with a csect and is being ignored." 2784# 2785# Make sure we can run config.sub. 2786$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2787 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2788 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2790$as_echo_n "checking build system type... " >&6; } 2791if ${ac_cv_build+:} false; then : 2792 $as_echo_n "(cached) " >&6 2793else 2794 ac_build_alias=$build_alias 2795test "x$ac_build_alias" = x && 2796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2797test "x$ac_build_alias" = x && 2798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2799ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2801 2802fi 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2804$as_echo "$ac_cv_build" >&6; } 2805case $ac_cv_build in 2806*-*-*) ;; 2807*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2808esac 2809build=$ac_cv_build 2810ac_save_IFS=$IFS; IFS='-' 2811set x $ac_cv_build 2812shift 2813build_cpu=$1 2814build_vendor=$2 2815shift; shift 2816# Remember, the first character of IFS is used to create $*, 2817# except with old shells: 2818build_os=$* 2819IFS=$ac_save_IFS 2820case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2821 2822 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2824$as_echo_n "checking host system type... " >&6; } 2825if ${ac_cv_host+:} false; then : 2826 $as_echo_n "(cached) " >&6 2827else 2828 if test "x$host_alias" = x; then 2829 ac_cv_host=$ac_cv_build 2830else 2831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2833fi 2834 2835fi 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2837$as_echo "$ac_cv_host" >&6; } 2838case $ac_cv_host in 2839*-*-*) ;; 2840*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2841esac 2842host=$ac_cv_host 2843ac_save_IFS=$IFS; IFS='-' 2844set x $ac_cv_host 2845shift 2846host_cpu=$1 2847host_vendor=$2 2848shift; shift 2849# Remember, the first character of IFS is used to create $*, 2850# except with old shells: 2851host_os=$* 2852IFS=$ac_save_IFS 2853case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2854 2855 2856case $host_os in 2857aix7.*) 2858 ac_cv_prog_cc_g=no 2859 ;; 2860*) 2861 ;; 2862esac 2863 2864# Checks for programs. 2865case `pwd` in 2866 *\ * | *\ *) 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2868$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2869esac 2870 2871 2872 2873macro_version='2.4.6' 2874macro_revision='2.4.6' 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888ltmain=$ac_aux_dir/ltmain.sh 2889 2890# Backslashify metacharacters that are still active within 2891# double-quoted strings. 2892sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2893 2894# Same as above, but do not quote variable references. 2895double_quote_subst='s/\(["`\\]\)/\\\1/g' 2896 2897# Sed substitution to delay expansion of an escaped shell variable in a 2898# double_quote_subst'ed string. 2899delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2900 2901# Sed substitution to delay expansion of an escaped single quote. 2902delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2903 2904# Sed substitution to avoid accidental globbing in evaled expressions 2905no_glob_subst='s/\*/\\\*/g' 2906 2907ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2908ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2909ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2910 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2912$as_echo_n "checking how to print strings... " >&6; } 2913# Test print first, because it will be a builtin if present. 2914if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2915 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2916 ECHO='print -r --' 2917elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2918 ECHO='printf %s\n' 2919else 2920 # Use this function as a fallback that always works. 2921 func_fallback_echo () 2922 { 2923 eval 'cat <<_LTECHO_EOF 2924$1 2925_LTECHO_EOF' 2926 } 2927 ECHO='func_fallback_echo' 2928fi 2929 2930# func_echo_all arg... 2931# Invoke $ECHO with all args, space-separated. 2932func_echo_all () 2933{ 2934 $ECHO "" 2935} 2936 2937case $ECHO in 2938 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2939$as_echo "printf" >&6; } ;; 2940 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2941$as_echo "print -r" >&6; } ;; 2942 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2943$as_echo "cat" >&6; } ;; 2944esac 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959DEPDIR="${am__leading_dot}deps" 2960 2961ac_config_commands="$ac_config_commands depfiles" 2962 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2964$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2965cat > confinc.mk << 'END' 2966am__doit: 2967 @echo this is the am__doit target >confinc.out 2968.PHONY: am__doit 2969END 2970am__include="#" 2971am__quote= 2972# BSD make does it like this. 2973echo '.include "confinc.mk" # ignored' > confmf.BSD 2974# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2975echo 'include confinc.mk # ignored' > confmf.GNU 2976_am_result=no 2977for s in GNU BSD; do 2978 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2979 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2980 ac_status=$? 2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2982 (exit $ac_status); } 2983 case $?:`cat confinc.out 2>/dev/null` in #( 2984 '0:this is the am__doit target') : 2985 case $s in #( 2986 BSD) : 2987 am__include='.include' am__quote='"' ;; #( 2988 *) : 2989 am__include='include' am__quote='' ;; 2990esac ;; #( 2991 *) : 2992 ;; 2993esac 2994 if test "$am__include" != "#"; then 2995 _am_result="yes ($s style)" 2996 break 2997 fi 2998done 2999rm -f confinc.* confmf.* 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3001$as_echo "${_am_result}" >&6; } 3002 3003# Check whether --enable-dependency-tracking was given. 3004if test "${enable_dependency_tracking+set}" = set; then : 3005 enableval=$enable_dependency_tracking; 3006fi 3007 3008if test "x$enable_dependency_tracking" != xno; then 3009 am_depcomp="$ac_aux_dir/depcomp" 3010 AMDEPBACKSLASH='\' 3011 am__nodep='_no' 3012fi 3013 if test "x$enable_dependency_tracking" != xno; then 3014 AMDEP_TRUE= 3015 AMDEP_FALSE='#' 3016else 3017 AMDEP_TRUE='#' 3018 AMDEP_FALSE= 3019fi 3020 3021 3022ac_ext=c 3023ac_cpp='$CPP $CPPFLAGS' 3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3026ac_compiler_gnu=$ac_cv_c_compiler_gnu 3027if test -n "$ac_tool_prefix"; then 3028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3029set dummy ${ac_tool_prefix}gcc; ac_word=$2 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031$as_echo_n "checking for $ac_word... " >&6; } 3032if ${ac_cv_prog_CC+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 if test -n "$CC"; then 3036 ac_cv_prog_CC="$CC" # Let the user override the test. 3037else 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3045 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi 3054fi 3055CC=$ac_cv_prog_CC 3056if test -n "$CC"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3058$as_echo "$CC" >&6; } 3059else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061$as_echo "no" >&6; } 3062fi 3063 3064 3065fi 3066if test -z "$ac_cv_prog_CC"; then 3067 ac_ct_CC=$CC 3068 # Extract the first word of "gcc", so it can be a program name with args. 3069set dummy gcc; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_ac_ct_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$ac_ct_CC"; then 3076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_ac_ct_CC="gcc" 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095ac_ct_CC=$ac_cv_prog_ac_ct_CC 3096if test -n "$ac_ct_CC"; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3098$as_echo "$ac_ct_CC" >&6; } 3099else 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101$as_echo "no" >&6; } 3102fi 3103 3104 if test "x$ac_ct_CC" = x; then 3105 CC="" 3106 else 3107 case $cross_compiling:$ac_tool_warned in 3108yes:) 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3111ac_tool_warned=yes ;; 3112esac 3113 CC=$ac_ct_CC 3114 fi 3115else 3116 CC="$ac_cv_prog_CC" 3117fi 3118 3119if test -z "$CC"; then 3120 if test -n "$ac_tool_prefix"; then 3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3122set dummy ${ac_tool_prefix}cc; ac_word=$2 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124$as_echo_n "checking for $ac_word... " >&6; } 3125if ${ac_cv_prog_CC+:} false; then : 3126 $as_echo_n "(cached) " >&6 3127else 3128 if test -n "$CC"; then 3129 ac_cv_prog_CC="$CC" # Let the user override the test. 3130else 3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3132for as_dir in $PATH 3133do 3134 IFS=$as_save_IFS 3135 test -z "$as_dir" && as_dir=. 3136 for ac_exec_ext in '' $ac_executable_extensions; do 3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3138 ac_cv_prog_CC="${ac_tool_prefix}cc" 3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3140 break 2 3141 fi 3142done 3143 done 3144IFS=$as_save_IFS 3145 3146fi 3147fi 3148CC=$ac_cv_prog_CC 3149if test -n "$CC"; then 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3151$as_echo "$CC" >&6; } 3152else 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154$as_echo "no" >&6; } 3155fi 3156 3157 3158 fi 3159fi 3160if test -z "$CC"; then 3161 # Extract the first word of "cc", so it can be a program name with args. 3162set dummy cc; ac_word=$2 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164$as_echo_n "checking for $ac_word... " >&6; } 3165if ${ac_cv_prog_CC+:} false; then : 3166 $as_echo_n "(cached) " >&6 3167else 3168 if test -n "$CC"; then 3169 ac_cv_prog_CC="$CC" # Let the user override the test. 3170else 3171 ac_prog_rejected=no 3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3173for as_dir in $PATH 3174do 3175 IFS=$as_save_IFS 3176 test -z "$as_dir" && as_dir=. 3177 for ac_exec_ext in '' $ac_executable_extensions; do 3178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3180 ac_prog_rejected=yes 3181 continue 3182 fi 3183 ac_cv_prog_CC="cc" 3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3185 break 2 3186 fi 3187done 3188 done 3189IFS=$as_save_IFS 3190 3191if test $ac_prog_rejected = yes; then 3192 # We found a bogon in the path, so make sure we never use it. 3193 set dummy $ac_cv_prog_CC 3194 shift 3195 if test $# != 0; then 3196 # We chose a different compiler from the bogus one. 3197 # However, it has the same basename, so the bogon will be chosen 3198 # first if we set CC to just the basename; use the full file name. 3199 shift 3200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3201 fi 3202fi 3203fi 3204fi 3205CC=$ac_cv_prog_CC 3206if test -n "$CC"; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3208$as_echo "$CC" >&6; } 3209else 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3211$as_echo "no" >&6; } 3212fi 3213 3214 3215fi 3216if test -z "$CC"; then 3217 if test -n "$ac_tool_prefix"; then 3218 for ac_prog in cl.exe 3219 do 3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3221set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223$as_echo_n "checking for $ac_word... " >&6; } 3224if ${ac_cv_prog_CC+:} false; then : 3225 $as_echo_n "(cached) " >&6 3226else 3227 if test -n "$CC"; then 3228 ac_cv_prog_CC="$CC" # Let the user override the test. 3229else 3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231for as_dir in $PATH 3232do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3239 break 2 3240 fi 3241done 3242 done 3243IFS=$as_save_IFS 3244 3245fi 3246fi 3247CC=$ac_cv_prog_CC 3248if test -n "$CC"; then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3250$as_echo "$CC" >&6; } 3251else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253$as_echo "no" >&6; } 3254fi 3255 3256 3257 test -n "$CC" && break 3258 done 3259fi 3260if test -z "$CC"; then 3261 ac_ct_CC=$CC 3262 for ac_prog in cl.exe 3263do 3264 # Extract the first word of "$ac_prog", so it can be a program name with args. 3265set dummy $ac_prog; ac_word=$2 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267$as_echo_n "checking for $ac_word... " >&6; } 3268if ${ac_cv_prog_ac_ct_CC+:} false; then : 3269 $as_echo_n "(cached) " >&6 3270else 3271 if test -n "$ac_ct_CC"; then 3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3273else 3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3275for as_dir in $PATH 3276do 3277 IFS=$as_save_IFS 3278 test -z "$as_dir" && as_dir=. 3279 for ac_exec_ext in '' $ac_executable_extensions; do 3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3281 ac_cv_prog_ac_ct_CC="$ac_prog" 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285done 3286 done 3287IFS=$as_save_IFS 3288 3289fi 3290fi 3291ac_ct_CC=$ac_cv_prog_ac_ct_CC 3292if test -n "$ac_ct_CC"; then 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3294$as_echo "$ac_ct_CC" >&6; } 3295else 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297$as_echo "no" >&6; } 3298fi 3299 3300 3301 test -n "$ac_ct_CC" && break 3302done 3303 3304 if test "x$ac_ct_CC" = x; then 3305 CC="" 3306 else 3307 case $cross_compiling:$ac_tool_warned in 3308yes:) 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3311ac_tool_warned=yes ;; 3312esac 3313 CC=$ac_ct_CC 3314 fi 3315fi 3316 3317fi 3318 3319 3320test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3322as_fn_error $? "no acceptable C compiler found in \$PATH 3323See \`config.log' for more details" "$LINENO" 5; } 3324 3325# Provide some information about the compiler. 3326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3327set X $ac_compile 3328ac_compiler=$2 3329for ac_option in --version -v -V -qversion; do 3330 { { ac_try="$ac_compiler $ac_option >&5" 3331case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334esac 3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3336$as_echo "$ac_try_echo"; } >&5 3337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3338 ac_status=$? 3339 if test -s conftest.err; then 3340 sed '10a\ 3341... rest of stderr output deleted ... 3342 10q' conftest.err >conftest.er1 3343 cat conftest.er1 >&5 3344 fi 3345 rm -f conftest.er1 conftest.err 3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3347 test $ac_status = 0; } 3348done 3349 3350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3351/* end confdefs.h. */ 3352 3353int 3354main () 3355{ 3356 3357 ; 3358 return 0; 3359} 3360_ACEOF 3361ac_clean_files_save=$ac_clean_files 3362ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3363# Try to create an executable without -o first, disregard a.out. 3364# It will help us diagnose broken compilers, and finding out an intuition 3365# of exeext. 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3367$as_echo_n "checking whether the C compiler works... " >&6; } 3368ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3369 3370# The possible output files: 3371ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3372 3373ac_rmfiles= 3374for ac_file in $ac_files 3375do 3376 case $ac_file in 3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3378 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3379 esac 3380done 3381rm -f $ac_rmfiles 3382 3383if { { ac_try="$ac_link_default" 3384case "(($ac_try" in 3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3386 *) ac_try_echo=$ac_try;; 3387esac 3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3389$as_echo "$ac_try_echo"; } >&5 3390 (eval "$ac_link_default") 2>&5 3391 ac_status=$? 3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3393 test $ac_status = 0; }; then : 3394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3395# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3396# in a Makefile. We should not override ac_cv_exeext if it was cached, 3397# so that the user can short-circuit this test for compilers unknown to 3398# Autoconf. 3399for ac_file in $ac_files '' 3400do 3401 test -f "$ac_file" || continue 3402 case $ac_file in 3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3404 ;; 3405 [ab].out ) 3406 # We found the default executable, but exeext='' is most 3407 # certainly right. 3408 break;; 3409 *.* ) 3410 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3411 then :; else 3412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3413 fi 3414 # We set ac_cv_exeext here because the later test for it is not 3415 # safe: cross compilers may not add the suffix if given an `-o' 3416 # argument, so we may need to know it at that point already. 3417 # Even if this section looks crufty: it has the advantage of 3418 # actually working. 3419 break;; 3420 * ) 3421 break;; 3422 esac 3423done 3424test "$ac_cv_exeext" = no && ac_cv_exeext= 3425 3426else 3427 ac_file='' 3428fi 3429if test -z "$ac_file"; then : 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3431$as_echo "no" >&6; } 3432$as_echo "$as_me: failed program was:" >&5 3433sed 's/^/| /' conftest.$ac_ext >&5 3434 3435{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437as_fn_error 77 "C compiler cannot create executables 3438See \`config.log' for more details" "$LINENO" 5; } 3439else 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3441$as_echo "yes" >&6; } 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3444$as_echo_n "checking for C compiler default output file name... " >&6; } 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3446$as_echo "$ac_file" >&6; } 3447ac_exeext=$ac_cv_exeext 3448 3449rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3450ac_clean_files=$ac_clean_files_save 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3452$as_echo_n "checking for suffix of executables... " >&6; } 3453if { { ac_try="$ac_link" 3454case "(($ac_try" in 3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3456 *) ac_try_echo=$ac_try;; 3457esac 3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3459$as_echo "$ac_try_echo"; } >&5 3460 (eval "$ac_link") 2>&5 3461 ac_status=$? 3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3463 test $ac_status = 0; }; then : 3464 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3465# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3466# work properly (i.e., refer to `conftest.exe'), while it won't with 3467# `rm'. 3468for ac_file in conftest.exe conftest conftest.*; do 3469 test -f "$ac_file" || continue 3470 case $ac_file in 3471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3473 break;; 3474 * ) break;; 3475 esac 3476done 3477else 3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3480as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3481See \`config.log' for more details" "$LINENO" 5; } 3482fi 3483rm -f conftest conftest$ac_cv_exeext 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3485$as_echo "$ac_cv_exeext" >&6; } 3486 3487rm -f conftest.$ac_ext 3488EXEEXT=$ac_cv_exeext 3489ac_exeext=$EXEEXT 3490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492#include <stdio.h> 3493int 3494main () 3495{ 3496FILE *f = fopen ("conftest.out", "w"); 3497 return ferror (f) || fclose (f) != 0; 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503ac_clean_files="$ac_clean_files conftest.out" 3504# Check that the compiler produces executables we can run. If not, either 3505# the compiler is broken, or we cross compile. 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3507$as_echo_n "checking whether we are cross compiling... " >&6; } 3508if test "$cross_compiling" != yes; then 3509 { { ac_try="$ac_link" 3510case "(($ac_try" in 3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3512 *) ac_try_echo=$ac_try;; 3513esac 3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3515$as_echo "$ac_try_echo"; } >&5 3516 (eval "$ac_link") 2>&5 3517 ac_status=$? 3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3519 test $ac_status = 0; } 3520 if { ac_try='./conftest$ac_cv_exeext' 3521 { { case "(($ac_try" in 3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3523 *) ac_try_echo=$ac_try;; 3524esac 3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3526$as_echo "$ac_try_echo"; } >&5 3527 (eval "$ac_try") 2>&5 3528 ac_status=$? 3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3530 test $ac_status = 0; }; }; then 3531 cross_compiling=no 3532 else 3533 if test "$cross_compiling" = maybe; then 3534 cross_compiling=yes 3535 else 3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3538as_fn_error $? "cannot run C compiled programs. 3539If you meant to cross compile, use \`--host'. 3540See \`config.log' for more details" "$LINENO" 5; } 3541 fi 3542 fi 3543fi 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3545$as_echo "$cross_compiling" >&6; } 3546 3547rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3548ac_clean_files=$ac_clean_files_save 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3550$as_echo_n "checking for suffix of object files... " >&6; } 3551if ${ac_cv_objext+:} false; then : 3552 $as_echo_n "(cached) " >&6 3553else 3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3555/* end confdefs.h. */ 3556 3557int 3558main () 3559{ 3560 3561 ; 3562 return 0; 3563} 3564_ACEOF 3565rm -f conftest.o conftest.obj 3566if { { ac_try="$ac_compile" 3567case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572$as_echo "$ac_try_echo"; } >&5 3573 (eval "$ac_compile") 2>&5 3574 ac_status=$? 3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3576 test $ac_status = 0; }; then : 3577 for ac_file in conftest.o conftest.obj conftest.*; do 3578 test -f "$ac_file" || continue; 3579 case $ac_file in 3580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3581 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3582 break;; 3583 esac 3584done 3585else 3586 $as_echo "$as_me: failed program was:" >&5 3587sed 's/^/| /' conftest.$ac_ext >&5 3588 3589{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3591as_fn_error $? "cannot compute suffix of object files: cannot compile 3592See \`config.log' for more details" "$LINENO" 5; } 3593fi 3594rm -f conftest.$ac_cv_objext conftest.$ac_ext 3595fi 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3597$as_echo "$ac_cv_objext" >&6; } 3598OBJEXT=$ac_cv_objext 3599ac_objext=$OBJEXT 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3601$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3602if ${ac_cv_c_compiler_gnu+:} false; then : 3603 $as_echo_n "(cached) " >&6 3604else 3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3606/* end confdefs.h. */ 3607 3608int 3609main () 3610{ 3611#ifndef __GNUC__ 3612 choke me 3613#endif 3614 3615 ; 3616 return 0; 3617} 3618_ACEOF 3619if ac_fn_c_try_compile "$LINENO"; then : 3620 ac_compiler_gnu=yes 3621else 3622 ac_compiler_gnu=no 3623fi 3624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3625ac_cv_c_compiler_gnu=$ac_compiler_gnu 3626 3627fi 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3629$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3630if test $ac_compiler_gnu = yes; then 3631 GCC=yes 3632else 3633 GCC= 3634fi 3635ac_test_CFLAGS=${CFLAGS+set} 3636ac_save_CFLAGS=$CFLAGS 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3638$as_echo_n "checking whether $CC accepts -g... " >&6; } 3639if ${ac_cv_prog_cc_g+:} false; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 ac_save_c_werror_flag=$ac_c_werror_flag 3643 ac_c_werror_flag=yes 3644 ac_cv_prog_cc_g=no 3645 CFLAGS="-g" 3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3647/* end confdefs.h. */ 3648 3649int 3650main () 3651{ 3652 3653 ; 3654 return 0; 3655} 3656_ACEOF 3657if ac_fn_c_try_compile "$LINENO"; then : 3658 ac_cv_prog_cc_g=yes 3659else 3660 CFLAGS="" 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663 3664int 3665main () 3666{ 3667 3668 ; 3669 return 0; 3670} 3671_ACEOF 3672if ac_fn_c_try_compile "$LINENO"; then : 3673 3674else 3675 ac_c_werror_flag=$ac_save_c_werror_flag 3676 CFLAGS="-g" 3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679 3680int 3681main () 3682{ 3683 3684 ; 3685 return 0; 3686} 3687_ACEOF 3688if ac_fn_c_try_compile "$LINENO"; then : 3689 ac_cv_prog_cc_g=yes 3690fi 3691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3692fi 3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3694fi 3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3696 ac_c_werror_flag=$ac_save_c_werror_flag 3697fi 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3699$as_echo "$ac_cv_prog_cc_g" >&6; } 3700if test "$ac_test_CFLAGS" = set; then 3701 CFLAGS=$ac_save_CFLAGS 3702elif test $ac_cv_prog_cc_g = yes; then 3703 if test "$GCC" = yes; then 3704 CFLAGS="-g -O2" 3705 else 3706 CFLAGS="-g" 3707 fi 3708else 3709 if test "$GCC" = yes; then 3710 CFLAGS="-O2" 3711 else 3712 CFLAGS= 3713 fi 3714fi 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3716$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3717if ${ac_cv_prog_cc_c89+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 ac_cv_prog_cc_c89=no 3721ac_save_CC=$CC 3722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3723/* end confdefs.h. */ 3724#include <stdarg.h> 3725#include <stdio.h> 3726struct stat; 3727/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3728struct buf { int x; }; 3729FILE * (*rcsopen) (struct buf *, struct stat *, int); 3730static char *e (p, i) 3731 char **p; 3732 int i; 3733{ 3734 return p[i]; 3735} 3736static char *f (char * (*g) (char **, int), char **p, ...) 3737{ 3738 char *s; 3739 va_list v; 3740 va_start (v,p); 3741 s = g (p, va_arg (v,int)); 3742 va_end (v); 3743 return s; 3744} 3745 3746/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3747 function prototypes and stuff, but not '\xHH' hex character constants. 3748 These don't provoke an error unfortunately, instead are silently treated 3749 as 'x'. The following induces an error, until -std is added to get 3750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3751 array size at least. It's necessary to write '\x00'==0 to get something 3752 that's true only with -std. */ 3753int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3754 3755/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3756 inside strings and character constants. */ 3757#define FOO(x) 'x' 3758int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3759 3760int test (int i, double x); 3761struct s1 {int (*f) (int a);}; 3762struct s2 {int (*f) (double a);}; 3763int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3764int argc; 3765char **argv; 3766int 3767main () 3768{ 3769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3770 ; 3771 return 0; 3772} 3773_ACEOF 3774for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3775 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3776do 3777 CC="$ac_save_CC $ac_arg" 3778 if ac_fn_c_try_compile "$LINENO"; then : 3779 ac_cv_prog_cc_c89=$ac_arg 3780fi 3781rm -f core conftest.err conftest.$ac_objext 3782 test "x$ac_cv_prog_cc_c89" != "xno" && break 3783done 3784rm -f conftest.$ac_ext 3785CC=$ac_save_CC 3786 3787fi 3788# AC_CACHE_VAL 3789case "x$ac_cv_prog_cc_c89" in 3790 x) 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3792$as_echo "none needed" >&6; } ;; 3793 xno) 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3795$as_echo "unsupported" >&6; } ;; 3796 *) 3797 CC="$CC $ac_cv_prog_cc_c89" 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3799$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3800esac 3801if test "x$ac_cv_prog_cc_c89" != xno; then : 3802 3803fi 3804 3805ac_ext=c 3806ac_cpp='$CPP $CPPFLAGS' 3807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3809ac_compiler_gnu=$ac_cv_c_compiler_gnu 3810 3811ac_ext=c 3812ac_cpp='$CPP $CPPFLAGS' 3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3815ac_compiler_gnu=$ac_cv_c_compiler_gnu 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3817$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3818if ${am_cv_prog_cc_c_o+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822/* end confdefs.h. */ 3823 3824int 3825main () 3826{ 3827 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832 # Make sure it works both with $CC and with simple cc. 3833 # Following AC_PROG_CC_C_O, we do the test twice because some 3834 # compilers refuse to overwrite an existing .o file with -o, 3835 # though they will create one. 3836 am_cv_prog_cc_c_o=yes 3837 for am_i in 1 2; do 3838 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3839 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3840 ac_status=$? 3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3842 (exit $ac_status); } \ 3843 && test -f conftest2.$ac_objext; then 3844 : OK 3845 else 3846 am_cv_prog_cc_c_o=no 3847 break 3848 fi 3849 done 3850 rm -f core conftest* 3851 unset am_i 3852fi 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3854$as_echo "$am_cv_prog_cc_c_o" >&6; } 3855if test "$am_cv_prog_cc_c_o" != yes; then 3856 # Losing compiler, so override with the script. 3857 # FIXME: It is wrong to rewrite CC. 3858 # But if we don't then we get into trouble of one sort or another. 3859 # A longer-term fix would be to have automake use am__CC in this case, 3860 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3861 CC="$am_aux_dir/compile $CC" 3862fi 3863ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868 3869 3870depcc="$CC" am_compiler_list= 3871 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3873$as_echo_n "checking dependency style of $depcc... " >&6; } 3874if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3875 $as_echo_n "(cached) " >&6 3876else 3877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3878 # We make a subdir and do the tests there. Otherwise we can end up 3879 # making bogus files that we don't know about and never remove. For 3880 # instance it was reported that on HP-UX the gcc test will end up 3881 # making a dummy file named 'D' -- because '-MD' means "put the output 3882 # in D". 3883 rm -rf conftest.dir 3884 mkdir conftest.dir 3885 # Copy depcomp to subdir because otherwise we won't find it if we're 3886 # using a relative directory. 3887 cp "$am_depcomp" conftest.dir 3888 cd conftest.dir 3889 # We will build objects and dependencies in a subdirectory because 3890 # it helps to detect inapplicable dependency modes. For instance 3891 # both Tru64's cc and ICC support -MD to output dependencies as a 3892 # side effect of compilation, but ICC will put the dependencies in 3893 # the current directory while Tru64 will put them in the object 3894 # directory. 3895 mkdir sub 3896 3897 am_cv_CC_dependencies_compiler_type=none 3898 if test "$am_compiler_list" = ""; then 3899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3900 fi 3901 am__universal=false 3902 case " $depcc " in #( 3903 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3904 esac 3905 3906 for depmode in $am_compiler_list; do 3907 # Setup a source with many dependencies, because some compilers 3908 # like to wrap large dependency lists on column 80 (with \), and 3909 # we should not choose a depcomp mode which is confused by this. 3910 # 3911 # We need to recreate these files for each test, as the compiler may 3912 # overwrite some of them when testing with obscure command lines. 3913 # This happens at least with the AIX C compiler. 3914 : > sub/conftest.c 3915 for i in 1 2 3 4 5 6; do 3916 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3917 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3918 # Solaris 10 /bin/sh. 3919 echo '/* dummy */' > sub/conftst$i.h 3920 done 3921 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3922 3923 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3924 # mode. It turns out that the SunPro C++ compiler does not properly 3925 # handle '-M -o', and we need to detect this. Also, some Intel 3926 # versions had trouble with output in subdirs. 3927 am__obj=sub/conftest.${OBJEXT-o} 3928 am__minus_obj="-o $am__obj" 3929 case $depmode in 3930 gcc) 3931 # This depmode causes a compiler race in universal mode. 3932 test "$am__universal" = false || continue 3933 ;; 3934 nosideeffect) 3935 # After this tag, mechanisms are not by side-effect, so they'll 3936 # only be used when explicitly requested. 3937 if test "x$enable_dependency_tracking" = xyes; then 3938 continue 3939 else 3940 break 3941 fi 3942 ;; 3943 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3944 # This compiler won't grok '-c -o', but also, the minuso test has 3945 # not run yet. These depmodes are late enough in the game, and 3946 # so weak that their functioning should not be impacted. 3947 am__obj=conftest.${OBJEXT-o} 3948 am__minus_obj= 3949 ;; 3950 none) break ;; 3951 esac 3952 if depmode=$depmode \ 3953 source=sub/conftest.c object=$am__obj \ 3954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3955 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3956 >/dev/null 2>conftest.err && 3957 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3958 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3959 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3960 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3961 # icc doesn't choke on unknown options, it will just issue warnings 3962 # or remarks (even with -Werror). So we grep stderr for any message 3963 # that says an option was ignored or not supported. 3964 # When given -MP, icc 7.0 and 7.1 complain thusly: 3965 # icc: Command line warning: ignoring option '-M'; no argument required 3966 # The diagnosis changed in icc 8.0: 3967 # icc: Command line remark: option '-MP' not supported 3968 if (grep 'ignoring option' conftest.err || 3969 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3970 am_cv_CC_dependencies_compiler_type=$depmode 3971 break 3972 fi 3973 fi 3974 done 3975 3976 cd .. 3977 rm -rf conftest.dir 3978else 3979 am_cv_CC_dependencies_compiler_type=none 3980fi 3981 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3984$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3985CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3986 3987 if 3988 test "x$enable_dependency_tracking" != xno \ 3989 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3990 am__fastdepCC_TRUE= 3991 am__fastdepCC_FALSE='#' 3992else 3993 am__fastdepCC_TRUE='#' 3994 am__fastdepCC_FALSE= 3995fi 3996 3997 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3999$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4000if ${ac_cv_path_SED+:} false; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4004 for ac_i in 1 2 3 4 5 6 7; do 4005 ac_script="$ac_script$as_nl$ac_script" 4006 done 4007 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4008 { ac_script=; unset ac_script;} 4009 if test -z "$SED"; then 4010 ac_path_SED_found=false 4011 # Loop through the user's path and test for each of PROGNAME-LIST 4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4013for as_dir in $PATH 4014do 4015 IFS=$as_save_IFS 4016 test -z "$as_dir" && as_dir=. 4017 for ac_prog in sed gsed; do 4018 for ac_exec_ext in '' $ac_executable_extensions; do 4019 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4020 as_fn_executable_p "$ac_path_SED" || continue 4021# Check for GNU ac_path_SED and select it if it is found. 4022 # Check for GNU $ac_path_SED 4023case `"$ac_path_SED" --version 2>&1` in 4024*GNU*) 4025 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4026*) 4027 ac_count=0 4028 $as_echo_n 0123456789 >"conftest.in" 4029 while : 4030 do 4031 cat "conftest.in" "conftest.in" >"conftest.tmp" 4032 mv "conftest.tmp" "conftest.in" 4033 cp "conftest.in" "conftest.nl" 4034 $as_echo '' >> "conftest.nl" 4035 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4037 as_fn_arith $ac_count + 1 && ac_count=$as_val 4038 if test $ac_count -gt ${ac_path_SED_max-0}; then 4039 # Best one so far, save it but keep looking for a better one 4040 ac_cv_path_SED="$ac_path_SED" 4041 ac_path_SED_max=$ac_count 4042 fi 4043 # 10*(2^10) chars as input seems more than enough 4044 test $ac_count -gt 10 && break 4045 done 4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4047esac 4048 4049 $ac_path_SED_found && break 3 4050 done 4051 done 4052 done 4053IFS=$as_save_IFS 4054 if test -z "$ac_cv_path_SED"; then 4055 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4056 fi 4057else 4058 ac_cv_path_SED=$SED 4059fi 4060 4061fi 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4063$as_echo "$ac_cv_path_SED" >&6; } 4064 SED="$ac_cv_path_SED" 4065 rm -f conftest.sed 4066 4067test -z "$SED" && SED=sed 4068Xsed="$SED -e 1s/^X//" 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4081$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4082if ${ac_cv_path_GREP+:} false; then : 4083 $as_echo_n "(cached) " >&6 4084else 4085 if test -z "$GREP"; then 4086 ac_path_GREP_found=false 4087 # Loop through the user's path and test for each of PROGNAME-LIST 4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4090do 4091 IFS=$as_save_IFS 4092 test -z "$as_dir" && as_dir=. 4093 for ac_prog in grep ggrep; do 4094 for ac_exec_ext in '' $ac_executable_extensions; do 4095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4096 as_fn_executable_p "$ac_path_GREP" || continue 4097# Check for GNU ac_path_GREP and select it if it is found. 4098 # Check for GNU $ac_path_GREP 4099case `"$ac_path_GREP" --version 2>&1` in 4100*GNU*) 4101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4102*) 4103 ac_count=0 4104 $as_echo_n 0123456789 >"conftest.in" 4105 while : 4106 do 4107 cat "conftest.in" "conftest.in" >"conftest.tmp" 4108 mv "conftest.tmp" "conftest.in" 4109 cp "conftest.in" "conftest.nl" 4110 $as_echo 'GREP' >> "conftest.nl" 4111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4113 as_fn_arith $ac_count + 1 && ac_count=$as_val 4114 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4115 # Best one so far, save it but keep looking for a better one 4116 ac_cv_path_GREP="$ac_path_GREP" 4117 ac_path_GREP_max=$ac_count 4118 fi 4119 # 10*(2^10) chars as input seems more than enough 4120 test $ac_count -gt 10 && break 4121 done 4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4123esac 4124 4125 $ac_path_GREP_found && break 3 4126 done 4127 done 4128 done 4129IFS=$as_save_IFS 4130 if test -z "$ac_cv_path_GREP"; then 4131 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4132 fi 4133else 4134 ac_cv_path_GREP=$GREP 4135fi 4136 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4139$as_echo "$ac_cv_path_GREP" >&6; } 4140 GREP="$ac_cv_path_GREP" 4141 4142 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4144$as_echo_n "checking for egrep... " >&6; } 4145if ${ac_cv_path_EGREP+:} false; then : 4146 $as_echo_n "(cached) " >&6 4147else 4148 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4149 then ac_cv_path_EGREP="$GREP -E" 4150 else 4151 if test -z "$EGREP"; then 4152 ac_path_EGREP_found=false 4153 # Loop through the user's path and test for each of PROGNAME-LIST 4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4155for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4156do 4157 IFS=$as_save_IFS 4158 test -z "$as_dir" && as_dir=. 4159 for ac_prog in egrep; do 4160 for ac_exec_ext in '' $ac_executable_extensions; do 4161 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4162 as_fn_executable_p "$ac_path_EGREP" || continue 4163# Check for GNU ac_path_EGREP and select it if it is found. 4164 # Check for GNU $ac_path_EGREP 4165case `"$ac_path_EGREP" --version 2>&1` in 4166*GNU*) 4167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4168*) 4169 ac_count=0 4170 $as_echo_n 0123456789 >"conftest.in" 4171 while : 4172 do 4173 cat "conftest.in" "conftest.in" >"conftest.tmp" 4174 mv "conftest.tmp" "conftest.in" 4175 cp "conftest.in" "conftest.nl" 4176 $as_echo 'EGREP' >> "conftest.nl" 4177 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4179 as_fn_arith $ac_count + 1 && ac_count=$as_val 4180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4181 # Best one so far, save it but keep looking for a better one 4182 ac_cv_path_EGREP="$ac_path_EGREP" 4183 ac_path_EGREP_max=$ac_count 4184 fi 4185 # 10*(2^10) chars as input seems more than enough 4186 test $ac_count -gt 10 && break 4187 done 4188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4189esac 4190 4191 $ac_path_EGREP_found && break 3 4192 done 4193 done 4194 done 4195IFS=$as_save_IFS 4196 if test -z "$ac_cv_path_EGREP"; then 4197 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4198 fi 4199else 4200 ac_cv_path_EGREP=$EGREP 4201fi 4202 4203 fi 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4206$as_echo "$ac_cv_path_EGREP" >&6; } 4207 EGREP="$ac_cv_path_EGREP" 4208 4209 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4211$as_echo_n "checking for fgrep... " >&6; } 4212if ${ac_cv_path_FGREP+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214else 4215 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4216 then ac_cv_path_FGREP="$GREP -F" 4217 else 4218 if test -z "$FGREP"; then 4219 ac_path_FGREP_found=false 4220 # Loop through the user's path and test for each of PROGNAME-LIST 4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4223do 4224 IFS=$as_save_IFS 4225 test -z "$as_dir" && as_dir=. 4226 for ac_prog in fgrep; do 4227 for ac_exec_ext in '' $ac_executable_extensions; do 4228 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4229 as_fn_executable_p "$ac_path_FGREP" || continue 4230# Check for GNU ac_path_FGREP and select it if it is found. 4231 # Check for GNU $ac_path_FGREP 4232case `"$ac_path_FGREP" --version 2>&1` in 4233*GNU*) 4234 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4235*) 4236 ac_count=0 4237 $as_echo_n 0123456789 >"conftest.in" 4238 while : 4239 do 4240 cat "conftest.in" "conftest.in" >"conftest.tmp" 4241 mv "conftest.tmp" "conftest.in" 4242 cp "conftest.in" "conftest.nl" 4243 $as_echo 'FGREP' >> "conftest.nl" 4244 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4246 as_fn_arith $ac_count + 1 && ac_count=$as_val 4247 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4248 # Best one so far, save it but keep looking for a better one 4249 ac_cv_path_FGREP="$ac_path_FGREP" 4250 ac_path_FGREP_max=$ac_count 4251 fi 4252 # 10*(2^10) chars as input seems more than enough 4253 test $ac_count -gt 10 && break 4254 done 4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4256esac 4257 4258 $ac_path_FGREP_found && break 3 4259 done 4260 done 4261 done 4262IFS=$as_save_IFS 4263 if test -z "$ac_cv_path_FGREP"; then 4264 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4265 fi 4266else 4267 ac_cv_path_FGREP=$FGREP 4268fi 4269 4270 fi 4271fi 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4273$as_echo "$ac_cv_path_FGREP" >&6; } 4274 FGREP="$ac_cv_path_FGREP" 4275 4276 4277test -z "$GREP" && GREP=grep 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297# Check whether --with-gnu-ld was given. 4298if test "${with_gnu_ld+set}" = set; then : 4299 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4300else 4301 with_gnu_ld=no 4302fi 4303 4304ac_prog=ld 4305if test yes = "$GCC"; then 4306 # Check if gcc -print-prog-name=ld gives a path. 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4308$as_echo_n "checking for ld used by $CC... " >&6; } 4309 case $host in 4310 *-*-mingw*) 4311 # gcc leaves a trailing carriage return, which upsets mingw 4312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4313 *) 4314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4315 esac 4316 case $ac_prog in 4317 # Accept absolute paths. 4318 [\\/]* | ?:[\\/]*) 4319 re_direlt='/[^/][^/]*/\.\./' 4320 # Canonicalize the pathname of ld 4321 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4322 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4323 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4324 done 4325 test -z "$LD" && LD=$ac_prog 4326 ;; 4327 "") 4328 # If it fails, then pretend we aren't using GCC. 4329 ac_prog=ld 4330 ;; 4331 *) 4332 # If it is relative, then search for the first ld in PATH. 4333 with_gnu_ld=unknown 4334 ;; 4335 esac 4336elif test yes = "$with_gnu_ld"; then 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4338$as_echo_n "checking for GNU ld... " >&6; } 4339else 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4341$as_echo_n "checking for non-GNU ld... " >&6; } 4342fi 4343if ${lt_cv_path_LD+:} false; then : 4344 $as_echo_n "(cached) " >&6 4345else 4346 if test -z "$LD"; then 4347 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4348 for ac_dir in $PATH; do 4349 IFS=$lt_save_ifs 4350 test -z "$ac_dir" && ac_dir=. 4351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4352 lt_cv_path_LD=$ac_dir/$ac_prog 4353 # Check to see if the program is GNU ld. I'd rather use --version, 4354 # but apparently some variants of GNU ld only accept -v. 4355 # Break only if it was the GNU/non-GNU ld that we prefer. 4356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4357 *GNU* | *'with BFD'*) 4358 test no != "$with_gnu_ld" && break 4359 ;; 4360 *) 4361 test yes != "$with_gnu_ld" && break 4362 ;; 4363 esac 4364 fi 4365 done 4366 IFS=$lt_save_ifs 4367else 4368 lt_cv_path_LD=$LD # Let the user override the test with a path. 4369fi 4370fi 4371 4372LD=$lt_cv_path_LD 4373if test -n "$LD"; then 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4375$as_echo "$LD" >&6; } 4376else 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4378$as_echo "no" >&6; } 4379fi 4380test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4382$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4383if ${lt_cv_prog_gnu_ld+:} false; then : 4384 $as_echo_n "(cached) " >&6 4385else 4386 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4387case `$LD -v 2>&1 </dev/null` in 4388*GNU* | *'with BFD'*) 4389 lt_cv_prog_gnu_ld=yes 4390 ;; 4391*) 4392 lt_cv_prog_gnu_ld=no 4393 ;; 4394esac 4395fi 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4397$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4398with_gnu_ld=$lt_cv_prog_gnu_ld 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4409$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4410if ${lt_cv_path_NM+:} false; then : 4411 $as_echo_n "(cached) " >&6 4412else 4413 if test -n "$NM"; then 4414 # Let the user override the test. 4415 lt_cv_path_NM=$NM 4416else 4417 lt_nm_to_check=${ac_tool_prefix}nm 4418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4419 lt_nm_to_check="$lt_nm_to_check nm" 4420 fi 4421 for lt_tmp_nm in $lt_nm_to_check; do 4422 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4424 IFS=$lt_save_ifs 4425 test -z "$ac_dir" && ac_dir=. 4426 tmp_nm=$ac_dir/$lt_tmp_nm 4427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4428 # Check to see if the nm accepts a BSD-compat flag. 4429 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4430 # nm: unknown option "B" ignored 4431 # Tru64's nm complains that /dev/null is an invalid object file 4432 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4433 case $build_os in 4434 mingw*) lt_bad_file=conftest.nm/nofile ;; 4435 *) lt_bad_file=/dev/null ;; 4436 esac 4437 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4438 *$lt_bad_file* | *'Invalid file or object type'*) 4439 lt_cv_path_NM="$tmp_nm -B" 4440 break 2 4441 ;; 4442 *) 4443 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4444 */dev/null*) 4445 lt_cv_path_NM="$tmp_nm -p" 4446 break 2 4447 ;; 4448 *) 4449 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4450 continue # so that we can try to find one that supports BSD flags 4451 ;; 4452 esac 4453 ;; 4454 esac 4455 fi 4456 done 4457 IFS=$lt_save_ifs 4458 done 4459 : ${lt_cv_path_NM=no} 4460fi 4461fi 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4463$as_echo "$lt_cv_path_NM" >&6; } 4464if test no != "$lt_cv_path_NM"; then 4465 NM=$lt_cv_path_NM 4466else 4467 # Didn't find any BSD compatible name lister, look for dumpbin. 4468 if test -n "$DUMPBIN"; then : 4469 # Let the user override the test. 4470 else 4471 if test -n "$ac_tool_prefix"; then 4472 for ac_prog in dumpbin "link -dump" 4473 do 4474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4475set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4477$as_echo_n "checking for $ac_word... " >&6; } 4478if ${ac_cv_prog_DUMPBIN+:} false; then : 4479 $as_echo_n "(cached) " >&6 4480else 4481 if test -n "$DUMPBIN"; then 4482 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4483else 4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4485for as_dir in $PATH 4486do 4487 IFS=$as_save_IFS 4488 test -z "$as_dir" && as_dir=. 4489 for ac_exec_ext in '' $ac_executable_extensions; do 4490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4491 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4493 break 2 4494 fi 4495done 4496 done 4497IFS=$as_save_IFS 4498 4499fi 4500fi 4501DUMPBIN=$ac_cv_prog_DUMPBIN 4502if test -n "$DUMPBIN"; then 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4504$as_echo "$DUMPBIN" >&6; } 4505else 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4507$as_echo "no" >&6; } 4508fi 4509 4510 4511 test -n "$DUMPBIN" && break 4512 done 4513fi 4514if test -z "$DUMPBIN"; then 4515 ac_ct_DUMPBIN=$DUMPBIN 4516 for ac_prog in dumpbin "link -dump" 4517do 4518 # Extract the first word of "$ac_prog", so it can be a program name with args. 4519set dummy $ac_prog; ac_word=$2 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4521$as_echo_n "checking for $ac_word... " >&6; } 4522if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524else 4525 if test -n "$ac_ct_DUMPBIN"; then 4526 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4527else 4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4529for as_dir in $PATH 4530do 4531 IFS=$as_save_IFS 4532 test -z "$as_dir" && as_dir=. 4533 for ac_exec_ext in '' $ac_executable_extensions; do 4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4535 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4537 break 2 4538 fi 4539done 4540 done 4541IFS=$as_save_IFS 4542 4543fi 4544fi 4545ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4546if test -n "$ac_ct_DUMPBIN"; then 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4548$as_echo "$ac_ct_DUMPBIN" >&6; } 4549else 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4551$as_echo "no" >&6; } 4552fi 4553 4554 4555 test -n "$ac_ct_DUMPBIN" && break 4556done 4557 4558 if test "x$ac_ct_DUMPBIN" = x; then 4559 DUMPBIN=":" 4560 else 4561 case $cross_compiling:$ac_tool_warned in 4562yes:) 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4565ac_tool_warned=yes ;; 4566esac 4567 DUMPBIN=$ac_ct_DUMPBIN 4568 fi 4569fi 4570 4571 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4572 *COFF*) 4573 DUMPBIN="$DUMPBIN -symbols -headers" 4574 ;; 4575 *) 4576 DUMPBIN=: 4577 ;; 4578 esac 4579 fi 4580 4581 if test : != "$DUMPBIN"; then 4582 NM=$DUMPBIN 4583 fi 4584fi 4585test -z "$NM" && NM=nm 4586 4587 4588 4589 4590 4591 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4593$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4594if ${lt_cv_nm_interface+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 lt_cv_nm_interface="BSD nm" 4598 echo "int some_variable = 0;" > conftest.$ac_ext 4599 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4600 (eval "$ac_compile" 2>conftest.err) 4601 cat conftest.err >&5 4602 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4603 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4604 cat conftest.err >&5 4605 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4606 cat conftest.out >&5 4607 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4608 lt_cv_nm_interface="MS dumpbin" 4609 fi 4610 rm -f conftest* 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4613$as_echo "$lt_cv_nm_interface" >&6; } 4614 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4616$as_echo_n "checking whether ln -s works... " >&6; } 4617LN_S=$as_ln_s 4618if test "$LN_S" = "ln -s"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4620$as_echo "yes" >&6; } 4621else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4623$as_echo "no, using $LN_S" >&6; } 4624fi 4625 4626# find the maximum length of command line arguments 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4628$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4629if ${lt_cv_sys_max_cmd_len+:} false; then : 4630 $as_echo_n "(cached) " >&6 4631else 4632 i=0 4633 teststring=ABCD 4634 4635 case $build_os in 4636 msdosdjgpp*) 4637 # On DJGPP, this test can blow up pretty badly due to problems in libc 4638 # (any single argument exceeding 2000 bytes causes a buffer overrun 4639 # during glob expansion). Even if it were fixed, the result of this 4640 # check would be larger than it should be. 4641 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4642 ;; 4643 4644 gnu*) 4645 # Under GNU Hurd, this test is not required because there is 4646 # no limit to the length of command line arguments. 4647 # Libtool will interpret -1 as no limit whatsoever 4648 lt_cv_sys_max_cmd_len=-1; 4649 ;; 4650 4651 cygwin* | mingw* | cegcc*) 4652 # On Win9x/ME, this test blows up -- it succeeds, but takes 4653 # about 5 minutes as the teststring grows exponentially. 4654 # Worse, since 9x/ME are not pre-emptively multitasking, 4655 # you end up with a "frozen" computer, even though with patience 4656 # the test eventually succeeds (with a max line length of 256k). 4657 # Instead, let's just punt: use the minimum linelength reported by 4658 # all of the supported platforms: 8192 (on NT/2K/XP). 4659 lt_cv_sys_max_cmd_len=8192; 4660 ;; 4661 4662 mint*) 4663 # On MiNT this can take a long time and run out of memory. 4664 lt_cv_sys_max_cmd_len=8192; 4665 ;; 4666 4667 amigaos*) 4668 # On AmigaOS with pdksh, this test takes hours, literally. 4669 # So we just punt and use a minimum line length of 8192. 4670 lt_cv_sys_max_cmd_len=8192; 4671 ;; 4672 4673 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4674 # This has been around since 386BSD, at least. Likely further. 4675 if test -x /sbin/sysctl; then 4676 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4677 elif test -x /usr/sbin/sysctl; then 4678 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4679 else 4680 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4681 fi 4682 # And add a safety zone 4683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4685 ;; 4686 4687 interix*) 4688 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4689 lt_cv_sys_max_cmd_len=196608 4690 ;; 4691 4692 os2*) 4693 # The test takes a long time on OS/2. 4694 lt_cv_sys_max_cmd_len=8192 4695 ;; 4696 4697 osf*) 4698 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4699 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4700 # nice to cause kernel panics so lets avoid the loop below. 4701 # First set a reasonable default. 4702 lt_cv_sys_max_cmd_len=16384 4703 # 4704 if test -x /sbin/sysconfig; then 4705 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4706 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4707 esac 4708 fi 4709 ;; 4710 sco3.2v5*) 4711 lt_cv_sys_max_cmd_len=102400 4712 ;; 4713 sysv5* | sco5v6* | sysv4.2uw2*) 4714 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4715 if test -n "$kargmax"; then 4716 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4717 else 4718 lt_cv_sys_max_cmd_len=32768 4719 fi 4720 ;; 4721 *) 4722 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4723 if test -n "$lt_cv_sys_max_cmd_len" && \ 4724 test undefined != "$lt_cv_sys_max_cmd_len"; then 4725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4727 else 4728 # Make teststring a little bigger before we do anything with it. 4729 # a 1K string should be a reasonable start. 4730 for i in 1 2 3 4 5 6 7 8; do 4731 teststring=$teststring$teststring 4732 done 4733 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4734 # If test is not a shell built-in, we'll probably end up computing a 4735 # maximum length that is only half of the actual maximum length, but 4736 # we can't tell. 4737 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4738 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4739 test 17 != "$i" # 1/2 MB should be enough 4740 do 4741 i=`expr $i + 1` 4742 teststring=$teststring$teststring 4743 done 4744 # Only check the string length outside the loop. 4745 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4746 teststring= 4747 # Add a significant safety factor because C++ compilers can tack on 4748 # massive amounts of additional arguments before passing them to the 4749 # linker. It appears as though 1/2 is a usable value. 4750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4751 fi 4752 ;; 4753 esac 4754 4755fi 4756 4757if test -n "$lt_cv_sys_max_cmd_len"; then 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4759$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4760else 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4762$as_echo "none" >&6; } 4763fi 4764max_cmd_len=$lt_cv_sys_max_cmd_len 4765 4766 4767 4768 4769 4770 4771: ${CP="cp -f"} 4772: ${MV="mv -f"} 4773: ${RM="rm -f"} 4774 4775if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4776 lt_unset=unset 4777else 4778 lt_unset=false 4779fi 4780 4781 4782 4783 4784 4785# test EBCDIC or ASCII 4786case `echo X|tr X '\101'` in 4787 A) # ASCII based system 4788 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4789 lt_SP2NL='tr \040 \012' 4790 lt_NL2SP='tr \015\012 \040\040' 4791 ;; 4792 *) # EBCDIC based system 4793 lt_SP2NL='tr \100 \n' 4794 lt_NL2SP='tr \r\n \100\100' 4795 ;; 4796esac 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4807$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4808if ${lt_cv_to_host_file_cmd+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 case $host in 4812 *-*-mingw* ) 4813 case $build in 4814 *-*-mingw* ) # actually msys 4815 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4816 ;; 4817 *-*-cygwin* ) 4818 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4819 ;; 4820 * ) # otherwise, assume *nix 4821 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4822 ;; 4823 esac 4824 ;; 4825 *-*-cygwin* ) 4826 case $build in 4827 *-*-mingw* ) # actually msys 4828 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4829 ;; 4830 *-*-cygwin* ) 4831 lt_cv_to_host_file_cmd=func_convert_file_noop 4832 ;; 4833 * ) # otherwise, assume *nix 4834 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4835 ;; 4836 esac 4837 ;; 4838 * ) # unhandled hosts (and "normal" native builds) 4839 lt_cv_to_host_file_cmd=func_convert_file_noop 4840 ;; 4841esac 4842 4843fi 4844 4845to_host_file_cmd=$lt_cv_to_host_file_cmd 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4847$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4848 4849 4850 4851 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4854$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4855if ${lt_cv_to_tool_file_cmd+:} false; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 #assume ordinary cross tools, or native build. 4859lt_cv_to_tool_file_cmd=func_convert_file_noop 4860case $host in 4861 *-*-mingw* ) 4862 case $build in 4863 *-*-mingw* ) # actually msys 4864 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4865 ;; 4866 esac 4867 ;; 4868esac 4869 4870fi 4871 4872to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4874$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4875 4876 4877 4878 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4881$as_echo_n "checking for $LD option to reload object files... " >&6; } 4882if ${lt_cv_ld_reload_flag+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 lt_cv_ld_reload_flag='-r' 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4888$as_echo "$lt_cv_ld_reload_flag" >&6; } 4889reload_flag=$lt_cv_ld_reload_flag 4890case $reload_flag in 4891"" | " "*) ;; 4892*) reload_flag=" $reload_flag" ;; 4893esac 4894reload_cmds='$LD$reload_flag -o $output$reload_objs' 4895case $host_os in 4896 cygwin* | mingw* | pw32* | cegcc*) 4897 if test yes != "$GCC"; then 4898 reload_cmds=false 4899 fi 4900 ;; 4901 darwin*) 4902 if test yes = "$GCC"; then 4903 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4904 else 4905 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4906 fi 4907 ;; 4908esac 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918if test -n "$ac_tool_prefix"; then 4919 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4920set dummy ${ac_tool_prefix}objdump; ac_word=$2 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4922$as_echo_n "checking for $ac_word... " >&6; } 4923if ${ac_cv_prog_OBJDUMP+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 if test -n "$OBJDUMP"; then 4927 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4928else 4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4930for as_dir in $PATH 4931do 4932 IFS=$as_save_IFS 4933 test -z "$as_dir" && as_dir=. 4934 for ac_exec_ext in '' $ac_executable_extensions; do 4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4936 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4938 break 2 4939 fi 4940done 4941 done 4942IFS=$as_save_IFS 4943 4944fi 4945fi 4946OBJDUMP=$ac_cv_prog_OBJDUMP 4947if test -n "$OBJDUMP"; then 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4949$as_echo "$OBJDUMP" >&6; } 4950else 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4952$as_echo "no" >&6; } 4953fi 4954 4955 4956fi 4957if test -z "$ac_cv_prog_OBJDUMP"; then 4958 ac_ct_OBJDUMP=$OBJDUMP 4959 # Extract the first word of "objdump", so it can be a program name with args. 4960set dummy objdump; ac_word=$2 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4962$as_echo_n "checking for $ac_word... " >&6; } 4963if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4964 $as_echo_n "(cached) " >&6 4965else 4966 if test -n "$ac_ct_OBJDUMP"; then 4967 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4968else 4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4970for as_dir in $PATH 4971do 4972 IFS=$as_save_IFS 4973 test -z "$as_dir" && as_dir=. 4974 for ac_exec_ext in '' $ac_executable_extensions; do 4975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4976 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4978 break 2 4979 fi 4980done 4981 done 4982IFS=$as_save_IFS 4983 4984fi 4985fi 4986ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4987if test -n "$ac_ct_OBJDUMP"; then 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4989$as_echo "$ac_ct_OBJDUMP" >&6; } 4990else 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992$as_echo "no" >&6; } 4993fi 4994 4995 if test "x$ac_ct_OBJDUMP" = x; then 4996 OBJDUMP="false" 4997 else 4998 case $cross_compiling:$ac_tool_warned in 4999yes:) 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5002ac_tool_warned=yes ;; 5003esac 5004 OBJDUMP=$ac_ct_OBJDUMP 5005 fi 5006else 5007 OBJDUMP="$ac_cv_prog_OBJDUMP" 5008fi 5009 5010test -z "$OBJDUMP" && OBJDUMP=objdump 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5021$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5022if ${lt_cv_deplibs_check_method+:} false; then : 5023 $as_echo_n "(cached) " >&6 5024else 5025 lt_cv_file_magic_cmd='$MAGIC_CMD' 5026lt_cv_file_magic_test_file= 5027lt_cv_deplibs_check_method='unknown' 5028# Need to set the preceding variable on all platforms that support 5029# interlibrary dependencies. 5030# 'none' -- dependencies not supported. 5031# 'unknown' -- same as none, but documents that we really don't know. 5032# 'pass_all' -- all dependencies passed with no checks. 5033# 'test_compile' -- check by making test program. 5034# 'file_magic [[regex]]' -- check by looking for files in library path 5035# that responds to the $file_magic_cmd with a given extended regex. 5036# If you have 'file' or equivalent on your system and you're not sure 5037# whether 'pass_all' will *always* work, you probably want this one. 5038 5039case $host_os in 5040aix[4-9]*) 5041 lt_cv_deplibs_check_method=pass_all 5042 ;; 5043 5044beos*) 5045 lt_cv_deplibs_check_method=pass_all 5046 ;; 5047 5048bsdi[45]*) 5049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5050 lt_cv_file_magic_cmd='/usr/bin/file -L' 5051 lt_cv_file_magic_test_file=/shlib/libc.so 5052 ;; 5053 5054cygwin*) 5055 # func_win32_libid is a shell function defined in ltmain.sh 5056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5057 lt_cv_file_magic_cmd='func_win32_libid' 5058 ;; 5059 5060mingw* | pw32*) 5061 # Base MSYS/MinGW do not provide the 'file' command needed by 5062 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5063 # unless we find 'file', for example because we are cross-compiling. 5064 if ( file / ) >/dev/null 2>&1; then 5065 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5066 lt_cv_file_magic_cmd='func_win32_libid' 5067 else 5068 # Keep this pattern in sync with the one in func_win32_libid. 5069 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5070 lt_cv_file_magic_cmd='$OBJDUMP -f' 5071 fi 5072 ;; 5073 5074cegcc*) 5075 # use the weaker test based on 'objdump'. See mingw*. 5076 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5077 lt_cv_file_magic_cmd='$OBJDUMP -f' 5078 ;; 5079 5080darwin* | rhapsody*) 5081 lt_cv_deplibs_check_method=pass_all 5082 ;; 5083 5084freebsd* | dragonfly*) 5085 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5086 case $host_cpu in 5087 i*86 ) 5088 # Not sure whether the presence of OpenBSD here was a mistake. 5089 # Let's accept both of them until this is cleared up. 5090 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5091 lt_cv_file_magic_cmd=/usr/bin/file 5092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5093 ;; 5094 esac 5095 else 5096 lt_cv_deplibs_check_method=pass_all 5097 fi 5098 ;; 5099 5100haiku*) 5101 lt_cv_deplibs_check_method=pass_all 5102 ;; 5103 5104hpux10.20* | hpux11*) 5105 lt_cv_file_magic_cmd=/usr/bin/file 5106 case $host_cpu in 5107 ia64*) 5108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5110 ;; 5111 hppa*64*) 5112 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]' 5113 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5114 ;; 5115 *) 5116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5117 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5118 ;; 5119 esac 5120 ;; 5121 5122interix[3-9]*) 5123 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5125 ;; 5126 5127irix5* | irix6* | nonstopux*) 5128 case $LD in 5129 *-32|*"-32 ") libmagic=32-bit;; 5130 *-n32|*"-n32 ") libmagic=N32;; 5131 *-64|*"-64 ") libmagic=64-bit;; 5132 *) libmagic=never-match;; 5133 esac 5134 lt_cv_deplibs_check_method=pass_all 5135 ;; 5136 5137# This must be glibc/ELF. 5138linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5139 lt_cv_deplibs_check_method=pass_all 5140 ;; 5141 5142netbsd*) 5143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5145 else 5146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5147 fi 5148 ;; 5149 5150newos6*) 5151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5152 lt_cv_file_magic_cmd=/usr/bin/file 5153 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5154 ;; 5155 5156*nto* | *qnx*) 5157 lt_cv_deplibs_check_method=pass_all 5158 ;; 5159 5160openbsd* | bitrig*) 5161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5163 else 5164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5165 fi 5166 ;; 5167 5168osf3* | osf4* | osf5*) 5169 lt_cv_deplibs_check_method=pass_all 5170 ;; 5171 5172rdos*) 5173 lt_cv_deplibs_check_method=pass_all 5174 ;; 5175 5176solaris*) 5177 lt_cv_deplibs_check_method=pass_all 5178 ;; 5179 5180sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5181 lt_cv_deplibs_check_method=pass_all 5182 ;; 5183 5184sysv4 | sysv4.3*) 5185 case $host_vendor in 5186 motorola) 5187 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]' 5188 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5189 ;; 5190 ncr) 5191 lt_cv_deplibs_check_method=pass_all 5192 ;; 5193 sequent) 5194 lt_cv_file_magic_cmd='/bin/file' 5195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5196 ;; 5197 sni) 5198 lt_cv_file_magic_cmd='/bin/file' 5199 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5200 lt_cv_file_magic_test_file=/lib/libc.so 5201 ;; 5202 siemens) 5203 lt_cv_deplibs_check_method=pass_all 5204 ;; 5205 pc) 5206 lt_cv_deplibs_check_method=pass_all 5207 ;; 5208 esac 5209 ;; 5210 5211tpf*) 5212 lt_cv_deplibs_check_method=pass_all 5213 ;; 5214os2*) 5215 lt_cv_deplibs_check_method=pass_all 5216 ;; 5217esac 5218 5219fi 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5221$as_echo "$lt_cv_deplibs_check_method" >&6; } 5222 5223file_magic_glob= 5224want_nocaseglob=no 5225if test "$build" = "$host"; then 5226 case $host_os in 5227 mingw* | pw32*) 5228 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5229 want_nocaseglob=yes 5230 else 5231 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5232 fi 5233 ;; 5234 esac 5235fi 5236 5237file_magic_cmd=$lt_cv_file_magic_cmd 5238deplibs_check_method=$lt_cv_deplibs_check_method 5239test -z "$deplibs_check_method" && deplibs_check_method=unknown 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262if test -n "$ac_tool_prefix"; then 5263 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5264set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5266$as_echo_n "checking for $ac_word... " >&6; } 5267if ${ac_cv_prog_DLLTOOL+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 if test -n "$DLLTOOL"; then 5271 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5272else 5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5274for as_dir in $PATH 5275do 5276 IFS=$as_save_IFS 5277 test -z "$as_dir" && as_dir=. 5278 for ac_exec_ext in '' $ac_executable_extensions; do 5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5280 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5282 break 2 5283 fi 5284done 5285 done 5286IFS=$as_save_IFS 5287 5288fi 5289fi 5290DLLTOOL=$ac_cv_prog_DLLTOOL 5291if test -n "$DLLTOOL"; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5293$as_echo "$DLLTOOL" >&6; } 5294else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5296$as_echo "no" >&6; } 5297fi 5298 5299 5300fi 5301if test -z "$ac_cv_prog_DLLTOOL"; then 5302 ac_ct_DLLTOOL=$DLLTOOL 5303 # Extract the first word of "dlltool", so it can be a program name with args. 5304set dummy dlltool; ac_word=$2 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5306$as_echo_n "checking for $ac_word... " >&6; } 5307if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309else 5310 if test -n "$ac_ct_DLLTOOL"; then 5311 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5312else 5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5314for as_dir in $PATH 5315do 5316 IFS=$as_save_IFS 5317 test -z "$as_dir" && as_dir=. 5318 for ac_exec_ext in '' $ac_executable_extensions; do 5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5320 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5322 break 2 5323 fi 5324done 5325 done 5326IFS=$as_save_IFS 5327 5328fi 5329fi 5330ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5331if test -n "$ac_ct_DLLTOOL"; then 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5333$as_echo "$ac_ct_DLLTOOL" >&6; } 5334else 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5336$as_echo "no" >&6; } 5337fi 5338 5339 if test "x$ac_ct_DLLTOOL" = x; then 5340 DLLTOOL="false" 5341 else 5342 case $cross_compiling:$ac_tool_warned in 5343yes:) 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5346ac_tool_warned=yes ;; 5347esac 5348 DLLTOOL=$ac_ct_DLLTOOL 5349 fi 5350else 5351 DLLTOOL="$ac_cv_prog_DLLTOOL" 5352fi 5353 5354test -z "$DLLTOOL" && DLLTOOL=dlltool 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5366$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5367if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5368 $as_echo_n "(cached) " >&6 5369else 5370 lt_cv_sharedlib_from_linklib_cmd='unknown' 5371 5372case $host_os in 5373cygwin* | mingw* | pw32* | cegcc*) 5374 # two different shell functions defined in ltmain.sh; 5375 # decide which one to use based on capabilities of $DLLTOOL 5376 case `$DLLTOOL --help 2>&1` in 5377 *--identify-strict*) 5378 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5379 ;; 5380 *) 5381 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5382 ;; 5383 esac 5384 ;; 5385*) 5386 # fallback: assume linklib IS sharedlib 5387 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5388 ;; 5389esac 5390 5391fi 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5393$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5394sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5395test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5396 5397 5398 5399 5400 5401 5402 5403 5404if test -n "$ac_tool_prefix"; then 5405 for ac_prog in ar 5406 do 5407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5408set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5410$as_echo_n "checking for $ac_word... " >&6; } 5411if ${ac_cv_prog_AR+:} false; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 if test -n "$AR"; then 5415 ac_cv_prog_AR="$AR" # Let the user override the test. 5416else 5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5418for as_dir in $PATH 5419do 5420 IFS=$as_save_IFS 5421 test -z "$as_dir" && as_dir=. 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5424 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5426 break 2 5427 fi 5428done 5429 done 5430IFS=$as_save_IFS 5431 5432fi 5433fi 5434AR=$ac_cv_prog_AR 5435if test -n "$AR"; then 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5437$as_echo "$AR" >&6; } 5438else 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440$as_echo "no" >&6; } 5441fi 5442 5443 5444 test -n "$AR" && break 5445 done 5446fi 5447if test -z "$AR"; then 5448 ac_ct_AR=$AR 5449 for ac_prog in ar 5450do 5451 # Extract the first word of "$ac_prog", so it can be a program name with args. 5452set dummy $ac_prog; ac_word=$2 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5454$as_echo_n "checking for $ac_word... " >&6; } 5455if ${ac_cv_prog_ac_ct_AR+:} false; then : 5456 $as_echo_n "(cached) " >&6 5457else 5458 if test -n "$ac_ct_AR"; then 5459 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5460else 5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5462for as_dir in $PATH 5463do 5464 IFS=$as_save_IFS 5465 test -z "$as_dir" && as_dir=. 5466 for ac_exec_ext in '' $ac_executable_extensions; do 5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5468 ac_cv_prog_ac_ct_AR="$ac_prog" 5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5470 break 2 5471 fi 5472done 5473 done 5474IFS=$as_save_IFS 5475 5476fi 5477fi 5478ac_ct_AR=$ac_cv_prog_ac_ct_AR 5479if test -n "$ac_ct_AR"; then 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5481$as_echo "$ac_ct_AR" >&6; } 5482else 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5484$as_echo "no" >&6; } 5485fi 5486 5487 5488 test -n "$ac_ct_AR" && break 5489done 5490 5491 if test "x$ac_ct_AR" = x; then 5492 AR="false" 5493 else 5494 case $cross_compiling:$ac_tool_warned in 5495yes:) 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5498ac_tool_warned=yes ;; 5499esac 5500 AR=$ac_ct_AR 5501 fi 5502fi 5503 5504: ${AR=ar} 5505: ${AR_FLAGS=cru} 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5518$as_echo_n "checking for archiver @FILE support... " >&6; } 5519if ${lt_cv_ar_at_file+:} false; then : 5520 $as_echo_n "(cached) " >&6 5521else 5522 lt_cv_ar_at_file=no 5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524/* end confdefs.h. */ 5525 5526int 5527main () 5528{ 5529 5530 ; 5531 return 0; 5532} 5533_ACEOF 5534if ac_fn_c_try_compile "$LINENO"; then : 5535 echo conftest.$ac_objext > conftest.lst 5536 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5538 (eval $lt_ar_try) 2>&5 5539 ac_status=$? 5540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5541 test $ac_status = 0; } 5542 if test 0 -eq "$ac_status"; then 5543 # Ensure the archiver fails upon bogus file names. 5544 rm -f conftest.$ac_objext libconftest.a 5545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5546 (eval $lt_ar_try) 2>&5 5547 ac_status=$? 5548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5549 test $ac_status = 0; } 5550 if test 0 -ne "$ac_status"; then 5551 lt_cv_ar_at_file=@ 5552 fi 5553 fi 5554 rm -f conftest.* libconftest.a 5555 5556fi 5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5558 5559fi 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5561$as_echo "$lt_cv_ar_at_file" >&6; } 5562 5563if test no = "$lt_cv_ar_at_file"; then 5564 archiver_list_spec= 5565else 5566 archiver_list_spec=$lt_cv_ar_at_file 5567fi 5568 5569 5570 5571 5572 5573 5574 5575if test -n "$ac_tool_prefix"; then 5576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5577set dummy ${ac_tool_prefix}strip; ac_word=$2 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5579$as_echo_n "checking for $ac_word... " >&6; } 5580if ${ac_cv_prog_STRIP+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 if test -n "$STRIP"; then 5584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5585else 5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5587for as_dir in $PATH 5588do 5589 IFS=$as_save_IFS 5590 test -z "$as_dir" && as_dir=. 5591 for ac_exec_ext in '' $ac_executable_extensions; do 5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5593 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5595 break 2 5596 fi 5597done 5598 done 5599IFS=$as_save_IFS 5600 5601fi 5602fi 5603STRIP=$ac_cv_prog_STRIP 5604if test -n "$STRIP"; then 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5606$as_echo "$STRIP" >&6; } 5607else 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5609$as_echo "no" >&6; } 5610fi 5611 5612 5613fi 5614if test -z "$ac_cv_prog_STRIP"; then 5615 ac_ct_STRIP=$STRIP 5616 # Extract the first word of "strip", so it can be a program name with args. 5617set dummy strip; ac_word=$2 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5619$as_echo_n "checking for $ac_word... " >&6; } 5620if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$ac_ct_STRIP"; then 5624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5625else 5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5627for as_dir in $PATH 5628do 5629 IFS=$as_save_IFS 5630 test -z "$as_dir" && as_dir=. 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5633 ac_cv_prog_ac_ct_STRIP="strip" 5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 break 2 5636 fi 5637done 5638 done 5639IFS=$as_save_IFS 5640 5641fi 5642fi 5643ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5644if test -n "$ac_ct_STRIP"; then 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5646$as_echo "$ac_ct_STRIP" >&6; } 5647else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649$as_echo "no" >&6; } 5650fi 5651 5652 if test "x$ac_ct_STRIP" = x; then 5653 STRIP=":" 5654 else 5655 case $cross_compiling:$ac_tool_warned in 5656yes:) 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5659ac_tool_warned=yes ;; 5660esac 5661 STRIP=$ac_ct_STRIP 5662 fi 5663else 5664 STRIP="$ac_cv_prog_STRIP" 5665fi 5666 5667test -z "$STRIP" && STRIP=: 5668 5669 5670 5671 5672 5673 5674if test -n "$ac_tool_prefix"; then 5675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5676set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5678$as_echo_n "checking for $ac_word... " >&6; } 5679if ${ac_cv_prog_RANLIB+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681else 5682 if test -n "$RANLIB"; then 5683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5684else 5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5686for as_dir in $PATH 5687do 5688 IFS=$as_save_IFS 5689 test -z "$as_dir" && as_dir=. 5690 for ac_exec_ext in '' $ac_executable_extensions; do 5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5694 break 2 5695 fi 5696done 5697 done 5698IFS=$as_save_IFS 5699 5700fi 5701fi 5702RANLIB=$ac_cv_prog_RANLIB 5703if test -n "$RANLIB"; then 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5705$as_echo "$RANLIB" >&6; } 5706else 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5708$as_echo "no" >&6; } 5709fi 5710 5711 5712fi 5713if test -z "$ac_cv_prog_RANLIB"; then 5714 ac_ct_RANLIB=$RANLIB 5715 # Extract the first word of "ranlib", so it can be a program name with args. 5716set dummy ranlib; ac_word=$2 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718$as_echo_n "checking for $ac_word... " >&6; } 5719if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 if test -n "$ac_ct_RANLIB"; then 5723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5724else 5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726for as_dir in $PATH 5727do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_exec_ext in '' $ac_executable_extensions; do 5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5732 ac_cv_prog_ac_ct_RANLIB="ranlib" 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5734 break 2 5735 fi 5736done 5737 done 5738IFS=$as_save_IFS 5739 5740fi 5741fi 5742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5743if test -n "$ac_ct_RANLIB"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5745$as_echo "$ac_ct_RANLIB" >&6; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749fi 5750 5751 if test "x$ac_ct_RANLIB" = x; then 5752 RANLIB=":" 5753 else 5754 case $cross_compiling:$ac_tool_warned in 5755yes:) 5756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5758ac_tool_warned=yes ;; 5759esac 5760 RANLIB=$ac_ct_RANLIB 5761 fi 5762else 5763 RANLIB="$ac_cv_prog_RANLIB" 5764fi 5765 5766test -z "$RANLIB" && RANLIB=: 5767 5768 5769 5770 5771 5772 5773# Determine commands to create old-style static archives. 5774old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5775old_postinstall_cmds='chmod 644 $oldlib' 5776old_postuninstall_cmds= 5777 5778if test -n "$RANLIB"; then 5779 case $host_os in 5780 bitrig* | openbsd*) 5781 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5782 ;; 5783 *) 5784 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5785 ;; 5786 esac 5787 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5788fi 5789 5790case $host_os in 5791 darwin*) 5792 lock_old_archive_extraction=yes ;; 5793 *) 5794 lock_old_archive_extraction=no ;; 5795esac 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835# If no C compiler was specified, use CC. 5836LTCC=${LTCC-"$CC"} 5837 5838# If no C compiler flags were specified, use CFLAGS. 5839LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5840 5841# Allow CC to be a program name with arguments. 5842compiler=$CC 5843 5844 5845# Check for command to grab the raw symbol name followed by C symbol from nm. 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5847$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5848if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 5852# These are sane defaults that work on at least a few old systems. 5853# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5854 5855# Character class describing NM global symbol codes. 5856symcode='[BCDEGRST]' 5857 5858# Regexp to match symbols that can be accessed directly from C. 5859sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5860 5861# Define system-specific variables. 5862case $host_os in 5863aix*) 5864 symcode='[BCDT]' 5865 ;; 5866cygwin* | mingw* | pw32* | cegcc*) 5867 symcode='[ABCDGISTW]' 5868 ;; 5869hpux*) 5870 if test ia64 = "$host_cpu"; then 5871 symcode='[ABCDEGRST]' 5872 fi 5873 ;; 5874irix* | nonstopux*) 5875 symcode='[BCDEGRST]' 5876 ;; 5877osf*) 5878 symcode='[BCDEGQRST]' 5879 ;; 5880solaris*) 5881 symcode='[BDRT]' 5882 ;; 5883sco3.2v5*) 5884 symcode='[DT]' 5885 ;; 5886sysv4.2uw2*) 5887 symcode='[DT]' 5888 ;; 5889sysv5* | sco5v6* | unixware* | OpenUNIX*) 5890 symcode='[ABDT]' 5891 ;; 5892sysv4) 5893 symcode='[DFNSTU]' 5894 ;; 5895esac 5896 5897# If we're using GNU nm, then use its standard symbol codes. 5898case `$NM -V 2>&1` in 5899*GNU* | *'with BFD'*) 5900 symcode='[ABCDGIRSTW]' ;; 5901esac 5902 5903if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5904 # Gets list of data symbols to import. 5905 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5906 # Adjust the below global symbol transforms to fixup imported variables. 5907 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5908 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5909 lt_c_name_lib_hook="\ 5910 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5911 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5912else 5913 # Disable hooks by default. 5914 lt_cv_sys_global_symbol_to_import= 5915 lt_cdecl_hook= 5916 lt_c_name_hook= 5917 lt_c_name_lib_hook= 5918fi 5919 5920# Transform an extracted symbol line into a proper C declaration. 5921# Some systems (esp. on ia64) link data and code symbols differently, 5922# so use this general approach. 5923lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5924$lt_cdecl_hook\ 5925" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5926" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5927 5928# Transform an extracted symbol line into symbol name and symbol address 5929lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5930$lt_c_name_hook\ 5931" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5932" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5933 5934# Transform an extracted symbol line into symbol name with lib prefix and 5935# symbol address. 5936lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5937$lt_c_name_lib_hook\ 5938" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5939" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5940" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5941 5942# Handle CRLF in mingw tool chain 5943opt_cr= 5944case $build_os in 5945mingw*) 5946 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5947 ;; 5948esac 5949 5950# Try without a prefix underscore, then with it. 5951for ac_symprfx in "" "_"; do 5952 5953 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5954 symxfrm="\\1 $ac_symprfx\\2 \\2" 5955 5956 # Write the raw and C identifiers. 5957 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5958 # Fake it for dumpbin and say T for any non-static function, 5959 # D for any global variable and I for any imported variable. 5960 # Also find C++ and __fastcall symbols from MSVC++, 5961 # which start with @ or ?. 5962 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5963" {last_section=section; section=\$ 3};"\ 5964" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5965" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5966" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 5967" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 5968" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 5969" \$ 0!~/External *\|/{next};"\ 5970" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5971" {if(hide[section]) next};"\ 5972" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 5973" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 5974" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 5975" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 5976" ' prfx=^$ac_symprfx" 5977 else 5978 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5979 fi 5980 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5981 5982 # Check to see that the pipe works correctly. 5983 pipe_works=no 5984 5985 rm -f conftest* 5986 cat > conftest.$ac_ext <<_LT_EOF 5987#ifdef __cplusplus 5988extern "C" { 5989#endif 5990char nm_test_var; 5991void nm_test_func(void); 5992void nm_test_func(void){} 5993#ifdef __cplusplus 5994} 5995#endif 5996int main(){nm_test_var='a';nm_test_func();return(0);} 5997_LT_EOF 5998 5999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6000 (eval $ac_compile) 2>&5 6001 ac_status=$? 6002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6003 test $ac_status = 0; }; then 6004 # Now try to grab the symbols. 6005 nlist=conftest.nm 6006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6007 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6008 ac_status=$? 6009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6010 test $ac_status = 0; } && test -s "$nlist"; then 6011 # Try sorting and uniquifying the output. 6012 if sort "$nlist" | uniq > "$nlist"T; then 6013 mv -f "$nlist"T "$nlist" 6014 else 6015 rm -f "$nlist"T 6016 fi 6017 6018 # Make sure that we snagged all the symbols we need. 6019 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6020 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6021 cat <<_LT_EOF > conftest.$ac_ext 6022/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6023#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6024/* DATA imports from DLLs on WIN32 can't be const, because runtime 6025 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6026# define LT_DLSYM_CONST 6027#elif defined __osf__ 6028/* This system does not cope well with relocations in const data. */ 6029# define LT_DLSYM_CONST 6030#else 6031# define LT_DLSYM_CONST const 6032#endif 6033 6034#ifdef __cplusplus 6035extern "C" { 6036#endif 6037 6038_LT_EOF 6039 # Now generate the symbol file. 6040 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6041 6042 cat <<_LT_EOF >> conftest.$ac_ext 6043 6044/* The mapping between symbol names and symbols. */ 6045LT_DLSYM_CONST struct { 6046 const char *name; 6047 void *address; 6048} 6049lt__PROGRAM__LTX_preloaded_symbols[] = 6050{ 6051 { "@PROGRAM@", (void *) 0 }, 6052_LT_EOF 6053 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6054 cat <<\_LT_EOF >> conftest.$ac_ext 6055 {0, (void *) 0} 6056}; 6057 6058/* This works around a problem in FreeBSD linker */ 6059#ifdef FREEBSD_WORKAROUND 6060static const void *lt_preloaded_setup() { 6061 return lt__PROGRAM__LTX_preloaded_symbols; 6062} 6063#endif 6064 6065#ifdef __cplusplus 6066} 6067#endif 6068_LT_EOF 6069 # Now try linking the two files. 6070 mv conftest.$ac_objext conftstm.$ac_objext 6071 lt_globsym_save_LIBS=$LIBS 6072 lt_globsym_save_CFLAGS=$CFLAGS 6073 LIBS=conftstm.$ac_objext 6074 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6076 (eval $ac_link) 2>&5 6077 ac_status=$? 6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6079 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6080 pipe_works=yes 6081 fi 6082 LIBS=$lt_globsym_save_LIBS 6083 CFLAGS=$lt_globsym_save_CFLAGS 6084 else 6085 echo "cannot find nm_test_func in $nlist" >&5 6086 fi 6087 else 6088 echo "cannot find nm_test_var in $nlist" >&5 6089 fi 6090 else 6091 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6092 fi 6093 else 6094 echo "$progname: failed program was:" >&5 6095 cat conftest.$ac_ext >&5 6096 fi 6097 rm -rf conftest* conftst* 6098 6099 # Do not use the global_symbol_pipe unless it works. 6100 if test yes = "$pipe_works"; then 6101 break 6102 else 6103 lt_cv_sys_global_symbol_pipe= 6104 fi 6105done 6106 6107fi 6108 6109if test -z "$lt_cv_sys_global_symbol_pipe"; then 6110 lt_cv_sys_global_symbol_to_cdecl= 6111fi 6112if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6114$as_echo "failed" >&6; } 6115else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6117$as_echo "ok" >&6; } 6118fi 6119 6120# Response file support. 6121if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6122 nm_file_list_spec='@' 6123elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6124 nm_file_list_spec='@' 6125fi 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6164$as_echo_n "checking for sysroot... " >&6; } 6165 6166# Check whether --with-sysroot was given. 6167if test "${with_sysroot+set}" = set; then : 6168 withval=$with_sysroot; 6169else 6170 with_sysroot=no 6171fi 6172 6173 6174lt_sysroot= 6175case $with_sysroot in #( 6176 yes) 6177 if test yes = "$GCC"; then 6178 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6179 fi 6180 ;; #( 6181 /*) 6182 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6183 ;; #( 6184 no|'') 6185 ;; #( 6186 *) 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6188$as_echo "$with_sysroot" >&6; } 6189 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6190 ;; 6191esac 6192 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6194$as_echo "${lt_sysroot:-no}" >&6; } 6195 6196 6197 6198 6199 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6201$as_echo_n "checking for a working dd... " >&6; } 6202if ${ac_cv_path_lt_DD+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 printf 0123456789abcdef0123456789abcdef >conftest.i 6206cat conftest.i conftest.i >conftest2.i 6207: ${lt_DD:=$DD} 6208if test -z "$lt_DD"; then 6209 ac_path_lt_DD_found=false 6210 # Loop through the user's path and test for each of PROGNAME-LIST 6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6212for as_dir in $PATH 6213do 6214 IFS=$as_save_IFS 6215 test -z "$as_dir" && as_dir=. 6216 for ac_prog in dd; do 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6219 as_fn_executable_p "$ac_path_lt_DD" || continue 6220if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6221 cmp -s conftest.i conftest.out \ 6222 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6223fi 6224 $ac_path_lt_DD_found && break 3 6225 done 6226 done 6227 done 6228IFS=$as_save_IFS 6229 if test -z "$ac_cv_path_lt_DD"; then 6230 : 6231 fi 6232else 6233 ac_cv_path_lt_DD=$lt_DD 6234fi 6235 6236rm -f conftest.i conftest2.i conftest.out 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6239$as_echo "$ac_cv_path_lt_DD" >&6; } 6240 6241 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6243$as_echo_n "checking how to truncate binary pipes... " >&6; } 6244if ${lt_cv_truncate_bin+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 printf 0123456789abcdef0123456789abcdef >conftest.i 6248cat conftest.i conftest.i >conftest2.i 6249lt_cv_truncate_bin= 6250if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6251 cmp -s conftest.i conftest.out \ 6252 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6253fi 6254rm -f conftest.i conftest2.i conftest.out 6255test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6256fi 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6258$as_echo "$lt_cv_truncate_bin" >&6; } 6259 6260 6261 6262 6263 6264 6265 6266# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6267func_cc_basename () 6268{ 6269 for cc_temp in $*""; do 6270 case $cc_temp in 6271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6273 \-*) ;; 6274 *) break;; 6275 esac 6276 done 6277 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6278} 6279 6280# Check whether --enable-libtool-lock was given. 6281if test "${enable_libtool_lock+set}" = set; then : 6282 enableval=$enable_libtool_lock; 6283fi 6284 6285test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6286 6287# Some flags need to be propagated to the compiler or linker for good 6288# libtool support. 6289case $host in 6290ia64-*-hpux*) 6291 # Find out what ABI is being produced by ac_compile, and set mode 6292 # options accordingly. 6293 echo 'int i;' > conftest.$ac_ext 6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6295 (eval $ac_compile) 2>&5 6296 ac_status=$? 6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6298 test $ac_status = 0; }; then 6299 case `/usr/bin/file conftest.$ac_objext` in 6300 *ELF-32*) 6301 HPUX_IA64_MODE=32 6302 ;; 6303 *ELF-64*) 6304 HPUX_IA64_MODE=64 6305 ;; 6306 esac 6307 fi 6308 rm -rf conftest* 6309 ;; 6310*-*-irix6*) 6311 # Find out what ABI is being produced by ac_compile, and set linker 6312 # options accordingly. 6313 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6315 (eval $ac_compile) 2>&5 6316 ac_status=$? 6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6318 test $ac_status = 0; }; then 6319 if test yes = "$lt_cv_prog_gnu_ld"; then 6320 case `/usr/bin/file conftest.$ac_objext` in 6321 *32-bit*) 6322 LD="${LD-ld} -melf32bsmip" 6323 ;; 6324 *N32*) 6325 LD="${LD-ld} -melf32bmipn32" 6326 ;; 6327 *64-bit*) 6328 LD="${LD-ld} -melf64bmip" 6329 ;; 6330 esac 6331 else 6332 case `/usr/bin/file conftest.$ac_objext` in 6333 *32-bit*) 6334 LD="${LD-ld} -32" 6335 ;; 6336 *N32*) 6337 LD="${LD-ld} -n32" 6338 ;; 6339 *64-bit*) 6340 LD="${LD-ld} -64" 6341 ;; 6342 esac 6343 fi 6344 fi 6345 rm -rf conftest* 6346 ;; 6347 6348mips64*-*linux*) 6349 # Find out what ABI is being produced by ac_compile, and set linker 6350 # options accordingly. 6351 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6353 (eval $ac_compile) 2>&5 6354 ac_status=$? 6355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6356 test $ac_status = 0; }; then 6357 emul=elf 6358 case `/usr/bin/file conftest.$ac_objext` in 6359 *32-bit*) 6360 emul="${emul}32" 6361 ;; 6362 *64-bit*) 6363 emul="${emul}64" 6364 ;; 6365 esac 6366 case `/usr/bin/file conftest.$ac_objext` in 6367 *MSB*) 6368 emul="${emul}btsmip" 6369 ;; 6370 *LSB*) 6371 emul="${emul}ltsmip" 6372 ;; 6373 esac 6374 case `/usr/bin/file conftest.$ac_objext` in 6375 *N32*) 6376 emul="${emul}n32" 6377 ;; 6378 esac 6379 LD="${LD-ld} -m $emul" 6380 fi 6381 rm -rf conftest* 6382 ;; 6383 6384x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6385s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6386 # Find out what ABI is being produced by ac_compile, and set linker 6387 # options accordingly. Note that the listed cases only cover the 6388 # situations where additional linker options are needed (such as when 6389 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6390 # vice versa); the common cases where no linker options are needed do 6391 # not appear in the list. 6392 echo 'int i;' > conftest.$ac_ext 6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6394 (eval $ac_compile) 2>&5 6395 ac_status=$? 6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6397 test $ac_status = 0; }; then 6398 case `/usr/bin/file conftest.o` in 6399 *32-bit*) 6400 case $host in 6401 x86_64-*kfreebsd*-gnu) 6402 LD="${LD-ld} -m elf_i386_fbsd" 6403 ;; 6404 x86_64-*linux*) 6405 case `/usr/bin/file conftest.o` in 6406 *x86-64*) 6407 LD="${LD-ld} -m elf32_x86_64" 6408 ;; 6409 *) 6410 LD="${LD-ld} -m elf_i386" 6411 ;; 6412 esac 6413 ;; 6414 powerpc64le-*linux*) 6415 LD="${LD-ld} -m elf32lppclinux" 6416 ;; 6417 powerpc64-*linux*) 6418 LD="${LD-ld} -m elf32ppclinux" 6419 ;; 6420 s390x-*linux*) 6421 LD="${LD-ld} -m elf_s390" 6422 ;; 6423 sparc64-*linux*) 6424 LD="${LD-ld} -m elf32_sparc" 6425 ;; 6426 esac 6427 ;; 6428 *64-bit*) 6429 case $host in 6430 x86_64-*kfreebsd*-gnu) 6431 LD="${LD-ld} -m elf_x86_64_fbsd" 6432 ;; 6433 x86_64-*linux*) 6434 LD="${LD-ld} -m elf_x86_64" 6435 ;; 6436 powerpcle-*linux*) 6437 LD="${LD-ld} -m elf64lppc" 6438 ;; 6439 powerpc-*linux*) 6440 LD="${LD-ld} -m elf64ppc" 6441 ;; 6442 s390*-*linux*|s390*-*tpf*) 6443 LD="${LD-ld} -m elf64_s390" 6444 ;; 6445 sparc*-*linux*) 6446 LD="${LD-ld} -m elf64_sparc" 6447 ;; 6448 esac 6449 ;; 6450 esac 6451 fi 6452 rm -rf conftest* 6453 ;; 6454 6455*-*-sco3.2v5*) 6456 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6457 SAVE_CFLAGS=$CFLAGS 6458 CFLAGS="$CFLAGS -belf" 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6460$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6461if ${lt_cv_cc_needs_belf+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 ac_ext=c 6465ac_cpp='$CPP $CPPFLAGS' 6466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6468ac_compiler_gnu=$ac_cv_c_compiler_gnu 6469 6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6471/* end confdefs.h. */ 6472 6473int 6474main () 6475{ 6476 6477 ; 6478 return 0; 6479} 6480_ACEOF 6481if ac_fn_c_try_link "$LINENO"; then : 6482 lt_cv_cc_needs_belf=yes 6483else 6484 lt_cv_cc_needs_belf=no 6485fi 6486rm -f core conftest.err conftest.$ac_objext \ 6487 conftest$ac_exeext conftest.$ac_ext 6488 ac_ext=c 6489ac_cpp='$CPP $CPPFLAGS' 6490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6492ac_compiler_gnu=$ac_cv_c_compiler_gnu 6493 6494fi 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6496$as_echo "$lt_cv_cc_needs_belf" >&6; } 6497 if test yes != "$lt_cv_cc_needs_belf"; then 6498 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6499 CFLAGS=$SAVE_CFLAGS 6500 fi 6501 ;; 6502*-*solaris*) 6503 # Find out what ABI is being produced by ac_compile, and set linker 6504 # options accordingly. 6505 echo 'int i;' > conftest.$ac_ext 6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6507 (eval $ac_compile) 2>&5 6508 ac_status=$? 6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6510 test $ac_status = 0; }; then 6511 case `/usr/bin/file conftest.o` in 6512 *64-bit*) 6513 case $lt_cv_prog_gnu_ld in 6514 yes*) 6515 case $host in 6516 i?86-*-solaris*|x86_64-*-solaris*) 6517 LD="${LD-ld} -m elf_x86_64" 6518 ;; 6519 sparc*-*-solaris*) 6520 LD="${LD-ld} -m elf64_sparc" 6521 ;; 6522 esac 6523 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6524 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6525 LD=${LD-ld}_sol2 6526 fi 6527 ;; 6528 *) 6529 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6530 LD="${LD-ld} -64" 6531 fi 6532 ;; 6533 esac 6534 ;; 6535 esac 6536 fi 6537 rm -rf conftest* 6538 ;; 6539esac 6540 6541need_locks=$enable_libtool_lock 6542 6543if test -n "$ac_tool_prefix"; then 6544 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6545set dummy ${ac_tool_prefix}mt; ac_word=$2 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6547$as_echo_n "checking for $ac_word... " >&6; } 6548if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 if test -n "$MANIFEST_TOOL"; then 6552 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6553else 6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555for as_dir in $PATH 6556do 6557 IFS=$as_save_IFS 6558 test -z "$as_dir" && as_dir=. 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6561 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565done 6566 done 6567IFS=$as_save_IFS 6568 6569fi 6570fi 6571MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6572if test -n "$MANIFEST_TOOL"; then 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6574$as_echo "$MANIFEST_TOOL" >&6; } 6575else 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6577$as_echo "no" >&6; } 6578fi 6579 6580 6581fi 6582if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6583 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6584 # Extract the first word of "mt", so it can be a program name with args. 6585set dummy mt; ac_word=$2 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6587$as_echo_n "checking for $ac_word... " >&6; } 6588if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590else 6591 if test -n "$ac_ct_MANIFEST_TOOL"; then 6592 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6593else 6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595for as_dir in $PATH 6596do 6597 IFS=$as_save_IFS 6598 test -z "$as_dir" && as_dir=. 6599 for ac_exec_ext in '' $ac_executable_extensions; do 6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6601 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6603 break 2 6604 fi 6605done 6606 done 6607IFS=$as_save_IFS 6608 6609fi 6610fi 6611ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6612if test -n "$ac_ct_MANIFEST_TOOL"; then 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6614$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6615else 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6617$as_echo "no" >&6; } 6618fi 6619 6620 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6621 MANIFEST_TOOL=":" 6622 else 6623 case $cross_compiling:$ac_tool_warned in 6624yes:) 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6627ac_tool_warned=yes ;; 6628esac 6629 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6630 fi 6631else 6632 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6633fi 6634 6635test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6637$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6638if ${lt_cv_path_mainfest_tool+:} false; then : 6639 $as_echo_n "(cached) " >&6 6640else 6641 lt_cv_path_mainfest_tool=no 6642 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6643 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6644 cat conftest.err >&5 6645 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6646 lt_cv_path_mainfest_tool=yes 6647 fi 6648 rm -f conftest* 6649fi 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6651$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6652if test yes != "$lt_cv_path_mainfest_tool"; then 6653 MANIFEST_TOOL=: 6654fi 6655 6656 6657 6658 6659 6660 6661 case $host_os in 6662 rhapsody* | darwin*) 6663 if test -n "$ac_tool_prefix"; then 6664 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6665set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6667$as_echo_n "checking for $ac_word... " >&6; } 6668if ${ac_cv_prog_DSYMUTIL+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 if test -n "$DSYMUTIL"; then 6672 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6673else 6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675for as_dir in $PATH 6676do 6677 IFS=$as_save_IFS 6678 test -z "$as_dir" && as_dir=. 6679 for ac_exec_ext in '' $ac_executable_extensions; do 6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6681 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6683 break 2 6684 fi 6685done 6686 done 6687IFS=$as_save_IFS 6688 6689fi 6690fi 6691DSYMUTIL=$ac_cv_prog_DSYMUTIL 6692if test -n "$DSYMUTIL"; then 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6694$as_echo "$DSYMUTIL" >&6; } 6695else 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6697$as_echo "no" >&6; } 6698fi 6699 6700 6701fi 6702if test -z "$ac_cv_prog_DSYMUTIL"; then 6703 ac_ct_DSYMUTIL=$DSYMUTIL 6704 # Extract the first word of "dsymutil", so it can be a program name with args. 6705set dummy dsymutil; ac_word=$2 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6707$as_echo_n "checking for $ac_word... " >&6; } 6708if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 if test -n "$ac_ct_DSYMUTIL"; then 6712 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6713else 6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715for as_dir in $PATH 6716do 6717 IFS=$as_save_IFS 6718 test -z "$as_dir" && as_dir=. 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6721 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725done 6726 done 6727IFS=$as_save_IFS 6728 6729fi 6730fi 6731ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6732if test -n "$ac_ct_DSYMUTIL"; then 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6734$as_echo "$ac_ct_DSYMUTIL" >&6; } 6735else 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6737$as_echo "no" >&6; } 6738fi 6739 6740 if test "x$ac_ct_DSYMUTIL" = x; then 6741 DSYMUTIL=":" 6742 else 6743 case $cross_compiling:$ac_tool_warned in 6744yes:) 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6747ac_tool_warned=yes ;; 6748esac 6749 DSYMUTIL=$ac_ct_DSYMUTIL 6750 fi 6751else 6752 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6753fi 6754 6755 if test -n "$ac_tool_prefix"; then 6756 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6757set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6759$as_echo_n "checking for $ac_word... " >&6; } 6760if ${ac_cv_prog_NMEDIT+:} false; then : 6761 $as_echo_n "(cached) " >&6 6762else 6763 if test -n "$NMEDIT"; then 6764 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6765else 6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6767for as_dir in $PATH 6768do 6769 IFS=$as_save_IFS 6770 test -z "$as_dir" && as_dir=. 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6773 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777done 6778 done 6779IFS=$as_save_IFS 6780 6781fi 6782fi 6783NMEDIT=$ac_cv_prog_NMEDIT 6784if test -n "$NMEDIT"; then 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6786$as_echo "$NMEDIT" >&6; } 6787else 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6789$as_echo "no" >&6; } 6790fi 6791 6792 6793fi 6794if test -z "$ac_cv_prog_NMEDIT"; then 6795 ac_ct_NMEDIT=$NMEDIT 6796 # Extract the first word of "nmedit", so it can be a program name with args. 6797set dummy nmedit; ac_word=$2 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6799$as_echo_n "checking for $ac_word... " >&6; } 6800if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6801 $as_echo_n "(cached) " >&6 6802else 6803 if test -n "$ac_ct_NMEDIT"; then 6804 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6805else 6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6807for as_dir in $PATH 6808do 6809 IFS=$as_save_IFS 6810 test -z "$as_dir" && as_dir=. 6811 for ac_exec_ext in '' $ac_executable_extensions; do 6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6813 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6815 break 2 6816 fi 6817done 6818 done 6819IFS=$as_save_IFS 6820 6821fi 6822fi 6823ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6824if test -n "$ac_ct_NMEDIT"; then 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6826$as_echo "$ac_ct_NMEDIT" >&6; } 6827else 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6829$as_echo "no" >&6; } 6830fi 6831 6832 if test "x$ac_ct_NMEDIT" = x; then 6833 NMEDIT=":" 6834 else 6835 case $cross_compiling:$ac_tool_warned in 6836yes:) 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6839ac_tool_warned=yes ;; 6840esac 6841 NMEDIT=$ac_ct_NMEDIT 6842 fi 6843else 6844 NMEDIT="$ac_cv_prog_NMEDIT" 6845fi 6846 6847 if test -n "$ac_tool_prefix"; then 6848 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6849set dummy ${ac_tool_prefix}lipo; ac_word=$2 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6851$as_echo_n "checking for $ac_word... " >&6; } 6852if ${ac_cv_prog_LIPO+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 if test -n "$LIPO"; then 6856 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6857else 6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6859for as_dir in $PATH 6860do 6861 IFS=$as_save_IFS 6862 test -z "$as_dir" && as_dir=. 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6865 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6867 break 2 6868 fi 6869done 6870 done 6871IFS=$as_save_IFS 6872 6873fi 6874fi 6875LIPO=$ac_cv_prog_LIPO 6876if test -n "$LIPO"; then 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6878$as_echo "$LIPO" >&6; } 6879else 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6881$as_echo "no" >&6; } 6882fi 6883 6884 6885fi 6886if test -z "$ac_cv_prog_LIPO"; then 6887 ac_ct_LIPO=$LIPO 6888 # Extract the first word of "lipo", so it can be a program name with args. 6889set dummy lipo; ac_word=$2 6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6891$as_echo_n "checking for $ac_word... " >&6; } 6892if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 if test -n "$ac_ct_LIPO"; then 6896 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6897else 6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6899for as_dir in $PATH 6900do 6901 IFS=$as_save_IFS 6902 test -z "$as_dir" && as_dir=. 6903 for ac_exec_ext in '' $ac_executable_extensions; do 6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6905 ac_cv_prog_ac_ct_LIPO="lipo" 6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6907 break 2 6908 fi 6909done 6910 done 6911IFS=$as_save_IFS 6912 6913fi 6914fi 6915ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6916if test -n "$ac_ct_LIPO"; then 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6918$as_echo "$ac_ct_LIPO" >&6; } 6919else 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6921$as_echo "no" >&6; } 6922fi 6923 6924 if test "x$ac_ct_LIPO" = x; then 6925 LIPO=":" 6926 else 6927 case $cross_compiling:$ac_tool_warned in 6928yes:) 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6931ac_tool_warned=yes ;; 6932esac 6933 LIPO=$ac_ct_LIPO 6934 fi 6935else 6936 LIPO="$ac_cv_prog_LIPO" 6937fi 6938 6939 if test -n "$ac_tool_prefix"; then 6940 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6941set dummy ${ac_tool_prefix}otool; ac_word=$2 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6943$as_echo_n "checking for $ac_word... " >&6; } 6944if ${ac_cv_prog_OTOOL+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 if test -n "$OTOOL"; then 6948 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6949else 6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961done 6962 done 6963IFS=$as_save_IFS 6964 6965fi 6966fi 6967OTOOL=$ac_cv_prog_OTOOL 6968if test -n "$OTOOL"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6970$as_echo "$OTOOL" >&6; } 6971else 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6973$as_echo "no" >&6; } 6974fi 6975 6976 6977fi 6978if test -z "$ac_cv_prog_OTOOL"; then 6979 ac_ct_OTOOL=$OTOOL 6980 # Extract the first word of "otool", so it can be a program name with args. 6981set dummy otool; ac_word=$2 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6983$as_echo_n "checking for $ac_word... " >&6; } 6984if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986else 6987 if test -n "$ac_ct_OTOOL"; then 6988 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6989else 6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6991for as_dir in $PATH 6992do 6993 IFS=$as_save_IFS 6994 test -z "$as_dir" && as_dir=. 6995 for ac_exec_ext in '' $ac_executable_extensions; do 6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6997 ac_cv_prog_ac_ct_OTOOL="otool" 6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6999 break 2 7000 fi 7001done 7002 done 7003IFS=$as_save_IFS 7004 7005fi 7006fi 7007ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7008if test -n "$ac_ct_OTOOL"; then 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7010$as_echo "$ac_ct_OTOOL" >&6; } 7011else 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7013$as_echo "no" >&6; } 7014fi 7015 7016 if test "x$ac_ct_OTOOL" = x; then 7017 OTOOL=":" 7018 else 7019 case $cross_compiling:$ac_tool_warned in 7020yes:) 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7023ac_tool_warned=yes ;; 7024esac 7025 OTOOL=$ac_ct_OTOOL 7026 fi 7027else 7028 OTOOL="$ac_cv_prog_OTOOL" 7029fi 7030 7031 if test -n "$ac_tool_prefix"; then 7032 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7033set dummy ${ac_tool_prefix}otool64; ac_word=$2 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7035$as_echo_n "checking for $ac_word... " >&6; } 7036if ${ac_cv_prog_OTOOL64+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 if test -n "$OTOOL64"; then 7040 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7041else 7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7043for as_dir in $PATH 7044do 7045 IFS=$as_save_IFS 7046 test -z "$as_dir" && as_dir=. 7047 for ac_exec_ext in '' $ac_executable_extensions; do 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7049 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7051 break 2 7052 fi 7053done 7054 done 7055IFS=$as_save_IFS 7056 7057fi 7058fi 7059OTOOL64=$ac_cv_prog_OTOOL64 7060if test -n "$OTOOL64"; then 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7062$as_echo "$OTOOL64" >&6; } 7063else 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7065$as_echo "no" >&6; } 7066fi 7067 7068 7069fi 7070if test -z "$ac_cv_prog_OTOOL64"; then 7071 ac_ct_OTOOL64=$OTOOL64 7072 # Extract the first word of "otool64", so it can be a program name with args. 7073set dummy otool64; ac_word=$2 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7075$as_echo_n "checking for $ac_word... " >&6; } 7076if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7077 $as_echo_n "(cached) " >&6 7078else 7079 if test -n "$ac_ct_OTOOL64"; then 7080 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7081else 7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7083for as_dir in $PATH 7084do 7085 IFS=$as_save_IFS 7086 test -z "$as_dir" && as_dir=. 7087 for ac_exec_ext in '' $ac_executable_extensions; do 7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7089 ac_cv_prog_ac_ct_OTOOL64="otool64" 7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7091 break 2 7092 fi 7093done 7094 done 7095IFS=$as_save_IFS 7096 7097fi 7098fi 7099ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7100if test -n "$ac_ct_OTOOL64"; then 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7102$as_echo "$ac_ct_OTOOL64" >&6; } 7103else 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7105$as_echo "no" >&6; } 7106fi 7107 7108 if test "x$ac_ct_OTOOL64" = x; then 7109 OTOOL64=":" 7110 else 7111 case $cross_compiling:$ac_tool_warned in 7112yes:) 7113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7115ac_tool_warned=yes ;; 7116esac 7117 OTOOL64=$ac_ct_OTOOL64 7118 fi 7119else 7120 OTOOL64="$ac_cv_prog_OTOOL64" 7121fi 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7150$as_echo_n "checking for -single_module linker flag... " >&6; } 7151if ${lt_cv_apple_cc_single_mod+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 lt_cv_apple_cc_single_mod=no 7155 if test -z "$LT_MULTI_MODULE"; then 7156 # By default we will add the -single_module flag. You can override 7157 # by either setting the environment variable LT_MULTI_MODULE 7158 # non-empty at configure time, or by adding -multi_module to the 7159 # link flags. 7160 rm -rf libconftest.dylib* 7161 echo "int foo(void){return 1;}" > conftest.c 7162 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7163-dynamiclib -Wl,-single_module conftest.c" >&5 7164 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7165 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7166 _lt_result=$? 7167 # If there is a non-empty error log, and "single_module" 7168 # appears in it, assume the flag caused a linker warning 7169 if test -s conftest.err && $GREP single_module conftest.err; then 7170 cat conftest.err >&5 7171 # Otherwise, if the output was created with a 0 exit code from 7172 # the compiler, it worked. 7173 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7174 lt_cv_apple_cc_single_mod=yes 7175 else 7176 cat conftest.err >&5 7177 fi 7178 rm -rf libconftest.dylib* 7179 rm -f conftest.* 7180 fi 7181fi 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7183$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7184 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7186$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7187if ${lt_cv_ld_exported_symbols_list+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 lt_cv_ld_exported_symbols_list=no 7191 save_LDFLAGS=$LDFLAGS 7192 echo "_main" > conftest.sym 7193 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7195/* end confdefs.h. */ 7196 7197int 7198main () 7199{ 7200 7201 ; 7202 return 0; 7203} 7204_ACEOF 7205if ac_fn_c_try_link "$LINENO"; then : 7206 lt_cv_ld_exported_symbols_list=yes 7207else 7208 lt_cv_ld_exported_symbols_list=no 7209fi 7210rm -f core conftest.err conftest.$ac_objext \ 7211 conftest$ac_exeext conftest.$ac_ext 7212 LDFLAGS=$save_LDFLAGS 7213 7214fi 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7216$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7217 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7219$as_echo_n "checking for -force_load linker flag... " >&6; } 7220if ${lt_cv_ld_force_load+:} false; then : 7221 $as_echo_n "(cached) " >&6 7222else 7223 lt_cv_ld_force_load=no 7224 cat > conftest.c << _LT_EOF 7225int forced_loaded() { return 2;} 7226_LT_EOF 7227 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7228 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7229 echo "$AR cru libconftest.a conftest.o" >&5 7230 $AR cru libconftest.a conftest.o 2>&5 7231 echo "$RANLIB libconftest.a" >&5 7232 $RANLIB libconftest.a 2>&5 7233 cat > conftest.c << _LT_EOF 7234int main() { return 0;} 7235_LT_EOF 7236 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7237 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7238 _lt_result=$? 7239 if test -s conftest.err && $GREP force_load conftest.err; then 7240 cat conftest.err >&5 7241 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7242 lt_cv_ld_force_load=yes 7243 else 7244 cat conftest.err >&5 7245 fi 7246 rm -f conftest.err libconftest.a conftest conftest.c 7247 rm -rf conftest.dSYM 7248 7249fi 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7251$as_echo "$lt_cv_ld_force_load" >&6; } 7252 case $host_os in 7253 rhapsody* | darwin1.[012]) 7254 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7255 darwin1.*) 7256 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7257 darwin*) # darwin 5.x on 7258 # if running on 10.5 or later, the deployment target defaults 7259 # to the OS version, if on x86, and 10.4, the deployment 7260 # target defaults to 10.4. Don't you love it? 7261 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7262 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7263 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7264 10.[012][,.]*) 7265 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7266 10.*) 7267 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7268 esac 7269 ;; 7270 esac 7271 if test yes = "$lt_cv_apple_cc_single_mod"; then 7272 _lt_dar_single_mod='$single_module' 7273 fi 7274 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7275 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7276 else 7277 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7278 fi 7279 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7280 _lt_dsymutil='~$DSYMUTIL $lib || :' 7281 else 7282 _lt_dsymutil= 7283 fi 7284 ;; 7285 esac 7286 7287# func_munge_path_list VARIABLE PATH 7288# ----------------------------------- 7289# VARIABLE is name of variable containing _space_ separated list of 7290# directories to be munged by the contents of PATH, which is string 7291# having a format: 7292# "DIR[:DIR]:" 7293# string "DIR[ DIR]" will be prepended to VARIABLE 7294# ":DIR[:DIR]" 7295# string "DIR[ DIR]" will be appended to VARIABLE 7296# "DIRP[:DIRP]::[DIRA:]DIRA" 7297# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7298# "DIRA[ DIRA]" will be appended to VARIABLE 7299# "DIR[:DIR]" 7300# VARIABLE will be replaced by "DIR[ DIR]" 7301func_munge_path_list () 7302{ 7303 case x$2 in 7304 x) 7305 ;; 7306 *:) 7307 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7308 ;; 7309 x:*) 7310 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7311 ;; 7312 *::*) 7313 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7314 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7315 ;; 7316 *) 7317 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7318 ;; 7319 esac 7320} 7321 7322ac_ext=c 7323ac_cpp='$CPP $CPPFLAGS' 7324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7326ac_compiler_gnu=$ac_cv_c_compiler_gnu 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7328$as_echo_n "checking how to run the C preprocessor... " >&6; } 7329# On Suns, sometimes $CPP names a directory. 7330if test -n "$CPP" && test -d "$CPP"; then 7331 CPP= 7332fi 7333if test -z "$CPP"; then 7334 if ${ac_cv_prog_CPP+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 # Double quotes because CPP needs to be expanded 7338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7339 do 7340 ac_preproc_ok=false 7341for ac_c_preproc_warn_flag in '' yes 7342do 7343 # Use a header file that comes with gcc, so configuring glibc 7344 # with a fresh cross-compiler works. 7345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7346 # <limits.h> exists even on freestanding compilers. 7347 # On the NeXT, cc -E runs the code through the compiler's parser, 7348 # not just through cpp. "Syntax error" is here to catch this case. 7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7350/* end confdefs.h. */ 7351#ifdef __STDC__ 7352# include <limits.h> 7353#else 7354# include <assert.h> 7355#endif 7356 Syntax error 7357_ACEOF 7358if ac_fn_c_try_cpp "$LINENO"; then : 7359 7360else 7361 # Broken: fails on valid input. 7362continue 7363fi 7364rm -f conftest.err conftest.i conftest.$ac_ext 7365 7366 # OK, works on sane cases. Now check whether nonexistent headers 7367 # can be detected and how. 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370#include <ac_nonexistent.h> 7371_ACEOF 7372if ac_fn_c_try_cpp "$LINENO"; then : 7373 # Broken: success on invalid input. 7374continue 7375else 7376 # Passes both tests. 7377ac_preproc_ok=: 7378break 7379fi 7380rm -f conftest.err conftest.i conftest.$ac_ext 7381 7382done 7383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7384rm -f conftest.i conftest.err conftest.$ac_ext 7385if $ac_preproc_ok; then : 7386 break 7387fi 7388 7389 done 7390 ac_cv_prog_CPP=$CPP 7391 7392fi 7393 CPP=$ac_cv_prog_CPP 7394else 7395 ac_cv_prog_CPP=$CPP 7396fi 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7398$as_echo "$CPP" >&6; } 7399ac_preproc_ok=false 7400for ac_c_preproc_warn_flag in '' yes 7401do 7402 # Use a header file that comes with gcc, so configuring glibc 7403 # with a fresh cross-compiler works. 7404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7405 # <limits.h> exists even on freestanding compilers. 7406 # On the NeXT, cc -E runs the code through the compiler's parser, 7407 # not just through cpp. "Syntax error" is here to catch this case. 7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7409/* end confdefs.h. */ 7410#ifdef __STDC__ 7411# include <limits.h> 7412#else 7413# include <assert.h> 7414#endif 7415 Syntax error 7416_ACEOF 7417if ac_fn_c_try_cpp "$LINENO"; then : 7418 7419else 7420 # Broken: fails on valid input. 7421continue 7422fi 7423rm -f conftest.err conftest.i conftest.$ac_ext 7424 7425 # OK, works on sane cases. Now check whether nonexistent headers 7426 # can be detected and how. 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429#include <ac_nonexistent.h> 7430_ACEOF 7431if ac_fn_c_try_cpp "$LINENO"; then : 7432 # Broken: success on invalid input. 7433continue 7434else 7435 # Passes both tests. 7436ac_preproc_ok=: 7437break 7438fi 7439rm -f conftest.err conftest.i conftest.$ac_ext 7440 7441done 7442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7443rm -f conftest.i conftest.err conftest.$ac_ext 7444if $ac_preproc_ok; then : 7445 7446else 7447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7449as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7450See \`config.log' for more details" "$LINENO" 5; } 7451fi 7452 7453ac_ext=c 7454ac_cpp='$CPP $CPPFLAGS' 7455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7457ac_compiler_gnu=$ac_cv_c_compiler_gnu 7458 7459 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7461$as_echo_n "checking for ANSI C header files... " >&6; } 7462if ${ac_cv_header_stdc+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7466/* end confdefs.h. */ 7467#include <stdlib.h> 7468#include <stdarg.h> 7469#include <string.h> 7470#include <float.h> 7471 7472int 7473main () 7474{ 7475 7476 ; 7477 return 0; 7478} 7479_ACEOF 7480if ac_fn_c_try_compile "$LINENO"; then : 7481 ac_cv_header_stdc=yes 7482else 7483 ac_cv_header_stdc=no 7484fi 7485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7486 7487if test $ac_cv_header_stdc = yes; then 7488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491#include <string.h> 7492 7493_ACEOF 7494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7495 $EGREP "memchr" >/dev/null 2>&1; then : 7496 7497else 7498 ac_cv_header_stdc=no 7499fi 7500rm -f conftest* 7501 7502fi 7503 7504if test $ac_cv_header_stdc = yes; then 7505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507/* end confdefs.h. */ 7508#include <stdlib.h> 7509 7510_ACEOF 7511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7512 $EGREP "free" >/dev/null 2>&1; then : 7513 7514else 7515 ac_cv_header_stdc=no 7516fi 7517rm -f conftest* 7518 7519fi 7520 7521if test $ac_cv_header_stdc = yes; then 7522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7523 if test "$cross_compiling" = yes; then : 7524 : 7525else 7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7527/* end confdefs.h. */ 7528#include <ctype.h> 7529#include <stdlib.h> 7530#if ((' ' & 0x0FF) == 0x020) 7531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7533#else 7534# define ISLOWER(c) \ 7535 (('a' <= (c) && (c) <= 'i') \ 7536 || ('j' <= (c) && (c) <= 'r') \ 7537 || ('s' <= (c) && (c) <= 'z')) 7538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7539#endif 7540 7541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7542int 7543main () 7544{ 7545 int i; 7546 for (i = 0; i < 256; i++) 7547 if (XOR (islower (i), ISLOWER (i)) 7548 || toupper (i) != TOUPPER (i)) 7549 return 2; 7550 return 0; 7551} 7552_ACEOF 7553if ac_fn_c_try_run "$LINENO"; then : 7554 7555else 7556 ac_cv_header_stdc=no 7557fi 7558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7559 conftest.$ac_objext conftest.beam conftest.$ac_ext 7560fi 7561 7562fi 7563fi 7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7565$as_echo "$ac_cv_header_stdc" >&6; } 7566if test $ac_cv_header_stdc = yes; then 7567 7568$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7569 7570fi 7571 7572# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7573for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7574 inttypes.h stdint.h unistd.h 7575do : 7576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7577ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7578" 7579if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7580 cat >>confdefs.h <<_ACEOF 7581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7582_ACEOF 7583 7584fi 7585 7586done 7587 7588 7589for ac_header in dlfcn.h 7590do : 7591 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7592" 7593if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7594 cat >>confdefs.h <<_ACEOF 7595#define HAVE_DLFCN_H 1 7596_ACEOF 7597 7598fi 7599 7600done 7601 7602 7603 7604 7605 7606# Set options 7607 7608 7609 7610 enable_dlopen=no 7611 7612 7613 enable_win32_dll=no 7614 7615 7616 # Check whether --enable-shared was given. 7617if test "${enable_shared+set}" = set; then : 7618 enableval=$enable_shared; p=${PACKAGE-default} 7619 case $enableval in 7620 yes) enable_shared=yes ;; 7621 no) enable_shared=no ;; 7622 *) 7623 enable_shared=no 7624 # Look at the argument we got. We use all the common list separators. 7625 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7626 for pkg in $enableval; do 7627 IFS=$lt_save_ifs 7628 if test "X$pkg" = "X$p"; then 7629 enable_shared=yes 7630 fi 7631 done 7632 IFS=$lt_save_ifs 7633 ;; 7634 esac 7635else 7636 enable_shared=yes 7637fi 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 # Check whether --enable-static was given. 7648if test "${enable_static+set}" = set; then : 7649 enableval=$enable_static; p=${PACKAGE-default} 7650 case $enableval in 7651 yes) enable_static=yes ;; 7652 no) enable_static=no ;; 7653 *) 7654 enable_static=no 7655 # Look at the argument we got. We use all the common list separators. 7656 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7657 for pkg in $enableval; do 7658 IFS=$lt_save_ifs 7659 if test "X$pkg" = "X$p"; then 7660 enable_static=yes 7661 fi 7662 done 7663 IFS=$lt_save_ifs 7664 ;; 7665 esac 7666else 7667 enable_static=yes 7668fi 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679# Check whether --with-pic was given. 7680if test "${with_pic+set}" = set; then : 7681 withval=$with_pic; lt_p=${PACKAGE-default} 7682 case $withval in 7683 yes|no) pic_mode=$withval ;; 7684 *) 7685 pic_mode=default 7686 # Look at the argument we got. We use all the common list separators. 7687 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7688 for lt_pkg in $withval; do 7689 IFS=$lt_save_ifs 7690 if test "X$lt_pkg" = "X$lt_p"; then 7691 pic_mode=yes 7692 fi 7693 done 7694 IFS=$lt_save_ifs 7695 ;; 7696 esac 7697else 7698 pic_mode=default 7699fi 7700 7701 7702 7703 7704 7705 7706 7707 7708 # Check whether --enable-fast-install was given. 7709if test "${enable_fast_install+set}" = set; then : 7710 enableval=$enable_fast_install; p=${PACKAGE-default} 7711 case $enableval in 7712 yes) enable_fast_install=yes ;; 7713 no) enable_fast_install=no ;; 7714 *) 7715 enable_fast_install=no 7716 # Look at the argument we got. We use all the common list separators. 7717 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7718 for pkg in $enableval; do 7719 IFS=$lt_save_ifs 7720 if test "X$pkg" = "X$p"; then 7721 enable_fast_install=yes 7722 fi 7723 done 7724 IFS=$lt_save_ifs 7725 ;; 7726 esac 7727else 7728 enable_fast_install=yes 7729fi 7730 7731 7732 7733 7734 7735 7736 7737 7738 shared_archive_member_spec= 7739case $host,$enable_shared in 7740power*-*-aix[5-9]*,yes) 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7742$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7743 7744# Check whether --with-aix-soname was given. 7745if test "${with_aix_soname+set}" = set; then : 7746 withval=$with_aix_soname; case $withval in 7747 aix|svr4|both) 7748 ;; 7749 *) 7750 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7751 ;; 7752 esac 7753 lt_cv_with_aix_soname=$with_aix_soname 7754else 7755 if ${lt_cv_with_aix_soname+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 lt_cv_with_aix_soname=aix 7759fi 7760 7761 with_aix_soname=$lt_cv_with_aix_soname 7762fi 7763 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7765$as_echo "$with_aix_soname" >&6; } 7766 if test aix != "$with_aix_soname"; then 7767 # For the AIX way of multilib, we name the shared archive member 7768 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7769 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7770 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7771 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7772 if test 64 = "${OBJECT_MODE-32}"; then 7773 shared_archive_member_spec=shr_64 7774 else 7775 shared_archive_member_spec=shr 7776 fi 7777 fi 7778 ;; 7779*) 7780 with_aix_soname=aix 7781 ;; 7782esac 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793# This can be used to rebuild libtool when needed 7794LIBTOOL_DEPS=$ltmain 7795 7796# Always use our own libtool. 7797LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828test -z "$LN_S" && LN_S="ln -s" 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843if test -n "${ZSH_VERSION+set}"; then 7844 setopt NO_GLOB_SUBST 7845fi 7846 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7848$as_echo_n "checking for objdir... " >&6; } 7849if ${lt_cv_objdir+:} false; then : 7850 $as_echo_n "(cached) " >&6 7851else 7852 rm -f .libs 2>/dev/null 7853mkdir .libs 2>/dev/null 7854if test -d .libs; then 7855 lt_cv_objdir=.libs 7856else 7857 # MS-DOS does not allow filenames that begin with a dot. 7858 lt_cv_objdir=_libs 7859fi 7860rmdir .libs 2>/dev/null 7861fi 7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7863$as_echo "$lt_cv_objdir" >&6; } 7864objdir=$lt_cv_objdir 7865 7866 7867 7868 7869 7870cat >>confdefs.h <<_ACEOF 7871#define LT_OBJDIR "$lt_cv_objdir/" 7872_ACEOF 7873 7874 7875 7876 7877case $host_os in 7878aix3*) 7879 # AIX sometimes has problems with the GCC collect2 program. For some 7880 # reason, if we set the COLLECT_NAMES environment variable, the problems 7881 # vanish in a puff of smoke. 7882 if test set != "${COLLECT_NAMES+set}"; then 7883 COLLECT_NAMES= 7884 export COLLECT_NAMES 7885 fi 7886 ;; 7887esac 7888 7889# Global variables: 7890ofile=libtool 7891can_build_shared=yes 7892 7893# All known linkers require a '.a' archive for static linking (except MSVC, 7894# which needs '.lib'). 7895libext=a 7896 7897with_gnu_ld=$lt_cv_prog_gnu_ld 7898 7899old_CC=$CC 7900old_CFLAGS=$CFLAGS 7901 7902# Set sane defaults for various variables 7903test -z "$CC" && CC=cc 7904test -z "$LTCC" && LTCC=$CC 7905test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7906test -z "$LD" && LD=ld 7907test -z "$ac_objext" && ac_objext=o 7908 7909func_cc_basename $compiler 7910cc_basename=$func_cc_basename_result 7911 7912 7913# Only perform the check for file, if the check method requires it 7914test -z "$MAGIC_CMD" && MAGIC_CMD=file 7915case $deplibs_check_method in 7916file_magic*) 7917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7919$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7920if ${lt_cv_path_MAGIC_CMD+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 case $MAGIC_CMD in 7924[\\/*] | ?:[\\/]*) 7925 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7926 ;; 7927*) 7928 lt_save_MAGIC_CMD=$MAGIC_CMD 7929 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7931 for ac_dir in $ac_dummy; do 7932 IFS=$lt_save_ifs 7933 test -z "$ac_dir" && ac_dir=. 7934 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7935 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7936 if test -n "$file_magic_test_file"; then 7937 case $deplibs_check_method in 7938 "file_magic "*) 7939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7940 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7942 $EGREP "$file_magic_regex" > /dev/null; then 7943 : 7944 else 7945 cat <<_LT_EOF 1>&2 7946 7947*** Warning: the command libtool uses to detect shared libraries, 7948*** $file_magic_cmd, produces output that libtool cannot recognize. 7949*** The result is that libtool may fail to recognize shared libraries 7950*** as such. This will affect the creation of libtool libraries that 7951*** depend on shared libraries, but programs linked with such libtool 7952*** libraries will work regardless of this problem. Nevertheless, you 7953*** may want to report the problem to your system manager and/or to 7954*** bug-libtool@gnu.org 7955 7956_LT_EOF 7957 fi ;; 7958 esac 7959 fi 7960 break 7961 fi 7962 done 7963 IFS=$lt_save_ifs 7964 MAGIC_CMD=$lt_save_MAGIC_CMD 7965 ;; 7966esac 7967fi 7968 7969MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7970if test -n "$MAGIC_CMD"; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7972$as_echo "$MAGIC_CMD" >&6; } 7973else 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7975$as_echo "no" >&6; } 7976fi 7977 7978 7979 7980 7981 7982if test -z "$lt_cv_path_MAGIC_CMD"; then 7983 if test -n "$ac_tool_prefix"; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7985$as_echo_n "checking for file... " >&6; } 7986if ${lt_cv_path_MAGIC_CMD+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988else 7989 case $MAGIC_CMD in 7990[\\/*] | ?:[\\/]*) 7991 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7992 ;; 7993*) 7994 lt_save_MAGIC_CMD=$MAGIC_CMD 7995 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7997 for ac_dir in $ac_dummy; do 7998 IFS=$lt_save_ifs 7999 test -z "$ac_dir" && ac_dir=. 8000 if test -f "$ac_dir/file"; then 8001 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8002 if test -n "$file_magic_test_file"; then 8003 case $deplibs_check_method in 8004 "file_magic "*) 8005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8006 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8008 $EGREP "$file_magic_regex" > /dev/null; then 8009 : 8010 else 8011 cat <<_LT_EOF 1>&2 8012 8013*** Warning: the command libtool uses to detect shared libraries, 8014*** $file_magic_cmd, produces output that libtool cannot recognize. 8015*** The result is that libtool may fail to recognize shared libraries 8016*** as such. This will affect the creation of libtool libraries that 8017*** depend on shared libraries, but programs linked with such libtool 8018*** libraries will work regardless of this problem. Nevertheless, you 8019*** may want to report the problem to your system manager and/or to 8020*** bug-libtool@gnu.org 8021 8022_LT_EOF 8023 fi ;; 8024 esac 8025 fi 8026 break 8027 fi 8028 done 8029 IFS=$lt_save_ifs 8030 MAGIC_CMD=$lt_save_MAGIC_CMD 8031 ;; 8032esac 8033fi 8034 8035MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8036if test -n "$MAGIC_CMD"; then 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8038$as_echo "$MAGIC_CMD" >&6; } 8039else 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8041$as_echo "no" >&6; } 8042fi 8043 8044 8045 else 8046 MAGIC_CMD=: 8047 fi 8048fi 8049 8050 fi 8051 ;; 8052esac 8053 8054# Use C for the default configuration in the libtool script 8055 8056lt_save_CC=$CC 8057ac_ext=c 8058ac_cpp='$CPP $CPPFLAGS' 8059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8061ac_compiler_gnu=$ac_cv_c_compiler_gnu 8062 8063 8064# Source file extension for C test sources. 8065ac_ext=c 8066 8067# Object file extension for compiled C test sources. 8068objext=o 8069objext=$objext 8070 8071# Code to be used in simple compile tests 8072lt_simple_compile_test_code="int some_variable = 0;" 8073 8074# Code to be used in simple link tests 8075lt_simple_link_test_code='int main(){return(0);}' 8076 8077 8078 8079 8080 8081 8082 8083# If no C compiler was specified, use CC. 8084LTCC=${LTCC-"$CC"} 8085 8086# If no C compiler flags were specified, use CFLAGS. 8087LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8088 8089# Allow CC to be a program name with arguments. 8090compiler=$CC 8091 8092# Save the default compiler, since it gets overwritten when the other 8093# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8094compiler_DEFAULT=$CC 8095 8096# save warnings/boilerplate of simple test code 8097ac_outfile=conftest.$ac_objext 8098echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8099eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8100_lt_compiler_boilerplate=`cat conftest.err` 8101$RM conftest* 8102 8103ac_outfile=conftest.$ac_objext 8104echo "$lt_simple_link_test_code" >conftest.$ac_ext 8105eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8106_lt_linker_boilerplate=`cat conftest.err` 8107$RM -r conftest* 8108 8109 8110if test -n "$compiler"; then 8111 8112lt_prog_compiler_no_builtin_flag= 8113 8114if test yes = "$GCC"; then 8115 case $cc_basename in 8116 nvcc*) 8117 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8118 *) 8119 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8120 esac 8121 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8123$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8124if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8125 $as_echo_n "(cached) " >&6 8126else 8127 lt_cv_prog_compiler_rtti_exceptions=no 8128 ac_outfile=conftest.$ac_objext 8129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8130 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8131 # Insert the option either (1) after the last *FLAGS variable, or 8132 # (2) before a word containing "conftest.", or (3) at the end. 8133 # Note that $ac_compile itself does not contain backslashes and begins 8134 # with a dollar sign (not a hyphen), so the echo should work correctly. 8135 # The option is referenced via a variable to avoid confusing sed. 8136 lt_compile=`echo "$ac_compile" | $SED \ 8137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8139 -e 's:$: $lt_compiler_flag:'` 8140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8141 (eval "$lt_compile" 2>conftest.err) 8142 ac_status=$? 8143 cat conftest.err >&5 8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8145 if (exit $ac_status) && test -s "$ac_outfile"; then 8146 # The compiler can only warn and ignore the option if not recognized 8147 # So say no if there are warnings other than the usual output. 8148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8151 lt_cv_prog_compiler_rtti_exceptions=yes 8152 fi 8153 fi 8154 $RM conftest* 8155 8156fi 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8158$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8159 8160if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8161 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8162else 8163 : 8164fi 8165 8166fi 8167 8168 8169 8170 8171 8172 8173 lt_prog_compiler_wl= 8174lt_prog_compiler_pic= 8175lt_prog_compiler_static= 8176 8177 8178 if test yes = "$GCC"; then 8179 lt_prog_compiler_wl='-Wl,' 8180 lt_prog_compiler_static='-static' 8181 8182 case $host_os in 8183 aix*) 8184 # All AIX code is PIC. 8185 if test ia64 = "$host_cpu"; then 8186 # AIX 5 now supports IA64 processor 8187 lt_prog_compiler_static='-Bstatic' 8188 fi 8189 lt_prog_compiler_pic='-fPIC' 8190 ;; 8191 8192 amigaos*) 8193 case $host_cpu in 8194 powerpc) 8195 # see comment about AmigaOS4 .so support 8196 lt_prog_compiler_pic='-fPIC' 8197 ;; 8198 m68k) 8199 # FIXME: we need at least 68020 code to build shared libraries, but 8200 # adding the '-m68020' flag to GCC prevents building anything better, 8201 # like '-m68040'. 8202 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8203 ;; 8204 esac 8205 ;; 8206 8207 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8208 # PIC is the default for these OSes. 8209 ;; 8210 8211 mingw* | cygwin* | pw32* | os2* | cegcc*) 8212 # This hack is so that the source file can tell whether it is being 8213 # built for inclusion in a dll (and should export symbols for example). 8214 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8215 # (--disable-auto-import) libraries 8216 lt_prog_compiler_pic='-DDLL_EXPORT' 8217 case $host_os in 8218 os2*) 8219 lt_prog_compiler_static='$wl-static' 8220 ;; 8221 esac 8222 ;; 8223 8224 darwin* | rhapsody*) 8225 # PIC is the default on this platform 8226 # Common symbols not allowed in MH_DYLIB files 8227 lt_prog_compiler_pic='-fno-common' 8228 ;; 8229 8230 haiku*) 8231 # PIC is the default for Haiku. 8232 # The "-static" flag exists, but is broken. 8233 lt_prog_compiler_static= 8234 ;; 8235 8236 hpux*) 8237 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8238 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8239 # sets the default TLS model and affects inlining. 8240 case $host_cpu in 8241 hppa*64*) 8242 # +Z the default 8243 ;; 8244 *) 8245 lt_prog_compiler_pic='-fPIC' 8246 ;; 8247 esac 8248 ;; 8249 8250 interix[3-9]*) 8251 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8252 # Instead, we relocate shared libraries at runtime. 8253 ;; 8254 8255 msdosdjgpp*) 8256 # Just because we use GCC doesn't mean we suddenly get shared libraries 8257 # on systems that don't support them. 8258 lt_prog_compiler_can_build_shared=no 8259 enable_shared=no 8260 ;; 8261 8262 *nto* | *qnx*) 8263 # QNX uses GNU C++, but need to define -shared option too, otherwise 8264 # it will coredump. 8265 lt_prog_compiler_pic='-fPIC -shared' 8266 ;; 8267 8268 sysv4*MP*) 8269 if test -d /usr/nec; then 8270 lt_prog_compiler_pic=-Kconform_pic 8271 fi 8272 ;; 8273 8274 *) 8275 lt_prog_compiler_pic='-fPIC' 8276 ;; 8277 esac 8278 8279 case $cc_basename in 8280 nvcc*) # Cuda Compiler Driver 2.2 8281 lt_prog_compiler_wl='-Xlinker ' 8282 if test -n "$lt_prog_compiler_pic"; then 8283 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8284 fi 8285 ;; 8286 esac 8287 else 8288 # PORTME Check for flag to pass linker flags through the system compiler. 8289 case $host_os in 8290 aix*) 8291 lt_prog_compiler_wl='-Wl,' 8292 if test ia64 = "$host_cpu"; then 8293 # AIX 5 now supports IA64 processor 8294 lt_prog_compiler_static='-Bstatic' 8295 else 8296 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8297 fi 8298 ;; 8299 8300 darwin* | rhapsody*) 8301 # PIC is the default on this platform 8302 # Common symbols not allowed in MH_DYLIB files 8303 lt_prog_compiler_pic='-fno-common' 8304 case $cc_basename in 8305 nagfor*) 8306 # NAG Fortran compiler 8307 lt_prog_compiler_wl='-Wl,-Wl,,' 8308 lt_prog_compiler_pic='-PIC' 8309 lt_prog_compiler_static='-Bstatic' 8310 ;; 8311 esac 8312 ;; 8313 8314 mingw* | cygwin* | pw32* | os2* | cegcc*) 8315 # This hack is so that the source file can tell whether it is being 8316 # built for inclusion in a dll (and should export symbols for example). 8317 lt_prog_compiler_pic='-DDLL_EXPORT' 8318 case $host_os in 8319 os2*) 8320 lt_prog_compiler_static='$wl-static' 8321 ;; 8322 esac 8323 ;; 8324 8325 hpux9* | hpux10* | hpux11*) 8326 lt_prog_compiler_wl='-Wl,' 8327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8328 # not for PA HP-UX. 8329 case $host_cpu in 8330 hppa*64*|ia64*) 8331 # +Z the default 8332 ;; 8333 *) 8334 lt_prog_compiler_pic='+Z' 8335 ;; 8336 esac 8337 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8338 lt_prog_compiler_static='$wl-a ${wl}archive' 8339 ;; 8340 8341 irix5* | irix6* | nonstopux*) 8342 lt_prog_compiler_wl='-Wl,' 8343 # PIC (with -KPIC) is the default. 8344 lt_prog_compiler_static='-non_shared' 8345 ;; 8346 8347 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8348 case $cc_basename in 8349 # old Intel for x86_64, which still supported -KPIC. 8350 ecc*) 8351 lt_prog_compiler_wl='-Wl,' 8352 lt_prog_compiler_pic='-KPIC' 8353 lt_prog_compiler_static='-static' 8354 ;; 8355 # icc used to be incompatible with GCC. 8356 # ICC 10 doesn't accept -KPIC any more. 8357 icc* | ifort*) 8358 lt_prog_compiler_wl='-Wl,' 8359 lt_prog_compiler_pic='-fPIC' 8360 lt_prog_compiler_static='-static' 8361 ;; 8362 # Lahey Fortran 8.1. 8363 lf95*) 8364 lt_prog_compiler_wl='-Wl,' 8365 lt_prog_compiler_pic='--shared' 8366 lt_prog_compiler_static='--static' 8367 ;; 8368 nagfor*) 8369 # NAG Fortran compiler 8370 lt_prog_compiler_wl='-Wl,-Wl,,' 8371 lt_prog_compiler_pic='-PIC' 8372 lt_prog_compiler_static='-Bstatic' 8373 ;; 8374 tcc*) 8375 # Fabrice Bellard et al's Tiny C Compiler 8376 lt_prog_compiler_wl='-Wl,' 8377 lt_prog_compiler_pic='-fPIC' 8378 lt_prog_compiler_static='-static' 8379 ;; 8380 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8381 # Portland Group compilers (*not* the Pentium gcc compiler, 8382 # which looks to be a dead project) 8383 lt_prog_compiler_wl='-Wl,' 8384 lt_prog_compiler_pic='-fpic' 8385 lt_prog_compiler_static='-Bstatic' 8386 ;; 8387 ccc*) 8388 lt_prog_compiler_wl='-Wl,' 8389 # All Alpha code is PIC. 8390 lt_prog_compiler_static='-non_shared' 8391 ;; 8392 xl* | bgxl* | bgf* | mpixl*) 8393 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8394 lt_prog_compiler_wl='-Wl,' 8395 lt_prog_compiler_pic='-qpic' 8396 lt_prog_compiler_static='-qstaticlink' 8397 ;; 8398 *) 8399 case `$CC -V 2>&1 | sed 5q` in 8400 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8401 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8402 lt_prog_compiler_pic='-KPIC' 8403 lt_prog_compiler_static='-Bstatic' 8404 lt_prog_compiler_wl='' 8405 ;; 8406 *Sun\ F* | *Sun*Fortran*) 8407 lt_prog_compiler_pic='-KPIC' 8408 lt_prog_compiler_static='-Bstatic' 8409 lt_prog_compiler_wl='-Qoption ld ' 8410 ;; 8411 *Sun\ C*) 8412 # Sun C 5.9 8413 lt_prog_compiler_pic='-KPIC' 8414 lt_prog_compiler_static='-Bstatic' 8415 lt_prog_compiler_wl='-Wl,' 8416 ;; 8417 *Intel*\ [CF]*Compiler*) 8418 lt_prog_compiler_wl='-Wl,' 8419 lt_prog_compiler_pic='-fPIC' 8420 lt_prog_compiler_static='-static' 8421 ;; 8422 *Portland\ Group*) 8423 lt_prog_compiler_wl='-Wl,' 8424 lt_prog_compiler_pic='-fpic' 8425 lt_prog_compiler_static='-Bstatic' 8426 ;; 8427 esac 8428 ;; 8429 esac 8430 ;; 8431 8432 newsos6) 8433 lt_prog_compiler_pic='-KPIC' 8434 lt_prog_compiler_static='-Bstatic' 8435 ;; 8436 8437 *nto* | *qnx*) 8438 # QNX uses GNU C++, but need to define -shared option too, otherwise 8439 # it will coredump. 8440 lt_prog_compiler_pic='-fPIC -shared' 8441 ;; 8442 8443 osf3* | osf4* | osf5*) 8444 lt_prog_compiler_wl='-Wl,' 8445 # All OSF/1 code is PIC. 8446 lt_prog_compiler_static='-non_shared' 8447 ;; 8448 8449 rdos*) 8450 lt_prog_compiler_static='-non_shared' 8451 ;; 8452 8453 solaris*) 8454 lt_prog_compiler_pic='-KPIC' 8455 lt_prog_compiler_static='-Bstatic' 8456 case $cc_basename in 8457 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8458 lt_prog_compiler_wl='-Qoption ld ';; 8459 *) 8460 lt_prog_compiler_wl='-Wl,';; 8461 esac 8462 ;; 8463 8464 sunos4*) 8465 lt_prog_compiler_wl='-Qoption ld ' 8466 lt_prog_compiler_pic='-PIC' 8467 lt_prog_compiler_static='-Bstatic' 8468 ;; 8469 8470 sysv4 | sysv4.2uw2* | sysv4.3*) 8471 lt_prog_compiler_wl='-Wl,' 8472 lt_prog_compiler_pic='-KPIC' 8473 lt_prog_compiler_static='-Bstatic' 8474 ;; 8475 8476 sysv4*MP*) 8477 if test -d /usr/nec; then 8478 lt_prog_compiler_pic='-Kconform_pic' 8479 lt_prog_compiler_static='-Bstatic' 8480 fi 8481 ;; 8482 8483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8484 lt_prog_compiler_wl='-Wl,' 8485 lt_prog_compiler_pic='-KPIC' 8486 lt_prog_compiler_static='-Bstatic' 8487 ;; 8488 8489 unicos*) 8490 lt_prog_compiler_wl='-Wl,' 8491 lt_prog_compiler_can_build_shared=no 8492 ;; 8493 8494 uts4*) 8495 lt_prog_compiler_pic='-pic' 8496 lt_prog_compiler_static='-Bstatic' 8497 ;; 8498 8499 *) 8500 lt_prog_compiler_can_build_shared=no 8501 ;; 8502 esac 8503 fi 8504 8505case $host_os in 8506 # For platforms that do not support PIC, -DPIC is meaningless: 8507 *djgpp*) 8508 lt_prog_compiler_pic= 8509 ;; 8510 *) 8511 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8512 ;; 8513esac 8514 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8516$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8517if ${lt_cv_prog_compiler_pic+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519else 8520 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8521fi 8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8523$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8524lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8525 8526# 8527# Check to make sure the PIC flag actually works. 8528# 8529if test -n "$lt_prog_compiler_pic"; then 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8531$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8532if ${lt_cv_prog_compiler_pic_works+:} false; then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 lt_cv_prog_compiler_pic_works=no 8536 ac_outfile=conftest.$ac_objext 8537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8538 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8539 # Insert the option either (1) after the last *FLAGS variable, or 8540 # (2) before a word containing "conftest.", or (3) at the end. 8541 # Note that $ac_compile itself does not contain backslashes and begins 8542 # with a dollar sign (not a hyphen), so the echo should work correctly. 8543 # The option is referenced via a variable to avoid confusing sed. 8544 lt_compile=`echo "$ac_compile" | $SED \ 8545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8547 -e 's:$: $lt_compiler_flag:'` 8548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8549 (eval "$lt_compile" 2>conftest.err) 8550 ac_status=$? 8551 cat conftest.err >&5 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8553 if (exit $ac_status) && test -s "$ac_outfile"; then 8554 # The compiler can only warn and ignore the option if not recognized 8555 # So say no if there are warnings other than the usual output. 8556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8559 lt_cv_prog_compiler_pic_works=yes 8560 fi 8561 fi 8562 $RM conftest* 8563 8564fi 8565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8566$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8567 8568if test yes = "$lt_cv_prog_compiler_pic_works"; then 8569 case $lt_prog_compiler_pic in 8570 "" | " "*) ;; 8571 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8572 esac 8573else 8574 lt_prog_compiler_pic= 8575 lt_prog_compiler_can_build_shared=no 8576fi 8577 8578fi 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590# 8591# Check to make sure the static flag actually works. 8592# 8593wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8595$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8596if ${lt_cv_prog_compiler_static_works+:} false; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 lt_cv_prog_compiler_static_works=no 8600 save_LDFLAGS=$LDFLAGS 8601 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8602 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8603 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8604 # The linker can only warn and ignore the option if not recognized 8605 # So say no if there are warnings 8606 if test -s conftest.err; then 8607 # Append any errors to the config.log. 8608 cat conftest.err 1>&5 8609 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8611 if diff conftest.exp conftest.er2 >/dev/null; then 8612 lt_cv_prog_compiler_static_works=yes 8613 fi 8614 else 8615 lt_cv_prog_compiler_static_works=yes 8616 fi 8617 fi 8618 $RM -r conftest* 8619 LDFLAGS=$save_LDFLAGS 8620 8621fi 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8623$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8624 8625if test yes = "$lt_cv_prog_compiler_static_works"; then 8626 : 8627else 8628 lt_prog_compiler_static= 8629fi 8630 8631 8632 8633 8634 8635 8636 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8638$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8639if ${lt_cv_prog_compiler_c_o+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641else 8642 lt_cv_prog_compiler_c_o=no 8643 $RM -r conftest 2>/dev/null 8644 mkdir conftest 8645 cd conftest 8646 mkdir out 8647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8648 8649 lt_compiler_flag="-o out/conftest2.$ac_objext" 8650 # Insert the option either (1) after the last *FLAGS variable, or 8651 # (2) before a word containing "conftest.", or (3) at the end. 8652 # Note that $ac_compile itself does not contain backslashes and begins 8653 # with a dollar sign (not a hyphen), so the echo should work correctly. 8654 lt_compile=`echo "$ac_compile" | $SED \ 8655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8657 -e 's:$: $lt_compiler_flag:'` 8658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8659 (eval "$lt_compile" 2>out/conftest.err) 8660 ac_status=$? 8661 cat out/conftest.err >&5 8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8663 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8664 then 8665 # The compiler can only warn and ignore the option if not recognized 8666 # So say no if there are warnings 8667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8670 lt_cv_prog_compiler_c_o=yes 8671 fi 8672 fi 8673 chmod u+w . 2>&5 8674 $RM conftest* 8675 # SGI C++ compiler will create directory out/ii_files/ for 8676 # template instantiation 8677 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8678 $RM out/* && rmdir out 8679 cd .. 8680 $RM -r conftest 8681 $RM conftest* 8682 8683fi 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8685$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8686 8687 8688 8689 8690 8691 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8693$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8694if ${lt_cv_prog_compiler_c_o+:} false; then : 8695 $as_echo_n "(cached) " >&6 8696else 8697 lt_cv_prog_compiler_c_o=no 8698 $RM -r conftest 2>/dev/null 8699 mkdir conftest 8700 cd conftest 8701 mkdir out 8702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8703 8704 lt_compiler_flag="-o out/conftest2.$ac_objext" 8705 # Insert the option either (1) after the last *FLAGS variable, or 8706 # (2) before a word containing "conftest.", or (3) at the end. 8707 # Note that $ac_compile itself does not contain backslashes and begins 8708 # with a dollar sign (not a hyphen), so the echo should work correctly. 8709 lt_compile=`echo "$ac_compile" | $SED \ 8710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8712 -e 's:$: $lt_compiler_flag:'` 8713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8714 (eval "$lt_compile" 2>out/conftest.err) 8715 ac_status=$? 8716 cat out/conftest.err >&5 8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8718 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8719 then 8720 # The compiler can only warn and ignore the option if not recognized 8721 # So say no if there are warnings 8722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8723 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8724 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8725 lt_cv_prog_compiler_c_o=yes 8726 fi 8727 fi 8728 chmod u+w . 2>&5 8729 $RM conftest* 8730 # SGI C++ compiler will create directory out/ii_files/ for 8731 # template instantiation 8732 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8733 $RM out/* && rmdir out 8734 cd .. 8735 $RM -r conftest 8736 $RM conftest* 8737 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8740$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8741 8742 8743 8744 8745hard_links=nottested 8746if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8747 # do not overwrite the value of need_locks provided by the user 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8749$as_echo_n "checking if we can lock with hard links... " >&6; } 8750 hard_links=yes 8751 $RM conftest* 8752 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8753 touch conftest.a 8754 ln conftest.a conftest.b 2>&5 || hard_links=no 8755 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8757$as_echo "$hard_links" >&6; } 8758 if test no = "$hard_links"; then 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8760$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8761 need_locks=warn 8762 fi 8763else 8764 need_locks=no 8765fi 8766 8767 8768 8769 8770 8771 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8773$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8774 8775 runpath_var= 8776 allow_undefined_flag= 8777 always_export_symbols=no 8778 archive_cmds= 8779 archive_expsym_cmds= 8780 compiler_needs_object=no 8781 enable_shared_with_static_runtimes=no 8782 export_dynamic_flag_spec= 8783 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8784 hardcode_automatic=no 8785 hardcode_direct=no 8786 hardcode_direct_absolute=no 8787 hardcode_libdir_flag_spec= 8788 hardcode_libdir_separator= 8789 hardcode_minus_L=no 8790 hardcode_shlibpath_var=unsupported 8791 inherit_rpath=no 8792 link_all_deplibs=unknown 8793 module_cmds= 8794 module_expsym_cmds= 8795 old_archive_from_new_cmds= 8796 old_archive_from_expsyms_cmds= 8797 thread_safe_flag_spec= 8798 whole_archive_flag_spec= 8799 # include_expsyms should be a list of space-separated symbols to be *always* 8800 # included in the symbol list 8801 include_expsyms= 8802 # exclude_expsyms can be an extended regexp of symbols to exclude 8803 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8804 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8805 # as well as any symbol that contains 'd'. 8806 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8807 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8808 # platforms (ab)use it in PIC code, but their linkers get confused if 8809 # the symbol is explicitly referenced. Since portable code cannot 8810 # rely on this symbol name, it's probably fine to never include it in 8811 # preloaded symbol tables. 8812 # Exclude shared library initialization/finalization symbols. 8813 extract_expsyms_cmds= 8814 8815 case $host_os in 8816 cygwin* | mingw* | pw32* | cegcc*) 8817 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8818 # When not using gcc, we currently assume that we are using 8819 # Microsoft Visual C++. 8820 if test yes != "$GCC"; then 8821 with_gnu_ld=no 8822 fi 8823 ;; 8824 interix*) 8825 # we just hope/assume this is gcc and not c89 (= MSVC++) 8826 with_gnu_ld=yes 8827 ;; 8828 openbsd* | bitrig*) 8829 with_gnu_ld=no 8830 ;; 8831 esac 8832 8833 ld_shlibs=yes 8834 8835 # On some targets, GNU ld is compatible enough with the native linker 8836 # that we're better off using the native interface for both. 8837 lt_use_gnu_ld_interface=no 8838 if test yes = "$with_gnu_ld"; then 8839 case $host_os in 8840 aix*) 8841 # The AIX port of GNU ld has always aspired to compatibility 8842 # with the native linker. However, as the warning in the GNU ld 8843 # block says, versions before 2.19.5* couldn't really create working 8844 # shared libraries, regardless of the interface used. 8845 case `$LD -v 2>&1` in 8846 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8847 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8848 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8849 *) 8850 lt_use_gnu_ld_interface=yes 8851 ;; 8852 esac 8853 ;; 8854 *) 8855 lt_use_gnu_ld_interface=yes 8856 ;; 8857 esac 8858 fi 8859 8860 if test yes = "$lt_use_gnu_ld_interface"; then 8861 # If archive_cmds runs LD, not CC, wlarc should be empty 8862 wlarc='$wl' 8863 8864 # Set some defaults for GNU ld with shared library support. These 8865 # are reset later if shared libraries are not supported. Putting them 8866 # here allows them to be overridden if necessary. 8867 runpath_var=LD_RUN_PATH 8868 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8869 export_dynamic_flag_spec='$wl--export-dynamic' 8870 # ancient GNU ld didn't support --whole-archive et. al. 8871 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8872 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8873 else 8874 whole_archive_flag_spec= 8875 fi 8876 supports_anon_versioning=no 8877 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8878 *GNU\ gold*) supports_anon_versioning=yes ;; 8879 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8880 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8881 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8882 *\ 2.11.*) ;; # other 2.11 versions 8883 *) supports_anon_versioning=yes ;; 8884 esac 8885 8886 # See if GNU ld supports shared libraries. 8887 case $host_os in 8888 aix[3-9]*) 8889 # On AIX/PPC, the GNU linker is very broken 8890 if test ia64 != "$host_cpu"; then 8891 ld_shlibs=no 8892 cat <<_LT_EOF 1>&2 8893 8894*** Warning: the GNU linker, at least up to release 2.19, is reported 8895*** to be unable to reliably create shared libraries on AIX. 8896*** Therefore, libtool is disabling shared libraries support. If you 8897*** really care for shared libraries, you may want to install binutils 8898*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8899*** You will then need to restart the configuration process. 8900 8901_LT_EOF 8902 fi 8903 ;; 8904 8905 amigaos*) 8906 case $host_cpu in 8907 powerpc) 8908 # see comment about AmigaOS4 .so support 8909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8910 archive_expsym_cmds='' 8911 ;; 8912 m68k) 8913 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)' 8914 hardcode_libdir_flag_spec='-L$libdir' 8915 hardcode_minus_L=yes 8916 ;; 8917 esac 8918 ;; 8919 8920 beos*) 8921 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8922 allow_undefined_flag=unsupported 8923 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8924 # support --undefined. This deserves some investigation. FIXME 8925 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8926 else 8927 ld_shlibs=no 8928 fi 8929 ;; 8930 8931 cygwin* | mingw* | pw32* | cegcc*) 8932 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8933 # as there is no search path for DLLs. 8934 hardcode_libdir_flag_spec='-L$libdir' 8935 export_dynamic_flag_spec='$wl--export-all-symbols' 8936 allow_undefined_flag=unsupported 8937 always_export_symbols=no 8938 enable_shared_with_static_runtimes=yes 8939 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' 8940 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8941 8942 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8944 # If the export-symbols file already is a .def file, use it as 8945 # is; otherwise, prepend EXPORTS... 8946 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 8947 cp $export_symbols $output_objdir/$soname.def; 8948 else 8949 echo EXPORTS > $output_objdir/$soname.def; 8950 cat $export_symbols >> $output_objdir/$soname.def; 8951 fi~ 8952 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8953 else 8954 ld_shlibs=no 8955 fi 8956 ;; 8957 8958 haiku*) 8959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8960 link_all_deplibs=yes 8961 ;; 8962 8963 os2*) 8964 hardcode_libdir_flag_spec='-L$libdir' 8965 hardcode_minus_L=yes 8966 allow_undefined_flag=unsupported 8967 shrext_cmds=.dll 8968 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8969 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8970 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8971 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8972 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8973 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8974 emximp -o $lib $output_objdir/$libname.def' 8975 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8976 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8977 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8978 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8979 prefix_cmds="$SED"~ 8980 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8981 prefix_cmds="$prefix_cmds -e 1d"; 8982 fi~ 8983 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8984 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8985 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8986 emximp -o $lib $output_objdir/$libname.def' 8987 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8988 enable_shared_with_static_runtimes=yes 8989 ;; 8990 8991 interix[3-9]*) 8992 hardcode_direct=no 8993 hardcode_shlibpath_var=no 8994 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 8995 export_dynamic_flag_spec='$wl-E' 8996 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8997 # Instead, shared libraries are loaded at an image base (0x10000000 by 8998 # default) and relocated if they conflict, which is a slow very memory 8999 # consuming and fragmenting process. To avoid this, we pick a random, 9000 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9001 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9002 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9003 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' 9004 ;; 9005 9006 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9007 tmp_diet=no 9008 if test linux-dietlibc = "$host_os"; then 9009 case $cc_basename in 9010 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9011 esac 9012 fi 9013 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9014 && test no = "$tmp_diet" 9015 then 9016 tmp_addflag=' $pic_flag' 9017 tmp_sharedflag='-shared' 9018 case $cc_basename,$host_cpu in 9019 pgcc*) # Portland Group C compiler 9020 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' 9021 tmp_addflag=' $pic_flag' 9022 ;; 9023 pgf77* | pgf90* | pgf95* | pgfortran*) 9024 # Portland Group f77 and f90 compilers 9025 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' 9026 tmp_addflag=' $pic_flag -Mnomain' ;; 9027 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9028 tmp_addflag=' -i_dynamic' ;; 9029 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9030 tmp_addflag=' -i_dynamic -nofor_main' ;; 9031 ifc* | ifort*) # Intel Fortran compiler 9032 tmp_addflag=' -nofor_main' ;; 9033 lf95*) # Lahey Fortran 8.1 9034 whole_archive_flag_spec= 9035 tmp_sharedflag='--shared' ;; 9036 nagfor*) # NAGFOR 5.3 9037 tmp_sharedflag='-Wl,-shared' ;; 9038 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9039 tmp_sharedflag='-qmkshrobj' 9040 tmp_addflag= ;; 9041 nvcc*) # Cuda Compiler Driver 2.2 9042 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' 9043 compiler_needs_object=yes 9044 ;; 9045 esac 9046 case `$CC -V 2>&1 | sed 5q` in 9047 *Sun\ C*) # Sun C 5.9 9048 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' 9049 compiler_needs_object=yes 9050 tmp_sharedflag='-G' ;; 9051 *Sun\ F*) # Sun Fortran 8.3 9052 tmp_sharedflag='-G' ;; 9053 esac 9054 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9055 9056 if test yes = "$supports_anon_versioning"; then 9057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9059 echo "local: *; };" >> $output_objdir/$libname.ver~ 9060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9061 fi 9062 9063 case $cc_basename in 9064 tcc*) 9065 export_dynamic_flag_spec='-rdynamic' 9066 ;; 9067 xlf* | bgf* | bgxlf* | mpixlf*) 9068 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9069 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9071 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9072 if test yes = "$supports_anon_versioning"; then 9073 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9075 echo "local: *; };" >> $output_objdir/$libname.ver~ 9076 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9077 fi 9078 ;; 9079 esac 9080 else 9081 ld_shlibs=no 9082 fi 9083 ;; 9084 9085 netbsd*) 9086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9087 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9088 wlarc= 9089 else 9090 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9091 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9092 fi 9093 ;; 9094 9095 solaris*) 9096 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9097 ld_shlibs=no 9098 cat <<_LT_EOF 1>&2 9099 9100*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9101*** create shared libraries on Solaris systems. Therefore, libtool 9102*** is disabling shared libraries support. We urge you to upgrade GNU 9103*** binutils to release 2.9.1 or newer. Another option is to modify 9104*** your PATH or compiler configuration so that the native linker is 9105*** used, and then restart. 9106 9107_LT_EOF 9108 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9109 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9110 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9111 else 9112 ld_shlibs=no 9113 fi 9114 ;; 9115 9116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9117 case `$LD -v 2>&1` in 9118 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9119 ld_shlibs=no 9120 cat <<_LT_EOF 1>&2 9121 9122*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9123*** reliably create shared libraries on SCO systems. Therefore, libtool 9124*** is disabling shared libraries support. We urge you to upgrade GNU 9125*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9126*** your PATH or compiler configuration so that the native linker is 9127*** used, and then restart. 9128 9129_LT_EOF 9130 ;; 9131 *) 9132 # For security reasons, it is highly recommended that you always 9133 # use absolute paths for naming shared libraries, and exclude the 9134 # DT_RUNPATH tag from executables and libraries. But doing so 9135 # requires that you compile everything twice, which is a pain. 9136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9140 else 9141 ld_shlibs=no 9142 fi 9143 ;; 9144 esac 9145 ;; 9146 9147 sunos4*) 9148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9149 wlarc= 9150 hardcode_direct=yes 9151 hardcode_shlibpath_var=no 9152 ;; 9153 9154 *) 9155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9158 else 9159 ld_shlibs=no 9160 fi 9161 ;; 9162 esac 9163 9164 if test no = "$ld_shlibs"; then 9165 runpath_var= 9166 hardcode_libdir_flag_spec= 9167 export_dynamic_flag_spec= 9168 whole_archive_flag_spec= 9169 fi 9170 else 9171 # PORTME fill in a description of your system's linker (not GNU ld) 9172 case $host_os in 9173 aix3*) 9174 allow_undefined_flag=unsupported 9175 always_export_symbols=yes 9176 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' 9177 # Note: this linker hardcodes the directories in LIBPATH if there 9178 # are no directories specified by -L. 9179 hardcode_minus_L=yes 9180 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9181 # Neither direct hardcoding nor static linking is supported with a 9182 # broken collect2. 9183 hardcode_direct=unsupported 9184 fi 9185 ;; 9186 9187 aix[4-9]*) 9188 if test ia64 = "$host_cpu"; then 9189 # On IA64, the linker does run time linking by default, so we don't 9190 # have to do anything special. 9191 aix_use_runtimelinking=no 9192 exp_sym_flag='-Bexport' 9193 no_entry_flag= 9194 else 9195 # If we're using GNU nm, then we don't want the "-C" option. 9196 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9197 # Without the "-l" option, or with the "-B" option, AIX nm treats 9198 # weak defined symbols like other global defined symbols, whereas 9199 # GNU nm marks them as "W". 9200 # While the 'weak' keyword is ignored in the Export File, we need 9201 # it in the Import File for the 'aix-soname' feature, so we have 9202 # to replace the "-B" option with "-P" for AIX nm. 9203 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9204 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' 9205 else 9206 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' 9207 fi 9208 aix_use_runtimelinking=no 9209 9210 # Test if we are trying to use run time linking or normal 9211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9212 # have runtime linking enabled, and use it for executables. 9213 # For shared libraries, we enable/disable runtime linking 9214 # depending on the kind of the shared library created - 9215 # when "with_aix_soname,aix_use_runtimelinking" is: 9216 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9217 # "aix,yes" lib.so shared, rtl:yes, for executables 9218 # lib.a static archive 9219 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9220 # lib.a(lib.so.V) shared, rtl:no, for executables 9221 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9222 # lib.a(lib.so.V) shared, rtl:no 9223 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9224 # lib.a static archive 9225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9226 for ld_flag in $LDFLAGS; do 9227 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9228 aix_use_runtimelinking=yes 9229 break 9230 fi 9231 done 9232 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9233 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9234 # so we don't have lib.a shared libs to link our executables. 9235 # We have to force runtime linking in this case. 9236 aix_use_runtimelinking=yes 9237 LDFLAGS="$LDFLAGS -Wl,-brtl" 9238 fi 9239 ;; 9240 esac 9241 9242 exp_sym_flag='-bexport' 9243 no_entry_flag='-bnoentry' 9244 fi 9245 9246 # When large executables or shared objects are built, AIX ld can 9247 # have problems creating the table of contents. If linking a library 9248 # or program results in "error TOC overflow" add -mminimal-toc to 9249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9251 9252 archive_cmds='' 9253 hardcode_direct=yes 9254 hardcode_direct_absolute=yes 9255 hardcode_libdir_separator=':' 9256 link_all_deplibs=yes 9257 file_list_spec='$wl-f,' 9258 case $with_aix_soname,$aix_use_runtimelinking in 9259 aix,*) ;; # traditional, no import file 9260 svr4,* | *,yes) # use import file 9261 # The Import File defines what to hardcode. 9262 hardcode_direct=no 9263 hardcode_direct_absolute=no 9264 ;; 9265 esac 9266 9267 if test yes = "$GCC"; then 9268 case $host_os in aix4.[012]|aix4.[012].*) 9269 # We only want to do this on AIX 4.2 and lower, the check 9270 # below for broken collect2 doesn't work under 4.3+ 9271 collect2name=`$CC -print-prog-name=collect2` 9272 if test -f "$collect2name" && 9273 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9274 then 9275 # We have reworked collect2 9276 : 9277 else 9278 # We have old collect2 9279 hardcode_direct=unsupported 9280 # It fails to find uninstalled libraries when the uninstalled 9281 # path is not listed in the libpath. Setting hardcode_minus_L 9282 # to unsupported forces relinking 9283 hardcode_minus_L=yes 9284 hardcode_libdir_flag_spec='-L$libdir' 9285 hardcode_libdir_separator= 9286 fi 9287 ;; 9288 esac 9289 shared_flag='-shared' 9290 if test yes = "$aix_use_runtimelinking"; then 9291 shared_flag="$shared_flag "'$wl-G' 9292 fi 9293 # Need to ensure runtime linking is disabled for the traditional 9294 # shared library, or the linker may eventually find shared libraries 9295 # /with/ Import File - we do not want to mix them. 9296 shared_flag_aix='-shared' 9297 shared_flag_svr4='-shared $wl-G' 9298 else 9299 # not using gcc 9300 if test ia64 = "$host_cpu"; then 9301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9302 # chokes on -Wl,-G. The following line is correct: 9303 shared_flag='-G' 9304 else 9305 if test yes = "$aix_use_runtimelinking"; then 9306 shared_flag='$wl-G' 9307 else 9308 shared_flag='$wl-bM:SRE' 9309 fi 9310 shared_flag_aix='$wl-bM:SRE' 9311 shared_flag_svr4='$wl-G' 9312 fi 9313 fi 9314 9315 export_dynamic_flag_spec='$wl-bexpall' 9316 # It seems that -bexpall does not export symbols beginning with 9317 # underscore (_), so it is better to generate a list of symbols to export. 9318 always_export_symbols=yes 9319 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9320 # Warning - without using the other runtime loading flags (-brtl), 9321 # -berok will link without error, but may produce a broken library. 9322 allow_undefined_flag='-berok' 9323 # Determine the default libpath from the value encoded in an 9324 # empty executable. 9325 if test set = "${lt_cv_aix_libpath+set}"; then 9326 aix_libpath=$lt_cv_aix_libpath 9327else 9328 if ${lt_cv_aix_libpath_+:} false; then : 9329 $as_echo_n "(cached) " >&6 9330else 9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332/* end confdefs.h. */ 9333 9334int 9335main () 9336{ 9337 9338 ; 9339 return 0; 9340} 9341_ACEOF 9342if ac_fn_c_try_link "$LINENO"; then : 9343 9344 lt_aix_libpath_sed=' 9345 /Import File Strings/,/^$/ { 9346 /^0/ { 9347 s/^0 *\([^ ]*\) *$/\1/ 9348 p 9349 } 9350 }' 9351 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9352 # Check for a 64-bit object if we didn't find anything. 9353 if test -z "$lt_cv_aix_libpath_"; then 9354 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9355 fi 9356fi 9357rm -f core conftest.err conftest.$ac_objext \ 9358 conftest$ac_exeext conftest.$ac_ext 9359 if test -z "$lt_cv_aix_libpath_"; then 9360 lt_cv_aix_libpath_=/usr/lib:/lib 9361 fi 9362 9363fi 9364 9365 aix_libpath=$lt_cv_aix_libpath_ 9366fi 9367 9368 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9369 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 9370 else 9371 if test ia64 = "$host_cpu"; then 9372 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9373 allow_undefined_flag="-z nodefs" 9374 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" 9375 else 9376 # Determine the default libpath from the value encoded in an 9377 # empty executable. 9378 if test set = "${lt_cv_aix_libpath+set}"; then 9379 aix_libpath=$lt_cv_aix_libpath 9380else 9381 if ${lt_cv_aix_libpath_+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9385/* end confdefs.h. */ 9386 9387int 9388main () 9389{ 9390 9391 ; 9392 return 0; 9393} 9394_ACEOF 9395if ac_fn_c_try_link "$LINENO"; then : 9396 9397 lt_aix_libpath_sed=' 9398 /Import File Strings/,/^$/ { 9399 /^0/ { 9400 s/^0 *\([^ ]*\) *$/\1/ 9401 p 9402 } 9403 }' 9404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9405 # Check for a 64-bit object if we didn't find anything. 9406 if test -z "$lt_cv_aix_libpath_"; then 9407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9408 fi 9409fi 9410rm -f core conftest.err conftest.$ac_objext \ 9411 conftest$ac_exeext conftest.$ac_ext 9412 if test -z "$lt_cv_aix_libpath_"; then 9413 lt_cv_aix_libpath_=/usr/lib:/lib 9414 fi 9415 9416fi 9417 9418 aix_libpath=$lt_cv_aix_libpath_ 9419fi 9420 9421 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9422 # Warning - without using the other run time loading flags, 9423 # -berok will link without error, but may produce a broken library. 9424 no_undefined_flag=' $wl-bernotok' 9425 allow_undefined_flag=' $wl-berok' 9426 if test yes = "$with_gnu_ld"; then 9427 # We only use this code for GNU lds that support --whole-archive. 9428 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9429 else 9430 # Exported symbols can be pulled into shared objects from archives 9431 whole_archive_flag_spec='$convenience' 9432 fi 9433 archive_cmds_need_lc=yes 9434 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9435 # -brtl affects multiple linker settings, -berok does not and is overridden later 9436 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9437 if test svr4 != "$with_aix_soname"; then 9438 # This is similar to how AIX traditionally builds its shared libraries. 9439 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' 9440 fi 9441 if test aix != "$with_aix_soname"; then 9442 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' 9443 else 9444 # used by -dlpreopen to get the symbols 9445 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9446 fi 9447 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9448 fi 9449 fi 9450 ;; 9451 9452 amigaos*) 9453 case $host_cpu in 9454 powerpc) 9455 # see comment about AmigaOS4 .so support 9456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9457 archive_expsym_cmds='' 9458 ;; 9459 m68k) 9460 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)' 9461 hardcode_libdir_flag_spec='-L$libdir' 9462 hardcode_minus_L=yes 9463 ;; 9464 esac 9465 ;; 9466 9467 bsdi[45]*) 9468 export_dynamic_flag_spec=-rdynamic 9469 ;; 9470 9471 cygwin* | mingw* | pw32* | cegcc*) 9472 # When not using gcc, we currently assume that we are using 9473 # Microsoft Visual C++. 9474 # hardcode_libdir_flag_spec is actually meaningless, as there is 9475 # no search path for DLLs. 9476 case $cc_basename in 9477 cl*) 9478 # Native MSVC 9479 hardcode_libdir_flag_spec=' ' 9480 allow_undefined_flag=unsupported 9481 always_export_symbols=yes 9482 file_list_spec='@' 9483 # Tell ltmain to make .lib files, not .a files. 9484 libext=lib 9485 # Tell ltmain to make .dll files, not .so files. 9486 shrext_cmds=.dll 9487 # FIXME: Setting linknames here is a bad hack. 9488 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9489 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9490 cp "$export_symbols" "$output_objdir/$soname.def"; 9491 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9492 else 9493 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9494 fi~ 9495 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9496 linknames=' 9497 # The linker will not automatically build a static lib if we build a DLL. 9498 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9499 enable_shared_with_static_runtimes=yes 9500 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9502 # Don't use ranlib 9503 old_postinstall_cmds='chmod 644 $oldlib' 9504 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9505 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9506 case $lt_outputfile in 9507 *.exe|*.EXE) ;; 9508 *) 9509 lt_outputfile=$lt_outputfile.exe 9510 lt_tool_outputfile=$lt_tool_outputfile.exe 9511 ;; 9512 esac~ 9513 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9514 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9515 $RM "$lt_outputfile.manifest"; 9516 fi' 9517 ;; 9518 *) 9519 # Assume MSVC wrapper 9520 hardcode_libdir_flag_spec=' ' 9521 allow_undefined_flag=unsupported 9522 # Tell ltmain to make .lib files, not .a files. 9523 libext=lib 9524 # Tell ltmain to make .dll files, not .so files. 9525 shrext_cmds=.dll 9526 # FIXME: Setting linknames here is a bad hack. 9527 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9528 # The linker will automatically build a .lib file if we build a DLL. 9529 old_archive_from_new_cmds='true' 9530 # FIXME: Should let the user specify the lib program. 9531 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9532 enable_shared_with_static_runtimes=yes 9533 ;; 9534 esac 9535 ;; 9536 9537 darwin* | rhapsody*) 9538 9539 9540 archive_cmds_need_lc=no 9541 hardcode_direct=no 9542 hardcode_automatic=yes 9543 hardcode_shlibpath_var=unsupported 9544 if test yes = "$lt_cv_ld_force_load"; then 9545 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\"`' 9546 9547 else 9548 whole_archive_flag_spec='' 9549 fi 9550 link_all_deplibs=yes 9551 allow_undefined_flag=$_lt_dar_allow_undefined 9552 case $cc_basename in 9553 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9554 *) _lt_dar_can_shared=$GCC ;; 9555 esac 9556 if test yes = "$_lt_dar_can_shared"; then 9557 output_verbose_link_cmd=func_echo_all 9558 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9559 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9560 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" 9561 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" 9562 9563 else 9564 ld_shlibs=no 9565 fi 9566 9567 ;; 9568 9569 dgux*) 9570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9571 hardcode_libdir_flag_spec='-L$libdir' 9572 hardcode_shlibpath_var=no 9573 ;; 9574 9575 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9576 # support. Future versions do this automatically, but an explicit c++rt0.o 9577 # does not break anything, and helps significantly (at the cost of a little 9578 # extra space). 9579 freebsd2.2*) 9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9581 hardcode_libdir_flag_spec='-R$libdir' 9582 hardcode_direct=yes 9583 hardcode_shlibpath_var=no 9584 ;; 9585 9586 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9587 freebsd2.*) 9588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9589 hardcode_direct=yes 9590 hardcode_minus_L=yes 9591 hardcode_shlibpath_var=no 9592 ;; 9593 9594 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9595 freebsd* | dragonfly*) 9596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9597 hardcode_libdir_flag_spec='-R$libdir' 9598 hardcode_direct=yes 9599 hardcode_shlibpath_var=no 9600 ;; 9601 9602 hpux9*) 9603 if test yes = "$GCC"; then 9604 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' 9605 else 9606 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' 9607 fi 9608 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9609 hardcode_libdir_separator=: 9610 hardcode_direct=yes 9611 9612 # hardcode_minus_L: Not really in the search PATH, 9613 # but as the default location of the library. 9614 hardcode_minus_L=yes 9615 export_dynamic_flag_spec='$wl-E' 9616 ;; 9617 9618 hpux10*) 9619 if test yes,no = "$GCC,$with_gnu_ld"; then 9620 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9621 else 9622 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9623 fi 9624 if test no = "$with_gnu_ld"; then 9625 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9626 hardcode_libdir_separator=: 9627 hardcode_direct=yes 9628 hardcode_direct_absolute=yes 9629 export_dynamic_flag_spec='$wl-E' 9630 # hardcode_minus_L: Not really in the search PATH, 9631 # but as the default location of the library. 9632 hardcode_minus_L=yes 9633 fi 9634 ;; 9635 9636 hpux11*) 9637 if test yes,no = "$GCC,$with_gnu_ld"; then 9638 case $host_cpu in 9639 hppa*64*) 9640 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9641 ;; 9642 ia64*) 9643 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9644 ;; 9645 *) 9646 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9647 ;; 9648 esac 9649 else 9650 case $host_cpu in 9651 hppa*64*) 9652 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9653 ;; 9654 ia64*) 9655 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9656 ;; 9657 *) 9658 9659 # Older versions of the 11.00 compiler do not understand -b yet 9660 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9662$as_echo_n "checking if $CC understands -b... " >&6; } 9663if ${lt_cv_prog_compiler__b+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 lt_cv_prog_compiler__b=no 9667 save_LDFLAGS=$LDFLAGS 9668 LDFLAGS="$LDFLAGS -b" 9669 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9671 # The linker can only warn and ignore the option if not recognized 9672 # So say no if there are warnings 9673 if test -s conftest.err; then 9674 # Append any errors to the config.log. 9675 cat conftest.err 1>&5 9676 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9678 if diff conftest.exp conftest.er2 >/dev/null; then 9679 lt_cv_prog_compiler__b=yes 9680 fi 9681 else 9682 lt_cv_prog_compiler__b=yes 9683 fi 9684 fi 9685 $RM -r conftest* 9686 LDFLAGS=$save_LDFLAGS 9687 9688fi 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9690$as_echo "$lt_cv_prog_compiler__b" >&6; } 9691 9692if test yes = "$lt_cv_prog_compiler__b"; then 9693 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9694else 9695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9696fi 9697 9698 ;; 9699 esac 9700 fi 9701 if test no = "$with_gnu_ld"; then 9702 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9703 hardcode_libdir_separator=: 9704 9705 case $host_cpu in 9706 hppa*64*|ia64*) 9707 hardcode_direct=no 9708 hardcode_shlibpath_var=no 9709 ;; 9710 *) 9711 hardcode_direct=yes 9712 hardcode_direct_absolute=yes 9713 export_dynamic_flag_spec='$wl-E' 9714 9715 # hardcode_minus_L: Not really in the search PATH, 9716 # but as the default location of the library. 9717 hardcode_minus_L=yes 9718 ;; 9719 esac 9720 fi 9721 ;; 9722 9723 irix5* | irix6* | nonstopux*) 9724 if test yes = "$GCC"; then 9725 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' 9726 # Try to use the -exported_symbol ld option, if it does not 9727 # work, assume that -exports_file does not work either and 9728 # implicitly export all symbols. 9729 # This should be the same for all languages, so no per-tag cache variable. 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9731$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9732if ${lt_cv_irix_exported_symbol+:} false; then : 9733 $as_echo_n "(cached) " >&6 9734else 9735 save_LDFLAGS=$LDFLAGS 9736 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9738/* end confdefs.h. */ 9739int foo (void) { return 0; } 9740_ACEOF 9741if ac_fn_c_try_link "$LINENO"; then : 9742 lt_cv_irix_exported_symbol=yes 9743else 9744 lt_cv_irix_exported_symbol=no 9745fi 9746rm -f core conftest.err conftest.$ac_objext \ 9747 conftest$ac_exeext conftest.$ac_ext 9748 LDFLAGS=$save_LDFLAGS 9749fi 9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9751$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9752 if test yes = "$lt_cv_irix_exported_symbol"; then 9753 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' 9754 fi 9755 else 9756 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' 9757 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' 9758 fi 9759 archive_cmds_need_lc='no' 9760 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9761 hardcode_libdir_separator=: 9762 inherit_rpath=yes 9763 link_all_deplibs=yes 9764 ;; 9765 9766 linux*) 9767 case $cc_basename in 9768 tcc*) 9769 # Fabrice Bellard et al's Tiny C Compiler 9770 ld_shlibs=yes 9771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9772 ;; 9773 esac 9774 ;; 9775 9776 netbsd*) 9777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9779 else 9780 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9781 fi 9782 hardcode_libdir_flag_spec='-R$libdir' 9783 hardcode_direct=yes 9784 hardcode_shlibpath_var=no 9785 ;; 9786 9787 newsos6) 9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9789 hardcode_direct=yes 9790 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9791 hardcode_libdir_separator=: 9792 hardcode_shlibpath_var=no 9793 ;; 9794 9795 *nto* | *qnx*) 9796 ;; 9797 9798 openbsd* | bitrig*) 9799 if test -f /usr/libexec/ld.so; then 9800 hardcode_direct=yes 9801 hardcode_shlibpath_var=no 9802 hardcode_direct_absolute=yes 9803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9805 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9806 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9807 export_dynamic_flag_spec='$wl-E' 9808 else 9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9810 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9811 fi 9812 else 9813 ld_shlibs=no 9814 fi 9815 ;; 9816 9817 os2*) 9818 hardcode_libdir_flag_spec='-L$libdir' 9819 hardcode_minus_L=yes 9820 allow_undefined_flag=unsupported 9821 shrext_cmds=.dll 9822 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9823 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9824 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9825 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9826 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9827 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9828 emximp -o $lib $output_objdir/$libname.def' 9829 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9830 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9831 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9832 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9833 prefix_cmds="$SED"~ 9834 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9835 prefix_cmds="$prefix_cmds -e 1d"; 9836 fi~ 9837 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9838 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9839 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9840 emximp -o $lib $output_objdir/$libname.def' 9841 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9842 enable_shared_with_static_runtimes=yes 9843 ;; 9844 9845 osf3*) 9846 if test yes = "$GCC"; then 9847 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9848 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' 9849 else 9850 allow_undefined_flag=' -expect_unresolved \*' 9851 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' 9852 fi 9853 archive_cmds_need_lc='no' 9854 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9855 hardcode_libdir_separator=: 9856 ;; 9857 9858 osf4* | osf5*) # as osf3* with the addition of -msym flag 9859 if test yes = "$GCC"; then 9860 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9861 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' 9862 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9863 else 9864 allow_undefined_flag=' -expect_unresolved \*' 9865 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' 9866 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~ 9867 $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' 9868 9869 # Both c and cxx compiler support -rpath directly 9870 hardcode_libdir_flag_spec='-rpath $libdir' 9871 fi 9872 archive_cmds_need_lc='no' 9873 hardcode_libdir_separator=: 9874 ;; 9875 9876 solaris*) 9877 no_undefined_flag=' -z defs' 9878 if test yes = "$GCC"; then 9879 wlarc='$wl' 9880 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9882 $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' 9883 else 9884 case `$CC -V 2>&1` in 9885 *"Compilers 5.0"*) 9886 wlarc='' 9887 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9889 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9890 ;; 9891 *) 9892 wlarc='$wl' 9893 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9895 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9896 ;; 9897 esac 9898 fi 9899 hardcode_libdir_flag_spec='-R$libdir' 9900 hardcode_shlibpath_var=no 9901 case $host_os in 9902 solaris2.[0-5] | solaris2.[0-5].*) ;; 9903 *) 9904 # The compiler driver will combine and reorder linker options, 9905 # but understands '-z linker_flag'. GCC discards it without '$wl', 9906 # but is careful enough not to reorder. 9907 # Supported since Solaris 2.6 (maybe 2.5.1?) 9908 if test yes = "$GCC"; then 9909 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9910 else 9911 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9912 fi 9913 ;; 9914 esac 9915 link_all_deplibs=yes 9916 ;; 9917 9918 sunos4*) 9919 if test sequent = "$host_vendor"; then 9920 # Use $CC to link under sequent, because it throws in some extra .o 9921 # files that make .init and .fini sections work. 9922 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9923 else 9924 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9925 fi 9926 hardcode_libdir_flag_spec='-L$libdir' 9927 hardcode_direct=yes 9928 hardcode_minus_L=yes 9929 hardcode_shlibpath_var=no 9930 ;; 9931 9932 sysv4) 9933 case $host_vendor in 9934 sni) 9935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9936 hardcode_direct=yes # is this really true??? 9937 ;; 9938 siemens) 9939 ## LD is ld it makes a PLAMLIB 9940 ## CC just makes a GrossModule. 9941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9942 reload_cmds='$CC -r -o $output$reload_objs' 9943 hardcode_direct=no 9944 ;; 9945 motorola) 9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9947 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9948 ;; 9949 esac 9950 runpath_var='LD_RUN_PATH' 9951 hardcode_shlibpath_var=no 9952 ;; 9953 9954 sysv4.3*) 9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9956 hardcode_shlibpath_var=no 9957 export_dynamic_flag_spec='-Bexport' 9958 ;; 9959 9960 sysv4*MP*) 9961 if test -d /usr/nec; then 9962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9963 hardcode_shlibpath_var=no 9964 runpath_var=LD_RUN_PATH 9965 hardcode_runpath_var=yes 9966 ld_shlibs=yes 9967 fi 9968 ;; 9969 9970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9971 no_undefined_flag='$wl-z,text' 9972 archive_cmds_need_lc=no 9973 hardcode_shlibpath_var=no 9974 runpath_var='LD_RUN_PATH' 9975 9976 if test yes = "$GCC"; then 9977 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9978 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9979 else 9980 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9981 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9982 fi 9983 ;; 9984 9985 sysv5* | sco3.2v5* | sco5v6*) 9986 # Note: We CANNOT use -z defs as we might desire, because we do not 9987 # link with -lc, and that would cause any symbols used from libc to 9988 # always be unresolved, which means just about no library would 9989 # ever link correctly. If we're not using GNU ld we use -z text 9990 # though, which does catch some bad symbols but isn't as heavy-handed 9991 # as -z defs. 9992 no_undefined_flag='$wl-z,text' 9993 allow_undefined_flag='$wl-z,nodefs' 9994 archive_cmds_need_lc=no 9995 hardcode_shlibpath_var=no 9996 hardcode_libdir_flag_spec='$wl-R,$libdir' 9997 hardcode_libdir_separator=':' 9998 link_all_deplibs=yes 9999 export_dynamic_flag_spec='$wl-Bexport' 10000 runpath_var='LD_RUN_PATH' 10001 10002 if test yes = "$GCC"; then 10003 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10004 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10005 else 10006 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10007 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10008 fi 10009 ;; 10010 10011 uts4*) 10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10013 hardcode_libdir_flag_spec='-L$libdir' 10014 hardcode_shlibpath_var=no 10015 ;; 10016 10017 *) 10018 ld_shlibs=no 10019 ;; 10020 esac 10021 10022 if test sni = "$host_vendor"; then 10023 case $host in 10024 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10025 export_dynamic_flag_spec='$wl-Blargedynsym' 10026 ;; 10027 esac 10028 fi 10029 fi 10030 10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10032$as_echo "$ld_shlibs" >&6; } 10033test no = "$ld_shlibs" && can_build_shared=no 10034 10035with_gnu_ld=$with_gnu_ld 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051# 10052# Do we need to explicitly link libc? 10053# 10054case "x$archive_cmds_need_lc" in 10055x|xyes) 10056 # Assume -lc should be added 10057 archive_cmds_need_lc=yes 10058 10059 if test yes,yes = "$GCC,$enable_shared"; then 10060 case $archive_cmds in 10061 *'~'*) 10062 # FIXME: we may have to deal with multi-command sequences. 10063 ;; 10064 '$CC '*) 10065 # Test whether the compiler implicitly links with -lc since on some 10066 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10067 # to ld, don't add -lc before -lgcc. 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10069$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10070if ${lt_cv_archive_cmds_need_lc+:} false; then : 10071 $as_echo_n "(cached) " >&6 10072else 10073 $RM conftest* 10074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10075 10076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10077 (eval $ac_compile) 2>&5 10078 ac_status=$? 10079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10080 test $ac_status = 0; } 2>conftest.err; then 10081 soname=conftest 10082 lib=conftest 10083 libobjs=conftest.$ac_objext 10084 deplibs= 10085 wl=$lt_prog_compiler_wl 10086 pic_flag=$lt_prog_compiler_pic 10087 compiler_flags=-v 10088 linker_flags=-v 10089 verstring= 10090 output_objdir=. 10091 libname=conftest 10092 lt_save_allow_undefined_flag=$allow_undefined_flag 10093 allow_undefined_flag= 10094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10095 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10096 ac_status=$? 10097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10098 test $ac_status = 0; } 10099 then 10100 lt_cv_archive_cmds_need_lc=no 10101 else 10102 lt_cv_archive_cmds_need_lc=yes 10103 fi 10104 allow_undefined_flag=$lt_save_allow_undefined_flag 10105 else 10106 cat conftest.err 1>&5 10107 fi 10108 $RM conftest* 10109 10110fi 10111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10112$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10113 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10114 ;; 10115 esac 10116 fi 10117 ;; 10118esac 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10272$as_echo_n "checking dynamic linker characteristics... " >&6; } 10273 10274if test yes = "$GCC"; then 10275 case $host_os in 10276 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10277 *) lt_awk_arg='/^libraries:/' ;; 10278 esac 10279 case $host_os in 10280 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10281 *) lt_sed_strip_eq='s|=/|/|g' ;; 10282 esac 10283 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10284 case $lt_search_path_spec in 10285 *\;*) 10286 # if the path contains ";" then we assume it to be the separator 10287 # otherwise default to the standard path separator (i.e. ":") - it is 10288 # assumed that no part of a normal pathname contains ";" but that should 10289 # okay in the real world where ";" in dirpaths is itself problematic. 10290 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10291 ;; 10292 *) 10293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10294 ;; 10295 esac 10296 # Ok, now we have the path, separated by spaces, we can step through it 10297 # and add multilib dir if necessary... 10298 lt_tmp_lt_search_path_spec= 10299 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10300 # ...but if some path component already ends with the multilib dir we assume 10301 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10302 case "$lt_multi_os_dir; $lt_search_path_spec " in 10303 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10304 lt_multi_os_dir= 10305 ;; 10306 esac 10307 for lt_sys_path in $lt_search_path_spec; do 10308 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10309 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10310 elif test -n "$lt_multi_os_dir"; then 10311 test -d "$lt_sys_path" && \ 10312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10313 fi 10314 done 10315 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10316BEGIN {RS = " "; FS = "/|\n";} { 10317 lt_foo = ""; 10318 lt_count = 0; 10319 for (lt_i = NF; lt_i > 0; lt_i--) { 10320 if ($lt_i != "" && $lt_i != ".") { 10321 if ($lt_i == "..") { 10322 lt_count++; 10323 } else { 10324 if (lt_count == 0) { 10325 lt_foo = "/" $lt_i lt_foo; 10326 } else { 10327 lt_count--; 10328 } 10329 } 10330 } 10331 } 10332 if (lt_foo != "") { lt_freq[lt_foo]++; } 10333 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10334}'` 10335 # AWK program above erroneously prepends '/' to C:/dos/paths 10336 # for these hosts. 10337 case $host_os in 10338 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10339 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10340 esac 10341 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10342else 10343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10344fi 10345library_names_spec= 10346libname_spec='lib$name' 10347soname_spec= 10348shrext_cmds=.so 10349postinstall_cmds= 10350postuninstall_cmds= 10351finish_cmds= 10352finish_eval= 10353shlibpath_var= 10354shlibpath_overrides_runpath=unknown 10355version_type=none 10356dynamic_linker="$host_os ld.so" 10357sys_lib_dlsearch_path_spec="/lib /usr/lib" 10358need_lib_prefix=unknown 10359hardcode_into_libs=no 10360 10361# when you set need_version to no, make sure it does not cause -set_version 10362# flags to be left without arguments 10363need_version=unknown 10364 10365 10366 10367case $host_os in 10368aix3*) 10369 version_type=linux # correct to gnu/linux during the next big refactor 10370 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10371 shlibpath_var=LIBPATH 10372 10373 # AIX 3 has no versioning support, so we append a major version to the name. 10374 soname_spec='$libname$release$shared_ext$major' 10375 ;; 10376 10377aix[4-9]*) 10378 version_type=linux # correct to gnu/linux during the next big refactor 10379 need_lib_prefix=no 10380 need_version=no 10381 hardcode_into_libs=yes 10382 if test ia64 = "$host_cpu"; then 10383 # AIX 5 supports IA64 10384 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10385 shlibpath_var=LD_LIBRARY_PATH 10386 else 10387 # With GCC up to 2.95.x, collect2 would create an import file 10388 # for dependence libraries. The import file would start with 10389 # the line '#! .'. This would cause the generated library to 10390 # depend on '.', always an invalid library. This was fixed in 10391 # development snapshots of GCC prior to 3.0. 10392 case $host_os in 10393 aix4 | aix4.[01] | aix4.[01].*) 10394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10395 echo ' yes ' 10396 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10397 : 10398 else 10399 can_build_shared=no 10400 fi 10401 ;; 10402 esac 10403 # Using Import Files as archive members, it is possible to support 10404 # filename-based versioning of shared library archives on AIX. While 10405 # this would work for both with and without runtime linking, it will 10406 # prevent static linking of such archives. So we do filename-based 10407 # shared library versioning with .so extension only, which is used 10408 # when both runtime linking and shared linking is enabled. 10409 # Unfortunately, runtime linking may impact performance, so we do 10410 # not want this to be the default eventually. Also, we use the 10411 # versioned .so libs for executables only if there is the -brtl 10412 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10413 # To allow for filename-based versioning support, we need to create 10414 # libNAME.so.V as an archive file, containing: 10415 # *) an Import File, referring to the versioned filename of the 10416 # archive as well as the shared archive member, telling the 10417 # bitwidth (32 or 64) of that shared object, and providing the 10418 # list of exported symbols of that shared object, eventually 10419 # decorated with the 'weak' keyword 10420 # *) the shared object with the F_LOADONLY flag set, to really avoid 10421 # it being seen by the linker. 10422 # At run time we better use the real file rather than another symlink, 10423 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10424 10425 case $with_aix_soname,$aix_use_runtimelinking in 10426 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10427 # soname into executable. Probably we can add versioning support to 10428 # collect2, so additional links can be useful in future. 10429 aix,yes) # traditional libtool 10430 dynamic_linker='AIX unversionable lib.so' 10431 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10432 # instead of lib<name>.a to let people know that these are not 10433 # typical AIX shared libraries. 10434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10435 ;; 10436 aix,no) # traditional AIX only 10437 dynamic_linker='AIX lib.a(lib.so.V)' 10438 # We preserve .a as extension for shared libraries through AIX4.2 10439 # and later when we are not doing run time linking. 10440 library_names_spec='$libname$release.a $libname.a' 10441 soname_spec='$libname$release$shared_ext$major' 10442 ;; 10443 svr4,*) # full svr4 only 10444 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10445 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10446 # We do not specify a path in Import Files, so LIBPATH fires. 10447 shlibpath_overrides_runpath=yes 10448 ;; 10449 *,yes) # both, prefer svr4 10450 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10451 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10452 # unpreferred sharedlib libNAME.a needs extra handling 10453 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"' 10454 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"' 10455 # We do not specify a path in Import Files, so LIBPATH fires. 10456 shlibpath_overrides_runpath=yes 10457 ;; 10458 *,no) # both, prefer aix 10459 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10460 library_names_spec='$libname$release.a $libname.a' 10461 soname_spec='$libname$release$shared_ext$major' 10462 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10463 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)' 10464 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"' 10465 ;; 10466 esac 10467 shlibpath_var=LIBPATH 10468 fi 10469 ;; 10470 10471amigaos*) 10472 case $host_cpu in 10473 powerpc) 10474 # Since July 2007 AmigaOS4 officially supports .so libraries. 10475 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10477 ;; 10478 m68k) 10479 library_names_spec='$libname.ixlibrary $libname.a' 10480 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10481 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' 10482 ;; 10483 esac 10484 ;; 10485 10486beos*) 10487 library_names_spec='$libname$shared_ext' 10488 dynamic_linker="$host_os ld.so" 10489 shlibpath_var=LIBRARY_PATH 10490 ;; 10491 10492bsdi[45]*) 10493 version_type=linux # correct to gnu/linux during the next big refactor 10494 need_version=no 10495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10496 soname_spec='$libname$release$shared_ext$major' 10497 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10498 shlibpath_var=LD_LIBRARY_PATH 10499 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10500 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10501 # the default ld.so.conf also contains /usr/contrib/lib and 10502 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10503 # libtool to hard-code these into programs 10504 ;; 10505 10506cygwin* | mingw* | pw32* | cegcc*) 10507 version_type=windows 10508 shrext_cmds=.dll 10509 need_version=no 10510 need_lib_prefix=no 10511 10512 case $GCC,$cc_basename in 10513 yes,*) 10514 # gcc 10515 library_names_spec='$libname.dll.a' 10516 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10517 postinstall_cmds='base_file=`basename \$file`~ 10518 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10519 dldir=$destdir/`dirname \$dlpath`~ 10520 test -d \$dldir || mkdir -p \$dldir~ 10521 $install_prog $dir/$dlname \$dldir/$dlname~ 10522 chmod a+x \$dldir/$dlname~ 10523 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10524 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10525 fi' 10526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10527 dlpath=$dir/\$dldll~ 10528 $RM \$dlpath' 10529 shlibpath_overrides_runpath=yes 10530 10531 case $host_os in 10532 cygwin*) 10533 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10534 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10535 10536 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10537 ;; 10538 mingw* | cegcc*) 10539 # MinGW DLLs use traditional 'lib' prefix 10540 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10541 ;; 10542 pw32*) 10543 # pw32 DLLs use 'pw' prefix rather than 'lib' 10544 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10545 ;; 10546 esac 10547 dynamic_linker='Win32 ld.exe' 10548 ;; 10549 10550 *,cl*) 10551 # Native MSVC 10552 libname_spec='$name' 10553 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10554 library_names_spec='$libname.dll.lib' 10555 10556 case $build_os in 10557 mingw*) 10558 sys_lib_search_path_spec= 10559 lt_save_ifs=$IFS 10560 IFS=';' 10561 for lt_path in $LIB 10562 do 10563 IFS=$lt_save_ifs 10564 # Let DOS variable expansion print the short 8.3 style file name. 10565 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10566 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10567 done 10568 IFS=$lt_save_ifs 10569 # Convert to MSYS style. 10570 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10571 ;; 10572 cygwin*) 10573 # Convert to unix form, then to dos form, then back to unix form 10574 # but this time dos style (no spaces!) so that the unix form looks 10575 # like /cygdrive/c/PROGRA~1:/cygdr... 10576 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10577 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10578 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10579 ;; 10580 *) 10581 sys_lib_search_path_spec=$LIB 10582 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10583 # It is most probably a Windows format PATH. 10584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10585 else 10586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10587 fi 10588 # FIXME: find the short name or the path components, as spaces are 10589 # common. (e.g. "Program Files" -> "PROGRA~1") 10590 ;; 10591 esac 10592 10593 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10594 postinstall_cmds='base_file=`basename \$file`~ 10595 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10596 dldir=$destdir/`dirname \$dlpath`~ 10597 test -d \$dldir || mkdir -p \$dldir~ 10598 $install_prog $dir/$dlname \$dldir/$dlname' 10599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10600 dlpath=$dir/\$dldll~ 10601 $RM \$dlpath' 10602 shlibpath_overrides_runpath=yes 10603 dynamic_linker='Win32 link.exe' 10604 ;; 10605 10606 *) 10607 # Assume MSVC wrapper 10608 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10609 dynamic_linker='Win32 ld.exe' 10610 ;; 10611 esac 10612 # FIXME: first we should search . and the directory the executable is in 10613 shlibpath_var=PATH 10614 ;; 10615 10616darwin* | rhapsody*) 10617 dynamic_linker="$host_os dyld" 10618 version_type=darwin 10619 need_lib_prefix=no 10620 need_version=no 10621 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10622 soname_spec='$libname$release$major$shared_ext' 10623 shlibpath_overrides_runpath=yes 10624 shlibpath_var=DYLD_LIBRARY_PATH 10625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10626 10627 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10629 ;; 10630 10631dgux*) 10632 version_type=linux # correct to gnu/linux during the next big refactor 10633 need_lib_prefix=no 10634 need_version=no 10635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10636 soname_spec='$libname$release$shared_ext$major' 10637 shlibpath_var=LD_LIBRARY_PATH 10638 ;; 10639 10640freebsd* | dragonfly*) 10641 # DragonFly does not have aout. When/if they implement a new 10642 # versioning mechanism, adjust this. 10643 if test -x /usr/bin/objformat; then 10644 objformat=`/usr/bin/objformat` 10645 else 10646 case $host_os in 10647 freebsd[23].*) objformat=aout ;; 10648 *) objformat=elf ;; 10649 esac 10650 fi 10651 version_type=freebsd-$objformat 10652 case $version_type in 10653 freebsd-elf*) 10654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10655 soname_spec='$libname$release$shared_ext$major' 10656 need_version=no 10657 need_lib_prefix=no 10658 ;; 10659 freebsd-*) 10660 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10661 need_version=yes 10662 ;; 10663 esac 10664 shlibpath_var=LD_LIBRARY_PATH 10665 case $host_os in 10666 freebsd2.*) 10667 shlibpath_overrides_runpath=yes 10668 ;; 10669 freebsd3.[01]* | freebsdelf3.[01]*) 10670 shlibpath_overrides_runpath=yes 10671 hardcode_into_libs=yes 10672 ;; 10673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10675 shlibpath_overrides_runpath=no 10676 hardcode_into_libs=yes 10677 ;; 10678 *) # from 4.6 on, and DragonFly 10679 shlibpath_overrides_runpath=yes 10680 hardcode_into_libs=yes 10681 ;; 10682 esac 10683 ;; 10684 10685haiku*) 10686 version_type=linux # correct to gnu/linux during the next big refactor 10687 need_lib_prefix=no 10688 need_version=no 10689 dynamic_linker="$host_os runtime_loader" 10690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10691 soname_spec='$libname$release$shared_ext$major' 10692 shlibpath_var=LIBRARY_PATH 10693 shlibpath_overrides_runpath=no 10694 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10695 hardcode_into_libs=yes 10696 ;; 10697 10698hpux9* | hpux10* | hpux11*) 10699 # Give a soname corresponding to the major version so that dld.sl refuses to 10700 # link against other versions. 10701 version_type=sunos 10702 need_lib_prefix=no 10703 need_version=no 10704 case $host_cpu in 10705 ia64*) 10706 shrext_cmds='.so' 10707 hardcode_into_libs=yes 10708 dynamic_linker="$host_os dld.so" 10709 shlibpath_var=LD_LIBRARY_PATH 10710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10712 soname_spec='$libname$release$shared_ext$major' 10713 if test 32 = "$HPUX_IA64_MODE"; then 10714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10715 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10716 else 10717 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10718 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10719 fi 10720 ;; 10721 hppa*64*) 10722 shrext_cmds='.sl' 10723 hardcode_into_libs=yes 10724 dynamic_linker="$host_os dld.sl" 10725 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10728 soname_spec='$libname$release$shared_ext$major' 10729 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10731 ;; 10732 *) 10733 shrext_cmds='.sl' 10734 dynamic_linker="$host_os dld.sl" 10735 shlibpath_var=SHLIB_PATH 10736 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10738 soname_spec='$libname$release$shared_ext$major' 10739 ;; 10740 esac 10741 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10742 postinstall_cmds='chmod 555 $lib' 10743 # or fails outright, so override atomically: 10744 install_override_mode=555 10745 ;; 10746 10747interix[3-9]*) 10748 version_type=linux # correct to gnu/linux during the next big refactor 10749 need_lib_prefix=no 10750 need_version=no 10751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10752 soname_spec='$libname$release$shared_ext$major' 10753 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10754 shlibpath_var=LD_LIBRARY_PATH 10755 shlibpath_overrides_runpath=no 10756 hardcode_into_libs=yes 10757 ;; 10758 10759irix5* | irix6* | nonstopux*) 10760 case $host_os in 10761 nonstopux*) version_type=nonstopux ;; 10762 *) 10763 if test yes = "$lt_cv_prog_gnu_ld"; then 10764 version_type=linux # correct to gnu/linux during the next big refactor 10765 else 10766 version_type=irix 10767 fi ;; 10768 esac 10769 need_lib_prefix=no 10770 need_version=no 10771 soname_spec='$libname$release$shared_ext$major' 10772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10773 case $host_os in 10774 irix5* | nonstopux*) 10775 libsuff= shlibsuff= 10776 ;; 10777 *) 10778 case $LD in # libtool.m4 will add one of these switches to LD 10779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10780 libsuff= shlibsuff= libmagic=32-bit;; 10781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10782 libsuff=32 shlibsuff=N32 libmagic=N32;; 10783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10784 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10785 *) libsuff= shlibsuff= libmagic=never-match;; 10786 esac 10787 ;; 10788 esac 10789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10790 shlibpath_overrides_runpath=no 10791 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10792 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10793 hardcode_into_libs=yes 10794 ;; 10795 10796# No shared lib support for Linux oldld, aout, or coff. 10797linux*oldld* | linux*aout* | linux*coff*) 10798 dynamic_linker=no 10799 ;; 10800 10801linux*android*) 10802 version_type=none # Android doesn't support versioned libraries. 10803 need_lib_prefix=no 10804 need_version=no 10805 library_names_spec='$libname$release$shared_ext' 10806 soname_spec='$libname$release$shared_ext' 10807 finish_cmds= 10808 shlibpath_var=LD_LIBRARY_PATH 10809 shlibpath_overrides_runpath=yes 10810 10811 # This implies no fast_install, which is unacceptable. 10812 # Some rework will be needed to allow for fast_install 10813 # before this can be enabled. 10814 hardcode_into_libs=yes 10815 10816 dynamic_linker='Android linker' 10817 # Don't embed -rpath directories since the linker doesn't support them. 10818 hardcode_libdir_flag_spec='-L$libdir' 10819 ;; 10820 10821# This must be glibc/ELF. 10822linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10823 version_type=linux # correct to gnu/linux during the next big refactor 10824 need_lib_prefix=no 10825 need_version=no 10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10827 soname_spec='$libname$release$shared_ext$major' 10828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10829 shlibpath_var=LD_LIBRARY_PATH 10830 shlibpath_overrides_runpath=no 10831 10832 # Some binutils ld are patched to set DT_RUNPATH 10833 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10834 $as_echo_n "(cached) " >&6 10835else 10836 lt_cv_shlibpath_overrides_runpath=no 10837 save_LDFLAGS=$LDFLAGS 10838 save_libdir=$libdir 10839 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10840 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843 10844int 10845main () 10846{ 10847 10848 ; 10849 return 0; 10850} 10851_ACEOF 10852if ac_fn_c_try_link "$LINENO"; then : 10853 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10854 lt_cv_shlibpath_overrides_runpath=yes 10855fi 10856fi 10857rm -f core conftest.err conftest.$ac_objext \ 10858 conftest$ac_exeext conftest.$ac_ext 10859 LDFLAGS=$save_LDFLAGS 10860 libdir=$save_libdir 10861 10862fi 10863 10864 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10865 10866 # This implies no fast_install, which is unacceptable. 10867 # Some rework will be needed to allow for fast_install 10868 # before this can be enabled. 10869 hardcode_into_libs=yes 10870 10871 # Add ABI-specific directories to the system library path. 10872 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10873 10874 # Ideally, we could use ldconfig to report *all* directores which are 10875 # searched for libraries, however this is still not possible. Aside from not 10876 # being certain /sbin/ldconfig is available, command 10877 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10878 # even though it is searched at run-time. Try to do the best guess by 10879 # appending ld.so.conf contents (and includes) to the search path. 10880 if test -f /etc/ld.so.conf; then 10881 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' ' '` 10882 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10883 fi 10884 10885 # We used to test for /lib/ld.so.1 and disable shared libraries on 10886 # powerpc, because MkLinux only supported shared libraries with the 10887 # GNU dynamic linker. Since this was broken with cross compilers, 10888 # most powerpc-linux boxes support dynamic linking these days and 10889 # people can always --disable-shared, the test was removed, and we 10890 # assume the GNU/Linux dynamic linker is in use. 10891 dynamic_linker='GNU/Linux ld.so' 10892 ;; 10893 10894netbsd*) 10895 version_type=sunos 10896 need_lib_prefix=no 10897 need_version=no 10898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10901 dynamic_linker='NetBSD (a.out) ld.so' 10902 else 10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10904 soname_spec='$libname$release$shared_ext$major' 10905 dynamic_linker='NetBSD ld.elf_so' 10906 fi 10907 shlibpath_var=LD_LIBRARY_PATH 10908 shlibpath_overrides_runpath=yes 10909 hardcode_into_libs=yes 10910 ;; 10911 10912newsos6) 10913 version_type=linux # correct to gnu/linux during the next big refactor 10914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10915 shlibpath_var=LD_LIBRARY_PATH 10916 shlibpath_overrides_runpath=yes 10917 ;; 10918 10919*nto* | *qnx*) 10920 version_type=qnx 10921 need_lib_prefix=no 10922 need_version=no 10923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10924 soname_spec='$libname$release$shared_ext$major' 10925 shlibpath_var=LD_LIBRARY_PATH 10926 shlibpath_overrides_runpath=no 10927 hardcode_into_libs=yes 10928 dynamic_linker='ldqnx.so' 10929 ;; 10930 10931openbsd* | bitrig*) 10932 version_type=sunos 10933 sys_lib_dlsearch_path_spec=/usr/lib 10934 need_lib_prefix=no 10935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10936 need_version=no 10937 else 10938 need_version=yes 10939 fi 10940 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10942 shlibpath_var=LD_LIBRARY_PATH 10943 shlibpath_overrides_runpath=yes 10944 ;; 10945 10946os2*) 10947 libname_spec='$name' 10948 version_type=windows 10949 shrext_cmds=.dll 10950 need_version=no 10951 need_lib_prefix=no 10952 # OS/2 can only load a DLL with a base name of 8 characters or less. 10953 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 10954 v=$($ECHO $release$versuffix | tr -d .-); 10955 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 10956 $ECHO $n$v`$shared_ext' 10957 library_names_spec='${libname}_dll.$libext' 10958 dynamic_linker='OS/2 ld.exe' 10959 shlibpath_var=BEGINLIBPATH 10960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10962 postinstall_cmds='base_file=`basename \$file`~ 10963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 10964 dldir=$destdir/`dirname \$dlpath`~ 10965 test -d \$dldir || mkdir -p \$dldir~ 10966 $install_prog $dir/$dlname \$dldir/$dlname~ 10967 chmod a+x \$dldir/$dlname~ 10968 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10969 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10970 fi' 10971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 10972 dlpath=$dir/\$dldll~ 10973 $RM \$dlpath' 10974 ;; 10975 10976osf3* | osf4* | osf5*) 10977 version_type=osf 10978 need_lib_prefix=no 10979 need_version=no 10980 soname_spec='$libname$release$shared_ext$major' 10981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10982 shlibpath_var=LD_LIBRARY_PATH 10983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10985 ;; 10986 10987rdos*) 10988 dynamic_linker=no 10989 ;; 10990 10991solaris*) 10992 version_type=linux # correct to gnu/linux during the next big refactor 10993 need_lib_prefix=no 10994 need_version=no 10995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10996 soname_spec='$libname$release$shared_ext$major' 10997 shlibpath_var=LD_LIBRARY_PATH 10998 shlibpath_overrides_runpath=yes 10999 hardcode_into_libs=yes 11000 # ldd complains unless libraries are executable 11001 postinstall_cmds='chmod +x $lib' 11002 ;; 11003 11004sunos4*) 11005 version_type=sunos 11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11008 shlibpath_var=LD_LIBRARY_PATH 11009 shlibpath_overrides_runpath=yes 11010 if test yes = "$with_gnu_ld"; then 11011 need_lib_prefix=no 11012 fi 11013 need_version=yes 11014 ;; 11015 11016sysv4 | sysv4.3*) 11017 version_type=linux # correct to gnu/linux during the next big refactor 11018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11019 soname_spec='$libname$release$shared_ext$major' 11020 shlibpath_var=LD_LIBRARY_PATH 11021 case $host_vendor in 11022 sni) 11023 shlibpath_overrides_runpath=no 11024 need_lib_prefix=no 11025 runpath_var=LD_RUN_PATH 11026 ;; 11027 siemens) 11028 need_lib_prefix=no 11029 ;; 11030 motorola) 11031 need_lib_prefix=no 11032 need_version=no 11033 shlibpath_overrides_runpath=no 11034 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11035 ;; 11036 esac 11037 ;; 11038 11039sysv4*MP*) 11040 if test -d /usr/nec; then 11041 version_type=linux # correct to gnu/linux during the next big refactor 11042 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11043 soname_spec='$libname$shared_ext.$major' 11044 shlibpath_var=LD_LIBRARY_PATH 11045 fi 11046 ;; 11047 11048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11049 version_type=sco 11050 need_lib_prefix=no 11051 need_version=no 11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11053 soname_spec='$libname$release$shared_ext$major' 11054 shlibpath_var=LD_LIBRARY_PATH 11055 shlibpath_overrides_runpath=yes 11056 hardcode_into_libs=yes 11057 if test yes = "$with_gnu_ld"; then 11058 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11059 else 11060 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11061 case $host_os in 11062 sco3.2v5*) 11063 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11064 ;; 11065 esac 11066 fi 11067 sys_lib_dlsearch_path_spec='/usr/lib' 11068 ;; 11069 11070tpf*) 11071 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11072 version_type=linux # correct to gnu/linux during the next big refactor 11073 need_lib_prefix=no 11074 need_version=no 11075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11076 shlibpath_var=LD_LIBRARY_PATH 11077 shlibpath_overrides_runpath=no 11078 hardcode_into_libs=yes 11079 ;; 11080 11081uts4*) 11082 version_type=linux # correct to gnu/linux during the next big refactor 11083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11084 soname_spec='$libname$release$shared_ext$major' 11085 shlibpath_var=LD_LIBRARY_PATH 11086 ;; 11087 11088*) 11089 dynamic_linker=no 11090 ;; 11091esac 11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11093$as_echo "$dynamic_linker" >&6; } 11094test no = "$dynamic_linker" && can_build_shared=no 11095 11096variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11097if test yes = "$GCC"; then 11098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11099fi 11100 11101if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11102 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11103fi 11104 11105if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11106 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11107fi 11108 11109# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11110configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11111 11112# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11113func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11114 11115# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11116configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11215$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11216hardcode_action= 11217if test -n "$hardcode_libdir_flag_spec" || 11218 test -n "$runpath_var" || 11219 test yes = "$hardcode_automatic"; then 11220 11221 # We can hardcode non-existent directories. 11222 if test no != "$hardcode_direct" && 11223 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11224 # have to relink, otherwise we might link with an installed library 11225 # when we should be linking with a yet-to-be-installed one 11226 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11227 test no != "$hardcode_minus_L"; then 11228 # Linking always hardcodes the temporary library directory. 11229 hardcode_action=relink 11230 else 11231 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11232 hardcode_action=immediate 11233 fi 11234else 11235 # We cannot hardcode anything, or else we can only hardcode existing 11236 # directories. 11237 hardcode_action=unsupported 11238fi 11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11240$as_echo "$hardcode_action" >&6; } 11241 11242if test relink = "$hardcode_action" || 11243 test yes = "$inherit_rpath"; then 11244 # Fast installation is not supported 11245 enable_fast_install=no 11246elif test yes = "$shlibpath_overrides_runpath" || 11247 test no = "$enable_shared"; then 11248 # Fast installation is not necessary 11249 enable_fast_install=needless 11250fi 11251 11252 11253 11254 11255 11256 11257 if test yes != "$enable_dlopen"; then 11258 enable_dlopen=unknown 11259 enable_dlopen_self=unknown 11260 enable_dlopen_self_static=unknown 11261else 11262 lt_cv_dlopen=no 11263 lt_cv_dlopen_libs= 11264 11265 case $host_os in 11266 beos*) 11267 lt_cv_dlopen=load_add_on 11268 lt_cv_dlopen_libs= 11269 lt_cv_dlopen_self=yes 11270 ;; 11271 11272 mingw* | pw32* | cegcc*) 11273 lt_cv_dlopen=LoadLibrary 11274 lt_cv_dlopen_libs= 11275 ;; 11276 11277 cygwin*) 11278 lt_cv_dlopen=dlopen 11279 lt_cv_dlopen_libs= 11280 ;; 11281 11282 darwin*) 11283 # if libdl is installed we need to link against it 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11285$as_echo_n "checking for dlopen in -ldl... " >&6; } 11286if ${ac_cv_lib_dl_dlopen+:} false; then : 11287 $as_echo_n "(cached) " >&6 11288else 11289 ac_check_lib_save_LIBS=$LIBS 11290LIBS="-ldl $LIBS" 11291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11292/* end confdefs.h. */ 11293 11294/* Override any GCC internal prototype to avoid an error. 11295 Use char because int might match the return type of a GCC 11296 builtin and then its argument prototype would still apply. */ 11297#ifdef __cplusplus 11298extern "C" 11299#endif 11300char dlopen (); 11301int 11302main () 11303{ 11304return dlopen (); 11305 ; 11306 return 0; 11307} 11308_ACEOF 11309if ac_fn_c_try_link "$LINENO"; then : 11310 ac_cv_lib_dl_dlopen=yes 11311else 11312 ac_cv_lib_dl_dlopen=no 11313fi 11314rm -f core conftest.err conftest.$ac_objext \ 11315 conftest$ac_exeext conftest.$ac_ext 11316LIBS=$ac_check_lib_save_LIBS 11317fi 11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11319$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11320if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11322else 11323 11324 lt_cv_dlopen=dyld 11325 lt_cv_dlopen_libs= 11326 lt_cv_dlopen_self=yes 11327 11328fi 11329 11330 ;; 11331 11332 tpf*) 11333 # Don't try to run any link tests for TPF. We know it's impossible 11334 # because TPF is a cross-compiler, and we know how we open DSOs. 11335 lt_cv_dlopen=dlopen 11336 lt_cv_dlopen_libs= 11337 lt_cv_dlopen_self=no 11338 ;; 11339 11340 *) 11341 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11342if test "x$ac_cv_func_shl_load" = xyes; then : 11343 lt_cv_dlopen=shl_load 11344else 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11346$as_echo_n "checking for shl_load in -ldld... " >&6; } 11347if ${ac_cv_lib_dld_shl_load+:} false; then : 11348 $as_echo_n "(cached) " >&6 11349else 11350 ac_check_lib_save_LIBS=$LIBS 11351LIBS="-ldld $LIBS" 11352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11353/* end confdefs.h. */ 11354 11355/* Override any GCC internal prototype to avoid an error. 11356 Use char because int might match the return type of a GCC 11357 builtin and then its argument prototype would still apply. */ 11358#ifdef __cplusplus 11359extern "C" 11360#endif 11361char shl_load (); 11362int 11363main () 11364{ 11365return shl_load (); 11366 ; 11367 return 0; 11368} 11369_ACEOF 11370if ac_fn_c_try_link "$LINENO"; then : 11371 ac_cv_lib_dld_shl_load=yes 11372else 11373 ac_cv_lib_dld_shl_load=no 11374fi 11375rm -f core conftest.err conftest.$ac_objext \ 11376 conftest$ac_exeext conftest.$ac_ext 11377LIBS=$ac_check_lib_save_LIBS 11378fi 11379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11380$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11381if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11382 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11383else 11384 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11385if test "x$ac_cv_func_dlopen" = xyes; then : 11386 lt_cv_dlopen=dlopen 11387else 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11389$as_echo_n "checking for dlopen in -ldl... " >&6; } 11390if ${ac_cv_lib_dl_dlopen+:} false; then : 11391 $as_echo_n "(cached) " >&6 11392else 11393 ac_check_lib_save_LIBS=$LIBS 11394LIBS="-ldl $LIBS" 11395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11396/* end confdefs.h. */ 11397 11398/* Override any GCC internal prototype to avoid an error. 11399 Use char because int might match the return type of a GCC 11400 builtin and then its argument prototype would still apply. */ 11401#ifdef __cplusplus 11402extern "C" 11403#endif 11404char dlopen (); 11405int 11406main () 11407{ 11408return dlopen (); 11409 ; 11410 return 0; 11411} 11412_ACEOF 11413if ac_fn_c_try_link "$LINENO"; then : 11414 ac_cv_lib_dl_dlopen=yes 11415else 11416 ac_cv_lib_dl_dlopen=no 11417fi 11418rm -f core conftest.err conftest.$ac_objext \ 11419 conftest$ac_exeext conftest.$ac_ext 11420LIBS=$ac_check_lib_save_LIBS 11421fi 11422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11423$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11424if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11426else 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11428$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11429if ${ac_cv_lib_svld_dlopen+:} false; then : 11430 $as_echo_n "(cached) " >&6 11431else 11432 ac_check_lib_save_LIBS=$LIBS 11433LIBS="-lsvld $LIBS" 11434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11435/* end confdefs.h. */ 11436 11437/* Override any GCC internal prototype to avoid an error. 11438 Use char because int might match the return type of a GCC 11439 builtin and then its argument prototype would still apply. */ 11440#ifdef __cplusplus 11441extern "C" 11442#endif 11443char dlopen (); 11444int 11445main () 11446{ 11447return dlopen (); 11448 ; 11449 return 0; 11450} 11451_ACEOF 11452if ac_fn_c_try_link "$LINENO"; then : 11453 ac_cv_lib_svld_dlopen=yes 11454else 11455 ac_cv_lib_svld_dlopen=no 11456fi 11457rm -f core conftest.err conftest.$ac_objext \ 11458 conftest$ac_exeext conftest.$ac_ext 11459LIBS=$ac_check_lib_save_LIBS 11460fi 11461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11462$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11463if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11465else 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11467$as_echo_n "checking for dld_link in -ldld... " >&6; } 11468if ${ac_cv_lib_dld_dld_link+:} false; then : 11469 $as_echo_n "(cached) " >&6 11470else 11471 ac_check_lib_save_LIBS=$LIBS 11472LIBS="-ldld $LIBS" 11473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11474/* end confdefs.h. */ 11475 11476/* Override any GCC internal prototype to avoid an error. 11477 Use char because int might match the return type of a GCC 11478 builtin and then its argument prototype would still apply. */ 11479#ifdef __cplusplus 11480extern "C" 11481#endif 11482char dld_link (); 11483int 11484main () 11485{ 11486return dld_link (); 11487 ; 11488 return 0; 11489} 11490_ACEOF 11491if ac_fn_c_try_link "$LINENO"; then : 11492 ac_cv_lib_dld_dld_link=yes 11493else 11494 ac_cv_lib_dld_dld_link=no 11495fi 11496rm -f core conftest.err conftest.$ac_objext \ 11497 conftest$ac_exeext conftest.$ac_ext 11498LIBS=$ac_check_lib_save_LIBS 11499fi 11500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11501$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11502if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11503 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11504fi 11505 11506 11507fi 11508 11509 11510fi 11511 11512 11513fi 11514 11515 11516fi 11517 11518 11519fi 11520 11521 ;; 11522 esac 11523 11524 if test no = "$lt_cv_dlopen"; then 11525 enable_dlopen=no 11526 else 11527 enable_dlopen=yes 11528 fi 11529 11530 case $lt_cv_dlopen in 11531 dlopen) 11532 save_CPPFLAGS=$CPPFLAGS 11533 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11534 11535 save_LDFLAGS=$LDFLAGS 11536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11537 11538 save_LIBS=$LIBS 11539 LIBS="$lt_cv_dlopen_libs $LIBS" 11540 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11542$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11543if ${lt_cv_dlopen_self+:} false; then : 11544 $as_echo_n "(cached) " >&6 11545else 11546 if test yes = "$cross_compiling"; then : 11547 lt_cv_dlopen_self=cross 11548else 11549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11550 lt_status=$lt_dlunknown 11551 cat > conftest.$ac_ext <<_LT_EOF 11552#line $LINENO "configure" 11553#include "confdefs.h" 11554 11555#if HAVE_DLFCN_H 11556#include <dlfcn.h> 11557#endif 11558 11559#include <stdio.h> 11560 11561#ifdef RTLD_GLOBAL 11562# define LT_DLGLOBAL RTLD_GLOBAL 11563#else 11564# ifdef DL_GLOBAL 11565# define LT_DLGLOBAL DL_GLOBAL 11566# else 11567# define LT_DLGLOBAL 0 11568# endif 11569#endif 11570 11571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11572 find out it does not work in some platform. */ 11573#ifndef LT_DLLAZY_OR_NOW 11574# ifdef RTLD_LAZY 11575# define LT_DLLAZY_OR_NOW RTLD_LAZY 11576# else 11577# ifdef DL_LAZY 11578# define LT_DLLAZY_OR_NOW DL_LAZY 11579# else 11580# ifdef RTLD_NOW 11581# define LT_DLLAZY_OR_NOW RTLD_NOW 11582# else 11583# ifdef DL_NOW 11584# define LT_DLLAZY_OR_NOW DL_NOW 11585# else 11586# define LT_DLLAZY_OR_NOW 0 11587# endif 11588# endif 11589# endif 11590# endif 11591#endif 11592 11593/* When -fvisibility=hidden is used, assume the code has been annotated 11594 correspondingly for the symbols needed. */ 11595#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11596int fnord () __attribute__((visibility("default"))); 11597#endif 11598 11599int fnord () { return 42; } 11600int main () 11601{ 11602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11603 int status = $lt_dlunknown; 11604 11605 if (self) 11606 { 11607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11608 else 11609 { 11610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11611 else puts (dlerror ()); 11612 } 11613 /* dlclose (self); */ 11614 } 11615 else 11616 puts (dlerror ()); 11617 11618 return status; 11619} 11620_LT_EOF 11621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11622 (eval $ac_link) 2>&5 11623 ac_status=$? 11624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11625 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11626 (./conftest; exit; ) >&5 2>/dev/null 11627 lt_status=$? 11628 case x$lt_status in 11629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11631 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11632 esac 11633 else : 11634 # compilation failed 11635 lt_cv_dlopen_self=no 11636 fi 11637fi 11638rm -fr conftest* 11639 11640 11641fi 11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11643$as_echo "$lt_cv_dlopen_self" >&6; } 11644 11645 if test yes = "$lt_cv_dlopen_self"; then 11646 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11648$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11649if ${lt_cv_dlopen_self_static+:} false; then : 11650 $as_echo_n "(cached) " >&6 11651else 11652 if test yes = "$cross_compiling"; then : 11653 lt_cv_dlopen_self_static=cross 11654else 11655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11656 lt_status=$lt_dlunknown 11657 cat > conftest.$ac_ext <<_LT_EOF 11658#line $LINENO "configure" 11659#include "confdefs.h" 11660 11661#if HAVE_DLFCN_H 11662#include <dlfcn.h> 11663#endif 11664 11665#include <stdio.h> 11666 11667#ifdef RTLD_GLOBAL 11668# define LT_DLGLOBAL RTLD_GLOBAL 11669#else 11670# ifdef DL_GLOBAL 11671# define LT_DLGLOBAL DL_GLOBAL 11672# else 11673# define LT_DLGLOBAL 0 11674# endif 11675#endif 11676 11677/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11678 find out it does not work in some platform. */ 11679#ifndef LT_DLLAZY_OR_NOW 11680# ifdef RTLD_LAZY 11681# define LT_DLLAZY_OR_NOW RTLD_LAZY 11682# else 11683# ifdef DL_LAZY 11684# define LT_DLLAZY_OR_NOW DL_LAZY 11685# else 11686# ifdef RTLD_NOW 11687# define LT_DLLAZY_OR_NOW RTLD_NOW 11688# else 11689# ifdef DL_NOW 11690# define LT_DLLAZY_OR_NOW DL_NOW 11691# else 11692# define LT_DLLAZY_OR_NOW 0 11693# endif 11694# endif 11695# endif 11696# endif 11697#endif 11698 11699/* When -fvisibility=hidden is used, assume the code has been annotated 11700 correspondingly for the symbols needed. */ 11701#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11702int fnord () __attribute__((visibility("default"))); 11703#endif 11704 11705int fnord () { return 42; } 11706int main () 11707{ 11708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11709 int status = $lt_dlunknown; 11710 11711 if (self) 11712 { 11713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11714 else 11715 { 11716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11717 else puts (dlerror ()); 11718 } 11719 /* dlclose (self); */ 11720 } 11721 else 11722 puts (dlerror ()); 11723 11724 return status; 11725} 11726_LT_EOF 11727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11728 (eval $ac_link) 2>&5 11729 ac_status=$? 11730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11731 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11732 (./conftest; exit; ) >&5 2>/dev/null 11733 lt_status=$? 11734 case x$lt_status in 11735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11737 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11738 esac 11739 else : 11740 # compilation failed 11741 lt_cv_dlopen_self_static=no 11742 fi 11743fi 11744rm -fr conftest* 11745 11746 11747fi 11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11749$as_echo "$lt_cv_dlopen_self_static" >&6; } 11750 fi 11751 11752 CPPFLAGS=$save_CPPFLAGS 11753 LDFLAGS=$save_LDFLAGS 11754 LIBS=$save_LIBS 11755 ;; 11756 esac 11757 11758 case $lt_cv_dlopen_self in 11759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11760 *) enable_dlopen_self=unknown ;; 11761 esac 11762 11763 case $lt_cv_dlopen_self_static in 11764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11765 *) enable_dlopen_self_static=unknown ;; 11766 esac 11767fi 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785striplib= 11786old_striplib= 11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11788$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11789if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11790 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11791 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11793$as_echo "yes" >&6; } 11794else 11795# FIXME - insert some real tests, host_os isn't really good enough 11796 case $host_os in 11797 darwin*) 11798 if test -n "$STRIP"; then 11799 striplib="$STRIP -x" 11800 old_striplib="$STRIP -S" 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11802$as_echo "yes" >&6; } 11803 else 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11805$as_echo "no" >&6; } 11806 fi 11807 ;; 11808 *) 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11810$as_echo "no" >&6; } 11811 ;; 11812 esac 11813fi 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 # Report what library types will actually be built 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11828$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11830$as_echo "$can_build_shared" >&6; } 11831 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11833$as_echo_n "checking whether to build shared libraries... " >&6; } 11834 test no = "$can_build_shared" && enable_shared=no 11835 11836 # On AIX, shared libraries and static libraries use the same namespace, and 11837 # are all built from PIC. 11838 case $host_os in 11839 aix3*) 11840 test yes = "$enable_shared" && enable_static=no 11841 if test -n "$RANLIB"; then 11842 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11843 postinstall_cmds='$RANLIB $lib' 11844 fi 11845 ;; 11846 11847 aix[4-9]*) 11848 if test ia64 != "$host_cpu"; then 11849 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11850 yes,aix,yes) ;; # shared object as lib.so file only 11851 yes,svr4,*) ;; # shared object as lib.so archive member only 11852 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11853 esac 11854 fi 11855 ;; 11856 esac 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11858$as_echo "$enable_shared" >&6; } 11859 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11861$as_echo_n "checking whether to build static libraries... " >&6; } 11862 # Make sure either enable_shared or enable_static is yes. 11863 test yes = "$enable_shared" || enable_static=yes 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11865$as_echo "$enable_static" >&6; } 11866 11867 11868 11869 11870fi 11871ac_ext=c 11872ac_cpp='$CPP $CPPFLAGS' 11873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11875ac_compiler_gnu=$ac_cv_c_compiler_gnu 11876 11877CC=$lt_save_CC 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 ac_config_commands="$ac_config_commands libtool" 11894 11895 11896 11897 11898# Only expand once: 11899 11900 11901ac_ext=c 11902ac_cpp='$CPP $CPPFLAGS' 11903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11905ac_compiler_gnu=$ac_cv_c_compiler_gnu 11906if test -n "$ac_tool_prefix"; then 11907 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11908set dummy ${ac_tool_prefix}gcc; ac_word=$2 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11910$as_echo_n "checking for $ac_word... " >&6; } 11911if ${ac_cv_prog_CC+:} false; then : 11912 $as_echo_n "(cached) " >&6 11913else 11914 if test -n "$CC"; then 11915 ac_cv_prog_CC="$CC" # Let the user override the test. 11916else 11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11918for as_dir in $PATH 11919do 11920 IFS=$as_save_IFS 11921 test -z "$as_dir" && as_dir=. 11922 for ac_exec_ext in '' $ac_executable_extensions; do 11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11924 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11926 break 2 11927 fi 11928done 11929 done 11930IFS=$as_save_IFS 11931 11932fi 11933fi 11934CC=$ac_cv_prog_CC 11935if test -n "$CC"; then 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11937$as_echo "$CC" >&6; } 11938else 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11940$as_echo "no" >&6; } 11941fi 11942 11943 11944fi 11945if test -z "$ac_cv_prog_CC"; then 11946 ac_ct_CC=$CC 11947 # Extract the first word of "gcc", so it can be a program name with args. 11948set dummy gcc; ac_word=$2 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11950$as_echo_n "checking for $ac_word... " >&6; } 11951if ${ac_cv_prog_ac_ct_CC+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953else 11954 if test -n "$ac_ct_CC"; then 11955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11956else 11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11958for as_dir in $PATH 11959do 11960 IFS=$as_save_IFS 11961 test -z "$as_dir" && as_dir=. 11962 for ac_exec_ext in '' $ac_executable_extensions; do 11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11964 ac_cv_prog_ac_ct_CC="gcc" 11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11966 break 2 11967 fi 11968done 11969 done 11970IFS=$as_save_IFS 11971 11972fi 11973fi 11974ac_ct_CC=$ac_cv_prog_ac_ct_CC 11975if test -n "$ac_ct_CC"; then 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11977$as_echo "$ac_ct_CC" >&6; } 11978else 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11980$as_echo "no" >&6; } 11981fi 11982 11983 if test "x$ac_ct_CC" = x; then 11984 CC="" 11985 else 11986 case $cross_compiling:$ac_tool_warned in 11987yes:) 11988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11990ac_tool_warned=yes ;; 11991esac 11992 CC=$ac_ct_CC 11993 fi 11994else 11995 CC="$ac_cv_prog_CC" 11996fi 11997 11998if test -z "$CC"; then 11999 if test -n "$ac_tool_prefix"; then 12000 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12001set dummy ${ac_tool_prefix}cc; ac_word=$2 12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12003$as_echo_n "checking for $ac_word... " >&6; } 12004if ${ac_cv_prog_CC+:} false; then : 12005 $as_echo_n "(cached) " >&6 12006else 12007 if test -n "$CC"; then 12008 ac_cv_prog_CC="$CC" # Let the user override the test. 12009else 12010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12011for as_dir in $PATH 12012do 12013 IFS=$as_save_IFS 12014 test -z "$as_dir" && as_dir=. 12015 for ac_exec_ext in '' $ac_executable_extensions; do 12016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12017 ac_cv_prog_CC="${ac_tool_prefix}cc" 12018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12019 break 2 12020 fi 12021done 12022 done 12023IFS=$as_save_IFS 12024 12025fi 12026fi 12027CC=$ac_cv_prog_CC 12028if test -n "$CC"; then 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12030$as_echo "$CC" >&6; } 12031else 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12033$as_echo "no" >&6; } 12034fi 12035 12036 12037 fi 12038fi 12039if test -z "$CC"; then 12040 # Extract the first word of "cc", so it can be a program name with args. 12041set dummy cc; ac_word=$2 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12043$as_echo_n "checking for $ac_word... " >&6; } 12044if ${ac_cv_prog_CC+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 if test -n "$CC"; then 12048 ac_cv_prog_CC="$CC" # Let the user override the test. 12049else 12050 ac_prog_rejected=no 12051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12052for as_dir in $PATH 12053do 12054 IFS=$as_save_IFS 12055 test -z "$as_dir" && as_dir=. 12056 for ac_exec_ext in '' $ac_executable_extensions; do 12057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12059 ac_prog_rejected=yes 12060 continue 12061 fi 12062 ac_cv_prog_CC="cc" 12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12064 break 2 12065 fi 12066done 12067 done 12068IFS=$as_save_IFS 12069 12070if test $ac_prog_rejected = yes; then 12071 # We found a bogon in the path, so make sure we never use it. 12072 set dummy $ac_cv_prog_CC 12073 shift 12074 if test $# != 0; then 12075 # We chose a different compiler from the bogus one. 12076 # However, it has the same basename, so the bogon will be chosen 12077 # first if we set CC to just the basename; use the full file name. 12078 shift 12079 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12080 fi 12081fi 12082fi 12083fi 12084CC=$ac_cv_prog_CC 12085if test -n "$CC"; then 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12087$as_echo "$CC" >&6; } 12088else 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12090$as_echo "no" >&6; } 12091fi 12092 12093 12094fi 12095if test -z "$CC"; then 12096 if test -n "$ac_tool_prefix"; then 12097 for ac_prog in cl.exe 12098 do 12099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12100set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12102$as_echo_n "checking for $ac_word... " >&6; } 12103if ${ac_cv_prog_CC+:} false; then : 12104 $as_echo_n "(cached) " >&6 12105else 12106 if test -n "$CC"; then 12107 ac_cv_prog_CC="$CC" # Let the user override the test. 12108else 12109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12110for as_dir in $PATH 12111do 12112 IFS=$as_save_IFS 12113 test -z "$as_dir" && as_dir=. 12114 for ac_exec_ext in '' $ac_executable_extensions; do 12115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12118 break 2 12119 fi 12120done 12121 done 12122IFS=$as_save_IFS 12123 12124fi 12125fi 12126CC=$ac_cv_prog_CC 12127if test -n "$CC"; then 12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12129$as_echo "$CC" >&6; } 12130else 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12132$as_echo "no" >&6; } 12133fi 12134 12135 12136 test -n "$CC" && break 12137 done 12138fi 12139if test -z "$CC"; then 12140 ac_ct_CC=$CC 12141 for ac_prog in cl.exe 12142do 12143 # Extract the first word of "$ac_prog", so it can be a program name with args. 12144set dummy $ac_prog; ac_word=$2 12145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12146$as_echo_n "checking for $ac_word... " >&6; } 12147if ${ac_cv_prog_ac_ct_CC+:} false; then : 12148 $as_echo_n "(cached) " >&6 12149else 12150 if test -n "$ac_ct_CC"; then 12151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12152else 12153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12154for as_dir in $PATH 12155do 12156 IFS=$as_save_IFS 12157 test -z "$as_dir" && as_dir=. 12158 for ac_exec_ext in '' $ac_executable_extensions; do 12159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12160 ac_cv_prog_ac_ct_CC="$ac_prog" 12161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12162 break 2 12163 fi 12164done 12165 done 12166IFS=$as_save_IFS 12167 12168fi 12169fi 12170ac_ct_CC=$ac_cv_prog_ac_ct_CC 12171if test -n "$ac_ct_CC"; then 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12173$as_echo "$ac_ct_CC" >&6; } 12174else 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12176$as_echo "no" >&6; } 12177fi 12178 12179 12180 test -n "$ac_ct_CC" && break 12181done 12182 12183 if test "x$ac_ct_CC" = x; then 12184 CC="" 12185 else 12186 case $cross_compiling:$ac_tool_warned in 12187yes:) 12188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12190ac_tool_warned=yes ;; 12191esac 12192 CC=$ac_ct_CC 12193 fi 12194fi 12195 12196fi 12197 12198 12199test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12201as_fn_error $? "no acceptable C compiler found in \$PATH 12202See \`config.log' for more details" "$LINENO" 5; } 12203 12204# Provide some information about the compiler. 12205$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12206set X $ac_compile 12207ac_compiler=$2 12208for ac_option in --version -v -V -qversion; do 12209 { { ac_try="$ac_compiler $ac_option >&5" 12210case "(($ac_try" in 12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12212 *) ac_try_echo=$ac_try;; 12213esac 12214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12215$as_echo "$ac_try_echo"; } >&5 12216 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12217 ac_status=$? 12218 if test -s conftest.err; then 12219 sed '10a\ 12220... rest of stderr output deleted ... 12221 10q' conftest.err >conftest.er1 12222 cat conftest.er1 >&5 12223 fi 12224 rm -f conftest.er1 conftest.err 12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12226 test $ac_status = 0; } 12227done 12228 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12230$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12231if ${ac_cv_c_compiler_gnu+:} false; then : 12232 $as_echo_n "(cached) " >&6 12233else 12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12235/* end confdefs.h. */ 12236 12237int 12238main () 12239{ 12240#ifndef __GNUC__ 12241 choke me 12242#endif 12243 12244 ; 12245 return 0; 12246} 12247_ACEOF 12248if ac_fn_c_try_compile "$LINENO"; then : 12249 ac_compiler_gnu=yes 12250else 12251 ac_compiler_gnu=no 12252fi 12253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12254ac_cv_c_compiler_gnu=$ac_compiler_gnu 12255 12256fi 12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12258$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12259if test $ac_compiler_gnu = yes; then 12260 GCC=yes 12261else 12262 GCC= 12263fi 12264ac_test_CFLAGS=${CFLAGS+set} 12265ac_save_CFLAGS=$CFLAGS 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12267$as_echo_n "checking whether $CC accepts -g... " >&6; } 12268if ${ac_cv_prog_cc_g+:} false; then : 12269 $as_echo_n "(cached) " >&6 12270else 12271 ac_save_c_werror_flag=$ac_c_werror_flag 12272 ac_c_werror_flag=yes 12273 ac_cv_prog_cc_g=no 12274 CFLAGS="-g" 12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12276/* end confdefs.h. */ 12277 12278int 12279main () 12280{ 12281 12282 ; 12283 return 0; 12284} 12285_ACEOF 12286if ac_fn_c_try_compile "$LINENO"; then : 12287 ac_cv_prog_cc_g=yes 12288else 12289 CFLAGS="" 12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12291/* end confdefs.h. */ 12292 12293int 12294main () 12295{ 12296 12297 ; 12298 return 0; 12299} 12300_ACEOF 12301if ac_fn_c_try_compile "$LINENO"; then : 12302 12303else 12304 ac_c_werror_flag=$ac_save_c_werror_flag 12305 CFLAGS="-g" 12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12307/* end confdefs.h. */ 12308 12309int 12310main () 12311{ 12312 12313 ; 12314 return 0; 12315} 12316_ACEOF 12317if ac_fn_c_try_compile "$LINENO"; then : 12318 ac_cv_prog_cc_g=yes 12319fi 12320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12321fi 12322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12323fi 12324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12325 ac_c_werror_flag=$ac_save_c_werror_flag 12326fi 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12328$as_echo "$ac_cv_prog_cc_g" >&6; } 12329if test "$ac_test_CFLAGS" = set; then 12330 CFLAGS=$ac_save_CFLAGS 12331elif test $ac_cv_prog_cc_g = yes; then 12332 if test "$GCC" = yes; then 12333 CFLAGS="-g -O2" 12334 else 12335 CFLAGS="-g" 12336 fi 12337else 12338 if test "$GCC" = yes; then 12339 CFLAGS="-O2" 12340 else 12341 CFLAGS= 12342 fi 12343fi 12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12345$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12346if ${ac_cv_prog_cc_c89+:} false; then : 12347 $as_echo_n "(cached) " >&6 12348else 12349 ac_cv_prog_cc_c89=no 12350ac_save_CC=$CC 12351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12352/* end confdefs.h. */ 12353#include <stdarg.h> 12354#include <stdio.h> 12355struct stat; 12356/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12357struct buf { int x; }; 12358FILE * (*rcsopen) (struct buf *, struct stat *, int); 12359static char *e (p, i) 12360 char **p; 12361 int i; 12362{ 12363 return p[i]; 12364} 12365static char *f (char * (*g) (char **, int), char **p, ...) 12366{ 12367 char *s; 12368 va_list v; 12369 va_start (v,p); 12370 s = g (p, va_arg (v,int)); 12371 va_end (v); 12372 return s; 12373} 12374 12375/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12376 function prototypes and stuff, but not '\xHH' hex character constants. 12377 These don't provoke an error unfortunately, instead are silently treated 12378 as 'x'. The following induces an error, until -std is added to get 12379 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12380 array size at least. It's necessary to write '\x00'==0 to get something 12381 that's true only with -std. */ 12382int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12383 12384/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12385 inside strings and character constants. */ 12386#define FOO(x) 'x' 12387int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12388 12389int test (int i, double x); 12390struct s1 {int (*f) (int a);}; 12391struct s2 {int (*f) (double a);}; 12392int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12393int argc; 12394char **argv; 12395int 12396main () 12397{ 12398return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12399 ; 12400 return 0; 12401} 12402_ACEOF 12403for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12404 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12405do 12406 CC="$ac_save_CC $ac_arg" 12407 if ac_fn_c_try_compile "$LINENO"; then : 12408 ac_cv_prog_cc_c89=$ac_arg 12409fi 12410rm -f core conftest.err conftest.$ac_objext 12411 test "x$ac_cv_prog_cc_c89" != "xno" && break 12412done 12413rm -f conftest.$ac_ext 12414CC=$ac_save_CC 12415 12416fi 12417# AC_CACHE_VAL 12418case "x$ac_cv_prog_cc_c89" in 12419 x) 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12421$as_echo "none needed" >&6; } ;; 12422 xno) 12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12424$as_echo "unsupported" >&6; } ;; 12425 *) 12426 CC="$CC $ac_cv_prog_cc_c89" 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12428$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12429esac 12430if test "x$ac_cv_prog_cc_c89" != xno; then : 12431 12432fi 12433 12434ac_ext=c 12435ac_cpp='$CPP $CPPFLAGS' 12436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12438ac_compiler_gnu=$ac_cv_c_compiler_gnu 12439 12440ac_ext=c 12441ac_cpp='$CPP $CPPFLAGS' 12442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12444ac_compiler_gnu=$ac_cv_c_compiler_gnu 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12446$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12447if ${am_cv_prog_cc_c_o+:} false; then : 12448 $as_echo_n "(cached) " >&6 12449else 12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12451/* end confdefs.h. */ 12452 12453int 12454main () 12455{ 12456 12457 ; 12458 return 0; 12459} 12460_ACEOF 12461 # Make sure it works both with $CC and with simple cc. 12462 # Following AC_PROG_CC_C_O, we do the test twice because some 12463 # compilers refuse to overwrite an existing .o file with -o, 12464 # though they will create one. 12465 am_cv_prog_cc_c_o=yes 12466 for am_i in 1 2; do 12467 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12468 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12469 ac_status=$? 12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12471 (exit $ac_status); } \ 12472 && test -f conftest2.$ac_objext; then 12473 : OK 12474 else 12475 am_cv_prog_cc_c_o=no 12476 break 12477 fi 12478 done 12479 rm -f core conftest* 12480 unset am_i 12481fi 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12483$as_echo "$am_cv_prog_cc_c_o" >&6; } 12484if test "$am_cv_prog_cc_c_o" != yes; then 12485 # Losing compiler, so override with the script. 12486 # FIXME: It is wrong to rewrite CC. 12487 # But if we don't then we get into trouble of one sort or another. 12488 # A longer-term fix would be to have automake use am__CC in this case, 12489 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12490 CC="$am_aux_dir/compile $CC" 12491fi 12492ac_ext=c 12493ac_cpp='$CPP $CPPFLAGS' 12494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12496ac_compiler_gnu=$ac_cv_c_compiler_gnu 12497 12498 12499depcc="$CC" am_compiler_list= 12500 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12502$as_echo_n "checking dependency style of $depcc... " >&6; } 12503if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12504 $as_echo_n "(cached) " >&6 12505else 12506 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12507 # We make a subdir and do the tests there. Otherwise we can end up 12508 # making bogus files that we don't know about and never remove. For 12509 # instance it was reported that on HP-UX the gcc test will end up 12510 # making a dummy file named 'D' -- because '-MD' means "put the output 12511 # in D". 12512 rm -rf conftest.dir 12513 mkdir conftest.dir 12514 # Copy depcomp to subdir because otherwise we won't find it if we're 12515 # using a relative directory. 12516 cp "$am_depcomp" conftest.dir 12517 cd conftest.dir 12518 # We will build objects and dependencies in a subdirectory because 12519 # it helps to detect inapplicable dependency modes. For instance 12520 # both Tru64's cc and ICC support -MD to output dependencies as a 12521 # side effect of compilation, but ICC will put the dependencies in 12522 # the current directory while Tru64 will put them in the object 12523 # directory. 12524 mkdir sub 12525 12526 am_cv_CC_dependencies_compiler_type=none 12527 if test "$am_compiler_list" = ""; then 12528 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12529 fi 12530 am__universal=false 12531 case " $depcc " in #( 12532 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12533 esac 12534 12535 for depmode in $am_compiler_list; do 12536 # Setup a source with many dependencies, because some compilers 12537 # like to wrap large dependency lists on column 80 (with \), and 12538 # we should not choose a depcomp mode which is confused by this. 12539 # 12540 # We need to recreate these files for each test, as the compiler may 12541 # overwrite some of them when testing with obscure command lines. 12542 # This happens at least with the AIX C compiler. 12543 : > sub/conftest.c 12544 for i in 1 2 3 4 5 6; do 12545 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12546 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12547 # Solaris 10 /bin/sh. 12548 echo '/* dummy */' > sub/conftst$i.h 12549 done 12550 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12551 12552 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12553 # mode. It turns out that the SunPro C++ compiler does not properly 12554 # handle '-M -o', and we need to detect this. Also, some Intel 12555 # versions had trouble with output in subdirs. 12556 am__obj=sub/conftest.${OBJEXT-o} 12557 am__minus_obj="-o $am__obj" 12558 case $depmode in 12559 gcc) 12560 # This depmode causes a compiler race in universal mode. 12561 test "$am__universal" = false || continue 12562 ;; 12563 nosideeffect) 12564 # After this tag, mechanisms are not by side-effect, so they'll 12565 # only be used when explicitly requested. 12566 if test "x$enable_dependency_tracking" = xyes; then 12567 continue 12568 else 12569 break 12570 fi 12571 ;; 12572 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12573 # This compiler won't grok '-c -o', but also, the minuso test has 12574 # not run yet. These depmodes are late enough in the game, and 12575 # so weak that their functioning should not be impacted. 12576 am__obj=conftest.${OBJEXT-o} 12577 am__minus_obj= 12578 ;; 12579 none) break ;; 12580 esac 12581 if depmode=$depmode \ 12582 source=sub/conftest.c object=$am__obj \ 12583 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12584 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12585 >/dev/null 2>conftest.err && 12586 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12587 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12588 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12589 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12590 # icc doesn't choke on unknown options, it will just issue warnings 12591 # or remarks (even with -Werror). So we grep stderr for any message 12592 # that says an option was ignored or not supported. 12593 # When given -MP, icc 7.0 and 7.1 complain thusly: 12594 # icc: Command line warning: ignoring option '-M'; no argument required 12595 # The diagnosis changed in icc 8.0: 12596 # icc: Command line remark: option '-MP' not supported 12597 if (grep 'ignoring option' conftest.err || 12598 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12599 am_cv_CC_dependencies_compiler_type=$depmode 12600 break 12601 fi 12602 fi 12603 done 12604 12605 cd .. 12606 rm -rf conftest.dir 12607else 12608 am_cv_CC_dependencies_compiler_type=none 12609fi 12610 12611fi 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12613$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12614CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12615 12616 if 12617 test "x$enable_dependency_tracking" != xno \ 12618 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12619 am__fastdepCC_TRUE= 12620 am__fastdepCC_FALSE='#' 12621else 12622 am__fastdepCC_TRUE='#' 12623 am__fastdepCC_FALSE= 12624fi 12625 12626 12627 12628# Build with -Wall. 12629CFLAGS="$CFLAGS -Wall" 12630 12631# Check the host operating system type: posix or win32. 12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host operating system type" >&5 12633$as_echo_n "checking host operating system type... " >&6; } 12634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12635/* end confdefs.h. */ 12636#include <unistd.h> 12637 #ifndef _POSIX_VERSION 12638 #error not POSIX 12639 #endif 12640 12641_ACEOF 12642if ac_fn_c_try_compile "$LINENO"; then : 12643 ac_cv_host_system=posix 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: posix" >&5 12645$as_echo "posix" >&6; } 12646else 12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649#ifndef _WIN32 12650 #error not WIN32 12651 #endif 12652 12653_ACEOF 12654if ac_fn_c_try_compile "$LINENO"; then : 12655 ac_cv_host_system=win32 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: win32" >&5 12657$as_echo "win32" >&6; } 12658else 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 12660$as_echo "unknown" >&6; } 12661 as_fn_error $? "Can't determine host system type." "$LINENO" 5 12662fi 12663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12664fi 12665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12666 12667if test $ac_cv_host_system = posix 12668then 12669 12670# OS-specific preprocessor defines. 12671case $host_os in 12672hpux*) 12673 # 12674 # On HP-UX, we need -D_XOPEN_SOURCE=500 so that the 12675 # Berkeley socket API uses 'socklen_t' instead of int. 12676 # 12677 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500" 12678 ;; 12679osf*) 12680 # 12681 # On Tru64, we need -D_POSIX_PII_SOCKET so that 12682 # sys/socket.h defines 'socklen_t'. 12683 # 12684 CFLAGS="$CFLAGS -D_POSIX_PII_SOCKET" 12685 ;; 12686esac 12687 12688# 12689# Check for pthreads support. 12690# 12691# At least Tru64 needs -pthread, to avoid the following error when 12692# including pthread.h: 12693# 12694# pthread.h:339:4: error: #error "Please compile the module 12695# including pthread.h with -pthread" 12696# 12697ac_save_CFLAGS=$CFLAGS 12698ac_save_c_werror_flag=$ac_c_werror_flag 12699ac_c_werror_flag=yes 12700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 12701$as_echo_n "checking whether $CC accepts -pthread... " >&6; } 12702if ${ac_cv_prog_cc_pthread+:} false; then : 12703 $as_echo_n "(cached) " >&6 12704else 12705 ac_cv_prog_cc_pthread=no 12706 CFLAGS="-pthread" 12707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12708/* end confdefs.h. */ 12709 12710int 12711main () 12712{ 12713 12714 ; 12715 return 0; 12716} 12717_ACEOF 12718if ac_fn_c_try_compile "$LINENO"; then : 12719 ac_cv_prog_cc_pthread=yes 12720fi 12721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12722 12723fi 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pthread" >&5 12725$as_echo "$ac_cv_prog_cc_pthread" >&6; } 12726if test $ac_cv_prog_cc_pthread = yes 12727then 12728 CFLAGS="$ac_save_CFLAGS -pthread" 12729else 12730 CFLAGS=$ac_save_CFLAGS 12731fi 12732ac_c_werror_flag=$ac_save_c_werror_flag 12733 12734# 12735# At least Solaris 11 for x86 needs building with -pthreads to 12736# avoid run-time breakage in multithreaded applications. 12737# 12738ac_save_CFLAGS=$CFLAGS 12739ac_save_c_werror_flag=$ac_c_werror_flag 12740ac_c_werror_flag=yes 12741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthreads" >&5 12742$as_echo_n "checking whether $CC accepts -pthreads... " >&6; } 12743if ${ac_cv_prog_cc_pthreads+:} false; then : 12744 $as_echo_n "(cached) " >&6 12745else 12746 ac_cv_prog_cc_pthreads=no 12747 CFLAGS="-pthreads" 12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12749/* end confdefs.h. */ 12750 12751int 12752main () 12753{ 12754 12755 ; 12756 return 0; 12757} 12758_ACEOF 12759if ac_fn_c_try_compile "$LINENO"; then : 12760 ac_cv_prog_cc_pthreads=yes 12761fi 12762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12763 12764fi 12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pthreads" >&5 12766$as_echo "$ac_cv_prog_cc_pthreads" >&6; } 12767if test $ac_cv_prog_cc_pthreads = yes 12768then 12769 CFLAGS="$ac_save_CFLAGS -pthreads" 12770else 12771 CFLAGS=$ac_save_CFLAGS 12772fi 12773ac_c_werror_flag=$ac_save_c_werror_flag 12774 12775# 12776# We cannot use pthread_atfork() for our AC_SEARCH_LIBS() test, as on 12777# Linux is it provided by a library that does not provide the rest of 12778# the pthread functions (libpthread_nonshared.a), and on FreeBSD it is 12779# provided by libc.so itself. Search for pthread_create() instead. 12780# 12781# On SCO OpenServer Release 6 and SCO UnixWare 7.1.4, the pthread 12782# functions appear to live in libthread, so check for that in 12783# addition to checking for libpthread. 12784# 12785# Tru64 uses mangled symbol names in its libpthread, and has some 12786# preprocessor magic in its pthread.h to do the same mangling, and 12787# so, testing for pthreads symbols without including pthread.h 12788# doesn't work. Since AC_SEARCH_LIBS() doesn't allow specifying a 12789# header file to be included for tests (and on Tru64, we can't 12790# include pthread.h without additionally specifying -pthread), we'll 12791# check for __pthread_create if pthread_create does not exist. 12792# 12793# On HP-UX, libpthread uses mangled symbol names like on Tru64, but 12794# what's worse, the HP-UX C library provides stub versions of almost 12795# all libpthread functions that return errors instead of doing what 12796# they are supposed to, and there's no way to detect this at compile 12797# time. However, there are a number of symbols in libpthread that 12798# the C library doesn't define stubs for, and we can test for one of 12799# those (pthread_trace_notify_np is one of those symbols). 12800# 12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 12802$as_echo_n "checking for library containing pthread_create... " >&6; } 12803if ${ac_cv_search_pthread_create+:} false; then : 12804 $as_echo_n "(cached) " >&6 12805else 12806 ac_func_search_save_LIBS=$LIBS 12807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12808/* end confdefs.h. */ 12809 12810/* Override any GCC internal prototype to avoid an error. 12811 Use char because int might match the return type of a GCC 12812 builtin and then its argument prototype would still apply. */ 12813#ifdef __cplusplus 12814extern "C" 12815#endif 12816char pthread_create (); 12817int 12818main () 12819{ 12820return pthread_create (); 12821 ; 12822 return 0; 12823} 12824_ACEOF 12825for ac_lib in '' pthread thread; do 12826 if test -z "$ac_lib"; then 12827 ac_res="none required" 12828 else 12829 ac_res=-l$ac_lib 12830 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12831 fi 12832 if ac_fn_c_try_link "$LINENO"; then : 12833 ac_cv_search_pthread_create=$ac_res 12834fi 12835rm -f core conftest.err conftest.$ac_objext \ 12836 conftest$ac_exeext 12837 if ${ac_cv_search_pthread_create+:} false; then : 12838 break 12839fi 12840done 12841if ${ac_cv_search_pthread_create+:} false; then : 12842 12843else 12844 ac_cv_search_pthread_create=no 12845fi 12846rm conftest.$ac_ext 12847LIBS=$ac_func_search_save_LIBS 12848fi 12849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 12850$as_echo "$ac_cv_search_pthread_create" >&6; } 12851ac_res=$ac_cv_search_pthread_create 12852if test "$ac_res" != no; then : 12853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12854 12855else 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __pthread_create" >&5 12857$as_echo_n "checking for library containing __pthread_create... " >&6; } 12858if ${ac_cv_search___pthread_create+:} false; then : 12859 $as_echo_n "(cached) " >&6 12860else 12861 ac_func_search_save_LIBS=$LIBS 12862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12863/* end confdefs.h. */ 12864 12865/* Override any GCC internal prototype to avoid an error. 12866 Use char because int might match the return type of a GCC 12867 builtin and then its argument prototype would still apply. */ 12868#ifdef __cplusplus 12869extern "C" 12870#endif 12871char __pthread_create (); 12872int 12873main () 12874{ 12875return __pthread_create (); 12876 ; 12877 return 0; 12878} 12879_ACEOF 12880for ac_lib in '' pthread; do 12881 if test -z "$ac_lib"; then 12882 ac_res="none required" 12883 else 12884 ac_res=-l$ac_lib 12885 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12886 fi 12887 if ac_fn_c_try_link "$LINENO"; then : 12888 ac_cv_search___pthread_create=$ac_res 12889fi 12890rm -f core conftest.err conftest.$ac_objext \ 12891 conftest$ac_exeext 12892 if ${ac_cv_search___pthread_create+:} false; then : 12893 break 12894fi 12895done 12896if ${ac_cv_search___pthread_create+:} false; then : 12897 12898else 12899 ac_cv_search___pthread_create=no 12900fi 12901rm conftest.$ac_ext 12902LIBS=$ac_func_search_save_LIBS 12903fi 12904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___pthread_create" >&5 12905$as_echo "$ac_cv_search___pthread_create" >&6; } 12906ac_res=$ac_cv_search___pthread_create 12907if test "$ac_res" != no; then : 12908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12909 12910else 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_trace_notify_np" >&5 12912$as_echo_n "checking for library containing pthread_trace_notify_np... " >&6; } 12913if ${ac_cv_search_pthread_trace_notify_np+:} false; then : 12914 $as_echo_n "(cached) " >&6 12915else 12916 ac_func_search_save_LIBS=$LIBS 12917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12918/* end confdefs.h. */ 12919 12920/* Override any GCC internal prototype to avoid an error. 12921 Use char because int might match the return type of a GCC 12922 builtin and then its argument prototype would still apply. */ 12923#ifdef __cplusplus 12924extern "C" 12925#endif 12926char pthread_trace_notify_np (); 12927int 12928main () 12929{ 12930return pthread_trace_notify_np (); 12931 ; 12932 return 0; 12933} 12934_ACEOF 12935for ac_lib in '' pthread; do 12936 if test -z "$ac_lib"; then 12937 ac_res="none required" 12938 else 12939 ac_res=-l$ac_lib 12940 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12941 fi 12942 if ac_fn_c_try_link "$LINENO"; then : 12943 ac_cv_search_pthread_trace_notify_np=$ac_res 12944fi 12945rm -f core conftest.err conftest.$ac_objext \ 12946 conftest$ac_exeext 12947 if ${ac_cv_search_pthread_trace_notify_np+:} false; then : 12948 break 12949fi 12950done 12951if ${ac_cv_search_pthread_trace_notify_np+:} false; then : 12952 12953else 12954 ac_cv_search_pthread_trace_notify_np=no 12955fi 12956rm conftest.$ac_ext 12957LIBS=$ac_func_search_save_LIBS 12958fi 12959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_trace_notify_np" >&5 12960$as_echo "$ac_cv_search_pthread_trace_notify_np" >&6; } 12961ac_res=$ac_cv_search_pthread_trace_notify_np 12962if test "$ac_res" != no; then : 12963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12964 12965else 12966 as_fn_error $? "pthreads support is required to build ivykis." "$LINENO" 5 12967fi 12968 12969fi 12970 12971fi 12972 12973 12974# Checks for libraries. 12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12976$as_echo_n "checking for library containing socket... " >&6; } 12977if ${ac_cv_search_socket+:} false; then : 12978 $as_echo_n "(cached) " >&6 12979else 12980 ac_func_search_save_LIBS=$LIBS 12981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12982/* end confdefs.h. */ 12983 12984/* Override any GCC internal prototype to avoid an error. 12985 Use char because int might match the return type of a GCC 12986 builtin and then its argument prototype would still apply. */ 12987#ifdef __cplusplus 12988extern "C" 12989#endif 12990char socket (); 12991int 12992main () 12993{ 12994return socket (); 12995 ; 12996 return 0; 12997} 12998_ACEOF 12999for ac_lib in '' socket; do 13000 if test -z "$ac_lib"; then 13001 ac_res="none required" 13002 else 13003 ac_res=-l$ac_lib 13004 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13005 fi 13006 if ac_fn_c_try_link "$LINENO"; then : 13007 ac_cv_search_socket=$ac_res 13008fi 13009rm -f core conftest.err conftest.$ac_objext \ 13010 conftest$ac_exeext 13011 if ${ac_cv_search_socket+:} false; then : 13012 break 13013fi 13014done 13015if ${ac_cv_search_socket+:} false; then : 13016 13017else 13018 ac_cv_search_socket=no 13019fi 13020rm conftest.$ac_ext 13021LIBS=$ac_func_search_save_LIBS 13022fi 13023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13024$as_echo "$ac_cv_search_socket" >&6; } 13025ac_res=$ac_cv_search_socket 13026if test "$ac_res" != no; then : 13027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13028 13029fi 13030 13031 13032# Checks for library functions. 13033for ac_func in inotify_init 13034do : 13035 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" 13036if test "x$ac_cv_func_inotify_init" = xyes; then : 13037 cat >>confdefs.h <<_ACEOF 13038#define HAVE_INOTIFY_INIT 1 13039_ACEOF 13040 13041fi 13042done 13043 13044 13045fi 13046 13047 13048# Conditionals for OS type. 13049 if test $ac_cv_host_system = posix; then 13050 HAVE_POSIX_TRUE= 13051 HAVE_POSIX_FALSE='#' 13052else 13053 HAVE_POSIX_TRUE='#' 13054 HAVE_POSIX_FALSE= 13055fi 13056 13057 if test $ac_cv_host_system = win32; then 13058 HAVE_WIN32_TRUE= 13059 HAVE_WIN32_FALSE='#' 13060else 13061 HAVE_WIN32_TRUE='#' 13062 HAVE_WIN32_FALSE= 13063fi 13064 13065 13066# Other conditionals. 13067 if test x$ac_cv_func_inotify_init = xyes; then 13068 HAVE_INOTIFY_TRUE= 13069 HAVE_INOTIFY_FALSE='#' 13070else 13071 HAVE_INOTIFY_TRUE='#' 13072 HAVE_INOTIFY_FALSE= 13073fi 13074 13075 13076ac_config_files="$ac_config_files Makefile" 13077 13078cat >confcache <<\_ACEOF 13079# This file is a shell script that caches the results of configure 13080# tests run on this system so they can be shared between configure 13081# scripts and configure runs, see configure's option --config-cache. 13082# It is not useful on other systems. If it contains results you don't 13083# want to keep, you may remove or edit it. 13084# 13085# config.status only pays attention to the cache file if you give it 13086# the --recheck option to rerun configure. 13087# 13088# `ac_cv_env_foo' variables (set or unset) will be overridden when 13089# loading this file, other *unset* `ac_cv_foo' will be assigned the 13090# following values. 13091 13092_ACEOF 13093 13094# The following way of writing the cache mishandles newlines in values, 13095# but we know of no workaround that is simple, portable, and efficient. 13096# So, we kill variables containing newlines. 13097# Ultrix sh set writes to stderr and can't be redirected directly, 13098# and sets the high bit in the cache file unless we assign to the vars. 13099( 13100 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13101 eval ac_val=\$$ac_var 13102 case $ac_val in #( 13103 *${as_nl}*) 13104 case $ac_var in #( 13105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13106$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13107 esac 13108 case $ac_var in #( 13109 _ | IFS | as_nl) ;; #( 13110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13111 *) { eval $ac_var=; unset $ac_var;} ;; 13112 esac ;; 13113 esac 13114 done 13115 13116 (set) 2>&1 | 13117 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13118 *${as_nl}ac_space=\ *) 13119 # `set' does not quote correctly, so add quotes: double-quote 13120 # substitution turns \\\\ into \\, and sed turns \\ into \. 13121 sed -n \ 13122 "s/'/'\\\\''/g; 13123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13124 ;; #( 13125 *) 13126 # `set' quotes correctly as required by POSIX, so do not add quotes. 13127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13128 ;; 13129 esac | 13130 sort 13131) | 13132 sed ' 13133 /^ac_cv_env_/b end 13134 t clear 13135 :clear 13136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13137 t end 13138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13139 :end' >>confcache 13140if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13141 if test -w "$cache_file"; then 13142 if test "x$cache_file" != "x/dev/null"; then 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13144$as_echo "$as_me: updating cache $cache_file" >&6;} 13145 if test ! -f "$cache_file" || test -h "$cache_file"; then 13146 cat confcache >"$cache_file" 13147 else 13148 case $cache_file in #( 13149 */* | ?:*) 13150 mv -f confcache "$cache_file"$$ && 13151 mv -f "$cache_file"$$ "$cache_file" ;; #( 13152 *) 13153 mv -f confcache "$cache_file" ;; 13154 esac 13155 fi 13156 fi 13157 else 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13159$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13160 fi 13161fi 13162rm -f confcache 13163 13164test "x$prefix" = xNONE && prefix=$ac_default_prefix 13165# Let make expand exec_prefix. 13166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13167 13168DEFS=-DHAVE_CONFIG_H 13169 13170ac_libobjs= 13171ac_ltlibobjs= 13172U= 13173for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13174 # 1. Remove the extension, and $U if already installed. 13175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13178 # will be set to the directory where LIBOBJS objects are built. 13179 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13180 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13181done 13182LIBOBJS=$ac_libobjs 13183 13184LTLIBOBJS=$ac_ltlibobjs 13185 13186 13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13188$as_echo_n "checking that generated files are newer than configure... " >&6; } 13189 if test -n "$am_sleep_pid"; then 13190 # Hide warnings about reused PIDs. 13191 wait $am_sleep_pid 2>/dev/null 13192 fi 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13194$as_echo "done" >&6; } 13195 if test -n "$EXEEXT"; then 13196 am__EXEEXT_TRUE= 13197 am__EXEEXT_FALSE='#' 13198else 13199 am__EXEEXT_TRUE='#' 13200 am__EXEEXT_FALSE= 13201fi 13202 13203if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13204 as_fn_error $? "conditional \"AMDEP\" was never defined. 13205Usually this means the macro was only invoked conditionally." "$LINENO" 5 13206fi 13207if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13208 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13209Usually this means the macro was only invoked conditionally." "$LINENO" 5 13210fi 13211if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13212 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13213Usually this means the macro was only invoked conditionally." "$LINENO" 5 13214fi 13215if test -z "${HAVE_POSIX_TRUE}" && test -z "${HAVE_POSIX_FALSE}"; then 13216 as_fn_error $? "conditional \"HAVE_POSIX\" was never defined. 13217Usually this means the macro was only invoked conditionally." "$LINENO" 5 13218fi 13219if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then 13220 as_fn_error $? "conditional \"HAVE_WIN32\" was never defined. 13221Usually this means the macro was only invoked conditionally." "$LINENO" 5 13222fi 13223if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then 13224 as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined. 13225Usually this means the macro was only invoked conditionally." "$LINENO" 5 13226fi 13227 13228: "${CONFIG_STATUS=./config.status}" 13229ac_write_fail=0 13230ac_clean_files_save=$ac_clean_files 13231ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13233$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13234as_write_fail=0 13235cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13236#! $SHELL 13237# Generated by $as_me. 13238# Run this file to recreate the current configuration. 13239# Compiler output produced by configure, useful for debugging 13240# configure, is in config.log if it exists. 13241 13242debug=false 13243ac_cs_recheck=false 13244ac_cs_silent=false 13245 13246SHELL=\${CONFIG_SHELL-$SHELL} 13247export SHELL 13248_ASEOF 13249cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13250## -------------------- ## 13251## M4sh Initialization. ## 13252## -------------------- ## 13253 13254# Be more Bourne compatible 13255DUALCASE=1; export DUALCASE # for MKS sh 13256if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13257 emulate sh 13258 NULLCMD=: 13259 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13260 # is contrary to our usage. Disable this feature. 13261 alias -g '${1+"$@"}'='"$@"' 13262 setopt NO_GLOB_SUBST 13263else 13264 case `(set -o) 2>/dev/null` in #( 13265 *posix*) : 13266 set -o posix ;; #( 13267 *) : 13268 ;; 13269esac 13270fi 13271 13272 13273as_nl=' 13274' 13275export as_nl 13276# Printing a long string crashes Solaris 7 /usr/bin/printf. 13277as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13278as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13279as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13280# Prefer a ksh shell builtin over an external printf program on Solaris, 13281# but without wasting forks for bash or zsh. 13282if test -z "$BASH_VERSION$ZSH_VERSION" \ 13283 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13284 as_echo='print -r --' 13285 as_echo_n='print -rn --' 13286elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13287 as_echo='printf %s\n' 13288 as_echo_n='printf %s' 13289else 13290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13291 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13292 as_echo_n='/usr/ucb/echo -n' 13293 else 13294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13295 as_echo_n_body='eval 13296 arg=$1; 13297 case $arg in #( 13298 *"$as_nl"*) 13299 expr "X$arg" : "X\\(.*\\)$as_nl"; 13300 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13301 esac; 13302 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13303 ' 13304 export as_echo_n_body 13305 as_echo_n='sh -c $as_echo_n_body as_echo' 13306 fi 13307 export as_echo_body 13308 as_echo='sh -c $as_echo_body as_echo' 13309fi 13310 13311# The user is always right. 13312if test "${PATH_SEPARATOR+set}" != set; then 13313 PATH_SEPARATOR=: 13314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13316 PATH_SEPARATOR=';' 13317 } 13318fi 13319 13320 13321# IFS 13322# We need space, tab and new line, in precisely that order. Quoting is 13323# there to prevent editors from complaining about space-tab. 13324# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13325# splitting by setting IFS to empty value.) 13326IFS=" "" $as_nl" 13327 13328# Find who we are. Look in the path if we contain no directory separator. 13329as_myself= 13330case $0 in #(( 13331 *[\\/]* ) as_myself=$0 ;; 13332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13333for as_dir in $PATH 13334do 13335 IFS=$as_save_IFS 13336 test -z "$as_dir" && as_dir=. 13337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13338 done 13339IFS=$as_save_IFS 13340 13341 ;; 13342esac 13343# We did not find ourselves, most probably we were run as `sh COMMAND' 13344# in which case we are not to be found in the path. 13345if test "x$as_myself" = x; then 13346 as_myself=$0 13347fi 13348if test ! -f "$as_myself"; then 13349 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13350 exit 1 13351fi 13352 13353# Unset variables that we do not need and which cause bugs (e.g. in 13354# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13355# suppresses any "Segmentation fault" message there. '((' could 13356# trigger a bug in pdksh 5.2.14. 13357for as_var in BASH_ENV ENV MAIL MAILPATH 13358do eval test x\${$as_var+set} = xset \ 13359 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13360done 13361PS1='$ ' 13362PS2='> ' 13363PS4='+ ' 13364 13365# NLS nuisances. 13366LC_ALL=C 13367export LC_ALL 13368LANGUAGE=C 13369export LANGUAGE 13370 13371# CDPATH. 13372(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13373 13374 13375# as_fn_error STATUS ERROR [LINENO LOG_FD] 13376# ---------------------------------------- 13377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13379# script with STATUS, using 1 if that was 0. 13380as_fn_error () 13381{ 13382 as_status=$1; test $as_status -eq 0 && as_status=1 13383 if test "$4"; then 13384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13386 fi 13387 $as_echo "$as_me: error: $2" >&2 13388 as_fn_exit $as_status 13389} # as_fn_error 13390 13391 13392# as_fn_set_status STATUS 13393# ----------------------- 13394# Set $? to STATUS, without forking. 13395as_fn_set_status () 13396{ 13397 return $1 13398} # as_fn_set_status 13399 13400# as_fn_exit STATUS 13401# ----------------- 13402# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13403as_fn_exit () 13404{ 13405 set +e 13406 as_fn_set_status $1 13407 exit $1 13408} # as_fn_exit 13409 13410# as_fn_unset VAR 13411# --------------- 13412# Portably unset VAR. 13413as_fn_unset () 13414{ 13415 { eval $1=; unset $1;} 13416} 13417as_unset=as_fn_unset 13418# as_fn_append VAR VALUE 13419# ---------------------- 13420# Append the text in VALUE to the end of the definition contained in VAR. Take 13421# advantage of any shell optimizations that allow amortized linear growth over 13422# repeated appends, instead of the typical quadratic growth present in naive 13423# implementations. 13424if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13425 eval 'as_fn_append () 13426 { 13427 eval $1+=\$2 13428 }' 13429else 13430 as_fn_append () 13431 { 13432 eval $1=\$$1\$2 13433 } 13434fi # as_fn_append 13435 13436# as_fn_arith ARG... 13437# ------------------ 13438# Perform arithmetic evaluation on the ARGs, and store the result in the 13439# global $as_val. Take advantage of shells that can avoid forks. The arguments 13440# must be portable across $(()) and expr. 13441if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13442 eval 'as_fn_arith () 13443 { 13444 as_val=$(( $* )) 13445 }' 13446else 13447 as_fn_arith () 13448 { 13449 as_val=`expr "$@" || test $? -eq 1` 13450 } 13451fi # as_fn_arith 13452 13453 13454if expr a : '\(a\)' >/dev/null 2>&1 && 13455 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13456 as_expr=expr 13457else 13458 as_expr=false 13459fi 13460 13461if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13462 as_basename=basename 13463else 13464 as_basename=false 13465fi 13466 13467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13468 as_dirname=dirname 13469else 13470 as_dirname=false 13471fi 13472 13473as_me=`$as_basename -- "$0" || 13474$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13475 X"$0" : 'X\(//\)$' \| \ 13476 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13477$as_echo X/"$0" | 13478 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13479 s//\1/ 13480 q 13481 } 13482 /^X\/\(\/\/\)$/{ 13483 s//\1/ 13484 q 13485 } 13486 /^X\/\(\/\).*/{ 13487 s//\1/ 13488 q 13489 } 13490 s/.*/./; q'` 13491 13492# Avoid depending upon Character Ranges. 13493as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13494as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13495as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13496as_cr_digits='0123456789' 13497as_cr_alnum=$as_cr_Letters$as_cr_digits 13498 13499ECHO_C= ECHO_N= ECHO_T= 13500case `echo -n x` in #((((( 13501-n*) 13502 case `echo 'xy\c'` in 13503 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13504 xy) ECHO_C='\c';; 13505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13506 ECHO_T=' ';; 13507 esac;; 13508*) 13509 ECHO_N='-n';; 13510esac 13511 13512rm -f conf$$ conf$$.exe conf$$.file 13513if test -d conf$$.dir; then 13514 rm -f conf$$.dir/conf$$.file 13515else 13516 rm -f conf$$.dir 13517 mkdir conf$$.dir 2>/dev/null 13518fi 13519if (echo >conf$$.file) 2>/dev/null; then 13520 if ln -s conf$$.file conf$$ 2>/dev/null; then 13521 as_ln_s='ln -s' 13522 # ... but there are two gotchas: 13523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13525 # In both cases, we have to default to `cp -pR'. 13526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13527 as_ln_s='cp -pR' 13528 elif ln conf$$.file conf$$ 2>/dev/null; then 13529 as_ln_s=ln 13530 else 13531 as_ln_s='cp -pR' 13532 fi 13533else 13534 as_ln_s='cp -pR' 13535fi 13536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13537rmdir conf$$.dir 2>/dev/null 13538 13539 13540# as_fn_mkdir_p 13541# ------------- 13542# Create "$as_dir" as a directory, including parents if necessary. 13543as_fn_mkdir_p () 13544{ 13545 13546 case $as_dir in #( 13547 -*) as_dir=./$as_dir;; 13548 esac 13549 test -d "$as_dir" || eval $as_mkdir_p || { 13550 as_dirs= 13551 while :; do 13552 case $as_dir in #( 13553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13554 *) as_qdir=$as_dir;; 13555 esac 13556 as_dirs="'$as_qdir' $as_dirs" 13557 as_dir=`$as_dirname -- "$as_dir" || 13558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13559 X"$as_dir" : 'X\(//\)[^/]' \| \ 13560 X"$as_dir" : 'X\(//\)$' \| \ 13561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13562$as_echo X"$as_dir" | 13563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13564 s//\1/ 13565 q 13566 } 13567 /^X\(\/\/\)[^/].*/{ 13568 s//\1/ 13569 q 13570 } 13571 /^X\(\/\/\)$/{ 13572 s//\1/ 13573 q 13574 } 13575 /^X\(\/\).*/{ 13576 s//\1/ 13577 q 13578 } 13579 s/.*/./; q'` 13580 test -d "$as_dir" && break 13581 done 13582 test -z "$as_dirs" || eval "mkdir $as_dirs" 13583 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13584 13585 13586} # as_fn_mkdir_p 13587if mkdir -p . 2>/dev/null; then 13588 as_mkdir_p='mkdir -p "$as_dir"' 13589else 13590 test -d ./-p && rmdir ./-p 13591 as_mkdir_p=false 13592fi 13593 13594 13595# as_fn_executable_p FILE 13596# ----------------------- 13597# Test if FILE is an executable regular file. 13598as_fn_executable_p () 13599{ 13600 test -f "$1" && test -x "$1" 13601} # as_fn_executable_p 13602as_test_x='test -x' 13603as_executable_p=as_fn_executable_p 13604 13605# Sed expression to map a string onto a valid CPP name. 13606as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13607 13608# Sed expression to map a string onto a valid variable name. 13609as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13610 13611 13612exec 6>&1 13613## ----------------------------------- ## 13614## Main body of $CONFIG_STATUS script. ## 13615## ----------------------------------- ## 13616_ASEOF 13617test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13618 13619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13620# Save the log message, to keep $0 and so on meaningful, and to 13621# report actual input values of CONFIG_FILES etc. instead of their 13622# values after options handling. 13623ac_log=" 13624This file was extended by ivykis-test-mt $as_me 0.1, which was 13625generated by GNU Autoconf 2.69. Invocation command line was 13626 13627 CONFIG_FILES = $CONFIG_FILES 13628 CONFIG_HEADERS = $CONFIG_HEADERS 13629 CONFIG_LINKS = $CONFIG_LINKS 13630 CONFIG_COMMANDS = $CONFIG_COMMANDS 13631 $ $0 $@ 13632 13633on `(hostname || uname -n) 2>/dev/null | sed 1q` 13634" 13635 13636_ACEOF 13637 13638case $ac_config_files in *" 13639"*) set x $ac_config_files; shift; ac_config_files=$*;; 13640esac 13641 13642case $ac_config_headers in *" 13643"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13644esac 13645 13646 13647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13648# Files that config.status was made for. 13649config_files="$ac_config_files" 13650config_headers="$ac_config_headers" 13651config_commands="$ac_config_commands" 13652 13653_ACEOF 13654 13655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13656ac_cs_usage="\ 13657\`$as_me' instantiates files and other configuration actions 13658from templates according to the current configuration. Unless the files 13659and actions are specified as TAGs, all are instantiated by default. 13660 13661Usage: $0 [OPTION]... [TAG]... 13662 13663 -h, --help print this help, then exit 13664 -V, --version print version number and configuration settings, then exit 13665 --config print configuration, then exit 13666 -q, --quiet, --silent 13667 do not print progress messages 13668 -d, --debug don't remove temporary files 13669 --recheck update $as_me by reconfiguring in the same conditions 13670 --file=FILE[:TEMPLATE] 13671 instantiate the configuration file FILE 13672 --header=FILE[:TEMPLATE] 13673 instantiate the configuration header FILE 13674 13675Configuration files: 13676$config_files 13677 13678Configuration headers: 13679$config_headers 13680 13681Configuration commands: 13682$config_commands 13683 13684Report bugs to <libivykis-discuss@lists.sourceforge.net>." 13685 13686_ACEOF 13687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13688ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13689ac_cs_version="\\ 13690ivykis-test-mt config.status 0.1 13691configured by $0, generated by GNU Autoconf 2.69, 13692 with options \\"\$ac_cs_config\\" 13693 13694Copyright (C) 2012 Free Software Foundation, Inc. 13695This config.status script is free software; the Free Software Foundation 13696gives unlimited permission to copy, distribute and modify it." 13697 13698ac_pwd='$ac_pwd' 13699srcdir='$srcdir' 13700INSTALL='$INSTALL' 13701MKDIR_P='$MKDIR_P' 13702AWK='$AWK' 13703test -n "\$AWK" || AWK=awk 13704_ACEOF 13705 13706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13707# The default lists apply if the user does not specify any file. 13708ac_need_defaults=: 13709while test $# != 0 13710do 13711 case $1 in 13712 --*=?*) 13713 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13714 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13715 ac_shift=: 13716 ;; 13717 --*=) 13718 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13719 ac_optarg= 13720 ac_shift=: 13721 ;; 13722 *) 13723 ac_option=$1 13724 ac_optarg=$2 13725 ac_shift=shift 13726 ;; 13727 esac 13728 13729 case $ac_option in 13730 # Handling of the options. 13731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13732 ac_cs_recheck=: ;; 13733 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13734 $as_echo "$ac_cs_version"; exit ;; 13735 --config | --confi | --conf | --con | --co | --c ) 13736 $as_echo "$ac_cs_config"; exit ;; 13737 --debug | --debu | --deb | --de | --d | -d ) 13738 debug=: ;; 13739 --file | --fil | --fi | --f ) 13740 $ac_shift 13741 case $ac_optarg in 13742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13743 '') as_fn_error $? "missing file argument" ;; 13744 esac 13745 as_fn_append CONFIG_FILES " '$ac_optarg'" 13746 ac_need_defaults=false;; 13747 --header | --heade | --head | --hea ) 13748 $ac_shift 13749 case $ac_optarg in 13750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13751 esac 13752 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13753 ac_need_defaults=false;; 13754 --he | --h) 13755 # Conflict between --help and --header 13756 as_fn_error $? "ambiguous option: \`$1' 13757Try \`$0 --help' for more information.";; 13758 --help | --hel | -h ) 13759 $as_echo "$ac_cs_usage"; exit ;; 13760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13761 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13762 ac_cs_silent=: ;; 13763 13764 # This is an error. 13765 -*) as_fn_error $? "unrecognized option: \`$1' 13766Try \`$0 --help' for more information." ;; 13767 13768 *) as_fn_append ac_config_targets " $1" 13769 ac_need_defaults=false ;; 13770 13771 esac 13772 shift 13773done 13774 13775ac_configure_extra_args= 13776 13777if $ac_cs_silent; then 13778 exec 6>/dev/null 13779 ac_configure_extra_args="$ac_configure_extra_args --silent" 13780fi 13781 13782_ACEOF 13783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13784if \$ac_cs_recheck; then 13785 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13786 shift 13787 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13788 CONFIG_SHELL='$SHELL' 13789 export CONFIG_SHELL 13790 exec "\$@" 13791fi 13792 13793_ACEOF 13794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13795exec 5>>config.log 13796{ 13797 echo 13798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13799## Running $as_me. ## 13800_ASBOX 13801 $as_echo "$ac_log" 13802} >&5 13803 13804_ACEOF 13805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13806# 13807# INIT-COMMANDS 13808# 13809AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13810 13811 13812# The HP-UX ksh and POSIX shell print the target directory to stdout 13813# if CDPATH is set. 13814(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13815 13816sed_quote_subst='$sed_quote_subst' 13817double_quote_subst='$double_quote_subst' 13818delay_variable_subst='$delay_variable_subst' 13819macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13820macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13821enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13822enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13823pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13824enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13825shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13826SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13827ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13828PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13829host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13830host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13831host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13832build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13833build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13834build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13835SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13836Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13837GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13838EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13839FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13840LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13841NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13842LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13843max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13844ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13845exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13846lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13847lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13848lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13849lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13850lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13851reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13852reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13853OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13854deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13855file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13856file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13857want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13858DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13859sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13860AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13861AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13862archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13863STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13864RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13865old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13866old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13867old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13868lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13869CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13870CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13871compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13872GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13873lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13874lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13875lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13876lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13877lt_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"`' 13878lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13879nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13880lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13881lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13882objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13883MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13884lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13885lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13886lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13887lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13888lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13889need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13890MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13891DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13892NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13893LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13894OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13895OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13896libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13897shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13898extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13899archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13900enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13901export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13902whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13903compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13904old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13905old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13906archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13907archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13908module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13909module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13910with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13911allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13912no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13913hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13914hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13915hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13916hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13917hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13918hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13919hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13920inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13921link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13922always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13923export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13924exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13925include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13926prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13927postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13928file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13929variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13930need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13931need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13932version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13933runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13934shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13935shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13936libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13937library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13938soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13939install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13940postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13941postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13942finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13943finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13944hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13945sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13946configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13947configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13948hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13949enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13950enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13951enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13952old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13953striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13954 13955LTCC='$LTCC' 13956LTCFLAGS='$LTCFLAGS' 13957compiler='$compiler_DEFAULT' 13958 13959# A function that is used when there is no print builtin or printf. 13960func_fallback_echo () 13961{ 13962 eval 'cat <<_LTECHO_EOF 13963\$1 13964_LTECHO_EOF' 13965} 13966 13967# Quote evaled strings. 13968for var in SHELL \ 13969ECHO \ 13970PATH_SEPARATOR \ 13971SED \ 13972GREP \ 13973EGREP \ 13974FGREP \ 13975LD \ 13976NM \ 13977LN_S \ 13978lt_SP2NL \ 13979lt_NL2SP \ 13980reload_flag \ 13981OBJDUMP \ 13982deplibs_check_method \ 13983file_magic_cmd \ 13984file_magic_glob \ 13985want_nocaseglob \ 13986DLLTOOL \ 13987sharedlib_from_linklib_cmd \ 13988AR \ 13989AR_FLAGS \ 13990archiver_list_spec \ 13991STRIP \ 13992RANLIB \ 13993CC \ 13994CFLAGS \ 13995compiler \ 13996lt_cv_sys_global_symbol_pipe \ 13997lt_cv_sys_global_symbol_to_cdecl \ 13998lt_cv_sys_global_symbol_to_import \ 13999lt_cv_sys_global_symbol_to_c_name_address \ 14000lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14001lt_cv_nm_interface \ 14002nm_file_list_spec \ 14003lt_cv_truncate_bin \ 14004lt_prog_compiler_no_builtin_flag \ 14005lt_prog_compiler_pic \ 14006lt_prog_compiler_wl \ 14007lt_prog_compiler_static \ 14008lt_cv_prog_compiler_c_o \ 14009need_locks \ 14010MANIFEST_TOOL \ 14011DSYMUTIL \ 14012NMEDIT \ 14013LIPO \ 14014OTOOL \ 14015OTOOL64 \ 14016shrext_cmds \ 14017export_dynamic_flag_spec \ 14018whole_archive_flag_spec \ 14019compiler_needs_object \ 14020with_gnu_ld \ 14021allow_undefined_flag \ 14022no_undefined_flag \ 14023hardcode_libdir_flag_spec \ 14024hardcode_libdir_separator \ 14025exclude_expsyms \ 14026include_expsyms \ 14027file_list_spec \ 14028variables_saved_for_relink \ 14029libname_spec \ 14030library_names_spec \ 14031soname_spec \ 14032install_override_mode \ 14033finish_eval \ 14034old_striplib \ 14035striplib; do 14036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14037 *[\\\\\\\`\\"\\\$]*) 14038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14039 ;; 14040 *) 14041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14042 ;; 14043 esac 14044done 14045 14046# Double-quote double-evaled strings. 14047for var in reload_cmds \ 14048old_postinstall_cmds \ 14049old_postuninstall_cmds \ 14050old_archive_cmds \ 14051extract_expsyms_cmds \ 14052old_archive_from_new_cmds \ 14053old_archive_from_expsyms_cmds \ 14054archive_cmds \ 14055archive_expsym_cmds \ 14056module_cmds \ 14057module_expsym_cmds \ 14058export_symbols_cmds \ 14059prelink_cmds \ 14060postlink_cmds \ 14061postinstall_cmds \ 14062postuninstall_cmds \ 14063finish_cmds \ 14064sys_lib_search_path_spec \ 14065configure_time_dlsearch_path \ 14066configure_time_lt_sys_library_path; do 14067 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14068 *[\\\\\\\`\\"\\\$]*) 14069 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14070 ;; 14071 *) 14072 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14073 ;; 14074 esac 14075done 14076 14077ac_aux_dir='$ac_aux_dir' 14078 14079# See if we are running on zsh, and set the options that allow our 14080# commands through without removal of \ escapes INIT. 14081if test -n "\${ZSH_VERSION+set}"; then 14082 setopt NO_GLOB_SUBST 14083fi 14084 14085 14086 PACKAGE='$PACKAGE' 14087 VERSION='$VERSION' 14088 RM='$RM' 14089 ofile='$ofile' 14090 14091 14092 14093 14094_ACEOF 14095 14096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14097 14098# Handling of arguments. 14099for ac_config_target in $ac_config_targets 14100do 14101 case $ac_config_target in 14102 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14103 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14104 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14105 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14106 14107 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14108 esac 14109done 14110 14111 14112# If the user did not use the arguments to specify the items to instantiate, 14113# then the envvar interface is used. Set only those that are not. 14114# We use the long form for the default assignment because of an extremely 14115# bizarre bug on SunOS 4.1.3. 14116if $ac_need_defaults; then 14117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14119 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14120fi 14121 14122# Have a temporary directory for convenience. Make it in the build tree 14123# simply because there is no reason against having it here, and in addition, 14124# creating and moving files from /tmp can sometimes cause problems. 14125# Hook for its removal unless debugging. 14126# Note that there is a small window in which the directory will not be cleaned: 14127# after its creation but before its name has been assigned to `$tmp'. 14128$debug || 14129{ 14130 tmp= ac_tmp= 14131 trap 'exit_status=$? 14132 : "${ac_tmp:=$tmp}" 14133 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14134' 0 14135 trap 'as_fn_exit 1' 1 2 13 15 14136} 14137# Create a (secure) tmp directory for tmp files. 14138 14139{ 14140 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14141 test -d "$tmp" 14142} || 14143{ 14144 tmp=./conf$$-$RANDOM 14145 (umask 077 && mkdir "$tmp") 14146} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14147ac_tmp=$tmp 14148 14149# Set up the scripts for CONFIG_FILES section. 14150# No need to generate them if there are no CONFIG_FILES. 14151# This happens for instance with `./config.status config.h'. 14152if test -n "$CONFIG_FILES"; then 14153 14154 14155ac_cr=`echo X | tr X '\015'` 14156# On cygwin, bash can eat \r inside `` if the user requested igncr. 14157# But we know of no other shell where ac_cr would be empty at this 14158# point, so we can use a bashism as a fallback. 14159if test "x$ac_cr" = x; then 14160 eval ac_cr=\$\'\\r\' 14161fi 14162ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14163if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14164 ac_cs_awk_cr='\\r' 14165else 14166 ac_cs_awk_cr=$ac_cr 14167fi 14168 14169echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14170_ACEOF 14171 14172 14173{ 14174 echo "cat >conf$$subs.awk <<_ACEOF" && 14175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14176 echo "_ACEOF" 14177} >conf$$subs.sh || 14178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14179ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14180ac_delim='%!_!# ' 14181for ac_last_try in false false false false false :; do 14182 . ./conf$$subs.sh || 14183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14184 14185 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14186 if test $ac_delim_n = $ac_delim_num; then 14187 break 14188 elif $ac_last_try; then 14189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14190 else 14191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14192 fi 14193done 14194rm -f conf$$subs.sh 14195 14196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14197cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14198_ACEOF 14199sed -n ' 14200h 14201s/^/S["/; s/!.*/"]=/ 14202p 14203g 14204s/^[^!]*!// 14205:repl 14206t repl 14207s/'"$ac_delim"'$// 14208t delim 14209:nl 14210h 14211s/\(.\{148\}\)..*/\1/ 14212t more1 14213s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14214p 14215n 14216b repl 14217:more1 14218s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14219p 14220g 14221s/.\{148\}// 14222t nl 14223:delim 14224h 14225s/\(.\{148\}\)..*/\1/ 14226t more2 14227s/["\\]/\\&/g; s/^/"/; s/$/"/ 14228p 14229b 14230:more2 14231s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14232p 14233g 14234s/.\{148\}// 14235t delim 14236' <conf$$subs.awk | sed ' 14237/^[^""]/{ 14238 N 14239 s/\n// 14240} 14241' >>$CONFIG_STATUS || ac_write_fail=1 14242rm -f conf$$subs.awk 14243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14244_ACAWK 14245cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14246 for (key in S) S_is_set[key] = 1 14247 FS = "" 14248 14249} 14250{ 14251 line = $ 0 14252 nfields = split(line, field, "@") 14253 substed = 0 14254 len = length(field[1]) 14255 for (i = 2; i < nfields; i++) { 14256 key = field[i] 14257 keylen = length(key) 14258 if (S_is_set[key]) { 14259 value = S[key] 14260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14261 len += length(value) + length(field[++i]) 14262 substed = 1 14263 } else 14264 len += 1 + keylen 14265 } 14266 14267 print line 14268} 14269 14270_ACAWK 14271_ACEOF 14272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14273if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14274 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14275else 14276 cat 14277fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14278 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14279_ACEOF 14280 14281# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14282# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14283# trailing colons and then remove the whole line if VPATH becomes empty 14284# (actually we leave an empty line to preserve line numbers). 14285if test "x$srcdir" = x.; then 14286 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14287h 14288s/// 14289s/^/:/ 14290s/[ ]*$/:/ 14291s/:\$(srcdir):/:/g 14292s/:\${srcdir}:/:/g 14293s/:@srcdir@:/:/g 14294s/^:*// 14295s/:*$// 14296x 14297s/\(=[ ]*\).*/\1/ 14298G 14299s/\n// 14300s/^[^=]*=[ ]*$// 14301}' 14302fi 14303 14304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14305fi # test -n "$CONFIG_FILES" 14306 14307# Set up the scripts for CONFIG_HEADERS section. 14308# No need to generate them if there are no CONFIG_HEADERS. 14309# This happens for instance with `./config.status Makefile'. 14310if test -n "$CONFIG_HEADERS"; then 14311cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14312BEGIN { 14313_ACEOF 14314 14315# Transform confdefs.h into an awk script `defines.awk', embedded as 14316# here-document in config.status, that substitutes the proper values into 14317# config.h.in to produce config.h. 14318 14319# Create a delimiter string that does not exist in confdefs.h, to ease 14320# handling of long lines. 14321ac_delim='%!_!# ' 14322for ac_last_try in false false :; do 14323 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14324 if test -z "$ac_tt"; then 14325 break 14326 elif $ac_last_try; then 14327 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14328 else 14329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14330 fi 14331done 14332 14333# For the awk script, D is an array of macro values keyed by name, 14334# likewise P contains macro parameters if any. Preserve backslash 14335# newline sequences. 14336 14337ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14338sed -n ' 14339s/.\{148\}/&'"$ac_delim"'/g 14340t rset 14341:rset 14342s/^[ ]*#[ ]*define[ ][ ]*/ / 14343t def 14344d 14345:def 14346s/\\$// 14347t bsnl 14348s/["\\]/\\&/g 14349s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14350D["\1"]=" \3"/p 14351s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14352d 14353:bsnl 14354s/["\\]/\\&/g 14355s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14356D["\1"]=" \3\\\\\\n"\\/p 14357t cont 14358s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14359t cont 14360d 14361:cont 14362n 14363s/.\{148\}/&'"$ac_delim"'/g 14364t clear 14365:clear 14366s/\\$// 14367t bsnlc 14368s/["\\]/\\&/g; s/^/"/; s/$/"/p 14369d 14370:bsnlc 14371s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14372b cont 14373' <confdefs.h | sed ' 14374s/'"$ac_delim"'/"\\\ 14375"/g' >>$CONFIG_STATUS || ac_write_fail=1 14376 14377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14378 for (key in D) D_is_set[key] = 1 14379 FS = "" 14380} 14381/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14382 line = \$ 0 14383 split(line, arg, " ") 14384 if (arg[1] == "#") { 14385 defundef = arg[2] 14386 mac1 = arg[3] 14387 } else { 14388 defundef = substr(arg[1], 2) 14389 mac1 = arg[2] 14390 } 14391 split(mac1, mac2, "(") #) 14392 macro = mac2[1] 14393 prefix = substr(line, 1, index(line, defundef) - 1) 14394 if (D_is_set[macro]) { 14395 # Preserve the white space surrounding the "#". 14396 print prefix "define", macro P[macro] D[macro] 14397 next 14398 } else { 14399 # Replace #undef with comments. This is necessary, for example, 14400 # in the case of _POSIX_SOURCE, which is predefined and required 14401 # on some systems where configure will not decide to define it. 14402 if (defundef == "undef") { 14403 print "/*", prefix defundef, macro, "*/" 14404 next 14405 } 14406 } 14407} 14408{ print } 14409_ACAWK 14410_ACEOF 14411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14412 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14413fi # test -n "$CONFIG_HEADERS" 14414 14415 14416eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14417shift 14418for ac_tag 14419do 14420 case $ac_tag in 14421 :[FHLC]) ac_mode=$ac_tag; continue;; 14422 esac 14423 case $ac_mode$ac_tag in 14424 :[FHL]*:*);; 14425 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14426 :[FH]-) ac_tag=-:-;; 14427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14428 esac 14429 ac_save_IFS=$IFS 14430 IFS=: 14431 set x $ac_tag 14432 IFS=$ac_save_IFS 14433 shift 14434 ac_file=$1 14435 shift 14436 14437 case $ac_mode in 14438 :L) ac_source=$1;; 14439 :[FH]) 14440 ac_file_inputs= 14441 for ac_f 14442 do 14443 case $ac_f in 14444 -) ac_f="$ac_tmp/stdin";; 14445 *) # Look for the file first in the build tree, then in the source tree 14446 # (if the path is not absolute). The absolute path cannot be DOS-style, 14447 # because $ac_f cannot contain `:'. 14448 test -f "$ac_f" || 14449 case $ac_f in 14450 [\\/$]*) false;; 14451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14452 esac || 14453 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14454 esac 14455 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14456 as_fn_append ac_file_inputs " '$ac_f'" 14457 done 14458 14459 # Let's still pretend it is `configure' which instantiates (i.e., don't 14460 # use $as_me), people would be surprised to read: 14461 # /* config.h. Generated by config.status. */ 14462 configure_input='Generated from '` 14463 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14464 `' by configure.' 14465 if test x"$ac_file" != x-; then 14466 configure_input="$ac_file. $configure_input" 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14468$as_echo "$as_me: creating $ac_file" >&6;} 14469 fi 14470 # Neutralize special characters interpreted by sed in replacement strings. 14471 case $configure_input in #( 14472 *\&* | *\|* | *\\* ) 14473 ac_sed_conf_input=`$as_echo "$configure_input" | 14474 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14475 *) ac_sed_conf_input=$configure_input;; 14476 esac 14477 14478 case $ac_tag in 14479 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14481 esac 14482 ;; 14483 esac 14484 14485 ac_dir=`$as_dirname -- "$ac_file" || 14486$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14487 X"$ac_file" : 'X\(//\)[^/]' \| \ 14488 X"$ac_file" : 'X\(//\)$' \| \ 14489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14490$as_echo X"$ac_file" | 14491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14492 s//\1/ 14493 q 14494 } 14495 /^X\(\/\/\)[^/].*/{ 14496 s//\1/ 14497 q 14498 } 14499 /^X\(\/\/\)$/{ 14500 s//\1/ 14501 q 14502 } 14503 /^X\(\/\).*/{ 14504 s//\1/ 14505 q 14506 } 14507 s/.*/./; q'` 14508 as_dir="$ac_dir"; as_fn_mkdir_p 14509 ac_builddir=. 14510 14511case "$ac_dir" in 14512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14513*) 14514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14515 # A ".." for each directory in $ac_dir_suffix. 14516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14517 case $ac_top_builddir_sub in 14518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14520 esac ;; 14521esac 14522ac_abs_top_builddir=$ac_pwd 14523ac_abs_builddir=$ac_pwd$ac_dir_suffix 14524# for backward compatibility: 14525ac_top_builddir=$ac_top_build_prefix 14526 14527case $srcdir in 14528 .) # We are building in place. 14529 ac_srcdir=. 14530 ac_top_srcdir=$ac_top_builddir_sub 14531 ac_abs_top_srcdir=$ac_pwd ;; 14532 [\\/]* | ?:[\\/]* ) # Absolute name. 14533 ac_srcdir=$srcdir$ac_dir_suffix; 14534 ac_top_srcdir=$srcdir 14535 ac_abs_top_srcdir=$srcdir ;; 14536 *) # Relative name. 14537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14538 ac_top_srcdir=$ac_top_build_prefix$srcdir 14539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14540esac 14541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14542 14543 14544 case $ac_mode in 14545 :F) 14546 # 14547 # CONFIG_FILE 14548 # 14549 14550 case $INSTALL in 14551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14552 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14553 esac 14554 ac_MKDIR_P=$MKDIR_P 14555 case $MKDIR_P in 14556 [\\/$]* | ?:[\\/]* ) ;; 14557 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14558 esac 14559_ACEOF 14560 14561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14562# If the template does not know about datarootdir, expand it. 14563# FIXME: This hack should be removed a few years after 2.60. 14564ac_datarootdir_hack=; ac_datarootdir_seen= 14565ac_sed_dataroot=' 14566/datarootdir/ { 14567 p 14568 q 14569} 14570/@datadir@/p 14571/@docdir@/p 14572/@infodir@/p 14573/@localedir@/p 14574/@mandir@/p' 14575case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14576*datarootdir*) ac_datarootdir_seen=yes;; 14577*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14579$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14580_ACEOF 14581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14582 ac_datarootdir_hack=' 14583 s&@datadir@&$datadir&g 14584 s&@docdir@&$docdir&g 14585 s&@infodir@&$infodir&g 14586 s&@localedir@&$localedir&g 14587 s&@mandir@&$mandir&g 14588 s&\\\${datarootdir}&$datarootdir&g' ;; 14589esac 14590_ACEOF 14591 14592# Neutralize VPATH when `$srcdir' = `.'. 14593# Shell code in configure.ac might set extrasub. 14594# FIXME: do we really want to maintain this feature? 14595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14596ac_sed_extra="$ac_vpsub 14597$extrasub 14598_ACEOF 14599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14600:t 14601/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14602s|@configure_input@|$ac_sed_conf_input|;t t 14603s&@top_builddir@&$ac_top_builddir_sub&;t t 14604s&@top_build_prefix@&$ac_top_build_prefix&;t t 14605s&@srcdir@&$ac_srcdir&;t t 14606s&@abs_srcdir@&$ac_abs_srcdir&;t t 14607s&@top_srcdir@&$ac_top_srcdir&;t t 14608s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14609s&@builddir@&$ac_builddir&;t t 14610s&@abs_builddir@&$ac_abs_builddir&;t t 14611s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14612s&@INSTALL@&$ac_INSTALL&;t t 14613s&@MKDIR_P@&$ac_MKDIR_P&;t t 14614$ac_datarootdir_hack 14615" 14616eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14617 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14618 14619test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14620 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14621 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14622 "$ac_tmp/out"`; test -z "$ac_out"; } && 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14624which seems to be undefined. Please make sure it is defined" >&5 14625$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14626which seems to be undefined. Please make sure it is defined" >&2;} 14627 14628 rm -f "$ac_tmp/stdin" 14629 case $ac_file in 14630 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14631 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14632 esac \ 14633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14634 ;; 14635 :H) 14636 # 14637 # CONFIG_HEADER 14638 # 14639 if test x"$ac_file" != x-; then 14640 { 14641 $as_echo "/* $configure_input */" \ 14642 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14643 } >"$ac_tmp/config.h" \ 14644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14645 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14647$as_echo "$as_me: $ac_file is unchanged" >&6;} 14648 else 14649 rm -f "$ac_file" 14650 mv "$ac_tmp/config.h" "$ac_file" \ 14651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14652 fi 14653 else 14654 $as_echo "/* $configure_input */" \ 14655 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14656 || as_fn_error $? "could not create -" "$LINENO" 5 14657 fi 14658# Compute "$ac_file"'s index in $config_headers. 14659_am_arg="$ac_file" 14660_am_stamp_count=1 14661for _am_header in $config_headers :; do 14662 case $_am_header in 14663 $_am_arg | $_am_arg:* ) 14664 break ;; 14665 * ) 14666 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14667 esac 14668done 14669echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14670$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14671 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14672 X"$_am_arg" : 'X\(//\)$' \| \ 14673 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14674$as_echo X"$_am_arg" | 14675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14676 s//\1/ 14677 q 14678 } 14679 /^X\(\/\/\)[^/].*/{ 14680 s//\1/ 14681 q 14682 } 14683 /^X\(\/\/\)$/{ 14684 s//\1/ 14685 q 14686 } 14687 /^X\(\/\).*/{ 14688 s//\1/ 14689 q 14690 } 14691 s/.*/./; q'`/stamp-h$_am_stamp_count 14692 ;; 14693 14694 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14695$as_echo "$as_me: executing $ac_file commands" >&6;} 14696 ;; 14697 esac 14698 14699 14700 case $ac_file$ac_mode in 14701 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14702 # Older Autoconf quotes --file arguments for eval, but not when files 14703 # are listed without --file. Let's play safe and only enable the eval 14704 # if we detect the quoting. 14705 # TODO: see whether this extra hack can be removed once we start 14706 # requiring Autoconf 2.70 or later. 14707 case $CONFIG_FILES in #( 14708 *\'*) : 14709 eval set x "$CONFIG_FILES" ;; #( 14710 *) : 14711 set x $CONFIG_FILES ;; #( 14712 *) : 14713 ;; 14714esac 14715 shift 14716 # Used to flag and report bootstrapping failures. 14717 am_rc=0 14718 for am_mf 14719 do 14720 # Strip MF so we end up with the name of the file. 14721 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14722 # Check whether this is an Automake generated Makefile which includes 14723 # dependency-tracking related rules and includes. 14724 # Grep'ing the whole file directly is not great: AIX grep has a line 14725 # limit of 2048, but all sed's we know have understand at least 4000. 14726 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14727 || continue 14728 am_dirpart=`$as_dirname -- "$am_mf" || 14729$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14730 X"$am_mf" : 'X\(//\)[^/]' \| \ 14731 X"$am_mf" : 'X\(//\)$' \| \ 14732 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14733$as_echo X"$am_mf" | 14734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14735 s//\1/ 14736 q 14737 } 14738 /^X\(\/\/\)[^/].*/{ 14739 s//\1/ 14740 q 14741 } 14742 /^X\(\/\/\)$/{ 14743 s//\1/ 14744 q 14745 } 14746 /^X\(\/\).*/{ 14747 s//\1/ 14748 q 14749 } 14750 s/.*/./; q'` 14751 am_filepart=`$as_basename -- "$am_mf" || 14752$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14753 X"$am_mf" : 'X\(//\)$' \| \ 14754 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14755$as_echo X/"$am_mf" | 14756 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14757 s//\1/ 14758 q 14759 } 14760 /^X\/\(\/\/\)$/{ 14761 s//\1/ 14762 q 14763 } 14764 /^X\/\(\/\).*/{ 14765 s//\1/ 14766 q 14767 } 14768 s/.*/./; q'` 14769 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14770 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14771 | $MAKE -f - am--depfiles" >&5 14772 (cd "$am_dirpart" \ 14773 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14774 | $MAKE -f - am--depfiles) >&5 2>&5 14775 ac_status=$? 14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14777 (exit $ac_status); } || am_rc=$? 14778 done 14779 if test $am_rc -ne 0; then 14780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14782as_fn_error $? "Something went wrong bootstrapping makefile fragments 14783 for automatic dependency tracking. Try re-running configure with the 14784 '--disable-dependency-tracking' option to at least be able to build 14785 the package (albeit without support for automatic dependency tracking). 14786See \`config.log' for more details" "$LINENO" 5; } 14787 fi 14788 { am_dirpart=; unset am_dirpart;} 14789 { am_filepart=; unset am_filepart;} 14790 { am_mf=; unset am_mf;} 14791 { am_rc=; unset am_rc;} 14792 rm -f conftest-deps.mk 14793} 14794 ;; 14795 "libtool":C) 14796 14797 # See if we are running on zsh, and set the options that allow our 14798 # commands through without removal of \ escapes. 14799 if test -n "${ZSH_VERSION+set}"; then 14800 setopt NO_GLOB_SUBST 14801 fi 14802 14803 cfgfile=${ofile}T 14804 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14805 $RM "$cfgfile" 14806 14807 cat <<_LT_EOF >> "$cfgfile" 14808#! $SHELL 14809# Generated automatically by $as_me ($PACKAGE) $VERSION 14810# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14811# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14812 14813# Provide generalized library-building support services. 14814# Written by Gordon Matzigkeit, 1996 14815 14816# Copyright (C) 2014 Free Software Foundation, Inc. 14817# This is free software; see the source for copying conditions. There is NO 14818# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14819 14820# GNU Libtool is free software; you can redistribute it and/or modify 14821# it under the terms of the GNU General Public License as published by 14822# the Free Software Foundation; either version 2 of of the License, or 14823# (at your option) any later version. 14824# 14825# As a special exception to the GNU General Public License, if you 14826# distribute this file as part of a program or library that is built 14827# using GNU Libtool, you may include this file under the same 14828# distribution terms that you use for the rest of that program. 14829# 14830# GNU Libtool is distributed in the hope that it will be useful, but 14831# WITHOUT ANY WARRANTY; without even the implied warranty of 14832# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14833# GNU General Public License for more details. 14834# 14835# You should have received a copy of the GNU General Public License 14836# along with this program. If not, see <http://www.gnu.org/licenses/>. 14837 14838 14839# The names of the tagged configurations supported by this script. 14840available_tags='' 14841 14842# Configured defaults for sys_lib_dlsearch_path munging. 14843: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14844 14845# ### BEGIN LIBTOOL CONFIG 14846 14847# Which release of libtool.m4 was used? 14848macro_version=$macro_version 14849macro_revision=$macro_revision 14850 14851# Whether or not to build shared libraries. 14852build_libtool_libs=$enable_shared 14853 14854# Whether or not to build static libraries. 14855build_old_libs=$enable_static 14856 14857# What type of objects to build. 14858pic_mode=$pic_mode 14859 14860# Whether or not to optimize for fast installation. 14861fast_install=$enable_fast_install 14862 14863# Shared archive member basename,for filename based shared library versioning on AIX. 14864shared_archive_member_spec=$shared_archive_member_spec 14865 14866# Shell to use when invoking shell scripts. 14867SHELL=$lt_SHELL 14868 14869# An echo program that protects backslashes. 14870ECHO=$lt_ECHO 14871 14872# The PATH separator for the build system. 14873PATH_SEPARATOR=$lt_PATH_SEPARATOR 14874 14875# The host system. 14876host_alias=$host_alias 14877host=$host 14878host_os=$host_os 14879 14880# The build system. 14881build_alias=$build_alias 14882build=$build 14883build_os=$build_os 14884 14885# A sed program that does not truncate output. 14886SED=$lt_SED 14887 14888# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14889Xsed="\$SED -e 1s/^X//" 14890 14891# A grep program that handles long lines. 14892GREP=$lt_GREP 14893 14894# An ERE matcher. 14895EGREP=$lt_EGREP 14896 14897# A literal string matcher. 14898FGREP=$lt_FGREP 14899 14900# A BSD- or MS-compatible name lister. 14901NM=$lt_NM 14902 14903# Whether we need soft or hard links. 14904LN_S=$lt_LN_S 14905 14906# What is the maximum length of a command? 14907max_cmd_len=$max_cmd_len 14908 14909# Object file suffix (normally "o"). 14910objext=$ac_objext 14911 14912# Executable file suffix (normally ""). 14913exeext=$exeext 14914 14915# whether the shell understands "unset". 14916lt_unset=$lt_unset 14917 14918# turn spaces into newlines. 14919SP2NL=$lt_lt_SP2NL 14920 14921# turn newlines into spaces. 14922NL2SP=$lt_lt_NL2SP 14923 14924# convert \$build file names to \$host format. 14925to_host_file_cmd=$lt_cv_to_host_file_cmd 14926 14927# convert \$build files to toolchain format. 14928to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14929 14930# An object symbol dumper. 14931OBJDUMP=$lt_OBJDUMP 14932 14933# Method to check whether dependent libraries are shared objects. 14934deplibs_check_method=$lt_deplibs_check_method 14935 14936# Command to use when deplibs_check_method = "file_magic". 14937file_magic_cmd=$lt_file_magic_cmd 14938 14939# How to find potential files when deplibs_check_method = "file_magic". 14940file_magic_glob=$lt_file_magic_glob 14941 14942# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14943want_nocaseglob=$lt_want_nocaseglob 14944 14945# DLL creation program. 14946DLLTOOL=$lt_DLLTOOL 14947 14948# Command to associate shared and link libraries. 14949sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14950 14951# The archiver. 14952AR=$lt_AR 14953 14954# Flags to create an archive. 14955AR_FLAGS=$lt_AR_FLAGS 14956 14957# How to feed a file listing to the archiver. 14958archiver_list_spec=$lt_archiver_list_spec 14959 14960# A symbol stripping program. 14961STRIP=$lt_STRIP 14962 14963# Commands used to install an old-style archive. 14964RANLIB=$lt_RANLIB 14965old_postinstall_cmds=$lt_old_postinstall_cmds 14966old_postuninstall_cmds=$lt_old_postuninstall_cmds 14967 14968# Whether to use a lock for old archive extraction. 14969lock_old_archive_extraction=$lock_old_archive_extraction 14970 14971# A C compiler. 14972LTCC=$lt_CC 14973 14974# LTCC compiler flags. 14975LTCFLAGS=$lt_CFLAGS 14976 14977# Take the output of nm and produce a listing of raw symbols and C names. 14978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14979 14980# Transform the output of nm in a proper C declaration. 14981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14982 14983# Transform the output of nm into a list of symbols to manually relocate. 14984global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14985 14986# Transform the output of nm in a C name address pair. 14987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14988 14989# Transform the output of nm in a C name address pair when lib prefix is needed. 14990global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14991 14992# The name lister interface. 14993nm_interface=$lt_lt_cv_nm_interface 14994 14995# Specify filename containing input files for \$NM. 14996nm_file_list_spec=$lt_nm_file_list_spec 14997 14998# The root where to search for dependent libraries,and where our libraries should be installed. 14999lt_sysroot=$lt_sysroot 15000 15001# Command to truncate a binary pipe. 15002lt_truncate_bin=$lt_lt_cv_truncate_bin 15003 15004# The name of the directory that contains temporary libtool files. 15005objdir=$objdir 15006 15007# Used to examine libraries when file_magic_cmd begins with "file". 15008MAGIC_CMD=$MAGIC_CMD 15009 15010# Must we lock files when doing compilation? 15011need_locks=$lt_need_locks 15012 15013# Manifest tool. 15014MANIFEST_TOOL=$lt_MANIFEST_TOOL 15015 15016# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15017DSYMUTIL=$lt_DSYMUTIL 15018 15019# Tool to change global to local symbols on Mac OS X. 15020NMEDIT=$lt_NMEDIT 15021 15022# Tool to manipulate fat objects and archives on Mac OS X. 15023LIPO=$lt_LIPO 15024 15025# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15026OTOOL=$lt_OTOOL 15027 15028# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15029OTOOL64=$lt_OTOOL64 15030 15031# Old archive suffix (normally "a"). 15032libext=$libext 15033 15034# Shared library suffix (normally ".so"). 15035shrext_cmds=$lt_shrext_cmds 15036 15037# The commands to extract the exported symbol list from a shared archive. 15038extract_expsyms_cmds=$lt_extract_expsyms_cmds 15039 15040# Variables whose values should be saved in libtool wrapper scripts and 15041# restored at link time. 15042variables_saved_for_relink=$lt_variables_saved_for_relink 15043 15044# Do we need the "lib" prefix for modules? 15045need_lib_prefix=$need_lib_prefix 15046 15047# Do we need a version for libraries? 15048need_version=$need_version 15049 15050# Library versioning type. 15051version_type=$version_type 15052 15053# Shared library runtime path variable. 15054runpath_var=$runpath_var 15055 15056# Shared library path variable. 15057shlibpath_var=$shlibpath_var 15058 15059# Is shlibpath searched before the hard-coded library search path? 15060shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15061 15062# Format of library name prefix. 15063libname_spec=$lt_libname_spec 15064 15065# List of archive names. First name is the real one, the rest are links. 15066# The last name is the one that the linker finds with -lNAME 15067library_names_spec=$lt_library_names_spec 15068 15069# The coded name of the library, if different from the real name. 15070soname_spec=$lt_soname_spec 15071 15072# Permission mode override for installation of shared libraries. 15073install_override_mode=$lt_install_override_mode 15074 15075# Command to use after installation of a shared archive. 15076postinstall_cmds=$lt_postinstall_cmds 15077 15078# Command to use after uninstallation of a shared archive. 15079postuninstall_cmds=$lt_postuninstall_cmds 15080 15081# Commands used to finish a libtool library installation in a directory. 15082finish_cmds=$lt_finish_cmds 15083 15084# As "finish_cmds", except a single script fragment to be evaled but 15085# not shown. 15086finish_eval=$lt_finish_eval 15087 15088# Whether we should hardcode library paths into libraries. 15089hardcode_into_libs=$hardcode_into_libs 15090 15091# Compile-time system search path for libraries. 15092sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15093 15094# Detected run-time system search path for libraries. 15095sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15096 15097# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15098configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15099 15100# Whether dlopen is supported. 15101dlopen_support=$enable_dlopen 15102 15103# Whether dlopen of programs is supported. 15104dlopen_self=$enable_dlopen_self 15105 15106# Whether dlopen of statically linked programs is supported. 15107dlopen_self_static=$enable_dlopen_self_static 15108 15109# Commands to strip libraries. 15110old_striplib=$lt_old_striplib 15111striplib=$lt_striplib 15112 15113 15114# The linker used to build libraries. 15115LD=$lt_LD 15116 15117# How to create reloadable object files. 15118reload_flag=$lt_reload_flag 15119reload_cmds=$lt_reload_cmds 15120 15121# Commands used to build an old-style archive. 15122old_archive_cmds=$lt_old_archive_cmds 15123 15124# A language specific compiler. 15125CC=$lt_compiler 15126 15127# Is the compiler the GNU compiler? 15128with_gcc=$GCC 15129 15130# Compiler flag to turn off builtin functions. 15131no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15132 15133# Additional compiler flags for building library objects. 15134pic_flag=$lt_lt_prog_compiler_pic 15135 15136# How to pass a linker flag through the compiler. 15137wl=$lt_lt_prog_compiler_wl 15138 15139# Compiler flag to prevent dynamic linking. 15140link_static_flag=$lt_lt_prog_compiler_static 15141 15142# Does compiler simultaneously support -c and -o options? 15143compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15144 15145# Whether or not to add -lc for building shared libraries. 15146build_libtool_need_lc=$archive_cmds_need_lc 15147 15148# Whether or not to disallow shared libs when runtime libs are static. 15149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15150 15151# Compiler flag to allow reflexive dlopens. 15152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15153 15154# Compiler flag to generate shared objects directly from archives. 15155whole_archive_flag_spec=$lt_whole_archive_flag_spec 15156 15157# Whether the compiler copes with passing no objects directly. 15158compiler_needs_object=$lt_compiler_needs_object 15159 15160# Create an old-style archive from a shared archive. 15161old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15162 15163# Create a temporary old-style archive to link instead of a shared archive. 15164old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15165 15166# Commands used to build a shared archive. 15167archive_cmds=$lt_archive_cmds 15168archive_expsym_cmds=$lt_archive_expsym_cmds 15169 15170# Commands used to build a loadable module if different from building 15171# a shared archive. 15172module_cmds=$lt_module_cmds 15173module_expsym_cmds=$lt_module_expsym_cmds 15174 15175# Whether we are building with GNU ld or not. 15176with_gnu_ld=$lt_with_gnu_ld 15177 15178# Flag that allows shared libraries with undefined symbols to be built. 15179allow_undefined_flag=$lt_allow_undefined_flag 15180 15181# Flag that enforces no undefined symbols. 15182no_undefined_flag=$lt_no_undefined_flag 15183 15184# Flag to hardcode \$libdir into a binary during linking. 15185# This must work even if \$libdir does not exist 15186hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15187 15188# Whether we need a single "-rpath" flag with a separated argument. 15189hardcode_libdir_separator=$lt_hardcode_libdir_separator 15190 15191# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15192# DIR into the resulting binary. 15193hardcode_direct=$hardcode_direct 15194 15195# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15196# DIR into the resulting binary and the resulting library dependency is 15197# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15198# library is relocated. 15199hardcode_direct_absolute=$hardcode_direct_absolute 15200 15201# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15202# into the resulting binary. 15203hardcode_minus_L=$hardcode_minus_L 15204 15205# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15206# into the resulting binary. 15207hardcode_shlibpath_var=$hardcode_shlibpath_var 15208 15209# Set to "yes" if building a shared library automatically hardcodes DIR 15210# into the library and all subsequent libraries and executables linked 15211# against it. 15212hardcode_automatic=$hardcode_automatic 15213 15214# Set to yes if linker adds runtime paths of dependent libraries 15215# to runtime path list. 15216inherit_rpath=$inherit_rpath 15217 15218# Whether libtool must link a program against all its dependency libraries. 15219link_all_deplibs=$link_all_deplibs 15220 15221# Set to "yes" if exported symbols are required. 15222always_export_symbols=$always_export_symbols 15223 15224# The commands to list exported symbols. 15225export_symbols_cmds=$lt_export_symbols_cmds 15226 15227# Symbols that should not be listed in the preloaded symbols. 15228exclude_expsyms=$lt_exclude_expsyms 15229 15230# Symbols that must always be exported. 15231include_expsyms=$lt_include_expsyms 15232 15233# Commands necessary for linking programs (against libraries) with templates. 15234prelink_cmds=$lt_prelink_cmds 15235 15236# Commands necessary for finishing linking programs. 15237postlink_cmds=$lt_postlink_cmds 15238 15239# Specify filename containing input files. 15240file_list_spec=$lt_file_list_spec 15241 15242# How to hardcode a shared library path into an executable. 15243hardcode_action=$hardcode_action 15244 15245# ### END LIBTOOL CONFIG 15246 15247_LT_EOF 15248 15249 cat <<'_LT_EOF' >> "$cfgfile" 15250 15251# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15252 15253# func_munge_path_list VARIABLE PATH 15254# ----------------------------------- 15255# VARIABLE is name of variable containing _space_ separated list of 15256# directories to be munged by the contents of PATH, which is string 15257# having a format: 15258# "DIR[:DIR]:" 15259# string "DIR[ DIR]" will be prepended to VARIABLE 15260# ":DIR[:DIR]" 15261# string "DIR[ DIR]" will be appended to VARIABLE 15262# "DIRP[:DIRP]::[DIRA:]DIRA" 15263# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15264# "DIRA[ DIRA]" will be appended to VARIABLE 15265# "DIR[:DIR]" 15266# VARIABLE will be replaced by "DIR[ DIR]" 15267func_munge_path_list () 15268{ 15269 case x$2 in 15270 x) 15271 ;; 15272 *:) 15273 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15274 ;; 15275 x:*) 15276 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15277 ;; 15278 *::*) 15279 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15280 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15281 ;; 15282 *) 15283 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15284 ;; 15285 esac 15286} 15287 15288 15289# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15290func_cc_basename () 15291{ 15292 for cc_temp in $*""; do 15293 case $cc_temp in 15294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15296 \-*) ;; 15297 *) break;; 15298 esac 15299 done 15300 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15301} 15302 15303 15304# ### END FUNCTIONS SHARED WITH CONFIGURE 15305 15306_LT_EOF 15307 15308 case $host_os in 15309 aix3*) 15310 cat <<\_LT_EOF >> "$cfgfile" 15311# AIX sometimes has problems with the GCC collect2 program. For some 15312# reason, if we set the COLLECT_NAMES environment variable, the problems 15313# vanish in a puff of smoke. 15314if test set != "${COLLECT_NAMES+set}"; then 15315 COLLECT_NAMES= 15316 export COLLECT_NAMES 15317fi 15318_LT_EOF 15319 ;; 15320 esac 15321 15322 15323ltmain=$ac_aux_dir/ltmain.sh 15324 15325 15326 # We use sed instead of cat because bash on DJGPP gets confused if 15327 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15328 # text mode, it properly converts lines to CR/LF. This bash problem 15329 # is reportedly fixed, but why not run on old versions too? 15330 sed '$q' "$ltmain" >> "$cfgfile" \ 15331 || (rm -f "$cfgfile"; exit 1) 15332 15333 mv -f "$cfgfile" "$ofile" || 15334 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15335 chmod +x "$ofile" 15336 15337 ;; 15338 15339 esac 15340done # for ac_tag 15341 15342 15343as_fn_exit 0 15344_ACEOF 15345ac_clean_files=$ac_clean_files_save 15346 15347test $ac_write_fail = 0 || 15348 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15349 15350 15351# configure is writing to config.log, and then calls config.status. 15352# config.status does its own redirection, appending to config.log. 15353# Unfortunately, on DOS this fails, as config.log is still kept open 15354# by configure, so config.status won't be able to write to it; its 15355# output is simply discarded. So we exec the FD to /dev/null, 15356# effectively closing config.log, so it can be properly (re)opened and 15357# appended to by config.status. When coming back to configure, we 15358# need to make the FD available again. 15359if test "$no_create" != yes; then 15360 ac_cs_success=: 15361 ac_config_status_args= 15362 test "$silent" = yes && 15363 ac_config_status_args="$ac_config_status_args --quiet" 15364 exec 5>/dev/null 15365 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15366 exec 5>>config.log 15367 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15368 # would make configure fail if this is the last instruction. 15369 $ac_cs_success || as_fn_exit 1 15370fi 15371if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15373$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15374fi 15375 15376