1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for nbdkit 1.20.4. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='nbdkit' 589PACKAGE_TARNAME='nbdkit' 590PACKAGE_VERSION='1.20.4' 591PACKAGE_STRING='nbdkit 1.20.4' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='am__EXEEXT_FALSE 632am__EXEEXT_TRUE 633LTLIBOBJS 634LIBOBJS 635NBDKIT_VERSION_MICRO 636NBDKIT_VERSION_MINOR 637NBDKIT_VERSION_MAJOR 638HAVE_VDDK_FALSE 639HAVE_VDDK_TRUE 640HAVE_EXT2_FALSE 641HAVE_EXT2_TRUE 642COM_ERR_LIBS 643COM_ERR_CFLAGS 644EXT2FS_LIBS 645EXT2FS_CFLAGS 646HAVE_GUESTFISH_FALSE 647HAVE_GUESTFISH_TRUE 648GUESTFISH 649HAVE_LIBGUESTFS_FALSE 650HAVE_LIBGUESTFS_TRUE 651LIBGUESTFS_LIBS 652LIBGUESTFS_CFLAGS 653HAVE_LIBLZMA_FALSE 654HAVE_LIBLZMA_TRUE 655LIBLZMA_LIBS 656LIBLZMA_CFLAGS 657HAVE_LIBNBD_FALSE 658HAVE_LIBNBD_TRUE 659LIBNBD_LIBS 660LIBNBD_CFLAGS 661HAVE_ZLIB_FALSE 662HAVE_ZLIB_TRUE 663ZLIB_LIBS 664ZLIB_CFLAGS 665HAVE_LIBVIRT_FALSE 666HAVE_LIBVIRT_TRUE 667LIBVIRT_LIBS 668LIBVIRT_CFLAGS 669HAVE_ISO_FALSE 670HAVE_ISO_TRUE 671ISOPROG 672MKISOFS 673GENISOIMAGE 674HAVE_SSH_FALSE 675HAVE_SSH_TRUE 676SSH_LIBS 677SSH_CFLAGS 678HAVE_CURL_FALSE 679HAVE_CURL_TRUE 680CURL_LIBS 681CURL_CFLAGS 682HAVE_GOLANG_FALSE 683HAVE_GOLANG_TRUE 684GOROOT 685GOARCH 686GOOS 687GOLANG 688HAVE_LUA_FALSE 689HAVE_LUA_TRUE 690LUA_LIBS 691LUA_CFLAGS 692HAVE_TCL_FALSE 693HAVE_TCL_TRUE 694TCL_LIBS 695TCL_CFLAGS 696HAVE_RUBY_FALSE 697HAVE_RUBY_TRUE 698RUBY_LIBS 699RUBY_CFLAGS 700RUBY 701HAVE_RUST_FALSE 702HAVE_RUST_TRUE 703CARGO 704HAVE_OCAML_FALSE 705HAVE_OCAML_TRUE 706OCAMLBUILD 707OCAMLDOC 708OCAMLMKLIB 709OCAMLMKTOP 710OCAMLDEP 711OCAML 712OCAMLOPTDOTOPT 713OCAMLCDOTOPT 714OCAMLBEST 715OCAMLOPT 716OCAMLLIB 717OCAMLVERSION 718OCAMLC 719OCAMLOPTFLAGS 720PYTHON_LDFLAGS 721HAVE_PYTHON_FALSE 722HAVE_PYTHON_TRUE 723PYTHON_VERSION 724PYTHON_LIBS 725PYTHON_CFLAGS 726PYTHON 727PERL_LDOPTS 728PERL_CFLAGS 729PERL_ARCHLIB 730HAVE_PERL_FALSE 731HAVE_PERL_TRUE 732HAVE_PLUGINS_FALSE 733HAVE_PLUGINS_TRUE 734PODWRAPPER 735HAVE_POD_FALSE 736HAVE_POD_TRUE 737PERL 738HAVE_BASH_COMPLETION_FALSE 739HAVE_BASH_COMPLETION_TRUE 740bashcompdir 741BASH_COMPLETION_LIBS 742BASH_COMPLETION_CFLAGS 743ENABLE_LIBFUZZER_FALSE 744ENABLE_LIBFUZZER_TRUE 745VALGRIND_LIBS 746VALGRIND_CFLAGS 747VALGRIND 748HAVE_MKE2FS_WITH_D_FALSE 749HAVE_MKE2FS_WITH_D_TRUE 750GNUTLS_LIBS 751GNUTLS_CFLAGS 752LIBSELINUX_LIBS 753LIBSELINUX_CFLAGS 754PKG_CONFIG_LIBDIR 755PKG_CONFIG_PATH 756PKG_CONFIG 757SHARED_LDFLAGS 758DL_LDFLAGS 759USE_LINKER_SCRIPT_FOR_SERVER_FALSE 760USE_LINKER_SCRIPT_FOR_SERVER_TRUE 761HAVE_ICONV_FALSE 762HAVE_ICONV_TRUE 763DL_LIBS 764PTHREAD_CFLAGS 765PTHREAD_LIBS 766PTHREAD_CC 767ax_pthread_config 768CAN_TEST_ANSI_C_FALSE 769CAN_TEST_ANSI_C_TRUE 770WARNINGS_CFLAGS 771HAVE_CXX_FALSE 772HAVE_CXX_TRUE 773CXXCPP 774am__fastdepCXX_FALSE 775am__fastdepCXX_TRUE 776CXXDEPMODE 777ac_ct_CXX 778CXXFLAGS 779CXX 780filters 781non_lang_plugins 782lang_plugins 783plugins 784LT_SYS_LIBRARY_PATH 785OTOOL64 786OTOOL 787LIPO 788NMEDIT 789DSYMUTIL 790MANIFEST_TOOL 791RANLIB 792ac_ct_AR 793AR 794DLLTOOL 795OBJDUMP 796LN_S 797NM 798ac_ct_DUMPBIN 799DUMPBIN 800LD 801FGREP 802SED 803host_os 804host_vendor 805host_cpu 806host 807build_os 808build_vendor 809build_cpu 810build 811LIBTOOL 812AM_BACKSLASH 813AM_DEFAULT_VERBOSITY 814AM_DEFAULT_V 815AM_V 816am__fastdepCC_FALSE 817am__fastdepCC_TRUE 818CCDEPMODE 819am__nodep 820AMDEPBACKSLASH 821AMDEP_FALSE 822AMDEP_TRUE 823am__include 824DEPDIR 825am__untar 826am__tar 827AMTAR 828am__leading_dot 829SET_MAKE 830AWK 831mkdir_p 832MKDIR_P 833INSTALL_STRIP_PROGRAM 834STRIP 835install_sh 836MAKEINFO 837AUTOHEADER 838AUTOMAKE 839AUTOCONF 840ACLOCAL 841VERSION 842PACKAGE 843CYGPATH_W 844am__isrc 845INSTALL_DATA 846INSTALL_SCRIPT 847INSTALL_PROGRAM 848EGREP 849GREP 850CPP 851OBJEXT 852EXEEXT 853ac_ct_CC 854CPPFLAGS 855LDFLAGS 856CFLAGS 857CC 858target_alias 859host_alias 860build_alias 861LIBS 862ECHO_T 863ECHO_N 864ECHO_C 865DEFS 866mandir 867localedir 868libdir 869psdir 870pdfdir 871dvidir 872htmldir 873infodir 874docdir 875oldincludedir 876includedir 877localstatedir 878sharedstatedir 879sysconfdir 880datadir 881datarootdir 882libexecdir 883sbindir 884bindir 885program_transform_name 886prefix 887exec_prefix 888PACKAGE_URL 889PACKAGE_BUGREPORT 890PACKAGE_STRING 891PACKAGE_VERSION 892PACKAGE_TARNAME 893PACKAGE_NAME 894PATH_SEPARATOR 895SHELL 896am__quote' 897ac_subst_files='' 898ac_user_opts=' 899enable_option_checking 900enable_dependency_tracking 901enable_silent_rules 902enable_shared 903enable_static 904with_pic 905enable_fast_install 906with_aix_soname 907with_gnu_ld 908with_sysroot 909enable_libtool_lock 910enable_largefile 911enable_gcc_warnings 912with_iconv 913with_tls_priority 914with_linuxdisk 915enable_valgrind 916enable_libfuzzer 917enable_plugins 918enable_perl 919enable_python 920enable_ocaml 921enable_rust 922enable_ruby 923enable_tcl 924enable_lua 925enable_golang 926with_curl 927with_ssh 928with_iso 929with_libvirt 930with_zlib 931with_libnbd 932enable_nbd_plugin 933with_liblzma 934with_libguestfs 935with_ext2 936enable_vddk 937' 938 ac_precious_vars='build_alias 939host_alias 940target_alias 941CC 942CFLAGS 943LDFLAGS 944LIBS 945CPPFLAGS 946CPP 947LT_SYS_LIBRARY_PATH 948CXX 949CXXFLAGS 950CCC 951CXXCPP 952PKG_CONFIG 953PKG_CONFIG_PATH 954PKG_CONFIG_LIBDIR 955LIBSELINUX_CFLAGS 956LIBSELINUX_LIBS 957GNUTLS_CFLAGS 958GNUTLS_LIBS 959VALGRIND_CFLAGS 960VALGRIND_LIBS 961BASH_COMPLETION_CFLAGS 962BASH_COMPLETION_LIBS 963bashcompdir 964PYTHON_CFLAGS 965PYTHON_LIBS 966RUBY_CFLAGS 967RUBY_LIBS 968TCL_CFLAGS 969TCL_LIBS 970LUA_CFLAGS 971LUA_LIBS 972CURL_CFLAGS 973CURL_LIBS 974SSH_CFLAGS 975SSH_LIBS 976LIBVIRT_CFLAGS 977LIBVIRT_LIBS 978ZLIB_CFLAGS 979ZLIB_LIBS 980LIBNBD_CFLAGS 981LIBNBD_LIBS 982LIBLZMA_CFLAGS 983LIBLZMA_LIBS 984LIBGUESTFS_CFLAGS 985LIBGUESTFS_LIBS 986EXT2FS_CFLAGS 987EXT2FS_LIBS 988COM_ERR_CFLAGS 989COM_ERR_LIBS' 990 991 992# Initialize some variables set by options. 993ac_init_help= 994ac_init_version=false 995ac_unrecognized_opts= 996ac_unrecognized_sep= 997# The variables have the same names as the options, with 998# dashes changed to underlines. 999cache_file=/dev/null 1000exec_prefix=NONE 1001no_create= 1002no_recursion= 1003prefix=NONE 1004program_prefix=NONE 1005program_suffix=NONE 1006program_transform_name=s,x,x, 1007silent= 1008site= 1009srcdir= 1010verbose= 1011x_includes=NONE 1012x_libraries=NONE 1013 1014# Installation directory options. 1015# These are left unexpanded so users can "make install exec_prefix=/foo" 1016# and all the variables that are supposed to be based on exec_prefix 1017# by default will actually change. 1018# Use braces instead of parens because sh, perl, etc. also accept them. 1019# (The list follows the same order as the GNU Coding Standards.) 1020bindir='${exec_prefix}/bin' 1021sbindir='${exec_prefix}/sbin' 1022libexecdir='${exec_prefix}/libexec' 1023datarootdir='${prefix}/share' 1024datadir='${datarootdir}' 1025sysconfdir='${prefix}/etc' 1026sharedstatedir='${prefix}/com' 1027localstatedir='${prefix}/var' 1028includedir='${prefix}/include' 1029oldincludedir='/usr/include' 1030docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1031infodir='${datarootdir}/info' 1032htmldir='${docdir}' 1033dvidir='${docdir}' 1034pdfdir='${docdir}' 1035psdir='${docdir}' 1036libdir='${exec_prefix}/lib' 1037localedir='${datarootdir}/locale' 1038mandir='${datarootdir}/man' 1039 1040ac_prev= 1041ac_dashdash= 1042for ac_option 1043do 1044 # If the previous option needs an argument, assign it. 1045 if test -n "$ac_prev"; then 1046 eval $ac_prev=\$ac_option 1047 ac_prev= 1048 continue 1049 fi 1050 1051 case $ac_option in 1052 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1053 *=) ac_optarg= ;; 1054 *) ac_optarg=yes ;; 1055 esac 1056 1057 # Accept the important Cygnus configure options, so we can diagnose typos. 1058 1059 case $ac_dashdash$ac_option in 1060 --) 1061 ac_dashdash=yes ;; 1062 1063 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1064 ac_prev=bindir ;; 1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1066 bindir=$ac_optarg ;; 1067 1068 -build | --build | --buil | --bui | --bu) 1069 ac_prev=build_alias ;; 1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1071 build_alias=$ac_optarg ;; 1072 1073 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1075 ac_prev=cache_file ;; 1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1078 cache_file=$ac_optarg ;; 1079 1080 --config-cache | -C) 1081 cache_file=config.cache ;; 1082 1083 -datadir | --datadir | --datadi | --datad) 1084 ac_prev=datadir ;; 1085 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1086 datadir=$ac_optarg ;; 1087 1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1089 | --dataroo | --dataro | --datar) 1090 ac_prev=datarootdir ;; 1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1093 datarootdir=$ac_optarg ;; 1094 1095 -disable-* | --disable-*) 1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1097 # Reject names that are not valid shell variable names. 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099 as_fn_error $? "invalid feature name: $ac_useropt" 1100 ac_useropt_orig=$ac_useropt 1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102 case $ac_user_opts in 1103 *" 1104"enable_$ac_useropt" 1105"*) ;; 1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1107 ac_unrecognized_sep=', ';; 1108 esac 1109 eval enable_$ac_useropt=no ;; 1110 1111 -docdir | --docdir | --docdi | --doc | --do) 1112 ac_prev=docdir ;; 1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1114 docdir=$ac_optarg ;; 1115 1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1117 ac_prev=dvidir ;; 1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1119 dvidir=$ac_optarg ;; 1120 1121 -enable-* | --enable-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid feature name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"enable_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval enable_$ac_useropt=\$ac_optarg ;; 1136 1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1139 | --exec | --exe | --ex) 1140 ac_prev=exec_prefix ;; 1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1143 | --exec=* | --exe=* | --ex=*) 1144 exec_prefix=$ac_optarg ;; 1145 1146 -gas | --gas | --ga | --g) 1147 # Obsolete; use --with-gas. 1148 with_gas=yes ;; 1149 1150 -help | --help | --hel | --he | -h) 1151 ac_init_help=long ;; 1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1153 ac_init_help=recursive ;; 1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1155 ac_init_help=short ;; 1156 1157 -host | --host | --hos | --ho) 1158 ac_prev=host_alias ;; 1159 -host=* | --host=* | --hos=* | --ho=*) 1160 host_alias=$ac_optarg ;; 1161 1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1163 ac_prev=htmldir ;; 1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1165 | --ht=*) 1166 htmldir=$ac_optarg ;; 1167 1168 -includedir | --includedir | --includedi | --included | --include \ 1169 | --includ | --inclu | --incl | --inc) 1170 ac_prev=includedir ;; 1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1172 | --includ=* | --inclu=* | --incl=* | --inc=*) 1173 includedir=$ac_optarg ;; 1174 1175 -infodir | --infodir | --infodi | --infod | --info | --inf) 1176 ac_prev=infodir ;; 1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1178 infodir=$ac_optarg ;; 1179 1180 -libdir | --libdir | --libdi | --libd) 1181 ac_prev=libdir ;; 1182 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1183 libdir=$ac_optarg ;; 1184 1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1186 | --libexe | --libex | --libe) 1187 ac_prev=libexecdir ;; 1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1189 | --libexe=* | --libex=* | --libe=*) 1190 libexecdir=$ac_optarg ;; 1191 1192 -localedir | --localedir | --localedi | --localed | --locale) 1193 ac_prev=localedir ;; 1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1195 localedir=$ac_optarg ;; 1196 1197 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1198 | --localstate | --localstat | --localsta | --localst | --locals) 1199 ac_prev=localstatedir ;; 1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1202 localstatedir=$ac_optarg ;; 1203 1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1205 ac_prev=mandir ;; 1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1207 mandir=$ac_optarg ;; 1208 1209 -nfp | --nfp | --nf) 1210 # Obsolete; use --without-fp. 1211 with_fp=no ;; 1212 1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1214 | --no-cr | --no-c | -n) 1215 no_create=yes ;; 1216 1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1219 no_recursion=yes ;; 1220 1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1223 | --oldin | --oldi | --old | --ol | --o) 1224 ac_prev=oldincludedir ;; 1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1228 oldincludedir=$ac_optarg ;; 1229 1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1231 ac_prev=prefix ;; 1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1233 prefix=$ac_optarg ;; 1234 1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1236 | --program-pre | --program-pr | --program-p) 1237 ac_prev=program_prefix ;; 1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1240 program_prefix=$ac_optarg ;; 1241 1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1243 | --program-suf | --program-su | --program-s) 1244 ac_prev=program_suffix ;; 1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1247 program_suffix=$ac_optarg ;; 1248 1249 -program-transform-name | --program-transform-name \ 1250 | --program-transform-nam | --program-transform-na \ 1251 | --program-transform-n | --program-transform- \ 1252 | --program-transform | --program-transfor \ 1253 | --program-transfo | --program-transf \ 1254 | --program-trans | --program-tran \ 1255 | --progr-tra | --program-tr | --program-t) 1256 ac_prev=program_transform_name ;; 1257 -program-transform-name=* | --program-transform-name=* \ 1258 | --program-transform-nam=* | --program-transform-na=* \ 1259 | --program-transform-n=* | --program-transform-=* \ 1260 | --program-transform=* | --program-transfor=* \ 1261 | --program-transfo=* | --program-transf=* \ 1262 | --program-trans=* | --program-tran=* \ 1263 | --progr-tra=* | --program-tr=* | --program-t=*) 1264 program_transform_name=$ac_optarg ;; 1265 1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1267 ac_prev=pdfdir ;; 1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1269 pdfdir=$ac_optarg ;; 1270 1271 -psdir | --psdir | --psdi | --psd | --ps) 1272 ac_prev=psdir ;; 1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1274 psdir=$ac_optarg ;; 1275 1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1277 | -silent | --silent | --silen | --sile | --sil) 1278 silent=yes ;; 1279 1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1281 ac_prev=sbindir ;; 1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1283 | --sbi=* | --sb=*) 1284 sbindir=$ac_optarg ;; 1285 1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1288 | --sharedst | --shareds | --shared | --share | --shar \ 1289 | --sha | --sh) 1290 ac_prev=sharedstatedir ;; 1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1294 | --sha=* | --sh=*) 1295 sharedstatedir=$ac_optarg ;; 1296 1297 -site | --site | --sit) 1298 ac_prev=site ;; 1299 -site=* | --site=* | --sit=*) 1300 site=$ac_optarg ;; 1301 1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1303 ac_prev=srcdir ;; 1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1305 srcdir=$ac_optarg ;; 1306 1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1308 | --syscon | --sysco | --sysc | --sys | --sy) 1309 ac_prev=sysconfdir ;; 1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1312 sysconfdir=$ac_optarg ;; 1313 1314 -target | --target | --targe | --targ | --tar | --ta | --t) 1315 ac_prev=target_alias ;; 1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1317 target_alias=$ac_optarg ;; 1318 1319 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1320 verbose=yes ;; 1321 1322 -version | --version | --versio | --versi | --vers | -V) 1323 ac_init_version=: ;; 1324 1325 -with-* | --with-*) 1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1327 # Reject names that are not valid shell variable names. 1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1329 as_fn_error $? "invalid package name: $ac_useropt" 1330 ac_useropt_orig=$ac_useropt 1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1332 case $ac_user_opts in 1333 *" 1334"with_$ac_useropt" 1335"*) ;; 1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1337 ac_unrecognized_sep=', ';; 1338 esac 1339 eval with_$ac_useropt=\$ac_optarg ;; 1340 1341 -without-* | --without-*) 1342 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1343 # Reject names that are not valid shell variable names. 1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1345 as_fn_error $? "invalid package name: $ac_useropt" 1346 ac_useropt_orig=$ac_useropt 1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1348 case $ac_user_opts in 1349 *" 1350"with_$ac_useropt" 1351"*) ;; 1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1353 ac_unrecognized_sep=', ';; 1354 esac 1355 eval with_$ac_useropt=no ;; 1356 1357 --x) 1358 # Obsolete; use --with-x. 1359 with_x=yes ;; 1360 1361 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1362 | --x-incl | --x-inc | --x-in | --x-i) 1363 ac_prev=x_includes ;; 1364 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1365 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1366 x_includes=$ac_optarg ;; 1367 1368 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1369 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1370 ac_prev=x_libraries ;; 1371 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1372 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1373 x_libraries=$ac_optarg ;; 1374 1375 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1376Try \`$0 --help' for more information" 1377 ;; 1378 1379 *=*) 1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1381 # Reject names that are not valid shell variable names. 1382 case $ac_envvar in #( 1383 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1384 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1385 esac 1386 eval $ac_envvar=\$ac_optarg 1387 export $ac_envvar ;; 1388 1389 *) 1390 # FIXME: should be removed in autoconf 3.0. 1391 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1392 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1393 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1394 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1395 ;; 1396 1397 esac 1398done 1399 1400if test -n "$ac_prev"; then 1401 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1402 as_fn_error $? "missing argument to $ac_option" 1403fi 1404 1405if test -n "$ac_unrecognized_opts"; then 1406 case $enable_option_checking in 1407 no) ;; 1408 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1409 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1410 esac 1411fi 1412 1413# Check all directory arguments for consistency. 1414for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1415 datadir sysconfdir sharedstatedir localstatedir includedir \ 1416 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1417 libdir localedir mandir 1418do 1419 eval ac_val=\$$ac_var 1420 # Remove trailing slashes. 1421 case $ac_val in 1422 */ ) 1423 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1424 eval $ac_var=\$ac_val;; 1425 esac 1426 # Be sure to have absolute directory names. 1427 case $ac_val in 1428 [\\/$]* | ?:[\\/]* ) continue;; 1429 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1430 esac 1431 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1432done 1433 1434# There might be people who depend on the old broken behavior: `$host' 1435# used to hold the argument of --host etc. 1436# FIXME: To remove some day. 1437build=$build_alias 1438host=$host_alias 1439target=$target_alias 1440 1441# FIXME: To remove some day. 1442if test "x$host_alias" != x; then 1443 if test "x$build_alias" = x; then 1444 cross_compiling=maybe 1445 elif test "x$build_alias" != "x$host_alias"; then 1446 cross_compiling=yes 1447 fi 1448fi 1449 1450ac_tool_prefix= 1451test -n "$host_alias" && ac_tool_prefix=$host_alias- 1452 1453test "$silent" = yes && exec 6>/dev/null 1454 1455 1456ac_pwd=`pwd` && test -n "$ac_pwd" && 1457ac_ls_di=`ls -di .` && 1458ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1459 as_fn_error $? "working directory cannot be determined" 1460test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1461 as_fn_error $? "pwd does not report name of working directory" 1462 1463 1464# Find the source files, if location was not specified. 1465if test -z "$srcdir"; then 1466 ac_srcdir_defaulted=yes 1467 # Try the directory containing this script, then the parent directory. 1468 ac_confdir=`$as_dirname -- "$as_myself" || 1469$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1470 X"$as_myself" : 'X\(//\)[^/]' \| \ 1471 X"$as_myself" : 'X\(//\)$' \| \ 1472 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1473$as_echo X"$as_myself" | 1474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1475 s//\1/ 1476 q 1477 } 1478 /^X\(\/\/\)[^/].*/{ 1479 s//\1/ 1480 q 1481 } 1482 /^X\(\/\/\)$/{ 1483 s//\1/ 1484 q 1485 } 1486 /^X\(\/\).*/{ 1487 s//\1/ 1488 q 1489 } 1490 s/.*/./; q'` 1491 srcdir=$ac_confdir 1492 if test ! -r "$srcdir/$ac_unique_file"; then 1493 srcdir=.. 1494 fi 1495else 1496 ac_srcdir_defaulted=no 1497fi 1498if test ! -r "$srcdir/$ac_unique_file"; then 1499 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1500 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1501fi 1502ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1503ac_abs_confdir=`( 1504 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1505 pwd)` 1506# When building in place, set srcdir=. 1507if test "$ac_abs_confdir" = "$ac_pwd"; then 1508 srcdir=. 1509fi 1510# Remove unnecessary trailing slashes from srcdir. 1511# Double slashes in file names in object file debugging info 1512# mess up M-x gdb in Emacs. 1513case $srcdir in 1514*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1515esac 1516for ac_var in $ac_precious_vars; do 1517 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1518 eval ac_env_${ac_var}_value=\$${ac_var} 1519 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1520 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1521done 1522 1523# 1524# Report the --help message. 1525# 1526if test "$ac_init_help" = "long"; then 1527 # Omit some internal or obsolete options to make the list less imposing. 1528 # This message is too long to be a string in the A/UX 3.1 sh. 1529 cat <<_ACEOF 1530\`configure' configures nbdkit 1.20.4 to adapt to many kinds of systems. 1531 1532Usage: $0 [OPTION]... [VAR=VALUE]... 1533 1534To assign environment variables (e.g., CC, CFLAGS...), specify them as 1535VAR=VALUE. See below for descriptions of some of the useful variables. 1536 1537Defaults for the options are specified in brackets. 1538 1539Configuration: 1540 -h, --help display this help and exit 1541 --help=short display options specific to this package 1542 --help=recursive display the short help of all the included packages 1543 -V, --version display version information and exit 1544 -q, --quiet, --silent do not print \`checking ...' messages 1545 --cache-file=FILE cache test results in FILE [disabled] 1546 -C, --config-cache alias for \`--cache-file=config.cache' 1547 -n, --no-create do not create output files 1548 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1549 1550Installation directories: 1551 --prefix=PREFIX install architecture-independent files in PREFIX 1552 [$ac_default_prefix] 1553 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1554 [PREFIX] 1555 1556By default, \`make install' will install all the files in 1557\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1558an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1559for instance \`--prefix=\$HOME'. 1560 1561For better control, use the options below. 1562 1563Fine tuning of the installation directories: 1564 --bindir=DIR user executables [EPREFIX/bin] 1565 --sbindir=DIR system admin executables [EPREFIX/sbin] 1566 --libexecdir=DIR program executables [EPREFIX/libexec] 1567 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1568 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1569 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1570 --libdir=DIR object code libraries [EPREFIX/lib] 1571 --includedir=DIR C header files [PREFIX/include] 1572 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1573 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1574 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1575 --infodir=DIR info documentation [DATAROOTDIR/info] 1576 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1577 --mandir=DIR man documentation [DATAROOTDIR/man] 1578 --docdir=DIR documentation root [DATAROOTDIR/doc/nbdkit] 1579 --htmldir=DIR html documentation [DOCDIR] 1580 --dvidir=DIR dvi documentation [DOCDIR] 1581 --pdfdir=DIR pdf documentation [DOCDIR] 1582 --psdir=DIR ps documentation [DOCDIR] 1583_ACEOF 1584 1585 cat <<\_ACEOF 1586 1587Program names: 1588 --program-prefix=PREFIX prepend PREFIX to installed program names 1589 --program-suffix=SUFFIX append SUFFIX to installed program names 1590 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1591 1592System types: 1593 --build=BUILD configure for building on BUILD [guessed] 1594 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1595_ACEOF 1596fi 1597 1598if test -n "$ac_init_help"; then 1599 case $ac_init_help in 1600 short | recursive ) echo "Configuration of nbdkit 1.20.4:";; 1601 esac 1602 cat <<\_ACEOF 1603 1604Optional Features: 1605 --disable-option-checking ignore unrecognized --enable/--with options 1606 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1607 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1608 --enable-dependency-tracking 1609 do not reject slow dependency extractors 1610 --disable-dependency-tracking 1611 speeds up one-time build 1612 --enable-silent-rules less verbose build output (undo: "make V=1") 1613 --disable-silent-rules verbose build output (undo: "make V=0") 1614 --enable-shared[=PKGS] build shared libraries [default=yes] 1615 --enable-static[=PKGS] build static libraries [default=yes] 1616 --enable-fast-install[=PKGS] 1617 optimize for fast installation [default=yes] 1618 --disable-libtool-lock avoid locking (might break parallel builds) 1619 --disable-largefile omit support for large files 1620 --enable-gcc-warnings turn on lots of GCC warnings (for developers) 1621 --enable-valgrind enable Valgrind extensions (for developers) 1622 --enable-libfuzzer build libFuzzer test binary (developers only) 1623 --disable-plugins disable all bundled plugins and filters 1624 --disable-perl disable Perl embed plugin 1625 --disable-python disable Python embed plugin 1626 --disable-ocaml disable OCaml embed plugin 1627 --disable-rust disable Rust plugin 1628 --disable-ruby disable Ruby plugin 1629 --disable-tcl disable Tcl plugin 1630 --disable-lua disable Lua plugin 1631 --disable-golang disable Go language plugin 1632 --disable-nbd-plugin disable nbd plugin (deprecated, use 1633 --without-libnbd) 1634 --disable-vddk disable VMware VDDK plugin 1635 1636Optional Packages: 1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1639 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1640 both] 1641 --with-aix-soname=aix|svr4|both 1642 shared library versioning (aka "SONAME") variant to 1643 provide on AIX, [default=aix]. 1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1645 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1646 compiler's sysroot if not specified). 1647 --without-iconv don't try to link against iconv [default=check] 1648 --with-tls-priority default TLS session priority string [default=NORMAL] 1649 --without-linuxdisk disable linuxdisk plugin [default=check] 1650 --without-curl disable curl plugin [default=check] 1651 --without-ssh disable ssh plugin [default=check] 1652 --without-iso disable iso plugin [default=check] 1653 --without-libvirt disable libvirt plugin [default=check] 1654 --without-zlib disable gzip plugin [default=check] 1655 --without-libnbd disable nbd plugin [default=check] 1656 --without-liblzma disable xz filter [default=check] 1657 --without-libguestfs disable guestfs plugin and tests [default=check] 1658 --without-ext2 disable ext2 filter [default=check] 1659 1660Some influential environment variables: 1661 CC C compiler command 1662 CFLAGS C compiler flags 1663 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1664 nonstandard directory <lib dir> 1665 LIBS libraries to pass to the linker, e.g. -l<library> 1666 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1667 you have headers in a nonstandard directory <include dir> 1668 CPP C preprocessor 1669 LT_SYS_LIBRARY_PATH 1670 User-defined run-time library search path. 1671 CXX C++ compiler command 1672 CXXFLAGS C++ compiler flags 1673 CXXCPP C++ preprocessor 1674 PKG_CONFIG path to pkg-config utility 1675 PKG_CONFIG_PATH 1676 directories to add to pkg-config's search path 1677 PKG_CONFIG_LIBDIR 1678 path overriding pkg-config's built-in search path 1679 LIBSELINUX_CFLAGS 1680 C compiler flags for LIBSELINUX, overriding pkg-config 1681 LIBSELINUX_LIBS 1682 linker flags for LIBSELINUX, overriding pkg-config 1683 GNUTLS_CFLAGS 1684 C compiler flags for GNUTLS, overriding pkg-config 1685 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config 1686 VALGRIND_CFLAGS 1687 C compiler flags for VALGRIND, overriding pkg-config 1688 VALGRIND_LIBS 1689 linker flags for VALGRIND, overriding pkg-config 1690 BASH_COMPLETION_CFLAGS 1691 C compiler flags for BASH_COMPLETION, overriding pkg-config 1692 BASH_COMPLETION_LIBS 1693 linker flags for BASH_COMPLETION, overriding pkg-config 1694 bashcompdir value of completionsdir for bash-completion, overriding 1695 pkg-config 1696 PYTHON_CFLAGS 1697 C compiler flags for PYTHON, overriding pkg-config 1698 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config 1699 RUBY_CFLAGS C compiler flags for RUBY, overriding pkg-config 1700 RUBY_LIBS linker flags for RUBY, overriding pkg-config 1701 TCL_CFLAGS C compiler flags for TCL, overriding pkg-config 1702 TCL_LIBS linker flags for TCL, overriding pkg-config 1703 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config 1704 LUA_LIBS linker flags for LUA, overriding pkg-config 1705 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config 1706 CURL_LIBS linker flags for CURL, overriding pkg-config 1707 SSH_CFLAGS C compiler flags for SSH, overriding pkg-config 1708 SSH_LIBS linker flags for SSH, overriding pkg-config 1709 LIBVIRT_CFLAGS 1710 C compiler flags for LIBVIRT, overriding pkg-config 1711 LIBVIRT_LIBS 1712 linker flags for LIBVIRT, overriding pkg-config 1713 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1714 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1715 LIBNBD_CFLAGS 1716 C compiler flags for LIBNBD, overriding pkg-config 1717 LIBNBD_LIBS linker flags for LIBNBD, overriding pkg-config 1718 LIBLZMA_CFLAGS 1719 C compiler flags for LIBLZMA, overriding pkg-config 1720 LIBLZMA_LIBS 1721 linker flags for LIBLZMA, overriding pkg-config 1722 LIBGUESTFS_CFLAGS 1723 C compiler flags for LIBGUESTFS, overriding pkg-config 1724 LIBGUESTFS_LIBS 1725 linker flags for LIBGUESTFS, overriding pkg-config 1726 EXT2FS_CFLAGS 1727 C compiler flags for EXT2FS, overriding pkg-config 1728 EXT2FS_LIBS linker flags for EXT2FS, overriding pkg-config 1729 COM_ERR_CFLAGS 1730 C compiler flags for COM_ERR, overriding pkg-config 1731 COM_ERR_LIBS 1732 linker flags for COM_ERR, overriding pkg-config 1733 1734Use these variables to override the choices made by `configure' or to help 1735it to find libraries and programs with nonstandard names/locations. 1736 1737Report bugs to the package provider. 1738_ACEOF 1739ac_status=$? 1740fi 1741 1742if test "$ac_init_help" = "recursive"; then 1743 # If there are subdirs, report their specific --help. 1744 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1745 test -d "$ac_dir" || 1746 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1747 continue 1748 ac_builddir=. 1749 1750case "$ac_dir" in 1751.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1752*) 1753 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1754 # A ".." for each directory in $ac_dir_suffix. 1755 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1756 case $ac_top_builddir_sub in 1757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1759 esac ;; 1760esac 1761ac_abs_top_builddir=$ac_pwd 1762ac_abs_builddir=$ac_pwd$ac_dir_suffix 1763# for backward compatibility: 1764ac_top_builddir=$ac_top_build_prefix 1765 1766case $srcdir in 1767 .) # We are building in place. 1768 ac_srcdir=. 1769 ac_top_srcdir=$ac_top_builddir_sub 1770 ac_abs_top_srcdir=$ac_pwd ;; 1771 [\\/]* | ?:[\\/]* ) # Absolute name. 1772 ac_srcdir=$srcdir$ac_dir_suffix; 1773 ac_top_srcdir=$srcdir 1774 ac_abs_top_srcdir=$srcdir ;; 1775 *) # Relative name. 1776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1777 ac_top_srcdir=$ac_top_build_prefix$srcdir 1778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1779esac 1780ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1781 1782 cd "$ac_dir" || { ac_status=$?; continue; } 1783 # Check for guested configure. 1784 if test -f "$ac_srcdir/configure.gnu"; then 1785 echo && 1786 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1787 elif test -f "$ac_srcdir/configure"; then 1788 echo && 1789 $SHELL "$ac_srcdir/configure" --help=recursive 1790 else 1791 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1792 fi || ac_status=$? 1793 cd "$ac_pwd" || { ac_status=$?; break; } 1794 done 1795fi 1796 1797test -n "$ac_init_help" && exit $ac_status 1798if $ac_init_version; then 1799 cat <<\_ACEOF 1800nbdkit configure 1.20.4 1801generated by GNU Autoconf 2.69 1802 1803Copyright (C) 2012 Free Software Foundation, Inc. 1804This configure script is free software; the Free Software Foundation 1805gives unlimited permission to copy, distribute and modify it. 1806_ACEOF 1807 exit 1808fi 1809 1810## ------------------------ ## 1811## Autoconf initialization. ## 1812## ------------------------ ## 1813 1814# ac_fn_c_try_compile LINENO 1815# -------------------------- 1816# Try to compile conftest.$ac_ext, and return whether this succeeded. 1817ac_fn_c_try_compile () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 rm -f conftest.$ac_objext 1821 if { { ac_try="$ac_compile" 1822case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825esac 1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827$as_echo "$ac_try_echo"; } >&5 1828 (eval "$ac_compile") 2>conftest.err 1829 ac_status=$? 1830 if test -s conftest.err; then 1831 grep -v '^ *+' conftest.err >conftest.er1 1832 cat conftest.er1 >&5 1833 mv -f conftest.er1 conftest.err 1834 fi 1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; } && { 1837 test -z "$ac_c_werror_flag" || 1838 test ! -s conftest.err 1839 } && test -s conftest.$ac_objext; then : 1840 ac_retval=0 1841else 1842 $as_echo "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846fi 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 as_fn_set_status $ac_retval 1849 1850} # ac_fn_c_try_compile 1851 1852# ac_fn_c_try_cpp LINENO 1853# ---------------------- 1854# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1855ac_fn_c_try_cpp () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 if { { ac_try="$ac_cpp conftest.$ac_ext" 1859case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864$as_echo "$ac_try_echo"; } >&5 1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1866 ac_status=$? 1867 if test -s conftest.err; then 1868 grep -v '^ *+' conftest.err >conftest.er1 1869 cat conftest.er1 >&5 1870 mv -f conftest.er1 conftest.err 1871 fi 1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; } > conftest.i && { 1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1875 test ! -s conftest.err 1876 }; then : 1877 ac_retval=0 1878else 1879 $as_echo "$as_me: failed program was:" >&5 1880sed 's/^/| /' conftest.$ac_ext >&5 1881 1882 ac_retval=1 1883fi 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 as_fn_set_status $ac_retval 1886 1887} # ac_fn_c_try_cpp 1888 1889# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1890# ------------------------------------------------------- 1891# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1892# the include files in INCLUDES and setting the cache variable VAR 1893# accordingly. 1894ac_fn_c_check_header_mongrel () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 if eval \${$3+:} false; then : 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899$as_echo_n "checking for $2... " >&6; } 1900if eval \${$3+:} false; then : 1901 $as_echo_n "(cached) " >&6 1902fi 1903eval ac_res=\$$3 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1905$as_echo "$ac_res" >&6; } 1906else 1907 # Is the header compilable? 1908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1909$as_echo_n "checking $2 usability... " >&6; } 1910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912$4 1913#include <$2> 1914_ACEOF 1915if ac_fn_c_try_compile "$LINENO"; then : 1916 ac_header_compiler=yes 1917else 1918 ac_header_compiler=no 1919fi 1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1922$as_echo "$ac_header_compiler" >&6; } 1923 1924# Is the header present? 1925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1926$as_echo_n "checking $2 presence... " >&6; } 1927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928/* end confdefs.h. */ 1929#include <$2> 1930_ACEOF 1931if ac_fn_c_try_cpp "$LINENO"; then : 1932 ac_header_preproc=yes 1933else 1934 ac_header_preproc=no 1935fi 1936rm -f conftest.err conftest.i conftest.$ac_ext 1937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1938$as_echo "$ac_header_preproc" >&6; } 1939 1940# So? What about this header? 1941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1942 yes:no: ) 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1944$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1946$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1947 ;; 1948 no:yes:* ) 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1950$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1952$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1954$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1956$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1958$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1959 ;; 1960esac 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1962$as_echo_n "checking for $2... " >&6; } 1963if eval \${$3+:} false; then : 1964 $as_echo_n "(cached) " >&6 1965else 1966 eval "$3=\$ac_header_compiler" 1967fi 1968eval ac_res=\$$3 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970$as_echo "$ac_res" >&6; } 1971fi 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 1974} # ac_fn_c_check_header_mongrel 1975 1976# ac_fn_c_try_run LINENO 1977# ---------------------- 1978# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1979# that executables *can* be run. 1980ac_fn_c_try_run () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 if { { ac_try="$ac_link" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_link") 2>&5 1991 ac_status=$? 1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1994 { { case "(($ac_try" in 1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1996 *) ac_try_echo=$ac_try;; 1997esac 1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1999$as_echo "$ac_try_echo"; } >&5 2000 (eval "$ac_try") 2>&5 2001 ac_status=$? 2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2003 test $ac_status = 0; }; }; then : 2004 ac_retval=0 2005else 2006 $as_echo "$as_me: program exited with status $ac_status" >&5 2007 $as_echo "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=$ac_status 2011fi 2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 as_fn_set_status $ac_retval 2015 2016} # ac_fn_c_try_run 2017 2018# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2019# ------------------------------------------------------- 2020# Tests whether HEADER exists and can be compiled using the include files in 2021# INCLUDES, setting the cache variable VAR accordingly. 2022ac_fn_c_check_header_compile () 2023{ 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2026$as_echo_n "checking for $2... " >&6; } 2027if eval \${$3+:} false; then : 2028 $as_echo_n "(cached) " >&6 2029else 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$4 2033#include <$2> 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO"; then : 2036 eval "$3=yes" 2037else 2038 eval "$3=no" 2039fi 2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2041fi 2042eval ac_res=\$$3 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2044$as_echo "$ac_res" >&6; } 2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2046 2047} # ac_fn_c_check_header_compile 2048 2049# ac_fn_c_try_link LINENO 2050# ----------------------- 2051# Try to link conftest.$ac_ext, and return whether this succeeded. 2052ac_fn_c_try_link () 2053{ 2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2055 rm -f conftest.$ac_objext conftest$ac_exeext 2056 if { { ac_try="$ac_link" 2057case "(($ac_try" in 2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2059 *) ac_try_echo=$ac_try;; 2060esac 2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2062$as_echo "$ac_try_echo"; } >&5 2063 (eval "$ac_link") 2>conftest.err 2064 ac_status=$? 2065 if test -s conftest.err; then 2066 grep -v '^ *+' conftest.err >conftest.er1 2067 cat conftest.er1 >&5 2068 mv -f conftest.er1 conftest.err 2069 fi 2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2071 test $ac_status = 0; } && { 2072 test -z "$ac_c_werror_flag" || 2073 test ! -s conftest.err 2074 } && test -s conftest$ac_exeext && { 2075 test "$cross_compiling" = yes || 2076 test -x conftest$ac_exeext 2077 }; then : 2078 ac_retval=0 2079else 2080 $as_echo "$as_me: failed program was:" >&5 2081sed 's/^/| /' conftest.$ac_ext >&5 2082 2083 ac_retval=1 2084fi 2085 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2086 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2087 # interfere with the next link command; also delete a directory that is 2088 # left behind by Apple's compiler. We do this before executing the actions. 2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2091 as_fn_set_status $ac_retval 2092 2093} # ac_fn_c_try_link 2094 2095# ac_fn_c_check_func LINENO FUNC VAR 2096# ---------------------------------- 2097# Tests whether FUNC exists, setting the cache variable VAR accordingly 2098ac_fn_c_check_func () 2099{ 2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2102$as_echo_n "checking for $2... " >&6; } 2103if eval \${$3+:} false; then : 2104 $as_echo_n "(cached) " >&6 2105else 2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2109 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2110#define $2 innocuous_$2 2111 2112/* System header to define __stub macros and hopefully few prototypes, 2113 which can conflict with char $2 (); below. 2114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2115 <limits.h> exists even on freestanding compilers. */ 2116 2117#ifdef __STDC__ 2118# include <limits.h> 2119#else 2120# include <assert.h> 2121#endif 2122 2123#undef $2 2124 2125/* Override any GCC internal prototype to avoid an error. 2126 Use char because int might match the return type of a GCC 2127 builtin and then its argument prototype would still apply. */ 2128#ifdef __cplusplus 2129extern "C" 2130#endif 2131char $2 (); 2132/* The GNU C library defines this for functions which it implements 2133 to always fail with ENOSYS. Some functions are actually named 2134 something starting with __ and the normal name is an alias. */ 2135#if defined __stub_$2 || defined __stub___$2 2136choke me 2137#endif 2138 2139int 2140main () 2141{ 2142return $2 (); 2143 ; 2144 return 0; 2145} 2146_ACEOF 2147if ac_fn_c_try_link "$LINENO"; then : 2148 eval "$3=yes" 2149else 2150 eval "$3=no" 2151fi 2152rm -f core conftest.err conftest.$ac_objext \ 2153 conftest$ac_exeext conftest.$ac_ext 2154fi 2155eval ac_res=\$$3 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2157$as_echo "$ac_res" >&6; } 2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2159 2160} # ac_fn_c_check_func 2161 2162# ac_fn_cxx_try_compile LINENO 2163# ---------------------------- 2164# Try to compile conftest.$ac_ext, and return whether this succeeded. 2165ac_fn_cxx_try_compile () 2166{ 2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2168 rm -f conftest.$ac_objext 2169 if { { ac_try="$ac_compile" 2170case "(($ac_try" in 2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2172 *) ac_try_echo=$ac_try;; 2173esac 2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2175$as_echo "$ac_try_echo"; } >&5 2176 (eval "$ac_compile") 2>conftest.err 2177 ac_status=$? 2178 if test -s conftest.err; then 2179 grep -v '^ *+' conftest.err >conftest.er1 2180 cat conftest.er1 >&5 2181 mv -f conftest.er1 conftest.err 2182 fi 2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2184 test $ac_status = 0; } && { 2185 test -z "$ac_cxx_werror_flag" || 2186 test ! -s conftest.err 2187 } && test -s conftest.$ac_objext; then : 2188 ac_retval=0 2189else 2190 $as_echo "$as_me: failed program was:" >&5 2191sed 's/^/| /' conftest.$ac_ext >&5 2192 2193 ac_retval=1 2194fi 2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2196 as_fn_set_status $ac_retval 2197 2198} # ac_fn_cxx_try_compile 2199 2200# ac_fn_cxx_try_cpp LINENO 2201# ------------------------ 2202# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2203ac_fn_cxx_try_cpp () 2204{ 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 if { { ac_try="$ac_cpp conftest.$ac_ext" 2207case "(($ac_try" in 2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2209 *) ac_try_echo=$ac_try;; 2210esac 2211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2212$as_echo "$ac_try_echo"; } >&5 2213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2214 ac_status=$? 2215 if test -s conftest.err; then 2216 grep -v '^ *+' conftest.err >conftest.er1 2217 cat conftest.er1 >&5 2218 mv -f conftest.er1 conftest.err 2219 fi 2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2221 test $ac_status = 0; } > conftest.i && { 2222 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2223 test ! -s conftest.err 2224 }; then : 2225 ac_retval=0 2226else 2227 $as_echo "$as_me: failed program was:" >&5 2228sed 's/^/| /' conftest.$ac_ext >&5 2229 2230 ac_retval=1 2231fi 2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2233 as_fn_set_status $ac_retval 2234 2235} # ac_fn_cxx_try_cpp 2236 2237# ac_fn_cxx_try_link LINENO 2238# ------------------------- 2239# Try to link conftest.$ac_ext, and return whether this succeeded. 2240ac_fn_cxx_try_link () 2241{ 2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2243 rm -f conftest.$ac_objext conftest$ac_exeext 2244 if { { ac_try="$ac_link" 2245case "(($ac_try" in 2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2247 *) ac_try_echo=$ac_try;; 2248esac 2249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2250$as_echo "$ac_try_echo"; } >&5 2251 (eval "$ac_link") 2>conftest.err 2252 ac_status=$? 2253 if test -s conftest.err; then 2254 grep -v '^ *+' conftest.err >conftest.er1 2255 cat conftest.er1 >&5 2256 mv -f conftest.er1 conftest.err 2257 fi 2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2259 test $ac_status = 0; } && { 2260 test -z "$ac_cxx_werror_flag" || 2261 test ! -s conftest.err 2262 } && test -s conftest$ac_exeext && { 2263 test "$cross_compiling" = yes || 2264 test -x conftest$ac_exeext 2265 }; then : 2266 ac_retval=0 2267else 2268 $as_echo "$as_me: failed program was:" >&5 2269sed 's/^/| /' conftest.$ac_ext >&5 2270 2271 ac_retval=1 2272fi 2273 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2274 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2275 # interfere with the next link command; also delete a directory that is 2276 # left behind by Apple's compiler. We do this before executing the actions. 2277 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2279 as_fn_set_status $ac_retval 2280 2281} # ac_fn_cxx_try_link 2282 2283# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2284# --------------------------------------------- 2285# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2286# accordingly. 2287ac_fn_c_check_decl () 2288{ 2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2290 as_decl_name=`echo $2|sed 's/ *(.*//'` 2291 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2293$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2294if eval \${$3+:} false; then : 2295 $as_echo_n "(cached) " >&6 2296else 2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2298/* end confdefs.h. */ 2299$4 2300int 2301main () 2302{ 2303#ifndef $as_decl_name 2304#ifdef __cplusplus 2305 (void) $as_decl_use; 2306#else 2307 (void) $as_decl_name; 2308#endif 2309#endif 2310 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_c_try_compile "$LINENO"; then : 2316 eval "$3=yes" 2317else 2318 eval "$3=no" 2319fi 2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2321fi 2322eval ac_res=\$$3 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2324$as_echo "$ac_res" >&6; } 2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2326 2327} # ac_fn_c_check_decl 2328 2329# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2330# ---------------------------------------------------- 2331# Tries to find if the field MEMBER exists in type AGGR, after including 2332# INCLUDES, setting cache variable VAR accordingly. 2333ac_fn_c_check_member () 2334{ 2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2337$as_echo_n "checking for $2.$3... " >&6; } 2338if eval \${$4+:} false; then : 2339 $as_echo_n "(cached) " >&6 2340else 2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2342/* end confdefs.h. */ 2343$5 2344int 2345main () 2346{ 2347static $2 ac_aggr; 2348if (ac_aggr.$3) 2349return 0; 2350 ; 2351 return 0; 2352} 2353_ACEOF 2354if ac_fn_c_try_compile "$LINENO"; then : 2355 eval "$4=yes" 2356else 2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2358/* end confdefs.h. */ 2359$5 2360int 2361main () 2362{ 2363static $2 ac_aggr; 2364if (sizeof ac_aggr.$3) 2365return 0; 2366 ; 2367 return 0; 2368} 2369_ACEOF 2370if ac_fn_c_try_compile "$LINENO"; then : 2371 eval "$4=yes" 2372else 2373 eval "$4=no" 2374fi 2375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2376fi 2377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2378fi 2379eval ac_res=\$$4 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2381$as_echo "$ac_res" >&6; } 2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2383 2384} # ac_fn_c_check_member 2385cat >config.log <<_ACEOF 2386This file contains any messages produced by compilers while 2387running configure, to aid debugging if configure makes a mistake. 2388 2389It was created by nbdkit $as_me 1.20.4, which was 2390generated by GNU Autoconf 2.69. Invocation command line was 2391 2392 $ $0 $@ 2393 2394_ACEOF 2395exec 5>>config.log 2396{ 2397cat <<_ASUNAME 2398## --------- ## 2399## Platform. ## 2400## --------- ## 2401 2402hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2403uname -m = `(uname -m) 2>/dev/null || echo unknown` 2404uname -r = `(uname -r) 2>/dev/null || echo unknown` 2405uname -s = `(uname -s) 2>/dev/null || echo unknown` 2406uname -v = `(uname -v) 2>/dev/null || echo unknown` 2407 2408/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2409/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2410 2411/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2412/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2413/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2414/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2415/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2416/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2417/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2418 2419_ASUNAME 2420 2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422for as_dir in $PATH 2423do 2424 IFS=$as_save_IFS 2425 test -z "$as_dir" && as_dir=. 2426 $as_echo "PATH: $as_dir" 2427 done 2428IFS=$as_save_IFS 2429 2430} >&5 2431 2432cat >&5 <<_ACEOF 2433 2434 2435## ----------- ## 2436## Core tests. ## 2437## ----------- ## 2438 2439_ACEOF 2440 2441 2442# Keep a trace of the command line. 2443# Strip out --no-create and --no-recursion so they do not pile up. 2444# Strip out --silent because we don't want to record it for future runs. 2445# Also quote any args containing shell meta-characters. 2446# Make two passes to allow for proper duplicate-argument suppression. 2447ac_configure_args= 2448ac_configure_args0= 2449ac_configure_args1= 2450ac_must_keep_next=false 2451for ac_pass in 1 2 2452do 2453 for ac_arg 2454 do 2455 case $ac_arg in 2456 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2458 | -silent | --silent | --silen | --sile | --sil) 2459 continue ;; 2460 *\'*) 2461 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2462 esac 2463 case $ac_pass in 2464 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2465 2) 2466 as_fn_append ac_configure_args1 " '$ac_arg'" 2467 if test $ac_must_keep_next = true; then 2468 ac_must_keep_next=false # Got value, back to normal. 2469 else 2470 case $ac_arg in 2471 *=* | --config-cache | -C | -disable-* | --disable-* \ 2472 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2473 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2474 | -with-* | --with-* | -without-* | --without-* | --x) 2475 case "$ac_configure_args0 " in 2476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2477 esac 2478 ;; 2479 -* ) ac_must_keep_next=true ;; 2480 esac 2481 fi 2482 as_fn_append ac_configure_args " '$ac_arg'" 2483 ;; 2484 esac 2485 done 2486done 2487{ ac_configure_args0=; unset ac_configure_args0;} 2488{ ac_configure_args1=; unset ac_configure_args1;} 2489 2490# When interrupted or exit'd, cleanup temporary files, and complete 2491# config.log. We remove comments because anyway the quotes in there 2492# would cause problems or look ugly. 2493# WARNING: Use '\'' to represent an apostrophe within the trap. 2494# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2495trap 'exit_status=$? 2496 # Save into config.log some information that might help in debugging. 2497 { 2498 echo 2499 2500 $as_echo "## ---------------- ## 2501## Cache variables. ## 2502## ---------------- ##" 2503 echo 2504 # The following way of writing the cache mishandles newlines in values, 2505( 2506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2507 eval ac_val=\$$ac_var 2508 case $ac_val in #( 2509 *${as_nl}*) 2510 case $ac_var in #( 2511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2512$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2513 esac 2514 case $ac_var in #( 2515 _ | IFS | as_nl) ;; #( 2516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2517 *) { eval $ac_var=; unset $ac_var;} ;; 2518 esac ;; 2519 esac 2520 done 2521 (set) 2>&1 | 2522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2523 *${as_nl}ac_space=\ *) 2524 sed -n \ 2525 "s/'\''/'\''\\\\'\'''\''/g; 2526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2527 ;; #( 2528 *) 2529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2530 ;; 2531 esac | 2532 sort 2533) 2534 echo 2535 2536 $as_echo "## ----------------- ## 2537## Output variables. ## 2538## ----------------- ##" 2539 echo 2540 for ac_var in $ac_subst_vars 2541 do 2542 eval ac_val=\$$ac_var 2543 case $ac_val in 2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2545 esac 2546 $as_echo "$ac_var='\''$ac_val'\''" 2547 done | sort 2548 echo 2549 2550 if test -n "$ac_subst_files"; then 2551 $as_echo "## ------------------- ## 2552## File substitutions. ## 2553## ------------------- ##" 2554 echo 2555 for ac_var in $ac_subst_files 2556 do 2557 eval ac_val=\$$ac_var 2558 case $ac_val in 2559 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2560 esac 2561 $as_echo "$ac_var='\''$ac_val'\''" 2562 done | sort 2563 echo 2564 fi 2565 2566 if test -s confdefs.h; then 2567 $as_echo "## ----------- ## 2568## confdefs.h. ## 2569## ----------- ##" 2570 echo 2571 cat confdefs.h 2572 echo 2573 fi 2574 test "$ac_signal" != 0 && 2575 $as_echo "$as_me: caught signal $ac_signal" 2576 $as_echo "$as_me: exit $exit_status" 2577 } >&5 2578 rm -f core *.core core.conftest.* && 2579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2580 exit $exit_status 2581' 0 2582for ac_signal in 1 2 13 15; do 2583 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2584done 2585ac_signal=0 2586 2587# confdefs.h avoids OS command line length limits that DEFS can exceed. 2588rm -f -r conftest* confdefs.h 2589 2590$as_echo "/* confdefs.h */" > confdefs.h 2591 2592# Predefined preprocessor variables. 2593 2594cat >>confdefs.h <<_ACEOF 2595#define PACKAGE_NAME "$PACKAGE_NAME" 2596_ACEOF 2597 2598cat >>confdefs.h <<_ACEOF 2599#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2600_ACEOF 2601 2602cat >>confdefs.h <<_ACEOF 2603#define PACKAGE_VERSION "$PACKAGE_VERSION" 2604_ACEOF 2605 2606cat >>confdefs.h <<_ACEOF 2607#define PACKAGE_STRING "$PACKAGE_STRING" 2608_ACEOF 2609 2610cat >>confdefs.h <<_ACEOF 2611#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2612_ACEOF 2613 2614cat >>confdefs.h <<_ACEOF 2615#define PACKAGE_URL "$PACKAGE_URL" 2616_ACEOF 2617 2618 2619# Let the site file select an alternate cache file if it wants to. 2620# Prefer an explicitly selected file to automatically selected ones. 2621ac_site_file1=NONE 2622ac_site_file2=NONE 2623if test -n "$CONFIG_SITE"; then 2624 # We do not want a PATH search for config.site. 2625 case $CONFIG_SITE in #(( 2626 -*) ac_site_file1=./$CONFIG_SITE;; 2627 */*) ac_site_file1=$CONFIG_SITE;; 2628 *) ac_site_file1=./$CONFIG_SITE;; 2629 esac 2630elif test "x$prefix" != xNONE; then 2631 ac_site_file1=$prefix/share/config.site 2632 ac_site_file2=$prefix/etc/config.site 2633else 2634 ac_site_file1=$ac_default_prefix/share/config.site 2635 ac_site_file2=$ac_default_prefix/etc/config.site 2636fi 2637for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2638do 2639 test "x$ac_site_file" = xNONE && continue 2640 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2642$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2643 sed 's/^/| /' "$ac_site_file" >&5 2644 . "$ac_site_file" \ 2645 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2647as_fn_error $? "failed to load site script $ac_site_file 2648See \`config.log' for more details" "$LINENO" 5; } 2649 fi 2650done 2651 2652if test -r "$cache_file"; then 2653 # Some versions of bash will fail to source /dev/null (special files 2654 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2655 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2657$as_echo "$as_me: loading cache $cache_file" >&6;} 2658 case $cache_file in 2659 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2660 *) . "./$cache_file";; 2661 esac 2662 fi 2663else 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2665$as_echo "$as_me: creating cache $cache_file" >&6;} 2666 >$cache_file 2667fi 2668 2669# Check that the precious variables saved in the cache have kept the same 2670# value. 2671ac_cache_corrupted=false 2672for ac_var in $ac_precious_vars; do 2673 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2674 eval ac_new_set=\$ac_env_${ac_var}_set 2675 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2676 eval ac_new_val=\$ac_env_${ac_var}_value 2677 case $ac_old_set,$ac_new_set in 2678 set,) 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2680$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2681 ac_cache_corrupted=: ;; 2682 ,set) 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2684$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2685 ac_cache_corrupted=: ;; 2686 ,);; 2687 *) 2688 if test "x$ac_old_val" != "x$ac_new_val"; then 2689 # differences in whitespace do not lead to failure. 2690 ac_old_val_w=`echo x $ac_old_val` 2691 ac_new_val_w=`echo x $ac_new_val` 2692 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2694$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2695 ac_cache_corrupted=: 2696 else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2698$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2699 eval $ac_var=\$ac_old_val 2700 fi 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2702$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2704$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2705 fi;; 2706 esac 2707 # Pass precious variables to config.status. 2708 if test "$ac_new_set" = set; then 2709 case $ac_new_val in 2710 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2711 *) ac_arg=$ac_var=$ac_new_val ;; 2712 esac 2713 case " $ac_configure_args " in 2714 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2715 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2716 esac 2717 fi 2718done 2719if $ac_cache_corrupted; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2723$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2724 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2725fi 2726## -------------------- ## 2727## Main body of script. ## 2728## -------------------- ## 2729 2730ac_ext=c 2731ac_cpp='$CPP $CPPFLAGS' 2732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2734ac_compiler_gnu=$ac_cv_c_compiler_gnu 2735 2736 2737 2738 2739 2740ac_aux_dir= 2741for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2742 if test -f "$ac_dir/install-sh"; then 2743 ac_aux_dir=$ac_dir 2744 ac_install_sh="$ac_aux_dir/install-sh -c" 2745 break 2746 elif test -f "$ac_dir/install.sh"; then 2747 ac_aux_dir=$ac_dir 2748 ac_install_sh="$ac_aux_dir/install.sh -c" 2749 break 2750 elif test -f "$ac_dir/shtool"; then 2751 ac_aux_dir=$ac_dir 2752 ac_install_sh="$ac_aux_dir/shtool install -c" 2753 break 2754 fi 2755done 2756if test -z "$ac_aux_dir"; then 2757 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2758fi 2759 2760# These three variables are undocumented and unsupported, 2761# and are intended to be withdrawn in a future Autoconf release. 2762# They can cause serious problems if a builder's source tree is in a directory 2763# whose full name contains unusual characters. 2764ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2765ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2766ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2767 2768 2769# Expand $ac_aux_dir to an absolute path. 2770am_aux_dir=`cd "$ac_aux_dir" && pwd` 2771 2772ac_ext=c 2773ac_cpp='$CPP $CPPFLAGS' 2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2776ac_compiler_gnu=$ac_cv_c_compiler_gnu 2777if test -n "$ac_tool_prefix"; then 2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2779set dummy ${ac_tool_prefix}gcc; ac_word=$2 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2781$as_echo_n "checking for $ac_word... " >&6; } 2782if ${ac_cv_prog_CC+:} false; then : 2783 $as_echo_n "(cached) " >&6 2784else 2785 if test -n "$CC"; then 2786 ac_cv_prog_CC="$CC" # Let the user override the test. 2787else 2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2789for as_dir in $PATH 2790do 2791 IFS=$as_save_IFS 2792 test -z "$as_dir" && as_dir=. 2793 for ac_exec_ext in '' $ac_executable_extensions; do 2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2795 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2797 break 2 2798 fi 2799done 2800 done 2801IFS=$as_save_IFS 2802 2803fi 2804fi 2805CC=$ac_cv_prog_CC 2806if test -n "$CC"; then 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2808$as_echo "$CC" >&6; } 2809else 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2811$as_echo "no" >&6; } 2812fi 2813 2814 2815fi 2816if test -z "$ac_cv_prog_CC"; then 2817 ac_ct_CC=$CC 2818 # Extract the first word of "gcc", so it can be a program name with args. 2819set dummy gcc; ac_word=$2 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2821$as_echo_n "checking for $ac_word... " >&6; } 2822if ${ac_cv_prog_ac_ct_CC+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824else 2825 if test -n "$ac_ct_CC"; then 2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2827else 2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829for as_dir in $PATH 2830do 2831 IFS=$as_save_IFS 2832 test -z "$as_dir" && as_dir=. 2833 for ac_exec_ext in '' $ac_executable_extensions; do 2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2835 ac_cv_prog_ac_ct_CC="gcc" 2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2837 break 2 2838 fi 2839done 2840 done 2841IFS=$as_save_IFS 2842 2843fi 2844fi 2845ac_ct_CC=$ac_cv_prog_ac_ct_CC 2846if test -n "$ac_ct_CC"; then 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2848$as_echo "$ac_ct_CC" >&6; } 2849else 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2851$as_echo "no" >&6; } 2852fi 2853 2854 if test "x$ac_ct_CC" = x; then 2855 CC="" 2856 else 2857 case $cross_compiling:$ac_tool_warned in 2858yes:) 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2861ac_tool_warned=yes ;; 2862esac 2863 CC=$ac_ct_CC 2864 fi 2865else 2866 CC="$ac_cv_prog_CC" 2867fi 2868 2869if test -z "$CC"; then 2870 if test -n "$ac_tool_prefix"; then 2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2872set dummy ${ac_tool_prefix}cc; ac_word=$2 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if ${ac_cv_prog_CC+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$CC"; then 2879 ac_cv_prog_CC="$CC" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2888 ac_cv_prog_CC="${ac_tool_prefix}cc" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898CC=$ac_cv_prog_CC 2899if test -n "$CC"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2901$as_echo "$CC" >&6; } 2902else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 2908 fi 2909fi 2910if test -z "$CC"; then 2911 # Extract the first word of "cc", so it can be a program name with args. 2912set dummy cc; ac_word=$2 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914$as_echo_n "checking for $ac_word... " >&6; } 2915if ${ac_cv_prog_CC+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917else 2918 if test -n "$CC"; then 2919 ac_cv_prog_CC="$CC" # Let the user override the test. 2920else 2921 ac_prog_rejected=no 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 test -z "$as_dir" && as_dir=. 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2930 ac_prog_rejected=yes 2931 continue 2932 fi 2933 ac_cv_prog_CC="cc" 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941if test $ac_prog_rejected = yes; then 2942 # We found a bogon in the path, so make sure we never use it. 2943 set dummy $ac_cv_prog_CC 2944 shift 2945 if test $# != 0; then 2946 # We chose a different compiler from the bogus one. 2947 # However, it has the same basename, so the bogon will be chosen 2948 # first if we set CC to just the basename; use the full file name. 2949 shift 2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2951 fi 2952fi 2953fi 2954fi 2955CC=$ac_cv_prog_CC 2956if test -n "$CC"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2958$as_echo "$CC" >&6; } 2959else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961$as_echo "no" >&6; } 2962fi 2963 2964 2965fi 2966if test -z "$CC"; then 2967 if test -n "$ac_tool_prefix"; then 2968 for ac_prog in cl.exe 2969 do 2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2971set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2973$as_echo_n "checking for $ac_word... " >&6; } 2974if ${ac_cv_prog_CC+:} false; then : 2975 $as_echo_n "(cached) " >&6 2976else 2977 if test -n "$CC"; then 2978 ac_cv_prog_CC="$CC" # Let the user override the test. 2979else 2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2981for as_dir in $PATH 2982do 2983 IFS=$as_save_IFS 2984 test -z "$as_dir" && as_dir=. 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2989 break 2 2990 fi 2991done 2992 done 2993IFS=$as_save_IFS 2994 2995fi 2996fi 2997CC=$ac_cv_prog_CC 2998if test -n "$CC"; then 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3000$as_echo "$CC" >&6; } 3001else 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3003$as_echo "no" >&6; } 3004fi 3005 3006 3007 test -n "$CC" && break 3008 done 3009fi 3010if test -z "$CC"; then 3011 ac_ct_CC=$CC 3012 for ac_prog in cl.exe 3013do 3014 # Extract the first word of "$ac_prog", so it can be a program name with args. 3015set dummy $ac_prog; ac_word=$2 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017$as_echo_n "checking for $ac_word... " >&6; } 3018if ${ac_cv_prog_ac_ct_CC+:} false; then : 3019 $as_echo_n "(cached) " >&6 3020else 3021 if test -n "$ac_ct_CC"; then 3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3023else 3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025for as_dir in $PATH 3026do 3027 IFS=$as_save_IFS 3028 test -z "$as_dir" && as_dir=. 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3031 ac_cv_prog_ac_ct_CC="$ac_prog" 3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035done 3036 done 3037IFS=$as_save_IFS 3038 3039fi 3040fi 3041ac_ct_CC=$ac_cv_prog_ac_ct_CC 3042if test -n "$ac_ct_CC"; then 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3044$as_echo "$ac_ct_CC" >&6; } 3045else 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047$as_echo "no" >&6; } 3048fi 3049 3050 3051 test -n "$ac_ct_CC" && break 3052done 3053 3054 if test "x$ac_ct_CC" = x; then 3055 CC="" 3056 else 3057 case $cross_compiling:$ac_tool_warned in 3058yes:) 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3061ac_tool_warned=yes ;; 3062esac 3063 CC=$ac_ct_CC 3064 fi 3065fi 3066 3067fi 3068 3069 3070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3072as_fn_error $? "no acceptable C compiler found in \$PATH 3073See \`config.log' for more details" "$LINENO" 5; } 3074 3075# Provide some information about the compiler. 3076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3077set X $ac_compile 3078ac_compiler=$2 3079for ac_option in --version -v -V -qversion; do 3080 { { ac_try="$ac_compiler $ac_option >&5" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086$as_echo "$ac_try_echo"; } >&5 3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3088 ac_status=$? 3089 if test -s conftest.err; then 3090 sed '10a\ 3091... rest of stderr output deleted ... 3092 10q' conftest.err >conftest.er1 3093 cat conftest.er1 >&5 3094 fi 3095 rm -f conftest.er1 conftest.err 3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3097 test $ac_status = 0; } 3098done 3099 3100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101/* end confdefs.h. */ 3102 3103int 3104main () 3105{ 3106 3107 ; 3108 return 0; 3109} 3110_ACEOF 3111ac_clean_files_save=$ac_clean_files 3112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3113# Try to create an executable without -o first, disregard a.out. 3114# It will help us diagnose broken compilers, and finding out an intuition 3115# of exeext. 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3117$as_echo_n "checking whether the C compiler works... " >&6; } 3118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3119 3120# The possible output files: 3121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3122 3123ac_rmfiles= 3124for ac_file in $ac_files 3125do 3126 case $ac_file in 3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3129 esac 3130done 3131rm -f $ac_rmfiles 3132 3133if { { ac_try="$ac_link_default" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3139$as_echo "$ac_try_echo"; } >&5 3140 (eval "$ac_link_default") 2>&5 3141 ac_status=$? 3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3143 test $ac_status = 0; }; then : 3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3146# in a Makefile. We should not override ac_cv_exeext if it was cached, 3147# so that the user can short-circuit this test for compilers unknown to 3148# Autoconf. 3149for ac_file in $ac_files '' 3150do 3151 test -f "$ac_file" || continue 3152 case $ac_file in 3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3154 ;; 3155 [ab].out ) 3156 # We found the default executable, but exeext='' is most 3157 # certainly right. 3158 break;; 3159 *.* ) 3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3161 then :; else 3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3163 fi 3164 # We set ac_cv_exeext here because the later test for it is not 3165 # safe: cross compilers may not add the suffix if given an `-o' 3166 # argument, so we may need to know it at that point already. 3167 # Even if this section looks crufty: it has the advantage of 3168 # actually working. 3169 break;; 3170 * ) 3171 break;; 3172 esac 3173done 3174test "$ac_cv_exeext" = no && ac_cv_exeext= 3175 3176else 3177 ac_file='' 3178fi 3179if test -z "$ac_file"; then : 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3181$as_echo "no" >&6; } 3182$as_echo "$as_me: failed program was:" >&5 3183sed 's/^/| /' conftest.$ac_ext >&5 3184 3185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3187as_fn_error 77 "C compiler cannot create executables 3188See \`config.log' for more details" "$LINENO" 5; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3191$as_echo "yes" >&6; } 3192fi 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3194$as_echo_n "checking for C compiler default output file name... " >&6; } 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3196$as_echo "$ac_file" >&6; } 3197ac_exeext=$ac_cv_exeext 3198 3199rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3200ac_clean_files=$ac_clean_files_save 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3202$as_echo_n "checking for suffix of executables... " >&6; } 3203if { { ac_try="$ac_link" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209$as_echo "$ac_try_echo"; } >&5 3210 (eval "$ac_link") 2>&5 3211 ac_status=$? 3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3213 test $ac_status = 0; }; then : 3214 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3215# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3216# work properly (i.e., refer to `conftest.exe'), while it won't with 3217# `rm'. 3218for ac_file in conftest.exe conftest conftest.*; do 3219 test -f "$ac_file" || continue 3220 case $ac_file in 3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3223 break;; 3224 * ) break;; 3225 esac 3226done 3227else 3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3230as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3231See \`config.log' for more details" "$LINENO" 5; } 3232fi 3233rm -f conftest conftest$ac_cv_exeext 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3235$as_echo "$ac_cv_exeext" >&6; } 3236 3237rm -f conftest.$ac_ext 3238EXEEXT=$ac_cv_exeext 3239ac_exeext=$EXEEXT 3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3241/* end confdefs.h. */ 3242#include <stdio.h> 3243int 3244main () 3245{ 3246FILE *f = fopen ("conftest.out", "w"); 3247 return ferror (f) || fclose (f) != 0; 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253ac_clean_files="$ac_clean_files conftest.out" 3254# Check that the compiler produces executables we can run. If not, either 3255# the compiler is broken, or we cross compile. 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3257$as_echo_n "checking whether we are cross compiling... " >&6; } 3258if test "$cross_compiling" != yes; then 3259 { { ac_try="$ac_link" 3260case "(($ac_try" in 3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3262 *) ac_try_echo=$ac_try;; 3263esac 3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3265$as_echo "$ac_try_echo"; } >&5 3266 (eval "$ac_link") 2>&5 3267 ac_status=$? 3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3269 test $ac_status = 0; } 3270 if { ac_try='./conftest$ac_cv_exeext' 3271 { { case "(($ac_try" in 3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273 *) ac_try_echo=$ac_try;; 3274esac 3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3276$as_echo "$ac_try_echo"; } >&5 3277 (eval "$ac_try") 2>&5 3278 ac_status=$? 3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3280 test $ac_status = 0; }; }; then 3281 cross_compiling=no 3282 else 3283 if test "$cross_compiling" = maybe; then 3284 cross_compiling=yes 3285 else 3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3288as_fn_error $? "cannot run C compiled programs. 3289If you meant to cross compile, use \`--host'. 3290See \`config.log' for more details" "$LINENO" 5; } 3291 fi 3292 fi 3293fi 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3295$as_echo "$cross_compiling" >&6; } 3296 3297rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3298ac_clean_files=$ac_clean_files_save 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3300$as_echo_n "checking for suffix of object files... " >&6; } 3301if ${ac_cv_objext+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305/* end confdefs.h. */ 3306 3307int 3308main () 3309{ 3310 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315rm -f conftest.o conftest.obj 3316if { { ac_try="$ac_compile" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3322$as_echo "$ac_try_echo"; } >&5 3323 (eval "$ac_compile") 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; }; then : 3327 for ac_file in conftest.o conftest.obj conftest.*; do 3328 test -f "$ac_file" || continue; 3329 case $ac_file in 3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3332 break;; 3333 esac 3334done 3335else 3336 $as_echo "$as_me: failed program was:" >&5 3337sed 's/^/| /' conftest.$ac_ext >&5 3338 3339{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341as_fn_error $? "cannot compute suffix of object files: cannot compile 3342See \`config.log' for more details" "$LINENO" 5; } 3343fi 3344rm -f conftest.$ac_cv_objext conftest.$ac_ext 3345fi 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3347$as_echo "$ac_cv_objext" >&6; } 3348OBJEXT=$ac_cv_objext 3349ac_objext=$OBJEXT 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3351$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3352if ${ac_cv_c_compiler_gnu+:} false; then : 3353 $as_echo_n "(cached) " >&6 3354else 3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3356/* end confdefs.h. */ 3357 3358int 3359main () 3360{ 3361#ifndef __GNUC__ 3362 choke me 3363#endif 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369if ac_fn_c_try_compile "$LINENO"; then : 3370 ac_compiler_gnu=yes 3371else 3372 ac_compiler_gnu=no 3373fi 3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3375ac_cv_c_compiler_gnu=$ac_compiler_gnu 3376 3377fi 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3379$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3380if test $ac_compiler_gnu = yes; then 3381 GCC=yes 3382else 3383 GCC= 3384fi 3385ac_test_CFLAGS=${CFLAGS+set} 3386ac_save_CFLAGS=$CFLAGS 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3388$as_echo_n "checking whether $CC accepts -g... " >&6; } 3389if ${ac_cv_prog_cc_g+:} false; then : 3390 $as_echo_n "(cached) " >&6 3391else 3392 ac_save_c_werror_flag=$ac_c_werror_flag 3393 ac_c_werror_flag=yes 3394 ac_cv_prog_cc_g=no 3395 CFLAGS="-g" 3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397/* end confdefs.h. */ 3398 3399int 3400main () 3401{ 3402 3403 ; 3404 return 0; 3405} 3406_ACEOF 3407if ac_fn_c_try_compile "$LINENO"; then : 3408 ac_cv_prog_cc_g=yes 3409else 3410 CFLAGS="" 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412/* end confdefs.h. */ 3413 3414int 3415main () 3416{ 3417 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422if ac_fn_c_try_compile "$LINENO"; then : 3423 3424else 3425 ac_c_werror_flag=$ac_save_c_werror_flag 3426 CFLAGS="-g" 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428/* end confdefs.h. */ 3429 3430int 3431main () 3432{ 3433 3434 ; 3435 return 0; 3436} 3437_ACEOF 3438if ac_fn_c_try_compile "$LINENO"; then : 3439 ac_cv_prog_cc_g=yes 3440fi 3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3442fi 3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3444fi 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3446 ac_c_werror_flag=$ac_save_c_werror_flag 3447fi 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3449$as_echo "$ac_cv_prog_cc_g" >&6; } 3450if test "$ac_test_CFLAGS" = set; then 3451 CFLAGS=$ac_save_CFLAGS 3452elif test $ac_cv_prog_cc_g = yes; then 3453 if test "$GCC" = yes; then 3454 CFLAGS="-g -O2" 3455 else 3456 CFLAGS="-g" 3457 fi 3458else 3459 if test "$GCC" = yes; then 3460 CFLAGS="-O2" 3461 else 3462 CFLAGS= 3463 fi 3464fi 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3466$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3467if ${ac_cv_prog_cc_c89+:} false; then : 3468 $as_echo_n "(cached) " >&6 3469else 3470 ac_cv_prog_cc_c89=no 3471ac_save_CC=$CC 3472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3473/* end confdefs.h. */ 3474#include <stdarg.h> 3475#include <stdio.h> 3476struct stat; 3477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3478struct buf { int x; }; 3479FILE * (*rcsopen) (struct buf *, struct stat *, int); 3480static char *e (p, i) 3481 char **p; 3482 int i; 3483{ 3484 return p[i]; 3485} 3486static char *f (char * (*g) (char **, int), char **p, ...) 3487{ 3488 char *s; 3489 va_list v; 3490 va_start (v,p); 3491 s = g (p, va_arg (v,int)); 3492 va_end (v); 3493 return s; 3494} 3495 3496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3497 function prototypes and stuff, but not '\xHH' hex character constants. 3498 These don't provoke an error unfortunately, instead are silently treated 3499 as 'x'. The following induces an error, until -std is added to get 3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3501 array size at least. It's necessary to write '\x00'==0 to get something 3502 that's true only with -std. */ 3503int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3504 3505/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3506 inside strings and character constants. */ 3507#define FOO(x) 'x' 3508int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3509 3510int test (int i, double x); 3511struct s1 {int (*f) (int a);}; 3512struct s2 {int (*f) (double a);}; 3513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3514int argc; 3515char **argv; 3516int 3517main () 3518{ 3519return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3520 ; 3521 return 0; 3522} 3523_ACEOF 3524for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3526do 3527 CC="$ac_save_CC $ac_arg" 3528 if ac_fn_c_try_compile "$LINENO"; then : 3529 ac_cv_prog_cc_c89=$ac_arg 3530fi 3531rm -f core conftest.err conftest.$ac_objext 3532 test "x$ac_cv_prog_cc_c89" != "xno" && break 3533done 3534rm -f conftest.$ac_ext 3535CC=$ac_save_CC 3536 3537fi 3538# AC_CACHE_VAL 3539case "x$ac_cv_prog_cc_c89" in 3540 x) 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3542$as_echo "none needed" >&6; } ;; 3543 xno) 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3545$as_echo "unsupported" >&6; } ;; 3546 *) 3547 CC="$CC $ac_cv_prog_cc_c89" 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3549$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3550esac 3551if test "x$ac_cv_prog_cc_c89" != xno; then : 3552 3553fi 3554 3555ac_ext=c 3556ac_cpp='$CPP $CPPFLAGS' 3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3559ac_compiler_gnu=$ac_cv_c_compiler_gnu 3560 3561ac_ext=c 3562ac_cpp='$CPP $CPPFLAGS' 3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3567$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3568if ${am_cv_prog_cc_c_o+:} false; then : 3569 $as_echo_n "(cached) " >&6 3570else 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573 3574int 3575main () 3576{ 3577 3578 ; 3579 return 0; 3580} 3581_ACEOF 3582 # Make sure it works both with $CC and with simple cc. 3583 # Following AC_PROG_CC_C_O, we do the test twice because some 3584 # compilers refuse to overwrite an existing .o file with -o, 3585 # though they will create one. 3586 am_cv_prog_cc_c_o=yes 3587 for am_i in 1 2; do 3588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3590 ac_status=$? 3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3592 (exit $ac_status); } \ 3593 && test -f conftest2.$ac_objext; then 3594 : OK 3595 else 3596 am_cv_prog_cc_c_o=no 3597 break 3598 fi 3599 done 3600 rm -f core conftest* 3601 unset am_i 3602fi 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3604$as_echo "$am_cv_prog_cc_c_o" >&6; } 3605if test "$am_cv_prog_cc_c_o" != yes; then 3606 # Losing compiler, so override with the script. 3607 # FIXME: It is wrong to rewrite CC. 3608 # But if we don't then we get into trouble of one sort or another. 3609 # A longer-term fix would be to have automake use am__CC in this case, 3610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3611 CC="$am_aux_dir/compile $CC" 3612fi 3613ac_ext=c 3614ac_cpp='$CPP $CPPFLAGS' 3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3617ac_compiler_gnu=$ac_cv_c_compiler_gnu 3618 3619 3620 3621ac_ext=c 3622ac_cpp='$CPP $CPPFLAGS' 3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3625ac_compiler_gnu=$ac_cv_c_compiler_gnu 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3627$as_echo_n "checking how to run the C preprocessor... " >&6; } 3628# On Suns, sometimes $CPP names a directory. 3629if test -n "$CPP" && test -d "$CPP"; then 3630 CPP= 3631fi 3632if test -z "$CPP"; then 3633 if ${ac_cv_prog_CPP+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 # Double quotes because CPP needs to be expanded 3637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3638 do 3639 ac_preproc_ok=false 3640for ac_c_preproc_warn_flag in '' yes 3641do 3642 # Use a header file that comes with gcc, so configuring glibc 3643 # with a fresh cross-compiler works. 3644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3645 # <limits.h> exists even on freestanding compilers. 3646 # On the NeXT, cc -E runs the code through the compiler's parser, 3647 # not just through cpp. "Syntax error" is here to catch this case. 3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3649/* end confdefs.h. */ 3650#ifdef __STDC__ 3651# include <limits.h> 3652#else 3653# include <assert.h> 3654#endif 3655 Syntax error 3656_ACEOF 3657if ac_fn_c_try_cpp "$LINENO"; then : 3658 3659else 3660 # Broken: fails on valid input. 3661continue 3662fi 3663rm -f conftest.err conftest.i conftest.$ac_ext 3664 3665 # OK, works on sane cases. Now check whether nonexistent headers 3666 # can be detected and how. 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669#include <ac_nonexistent.h> 3670_ACEOF 3671if ac_fn_c_try_cpp "$LINENO"; then : 3672 # Broken: success on invalid input. 3673continue 3674else 3675 # Passes both tests. 3676ac_preproc_ok=: 3677break 3678fi 3679rm -f conftest.err conftest.i conftest.$ac_ext 3680 3681done 3682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3683rm -f conftest.i conftest.err conftest.$ac_ext 3684if $ac_preproc_ok; then : 3685 break 3686fi 3687 3688 done 3689 ac_cv_prog_CPP=$CPP 3690 3691fi 3692 CPP=$ac_cv_prog_CPP 3693else 3694 ac_cv_prog_CPP=$CPP 3695fi 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3697$as_echo "$CPP" >&6; } 3698ac_preproc_ok=false 3699for ac_c_preproc_warn_flag in '' yes 3700do 3701 # Use a header file that comes with gcc, so configuring glibc 3702 # with a fresh cross-compiler works. 3703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3704 # <limits.h> exists even on freestanding compilers. 3705 # On the NeXT, cc -E runs the code through the compiler's parser, 3706 # not just through cpp. "Syntax error" is here to catch this case. 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709#ifdef __STDC__ 3710# include <limits.h> 3711#else 3712# include <assert.h> 3713#endif 3714 Syntax error 3715_ACEOF 3716if ac_fn_c_try_cpp "$LINENO"; then : 3717 3718else 3719 # Broken: fails on valid input. 3720continue 3721fi 3722rm -f conftest.err conftest.i conftest.$ac_ext 3723 3724 # OK, works on sane cases. Now check whether nonexistent headers 3725 # can be detected and how. 3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727/* end confdefs.h. */ 3728#include <ac_nonexistent.h> 3729_ACEOF 3730if ac_fn_c_try_cpp "$LINENO"; then : 3731 # Broken: success on invalid input. 3732continue 3733else 3734 # Passes both tests. 3735ac_preproc_ok=: 3736break 3737fi 3738rm -f conftest.err conftest.i conftest.$ac_ext 3739 3740done 3741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3742rm -f conftest.i conftest.err conftest.$ac_ext 3743if $ac_preproc_ok; then : 3744 3745else 3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3748as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3749See \`config.log' for more details" "$LINENO" 5; } 3750fi 3751 3752ac_ext=c 3753ac_cpp='$CPP $CPPFLAGS' 3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3756ac_compiler_gnu=$ac_cv_c_compiler_gnu 3757 3758 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3760$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3761if ${ac_cv_path_GREP+:} false; then : 3762 $as_echo_n "(cached) " >&6 3763else 3764 if test -z "$GREP"; then 3765 ac_path_GREP_found=false 3766 # Loop through the user's path and test for each of PROGNAME-LIST 3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3768for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3769do 3770 IFS=$as_save_IFS 3771 test -z "$as_dir" && as_dir=. 3772 for ac_prog in grep ggrep; do 3773 for ac_exec_ext in '' $ac_executable_extensions; do 3774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3775 as_fn_executable_p "$ac_path_GREP" || continue 3776# Check for GNU ac_path_GREP and select it if it is found. 3777 # Check for GNU $ac_path_GREP 3778case `"$ac_path_GREP" --version 2>&1` in 3779*GNU*) 3780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3781*) 3782 ac_count=0 3783 $as_echo_n 0123456789 >"conftest.in" 3784 while : 3785 do 3786 cat "conftest.in" "conftest.in" >"conftest.tmp" 3787 mv "conftest.tmp" "conftest.in" 3788 cp "conftest.in" "conftest.nl" 3789 $as_echo 'GREP' >> "conftest.nl" 3790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3792 as_fn_arith $ac_count + 1 && ac_count=$as_val 3793 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3794 # Best one so far, save it but keep looking for a better one 3795 ac_cv_path_GREP="$ac_path_GREP" 3796 ac_path_GREP_max=$ac_count 3797 fi 3798 # 10*(2^10) chars as input seems more than enough 3799 test $ac_count -gt 10 && break 3800 done 3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3802esac 3803 3804 $ac_path_GREP_found && break 3 3805 done 3806 done 3807 done 3808IFS=$as_save_IFS 3809 if test -z "$ac_cv_path_GREP"; then 3810 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3811 fi 3812else 3813 ac_cv_path_GREP=$GREP 3814fi 3815 3816fi 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3818$as_echo "$ac_cv_path_GREP" >&6; } 3819 GREP="$ac_cv_path_GREP" 3820 3821 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3823$as_echo_n "checking for egrep... " >&6; } 3824if ${ac_cv_path_EGREP+:} false; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3828 then ac_cv_path_EGREP="$GREP -E" 3829 else 3830 if test -z "$EGREP"; then 3831 ac_path_EGREP_found=false 3832 # Loop through the user's path and test for each of PROGNAME-LIST 3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3835do 3836 IFS=$as_save_IFS 3837 test -z "$as_dir" && as_dir=. 3838 for ac_prog in egrep; do 3839 for ac_exec_ext in '' $ac_executable_extensions; do 3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3841 as_fn_executable_p "$ac_path_EGREP" || continue 3842# Check for GNU ac_path_EGREP and select it if it is found. 3843 # Check for GNU $ac_path_EGREP 3844case `"$ac_path_EGREP" --version 2>&1` in 3845*GNU*) 3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3847*) 3848 ac_count=0 3849 $as_echo_n 0123456789 >"conftest.in" 3850 while : 3851 do 3852 cat "conftest.in" "conftest.in" >"conftest.tmp" 3853 mv "conftest.tmp" "conftest.in" 3854 cp "conftest.in" "conftest.nl" 3855 $as_echo 'EGREP' >> "conftest.nl" 3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3858 as_fn_arith $ac_count + 1 && ac_count=$as_val 3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3860 # Best one so far, save it but keep looking for a better one 3861 ac_cv_path_EGREP="$ac_path_EGREP" 3862 ac_path_EGREP_max=$ac_count 3863 fi 3864 # 10*(2^10) chars as input seems more than enough 3865 test $ac_count -gt 10 && break 3866 done 3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3868esac 3869 3870 $ac_path_EGREP_found && break 3 3871 done 3872 done 3873 done 3874IFS=$as_save_IFS 3875 if test -z "$ac_cv_path_EGREP"; then 3876 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3877 fi 3878else 3879 ac_cv_path_EGREP=$EGREP 3880fi 3881 3882 fi 3883fi 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3885$as_echo "$ac_cv_path_EGREP" >&6; } 3886 EGREP="$ac_cv_path_EGREP" 3887 3888 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3890$as_echo_n "checking for ANSI C header files... " >&6; } 3891if ${ac_cv_header_stdc+:} false; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895/* end confdefs.h. */ 3896#include <stdlib.h> 3897#include <stdarg.h> 3898#include <string.h> 3899#include <float.h> 3900 3901int 3902main () 3903{ 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909if ac_fn_c_try_compile "$LINENO"; then : 3910 ac_cv_header_stdc=yes 3911else 3912 ac_cv_header_stdc=no 3913fi 3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3915 3916if test $ac_cv_header_stdc = yes; then 3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3919/* end confdefs.h. */ 3920#include <string.h> 3921 3922_ACEOF 3923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3924 $EGREP "memchr" >/dev/null 2>&1; then : 3925 3926else 3927 ac_cv_header_stdc=no 3928fi 3929rm -f conftest* 3930 3931fi 3932 3933if test $ac_cv_header_stdc = yes; then 3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937#include <stdlib.h> 3938 3939_ACEOF 3940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3941 $EGREP "free" >/dev/null 2>&1; then : 3942 3943else 3944 ac_cv_header_stdc=no 3945fi 3946rm -f conftest* 3947 3948fi 3949 3950if test $ac_cv_header_stdc = yes; then 3951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3952 if test "$cross_compiling" = yes; then : 3953 : 3954else 3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956/* end confdefs.h. */ 3957#include <ctype.h> 3958#include <stdlib.h> 3959#if ((' ' & 0x0FF) == 0x020) 3960# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3961# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3962#else 3963# define ISLOWER(c) \ 3964 (('a' <= (c) && (c) <= 'i') \ 3965 || ('j' <= (c) && (c) <= 'r') \ 3966 || ('s' <= (c) && (c) <= 'z')) 3967# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3968#endif 3969 3970#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3971int 3972main () 3973{ 3974 int i; 3975 for (i = 0; i < 256; i++) 3976 if (XOR (islower (i), ISLOWER (i)) 3977 || toupper (i) != TOUPPER (i)) 3978 return 2; 3979 return 0; 3980} 3981_ACEOF 3982if ac_fn_c_try_run "$LINENO"; then : 3983 3984else 3985 ac_cv_header_stdc=no 3986fi 3987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3988 conftest.$ac_objext conftest.beam conftest.$ac_ext 3989fi 3990 3991fi 3992fi 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3994$as_echo "$ac_cv_header_stdc" >&6; } 3995if test $ac_cv_header_stdc = yes; then 3996 3997$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3998 3999fi 4000 4001# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4003 inttypes.h stdint.h unistd.h 4004do : 4005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4006ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4007" 4008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4009 cat >>confdefs.h <<_ACEOF 4010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4011_ACEOF 4012 4013fi 4014 4015done 4016 4017 4018 4019 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4020if test "x$ac_cv_header_minix_config_h" = xyes; then : 4021 MINIX=yes 4022else 4023 MINIX= 4024fi 4025 4026 4027 if test "$MINIX" = yes; then 4028 4029$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4030 4031 4032$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4033 4034 4035$as_echo "#define _MINIX 1" >>confdefs.h 4036 4037 fi 4038 4039 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4041$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4042if ${ac_cv_safe_to_define___extensions__+:} false; then : 4043 $as_echo_n "(cached) " >&6 4044else 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047 4048# define __EXTENSIONS__ 1 4049 $ac_includes_default 4050int 4051main () 4052{ 4053 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058if ac_fn_c_try_compile "$LINENO"; then : 4059 ac_cv_safe_to_define___extensions__=yes 4060else 4061 ac_cv_safe_to_define___extensions__=no 4062fi 4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4064fi 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4066$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4067 test $ac_cv_safe_to_define___extensions__ = yes && 4068 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4069 4070 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4071 4072 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4073 4074 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4075 4076 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4077 4078 4079 4080am__api_version='1.16' 4081 4082# Find a good install program. We prefer a C program (faster), 4083# so one script is as good as another. But avoid the broken or 4084# incompatible versions: 4085# SysV /etc/install, /usr/sbin/install 4086# SunOS /usr/etc/install 4087# IRIX /sbin/install 4088# AIX /bin/install 4089# AmigaOS /C/install, which installs bootblocks on floppy discs 4090# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4091# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4092# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4093# OS/2's system install, which has a completely different semantic 4094# ./install, which can be erroneously created by make from ./install.sh. 4095# Reject install programs that cannot install multiple files. 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4097$as_echo_n "checking for a BSD-compatible install... " >&6; } 4098if test -z "$INSTALL"; then 4099if ${ac_cv_path_install+:} false; then : 4100 $as_echo_n "(cached) " >&6 4101else 4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4103for as_dir in $PATH 4104do 4105 IFS=$as_save_IFS 4106 test -z "$as_dir" && as_dir=. 4107 # Account for people who put trailing slashes in PATH elements. 4108case $as_dir/ in #(( 4109 ./ | .// | /[cC]/* | \ 4110 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4111 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4112 /usr/ucb/* ) ;; 4113 *) 4114 # OSF1 and SCO ODT 3.0 have their own names for install. 4115 # Don't use installbsd from OSF since it installs stuff as root 4116 # by default. 4117 for ac_prog in ginstall scoinst install; do 4118 for ac_exec_ext in '' $ac_executable_extensions; do 4119 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4120 if test $ac_prog = install && 4121 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4122 # AIX install. It has an incompatible calling convention. 4123 : 4124 elif test $ac_prog = install && 4125 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4126 # program-specific install script used by HP pwplus--don't use. 4127 : 4128 else 4129 rm -rf conftest.one conftest.two conftest.dir 4130 echo one > conftest.one 4131 echo two > conftest.two 4132 mkdir conftest.dir 4133 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4134 test -s conftest.one && test -s conftest.two && 4135 test -s conftest.dir/conftest.one && 4136 test -s conftest.dir/conftest.two 4137 then 4138 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4139 break 3 4140 fi 4141 fi 4142 fi 4143 done 4144 done 4145 ;; 4146esac 4147 4148 done 4149IFS=$as_save_IFS 4150 4151rm -rf conftest.one conftest.two conftest.dir 4152 4153fi 4154 if test "${ac_cv_path_install+set}" = set; then 4155 INSTALL=$ac_cv_path_install 4156 else 4157 # As a last resort, use the slow shell script. Don't cache a 4158 # value for INSTALL within a source directory, because that will 4159 # break other packages using the cache if that directory is 4160 # removed, or if the value is a relative name. 4161 INSTALL=$ac_install_sh 4162 fi 4163fi 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4165$as_echo "$INSTALL" >&6; } 4166 4167# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4168# It thinks the first close brace ends the variable substitution. 4169test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4170 4171test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4172 4173test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4174 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4176$as_echo_n "checking whether build environment is sane... " >&6; } 4177# Reject unsafe characters in $srcdir or the absolute working directory 4178# name. Accept space and tab only in the latter. 4179am_lf=' 4180' 4181case `pwd` in 4182 *[\\\"\#\$\&\'\`$am_lf]*) 4183 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4184esac 4185case $srcdir in 4186 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4187 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4188esac 4189 4190# Do 'set' in a subshell so we don't clobber the current shell's 4191# arguments. Must try -L first in case configure is actually a 4192# symlink; some systems play weird games with the mod time of symlinks 4193# (eg FreeBSD returns the mod time of the symlink's containing 4194# directory). 4195if ( 4196 am_has_slept=no 4197 for am_try in 1 2; do 4198 echo "timestamp, slept: $am_has_slept" > conftest.file 4199 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4200 if test "$*" = "X"; then 4201 # -L didn't work. 4202 set X `ls -t "$srcdir/configure" conftest.file` 4203 fi 4204 if test "$*" != "X $srcdir/configure conftest.file" \ 4205 && test "$*" != "X conftest.file $srcdir/configure"; then 4206 4207 # If neither matched, then we have a broken ls. This can happen 4208 # if, for instance, CONFIG_SHELL is bash and it inherits a 4209 # broken ls alias from the environment. This has actually 4210 # happened. Such a system could not be considered "sane". 4211 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4212 alias in your environment" "$LINENO" 5 4213 fi 4214 if test "$2" = conftest.file || test $am_try -eq 2; then 4215 break 4216 fi 4217 # Just in case. 4218 sleep 1 4219 am_has_slept=yes 4220 done 4221 test "$2" = conftest.file 4222 ) 4223then 4224 # Ok. 4225 : 4226else 4227 as_fn_error $? "newly created file is older than distributed files! 4228Check your system clock" "$LINENO" 5 4229fi 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4231$as_echo "yes" >&6; } 4232# If we didn't sleep, we still need to ensure time stamps of config.status and 4233# generated files are strictly newer. 4234am_sleep_pid= 4235if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4236 ( sleep 1 ) & 4237 am_sleep_pid=$! 4238fi 4239 4240rm -f conftest.file 4241 4242test "$program_prefix" != NONE && 4243 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4244# Use a double $ so make ignores it. 4245test "$program_suffix" != NONE && 4246 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4247# Double any \ or $. 4248# By default was `s,x,x', remove it if useless. 4249ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4250program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4251 4252if test x"${MISSING+set}" != xset; then 4253 case $am_aux_dir in 4254 *\ * | *\ *) 4255 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4256 *) 4257 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4258 esac 4259fi 4260# Use eval to expand $SHELL 4261if eval "$MISSING --is-lightweight"; then 4262 am_missing_run="$MISSING " 4263else 4264 am_missing_run= 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4266$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4267fi 4268 4269if test x"${install_sh+set}" != xset; then 4270 case $am_aux_dir in 4271 *\ * | *\ *) 4272 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4273 *) 4274 install_sh="\${SHELL} $am_aux_dir/install-sh" 4275 esac 4276fi 4277 4278# Installed binaries are usually stripped using 'strip' when the user 4279# run "make install-strip". However 'strip' might not be the right 4280# tool to use in cross-compilation environments, therefore Automake 4281# will honor the 'STRIP' environment variable to overrule this program. 4282if test "$cross_compiling" != no; then 4283 if test -n "$ac_tool_prefix"; then 4284 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4285set dummy ${ac_tool_prefix}strip; ac_word=$2 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4287$as_echo_n "checking for $ac_word... " >&6; } 4288if ${ac_cv_prog_STRIP+:} false; then : 4289 $as_echo_n "(cached) " >&6 4290else 4291 if test -n "$STRIP"; then 4292 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4293else 4294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4295for as_dir in $PATH 4296do 4297 IFS=$as_save_IFS 4298 test -z "$as_dir" && as_dir=. 4299 for ac_exec_ext in '' $ac_executable_extensions; do 4300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4301 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4303 break 2 4304 fi 4305done 4306 done 4307IFS=$as_save_IFS 4308 4309fi 4310fi 4311STRIP=$ac_cv_prog_STRIP 4312if test -n "$STRIP"; then 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4314$as_echo "$STRIP" >&6; } 4315else 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4317$as_echo "no" >&6; } 4318fi 4319 4320 4321fi 4322if test -z "$ac_cv_prog_STRIP"; then 4323 ac_ct_STRIP=$STRIP 4324 # Extract the first word of "strip", so it can be a program name with args. 4325set dummy strip; ac_word=$2 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4327$as_echo_n "checking for $ac_word... " >&6; } 4328if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4329 $as_echo_n "(cached) " >&6 4330else 4331 if test -n "$ac_ct_STRIP"; then 4332 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4333else 4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4335for as_dir in $PATH 4336do 4337 IFS=$as_save_IFS 4338 test -z "$as_dir" && as_dir=. 4339 for ac_exec_ext in '' $ac_executable_extensions; do 4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4341 ac_cv_prog_ac_ct_STRIP="strip" 4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4343 break 2 4344 fi 4345done 4346 done 4347IFS=$as_save_IFS 4348 4349fi 4350fi 4351ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4352if test -n "$ac_ct_STRIP"; then 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4354$as_echo "$ac_ct_STRIP" >&6; } 4355else 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4357$as_echo "no" >&6; } 4358fi 4359 4360 if test "x$ac_ct_STRIP" = x; then 4361 STRIP=":" 4362 else 4363 case $cross_compiling:$ac_tool_warned in 4364yes:) 4365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4367ac_tool_warned=yes ;; 4368esac 4369 STRIP=$ac_ct_STRIP 4370 fi 4371else 4372 STRIP="$ac_cv_prog_STRIP" 4373fi 4374 4375fi 4376INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4377 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4379$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4380if test -z "$MKDIR_P"; then 4381 if ${ac_cv_path_mkdir+:} false; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4386do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_prog in mkdir gmkdir; do 4390 for ac_exec_ext in '' $ac_executable_extensions; do 4391 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4392 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4393 'mkdir (GNU coreutils) '* | \ 4394 'mkdir (coreutils) '* | \ 4395 'mkdir (fileutils) '4.1*) 4396 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4397 break 3;; 4398 esac 4399 done 4400 done 4401 done 4402IFS=$as_save_IFS 4403 4404fi 4405 4406 test -d ./--version && rmdir ./--version 4407 if test "${ac_cv_path_mkdir+set}" = set; then 4408 MKDIR_P="$ac_cv_path_mkdir -p" 4409 else 4410 # As a last resort, use the slow shell script. Don't cache a 4411 # value for MKDIR_P within a source directory, because that will 4412 # break other packages using the cache if that directory is 4413 # removed, or if the value is a relative name. 4414 MKDIR_P="$ac_install_sh -d" 4415 fi 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4418$as_echo "$MKDIR_P" >&6; } 4419 4420for ac_prog in gawk mawk nawk awk 4421do 4422 # Extract the first word of "$ac_prog", so it can be a program name with args. 4423set dummy $ac_prog; ac_word=$2 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4425$as_echo_n "checking for $ac_word... " >&6; } 4426if ${ac_cv_prog_AWK+:} false; then : 4427 $as_echo_n "(cached) " >&6 4428else 4429 if test -n "$AWK"; then 4430 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4431else 4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433for as_dir in $PATH 4434do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_exec_ext in '' $ac_executable_extensions; do 4438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4439 ac_cv_prog_AWK="$ac_prog" 4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4441 break 2 4442 fi 4443done 4444 done 4445IFS=$as_save_IFS 4446 4447fi 4448fi 4449AWK=$ac_cv_prog_AWK 4450if test -n "$AWK"; then 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4452$as_echo "$AWK" >&6; } 4453else 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4455$as_echo "no" >&6; } 4456fi 4457 4458 4459 test -n "$AWK" && break 4460done 4461 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4463$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4464set x ${MAKE-make} 4465ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4466if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4467 $as_echo_n "(cached) " >&6 4468else 4469 cat >conftest.make <<\_ACEOF 4470SHELL = /bin/sh 4471all: 4472 @echo '@@@%%%=$(MAKE)=@@@%%%' 4473_ACEOF 4474# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4475case `${MAKE-make} -f conftest.make 2>/dev/null` in 4476 *@@@%%%=?*=@@@%%%*) 4477 eval ac_cv_prog_make_${ac_make}_set=yes;; 4478 *) 4479 eval ac_cv_prog_make_${ac_make}_set=no;; 4480esac 4481rm -f conftest.make 4482fi 4483if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4485$as_echo "yes" >&6; } 4486 SET_MAKE= 4487else 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4489$as_echo "no" >&6; } 4490 SET_MAKE="MAKE=${MAKE-make}" 4491fi 4492 4493rm -rf .tst 2>/dev/null 4494mkdir .tst 2>/dev/null 4495if test -d .tst; then 4496 am__leading_dot=. 4497else 4498 am__leading_dot=_ 4499fi 4500rmdir .tst 2>/dev/null 4501 4502DEPDIR="${am__leading_dot}deps" 4503 4504ac_config_commands="$ac_config_commands depfiles" 4505 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4507$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4508cat > confinc.mk << 'END' 4509am__doit: 4510 @echo this is the am__doit target >confinc.out 4511.PHONY: am__doit 4512END 4513am__include="#" 4514am__quote= 4515# BSD make does it like this. 4516echo '.include "confinc.mk" # ignored' > confmf.BSD 4517# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4518echo 'include confinc.mk # ignored' > confmf.GNU 4519_am_result=no 4520for s in GNU BSD; do 4521 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4522 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4523 ac_status=$? 4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4525 (exit $ac_status); } 4526 case $?:`cat confinc.out 2>/dev/null` in #( 4527 '0:this is the am__doit target') : 4528 case $s in #( 4529 BSD) : 4530 am__include='.include' am__quote='"' ;; #( 4531 *) : 4532 am__include='include' am__quote='' ;; 4533esac ;; #( 4534 *) : 4535 ;; 4536esac 4537 if test "$am__include" != "#"; then 4538 _am_result="yes ($s style)" 4539 break 4540 fi 4541done 4542rm -f confinc.* confmf.* 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4544$as_echo "${_am_result}" >&6; } 4545 4546# Check whether --enable-dependency-tracking was given. 4547if test "${enable_dependency_tracking+set}" = set; then : 4548 enableval=$enable_dependency_tracking; 4549fi 4550 4551if test "x$enable_dependency_tracking" != xno; then 4552 am_depcomp="$ac_aux_dir/depcomp" 4553 AMDEPBACKSLASH='\' 4554 am__nodep='_no' 4555fi 4556 if test "x$enable_dependency_tracking" != xno; then 4557 AMDEP_TRUE= 4558 AMDEP_FALSE='#' 4559else 4560 AMDEP_TRUE='#' 4561 AMDEP_FALSE= 4562fi 4563 4564 4565# Check whether --enable-silent-rules was given. 4566if test "${enable_silent_rules+set}" = set; then : 4567 enableval=$enable_silent_rules; 4568fi 4569 4570case $enable_silent_rules in # ((( 4571 yes) AM_DEFAULT_VERBOSITY=0;; 4572 no) AM_DEFAULT_VERBOSITY=1;; 4573 *) AM_DEFAULT_VERBOSITY=1;; 4574esac 4575am_make=${MAKE-make} 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4577$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4578if ${am_cv_make_support_nested_variables+:} false; then : 4579 $as_echo_n "(cached) " >&6 4580else 4581 if $as_echo 'TRUE=$(BAR$(V)) 4582BAR0=false 4583BAR1=true 4584V=1 4585am__doit: 4586 @$(TRUE) 4587.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4588 am_cv_make_support_nested_variables=yes 4589else 4590 am_cv_make_support_nested_variables=no 4591fi 4592fi 4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4594$as_echo "$am_cv_make_support_nested_variables" >&6; } 4595if test $am_cv_make_support_nested_variables = yes; then 4596 AM_V='$(V)' 4597 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4598else 4599 AM_V=$AM_DEFAULT_VERBOSITY 4600 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4601fi 4602AM_BACKSLASH='\' 4603 4604if test "`cd $srcdir && pwd`" != "`pwd`"; then 4605 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4606 # is not polluted with repeated "-I." 4607 am__isrc=' -I$(srcdir)' 4608 # test to see if srcdir already configured 4609 if test -f $srcdir/config.status; then 4610 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4611 fi 4612fi 4613 4614# test whether we have cygpath 4615if test -z "$CYGPATH_W"; then 4616 if (cygpath --version) >/dev/null 2>/dev/null; then 4617 CYGPATH_W='cygpath -w' 4618 else 4619 CYGPATH_W=echo 4620 fi 4621fi 4622 4623 4624# Define the identity of the package. 4625 PACKAGE='nbdkit' 4626 VERSION='1.20.4' 4627 4628 4629cat >>confdefs.h <<_ACEOF 4630#define PACKAGE "$PACKAGE" 4631_ACEOF 4632 4633 4634cat >>confdefs.h <<_ACEOF 4635#define VERSION "$VERSION" 4636_ACEOF 4637 4638# Some tools Automake needs. 4639 4640ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4641 4642 4643AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4644 4645 4646AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4647 4648 4649AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4650 4651 4652MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4653 4654# For better backward compatibility. To be removed once Automake 1.9.x 4655# dies out for good. For more background, see: 4656# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4657# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4658mkdir_p='$(MKDIR_P)' 4659 4660# We need awk for the "check" target (and possibly the TAP driver). The 4661# system "awk" is bad on some platforms. 4662# Always define AMTAR for backward compatibility. Yes, it's still used 4663# in the wild :-( We should find a proper way to deprecate it ... 4664AMTAR='$${TAR-tar}' 4665 4666 4667# We'll loop over all known methods to create a tar archive until one works. 4668_am_tools='gnutar pax cpio none' 4669 4670am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4671 4672 4673 4674 4675 4676depcc="$CC" am_compiler_list= 4677 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4679$as_echo_n "checking dependency style of $depcc... " >&6; } 4680if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4681 $as_echo_n "(cached) " >&6 4682else 4683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4684 # We make a subdir and do the tests there. Otherwise we can end up 4685 # making bogus files that we don't know about and never remove. For 4686 # instance it was reported that on HP-UX the gcc test will end up 4687 # making a dummy file named 'D' -- because '-MD' means "put the output 4688 # in D". 4689 rm -rf conftest.dir 4690 mkdir conftest.dir 4691 # Copy depcomp to subdir because otherwise we won't find it if we're 4692 # using a relative directory. 4693 cp "$am_depcomp" conftest.dir 4694 cd conftest.dir 4695 # We will build objects and dependencies in a subdirectory because 4696 # it helps to detect inapplicable dependency modes. For instance 4697 # both Tru64's cc and ICC support -MD to output dependencies as a 4698 # side effect of compilation, but ICC will put the dependencies in 4699 # the current directory while Tru64 will put them in the object 4700 # directory. 4701 mkdir sub 4702 4703 am_cv_CC_dependencies_compiler_type=none 4704 if test "$am_compiler_list" = ""; then 4705 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4706 fi 4707 am__universal=false 4708 case " $depcc " in #( 4709 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4710 esac 4711 4712 for depmode in $am_compiler_list; do 4713 # Setup a source with many dependencies, because some compilers 4714 # like to wrap large dependency lists on column 80 (with \), and 4715 # we should not choose a depcomp mode which is confused by this. 4716 # 4717 # We need to recreate these files for each test, as the compiler may 4718 # overwrite some of them when testing with obscure command lines. 4719 # This happens at least with the AIX C compiler. 4720 : > sub/conftest.c 4721 for i in 1 2 3 4 5 6; do 4722 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4723 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4724 # Solaris 10 /bin/sh. 4725 echo '/* dummy */' > sub/conftst$i.h 4726 done 4727 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4728 4729 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4730 # mode. It turns out that the SunPro C++ compiler does not properly 4731 # handle '-M -o', and we need to detect this. Also, some Intel 4732 # versions had trouble with output in subdirs. 4733 am__obj=sub/conftest.${OBJEXT-o} 4734 am__minus_obj="-o $am__obj" 4735 case $depmode in 4736 gcc) 4737 # This depmode causes a compiler race in universal mode. 4738 test "$am__universal" = false || continue 4739 ;; 4740 nosideeffect) 4741 # After this tag, mechanisms are not by side-effect, so they'll 4742 # only be used when explicitly requested. 4743 if test "x$enable_dependency_tracking" = xyes; then 4744 continue 4745 else 4746 break 4747 fi 4748 ;; 4749 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4750 # This compiler won't grok '-c -o', but also, the minuso test has 4751 # not run yet. These depmodes are late enough in the game, and 4752 # so weak that their functioning should not be impacted. 4753 am__obj=conftest.${OBJEXT-o} 4754 am__minus_obj= 4755 ;; 4756 none) break ;; 4757 esac 4758 if depmode=$depmode \ 4759 source=sub/conftest.c object=$am__obj \ 4760 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4761 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4762 >/dev/null 2>conftest.err && 4763 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4765 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4767 # icc doesn't choke on unknown options, it will just issue warnings 4768 # or remarks (even with -Werror). So we grep stderr for any message 4769 # that says an option was ignored or not supported. 4770 # When given -MP, icc 7.0 and 7.1 complain thusly: 4771 # icc: Command line warning: ignoring option '-M'; no argument required 4772 # The diagnosis changed in icc 8.0: 4773 # icc: Command line remark: option '-MP' not supported 4774 if (grep 'ignoring option' conftest.err || 4775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4776 am_cv_CC_dependencies_compiler_type=$depmode 4777 break 4778 fi 4779 fi 4780 done 4781 4782 cd .. 4783 rm -rf conftest.dir 4784else 4785 am_cv_CC_dependencies_compiler_type=none 4786fi 4787 4788fi 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4790$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4791CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4792 4793 if 4794 test "x$enable_dependency_tracking" != xno \ 4795 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4796 am__fastdepCC_TRUE= 4797 am__fastdepCC_FALSE='#' 4798else 4799 am__fastdepCC_TRUE='#' 4800 am__fastdepCC_FALSE= 4801fi 4802 4803 4804 4805# POSIX will say in a future version that running "rm -f" with no argument 4806# is OK; and we want to be able to make that assumption in our Makefile 4807# recipes. So use an aggressive probe to check that the usage we want is 4808# actually supported "in the wild" to an acceptable degree. 4809# See automake bug#10828. 4810# To make any issue more visible, cause the running configure to be aborted 4811# by default if the 'rm' program in use doesn't match our expectations; the 4812# user can still override this though. 4813if rm -f && rm -fr && rm -rf; then : OK; else 4814 cat >&2 <<'END' 4815Oops! 4816 4817Your 'rm' program seems unable to run without file operands specified 4818on the command line, even when the '-f' option is present. This is contrary 4819to the behaviour of most rm programs out there, and not conforming with 4820the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4821 4822Please tell bug-automake@gnu.org about your system, including the value 4823of your $PATH and any error possibly output before this message. This 4824can help us improve future automake versions. 4825 4826END 4827 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4828 echo 'Configuration will proceed anyway, since you have set the' >&2 4829 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4830 echo >&2 4831 else 4832 cat >&2 <<'END' 4833Aborting the configuration process, to ensure you take notice of the issue. 4834 4835You can download and install GNU coreutils to get an 'rm' implementation 4836that behaves properly: <https://www.gnu.org/software/coreutils/>. 4837 4838If you want to complete the configuration process using your problematic 4839'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4840to "yes", and re-run configure. 4841 4842END 4843 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4844 fi 4845fi 4846 4847case `pwd` in 4848 *\ * | *\ *) 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4850$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4851esac 4852 4853 4854 4855macro_version='2.4.6' 4856macro_revision='2.4.6' 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870ltmain=$ac_aux_dir/ltmain.sh 4871 4872# Make sure we can run config.sub. 4873$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4874 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4875 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4877$as_echo_n "checking build system type... " >&6; } 4878if ${ac_cv_build+:} false; then : 4879 $as_echo_n "(cached) " >&6 4880else 4881 ac_build_alias=$build_alias 4882test "x$ac_build_alias" = x && 4883 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4884test "x$ac_build_alias" = x && 4885 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4886ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4888 4889fi 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4891$as_echo "$ac_cv_build" >&6; } 4892case $ac_cv_build in 4893*-*-*) ;; 4894*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4895esac 4896build=$ac_cv_build 4897ac_save_IFS=$IFS; IFS='-' 4898set x $ac_cv_build 4899shift 4900build_cpu=$1 4901build_vendor=$2 4902shift; shift 4903# Remember, the first character of IFS is used to create $*, 4904# except with old shells: 4905build_os=$* 4906IFS=$ac_save_IFS 4907case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4908 4909 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4911$as_echo_n "checking host system type... " >&6; } 4912if ${ac_cv_host+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 if test "x$host_alias" = x; then 4916 ac_cv_host=$ac_cv_build 4917else 4918 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4920fi 4921 4922fi 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4924$as_echo "$ac_cv_host" >&6; } 4925case $ac_cv_host in 4926*-*-*) ;; 4927*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4928esac 4929host=$ac_cv_host 4930ac_save_IFS=$IFS; IFS='-' 4931set x $ac_cv_host 4932shift 4933host_cpu=$1 4934host_vendor=$2 4935shift; shift 4936# Remember, the first character of IFS is used to create $*, 4937# except with old shells: 4938host_os=$* 4939IFS=$ac_save_IFS 4940case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4941 4942 4943# Backslashify metacharacters that are still active within 4944# double-quoted strings. 4945sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4946 4947# Same as above, but do not quote variable references. 4948double_quote_subst='s/\(["`\\]\)/\\\1/g' 4949 4950# Sed substitution to delay expansion of an escaped shell variable in a 4951# double_quote_subst'ed string. 4952delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4953 4954# Sed substitution to delay expansion of an escaped single quote. 4955delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4956 4957# Sed substitution to avoid accidental globbing in evaled expressions 4958no_glob_subst='s/\*/\\\*/g' 4959 4960ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4961ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4962ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4963 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4965$as_echo_n "checking how to print strings... " >&6; } 4966# Test print first, because it will be a builtin if present. 4967if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4968 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4969 ECHO='print -r --' 4970elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4971 ECHO='printf %s\n' 4972else 4973 # Use this function as a fallback that always works. 4974 func_fallback_echo () 4975 { 4976 eval 'cat <<_LTECHO_EOF 4977$1 4978_LTECHO_EOF' 4979 } 4980 ECHO='func_fallback_echo' 4981fi 4982 4983# func_echo_all arg... 4984# Invoke $ECHO with all args, space-separated. 4985func_echo_all () 4986{ 4987 $ECHO "" 4988} 4989 4990case $ECHO in 4991 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4992$as_echo "printf" >&6; } ;; 4993 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4994$as_echo "print -r" >&6; } ;; 4995 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4996$as_echo "cat" >&6; } ;; 4997esac 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5013$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5014if ${ac_cv_path_SED+:} false; then : 5015 $as_echo_n "(cached) " >&6 5016else 5017 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5018 for ac_i in 1 2 3 4 5 6 7; do 5019 ac_script="$ac_script$as_nl$ac_script" 5020 done 5021 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5022 { ac_script=; unset ac_script;} 5023 if test -z "$SED"; then 5024 ac_path_SED_found=false 5025 # Loop through the user's path and test for each of PROGNAME-LIST 5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5027for as_dir in $PATH 5028do 5029 IFS=$as_save_IFS 5030 test -z "$as_dir" && as_dir=. 5031 for ac_prog in sed gsed; do 5032 for ac_exec_ext in '' $ac_executable_extensions; do 5033 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5034 as_fn_executable_p "$ac_path_SED" || continue 5035# Check for GNU ac_path_SED and select it if it is found. 5036 # Check for GNU $ac_path_SED 5037case `"$ac_path_SED" --version 2>&1` in 5038*GNU*) 5039 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5040*) 5041 ac_count=0 5042 $as_echo_n 0123456789 >"conftest.in" 5043 while : 5044 do 5045 cat "conftest.in" "conftest.in" >"conftest.tmp" 5046 mv "conftest.tmp" "conftest.in" 5047 cp "conftest.in" "conftest.nl" 5048 $as_echo '' >> "conftest.nl" 5049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5051 as_fn_arith $ac_count + 1 && ac_count=$as_val 5052 if test $ac_count -gt ${ac_path_SED_max-0}; then 5053 # Best one so far, save it but keep looking for a better one 5054 ac_cv_path_SED="$ac_path_SED" 5055 ac_path_SED_max=$ac_count 5056 fi 5057 # 10*(2^10) chars as input seems more than enough 5058 test $ac_count -gt 10 && break 5059 done 5060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5061esac 5062 5063 $ac_path_SED_found && break 3 5064 done 5065 done 5066 done 5067IFS=$as_save_IFS 5068 if test -z "$ac_cv_path_SED"; then 5069 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5070 fi 5071else 5072 ac_cv_path_SED=$SED 5073fi 5074 5075fi 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5077$as_echo "$ac_cv_path_SED" >&6; } 5078 SED="$ac_cv_path_SED" 5079 rm -f conftest.sed 5080 5081test -z "$SED" && SED=sed 5082Xsed="$SED -e 1s/^X//" 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5095$as_echo_n "checking for fgrep... " >&6; } 5096if ${ac_cv_path_FGREP+:} false; then : 5097 $as_echo_n "(cached) " >&6 5098else 5099 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5100 then ac_cv_path_FGREP="$GREP -F" 5101 else 5102 if test -z "$FGREP"; then 5103 ac_path_FGREP_found=false 5104 # Loop through the user's path and test for each of PROGNAME-LIST 5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5106for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5107do 5108 IFS=$as_save_IFS 5109 test -z "$as_dir" && as_dir=. 5110 for ac_prog in fgrep; do 5111 for ac_exec_ext in '' $ac_executable_extensions; do 5112 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5113 as_fn_executable_p "$ac_path_FGREP" || continue 5114# Check for GNU ac_path_FGREP and select it if it is found. 5115 # Check for GNU $ac_path_FGREP 5116case `"$ac_path_FGREP" --version 2>&1` in 5117*GNU*) 5118 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5119*) 5120 ac_count=0 5121 $as_echo_n 0123456789 >"conftest.in" 5122 while : 5123 do 5124 cat "conftest.in" "conftest.in" >"conftest.tmp" 5125 mv "conftest.tmp" "conftest.in" 5126 cp "conftest.in" "conftest.nl" 5127 $as_echo 'FGREP' >> "conftest.nl" 5128 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5130 as_fn_arith $ac_count + 1 && ac_count=$as_val 5131 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5132 # Best one so far, save it but keep looking for a better one 5133 ac_cv_path_FGREP="$ac_path_FGREP" 5134 ac_path_FGREP_max=$ac_count 5135 fi 5136 # 10*(2^10) chars as input seems more than enough 5137 test $ac_count -gt 10 && break 5138 done 5139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5140esac 5141 5142 $ac_path_FGREP_found && break 3 5143 done 5144 done 5145 done 5146IFS=$as_save_IFS 5147 if test -z "$ac_cv_path_FGREP"; then 5148 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5149 fi 5150else 5151 ac_cv_path_FGREP=$FGREP 5152fi 5153 5154 fi 5155fi 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5157$as_echo "$ac_cv_path_FGREP" >&6; } 5158 FGREP="$ac_cv_path_FGREP" 5159 5160 5161test -z "$GREP" && GREP=grep 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181# Check whether --with-gnu-ld was given. 5182if test "${with_gnu_ld+set}" = set; then : 5183 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5184else 5185 with_gnu_ld=no 5186fi 5187 5188ac_prog=ld 5189if test yes = "$GCC"; then 5190 # Check if gcc -print-prog-name=ld gives a path. 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5192$as_echo_n "checking for ld used by $CC... " >&6; } 5193 case $host in 5194 *-*-mingw*) 5195 # gcc leaves a trailing carriage return, which upsets mingw 5196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5197 *) 5198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5199 esac 5200 case $ac_prog in 5201 # Accept absolute paths. 5202 [\\/]* | ?:[\\/]*) 5203 re_direlt='/[^/][^/]*/\.\./' 5204 # Canonicalize the pathname of ld 5205 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5206 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5207 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5208 done 5209 test -z "$LD" && LD=$ac_prog 5210 ;; 5211 "") 5212 # If it fails, then pretend we aren't using GCC. 5213 ac_prog=ld 5214 ;; 5215 *) 5216 # If it is relative, then search for the first ld in PATH. 5217 with_gnu_ld=unknown 5218 ;; 5219 esac 5220elif test yes = "$with_gnu_ld"; then 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5222$as_echo_n "checking for GNU ld... " >&6; } 5223else 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5225$as_echo_n "checking for non-GNU ld... " >&6; } 5226fi 5227if ${lt_cv_path_LD+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229else 5230 if test -z "$LD"; then 5231 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5232 for ac_dir in $PATH; do 5233 IFS=$lt_save_ifs 5234 test -z "$ac_dir" && ac_dir=. 5235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5236 lt_cv_path_LD=$ac_dir/$ac_prog 5237 # Check to see if the program is GNU ld. I'd rather use --version, 5238 # but apparently some variants of GNU ld only accept -v. 5239 # Break only if it was the GNU/non-GNU ld that we prefer. 5240 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5241 *GNU* | *'with BFD'*) 5242 test no != "$with_gnu_ld" && break 5243 ;; 5244 *) 5245 test yes != "$with_gnu_ld" && break 5246 ;; 5247 esac 5248 fi 5249 done 5250 IFS=$lt_save_ifs 5251else 5252 lt_cv_path_LD=$LD # Let the user override the test with a path. 5253fi 5254fi 5255 5256LD=$lt_cv_path_LD 5257if test -n "$LD"; then 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5259$as_echo "$LD" >&6; } 5260else 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5262$as_echo "no" >&6; } 5263fi 5264test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5266$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5267if ${lt_cv_prog_gnu_ld+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5271case `$LD -v 2>&1 </dev/null` in 5272*GNU* | *'with BFD'*) 5273 lt_cv_prog_gnu_ld=yes 5274 ;; 5275*) 5276 lt_cv_prog_gnu_ld=no 5277 ;; 5278esac 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5281$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5282with_gnu_ld=$lt_cv_prog_gnu_ld 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5293$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5294if ${lt_cv_path_NM+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 if test -n "$NM"; then 5298 # Let the user override the test. 5299 lt_cv_path_NM=$NM 5300else 5301 lt_nm_to_check=${ac_tool_prefix}nm 5302 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5303 lt_nm_to_check="$lt_nm_to_check nm" 5304 fi 5305 for lt_tmp_nm in $lt_nm_to_check; do 5306 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5307 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5308 IFS=$lt_save_ifs 5309 test -z "$ac_dir" && ac_dir=. 5310 tmp_nm=$ac_dir/$lt_tmp_nm 5311 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5312 # Check to see if the nm accepts a BSD-compat flag. 5313 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5314 # nm: unknown option "B" ignored 5315 # Tru64's nm complains that /dev/null is an invalid object file 5316 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5317 case $build_os in 5318 mingw*) lt_bad_file=conftest.nm/nofile ;; 5319 *) lt_bad_file=/dev/null ;; 5320 esac 5321 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5322 *$lt_bad_file* | *'Invalid file or object type'*) 5323 lt_cv_path_NM="$tmp_nm -B" 5324 break 2 5325 ;; 5326 *) 5327 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5328 */dev/null*) 5329 lt_cv_path_NM="$tmp_nm -p" 5330 break 2 5331 ;; 5332 *) 5333 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5334 continue # so that we can try to find one that supports BSD flags 5335 ;; 5336 esac 5337 ;; 5338 esac 5339 fi 5340 done 5341 IFS=$lt_save_ifs 5342 done 5343 : ${lt_cv_path_NM=no} 5344fi 5345fi 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5347$as_echo "$lt_cv_path_NM" >&6; } 5348if test no != "$lt_cv_path_NM"; then 5349 NM=$lt_cv_path_NM 5350else 5351 # Didn't find any BSD compatible name lister, look for dumpbin. 5352 if test -n "$DUMPBIN"; then : 5353 # Let the user override the test. 5354 else 5355 if test -n "$ac_tool_prefix"; then 5356 for ac_prog in dumpbin "link -dump" 5357 do 5358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5359set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5361$as_echo_n "checking for $ac_word... " >&6; } 5362if ${ac_cv_prog_DUMPBIN+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 if test -n "$DUMPBIN"; then 5366 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5367else 5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5369for as_dir in $PATH 5370do 5371 IFS=$as_save_IFS 5372 test -z "$as_dir" && as_dir=. 5373 for ac_exec_ext in '' $ac_executable_extensions; do 5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5375 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5377 break 2 5378 fi 5379done 5380 done 5381IFS=$as_save_IFS 5382 5383fi 5384fi 5385DUMPBIN=$ac_cv_prog_DUMPBIN 5386if test -n "$DUMPBIN"; then 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5388$as_echo "$DUMPBIN" >&6; } 5389else 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5391$as_echo "no" >&6; } 5392fi 5393 5394 5395 test -n "$DUMPBIN" && break 5396 done 5397fi 5398if test -z "$DUMPBIN"; then 5399 ac_ct_DUMPBIN=$DUMPBIN 5400 for ac_prog in dumpbin "link -dump" 5401do 5402 # Extract the first word of "$ac_prog", so it can be a program name with args. 5403set dummy $ac_prog; ac_word=$2 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5405$as_echo_n "checking for $ac_word... " >&6; } 5406if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 if test -n "$ac_ct_DUMPBIN"; then 5410 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5411else 5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413for as_dir in $PATH 5414do 5415 IFS=$as_save_IFS 5416 test -z "$as_dir" && as_dir=. 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5419 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5421 break 2 5422 fi 5423done 5424 done 5425IFS=$as_save_IFS 5426 5427fi 5428fi 5429ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5430if test -n "$ac_ct_DUMPBIN"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5432$as_echo "$ac_ct_DUMPBIN" >&6; } 5433else 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435$as_echo "no" >&6; } 5436fi 5437 5438 5439 test -n "$ac_ct_DUMPBIN" && break 5440done 5441 5442 if test "x$ac_ct_DUMPBIN" = x; then 5443 DUMPBIN=":" 5444 else 5445 case $cross_compiling:$ac_tool_warned in 5446yes:) 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5449ac_tool_warned=yes ;; 5450esac 5451 DUMPBIN=$ac_ct_DUMPBIN 5452 fi 5453fi 5454 5455 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5456 *COFF*) 5457 DUMPBIN="$DUMPBIN -symbols -headers" 5458 ;; 5459 *) 5460 DUMPBIN=: 5461 ;; 5462 esac 5463 fi 5464 5465 if test : != "$DUMPBIN"; then 5466 NM=$DUMPBIN 5467 fi 5468fi 5469test -z "$NM" && NM=nm 5470 5471 5472 5473 5474 5475 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5477$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5478if ${lt_cv_nm_interface+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 lt_cv_nm_interface="BSD nm" 5482 echo "int some_variable = 0;" > conftest.$ac_ext 5483 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5484 (eval "$ac_compile" 2>conftest.err) 5485 cat conftest.err >&5 5486 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5487 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5488 cat conftest.err >&5 5489 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5490 cat conftest.out >&5 5491 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5492 lt_cv_nm_interface="MS dumpbin" 5493 fi 5494 rm -f conftest* 5495fi 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5497$as_echo "$lt_cv_nm_interface" >&6; } 5498 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5500$as_echo_n "checking whether ln -s works... " >&6; } 5501LN_S=$as_ln_s 5502if test "$LN_S" = "ln -s"; then 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5504$as_echo "yes" >&6; } 5505else 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5507$as_echo "no, using $LN_S" >&6; } 5508fi 5509 5510# find the maximum length of command line arguments 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5512$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5513if ${lt_cv_sys_max_cmd_len+:} false; then : 5514 $as_echo_n "(cached) " >&6 5515else 5516 i=0 5517 teststring=ABCD 5518 5519 case $build_os in 5520 msdosdjgpp*) 5521 # On DJGPP, this test can blow up pretty badly due to problems in libc 5522 # (any single argument exceeding 2000 bytes causes a buffer overrun 5523 # during glob expansion). Even if it were fixed, the result of this 5524 # check would be larger than it should be. 5525 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5526 ;; 5527 5528 gnu*) 5529 # Under GNU Hurd, this test is not required because there is 5530 # no limit to the length of command line arguments. 5531 # Libtool will interpret -1 as no limit whatsoever 5532 lt_cv_sys_max_cmd_len=-1; 5533 ;; 5534 5535 cygwin* | mingw* | cegcc*) 5536 # On Win9x/ME, this test blows up -- it succeeds, but takes 5537 # about 5 minutes as the teststring grows exponentially. 5538 # Worse, since 9x/ME are not pre-emptively multitasking, 5539 # you end up with a "frozen" computer, even though with patience 5540 # the test eventually succeeds (with a max line length of 256k). 5541 # Instead, let's just punt: use the minimum linelength reported by 5542 # all of the supported platforms: 8192 (on NT/2K/XP). 5543 lt_cv_sys_max_cmd_len=8192; 5544 ;; 5545 5546 mint*) 5547 # On MiNT this can take a long time and run out of memory. 5548 lt_cv_sys_max_cmd_len=8192; 5549 ;; 5550 5551 amigaos*) 5552 # On AmigaOS with pdksh, this test takes hours, literally. 5553 # So we just punt and use a minimum line length of 8192. 5554 lt_cv_sys_max_cmd_len=8192; 5555 ;; 5556 5557 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5558 # This has been around since 386BSD, at least. Likely further. 5559 if test -x /sbin/sysctl; then 5560 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5561 elif test -x /usr/sbin/sysctl; then 5562 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5563 else 5564 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5565 fi 5566 # And add a safety zone 5567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5569 ;; 5570 5571 interix*) 5572 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5573 lt_cv_sys_max_cmd_len=196608 5574 ;; 5575 5576 os2*) 5577 # The test takes a long time on OS/2. 5578 lt_cv_sys_max_cmd_len=8192 5579 ;; 5580 5581 osf*) 5582 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5583 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5584 # nice to cause kernel panics so lets avoid the loop below. 5585 # First set a reasonable default. 5586 lt_cv_sys_max_cmd_len=16384 5587 # 5588 if test -x /sbin/sysconfig; then 5589 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5590 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5591 esac 5592 fi 5593 ;; 5594 sco3.2v5*) 5595 lt_cv_sys_max_cmd_len=102400 5596 ;; 5597 sysv5* | sco5v6* | sysv4.2uw2*) 5598 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5599 if test -n "$kargmax"; then 5600 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5601 else 5602 lt_cv_sys_max_cmd_len=32768 5603 fi 5604 ;; 5605 *) 5606 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5607 if test -n "$lt_cv_sys_max_cmd_len" && \ 5608 test undefined != "$lt_cv_sys_max_cmd_len"; then 5609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5611 else 5612 # Make teststring a little bigger before we do anything with it. 5613 # a 1K string should be a reasonable start. 5614 for i in 1 2 3 4 5 6 7 8; do 5615 teststring=$teststring$teststring 5616 done 5617 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5618 # If test is not a shell built-in, we'll probably end up computing a 5619 # maximum length that is only half of the actual maximum length, but 5620 # we can't tell. 5621 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5622 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5623 test 17 != "$i" # 1/2 MB should be enough 5624 do 5625 i=`expr $i + 1` 5626 teststring=$teststring$teststring 5627 done 5628 # Only check the string length outside the loop. 5629 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5630 teststring= 5631 # Add a significant safety factor because C++ compilers can tack on 5632 # massive amounts of additional arguments before passing them to the 5633 # linker. It appears as though 1/2 is a usable value. 5634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5635 fi 5636 ;; 5637 esac 5638 5639fi 5640 5641if test -n "$lt_cv_sys_max_cmd_len"; then 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5643$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5644else 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5646$as_echo "none" >&6; } 5647fi 5648max_cmd_len=$lt_cv_sys_max_cmd_len 5649 5650 5651 5652 5653 5654 5655: ${CP="cp -f"} 5656: ${MV="mv -f"} 5657: ${RM="rm -f"} 5658 5659if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5660 lt_unset=unset 5661else 5662 lt_unset=false 5663fi 5664 5665 5666 5667 5668 5669# test EBCDIC or ASCII 5670case `echo X|tr X '\101'` in 5671 A) # ASCII based system 5672 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5673 lt_SP2NL='tr \040 \012' 5674 lt_NL2SP='tr \015\012 \040\040' 5675 ;; 5676 *) # EBCDIC based system 5677 lt_SP2NL='tr \100 \n' 5678 lt_NL2SP='tr \r\n \100\100' 5679 ;; 5680esac 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5691$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5692if ${lt_cv_to_host_file_cmd+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 case $host in 5696 *-*-mingw* ) 5697 case $build in 5698 *-*-mingw* ) # actually msys 5699 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5700 ;; 5701 *-*-cygwin* ) 5702 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5703 ;; 5704 * ) # otherwise, assume *nix 5705 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5706 ;; 5707 esac 5708 ;; 5709 *-*-cygwin* ) 5710 case $build in 5711 *-*-mingw* ) # actually msys 5712 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5713 ;; 5714 *-*-cygwin* ) 5715 lt_cv_to_host_file_cmd=func_convert_file_noop 5716 ;; 5717 * ) # otherwise, assume *nix 5718 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5719 ;; 5720 esac 5721 ;; 5722 * ) # unhandled hosts (and "normal" native builds) 5723 lt_cv_to_host_file_cmd=func_convert_file_noop 5724 ;; 5725esac 5726 5727fi 5728 5729to_host_file_cmd=$lt_cv_to_host_file_cmd 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5731$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5732 5733 5734 5735 5736 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5738$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5739if ${lt_cv_to_tool_file_cmd+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 #assume ordinary cross tools, or native build. 5743lt_cv_to_tool_file_cmd=func_convert_file_noop 5744case $host in 5745 *-*-mingw* ) 5746 case $build in 5747 *-*-mingw* ) # actually msys 5748 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5749 ;; 5750 esac 5751 ;; 5752esac 5753 5754fi 5755 5756to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5758$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5759 5760 5761 5762 5763 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5765$as_echo_n "checking for $LD option to reload object files... " >&6; } 5766if ${lt_cv_ld_reload_flag+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 lt_cv_ld_reload_flag='-r' 5770fi 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5772$as_echo "$lt_cv_ld_reload_flag" >&6; } 5773reload_flag=$lt_cv_ld_reload_flag 5774case $reload_flag in 5775"" | " "*) ;; 5776*) reload_flag=" $reload_flag" ;; 5777esac 5778reload_cmds='$LD$reload_flag -o $output$reload_objs' 5779case $host_os in 5780 cygwin* | mingw* | pw32* | cegcc*) 5781 if test yes != "$GCC"; then 5782 reload_cmds=false 5783 fi 5784 ;; 5785 darwin*) 5786 if test yes = "$GCC"; then 5787 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5788 else 5789 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5790 fi 5791 ;; 5792esac 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802if test -n "$ac_tool_prefix"; then 5803 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5804set dummy ${ac_tool_prefix}objdump; ac_word=$2 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5806$as_echo_n "checking for $ac_word... " >&6; } 5807if ${ac_cv_prog_OBJDUMP+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 if test -n "$OBJDUMP"; then 5811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5812else 5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5814for as_dir in $PATH 5815do 5816 IFS=$as_save_IFS 5817 test -z "$as_dir" && as_dir=. 5818 for ac_exec_ext in '' $ac_executable_extensions; do 5819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5820 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5822 break 2 5823 fi 5824done 5825 done 5826IFS=$as_save_IFS 5827 5828fi 5829fi 5830OBJDUMP=$ac_cv_prog_OBJDUMP 5831if test -n "$OBJDUMP"; then 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5833$as_echo "$OBJDUMP" >&6; } 5834else 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836$as_echo "no" >&6; } 5837fi 5838 5839 5840fi 5841if test -z "$ac_cv_prog_OBJDUMP"; then 5842 ac_ct_OBJDUMP=$OBJDUMP 5843 # Extract the first word of "objdump", so it can be a program name with args. 5844set dummy objdump; ac_word=$2 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5846$as_echo_n "checking for $ac_word... " >&6; } 5847if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 if test -n "$ac_ct_OBJDUMP"; then 5851 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5852else 5853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5854for as_dir in $PATH 5855do 5856 IFS=$as_save_IFS 5857 test -z "$as_dir" && as_dir=. 5858 for ac_exec_ext in '' $ac_executable_extensions; do 5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5860 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5862 break 2 5863 fi 5864done 5865 done 5866IFS=$as_save_IFS 5867 5868fi 5869fi 5870ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5871if test -n "$ac_ct_OBJDUMP"; then 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5873$as_echo "$ac_ct_OBJDUMP" >&6; } 5874else 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5876$as_echo "no" >&6; } 5877fi 5878 5879 if test "x$ac_ct_OBJDUMP" = x; then 5880 OBJDUMP="false" 5881 else 5882 case $cross_compiling:$ac_tool_warned in 5883yes:) 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5886ac_tool_warned=yes ;; 5887esac 5888 OBJDUMP=$ac_ct_OBJDUMP 5889 fi 5890else 5891 OBJDUMP="$ac_cv_prog_OBJDUMP" 5892fi 5893 5894test -z "$OBJDUMP" && OBJDUMP=objdump 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5905$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5906if ${lt_cv_deplibs_check_method+:} false; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 lt_cv_file_magic_cmd='$MAGIC_CMD' 5910lt_cv_file_magic_test_file= 5911lt_cv_deplibs_check_method='unknown' 5912# Need to set the preceding variable on all platforms that support 5913# interlibrary dependencies. 5914# 'none' -- dependencies not supported. 5915# 'unknown' -- same as none, but documents that we really don't know. 5916# 'pass_all' -- all dependencies passed with no checks. 5917# 'test_compile' -- check by making test program. 5918# 'file_magic [[regex]]' -- check by looking for files in library path 5919# that responds to the $file_magic_cmd with a given extended regex. 5920# If you have 'file' or equivalent on your system and you're not sure 5921# whether 'pass_all' will *always* work, you probably want this one. 5922 5923case $host_os in 5924aix[4-9]*) 5925 lt_cv_deplibs_check_method=pass_all 5926 ;; 5927 5928beos*) 5929 lt_cv_deplibs_check_method=pass_all 5930 ;; 5931 5932bsdi[45]*) 5933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5934 lt_cv_file_magic_cmd='/usr/bin/file -L' 5935 lt_cv_file_magic_test_file=/shlib/libc.so 5936 ;; 5937 5938cygwin*) 5939 # func_win32_libid is a shell function defined in ltmain.sh 5940 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5941 lt_cv_file_magic_cmd='func_win32_libid' 5942 ;; 5943 5944mingw* | pw32*) 5945 # Base MSYS/MinGW do not provide the 'file' command needed by 5946 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5947 # unless we find 'file', for example because we are cross-compiling. 5948 if ( file / ) >/dev/null 2>&1; then 5949 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5950 lt_cv_file_magic_cmd='func_win32_libid' 5951 else 5952 # Keep this pattern in sync with the one in func_win32_libid. 5953 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5954 lt_cv_file_magic_cmd='$OBJDUMP -f' 5955 fi 5956 ;; 5957 5958cegcc*) 5959 # use the weaker test based on 'objdump'. See mingw*. 5960 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5961 lt_cv_file_magic_cmd='$OBJDUMP -f' 5962 ;; 5963 5964darwin* | rhapsody*) 5965 lt_cv_deplibs_check_method=pass_all 5966 ;; 5967 5968freebsd* | dragonfly*) 5969 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5970 case $host_cpu in 5971 i*86 ) 5972 # Not sure whether the presence of OpenBSD here was a mistake. 5973 # Let's accept both of them until this is cleared up. 5974 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5975 lt_cv_file_magic_cmd=/usr/bin/file 5976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5977 ;; 5978 esac 5979 else 5980 lt_cv_deplibs_check_method=pass_all 5981 fi 5982 ;; 5983 5984haiku*) 5985 lt_cv_deplibs_check_method=pass_all 5986 ;; 5987 5988hpux10.20* | hpux11*) 5989 lt_cv_file_magic_cmd=/usr/bin/file 5990 case $host_cpu in 5991 ia64*) 5992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5994 ;; 5995 hppa*64*) 5996 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]' 5997 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5998 ;; 5999 *) 6000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6001 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6002 ;; 6003 esac 6004 ;; 6005 6006interix[3-9]*) 6007 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6009 ;; 6010 6011irix5* | irix6* | nonstopux*) 6012 case $LD in 6013 *-32|*"-32 ") libmagic=32-bit;; 6014 *-n32|*"-n32 ") libmagic=N32;; 6015 *-64|*"-64 ") libmagic=64-bit;; 6016 *) libmagic=never-match;; 6017 esac 6018 lt_cv_deplibs_check_method=pass_all 6019 ;; 6020 6021# This must be glibc/ELF. 6022linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6023 lt_cv_deplibs_check_method=pass_all 6024 ;; 6025 6026netbsd*) 6027 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6029 else 6030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6031 fi 6032 ;; 6033 6034newos6*) 6035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6036 lt_cv_file_magic_cmd=/usr/bin/file 6037 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6038 ;; 6039 6040*nto* | *qnx*) 6041 lt_cv_deplibs_check_method=pass_all 6042 ;; 6043 6044openbsd* | bitrig*) 6045 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6047 else 6048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6049 fi 6050 ;; 6051 6052osf3* | osf4* | osf5*) 6053 lt_cv_deplibs_check_method=pass_all 6054 ;; 6055 6056rdos*) 6057 lt_cv_deplibs_check_method=pass_all 6058 ;; 6059 6060solaris*) 6061 lt_cv_deplibs_check_method=pass_all 6062 ;; 6063 6064sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6065 lt_cv_deplibs_check_method=pass_all 6066 ;; 6067 6068sysv4 | sysv4.3*) 6069 case $host_vendor in 6070 motorola) 6071 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]' 6072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6073 ;; 6074 ncr) 6075 lt_cv_deplibs_check_method=pass_all 6076 ;; 6077 sequent) 6078 lt_cv_file_magic_cmd='/bin/file' 6079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6080 ;; 6081 sni) 6082 lt_cv_file_magic_cmd='/bin/file' 6083 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6084 lt_cv_file_magic_test_file=/lib/libc.so 6085 ;; 6086 siemens) 6087 lt_cv_deplibs_check_method=pass_all 6088 ;; 6089 pc) 6090 lt_cv_deplibs_check_method=pass_all 6091 ;; 6092 esac 6093 ;; 6094 6095tpf*) 6096 lt_cv_deplibs_check_method=pass_all 6097 ;; 6098os2*) 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101esac 6102 6103fi 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6105$as_echo "$lt_cv_deplibs_check_method" >&6; } 6106 6107file_magic_glob= 6108want_nocaseglob=no 6109if test "$build" = "$host"; then 6110 case $host_os in 6111 mingw* | pw32*) 6112 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6113 want_nocaseglob=yes 6114 else 6115 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6116 fi 6117 ;; 6118 esac 6119fi 6120 6121file_magic_cmd=$lt_cv_file_magic_cmd 6122deplibs_check_method=$lt_cv_deplibs_check_method 6123test -z "$deplibs_check_method" && deplibs_check_method=unknown 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146if test -n "$ac_tool_prefix"; then 6147 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6148set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6150$as_echo_n "checking for $ac_word... " >&6; } 6151if ${ac_cv_prog_DLLTOOL+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 if test -n "$DLLTOOL"; then 6155 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6156else 6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172fi 6173fi 6174DLLTOOL=$ac_cv_prog_DLLTOOL 6175if test -n "$DLLTOOL"; then 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6177$as_echo "$DLLTOOL" >&6; } 6178else 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180$as_echo "no" >&6; } 6181fi 6182 6183 6184fi 6185if test -z "$ac_cv_prog_DLLTOOL"; then 6186 ac_ct_DLLTOOL=$DLLTOOL 6187 # Extract the first word of "dlltool", so it can be a program name with args. 6188set dummy dlltool; ac_word=$2 6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6190$as_echo_n "checking for $ac_word... " >&6; } 6191if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6192 $as_echo_n "(cached) " >&6 6193else 6194 if test -n "$ac_ct_DLLTOOL"; then 6195 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6196else 6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6198for as_dir in $PATH 6199do 6200 IFS=$as_save_IFS 6201 test -z "$as_dir" && as_dir=. 6202 for ac_exec_ext in '' $ac_executable_extensions; do 6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6204 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6206 break 2 6207 fi 6208done 6209 done 6210IFS=$as_save_IFS 6211 6212fi 6213fi 6214ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6215if test -n "$ac_ct_DLLTOOL"; then 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6217$as_echo "$ac_ct_DLLTOOL" >&6; } 6218else 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6220$as_echo "no" >&6; } 6221fi 6222 6223 if test "x$ac_ct_DLLTOOL" = x; then 6224 DLLTOOL="false" 6225 else 6226 case $cross_compiling:$ac_tool_warned in 6227yes:) 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6230ac_tool_warned=yes ;; 6231esac 6232 DLLTOOL=$ac_ct_DLLTOOL 6233 fi 6234else 6235 DLLTOOL="$ac_cv_prog_DLLTOOL" 6236fi 6237 6238test -z "$DLLTOOL" && DLLTOOL=dlltool 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6250$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6251if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253else 6254 lt_cv_sharedlib_from_linklib_cmd='unknown' 6255 6256case $host_os in 6257cygwin* | mingw* | pw32* | cegcc*) 6258 # two different shell functions defined in ltmain.sh; 6259 # decide which one to use based on capabilities of $DLLTOOL 6260 case `$DLLTOOL --help 2>&1` in 6261 *--identify-strict*) 6262 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6263 ;; 6264 *) 6265 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6266 ;; 6267 esac 6268 ;; 6269*) 6270 # fallback: assume linklib IS sharedlib 6271 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6272 ;; 6273esac 6274 6275fi 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6277$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6278sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6279test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6280 6281 6282 6283 6284 6285 6286 6287if test -n "$ac_tool_prefix"; then 6288 for ac_prog in ar 6289 do 6290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6291set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6293$as_echo_n "checking for $ac_word... " >&6; } 6294if ${ac_cv_prog_AR+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 if test -n "$AR"; then 6298 ac_cv_prog_AR="$AR" # Let the user override the test. 6299else 6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6301for as_dir in $PATH 6302do 6303 IFS=$as_save_IFS 6304 test -z "$as_dir" && as_dir=. 6305 for ac_exec_ext in '' $ac_executable_extensions; do 6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6307 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6309 break 2 6310 fi 6311done 6312 done 6313IFS=$as_save_IFS 6314 6315fi 6316fi 6317AR=$ac_cv_prog_AR 6318if test -n "$AR"; then 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6320$as_echo "$AR" >&6; } 6321else 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323$as_echo "no" >&6; } 6324fi 6325 6326 6327 test -n "$AR" && break 6328 done 6329fi 6330if test -z "$AR"; then 6331 ac_ct_AR=$AR 6332 for ac_prog in ar 6333do 6334 # Extract the first word of "$ac_prog", so it can be a program name with args. 6335set dummy $ac_prog; ac_word=$2 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337$as_echo_n "checking for $ac_word... " >&6; } 6338if ${ac_cv_prog_ac_ct_AR+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 if test -n "$ac_ct_AR"; then 6342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6343else 6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345for as_dir in $PATH 6346do 6347 IFS=$as_save_IFS 6348 test -z "$as_dir" && as_dir=. 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6351 ac_cv_prog_ac_ct_AR="$ac_prog" 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355done 6356 done 6357IFS=$as_save_IFS 6358 6359fi 6360fi 6361ac_ct_AR=$ac_cv_prog_ac_ct_AR 6362if test -n "$ac_ct_AR"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6364$as_echo "$ac_ct_AR" >&6; } 6365else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367$as_echo "no" >&6; } 6368fi 6369 6370 6371 test -n "$ac_ct_AR" && break 6372done 6373 6374 if test "x$ac_ct_AR" = x; then 6375 AR="false" 6376 else 6377 case $cross_compiling:$ac_tool_warned in 6378yes:) 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6381ac_tool_warned=yes ;; 6382esac 6383 AR=$ac_ct_AR 6384 fi 6385fi 6386 6387: ${AR=ar} 6388: ${AR_FLAGS=cru} 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6401$as_echo_n "checking for archiver @FILE support... " >&6; } 6402if ${lt_cv_ar_at_file+:} false; then : 6403 $as_echo_n "(cached) " >&6 6404else 6405 lt_cv_ar_at_file=no 6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6407/* end confdefs.h. */ 6408 6409int 6410main () 6411{ 6412 6413 ; 6414 return 0; 6415} 6416_ACEOF 6417if ac_fn_c_try_compile "$LINENO"; then : 6418 echo conftest.$ac_objext > conftest.lst 6419 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6421 (eval $lt_ar_try) 2>&5 6422 ac_status=$? 6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6424 test $ac_status = 0; } 6425 if test 0 -eq "$ac_status"; then 6426 # Ensure the archiver fails upon bogus file names. 6427 rm -f conftest.$ac_objext libconftest.a 6428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6429 (eval $lt_ar_try) 2>&5 6430 ac_status=$? 6431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6432 test $ac_status = 0; } 6433 if test 0 -ne "$ac_status"; then 6434 lt_cv_ar_at_file=@ 6435 fi 6436 fi 6437 rm -f conftest.* libconftest.a 6438 6439fi 6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6441 6442fi 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6444$as_echo "$lt_cv_ar_at_file" >&6; } 6445 6446if test no = "$lt_cv_ar_at_file"; then 6447 archiver_list_spec= 6448else 6449 archiver_list_spec=$lt_cv_ar_at_file 6450fi 6451 6452 6453 6454 6455 6456 6457 6458if test -n "$ac_tool_prefix"; then 6459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6460set dummy ${ac_tool_prefix}strip; ac_word=$2 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6462$as_echo_n "checking for $ac_word... " >&6; } 6463if ${ac_cv_prog_STRIP+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 if test -n "$STRIP"; then 6467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6476 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480done 6481 done 6482IFS=$as_save_IFS 6483 6484fi 6485fi 6486STRIP=$ac_cv_prog_STRIP 6487if test -n "$STRIP"; then 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6489$as_echo "$STRIP" >&6; } 6490else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494 6495 6496fi 6497if test -z "$ac_cv_prog_STRIP"; then 6498 ac_ct_STRIP=$STRIP 6499 # Extract the first word of "strip", so it can be a program name with args. 6500set dummy strip; ac_word=$2 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502$as_echo_n "checking for $ac_word... " >&6; } 6503if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if test -n "$ac_ct_STRIP"; then 6507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6508else 6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510for as_dir in $PATH 6511do 6512 IFS=$as_save_IFS 6513 test -z "$as_dir" && as_dir=. 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6516 ac_cv_prog_ac_ct_STRIP="strip" 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520done 6521 done 6522IFS=$as_save_IFS 6523 6524fi 6525fi 6526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6527if test -n "$ac_ct_STRIP"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6529$as_echo "$ac_ct_STRIP" >&6; } 6530else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532$as_echo "no" >&6; } 6533fi 6534 6535 if test "x$ac_ct_STRIP" = x; then 6536 STRIP=":" 6537 else 6538 case $cross_compiling:$ac_tool_warned in 6539yes:) 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6542ac_tool_warned=yes ;; 6543esac 6544 STRIP=$ac_ct_STRIP 6545 fi 6546else 6547 STRIP="$ac_cv_prog_STRIP" 6548fi 6549 6550test -z "$STRIP" && STRIP=: 6551 6552 6553 6554 6555 6556 6557if test -n "$ac_tool_prefix"; then 6558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6559set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561$as_echo_n "checking for $ac_word... " >&6; } 6562if ${ac_cv_prog_RANLIB+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 if test -n "$RANLIB"; then 6566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6567else 6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569for as_dir in $PATH 6570do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579done 6580 done 6581IFS=$as_save_IFS 6582 6583fi 6584fi 6585RANLIB=$ac_cv_prog_RANLIB 6586if test -n "$RANLIB"; then 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6588$as_echo "$RANLIB" >&6; } 6589else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593 6594 6595fi 6596if test -z "$ac_cv_prog_RANLIB"; then 6597 ac_ct_RANLIB=$RANLIB 6598 # Extract the first word of "ranlib", so it can be a program name with args. 6599set dummy ranlib; ac_word=$2 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6601$as_echo_n "checking for $ac_word... " >&6; } 6602if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 if test -n "$ac_ct_RANLIB"; then 6606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 test -z "$as_dir" && as_dir=. 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_ac_ct_RANLIB="ranlib" 6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619done 6620 done 6621IFS=$as_save_IFS 6622 6623fi 6624fi 6625ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6626if test -n "$ac_ct_RANLIB"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6628$as_echo "$ac_ct_RANLIB" >&6; } 6629else 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6631$as_echo "no" >&6; } 6632fi 6633 6634 if test "x$ac_ct_RANLIB" = x; then 6635 RANLIB=":" 6636 else 6637 case $cross_compiling:$ac_tool_warned in 6638yes:) 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6641ac_tool_warned=yes ;; 6642esac 6643 RANLIB=$ac_ct_RANLIB 6644 fi 6645else 6646 RANLIB="$ac_cv_prog_RANLIB" 6647fi 6648 6649test -z "$RANLIB" && RANLIB=: 6650 6651 6652 6653 6654 6655 6656# Determine commands to create old-style static archives. 6657old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6658old_postinstall_cmds='chmod 644 $oldlib' 6659old_postuninstall_cmds= 6660 6661if test -n "$RANLIB"; then 6662 case $host_os in 6663 bitrig* | openbsd*) 6664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6665 ;; 6666 *) 6667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6668 ;; 6669 esac 6670 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6671fi 6672 6673case $host_os in 6674 darwin*) 6675 lock_old_archive_extraction=yes ;; 6676 *) 6677 lock_old_archive_extraction=no ;; 6678esac 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718# If no C compiler was specified, use CC. 6719LTCC=${LTCC-"$CC"} 6720 6721# If no C compiler flags were specified, use CFLAGS. 6722LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6723 6724# Allow CC to be a program name with arguments. 6725compiler=$CC 6726 6727 6728# Check for command to grab the raw symbol name followed by C symbol from nm. 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6730$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6731if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6732 $as_echo_n "(cached) " >&6 6733else 6734 6735# These are sane defaults that work on at least a few old systems. 6736# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6737 6738# Character class describing NM global symbol codes. 6739symcode='[BCDEGRST]' 6740 6741# Regexp to match symbols that can be accessed directly from C. 6742sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6743 6744# Define system-specific variables. 6745case $host_os in 6746aix*) 6747 symcode='[BCDT]' 6748 ;; 6749cygwin* | mingw* | pw32* | cegcc*) 6750 symcode='[ABCDGISTW]' 6751 ;; 6752hpux*) 6753 if test ia64 = "$host_cpu"; then 6754 symcode='[ABCDEGRST]' 6755 fi 6756 ;; 6757irix* | nonstopux*) 6758 symcode='[BCDEGRST]' 6759 ;; 6760osf*) 6761 symcode='[BCDEGQRST]' 6762 ;; 6763solaris*) 6764 symcode='[BDRT]' 6765 ;; 6766sco3.2v5*) 6767 symcode='[DT]' 6768 ;; 6769sysv4.2uw2*) 6770 symcode='[DT]' 6771 ;; 6772sysv5* | sco5v6* | unixware* | OpenUNIX*) 6773 symcode='[ABDT]' 6774 ;; 6775sysv4) 6776 symcode='[DFNSTU]' 6777 ;; 6778esac 6779 6780# If we're using GNU nm, then use its standard symbol codes. 6781case `$NM -V 2>&1` in 6782*GNU* | *'with BFD'*) 6783 symcode='[ABCDGIRSTW]' ;; 6784esac 6785 6786if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6787 # Gets list of data symbols to import. 6788 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6789 # Adjust the below global symbol transforms to fixup imported variables. 6790 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6791 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6792 lt_c_name_lib_hook="\ 6793 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6794 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6795else 6796 # Disable hooks by default. 6797 lt_cv_sys_global_symbol_to_import= 6798 lt_cdecl_hook= 6799 lt_c_name_hook= 6800 lt_c_name_lib_hook= 6801fi 6802 6803# Transform an extracted symbol line into a proper C declaration. 6804# Some systems (esp. on ia64) link data and code symbols differently, 6805# so use this general approach. 6806lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6807$lt_cdecl_hook\ 6808" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6809" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6810 6811# Transform an extracted symbol line into symbol name and symbol address 6812lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6813$lt_c_name_hook\ 6814" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6815" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6816 6817# Transform an extracted symbol line into symbol name with lib prefix and 6818# symbol address. 6819lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6820$lt_c_name_lib_hook\ 6821" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6822" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6823" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6824 6825# Handle CRLF in mingw tool chain 6826opt_cr= 6827case $build_os in 6828mingw*) 6829 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6830 ;; 6831esac 6832 6833# Try without a prefix underscore, then with it. 6834for ac_symprfx in "" "_"; do 6835 6836 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6837 symxfrm="\\1 $ac_symprfx\\2 \\2" 6838 6839 # Write the raw and C identifiers. 6840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6841 # Fake it for dumpbin and say T for any non-static function, 6842 # D for any global variable and I for any imported variable. 6843 # Also find C++ and __fastcall symbols from MSVC++, 6844 # which start with @ or ?. 6845 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6846" {last_section=section; section=\$ 3};"\ 6847" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6848" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6849" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6850" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6851" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6852" \$ 0!~/External *\|/{next};"\ 6853" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6854" {if(hide[section]) next};"\ 6855" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6856" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6857" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6858" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6859" ' prfx=^$ac_symprfx" 6860 else 6861 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6862 fi 6863 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6864 6865 # Check to see that the pipe works correctly. 6866 pipe_works=no 6867 6868 rm -f conftest* 6869 cat > conftest.$ac_ext <<_LT_EOF 6870#ifdef __cplusplus 6871extern "C" { 6872#endif 6873char nm_test_var; 6874void nm_test_func(void); 6875void nm_test_func(void){} 6876#ifdef __cplusplus 6877} 6878#endif 6879int main(){nm_test_var='a';nm_test_func();return(0);} 6880_LT_EOF 6881 6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6883 (eval $ac_compile) 2>&5 6884 ac_status=$? 6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6886 test $ac_status = 0; }; then 6887 # Now try to grab the symbols. 6888 nlist=conftest.nm 6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6890 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6891 ac_status=$? 6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6893 test $ac_status = 0; } && test -s "$nlist"; then 6894 # Try sorting and uniquifying the output. 6895 if sort "$nlist" | uniq > "$nlist"T; then 6896 mv -f "$nlist"T "$nlist" 6897 else 6898 rm -f "$nlist"T 6899 fi 6900 6901 # Make sure that we snagged all the symbols we need. 6902 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6903 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6904 cat <<_LT_EOF > conftest.$ac_ext 6905/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6906#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6907/* DATA imports from DLLs on WIN32 can't be const, because runtime 6908 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6909# define LT_DLSYM_CONST 6910#elif defined __osf__ 6911/* This system does not cope well with relocations in const data. */ 6912# define LT_DLSYM_CONST 6913#else 6914# define LT_DLSYM_CONST const 6915#endif 6916 6917#ifdef __cplusplus 6918extern "C" { 6919#endif 6920 6921_LT_EOF 6922 # Now generate the symbol file. 6923 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6924 6925 cat <<_LT_EOF >> conftest.$ac_ext 6926 6927/* The mapping between symbol names and symbols. */ 6928LT_DLSYM_CONST struct { 6929 const char *name; 6930 void *address; 6931} 6932lt__PROGRAM__LTX_preloaded_symbols[] = 6933{ 6934 { "@PROGRAM@", (void *) 0 }, 6935_LT_EOF 6936 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6937 cat <<\_LT_EOF >> conftest.$ac_ext 6938 {0, (void *) 0} 6939}; 6940 6941/* This works around a problem in FreeBSD linker */ 6942#ifdef FREEBSD_WORKAROUND 6943static const void *lt_preloaded_setup() { 6944 return lt__PROGRAM__LTX_preloaded_symbols; 6945} 6946#endif 6947 6948#ifdef __cplusplus 6949} 6950#endif 6951_LT_EOF 6952 # Now try linking the two files. 6953 mv conftest.$ac_objext conftstm.$ac_objext 6954 lt_globsym_save_LIBS=$LIBS 6955 lt_globsym_save_CFLAGS=$CFLAGS 6956 LIBS=conftstm.$ac_objext 6957 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6959 (eval $ac_link) 2>&5 6960 ac_status=$? 6961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6962 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6963 pipe_works=yes 6964 fi 6965 LIBS=$lt_globsym_save_LIBS 6966 CFLAGS=$lt_globsym_save_CFLAGS 6967 else 6968 echo "cannot find nm_test_func in $nlist" >&5 6969 fi 6970 else 6971 echo "cannot find nm_test_var in $nlist" >&5 6972 fi 6973 else 6974 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6975 fi 6976 else 6977 echo "$progname: failed program was:" >&5 6978 cat conftest.$ac_ext >&5 6979 fi 6980 rm -rf conftest* conftst* 6981 6982 # Do not use the global_symbol_pipe unless it works. 6983 if test yes = "$pipe_works"; then 6984 break 6985 else 6986 lt_cv_sys_global_symbol_pipe= 6987 fi 6988done 6989 6990fi 6991 6992if test -z "$lt_cv_sys_global_symbol_pipe"; then 6993 lt_cv_sys_global_symbol_to_cdecl= 6994fi 6995if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6997$as_echo "failed" >&6; } 6998else 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7000$as_echo "ok" >&6; } 7001fi 7002 7003# Response file support. 7004if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7005 nm_file_list_spec='@' 7006elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7007 nm_file_list_spec='@' 7008fi 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7047$as_echo_n "checking for sysroot... " >&6; } 7048 7049# Check whether --with-sysroot was given. 7050if test "${with_sysroot+set}" = set; then : 7051 withval=$with_sysroot; 7052else 7053 with_sysroot=no 7054fi 7055 7056 7057lt_sysroot= 7058case $with_sysroot in #( 7059 yes) 7060 if test yes = "$GCC"; then 7061 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7062 fi 7063 ;; #( 7064 /*) 7065 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7066 ;; #( 7067 no|'') 7068 ;; #( 7069 *) 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7071$as_echo "$with_sysroot" >&6; } 7072 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7073 ;; 7074esac 7075 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7077$as_echo "${lt_sysroot:-no}" >&6; } 7078 7079 7080 7081 7082 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7084$as_echo_n "checking for a working dd... " >&6; } 7085if ${ac_cv_path_lt_DD+:} false; then : 7086 $as_echo_n "(cached) " >&6 7087else 7088 printf 0123456789abcdef0123456789abcdef >conftest.i 7089cat conftest.i conftest.i >conftest2.i 7090: ${lt_DD:=$DD} 7091if test -z "$lt_DD"; then 7092 ac_path_lt_DD_found=false 7093 # Loop through the user's path and test for each of PROGNAME-LIST 7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095for as_dir in $PATH 7096do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_prog in dd; do 7100 for ac_exec_ext in '' $ac_executable_extensions; do 7101 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7102 as_fn_executable_p "$ac_path_lt_DD" || continue 7103if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7104 cmp -s conftest.i conftest.out \ 7105 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7106fi 7107 $ac_path_lt_DD_found && break 3 7108 done 7109 done 7110 done 7111IFS=$as_save_IFS 7112 if test -z "$ac_cv_path_lt_DD"; then 7113 : 7114 fi 7115else 7116 ac_cv_path_lt_DD=$lt_DD 7117fi 7118 7119rm -f conftest.i conftest2.i conftest.out 7120fi 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7122$as_echo "$ac_cv_path_lt_DD" >&6; } 7123 7124 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7126$as_echo_n "checking how to truncate binary pipes... " >&6; } 7127if ${lt_cv_truncate_bin+:} false; then : 7128 $as_echo_n "(cached) " >&6 7129else 7130 printf 0123456789abcdef0123456789abcdef >conftest.i 7131cat conftest.i conftest.i >conftest2.i 7132lt_cv_truncate_bin= 7133if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7134 cmp -s conftest.i conftest.out \ 7135 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7136fi 7137rm -f conftest.i conftest2.i conftest.out 7138test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7139fi 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7141$as_echo "$lt_cv_truncate_bin" >&6; } 7142 7143 7144 7145 7146 7147 7148 7149# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7150func_cc_basename () 7151{ 7152 for cc_temp in $*""; do 7153 case $cc_temp in 7154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7156 \-*) ;; 7157 *) break;; 7158 esac 7159 done 7160 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7161} 7162 7163# Check whether --enable-libtool-lock was given. 7164if test "${enable_libtool_lock+set}" = set; then : 7165 enableval=$enable_libtool_lock; 7166fi 7167 7168test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7169 7170# Some flags need to be propagated to the compiler or linker for good 7171# libtool support. 7172case $host in 7173ia64-*-hpux*) 7174 # Find out what ABI is being produced by ac_compile, and set mode 7175 # options accordingly. 7176 echo 'int i;' > conftest.$ac_ext 7177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7178 (eval $ac_compile) 2>&5 7179 ac_status=$? 7180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7181 test $ac_status = 0; }; then 7182 case `/usr/bin/file conftest.$ac_objext` in 7183 *ELF-32*) 7184 HPUX_IA64_MODE=32 7185 ;; 7186 *ELF-64*) 7187 HPUX_IA64_MODE=64 7188 ;; 7189 esac 7190 fi 7191 rm -rf conftest* 7192 ;; 7193*-*-irix6*) 7194 # Find out what ABI is being produced by ac_compile, and set linker 7195 # options accordingly. 7196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7198 (eval $ac_compile) 2>&5 7199 ac_status=$? 7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7201 test $ac_status = 0; }; then 7202 if test yes = "$lt_cv_prog_gnu_ld"; then 7203 case `/usr/bin/file conftest.$ac_objext` in 7204 *32-bit*) 7205 LD="${LD-ld} -melf32bsmip" 7206 ;; 7207 *N32*) 7208 LD="${LD-ld} -melf32bmipn32" 7209 ;; 7210 *64-bit*) 7211 LD="${LD-ld} -melf64bmip" 7212 ;; 7213 esac 7214 else 7215 case `/usr/bin/file conftest.$ac_objext` in 7216 *32-bit*) 7217 LD="${LD-ld} -32" 7218 ;; 7219 *N32*) 7220 LD="${LD-ld} -n32" 7221 ;; 7222 *64-bit*) 7223 LD="${LD-ld} -64" 7224 ;; 7225 esac 7226 fi 7227 fi 7228 rm -rf conftest* 7229 ;; 7230 7231mips64*-*linux*) 7232 # Find out what ABI is being produced by ac_compile, and set linker 7233 # options accordingly. 7234 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7236 (eval $ac_compile) 2>&5 7237 ac_status=$? 7238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7239 test $ac_status = 0; }; then 7240 emul=elf 7241 case `/usr/bin/file conftest.$ac_objext` in 7242 *32-bit*) 7243 emul="${emul}32" 7244 ;; 7245 *64-bit*) 7246 emul="${emul}64" 7247 ;; 7248 esac 7249 case `/usr/bin/file conftest.$ac_objext` in 7250 *MSB*) 7251 emul="${emul}btsmip" 7252 ;; 7253 *LSB*) 7254 emul="${emul}ltsmip" 7255 ;; 7256 esac 7257 case `/usr/bin/file conftest.$ac_objext` in 7258 *N32*) 7259 emul="${emul}n32" 7260 ;; 7261 esac 7262 LD="${LD-ld} -m $emul" 7263 fi 7264 rm -rf conftest* 7265 ;; 7266 7267x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7268s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7269 # Find out what ABI is being produced by ac_compile, and set linker 7270 # options accordingly. Note that the listed cases only cover the 7271 # situations where additional linker options are needed (such as when 7272 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7273 # vice versa); the common cases where no linker options are needed do 7274 # not appear in the list. 7275 echo 'int i;' > conftest.$ac_ext 7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7277 (eval $ac_compile) 2>&5 7278 ac_status=$? 7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7280 test $ac_status = 0; }; then 7281 case `/usr/bin/file conftest.o` in 7282 *32-bit*) 7283 case $host in 7284 x86_64-*kfreebsd*-gnu) 7285 LD="${LD-ld} -m elf_i386_fbsd" 7286 ;; 7287 x86_64-*linux*) 7288 case `/usr/bin/file conftest.o` in 7289 *x86-64*) 7290 LD="${LD-ld} -m elf32_x86_64" 7291 ;; 7292 *) 7293 LD="${LD-ld} -m elf_i386" 7294 ;; 7295 esac 7296 ;; 7297 powerpc64le-*linux*) 7298 LD="${LD-ld} -m elf32lppclinux" 7299 ;; 7300 powerpc64-*linux*) 7301 LD="${LD-ld} -m elf32ppclinux" 7302 ;; 7303 s390x-*linux*) 7304 LD="${LD-ld} -m elf_s390" 7305 ;; 7306 sparc64-*linux*) 7307 LD="${LD-ld} -m elf32_sparc" 7308 ;; 7309 esac 7310 ;; 7311 *64-bit*) 7312 case $host in 7313 x86_64-*kfreebsd*-gnu) 7314 LD="${LD-ld} -m elf_x86_64_fbsd" 7315 ;; 7316 x86_64-*linux*) 7317 LD="${LD-ld} -m elf_x86_64" 7318 ;; 7319 powerpcle-*linux*) 7320 LD="${LD-ld} -m elf64lppc" 7321 ;; 7322 powerpc-*linux*) 7323 LD="${LD-ld} -m elf64ppc" 7324 ;; 7325 s390*-*linux*|s390*-*tpf*) 7326 LD="${LD-ld} -m elf64_s390" 7327 ;; 7328 sparc*-*linux*) 7329 LD="${LD-ld} -m elf64_sparc" 7330 ;; 7331 esac 7332 ;; 7333 esac 7334 fi 7335 rm -rf conftest* 7336 ;; 7337 7338*-*-sco3.2v5*) 7339 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7340 SAVE_CFLAGS=$CFLAGS 7341 CFLAGS="$CFLAGS -belf" 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7343$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7344if ${lt_cv_cc_needs_belf+:} false; then : 7345 $as_echo_n "(cached) " >&6 7346else 7347 ac_ext=c 7348ac_cpp='$CPP $CPPFLAGS' 7349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7351ac_compiler_gnu=$ac_cv_c_compiler_gnu 7352 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355 7356int 7357main () 7358{ 7359 7360 ; 7361 return 0; 7362} 7363_ACEOF 7364if ac_fn_c_try_link "$LINENO"; then : 7365 lt_cv_cc_needs_belf=yes 7366else 7367 lt_cv_cc_needs_belf=no 7368fi 7369rm -f core conftest.err conftest.$ac_objext \ 7370 conftest$ac_exeext conftest.$ac_ext 7371 ac_ext=c 7372ac_cpp='$CPP $CPPFLAGS' 7373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7375ac_compiler_gnu=$ac_cv_c_compiler_gnu 7376 7377fi 7378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7379$as_echo "$lt_cv_cc_needs_belf" >&6; } 7380 if test yes != "$lt_cv_cc_needs_belf"; then 7381 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7382 CFLAGS=$SAVE_CFLAGS 7383 fi 7384 ;; 7385*-*solaris*) 7386 # Find out what ABI is being produced by ac_compile, and set linker 7387 # options accordingly. 7388 echo 'int i;' > conftest.$ac_ext 7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7390 (eval $ac_compile) 2>&5 7391 ac_status=$? 7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7393 test $ac_status = 0; }; then 7394 case `/usr/bin/file conftest.o` in 7395 *64-bit*) 7396 case $lt_cv_prog_gnu_ld in 7397 yes*) 7398 case $host in 7399 i?86-*-solaris*|x86_64-*-solaris*) 7400 LD="${LD-ld} -m elf_x86_64" 7401 ;; 7402 sparc*-*-solaris*) 7403 LD="${LD-ld} -m elf64_sparc" 7404 ;; 7405 esac 7406 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7407 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7408 LD=${LD-ld}_sol2 7409 fi 7410 ;; 7411 *) 7412 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7413 LD="${LD-ld} -64" 7414 fi 7415 ;; 7416 esac 7417 ;; 7418 esac 7419 fi 7420 rm -rf conftest* 7421 ;; 7422esac 7423 7424need_locks=$enable_libtool_lock 7425 7426if test -n "$ac_tool_prefix"; then 7427 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7428set dummy ${ac_tool_prefix}mt; ac_word=$2 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7430$as_echo_n "checking for $ac_word... " >&6; } 7431if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 if test -n "$MANIFEST_TOOL"; then 7435 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7436else 7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7438for as_dir in $PATH 7439do 7440 IFS=$as_save_IFS 7441 test -z "$as_dir" && as_dir=. 7442 for ac_exec_ext in '' $ac_executable_extensions; do 7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7444 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7446 break 2 7447 fi 7448done 7449 done 7450IFS=$as_save_IFS 7451 7452fi 7453fi 7454MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7455if test -n "$MANIFEST_TOOL"; then 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7457$as_echo "$MANIFEST_TOOL" >&6; } 7458else 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7460$as_echo "no" >&6; } 7461fi 7462 7463 7464fi 7465if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7466 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7467 # Extract the first word of "mt", so it can be a program name with args. 7468set dummy mt; ac_word=$2 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7470$as_echo_n "checking for $ac_word... " >&6; } 7471if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7472 $as_echo_n "(cached) " >&6 7473else 7474 if test -n "$ac_ct_MANIFEST_TOOL"; then 7475 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7476else 7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7478for as_dir in $PATH 7479do 7480 IFS=$as_save_IFS 7481 test -z "$as_dir" && as_dir=. 7482 for ac_exec_ext in '' $ac_executable_extensions; do 7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7484 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7486 break 2 7487 fi 7488done 7489 done 7490IFS=$as_save_IFS 7491 7492fi 7493fi 7494ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7495if test -n "$ac_ct_MANIFEST_TOOL"; then 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7497$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7498else 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7500$as_echo "no" >&6; } 7501fi 7502 7503 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7504 MANIFEST_TOOL=":" 7505 else 7506 case $cross_compiling:$ac_tool_warned in 7507yes:) 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7510ac_tool_warned=yes ;; 7511esac 7512 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7513 fi 7514else 7515 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7516fi 7517 7518test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7520$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7521if ${lt_cv_path_mainfest_tool+:} false; then : 7522 $as_echo_n "(cached) " >&6 7523else 7524 lt_cv_path_mainfest_tool=no 7525 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7526 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7527 cat conftest.err >&5 7528 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7529 lt_cv_path_mainfest_tool=yes 7530 fi 7531 rm -f conftest* 7532fi 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7534$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7535if test yes != "$lt_cv_path_mainfest_tool"; then 7536 MANIFEST_TOOL=: 7537fi 7538 7539 7540 7541 7542 7543 7544 case $host_os in 7545 rhapsody* | darwin*) 7546 if test -n "$ac_tool_prefix"; then 7547 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7548set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7550$as_echo_n "checking for $ac_word... " >&6; } 7551if ${ac_cv_prog_DSYMUTIL+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 if test -n "$DSYMUTIL"; then 7555 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7556else 7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7564 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569 done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574DSYMUTIL=$ac_cv_prog_DSYMUTIL 7575if test -n "$DSYMUTIL"; then 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7577$as_echo "$DSYMUTIL" >&6; } 7578else 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580$as_echo "no" >&6; } 7581fi 7582 7583 7584fi 7585if test -z "$ac_cv_prog_DSYMUTIL"; then 7586 ac_ct_DSYMUTIL=$DSYMUTIL 7587 # Extract the first word of "dsymutil", so it can be a program name with args. 7588set dummy dsymutil; ac_word=$2 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7590$as_echo_n "checking for $ac_word... " >&6; } 7591if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7592 $as_echo_n "(cached) " >&6 7593else 7594 if test -n "$ac_ct_DSYMUTIL"; then 7595 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7596else 7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598for as_dir in $PATH 7599do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7604 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608done 7609 done 7610IFS=$as_save_IFS 7611 7612fi 7613fi 7614ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7615if test -n "$ac_ct_DSYMUTIL"; then 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7617$as_echo "$ac_ct_DSYMUTIL" >&6; } 7618else 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7620$as_echo "no" >&6; } 7621fi 7622 7623 if test "x$ac_ct_DSYMUTIL" = x; then 7624 DSYMUTIL=":" 7625 else 7626 case $cross_compiling:$ac_tool_warned in 7627yes:) 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7630ac_tool_warned=yes ;; 7631esac 7632 DSYMUTIL=$ac_ct_DSYMUTIL 7633 fi 7634else 7635 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7636fi 7637 7638 if test -n "$ac_tool_prefix"; then 7639 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7640set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7642$as_echo_n "checking for $ac_word... " >&6; } 7643if ${ac_cv_prog_NMEDIT+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 if test -n "$NMEDIT"; then 7647 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7648else 7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7650for as_dir in $PATH 7651do 7652 IFS=$as_save_IFS 7653 test -z "$as_dir" && as_dir=. 7654 for ac_exec_ext in '' $ac_executable_extensions; do 7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7656 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7658 break 2 7659 fi 7660done 7661 done 7662IFS=$as_save_IFS 7663 7664fi 7665fi 7666NMEDIT=$ac_cv_prog_NMEDIT 7667if test -n "$NMEDIT"; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7669$as_echo "$NMEDIT" >&6; } 7670else 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7672$as_echo "no" >&6; } 7673fi 7674 7675 7676fi 7677if test -z "$ac_cv_prog_NMEDIT"; then 7678 ac_ct_NMEDIT=$NMEDIT 7679 # Extract the first word of "nmedit", so it can be a program name with args. 7680set dummy nmedit; ac_word=$2 7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7682$as_echo_n "checking for $ac_word... " >&6; } 7683if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7684 $as_echo_n "(cached) " >&6 7685else 7686 if test -n "$ac_ct_NMEDIT"; then 7687 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7688else 7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7690for as_dir in $PATH 7691do 7692 IFS=$as_save_IFS 7693 test -z "$as_dir" && as_dir=. 7694 for ac_exec_ext in '' $ac_executable_extensions; do 7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7696 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7698 break 2 7699 fi 7700done 7701 done 7702IFS=$as_save_IFS 7703 7704fi 7705fi 7706ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7707if test -n "$ac_ct_NMEDIT"; then 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7709$as_echo "$ac_ct_NMEDIT" >&6; } 7710else 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7712$as_echo "no" >&6; } 7713fi 7714 7715 if test "x$ac_ct_NMEDIT" = x; then 7716 NMEDIT=":" 7717 else 7718 case $cross_compiling:$ac_tool_warned in 7719yes:) 7720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7722ac_tool_warned=yes ;; 7723esac 7724 NMEDIT=$ac_ct_NMEDIT 7725 fi 7726else 7727 NMEDIT="$ac_cv_prog_NMEDIT" 7728fi 7729 7730 if test -n "$ac_tool_prefix"; then 7731 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7732set dummy ${ac_tool_prefix}lipo; ac_word=$2 7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7734$as_echo_n "checking for $ac_word... " >&6; } 7735if ${ac_cv_prog_LIPO+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737else 7738 if test -n "$LIPO"; then 7739 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7740else 7741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7742for as_dir in $PATH 7743do 7744 IFS=$as_save_IFS 7745 test -z "$as_dir" && as_dir=. 7746 for ac_exec_ext in '' $ac_executable_extensions; do 7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7748 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7750 break 2 7751 fi 7752done 7753 done 7754IFS=$as_save_IFS 7755 7756fi 7757fi 7758LIPO=$ac_cv_prog_LIPO 7759if test -n "$LIPO"; then 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7761$as_echo "$LIPO" >&6; } 7762else 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7764$as_echo "no" >&6; } 7765fi 7766 7767 7768fi 7769if test -z "$ac_cv_prog_LIPO"; then 7770 ac_ct_LIPO=$LIPO 7771 # Extract the first word of "lipo", so it can be a program name with args. 7772set dummy lipo; ac_word=$2 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7774$as_echo_n "checking for $ac_word... " >&6; } 7775if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 if test -n "$ac_ct_LIPO"; then 7779 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7780else 7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782for as_dir in $PATH 7783do 7784 IFS=$as_save_IFS 7785 test -z "$as_dir" && as_dir=. 7786 for ac_exec_ext in '' $ac_executable_extensions; do 7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7788 ac_cv_prog_ac_ct_LIPO="lipo" 7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7790 break 2 7791 fi 7792done 7793 done 7794IFS=$as_save_IFS 7795 7796fi 7797fi 7798ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7799if test -n "$ac_ct_LIPO"; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7801$as_echo "$ac_ct_LIPO" >&6; } 7802else 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7804$as_echo "no" >&6; } 7805fi 7806 7807 if test "x$ac_ct_LIPO" = x; then 7808 LIPO=":" 7809 else 7810 case $cross_compiling:$ac_tool_warned in 7811yes:) 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7814ac_tool_warned=yes ;; 7815esac 7816 LIPO=$ac_ct_LIPO 7817 fi 7818else 7819 LIPO="$ac_cv_prog_LIPO" 7820fi 7821 7822 if test -n "$ac_tool_prefix"; then 7823 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7824set dummy ${ac_tool_prefix}otool; ac_word=$2 7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7826$as_echo_n "checking for $ac_word... " >&6; } 7827if ${ac_cv_prog_OTOOL+:} false; then : 7828 $as_echo_n "(cached) " >&6 7829else 7830 if test -n "$OTOOL"; then 7831 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7832else 7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7834for as_dir in $PATH 7835do 7836 IFS=$as_save_IFS 7837 test -z "$as_dir" && as_dir=. 7838 for ac_exec_ext in '' $ac_executable_extensions; do 7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7840 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7842 break 2 7843 fi 7844done 7845 done 7846IFS=$as_save_IFS 7847 7848fi 7849fi 7850OTOOL=$ac_cv_prog_OTOOL 7851if test -n "$OTOOL"; then 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7853$as_echo "$OTOOL" >&6; } 7854else 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7856$as_echo "no" >&6; } 7857fi 7858 7859 7860fi 7861if test -z "$ac_cv_prog_OTOOL"; then 7862 ac_ct_OTOOL=$OTOOL 7863 # Extract the first word of "otool", so it can be a program name with args. 7864set dummy otool; ac_word=$2 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7866$as_echo_n "checking for $ac_word... " >&6; } 7867if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869else 7870 if test -n "$ac_ct_OTOOL"; then 7871 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7872else 7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7874for as_dir in $PATH 7875do 7876 IFS=$as_save_IFS 7877 test -z "$as_dir" && as_dir=. 7878 for ac_exec_ext in '' $ac_executable_extensions; do 7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7880 ac_cv_prog_ac_ct_OTOOL="otool" 7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7882 break 2 7883 fi 7884done 7885 done 7886IFS=$as_save_IFS 7887 7888fi 7889fi 7890ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7891if test -n "$ac_ct_OTOOL"; then 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7893$as_echo "$ac_ct_OTOOL" >&6; } 7894else 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7896$as_echo "no" >&6; } 7897fi 7898 7899 if test "x$ac_ct_OTOOL" = x; then 7900 OTOOL=":" 7901 else 7902 case $cross_compiling:$ac_tool_warned in 7903yes:) 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7906ac_tool_warned=yes ;; 7907esac 7908 OTOOL=$ac_ct_OTOOL 7909 fi 7910else 7911 OTOOL="$ac_cv_prog_OTOOL" 7912fi 7913 7914 if test -n "$ac_tool_prefix"; then 7915 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7916set dummy ${ac_tool_prefix}otool64; ac_word=$2 7917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7918$as_echo_n "checking for $ac_word... " >&6; } 7919if ${ac_cv_prog_OTOOL64+:} false; then : 7920 $as_echo_n "(cached) " >&6 7921else 7922 if test -n "$OTOOL64"; then 7923 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7924else 7925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7926for as_dir in $PATH 7927do 7928 IFS=$as_save_IFS 7929 test -z "$as_dir" && as_dir=. 7930 for ac_exec_ext in '' $ac_executable_extensions; do 7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7932 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7934 break 2 7935 fi 7936done 7937 done 7938IFS=$as_save_IFS 7939 7940fi 7941fi 7942OTOOL64=$ac_cv_prog_OTOOL64 7943if test -n "$OTOOL64"; then 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7945$as_echo "$OTOOL64" >&6; } 7946else 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7948$as_echo "no" >&6; } 7949fi 7950 7951 7952fi 7953if test -z "$ac_cv_prog_OTOOL64"; then 7954 ac_ct_OTOOL64=$OTOOL64 7955 # Extract the first word of "otool64", so it can be a program name with args. 7956set dummy otool64; ac_word=$2 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7958$as_echo_n "checking for $ac_word... " >&6; } 7959if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 if test -n "$ac_ct_OTOOL64"; then 7963 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7964else 7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7966for as_dir in $PATH 7967do 7968 IFS=$as_save_IFS 7969 test -z "$as_dir" && as_dir=. 7970 for ac_exec_ext in '' $ac_executable_extensions; do 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7972 ac_cv_prog_ac_ct_OTOOL64="otool64" 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7974 break 2 7975 fi 7976done 7977 done 7978IFS=$as_save_IFS 7979 7980fi 7981fi 7982ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7983if test -n "$ac_ct_OTOOL64"; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7985$as_echo "$ac_ct_OTOOL64" >&6; } 7986else 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7988$as_echo "no" >&6; } 7989fi 7990 7991 if test "x$ac_ct_OTOOL64" = x; then 7992 OTOOL64=":" 7993 else 7994 case $cross_compiling:$ac_tool_warned in 7995yes:) 7996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7998ac_tool_warned=yes ;; 7999esac 8000 OTOOL64=$ac_ct_OTOOL64 8001 fi 8002else 8003 OTOOL64="$ac_cv_prog_OTOOL64" 8004fi 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8033$as_echo_n "checking for -single_module linker flag... " >&6; } 8034if ${lt_cv_apple_cc_single_mod+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036else 8037 lt_cv_apple_cc_single_mod=no 8038 if test -z "$LT_MULTI_MODULE"; then 8039 # By default we will add the -single_module flag. You can override 8040 # by either setting the environment variable LT_MULTI_MODULE 8041 # non-empty at configure time, or by adding -multi_module to the 8042 # link flags. 8043 rm -rf libconftest.dylib* 8044 echo "int foo(void){return 1;}" > conftest.c 8045 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8046-dynamiclib -Wl,-single_module conftest.c" >&5 8047 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8048 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8049 _lt_result=$? 8050 # If there is a non-empty error log, and "single_module" 8051 # appears in it, assume the flag caused a linker warning 8052 if test -s conftest.err && $GREP single_module conftest.err; then 8053 cat conftest.err >&5 8054 # Otherwise, if the output was created with a 0 exit code from 8055 # the compiler, it worked. 8056 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8057 lt_cv_apple_cc_single_mod=yes 8058 else 8059 cat conftest.err >&5 8060 fi 8061 rm -rf libconftest.dylib* 8062 rm -f conftest.* 8063 fi 8064fi 8065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8066$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8067 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8069$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8070if ${lt_cv_ld_exported_symbols_list+:} false; then : 8071 $as_echo_n "(cached) " >&6 8072else 8073 lt_cv_ld_exported_symbols_list=no 8074 save_LDFLAGS=$LDFLAGS 8075 echo "_main" > conftest.sym 8076 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079 8080int 8081main () 8082{ 8083 8084 ; 8085 return 0; 8086} 8087_ACEOF 8088if ac_fn_c_try_link "$LINENO"; then : 8089 lt_cv_ld_exported_symbols_list=yes 8090else 8091 lt_cv_ld_exported_symbols_list=no 8092fi 8093rm -f core conftest.err conftest.$ac_objext \ 8094 conftest$ac_exeext conftest.$ac_ext 8095 LDFLAGS=$save_LDFLAGS 8096 8097fi 8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8099$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8100 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8102$as_echo_n "checking for -force_load linker flag... " >&6; } 8103if ${lt_cv_ld_force_load+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 lt_cv_ld_force_load=no 8107 cat > conftest.c << _LT_EOF 8108int forced_loaded() { return 2;} 8109_LT_EOF 8110 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8111 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8112 echo "$AR cru libconftest.a conftest.o" >&5 8113 $AR cru libconftest.a conftest.o 2>&5 8114 echo "$RANLIB libconftest.a" >&5 8115 $RANLIB libconftest.a 2>&5 8116 cat > conftest.c << _LT_EOF 8117int main() { return 0;} 8118_LT_EOF 8119 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8120 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8121 _lt_result=$? 8122 if test -s conftest.err && $GREP force_load conftest.err; then 8123 cat conftest.err >&5 8124 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8125 lt_cv_ld_force_load=yes 8126 else 8127 cat conftest.err >&5 8128 fi 8129 rm -f conftest.err libconftest.a conftest conftest.c 8130 rm -rf conftest.dSYM 8131 8132fi 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8134$as_echo "$lt_cv_ld_force_load" >&6; } 8135 case $host_os in 8136 rhapsody* | darwin1.[012]) 8137 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8138 darwin1.*) 8139 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8140 darwin*) # darwin 5.x on 8141 # if running on 10.5 or later, the deployment target defaults 8142 # to the OS version, if on x86, and 10.4, the deployment 8143 # target defaults to 10.4. Don't you love it? 8144 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8145 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8146 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8147 10.[012][,.]*) 8148 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8149 10.*) 8150 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8151 esac 8152 ;; 8153 esac 8154 if test yes = "$lt_cv_apple_cc_single_mod"; then 8155 _lt_dar_single_mod='$single_module' 8156 fi 8157 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8158 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8159 else 8160 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8161 fi 8162 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8163 _lt_dsymutil='~$DSYMUTIL $lib || :' 8164 else 8165 _lt_dsymutil= 8166 fi 8167 ;; 8168 esac 8169 8170# func_munge_path_list VARIABLE PATH 8171# ----------------------------------- 8172# VARIABLE is name of variable containing _space_ separated list of 8173# directories to be munged by the contents of PATH, which is string 8174# having a format: 8175# "DIR[:DIR]:" 8176# string "DIR[ DIR]" will be prepended to VARIABLE 8177# ":DIR[:DIR]" 8178# string "DIR[ DIR]" will be appended to VARIABLE 8179# "DIRP[:DIRP]::[DIRA:]DIRA" 8180# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8181# "DIRA[ DIRA]" will be appended to VARIABLE 8182# "DIR[:DIR]" 8183# VARIABLE will be replaced by "DIR[ DIR]" 8184func_munge_path_list () 8185{ 8186 case x$2 in 8187 x) 8188 ;; 8189 *:) 8190 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8191 ;; 8192 x:*) 8193 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8194 ;; 8195 *::*) 8196 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8197 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8198 ;; 8199 *) 8200 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8201 ;; 8202 esac 8203} 8204 8205for ac_header in dlfcn.h 8206do : 8207 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8208" 8209if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8210 cat >>confdefs.h <<_ACEOF 8211#define HAVE_DLFCN_H 1 8212_ACEOF 8213 8214fi 8215 8216done 8217 8218 8219 8220 8221 8222# Set options 8223 8224 8225 8226 enable_dlopen=no 8227 8228 8229 enable_win32_dll=no 8230 8231 8232 # Check whether --enable-shared was given. 8233if test "${enable_shared+set}" = set; then : 8234 enableval=$enable_shared; p=${PACKAGE-default} 8235 case $enableval in 8236 yes) enable_shared=yes ;; 8237 no) enable_shared=no ;; 8238 *) 8239 enable_shared=no 8240 # Look at the argument we got. We use all the common list separators. 8241 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8242 for pkg in $enableval; do 8243 IFS=$lt_save_ifs 8244 if test "X$pkg" = "X$p"; then 8245 enable_shared=yes 8246 fi 8247 done 8248 IFS=$lt_save_ifs 8249 ;; 8250 esac 8251else 8252 enable_shared=yes 8253fi 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 # Check whether --enable-static was given. 8264if test "${enable_static+set}" = set; then : 8265 enableval=$enable_static; p=${PACKAGE-default} 8266 case $enableval in 8267 yes) enable_static=yes ;; 8268 no) enable_static=no ;; 8269 *) 8270 enable_static=no 8271 # Look at the argument we got. We use all the common list separators. 8272 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8273 for pkg in $enableval; do 8274 IFS=$lt_save_ifs 8275 if test "X$pkg" = "X$p"; then 8276 enable_static=yes 8277 fi 8278 done 8279 IFS=$lt_save_ifs 8280 ;; 8281 esac 8282else 8283 enable_static=yes 8284fi 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295# Check whether --with-pic was given. 8296if test "${with_pic+set}" = set; then : 8297 withval=$with_pic; lt_p=${PACKAGE-default} 8298 case $withval in 8299 yes|no) pic_mode=$withval ;; 8300 *) 8301 pic_mode=default 8302 # Look at the argument we got. We use all the common list separators. 8303 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8304 for lt_pkg in $withval; do 8305 IFS=$lt_save_ifs 8306 if test "X$lt_pkg" = "X$lt_p"; then 8307 pic_mode=yes 8308 fi 8309 done 8310 IFS=$lt_save_ifs 8311 ;; 8312 esac 8313else 8314 pic_mode=default 8315fi 8316 8317 8318 8319 8320 8321 8322 8323 8324 # Check whether --enable-fast-install was given. 8325if test "${enable_fast_install+set}" = set; then : 8326 enableval=$enable_fast_install; p=${PACKAGE-default} 8327 case $enableval in 8328 yes) enable_fast_install=yes ;; 8329 no) enable_fast_install=no ;; 8330 *) 8331 enable_fast_install=no 8332 # Look at the argument we got. We use all the common list separators. 8333 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8334 for pkg in $enableval; do 8335 IFS=$lt_save_ifs 8336 if test "X$pkg" = "X$p"; then 8337 enable_fast_install=yes 8338 fi 8339 done 8340 IFS=$lt_save_ifs 8341 ;; 8342 esac 8343else 8344 enable_fast_install=yes 8345fi 8346 8347 8348 8349 8350 8351 8352 8353 8354 shared_archive_member_spec= 8355case $host,$enable_shared in 8356power*-*-aix[5-9]*,yes) 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8358$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8359 8360# Check whether --with-aix-soname was given. 8361if test "${with_aix_soname+set}" = set; then : 8362 withval=$with_aix_soname; case $withval in 8363 aix|svr4|both) 8364 ;; 8365 *) 8366 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8367 ;; 8368 esac 8369 lt_cv_with_aix_soname=$with_aix_soname 8370else 8371 if ${lt_cv_with_aix_soname+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 lt_cv_with_aix_soname=aix 8375fi 8376 8377 with_aix_soname=$lt_cv_with_aix_soname 8378fi 8379 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8381$as_echo "$with_aix_soname" >&6; } 8382 if test aix != "$with_aix_soname"; then 8383 # For the AIX way of multilib, we name the shared archive member 8384 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8385 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8386 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8387 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8388 if test 64 = "${OBJECT_MODE-32}"; then 8389 shared_archive_member_spec=shr_64 8390 else 8391 shared_archive_member_spec=shr 8392 fi 8393 fi 8394 ;; 8395*) 8396 with_aix_soname=aix 8397 ;; 8398esac 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409# This can be used to rebuild libtool when needed 8410LIBTOOL_DEPS=$ltmain 8411 8412# Always use our own libtool. 8413LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444test -z "$LN_S" && LN_S="ln -s" 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459if test -n "${ZSH_VERSION+set}"; then 8460 setopt NO_GLOB_SUBST 8461fi 8462 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8464$as_echo_n "checking for objdir... " >&6; } 8465if ${lt_cv_objdir+:} false; then : 8466 $as_echo_n "(cached) " >&6 8467else 8468 rm -f .libs 2>/dev/null 8469mkdir .libs 2>/dev/null 8470if test -d .libs; then 8471 lt_cv_objdir=.libs 8472else 8473 # MS-DOS does not allow filenames that begin with a dot. 8474 lt_cv_objdir=_libs 8475fi 8476rmdir .libs 2>/dev/null 8477fi 8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8479$as_echo "$lt_cv_objdir" >&6; } 8480objdir=$lt_cv_objdir 8481 8482 8483 8484 8485 8486cat >>confdefs.h <<_ACEOF 8487#define LT_OBJDIR "$lt_cv_objdir/" 8488_ACEOF 8489 8490 8491 8492 8493case $host_os in 8494aix3*) 8495 # AIX sometimes has problems with the GCC collect2 program. For some 8496 # reason, if we set the COLLECT_NAMES environment variable, the problems 8497 # vanish in a puff of smoke. 8498 if test set != "${COLLECT_NAMES+set}"; then 8499 COLLECT_NAMES= 8500 export COLLECT_NAMES 8501 fi 8502 ;; 8503esac 8504 8505# Global variables: 8506ofile=libtool 8507can_build_shared=yes 8508 8509# All known linkers require a '.a' archive for static linking (except MSVC, 8510# which needs '.lib'). 8511libext=a 8512 8513with_gnu_ld=$lt_cv_prog_gnu_ld 8514 8515old_CC=$CC 8516old_CFLAGS=$CFLAGS 8517 8518# Set sane defaults for various variables 8519test -z "$CC" && CC=cc 8520test -z "$LTCC" && LTCC=$CC 8521test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8522test -z "$LD" && LD=ld 8523test -z "$ac_objext" && ac_objext=o 8524 8525func_cc_basename $compiler 8526cc_basename=$func_cc_basename_result 8527 8528 8529# Only perform the check for file, if the check method requires it 8530test -z "$MAGIC_CMD" && MAGIC_CMD=file 8531case $deplibs_check_method in 8532file_magic*) 8533 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8535$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8536if ${lt_cv_path_MAGIC_CMD+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 case $MAGIC_CMD in 8540[\\/*] | ?:[\\/]*) 8541 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8542 ;; 8543*) 8544 lt_save_MAGIC_CMD=$MAGIC_CMD 8545 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8546 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8547 for ac_dir in $ac_dummy; do 8548 IFS=$lt_save_ifs 8549 test -z "$ac_dir" && ac_dir=. 8550 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8551 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8552 if test -n "$file_magic_test_file"; then 8553 case $deplibs_check_method in 8554 "file_magic "*) 8555 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8556 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8558 $EGREP "$file_magic_regex" > /dev/null; then 8559 : 8560 else 8561 cat <<_LT_EOF 1>&2 8562 8563*** Warning: the command libtool uses to detect shared libraries, 8564*** $file_magic_cmd, produces output that libtool cannot recognize. 8565*** The result is that libtool may fail to recognize shared libraries 8566*** as such. This will affect the creation of libtool libraries that 8567*** depend on shared libraries, but programs linked with such libtool 8568*** libraries will work regardless of this problem. Nevertheless, you 8569*** may want to report the problem to your system manager and/or to 8570*** bug-libtool@gnu.org 8571 8572_LT_EOF 8573 fi ;; 8574 esac 8575 fi 8576 break 8577 fi 8578 done 8579 IFS=$lt_save_ifs 8580 MAGIC_CMD=$lt_save_MAGIC_CMD 8581 ;; 8582esac 8583fi 8584 8585MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8586if test -n "$MAGIC_CMD"; then 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8588$as_echo "$MAGIC_CMD" >&6; } 8589else 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8591$as_echo "no" >&6; } 8592fi 8593 8594 8595 8596 8597 8598if test -z "$lt_cv_path_MAGIC_CMD"; then 8599 if test -n "$ac_tool_prefix"; then 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8601$as_echo_n "checking for file... " >&6; } 8602if ${lt_cv_path_MAGIC_CMD+:} false; then : 8603 $as_echo_n "(cached) " >&6 8604else 8605 case $MAGIC_CMD in 8606[\\/*] | ?:[\\/]*) 8607 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8608 ;; 8609*) 8610 lt_save_MAGIC_CMD=$MAGIC_CMD 8611 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8612 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8613 for ac_dir in $ac_dummy; do 8614 IFS=$lt_save_ifs 8615 test -z "$ac_dir" && ac_dir=. 8616 if test -f "$ac_dir/file"; then 8617 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8618 if test -n "$file_magic_test_file"; then 8619 case $deplibs_check_method in 8620 "file_magic "*) 8621 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8622 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8623 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8624 $EGREP "$file_magic_regex" > /dev/null; then 8625 : 8626 else 8627 cat <<_LT_EOF 1>&2 8628 8629*** Warning: the command libtool uses to detect shared libraries, 8630*** $file_magic_cmd, produces output that libtool cannot recognize. 8631*** The result is that libtool may fail to recognize shared libraries 8632*** as such. This will affect the creation of libtool libraries that 8633*** depend on shared libraries, but programs linked with such libtool 8634*** libraries will work regardless of this problem. Nevertheless, you 8635*** may want to report the problem to your system manager and/or to 8636*** bug-libtool@gnu.org 8637 8638_LT_EOF 8639 fi ;; 8640 esac 8641 fi 8642 break 8643 fi 8644 done 8645 IFS=$lt_save_ifs 8646 MAGIC_CMD=$lt_save_MAGIC_CMD 8647 ;; 8648esac 8649fi 8650 8651MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8652if test -n "$MAGIC_CMD"; then 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8654$as_echo "$MAGIC_CMD" >&6; } 8655else 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8657$as_echo "no" >&6; } 8658fi 8659 8660 8661 else 8662 MAGIC_CMD=: 8663 fi 8664fi 8665 8666 fi 8667 ;; 8668esac 8669 8670# Use C for the default configuration in the libtool script 8671 8672lt_save_CC=$CC 8673ac_ext=c 8674ac_cpp='$CPP $CPPFLAGS' 8675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8677ac_compiler_gnu=$ac_cv_c_compiler_gnu 8678 8679 8680# Source file extension for C test sources. 8681ac_ext=c 8682 8683# Object file extension for compiled C test sources. 8684objext=o 8685objext=$objext 8686 8687# Code to be used in simple compile tests 8688lt_simple_compile_test_code="int some_variable = 0;" 8689 8690# Code to be used in simple link tests 8691lt_simple_link_test_code='int main(){return(0);}' 8692 8693 8694 8695 8696 8697 8698 8699# If no C compiler was specified, use CC. 8700LTCC=${LTCC-"$CC"} 8701 8702# If no C compiler flags were specified, use CFLAGS. 8703LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8704 8705# Allow CC to be a program name with arguments. 8706compiler=$CC 8707 8708# Save the default compiler, since it gets overwritten when the other 8709# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8710compiler_DEFAULT=$CC 8711 8712# save warnings/boilerplate of simple test code 8713ac_outfile=conftest.$ac_objext 8714echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8715eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8716_lt_compiler_boilerplate=`cat conftest.err` 8717$RM conftest* 8718 8719ac_outfile=conftest.$ac_objext 8720echo "$lt_simple_link_test_code" >conftest.$ac_ext 8721eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8722_lt_linker_boilerplate=`cat conftest.err` 8723$RM -r conftest* 8724 8725 8726## CAVEAT EMPTOR: 8727## There is no encapsulation within the following macros, do not change 8728## the running order or otherwise move them around unless you know exactly 8729## what you are doing... 8730if test -n "$compiler"; then 8731 8732lt_prog_compiler_no_builtin_flag= 8733 8734if test yes = "$GCC"; then 8735 case $cc_basename in 8736 nvcc*) 8737 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8738 *) 8739 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8740 esac 8741 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8743$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8744if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8745 $as_echo_n "(cached) " >&6 8746else 8747 lt_cv_prog_compiler_rtti_exceptions=no 8748 ac_outfile=conftest.$ac_objext 8749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8750 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8751 # Insert the option either (1) after the last *FLAGS variable, or 8752 # (2) before a word containing "conftest.", or (3) at the end. 8753 # Note that $ac_compile itself does not contain backslashes and begins 8754 # with a dollar sign (not a hyphen), so the echo should work correctly. 8755 # The option is referenced via a variable to avoid confusing sed. 8756 lt_compile=`echo "$ac_compile" | $SED \ 8757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8759 -e 's:$: $lt_compiler_flag:'` 8760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8761 (eval "$lt_compile" 2>conftest.err) 8762 ac_status=$? 8763 cat conftest.err >&5 8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8765 if (exit $ac_status) && test -s "$ac_outfile"; then 8766 # The compiler can only warn and ignore the option if not recognized 8767 # So say no if there are warnings other than the usual output. 8768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8770 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8771 lt_cv_prog_compiler_rtti_exceptions=yes 8772 fi 8773 fi 8774 $RM conftest* 8775 8776fi 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8778$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8779 8780if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8781 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8782else 8783 : 8784fi 8785 8786fi 8787 8788 8789 8790 8791 8792 8793 lt_prog_compiler_wl= 8794lt_prog_compiler_pic= 8795lt_prog_compiler_static= 8796 8797 8798 if test yes = "$GCC"; then 8799 lt_prog_compiler_wl='-Wl,' 8800 lt_prog_compiler_static='-static' 8801 8802 case $host_os in 8803 aix*) 8804 # All AIX code is PIC. 8805 if test ia64 = "$host_cpu"; then 8806 # AIX 5 now supports IA64 processor 8807 lt_prog_compiler_static='-Bstatic' 8808 fi 8809 lt_prog_compiler_pic='-fPIC' 8810 ;; 8811 8812 amigaos*) 8813 case $host_cpu in 8814 powerpc) 8815 # see comment about AmigaOS4 .so support 8816 lt_prog_compiler_pic='-fPIC' 8817 ;; 8818 m68k) 8819 # FIXME: we need at least 68020 code to build shared libraries, but 8820 # adding the '-m68020' flag to GCC prevents building anything better, 8821 # like '-m68040'. 8822 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8823 ;; 8824 esac 8825 ;; 8826 8827 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8828 # PIC is the default for these OSes. 8829 ;; 8830 8831 mingw* | cygwin* | pw32* | os2* | cegcc*) 8832 # This hack is so that the source file can tell whether it is being 8833 # built for inclusion in a dll (and should export symbols for example). 8834 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8835 # (--disable-auto-import) libraries 8836 lt_prog_compiler_pic='-DDLL_EXPORT' 8837 case $host_os in 8838 os2*) 8839 lt_prog_compiler_static='$wl-static' 8840 ;; 8841 esac 8842 ;; 8843 8844 darwin* | rhapsody*) 8845 # PIC is the default on this platform 8846 # Common symbols not allowed in MH_DYLIB files 8847 lt_prog_compiler_pic='-fno-common' 8848 ;; 8849 8850 haiku*) 8851 # PIC is the default for Haiku. 8852 # The "-static" flag exists, but is broken. 8853 lt_prog_compiler_static= 8854 ;; 8855 8856 hpux*) 8857 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8858 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8859 # sets the default TLS model and affects inlining. 8860 case $host_cpu in 8861 hppa*64*) 8862 # +Z the default 8863 ;; 8864 *) 8865 lt_prog_compiler_pic='-fPIC' 8866 ;; 8867 esac 8868 ;; 8869 8870 interix[3-9]*) 8871 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8872 # Instead, we relocate shared libraries at runtime. 8873 ;; 8874 8875 msdosdjgpp*) 8876 # Just because we use GCC doesn't mean we suddenly get shared libraries 8877 # on systems that don't support them. 8878 lt_prog_compiler_can_build_shared=no 8879 enable_shared=no 8880 ;; 8881 8882 *nto* | *qnx*) 8883 # QNX uses GNU C++, but need to define -shared option too, otherwise 8884 # it will coredump. 8885 lt_prog_compiler_pic='-fPIC -shared' 8886 ;; 8887 8888 sysv4*MP*) 8889 if test -d /usr/nec; then 8890 lt_prog_compiler_pic=-Kconform_pic 8891 fi 8892 ;; 8893 8894 *) 8895 lt_prog_compiler_pic='-fPIC' 8896 ;; 8897 esac 8898 8899 case $cc_basename in 8900 nvcc*) # Cuda Compiler Driver 2.2 8901 lt_prog_compiler_wl='-Xlinker ' 8902 if test -n "$lt_prog_compiler_pic"; then 8903 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8904 fi 8905 ;; 8906 esac 8907 else 8908 # PORTME Check for flag to pass linker flags through the system compiler. 8909 case $host_os in 8910 aix*) 8911 lt_prog_compiler_wl='-Wl,' 8912 if test ia64 = "$host_cpu"; then 8913 # AIX 5 now supports IA64 processor 8914 lt_prog_compiler_static='-Bstatic' 8915 else 8916 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8917 fi 8918 ;; 8919 8920 darwin* | rhapsody*) 8921 # PIC is the default on this platform 8922 # Common symbols not allowed in MH_DYLIB files 8923 lt_prog_compiler_pic='-fno-common' 8924 case $cc_basename in 8925 nagfor*) 8926 # NAG Fortran compiler 8927 lt_prog_compiler_wl='-Wl,-Wl,,' 8928 lt_prog_compiler_pic='-PIC' 8929 lt_prog_compiler_static='-Bstatic' 8930 ;; 8931 esac 8932 ;; 8933 8934 mingw* | cygwin* | pw32* | os2* | cegcc*) 8935 # This hack is so that the source file can tell whether it is being 8936 # built for inclusion in a dll (and should export symbols for example). 8937 lt_prog_compiler_pic='-DDLL_EXPORT' 8938 case $host_os in 8939 os2*) 8940 lt_prog_compiler_static='$wl-static' 8941 ;; 8942 esac 8943 ;; 8944 8945 hpux9* | hpux10* | hpux11*) 8946 lt_prog_compiler_wl='-Wl,' 8947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8948 # not for PA HP-UX. 8949 case $host_cpu in 8950 hppa*64*|ia64*) 8951 # +Z the default 8952 ;; 8953 *) 8954 lt_prog_compiler_pic='+Z' 8955 ;; 8956 esac 8957 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8958 lt_prog_compiler_static='$wl-a ${wl}archive' 8959 ;; 8960 8961 irix5* | irix6* | nonstopux*) 8962 lt_prog_compiler_wl='-Wl,' 8963 # PIC (with -KPIC) is the default. 8964 lt_prog_compiler_static='-non_shared' 8965 ;; 8966 8967 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8968 case $cc_basename in 8969 # old Intel for x86_64, which still supported -KPIC. 8970 ecc*) 8971 lt_prog_compiler_wl='-Wl,' 8972 lt_prog_compiler_pic='-KPIC' 8973 lt_prog_compiler_static='-static' 8974 ;; 8975 # icc used to be incompatible with GCC. 8976 # ICC 10 doesn't accept -KPIC any more. 8977 icc* | ifort*) 8978 lt_prog_compiler_wl='-Wl,' 8979 lt_prog_compiler_pic='-fPIC' 8980 lt_prog_compiler_static='-static' 8981 ;; 8982 # Lahey Fortran 8.1. 8983 lf95*) 8984 lt_prog_compiler_wl='-Wl,' 8985 lt_prog_compiler_pic='--shared' 8986 lt_prog_compiler_static='--static' 8987 ;; 8988 nagfor*) 8989 # NAG Fortran compiler 8990 lt_prog_compiler_wl='-Wl,-Wl,,' 8991 lt_prog_compiler_pic='-PIC' 8992 lt_prog_compiler_static='-Bstatic' 8993 ;; 8994 tcc*) 8995 # Fabrice Bellard et al's Tiny C Compiler 8996 lt_prog_compiler_wl='-Wl,' 8997 lt_prog_compiler_pic='-fPIC' 8998 lt_prog_compiler_static='-static' 8999 ;; 9000 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9001 # Portland Group compilers (*not* the Pentium gcc compiler, 9002 # which looks to be a dead project) 9003 lt_prog_compiler_wl='-Wl,' 9004 lt_prog_compiler_pic='-fpic' 9005 lt_prog_compiler_static='-Bstatic' 9006 ;; 9007 ccc*) 9008 lt_prog_compiler_wl='-Wl,' 9009 # All Alpha code is PIC. 9010 lt_prog_compiler_static='-non_shared' 9011 ;; 9012 xl* | bgxl* | bgf* | mpixl*) 9013 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9014 lt_prog_compiler_wl='-Wl,' 9015 lt_prog_compiler_pic='-qpic' 9016 lt_prog_compiler_static='-qstaticlink' 9017 ;; 9018 *) 9019 case `$CC -V 2>&1 | sed 5q` in 9020 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9021 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9022 lt_prog_compiler_pic='-KPIC' 9023 lt_prog_compiler_static='-Bstatic' 9024 lt_prog_compiler_wl='' 9025 ;; 9026 *Sun\ F* | *Sun*Fortran*) 9027 lt_prog_compiler_pic='-KPIC' 9028 lt_prog_compiler_static='-Bstatic' 9029 lt_prog_compiler_wl='-Qoption ld ' 9030 ;; 9031 *Sun\ C*) 9032 # Sun C 5.9 9033 lt_prog_compiler_pic='-KPIC' 9034 lt_prog_compiler_static='-Bstatic' 9035 lt_prog_compiler_wl='-Wl,' 9036 ;; 9037 *Intel*\ [CF]*Compiler*) 9038 lt_prog_compiler_wl='-Wl,' 9039 lt_prog_compiler_pic='-fPIC' 9040 lt_prog_compiler_static='-static' 9041 ;; 9042 *Portland\ Group*) 9043 lt_prog_compiler_wl='-Wl,' 9044 lt_prog_compiler_pic='-fpic' 9045 lt_prog_compiler_static='-Bstatic' 9046 ;; 9047 esac 9048 ;; 9049 esac 9050 ;; 9051 9052 newsos6) 9053 lt_prog_compiler_pic='-KPIC' 9054 lt_prog_compiler_static='-Bstatic' 9055 ;; 9056 9057 *nto* | *qnx*) 9058 # QNX uses GNU C++, but need to define -shared option too, otherwise 9059 # it will coredump. 9060 lt_prog_compiler_pic='-fPIC -shared' 9061 ;; 9062 9063 osf3* | osf4* | osf5*) 9064 lt_prog_compiler_wl='-Wl,' 9065 # All OSF/1 code is PIC. 9066 lt_prog_compiler_static='-non_shared' 9067 ;; 9068 9069 rdos*) 9070 lt_prog_compiler_static='-non_shared' 9071 ;; 9072 9073 solaris*) 9074 lt_prog_compiler_pic='-KPIC' 9075 lt_prog_compiler_static='-Bstatic' 9076 case $cc_basename in 9077 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9078 lt_prog_compiler_wl='-Qoption ld ';; 9079 *) 9080 lt_prog_compiler_wl='-Wl,';; 9081 esac 9082 ;; 9083 9084 sunos4*) 9085 lt_prog_compiler_wl='-Qoption ld ' 9086 lt_prog_compiler_pic='-PIC' 9087 lt_prog_compiler_static='-Bstatic' 9088 ;; 9089 9090 sysv4 | sysv4.2uw2* | sysv4.3*) 9091 lt_prog_compiler_wl='-Wl,' 9092 lt_prog_compiler_pic='-KPIC' 9093 lt_prog_compiler_static='-Bstatic' 9094 ;; 9095 9096 sysv4*MP*) 9097 if test -d /usr/nec; then 9098 lt_prog_compiler_pic='-Kconform_pic' 9099 lt_prog_compiler_static='-Bstatic' 9100 fi 9101 ;; 9102 9103 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9104 lt_prog_compiler_wl='-Wl,' 9105 lt_prog_compiler_pic='-KPIC' 9106 lt_prog_compiler_static='-Bstatic' 9107 ;; 9108 9109 unicos*) 9110 lt_prog_compiler_wl='-Wl,' 9111 lt_prog_compiler_can_build_shared=no 9112 ;; 9113 9114 uts4*) 9115 lt_prog_compiler_pic='-pic' 9116 lt_prog_compiler_static='-Bstatic' 9117 ;; 9118 9119 *) 9120 lt_prog_compiler_can_build_shared=no 9121 ;; 9122 esac 9123 fi 9124 9125case $host_os in 9126 # For platforms that do not support PIC, -DPIC is meaningless: 9127 *djgpp*) 9128 lt_prog_compiler_pic= 9129 ;; 9130 *) 9131 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9132 ;; 9133esac 9134 9135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9136$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9137if ${lt_cv_prog_compiler_pic+:} false; then : 9138 $as_echo_n "(cached) " >&6 9139else 9140 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9141fi 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9143$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9144lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9145 9146# 9147# Check to make sure the PIC flag actually works. 9148# 9149if test -n "$lt_prog_compiler_pic"; then 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9151$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9152if ${lt_cv_prog_compiler_pic_works+:} false; then : 9153 $as_echo_n "(cached) " >&6 9154else 9155 lt_cv_prog_compiler_pic_works=no 9156 ac_outfile=conftest.$ac_objext 9157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9158 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9159 # Insert the option either (1) after the last *FLAGS variable, or 9160 # (2) before a word containing "conftest.", or (3) at the end. 9161 # Note that $ac_compile itself does not contain backslashes and begins 9162 # with a dollar sign (not a hyphen), so the echo should work correctly. 9163 # The option is referenced via a variable to avoid confusing sed. 9164 lt_compile=`echo "$ac_compile" | $SED \ 9165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9167 -e 's:$: $lt_compiler_flag:'` 9168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9169 (eval "$lt_compile" 2>conftest.err) 9170 ac_status=$? 9171 cat conftest.err >&5 9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9173 if (exit $ac_status) && test -s "$ac_outfile"; then 9174 # The compiler can only warn and ignore the option if not recognized 9175 # So say no if there are warnings other than the usual output. 9176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9179 lt_cv_prog_compiler_pic_works=yes 9180 fi 9181 fi 9182 $RM conftest* 9183 9184fi 9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9186$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9187 9188if test yes = "$lt_cv_prog_compiler_pic_works"; then 9189 case $lt_prog_compiler_pic in 9190 "" | " "*) ;; 9191 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9192 esac 9193else 9194 lt_prog_compiler_pic= 9195 lt_prog_compiler_can_build_shared=no 9196fi 9197 9198fi 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210# 9211# Check to make sure the static flag actually works. 9212# 9213wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9215$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9216if ${lt_cv_prog_compiler_static_works+:} false; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 lt_cv_prog_compiler_static_works=no 9220 save_LDFLAGS=$LDFLAGS 9221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9222 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9224 # The linker can only warn and ignore the option if not recognized 9225 # So say no if there are warnings 9226 if test -s conftest.err; then 9227 # Append any errors to the config.log. 9228 cat conftest.err 1>&5 9229 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9231 if diff conftest.exp conftest.er2 >/dev/null; then 9232 lt_cv_prog_compiler_static_works=yes 9233 fi 9234 else 9235 lt_cv_prog_compiler_static_works=yes 9236 fi 9237 fi 9238 $RM -r conftest* 9239 LDFLAGS=$save_LDFLAGS 9240 9241fi 9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9243$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9244 9245if test yes = "$lt_cv_prog_compiler_static_works"; then 9246 : 9247else 9248 lt_prog_compiler_static= 9249fi 9250 9251 9252 9253 9254 9255 9256 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9258$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9259if ${lt_cv_prog_compiler_c_o+:} false; then : 9260 $as_echo_n "(cached) " >&6 9261else 9262 lt_cv_prog_compiler_c_o=no 9263 $RM -r conftest 2>/dev/null 9264 mkdir conftest 9265 cd conftest 9266 mkdir out 9267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9268 9269 lt_compiler_flag="-o out/conftest2.$ac_objext" 9270 # Insert the option either (1) after the last *FLAGS variable, or 9271 # (2) before a word containing "conftest.", or (3) at the end. 9272 # Note that $ac_compile itself does not contain backslashes and begins 9273 # with a dollar sign (not a hyphen), so the echo should work correctly. 9274 lt_compile=`echo "$ac_compile" | $SED \ 9275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9277 -e 's:$: $lt_compiler_flag:'` 9278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9279 (eval "$lt_compile" 2>out/conftest.err) 9280 ac_status=$? 9281 cat out/conftest.err >&5 9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9283 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9284 then 9285 # The compiler can only warn and ignore the option if not recognized 9286 # So say no if there are warnings 9287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9290 lt_cv_prog_compiler_c_o=yes 9291 fi 9292 fi 9293 chmod u+w . 2>&5 9294 $RM conftest* 9295 # SGI C++ compiler will create directory out/ii_files/ for 9296 # template instantiation 9297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9298 $RM out/* && rmdir out 9299 cd .. 9300 $RM -r conftest 9301 $RM conftest* 9302 9303fi 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9305$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9306 9307 9308 9309 9310 9311 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9313$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9314if ${lt_cv_prog_compiler_c_o+:} false; then : 9315 $as_echo_n "(cached) " >&6 9316else 9317 lt_cv_prog_compiler_c_o=no 9318 $RM -r conftest 2>/dev/null 9319 mkdir conftest 9320 cd conftest 9321 mkdir out 9322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9323 9324 lt_compiler_flag="-o out/conftest2.$ac_objext" 9325 # Insert the option either (1) after the last *FLAGS variable, or 9326 # (2) before a word containing "conftest.", or (3) at the end. 9327 # Note that $ac_compile itself does not contain backslashes and begins 9328 # with a dollar sign (not a hyphen), so the echo should work correctly. 9329 lt_compile=`echo "$ac_compile" | $SED \ 9330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9332 -e 's:$: $lt_compiler_flag:'` 9333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9334 (eval "$lt_compile" 2>out/conftest.err) 9335 ac_status=$? 9336 cat out/conftest.err >&5 9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9338 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9339 then 9340 # The compiler can only warn and ignore the option if not recognized 9341 # So say no if there are warnings 9342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9345 lt_cv_prog_compiler_c_o=yes 9346 fi 9347 fi 9348 chmod u+w . 2>&5 9349 $RM conftest* 9350 # SGI C++ compiler will create directory out/ii_files/ for 9351 # template instantiation 9352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9353 $RM out/* && rmdir out 9354 cd .. 9355 $RM -r conftest 9356 $RM conftest* 9357 9358fi 9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9360$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9361 9362 9363 9364 9365hard_links=nottested 9366if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9367 # do not overwrite the value of need_locks provided by the user 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9369$as_echo_n "checking if we can lock with hard links... " >&6; } 9370 hard_links=yes 9371 $RM conftest* 9372 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9373 touch conftest.a 9374 ln conftest.a conftest.b 2>&5 || hard_links=no 9375 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9377$as_echo "$hard_links" >&6; } 9378 if test no = "$hard_links"; then 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9380$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9381 need_locks=warn 9382 fi 9383else 9384 need_locks=no 9385fi 9386 9387 9388 9389 9390 9391 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9393$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9394 9395 runpath_var= 9396 allow_undefined_flag= 9397 always_export_symbols=no 9398 archive_cmds= 9399 archive_expsym_cmds= 9400 compiler_needs_object=no 9401 enable_shared_with_static_runtimes=no 9402 export_dynamic_flag_spec= 9403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9404 hardcode_automatic=no 9405 hardcode_direct=no 9406 hardcode_direct_absolute=no 9407 hardcode_libdir_flag_spec= 9408 hardcode_libdir_separator= 9409 hardcode_minus_L=no 9410 hardcode_shlibpath_var=unsupported 9411 inherit_rpath=no 9412 link_all_deplibs=unknown 9413 module_cmds= 9414 module_expsym_cmds= 9415 old_archive_from_new_cmds= 9416 old_archive_from_expsyms_cmds= 9417 thread_safe_flag_spec= 9418 whole_archive_flag_spec= 9419 # include_expsyms should be a list of space-separated symbols to be *always* 9420 # included in the symbol list 9421 include_expsyms= 9422 # exclude_expsyms can be an extended regexp of symbols to exclude 9423 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9424 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9425 # as well as any symbol that contains 'd'. 9426 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9427 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9428 # platforms (ab)use it in PIC code, but their linkers get confused if 9429 # the symbol is explicitly referenced. Since portable code cannot 9430 # rely on this symbol name, it's probably fine to never include it in 9431 # preloaded symbol tables. 9432 # Exclude shared library initialization/finalization symbols. 9433 extract_expsyms_cmds= 9434 9435 case $host_os in 9436 cygwin* | mingw* | pw32* | cegcc*) 9437 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9438 # When not using gcc, we currently assume that we are using 9439 # Microsoft Visual C++. 9440 if test yes != "$GCC"; then 9441 with_gnu_ld=no 9442 fi 9443 ;; 9444 interix*) 9445 # we just hope/assume this is gcc and not c89 (= MSVC++) 9446 with_gnu_ld=yes 9447 ;; 9448 openbsd* | bitrig*) 9449 with_gnu_ld=no 9450 ;; 9451 esac 9452 9453 ld_shlibs=yes 9454 9455 # On some targets, GNU ld is compatible enough with the native linker 9456 # that we're better off using the native interface for both. 9457 lt_use_gnu_ld_interface=no 9458 if test yes = "$with_gnu_ld"; then 9459 case $host_os in 9460 aix*) 9461 # The AIX port of GNU ld has always aspired to compatibility 9462 # with the native linker. However, as the warning in the GNU ld 9463 # block says, versions before 2.19.5* couldn't really create working 9464 # shared libraries, regardless of the interface used. 9465 case `$LD -v 2>&1` in 9466 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9467 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9468 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9469 *) 9470 lt_use_gnu_ld_interface=yes 9471 ;; 9472 esac 9473 ;; 9474 *) 9475 lt_use_gnu_ld_interface=yes 9476 ;; 9477 esac 9478 fi 9479 9480 if test yes = "$lt_use_gnu_ld_interface"; then 9481 # If archive_cmds runs LD, not CC, wlarc should be empty 9482 wlarc='$wl' 9483 9484 # Set some defaults for GNU ld with shared library support. These 9485 # are reset later if shared libraries are not supported. Putting them 9486 # here allows them to be overridden if necessary. 9487 runpath_var=LD_RUN_PATH 9488 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9489 export_dynamic_flag_spec='$wl--export-dynamic' 9490 # ancient GNU ld didn't support --whole-archive et. al. 9491 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9492 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9493 else 9494 whole_archive_flag_spec= 9495 fi 9496 supports_anon_versioning=no 9497 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9498 *GNU\ gold*) supports_anon_versioning=yes ;; 9499 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9502 *\ 2.11.*) ;; # other 2.11 versions 9503 *) supports_anon_versioning=yes ;; 9504 esac 9505 9506 # See if GNU ld supports shared libraries. 9507 case $host_os in 9508 aix[3-9]*) 9509 # On AIX/PPC, the GNU linker is very broken 9510 if test ia64 != "$host_cpu"; then 9511 ld_shlibs=no 9512 cat <<_LT_EOF 1>&2 9513 9514*** Warning: the GNU linker, at least up to release 2.19, is reported 9515*** to be unable to reliably create shared libraries on AIX. 9516*** Therefore, libtool is disabling shared libraries support. If you 9517*** really care for shared libraries, you may want to install binutils 9518*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9519*** You will then need to restart the configuration process. 9520 9521_LT_EOF 9522 fi 9523 ;; 9524 9525 amigaos*) 9526 case $host_cpu in 9527 powerpc) 9528 # see comment about AmigaOS4 .so support 9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9530 archive_expsym_cmds='' 9531 ;; 9532 m68k) 9533 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)' 9534 hardcode_libdir_flag_spec='-L$libdir' 9535 hardcode_minus_L=yes 9536 ;; 9537 esac 9538 ;; 9539 9540 beos*) 9541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9542 allow_undefined_flag=unsupported 9543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9544 # support --undefined. This deserves some investigation. FIXME 9545 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9546 else 9547 ld_shlibs=no 9548 fi 9549 ;; 9550 9551 cygwin* | mingw* | pw32* | cegcc*) 9552 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9553 # as there is no search path for DLLs. 9554 hardcode_libdir_flag_spec='-L$libdir' 9555 export_dynamic_flag_spec='$wl--export-all-symbols' 9556 allow_undefined_flag=unsupported 9557 always_export_symbols=no 9558 enable_shared_with_static_runtimes=yes 9559 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' 9560 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9561 9562 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9564 # If the export-symbols file already is a .def file, use it as 9565 # is; otherwise, prepend EXPORTS... 9566 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9567 cp $export_symbols $output_objdir/$soname.def; 9568 else 9569 echo EXPORTS > $output_objdir/$soname.def; 9570 cat $export_symbols >> $output_objdir/$soname.def; 9571 fi~ 9572 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9573 else 9574 ld_shlibs=no 9575 fi 9576 ;; 9577 9578 haiku*) 9579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9580 link_all_deplibs=yes 9581 ;; 9582 9583 os2*) 9584 hardcode_libdir_flag_spec='-L$libdir' 9585 hardcode_minus_L=yes 9586 allow_undefined_flag=unsupported 9587 shrext_cmds=.dll 9588 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9589 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9590 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9591 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9592 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9593 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9594 emximp -o $lib $output_objdir/$libname.def' 9595 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9596 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9597 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9598 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9599 prefix_cmds="$SED"~ 9600 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9601 prefix_cmds="$prefix_cmds -e 1d"; 9602 fi~ 9603 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9604 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9605 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9606 emximp -o $lib $output_objdir/$libname.def' 9607 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9608 enable_shared_with_static_runtimes=yes 9609 ;; 9610 9611 interix[3-9]*) 9612 hardcode_direct=no 9613 hardcode_shlibpath_var=no 9614 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9615 export_dynamic_flag_spec='$wl-E' 9616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9617 # Instead, shared libraries are loaded at an image base (0x10000000 by 9618 # default) and relocated if they conflict, which is a slow very memory 9619 # consuming and fragmenting process. To avoid this, we pick a random, 9620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9621 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9623 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' 9624 ;; 9625 9626 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9627 tmp_diet=no 9628 if test linux-dietlibc = "$host_os"; then 9629 case $cc_basename in 9630 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9631 esac 9632 fi 9633 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9634 && test no = "$tmp_diet" 9635 then 9636 tmp_addflag=' $pic_flag' 9637 tmp_sharedflag='-shared' 9638 case $cc_basename,$host_cpu in 9639 pgcc*) # Portland Group C compiler 9640 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' 9641 tmp_addflag=' $pic_flag' 9642 ;; 9643 pgf77* | pgf90* | pgf95* | pgfortran*) 9644 # Portland Group f77 and f90 compilers 9645 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' 9646 tmp_addflag=' $pic_flag -Mnomain' ;; 9647 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9648 tmp_addflag=' -i_dynamic' ;; 9649 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9650 tmp_addflag=' -i_dynamic -nofor_main' ;; 9651 ifc* | ifort*) # Intel Fortran compiler 9652 tmp_addflag=' -nofor_main' ;; 9653 lf95*) # Lahey Fortran 8.1 9654 whole_archive_flag_spec= 9655 tmp_sharedflag='--shared' ;; 9656 nagfor*) # NAGFOR 5.3 9657 tmp_sharedflag='-Wl,-shared' ;; 9658 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9659 tmp_sharedflag='-qmkshrobj' 9660 tmp_addflag= ;; 9661 nvcc*) # Cuda Compiler Driver 2.2 9662 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' 9663 compiler_needs_object=yes 9664 ;; 9665 esac 9666 case `$CC -V 2>&1 | sed 5q` in 9667 *Sun\ C*) # Sun C 5.9 9668 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' 9669 compiler_needs_object=yes 9670 tmp_sharedflag='-G' ;; 9671 *Sun\ F*) # Sun Fortran 8.3 9672 tmp_sharedflag='-G' ;; 9673 esac 9674 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9675 9676 if test yes = "$supports_anon_versioning"; then 9677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9679 echo "local: *; };" >> $output_objdir/$libname.ver~ 9680 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9681 fi 9682 9683 case $cc_basename in 9684 tcc*) 9685 export_dynamic_flag_spec='-rdynamic' 9686 ;; 9687 xlf* | bgf* | bgxlf* | mpixlf*) 9688 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9689 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9690 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9691 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9692 if test yes = "$supports_anon_versioning"; then 9693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9695 echo "local: *; };" >> $output_objdir/$libname.ver~ 9696 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9697 fi 9698 ;; 9699 esac 9700 else 9701 ld_shlibs=no 9702 fi 9703 ;; 9704 9705 netbsd*) 9706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9707 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9708 wlarc= 9709 else 9710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9712 fi 9713 ;; 9714 9715 solaris*) 9716 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9717 ld_shlibs=no 9718 cat <<_LT_EOF 1>&2 9719 9720*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9721*** create shared libraries on Solaris systems. Therefore, libtool 9722*** is disabling shared libraries support. We urge you to upgrade GNU 9723*** binutils to release 2.9.1 or newer. Another option is to modify 9724*** your PATH or compiler configuration so that the native linker is 9725*** used, and then restart. 9726 9727_LT_EOF 9728 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9729 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9730 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9731 else 9732 ld_shlibs=no 9733 fi 9734 ;; 9735 9736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9737 case `$LD -v 2>&1` in 9738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9739 ld_shlibs=no 9740 cat <<_LT_EOF 1>&2 9741 9742*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9743*** reliably create shared libraries on SCO systems. Therefore, libtool 9744*** is disabling shared libraries support. We urge you to upgrade GNU 9745*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9746*** your PATH or compiler configuration so that the native linker is 9747*** used, and then restart. 9748 9749_LT_EOF 9750 ;; 9751 *) 9752 # For security reasons, it is highly recommended that you always 9753 # use absolute paths for naming shared libraries, and exclude the 9754 # DT_RUNPATH tag from executables and libraries. But doing so 9755 # requires that you compile everything twice, which is a pain. 9756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9757 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9760 else 9761 ld_shlibs=no 9762 fi 9763 ;; 9764 esac 9765 ;; 9766 9767 sunos4*) 9768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9769 wlarc= 9770 hardcode_direct=yes 9771 hardcode_shlibpath_var=no 9772 ;; 9773 9774 *) 9775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9777 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9778 else 9779 ld_shlibs=no 9780 fi 9781 ;; 9782 esac 9783 9784 if test no = "$ld_shlibs"; then 9785 runpath_var= 9786 hardcode_libdir_flag_spec= 9787 export_dynamic_flag_spec= 9788 whole_archive_flag_spec= 9789 fi 9790 else 9791 # PORTME fill in a description of your system's linker (not GNU ld) 9792 case $host_os in 9793 aix3*) 9794 allow_undefined_flag=unsupported 9795 always_export_symbols=yes 9796 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' 9797 # Note: this linker hardcodes the directories in LIBPATH if there 9798 # are no directories specified by -L. 9799 hardcode_minus_L=yes 9800 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9801 # Neither direct hardcoding nor static linking is supported with a 9802 # broken collect2. 9803 hardcode_direct=unsupported 9804 fi 9805 ;; 9806 9807 aix[4-9]*) 9808 if test ia64 = "$host_cpu"; then 9809 # On IA64, the linker does run time linking by default, so we don't 9810 # have to do anything special. 9811 aix_use_runtimelinking=no 9812 exp_sym_flag='-Bexport' 9813 no_entry_flag= 9814 else 9815 # If we're using GNU nm, then we don't want the "-C" option. 9816 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9817 # Without the "-l" option, or with the "-B" option, AIX nm treats 9818 # weak defined symbols like other global defined symbols, whereas 9819 # GNU nm marks them as "W". 9820 # While the 'weak' keyword is ignored in the Export File, we need 9821 # it in the Import File for the 'aix-soname' feature, so we have 9822 # to replace the "-B" option with "-P" for AIX nm. 9823 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9824 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' 9825 else 9826 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' 9827 fi 9828 aix_use_runtimelinking=no 9829 9830 # Test if we are trying to use run time linking or normal 9831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9832 # have runtime linking enabled, and use it for executables. 9833 # For shared libraries, we enable/disable runtime linking 9834 # depending on the kind of the shared library created - 9835 # when "with_aix_soname,aix_use_runtimelinking" is: 9836 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9837 # "aix,yes" lib.so shared, rtl:yes, for executables 9838 # lib.a static archive 9839 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9840 # lib.a(lib.so.V) shared, rtl:no, for executables 9841 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9842 # lib.a(lib.so.V) shared, rtl:no 9843 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9844 # lib.a static archive 9845 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9846 for ld_flag in $LDFLAGS; do 9847 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9848 aix_use_runtimelinking=yes 9849 break 9850 fi 9851 done 9852 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9853 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9854 # so we don't have lib.a shared libs to link our executables. 9855 # We have to force runtime linking in this case. 9856 aix_use_runtimelinking=yes 9857 LDFLAGS="$LDFLAGS -Wl,-brtl" 9858 fi 9859 ;; 9860 esac 9861 9862 exp_sym_flag='-bexport' 9863 no_entry_flag='-bnoentry' 9864 fi 9865 9866 # When large executables or shared objects are built, AIX ld can 9867 # have problems creating the table of contents. If linking a library 9868 # or program results in "error TOC overflow" add -mminimal-toc to 9869 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9870 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9871 9872 archive_cmds='' 9873 hardcode_direct=yes 9874 hardcode_direct_absolute=yes 9875 hardcode_libdir_separator=':' 9876 link_all_deplibs=yes 9877 file_list_spec='$wl-f,' 9878 case $with_aix_soname,$aix_use_runtimelinking in 9879 aix,*) ;; # traditional, no import file 9880 svr4,* | *,yes) # use import file 9881 # The Import File defines what to hardcode. 9882 hardcode_direct=no 9883 hardcode_direct_absolute=no 9884 ;; 9885 esac 9886 9887 if test yes = "$GCC"; then 9888 case $host_os in aix4.[012]|aix4.[012].*) 9889 # We only want to do this on AIX 4.2 and lower, the check 9890 # below for broken collect2 doesn't work under 4.3+ 9891 collect2name=`$CC -print-prog-name=collect2` 9892 if test -f "$collect2name" && 9893 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9894 then 9895 # We have reworked collect2 9896 : 9897 else 9898 # We have old collect2 9899 hardcode_direct=unsupported 9900 # It fails to find uninstalled libraries when the uninstalled 9901 # path is not listed in the libpath. Setting hardcode_minus_L 9902 # to unsupported forces relinking 9903 hardcode_minus_L=yes 9904 hardcode_libdir_flag_spec='-L$libdir' 9905 hardcode_libdir_separator= 9906 fi 9907 ;; 9908 esac 9909 shared_flag='-shared' 9910 if test yes = "$aix_use_runtimelinking"; then 9911 shared_flag="$shared_flag "'$wl-G' 9912 fi 9913 # Need to ensure runtime linking is disabled for the traditional 9914 # shared library, or the linker may eventually find shared libraries 9915 # /with/ Import File - we do not want to mix them. 9916 shared_flag_aix='-shared' 9917 shared_flag_svr4='-shared $wl-G' 9918 else 9919 # not using gcc 9920 if test ia64 = "$host_cpu"; then 9921 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9922 # chokes on -Wl,-G. The following line is correct: 9923 shared_flag='-G' 9924 else 9925 if test yes = "$aix_use_runtimelinking"; then 9926 shared_flag='$wl-G' 9927 else 9928 shared_flag='$wl-bM:SRE' 9929 fi 9930 shared_flag_aix='$wl-bM:SRE' 9931 shared_flag_svr4='$wl-G' 9932 fi 9933 fi 9934 9935 export_dynamic_flag_spec='$wl-bexpall' 9936 # It seems that -bexpall does not export symbols beginning with 9937 # underscore (_), so it is better to generate a list of symbols to export. 9938 always_export_symbols=yes 9939 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9940 # Warning - without using the other runtime loading flags (-brtl), 9941 # -berok will link without error, but may produce a broken library. 9942 allow_undefined_flag='-berok' 9943 # Determine the default libpath from the value encoded in an 9944 # empty executable. 9945 if test set = "${lt_cv_aix_libpath+set}"; then 9946 aix_libpath=$lt_cv_aix_libpath 9947else 9948 if ${lt_cv_aix_libpath_+:} false; then : 9949 $as_echo_n "(cached) " >&6 9950else 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953 9954int 9955main () 9956{ 9957 9958 ; 9959 return 0; 9960} 9961_ACEOF 9962if ac_fn_c_try_link "$LINENO"; then : 9963 9964 lt_aix_libpath_sed=' 9965 /Import File Strings/,/^$/ { 9966 /^0/ { 9967 s/^0 *\([^ ]*\) *$/\1/ 9968 p 9969 } 9970 }' 9971 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9972 # Check for a 64-bit object if we didn't find anything. 9973 if test -z "$lt_cv_aix_libpath_"; then 9974 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9975 fi 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979 if test -z "$lt_cv_aix_libpath_"; then 9980 lt_cv_aix_libpath_=/usr/lib:/lib 9981 fi 9982 9983fi 9984 9985 aix_libpath=$lt_cv_aix_libpath_ 9986fi 9987 9988 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9989 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 9990 else 9991 if test ia64 = "$host_cpu"; then 9992 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9993 allow_undefined_flag="-z nodefs" 9994 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" 9995 else 9996 # Determine the default libpath from the value encoded in an 9997 # empty executable. 9998 if test set = "${lt_cv_aix_libpath+set}"; then 9999 aix_libpath=$lt_cv_aix_libpath 10000else 10001 if ${lt_cv_aix_libpath_+:} false; then : 10002 $as_echo_n "(cached) " >&6 10003else 10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005/* end confdefs.h. */ 10006 10007int 10008main () 10009{ 10010 10011 ; 10012 return 0; 10013} 10014_ACEOF 10015if ac_fn_c_try_link "$LINENO"; then : 10016 10017 lt_aix_libpath_sed=' 10018 /Import File Strings/,/^$/ { 10019 /^0/ { 10020 s/^0 *\([^ ]*\) *$/\1/ 10021 p 10022 } 10023 }' 10024 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10025 # Check for a 64-bit object if we didn't find anything. 10026 if test -z "$lt_cv_aix_libpath_"; then 10027 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10028 fi 10029fi 10030rm -f core conftest.err conftest.$ac_objext \ 10031 conftest$ac_exeext conftest.$ac_ext 10032 if test -z "$lt_cv_aix_libpath_"; then 10033 lt_cv_aix_libpath_=/usr/lib:/lib 10034 fi 10035 10036fi 10037 10038 aix_libpath=$lt_cv_aix_libpath_ 10039fi 10040 10041 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10042 # Warning - without using the other run time loading flags, 10043 # -berok will link without error, but may produce a broken library. 10044 no_undefined_flag=' $wl-bernotok' 10045 allow_undefined_flag=' $wl-berok' 10046 if test yes = "$with_gnu_ld"; then 10047 # We only use this code for GNU lds that support --whole-archive. 10048 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10049 else 10050 # Exported symbols can be pulled into shared objects from archives 10051 whole_archive_flag_spec='$convenience' 10052 fi 10053 archive_cmds_need_lc=yes 10054 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10055 # -brtl affects multiple linker settings, -berok does not and is overridden later 10056 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10057 if test svr4 != "$with_aix_soname"; then 10058 # This is similar to how AIX traditionally builds its shared libraries. 10059 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' 10060 fi 10061 if test aix != "$with_aix_soname"; then 10062 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' 10063 else 10064 # used by -dlpreopen to get the symbols 10065 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10066 fi 10067 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10068 fi 10069 fi 10070 ;; 10071 10072 amigaos*) 10073 case $host_cpu in 10074 powerpc) 10075 # see comment about AmigaOS4 .so support 10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10077 archive_expsym_cmds='' 10078 ;; 10079 m68k) 10080 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)' 10081 hardcode_libdir_flag_spec='-L$libdir' 10082 hardcode_minus_L=yes 10083 ;; 10084 esac 10085 ;; 10086 10087 bsdi[45]*) 10088 export_dynamic_flag_spec=-rdynamic 10089 ;; 10090 10091 cygwin* | mingw* | pw32* | cegcc*) 10092 # When not using gcc, we currently assume that we are using 10093 # Microsoft Visual C++. 10094 # hardcode_libdir_flag_spec is actually meaningless, as there is 10095 # no search path for DLLs. 10096 case $cc_basename in 10097 cl*) 10098 # Native MSVC 10099 hardcode_libdir_flag_spec=' ' 10100 allow_undefined_flag=unsupported 10101 always_export_symbols=yes 10102 file_list_spec='@' 10103 # Tell ltmain to make .lib files, not .a files. 10104 libext=lib 10105 # Tell ltmain to make .dll files, not .so files. 10106 shrext_cmds=.dll 10107 # FIXME: Setting linknames here is a bad hack. 10108 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10109 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10110 cp "$export_symbols" "$output_objdir/$soname.def"; 10111 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10112 else 10113 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10114 fi~ 10115 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10116 linknames=' 10117 # The linker will not automatically build a static lib if we build a DLL. 10118 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10119 enable_shared_with_static_runtimes=yes 10120 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10122 # Don't use ranlib 10123 old_postinstall_cmds='chmod 644 $oldlib' 10124 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10125 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10126 case $lt_outputfile in 10127 *.exe|*.EXE) ;; 10128 *) 10129 lt_outputfile=$lt_outputfile.exe 10130 lt_tool_outputfile=$lt_tool_outputfile.exe 10131 ;; 10132 esac~ 10133 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10134 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10135 $RM "$lt_outputfile.manifest"; 10136 fi' 10137 ;; 10138 *) 10139 # Assume MSVC wrapper 10140 hardcode_libdir_flag_spec=' ' 10141 allow_undefined_flag=unsupported 10142 # Tell ltmain to make .lib files, not .a files. 10143 libext=lib 10144 # Tell ltmain to make .dll files, not .so files. 10145 shrext_cmds=.dll 10146 # FIXME: Setting linknames here is a bad hack. 10147 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10148 # The linker will automatically build a .lib file if we build a DLL. 10149 old_archive_from_new_cmds='true' 10150 # FIXME: Should let the user specify the lib program. 10151 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10152 enable_shared_with_static_runtimes=yes 10153 ;; 10154 esac 10155 ;; 10156 10157 darwin* | rhapsody*) 10158 10159 10160 archive_cmds_need_lc=no 10161 hardcode_direct=no 10162 hardcode_automatic=yes 10163 hardcode_shlibpath_var=unsupported 10164 if test yes = "$lt_cv_ld_force_load"; then 10165 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\"`' 10166 10167 else 10168 whole_archive_flag_spec='' 10169 fi 10170 link_all_deplibs=yes 10171 allow_undefined_flag=$_lt_dar_allow_undefined 10172 case $cc_basename in 10173 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10174 *) _lt_dar_can_shared=$GCC ;; 10175 esac 10176 if test yes = "$_lt_dar_can_shared"; then 10177 output_verbose_link_cmd=func_echo_all 10178 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10179 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10180 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" 10181 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" 10182 10183 else 10184 ld_shlibs=no 10185 fi 10186 10187 ;; 10188 10189 dgux*) 10190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10191 hardcode_libdir_flag_spec='-L$libdir' 10192 hardcode_shlibpath_var=no 10193 ;; 10194 10195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10196 # support. Future versions do this automatically, but an explicit c++rt0.o 10197 # does not break anything, and helps significantly (at the cost of a little 10198 # extra space). 10199 freebsd2.2*) 10200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10201 hardcode_libdir_flag_spec='-R$libdir' 10202 hardcode_direct=yes 10203 hardcode_shlibpath_var=no 10204 ;; 10205 10206 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10207 freebsd2.*) 10208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10209 hardcode_direct=yes 10210 hardcode_minus_L=yes 10211 hardcode_shlibpath_var=no 10212 ;; 10213 10214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10215 freebsd* | dragonfly*) 10216 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10217 hardcode_libdir_flag_spec='-R$libdir' 10218 hardcode_direct=yes 10219 hardcode_shlibpath_var=no 10220 ;; 10221 10222 hpux9*) 10223 if test yes = "$GCC"; then 10224 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' 10225 else 10226 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' 10227 fi 10228 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10229 hardcode_libdir_separator=: 10230 hardcode_direct=yes 10231 10232 # hardcode_minus_L: Not really in the search PATH, 10233 # but as the default location of the library. 10234 hardcode_minus_L=yes 10235 export_dynamic_flag_spec='$wl-E' 10236 ;; 10237 10238 hpux10*) 10239 if test yes,no = "$GCC,$with_gnu_ld"; then 10240 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10241 else 10242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10243 fi 10244 if test no = "$with_gnu_ld"; then 10245 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10246 hardcode_libdir_separator=: 10247 hardcode_direct=yes 10248 hardcode_direct_absolute=yes 10249 export_dynamic_flag_spec='$wl-E' 10250 # hardcode_minus_L: Not really in the search PATH, 10251 # but as the default location of the library. 10252 hardcode_minus_L=yes 10253 fi 10254 ;; 10255 10256 hpux11*) 10257 if test yes,no = "$GCC,$with_gnu_ld"; then 10258 case $host_cpu in 10259 hppa*64*) 10260 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10261 ;; 10262 ia64*) 10263 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10264 ;; 10265 *) 10266 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10267 ;; 10268 esac 10269 else 10270 case $host_cpu in 10271 hppa*64*) 10272 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10273 ;; 10274 ia64*) 10275 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10276 ;; 10277 *) 10278 10279 # Older versions of the 11.00 compiler do not understand -b yet 10280 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10282$as_echo_n "checking if $CC understands -b... " >&6; } 10283if ${lt_cv_prog_compiler__b+:} false; then : 10284 $as_echo_n "(cached) " >&6 10285else 10286 lt_cv_prog_compiler__b=no 10287 save_LDFLAGS=$LDFLAGS 10288 LDFLAGS="$LDFLAGS -b" 10289 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10291 # The linker can only warn and ignore the option if not recognized 10292 # So say no if there are warnings 10293 if test -s conftest.err; then 10294 # Append any errors to the config.log. 10295 cat conftest.err 1>&5 10296 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10298 if diff conftest.exp conftest.er2 >/dev/null; then 10299 lt_cv_prog_compiler__b=yes 10300 fi 10301 else 10302 lt_cv_prog_compiler__b=yes 10303 fi 10304 fi 10305 $RM -r conftest* 10306 LDFLAGS=$save_LDFLAGS 10307 10308fi 10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10310$as_echo "$lt_cv_prog_compiler__b" >&6; } 10311 10312if test yes = "$lt_cv_prog_compiler__b"; then 10313 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10314else 10315 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10316fi 10317 10318 ;; 10319 esac 10320 fi 10321 if test no = "$with_gnu_ld"; then 10322 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10323 hardcode_libdir_separator=: 10324 10325 case $host_cpu in 10326 hppa*64*|ia64*) 10327 hardcode_direct=no 10328 hardcode_shlibpath_var=no 10329 ;; 10330 *) 10331 hardcode_direct=yes 10332 hardcode_direct_absolute=yes 10333 export_dynamic_flag_spec='$wl-E' 10334 10335 # hardcode_minus_L: Not really in the search PATH, 10336 # but as the default location of the library. 10337 hardcode_minus_L=yes 10338 ;; 10339 esac 10340 fi 10341 ;; 10342 10343 irix5* | irix6* | nonstopux*) 10344 if test yes = "$GCC"; then 10345 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' 10346 # Try to use the -exported_symbol ld option, if it does not 10347 # work, assume that -exports_file does not work either and 10348 # implicitly export all symbols. 10349 # This should be the same for all languages, so no per-tag cache variable. 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10351$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10352if ${lt_cv_irix_exported_symbol+:} false; then : 10353 $as_echo_n "(cached) " >&6 10354else 10355 save_LDFLAGS=$LDFLAGS 10356 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358/* end confdefs.h. */ 10359int foo (void) { return 0; } 10360_ACEOF 10361if ac_fn_c_try_link "$LINENO"; then : 10362 lt_cv_irix_exported_symbol=yes 10363else 10364 lt_cv_irix_exported_symbol=no 10365fi 10366rm -f core conftest.err conftest.$ac_objext \ 10367 conftest$ac_exeext conftest.$ac_ext 10368 LDFLAGS=$save_LDFLAGS 10369fi 10370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10371$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10372 if test yes = "$lt_cv_irix_exported_symbol"; then 10373 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' 10374 fi 10375 else 10376 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' 10377 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' 10378 fi 10379 archive_cmds_need_lc='no' 10380 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10381 hardcode_libdir_separator=: 10382 inherit_rpath=yes 10383 link_all_deplibs=yes 10384 ;; 10385 10386 linux*) 10387 case $cc_basename in 10388 tcc*) 10389 # Fabrice Bellard et al's Tiny C Compiler 10390 ld_shlibs=yes 10391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10392 ;; 10393 esac 10394 ;; 10395 10396 netbsd*) 10397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10399 else 10400 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10401 fi 10402 hardcode_libdir_flag_spec='-R$libdir' 10403 hardcode_direct=yes 10404 hardcode_shlibpath_var=no 10405 ;; 10406 10407 newsos6) 10408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10409 hardcode_direct=yes 10410 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10411 hardcode_libdir_separator=: 10412 hardcode_shlibpath_var=no 10413 ;; 10414 10415 *nto* | *qnx*) 10416 ;; 10417 10418 openbsd* | bitrig*) 10419 if test -f /usr/libexec/ld.so; then 10420 hardcode_direct=yes 10421 hardcode_shlibpath_var=no 10422 hardcode_direct_absolute=yes 10423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10425 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10426 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10427 export_dynamic_flag_spec='$wl-E' 10428 else 10429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10430 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10431 fi 10432 else 10433 ld_shlibs=no 10434 fi 10435 ;; 10436 10437 os2*) 10438 hardcode_libdir_flag_spec='-L$libdir' 10439 hardcode_minus_L=yes 10440 allow_undefined_flag=unsupported 10441 shrext_cmds=.dll 10442 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10443 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10444 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10445 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10446 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10447 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10448 emximp -o $lib $output_objdir/$libname.def' 10449 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10450 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10451 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10452 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10453 prefix_cmds="$SED"~ 10454 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10455 prefix_cmds="$prefix_cmds -e 1d"; 10456 fi~ 10457 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10458 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10459 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10460 emximp -o $lib $output_objdir/$libname.def' 10461 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10462 enable_shared_with_static_runtimes=yes 10463 ;; 10464 10465 osf3*) 10466 if test yes = "$GCC"; then 10467 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10468 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' 10469 else 10470 allow_undefined_flag=' -expect_unresolved \*' 10471 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' 10472 fi 10473 archive_cmds_need_lc='no' 10474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10475 hardcode_libdir_separator=: 10476 ;; 10477 10478 osf4* | osf5*) # as osf3* with the addition of -msym flag 10479 if test yes = "$GCC"; then 10480 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10481 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' 10482 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10483 else 10484 allow_undefined_flag=' -expect_unresolved \*' 10485 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' 10486 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~ 10487 $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' 10488 10489 # Both c and cxx compiler support -rpath directly 10490 hardcode_libdir_flag_spec='-rpath $libdir' 10491 fi 10492 archive_cmds_need_lc='no' 10493 hardcode_libdir_separator=: 10494 ;; 10495 10496 solaris*) 10497 no_undefined_flag=' -z defs' 10498 if test yes = "$GCC"; then 10499 wlarc='$wl' 10500 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10501 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10502 $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' 10503 else 10504 case `$CC -V 2>&1` in 10505 *"Compilers 5.0"*) 10506 wlarc='' 10507 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10509 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10510 ;; 10511 *) 10512 wlarc='$wl' 10513 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10515 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10516 ;; 10517 esac 10518 fi 10519 hardcode_libdir_flag_spec='-R$libdir' 10520 hardcode_shlibpath_var=no 10521 case $host_os in 10522 solaris2.[0-5] | solaris2.[0-5].*) ;; 10523 *) 10524 # The compiler driver will combine and reorder linker options, 10525 # but understands '-z linker_flag'. GCC discards it without '$wl', 10526 # but is careful enough not to reorder. 10527 # Supported since Solaris 2.6 (maybe 2.5.1?) 10528 if test yes = "$GCC"; then 10529 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10530 else 10531 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10532 fi 10533 ;; 10534 esac 10535 link_all_deplibs=yes 10536 ;; 10537 10538 sunos4*) 10539 if test sequent = "$host_vendor"; then 10540 # Use $CC to link under sequent, because it throws in some extra .o 10541 # files that make .init and .fini sections work. 10542 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10543 else 10544 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10545 fi 10546 hardcode_libdir_flag_spec='-L$libdir' 10547 hardcode_direct=yes 10548 hardcode_minus_L=yes 10549 hardcode_shlibpath_var=no 10550 ;; 10551 10552 sysv4) 10553 case $host_vendor in 10554 sni) 10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10556 hardcode_direct=yes # is this really true??? 10557 ;; 10558 siemens) 10559 ## LD is ld it makes a PLAMLIB 10560 ## CC just makes a GrossModule. 10561 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10562 reload_cmds='$CC -r -o $output$reload_objs' 10563 hardcode_direct=no 10564 ;; 10565 motorola) 10566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10567 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10568 ;; 10569 esac 10570 runpath_var='LD_RUN_PATH' 10571 hardcode_shlibpath_var=no 10572 ;; 10573 10574 sysv4.3*) 10575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10576 hardcode_shlibpath_var=no 10577 export_dynamic_flag_spec='-Bexport' 10578 ;; 10579 10580 sysv4*MP*) 10581 if test -d /usr/nec; then 10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10583 hardcode_shlibpath_var=no 10584 runpath_var=LD_RUN_PATH 10585 hardcode_runpath_var=yes 10586 ld_shlibs=yes 10587 fi 10588 ;; 10589 10590 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10591 no_undefined_flag='$wl-z,text' 10592 archive_cmds_need_lc=no 10593 hardcode_shlibpath_var=no 10594 runpath_var='LD_RUN_PATH' 10595 10596 if test yes = "$GCC"; then 10597 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10598 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10599 else 10600 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10601 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10602 fi 10603 ;; 10604 10605 sysv5* | sco3.2v5* | sco5v6*) 10606 # Note: We CANNOT use -z defs as we might desire, because we do not 10607 # link with -lc, and that would cause any symbols used from libc to 10608 # always be unresolved, which means just about no library would 10609 # ever link correctly. If we're not using GNU ld we use -z text 10610 # though, which does catch some bad symbols but isn't as heavy-handed 10611 # as -z defs. 10612 no_undefined_flag='$wl-z,text' 10613 allow_undefined_flag='$wl-z,nodefs' 10614 archive_cmds_need_lc=no 10615 hardcode_shlibpath_var=no 10616 hardcode_libdir_flag_spec='$wl-R,$libdir' 10617 hardcode_libdir_separator=':' 10618 link_all_deplibs=yes 10619 export_dynamic_flag_spec='$wl-Bexport' 10620 runpath_var='LD_RUN_PATH' 10621 10622 if test yes = "$GCC"; then 10623 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10624 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10625 else 10626 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10627 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10628 fi 10629 ;; 10630 10631 uts4*) 10632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10633 hardcode_libdir_flag_spec='-L$libdir' 10634 hardcode_shlibpath_var=no 10635 ;; 10636 10637 *) 10638 ld_shlibs=no 10639 ;; 10640 esac 10641 10642 if test sni = "$host_vendor"; then 10643 case $host in 10644 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10645 export_dynamic_flag_spec='$wl-Blargedynsym' 10646 ;; 10647 esac 10648 fi 10649 fi 10650 10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10652$as_echo "$ld_shlibs" >&6; } 10653test no = "$ld_shlibs" && can_build_shared=no 10654 10655with_gnu_ld=$with_gnu_ld 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671# 10672# Do we need to explicitly link libc? 10673# 10674case "x$archive_cmds_need_lc" in 10675x|xyes) 10676 # Assume -lc should be added 10677 archive_cmds_need_lc=yes 10678 10679 if test yes,yes = "$GCC,$enable_shared"; then 10680 case $archive_cmds in 10681 *'~'*) 10682 # FIXME: we may have to deal with multi-command sequences. 10683 ;; 10684 '$CC '*) 10685 # Test whether the compiler implicitly links with -lc since on some 10686 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10687 # to ld, don't add -lc before -lgcc. 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10689$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10690if ${lt_cv_archive_cmds_need_lc+:} false; then : 10691 $as_echo_n "(cached) " >&6 10692else 10693 $RM conftest* 10694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10695 10696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10697 (eval $ac_compile) 2>&5 10698 ac_status=$? 10699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10700 test $ac_status = 0; } 2>conftest.err; then 10701 soname=conftest 10702 lib=conftest 10703 libobjs=conftest.$ac_objext 10704 deplibs= 10705 wl=$lt_prog_compiler_wl 10706 pic_flag=$lt_prog_compiler_pic 10707 compiler_flags=-v 10708 linker_flags=-v 10709 verstring= 10710 output_objdir=. 10711 libname=conftest 10712 lt_save_allow_undefined_flag=$allow_undefined_flag 10713 allow_undefined_flag= 10714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10715 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10716 ac_status=$? 10717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10718 test $ac_status = 0; } 10719 then 10720 lt_cv_archive_cmds_need_lc=no 10721 else 10722 lt_cv_archive_cmds_need_lc=yes 10723 fi 10724 allow_undefined_flag=$lt_save_allow_undefined_flag 10725 else 10726 cat conftest.err 1>&5 10727 fi 10728 $RM conftest* 10729 10730fi 10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10732$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10733 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10734 ;; 10735 esac 10736 fi 10737 ;; 10738esac 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10892$as_echo_n "checking dynamic linker characteristics... " >&6; } 10893 10894if test yes = "$GCC"; then 10895 case $host_os in 10896 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10897 *) lt_awk_arg='/^libraries:/' ;; 10898 esac 10899 case $host_os in 10900 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10901 *) lt_sed_strip_eq='s|=/|/|g' ;; 10902 esac 10903 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10904 case $lt_search_path_spec in 10905 *\;*) 10906 # if the path contains ";" then we assume it to be the separator 10907 # otherwise default to the standard path separator (i.e. ":") - it is 10908 # assumed that no part of a normal pathname contains ";" but that should 10909 # okay in the real world where ";" in dirpaths is itself problematic. 10910 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10911 ;; 10912 *) 10913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10914 ;; 10915 esac 10916 # Ok, now we have the path, separated by spaces, we can step through it 10917 # and add multilib dir if necessary... 10918 lt_tmp_lt_search_path_spec= 10919 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10920 # ...but if some path component already ends with the multilib dir we assume 10921 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10922 case "$lt_multi_os_dir; $lt_search_path_spec " in 10923 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10924 lt_multi_os_dir= 10925 ;; 10926 esac 10927 for lt_sys_path in $lt_search_path_spec; do 10928 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10930 elif test -n "$lt_multi_os_dir"; then 10931 test -d "$lt_sys_path" && \ 10932 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10933 fi 10934 done 10935 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10936BEGIN {RS = " "; FS = "/|\n";} { 10937 lt_foo = ""; 10938 lt_count = 0; 10939 for (lt_i = NF; lt_i > 0; lt_i--) { 10940 if ($lt_i != "" && $lt_i != ".") { 10941 if ($lt_i == "..") { 10942 lt_count++; 10943 } else { 10944 if (lt_count == 0) { 10945 lt_foo = "/" $lt_i lt_foo; 10946 } else { 10947 lt_count--; 10948 } 10949 } 10950 } 10951 } 10952 if (lt_foo != "") { lt_freq[lt_foo]++; } 10953 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10954}'` 10955 # AWK program above erroneously prepends '/' to C:/dos/paths 10956 # for these hosts. 10957 case $host_os in 10958 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10959 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10960 esac 10961 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10962else 10963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10964fi 10965library_names_spec= 10966libname_spec='lib$name' 10967soname_spec= 10968shrext_cmds=.so 10969postinstall_cmds= 10970postuninstall_cmds= 10971finish_cmds= 10972finish_eval= 10973shlibpath_var= 10974shlibpath_overrides_runpath=unknown 10975version_type=none 10976dynamic_linker="$host_os ld.so" 10977sys_lib_dlsearch_path_spec="/lib /usr/lib" 10978need_lib_prefix=unknown 10979hardcode_into_libs=no 10980 10981# when you set need_version to no, make sure it does not cause -set_version 10982# flags to be left without arguments 10983need_version=unknown 10984 10985 10986 10987case $host_os in 10988aix3*) 10989 version_type=linux # correct to gnu/linux during the next big refactor 10990 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10991 shlibpath_var=LIBPATH 10992 10993 # AIX 3 has no versioning support, so we append a major version to the name. 10994 soname_spec='$libname$release$shared_ext$major' 10995 ;; 10996 10997aix[4-9]*) 10998 version_type=linux # correct to gnu/linux during the next big refactor 10999 need_lib_prefix=no 11000 need_version=no 11001 hardcode_into_libs=yes 11002 if test ia64 = "$host_cpu"; then 11003 # AIX 5 supports IA64 11004 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11005 shlibpath_var=LD_LIBRARY_PATH 11006 else 11007 # With GCC up to 2.95.x, collect2 would create an import file 11008 # for dependence libraries. The import file would start with 11009 # the line '#! .'. This would cause the generated library to 11010 # depend on '.', always an invalid library. This was fixed in 11011 # development snapshots of GCC prior to 3.0. 11012 case $host_os in 11013 aix4 | aix4.[01] | aix4.[01].*) 11014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11015 echo ' yes ' 11016 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11017 : 11018 else 11019 can_build_shared=no 11020 fi 11021 ;; 11022 esac 11023 # Using Import Files as archive members, it is possible to support 11024 # filename-based versioning of shared library archives on AIX. While 11025 # this would work for both with and without runtime linking, it will 11026 # prevent static linking of such archives. So we do filename-based 11027 # shared library versioning with .so extension only, which is used 11028 # when both runtime linking and shared linking is enabled. 11029 # Unfortunately, runtime linking may impact performance, so we do 11030 # not want this to be the default eventually. Also, we use the 11031 # versioned .so libs for executables only if there is the -brtl 11032 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11033 # To allow for filename-based versioning support, we need to create 11034 # libNAME.so.V as an archive file, containing: 11035 # *) an Import File, referring to the versioned filename of the 11036 # archive as well as the shared archive member, telling the 11037 # bitwidth (32 or 64) of that shared object, and providing the 11038 # list of exported symbols of that shared object, eventually 11039 # decorated with the 'weak' keyword 11040 # *) the shared object with the F_LOADONLY flag set, to really avoid 11041 # it being seen by the linker. 11042 # At run time we better use the real file rather than another symlink, 11043 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11044 11045 case $with_aix_soname,$aix_use_runtimelinking in 11046 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11047 # soname into executable. Probably we can add versioning support to 11048 # collect2, so additional links can be useful in future. 11049 aix,yes) # traditional libtool 11050 dynamic_linker='AIX unversionable lib.so' 11051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11052 # instead of lib<name>.a to let people know that these are not 11053 # typical AIX shared libraries. 11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11055 ;; 11056 aix,no) # traditional AIX only 11057 dynamic_linker='AIX lib.a(lib.so.V)' 11058 # We preserve .a as extension for shared libraries through AIX4.2 11059 # and later when we are not doing run time linking. 11060 library_names_spec='$libname$release.a $libname.a' 11061 soname_spec='$libname$release$shared_ext$major' 11062 ;; 11063 svr4,*) # full svr4 only 11064 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11065 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11066 # We do not specify a path in Import Files, so LIBPATH fires. 11067 shlibpath_overrides_runpath=yes 11068 ;; 11069 *,yes) # both, prefer svr4 11070 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11071 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11072 # unpreferred sharedlib libNAME.a needs extra handling 11073 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"' 11074 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"' 11075 # We do not specify a path in Import Files, so LIBPATH fires. 11076 shlibpath_overrides_runpath=yes 11077 ;; 11078 *,no) # both, prefer aix 11079 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11080 library_names_spec='$libname$release.a $libname.a' 11081 soname_spec='$libname$release$shared_ext$major' 11082 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11083 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)' 11084 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"' 11085 ;; 11086 esac 11087 shlibpath_var=LIBPATH 11088 fi 11089 ;; 11090 11091amigaos*) 11092 case $host_cpu in 11093 powerpc) 11094 # Since July 2007 AmigaOS4 officially supports .so libraries. 11095 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11097 ;; 11098 m68k) 11099 library_names_spec='$libname.ixlibrary $libname.a' 11100 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11101 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' 11102 ;; 11103 esac 11104 ;; 11105 11106beos*) 11107 library_names_spec='$libname$shared_ext' 11108 dynamic_linker="$host_os ld.so" 11109 shlibpath_var=LIBRARY_PATH 11110 ;; 11111 11112bsdi[45]*) 11113 version_type=linux # correct to gnu/linux during the next big refactor 11114 need_version=no 11115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11116 soname_spec='$libname$release$shared_ext$major' 11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11118 shlibpath_var=LD_LIBRARY_PATH 11119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11121 # the default ld.so.conf also contains /usr/contrib/lib and 11122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11123 # libtool to hard-code these into programs 11124 ;; 11125 11126cygwin* | mingw* | pw32* | cegcc*) 11127 version_type=windows 11128 shrext_cmds=.dll 11129 need_version=no 11130 need_lib_prefix=no 11131 11132 case $GCC,$cc_basename in 11133 yes,*) 11134 # gcc 11135 library_names_spec='$libname.dll.a' 11136 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11137 postinstall_cmds='base_file=`basename \$file`~ 11138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11139 dldir=$destdir/`dirname \$dlpath`~ 11140 test -d \$dldir || mkdir -p \$dldir~ 11141 $install_prog $dir/$dlname \$dldir/$dlname~ 11142 chmod a+x \$dldir/$dlname~ 11143 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11144 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11145 fi' 11146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11147 dlpath=$dir/\$dldll~ 11148 $RM \$dlpath' 11149 shlibpath_overrides_runpath=yes 11150 11151 case $host_os in 11152 cygwin*) 11153 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11154 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11155 11156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11157 ;; 11158 mingw* | cegcc*) 11159 # MinGW DLLs use traditional 'lib' prefix 11160 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11161 ;; 11162 pw32*) 11163 # pw32 DLLs use 'pw' prefix rather than 'lib' 11164 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11165 ;; 11166 esac 11167 dynamic_linker='Win32 ld.exe' 11168 ;; 11169 11170 *,cl*) 11171 # Native MSVC 11172 libname_spec='$name' 11173 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11174 library_names_spec='$libname.dll.lib' 11175 11176 case $build_os in 11177 mingw*) 11178 sys_lib_search_path_spec= 11179 lt_save_ifs=$IFS 11180 IFS=';' 11181 for lt_path in $LIB 11182 do 11183 IFS=$lt_save_ifs 11184 # Let DOS variable expansion print the short 8.3 style file name. 11185 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11186 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11187 done 11188 IFS=$lt_save_ifs 11189 # Convert to MSYS style. 11190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11191 ;; 11192 cygwin*) 11193 # Convert to unix form, then to dos form, then back to unix form 11194 # but this time dos style (no spaces!) so that the unix form looks 11195 # like /cygdrive/c/PROGRA~1:/cygdr... 11196 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11197 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11198 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11199 ;; 11200 *) 11201 sys_lib_search_path_spec=$LIB 11202 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11203 # It is most probably a Windows format PATH. 11204 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11205 else 11206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11207 fi 11208 # FIXME: find the short name or the path components, as spaces are 11209 # common. (e.g. "Program Files" -> "PROGRA~1") 11210 ;; 11211 esac 11212 11213 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11214 postinstall_cmds='base_file=`basename \$file`~ 11215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11216 dldir=$destdir/`dirname \$dlpath`~ 11217 test -d \$dldir || mkdir -p \$dldir~ 11218 $install_prog $dir/$dlname \$dldir/$dlname' 11219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11220 dlpath=$dir/\$dldll~ 11221 $RM \$dlpath' 11222 shlibpath_overrides_runpath=yes 11223 dynamic_linker='Win32 link.exe' 11224 ;; 11225 11226 *) 11227 # Assume MSVC wrapper 11228 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11229 dynamic_linker='Win32 ld.exe' 11230 ;; 11231 esac 11232 # FIXME: first we should search . and the directory the executable is in 11233 shlibpath_var=PATH 11234 ;; 11235 11236darwin* | rhapsody*) 11237 dynamic_linker="$host_os dyld" 11238 version_type=darwin 11239 need_lib_prefix=no 11240 need_version=no 11241 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11242 soname_spec='$libname$release$major$shared_ext' 11243 shlibpath_overrides_runpath=yes 11244 shlibpath_var=DYLD_LIBRARY_PATH 11245 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11246 11247 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11249 ;; 11250 11251dgux*) 11252 version_type=linux # correct to gnu/linux during the next big refactor 11253 need_lib_prefix=no 11254 need_version=no 11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11256 soname_spec='$libname$release$shared_ext$major' 11257 shlibpath_var=LD_LIBRARY_PATH 11258 ;; 11259 11260freebsd* | dragonfly*) 11261 # DragonFly does not have aout. When/if they implement a new 11262 # versioning mechanism, adjust this. 11263 if test -x /usr/bin/objformat; then 11264 objformat=`/usr/bin/objformat` 11265 else 11266 case $host_os in 11267 freebsd[23].*) objformat=aout ;; 11268 *) objformat=elf ;; 11269 esac 11270 fi 11271 version_type=freebsd-$objformat 11272 case $version_type in 11273 freebsd-elf*) 11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11275 soname_spec='$libname$release$shared_ext$major' 11276 need_version=no 11277 need_lib_prefix=no 11278 ;; 11279 freebsd-*) 11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11281 need_version=yes 11282 ;; 11283 esac 11284 shlibpath_var=LD_LIBRARY_PATH 11285 case $host_os in 11286 freebsd2.*) 11287 shlibpath_overrides_runpath=yes 11288 ;; 11289 freebsd3.[01]* | freebsdelf3.[01]*) 11290 shlibpath_overrides_runpath=yes 11291 hardcode_into_libs=yes 11292 ;; 11293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11295 shlibpath_overrides_runpath=no 11296 hardcode_into_libs=yes 11297 ;; 11298 *) # from 4.6 on, and DragonFly 11299 shlibpath_overrides_runpath=yes 11300 hardcode_into_libs=yes 11301 ;; 11302 esac 11303 ;; 11304 11305haiku*) 11306 version_type=linux # correct to gnu/linux during the next big refactor 11307 need_lib_prefix=no 11308 need_version=no 11309 dynamic_linker="$host_os runtime_loader" 11310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11311 soname_spec='$libname$release$shared_ext$major' 11312 shlibpath_var=LIBRARY_PATH 11313 shlibpath_overrides_runpath=no 11314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11315 hardcode_into_libs=yes 11316 ;; 11317 11318hpux9* | hpux10* | hpux11*) 11319 # Give a soname corresponding to the major version so that dld.sl refuses to 11320 # link against other versions. 11321 version_type=sunos 11322 need_lib_prefix=no 11323 need_version=no 11324 case $host_cpu in 11325 ia64*) 11326 shrext_cmds='.so' 11327 hardcode_into_libs=yes 11328 dynamic_linker="$host_os dld.so" 11329 shlibpath_var=LD_LIBRARY_PATH 11330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11332 soname_spec='$libname$release$shared_ext$major' 11333 if test 32 = "$HPUX_IA64_MODE"; then 11334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11335 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11336 else 11337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11338 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11339 fi 11340 ;; 11341 hppa*64*) 11342 shrext_cmds='.sl' 11343 hardcode_into_libs=yes 11344 dynamic_linker="$host_os dld.sl" 11345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11348 soname_spec='$libname$release$shared_ext$major' 11349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11351 ;; 11352 *) 11353 shrext_cmds='.sl' 11354 dynamic_linker="$host_os dld.sl" 11355 shlibpath_var=SHLIB_PATH 11356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11358 soname_spec='$libname$release$shared_ext$major' 11359 ;; 11360 esac 11361 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11362 postinstall_cmds='chmod 555 $lib' 11363 # or fails outright, so override atomically: 11364 install_override_mode=555 11365 ;; 11366 11367interix[3-9]*) 11368 version_type=linux # correct to gnu/linux during the next big refactor 11369 need_lib_prefix=no 11370 need_version=no 11371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11372 soname_spec='$libname$release$shared_ext$major' 11373 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11374 shlibpath_var=LD_LIBRARY_PATH 11375 shlibpath_overrides_runpath=no 11376 hardcode_into_libs=yes 11377 ;; 11378 11379irix5* | irix6* | nonstopux*) 11380 case $host_os in 11381 nonstopux*) version_type=nonstopux ;; 11382 *) 11383 if test yes = "$lt_cv_prog_gnu_ld"; then 11384 version_type=linux # correct to gnu/linux during the next big refactor 11385 else 11386 version_type=irix 11387 fi ;; 11388 esac 11389 need_lib_prefix=no 11390 need_version=no 11391 soname_spec='$libname$release$shared_ext$major' 11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11393 case $host_os in 11394 irix5* | nonstopux*) 11395 libsuff= shlibsuff= 11396 ;; 11397 *) 11398 case $LD in # libtool.m4 will add one of these switches to LD 11399 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11400 libsuff= shlibsuff= libmagic=32-bit;; 11401 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11402 libsuff=32 shlibsuff=N32 libmagic=N32;; 11403 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11404 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11405 *) libsuff= shlibsuff= libmagic=never-match;; 11406 esac 11407 ;; 11408 esac 11409 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11410 shlibpath_overrides_runpath=no 11411 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11412 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11413 hardcode_into_libs=yes 11414 ;; 11415 11416# No shared lib support for Linux oldld, aout, or coff. 11417linux*oldld* | linux*aout* | linux*coff*) 11418 dynamic_linker=no 11419 ;; 11420 11421linux*android*) 11422 version_type=none # Android doesn't support versioned libraries. 11423 need_lib_prefix=no 11424 need_version=no 11425 library_names_spec='$libname$release$shared_ext' 11426 soname_spec='$libname$release$shared_ext' 11427 finish_cmds= 11428 shlibpath_var=LD_LIBRARY_PATH 11429 shlibpath_overrides_runpath=yes 11430 11431 # This implies no fast_install, which is unacceptable. 11432 # Some rework will be needed to allow for fast_install 11433 # before this can be enabled. 11434 hardcode_into_libs=yes 11435 11436 dynamic_linker='Android linker' 11437 # Don't embed -rpath directories since the linker doesn't support them. 11438 hardcode_libdir_flag_spec='-L$libdir' 11439 ;; 11440 11441# This must be glibc/ELF. 11442linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11443 version_type=linux # correct to gnu/linux during the next big refactor 11444 need_lib_prefix=no 11445 need_version=no 11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11447 soname_spec='$libname$release$shared_ext$major' 11448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11449 shlibpath_var=LD_LIBRARY_PATH 11450 shlibpath_overrides_runpath=no 11451 11452 # Some binutils ld are patched to set DT_RUNPATH 11453 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11454 $as_echo_n "(cached) " >&6 11455else 11456 lt_cv_shlibpath_overrides_runpath=no 11457 save_LDFLAGS=$LDFLAGS 11458 save_libdir=$libdir 11459 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11460 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11462/* end confdefs.h. */ 11463 11464int 11465main () 11466{ 11467 11468 ; 11469 return 0; 11470} 11471_ACEOF 11472if ac_fn_c_try_link "$LINENO"; then : 11473 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11474 lt_cv_shlibpath_overrides_runpath=yes 11475fi 11476fi 11477rm -f core conftest.err conftest.$ac_objext \ 11478 conftest$ac_exeext conftest.$ac_ext 11479 LDFLAGS=$save_LDFLAGS 11480 libdir=$save_libdir 11481 11482fi 11483 11484 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11485 11486 # This implies no fast_install, which is unacceptable. 11487 # Some rework will be needed to allow for fast_install 11488 # before this can be enabled. 11489 hardcode_into_libs=yes 11490 11491 # Add ABI-specific directories to the system library path. 11492 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11493 11494 # Ideally, we could use ldconfig to report *all* directores which are 11495 # searched for libraries, however this is still not possible. Aside from not 11496 # being certain /sbin/ldconfig is available, command 11497 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11498 # even though it is searched at run-time. Try to do the best guess by 11499 # appending ld.so.conf contents (and includes) to the search path. 11500 if test -f /etc/ld.so.conf; then 11501 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' ' '` 11502 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11503 fi 11504 11505 # We used to test for /lib/ld.so.1 and disable shared libraries on 11506 # powerpc, because MkLinux only supported shared libraries with the 11507 # GNU dynamic linker. Since this was broken with cross compilers, 11508 # most powerpc-linux boxes support dynamic linking these days and 11509 # people can always --disable-shared, the test was removed, and we 11510 # assume the GNU/Linux dynamic linker is in use. 11511 dynamic_linker='GNU/Linux ld.so' 11512 ;; 11513 11514netbsd*) 11515 version_type=sunos 11516 need_lib_prefix=no 11517 need_version=no 11518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11521 dynamic_linker='NetBSD (a.out) ld.so' 11522 else 11523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11524 soname_spec='$libname$release$shared_ext$major' 11525 dynamic_linker='NetBSD ld.elf_so' 11526 fi 11527 shlibpath_var=LD_LIBRARY_PATH 11528 shlibpath_overrides_runpath=yes 11529 hardcode_into_libs=yes 11530 ;; 11531 11532newsos6) 11533 version_type=linux # correct to gnu/linux during the next big refactor 11534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11535 shlibpath_var=LD_LIBRARY_PATH 11536 shlibpath_overrides_runpath=yes 11537 ;; 11538 11539*nto* | *qnx*) 11540 version_type=qnx 11541 need_lib_prefix=no 11542 need_version=no 11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11544 soname_spec='$libname$release$shared_ext$major' 11545 shlibpath_var=LD_LIBRARY_PATH 11546 shlibpath_overrides_runpath=no 11547 hardcode_into_libs=yes 11548 dynamic_linker='ldqnx.so' 11549 ;; 11550 11551openbsd* | bitrig*) 11552 version_type=sunos 11553 sys_lib_dlsearch_path_spec=/usr/lib 11554 need_lib_prefix=no 11555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11556 need_version=no 11557 else 11558 need_version=yes 11559 fi 11560 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11562 shlibpath_var=LD_LIBRARY_PATH 11563 shlibpath_overrides_runpath=yes 11564 ;; 11565 11566os2*) 11567 libname_spec='$name' 11568 version_type=windows 11569 shrext_cmds=.dll 11570 need_version=no 11571 need_lib_prefix=no 11572 # OS/2 can only load a DLL with a base name of 8 characters or less. 11573 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11574 v=$($ECHO $release$versuffix | tr -d .-); 11575 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11576 $ECHO $n$v`$shared_ext' 11577 library_names_spec='${libname}_dll.$libext' 11578 dynamic_linker='OS/2 ld.exe' 11579 shlibpath_var=BEGINLIBPATH 11580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11582 postinstall_cmds='base_file=`basename \$file`~ 11583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11584 dldir=$destdir/`dirname \$dlpath`~ 11585 test -d \$dldir || mkdir -p \$dldir~ 11586 $install_prog $dir/$dlname \$dldir/$dlname~ 11587 chmod a+x \$dldir/$dlname~ 11588 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11589 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11590 fi' 11591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11592 dlpath=$dir/\$dldll~ 11593 $RM \$dlpath' 11594 ;; 11595 11596osf3* | osf4* | osf5*) 11597 version_type=osf 11598 need_lib_prefix=no 11599 need_version=no 11600 soname_spec='$libname$release$shared_ext$major' 11601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11602 shlibpath_var=LD_LIBRARY_PATH 11603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11605 ;; 11606 11607rdos*) 11608 dynamic_linker=no 11609 ;; 11610 11611solaris*) 11612 version_type=linux # correct to gnu/linux during the next big refactor 11613 need_lib_prefix=no 11614 need_version=no 11615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11616 soname_spec='$libname$release$shared_ext$major' 11617 shlibpath_var=LD_LIBRARY_PATH 11618 shlibpath_overrides_runpath=yes 11619 hardcode_into_libs=yes 11620 # ldd complains unless libraries are executable 11621 postinstall_cmds='chmod +x $lib' 11622 ;; 11623 11624sunos4*) 11625 version_type=sunos 11626 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11628 shlibpath_var=LD_LIBRARY_PATH 11629 shlibpath_overrides_runpath=yes 11630 if test yes = "$with_gnu_ld"; then 11631 need_lib_prefix=no 11632 fi 11633 need_version=yes 11634 ;; 11635 11636sysv4 | sysv4.3*) 11637 version_type=linux # correct to gnu/linux during the next big refactor 11638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11639 soname_spec='$libname$release$shared_ext$major' 11640 shlibpath_var=LD_LIBRARY_PATH 11641 case $host_vendor in 11642 sni) 11643 shlibpath_overrides_runpath=no 11644 need_lib_prefix=no 11645 runpath_var=LD_RUN_PATH 11646 ;; 11647 siemens) 11648 need_lib_prefix=no 11649 ;; 11650 motorola) 11651 need_lib_prefix=no 11652 need_version=no 11653 shlibpath_overrides_runpath=no 11654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11655 ;; 11656 esac 11657 ;; 11658 11659sysv4*MP*) 11660 if test -d /usr/nec; then 11661 version_type=linux # correct to gnu/linux during the next big refactor 11662 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11663 soname_spec='$libname$shared_ext.$major' 11664 shlibpath_var=LD_LIBRARY_PATH 11665 fi 11666 ;; 11667 11668sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11669 version_type=sco 11670 need_lib_prefix=no 11671 need_version=no 11672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11673 soname_spec='$libname$release$shared_ext$major' 11674 shlibpath_var=LD_LIBRARY_PATH 11675 shlibpath_overrides_runpath=yes 11676 hardcode_into_libs=yes 11677 if test yes = "$with_gnu_ld"; then 11678 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11679 else 11680 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11681 case $host_os in 11682 sco3.2v5*) 11683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11684 ;; 11685 esac 11686 fi 11687 sys_lib_dlsearch_path_spec='/usr/lib' 11688 ;; 11689 11690tpf*) 11691 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11692 version_type=linux # correct to gnu/linux during the next big refactor 11693 need_lib_prefix=no 11694 need_version=no 11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11696 shlibpath_var=LD_LIBRARY_PATH 11697 shlibpath_overrides_runpath=no 11698 hardcode_into_libs=yes 11699 ;; 11700 11701uts4*) 11702 version_type=linux # correct to gnu/linux during the next big refactor 11703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11704 soname_spec='$libname$release$shared_ext$major' 11705 shlibpath_var=LD_LIBRARY_PATH 11706 ;; 11707 11708*) 11709 dynamic_linker=no 11710 ;; 11711esac 11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11713$as_echo "$dynamic_linker" >&6; } 11714test no = "$dynamic_linker" && can_build_shared=no 11715 11716variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11717if test yes = "$GCC"; then 11718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11719fi 11720 11721if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11722 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11723fi 11724 11725if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11726 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11727fi 11728 11729# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11730configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11731 11732# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11733func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11734 11735# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11736configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11835$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11836hardcode_action= 11837if test -n "$hardcode_libdir_flag_spec" || 11838 test -n "$runpath_var" || 11839 test yes = "$hardcode_automatic"; then 11840 11841 # We can hardcode non-existent directories. 11842 if test no != "$hardcode_direct" && 11843 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11844 # have to relink, otherwise we might link with an installed library 11845 # when we should be linking with a yet-to-be-installed one 11846 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11847 test no != "$hardcode_minus_L"; then 11848 # Linking always hardcodes the temporary library directory. 11849 hardcode_action=relink 11850 else 11851 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11852 hardcode_action=immediate 11853 fi 11854else 11855 # We cannot hardcode anything, or else we can only hardcode existing 11856 # directories. 11857 hardcode_action=unsupported 11858fi 11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11860$as_echo "$hardcode_action" >&6; } 11861 11862if test relink = "$hardcode_action" || 11863 test yes = "$inherit_rpath"; then 11864 # Fast installation is not supported 11865 enable_fast_install=no 11866elif test yes = "$shlibpath_overrides_runpath" || 11867 test no = "$enable_shared"; then 11868 # Fast installation is not necessary 11869 enable_fast_install=needless 11870fi 11871 11872 11873 11874 11875 11876 11877 if test yes != "$enable_dlopen"; then 11878 enable_dlopen=unknown 11879 enable_dlopen_self=unknown 11880 enable_dlopen_self_static=unknown 11881else 11882 lt_cv_dlopen=no 11883 lt_cv_dlopen_libs= 11884 11885 case $host_os in 11886 beos*) 11887 lt_cv_dlopen=load_add_on 11888 lt_cv_dlopen_libs= 11889 lt_cv_dlopen_self=yes 11890 ;; 11891 11892 mingw* | pw32* | cegcc*) 11893 lt_cv_dlopen=LoadLibrary 11894 lt_cv_dlopen_libs= 11895 ;; 11896 11897 cygwin*) 11898 lt_cv_dlopen=dlopen 11899 lt_cv_dlopen_libs= 11900 ;; 11901 11902 darwin*) 11903 # if libdl is installed we need to link against it 11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11905$as_echo_n "checking for dlopen in -ldl... " >&6; } 11906if ${ac_cv_lib_dl_dlopen+:} false; then : 11907 $as_echo_n "(cached) " >&6 11908else 11909 ac_check_lib_save_LIBS=$LIBS 11910LIBS="-ldl $LIBS" 11911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11912/* end confdefs.h. */ 11913 11914/* Override any GCC internal prototype to avoid an error. 11915 Use char because int might match the return type of a GCC 11916 builtin and then its argument prototype would still apply. */ 11917#ifdef __cplusplus 11918extern "C" 11919#endif 11920char dlopen (); 11921int 11922main () 11923{ 11924return dlopen (); 11925 ; 11926 return 0; 11927} 11928_ACEOF 11929if ac_fn_c_try_link "$LINENO"; then : 11930 ac_cv_lib_dl_dlopen=yes 11931else 11932 ac_cv_lib_dl_dlopen=no 11933fi 11934rm -f core conftest.err conftest.$ac_objext \ 11935 conftest$ac_exeext conftest.$ac_ext 11936LIBS=$ac_check_lib_save_LIBS 11937fi 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11939$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11940if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11941 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11942else 11943 11944 lt_cv_dlopen=dyld 11945 lt_cv_dlopen_libs= 11946 lt_cv_dlopen_self=yes 11947 11948fi 11949 11950 ;; 11951 11952 tpf*) 11953 # Don't try to run any link tests for TPF. We know it's impossible 11954 # because TPF is a cross-compiler, and we know how we open DSOs. 11955 lt_cv_dlopen=dlopen 11956 lt_cv_dlopen_libs= 11957 lt_cv_dlopen_self=no 11958 ;; 11959 11960 *) 11961 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11962if test "x$ac_cv_func_shl_load" = xyes; then : 11963 lt_cv_dlopen=shl_load 11964else 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11966$as_echo_n "checking for shl_load in -ldld... " >&6; } 11967if ${ac_cv_lib_dld_shl_load+:} false; then : 11968 $as_echo_n "(cached) " >&6 11969else 11970 ac_check_lib_save_LIBS=$LIBS 11971LIBS="-ldld $LIBS" 11972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11973/* end confdefs.h. */ 11974 11975/* Override any GCC internal prototype to avoid an error. 11976 Use char because int might match the return type of a GCC 11977 builtin and then its argument prototype would still apply. */ 11978#ifdef __cplusplus 11979extern "C" 11980#endif 11981char shl_load (); 11982int 11983main () 11984{ 11985return shl_load (); 11986 ; 11987 return 0; 11988} 11989_ACEOF 11990if ac_fn_c_try_link "$LINENO"; then : 11991 ac_cv_lib_dld_shl_load=yes 11992else 11993 ac_cv_lib_dld_shl_load=no 11994fi 11995rm -f core conftest.err conftest.$ac_objext \ 11996 conftest$ac_exeext conftest.$ac_ext 11997LIBS=$ac_check_lib_save_LIBS 11998fi 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12000$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12001if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12002 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12003else 12004 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12005if test "x$ac_cv_func_dlopen" = xyes; then : 12006 lt_cv_dlopen=dlopen 12007else 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12009$as_echo_n "checking for dlopen in -ldl... " >&6; } 12010if ${ac_cv_lib_dl_dlopen+:} false; then : 12011 $as_echo_n "(cached) " >&6 12012else 12013 ac_check_lib_save_LIBS=$LIBS 12014LIBS="-ldl $LIBS" 12015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12016/* end confdefs.h. */ 12017 12018/* Override any GCC internal prototype to avoid an error. 12019 Use char because int might match the return type of a GCC 12020 builtin and then its argument prototype would still apply. */ 12021#ifdef __cplusplus 12022extern "C" 12023#endif 12024char dlopen (); 12025int 12026main () 12027{ 12028return dlopen (); 12029 ; 12030 return 0; 12031} 12032_ACEOF 12033if ac_fn_c_try_link "$LINENO"; then : 12034 ac_cv_lib_dl_dlopen=yes 12035else 12036 ac_cv_lib_dl_dlopen=no 12037fi 12038rm -f core conftest.err conftest.$ac_objext \ 12039 conftest$ac_exeext conftest.$ac_ext 12040LIBS=$ac_check_lib_save_LIBS 12041fi 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12043$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12044if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12045 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12046else 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12048$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12049if ${ac_cv_lib_svld_dlopen+:} false; then : 12050 $as_echo_n "(cached) " >&6 12051else 12052 ac_check_lib_save_LIBS=$LIBS 12053LIBS="-lsvld $LIBS" 12054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12055/* end confdefs.h. */ 12056 12057/* Override any GCC internal prototype to avoid an error. 12058 Use char because int might match the return type of a GCC 12059 builtin and then its argument prototype would still apply. */ 12060#ifdef __cplusplus 12061extern "C" 12062#endif 12063char dlopen (); 12064int 12065main () 12066{ 12067return dlopen (); 12068 ; 12069 return 0; 12070} 12071_ACEOF 12072if ac_fn_c_try_link "$LINENO"; then : 12073 ac_cv_lib_svld_dlopen=yes 12074else 12075 ac_cv_lib_svld_dlopen=no 12076fi 12077rm -f core conftest.err conftest.$ac_objext \ 12078 conftest$ac_exeext conftest.$ac_ext 12079LIBS=$ac_check_lib_save_LIBS 12080fi 12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12082$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12083if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12084 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12085else 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12087$as_echo_n "checking for dld_link in -ldld... " >&6; } 12088if ${ac_cv_lib_dld_dld_link+:} false; then : 12089 $as_echo_n "(cached) " >&6 12090else 12091 ac_check_lib_save_LIBS=$LIBS 12092LIBS="-ldld $LIBS" 12093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12094/* end confdefs.h. */ 12095 12096/* Override any GCC internal prototype to avoid an error. 12097 Use char because int might match the return type of a GCC 12098 builtin and then its argument prototype would still apply. */ 12099#ifdef __cplusplus 12100extern "C" 12101#endif 12102char dld_link (); 12103int 12104main () 12105{ 12106return dld_link (); 12107 ; 12108 return 0; 12109} 12110_ACEOF 12111if ac_fn_c_try_link "$LINENO"; then : 12112 ac_cv_lib_dld_dld_link=yes 12113else 12114 ac_cv_lib_dld_dld_link=no 12115fi 12116rm -f core conftest.err conftest.$ac_objext \ 12117 conftest$ac_exeext conftest.$ac_ext 12118LIBS=$ac_check_lib_save_LIBS 12119fi 12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12121$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12122if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12123 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12124fi 12125 12126 12127fi 12128 12129 12130fi 12131 12132 12133fi 12134 12135 12136fi 12137 12138 12139fi 12140 12141 ;; 12142 esac 12143 12144 if test no = "$lt_cv_dlopen"; then 12145 enable_dlopen=no 12146 else 12147 enable_dlopen=yes 12148 fi 12149 12150 case $lt_cv_dlopen in 12151 dlopen) 12152 save_CPPFLAGS=$CPPFLAGS 12153 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12154 12155 save_LDFLAGS=$LDFLAGS 12156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12157 12158 save_LIBS=$LIBS 12159 LIBS="$lt_cv_dlopen_libs $LIBS" 12160 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12162$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12163if ${lt_cv_dlopen_self+:} false; then : 12164 $as_echo_n "(cached) " >&6 12165else 12166 if test yes = "$cross_compiling"; then : 12167 lt_cv_dlopen_self=cross 12168else 12169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12170 lt_status=$lt_dlunknown 12171 cat > conftest.$ac_ext <<_LT_EOF 12172#line $LINENO "configure" 12173#include "confdefs.h" 12174 12175#if HAVE_DLFCN_H 12176#include <dlfcn.h> 12177#endif 12178 12179#include <stdio.h> 12180 12181#ifdef RTLD_GLOBAL 12182# define LT_DLGLOBAL RTLD_GLOBAL 12183#else 12184# ifdef DL_GLOBAL 12185# define LT_DLGLOBAL DL_GLOBAL 12186# else 12187# define LT_DLGLOBAL 0 12188# endif 12189#endif 12190 12191/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12192 find out it does not work in some platform. */ 12193#ifndef LT_DLLAZY_OR_NOW 12194# ifdef RTLD_LAZY 12195# define LT_DLLAZY_OR_NOW RTLD_LAZY 12196# else 12197# ifdef DL_LAZY 12198# define LT_DLLAZY_OR_NOW DL_LAZY 12199# else 12200# ifdef RTLD_NOW 12201# define LT_DLLAZY_OR_NOW RTLD_NOW 12202# else 12203# ifdef DL_NOW 12204# define LT_DLLAZY_OR_NOW DL_NOW 12205# else 12206# define LT_DLLAZY_OR_NOW 0 12207# endif 12208# endif 12209# endif 12210# endif 12211#endif 12212 12213/* When -fvisibility=hidden is used, assume the code has been annotated 12214 correspondingly for the symbols needed. */ 12215#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12216int fnord () __attribute__((visibility("default"))); 12217#endif 12218 12219int fnord () { return 42; } 12220int main () 12221{ 12222 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12223 int status = $lt_dlunknown; 12224 12225 if (self) 12226 { 12227 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12228 else 12229 { 12230 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12231 else puts (dlerror ()); 12232 } 12233 /* dlclose (self); */ 12234 } 12235 else 12236 puts (dlerror ()); 12237 12238 return status; 12239} 12240_LT_EOF 12241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12242 (eval $ac_link) 2>&5 12243 ac_status=$? 12244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12245 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12246 (./conftest; exit; ) >&5 2>/dev/null 12247 lt_status=$? 12248 case x$lt_status in 12249 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12250 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12251 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12252 esac 12253 else : 12254 # compilation failed 12255 lt_cv_dlopen_self=no 12256 fi 12257fi 12258rm -fr conftest* 12259 12260 12261fi 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12263$as_echo "$lt_cv_dlopen_self" >&6; } 12264 12265 if test yes = "$lt_cv_dlopen_self"; then 12266 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12268$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12269if ${lt_cv_dlopen_self_static+:} false; then : 12270 $as_echo_n "(cached) " >&6 12271else 12272 if test yes = "$cross_compiling"; then : 12273 lt_cv_dlopen_self_static=cross 12274else 12275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12276 lt_status=$lt_dlunknown 12277 cat > conftest.$ac_ext <<_LT_EOF 12278#line $LINENO "configure" 12279#include "confdefs.h" 12280 12281#if HAVE_DLFCN_H 12282#include <dlfcn.h> 12283#endif 12284 12285#include <stdio.h> 12286 12287#ifdef RTLD_GLOBAL 12288# define LT_DLGLOBAL RTLD_GLOBAL 12289#else 12290# ifdef DL_GLOBAL 12291# define LT_DLGLOBAL DL_GLOBAL 12292# else 12293# define LT_DLGLOBAL 0 12294# endif 12295#endif 12296 12297/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12298 find out it does not work in some platform. */ 12299#ifndef LT_DLLAZY_OR_NOW 12300# ifdef RTLD_LAZY 12301# define LT_DLLAZY_OR_NOW RTLD_LAZY 12302# else 12303# ifdef DL_LAZY 12304# define LT_DLLAZY_OR_NOW DL_LAZY 12305# else 12306# ifdef RTLD_NOW 12307# define LT_DLLAZY_OR_NOW RTLD_NOW 12308# else 12309# ifdef DL_NOW 12310# define LT_DLLAZY_OR_NOW DL_NOW 12311# else 12312# define LT_DLLAZY_OR_NOW 0 12313# endif 12314# endif 12315# endif 12316# endif 12317#endif 12318 12319/* When -fvisibility=hidden is used, assume the code has been annotated 12320 correspondingly for the symbols needed. */ 12321#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12322int fnord () __attribute__((visibility("default"))); 12323#endif 12324 12325int fnord () { return 42; } 12326int main () 12327{ 12328 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12329 int status = $lt_dlunknown; 12330 12331 if (self) 12332 { 12333 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12334 else 12335 { 12336 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12337 else puts (dlerror ()); 12338 } 12339 /* dlclose (self); */ 12340 } 12341 else 12342 puts (dlerror ()); 12343 12344 return status; 12345} 12346_LT_EOF 12347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12348 (eval $ac_link) 2>&5 12349 ac_status=$? 12350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12351 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12352 (./conftest; exit; ) >&5 2>/dev/null 12353 lt_status=$? 12354 case x$lt_status in 12355 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12356 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12357 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12358 esac 12359 else : 12360 # compilation failed 12361 lt_cv_dlopen_self_static=no 12362 fi 12363fi 12364rm -fr conftest* 12365 12366 12367fi 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12369$as_echo "$lt_cv_dlopen_self_static" >&6; } 12370 fi 12371 12372 CPPFLAGS=$save_CPPFLAGS 12373 LDFLAGS=$save_LDFLAGS 12374 LIBS=$save_LIBS 12375 ;; 12376 esac 12377 12378 case $lt_cv_dlopen_self in 12379 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12380 *) enable_dlopen_self=unknown ;; 12381 esac 12382 12383 case $lt_cv_dlopen_self_static in 12384 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12385 *) enable_dlopen_self_static=unknown ;; 12386 esac 12387fi 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405striplib= 12406old_striplib= 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12408$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12409if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12410 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12411 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12413$as_echo "yes" >&6; } 12414else 12415# FIXME - insert some real tests, host_os isn't really good enough 12416 case $host_os in 12417 darwin*) 12418 if test -n "$STRIP"; then 12419 striplib="$STRIP -x" 12420 old_striplib="$STRIP -S" 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12422$as_echo "yes" >&6; } 12423 else 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12425$as_echo "no" >&6; } 12426 fi 12427 ;; 12428 *) 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12430$as_echo "no" >&6; } 12431 ;; 12432 esac 12433fi 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 # Report what library types will actually be built 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12448$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12450$as_echo "$can_build_shared" >&6; } 12451 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12453$as_echo_n "checking whether to build shared libraries... " >&6; } 12454 test no = "$can_build_shared" && enable_shared=no 12455 12456 # On AIX, shared libraries and static libraries use the same namespace, and 12457 # are all built from PIC. 12458 case $host_os in 12459 aix3*) 12460 test yes = "$enable_shared" && enable_static=no 12461 if test -n "$RANLIB"; then 12462 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12463 postinstall_cmds='$RANLIB $lib' 12464 fi 12465 ;; 12466 12467 aix[4-9]*) 12468 if test ia64 != "$host_cpu"; then 12469 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12470 yes,aix,yes) ;; # shared object as lib.so file only 12471 yes,svr4,*) ;; # shared object as lib.so archive member only 12472 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12473 esac 12474 fi 12475 ;; 12476 esac 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12478$as_echo "$enable_shared" >&6; } 12479 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12481$as_echo_n "checking whether to build static libraries... " >&6; } 12482 # Make sure either enable_shared or enable_static is yes. 12483 test yes = "$enable_shared" || enable_static=yes 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12485$as_echo "$enable_static" >&6; } 12486 12487 12488 12489 12490fi 12491ac_ext=c 12492ac_cpp='$CPP $CPPFLAGS' 12493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12495ac_compiler_gnu=$ac_cv_c_compiler_gnu 12496 12497CC=$lt_save_CC 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 ac_config_commands="$ac_config_commands libtool" 12514 12515 12516 12517 12518# Only expand once: 12519 12520 12521 12522 12523lang_plugins="\ 12524 golang \ 12525 lua \ 12526 ocaml \ 12527 perl \ 12528 python \ 12529 ruby \ 12530 rust \ 12531 sh \ 12532 tcl \ 12533 " 12534non_lang_plugins="\ 12535 curl \ 12536 data \ 12537 eval \ 12538 example1 \ 12539 example2 \ 12540 example3 \ 12541 example4 \ 12542 ext2 \ 12543 file \ 12544 floppy \ 12545 full \ 12546 guestfs \ 12547 gzip \ 12548 info \ 12549 iso \ 12550 libvirt \ 12551 linuxdisk \ 12552 memory \ 12553 nbd \ 12554 null \ 12555 partitioning \ 12556 pattern \ 12557 random \ 12558 split \ 12559 ssh \ 12560 streaming \ 12561 tar \ 12562 tmpdisk \ 12563 vddk \ 12564 zero \ 12565 " 12566plugins="$(echo $(printf %s\\n $lang_plugins $non_lang_plugins | sort -u))" 12567filters="\ 12568 blocksize \ 12569 cache \ 12570 cacheextents \ 12571 cow \ 12572 delay \ 12573 error \ 12574 exitlast \ 12575 ext2 \ 12576 extentlist \ 12577 fua \ 12578 ip \ 12579 limit \ 12580 log \ 12581 nocache \ 12582 noextents \ 12583 nofilter \ 12584 noparallel \ 12585 nozero \ 12586 offset \ 12587 partition \ 12588 rate \ 12589 readahead \ 12590 retry \ 12591 stats \ 12592 truncate \ 12593 xz \ 12594 " 12595 12596 12597 12598 12599 12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12601$as_echo_n "checking for a sed that does not truncate output... " >&6; } 12602if ${ac_cv_path_SED+:} false; then : 12603 $as_echo_n "(cached) " >&6 12604else 12605 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12606 for ac_i in 1 2 3 4 5 6 7; do 12607 ac_script="$ac_script$as_nl$ac_script" 12608 done 12609 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12610 { ac_script=; unset ac_script;} 12611 if test -z "$SED"; then 12612 ac_path_SED_found=false 12613 # Loop through the user's path and test for each of PROGNAME-LIST 12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12615for as_dir in $PATH 12616do 12617 IFS=$as_save_IFS 12618 test -z "$as_dir" && as_dir=. 12619 for ac_prog in sed gsed; do 12620 for ac_exec_ext in '' $ac_executable_extensions; do 12621 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12622 as_fn_executable_p "$ac_path_SED" || continue 12623# Check for GNU ac_path_SED and select it if it is found. 12624 # Check for GNU $ac_path_SED 12625case `"$ac_path_SED" --version 2>&1` in 12626*GNU*) 12627 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12628*) 12629 ac_count=0 12630 $as_echo_n 0123456789 >"conftest.in" 12631 while : 12632 do 12633 cat "conftest.in" "conftest.in" >"conftest.tmp" 12634 mv "conftest.tmp" "conftest.in" 12635 cp "conftest.in" "conftest.nl" 12636 $as_echo '' >> "conftest.nl" 12637 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12639 as_fn_arith $ac_count + 1 && ac_count=$as_val 12640 if test $ac_count -gt ${ac_path_SED_max-0}; then 12641 # Best one so far, save it but keep looking for a better one 12642 ac_cv_path_SED="$ac_path_SED" 12643 ac_path_SED_max=$ac_count 12644 fi 12645 # 10*(2^10) chars as input seems more than enough 12646 test $ac_count -gt 10 && break 12647 done 12648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12649esac 12650 12651 $ac_path_SED_found && break 3 12652 done 12653 done 12654 done 12655IFS=$as_save_IFS 12656 if test -z "$ac_cv_path_SED"; then 12657 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12658 fi 12659else 12660 ac_cv_path_SED=$SED 12661fi 12662 12663fi 12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12665$as_echo "$ac_cv_path_SED" >&6; } 12666 SED="$ac_cv_path_SED" 12667 rm -f conftest.sed 12668 12669 12670 case $ac_cv_prog_cc_stdc in #( 12671 no) : 12672 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 12673 *) : 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12675$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12676if ${ac_cv_prog_cc_c99+:} false; then : 12677 $as_echo_n "(cached) " >&6 12678else 12679 ac_cv_prog_cc_c99=no 12680ac_save_CC=$CC 12681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12682/* end confdefs.h. */ 12683#include <stdarg.h> 12684#include <stdbool.h> 12685#include <stdlib.h> 12686#include <wchar.h> 12687#include <stdio.h> 12688 12689// Check varargs macros. These examples are taken from C99 6.10.3.5. 12690#define debug(...) fprintf (stderr, __VA_ARGS__) 12691#define showlist(...) puts (#__VA_ARGS__) 12692#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12693static void 12694test_varargs_macros (void) 12695{ 12696 int x = 1234; 12697 int y = 5678; 12698 debug ("Flag"); 12699 debug ("X = %d\n", x); 12700 showlist (The first, second, and third items.); 12701 report (x>y, "x is %d but y is %d", x, y); 12702} 12703 12704// Check long long types. 12705#define BIG64 18446744073709551615ull 12706#define BIG32 4294967295ul 12707#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12708#if !BIG_OK 12709 your preprocessor is broken; 12710#endif 12711#if BIG_OK 12712#else 12713 your preprocessor is broken; 12714#endif 12715static long long int bignum = -9223372036854775807LL; 12716static unsigned long long int ubignum = BIG64; 12717 12718struct incomplete_array 12719{ 12720 int datasize; 12721 double data[]; 12722}; 12723 12724struct named_init { 12725 int number; 12726 const wchar_t *name; 12727 double average; 12728}; 12729 12730typedef const char *ccp; 12731 12732static inline int 12733test_restrict (ccp restrict text) 12734{ 12735 // See if C++-style comments work. 12736 // Iterate through items via the restricted pointer. 12737 // Also check for declarations in for loops. 12738 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12739 continue; 12740 return 0; 12741} 12742 12743// Check varargs and va_copy. 12744static void 12745test_varargs (const char *format, ...) 12746{ 12747 va_list args; 12748 va_start (args, format); 12749 va_list args_copy; 12750 va_copy (args_copy, args); 12751 12752 const char *str; 12753 int number; 12754 float fnumber; 12755 12756 while (*format) 12757 { 12758 switch (*format++) 12759 { 12760 case 's': // string 12761 str = va_arg (args_copy, const char *); 12762 break; 12763 case 'd': // int 12764 number = va_arg (args_copy, int); 12765 break; 12766 case 'f': // float 12767 fnumber = va_arg (args_copy, double); 12768 break; 12769 default: 12770 break; 12771 } 12772 } 12773 va_end (args_copy); 12774 va_end (args); 12775} 12776 12777int 12778main () 12779{ 12780 12781 // Check bool. 12782 _Bool success = false; 12783 12784 // Check restrict. 12785 if (test_restrict ("String literal") == 0) 12786 success = true; 12787 char *restrict newvar = "Another string"; 12788 12789 // Check varargs. 12790 test_varargs ("s, d' f .", "string", 65, 34.234); 12791 test_varargs_macros (); 12792 12793 // Check flexible array members. 12794 struct incomplete_array *ia = 12795 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12796 ia->datasize = 10; 12797 for (int i = 0; i < ia->datasize; ++i) 12798 ia->data[i] = i * 1.234; 12799 12800 // Check named initializers. 12801 struct named_init ni = { 12802 .number = 34, 12803 .name = L"Test wide string", 12804 .average = 543.34343, 12805 }; 12806 12807 ni.number = 58; 12808 12809 int dynamic_array[ni.number]; 12810 dynamic_array[ni.number - 1] = 543; 12811 12812 // work around unused variable warnings 12813 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12814 || dynamic_array[ni.number - 1] != 543); 12815 12816 ; 12817 return 0; 12818} 12819_ACEOF 12820for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12821do 12822 CC="$ac_save_CC $ac_arg" 12823 if ac_fn_c_try_compile "$LINENO"; then : 12824 ac_cv_prog_cc_c99=$ac_arg 12825fi 12826rm -f core conftest.err conftest.$ac_objext 12827 test "x$ac_cv_prog_cc_c99" != "xno" && break 12828done 12829rm -f conftest.$ac_ext 12830CC=$ac_save_CC 12831 12832fi 12833# AC_CACHE_VAL 12834case "x$ac_cv_prog_cc_c99" in 12835 x) 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12837$as_echo "none needed" >&6; } ;; 12838 xno) 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12840$as_echo "unsupported" >&6; } ;; 12841 *) 12842 CC="$CC $ac_cv_prog_cc_c99" 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12844$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12845esac 12846if test "x$ac_cv_prog_cc_c99" != xno; then : 12847 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 12848else 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12850$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12851if ${ac_cv_prog_cc_c89+:} false; then : 12852 $as_echo_n "(cached) " >&6 12853else 12854 ac_cv_prog_cc_c89=no 12855ac_save_CC=$CC 12856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12857/* end confdefs.h. */ 12858#include <stdarg.h> 12859#include <stdio.h> 12860struct stat; 12861/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12862struct buf { int x; }; 12863FILE * (*rcsopen) (struct buf *, struct stat *, int); 12864static char *e (p, i) 12865 char **p; 12866 int i; 12867{ 12868 return p[i]; 12869} 12870static char *f (char * (*g) (char **, int), char **p, ...) 12871{ 12872 char *s; 12873 va_list v; 12874 va_start (v,p); 12875 s = g (p, va_arg (v,int)); 12876 va_end (v); 12877 return s; 12878} 12879 12880/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12881 function prototypes and stuff, but not '\xHH' hex character constants. 12882 These don't provoke an error unfortunately, instead are silently treated 12883 as 'x'. The following induces an error, until -std is added to get 12884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12885 array size at least. It's necessary to write '\x00'==0 to get something 12886 that's true only with -std. */ 12887int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12888 12889/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12890 inside strings and character constants. */ 12891#define FOO(x) 'x' 12892int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12893 12894int test (int i, double x); 12895struct s1 {int (*f) (int a);}; 12896struct s2 {int (*f) (double a);}; 12897int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12898int argc; 12899char **argv; 12900int 12901main () 12902{ 12903return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12904 ; 12905 return 0; 12906} 12907_ACEOF 12908for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12910do 12911 CC="$ac_save_CC $ac_arg" 12912 if ac_fn_c_try_compile "$LINENO"; then : 12913 ac_cv_prog_cc_c89=$ac_arg 12914fi 12915rm -f core conftest.err conftest.$ac_objext 12916 test "x$ac_cv_prog_cc_c89" != "xno" && break 12917done 12918rm -f conftest.$ac_ext 12919CC=$ac_save_CC 12920 12921fi 12922# AC_CACHE_VAL 12923case "x$ac_cv_prog_cc_c89" in 12924 x) 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12926$as_echo "none needed" >&6; } ;; 12927 xno) 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12929$as_echo "unsupported" >&6; } ;; 12930 *) 12931 CC="$CC $ac_cv_prog_cc_c89" 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12933$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12934esac 12935if test "x$ac_cv_prog_cc_c89" != xno; then : 12936 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 12937else 12938 ac_cv_prog_cc_stdc=no 12939fi 12940 12941fi 12942 ;; 12943esac 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 12945$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 12946 if ${ac_cv_prog_cc_stdc+:} false; then : 12947 $as_echo_n "(cached) " >&6 12948fi 12949 12950 case $ac_cv_prog_cc_stdc in #( 12951 no) : 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12953$as_echo "unsupported" >&6; } ;; #( 12954 '') : 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12956$as_echo "none needed" >&6; } ;; #( 12957 *) : 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 12959$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 12960esac 12961 12962 12963ac_ext=c 12964ac_cpp='$CPP $CPPFLAGS' 12965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12967ac_compiler_gnu=$ac_cv_c_compiler_gnu 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 12969$as_echo_n "checking how to run the C preprocessor... " >&6; } 12970# On Suns, sometimes $CPP names a directory. 12971if test -n "$CPP" && test -d "$CPP"; then 12972 CPP= 12973fi 12974if test -z "$CPP"; then 12975 if ${ac_cv_prog_CPP+:} false; then : 12976 $as_echo_n "(cached) " >&6 12977else 12978 # Double quotes because CPP needs to be expanded 12979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 12980 do 12981 ac_preproc_ok=false 12982for ac_c_preproc_warn_flag in '' yes 12983do 12984 # Use a header file that comes with gcc, so configuring glibc 12985 # with a fresh cross-compiler works. 12986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12987 # <limits.h> exists even on freestanding compilers. 12988 # On the NeXT, cc -E runs the code through the compiler's parser, 12989 # not just through cpp. "Syntax error" is here to catch this case. 12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12991/* end confdefs.h. */ 12992#ifdef __STDC__ 12993# include <limits.h> 12994#else 12995# include <assert.h> 12996#endif 12997 Syntax error 12998_ACEOF 12999if ac_fn_c_try_cpp "$LINENO"; then : 13000 13001else 13002 # Broken: fails on valid input. 13003continue 13004fi 13005rm -f conftest.err conftest.i conftest.$ac_ext 13006 13007 # OK, works on sane cases. Now check whether nonexistent headers 13008 # can be detected and how. 13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13010/* end confdefs.h. */ 13011#include <ac_nonexistent.h> 13012_ACEOF 13013if ac_fn_c_try_cpp "$LINENO"; then : 13014 # Broken: success on invalid input. 13015continue 13016else 13017 # Passes both tests. 13018ac_preproc_ok=: 13019break 13020fi 13021rm -f conftest.err conftest.i conftest.$ac_ext 13022 13023done 13024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13025rm -f conftest.i conftest.err conftest.$ac_ext 13026if $ac_preproc_ok; then : 13027 break 13028fi 13029 13030 done 13031 ac_cv_prog_CPP=$CPP 13032 13033fi 13034 CPP=$ac_cv_prog_CPP 13035else 13036 ac_cv_prog_CPP=$CPP 13037fi 13038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 13039$as_echo "$CPP" >&6; } 13040ac_preproc_ok=false 13041for ac_c_preproc_warn_flag in '' yes 13042do 13043 # Use a header file that comes with gcc, so configuring glibc 13044 # with a fresh cross-compiler works. 13045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13046 # <limits.h> exists even on freestanding compilers. 13047 # On the NeXT, cc -E runs the code through the compiler's parser, 13048 # not just through cpp. "Syntax error" is here to catch this case. 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13050/* end confdefs.h. */ 13051#ifdef __STDC__ 13052# include <limits.h> 13053#else 13054# include <assert.h> 13055#endif 13056 Syntax error 13057_ACEOF 13058if ac_fn_c_try_cpp "$LINENO"; then : 13059 13060else 13061 # Broken: fails on valid input. 13062continue 13063fi 13064rm -f conftest.err conftest.i conftest.$ac_ext 13065 13066 # OK, works on sane cases. Now check whether nonexistent headers 13067 # can be detected and how. 13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13069/* end confdefs.h. */ 13070#include <ac_nonexistent.h> 13071_ACEOF 13072if ac_fn_c_try_cpp "$LINENO"; then : 13073 # Broken: success on invalid input. 13074continue 13075else 13076 # Passes both tests. 13077ac_preproc_ok=: 13078break 13079fi 13080rm -f conftest.err conftest.i conftest.$ac_ext 13081 13082done 13083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13084rm -f conftest.i conftest.err conftest.$ac_ext 13085if $ac_preproc_ok; then : 13086 13087else 13088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13090as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 13091See \`config.log' for more details" "$LINENO" 5; } 13092fi 13093 13094ac_ext=c 13095ac_cpp='$CPP $CPPFLAGS' 13096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13098ac_compiler_gnu=$ac_cv_c_compiler_gnu 13099 13100 13101# Check whether --enable-largefile was given. 13102if test "${enable_largefile+set}" = set; then : 13103 enableval=$enable_largefile; 13104fi 13105 13106if test "$enable_largefile" != no; then 13107 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13109$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13110if ${ac_cv_sys_largefile_CC+:} false; then : 13111 $as_echo_n "(cached) " >&6 13112else 13113 ac_cv_sys_largefile_CC=no 13114 if test "$GCC" != yes; then 13115 ac_save_CC=$CC 13116 while :; do 13117 # IRIX 6.2 and later do not support large files by default, 13118 # so use the C compiler's -n32 option if that helps. 13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13120/* end confdefs.h. */ 13121#include <sys/types.h> 13122 /* Check that off_t can represent 2**63 - 1 correctly. 13123 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13124 since some C++ compilers masquerading as C compilers 13125 incorrectly reject 9223372036854775807. */ 13126#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13128 && LARGE_OFF_T % 2147483647 == 1) 13129 ? 1 : -1]; 13130int 13131main () 13132{ 13133 13134 ; 13135 return 0; 13136} 13137_ACEOF 13138 if ac_fn_c_try_compile "$LINENO"; then : 13139 break 13140fi 13141rm -f core conftest.err conftest.$ac_objext 13142 CC="$CC -n32" 13143 if ac_fn_c_try_compile "$LINENO"; then : 13144 ac_cv_sys_largefile_CC=' -n32'; break 13145fi 13146rm -f core conftest.err conftest.$ac_objext 13147 break 13148 done 13149 CC=$ac_save_CC 13150 rm -f conftest.$ac_ext 13151 fi 13152fi 13153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13154$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13155 if test "$ac_cv_sys_largefile_CC" != no; then 13156 CC=$CC$ac_cv_sys_largefile_CC 13157 fi 13158 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13160$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13161if ${ac_cv_sys_file_offset_bits+:} false; then : 13162 $as_echo_n "(cached) " >&6 13163else 13164 while :; do 13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13166/* end confdefs.h. */ 13167#include <sys/types.h> 13168 /* Check that off_t can represent 2**63 - 1 correctly. 13169 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13170 since some C++ compilers masquerading as C compilers 13171 incorrectly reject 9223372036854775807. */ 13172#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13174 && LARGE_OFF_T % 2147483647 == 1) 13175 ? 1 : -1]; 13176int 13177main () 13178{ 13179 13180 ; 13181 return 0; 13182} 13183_ACEOF 13184if ac_fn_c_try_compile "$LINENO"; then : 13185 ac_cv_sys_file_offset_bits=no; break 13186fi 13187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13189/* end confdefs.h. */ 13190#define _FILE_OFFSET_BITS 64 13191#include <sys/types.h> 13192 /* Check that off_t can represent 2**63 - 1 correctly. 13193 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13194 since some C++ compilers masquerading as C compilers 13195 incorrectly reject 9223372036854775807. */ 13196#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13198 && LARGE_OFF_T % 2147483647 == 1) 13199 ? 1 : -1]; 13200int 13201main () 13202{ 13203 13204 ; 13205 return 0; 13206} 13207_ACEOF 13208if ac_fn_c_try_compile "$LINENO"; then : 13209 ac_cv_sys_file_offset_bits=64; break 13210fi 13211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13212 ac_cv_sys_file_offset_bits=unknown 13213 break 13214done 13215fi 13216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13217$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13218case $ac_cv_sys_file_offset_bits in #( 13219 no | unknown) ;; 13220 *) 13221cat >>confdefs.h <<_ACEOF 13222#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13223_ACEOF 13224;; 13225esac 13226rm -rf conftest* 13227 if test $ac_cv_sys_file_offset_bits = unknown; then 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13229$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13230if ${ac_cv_sys_large_files+:} false; then : 13231 $as_echo_n "(cached) " >&6 13232else 13233 while :; do 13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13235/* end confdefs.h. */ 13236#include <sys/types.h> 13237 /* Check that off_t can represent 2**63 - 1 correctly. 13238 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13239 since some C++ compilers masquerading as C compilers 13240 incorrectly reject 9223372036854775807. */ 13241#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13243 && LARGE_OFF_T % 2147483647 == 1) 13244 ? 1 : -1]; 13245int 13246main () 13247{ 13248 13249 ; 13250 return 0; 13251} 13252_ACEOF 13253if ac_fn_c_try_compile "$LINENO"; then : 13254 ac_cv_sys_large_files=no; break 13255fi 13256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13258/* end confdefs.h. */ 13259#define _LARGE_FILES 1 13260#include <sys/types.h> 13261 /* Check that off_t can represent 2**63 - 1 correctly. 13262 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13263 since some C++ compilers masquerading as C compilers 13264 incorrectly reject 9223372036854775807. */ 13265#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13267 && LARGE_OFF_T % 2147483647 == 1) 13268 ? 1 : -1]; 13269int 13270main () 13271{ 13272 13273 ; 13274 return 0; 13275} 13276_ACEOF 13277if ac_fn_c_try_compile "$LINENO"; then : 13278 ac_cv_sys_large_files=1; break 13279fi 13280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13281 ac_cv_sys_large_files=unknown 13282 break 13283done 13284fi 13285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13286$as_echo "$ac_cv_sys_large_files" >&6; } 13287case $ac_cv_sys_large_files in #( 13288 no | unknown) ;; 13289 *) 13290cat >>confdefs.h <<_ACEOF 13291#define _LARGE_FILES $ac_cv_sys_large_files 13292_ACEOF 13293;; 13294esac 13295rm -rf conftest* 13296 fi 13297 13298 13299fi 13300 13301 13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 13303$as_echo_n "checking for function prototypes... " >&6; } 13304if test "$ac_cv_prog_cc_c89" != no; then 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13306$as_echo "yes" >&6; } 13307 13308$as_echo "#define PROTOTYPES 1" >>confdefs.h 13309 13310 13311$as_echo "#define __PROTOTYPES 1" >>confdefs.h 13312 13313else 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13315$as_echo "no" >&6; } 13316fi 13317 13318test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5 13319 13320 13321 13322ac_ext=cpp 13323ac_cpp='$CXXCPP $CPPFLAGS' 13324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13327if test -z "$CXX"; then 13328 if test -n "$CCC"; then 13329 CXX=$CCC 13330 else 13331 if test -n "$ac_tool_prefix"; then 13332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13333 do 13334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13335set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13337$as_echo_n "checking for $ac_word... " >&6; } 13338if ${ac_cv_prog_CXX+:} false; then : 13339 $as_echo_n "(cached) " >&6 13340else 13341 if test -n "$CXX"; then 13342 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13343else 13344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13345for as_dir in $PATH 13346do 13347 IFS=$as_save_IFS 13348 test -z "$as_dir" && as_dir=. 13349 for ac_exec_ext in '' $ac_executable_extensions; do 13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13353 break 2 13354 fi 13355done 13356 done 13357IFS=$as_save_IFS 13358 13359fi 13360fi 13361CXX=$ac_cv_prog_CXX 13362if test -n "$CXX"; then 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13364$as_echo "$CXX" >&6; } 13365else 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13367$as_echo "no" >&6; } 13368fi 13369 13370 13371 test -n "$CXX" && break 13372 done 13373fi 13374if test -z "$CXX"; then 13375 ac_ct_CXX=$CXX 13376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13377do 13378 # Extract the first word of "$ac_prog", so it can be a program name with args. 13379set dummy $ac_prog; ac_word=$2 13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13381$as_echo_n "checking for $ac_word... " >&6; } 13382if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13383 $as_echo_n "(cached) " >&6 13384else 13385 if test -n "$ac_ct_CXX"; then 13386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13387else 13388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13389for as_dir in $PATH 13390do 13391 IFS=$as_save_IFS 13392 test -z "$as_dir" && as_dir=. 13393 for ac_exec_ext in '' $ac_executable_extensions; do 13394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13395 ac_cv_prog_ac_ct_CXX="$ac_prog" 13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13397 break 2 13398 fi 13399done 13400 done 13401IFS=$as_save_IFS 13402 13403fi 13404fi 13405ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13406if test -n "$ac_ct_CXX"; then 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13408$as_echo "$ac_ct_CXX" >&6; } 13409else 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13411$as_echo "no" >&6; } 13412fi 13413 13414 13415 test -n "$ac_ct_CXX" && break 13416done 13417 13418 if test "x$ac_ct_CXX" = x; then 13419 CXX="g++" 13420 else 13421 case $cross_compiling:$ac_tool_warned in 13422yes:) 13423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13425ac_tool_warned=yes ;; 13426esac 13427 CXX=$ac_ct_CXX 13428 fi 13429fi 13430 13431 fi 13432fi 13433# Provide some information about the compiler. 13434$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13435set X $ac_compile 13436ac_compiler=$2 13437for ac_option in --version -v -V -qversion; do 13438 { { ac_try="$ac_compiler $ac_option >&5" 13439case "(($ac_try" in 13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13441 *) ac_try_echo=$ac_try;; 13442esac 13443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13444$as_echo "$ac_try_echo"; } >&5 13445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13446 ac_status=$? 13447 if test -s conftest.err; then 13448 sed '10a\ 13449... rest of stderr output deleted ... 13450 10q' conftest.err >conftest.er1 13451 cat conftest.er1 >&5 13452 fi 13453 rm -f conftest.er1 conftest.err 13454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13455 test $ac_status = 0; } 13456done 13457 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13459$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13460if ${ac_cv_cxx_compiler_gnu+:} false; then : 13461 $as_echo_n "(cached) " >&6 13462else 13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13464/* end confdefs.h. */ 13465 13466int 13467main () 13468{ 13469#ifndef __GNUC__ 13470 choke me 13471#endif 13472 13473 ; 13474 return 0; 13475} 13476_ACEOF 13477if ac_fn_cxx_try_compile "$LINENO"; then : 13478 ac_compiler_gnu=yes 13479else 13480 ac_compiler_gnu=no 13481fi 13482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13483ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13484 13485fi 13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13487$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13488if test $ac_compiler_gnu = yes; then 13489 GXX=yes 13490else 13491 GXX= 13492fi 13493ac_test_CXXFLAGS=${CXXFLAGS+set} 13494ac_save_CXXFLAGS=$CXXFLAGS 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13496$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13497if ${ac_cv_prog_cxx_g+:} false; then : 13498 $as_echo_n "(cached) " >&6 13499else 13500 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13501 ac_cxx_werror_flag=yes 13502 ac_cv_prog_cxx_g=no 13503 CXXFLAGS="-g" 13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505/* end confdefs.h. */ 13506 13507int 13508main () 13509{ 13510 13511 ; 13512 return 0; 13513} 13514_ACEOF 13515if ac_fn_cxx_try_compile "$LINENO"; then : 13516 ac_cv_prog_cxx_g=yes 13517else 13518 CXXFLAGS="" 13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13520/* end confdefs.h. */ 13521 13522int 13523main () 13524{ 13525 13526 ; 13527 return 0; 13528} 13529_ACEOF 13530if ac_fn_cxx_try_compile "$LINENO"; then : 13531 13532else 13533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13534 CXXFLAGS="-g" 13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13536/* end confdefs.h. */ 13537 13538int 13539main () 13540{ 13541 13542 ; 13543 return 0; 13544} 13545_ACEOF 13546if ac_fn_cxx_try_compile "$LINENO"; then : 13547 ac_cv_prog_cxx_g=yes 13548fi 13549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13550fi 13551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13552fi 13553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13555fi 13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13557$as_echo "$ac_cv_prog_cxx_g" >&6; } 13558if test "$ac_test_CXXFLAGS" = set; then 13559 CXXFLAGS=$ac_save_CXXFLAGS 13560elif test $ac_cv_prog_cxx_g = yes; then 13561 if test "$GXX" = yes; then 13562 CXXFLAGS="-g -O2" 13563 else 13564 CXXFLAGS="-g" 13565 fi 13566else 13567 if test "$GXX" = yes; then 13568 CXXFLAGS="-O2" 13569 else 13570 CXXFLAGS= 13571 fi 13572fi 13573ac_ext=c 13574ac_cpp='$CPP $CPPFLAGS' 13575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13577ac_compiler_gnu=$ac_cv_c_compiler_gnu 13578 13579depcc="$CXX" am_compiler_list= 13580 13581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13582$as_echo_n "checking dependency style of $depcc... " >&6; } 13583if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13584 $as_echo_n "(cached) " >&6 13585else 13586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13587 # We make a subdir and do the tests there. Otherwise we can end up 13588 # making bogus files that we don't know about and never remove. For 13589 # instance it was reported that on HP-UX the gcc test will end up 13590 # making a dummy file named 'D' -- because '-MD' means "put the output 13591 # in D". 13592 rm -rf conftest.dir 13593 mkdir conftest.dir 13594 # Copy depcomp to subdir because otherwise we won't find it if we're 13595 # using a relative directory. 13596 cp "$am_depcomp" conftest.dir 13597 cd conftest.dir 13598 # We will build objects and dependencies in a subdirectory because 13599 # it helps to detect inapplicable dependency modes. For instance 13600 # both Tru64's cc and ICC support -MD to output dependencies as a 13601 # side effect of compilation, but ICC will put the dependencies in 13602 # the current directory while Tru64 will put them in the object 13603 # directory. 13604 mkdir sub 13605 13606 am_cv_CXX_dependencies_compiler_type=none 13607 if test "$am_compiler_list" = ""; then 13608 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13609 fi 13610 am__universal=false 13611 case " $depcc " in #( 13612 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13613 esac 13614 13615 for depmode in $am_compiler_list; do 13616 # Setup a source with many dependencies, because some compilers 13617 # like to wrap large dependency lists on column 80 (with \), and 13618 # we should not choose a depcomp mode which is confused by this. 13619 # 13620 # We need to recreate these files for each test, as the compiler may 13621 # overwrite some of them when testing with obscure command lines. 13622 # This happens at least with the AIX C compiler. 13623 : > sub/conftest.c 13624 for i in 1 2 3 4 5 6; do 13625 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13626 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13627 # Solaris 10 /bin/sh. 13628 echo '/* dummy */' > sub/conftst$i.h 13629 done 13630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13631 13632 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13633 # mode. It turns out that the SunPro C++ compiler does not properly 13634 # handle '-M -o', and we need to detect this. Also, some Intel 13635 # versions had trouble with output in subdirs. 13636 am__obj=sub/conftest.${OBJEXT-o} 13637 am__minus_obj="-o $am__obj" 13638 case $depmode in 13639 gcc) 13640 # This depmode causes a compiler race in universal mode. 13641 test "$am__universal" = false || continue 13642 ;; 13643 nosideeffect) 13644 # After this tag, mechanisms are not by side-effect, so they'll 13645 # only be used when explicitly requested. 13646 if test "x$enable_dependency_tracking" = xyes; then 13647 continue 13648 else 13649 break 13650 fi 13651 ;; 13652 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13653 # This compiler won't grok '-c -o', but also, the minuso test has 13654 # not run yet. These depmodes are late enough in the game, and 13655 # so weak that their functioning should not be impacted. 13656 am__obj=conftest.${OBJEXT-o} 13657 am__minus_obj= 13658 ;; 13659 none) break ;; 13660 esac 13661 if depmode=$depmode \ 13662 source=sub/conftest.c object=$am__obj \ 13663 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13664 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13665 >/dev/null 2>conftest.err && 13666 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13667 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13668 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13669 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13670 # icc doesn't choke on unknown options, it will just issue warnings 13671 # or remarks (even with -Werror). So we grep stderr for any message 13672 # that says an option was ignored or not supported. 13673 # When given -MP, icc 7.0 and 7.1 complain thusly: 13674 # icc: Command line warning: ignoring option '-M'; no argument required 13675 # The diagnosis changed in icc 8.0: 13676 # icc: Command line remark: option '-MP' not supported 13677 if (grep 'ignoring option' conftest.err || 13678 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13679 am_cv_CXX_dependencies_compiler_type=$depmode 13680 break 13681 fi 13682 fi 13683 done 13684 13685 cd .. 13686 rm -rf conftest.dir 13687else 13688 am_cv_CXX_dependencies_compiler_type=none 13689fi 13690 13691fi 13692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13693$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13694CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13695 13696 if 13697 test "x$enable_dependency_tracking" != xno \ 13698 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13699 am__fastdepCXX_TRUE= 13700 am__fastdepCXX_FALSE='#' 13701else 13702 am__fastdepCXX_TRUE='#' 13703 am__fastdepCXX_FALSE= 13704fi 13705 13706 13707 13708 13709func_stripname_cnf () 13710{ 13711 case $2 in 13712 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13713 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13714 esac 13715} # func_stripname_cnf 13716 13717 if test -n "$CXX" && ( test no != "$CXX" && 13718 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13719 (test g++ != "$CXX"))); then 13720 ac_ext=cpp 13721ac_cpp='$CXXCPP $CPPFLAGS' 13722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13726$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13727if test -z "$CXXCPP"; then 13728 if ${ac_cv_prog_CXXCPP+:} false; then : 13729 $as_echo_n "(cached) " >&6 13730else 13731 # Double quotes because CXXCPP needs to be expanded 13732 for CXXCPP in "$CXX -E" "/lib/cpp" 13733 do 13734 ac_preproc_ok=false 13735for ac_cxx_preproc_warn_flag in '' yes 13736do 13737 # Use a header file that comes with gcc, so configuring glibc 13738 # with a fresh cross-compiler works. 13739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13740 # <limits.h> exists even on freestanding compilers. 13741 # On the NeXT, cc -E runs the code through the compiler's parser, 13742 # not just through cpp. "Syntax error" is here to catch this case. 13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745#ifdef __STDC__ 13746# include <limits.h> 13747#else 13748# include <assert.h> 13749#endif 13750 Syntax error 13751_ACEOF 13752if ac_fn_cxx_try_cpp "$LINENO"; then : 13753 13754else 13755 # Broken: fails on valid input. 13756continue 13757fi 13758rm -f conftest.err conftest.i conftest.$ac_ext 13759 13760 # OK, works on sane cases. Now check whether nonexistent headers 13761 # can be detected and how. 13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13763/* end confdefs.h. */ 13764#include <ac_nonexistent.h> 13765_ACEOF 13766if ac_fn_cxx_try_cpp "$LINENO"; then : 13767 # Broken: success on invalid input. 13768continue 13769else 13770 # Passes both tests. 13771ac_preproc_ok=: 13772break 13773fi 13774rm -f conftest.err conftest.i conftest.$ac_ext 13775 13776done 13777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13778rm -f conftest.i conftest.err conftest.$ac_ext 13779if $ac_preproc_ok; then : 13780 break 13781fi 13782 13783 done 13784 ac_cv_prog_CXXCPP=$CXXCPP 13785 13786fi 13787 CXXCPP=$ac_cv_prog_CXXCPP 13788else 13789 ac_cv_prog_CXXCPP=$CXXCPP 13790fi 13791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13792$as_echo "$CXXCPP" >&6; } 13793ac_preproc_ok=false 13794for ac_cxx_preproc_warn_flag in '' yes 13795do 13796 # Use a header file that comes with gcc, so configuring glibc 13797 # with a fresh cross-compiler works. 13798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13799 # <limits.h> exists even on freestanding compilers. 13800 # On the NeXT, cc -E runs the code through the compiler's parser, 13801 # not just through cpp. "Syntax error" is here to catch this case. 13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13803/* end confdefs.h. */ 13804#ifdef __STDC__ 13805# include <limits.h> 13806#else 13807# include <assert.h> 13808#endif 13809 Syntax error 13810_ACEOF 13811if ac_fn_cxx_try_cpp "$LINENO"; then : 13812 13813else 13814 # Broken: fails on valid input. 13815continue 13816fi 13817rm -f conftest.err conftest.i conftest.$ac_ext 13818 13819 # OK, works on sane cases. Now check whether nonexistent headers 13820 # can be detected and how. 13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13822/* end confdefs.h. */ 13823#include <ac_nonexistent.h> 13824_ACEOF 13825if ac_fn_cxx_try_cpp "$LINENO"; then : 13826 # Broken: success on invalid input. 13827continue 13828else 13829 # Passes both tests. 13830ac_preproc_ok=: 13831break 13832fi 13833rm -f conftest.err conftest.i conftest.$ac_ext 13834 13835done 13836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13837rm -f conftest.i conftest.err conftest.$ac_ext 13838if $ac_preproc_ok; then : 13839 13840else 13841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13843as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13844See \`config.log' for more details" "$LINENO" 5; } 13845fi 13846 13847ac_ext=c 13848ac_cpp='$CPP $CPPFLAGS' 13849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13851ac_compiler_gnu=$ac_cv_c_compiler_gnu 13852 13853else 13854 _lt_caught_CXX_error=yes 13855fi 13856 13857ac_ext=cpp 13858ac_cpp='$CXXCPP $CPPFLAGS' 13859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13862 13863archive_cmds_need_lc_CXX=no 13864allow_undefined_flag_CXX= 13865always_export_symbols_CXX=no 13866archive_expsym_cmds_CXX= 13867compiler_needs_object_CXX=no 13868export_dynamic_flag_spec_CXX= 13869hardcode_direct_CXX=no 13870hardcode_direct_absolute_CXX=no 13871hardcode_libdir_flag_spec_CXX= 13872hardcode_libdir_separator_CXX= 13873hardcode_minus_L_CXX=no 13874hardcode_shlibpath_var_CXX=unsupported 13875hardcode_automatic_CXX=no 13876inherit_rpath_CXX=no 13877module_cmds_CXX= 13878module_expsym_cmds_CXX= 13879link_all_deplibs_CXX=unknown 13880old_archive_cmds_CXX=$old_archive_cmds 13881reload_flag_CXX=$reload_flag 13882reload_cmds_CXX=$reload_cmds 13883no_undefined_flag_CXX= 13884whole_archive_flag_spec_CXX= 13885enable_shared_with_static_runtimes_CXX=no 13886 13887# Source file extension for C++ test sources. 13888ac_ext=cpp 13889 13890# Object file extension for compiled C++ test sources. 13891objext=o 13892objext_CXX=$objext 13893 13894# No sense in running all these tests if we already determined that 13895# the CXX compiler isn't working. Some variables (like enable_shared) 13896# are currently assumed to apply to all compilers on this platform, 13897# and will be corrupted by setting them based on a non-working compiler. 13898if test yes != "$_lt_caught_CXX_error"; then 13899 # Code to be used in simple compile tests 13900 lt_simple_compile_test_code="int some_variable = 0;" 13901 13902 # Code to be used in simple link tests 13903 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13904 13905 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13906 13907 13908 13909 13910 13911 13912# If no C compiler was specified, use CC. 13913LTCC=${LTCC-"$CC"} 13914 13915# If no C compiler flags were specified, use CFLAGS. 13916LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13917 13918# Allow CC to be a program name with arguments. 13919compiler=$CC 13920 13921 13922 # save warnings/boilerplate of simple test code 13923 ac_outfile=conftest.$ac_objext 13924echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13925eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13926_lt_compiler_boilerplate=`cat conftest.err` 13927$RM conftest* 13928 13929 ac_outfile=conftest.$ac_objext 13930echo "$lt_simple_link_test_code" >conftest.$ac_ext 13931eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13932_lt_linker_boilerplate=`cat conftest.err` 13933$RM -r conftest* 13934 13935 13936 # Allow CC to be a program name with arguments. 13937 lt_save_CC=$CC 13938 lt_save_CFLAGS=$CFLAGS 13939 lt_save_LD=$LD 13940 lt_save_GCC=$GCC 13941 GCC=$GXX 13942 lt_save_with_gnu_ld=$with_gnu_ld 13943 lt_save_path_LD=$lt_cv_path_LD 13944 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13945 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13946 else 13947 $as_unset lt_cv_prog_gnu_ld 13948 fi 13949 if test -n "${lt_cv_path_LDCXX+set}"; then 13950 lt_cv_path_LD=$lt_cv_path_LDCXX 13951 else 13952 $as_unset lt_cv_path_LD 13953 fi 13954 test -z "${LDCXX+set}" || LD=$LDCXX 13955 CC=${CXX-"c++"} 13956 CFLAGS=$CXXFLAGS 13957 compiler=$CC 13958 compiler_CXX=$CC 13959 func_cc_basename $compiler 13960cc_basename=$func_cc_basename_result 13961 13962 13963 if test -n "$compiler"; then 13964 # We don't want -fno-exception when compiling C++ code, so set the 13965 # no_builtin_flag separately 13966 if test yes = "$GXX"; then 13967 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13968 else 13969 lt_prog_compiler_no_builtin_flag_CXX= 13970 fi 13971 13972 if test yes = "$GXX"; then 13973 # Set up default GNU C++ configuration 13974 13975 13976 13977# Check whether --with-gnu-ld was given. 13978if test "${with_gnu_ld+set}" = set; then : 13979 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13980else 13981 with_gnu_ld=no 13982fi 13983 13984ac_prog=ld 13985if test yes = "$GCC"; then 13986 # Check if gcc -print-prog-name=ld gives a path. 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13988$as_echo_n "checking for ld used by $CC... " >&6; } 13989 case $host in 13990 *-*-mingw*) 13991 # gcc leaves a trailing carriage return, which upsets mingw 13992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13993 *) 13994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13995 esac 13996 case $ac_prog in 13997 # Accept absolute paths. 13998 [\\/]* | ?:[\\/]*) 13999 re_direlt='/[^/][^/]*/\.\./' 14000 # Canonicalize the pathname of ld 14001 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14004 done 14005 test -z "$LD" && LD=$ac_prog 14006 ;; 14007 "") 14008 # If it fails, then pretend we aren't using GCC. 14009 ac_prog=ld 14010 ;; 14011 *) 14012 # If it is relative, then search for the first ld in PATH. 14013 with_gnu_ld=unknown 14014 ;; 14015 esac 14016elif test yes = "$with_gnu_ld"; then 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14018$as_echo_n "checking for GNU ld... " >&6; } 14019else 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14021$as_echo_n "checking for non-GNU ld... " >&6; } 14022fi 14023if ${lt_cv_path_LD+:} false; then : 14024 $as_echo_n "(cached) " >&6 14025else 14026 if test -z "$LD"; then 14027 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14028 for ac_dir in $PATH; do 14029 IFS=$lt_save_ifs 14030 test -z "$ac_dir" && ac_dir=. 14031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14032 lt_cv_path_LD=$ac_dir/$ac_prog 14033 # Check to see if the program is GNU ld. I'd rather use --version, 14034 # but apparently some variants of GNU ld only accept -v. 14035 # Break only if it was the GNU/non-GNU ld that we prefer. 14036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14037 *GNU* | *'with BFD'*) 14038 test no != "$with_gnu_ld" && break 14039 ;; 14040 *) 14041 test yes != "$with_gnu_ld" && break 14042 ;; 14043 esac 14044 fi 14045 done 14046 IFS=$lt_save_ifs 14047else 14048 lt_cv_path_LD=$LD # Let the user override the test with a path. 14049fi 14050fi 14051 14052LD=$lt_cv_path_LD 14053if test -n "$LD"; then 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14055$as_echo "$LD" >&6; } 14056else 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14058$as_echo "no" >&6; } 14059fi 14060test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14062$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14063if ${lt_cv_prog_gnu_ld+:} false; then : 14064 $as_echo_n "(cached) " >&6 14065else 14066 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14067case `$LD -v 2>&1 </dev/null` in 14068*GNU* | *'with BFD'*) 14069 lt_cv_prog_gnu_ld=yes 14070 ;; 14071*) 14072 lt_cv_prog_gnu_ld=no 14073 ;; 14074esac 14075fi 14076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14077$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14078with_gnu_ld=$lt_cv_prog_gnu_ld 14079 14080 14081 14082 14083 14084 14085 14086 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14087 # archiving commands below assume that GNU ld is being used. 14088 if test yes = "$with_gnu_ld"; then 14089 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14090 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14091 14092 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14093 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14094 14095 # If archive_cmds runs LD, not CC, wlarc should be empty 14096 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14097 # investigate it a little bit more. (MM) 14098 wlarc='$wl' 14099 14100 # ancient GNU ld didn't support --whole-archive et. al. 14101 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14102 $GREP 'no-whole-archive' > /dev/null; then 14103 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14104 else 14105 whole_archive_flag_spec_CXX= 14106 fi 14107 else 14108 with_gnu_ld=no 14109 wlarc= 14110 14111 # A generic and very simple default shared library creation 14112 # command for GNU C++ for the case where it uses the native 14113 # linker, instead of GNU ld. If possible, this setting should 14114 # overridden to take advantage of the native linker features on 14115 # the platform it is being used on. 14116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14117 fi 14118 14119 # Commands to make compiler produce verbose output that lists 14120 # what "hidden" libraries, object files and flags are used when 14121 # linking a shared library. 14122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14123 14124 else 14125 GXX=no 14126 with_gnu_ld=no 14127 wlarc= 14128 fi 14129 14130 # PORTME: fill in a description of your system's C++ link characteristics 14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14132$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14133 ld_shlibs_CXX=yes 14134 case $host_os in 14135 aix3*) 14136 # FIXME: insert proper C++ library support 14137 ld_shlibs_CXX=no 14138 ;; 14139 aix[4-9]*) 14140 if test ia64 = "$host_cpu"; then 14141 # On IA64, the linker does run time linking by default, so we don't 14142 # have to do anything special. 14143 aix_use_runtimelinking=no 14144 exp_sym_flag='-Bexport' 14145 no_entry_flag= 14146 else 14147 aix_use_runtimelinking=no 14148 14149 # Test if we are trying to use run time linking or normal 14150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14151 # have runtime linking enabled, and use it for executables. 14152 # For shared libraries, we enable/disable runtime linking 14153 # depending on the kind of the shared library created - 14154 # when "with_aix_soname,aix_use_runtimelinking" is: 14155 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14156 # "aix,yes" lib.so shared, rtl:yes, for executables 14157 # lib.a static archive 14158 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14159 # lib.a(lib.so.V) shared, rtl:no, for executables 14160 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14161 # lib.a(lib.so.V) shared, rtl:no 14162 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14163 # lib.a static archive 14164 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14165 for ld_flag in $LDFLAGS; do 14166 case $ld_flag in 14167 *-brtl*) 14168 aix_use_runtimelinking=yes 14169 break 14170 ;; 14171 esac 14172 done 14173 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14174 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14175 # so we don't have lib.a shared libs to link our executables. 14176 # We have to force runtime linking in this case. 14177 aix_use_runtimelinking=yes 14178 LDFLAGS="$LDFLAGS -Wl,-brtl" 14179 fi 14180 ;; 14181 esac 14182 14183 exp_sym_flag='-bexport' 14184 no_entry_flag='-bnoentry' 14185 fi 14186 14187 # When large executables or shared objects are built, AIX ld can 14188 # have problems creating the table of contents. If linking a library 14189 # or program results in "error TOC overflow" add -mminimal-toc to 14190 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14191 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14192 14193 archive_cmds_CXX='' 14194 hardcode_direct_CXX=yes 14195 hardcode_direct_absolute_CXX=yes 14196 hardcode_libdir_separator_CXX=':' 14197 link_all_deplibs_CXX=yes 14198 file_list_spec_CXX='$wl-f,' 14199 case $with_aix_soname,$aix_use_runtimelinking in 14200 aix,*) ;; # no import file 14201 svr4,* | *,yes) # use import file 14202 # The Import File defines what to hardcode. 14203 hardcode_direct_CXX=no 14204 hardcode_direct_absolute_CXX=no 14205 ;; 14206 esac 14207 14208 if test yes = "$GXX"; then 14209 case $host_os in aix4.[012]|aix4.[012].*) 14210 # We only want to do this on AIX 4.2 and lower, the check 14211 # below for broken collect2 doesn't work under 4.3+ 14212 collect2name=`$CC -print-prog-name=collect2` 14213 if test -f "$collect2name" && 14214 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14215 then 14216 # We have reworked collect2 14217 : 14218 else 14219 # We have old collect2 14220 hardcode_direct_CXX=unsupported 14221 # It fails to find uninstalled libraries when the uninstalled 14222 # path is not listed in the libpath. Setting hardcode_minus_L 14223 # to unsupported forces relinking 14224 hardcode_minus_L_CXX=yes 14225 hardcode_libdir_flag_spec_CXX='-L$libdir' 14226 hardcode_libdir_separator_CXX= 14227 fi 14228 esac 14229 shared_flag='-shared' 14230 if test yes = "$aix_use_runtimelinking"; then 14231 shared_flag=$shared_flag' $wl-G' 14232 fi 14233 # Need to ensure runtime linking is disabled for the traditional 14234 # shared library, or the linker may eventually find shared libraries 14235 # /with/ Import File - we do not want to mix them. 14236 shared_flag_aix='-shared' 14237 shared_flag_svr4='-shared $wl-G' 14238 else 14239 # not using gcc 14240 if test ia64 = "$host_cpu"; then 14241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14242 # chokes on -Wl,-G. The following line is correct: 14243 shared_flag='-G' 14244 else 14245 if test yes = "$aix_use_runtimelinking"; then 14246 shared_flag='$wl-G' 14247 else 14248 shared_flag='$wl-bM:SRE' 14249 fi 14250 shared_flag_aix='$wl-bM:SRE' 14251 shared_flag_svr4='$wl-G' 14252 fi 14253 fi 14254 14255 export_dynamic_flag_spec_CXX='$wl-bexpall' 14256 # It seems that -bexpall does not export symbols beginning with 14257 # underscore (_), so it is better to generate a list of symbols to 14258 # export. 14259 always_export_symbols_CXX=yes 14260 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14261 # Warning - without using the other runtime loading flags (-brtl), 14262 # -berok will link without error, but may produce a broken library. 14263 # The "-G" linker flag allows undefined symbols. 14264 no_undefined_flag_CXX='-bernotok' 14265 # Determine the default libpath from the value encoded in an empty 14266 # executable. 14267 if test set = "${lt_cv_aix_libpath+set}"; then 14268 aix_libpath=$lt_cv_aix_libpath 14269else 14270 if ${lt_cv_aix_libpath__CXX+:} false; then : 14271 $as_echo_n "(cached) " >&6 14272else 14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14274/* end confdefs.h. */ 14275 14276int 14277main () 14278{ 14279 14280 ; 14281 return 0; 14282} 14283_ACEOF 14284if ac_fn_cxx_try_link "$LINENO"; then : 14285 14286 lt_aix_libpath_sed=' 14287 /Import File Strings/,/^$/ { 14288 /^0/ { 14289 s/^0 *\([^ ]*\) *$/\1/ 14290 p 14291 } 14292 }' 14293 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14294 # Check for a 64-bit object if we didn't find anything. 14295 if test -z "$lt_cv_aix_libpath__CXX"; then 14296 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14297 fi 14298fi 14299rm -f core conftest.err conftest.$ac_objext \ 14300 conftest$ac_exeext conftest.$ac_ext 14301 if test -z "$lt_cv_aix_libpath__CXX"; then 14302 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14303 fi 14304 14305fi 14306 14307 aix_libpath=$lt_cv_aix_libpath__CXX 14308fi 14309 14310 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14311 14312 archive_expsym_cmds_CXX='$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 14313 else 14314 if test ia64 = "$host_cpu"; then 14315 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14316 allow_undefined_flag_CXX="-z nodefs" 14317 archive_expsym_cmds_CXX="\$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" 14318 else 14319 # Determine the default libpath from the value encoded in an 14320 # empty executable. 14321 if test set = "${lt_cv_aix_libpath+set}"; then 14322 aix_libpath=$lt_cv_aix_libpath 14323else 14324 if ${lt_cv_aix_libpath__CXX+:} false; then : 14325 $as_echo_n "(cached) " >&6 14326else 14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14328/* end confdefs.h. */ 14329 14330int 14331main () 14332{ 14333 14334 ; 14335 return 0; 14336} 14337_ACEOF 14338if ac_fn_cxx_try_link "$LINENO"; then : 14339 14340 lt_aix_libpath_sed=' 14341 /Import File Strings/,/^$/ { 14342 /^0/ { 14343 s/^0 *\([^ ]*\) *$/\1/ 14344 p 14345 } 14346 }' 14347 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14348 # Check for a 64-bit object if we didn't find anything. 14349 if test -z "$lt_cv_aix_libpath__CXX"; then 14350 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14351 fi 14352fi 14353rm -f core conftest.err conftest.$ac_objext \ 14354 conftest$ac_exeext conftest.$ac_ext 14355 if test -z "$lt_cv_aix_libpath__CXX"; then 14356 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14357 fi 14358 14359fi 14360 14361 aix_libpath=$lt_cv_aix_libpath__CXX 14362fi 14363 14364 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14365 # Warning - without using the other run time loading flags, 14366 # -berok will link without error, but may produce a broken library. 14367 no_undefined_flag_CXX=' $wl-bernotok' 14368 allow_undefined_flag_CXX=' $wl-berok' 14369 if test yes = "$with_gnu_ld"; then 14370 # We only use this code for GNU lds that support --whole-archive. 14371 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14372 else 14373 # Exported symbols can be pulled into shared objects from archives 14374 whole_archive_flag_spec_CXX='$convenience' 14375 fi 14376 archive_cmds_need_lc_CXX=yes 14377 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14378 # -brtl affects multiple linker settings, -berok does not and is overridden later 14379 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14380 if test svr4 != "$with_aix_soname"; then 14381 # This is similar to how AIX traditionally builds its shared 14382 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14383 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 14384 fi 14385 if test aix != "$with_aix_soname"; then 14386 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 14387 else 14388 # used by -dlpreopen to get the symbols 14389 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14390 fi 14391 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14392 fi 14393 fi 14394 ;; 14395 14396 beos*) 14397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14398 allow_undefined_flag_CXX=unsupported 14399 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14400 # support --undefined. This deserves some investigation. FIXME 14401 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14402 else 14403 ld_shlibs_CXX=no 14404 fi 14405 ;; 14406 14407 chorus*) 14408 case $cc_basename in 14409 *) 14410 # FIXME: insert proper C++ library support 14411 ld_shlibs_CXX=no 14412 ;; 14413 esac 14414 ;; 14415 14416 cygwin* | mingw* | pw32* | cegcc*) 14417 case $GXX,$cc_basename in 14418 ,cl* | no,cl*) 14419 # Native MSVC 14420 # hardcode_libdir_flag_spec is actually meaningless, as there is 14421 # no search path for DLLs. 14422 hardcode_libdir_flag_spec_CXX=' ' 14423 allow_undefined_flag_CXX=unsupported 14424 always_export_symbols_CXX=yes 14425 file_list_spec_CXX='@' 14426 # Tell ltmain to make .lib files, not .a files. 14427 libext=lib 14428 # Tell ltmain to make .dll files, not .so files. 14429 shrext_cmds=.dll 14430 # FIXME: Setting linknames here is a bad hack. 14431 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14432 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14433 cp "$export_symbols" "$output_objdir/$soname.def"; 14434 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14435 else 14436 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14437 fi~ 14438 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14439 linknames=' 14440 # The linker will not automatically build a static lib if we build a DLL. 14441 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14442 enable_shared_with_static_runtimes_CXX=yes 14443 # Don't use ranlib 14444 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14445 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14446 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14447 case $lt_outputfile in 14448 *.exe|*.EXE) ;; 14449 *) 14450 lt_outputfile=$lt_outputfile.exe 14451 lt_tool_outputfile=$lt_tool_outputfile.exe 14452 ;; 14453 esac~ 14454 func_to_tool_file "$lt_outputfile"~ 14455 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14456 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14457 $RM "$lt_outputfile.manifest"; 14458 fi' 14459 ;; 14460 *) 14461 # g++ 14462 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14463 # as there is no search path for DLLs. 14464 hardcode_libdir_flag_spec_CXX='-L$libdir' 14465 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14466 allow_undefined_flag_CXX=unsupported 14467 always_export_symbols_CXX=no 14468 enable_shared_with_static_runtimes_CXX=yes 14469 14470 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14471 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14472 # If the export-symbols file already is a .def file, use it as 14473 # is; otherwise, prepend EXPORTS... 14474 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14475 cp $export_symbols $output_objdir/$soname.def; 14476 else 14477 echo EXPORTS > $output_objdir/$soname.def; 14478 cat $export_symbols >> $output_objdir/$soname.def; 14479 fi~ 14480 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14481 else 14482 ld_shlibs_CXX=no 14483 fi 14484 ;; 14485 esac 14486 ;; 14487 darwin* | rhapsody*) 14488 14489 14490 archive_cmds_need_lc_CXX=no 14491 hardcode_direct_CXX=no 14492 hardcode_automatic_CXX=yes 14493 hardcode_shlibpath_var_CXX=unsupported 14494 if test yes = "$lt_cv_ld_force_load"; then 14495 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14496 14497 else 14498 whole_archive_flag_spec_CXX='' 14499 fi 14500 link_all_deplibs_CXX=yes 14501 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14502 case $cc_basename in 14503 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14504 *) _lt_dar_can_shared=$GCC ;; 14505 esac 14506 if test yes = "$_lt_dar_can_shared"; then 14507 output_verbose_link_cmd=func_echo_all 14508 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14509 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14510 archive_expsym_cmds_CXX="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" 14511 module_expsym_cmds_CXX="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" 14512 if test yes != "$lt_cv_apple_cc_single_mod"; then 14513 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 14514 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 14515 fi 14516 14517 else 14518 ld_shlibs_CXX=no 14519 fi 14520 14521 ;; 14522 14523 os2*) 14524 hardcode_libdir_flag_spec_CXX='-L$libdir' 14525 hardcode_minus_L_CXX=yes 14526 allow_undefined_flag_CXX=unsupported 14527 shrext_cmds=.dll 14528 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14531 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14532 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14534 emximp -o $lib $output_objdir/$libname.def' 14535 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14538 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14539 prefix_cmds="$SED"~ 14540 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14541 prefix_cmds="$prefix_cmds -e 1d"; 14542 fi~ 14543 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14544 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14546 emximp -o $lib $output_objdir/$libname.def' 14547 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14548 enable_shared_with_static_runtimes_CXX=yes 14549 ;; 14550 14551 dgux*) 14552 case $cc_basename in 14553 ec++*) 14554 # FIXME: insert proper C++ library support 14555 ld_shlibs_CXX=no 14556 ;; 14557 ghcx*) 14558 # Green Hills C++ Compiler 14559 # FIXME: insert proper C++ library support 14560 ld_shlibs_CXX=no 14561 ;; 14562 *) 14563 # FIXME: insert proper C++ library support 14564 ld_shlibs_CXX=no 14565 ;; 14566 esac 14567 ;; 14568 14569 freebsd2.*) 14570 # C++ shared libraries reported to be fairly broken before 14571 # switch to ELF 14572 ld_shlibs_CXX=no 14573 ;; 14574 14575 freebsd-elf*) 14576 archive_cmds_need_lc_CXX=no 14577 ;; 14578 14579 freebsd* | dragonfly*) 14580 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14581 # conventions 14582 ld_shlibs_CXX=yes 14583 ;; 14584 14585 haiku*) 14586 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14587 link_all_deplibs_CXX=yes 14588 ;; 14589 14590 hpux9*) 14591 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14592 hardcode_libdir_separator_CXX=: 14593 export_dynamic_flag_spec_CXX='$wl-E' 14594 hardcode_direct_CXX=yes 14595 hardcode_minus_L_CXX=yes # Not in the search PATH, 14596 # but as the default 14597 # location of the library. 14598 14599 case $cc_basename in 14600 CC*) 14601 # FIXME: insert proper C++ library support 14602 ld_shlibs_CXX=no 14603 ;; 14604 aCC*) 14605 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14606 # Commands to make compiler produce verbose output that lists 14607 # what "hidden" libraries, object files and flags are used when 14608 # linking a shared library. 14609 # 14610 # There doesn't appear to be a way to prevent this compiler from 14611 # explicitly linking system object files so we need to strip them 14612 # from the output so that they don't get included in the library 14613 # dependencies. 14614 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14615 ;; 14616 *) 14617 if test yes = "$GXX"; then 14618 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14619 else 14620 # FIXME: insert proper C++ library support 14621 ld_shlibs_CXX=no 14622 fi 14623 ;; 14624 esac 14625 ;; 14626 14627 hpux10*|hpux11*) 14628 if test no = "$with_gnu_ld"; then 14629 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14630 hardcode_libdir_separator_CXX=: 14631 14632 case $host_cpu in 14633 hppa*64*|ia64*) 14634 ;; 14635 *) 14636 export_dynamic_flag_spec_CXX='$wl-E' 14637 ;; 14638 esac 14639 fi 14640 case $host_cpu in 14641 hppa*64*|ia64*) 14642 hardcode_direct_CXX=no 14643 hardcode_shlibpath_var_CXX=no 14644 ;; 14645 *) 14646 hardcode_direct_CXX=yes 14647 hardcode_direct_absolute_CXX=yes 14648 hardcode_minus_L_CXX=yes # Not in the search PATH, 14649 # but as the default 14650 # location of the library. 14651 ;; 14652 esac 14653 14654 case $cc_basename in 14655 CC*) 14656 # FIXME: insert proper C++ library support 14657 ld_shlibs_CXX=no 14658 ;; 14659 aCC*) 14660 case $host_cpu in 14661 hppa*64*) 14662 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14663 ;; 14664 ia64*) 14665 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14666 ;; 14667 *) 14668 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14669 ;; 14670 esac 14671 # Commands to make compiler produce verbose output that lists 14672 # what "hidden" libraries, object files and flags are used when 14673 # linking a shared library. 14674 # 14675 # There doesn't appear to be a way to prevent this compiler from 14676 # explicitly linking system object files so we need to strip them 14677 # from the output so that they don't get included in the library 14678 # dependencies. 14679 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14680 ;; 14681 *) 14682 if test yes = "$GXX"; then 14683 if test no = "$with_gnu_ld"; then 14684 case $host_cpu in 14685 hppa*64*) 14686 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14687 ;; 14688 ia64*) 14689 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14690 ;; 14691 *) 14692 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14693 ;; 14694 esac 14695 fi 14696 else 14697 # FIXME: insert proper C++ library support 14698 ld_shlibs_CXX=no 14699 fi 14700 ;; 14701 esac 14702 ;; 14703 14704 interix[3-9]*) 14705 hardcode_direct_CXX=no 14706 hardcode_shlibpath_var_CXX=no 14707 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14708 export_dynamic_flag_spec_CXX='$wl-E' 14709 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14710 # Instead, shared libraries are loaded at an image base (0x10000000 by 14711 # default) and relocated if they conflict, which is a slow very memory 14712 # consuming and fragmenting process. To avoid this, we pick a random, 14713 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14714 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14715 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14716 archive_expsym_cmds_CXX='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' 14717 ;; 14718 irix5* | irix6*) 14719 case $cc_basename in 14720 CC*) 14721 # SGI C++ 14722 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14723 14724 # Archives containing C++ object files must be created using 14725 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14726 # necessary to make sure instantiated templates are included 14727 # in the archive. 14728 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14729 ;; 14730 *) 14731 if test yes = "$GXX"; then 14732 if test no = "$with_gnu_ld"; then 14733 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 14734 else 14735 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14736 fi 14737 fi 14738 link_all_deplibs_CXX=yes 14739 ;; 14740 esac 14741 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14742 hardcode_libdir_separator_CXX=: 14743 inherit_rpath_CXX=yes 14744 ;; 14745 14746 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14747 case $cc_basename in 14748 KCC*) 14749 # Kuck and Associates, Inc. (KAI) C++ Compiler 14750 14751 # KCC will only create a shared library if the output file 14752 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14753 # to its proper name (with version) after linking. 14754 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14755 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 14756 # Commands to make compiler produce verbose output that lists 14757 # what "hidden" libraries, object files and flags are used when 14758 # linking a shared library. 14759 # 14760 # There doesn't appear to be a way to prevent this compiler from 14761 # explicitly linking system object files so we need to strip them 14762 # from the output so that they don't get included in the library 14763 # dependencies. 14764 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14765 14766 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14767 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14768 14769 # Archives containing C++ object files must be created using 14770 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14771 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14772 ;; 14773 icpc* | ecpc* ) 14774 # Intel C++ 14775 with_gnu_ld=yes 14776 # version 8.0 and above of icpc choke on multiply defined symbols 14777 # if we add $predep_objects and $postdep_objects, however 7.1 and 14778 # earlier do not add the objects themselves. 14779 case `$CC -V 2>&1` in 14780 *"Version 7."*) 14781 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14782 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14783 ;; 14784 *) # Version 8.0 or newer 14785 tmp_idyn= 14786 case $host_cpu in 14787 ia64*) tmp_idyn=' -i_dynamic';; 14788 esac 14789 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14790 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14791 ;; 14792 esac 14793 archive_cmds_need_lc_CXX=no 14794 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14795 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14796 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14797 ;; 14798 pgCC* | pgcpp*) 14799 # Portland Group C++ compiler 14800 case `$CC -V` in 14801 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14802 prelink_cmds_CXX='tpldir=Template.dir~ 14803 rm -rf $tpldir~ 14804 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14805 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14806 old_archive_cmds_CXX='tpldir=Template.dir~ 14807 rm -rf $tpldir~ 14808 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14809 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14810 $RANLIB $oldlib' 14811 archive_cmds_CXX='tpldir=Template.dir~ 14812 rm -rf $tpldir~ 14813 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14814 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14815 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14816 rm -rf $tpldir~ 14817 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14818 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14819 ;; 14820 *) # Version 6 and above use weak symbols 14821 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14822 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14823 ;; 14824 esac 14825 14826 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14827 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14828 whole_archive_flag_spec_CXX='$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' 14829 ;; 14830 cxx*) 14831 # Compaq C++ 14832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14833 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 14834 14835 runpath_var=LD_RUN_PATH 14836 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14837 hardcode_libdir_separator_CXX=: 14838 14839 # Commands to make compiler produce verbose output that lists 14840 # what "hidden" libraries, object files and flags are used when 14841 # linking a shared library. 14842 # 14843 # There doesn't appear to be a way to prevent this compiler from 14844 # explicitly linking system object files so we need to strip them 14845 # from the output so that they don't get included in the library 14846 # dependencies. 14847 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14848 ;; 14849 xl* | mpixl* | bgxl*) 14850 # IBM XL 8.0 on PPC, with GNU ld 14851 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14852 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14853 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14854 if test yes = "$supports_anon_versioning"; then 14855 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14857 echo "local: *; };" >> $output_objdir/$libname.ver~ 14858 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14859 fi 14860 ;; 14861 *) 14862 case `$CC -V 2>&1 | sed 5q` in 14863 *Sun\ C*) 14864 # Sun C++ 5.9 14865 no_undefined_flag_CXX=' -zdefs' 14866 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14867 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 14868 hardcode_libdir_flag_spec_CXX='-R$libdir' 14869 whole_archive_flag_spec_CXX='$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' 14870 compiler_needs_object_CXX=yes 14871 14872 # Not sure whether something based on 14873 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14874 # would be better. 14875 output_verbose_link_cmd='func_echo_all' 14876 14877 # Archives containing C++ object files must be created using 14878 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14879 # necessary to make sure instantiated templates are included 14880 # in the archive. 14881 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14882 ;; 14883 esac 14884 ;; 14885 esac 14886 ;; 14887 14888 lynxos*) 14889 # FIXME: insert proper C++ library support 14890 ld_shlibs_CXX=no 14891 ;; 14892 14893 m88k*) 14894 # FIXME: insert proper C++ library support 14895 ld_shlibs_CXX=no 14896 ;; 14897 14898 mvs*) 14899 case $cc_basename in 14900 cxx*) 14901 # FIXME: insert proper C++ library support 14902 ld_shlibs_CXX=no 14903 ;; 14904 *) 14905 # FIXME: insert proper C++ library support 14906 ld_shlibs_CXX=no 14907 ;; 14908 esac 14909 ;; 14910 14911 netbsd*) 14912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14913 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14914 wlarc= 14915 hardcode_libdir_flag_spec_CXX='-R$libdir' 14916 hardcode_direct_CXX=yes 14917 hardcode_shlibpath_var_CXX=no 14918 fi 14919 # Workaround some broken pre-1.5 toolchains 14920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14921 ;; 14922 14923 *nto* | *qnx*) 14924 ld_shlibs_CXX=yes 14925 ;; 14926 14927 openbsd* | bitrig*) 14928 if test -f /usr/libexec/ld.so; then 14929 hardcode_direct_CXX=yes 14930 hardcode_shlibpath_var_CXX=no 14931 hardcode_direct_absolute_CXX=yes 14932 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14933 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14935 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14936 export_dynamic_flag_spec_CXX='$wl-E' 14937 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14938 fi 14939 output_verbose_link_cmd=func_echo_all 14940 else 14941 ld_shlibs_CXX=no 14942 fi 14943 ;; 14944 14945 osf3* | osf4* | osf5*) 14946 case $cc_basename in 14947 KCC*) 14948 # Kuck and Associates, Inc. (KAI) C++ Compiler 14949 14950 # KCC will only create a shared library if the output file 14951 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14952 # to its proper name (with version) after linking. 14953 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14954 14955 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14956 hardcode_libdir_separator_CXX=: 14957 14958 # Archives containing C++ object files must be created using 14959 # the KAI C++ compiler. 14960 case $host in 14961 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14962 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14963 esac 14964 ;; 14965 RCC*) 14966 # Rational C++ 2.4.1 14967 # FIXME: insert proper C++ library support 14968 ld_shlibs_CXX=no 14969 ;; 14970 cxx*) 14971 case $host in 14972 osf3*) 14973 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14974 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14975 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14976 ;; 14977 *) 14978 allow_undefined_flag_CXX=' -expect_unresolved \*' 14979 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14980 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14981 echo "-hidden">> $lib.exp~ 14982 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 14983 $RM $lib.exp' 14984 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14985 ;; 14986 esac 14987 14988 hardcode_libdir_separator_CXX=: 14989 14990 # Commands to make compiler produce verbose output that lists 14991 # what "hidden" libraries, object files and flags are used when 14992 # linking a shared library. 14993 # 14994 # There doesn't appear to be a way to prevent this compiler from 14995 # explicitly linking system object files so we need to strip them 14996 # from the output so that they don't get included in the library 14997 # dependencies. 14998 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14999 ;; 15000 *) 15001 if test yes,no = "$GXX,$with_gnu_ld"; then 15002 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15003 case $host in 15004 osf3*) 15005 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 15006 ;; 15007 *) 15008 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 15009 ;; 15010 esac 15011 15012 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15013 hardcode_libdir_separator_CXX=: 15014 15015 # Commands to make compiler produce verbose output that lists 15016 # what "hidden" libraries, object files and flags are used when 15017 # linking a shared library. 15018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15019 15020 else 15021 # FIXME: insert proper C++ library support 15022 ld_shlibs_CXX=no 15023 fi 15024 ;; 15025 esac 15026 ;; 15027 15028 psos*) 15029 # FIXME: insert proper C++ library support 15030 ld_shlibs_CXX=no 15031 ;; 15032 15033 sunos4*) 15034 case $cc_basename in 15035 CC*) 15036 # Sun C++ 4.x 15037 # FIXME: insert proper C++ library support 15038 ld_shlibs_CXX=no 15039 ;; 15040 lcc*) 15041 # Lucid 15042 # FIXME: insert proper C++ library support 15043 ld_shlibs_CXX=no 15044 ;; 15045 *) 15046 # FIXME: insert proper C++ library support 15047 ld_shlibs_CXX=no 15048 ;; 15049 esac 15050 ;; 15051 15052 solaris*) 15053 case $cc_basename in 15054 CC* | sunCC*) 15055 # Sun C++ 4.2, 5.x and Centerline C++ 15056 archive_cmds_need_lc_CXX=yes 15057 no_undefined_flag_CXX=' -zdefs' 15058 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15059 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15060 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15061 15062 hardcode_libdir_flag_spec_CXX='-R$libdir' 15063 hardcode_shlibpath_var_CXX=no 15064 case $host_os in 15065 solaris2.[0-5] | solaris2.[0-5].*) ;; 15066 *) 15067 # The compiler driver will combine and reorder linker options, 15068 # but understands '-z linker_flag'. 15069 # Supported since Solaris 2.6 (maybe 2.5.1?) 15070 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15071 ;; 15072 esac 15073 link_all_deplibs_CXX=yes 15074 15075 output_verbose_link_cmd='func_echo_all' 15076 15077 # Archives containing C++ object files must be created using 15078 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15079 # necessary to make sure instantiated templates are included 15080 # in the archive. 15081 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15082 ;; 15083 gcx*) 15084 # Green Hills C++ Compiler 15085 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15086 15087 # The C++ compiler must be used to create the archive. 15088 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15089 ;; 15090 *) 15091 # GNU C++ compiler with Solaris linker 15092 if test yes,no = "$GXX,$with_gnu_ld"; then 15093 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15094 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15095 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15096 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15097 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15098 15099 # Commands to make compiler produce verbose output that lists 15100 # what "hidden" libraries, object files and flags are used when 15101 # linking a shared library. 15102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15103 else 15104 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15105 # platform. 15106 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15107 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15108 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15109 15110 # Commands to make compiler produce verbose output that lists 15111 # what "hidden" libraries, object files and flags are used when 15112 # linking a shared library. 15113 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15114 fi 15115 15116 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15117 case $host_os in 15118 solaris2.[0-5] | solaris2.[0-5].*) ;; 15119 *) 15120 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15121 ;; 15122 esac 15123 fi 15124 ;; 15125 esac 15126 ;; 15127 15128 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15129 no_undefined_flag_CXX='$wl-z,text' 15130 archive_cmds_need_lc_CXX=no 15131 hardcode_shlibpath_var_CXX=no 15132 runpath_var='LD_RUN_PATH' 15133 15134 case $cc_basename in 15135 CC*) 15136 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15137 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15138 ;; 15139 *) 15140 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15141 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15142 ;; 15143 esac 15144 ;; 15145 15146 sysv5* | sco3.2v5* | sco5v6*) 15147 # Note: We CANNOT use -z defs as we might desire, because we do not 15148 # link with -lc, and that would cause any symbols used from libc to 15149 # always be unresolved, which means just about no library would 15150 # ever link correctly. If we're not using GNU ld we use -z text 15151 # though, which does catch some bad symbols but isn't as heavy-handed 15152 # as -z defs. 15153 no_undefined_flag_CXX='$wl-z,text' 15154 allow_undefined_flag_CXX='$wl-z,nodefs' 15155 archive_cmds_need_lc_CXX=no 15156 hardcode_shlibpath_var_CXX=no 15157 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15158 hardcode_libdir_separator_CXX=':' 15159 link_all_deplibs_CXX=yes 15160 export_dynamic_flag_spec_CXX='$wl-Bexport' 15161 runpath_var='LD_RUN_PATH' 15162 15163 case $cc_basename in 15164 CC*) 15165 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15166 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15167 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15168 '"$old_archive_cmds_CXX" 15169 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15170 '"$reload_cmds_CXX" 15171 ;; 15172 *) 15173 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15174 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15175 ;; 15176 esac 15177 ;; 15178 15179 tandem*) 15180 case $cc_basename in 15181 NCC*) 15182 # NonStop-UX NCC 3.20 15183 # FIXME: insert proper C++ library support 15184 ld_shlibs_CXX=no 15185 ;; 15186 *) 15187 # FIXME: insert proper C++ library support 15188 ld_shlibs_CXX=no 15189 ;; 15190 esac 15191 ;; 15192 15193 vxworks*) 15194 # FIXME: insert proper C++ library support 15195 ld_shlibs_CXX=no 15196 ;; 15197 15198 *) 15199 # FIXME: insert proper C++ library support 15200 ld_shlibs_CXX=no 15201 ;; 15202 esac 15203 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15205$as_echo "$ld_shlibs_CXX" >&6; } 15206 test no = "$ld_shlibs_CXX" && can_build_shared=no 15207 15208 GCC_CXX=$GXX 15209 LD_CXX=$LD 15210 15211 ## CAVEAT EMPTOR: 15212 ## There is no encapsulation within the following macros, do not change 15213 ## the running order or otherwise move them around unless you know exactly 15214 ## what you are doing... 15215 # Dependencies to place before and after the object being linked: 15216predep_objects_CXX= 15217postdep_objects_CXX= 15218predeps_CXX= 15219postdeps_CXX= 15220compiler_lib_search_path_CXX= 15221 15222cat > conftest.$ac_ext <<_LT_EOF 15223class Foo 15224{ 15225public: 15226 Foo (void) { a = 0; } 15227private: 15228 int a; 15229}; 15230_LT_EOF 15231 15232 15233_lt_libdeps_save_CFLAGS=$CFLAGS 15234case "$CC $CFLAGS " in #( 15235*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15236*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15237*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15238esac 15239 15240if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15241 (eval $ac_compile) 2>&5 15242 ac_status=$? 15243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15244 test $ac_status = 0; }; then 15245 # Parse the compiler output and extract the necessary 15246 # objects, libraries and library flags. 15247 15248 # Sentinel used to keep track of whether or not we are before 15249 # the conftest object file. 15250 pre_test_object_deps_done=no 15251 15252 for p in `eval "$output_verbose_link_cmd"`; do 15253 case $prev$p in 15254 15255 -L* | -R* | -l*) 15256 # Some compilers place space between "-{L,R}" and the path. 15257 # Remove the space. 15258 if test x-L = "$p" || 15259 test x-R = "$p"; then 15260 prev=$p 15261 continue 15262 fi 15263 15264 # Expand the sysroot to ease extracting the directories later. 15265 if test -z "$prev"; then 15266 case $p in 15267 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15268 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15269 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15270 esac 15271 fi 15272 case $p in 15273 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15274 esac 15275 if test no = "$pre_test_object_deps_done"; then 15276 case $prev in 15277 -L | -R) 15278 # Internal compiler library paths should come after those 15279 # provided the user. The postdeps already come after the 15280 # user supplied libs so there is no need to process them. 15281 if test -z "$compiler_lib_search_path_CXX"; then 15282 compiler_lib_search_path_CXX=$prev$p 15283 else 15284 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15285 fi 15286 ;; 15287 # The "-l" case would never come before the object being 15288 # linked, so don't bother handling this case. 15289 esac 15290 else 15291 if test -z "$postdeps_CXX"; then 15292 postdeps_CXX=$prev$p 15293 else 15294 postdeps_CXX="${postdeps_CXX} $prev$p" 15295 fi 15296 fi 15297 prev= 15298 ;; 15299 15300 *.lto.$objext) ;; # Ignore GCC LTO objects 15301 *.$objext) 15302 # This assumes that the test object file only shows up 15303 # once in the compiler output. 15304 if test "$p" = "conftest.$objext"; then 15305 pre_test_object_deps_done=yes 15306 continue 15307 fi 15308 15309 if test no = "$pre_test_object_deps_done"; then 15310 if test -z "$predep_objects_CXX"; then 15311 predep_objects_CXX=$p 15312 else 15313 predep_objects_CXX="$predep_objects_CXX $p" 15314 fi 15315 else 15316 if test -z "$postdep_objects_CXX"; then 15317 postdep_objects_CXX=$p 15318 else 15319 postdep_objects_CXX="$postdep_objects_CXX $p" 15320 fi 15321 fi 15322 ;; 15323 15324 *) ;; # Ignore the rest. 15325 15326 esac 15327 done 15328 15329 # Clean up. 15330 rm -f a.out a.exe 15331else 15332 echo "libtool.m4: error: problem compiling CXX test program" 15333fi 15334 15335$RM -f confest.$objext 15336CFLAGS=$_lt_libdeps_save_CFLAGS 15337 15338# PORTME: override above test on systems where it is broken 15339case $host_os in 15340interix[3-9]*) 15341 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15342 # hack all around it, let's just trust "g++" to DTRT. 15343 predep_objects_CXX= 15344 postdep_objects_CXX= 15345 postdeps_CXX= 15346 ;; 15347esac 15348 15349 15350case " $postdeps_CXX " in 15351*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15352esac 15353 compiler_lib_search_dirs_CXX= 15354if test -n "${compiler_lib_search_path_CXX}"; then 15355 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15356fi 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 lt_prog_compiler_wl_CXX= 15389lt_prog_compiler_pic_CXX= 15390lt_prog_compiler_static_CXX= 15391 15392 15393 # C++ specific cases for pic, static, wl, etc. 15394 if test yes = "$GXX"; then 15395 lt_prog_compiler_wl_CXX='-Wl,' 15396 lt_prog_compiler_static_CXX='-static' 15397 15398 case $host_os in 15399 aix*) 15400 # All AIX code is PIC. 15401 if test ia64 = "$host_cpu"; then 15402 # AIX 5 now supports IA64 processor 15403 lt_prog_compiler_static_CXX='-Bstatic' 15404 fi 15405 lt_prog_compiler_pic_CXX='-fPIC' 15406 ;; 15407 15408 amigaos*) 15409 case $host_cpu in 15410 powerpc) 15411 # see comment about AmigaOS4 .so support 15412 lt_prog_compiler_pic_CXX='-fPIC' 15413 ;; 15414 m68k) 15415 # FIXME: we need at least 68020 code to build shared libraries, but 15416 # adding the '-m68020' flag to GCC prevents building anything better, 15417 # like '-m68040'. 15418 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15419 ;; 15420 esac 15421 ;; 15422 15423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15424 # PIC is the default for these OSes. 15425 ;; 15426 mingw* | cygwin* | os2* | pw32* | cegcc*) 15427 # This hack is so that the source file can tell whether it is being 15428 # built for inclusion in a dll (and should export symbols for example). 15429 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15430 # (--disable-auto-import) libraries 15431 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15432 case $host_os in 15433 os2*) 15434 lt_prog_compiler_static_CXX='$wl-static' 15435 ;; 15436 esac 15437 ;; 15438 darwin* | rhapsody*) 15439 # PIC is the default on this platform 15440 # Common symbols not allowed in MH_DYLIB files 15441 lt_prog_compiler_pic_CXX='-fno-common' 15442 ;; 15443 *djgpp*) 15444 # DJGPP does not support shared libraries at all 15445 lt_prog_compiler_pic_CXX= 15446 ;; 15447 haiku*) 15448 # PIC is the default for Haiku. 15449 # The "-static" flag exists, but is broken. 15450 lt_prog_compiler_static_CXX= 15451 ;; 15452 interix[3-9]*) 15453 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15454 # Instead, we relocate shared libraries at runtime. 15455 ;; 15456 sysv4*MP*) 15457 if test -d /usr/nec; then 15458 lt_prog_compiler_pic_CXX=-Kconform_pic 15459 fi 15460 ;; 15461 hpux*) 15462 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15463 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15464 # sets the default TLS model and affects inlining. 15465 case $host_cpu in 15466 hppa*64*) 15467 ;; 15468 *) 15469 lt_prog_compiler_pic_CXX='-fPIC' 15470 ;; 15471 esac 15472 ;; 15473 *qnx* | *nto*) 15474 # QNX uses GNU C++, but need to define -shared option too, otherwise 15475 # it will coredump. 15476 lt_prog_compiler_pic_CXX='-fPIC -shared' 15477 ;; 15478 *) 15479 lt_prog_compiler_pic_CXX='-fPIC' 15480 ;; 15481 esac 15482 else 15483 case $host_os in 15484 aix[4-9]*) 15485 # All AIX code is PIC. 15486 if test ia64 = "$host_cpu"; then 15487 # AIX 5 now supports IA64 processor 15488 lt_prog_compiler_static_CXX='-Bstatic' 15489 else 15490 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15491 fi 15492 ;; 15493 chorus*) 15494 case $cc_basename in 15495 cxch68*) 15496 # Green Hills C++ Compiler 15497 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15498 ;; 15499 esac 15500 ;; 15501 mingw* | cygwin* | os2* | pw32* | cegcc*) 15502 # This hack is so that the source file can tell whether it is being 15503 # built for inclusion in a dll (and should export symbols for example). 15504 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15505 ;; 15506 dgux*) 15507 case $cc_basename in 15508 ec++*) 15509 lt_prog_compiler_pic_CXX='-KPIC' 15510 ;; 15511 ghcx*) 15512 # Green Hills C++ Compiler 15513 lt_prog_compiler_pic_CXX='-pic' 15514 ;; 15515 *) 15516 ;; 15517 esac 15518 ;; 15519 freebsd* | dragonfly*) 15520 # FreeBSD uses GNU C++ 15521 ;; 15522 hpux9* | hpux10* | hpux11*) 15523 case $cc_basename in 15524 CC*) 15525 lt_prog_compiler_wl_CXX='-Wl,' 15526 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15527 if test ia64 != "$host_cpu"; then 15528 lt_prog_compiler_pic_CXX='+Z' 15529 fi 15530 ;; 15531 aCC*) 15532 lt_prog_compiler_wl_CXX='-Wl,' 15533 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15534 case $host_cpu in 15535 hppa*64*|ia64*) 15536 # +Z the default 15537 ;; 15538 *) 15539 lt_prog_compiler_pic_CXX='+Z' 15540 ;; 15541 esac 15542 ;; 15543 *) 15544 ;; 15545 esac 15546 ;; 15547 interix*) 15548 # This is c89, which is MS Visual C++ (no shared libs) 15549 # Anyone wants to do a port? 15550 ;; 15551 irix5* | irix6* | nonstopux*) 15552 case $cc_basename in 15553 CC*) 15554 lt_prog_compiler_wl_CXX='-Wl,' 15555 lt_prog_compiler_static_CXX='-non_shared' 15556 # CC pic flag -KPIC is the default. 15557 ;; 15558 *) 15559 ;; 15560 esac 15561 ;; 15562 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15563 case $cc_basename in 15564 KCC*) 15565 # KAI C++ Compiler 15566 lt_prog_compiler_wl_CXX='--backend -Wl,' 15567 lt_prog_compiler_pic_CXX='-fPIC' 15568 ;; 15569 ecpc* ) 15570 # old Intel C++ for x86_64, which still supported -KPIC. 15571 lt_prog_compiler_wl_CXX='-Wl,' 15572 lt_prog_compiler_pic_CXX='-KPIC' 15573 lt_prog_compiler_static_CXX='-static' 15574 ;; 15575 icpc* ) 15576 # Intel C++, used to be incompatible with GCC. 15577 # ICC 10 doesn't accept -KPIC any more. 15578 lt_prog_compiler_wl_CXX='-Wl,' 15579 lt_prog_compiler_pic_CXX='-fPIC' 15580 lt_prog_compiler_static_CXX='-static' 15581 ;; 15582 pgCC* | pgcpp*) 15583 # Portland Group C++ compiler 15584 lt_prog_compiler_wl_CXX='-Wl,' 15585 lt_prog_compiler_pic_CXX='-fpic' 15586 lt_prog_compiler_static_CXX='-Bstatic' 15587 ;; 15588 cxx*) 15589 # Compaq C++ 15590 # Make sure the PIC flag is empty. It appears that all Alpha 15591 # Linux and Compaq Tru64 Unix objects are PIC. 15592 lt_prog_compiler_pic_CXX= 15593 lt_prog_compiler_static_CXX='-non_shared' 15594 ;; 15595 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15596 # IBM XL 8.0, 9.0 on PPC and BlueGene 15597 lt_prog_compiler_wl_CXX='-Wl,' 15598 lt_prog_compiler_pic_CXX='-qpic' 15599 lt_prog_compiler_static_CXX='-qstaticlink' 15600 ;; 15601 *) 15602 case `$CC -V 2>&1 | sed 5q` in 15603 *Sun\ C*) 15604 # Sun C++ 5.9 15605 lt_prog_compiler_pic_CXX='-KPIC' 15606 lt_prog_compiler_static_CXX='-Bstatic' 15607 lt_prog_compiler_wl_CXX='-Qoption ld ' 15608 ;; 15609 esac 15610 ;; 15611 esac 15612 ;; 15613 lynxos*) 15614 ;; 15615 m88k*) 15616 ;; 15617 mvs*) 15618 case $cc_basename in 15619 cxx*) 15620 lt_prog_compiler_pic_CXX='-W c,exportall' 15621 ;; 15622 *) 15623 ;; 15624 esac 15625 ;; 15626 netbsd*) 15627 ;; 15628 *qnx* | *nto*) 15629 # QNX uses GNU C++, but need to define -shared option too, otherwise 15630 # it will coredump. 15631 lt_prog_compiler_pic_CXX='-fPIC -shared' 15632 ;; 15633 osf3* | osf4* | osf5*) 15634 case $cc_basename in 15635 KCC*) 15636 lt_prog_compiler_wl_CXX='--backend -Wl,' 15637 ;; 15638 RCC*) 15639 # Rational C++ 2.4.1 15640 lt_prog_compiler_pic_CXX='-pic' 15641 ;; 15642 cxx*) 15643 # Digital/Compaq C++ 15644 lt_prog_compiler_wl_CXX='-Wl,' 15645 # Make sure the PIC flag is empty. It appears that all Alpha 15646 # Linux and Compaq Tru64 Unix objects are PIC. 15647 lt_prog_compiler_pic_CXX= 15648 lt_prog_compiler_static_CXX='-non_shared' 15649 ;; 15650 *) 15651 ;; 15652 esac 15653 ;; 15654 psos*) 15655 ;; 15656 solaris*) 15657 case $cc_basename in 15658 CC* | sunCC*) 15659 # Sun C++ 4.2, 5.x and Centerline C++ 15660 lt_prog_compiler_pic_CXX='-KPIC' 15661 lt_prog_compiler_static_CXX='-Bstatic' 15662 lt_prog_compiler_wl_CXX='-Qoption ld ' 15663 ;; 15664 gcx*) 15665 # Green Hills C++ Compiler 15666 lt_prog_compiler_pic_CXX='-PIC' 15667 ;; 15668 *) 15669 ;; 15670 esac 15671 ;; 15672 sunos4*) 15673 case $cc_basename in 15674 CC*) 15675 # Sun C++ 4.x 15676 lt_prog_compiler_pic_CXX='-pic' 15677 lt_prog_compiler_static_CXX='-Bstatic' 15678 ;; 15679 lcc*) 15680 # Lucid 15681 lt_prog_compiler_pic_CXX='-pic' 15682 ;; 15683 *) 15684 ;; 15685 esac 15686 ;; 15687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15688 case $cc_basename in 15689 CC*) 15690 lt_prog_compiler_wl_CXX='-Wl,' 15691 lt_prog_compiler_pic_CXX='-KPIC' 15692 lt_prog_compiler_static_CXX='-Bstatic' 15693 ;; 15694 esac 15695 ;; 15696 tandem*) 15697 case $cc_basename in 15698 NCC*) 15699 # NonStop-UX NCC 3.20 15700 lt_prog_compiler_pic_CXX='-KPIC' 15701 ;; 15702 *) 15703 ;; 15704 esac 15705 ;; 15706 vxworks*) 15707 ;; 15708 *) 15709 lt_prog_compiler_can_build_shared_CXX=no 15710 ;; 15711 esac 15712 fi 15713 15714case $host_os in 15715 # For platforms that do not support PIC, -DPIC is meaningless: 15716 *djgpp*) 15717 lt_prog_compiler_pic_CXX= 15718 ;; 15719 *) 15720 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15721 ;; 15722esac 15723 15724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15725$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15726if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15727 $as_echo_n "(cached) " >&6 15728else 15729 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15730fi 15731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15732$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15733lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15734 15735# 15736# Check to make sure the PIC flag actually works. 15737# 15738if test -n "$lt_prog_compiler_pic_CXX"; then 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15740$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15741if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15742 $as_echo_n "(cached) " >&6 15743else 15744 lt_cv_prog_compiler_pic_works_CXX=no 15745 ac_outfile=conftest.$ac_objext 15746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15747 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15748 # Insert the option either (1) after the last *FLAGS variable, or 15749 # (2) before a word containing "conftest.", or (3) at the end. 15750 # Note that $ac_compile itself does not contain backslashes and begins 15751 # with a dollar sign (not a hyphen), so the echo should work correctly. 15752 # The option is referenced via a variable to avoid confusing sed. 15753 lt_compile=`echo "$ac_compile" | $SED \ 15754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15756 -e 's:$: $lt_compiler_flag:'` 15757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15758 (eval "$lt_compile" 2>conftest.err) 15759 ac_status=$? 15760 cat conftest.err >&5 15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15762 if (exit $ac_status) && test -s "$ac_outfile"; then 15763 # The compiler can only warn and ignore the option if not recognized 15764 # So say no if there are warnings other than the usual output. 15765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15767 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15768 lt_cv_prog_compiler_pic_works_CXX=yes 15769 fi 15770 fi 15771 $RM conftest* 15772 15773fi 15774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15775$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15776 15777if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15778 case $lt_prog_compiler_pic_CXX in 15779 "" | " "*) ;; 15780 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15781 esac 15782else 15783 lt_prog_compiler_pic_CXX= 15784 lt_prog_compiler_can_build_shared_CXX=no 15785fi 15786 15787fi 15788 15789 15790 15791 15792 15793# 15794# Check to make sure the static flag actually works. 15795# 15796wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15798$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15799if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15800 $as_echo_n "(cached) " >&6 15801else 15802 lt_cv_prog_compiler_static_works_CXX=no 15803 save_LDFLAGS=$LDFLAGS 15804 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15805 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15807 # The linker can only warn and ignore the option if not recognized 15808 # So say no if there are warnings 15809 if test -s conftest.err; then 15810 # Append any errors to the config.log. 15811 cat conftest.err 1>&5 15812 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15814 if diff conftest.exp conftest.er2 >/dev/null; then 15815 lt_cv_prog_compiler_static_works_CXX=yes 15816 fi 15817 else 15818 lt_cv_prog_compiler_static_works_CXX=yes 15819 fi 15820 fi 15821 $RM -r conftest* 15822 LDFLAGS=$save_LDFLAGS 15823 15824fi 15825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15826$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15827 15828if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15829 : 15830else 15831 lt_prog_compiler_static_CXX= 15832fi 15833 15834 15835 15836 15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15838$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15839if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15840 $as_echo_n "(cached) " >&6 15841else 15842 lt_cv_prog_compiler_c_o_CXX=no 15843 $RM -r conftest 2>/dev/null 15844 mkdir conftest 15845 cd conftest 15846 mkdir out 15847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15848 15849 lt_compiler_flag="-o out/conftest2.$ac_objext" 15850 # Insert the option either (1) after the last *FLAGS variable, or 15851 # (2) before a word containing "conftest.", or (3) at the end. 15852 # Note that $ac_compile itself does not contain backslashes and begins 15853 # with a dollar sign (not a hyphen), so the echo should work correctly. 15854 lt_compile=`echo "$ac_compile" | $SED \ 15855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15857 -e 's:$: $lt_compiler_flag:'` 15858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15859 (eval "$lt_compile" 2>out/conftest.err) 15860 ac_status=$? 15861 cat out/conftest.err >&5 15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15863 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15864 then 15865 # The compiler can only warn and ignore the option if not recognized 15866 # So say no if there are warnings 15867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15870 lt_cv_prog_compiler_c_o_CXX=yes 15871 fi 15872 fi 15873 chmod u+w . 2>&5 15874 $RM conftest* 15875 # SGI C++ compiler will create directory out/ii_files/ for 15876 # template instantiation 15877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15878 $RM out/* && rmdir out 15879 cd .. 15880 $RM -r conftest 15881 $RM conftest* 15882 15883fi 15884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15885$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15886 15887 15888 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15890$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15891if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15892 $as_echo_n "(cached) " >&6 15893else 15894 lt_cv_prog_compiler_c_o_CXX=no 15895 $RM -r conftest 2>/dev/null 15896 mkdir conftest 15897 cd conftest 15898 mkdir out 15899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15900 15901 lt_compiler_flag="-o out/conftest2.$ac_objext" 15902 # Insert the option either (1) after the last *FLAGS variable, or 15903 # (2) before a word containing "conftest.", or (3) at the end. 15904 # Note that $ac_compile itself does not contain backslashes and begins 15905 # with a dollar sign (not a hyphen), so the echo should work correctly. 15906 lt_compile=`echo "$ac_compile" | $SED \ 15907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15909 -e 's:$: $lt_compiler_flag:'` 15910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15911 (eval "$lt_compile" 2>out/conftest.err) 15912 ac_status=$? 15913 cat out/conftest.err >&5 15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15915 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15916 then 15917 # The compiler can only warn and ignore the option if not recognized 15918 # So say no if there are warnings 15919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15922 lt_cv_prog_compiler_c_o_CXX=yes 15923 fi 15924 fi 15925 chmod u+w . 2>&5 15926 $RM conftest* 15927 # SGI C++ compiler will create directory out/ii_files/ for 15928 # template instantiation 15929 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15930 $RM out/* && rmdir out 15931 cd .. 15932 $RM -r conftest 15933 $RM conftest* 15934 15935fi 15936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15937$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15938 15939 15940 15941 15942hard_links=nottested 15943if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15944 # do not overwrite the value of need_locks provided by the user 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15946$as_echo_n "checking if we can lock with hard links... " >&6; } 15947 hard_links=yes 15948 $RM conftest* 15949 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15950 touch conftest.a 15951 ln conftest.a conftest.b 2>&5 || hard_links=no 15952 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15954$as_echo "$hard_links" >&6; } 15955 if test no = "$hard_links"; then 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15957$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15958 need_locks=warn 15959 fi 15960else 15961 need_locks=no 15962fi 15963 15964 15965 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15967$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15968 15969 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15970 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15971 case $host_os in 15972 aix[4-9]*) 15973 # If we're using GNU nm, then we don't want the "-C" option. 15974 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15975 # Without the "-l" option, or with the "-B" option, AIX nm treats 15976 # weak defined symbols like other global defined symbols, whereas 15977 # GNU nm marks them as "W". 15978 # While the 'weak' keyword is ignored in the Export File, we need 15979 # it in the Import File for the 'aix-soname' feature, so we have 15980 # to replace the "-B" option with "-P" for AIX nm. 15981 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15982 export_symbols_cmds_CXX='$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' 15983 else 15984 export_symbols_cmds_CXX='`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' 15985 fi 15986 ;; 15987 pw32*) 15988 export_symbols_cmds_CXX=$ltdll_cmds 15989 ;; 15990 cygwin* | mingw* | cegcc*) 15991 case $cc_basename in 15992 cl*) 15993 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15994 ;; 15995 *) 15996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15997 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15998 ;; 15999 esac 16000 ;; 16001 *) 16002 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16003 ;; 16004 esac 16005 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16007$as_echo "$ld_shlibs_CXX" >&6; } 16008test no = "$ld_shlibs_CXX" && can_build_shared=no 16009 16010with_gnu_ld_CXX=$with_gnu_ld 16011 16012 16013 16014 16015 16016 16017# 16018# Do we need to explicitly link libc? 16019# 16020case "x$archive_cmds_need_lc_CXX" in 16021x|xyes) 16022 # Assume -lc should be added 16023 archive_cmds_need_lc_CXX=yes 16024 16025 if test yes,yes = "$GCC,$enable_shared"; then 16026 case $archive_cmds_CXX in 16027 *'~'*) 16028 # FIXME: we may have to deal with multi-command sequences. 16029 ;; 16030 '$CC '*) 16031 # Test whether the compiler implicitly links with -lc since on some 16032 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16033 # to ld, don't add -lc before -lgcc. 16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16035$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16036if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16037 $as_echo_n "(cached) " >&6 16038else 16039 $RM conftest* 16040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16041 16042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16043 (eval $ac_compile) 2>&5 16044 ac_status=$? 16045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16046 test $ac_status = 0; } 2>conftest.err; then 16047 soname=conftest 16048 lib=conftest 16049 libobjs=conftest.$ac_objext 16050 deplibs= 16051 wl=$lt_prog_compiler_wl_CXX 16052 pic_flag=$lt_prog_compiler_pic_CXX 16053 compiler_flags=-v 16054 linker_flags=-v 16055 verstring= 16056 output_objdir=. 16057 libname=conftest 16058 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16059 allow_undefined_flag_CXX= 16060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16061 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16062 ac_status=$? 16063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16064 test $ac_status = 0; } 16065 then 16066 lt_cv_archive_cmds_need_lc_CXX=no 16067 else 16068 lt_cv_archive_cmds_need_lc_CXX=yes 16069 fi 16070 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16071 else 16072 cat conftest.err 1>&5 16073 fi 16074 $RM conftest* 16075 16076fi 16077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16078$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16079 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16080 ;; 16081 esac 16082 fi 16083 ;; 16084esac 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16148$as_echo_n "checking dynamic linker characteristics... " >&6; } 16149 16150library_names_spec= 16151libname_spec='lib$name' 16152soname_spec= 16153shrext_cmds=.so 16154postinstall_cmds= 16155postuninstall_cmds= 16156finish_cmds= 16157finish_eval= 16158shlibpath_var= 16159shlibpath_overrides_runpath=unknown 16160version_type=none 16161dynamic_linker="$host_os ld.so" 16162sys_lib_dlsearch_path_spec="/lib /usr/lib" 16163need_lib_prefix=unknown 16164hardcode_into_libs=no 16165 16166# when you set need_version to no, make sure it does not cause -set_version 16167# flags to be left without arguments 16168need_version=unknown 16169 16170 16171 16172case $host_os in 16173aix3*) 16174 version_type=linux # correct to gnu/linux during the next big refactor 16175 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16176 shlibpath_var=LIBPATH 16177 16178 # AIX 3 has no versioning support, so we append a major version to the name. 16179 soname_spec='$libname$release$shared_ext$major' 16180 ;; 16181 16182aix[4-9]*) 16183 version_type=linux # correct to gnu/linux during the next big refactor 16184 need_lib_prefix=no 16185 need_version=no 16186 hardcode_into_libs=yes 16187 if test ia64 = "$host_cpu"; then 16188 # AIX 5 supports IA64 16189 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16190 shlibpath_var=LD_LIBRARY_PATH 16191 else 16192 # With GCC up to 2.95.x, collect2 would create an import file 16193 # for dependence libraries. The import file would start with 16194 # the line '#! .'. This would cause the generated library to 16195 # depend on '.', always an invalid library. This was fixed in 16196 # development snapshots of GCC prior to 3.0. 16197 case $host_os in 16198 aix4 | aix4.[01] | aix4.[01].*) 16199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16200 echo ' yes ' 16201 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16202 : 16203 else 16204 can_build_shared=no 16205 fi 16206 ;; 16207 esac 16208 # Using Import Files as archive members, it is possible to support 16209 # filename-based versioning of shared library archives on AIX. While 16210 # this would work for both with and without runtime linking, it will 16211 # prevent static linking of such archives. So we do filename-based 16212 # shared library versioning with .so extension only, which is used 16213 # when both runtime linking and shared linking is enabled. 16214 # Unfortunately, runtime linking may impact performance, so we do 16215 # not want this to be the default eventually. Also, we use the 16216 # versioned .so libs for executables only if there is the -brtl 16217 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16218 # To allow for filename-based versioning support, we need to create 16219 # libNAME.so.V as an archive file, containing: 16220 # *) an Import File, referring to the versioned filename of the 16221 # archive as well as the shared archive member, telling the 16222 # bitwidth (32 or 64) of that shared object, and providing the 16223 # list of exported symbols of that shared object, eventually 16224 # decorated with the 'weak' keyword 16225 # *) the shared object with the F_LOADONLY flag set, to really avoid 16226 # it being seen by the linker. 16227 # At run time we better use the real file rather than another symlink, 16228 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16229 16230 case $with_aix_soname,$aix_use_runtimelinking in 16231 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16232 # soname into executable. Probably we can add versioning support to 16233 # collect2, so additional links can be useful in future. 16234 aix,yes) # traditional libtool 16235 dynamic_linker='AIX unversionable lib.so' 16236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16237 # instead of lib<name>.a to let people know that these are not 16238 # typical AIX shared libraries. 16239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16240 ;; 16241 aix,no) # traditional AIX only 16242 dynamic_linker='AIX lib.a(lib.so.V)' 16243 # We preserve .a as extension for shared libraries through AIX4.2 16244 # and later when we are not doing run time linking. 16245 library_names_spec='$libname$release.a $libname.a' 16246 soname_spec='$libname$release$shared_ext$major' 16247 ;; 16248 svr4,*) # full svr4 only 16249 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16250 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16251 # We do not specify a path in Import Files, so LIBPATH fires. 16252 shlibpath_overrides_runpath=yes 16253 ;; 16254 *,yes) # both, prefer svr4 16255 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16256 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16257 # unpreferred sharedlib libNAME.a needs extra handling 16258 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"' 16259 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"' 16260 # We do not specify a path in Import Files, so LIBPATH fires. 16261 shlibpath_overrides_runpath=yes 16262 ;; 16263 *,no) # both, prefer aix 16264 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16265 library_names_spec='$libname$release.a $libname.a' 16266 soname_spec='$libname$release$shared_ext$major' 16267 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16268 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)' 16269 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"' 16270 ;; 16271 esac 16272 shlibpath_var=LIBPATH 16273 fi 16274 ;; 16275 16276amigaos*) 16277 case $host_cpu in 16278 powerpc) 16279 # Since July 2007 AmigaOS4 officially supports .so libraries. 16280 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16282 ;; 16283 m68k) 16284 library_names_spec='$libname.ixlibrary $libname.a' 16285 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16286 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' 16287 ;; 16288 esac 16289 ;; 16290 16291beos*) 16292 library_names_spec='$libname$shared_ext' 16293 dynamic_linker="$host_os ld.so" 16294 shlibpath_var=LIBRARY_PATH 16295 ;; 16296 16297bsdi[45]*) 16298 version_type=linux # correct to gnu/linux during the next big refactor 16299 need_version=no 16300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16301 soname_spec='$libname$release$shared_ext$major' 16302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16303 shlibpath_var=LD_LIBRARY_PATH 16304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16306 # the default ld.so.conf also contains /usr/contrib/lib and 16307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16308 # libtool to hard-code these into programs 16309 ;; 16310 16311cygwin* | mingw* | pw32* | cegcc*) 16312 version_type=windows 16313 shrext_cmds=.dll 16314 need_version=no 16315 need_lib_prefix=no 16316 16317 case $GCC,$cc_basename in 16318 yes,*) 16319 # gcc 16320 library_names_spec='$libname.dll.a' 16321 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16322 postinstall_cmds='base_file=`basename \$file`~ 16323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16324 dldir=$destdir/`dirname \$dlpath`~ 16325 test -d \$dldir || mkdir -p \$dldir~ 16326 $install_prog $dir/$dlname \$dldir/$dlname~ 16327 chmod a+x \$dldir/$dlname~ 16328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16330 fi' 16331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16332 dlpath=$dir/\$dldll~ 16333 $RM \$dlpath' 16334 shlibpath_overrides_runpath=yes 16335 16336 case $host_os in 16337 cygwin*) 16338 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16339 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16340 16341 ;; 16342 mingw* | cegcc*) 16343 # MinGW DLLs use traditional 'lib' prefix 16344 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16345 ;; 16346 pw32*) 16347 # pw32 DLLs use 'pw' prefix rather than 'lib' 16348 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16349 ;; 16350 esac 16351 dynamic_linker='Win32 ld.exe' 16352 ;; 16353 16354 *,cl*) 16355 # Native MSVC 16356 libname_spec='$name' 16357 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16358 library_names_spec='$libname.dll.lib' 16359 16360 case $build_os in 16361 mingw*) 16362 sys_lib_search_path_spec= 16363 lt_save_ifs=$IFS 16364 IFS=';' 16365 for lt_path in $LIB 16366 do 16367 IFS=$lt_save_ifs 16368 # Let DOS variable expansion print the short 8.3 style file name. 16369 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16370 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16371 done 16372 IFS=$lt_save_ifs 16373 # Convert to MSYS style. 16374 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16375 ;; 16376 cygwin*) 16377 # Convert to unix form, then to dos form, then back to unix form 16378 # but this time dos style (no spaces!) so that the unix form looks 16379 # like /cygdrive/c/PROGRA~1:/cygdr... 16380 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16381 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16382 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16383 ;; 16384 *) 16385 sys_lib_search_path_spec=$LIB 16386 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16387 # It is most probably a Windows format PATH. 16388 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16389 else 16390 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16391 fi 16392 # FIXME: find the short name or the path components, as spaces are 16393 # common. (e.g. "Program Files" -> "PROGRA~1") 16394 ;; 16395 esac 16396 16397 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16398 postinstall_cmds='base_file=`basename \$file`~ 16399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16400 dldir=$destdir/`dirname \$dlpath`~ 16401 test -d \$dldir || mkdir -p \$dldir~ 16402 $install_prog $dir/$dlname \$dldir/$dlname' 16403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16404 dlpath=$dir/\$dldll~ 16405 $RM \$dlpath' 16406 shlibpath_overrides_runpath=yes 16407 dynamic_linker='Win32 link.exe' 16408 ;; 16409 16410 *) 16411 # Assume MSVC wrapper 16412 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16413 dynamic_linker='Win32 ld.exe' 16414 ;; 16415 esac 16416 # FIXME: first we should search . and the directory the executable is in 16417 shlibpath_var=PATH 16418 ;; 16419 16420darwin* | rhapsody*) 16421 dynamic_linker="$host_os dyld" 16422 version_type=darwin 16423 need_lib_prefix=no 16424 need_version=no 16425 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16426 soname_spec='$libname$release$major$shared_ext' 16427 shlibpath_overrides_runpath=yes 16428 shlibpath_var=DYLD_LIBRARY_PATH 16429 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16430 16431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16432 ;; 16433 16434dgux*) 16435 version_type=linux # correct to gnu/linux during the next big refactor 16436 need_lib_prefix=no 16437 need_version=no 16438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16439 soname_spec='$libname$release$shared_ext$major' 16440 shlibpath_var=LD_LIBRARY_PATH 16441 ;; 16442 16443freebsd* | dragonfly*) 16444 # DragonFly does not have aout. When/if they implement a new 16445 # versioning mechanism, adjust this. 16446 if test -x /usr/bin/objformat; then 16447 objformat=`/usr/bin/objformat` 16448 else 16449 case $host_os in 16450 freebsd[23].*) objformat=aout ;; 16451 *) objformat=elf ;; 16452 esac 16453 fi 16454 version_type=freebsd-$objformat 16455 case $version_type in 16456 freebsd-elf*) 16457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16458 soname_spec='$libname$release$shared_ext$major' 16459 need_version=no 16460 need_lib_prefix=no 16461 ;; 16462 freebsd-*) 16463 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16464 need_version=yes 16465 ;; 16466 esac 16467 shlibpath_var=LD_LIBRARY_PATH 16468 case $host_os in 16469 freebsd2.*) 16470 shlibpath_overrides_runpath=yes 16471 ;; 16472 freebsd3.[01]* | freebsdelf3.[01]*) 16473 shlibpath_overrides_runpath=yes 16474 hardcode_into_libs=yes 16475 ;; 16476 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16477 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16478 shlibpath_overrides_runpath=no 16479 hardcode_into_libs=yes 16480 ;; 16481 *) # from 4.6 on, and DragonFly 16482 shlibpath_overrides_runpath=yes 16483 hardcode_into_libs=yes 16484 ;; 16485 esac 16486 ;; 16487 16488haiku*) 16489 version_type=linux # correct to gnu/linux during the next big refactor 16490 need_lib_prefix=no 16491 need_version=no 16492 dynamic_linker="$host_os runtime_loader" 16493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16494 soname_spec='$libname$release$shared_ext$major' 16495 shlibpath_var=LIBRARY_PATH 16496 shlibpath_overrides_runpath=no 16497 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16498 hardcode_into_libs=yes 16499 ;; 16500 16501hpux9* | hpux10* | hpux11*) 16502 # Give a soname corresponding to the major version so that dld.sl refuses to 16503 # link against other versions. 16504 version_type=sunos 16505 need_lib_prefix=no 16506 need_version=no 16507 case $host_cpu in 16508 ia64*) 16509 shrext_cmds='.so' 16510 hardcode_into_libs=yes 16511 dynamic_linker="$host_os dld.so" 16512 shlibpath_var=LD_LIBRARY_PATH 16513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16515 soname_spec='$libname$release$shared_ext$major' 16516 if test 32 = "$HPUX_IA64_MODE"; then 16517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16518 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16519 else 16520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16521 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16522 fi 16523 ;; 16524 hppa*64*) 16525 shrext_cmds='.sl' 16526 hardcode_into_libs=yes 16527 dynamic_linker="$host_os dld.sl" 16528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16531 soname_spec='$libname$release$shared_ext$major' 16532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16534 ;; 16535 *) 16536 shrext_cmds='.sl' 16537 dynamic_linker="$host_os dld.sl" 16538 shlibpath_var=SHLIB_PATH 16539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16541 soname_spec='$libname$release$shared_ext$major' 16542 ;; 16543 esac 16544 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16545 postinstall_cmds='chmod 555 $lib' 16546 # or fails outright, so override atomically: 16547 install_override_mode=555 16548 ;; 16549 16550interix[3-9]*) 16551 version_type=linux # correct to gnu/linux during the next big refactor 16552 need_lib_prefix=no 16553 need_version=no 16554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16555 soname_spec='$libname$release$shared_ext$major' 16556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16557 shlibpath_var=LD_LIBRARY_PATH 16558 shlibpath_overrides_runpath=no 16559 hardcode_into_libs=yes 16560 ;; 16561 16562irix5* | irix6* | nonstopux*) 16563 case $host_os in 16564 nonstopux*) version_type=nonstopux ;; 16565 *) 16566 if test yes = "$lt_cv_prog_gnu_ld"; then 16567 version_type=linux # correct to gnu/linux during the next big refactor 16568 else 16569 version_type=irix 16570 fi ;; 16571 esac 16572 need_lib_prefix=no 16573 need_version=no 16574 soname_spec='$libname$release$shared_ext$major' 16575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16576 case $host_os in 16577 irix5* | nonstopux*) 16578 libsuff= shlibsuff= 16579 ;; 16580 *) 16581 case $LD in # libtool.m4 will add one of these switches to LD 16582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16583 libsuff= shlibsuff= libmagic=32-bit;; 16584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16585 libsuff=32 shlibsuff=N32 libmagic=N32;; 16586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16587 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16588 *) libsuff= shlibsuff= libmagic=never-match;; 16589 esac 16590 ;; 16591 esac 16592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16593 shlibpath_overrides_runpath=no 16594 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16595 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16596 hardcode_into_libs=yes 16597 ;; 16598 16599# No shared lib support for Linux oldld, aout, or coff. 16600linux*oldld* | linux*aout* | linux*coff*) 16601 dynamic_linker=no 16602 ;; 16603 16604linux*android*) 16605 version_type=none # Android doesn't support versioned libraries. 16606 need_lib_prefix=no 16607 need_version=no 16608 library_names_spec='$libname$release$shared_ext' 16609 soname_spec='$libname$release$shared_ext' 16610 finish_cmds= 16611 shlibpath_var=LD_LIBRARY_PATH 16612 shlibpath_overrides_runpath=yes 16613 16614 # This implies no fast_install, which is unacceptable. 16615 # Some rework will be needed to allow for fast_install 16616 # before this can be enabled. 16617 hardcode_into_libs=yes 16618 16619 dynamic_linker='Android linker' 16620 # Don't embed -rpath directories since the linker doesn't support them. 16621 hardcode_libdir_flag_spec_CXX='-L$libdir' 16622 ;; 16623 16624# This must be glibc/ELF. 16625linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16626 version_type=linux # correct to gnu/linux during the next big refactor 16627 need_lib_prefix=no 16628 need_version=no 16629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16630 soname_spec='$libname$release$shared_ext$major' 16631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16632 shlibpath_var=LD_LIBRARY_PATH 16633 shlibpath_overrides_runpath=no 16634 16635 # Some binutils ld are patched to set DT_RUNPATH 16636 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16637 $as_echo_n "(cached) " >&6 16638else 16639 lt_cv_shlibpath_overrides_runpath=no 16640 save_LDFLAGS=$LDFLAGS 16641 save_libdir=$libdir 16642 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16643 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646 16647int 16648main () 16649{ 16650 16651 ; 16652 return 0; 16653} 16654_ACEOF 16655if ac_fn_cxx_try_link "$LINENO"; then : 16656 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16657 lt_cv_shlibpath_overrides_runpath=yes 16658fi 16659fi 16660rm -f core conftest.err conftest.$ac_objext \ 16661 conftest$ac_exeext conftest.$ac_ext 16662 LDFLAGS=$save_LDFLAGS 16663 libdir=$save_libdir 16664 16665fi 16666 16667 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16668 16669 # This implies no fast_install, which is unacceptable. 16670 # Some rework will be needed to allow for fast_install 16671 # before this can be enabled. 16672 hardcode_into_libs=yes 16673 16674 # Add ABI-specific directories to the system library path. 16675 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16676 16677 # Ideally, we could use ldconfig to report *all* directores which are 16678 # searched for libraries, however this is still not possible. Aside from not 16679 # being certain /sbin/ldconfig is available, command 16680 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16681 # even though it is searched at run-time. Try to do the best guess by 16682 # appending ld.so.conf contents (and includes) to the search path. 16683 if test -f /etc/ld.so.conf; then 16684 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' ' '` 16685 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16686 fi 16687 16688 # We used to test for /lib/ld.so.1 and disable shared libraries on 16689 # powerpc, because MkLinux only supported shared libraries with the 16690 # GNU dynamic linker. Since this was broken with cross compilers, 16691 # most powerpc-linux boxes support dynamic linking these days and 16692 # people can always --disable-shared, the test was removed, and we 16693 # assume the GNU/Linux dynamic linker is in use. 16694 dynamic_linker='GNU/Linux ld.so' 16695 ;; 16696 16697netbsd*) 16698 version_type=sunos 16699 need_lib_prefix=no 16700 need_version=no 16701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16702 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16704 dynamic_linker='NetBSD (a.out) ld.so' 16705 else 16706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16707 soname_spec='$libname$release$shared_ext$major' 16708 dynamic_linker='NetBSD ld.elf_so' 16709 fi 16710 shlibpath_var=LD_LIBRARY_PATH 16711 shlibpath_overrides_runpath=yes 16712 hardcode_into_libs=yes 16713 ;; 16714 16715newsos6) 16716 version_type=linux # correct to gnu/linux during the next big refactor 16717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16718 shlibpath_var=LD_LIBRARY_PATH 16719 shlibpath_overrides_runpath=yes 16720 ;; 16721 16722*nto* | *qnx*) 16723 version_type=qnx 16724 need_lib_prefix=no 16725 need_version=no 16726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16727 soname_spec='$libname$release$shared_ext$major' 16728 shlibpath_var=LD_LIBRARY_PATH 16729 shlibpath_overrides_runpath=no 16730 hardcode_into_libs=yes 16731 dynamic_linker='ldqnx.so' 16732 ;; 16733 16734openbsd* | bitrig*) 16735 version_type=sunos 16736 sys_lib_dlsearch_path_spec=/usr/lib 16737 need_lib_prefix=no 16738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16739 need_version=no 16740 else 16741 need_version=yes 16742 fi 16743 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16745 shlibpath_var=LD_LIBRARY_PATH 16746 shlibpath_overrides_runpath=yes 16747 ;; 16748 16749os2*) 16750 libname_spec='$name' 16751 version_type=windows 16752 shrext_cmds=.dll 16753 need_version=no 16754 need_lib_prefix=no 16755 # OS/2 can only load a DLL with a base name of 8 characters or less. 16756 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16757 v=$($ECHO $release$versuffix | tr -d .-); 16758 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16759 $ECHO $n$v`$shared_ext' 16760 library_names_spec='${libname}_dll.$libext' 16761 dynamic_linker='OS/2 ld.exe' 16762 shlibpath_var=BEGINLIBPATH 16763 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16765 postinstall_cmds='base_file=`basename \$file`~ 16766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16767 dldir=$destdir/`dirname \$dlpath`~ 16768 test -d \$dldir || mkdir -p \$dldir~ 16769 $install_prog $dir/$dlname \$dldir/$dlname~ 16770 chmod a+x \$dldir/$dlname~ 16771 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16772 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16773 fi' 16774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16775 dlpath=$dir/\$dldll~ 16776 $RM \$dlpath' 16777 ;; 16778 16779osf3* | osf4* | osf5*) 16780 version_type=osf 16781 need_lib_prefix=no 16782 need_version=no 16783 soname_spec='$libname$release$shared_ext$major' 16784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16785 shlibpath_var=LD_LIBRARY_PATH 16786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16788 ;; 16789 16790rdos*) 16791 dynamic_linker=no 16792 ;; 16793 16794solaris*) 16795 version_type=linux # correct to gnu/linux during the next big refactor 16796 need_lib_prefix=no 16797 need_version=no 16798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16799 soname_spec='$libname$release$shared_ext$major' 16800 shlibpath_var=LD_LIBRARY_PATH 16801 shlibpath_overrides_runpath=yes 16802 hardcode_into_libs=yes 16803 # ldd complains unless libraries are executable 16804 postinstall_cmds='chmod +x $lib' 16805 ;; 16806 16807sunos4*) 16808 version_type=sunos 16809 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16810 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16811 shlibpath_var=LD_LIBRARY_PATH 16812 shlibpath_overrides_runpath=yes 16813 if test yes = "$with_gnu_ld"; then 16814 need_lib_prefix=no 16815 fi 16816 need_version=yes 16817 ;; 16818 16819sysv4 | sysv4.3*) 16820 version_type=linux # correct to gnu/linux during the next big refactor 16821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16822 soname_spec='$libname$release$shared_ext$major' 16823 shlibpath_var=LD_LIBRARY_PATH 16824 case $host_vendor in 16825 sni) 16826 shlibpath_overrides_runpath=no 16827 need_lib_prefix=no 16828 runpath_var=LD_RUN_PATH 16829 ;; 16830 siemens) 16831 need_lib_prefix=no 16832 ;; 16833 motorola) 16834 need_lib_prefix=no 16835 need_version=no 16836 shlibpath_overrides_runpath=no 16837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16838 ;; 16839 esac 16840 ;; 16841 16842sysv4*MP*) 16843 if test -d /usr/nec; then 16844 version_type=linux # correct to gnu/linux during the next big refactor 16845 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16846 soname_spec='$libname$shared_ext.$major' 16847 shlibpath_var=LD_LIBRARY_PATH 16848 fi 16849 ;; 16850 16851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16852 version_type=sco 16853 need_lib_prefix=no 16854 need_version=no 16855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16856 soname_spec='$libname$release$shared_ext$major' 16857 shlibpath_var=LD_LIBRARY_PATH 16858 shlibpath_overrides_runpath=yes 16859 hardcode_into_libs=yes 16860 if test yes = "$with_gnu_ld"; then 16861 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16862 else 16863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16864 case $host_os in 16865 sco3.2v5*) 16866 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16867 ;; 16868 esac 16869 fi 16870 sys_lib_dlsearch_path_spec='/usr/lib' 16871 ;; 16872 16873tpf*) 16874 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16875 version_type=linux # correct to gnu/linux during the next big refactor 16876 need_lib_prefix=no 16877 need_version=no 16878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16879 shlibpath_var=LD_LIBRARY_PATH 16880 shlibpath_overrides_runpath=no 16881 hardcode_into_libs=yes 16882 ;; 16883 16884uts4*) 16885 version_type=linux # correct to gnu/linux during the next big refactor 16886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16887 soname_spec='$libname$release$shared_ext$major' 16888 shlibpath_var=LD_LIBRARY_PATH 16889 ;; 16890 16891*) 16892 dynamic_linker=no 16893 ;; 16894esac 16895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16896$as_echo "$dynamic_linker" >&6; } 16897test no = "$dynamic_linker" && can_build_shared=no 16898 16899variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16900if test yes = "$GCC"; then 16901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16902fi 16903 16904if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16905 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16906fi 16907 16908if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16909 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16910fi 16911 16912# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16913configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16914 16915# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16916func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16917 16918# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16919configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16961$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16962hardcode_action_CXX= 16963if test -n "$hardcode_libdir_flag_spec_CXX" || 16964 test -n "$runpath_var_CXX" || 16965 test yes = "$hardcode_automatic_CXX"; then 16966 16967 # We can hardcode non-existent directories. 16968 if test no != "$hardcode_direct_CXX" && 16969 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16970 # have to relink, otherwise we might link with an installed library 16971 # when we should be linking with a yet-to-be-installed one 16972 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16973 test no != "$hardcode_minus_L_CXX"; then 16974 # Linking always hardcodes the temporary library directory. 16975 hardcode_action_CXX=relink 16976 else 16977 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16978 hardcode_action_CXX=immediate 16979 fi 16980else 16981 # We cannot hardcode anything, or else we can only hardcode existing 16982 # directories. 16983 hardcode_action_CXX=unsupported 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16986$as_echo "$hardcode_action_CXX" >&6; } 16987 16988if test relink = "$hardcode_action_CXX" || 16989 test yes = "$inherit_rpath_CXX"; then 16990 # Fast installation is not supported 16991 enable_fast_install=no 16992elif test yes = "$shlibpath_overrides_runpath" || 16993 test no = "$enable_shared"; then 16994 # Fast installation is not necessary 16995 enable_fast_install=needless 16996fi 16997 16998 16999 17000 17001 17002 17003 17004 fi # test -n "$compiler" 17005 17006 CC=$lt_save_CC 17007 CFLAGS=$lt_save_CFLAGS 17008 LDCXX=$LD 17009 LD=$lt_save_LD 17010 GCC=$lt_save_GCC 17011 with_gnu_ld=$lt_save_with_gnu_ld 17012 lt_cv_path_LDCXX=$lt_cv_path_LD 17013 lt_cv_path_LD=$lt_save_path_LD 17014 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17015 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17016fi # test yes != "$_lt_caught_CXX_error" 17017 17018ac_ext=c 17019ac_cpp='$CPP $CPPFLAGS' 17020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17022ac_compiler_gnu=$ac_cv_c_compiler_gnu 17023 17024 17025 17026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler really really works" >&5 17027$as_echo_n "checking if the C++ compiler really really works... " >&6; } 17028if $CXX --version >&5 2>&1; then : 17029 have_cxx=yes 17030else 17031 have_cxx=no 17032fi 17033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cxx" >&5 17034$as_echo "$have_cxx" >&6; } 17035 if test "$have_cxx" = "yes"; then 17036 HAVE_CXX_TRUE= 17037 HAVE_CXX_FALSE='#' 17038else 17039 HAVE_CXX_TRUE='#' 17040 HAVE_CXX_FALSE= 17041fi 17042 17043 17044# Check whether --enable-gcc-warnings was given. 17045if test "${enable_gcc_warnings+set}" = set; then : 17046 enableval=$enable_gcc_warnings; case $enableval in 17047 yes|no) ;; 17048 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;; 17049 esac 17050 gcc_warnings=$enableval 17051else 17052 gcc_warnings=no 17053 17054fi 17055 17056if test "x$gcc_warnings" = "xyes"; then 17057 WARNINGS_CFLAGS="-Wall -Wshadow -Wvla -Werror" 17058 17059fi 17060 17061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -std=c90 for ANSI C test" >&5 17062$as_echo_n "checking if the compiler supports -std=c90 for ANSI C test... " >&6; } 17063old_CFLAGS="$CFLAGS" 17064CFLAGS="$CFLAGS -std=c90" 17065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17066/* end confdefs.h. */ 17067 17068int 17069main () 17070{ 17071 17072 ; 17073 return 0; 17074} 17075_ACEOF 17076if ac_fn_c_try_compile "$LINENO"; then : 17077 supports_std_c90=yes 17078else 17079 supports_std_c90=no 17080fi 17081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17082CFLAGS="$old_CFLAGS" 17083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_std_c90" >&5 17084$as_echo "$supports_std_c90" >&6; } 17085 if test "x$supports_std_c90" = "xyes"; then 17086 CAN_TEST_ANSI_C_TRUE= 17087 CAN_TEST_ANSI_C_FALSE='#' 17088else 17089 CAN_TEST_ANSI_C_TRUE='#' 17090 CAN_TEST_ANSI_C_FALSE= 17091fi 17092 17093 17094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS-dependent include paths are required" >&5 17095$as_echo_n "checking whether OS-dependent include paths are required... " >&6; } 17096case $host_os in #( 17097 haiku*) : 17098 CFLAGS="$CFLAGS -I`findpaths -p /system B_FIND_PATH_HEADERS_DIRECTORY`/bsd"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17099$as_echo "yes" >&6; } ;; #( 17100 *) : 17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17102$as_echo "no" >&6; } 17103 ;; 17104esac 17105 17106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for temporary directory for large files" >&5 17107$as_echo_n "checking for temporary directory for large files... " >&6; } 17108case $host_os in #( 17109 haiku*) : 17110 LARGE_TMPDIR=/tmp ;; #( 17111 *) : 17112 LARGE_TMPDIR=/var/tmp 17113 ;; 17114esac 17115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LARGE_TMPDIR" >&5 17116$as_echo "$LARGE_TMPDIR" >&6; } 17117 17118cat >>confdefs.h <<_ACEOF 17119#define LARGE_TMPDIR "$LARGE_TMPDIR" 17120_ACEOF 17121 17122 17123ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 17124" 17125if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 17126 ac_have_decl=1 17127else 17128 ac_have_decl=0 17129fi 17130 17131cat >>confdefs.h <<_ACEOF 17132#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 17133_ACEOF 17134 17135 17136 17137 17138 17139 17140ac_ext=c 17141ac_cpp='$CPP $CPPFLAGS' 17142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17144ac_compiler_gnu=$ac_cv_c_compiler_gnu 17145 17146ax_pthread_ok=no 17147 17148# We used to check for pthread.h first, but this fails if pthread.h 17149# requires special compiler flags (e.g. on Tru64 or Sequent). 17150# It gets checked for in the link test anyway. 17151 17152# First of all, check if the user has set any of the PTHREAD_LIBS, 17153# etcetera environment variables, and if threads linking works using 17154# them: 17155if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 17156 ax_pthread_save_CC="$CC" 17157 ax_pthread_save_CFLAGS="$CFLAGS" 17158 ax_pthread_save_LIBS="$LIBS" 17159 if test "x$PTHREAD_CC" != "x"; then : 17160 CC="$PTHREAD_CC" 17161fi 17162 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17163 LIBS="$PTHREAD_LIBS $LIBS" 17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 17165$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17167/* end confdefs.h. */ 17168 17169/* Override any GCC internal prototype to avoid an error. 17170 Use char because int might match the return type of a GCC 17171 builtin and then its argument prototype would still apply. */ 17172#ifdef __cplusplus 17173extern "C" 17174#endif 17175char pthread_join (); 17176int 17177main () 17178{ 17179return pthread_join (); 17180 ; 17181 return 0; 17182} 17183_ACEOF 17184if ac_fn_c_try_link "$LINENO"; then : 17185 ax_pthread_ok=yes 17186fi 17187rm -f core conftest.err conftest.$ac_objext \ 17188 conftest$ac_exeext conftest.$ac_ext 17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 17190$as_echo "$ax_pthread_ok" >&6; } 17191 if test "x$ax_pthread_ok" = "xno"; then 17192 PTHREAD_LIBS="" 17193 PTHREAD_CFLAGS="" 17194 fi 17195 CC="$ax_pthread_save_CC" 17196 CFLAGS="$ax_pthread_save_CFLAGS" 17197 LIBS="$ax_pthread_save_LIBS" 17198fi 17199 17200# We must check for the threads library under a number of different 17201# names; the ordering is very important because some systems 17202# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 17203# libraries is broken (non-POSIX). 17204 17205# Create a list of thread flags to try. Items starting with a "-" are 17206# C compiler flags, and other items are library names, except for "none" 17207# which indicates that we try without any flags at all, and "pthread-config" 17208# which is a program returning the flags for the Pth emulation library. 17209 17210ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 17211 17212# The ordering *is* (sometimes) important. Some notes on the 17213# individual items follow: 17214 17215# pthreads: AIX (must check this before -lpthread) 17216# none: in case threads are in libc; should be tried before -Kthread and 17217# other compiler flags to prevent continual compiler warnings 17218# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 17219# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 17220# (Note: HP C rejects this with "bad form for `-t' option") 17221# -pthreads: Solaris/gcc (Note: HP C also rejects) 17222# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 17223# doesn't hurt to check since this sometimes defines pthreads and 17224# -D_REENTRANT too), HP C (must be checked before -lpthread, which 17225# is present but should not be used directly; and before -mthreads, 17226# because the compiler interprets this as "-mt" + "-hreads") 17227# -mthreads: Mingw32/gcc, Lynx/gcc 17228# pthread: Linux, etcetera 17229# --thread-safe: KAI C++ 17230# pthread-config: use pthread-config program (for GNU Pth library) 17231 17232case $host_os in 17233 17234 freebsd*) 17235 17236 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 17237 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 17238 17239 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 17240 ;; 17241 17242 hpux*) 17243 17244 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 17245 # multi-threading and also sets -lpthread." 17246 17247 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 17248 ;; 17249 17250 openedition*) 17251 17252 # IBM z/OS requires a feature-test macro to be defined in order to 17253 # enable POSIX threads at all, so give the user a hint if this is 17254 # not set. (We don't define these ourselves, as they can affect 17255 # other portions of the system API in unpredictable ways.) 17256 17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17258/* end confdefs.h. */ 17259 17260# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 17261 AX_PTHREAD_ZOS_MISSING 17262# endif 17263 17264_ACEOF 17265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17266 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 17268$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 17269fi 17270rm -f conftest* 17271 17272 ;; 17273 17274 solaris*) 17275 17276 # On Solaris (at least, for some versions), libc contains stubbed 17277 # (non-functional) versions of the pthreads routines, so link-based 17278 # tests will erroneously succeed. (N.B.: The stubs are missing 17279 # pthread_cleanup_push, or rather a function called by this macro, 17280 # so we could check for that, but who knows whether they'll stub 17281 # that too in a future libc.) So we'll check first for the 17282 # standard Solaris way of linking pthreads (-mt -lpthread). 17283 17284 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 17285 ;; 17286esac 17287 17288# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 17289 17290if test "x$GCC" = "xyes"; then : 17291 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 17292fi 17293 17294# The presence of a feature test macro requesting re-entrant function 17295# definitions is, on some systems, a strong hint that pthreads support is 17296# correctly enabled 17297 17298case $host_os in 17299 darwin* | hpux* | linux* | osf* | solaris*) 17300 ax_pthread_check_macro="_REENTRANT" 17301 ;; 17302 17303 aix*) 17304 ax_pthread_check_macro="_THREAD_SAFE" 17305 ;; 17306 17307 *) 17308 ax_pthread_check_macro="--" 17309 ;; 17310esac 17311if test "x$ax_pthread_check_macro" = "x--"; then : 17312 ax_pthread_check_cond=0 17313else 17314 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 17315fi 17316 17317# Are we compiling with Clang? 17318 17319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 17320$as_echo_n "checking whether $CC is Clang... " >&6; } 17321if ${ax_cv_PTHREAD_CLANG+:} false; then : 17322 $as_echo_n "(cached) " >&6 17323else 17324 ax_cv_PTHREAD_CLANG=no 17325 # Note that Autoconf sets GCC=yes for Clang as well as GCC 17326 if test "x$GCC" = "xyes"; then 17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17328/* end confdefs.h. */ 17329/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 17330# if defined(__clang__) && defined(__llvm__) 17331 AX_PTHREAD_CC_IS_CLANG 17332# endif 17333 17334_ACEOF 17335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17336 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 17337 ax_cv_PTHREAD_CLANG=yes 17338fi 17339rm -f conftest* 17340 17341 fi 17342 17343fi 17344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 17345$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 17346ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 17347 17348ax_pthread_clang_warning=no 17349 17350# Clang needs special handling, because older versions handle the -pthread 17351# option in a rather... idiosyncratic way 17352 17353if test "x$ax_pthread_clang" = "xyes"; then 17354 17355 # Clang takes -pthread; it has never supported any other flag 17356 17357 # (Note 1: This will need to be revisited if a system that Clang 17358 # supports has POSIX threads in a separate library. This tends not 17359 # to be the way of modern systems, but it's conceivable.) 17360 17361 # (Note 2: On some systems, notably Darwin, -pthread is not needed 17362 # to get POSIX threads support; the API is always present and 17363 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 17364 # -pthread does define _REENTRANT, and while the Darwin headers 17365 # ignore this macro, third-party headers might not.) 17366 17367 PTHREAD_CFLAGS="-pthread" 17368 PTHREAD_LIBS= 17369 17370 ax_pthread_ok=yes 17371 17372 # However, older versions of Clang make a point of warning the user 17373 # that, in an invocation where only linking and no compilation is 17374 # taking place, the -pthread option has no effect ("argument unused 17375 # during compilation"). They expect -pthread to be passed in only 17376 # when source code is being compiled. 17377 # 17378 # Problem is, this is at odds with the way Automake and most other 17379 # C build frameworks function, which is that the same flags used in 17380 # compilation (CFLAGS) are also used in linking. Many systems 17381 # supported by AX_PTHREAD require exactly this for POSIX threads 17382 # support, and in fact it is often not straightforward to specify a 17383 # flag that is used only in the compilation phase and not in 17384 # linking. Such a scenario is extremely rare in practice. 17385 # 17386 # Even though use of the -pthread flag in linking would only print 17387 # a warning, this can be a nuisance for well-run software projects 17388 # that build with -Werror. So if the active version of Clang has 17389 # this misfeature, we search for an option to squash it. 17390 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 17392$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 17393if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 17394 $as_echo_n "(cached) " >&6 17395else 17396 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 17397 # Create an alternate version of $ac_link that compiles and 17398 # links in two steps (.c -> .o, .o -> exe) instead of one 17399 # (.c -> exe), because the warning occurs only in the second 17400 # step 17401 ax_pthread_save_ac_link="$ac_link" 17402 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 17403 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 17404 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 17405 ax_pthread_save_CFLAGS="$CFLAGS" 17406 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 17407 if test "x$ax_pthread_try" = "xunknown"; then : 17408 break 17409fi 17410 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 17411 ac_link="$ax_pthread_save_ac_link" 17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17413/* end confdefs.h. */ 17414int main(void){return 0;} 17415_ACEOF 17416if ac_fn_c_try_link "$LINENO"; then : 17417 ac_link="$ax_pthread_2step_ac_link" 17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419/* end confdefs.h. */ 17420int main(void){return 0;} 17421_ACEOF 17422if ac_fn_c_try_link "$LINENO"; then : 17423 break 17424fi 17425rm -f core conftest.err conftest.$ac_objext \ 17426 conftest$ac_exeext conftest.$ac_ext 17427 17428fi 17429rm -f core conftest.err conftest.$ac_objext \ 17430 conftest$ac_exeext conftest.$ac_ext 17431 done 17432 ac_link="$ax_pthread_save_ac_link" 17433 CFLAGS="$ax_pthread_save_CFLAGS" 17434 if test "x$ax_pthread_try" = "x"; then : 17435 ax_pthread_try=no 17436fi 17437 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 17438 17439fi 17440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 17441$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 17442 17443 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 17444 no | unknown) ;; 17445 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 17446 esac 17447 17448fi # $ax_pthread_clang = yes 17449 17450if test "x$ax_pthread_ok" = "xno"; then 17451for ax_pthread_try_flag in $ax_pthread_flags; do 17452 17453 case $ax_pthread_try_flag in 17454 none) 17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 17456$as_echo_n "checking whether pthreads work without any flags... " >&6; } 17457 ;; 17458 17459 -mt,pthread) 17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 17461$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 17462 PTHREAD_CFLAGS="-mt" 17463 PTHREAD_LIBS="-lpthread" 17464 ;; 17465 17466 -*) 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 17468$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 17469 PTHREAD_CFLAGS="$ax_pthread_try_flag" 17470 ;; 17471 17472 pthread-config) 17473 # Extract the first word of "pthread-config", so it can be a program name with args. 17474set dummy pthread-config; ac_word=$2 17475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17476$as_echo_n "checking for $ac_word... " >&6; } 17477if ${ac_cv_prog_ax_pthread_config+:} false; then : 17478 $as_echo_n "(cached) " >&6 17479else 17480 if test -n "$ax_pthread_config"; then 17481 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 17482else 17483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17484for as_dir in $PATH 17485do 17486 IFS=$as_save_IFS 17487 test -z "$as_dir" && as_dir=. 17488 for ac_exec_ext in '' $ac_executable_extensions; do 17489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17490 ac_cv_prog_ax_pthread_config="yes" 17491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17492 break 2 17493 fi 17494done 17495 done 17496IFS=$as_save_IFS 17497 17498 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 17499fi 17500fi 17501ax_pthread_config=$ac_cv_prog_ax_pthread_config 17502if test -n "$ax_pthread_config"; then 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 17504$as_echo "$ax_pthread_config" >&6; } 17505else 17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17507$as_echo "no" >&6; } 17508fi 17509 17510 17511 if test "x$ax_pthread_config" = "xno"; then : 17512 continue 17513fi 17514 PTHREAD_CFLAGS="`pthread-config --cflags`" 17515 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 17516 ;; 17517 17518 *) 17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 17520$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 17521 PTHREAD_LIBS="-l$ax_pthread_try_flag" 17522 ;; 17523 esac 17524 17525 ax_pthread_save_CFLAGS="$CFLAGS" 17526 ax_pthread_save_LIBS="$LIBS" 17527 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17528 LIBS="$PTHREAD_LIBS $LIBS" 17529 17530 # Check for various functions. We must include pthread.h, 17531 # since some functions may be macros. (On the Sequent, we 17532 # need a special flag -Kthread to make this header compile.) 17533 # We check for pthread_join because it is in -lpthread on IRIX 17534 # while pthread_create is in libc. We check for pthread_attr_init 17535 # due to DEC craziness with -lpthreads. We check for 17536 # pthread_cleanup_push because it is one of the few pthread 17537 # functions on Solaris that doesn't have a non-functional libc stub. 17538 # We try pthread_create on general principles. 17539 17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17541/* end confdefs.h. */ 17542#include <pthread.h> 17543# if $ax_pthread_check_cond 17544# error "$ax_pthread_check_macro must be defined" 17545# endif 17546 static void routine(void *a) { a = 0; } 17547 static void *start_routine(void *a) { return a; } 17548int 17549main () 17550{ 17551pthread_t th; pthread_attr_t attr; 17552 pthread_create(&th, 0, start_routine, 0); 17553 pthread_join(th, 0); 17554 pthread_attr_init(&attr); 17555 pthread_cleanup_push(routine, 0); 17556 pthread_cleanup_pop(0) /* ; */ 17557 ; 17558 return 0; 17559} 17560_ACEOF 17561if ac_fn_c_try_link "$LINENO"; then : 17562 ax_pthread_ok=yes 17563fi 17564rm -f core conftest.err conftest.$ac_objext \ 17565 conftest$ac_exeext conftest.$ac_ext 17566 17567 CFLAGS="$ax_pthread_save_CFLAGS" 17568 LIBS="$ax_pthread_save_LIBS" 17569 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 17571$as_echo "$ax_pthread_ok" >&6; } 17572 if test "x$ax_pthread_ok" = "xyes"; then : 17573 break 17574fi 17575 17576 PTHREAD_LIBS="" 17577 PTHREAD_CFLAGS="" 17578done 17579fi 17580 17581# Various other checks: 17582if test "x$ax_pthread_ok" = "xyes"; then 17583 ax_pthread_save_CFLAGS="$CFLAGS" 17584 ax_pthread_save_LIBS="$LIBS" 17585 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17586 LIBS="$PTHREAD_LIBS $LIBS" 17587 17588 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 17590$as_echo_n "checking for joinable pthread attribute... " >&6; } 17591if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 17592 $as_echo_n "(cached) " >&6 17593else 17594 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 17595 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17597/* end confdefs.h. */ 17598#include <pthread.h> 17599int 17600main () 17601{ 17602int attr = $ax_pthread_attr; return attr /* ; */ 17603 ; 17604 return 0; 17605} 17606_ACEOF 17607if ac_fn_c_try_link "$LINENO"; then : 17608 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 17609fi 17610rm -f core conftest.err conftest.$ac_objext \ 17611 conftest$ac_exeext conftest.$ac_ext 17612 done 17613 17614fi 17615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 17616$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 17617 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 17618 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 17619 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 17620 17621cat >>confdefs.h <<_ACEOF 17622#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 17623_ACEOF 17624 17625 ax_pthread_joinable_attr_defined=yes 17626 17627fi 17628 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 17630$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 17631if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 17632 $as_echo_n "(cached) " >&6 17633else 17634 ax_cv_PTHREAD_SPECIAL_FLAGS=no 17635 case $host_os in 17636 solaris*) 17637 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 17638 ;; 17639 esac 17640 17641fi 17642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 17643$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 17644 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 17645 test "x$ax_pthread_special_flags_added" != "xyes"; then : 17646 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 17647 ax_pthread_special_flags_added=yes 17648fi 17649 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 17651$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 17652if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 17653 $as_echo_n "(cached) " >&6 17654else 17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17656/* end confdefs.h. */ 17657#include <pthread.h> 17658int 17659main () 17660{ 17661int i = PTHREAD_PRIO_INHERIT; 17662 ; 17663 return 0; 17664} 17665_ACEOF 17666if ac_fn_c_try_link "$LINENO"; then : 17667 ax_cv_PTHREAD_PRIO_INHERIT=yes 17668else 17669 ax_cv_PTHREAD_PRIO_INHERIT=no 17670fi 17671rm -f core conftest.err conftest.$ac_objext \ 17672 conftest$ac_exeext conftest.$ac_ext 17673 17674fi 17675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 17676$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 17677 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 17678 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 17679 17680$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 17681 17682 ax_pthread_prio_inherit_defined=yes 17683 17684fi 17685 17686 CFLAGS="$ax_pthread_save_CFLAGS" 17687 LIBS="$ax_pthread_save_LIBS" 17688 17689 # More AIX lossage: compile with *_r variant 17690 if test "x$GCC" != "xyes"; then 17691 case $host_os in 17692 aix*) 17693 case "x/$CC" in #( 17694 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 17695 #handle absolute path differently from PATH based program lookup 17696 case "x$CC" in #( 17697 x/*) : 17698 if as_fn_executable_p ${CC}_r; then : 17699 PTHREAD_CC="${CC}_r" 17700fi ;; #( 17701 *) : 17702 for ac_prog in ${CC}_r 17703do 17704 # Extract the first word of "$ac_prog", so it can be a program name with args. 17705set dummy $ac_prog; ac_word=$2 17706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17707$as_echo_n "checking for $ac_word... " >&6; } 17708if ${ac_cv_prog_PTHREAD_CC+:} false; then : 17709 $as_echo_n "(cached) " >&6 17710else 17711 if test -n "$PTHREAD_CC"; then 17712 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 17713else 17714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17715for as_dir in $PATH 17716do 17717 IFS=$as_save_IFS 17718 test -z "$as_dir" && as_dir=. 17719 for ac_exec_ext in '' $ac_executable_extensions; do 17720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17721 ac_cv_prog_PTHREAD_CC="$ac_prog" 17722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17723 break 2 17724 fi 17725done 17726 done 17727IFS=$as_save_IFS 17728 17729fi 17730fi 17731PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 17732if test -n "$PTHREAD_CC"; then 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 17734$as_echo "$PTHREAD_CC" >&6; } 17735else 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17737$as_echo "no" >&6; } 17738fi 17739 17740 17741 test -n "$PTHREAD_CC" && break 17742done 17743test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 17744 ;; 17745esac ;; #( 17746 *) : 17747 ;; 17748esac 17749 ;; 17750 esac 17751 fi 17752fi 17753 17754test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 17755 17756 17757 17758 17759 17760# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17761if test "x$ax_pthread_ok" = "xyes"; then 17762 17763$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 17764 17765 : 17766else 17767 ax_pthread_ok=no 17768 17769fi 17770ac_ext=c 17771ac_cpp='$CPP $CPPFLAGS' 17772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17774ac_compiler_gnu=$ac_cv_c_compiler_gnu 17775 17776 17777 17778acx_nbdkit_save_CFLAGS="${CFLAGS}" 17779CFLAGS="${CFLAGS} -Werror" 17780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __attribute__((cleanup(...))) works with this compiler" >&5 17781$as_echo_n "checking if __attribute__((cleanup(...))) works with this compiler... " >&6; } 17782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17783/* end confdefs.h. */ 17784 17785 17786#include <stdio.h> 17787#include <stdlib.h> 17788 17789void 17790freep (void *ptr) 17791{ 17792 exit (EXIT_SUCCESS); 17793} 17794 17795void 17796test (void) 17797{ 17798 __attribute__((cleanup(freep))) char *ptr = malloc (100); 17799} 17800 17801int 17802main (int argc, char *argv[]) 17803{ 17804 test (); 17805 exit (EXIT_FAILURE); 17806} 17807 17808 17809_ACEOF 17810if ac_fn_c_try_compile "$LINENO"; then : 17811 17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17813$as_echo "yes" >&6; } 17814 17815else 17816 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17818$as_echo "no" >&6; } 17819 as_fn_error $? "'__attribute__((cleanup(...)))' does not work. 17820 17821You may not be using a sufficiently recent version of GCC or CLANG, or 17822you may be using a C compiler which does not support this attribute, 17823or the configure test may be wrong. 17824 17825This code requires the attribute to work for proper locking between threads." "$LINENO" 5 17826fi 17827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17828CFLAGS="${acx_nbdkit_save_CFLAGS}" 17829 17830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __auto_type is available in this compiler" >&5 17831$as_echo_n "checking if __auto_type is available in this compiler... " >&6; } 17832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833/* end confdefs.h. */ 17834 17835 17836static int 17837test (int a) 17838{ 17839 __auto_type at = a; 17840 return at; 17841} 17842 17843 17844_ACEOF 17845if ac_fn_c_try_compile "$LINENO"; then : 17846 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17848$as_echo "yes" >&6; } 17849 17850$as_echo "#define HAVE_AUTO_TYPE 1" >>confdefs.h 17851 17852 17853else 17854 17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17856$as_echo "no" >&6; } 17857 17858 17859fi 17860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17861 17862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is declared in header files" >&5 17863$as_echo_n "checking if environ is declared in header files... " >&6; } 17864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17865/* end confdefs.h. */ 17866 17867 17868#include <stdlib.h> 17869#include <unistd.h> 17870static int 17871test (void) 17872{ 17873 const char **env = environ; 17874 return env ? 1 : 0; // this just forces env to be used 17875} 17876 17877 17878_ACEOF 17879if ac_fn_c_try_compile "$LINENO"; then : 17880 17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17882$as_echo "yes" >&6; } 17883 17884$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h 17885 17886 17887else 17888 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17890$as_echo "no" >&6; } 17891 17892 17893fi 17894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17895 17896for ac_header in \ 17897 alloca.h \ 17898 byteswap.h \ 17899 endian.h \ 17900 stdatomic.h \ 17901 sys/endian.h \ 17902 sys/mman.h \ 17903 sys/prctl.h \ 17904 sys/procctl.h 17905do : 17906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17907ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17908if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17909 cat >>confdefs.h <<_ACEOF 17910#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17911_ACEOF 17912 17913fi 17914 17915done 17916 17917 17918for ac_header in linux/vm_sockets.h 17919do : 17920 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "#include <sys/socket.h> 17921" 17922if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : 17923 cat >>confdefs.h <<_ACEOF 17924#define HAVE_LINUX_VM_SOCKETS_H 1 17925_ACEOF 17926 17927fi 17928 17929done 17930 17931 17932for ac_func in \ 17933 accept4 \ 17934 fdatasync \ 17935 get_current_dir_name \ 17936 mkostemp \ 17937 mlockall \ 17938 pipe2 \ 17939 ppoll \ 17940 posix_fadvise 17941do : 17942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17943ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17944if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17945 cat >>confdefs.h <<_ACEOF 17946#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17947_ACEOF 17948 17949fi 17950done 17951 17952 17953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the printf family supports %m" >&5 17954$as_echo_n "checking whether the printf family supports %m... " >&6; } 17955if ${nbdkit_cv_func_printf_percent_m+:} false; then : 17956 $as_echo_n "(cached) " >&6 17957else 17958 if test "$cross_compiling" = yes; then : 17959 17960 case "$host_os" in 17961 *-gnu* | gnu*) nbdkit_cv_func_printf_percent_m=yes;; 17962 *) nbdkit_cv_func_printf_percent_m="guessing no";; 17963 esac 17964 17965else 17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17967/* end confdefs.h. */ 17968 17969#include <stdio.h> 17970#include <string.h> 17971#include <errno.h> 17972 17973int 17974main () 17975{ 17976 17977 char buf[200] = ""; 17978 errno = EINVAL; 17979 snprintf(buf, sizeof buf, "%m"); 17980 return !!strcmp (buf, strerror (EINVAL)); 17981 17982 ; 17983 return 0; 17984} 17985_ACEOF 17986if ac_fn_c_try_run "$LINENO"; then : 17987 nbdkit_cv_func_printf_percent_m=yes 17988else 17989 nbdkit_cv_func_printf_percent_m=no 17990fi 17991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17992 conftest.$ac_objext conftest.beam conftest.$ac_ext 17993fi 17994 17995fi 17996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nbdkit_cv_func_printf_percent_m" >&5 17997$as_echo "$nbdkit_cv_func_printf_percent_m" >&6; } 17998if test "x$nbdkit_cv_func_printf_percent_m" = xyes; then : 17999 18000$as_echo "#define HAVE_VFPRINTF_PERCENT_M 1" >>confdefs.h 18001 18002fi 18003 18004old_LIBS="$LIBS" 18005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 18006$as_echo_n "checking for library containing dlsym... " >&6; } 18007if ${ac_cv_search_dlsym+:} false; then : 18008 $as_echo_n "(cached) " >&6 18009else 18010 ac_func_search_save_LIBS=$LIBS 18011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18012/* end confdefs.h. */ 18013 18014/* Override any GCC internal prototype to avoid an error. 18015 Use char because int might match the return type of a GCC 18016 builtin and then its argument prototype would still apply. */ 18017#ifdef __cplusplus 18018extern "C" 18019#endif 18020char dlsym (); 18021int 18022main () 18023{ 18024return dlsym (); 18025 ; 18026 return 0; 18027} 18028_ACEOF 18029for ac_lib in '' dl dld; do 18030 if test -z "$ac_lib"; then 18031 ac_res="none required" 18032 else 18033 ac_res=-l$ac_lib 18034 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18035 fi 18036 if ac_fn_c_try_link "$LINENO"; then : 18037 ac_cv_search_dlsym=$ac_res 18038fi 18039rm -f core conftest.err conftest.$ac_objext \ 18040 conftest$ac_exeext 18041 if ${ac_cv_search_dlsym+:} false; then : 18042 break 18043fi 18044done 18045if ${ac_cv_search_dlsym+:} false; then : 18046 18047else 18048 ac_cv_search_dlsym=no 18049fi 18050rm conftest.$ac_ext 18051LIBS=$ac_func_search_save_LIBS 18052fi 18053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 18054$as_echo "$ac_cv_search_dlsym" >&6; } 18055ac_res=$ac_cv_search_dlsym 18056if test "$ac_res" != no; then : 18057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18058 18059 if test "x$ac_cv_search_dlsym" != "xnone required"; then : 18060 DL_LIBS="$ac_cv_search_dlsym" 18061else 18062 DL_LIBS= 18063fi 18064 18065 18066else 18067 as_fn_error $? "unable to find the dlsym() function" "$LINENO" 5 18068 18069fi 18070 18071LIBS="$old_LIBS" 18072 18073 18074# Check whether --with-iconv was given. 18075if test "${with_iconv+set}" = set; then : 18076 withval=$with_iconv; 18077else 18078 with_iconv=check 18079fi 18080 18081if test "x$with_iconv" != "xno"; then : 18082 18083 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 18084if test "x$ac_cv_header_iconv_h" = xyes; then : 18085 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <iconv.h> can be used to link a program" >&5 18087$as_echo_n "checking if <iconv.h> can be used to link a program... " >&6; } 18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18089/* end confdefs.h. */ 18090 18091 18092#include <stdio.h> 18093#include <stdlib.h> 18094#include <iconv.h> 18095int 18096main (int argc, char *argv[]) 18097{ 18098 iconv_t ic = iconv_open ("", ""); 18099 iconv_close (ic); 18100 exit (0); 18101} 18102 18103 18104_ACEOF 18105if ac_fn_c_try_link "$LINENO"; then : 18106 18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18108$as_echo "yes" >&6; } 18109 iconv_working=yes 18110 18111else 18112 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18114$as_echo "no" >&6; } 18115 18116fi 18117rm -f core conftest.err conftest.$ac_objext \ 18118 conftest$ac_exeext conftest.$ac_ext 18119 18120fi 18121 18122 18123 18124fi 18125 if test "x$iconv_working" = "xyes"; then 18126 HAVE_ICONV_TRUE= 18127 HAVE_ICONV_FALSE='#' 18128else 18129 HAVE_ICONV_TRUE='#' 18130 HAVE_ICONV_FALSE= 18131fi 18132 18133 18134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use a linker script for the server" >&5 18135$as_echo_n "checking if we should use a linker script for the server... " >&6; } 18136case $host_os in #( 18137 freebsd*) : 18138 use_linker_script_for_server=no ;; #( 18139 *) : 18140 use_linker_script_for_server=yes 18141 ;; 18142esac 18143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_linker_script_for_server" >&5 18144$as_echo "$use_linker_script_for_server" >&6; } 18145 if test "x$use_linker_script_for_server" = "xyes"; then 18146 USE_LINKER_SCRIPT_FOR_SERVER_TRUE= 18147 USE_LINKER_SCRIPT_FOR_SERVER_FALSE='#' 18148else 18149 USE_LINKER_SCRIPT_FOR_SERVER_TRUE='#' 18150 USE_LINKER_SCRIPT_FOR_SERVER_FALSE= 18151fi 18152 18153 18154acx_nbdkit_save_LDFLAGS="${LDFLAGS}" 18155LDFLAGS="${LDFLAGS} -rdynamic" 18156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5 18157$as_echo_n "checking if linker supports -rdynamic... " >&6; } 18158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18159/* end confdefs.h. */ 18160 18161 18162#include <stdlib.h> 18163int 18164main (int argc, char *argv[]) 18165{ 18166 exit (EXIT_SUCCESS); 18167} 18168 18169 18170_ACEOF 18171if ac_fn_c_try_link "$LINENO"; then : 18172 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18174$as_echo "yes" >&6; } 18175 DL_LDFLAGS=-rdynamic 18176 18177else 18178 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18180$as_echo "no" >&6; } 18181 18182fi 18183rm -f core conftest.err conftest.$ac_objext \ 18184 conftest$ac_exeext conftest.$ac_ext 18185LDFLAGS="${acx_nbdkit_save_LDFLAGS}" 18186 18187 18188old_LIBS="$LIBS" 18189LIBS="$DL_LIBS $LIBS" 18190for ac_func in dladdr 18191do : 18192 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" 18193if test "x$ac_cv_func_dladdr" = xyes; then : 18194 cat >>confdefs.h <<_ACEOF 18195#define HAVE_DLADDR 1 18196_ACEOF 18197 18198fi 18199done 18200 18201LIBS="$old_LIBS" 18202 18203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHARED_LDFLAGS" >&5 18204$as_echo_n "checking SHARED_LDFLAGS... " >&6; } 18205case $host_os in #( 18206 mingw*|msys*|cygwin*) : 18207 SHARED_LDFLAGS="$SHARED_LDFLAGS -no-undefined" ;; #( 18208 *) : 18209 18210 ;; 18211esac 18212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHARED_LDFLAGS" >&5 18213$as_echo "$SHARED_LDFLAGS" >&6; } 18214 18215 18216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 18217$as_echo_n "checking for library containing getaddrinfo... " >&6; } 18218if ${ac_cv_search_getaddrinfo+:} false; then : 18219 $as_echo_n "(cached) " >&6 18220else 18221 ac_func_search_save_LIBS=$LIBS 18222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18223/* end confdefs.h. */ 18224 18225/* Override any GCC internal prototype to avoid an error. 18226 Use char because int might match the return type of a GCC 18227 builtin and then its argument prototype would still apply. */ 18228#ifdef __cplusplus 18229extern "C" 18230#endif 18231char getaddrinfo (); 18232int 18233main () 18234{ 18235return getaddrinfo (); 18236 ; 18237 return 0; 18238} 18239_ACEOF 18240for ac_lib in '' network socket; do 18241 if test -z "$ac_lib"; then 18242 ac_res="none required" 18243 else 18244 ac_res=-l$ac_lib 18245 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18246 fi 18247 if ac_fn_c_try_link "$LINENO"; then : 18248 ac_cv_search_getaddrinfo=$ac_res 18249fi 18250rm -f core conftest.err conftest.$ac_objext \ 18251 conftest$ac_exeext 18252 if ${ac_cv_search_getaddrinfo+:} false; then : 18253 break 18254fi 18255done 18256if ${ac_cv_search_getaddrinfo+:} false; then : 18257 18258else 18259 ac_cv_search_getaddrinfo=no 18260fi 18261rm conftest.$ac_ext 18262LIBS=$ac_func_search_save_LIBS 18263fi 18264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 18265$as_echo "$ac_cv_search_getaddrinfo" >&6; } 18266ac_res=$ac_cv_search_getaddrinfo 18267if test "$ac_res" != no; then : 18268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18269 18270fi 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18281 if test -n "$ac_tool_prefix"; then 18282 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18283set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18285$as_echo_n "checking for $ac_word... " >&6; } 18286if ${ac_cv_path_PKG_CONFIG+:} false; then : 18287 $as_echo_n "(cached) " >&6 18288else 18289 case $PKG_CONFIG in 18290 [\\/]* | ?:[\\/]*) 18291 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18292 ;; 18293 *) 18294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18295for as_dir in $PATH 18296do 18297 IFS=$as_save_IFS 18298 test -z "$as_dir" && as_dir=. 18299 for ac_exec_ext in '' $ac_executable_extensions; do 18300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18301 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18303 break 2 18304 fi 18305done 18306 done 18307IFS=$as_save_IFS 18308 18309 ;; 18310esac 18311fi 18312PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18313if test -n "$PKG_CONFIG"; then 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18315$as_echo "$PKG_CONFIG" >&6; } 18316else 18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18318$as_echo "no" >&6; } 18319fi 18320 18321 18322fi 18323if test -z "$ac_cv_path_PKG_CONFIG"; then 18324 ac_pt_PKG_CONFIG=$PKG_CONFIG 18325 # Extract the first word of "pkg-config", so it can be a program name with args. 18326set dummy pkg-config; ac_word=$2 18327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18328$as_echo_n "checking for $ac_word... " >&6; } 18329if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18330 $as_echo_n "(cached) " >&6 18331else 18332 case $ac_pt_PKG_CONFIG in 18333 [\\/]* | ?:[\\/]*) 18334 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18335 ;; 18336 *) 18337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18338for as_dir in $PATH 18339do 18340 IFS=$as_save_IFS 18341 test -z "$as_dir" && as_dir=. 18342 for ac_exec_ext in '' $ac_executable_extensions; do 18343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18344 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18346 break 2 18347 fi 18348done 18349 done 18350IFS=$as_save_IFS 18351 18352 ;; 18353esac 18354fi 18355ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18356if test -n "$ac_pt_PKG_CONFIG"; then 18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18358$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18359else 18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18361$as_echo "no" >&6; } 18362fi 18363 18364 if test "x$ac_pt_PKG_CONFIG" = x; then 18365 PKG_CONFIG="" 18366 else 18367 case $cross_compiling:$ac_tool_warned in 18368yes:) 18369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18371ac_tool_warned=yes ;; 18372esac 18373 PKG_CONFIG=$ac_pt_PKG_CONFIG 18374 fi 18375else 18376 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18377fi 18378 18379fi 18380if test -n "$PKG_CONFIG"; then 18381 _pkg_min_version=0.9.0 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18383$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18384 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18386$as_echo "yes" >&6; } 18387 else 18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18389$as_echo "no" >&6; } 18390 PKG_CONFIG="" 18391 fi 18392fi 18393 18394pkg_failed=no 18395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSELINUX" >&5 18396$as_echo_n "checking for LIBSELINUX... " >&6; } 18397 18398if test -n "$LIBSELINUX_CFLAGS"; then 18399 pkg_cv_LIBSELINUX_CFLAGS="$LIBSELINUX_CFLAGS" 18400 elif test -n "$PKG_CONFIG"; then 18401 if test -n "$PKG_CONFIG" && \ 18402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 18403 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 18404 ac_status=$? 18405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18406 test $ac_status = 0; }; then 18407 pkg_cv_LIBSELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null` 18408 test "x$?" != "x0" && pkg_failed=yes 18409else 18410 pkg_failed=yes 18411fi 18412 else 18413 pkg_failed=untried 18414fi 18415if test -n "$LIBSELINUX_LIBS"; then 18416 pkg_cv_LIBSELINUX_LIBS="$LIBSELINUX_LIBS" 18417 elif test -n "$PKG_CONFIG"; then 18418 if test -n "$PKG_CONFIG" && \ 18419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 18420 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 18421 ac_status=$? 18422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18423 test $ac_status = 0; }; then 18424 pkg_cv_LIBSELINUX_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null` 18425 test "x$?" != "x0" && pkg_failed=yes 18426else 18427 pkg_failed=yes 18428fi 18429 else 18430 pkg_failed=untried 18431fi 18432 18433 18434 18435if test $pkg_failed = yes; then 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18437$as_echo "no" >&6; } 18438 18439if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18440 _pkg_short_errors_supported=yes 18441else 18442 _pkg_short_errors_supported=no 18443fi 18444 if test $_pkg_short_errors_supported = yes; then 18445 LIBSELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1` 18446 else 18447 LIBSELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1` 18448 fi 18449 # Put the nasty error message in config.log where it belongs 18450 echo "$LIBSELINUX_PKG_ERRORS" >&5 18451 18452 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libselinux not found, SELinux socket labelling support will be disabled." >&5 18454$as_echo "$as_me: WARNING: libselinux not found, SELinux socket labelling support will be disabled." >&2;} 18455 18456elif test $pkg_failed = untried; then 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18458$as_echo "no" >&6; } 18459 18460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libselinux not found, SELinux socket labelling support will be disabled." >&5 18461$as_echo "$as_me: WARNING: libselinux not found, SELinux socket labelling support will be disabled." >&2;} 18462 18463else 18464 LIBSELINUX_CFLAGS=$pkg_cv_LIBSELINUX_CFLAGS 18465 LIBSELINUX_LIBS=$pkg_cv_LIBSELINUX_LIBS 18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18467$as_echo "yes" >&6; } 18468 18469 18470 18471 18472$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h 18473 18474 18475fi 18476 18477 18478pkg_failed=no 18479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 18480$as_echo_n "checking for GNUTLS... " >&6; } 18481 18482if test -n "$GNUTLS_CFLAGS"; then 18483 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" 18484 elif test -n "$PKG_CONFIG"; then 18485 if test -n "$PKG_CONFIG" && \ 18486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3.0\""; } >&5 18487 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.3.0") 2>&5 18488 ac_status=$? 18489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18490 test $ac_status = 0; }; then 18491 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 3.3.0" 2>/dev/null` 18492 test "x$?" != "x0" && pkg_failed=yes 18493else 18494 pkg_failed=yes 18495fi 18496 else 18497 pkg_failed=untried 18498fi 18499if test -n "$GNUTLS_LIBS"; then 18500 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" 18501 elif test -n "$PKG_CONFIG"; then 18502 if test -n "$PKG_CONFIG" && \ 18503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3.0\""; } >&5 18504 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.3.0") 2>&5 18505 ac_status=$? 18506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18507 test $ac_status = 0; }; then 18508 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 3.3.0" 2>/dev/null` 18509 test "x$?" != "x0" && pkg_failed=yes 18510else 18511 pkg_failed=yes 18512fi 18513 else 18514 pkg_failed=untried 18515fi 18516 18517 18518 18519if test $pkg_failed = yes; then 18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18521$as_echo "no" >&6; } 18522 18523if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18524 _pkg_short_errors_supported=yes 18525else 18526 _pkg_short_errors_supported=no 18527fi 18528 if test $_pkg_short_errors_supported = yes; then 18529 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 3.3.0" 2>&1` 18530 else 18531 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 3.3.0" 2>&1` 18532 fi 18533 # Put the nasty error message in config.log where it belongs 18534 echo "$GNUTLS_PKG_ERRORS" >&5 18535 18536 18537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&5 18538$as_echo "$as_me: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&2;} 18539 18540elif test $pkg_failed = untried; then 18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18542$as_echo "no" >&6; } 18543 18544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&5 18545$as_echo "$as_me: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&2;} 18546 18547else 18548 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS 18549 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18551$as_echo "yes" >&6; } 18552 18553 18554 18555 18556$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h 18557 18558 18559fi 18560 18561if test "$GNUTLS_LIBS" != ""; then : 18562 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default TLS session priority string" >&5 18564$as_echo_n "checking for default TLS session priority string... " >&6; } 18565 18566# Check whether --with-tls-priority was given. 18567if test "${with_tls_priority+set}" = set; then : 18568 withval=$with_tls_priority; tls_priority=$withval 18569else 18570 tls_priority=NORMAL 18571fi 18572 18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tls_priority" >&5 18574$as_echo "$tls_priority" >&6; } 18575 18576cat >>confdefs.h <<_ACEOF 18577#define TLS_PRIORITY "$tls_priority" 18578_ACEOF 18579 18580 18581 # Check for APIs which may not be present. 18582 old_LIBS="$LIBS" 18583 LIBS="$GNUTLS_LIBS $LIBS" 18584 for ac_func in \ 18585 gnutls_base64_decode2 \ 18586 gnutls_certificate_set_known_dh_params \ 18587 gnutls_session_set_verify_cert 18588do : 18589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18591if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18592 cat >>confdefs.h <<_ACEOF 18593#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18594_ACEOF 18595 18596fi 18597done 18598 18599 LIBS="$old_LIBS" 18600 18601fi 18602 18603 18604# Check whether --with-linuxdisk was given. 18605if test "${with_linuxdisk+set}" = set; then : 18606 withval=$with_linuxdisk; 18607else 18608 with_linuxdisk=check 18609fi 18610 18611mke2fs_with_d=no 18612if test "$with_linuxdisk" != "no"; then : 18613 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mke2fs supporting the -d option" >&5 18615$as_echo_n "checking for mke2fs supporting the -d option... " >&6; } 18616 if mke2fs -V >/dev/null 2>&1; then : 18617 18618 if LANG=C mke2fs -d 2>&1 | grep -sq "option requires an argument"; then : 18619 18620 mke2fs_with_d=yes 18621 18622fi 18623 18624fi 18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mke2fs_with_d" >&5 18626$as_echo "$mke2fs_with_d" >&6; } 18627 18628fi 18629 if test "x$mke2fs_with_d" = "xyes"; then 18630 HAVE_MKE2FS_WITH_D_TRUE= 18631 HAVE_MKE2FS_WITH_D_FALSE='#' 18632else 18633 HAVE_MKE2FS_WITH_D_TRUE='#' 18634 HAVE_MKE2FS_WITH_D_FALSE= 18635fi 18636 18637 18638# Extract the first word of "valgrind", so it can be a program name with args. 18639set dummy valgrind; ac_word=$2 18640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18641$as_echo_n "checking for $ac_word... " >&6; } 18642if ${ac_cv_prog_VALGRIND+:} false; then : 18643 $as_echo_n "(cached) " >&6 18644else 18645 if test -n "$VALGRIND"; then 18646 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 18647else 18648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18649for as_dir in $PATH 18650do 18651 IFS=$as_save_IFS 18652 test -z "$as_dir" && as_dir=. 18653 for ac_exec_ext in '' $ac_executable_extensions; do 18654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18655 ac_cv_prog_VALGRIND="valgrind" 18656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18657 break 2 18658 fi 18659done 18660 done 18661IFS=$as_save_IFS 18662 18663 test -z "$ac_cv_prog_VALGRIND" && ac_cv_prog_VALGRIND="no" 18664fi 18665fi 18666VALGRIND=$ac_cv_prog_VALGRIND 18667if test -n "$VALGRIND"; then 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 18669$as_echo "$VALGRIND" >&6; } 18670else 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18672$as_echo "no" >&6; } 18673fi 18674 18675 18676 18677# Check whether --enable-valgrind was given. 18678if test "${enable_valgrind+set}" = set; then : 18679 enableval=$enable_valgrind; enable_valgrind=yes 18680else 18681 enable_valgrind=no 18682fi 18683 18684if test "x$enable_valgrind" = "xyes"; then : 18685 18686 18687pkg_failed=no 18688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 18689$as_echo_n "checking for VALGRIND... " >&6; } 18690 18691if test -n "$VALGRIND_CFLAGS"; then 18692 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" 18693 elif test -n "$PKG_CONFIG"; then 18694 if test -n "$PKG_CONFIG" && \ 18695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 18696 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 18697 ac_status=$? 18698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18699 test $ac_status = 0; }; then 18700 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` 18701 test "x$?" != "x0" && pkg_failed=yes 18702else 18703 pkg_failed=yes 18704fi 18705 else 18706 pkg_failed=untried 18707fi 18708if test -n "$VALGRIND_LIBS"; then 18709 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" 18710 elif test -n "$PKG_CONFIG"; then 18711 if test -n "$PKG_CONFIG" && \ 18712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 18713 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 18714 ac_status=$? 18715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18716 test $ac_status = 0; }; then 18717 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` 18718 test "x$?" != "x0" && pkg_failed=yes 18719else 18720 pkg_failed=yes 18721fi 18722 else 18723 pkg_failed=untried 18724fi 18725 18726 18727 18728if test $pkg_failed = yes; then 18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18730$as_echo "no" >&6; } 18731 18732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18733 _pkg_short_errors_supported=yes 18734else 18735 _pkg_short_errors_supported=no 18736fi 18737 if test $_pkg_short_errors_supported = yes; then 18738 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` 18739 else 18740 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` 18741 fi 18742 # Put the nasty error message in config.log where it belongs 18743 echo "$VALGRIND_PKG_ERRORS" >&5 18744 18745 18746 as_fn_error $? "--enable-valgrind given, but Valgrind headers are not available" "$LINENO" 5 18747 18748elif test $pkg_failed = untried; then 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18750$as_echo "no" >&6; } 18751 18752 as_fn_error $? "--enable-valgrind given, but Valgrind headers are not available" "$LINENO" 5 18753 18754else 18755 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS 18756 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18758$as_echo "yes" >&6; } 18759 18760 18761 18762 18763$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h 18764 18765 18766fi 18767 18768fi 18769 18770# Check whether --enable-libfuzzer was given. 18771if test "${enable_libfuzzer+set}" = set; then : 18772 enableval=$enable_libfuzzer; enable_libfuzzer=yes 18773else 18774 enable_libfuzzer=no 18775fi 18776 18777if test "x$enable_libfuzzer" = "xyes"; then : 18778 18779 18780$as_echo "#define ENABLE_LIBFUZZER 1" >>confdefs.h 18781 18782 18783fi 18784 if test "x$enable_libfuzzer" = "xyes"; then 18785 ENABLE_LIBFUZZER_TRUE= 18786 ENABLE_LIBFUZZER_FALSE='#' 18787else 18788 ENABLE_LIBFUZZER_TRUE='#' 18789 ENABLE_LIBFUZZER_FALSE= 18790fi 18791 18792 18793 18794pkg_failed=no 18795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH_COMPLETION" >&5 18796$as_echo_n "checking for BASH_COMPLETION... " >&6; } 18797 18798if test -n "$BASH_COMPLETION_CFLAGS"; then 18799 pkg_cv_BASH_COMPLETION_CFLAGS="$BASH_COMPLETION_CFLAGS" 18800 elif test -n "$PKG_CONFIG"; then 18801 if test -n "$PKG_CONFIG" && \ 18802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5 18803 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5 18804 ac_status=$? 18805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18806 test $ac_status = 0; }; then 18807 pkg_cv_BASH_COMPLETION_CFLAGS=`$PKG_CONFIG --cflags "bash-completion >= 2.0" 2>/dev/null` 18808 test "x$?" != "x0" && pkg_failed=yes 18809else 18810 pkg_failed=yes 18811fi 18812 else 18813 pkg_failed=untried 18814fi 18815if test -n "$BASH_COMPLETION_LIBS"; then 18816 pkg_cv_BASH_COMPLETION_LIBS="$BASH_COMPLETION_LIBS" 18817 elif test -n "$PKG_CONFIG"; then 18818 if test -n "$PKG_CONFIG" && \ 18819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5 18820 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5 18821 ac_status=$? 18822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18823 test $ac_status = 0; }; then 18824 pkg_cv_BASH_COMPLETION_LIBS=`$PKG_CONFIG --libs "bash-completion >= 2.0" 2>/dev/null` 18825 test "x$?" != "x0" && pkg_failed=yes 18826else 18827 pkg_failed=yes 18828fi 18829 else 18830 pkg_failed=untried 18831fi 18832 18833 18834 18835if test $pkg_failed = yes; then 18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18837$as_echo "no" >&6; } 18838 18839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18840 _pkg_short_errors_supported=yes 18841else 18842 _pkg_short_errors_supported=no 18843fi 18844 if test $_pkg_short_errors_supported = yes; then 18845 BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1` 18846 else 18847 BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1` 18848 fi 18849 # Put the nasty error message in config.log where it belongs 18850 echo "$BASH_COMPLETION_PKG_ERRORS" >&5 18851 18852 18853 bash_completion=no 18854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bash-completion not installed" >&5 18855$as_echo "$as_me: WARNING: bash-completion not installed" >&2;} 18856 18857elif test $pkg_failed = untried; then 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18859$as_echo "no" >&6; } 18860 18861 bash_completion=no 18862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bash-completion not installed" >&5 18863$as_echo "$as_me: WARNING: bash-completion not installed" >&2;} 18864 18865else 18866 BASH_COMPLETION_CFLAGS=$pkg_cv_BASH_COMPLETION_CFLAGS 18867 BASH_COMPLETION_LIBS=$pkg_cv_BASH_COMPLETION_LIBS 18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18869$as_echo "yes" >&6; } 18870 18871 bash_completion=yes 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bash-completions directory" >&5 18873$as_echo_n "checking for bash-completions directory... " >&6; } 18874 18875 18876if test -n "$bashcompdir"; then 18877 pkg_cv_bashcompdir="$bashcompdir" 18878 elif test -n "$PKG_CONFIG"; then 18879 if test -n "$PKG_CONFIG" && \ 18880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion\""; } >&5 18881 ($PKG_CONFIG --exists --print-errors "bash-completion") 2>&5 18882 ac_status=$? 18883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18884 test $ac_status = 0; }; then 18885 pkg_cv_bashcompdir=`$PKG_CONFIG --variable="completionsdir" "bash-completion" 2>/dev/null` 18886 test "x$?" != "x0" && pkg_failed=yes 18887else 18888 pkg_failed=yes 18889fi 18890 else 18891 pkg_failed=untried 18892fi 18893bashcompdir=$pkg_cv_bashcompdir 18894 18895if test "x$bashcompdir" = x""; then : 18896 18897fi 18898 18899 if test -z "$bashcompdir"; then : 18900 18901 bashcompdir="${sysconfdir}/bash_completion.d" 18902 18903fi 18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bashcompdir" >&5 18905$as_echo "$bashcompdir" >&6; } 18906 18907 18908fi 18909 if test "x$bash_completion" = "xyes"; then 18910 HAVE_BASH_COMPLETION_TRUE= 18911 HAVE_BASH_COMPLETION_FALSE='#' 18912else 18913 HAVE_BASH_COMPLETION_TRUE='#' 18914 HAVE_BASH_COMPLETION_FALSE= 18915fi 18916 18917 18918# Extract the first word of "perl", so it can be a program name with args. 18919set dummy perl; ac_word=$2 18920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18921$as_echo_n "checking for $ac_word... " >&6; } 18922if ${ac_cv_prog_PERL+:} false; then : 18923 $as_echo_n "(cached) " >&6 18924else 18925 if test -n "$PERL"; then 18926 ac_cv_prog_PERL="$PERL" # Let the user override the test. 18927else 18928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18929for as_dir in $PATH 18930do 18931 IFS=$as_save_IFS 18932 test -z "$as_dir" && as_dir=. 18933 for ac_exec_ext in '' $ac_executable_extensions; do 18934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18935 ac_cv_prog_PERL="perl" 18936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18937 break 2 18938 fi 18939done 18940 done 18941IFS=$as_save_IFS 18942 18943 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="no" 18944fi 18945fi 18946PERL=$ac_cv_prog_PERL 18947if test -n "$PERL"; then 18948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18949$as_echo "$PERL" >&6; } 18950else 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18952$as_echo "no" >&6; } 18953fi 18954 18955 18956if test "x$PERL" != "xno"; then : 18957 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have perl Pod::Man and Pod::Simple" >&5 18959$as_echo_n "checking if we have perl Pod::Man and Pod::Simple... " >&6; } 18960 if $PERL -MPod::Man -MPod::Simple -e 1 >&5 2>&1; then : 18961 18962 enable_pod=yes 18963 18964else 18965 18966 enable_pod=no 18967 18968fi 18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pod" >&5 18970$as_echo "$enable_pod" >&6; } 18971 18972fi 18973 if test "x$PERL" != "xno" && test "x$enable_pod" = "xyes"; then 18974 HAVE_POD_TRUE= 18975 HAVE_POD_FALSE='#' 18976else 18977 HAVE_POD_TRUE='#' 18978 HAVE_POD_FALSE= 18979fi 18980 18981 18982PODWRAPPER="$PERL $(pwd)/podwrapper.pl" 18983 18984 18985# Check whether --enable-plugins was given. 18986if test "${enable_plugins+set}" = set; then : 18987 enableval=$enable_plugins; 18988fi 18989 18990 if test "x$enable_plugins" != "xno"; then 18991 HAVE_PLUGINS_TRUE= 18992 HAVE_PLUGINS_FALSE='#' 18993else 18994 HAVE_PLUGINS_TRUE='#' 18995 HAVE_PLUGINS_FALSE= 18996fi 18997 18998 18999# Check whether --enable-perl was given. 19000if test "${enable_perl+set}" = set; then : 19001 enableval=$enable_perl; 19002else 19003 enable_perl=yes 19004fi 19005 19006if test "x$PERL" != "xno" && test "x$enable_perl" != "xno"; then : 19007 19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl embed archlib" >&5 19009$as_echo_n "checking for Perl embed archlib... " >&6; } 19010 PERL_ARCHLIB="$($PERL -MConfig -e 'print $Config{archlib}')" 19011 if test -n "$PERL_ARCHLIB" ; then : 19012 19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_ARCHLIB" >&5 19014$as_echo "$PERL_ARCHLIB" >&6; } 19015 19016else 19017 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: Perl embed module disabled" >&5 19019$as_echo "$as_me: Perl embed module disabled" >&6;} 19020 enable_perl=no 19021 19022fi 19023 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl embed CFLAGS" >&5 19025$as_echo_n "checking for Perl embed CFLAGS... " >&6; } 19026 PERL_CFLAGS="$($PERL -MExtUtils::Embed -e 'ccflags')" 19027 if test -n "$PERL_CFLAGS" ; then : 19028 19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_CFLAGS" >&5 19030$as_echo "$PERL_CFLAGS" >&6; } 19031 19032else 19033 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: Perl embed module disabled" >&5 19035$as_echo "$as_me: Perl embed module disabled" >&6;} 19036 enable_perl=no 19037 19038fi 19039 19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl embed LDOPTS" >&5 19041$as_echo_n "checking for Perl embed LDOPTS... " >&6; } 19042 PERL_LDOPTS="$($PERL -MExtUtils::Embed -e 'ldopts')" 19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_LDOPTS" >&5 19044$as_echo "$PERL_LDOPTS" >&6; } 19045 19046 19047fi 19048 if test "x$enable_perl" != "xno" && test "x$PERL" != "xno"; then 19049 HAVE_PERL_TRUE= 19050 HAVE_PERL_FALSE='#' 19051else 19052 HAVE_PERL_TRUE='#' 19053 HAVE_PERL_FALSE= 19054fi 19055 19056 19057 19058 19059 19060for ac_prog in python3 python 19061do 19062 # Extract the first word of "$ac_prog", so it can be a program name with args. 19063set dummy $ac_prog; ac_word=$2 19064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19065$as_echo_n "checking for $ac_word... " >&6; } 19066if ${ac_cv_path_PYTHON+:} false; then : 19067 $as_echo_n "(cached) " >&6 19068else 19069 case $PYTHON in 19070 [\\/]* | ?:[\\/]*) 19071 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 19072 ;; 19073 *) 19074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19075for as_dir in $PATH 19076do 19077 IFS=$as_save_IFS 19078 test -z "$as_dir" && as_dir=. 19079 for ac_exec_ext in '' $ac_executable_extensions; do 19080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19081 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 19082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19083 break 2 19084 fi 19085done 19086 done 19087IFS=$as_save_IFS 19088 19089 ;; 19090esac 19091fi 19092PYTHON=$ac_cv_path_PYTHON 19093if test -n "$PYTHON"; then 19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 19095$as_echo "$PYTHON" >&6; } 19096else 19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19098$as_echo "no" >&6; } 19099fi 19100 19101 19102 test -n "$PYTHON" && break 19103done 19104test -n "$PYTHON" || PYTHON="no" 19105 19106# Check whether --enable-python was given. 19107if test "${enable_python+set}" = set; then : 19108 enableval=$enable_python; 19109else 19110 enable_python=yes 19111fi 19112 19113if test "x$PYTHON" != "xno" && test "x$enable_python" != "xno"; then : 19114 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON" >&5 19116$as_echo_n "checking version of $PYTHON... " >&6; } 19117 PYTHON_VERSION_MAJOR=`$PYTHON -c "import sys; print (sys.version_info[0])"` 19118 PYTHON_VERSION_MINOR=`$PYTHON -c "import sys; print (sys.version_info[1])"` 19119 PYTHON_VERSION="$PYTHON_VERSION_MAJOR.$PYTHON_VERSION_MINOR" 19120 if test -n "$PYTHON_VERSION"; then : 19121 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5 19123$as_echo "$PYTHON_VERSION" >&6; } 19124 19125else 19126 19127 { $as_echo "$as_me:${as_lineno-$LINENO}: Python embed module disabled" >&5 19128$as_echo "$as_me: Python embed module disabled" >&6;} 19129 enable_python=no 19130 19131fi 19132 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python major version is 3" >&5 19134$as_echo_n "checking Python major version is 3... " >&6; } 19135 if test "x$PYTHON_VERSION_MAJOR" = "x3"; then : 19136 19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19138$as_echo "yes" >&6; } 19139 19140else 19141 19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19143$as_echo "no" >&6; } 19144 as_fn_error $? "Python $PYTHON_VERSION_MAJOR <> 3 is no longer supported. 19145 19146Python 2 end of life is 2020-01-01 and nbdkit >= 1.16 no longer 19147supports it. 19148 19149If you want to use Python 2, you will need to use nbdkit 1.14." "$LINENO" 5 19150 19151fi 19152 19153 19154pkg_failed=no 19155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 19156$as_echo_n "checking for PYTHON... " >&6; } 19157 19158if test -n "$PYTHON_CFLAGS"; then 19159 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 19160 elif test -n "$PKG_CONFIG"; then 19161 if test -n "$PKG_CONFIG" && \ 19162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"-embed\""; } >&5 19163 ($PKG_CONFIG --exists --print-errors "python-"$PYTHON_VERSION"-embed") 2>&5 19164 ac_status=$? 19165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19166 test $ac_status = 0; }; then 19167 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-"$PYTHON_VERSION"-embed" 2>/dev/null` 19168 test "x$?" != "x0" && pkg_failed=yes 19169else 19170 pkg_failed=yes 19171fi 19172 else 19173 pkg_failed=untried 19174fi 19175if test -n "$PYTHON_LIBS"; then 19176 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 19177 elif test -n "$PKG_CONFIG"; then 19178 if test -n "$PKG_CONFIG" && \ 19179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"-embed\""; } >&5 19180 ($PKG_CONFIG --exists --print-errors "python-"$PYTHON_VERSION"-embed") 2>&5 19181 ac_status=$? 19182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19183 test $ac_status = 0; }; then 19184 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-"$PYTHON_VERSION"-embed" 2>/dev/null` 19185 test "x$?" != "x0" && pkg_failed=yes 19186else 19187 pkg_failed=yes 19188fi 19189 else 19190 pkg_failed=untried 19191fi 19192 19193 19194 19195if test $pkg_failed = yes; then 19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19197$as_echo "no" >&6; } 19198 19199if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19200 _pkg_short_errors_supported=yes 19201else 19202 _pkg_short_errors_supported=no 19203fi 19204 if test $_pkg_short_errors_supported = yes; then 19205 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-"$PYTHON_VERSION"-embed" 2>&1` 19206 else 19207 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-"$PYTHON_VERSION"-embed" 2>&1` 19208 fi 19209 # Put the nasty error message in config.log where it belongs 19210 echo "$PYTHON_PKG_ERRORS" >&5 19211 19212 19213 19214pkg_failed=no 19215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 19216$as_echo_n "checking for PYTHON... " >&6; } 19217 19218if test -n "$PYTHON_CFLAGS"; then 19219 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 19220 elif test -n "$PKG_CONFIG"; then 19221 if test -n "$PKG_CONFIG" && \ 19222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"\""; } >&5 19223 ($PKG_CONFIG --exists --print-errors "python-"$PYTHON_VERSION"") 2>&5 19224 ac_status=$? 19225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19226 test $ac_status = 0; }; then 19227 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-"$PYTHON_VERSION"" 2>/dev/null` 19228 test "x$?" != "x0" && pkg_failed=yes 19229else 19230 pkg_failed=yes 19231fi 19232 else 19233 pkg_failed=untried 19234fi 19235if test -n "$PYTHON_LIBS"; then 19236 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 19237 elif test -n "$PKG_CONFIG"; then 19238 if test -n "$PKG_CONFIG" && \ 19239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"\""; } >&5 19240 ($PKG_CONFIG --exists --print-errors "python-"$PYTHON_VERSION"") 2>&5 19241 ac_status=$? 19242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19243 test $ac_status = 0; }; then 19244 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-"$PYTHON_VERSION"" 2>/dev/null` 19245 test "x$?" != "x0" && pkg_failed=yes 19246else 19247 pkg_failed=yes 19248fi 19249 else 19250 pkg_failed=untried 19251fi 19252 19253 19254 19255if test $pkg_failed = yes; then 19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19257$as_echo "no" >&6; } 19258 19259if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19260 _pkg_short_errors_supported=yes 19261else 19262 _pkg_short_errors_supported=no 19263fi 19264 if test $_pkg_short_errors_supported = yes; then 19265 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-"$PYTHON_VERSION"" 2>&1` 19266 else 19267 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-"$PYTHON_VERSION"" 2>&1` 19268 fi 19269 # Put the nasty error message in config.log where it belongs 19270 echo "$PYTHON_PKG_ERRORS" >&5 19271 19272 19273 19274pkg_failed=no 19275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 19276$as_echo_n "checking for PYTHON... " >&6; } 19277 19278if test -n "$PYTHON_CFLAGS"; then 19279 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 19280 elif test -n "$PKG_CONFIG"; then 19281 if test -n "$PKG_CONFIG" && \ 19282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 19283 ($PKG_CONFIG --exists --print-errors "python") 2>&5 19284 ac_status=$? 19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19286 test $ac_status = 0; }; then 19287 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null` 19288 test "x$?" != "x0" && pkg_failed=yes 19289else 19290 pkg_failed=yes 19291fi 19292 else 19293 pkg_failed=untried 19294fi 19295if test -n "$PYTHON_LIBS"; then 19296 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 19297 elif test -n "$PKG_CONFIG"; then 19298 if test -n "$PKG_CONFIG" && \ 19299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 19300 ($PKG_CONFIG --exists --print-errors "python") 2>&5 19301 ac_status=$? 19302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19303 test $ac_status = 0; }; then 19304 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null` 19305 test "x$?" != "x0" && pkg_failed=yes 19306else 19307 pkg_failed=yes 19308fi 19309 else 19310 pkg_failed=untried 19311fi 19312 19313 19314 19315if test $pkg_failed = yes; then 19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19317$as_echo "no" >&6; } 19318 19319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19320 _pkg_short_errors_supported=yes 19321else 19322 _pkg_short_errors_supported=no 19323fi 19324 if test $_pkg_short_errors_supported = yes; then 19325 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python" 2>&1` 19326 else 19327 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python" 2>&1` 19328 fi 19329 # Put the nasty error message in config.log where it belongs 19330 echo "$PYTHON_PKG_ERRORS" >&5 19331 19332 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5 19334$as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;} 19335 enable_python=no 19336 19337elif test $pkg_failed = untried; then 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19339$as_echo "no" >&6; } 19340 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5 19342$as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;} 19343 enable_python=no 19344 19345else 19346 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 19347 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19349$as_echo "yes" >&6; } 19350 19351 19352 19353 19354 19355$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 19356 19357 19358fi 19359elif test $pkg_failed = untried; then 19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19361$as_echo "no" >&6; } 19362 19363 19364pkg_failed=no 19365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 19366$as_echo_n "checking for PYTHON... " >&6; } 19367 19368if test -n "$PYTHON_CFLAGS"; then 19369 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 19370 elif test -n "$PKG_CONFIG"; then 19371 if test -n "$PKG_CONFIG" && \ 19372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 19373 ($PKG_CONFIG --exists --print-errors "python") 2>&5 19374 ac_status=$? 19375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19376 test $ac_status = 0; }; then 19377 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null` 19378 test "x$?" != "x0" && pkg_failed=yes 19379else 19380 pkg_failed=yes 19381fi 19382 else 19383 pkg_failed=untried 19384fi 19385if test -n "$PYTHON_LIBS"; then 19386 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 19387 elif test -n "$PKG_CONFIG"; then 19388 if test -n "$PKG_CONFIG" && \ 19389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 19390 ($PKG_CONFIG --exists --print-errors "python") 2>&5 19391 ac_status=$? 19392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19393 test $ac_status = 0; }; then 19394 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null` 19395 test "x$?" != "x0" && pkg_failed=yes 19396else 19397 pkg_failed=yes 19398fi 19399 else 19400 pkg_failed=untried 19401fi 19402 19403 19404 19405if test $pkg_failed = yes; then 19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19407$as_echo "no" >&6; } 19408 19409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19410 _pkg_short_errors_supported=yes 19411else 19412 _pkg_short_errors_supported=no 19413fi 19414 if test $_pkg_short_errors_supported = yes; then 19415 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python" 2>&1` 19416 else 19417 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python" 2>&1` 19418 fi 19419 # Put the nasty error message in config.log where it belongs 19420 echo "$PYTHON_PKG_ERRORS" >&5 19421 19422 19423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5 19424$as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;} 19425 enable_python=no 19426 19427elif test $pkg_failed = untried; then 19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19429$as_echo "no" >&6; } 19430 19431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5 19432$as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;} 19433 enable_python=no 19434 19435else 19436 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 19437 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19439$as_echo "yes" >&6; } 19440 19441 19442 19443 19444 19445$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 19446 19447 19448fi 19449else 19450 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 19451 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19453$as_echo "yes" >&6; } 19454 19455 19456 19457 19458 19459$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 19460 19461 19462fi 19463elif test $pkg_failed = untried; then 19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19465$as_echo "no" >&6; } 19466 19467 19468pkg_failed=no 19469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 19470$as_echo_n "checking for PYTHON... " >&6; } 19471 19472if test -n "$PYTHON_CFLAGS"; then 19473 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 19474 elif test -n "$PKG_CONFIG"; then 19475 if test -n "$PKG_CONFIG" && \ 19476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"\""; } >&5 19477 ($PKG_CONFIG --exists --print-errors "python-"$PYTHON_VERSION"") 2>&5 19478 ac_status=$? 19479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19480 test $ac_status = 0; }; then 19481 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-"$PYTHON_VERSION"" 2>/dev/null` 19482 test "x$?" != "x0" && pkg_failed=yes 19483else 19484 pkg_failed=yes 19485fi 19486 else 19487 pkg_failed=untried 19488fi 19489if test -n "$PYTHON_LIBS"; then 19490 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 19491 elif test -n "$PKG_CONFIG"; then 19492 if test -n "$PKG_CONFIG" && \ 19493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"\""; } >&5 19494 ($PKG_CONFIG --exists --print-errors "python-"$PYTHON_VERSION"") 2>&5 19495 ac_status=$? 19496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19497 test $ac_status = 0; }; then 19498 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-"$PYTHON_VERSION"" 2>/dev/null` 19499 test "x$?" != "x0" && pkg_failed=yes 19500else 19501 pkg_failed=yes 19502fi 19503 else 19504 pkg_failed=untried 19505fi 19506 19507 19508 19509if test $pkg_failed = yes; then 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19511$as_echo "no" >&6; } 19512 19513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19514 _pkg_short_errors_supported=yes 19515else 19516 _pkg_short_errors_supported=no 19517fi 19518 if test $_pkg_short_errors_supported = yes; then 19519 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-"$PYTHON_VERSION"" 2>&1` 19520 else 19521 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-"$PYTHON_VERSION"" 2>&1` 19522 fi 19523 # Put the nasty error message in config.log where it belongs 19524 echo "$PYTHON_PKG_ERRORS" >&5 19525 19526 19527 19528pkg_failed=no 19529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 19530$as_echo_n "checking for PYTHON... " >&6; } 19531 19532if test -n "$PYTHON_CFLAGS"; then 19533 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 19534 elif test -n "$PKG_CONFIG"; then 19535 if test -n "$PKG_CONFIG" && \ 19536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 19537 ($PKG_CONFIG --exists --print-errors "python") 2>&5 19538 ac_status=$? 19539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19540 test $ac_status = 0; }; then 19541 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null` 19542 test "x$?" != "x0" && pkg_failed=yes 19543else 19544 pkg_failed=yes 19545fi 19546 else 19547 pkg_failed=untried 19548fi 19549if test -n "$PYTHON_LIBS"; then 19550 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 19551 elif test -n "$PKG_CONFIG"; then 19552 if test -n "$PKG_CONFIG" && \ 19553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 19554 ($PKG_CONFIG --exists --print-errors "python") 2>&5 19555 ac_status=$? 19556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19557 test $ac_status = 0; }; then 19558 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null` 19559 test "x$?" != "x0" && pkg_failed=yes 19560else 19561 pkg_failed=yes 19562fi 19563 else 19564 pkg_failed=untried 19565fi 19566 19567 19568 19569if test $pkg_failed = yes; then 19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19571$as_echo "no" >&6; } 19572 19573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19574 _pkg_short_errors_supported=yes 19575else 19576 _pkg_short_errors_supported=no 19577fi 19578 if test $_pkg_short_errors_supported = yes; then 19579 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python" 2>&1` 19580 else 19581 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python" 2>&1` 19582 fi 19583 # Put the nasty error message in config.log where it belongs 19584 echo "$PYTHON_PKG_ERRORS" >&5 19585 19586 19587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5 19588$as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;} 19589 enable_python=no 19590 19591elif test $pkg_failed = untried; then 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19593$as_echo "no" >&6; } 19594 19595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5 19596$as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;} 19597 enable_python=no 19598 19599else 19600 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 19601 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19603$as_echo "yes" >&6; } 19604 19605 19606 19607 19608 19609$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 19610 19611 19612fi 19613elif test $pkg_failed = untried; then 19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19615$as_echo "no" >&6; } 19616 19617 19618pkg_failed=no 19619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 19620$as_echo_n "checking for PYTHON... " >&6; } 19621 19622if test -n "$PYTHON_CFLAGS"; then 19623 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 19624 elif test -n "$PKG_CONFIG"; then 19625 if test -n "$PKG_CONFIG" && \ 19626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 19627 ($PKG_CONFIG --exists --print-errors "python") 2>&5 19628 ac_status=$? 19629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19630 test $ac_status = 0; }; then 19631 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null` 19632 test "x$?" != "x0" && pkg_failed=yes 19633else 19634 pkg_failed=yes 19635fi 19636 else 19637 pkg_failed=untried 19638fi 19639if test -n "$PYTHON_LIBS"; then 19640 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 19641 elif test -n "$PKG_CONFIG"; then 19642 if test -n "$PKG_CONFIG" && \ 19643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 19644 ($PKG_CONFIG --exists --print-errors "python") 2>&5 19645 ac_status=$? 19646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19647 test $ac_status = 0; }; then 19648 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null` 19649 test "x$?" != "x0" && pkg_failed=yes 19650else 19651 pkg_failed=yes 19652fi 19653 else 19654 pkg_failed=untried 19655fi 19656 19657 19658 19659if test $pkg_failed = yes; then 19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19661$as_echo "no" >&6; } 19662 19663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19664 _pkg_short_errors_supported=yes 19665else 19666 _pkg_short_errors_supported=no 19667fi 19668 if test $_pkg_short_errors_supported = yes; then 19669 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python" 2>&1` 19670 else 19671 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python" 2>&1` 19672 fi 19673 # Put the nasty error message in config.log where it belongs 19674 echo "$PYTHON_PKG_ERRORS" >&5 19675 19676 19677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5 19678$as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;} 19679 enable_python=no 19680 19681elif test $pkg_failed = untried; then 19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19683$as_echo "no" >&6; } 19684 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5 19686$as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;} 19687 enable_python=no 19688 19689else 19690 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 19691 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19693$as_echo "yes" >&6; } 19694 19695 19696 19697 19698 19699$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 19700 19701 19702fi 19703else 19704 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 19705 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19707$as_echo "yes" >&6; } 19708 19709 19710 19711 19712 19713$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 19714 19715 19716fi 19717else 19718 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 19719 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19721$as_echo "yes" >&6; } 19722 19723 19724 19725 19726 19727$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 19728 19729 19730fi 19731 19732fi 19733 if test "x$enable_python" != "xno" && test "x$PYTHON" != "xno"; then 19734 HAVE_PYTHON_TRUE= 19735 HAVE_PYTHON_FALSE='#' 19736else 19737 HAVE_PYTHON_TRUE='#' 19738 HAVE_PYTHON_FALSE= 19739fi 19740 19741 19742 19743 19744 19745 19746 19747 # checking for ocamlc 19748 if test -n "$ac_tool_prefix"; then 19749 # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args. 19750set dummy ${ac_tool_prefix}ocamlc; ac_word=$2 19751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19752$as_echo_n "checking for $ac_word... " >&6; } 19753if ${ac_cv_prog_OCAMLC+:} false; then : 19754 $as_echo_n "(cached) " >&6 19755else 19756 if test -n "$OCAMLC"; then 19757 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test. 19758else 19759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19760for as_dir in $PATH 19761do 19762 IFS=$as_save_IFS 19763 test -z "$as_dir" && as_dir=. 19764 for ac_exec_ext in '' $ac_executable_extensions; do 19765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19766 ac_cv_prog_OCAMLC="${ac_tool_prefix}ocamlc" 19767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19768 break 2 19769 fi 19770done 19771 done 19772IFS=$as_save_IFS 19773 19774fi 19775fi 19776OCAMLC=$ac_cv_prog_OCAMLC 19777if test -n "$OCAMLC"; then 19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5 19779$as_echo "$OCAMLC" >&6; } 19780else 19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19782$as_echo "no" >&6; } 19783fi 19784 19785 19786fi 19787if test -z "$ac_cv_prog_OCAMLC"; then 19788 ac_ct_OCAMLC=$OCAMLC 19789 # Extract the first word of "ocamlc", so it can be a program name with args. 19790set dummy ocamlc; ac_word=$2 19791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19792$as_echo_n "checking for $ac_word... " >&6; } 19793if ${ac_cv_prog_ac_ct_OCAMLC+:} false; then : 19794 $as_echo_n "(cached) " >&6 19795else 19796 if test -n "$ac_ct_OCAMLC"; then 19797 ac_cv_prog_ac_ct_OCAMLC="$ac_ct_OCAMLC" # Let the user override the test. 19798else 19799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19800for as_dir in $PATH 19801do 19802 IFS=$as_save_IFS 19803 test -z "$as_dir" && as_dir=. 19804 for ac_exec_ext in '' $ac_executable_extensions; do 19805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19806 ac_cv_prog_ac_ct_OCAMLC="ocamlc" 19807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19808 break 2 19809 fi 19810done 19811 done 19812IFS=$as_save_IFS 19813 19814fi 19815fi 19816ac_ct_OCAMLC=$ac_cv_prog_ac_ct_OCAMLC 19817if test -n "$ac_ct_OCAMLC"; then 19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLC" >&5 19819$as_echo "$ac_ct_OCAMLC" >&6; } 19820else 19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19822$as_echo "no" >&6; } 19823fi 19824 19825 if test "x$ac_ct_OCAMLC" = x; then 19826 OCAMLC="no" 19827 else 19828 case $cross_compiling:$ac_tool_warned in 19829yes:) 19830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19832ac_tool_warned=yes ;; 19833esac 19834 OCAMLC=$ac_ct_OCAMLC 19835 fi 19836else 19837 OCAMLC="$ac_cv_prog_OCAMLC" 19838fi 19839 19840 19841 if test "$OCAMLC" != "no"; then 19842 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'` 19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5 19844$as_echo "OCaml version is $OCAMLVERSION" >&6; } 19845 # If OCAMLLIB is set, use it 19846 if test "$OCAMLLIB" = ""; then 19847 OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4` 19848 else 19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5 19850$as_echo "OCAMLLIB previously set; preserving it." >&6; } 19851 fi 19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5 19853$as_echo "OCaml library path is $OCAMLLIB" >&6; } 19854 19855 19856 19857 19858 # checking for ocamlopt 19859 if test -n "$ac_tool_prefix"; then 19860 # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args. 19861set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2 19862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19863$as_echo_n "checking for $ac_word... " >&6; } 19864if ${ac_cv_prog_OCAMLOPT+:} false; then : 19865 $as_echo_n "(cached) " >&6 19866else 19867 if test -n "$OCAMLOPT"; then 19868 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test. 19869else 19870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19871for as_dir in $PATH 19872do 19873 IFS=$as_save_IFS 19874 test -z "$as_dir" && as_dir=. 19875 for ac_exec_ext in '' $ac_executable_extensions; do 19876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19877 ac_cv_prog_OCAMLOPT="${ac_tool_prefix}ocamlopt" 19878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19879 break 2 19880 fi 19881done 19882 done 19883IFS=$as_save_IFS 19884 19885fi 19886fi 19887OCAMLOPT=$ac_cv_prog_OCAMLOPT 19888if test -n "$OCAMLOPT"; then 19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5 19890$as_echo "$OCAMLOPT" >&6; } 19891else 19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19893$as_echo "no" >&6; } 19894fi 19895 19896 19897fi 19898if test -z "$ac_cv_prog_OCAMLOPT"; then 19899 ac_ct_OCAMLOPT=$OCAMLOPT 19900 # Extract the first word of "ocamlopt", so it can be a program name with args. 19901set dummy ocamlopt; ac_word=$2 19902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19903$as_echo_n "checking for $ac_word... " >&6; } 19904if ${ac_cv_prog_ac_ct_OCAMLOPT+:} false; then : 19905 $as_echo_n "(cached) " >&6 19906else 19907 if test -n "$ac_ct_OCAMLOPT"; then 19908 ac_cv_prog_ac_ct_OCAMLOPT="$ac_ct_OCAMLOPT" # Let the user override the test. 19909else 19910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19911for as_dir in $PATH 19912do 19913 IFS=$as_save_IFS 19914 test -z "$as_dir" && as_dir=. 19915 for ac_exec_ext in '' $ac_executable_extensions; do 19916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19917 ac_cv_prog_ac_ct_OCAMLOPT="ocamlopt" 19918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19919 break 2 19920 fi 19921done 19922 done 19923IFS=$as_save_IFS 19924 19925fi 19926fi 19927ac_ct_OCAMLOPT=$ac_cv_prog_ac_ct_OCAMLOPT 19928if test -n "$ac_ct_OCAMLOPT"; then 19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPT" >&5 19930$as_echo "$ac_ct_OCAMLOPT" >&6; } 19931else 19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19933$as_echo "no" >&6; } 19934fi 19935 19936 if test "x$ac_ct_OCAMLOPT" = x; then 19937 OCAMLOPT="no" 19938 else 19939 case $cross_compiling:$ac_tool_warned in 19940yes:) 19941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19943ac_tool_warned=yes ;; 19944esac 19945 OCAMLOPT=$ac_ct_OCAMLOPT 19946 fi 19947else 19948 OCAMLOPT="$ac_cv_prog_OCAMLOPT" 19949fi 19950 19951 OCAMLBEST=byte 19952 if test "$OCAMLOPT" = "no"; then 19953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5 19954$as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;} 19955 else 19956 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` 19957 if test "$TMPVERSION" != "$OCAMLVERSION" ; then 19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5 19959$as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; } 19960 OCAMLOPT=no 19961 else 19962 OCAMLBEST=opt 19963 fi 19964 fi 19965 19966 19967 19968 # checking for ocamlc.opt 19969 if test -n "$ac_tool_prefix"; then 19970 # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args. 19971set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2 19972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19973$as_echo_n "checking for $ac_word... " >&6; } 19974if ${ac_cv_prog_OCAMLCDOTOPT+:} false; then : 19975 $as_echo_n "(cached) " >&6 19976else 19977 if test -n "$OCAMLCDOTOPT"; then 19978 ac_cv_prog_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test. 19979else 19980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19981for as_dir in $PATH 19982do 19983 IFS=$as_save_IFS 19984 test -z "$as_dir" && as_dir=. 19985 for ac_exec_ext in '' $ac_executable_extensions; do 19986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19987 ac_cv_prog_OCAMLCDOTOPT="${ac_tool_prefix}ocamlc.opt" 19988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19989 break 2 19990 fi 19991done 19992 done 19993IFS=$as_save_IFS 19994 19995fi 19996fi 19997OCAMLCDOTOPT=$ac_cv_prog_OCAMLCDOTOPT 19998if test -n "$OCAMLCDOTOPT"; then 19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5 20000$as_echo "$OCAMLCDOTOPT" >&6; } 20001else 20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20003$as_echo "no" >&6; } 20004fi 20005 20006 20007fi 20008if test -z "$ac_cv_prog_OCAMLCDOTOPT"; then 20009 ac_ct_OCAMLCDOTOPT=$OCAMLCDOTOPT 20010 # Extract the first word of "ocamlc.opt", so it can be a program name with args. 20011set dummy ocamlc.opt; ac_word=$2 20012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20013$as_echo_n "checking for $ac_word... " >&6; } 20014if ${ac_cv_prog_ac_ct_OCAMLCDOTOPT+:} false; then : 20015 $as_echo_n "(cached) " >&6 20016else 20017 if test -n "$ac_ct_OCAMLCDOTOPT"; then 20018 ac_cv_prog_ac_ct_OCAMLCDOTOPT="$ac_ct_OCAMLCDOTOPT" # Let the user override the test. 20019else 20020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20021for as_dir in $PATH 20022do 20023 IFS=$as_save_IFS 20024 test -z "$as_dir" && as_dir=. 20025 for ac_exec_ext in '' $ac_executable_extensions; do 20026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20027 ac_cv_prog_ac_ct_OCAMLCDOTOPT="ocamlc.opt" 20028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20029 break 2 20030 fi 20031done 20032 done 20033IFS=$as_save_IFS 20034 20035fi 20036fi 20037ac_ct_OCAMLCDOTOPT=$ac_cv_prog_ac_ct_OCAMLCDOTOPT 20038if test -n "$ac_ct_OCAMLCDOTOPT"; then 20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLCDOTOPT" >&5 20040$as_echo "$ac_ct_OCAMLCDOTOPT" >&6; } 20041else 20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20043$as_echo "no" >&6; } 20044fi 20045 20046 if test "x$ac_ct_OCAMLCDOTOPT" = x; then 20047 OCAMLCDOTOPT="no" 20048 else 20049 case $cross_compiling:$ac_tool_warned in 20050yes:) 20051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20053ac_tool_warned=yes ;; 20054esac 20055 OCAMLCDOTOPT=$ac_ct_OCAMLCDOTOPT 20056 fi 20057else 20058 OCAMLCDOTOPT="$ac_cv_prog_OCAMLCDOTOPT" 20059fi 20060 20061 if test "$OCAMLCDOTOPT" != "no"; then 20062 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` 20063 if test "$TMPVERSION" != "$OCAMLVERSION" ; then 20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5 20065$as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; } 20066 else 20067 OCAMLC=$OCAMLCDOTOPT 20068 fi 20069 fi 20070 20071 # checking for ocamlopt.opt 20072 if test "$OCAMLOPT" != "no" ; then 20073 if test -n "$ac_tool_prefix"; then 20074 # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args. 20075set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2 20076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20077$as_echo_n "checking for $ac_word... " >&6; } 20078if ${ac_cv_prog_OCAMLOPTDOTOPT+:} false; then : 20079 $as_echo_n "(cached) " >&6 20080else 20081 if test -n "$OCAMLOPTDOTOPT"; then 20082 ac_cv_prog_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test. 20083else 20084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20085for as_dir in $PATH 20086do 20087 IFS=$as_save_IFS 20088 test -z "$as_dir" && as_dir=. 20089 for ac_exec_ext in '' $ac_executable_extensions; do 20090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20091 ac_cv_prog_OCAMLOPTDOTOPT="${ac_tool_prefix}ocamlopt.opt" 20092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20093 break 2 20094 fi 20095done 20096 done 20097IFS=$as_save_IFS 20098 20099fi 20100fi 20101OCAMLOPTDOTOPT=$ac_cv_prog_OCAMLOPTDOTOPT 20102if test -n "$OCAMLOPTDOTOPT"; then 20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5 20104$as_echo "$OCAMLOPTDOTOPT" >&6; } 20105else 20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20107$as_echo "no" >&6; } 20108fi 20109 20110 20111fi 20112if test -z "$ac_cv_prog_OCAMLOPTDOTOPT"; then 20113 ac_ct_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT 20114 # Extract the first word of "ocamlopt.opt", so it can be a program name with args. 20115set dummy ocamlopt.opt; ac_word=$2 20116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20117$as_echo_n "checking for $ac_word... " >&6; } 20118if ${ac_cv_prog_ac_ct_OCAMLOPTDOTOPT+:} false; then : 20119 $as_echo_n "(cached) " >&6 20120else 20121 if test -n "$ac_ct_OCAMLOPTDOTOPT"; then 20122 ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="$ac_ct_OCAMLOPTDOTOPT" # Let the user override the test. 20123else 20124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20125for as_dir in $PATH 20126do 20127 IFS=$as_save_IFS 20128 test -z "$as_dir" && as_dir=. 20129 for ac_exec_ext in '' $ac_executable_extensions; do 20130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20131 ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="ocamlopt.opt" 20132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20133 break 2 20134 fi 20135done 20136 done 20137IFS=$as_save_IFS 20138 20139fi 20140fi 20141ac_ct_OCAMLOPTDOTOPT=$ac_cv_prog_ac_ct_OCAMLOPTDOTOPT 20142if test -n "$ac_ct_OCAMLOPTDOTOPT"; then 20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPTDOTOPT" >&5 20144$as_echo "$ac_ct_OCAMLOPTDOTOPT" >&6; } 20145else 20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20147$as_echo "no" >&6; } 20148fi 20149 20150 if test "x$ac_ct_OCAMLOPTDOTOPT" = x; then 20151 OCAMLOPTDOTOPT="no" 20152 else 20153 case $cross_compiling:$ac_tool_warned in 20154yes:) 20155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20157ac_tool_warned=yes ;; 20158esac 20159 OCAMLOPTDOTOPT=$ac_ct_OCAMLOPTDOTOPT 20160 fi 20161else 20162 OCAMLOPTDOTOPT="$ac_cv_prog_OCAMLOPTDOTOPT" 20163fi 20164 20165 if test "$OCAMLOPTDOTOPT" != "no"; then 20166 TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` 20167 if test "$TMPVERSION" != "$OCAMLVERSION" ; then 20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5 20169$as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; } 20170 else 20171 OCAMLOPT=$OCAMLOPTDOTOPT 20172 fi 20173 fi 20174 fi 20175 20176 20177 fi 20178 20179 20180 20181 # checking for ocaml toplevel 20182 if test -n "$ac_tool_prefix"; then 20183 # Extract the first word of "${ac_tool_prefix}ocaml", so it can be a program name with args. 20184set dummy ${ac_tool_prefix}ocaml; ac_word=$2 20185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20186$as_echo_n "checking for $ac_word... " >&6; } 20187if ${ac_cv_prog_OCAML+:} false; then : 20188 $as_echo_n "(cached) " >&6 20189else 20190 if test -n "$OCAML"; then 20191 ac_cv_prog_OCAML="$OCAML" # Let the user override the test. 20192else 20193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20194for as_dir in $PATH 20195do 20196 IFS=$as_save_IFS 20197 test -z "$as_dir" && as_dir=. 20198 for ac_exec_ext in '' $ac_executable_extensions; do 20199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20200 ac_cv_prog_OCAML="${ac_tool_prefix}ocaml" 20201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20202 break 2 20203 fi 20204done 20205 done 20206IFS=$as_save_IFS 20207 20208fi 20209fi 20210OCAML=$ac_cv_prog_OCAML 20211if test -n "$OCAML"; then 20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5 20213$as_echo "$OCAML" >&6; } 20214else 20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20216$as_echo "no" >&6; } 20217fi 20218 20219 20220fi 20221if test -z "$ac_cv_prog_OCAML"; then 20222 ac_ct_OCAML=$OCAML 20223 # Extract the first word of "ocaml", so it can be a program name with args. 20224set dummy ocaml; ac_word=$2 20225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20226$as_echo_n "checking for $ac_word... " >&6; } 20227if ${ac_cv_prog_ac_ct_OCAML+:} false; then : 20228 $as_echo_n "(cached) " >&6 20229else 20230 if test -n "$ac_ct_OCAML"; then 20231 ac_cv_prog_ac_ct_OCAML="$ac_ct_OCAML" # Let the user override the test. 20232else 20233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20234for as_dir in $PATH 20235do 20236 IFS=$as_save_IFS 20237 test -z "$as_dir" && as_dir=. 20238 for ac_exec_ext in '' $ac_executable_extensions; do 20239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20240 ac_cv_prog_ac_ct_OCAML="ocaml" 20241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20242 break 2 20243 fi 20244done 20245 done 20246IFS=$as_save_IFS 20247 20248fi 20249fi 20250ac_ct_OCAML=$ac_cv_prog_ac_ct_OCAML 20251if test -n "$ac_ct_OCAML"; then 20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAML" >&5 20253$as_echo "$ac_ct_OCAML" >&6; } 20254else 20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20256$as_echo "no" >&6; } 20257fi 20258 20259 if test "x$ac_ct_OCAML" = x; then 20260 OCAML="no" 20261 else 20262 case $cross_compiling:$ac_tool_warned in 20263yes:) 20264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20266ac_tool_warned=yes ;; 20267esac 20268 OCAML=$ac_ct_OCAML 20269 fi 20270else 20271 OCAML="$ac_cv_prog_OCAML" 20272fi 20273 20274 20275 # checking for ocamldep 20276 if test -n "$ac_tool_prefix"; then 20277 # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args. 20278set dummy ${ac_tool_prefix}ocamldep; ac_word=$2 20279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20280$as_echo_n "checking for $ac_word... " >&6; } 20281if ${ac_cv_prog_OCAMLDEP+:} false; then : 20282 $as_echo_n "(cached) " >&6 20283else 20284 if test -n "$OCAMLDEP"; then 20285 ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test. 20286else 20287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20288for as_dir in $PATH 20289do 20290 IFS=$as_save_IFS 20291 test -z "$as_dir" && as_dir=. 20292 for ac_exec_ext in '' $ac_executable_extensions; do 20293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20294 ac_cv_prog_OCAMLDEP="${ac_tool_prefix}ocamldep" 20295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20296 break 2 20297 fi 20298done 20299 done 20300IFS=$as_save_IFS 20301 20302fi 20303fi 20304OCAMLDEP=$ac_cv_prog_OCAMLDEP 20305if test -n "$OCAMLDEP"; then 20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5 20307$as_echo "$OCAMLDEP" >&6; } 20308else 20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20310$as_echo "no" >&6; } 20311fi 20312 20313 20314fi 20315if test -z "$ac_cv_prog_OCAMLDEP"; then 20316 ac_ct_OCAMLDEP=$OCAMLDEP 20317 # Extract the first word of "ocamldep", so it can be a program name with args. 20318set dummy ocamldep; ac_word=$2 20319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20320$as_echo_n "checking for $ac_word... " >&6; } 20321if ${ac_cv_prog_ac_ct_OCAMLDEP+:} false; then : 20322 $as_echo_n "(cached) " >&6 20323else 20324 if test -n "$ac_ct_OCAMLDEP"; then 20325 ac_cv_prog_ac_ct_OCAMLDEP="$ac_ct_OCAMLDEP" # Let the user override the test. 20326else 20327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20328for as_dir in $PATH 20329do 20330 IFS=$as_save_IFS 20331 test -z "$as_dir" && as_dir=. 20332 for ac_exec_ext in '' $ac_executable_extensions; do 20333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20334 ac_cv_prog_ac_ct_OCAMLDEP="ocamldep" 20335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20336 break 2 20337 fi 20338done 20339 done 20340IFS=$as_save_IFS 20341 20342fi 20343fi 20344ac_ct_OCAMLDEP=$ac_cv_prog_ac_ct_OCAMLDEP 20345if test -n "$ac_ct_OCAMLDEP"; then 20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDEP" >&5 20347$as_echo "$ac_ct_OCAMLDEP" >&6; } 20348else 20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20350$as_echo "no" >&6; } 20351fi 20352 20353 if test "x$ac_ct_OCAMLDEP" = x; then 20354 OCAMLDEP="no" 20355 else 20356 case $cross_compiling:$ac_tool_warned in 20357yes:) 20358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20360ac_tool_warned=yes ;; 20361esac 20362 OCAMLDEP=$ac_ct_OCAMLDEP 20363 fi 20364else 20365 OCAMLDEP="$ac_cv_prog_OCAMLDEP" 20366fi 20367 20368 20369 # checking for ocamlmktop 20370 if test -n "$ac_tool_prefix"; then 20371 # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args. 20372set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2 20373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20374$as_echo_n "checking for $ac_word... " >&6; } 20375if ${ac_cv_prog_OCAMLMKTOP+:} false; then : 20376 $as_echo_n "(cached) " >&6 20377else 20378 if test -n "$OCAMLMKTOP"; then 20379 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test. 20380else 20381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20382for as_dir in $PATH 20383do 20384 IFS=$as_save_IFS 20385 test -z "$as_dir" && as_dir=. 20386 for ac_exec_ext in '' $ac_executable_extensions; do 20387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20388 ac_cv_prog_OCAMLMKTOP="${ac_tool_prefix}ocamlmktop" 20389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20390 break 2 20391 fi 20392done 20393 done 20394IFS=$as_save_IFS 20395 20396fi 20397fi 20398OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP 20399if test -n "$OCAMLMKTOP"; then 20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5 20401$as_echo "$OCAMLMKTOP" >&6; } 20402else 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20404$as_echo "no" >&6; } 20405fi 20406 20407 20408fi 20409if test -z "$ac_cv_prog_OCAMLMKTOP"; then 20410 ac_ct_OCAMLMKTOP=$OCAMLMKTOP 20411 # Extract the first word of "ocamlmktop", so it can be a program name with args. 20412set dummy ocamlmktop; ac_word=$2 20413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20414$as_echo_n "checking for $ac_word... " >&6; } 20415if ${ac_cv_prog_ac_ct_OCAMLMKTOP+:} false; then : 20416 $as_echo_n "(cached) " >&6 20417else 20418 if test -n "$ac_ct_OCAMLMKTOP"; then 20419 ac_cv_prog_ac_ct_OCAMLMKTOP="$ac_ct_OCAMLMKTOP" # Let the user override the test. 20420else 20421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20422for as_dir in $PATH 20423do 20424 IFS=$as_save_IFS 20425 test -z "$as_dir" && as_dir=. 20426 for ac_exec_ext in '' $ac_executable_extensions; do 20427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20428 ac_cv_prog_ac_ct_OCAMLMKTOP="ocamlmktop" 20429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20430 break 2 20431 fi 20432done 20433 done 20434IFS=$as_save_IFS 20435 20436fi 20437fi 20438ac_ct_OCAMLMKTOP=$ac_cv_prog_ac_ct_OCAMLMKTOP 20439if test -n "$ac_ct_OCAMLMKTOP"; then 20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKTOP" >&5 20441$as_echo "$ac_ct_OCAMLMKTOP" >&6; } 20442else 20443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20444$as_echo "no" >&6; } 20445fi 20446 20447 if test "x$ac_ct_OCAMLMKTOP" = x; then 20448 OCAMLMKTOP="no" 20449 else 20450 case $cross_compiling:$ac_tool_warned in 20451yes:) 20452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20454ac_tool_warned=yes ;; 20455esac 20456 OCAMLMKTOP=$ac_ct_OCAMLMKTOP 20457 fi 20458else 20459 OCAMLMKTOP="$ac_cv_prog_OCAMLMKTOP" 20460fi 20461 20462 20463 # checking for ocamlmklib 20464 if test -n "$ac_tool_prefix"; then 20465 # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args. 20466set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2 20467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20468$as_echo_n "checking for $ac_word... " >&6; } 20469if ${ac_cv_prog_OCAMLMKLIB+:} false; then : 20470 $as_echo_n "(cached) " >&6 20471else 20472 if test -n "$OCAMLMKLIB"; then 20473 ac_cv_prog_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test. 20474else 20475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20476for as_dir in $PATH 20477do 20478 IFS=$as_save_IFS 20479 test -z "$as_dir" && as_dir=. 20480 for ac_exec_ext in '' $ac_executable_extensions; do 20481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20482 ac_cv_prog_OCAMLMKLIB="${ac_tool_prefix}ocamlmklib" 20483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20484 break 2 20485 fi 20486done 20487 done 20488IFS=$as_save_IFS 20489 20490fi 20491fi 20492OCAMLMKLIB=$ac_cv_prog_OCAMLMKLIB 20493if test -n "$OCAMLMKLIB"; then 20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5 20495$as_echo "$OCAMLMKLIB" >&6; } 20496else 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20498$as_echo "no" >&6; } 20499fi 20500 20501 20502fi 20503if test -z "$ac_cv_prog_OCAMLMKLIB"; then 20504 ac_ct_OCAMLMKLIB=$OCAMLMKLIB 20505 # Extract the first word of "ocamlmklib", so it can be a program name with args. 20506set dummy ocamlmklib; ac_word=$2 20507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20508$as_echo_n "checking for $ac_word... " >&6; } 20509if ${ac_cv_prog_ac_ct_OCAMLMKLIB+:} false; then : 20510 $as_echo_n "(cached) " >&6 20511else 20512 if test -n "$ac_ct_OCAMLMKLIB"; then 20513 ac_cv_prog_ac_ct_OCAMLMKLIB="$ac_ct_OCAMLMKLIB" # Let the user override the test. 20514else 20515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20516for as_dir in $PATH 20517do 20518 IFS=$as_save_IFS 20519 test -z "$as_dir" && as_dir=. 20520 for ac_exec_ext in '' $ac_executable_extensions; do 20521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20522 ac_cv_prog_ac_ct_OCAMLMKLIB="ocamlmklib" 20523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20524 break 2 20525 fi 20526done 20527 done 20528IFS=$as_save_IFS 20529 20530fi 20531fi 20532ac_ct_OCAMLMKLIB=$ac_cv_prog_ac_ct_OCAMLMKLIB 20533if test -n "$ac_ct_OCAMLMKLIB"; then 20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKLIB" >&5 20535$as_echo "$ac_ct_OCAMLMKLIB" >&6; } 20536else 20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20538$as_echo "no" >&6; } 20539fi 20540 20541 if test "x$ac_ct_OCAMLMKLIB" = x; then 20542 OCAMLMKLIB="no" 20543 else 20544 case $cross_compiling:$ac_tool_warned in 20545yes:) 20546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20548ac_tool_warned=yes ;; 20549esac 20550 OCAMLMKLIB=$ac_ct_OCAMLMKLIB 20551 fi 20552else 20553 OCAMLMKLIB="$ac_cv_prog_OCAMLMKLIB" 20554fi 20555 20556 20557 # checking for ocamldoc 20558 if test -n "$ac_tool_prefix"; then 20559 # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args. 20560set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2 20561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20562$as_echo_n "checking for $ac_word... " >&6; } 20563if ${ac_cv_prog_OCAMLDOC+:} false; then : 20564 $as_echo_n "(cached) " >&6 20565else 20566 if test -n "$OCAMLDOC"; then 20567 ac_cv_prog_OCAMLDOC="$OCAMLDOC" # Let the user override the test. 20568else 20569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20570for as_dir in $PATH 20571do 20572 IFS=$as_save_IFS 20573 test -z "$as_dir" && as_dir=. 20574 for ac_exec_ext in '' $ac_executable_extensions; do 20575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20576 ac_cv_prog_OCAMLDOC="${ac_tool_prefix}ocamldoc" 20577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20578 break 2 20579 fi 20580done 20581 done 20582IFS=$as_save_IFS 20583 20584fi 20585fi 20586OCAMLDOC=$ac_cv_prog_OCAMLDOC 20587if test -n "$OCAMLDOC"; then 20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5 20589$as_echo "$OCAMLDOC" >&6; } 20590else 20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20592$as_echo "no" >&6; } 20593fi 20594 20595 20596fi 20597if test -z "$ac_cv_prog_OCAMLDOC"; then 20598 ac_ct_OCAMLDOC=$OCAMLDOC 20599 # Extract the first word of "ocamldoc", so it can be a program name with args. 20600set dummy ocamldoc; ac_word=$2 20601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20602$as_echo_n "checking for $ac_word... " >&6; } 20603if ${ac_cv_prog_ac_ct_OCAMLDOC+:} false; then : 20604 $as_echo_n "(cached) " >&6 20605else 20606 if test -n "$ac_ct_OCAMLDOC"; then 20607 ac_cv_prog_ac_ct_OCAMLDOC="$ac_ct_OCAMLDOC" # Let the user override the test. 20608else 20609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20610for as_dir in $PATH 20611do 20612 IFS=$as_save_IFS 20613 test -z "$as_dir" && as_dir=. 20614 for ac_exec_ext in '' $ac_executable_extensions; do 20615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20616 ac_cv_prog_ac_ct_OCAMLDOC="ocamldoc" 20617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20618 break 2 20619 fi 20620done 20621 done 20622IFS=$as_save_IFS 20623 20624fi 20625fi 20626ac_ct_OCAMLDOC=$ac_cv_prog_ac_ct_OCAMLDOC 20627if test -n "$ac_ct_OCAMLDOC"; then 20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDOC" >&5 20629$as_echo "$ac_ct_OCAMLDOC" >&6; } 20630else 20631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20632$as_echo "no" >&6; } 20633fi 20634 20635 if test "x$ac_ct_OCAMLDOC" = x; then 20636 OCAMLDOC="no" 20637 else 20638 case $cross_compiling:$ac_tool_warned in 20639yes:) 20640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20642ac_tool_warned=yes ;; 20643esac 20644 OCAMLDOC=$ac_ct_OCAMLDOC 20645 fi 20646else 20647 OCAMLDOC="$ac_cv_prog_OCAMLDOC" 20648fi 20649 20650 20651 # checking for ocamlbuild 20652 if test -n "$ac_tool_prefix"; then 20653 # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args. 20654set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2 20655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20656$as_echo_n "checking for $ac_word... " >&6; } 20657if ${ac_cv_prog_OCAMLBUILD+:} false; then : 20658 $as_echo_n "(cached) " >&6 20659else 20660 if test -n "$OCAMLBUILD"; then 20661 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test. 20662else 20663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20664for as_dir in $PATH 20665do 20666 IFS=$as_save_IFS 20667 test -z "$as_dir" && as_dir=. 20668 for ac_exec_ext in '' $ac_executable_extensions; do 20669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20670 ac_cv_prog_OCAMLBUILD="${ac_tool_prefix}ocamlbuild" 20671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20672 break 2 20673 fi 20674done 20675 done 20676IFS=$as_save_IFS 20677 20678fi 20679fi 20680OCAMLBUILD=$ac_cv_prog_OCAMLBUILD 20681if test -n "$OCAMLBUILD"; then 20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5 20683$as_echo "$OCAMLBUILD" >&6; } 20684else 20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20686$as_echo "no" >&6; } 20687fi 20688 20689 20690fi 20691if test -z "$ac_cv_prog_OCAMLBUILD"; then 20692 ac_ct_OCAMLBUILD=$OCAMLBUILD 20693 # Extract the first word of "ocamlbuild", so it can be a program name with args. 20694set dummy ocamlbuild; ac_word=$2 20695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20696$as_echo_n "checking for $ac_word... " >&6; } 20697if ${ac_cv_prog_ac_ct_OCAMLBUILD+:} false; then : 20698 $as_echo_n "(cached) " >&6 20699else 20700 if test -n "$ac_ct_OCAMLBUILD"; then 20701 ac_cv_prog_ac_ct_OCAMLBUILD="$ac_ct_OCAMLBUILD" # Let the user override the test. 20702else 20703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20704for as_dir in $PATH 20705do 20706 IFS=$as_save_IFS 20707 test -z "$as_dir" && as_dir=. 20708 for ac_exec_ext in '' $ac_executable_extensions; do 20709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20710 ac_cv_prog_ac_ct_OCAMLBUILD="ocamlbuild" 20711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20712 break 2 20713 fi 20714done 20715 done 20716IFS=$as_save_IFS 20717 20718fi 20719fi 20720ac_ct_OCAMLBUILD=$ac_cv_prog_ac_ct_OCAMLBUILD 20721if test -n "$ac_ct_OCAMLBUILD"; then 20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLBUILD" >&5 20723$as_echo "$ac_ct_OCAMLBUILD" >&6; } 20724else 20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20726$as_echo "no" >&6; } 20727fi 20728 20729 if test "x$ac_ct_OCAMLBUILD" = x; then 20730 OCAMLBUILD="no" 20731 else 20732 case $cross_compiling:$ac_tool_warned in 20733yes:) 20734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20736ac_tool_warned=yes ;; 20737esac 20738 OCAMLBUILD=$ac_ct_OCAMLBUILD 20739 fi 20740else 20741 OCAMLBUILD="$ac_cv_prog_OCAMLBUILD" 20742fi 20743 20744 20745# Check whether --enable-ocaml was given. 20746if test "${enable_ocaml+set}" = set; then : 20747 enableval=$enable_ocaml; 20748else 20749 enable_ocaml=yes 20750fi 20751 20752if test "x$OCAMLOPT" != "xno" && test "x$enable_ocaml" != "xno"; then : 20753 20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OCAMLOPT can create a shared library" >&5 20755$as_echo_n "checking if $OCAMLOPT can create a shared library... " >&6; } 20756 echo 'print_endline "test"' > conftest.ml 20757 if $OCAMLOPT $OCAMLOPTFLAGS -output-obj -runtime-variant _pic -o conftest.so conftest.ml >&5 2>&1; then : 20758 20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20760$as_echo "yes" >&6; } 20761 ocaml_link_shared=yes 20762 20763else 20764 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20766$as_echo "no" >&6; } 20767 20768fi 20769 rm -f conftest.ml conftest.cmi conftest.cmx conftest.so conftest.o 20770 20771fi 20772 if test "x$OCAMLOPT" != "xno" && 20773 test "x$ocaml_link_shared" = "xyes"; then 20774 HAVE_OCAML_TRUE= 20775 HAVE_OCAML_FALSE='#' 20776else 20777 HAVE_OCAML_TRUE='#' 20778 HAVE_OCAML_FALSE= 20779fi 20780 20781 20782if test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno" && \ 20783 test "x$enable_ocaml" = "xyes"; then : 20784 20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for caml_alloc_initialized_string" >&5 20786$as_echo_n "checking for caml_alloc_initialized_string... " >&6; } 20787 cat >conftest.c <<'EOF' 20788#include <caml/alloc.h> 20789int main () { char *p = (void *) caml_alloc_initialized_string; return 0; } 20790EOF 20791 if $OCAMLC conftest.c >&5 2>&1; then : 20792 20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20794$as_echo "yes" >&6; } 20795 20796$as_echo "#define HAVE_CAML_ALLOC_INITIALIZED_STRING 1" >>confdefs.h 20797 20798 20799else 20800 20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20802$as_echo "no" >&6; } 20803 20804fi 20805 rm -f conftest.c conftest.o 20806 20807fi 20808 20809# Extract the first word of "cargo", so it can be a program name with args. 20810set dummy cargo; ac_word=$2 20811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20812$as_echo_n "checking for $ac_word... " >&6; } 20813if ${ac_cv_prog_CARGO+:} false; then : 20814 $as_echo_n "(cached) " >&6 20815else 20816 if test -n "$CARGO"; then 20817 ac_cv_prog_CARGO="$CARGO" # Let the user override the test. 20818else 20819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20820for as_dir in $PATH 20821do 20822 IFS=$as_save_IFS 20823 test -z "$as_dir" && as_dir=. 20824 for ac_exec_ext in '' $ac_executable_extensions; do 20825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20826 ac_cv_prog_CARGO="cargo" 20827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20828 break 2 20829 fi 20830done 20831 done 20832IFS=$as_save_IFS 20833 20834 test -z "$ac_cv_prog_CARGO" && ac_cv_prog_CARGO="no" 20835fi 20836fi 20837CARGO=$ac_cv_prog_CARGO 20838if test -n "$CARGO"; then 20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5 20840$as_echo "$CARGO" >&6; } 20841else 20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20843$as_echo "no" >&6; } 20844fi 20845 20846 20847# Check whether --enable-rust was given. 20848if test "${enable_rust+set}" = set; then : 20849 enableval=$enable_rust; 20850else 20851 enable_rust=yes 20852fi 20853 20854 if test "x$CARGO" != "xno" && test "x$enable_rust" != "xno"; then 20855 HAVE_RUST_TRUE= 20856 HAVE_RUST_FALSE='#' 20857else 20858 HAVE_RUST_TRUE='#' 20859 HAVE_RUST_FALSE= 20860fi 20861 20862 20863# Extract the first word of "ruby", so it can be a program name with args. 20864set dummy ruby; ac_word=$2 20865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20866$as_echo_n "checking for $ac_word... " >&6; } 20867if ${ac_cv_prog_RUBY+:} false; then : 20868 $as_echo_n "(cached) " >&6 20869else 20870 if test -n "$RUBY"; then 20871 ac_cv_prog_RUBY="$RUBY" # Let the user override the test. 20872else 20873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20874for as_dir in $PATH 20875do 20876 IFS=$as_save_IFS 20877 test -z "$as_dir" && as_dir=. 20878 for ac_exec_ext in '' $ac_executable_extensions; do 20879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20880 ac_cv_prog_RUBY="ruby" 20881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20882 break 2 20883 fi 20884done 20885 done 20886IFS=$as_save_IFS 20887 20888 test -z "$ac_cv_prog_RUBY" && ac_cv_prog_RUBY="no" 20889fi 20890fi 20891RUBY=$ac_cv_prog_RUBY 20892if test -n "$RUBY"; then 20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 20894$as_echo "$RUBY" >&6; } 20895else 20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20897$as_echo "no" >&6; } 20898fi 20899 20900 20901# Check whether --enable-ruby was given. 20902if test "${enable_ruby+set}" = set; then : 20903 enableval=$enable_ruby; 20904else 20905 enable_ruby=yes 20906fi 20907 20908if test "x$RUBY" != "xno" && test "x$enable_ruby" != "xno"; then : 20909 20910 20911pkg_failed=no 20912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RUBY" >&5 20913$as_echo_n "checking for RUBY... " >&6; } 20914 20915if test -n "$RUBY_CFLAGS"; then 20916 pkg_cv_RUBY_CFLAGS="$RUBY_CFLAGS" 20917 elif test -n "$PKG_CONFIG"; then 20918 if test -n "$PKG_CONFIG" && \ 20919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby\""; } >&5 20920 ($PKG_CONFIG --exists --print-errors "ruby") 2>&5 20921 ac_status=$? 20922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20923 test $ac_status = 0; }; then 20924 pkg_cv_RUBY_CFLAGS=`$PKG_CONFIG --cflags "ruby" 2>/dev/null` 20925 test "x$?" != "x0" && pkg_failed=yes 20926else 20927 pkg_failed=yes 20928fi 20929 else 20930 pkg_failed=untried 20931fi 20932if test -n "$RUBY_LIBS"; then 20933 pkg_cv_RUBY_LIBS="$RUBY_LIBS" 20934 elif test -n "$PKG_CONFIG"; then 20935 if test -n "$PKG_CONFIG" && \ 20936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby\""; } >&5 20937 ($PKG_CONFIG --exists --print-errors "ruby") 2>&5 20938 ac_status=$? 20939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20940 test $ac_status = 0; }; then 20941 pkg_cv_RUBY_LIBS=`$PKG_CONFIG --libs "ruby" 2>/dev/null` 20942 test "x$?" != "x0" && pkg_failed=yes 20943else 20944 pkg_failed=yes 20945fi 20946 else 20947 pkg_failed=untried 20948fi 20949 20950 20951 20952if test $pkg_failed = yes; then 20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20954$as_echo "no" >&6; } 20955 20956if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20957 _pkg_short_errors_supported=yes 20958else 20959 _pkg_short_errors_supported=no 20960fi 20961 if test $_pkg_short_errors_supported = yes; then 20962 RUBY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ruby" 2>&1` 20963 else 20964 RUBY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ruby" 2>&1` 20965 fi 20966 # Put the nasty error message in config.log where it belongs 20967 echo "$RUBY_PKG_ERRORS" >&5 20968 20969 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ruby not found" >&5 20971$as_echo "$as_me: WARNING: ruby not found" >&2;} 20972 enable_ruby=no 20973 20974elif test $pkg_failed = untried; then 20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20976$as_echo "no" >&6; } 20977 20978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ruby not found" >&5 20979$as_echo "$as_me: WARNING: ruby not found" >&2;} 20980 enable_ruby=no 20981 20982else 20983 RUBY_CFLAGS=$pkg_cv_RUBY_CFLAGS 20984 RUBY_LIBS=$pkg_cv_RUBY_LIBS 20985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20986$as_echo "yes" >&6; } 20987 20988 20989 20990 20991fi 20992 20993fi 20994 if test "x$RUBY" != "xno" && 20995 test "x$enable_ruby" = "xyes"; then 20996 HAVE_RUBY_TRUE= 20997 HAVE_RUBY_FALSE='#' 20998else 20999 HAVE_RUBY_TRUE='#' 21000 HAVE_RUBY_FALSE= 21001fi 21002 21003 21004# Check whether --enable-tcl was given. 21005if test "${enable_tcl+set}" = set; then : 21006 enableval=$enable_tcl; 21007else 21008 enable_tcl=yes 21009fi 21010 21011if test "x$enable_tcl" != "xno"; then : 21012 21013 21014pkg_failed=no 21015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCL" >&5 21016$as_echo_n "checking for TCL... " >&6; } 21017 21018if test -n "$TCL_CFLAGS"; then 21019 pkg_cv_TCL_CFLAGS="$TCL_CFLAGS" 21020 elif test -n "$PKG_CONFIG"; then 21021 if test -n "$PKG_CONFIG" && \ 21022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tcl\""; } >&5 21023 ($PKG_CONFIG --exists --print-errors "tcl") 2>&5 21024 ac_status=$? 21025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21026 test $ac_status = 0; }; then 21027 pkg_cv_TCL_CFLAGS=`$PKG_CONFIG --cflags "tcl" 2>/dev/null` 21028 test "x$?" != "x0" && pkg_failed=yes 21029else 21030 pkg_failed=yes 21031fi 21032 else 21033 pkg_failed=untried 21034fi 21035if test -n "$TCL_LIBS"; then 21036 pkg_cv_TCL_LIBS="$TCL_LIBS" 21037 elif test -n "$PKG_CONFIG"; then 21038 if test -n "$PKG_CONFIG" && \ 21039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tcl\""; } >&5 21040 ($PKG_CONFIG --exists --print-errors "tcl") 2>&5 21041 ac_status=$? 21042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21043 test $ac_status = 0; }; then 21044 pkg_cv_TCL_LIBS=`$PKG_CONFIG --libs "tcl" 2>/dev/null` 21045 test "x$?" != "x0" && pkg_failed=yes 21046else 21047 pkg_failed=yes 21048fi 21049 else 21050 pkg_failed=untried 21051fi 21052 21053 21054 21055if test $pkg_failed = yes; then 21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21057$as_echo "no" >&6; } 21058 21059if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21060 _pkg_short_errors_supported=yes 21061else 21062 _pkg_short_errors_supported=no 21063fi 21064 if test $_pkg_short_errors_supported = yes; then 21065 TCL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tcl" 2>&1` 21066 else 21067 TCL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tcl" 2>&1` 21068 fi 21069 # Put the nasty error message in config.log where it belongs 21070 echo "$TCL_PKG_ERRORS" >&5 21071 21072 21073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tcl not found" >&5 21074$as_echo "$as_me: WARNING: Tcl not found" >&2;} 21075 enable_tcl=no 21076 21077elif test $pkg_failed = untried; then 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21079$as_echo "no" >&6; } 21080 21081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tcl not found" >&5 21082$as_echo "$as_me: WARNING: Tcl not found" >&2;} 21083 enable_tcl=no 21084 21085else 21086 TCL_CFLAGS=$pkg_cv_TCL_CFLAGS 21087 TCL_LIBS=$pkg_cv_TCL_LIBS 21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21089$as_echo "yes" >&6; } 21090 21091 21092 21093 21094fi 21095 21096fi 21097 if test "x$enable_tcl" = "xyes"; then 21098 HAVE_TCL_TRUE= 21099 HAVE_TCL_FALSE='#' 21100else 21101 HAVE_TCL_TRUE='#' 21102 HAVE_TCL_FALSE= 21103fi 21104 21105 21106# Check whether --enable-lua was given. 21107if test "${enable_lua+set}" = set; then : 21108 enableval=$enable_lua; 21109else 21110 enable_lua=yes 21111fi 21112 21113if test "x$enable_lua" != "xno"; then : 21114 21115 21116pkg_failed=no 21117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 21118$as_echo_n "checking for LUA... " >&6; } 21119 21120if test -n "$LUA_CFLAGS"; then 21121 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 21122 elif test -n "$PKG_CONFIG"; then 21123 if test -n "$PKG_CONFIG" && \ 21124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5 21125 ($PKG_CONFIG --exists --print-errors "lua") 2>&5 21126 ac_status=$? 21127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21128 test $ac_status = 0; }; then 21129 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null` 21130 test "x$?" != "x0" && pkg_failed=yes 21131else 21132 pkg_failed=yes 21133fi 21134 else 21135 pkg_failed=untried 21136fi 21137if test -n "$LUA_LIBS"; then 21138 pkg_cv_LUA_LIBS="$LUA_LIBS" 21139 elif test -n "$PKG_CONFIG"; then 21140 if test -n "$PKG_CONFIG" && \ 21141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5 21142 ($PKG_CONFIG --exists --print-errors "lua") 2>&5 21143 ac_status=$? 21144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21145 test $ac_status = 0; }; then 21146 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null` 21147 test "x$?" != "x0" && pkg_failed=yes 21148else 21149 pkg_failed=yes 21150fi 21151 else 21152 pkg_failed=untried 21153fi 21154 21155 21156 21157if test $pkg_failed = yes; then 21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21159$as_echo "no" >&6; } 21160 21161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21162 _pkg_short_errors_supported=yes 21163else 21164 _pkg_short_errors_supported=no 21165fi 21166 if test $_pkg_short_errors_supported = yes; then 21167 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua" 2>&1` 21168 else 21169 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua" 2>&1` 21170 fi 21171 # Put the nasty error message in config.log where it belongs 21172 echo "$LUA_PKG_ERRORS" >&5 21173 21174 21175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua not found" >&5 21176$as_echo "$as_me: WARNING: Lua not found" >&2;} 21177 enable_lua=no 21178 21179elif test $pkg_failed = untried; then 21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21181$as_echo "no" >&6; } 21182 21183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua not found" >&5 21184$as_echo "$as_me: WARNING: Lua not found" >&2;} 21185 enable_lua=no 21186 21187else 21188 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 21189 LUA_LIBS=$pkg_cv_LUA_LIBS 21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21191$as_echo "yes" >&6; } 21192 21193 21194 21195 21196 old_LIBS="$LIBS" 21197 LIBS="$LUA_LIBS $LIBS" 21198 for ac_func in lua_isinteger 21199do : 21200 ac_fn_c_check_func "$LINENO" "lua_isinteger" "ac_cv_func_lua_isinteger" 21201if test "x$ac_cv_func_lua_isinteger" = xyes; then : 21202 cat >>confdefs.h <<_ACEOF 21203#define HAVE_LUA_ISINTEGER 1 21204_ACEOF 21205 21206fi 21207done 21208 21209 LIBS="$old_LIBS" 21210 21211fi 21212 21213fi 21214 if test "x$enable_lua" = "xyes"; then 21215 HAVE_LUA_TRUE= 21216 HAVE_LUA_FALSE='#' 21217else 21218 HAVE_LUA_TRUE='#' 21219 HAVE_LUA_FALSE= 21220fi 21221 21222 21223# Check whether --enable-golang was given. 21224if test "${enable_golang+set}" = set; then : 21225 enableval=$enable_golang; 21226else 21227 enable_golang=yes 21228fi 21229 21230if test "x$enable_golang" != "xno"; then : 21231 21232 # Extract the first word of "go", so it can be a program name with args. 21233set dummy go; ac_word=$2 21234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21235$as_echo_n "checking for $ac_word... " >&6; } 21236if ${ac_cv_prog_GOLANG+:} false; then : 21237 $as_echo_n "(cached) " >&6 21238else 21239 if test -n "$GOLANG"; then 21240 ac_cv_prog_GOLANG="$GOLANG" # Let the user override the test. 21241else 21242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21243for as_dir in $PATH 21244do 21245 IFS=$as_save_IFS 21246 test -z "$as_dir" && as_dir=. 21247 for ac_exec_ext in '' $ac_executable_extensions; do 21248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21249 ac_cv_prog_GOLANG="go" 21250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21251 break 2 21252 fi 21253done 21254 done 21255IFS=$as_save_IFS 21256 21257 test -z "$ac_cv_prog_GOLANG" && ac_cv_prog_GOLANG="no" 21258fi 21259fi 21260GOLANG=$ac_cv_prog_GOLANG 21261if test -n "$GOLANG"; then 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOLANG" >&5 21263$as_echo "$GOLANG" >&6; } 21264else 21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21266$as_echo "no" >&6; } 21267fi 21268 21269 21270 if test "x$GOLANG" != "xno"; then : 21271 21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $GOLANG is usable" >&5 21273$as_echo_n "checking if $GOLANG is usable... " >&6; } 21274 if $GOLANG run $srcdir/plugins/golang/config-test.go 2>&5; then : 21275 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21277$as_echo "yes" >&6; } 21278 21279 # Substitute some golang environment. 21280 GOOS=`$GOLANG env GOOS` 21281 GOARCH=`$GOLANG env GOARCH` 21282 GOROOT=`$GOLANG env GOROOT` 21283 21284 21285 21286 21287else 21288 21289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21290$as_echo "no" >&6; } 21291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: golang ($GOLANG) is installed but not usable" >&5 21292$as_echo "$as_me: WARNING: golang ($GOLANG) is installed but not usable" >&2;} 21293 GOLANG=no 21294 21295fi 21296 21297fi 21298 21299else 21300 GOLANG=no 21301fi 21302 if test "x$GOLANG" != "xno"; then 21303 HAVE_GOLANG_TRUE= 21304 HAVE_GOLANG_FALSE='#' 21305else 21306 HAVE_GOLANG_TRUE='#' 21307 HAVE_GOLANG_FALSE= 21308fi 21309 21310 21311 21312# Check whether --with-curl was given. 21313if test "${with_curl+set}" = set; then : 21314 withval=$with_curl; 21315else 21316 with_curl=check 21317fi 21318 21319if test "$with_curl" != "no"; then : 21320 21321 21322pkg_failed=no 21323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5 21324$as_echo_n "checking for CURL... " >&6; } 21325 21326if test -n "$CURL_CFLAGS"; then 21327 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" 21328 elif test -n "$PKG_CONFIG"; then 21329 if test -n "$PKG_CONFIG" && \ 21330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 21331 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 21332 ac_status=$? 21333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21334 test $ac_status = 0; }; then 21335 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null` 21336 test "x$?" != "x0" && pkg_failed=yes 21337else 21338 pkg_failed=yes 21339fi 21340 else 21341 pkg_failed=untried 21342fi 21343if test -n "$CURL_LIBS"; then 21344 pkg_cv_CURL_LIBS="$CURL_LIBS" 21345 elif test -n "$PKG_CONFIG"; then 21346 if test -n "$PKG_CONFIG" && \ 21347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 21348 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 21349 ac_status=$? 21350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21351 test $ac_status = 0; }; then 21352 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null` 21353 test "x$?" != "x0" && pkg_failed=yes 21354else 21355 pkg_failed=yes 21356fi 21357 else 21358 pkg_failed=untried 21359fi 21360 21361 21362 21363if test $pkg_failed = yes; then 21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21365$as_echo "no" >&6; } 21366 21367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21368 _pkg_short_errors_supported=yes 21369else 21370 _pkg_short_errors_supported=no 21371fi 21372 if test $_pkg_short_errors_supported = yes; then 21373 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1` 21374 else 21375 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1` 21376 fi 21377 # Put the nasty error message in config.log where it belongs 21378 echo "$CURL_PKG_ERRORS" >&5 21379 21380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl not found, curl plugin will be disabled" >&5 21381$as_echo "$as_me: WARNING: curl not found, curl plugin will be disabled" >&2;} 21382elif test $pkg_failed = untried; then 21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21384$as_echo "no" >&6; } 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl not found, curl plugin will be disabled" >&5 21386$as_echo "$as_me: WARNING: curl not found, curl plugin will be disabled" >&2;} 21387else 21388 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS 21389 CURL_LIBS=$pkg_cv_CURL_LIBS 21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21391$as_echo "yes" >&6; } 21392 21393 21394 21395 21396$as_echo "#define HAVE_CURL 1" >>confdefs.h 21397 21398 ac_fn_c_check_decl "$LINENO" "CURLOPT_UNIX_SOCKET_PATH" "ac_cv_have_decl_CURLOPT_UNIX_SOCKET_PATH" "#include <curl/curl.h> 21399" 21400if test "x$ac_cv_have_decl_CURLOPT_UNIX_SOCKET_PATH" = xyes; then : 21401 21402 21403$as_echo "#define HAVE_CURLOPT_UNIX_SOCKET_PATH 1" >>confdefs.h 21404 21405 21406fi 21407 21408 21409fi 21410 21411fi 21412 if test "x$CURL_LIBS" != "x"; then 21413 HAVE_CURL_TRUE= 21414 HAVE_CURL_FALSE='#' 21415else 21416 HAVE_CURL_TRUE='#' 21417 HAVE_CURL_FALSE= 21418fi 21419 21420 21421 21422# Check whether --with-ssh was given. 21423if test "${with_ssh+set}" = set; then : 21424 withval=$with_ssh; 21425else 21426 with_ssh=check 21427fi 21428 21429if test "$with_ssh" != "no"; then : 21430 21431 21432pkg_failed=no 21433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSH" >&5 21434$as_echo_n "checking for SSH... " >&6; } 21435 21436if test -n "$SSH_CFLAGS"; then 21437 pkg_cv_SSH_CFLAGS="$SSH_CFLAGS" 21438 elif test -n "$PKG_CONFIG"; then 21439 if test -n "$PKG_CONFIG" && \ 21440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssh >= 0.8.0\""; } >&5 21441 ($PKG_CONFIG --exists --print-errors "libssh >= 0.8.0") 2>&5 21442 ac_status=$? 21443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21444 test $ac_status = 0; }; then 21445 pkg_cv_SSH_CFLAGS=`$PKG_CONFIG --cflags "libssh >= 0.8.0" 2>/dev/null` 21446 test "x$?" != "x0" && pkg_failed=yes 21447else 21448 pkg_failed=yes 21449fi 21450 else 21451 pkg_failed=untried 21452fi 21453if test -n "$SSH_LIBS"; then 21454 pkg_cv_SSH_LIBS="$SSH_LIBS" 21455 elif test -n "$PKG_CONFIG"; then 21456 if test -n "$PKG_CONFIG" && \ 21457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssh >= 0.8.0\""; } >&5 21458 ($PKG_CONFIG --exists --print-errors "libssh >= 0.8.0") 2>&5 21459 ac_status=$? 21460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21461 test $ac_status = 0; }; then 21462 pkg_cv_SSH_LIBS=`$PKG_CONFIG --libs "libssh >= 0.8.0" 2>/dev/null` 21463 test "x$?" != "x0" && pkg_failed=yes 21464else 21465 pkg_failed=yes 21466fi 21467 else 21468 pkg_failed=untried 21469fi 21470 21471 21472 21473if test $pkg_failed = yes; then 21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21475$as_echo "no" >&6; } 21476 21477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21478 _pkg_short_errors_supported=yes 21479else 21480 _pkg_short_errors_supported=no 21481fi 21482 if test $_pkg_short_errors_supported = yes; then 21483 SSH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssh >= 0.8.0" 2>&1` 21484 else 21485 SSH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssh >= 0.8.0" 2>&1` 21486 fi 21487 # Put the nasty error message in config.log where it belongs 21488 echo "$SSH_PKG_ERRORS" >&5 21489 21490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libssh not found, ssh plugin will be disabled" >&5 21491$as_echo "$as_me: WARNING: libssh not found, ssh plugin will be disabled" >&2;} 21492elif test $pkg_failed = untried; then 21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21494$as_echo "no" >&6; } 21495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libssh not found, ssh plugin will be disabled" >&5 21496$as_echo "$as_me: WARNING: libssh not found, ssh plugin will be disabled" >&2;} 21497else 21498 SSH_CFLAGS=$pkg_cv_SSH_CFLAGS 21499 SSH_LIBS=$pkg_cv_SSH_LIBS 21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21501$as_echo "yes" >&6; } 21502 21503 21504 21505 21506fi 21507 21508fi 21509 if test "x$SSH_LIBS" != "x"; then 21510 HAVE_SSH_TRUE= 21511 HAVE_SSH_FALSE='#' 21512else 21513 HAVE_SSH_TRUE='#' 21514 HAVE_SSH_FALSE= 21515fi 21516 21517 21518ISOPROG="no" 21519 21520# Check whether --with-iso was given. 21521if test "${with_iso+set}" = set; then : 21522 withval=$with_iso; 21523else 21524 with_iso=check 21525fi 21526 21527if test "$with_iso" != "no"; then : 21528 21529 # Extract the first word of "genisoimage", so it can be a program name with args. 21530set dummy genisoimage; ac_word=$2 21531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21532$as_echo_n "checking for $ac_word... " >&6; } 21533if ${ac_cv_prog_GENISOIMAGE+:} false; then : 21534 $as_echo_n "(cached) " >&6 21535else 21536 if test -n "$GENISOIMAGE"; then 21537 ac_cv_prog_GENISOIMAGE="$GENISOIMAGE" # Let the user override the test. 21538else 21539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21540for as_dir in $PATH 21541do 21542 IFS=$as_save_IFS 21543 test -z "$as_dir" && as_dir=. 21544 for ac_exec_ext in '' $ac_executable_extensions; do 21545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21546 ac_cv_prog_GENISOIMAGE="genisoimage" 21547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21548 break 2 21549 fi 21550done 21551 done 21552IFS=$as_save_IFS 21553 21554 test -z "$ac_cv_prog_GENISOIMAGE" && ac_cv_prog_GENISOIMAGE="no" 21555fi 21556fi 21557GENISOIMAGE=$ac_cv_prog_GENISOIMAGE 21558if test -n "$GENISOIMAGE"; then 21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENISOIMAGE" >&5 21560$as_echo "$GENISOIMAGE" >&6; } 21561else 21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21563$as_echo "no" >&6; } 21564fi 21565 21566 21567 # Extract the first word of "mkisofs", so it can be a program name with args. 21568set dummy mkisofs; ac_word=$2 21569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21570$as_echo_n "checking for $ac_word... " >&6; } 21571if ${ac_cv_prog_MKISOFS+:} false; then : 21572 $as_echo_n "(cached) " >&6 21573else 21574 if test -n "$MKISOFS"; then 21575 ac_cv_prog_MKISOFS="$MKISOFS" # Let the user override the test. 21576else 21577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21578for as_dir in $PATH 21579do 21580 IFS=$as_save_IFS 21581 test -z "$as_dir" && as_dir=. 21582 for ac_exec_ext in '' $ac_executable_extensions; do 21583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21584 ac_cv_prog_MKISOFS="mkisofs" 21585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21586 break 2 21587 fi 21588done 21589 done 21590IFS=$as_save_IFS 21591 21592 test -z "$ac_cv_prog_MKISOFS" && ac_cv_prog_MKISOFS="no" 21593fi 21594fi 21595MKISOFS=$ac_cv_prog_MKISOFS 21596if test -n "$MKISOFS"; then 21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5 21598$as_echo "$MKISOFS" >&6; } 21599else 21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21601$as_echo "no" >&6; } 21602fi 21603 21604 21605 if test "x$GENISOIMAGE" != "xno"; then : 21606 21607 ISOPROG="$GENISOIMAGE" 21608 21609else 21610 21611 if test "x$MKISOFS" != "xno"; then : 21612 21613 ISOPROG="$MKISOFS" 21614 21615fi 21616 21617fi 21618 if test "x$ISOPROG" != "xno"; then : 21619 21620 21621cat >>confdefs.h <<_ACEOF 21622#define ISOPROG "$ISOPROG" 21623_ACEOF 21624 21625 21626fi 21627 21628fi 21629 21630 if test "x$ISOPROG" != "xno"; then 21631 HAVE_ISO_TRUE= 21632 HAVE_ISO_FALSE='#' 21633else 21634 HAVE_ISO_TRUE='#' 21635 HAVE_ISO_FALSE= 21636fi 21637 21638 21639 21640# Check whether --with-libvirt was given. 21641if test "${with_libvirt+set}" = set; then : 21642 withval=$with_libvirt; 21643else 21644 with_libvirt=check 21645fi 21646 21647if test "$with_libvirt" != "no"; then : 21648 21649 21650pkg_failed=no 21651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVIRT" >&5 21652$as_echo_n "checking for LIBVIRT... " >&6; } 21653 21654if test -n "$LIBVIRT_CFLAGS"; then 21655 pkg_cv_LIBVIRT_CFLAGS="$LIBVIRT_CFLAGS" 21656 elif test -n "$PKG_CONFIG"; then 21657 if test -n "$PKG_CONFIG" && \ 21658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt\""; } >&5 21659 ($PKG_CONFIG --exists --print-errors "libvirt") 2>&5 21660 ac_status=$? 21661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21662 test $ac_status = 0; }; then 21663 pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt" 2>/dev/null` 21664 test "x$?" != "x0" && pkg_failed=yes 21665else 21666 pkg_failed=yes 21667fi 21668 else 21669 pkg_failed=untried 21670fi 21671if test -n "$LIBVIRT_LIBS"; then 21672 pkg_cv_LIBVIRT_LIBS="$LIBVIRT_LIBS" 21673 elif test -n "$PKG_CONFIG"; then 21674 if test -n "$PKG_CONFIG" && \ 21675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt\""; } >&5 21676 ($PKG_CONFIG --exists --print-errors "libvirt") 2>&5 21677 ac_status=$? 21678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21679 test $ac_status = 0; }; then 21680 pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt" 2>/dev/null` 21681 test "x$?" != "x0" && pkg_failed=yes 21682else 21683 pkg_failed=yes 21684fi 21685 else 21686 pkg_failed=untried 21687fi 21688 21689 21690 21691if test $pkg_failed = yes; then 21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21693$as_echo "no" >&6; } 21694 21695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21696 _pkg_short_errors_supported=yes 21697else 21698 _pkg_short_errors_supported=no 21699fi 21700 if test $_pkg_short_errors_supported = yes; then 21701 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt" 2>&1` 21702 else 21703 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt" 2>&1` 21704 fi 21705 # Put the nasty error message in config.log where it belongs 21706 echo "$LIBVIRT_PKG_ERRORS" >&5 21707 21708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libvirt not found, libvirt plugin will be disabled" >&5 21709$as_echo "$as_me: WARNING: libvirt not found, libvirt plugin will be disabled" >&2;} 21710elif test $pkg_failed = untried; then 21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21712$as_echo "no" >&6; } 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libvirt not found, libvirt plugin will be disabled" >&5 21714$as_echo "$as_me: WARNING: libvirt not found, libvirt plugin will be disabled" >&2;} 21715else 21716 LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS 21717 LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS 21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21719$as_echo "yes" >&6; } 21720 21721 21722 21723 21724$as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h 21725 21726 21727fi 21728 21729fi 21730 if test "x$LIBVIRT_LIBS" != "x"; then 21731 HAVE_LIBVIRT_TRUE= 21732 HAVE_LIBVIRT_FALSE='#' 21733else 21734 HAVE_LIBVIRT_TRUE='#' 21735 HAVE_LIBVIRT_FALSE= 21736fi 21737 21738 21739 21740# Check whether --with-zlib was given. 21741if test "${with_zlib+set}" = set; then : 21742 withval=$with_zlib; 21743else 21744 with_zlib=check 21745fi 21746 21747if test "$with_zlib" != "no"; then : 21748 21749 21750pkg_failed=no 21751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 21752$as_echo_n "checking for ZLIB... " >&6; } 21753 21754if test -n "$ZLIB_CFLAGS"; then 21755 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 21756 elif test -n "$PKG_CONFIG"; then 21757 if test -n "$PKG_CONFIG" && \ 21758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3.5\""; } >&5 21759 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3.5") 2>&5 21760 ac_status=$? 21761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21762 test $ac_status = 0; }; then 21763 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.3.5" 2>/dev/null` 21764 test "x$?" != "x0" && pkg_failed=yes 21765else 21766 pkg_failed=yes 21767fi 21768 else 21769 pkg_failed=untried 21770fi 21771if test -n "$ZLIB_LIBS"; then 21772 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 21773 elif test -n "$PKG_CONFIG"; then 21774 if test -n "$PKG_CONFIG" && \ 21775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3.5\""; } >&5 21776 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3.5") 2>&5 21777 ac_status=$? 21778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21779 test $ac_status = 0; }; then 21780 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.3.5" 2>/dev/null` 21781 test "x$?" != "x0" && pkg_failed=yes 21782else 21783 pkg_failed=yes 21784fi 21785 else 21786 pkg_failed=untried 21787fi 21788 21789 21790 21791if test $pkg_failed = yes; then 21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21793$as_echo "no" >&6; } 21794 21795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21796 _pkg_short_errors_supported=yes 21797else 21798 _pkg_short_errors_supported=no 21799fi 21800 if test $_pkg_short_errors_supported = yes; then 21801 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.3.5" 2>&1` 21802 else 21803 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.3.5" 2>&1` 21804 fi 21805 # Put the nasty error message in config.log where it belongs 21806 echo "$ZLIB_PKG_ERRORS" >&5 21807 21808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib >= 1.2.3.5 not found, gzip plugin will be disabled" >&5 21809$as_echo "$as_me: WARNING: zlib >= 1.2.3.5 not found, gzip plugin will be disabled" >&2;} 21810elif test $pkg_failed = untried; then 21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21812$as_echo "no" >&6; } 21813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib >= 1.2.3.5 not found, gzip plugin will be disabled" >&5 21814$as_echo "$as_me: WARNING: zlib >= 1.2.3.5 not found, gzip plugin will be disabled" >&2;} 21815else 21816 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 21817 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21819$as_echo "yes" >&6; } 21820 21821 21822 21823 21824$as_echo "#define HAVE_ZLIB 1" >>confdefs.h 21825 21826 21827fi 21828 21829fi 21830 if test "x$ZLIB_LIBS" != "x"; then 21831 HAVE_ZLIB_TRUE= 21832 HAVE_ZLIB_FALSE='#' 21833else 21834 HAVE_ZLIB_TRUE='#' 21835 HAVE_ZLIB_FALSE= 21836fi 21837 21838 21839 21840# Check whether --with-libnbd was given. 21841if test "${with_libnbd+set}" = set; then : 21842 withval=$with_libnbd; 21843else 21844 with_libnbd=check 21845fi 21846 21847if test "$with_libnbd" != "no"; then : 21848 21849 21850pkg_failed=no 21851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNBD" >&5 21852$as_echo_n "checking for LIBNBD... " >&6; } 21853 21854if test -n "$LIBNBD_CFLAGS"; then 21855 pkg_cv_LIBNBD_CFLAGS="$LIBNBD_CFLAGS" 21856 elif test -n "$PKG_CONFIG"; then 21857 if test -n "$PKG_CONFIG" && \ 21858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnbd >= 0.9.8\""; } >&5 21859 ($PKG_CONFIG --exists --print-errors "libnbd >= 0.9.8") 2>&5 21860 ac_status=$? 21861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21862 test $ac_status = 0; }; then 21863 pkg_cv_LIBNBD_CFLAGS=`$PKG_CONFIG --cflags "libnbd >= 0.9.8" 2>/dev/null` 21864 test "x$?" != "x0" && pkg_failed=yes 21865else 21866 pkg_failed=yes 21867fi 21868 else 21869 pkg_failed=untried 21870fi 21871if test -n "$LIBNBD_LIBS"; then 21872 pkg_cv_LIBNBD_LIBS="$LIBNBD_LIBS" 21873 elif test -n "$PKG_CONFIG"; then 21874 if test -n "$PKG_CONFIG" && \ 21875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnbd >= 0.9.8\""; } >&5 21876 ($PKG_CONFIG --exists --print-errors "libnbd >= 0.9.8") 2>&5 21877 ac_status=$? 21878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21879 test $ac_status = 0; }; then 21880 pkg_cv_LIBNBD_LIBS=`$PKG_CONFIG --libs "libnbd >= 0.9.8" 2>/dev/null` 21881 test "x$?" != "x0" && pkg_failed=yes 21882else 21883 pkg_failed=yes 21884fi 21885 else 21886 pkg_failed=untried 21887fi 21888 21889 21890 21891if test $pkg_failed = yes; then 21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21893$as_echo "no" >&6; } 21894 21895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21896 _pkg_short_errors_supported=yes 21897else 21898 _pkg_short_errors_supported=no 21899fi 21900 if test $_pkg_short_errors_supported = yes; then 21901 LIBNBD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnbd >= 0.9.8" 2>&1` 21902 else 21903 LIBNBD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnbd >= 0.9.8" 2>&1` 21904 fi 21905 # Put the nasty error message in config.log where it belongs 21906 echo "$LIBNBD_PKG_ERRORS" >&5 21907 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnbd >= 0.9.8 not found, nbd plugin will be crippled" >&5 21909$as_echo "$as_me: WARNING: libnbd >= 0.9.8 not found, nbd plugin will be crippled" >&2;} 21910elif test $pkg_failed = untried; then 21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21912$as_echo "no" >&6; } 21913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnbd >= 0.9.8 not found, nbd plugin will be crippled" >&5 21914$as_echo "$as_me: WARNING: libnbd >= 0.9.8 not found, nbd plugin will be crippled" >&2;} 21915else 21916 LIBNBD_CFLAGS=$pkg_cv_LIBNBD_CFLAGS 21917 LIBNBD_LIBS=$pkg_cv_LIBNBD_LIBS 21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21919$as_echo "yes" >&6; } 21920 21921 21922 21923 21924$as_echo "#define HAVE_LIBNBD 1" >>confdefs.h 21925 21926 21927fi 21928 21929fi 21930 21931# Check whether --enable-nbd-plugin was given. 21932if test "${enable_nbd_plugin+set}" = set; then : 21933 enableval=$enable_nbd_plugin; 21934else 21935 enable_nbd_plugin=yes 21936fi 21937 21938 if test "x$LIBNBD_LIBS" != "x" && test "x$enable_nbd_plugin" = "xyes"; then 21939 HAVE_LIBNBD_TRUE= 21940 HAVE_LIBNBD_FALSE='#' 21941else 21942 HAVE_LIBNBD_TRUE='#' 21943 HAVE_LIBNBD_FALSE= 21944fi 21945 21946 21947 21948# Check whether --with-liblzma was given. 21949if test "${with_liblzma+set}" = set; then : 21950 withval=$with_liblzma; 21951else 21952 with_liblzma=check 21953fi 21954 21955if test "$with_liblzma" != "no"; then : 21956 21957 21958pkg_failed=no 21959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLZMA" >&5 21960$as_echo_n "checking for LIBLZMA... " >&6; } 21961 21962if test -n "$LIBLZMA_CFLAGS"; then 21963 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS" 21964 elif test -n "$PKG_CONFIG"; then 21965 if test -n "$PKG_CONFIG" && \ 21966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5 21967 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5 21968 ac_status=$? 21969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21970 test $ac_status = 0; }; then 21971 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null` 21972 test "x$?" != "x0" && pkg_failed=yes 21973else 21974 pkg_failed=yes 21975fi 21976 else 21977 pkg_failed=untried 21978fi 21979if test -n "$LIBLZMA_LIBS"; then 21980 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS" 21981 elif test -n "$PKG_CONFIG"; then 21982 if test -n "$PKG_CONFIG" && \ 21983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5 21984 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5 21985 ac_status=$? 21986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21987 test $ac_status = 0; }; then 21988 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null` 21989 test "x$?" != "x0" && pkg_failed=yes 21990else 21991 pkg_failed=yes 21992fi 21993 else 21994 pkg_failed=untried 21995fi 21996 21997 21998 21999if test $pkg_failed = yes; then 22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22001$as_echo "no" >&6; } 22002 22003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22004 _pkg_short_errors_supported=yes 22005else 22006 _pkg_short_errors_supported=no 22007fi 22008 if test $_pkg_short_errors_supported = yes; then 22009 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1` 22010 else 22011 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1` 22012 fi 22013 # Put the nasty error message in config.log where it belongs 22014 echo "$LIBLZMA_PKG_ERRORS" >&5 22015 22016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: liblzma not found, xz filter will be disabled" >&5 22017$as_echo "$as_me: WARNING: liblzma not found, xz filter will be disabled" >&2;} 22018elif test $pkg_failed = untried; then 22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22020$as_echo "no" >&6; } 22021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: liblzma not found, xz filter will be disabled" >&5 22022$as_echo "$as_me: WARNING: liblzma not found, xz filter will be disabled" >&2;} 22023else 22024 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS 22025 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS 22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22027$as_echo "yes" >&6; } 22028 22029 22030 22031 22032$as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h 22033 22034 22035fi 22036 22037fi 22038 if test "x$LIBLZMA_LIBS" != "x"; then 22039 HAVE_LIBLZMA_TRUE= 22040 HAVE_LIBLZMA_FALSE='#' 22041else 22042 HAVE_LIBLZMA_TRUE='#' 22043 HAVE_LIBLZMA_FALSE= 22044fi 22045 22046 22047 22048# Check whether --with-libguestfs was given. 22049if test "${with_libguestfs+set}" = set; then : 22050 withval=$with_libguestfs; 22051else 22052 with_libguestfs=check 22053fi 22054 22055if test "$with_libguestfs" != "no"; then : 22056 22057 22058pkg_failed=no 22059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUESTFS" >&5 22060$as_echo_n "checking for LIBGUESTFS... " >&6; } 22061 22062if test -n "$LIBGUESTFS_CFLAGS"; then 22063 pkg_cv_LIBGUESTFS_CFLAGS="$LIBGUESTFS_CFLAGS" 22064 elif test -n "$PKG_CONFIG"; then 22065 if test -n "$PKG_CONFIG" && \ 22066 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libguestfs\""; } >&5 22067 ($PKG_CONFIG --exists --print-errors "libguestfs") 2>&5 22068 ac_status=$? 22069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22070 test $ac_status = 0; }; then 22071 pkg_cv_LIBGUESTFS_CFLAGS=`$PKG_CONFIG --cflags "libguestfs" 2>/dev/null` 22072 test "x$?" != "x0" && pkg_failed=yes 22073else 22074 pkg_failed=yes 22075fi 22076 else 22077 pkg_failed=untried 22078fi 22079if test -n "$LIBGUESTFS_LIBS"; then 22080 pkg_cv_LIBGUESTFS_LIBS="$LIBGUESTFS_LIBS" 22081 elif test -n "$PKG_CONFIG"; then 22082 if test -n "$PKG_CONFIG" && \ 22083 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libguestfs\""; } >&5 22084 ($PKG_CONFIG --exists --print-errors "libguestfs") 2>&5 22085 ac_status=$? 22086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22087 test $ac_status = 0; }; then 22088 pkg_cv_LIBGUESTFS_LIBS=`$PKG_CONFIG --libs "libguestfs" 2>/dev/null` 22089 test "x$?" != "x0" && pkg_failed=yes 22090else 22091 pkg_failed=yes 22092fi 22093 else 22094 pkg_failed=untried 22095fi 22096 22097 22098 22099if test $pkg_failed = yes; then 22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22101$as_echo "no" >&6; } 22102 22103if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22104 _pkg_short_errors_supported=yes 22105else 22106 _pkg_short_errors_supported=no 22107fi 22108 if test $_pkg_short_errors_supported = yes; then 22109 LIBGUESTFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libguestfs" 2>&1` 22110 else 22111 LIBGUESTFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libguestfs" 2>&1` 22112 fi 22113 # Put the nasty error message in config.log where it belongs 22114 echo "$LIBGUESTFS_PKG_ERRORS" >&5 22115 22116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libguestfs not found, guestfs plugin and tests will be disabled" >&5 22117$as_echo "$as_me: WARNING: libguestfs not found, guestfs plugin and tests will be disabled" >&2;} 22118elif test $pkg_failed = untried; then 22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22120$as_echo "no" >&6; } 22121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libguestfs not found, guestfs plugin and tests will be disabled" >&5 22122$as_echo "$as_me: WARNING: libguestfs not found, guestfs plugin and tests will be disabled" >&2;} 22123else 22124 LIBGUESTFS_CFLAGS=$pkg_cv_LIBGUESTFS_CFLAGS 22125 LIBGUESTFS_LIBS=$pkg_cv_LIBGUESTFS_LIBS 22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22127$as_echo "yes" >&6; } 22128 22129 # Although the library was found, we want to make sure it supports nbd 22130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22131/* end confdefs.h. */ 22132 22133#include <guestfs.h> 22134 22135int 22136main () 22137{ 22138 22139#ifndef GUESTFS_ADD_DRIVE_OPTS_PROTOCOL 22140#error unsupported 22141#endif 22142 22143 ; 22144 return 0; 22145} 22146_ACEOF 22147if ac_fn_c_try_compile "$LINENO"; then : 22148 22149 22150 22151 22152$as_echo "#define HAVE_LIBGUESTFS 1" >>confdefs.h 22153 22154 22155else 22156 22157 LIBGUESTFS_LIBS= 22158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libguestfs too old, guestfs plugin and tests will be disabled" >&5 22159$as_echo "$as_me: WARNING: libguestfs too old, guestfs plugin and tests will be disabled" >&2;} 22160fi 22161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22162 22163fi 22164 22165fi 22166 if test "x$LIBGUESTFS_LIBS" != "x"; then 22167 HAVE_LIBGUESTFS_TRUE= 22168 HAVE_LIBGUESTFS_FALSE='#' 22169else 22170 HAVE_LIBGUESTFS_TRUE='#' 22171 HAVE_LIBGUESTFS_FALSE= 22172fi 22173 22174 22175# Extract the first word of "guestfish", so it can be a program name with args. 22176set dummy guestfish; ac_word=$2 22177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22178$as_echo_n "checking for $ac_word... " >&6; } 22179if ${ac_cv_prog_GUESTFISH+:} false; then : 22180 $as_echo_n "(cached) " >&6 22181else 22182 if test -n "$GUESTFISH"; then 22183 ac_cv_prog_GUESTFISH="$GUESTFISH" # Let the user override the test. 22184else 22185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22186for as_dir in $PATH 22187do 22188 IFS=$as_save_IFS 22189 test -z "$as_dir" && as_dir=. 22190 for ac_exec_ext in '' $ac_executable_extensions; do 22191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22192 ac_cv_prog_GUESTFISH="guestfish" 22193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22194 break 2 22195 fi 22196done 22197 done 22198IFS=$as_save_IFS 22199 22200 test -z "$ac_cv_prog_GUESTFISH" && ac_cv_prog_GUESTFISH="no" 22201fi 22202fi 22203GUESTFISH=$ac_cv_prog_GUESTFISH 22204if test -n "$GUESTFISH"; then 22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUESTFISH" >&5 22206$as_echo "$GUESTFISH" >&6; } 22207else 22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22209$as_echo "no" >&6; } 22210fi 22211 22212 22213 if test "x$GUESTFISH" != "xno"; then 22214 HAVE_GUESTFISH_TRUE= 22215 HAVE_GUESTFISH_FALSE='#' 22216else 22217 HAVE_GUESTFISH_TRUE='#' 22218 HAVE_GUESTFISH_FALSE= 22219fi 22220 22221 22222 22223# Check whether --with-ext2 was given. 22224if test "${with_ext2+set}" = set; then : 22225 withval=$with_ext2; 22226else 22227 with_ext2=check 22228fi 22229 22230if test "$with_ext2" != "no"; then : 22231 22232 22233pkg_failed=no 22234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXT2FS" >&5 22235$as_echo_n "checking for EXT2FS... " >&6; } 22236 22237if test -n "$EXT2FS_CFLAGS"; then 22238 pkg_cv_EXT2FS_CFLAGS="$EXT2FS_CFLAGS" 22239 elif test -n "$PKG_CONFIG"; then 22240 if test -n "$PKG_CONFIG" && \ 22241 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs\""; } >&5 22242 ($PKG_CONFIG --exists --print-errors "ext2fs") 2>&5 22243 ac_status=$? 22244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22245 test $ac_status = 0; }; then 22246 pkg_cv_EXT2FS_CFLAGS=`$PKG_CONFIG --cflags "ext2fs" 2>/dev/null` 22247 test "x$?" != "x0" && pkg_failed=yes 22248else 22249 pkg_failed=yes 22250fi 22251 else 22252 pkg_failed=untried 22253fi 22254if test -n "$EXT2FS_LIBS"; then 22255 pkg_cv_EXT2FS_LIBS="$EXT2FS_LIBS" 22256 elif test -n "$PKG_CONFIG"; then 22257 if test -n "$PKG_CONFIG" && \ 22258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs\""; } >&5 22259 ($PKG_CONFIG --exists --print-errors "ext2fs") 2>&5 22260 ac_status=$? 22261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22262 test $ac_status = 0; }; then 22263 pkg_cv_EXT2FS_LIBS=`$PKG_CONFIG --libs "ext2fs" 2>/dev/null` 22264 test "x$?" != "x0" && pkg_failed=yes 22265else 22266 pkg_failed=yes 22267fi 22268 else 22269 pkg_failed=untried 22270fi 22271 22272 22273 22274if test $pkg_failed = yes; then 22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22276$as_echo "no" >&6; } 22277 22278if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22279 _pkg_short_errors_supported=yes 22280else 22281 _pkg_short_errors_supported=no 22282fi 22283 if test $_pkg_short_errors_supported = yes; then 22284 EXT2FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ext2fs" 2>&1` 22285 else 22286 EXT2FS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ext2fs" 2>&1` 22287 fi 22288 # Put the nasty error message in config.log where it belongs 22289 echo "$EXT2FS_PKG_ERRORS" >&5 22290 22291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ext2fs not found, ext2 plugin will be disabled" >&5 22292$as_echo "$as_me: WARNING: ext2fs not found, ext2 plugin will be disabled" >&2;} 22293elif test $pkg_failed = untried; then 22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22295$as_echo "no" >&6; } 22296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ext2fs not found, ext2 plugin will be disabled" >&5 22297$as_echo "$as_me: WARNING: ext2fs not found, ext2 plugin will be disabled" >&2;} 22298else 22299 EXT2FS_CFLAGS=$pkg_cv_EXT2FS_CFLAGS 22300 EXT2FS_LIBS=$pkg_cv_EXT2FS_LIBS 22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22302$as_echo "yes" >&6; } 22303 22304 22305 22306 22307$as_echo "#define HAVE_EXT2FS 1" >>confdefs.h 22308 22309 22310fi 22311 22312pkg_failed=no 22313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COM_ERR" >&5 22314$as_echo_n "checking for COM_ERR... " >&6; } 22315 22316if test -n "$COM_ERR_CFLAGS"; then 22317 pkg_cv_COM_ERR_CFLAGS="$COM_ERR_CFLAGS" 22318 elif test -n "$PKG_CONFIG"; then 22319 if test -n "$PKG_CONFIG" && \ 22320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5 22321 ($PKG_CONFIG --exists --print-errors "com_err") 2>&5 22322 ac_status=$? 22323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22324 test $ac_status = 0; }; then 22325 pkg_cv_COM_ERR_CFLAGS=`$PKG_CONFIG --cflags "com_err" 2>/dev/null` 22326 test "x$?" != "x0" && pkg_failed=yes 22327else 22328 pkg_failed=yes 22329fi 22330 else 22331 pkg_failed=untried 22332fi 22333if test -n "$COM_ERR_LIBS"; then 22334 pkg_cv_COM_ERR_LIBS="$COM_ERR_LIBS" 22335 elif test -n "$PKG_CONFIG"; then 22336 if test -n "$PKG_CONFIG" && \ 22337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5 22338 ($PKG_CONFIG --exists --print-errors "com_err") 2>&5 22339 ac_status=$? 22340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22341 test $ac_status = 0; }; then 22342 pkg_cv_COM_ERR_LIBS=`$PKG_CONFIG --libs "com_err" 2>/dev/null` 22343 test "x$?" != "x0" && pkg_failed=yes 22344else 22345 pkg_failed=yes 22346fi 22347 else 22348 pkg_failed=untried 22349fi 22350 22351 22352 22353if test $pkg_failed = yes; then 22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22355$as_echo "no" >&6; } 22356 22357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22358 _pkg_short_errors_supported=yes 22359else 22360 _pkg_short_errors_supported=no 22361fi 22362 if test $_pkg_short_errors_supported = yes; then 22363 COM_ERR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "com_err" 2>&1` 22364 else 22365 COM_ERR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "com_err" 2>&1` 22366 fi 22367 # Put the nasty error message in config.log where it belongs 22368 echo "$COM_ERR_PKG_ERRORS" >&5 22369 22370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: com_err not found, ext2 plugin will be disabled" >&5 22371$as_echo "$as_me: WARNING: com_err not found, ext2 plugin will be disabled" >&2;} 22372elif test $pkg_failed = untried; then 22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22374$as_echo "no" >&6; } 22375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: com_err not found, ext2 plugin will be disabled" >&5 22376$as_echo "$as_me: WARNING: com_err not found, ext2 plugin will be disabled" >&2;} 22377else 22378 COM_ERR_CFLAGS=$pkg_cv_COM_ERR_CFLAGS 22379 COM_ERR_LIBS=$pkg_cv_COM_ERR_LIBS 22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22381$as_echo "yes" >&6; } 22382 22383 22384 22385 22386$as_echo "#define HAVE_COM_ERR 1" >>confdefs.h 22387 22388 22389fi 22390 22391 ac_fn_c_check_member "$LINENO" "struct struct_io_manager" "cache_readahead" "ac_cv_member_struct_struct_io_manager_cache_readahead" "$ac_includes_default" 22392if test "x$ac_cv_member_struct_struct_io_manager_cache_readahead" = xyes; then : 22393 22394cat >>confdefs.h <<_ACEOF 22395#define HAVE_STRUCT_STRUCT_IO_MANAGER_CACHE_READAHEAD 1 22396_ACEOF 22397 22398 22399fi 22400ac_fn_c_check_member "$LINENO" "struct struct_io_manager" "zeroout" "ac_cv_member_struct_struct_io_manager_zeroout" "$ac_includes_default" 22401if test "x$ac_cv_member_struct_struct_io_manager_zeroout" = xyes; then : 22402 22403cat >>confdefs.h <<_ACEOF 22404#define HAVE_STRUCT_STRUCT_IO_MANAGER_ZEROOUT 1 22405_ACEOF 22406 22407 22408fi 22409 22410 22411fi 22412 if test "x$EXT2FS_LIBS" != "x" && test "x$COM_ERR_LIBS" != "x"; then 22413 HAVE_EXT2_TRUE= 22414 HAVE_EXT2_FALSE='#' 22415else 22416 HAVE_EXT2_TRUE='#' 22417 HAVE_EXT2_FALSE= 22418fi 22419 22420 22421# Check whether --enable-vddk was given. 22422if test "${enable_vddk+set}" = set; then : 22423 enableval=$enable_vddk; 22424else 22425 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host CPU is compatible with VDDK" >&5 22427$as_echo_n "checking if the host CPU is compatible with VDDK... " >&6; } 22428 if test "$host_cpu" = "x86_64"; then : 22429 22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($host_cpu)" >&5 22431$as_echo "yes ($host_cpu)" >&6; } 22432 enable_vddk=yes 22433 22434else 22435 22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($host_cpu)" >&5 22437$as_echo "no ($host_cpu)" >&6; } 22438 enable_vddk=no 22439 22440fi 22441 22442fi 22443 22444 if test "x$enable_vddk" = "xyes"; then 22445 HAVE_VDDK_TRUE= 22446 HAVE_VDDK_FALSE='#' 22447else 22448 HAVE_VDDK_TRUE='#' 22449 HAVE_VDDK_FALSE= 22450fi 22451 22452 22453NBDKIT_VERSION_MAJOR=1 22454NBDKIT_VERSION_MINOR=20 22455NBDKIT_VERSION_MICRO=4 22456 22457 22458 22459 22460ac_config_headers="$ac_config_headers config.h" 22461 22462ac_config_files="$ac_config_files podwrapper.pl" 22463 22464ac_config_files="$ac_config_files common/protocol/generate-protostrings.sh" 22465 22466ac_config_files="$ac_config_files Makefile bash/Makefile common/bitmap/Makefile common/gpt/Makefile common/include/Makefile common/protocol/Makefile common/regions/Makefile common/sparse/Makefile common/utils/Makefile docs/Makefile include/Makefile include/nbdkit-version.h plugins/Makefile plugins/curl/Makefile plugins/data/Makefile plugins/eval/Makefile plugins/example1/Makefile plugins/example2/Makefile plugins/example3/Makefile plugins/example4/Makefile plugins/ext2/Makefile plugins/file/Makefile plugins/floppy/Makefile plugins/full/Makefile plugins/golang/Makefile plugins/guestfs/Makefile plugins/gzip/Makefile plugins/info/Makefile plugins/iso/Makefile plugins/libvirt/Makefile plugins/linuxdisk/Makefile plugins/lua/Makefile plugins/memory/Makefile plugins/nbd/Makefile plugins/null/Makefile plugins/ocaml/Makefile plugins/partitioning/Makefile plugins/pattern/Makefile plugins/perl/Makefile plugins/python/Makefile plugins/random/Makefile plugins/ruby/Makefile plugins/rust/Cargo.toml plugins/rust/Makefile plugins/sh/Makefile plugins/ssh/Makefile plugins/split/Makefile plugins/streaming/Makefile plugins/tar/Makefile plugins/tcl/Makefile plugins/tmpdisk/Makefile plugins/vddk/Makefile plugins/zero/Makefile filters/Makefile filters/blocksize/Makefile filters/cache/Makefile filters/cacheextents/Makefile filters/cow/Makefile filters/delay/Makefile filters/error/Makefile filters/exitlast/Makefile filters/ext2/Makefile filters/extentlist/Makefile filters/fua/Makefile filters/ip/Makefile filters/limit/Makefile filters/log/Makefile filters/nocache/Makefile filters/noextents/Makefile filters/nofilter/Makefile filters/noparallel/Makefile filters/nozero/Makefile filters/offset/Makefile filters/partition/Makefile filters/rate/Makefile filters/readahead/Makefile filters/retry/Makefile filters/stats/Makefile filters/truncate/Makefile filters/xz/Makefile fuzzing/Makefile server/local/nbdkit.pc server/Makefile server/nbdkit.pc tests/functions.sh tests/Makefile valgrind/Makefile" 22467 22468 22469cat >confcache <<\_ACEOF 22470# This file is a shell script that caches the results of configure 22471# tests run on this system so they can be shared between configure 22472# scripts and configure runs, see configure's option --config-cache. 22473# It is not useful on other systems. If it contains results you don't 22474# want to keep, you may remove or edit it. 22475# 22476# config.status only pays attention to the cache file if you give it 22477# the --recheck option to rerun configure. 22478# 22479# `ac_cv_env_foo' variables (set or unset) will be overridden when 22480# loading this file, other *unset* `ac_cv_foo' will be assigned the 22481# following values. 22482 22483_ACEOF 22484 22485# The following way of writing the cache mishandles newlines in values, 22486# but we know of no workaround that is simple, portable, and efficient. 22487# So, we kill variables containing newlines. 22488# Ultrix sh set writes to stderr and can't be redirected directly, 22489# and sets the high bit in the cache file unless we assign to the vars. 22490( 22491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22492 eval ac_val=\$$ac_var 22493 case $ac_val in #( 22494 *${as_nl}*) 22495 case $ac_var in #( 22496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22497$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22498 esac 22499 case $ac_var in #( 22500 _ | IFS | as_nl) ;; #( 22501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22502 *) { eval $ac_var=; unset $ac_var;} ;; 22503 esac ;; 22504 esac 22505 done 22506 22507 (set) 2>&1 | 22508 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22509 *${as_nl}ac_space=\ *) 22510 # `set' does not quote correctly, so add quotes: double-quote 22511 # substitution turns \\\\ into \\, and sed turns \\ into \. 22512 sed -n \ 22513 "s/'/'\\\\''/g; 22514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22515 ;; #( 22516 *) 22517 # `set' quotes correctly as required by POSIX, so do not add quotes. 22518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22519 ;; 22520 esac | 22521 sort 22522) | 22523 sed ' 22524 /^ac_cv_env_/b end 22525 t clear 22526 :clear 22527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22528 t end 22529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22530 :end' >>confcache 22531if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22532 if test -w "$cache_file"; then 22533 if test "x$cache_file" != "x/dev/null"; then 22534 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22535$as_echo "$as_me: updating cache $cache_file" >&6;} 22536 if test ! -f "$cache_file" || test -h "$cache_file"; then 22537 cat confcache >"$cache_file" 22538 else 22539 case $cache_file in #( 22540 */* | ?:*) 22541 mv -f confcache "$cache_file"$$ && 22542 mv -f "$cache_file"$$ "$cache_file" ;; #( 22543 *) 22544 mv -f confcache "$cache_file" ;; 22545 esac 22546 fi 22547 fi 22548 else 22549 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22550$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22551 fi 22552fi 22553rm -f confcache 22554 22555test "x$prefix" = xNONE && prefix=$ac_default_prefix 22556# Let make expand exec_prefix. 22557test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22558 22559DEFS=-DHAVE_CONFIG_H 22560 22561ac_libobjs= 22562ac_ltlibobjs= 22563U= 22564for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22565 # 1. Remove the extension, and $U if already installed. 22566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22569 # will be set to the directory where LIBOBJS objects are built. 22570 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22571 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22572done 22573LIBOBJS=$ac_libobjs 22574 22575LTLIBOBJS=$ac_ltlibobjs 22576 22577 22578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22579$as_echo_n "checking that generated files are newer than configure... " >&6; } 22580 if test -n "$am_sleep_pid"; then 22581 # Hide warnings about reused PIDs. 22582 wait $am_sleep_pid 2>/dev/null 22583 fi 22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 22585$as_echo "done" >&6; } 22586if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22587 as_fn_error $? "conditional \"AMDEP\" was never defined. 22588Usually this means the macro was only invoked conditionally." "$LINENO" 5 22589fi 22590if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22591 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22592Usually this means the macro was only invoked conditionally." "$LINENO" 5 22593fi 22594 if test -n "$EXEEXT"; then 22595 am__EXEEXT_TRUE= 22596 am__EXEEXT_FALSE='#' 22597else 22598 am__EXEEXT_TRUE='#' 22599 am__EXEEXT_FALSE= 22600fi 22601 22602if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22603 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 22604Usually this means the macro was only invoked conditionally." "$LINENO" 5 22605fi 22606if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 22607 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 22608Usually this means the macro was only invoked conditionally." "$LINENO" 5 22609fi 22610if test -z "${CAN_TEST_ANSI_C_TRUE}" && test -z "${CAN_TEST_ANSI_C_FALSE}"; then 22611 as_fn_error $? "conditional \"CAN_TEST_ANSI_C\" was never defined. 22612Usually this means the macro was only invoked conditionally." "$LINENO" 5 22613fi 22614if test -z "${HAVE_ICONV_TRUE}" && test -z "${HAVE_ICONV_FALSE}"; then 22615 as_fn_error $? "conditional \"HAVE_ICONV\" was never defined. 22616Usually this means the macro was only invoked conditionally." "$LINENO" 5 22617fi 22618if test -z "${USE_LINKER_SCRIPT_FOR_SERVER_TRUE}" && test -z "${USE_LINKER_SCRIPT_FOR_SERVER_FALSE}"; then 22619 as_fn_error $? "conditional \"USE_LINKER_SCRIPT_FOR_SERVER\" was never defined. 22620Usually this means the macro was only invoked conditionally." "$LINENO" 5 22621fi 22622if test -z "${HAVE_MKE2FS_WITH_D_TRUE}" && test -z "${HAVE_MKE2FS_WITH_D_FALSE}"; then 22623 as_fn_error $? "conditional \"HAVE_MKE2FS_WITH_D\" was never defined. 22624Usually this means the macro was only invoked conditionally." "$LINENO" 5 22625fi 22626if test -z "${ENABLE_LIBFUZZER_TRUE}" && test -z "${ENABLE_LIBFUZZER_FALSE}"; then 22627 as_fn_error $? "conditional \"ENABLE_LIBFUZZER\" was never defined. 22628Usually this means the macro was only invoked conditionally." "$LINENO" 5 22629fi 22630if test -z "${HAVE_BASH_COMPLETION_TRUE}" && test -z "${HAVE_BASH_COMPLETION_FALSE}"; then 22631 as_fn_error $? "conditional \"HAVE_BASH_COMPLETION\" was never defined. 22632Usually this means the macro was only invoked conditionally." "$LINENO" 5 22633fi 22634if test -z "${HAVE_POD_TRUE}" && test -z "${HAVE_POD_FALSE}"; then 22635 as_fn_error $? "conditional \"HAVE_POD\" was never defined. 22636Usually this means the macro was only invoked conditionally." "$LINENO" 5 22637fi 22638if test -z "${HAVE_PLUGINS_TRUE}" && test -z "${HAVE_PLUGINS_FALSE}"; then 22639 as_fn_error $? "conditional \"HAVE_PLUGINS\" was never defined. 22640Usually this means the macro was only invoked conditionally." "$LINENO" 5 22641fi 22642if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 22643 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 22644Usually this means the macro was only invoked conditionally." "$LINENO" 5 22645fi 22646if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 22647 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 22648Usually this means the macro was only invoked conditionally." "$LINENO" 5 22649fi 22650if test -z "${HAVE_OCAML_TRUE}" && test -z "${HAVE_OCAML_FALSE}"; then 22651 as_fn_error $? "conditional \"HAVE_OCAML\" was never defined. 22652Usually this means the macro was only invoked conditionally." "$LINENO" 5 22653fi 22654if test -z "${HAVE_RUST_TRUE}" && test -z "${HAVE_RUST_FALSE}"; then 22655 as_fn_error $? "conditional \"HAVE_RUST\" was never defined. 22656Usually this means the macro was only invoked conditionally." "$LINENO" 5 22657fi 22658if test -z "${HAVE_RUBY_TRUE}" && test -z "${HAVE_RUBY_FALSE}"; then 22659 as_fn_error $? "conditional \"HAVE_RUBY\" was never defined. 22660Usually this means the macro was only invoked conditionally." "$LINENO" 5 22661fi 22662if test -z "${HAVE_TCL_TRUE}" && test -z "${HAVE_TCL_FALSE}"; then 22663 as_fn_error $? "conditional \"HAVE_TCL\" was never defined. 22664Usually this means the macro was only invoked conditionally." "$LINENO" 5 22665fi 22666if test -z "${HAVE_LUA_TRUE}" && test -z "${HAVE_LUA_FALSE}"; then 22667 as_fn_error $? "conditional \"HAVE_LUA\" was never defined. 22668Usually this means the macro was only invoked conditionally." "$LINENO" 5 22669fi 22670if test -z "${HAVE_GOLANG_TRUE}" && test -z "${HAVE_GOLANG_FALSE}"; then 22671 as_fn_error $? "conditional \"HAVE_GOLANG\" was never defined. 22672Usually this means the macro was only invoked conditionally." "$LINENO" 5 22673fi 22674if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then 22675 as_fn_error $? "conditional \"HAVE_CURL\" was never defined. 22676Usually this means the macro was only invoked conditionally." "$LINENO" 5 22677fi 22678if test -z "${HAVE_SSH_TRUE}" && test -z "${HAVE_SSH_FALSE}"; then 22679 as_fn_error $? "conditional \"HAVE_SSH\" was never defined. 22680Usually this means the macro was only invoked conditionally." "$LINENO" 5 22681fi 22682if test -z "${HAVE_ISO_TRUE}" && test -z "${HAVE_ISO_FALSE}"; then 22683 as_fn_error $? "conditional \"HAVE_ISO\" was never defined. 22684Usually this means the macro was only invoked conditionally." "$LINENO" 5 22685fi 22686if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then 22687 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined. 22688Usually this means the macro was only invoked conditionally." "$LINENO" 5 22689fi 22690if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then 22691 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined. 22692Usually this means the macro was only invoked conditionally." "$LINENO" 5 22693fi 22694if test -z "${HAVE_LIBNBD_TRUE}" && test -z "${HAVE_LIBNBD_FALSE}"; then 22695 as_fn_error $? "conditional \"HAVE_LIBNBD\" was never defined. 22696Usually this means the macro was only invoked conditionally." "$LINENO" 5 22697fi 22698if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then 22699 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined. 22700Usually this means the macro was only invoked conditionally." "$LINENO" 5 22701fi 22702if test -z "${HAVE_LIBGUESTFS_TRUE}" && test -z "${HAVE_LIBGUESTFS_FALSE}"; then 22703 as_fn_error $? "conditional \"HAVE_LIBGUESTFS\" was never defined. 22704Usually this means the macro was only invoked conditionally." "$LINENO" 5 22705fi 22706if test -z "${HAVE_GUESTFISH_TRUE}" && test -z "${HAVE_GUESTFISH_FALSE}"; then 22707 as_fn_error $? "conditional \"HAVE_GUESTFISH\" was never defined. 22708Usually this means the macro was only invoked conditionally." "$LINENO" 5 22709fi 22710if test -z "${HAVE_EXT2_TRUE}" && test -z "${HAVE_EXT2_FALSE}"; then 22711 as_fn_error $? "conditional \"HAVE_EXT2\" was never defined. 22712Usually this means the macro was only invoked conditionally." "$LINENO" 5 22713fi 22714if test -z "${HAVE_VDDK_TRUE}" && test -z "${HAVE_VDDK_FALSE}"; then 22715 as_fn_error $? "conditional \"HAVE_VDDK\" was never defined. 22716Usually this means the macro was only invoked conditionally." "$LINENO" 5 22717fi 22718 22719: "${CONFIG_STATUS=./config.status}" 22720ac_write_fail=0 22721ac_clean_files_save=$ac_clean_files 22722ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22723{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22724$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22725as_write_fail=0 22726cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22727#! $SHELL 22728# Generated by $as_me. 22729# Run this file to recreate the current configuration. 22730# Compiler output produced by configure, useful for debugging 22731# configure, is in config.log if it exists. 22732 22733debug=false 22734ac_cs_recheck=false 22735ac_cs_silent=false 22736 22737SHELL=\${CONFIG_SHELL-$SHELL} 22738export SHELL 22739_ASEOF 22740cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22741## -------------------- ## 22742## M4sh Initialization. ## 22743## -------------------- ## 22744 22745# Be more Bourne compatible 22746DUALCASE=1; export DUALCASE # for MKS sh 22747if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22748 emulate sh 22749 NULLCMD=: 22750 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22751 # is contrary to our usage. Disable this feature. 22752 alias -g '${1+"$@"}'='"$@"' 22753 setopt NO_GLOB_SUBST 22754else 22755 case `(set -o) 2>/dev/null` in #( 22756 *posix*) : 22757 set -o posix ;; #( 22758 *) : 22759 ;; 22760esac 22761fi 22762 22763 22764as_nl=' 22765' 22766export as_nl 22767# Printing a long string crashes Solaris 7 /usr/bin/printf. 22768as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22769as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22771# Prefer a ksh shell builtin over an external printf program on Solaris, 22772# but without wasting forks for bash or zsh. 22773if test -z "$BASH_VERSION$ZSH_VERSION" \ 22774 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22775 as_echo='print -r --' 22776 as_echo_n='print -rn --' 22777elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22778 as_echo='printf %s\n' 22779 as_echo_n='printf %s' 22780else 22781 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22782 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22783 as_echo_n='/usr/ucb/echo -n' 22784 else 22785 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22786 as_echo_n_body='eval 22787 arg=$1; 22788 case $arg in #( 22789 *"$as_nl"*) 22790 expr "X$arg" : "X\\(.*\\)$as_nl"; 22791 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22792 esac; 22793 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22794 ' 22795 export as_echo_n_body 22796 as_echo_n='sh -c $as_echo_n_body as_echo' 22797 fi 22798 export as_echo_body 22799 as_echo='sh -c $as_echo_body as_echo' 22800fi 22801 22802# The user is always right. 22803if test "${PATH_SEPARATOR+set}" != set; then 22804 PATH_SEPARATOR=: 22805 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22806 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22807 PATH_SEPARATOR=';' 22808 } 22809fi 22810 22811 22812# IFS 22813# We need space, tab and new line, in precisely that order. Quoting is 22814# there to prevent editors from complaining about space-tab. 22815# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22816# splitting by setting IFS to empty value.) 22817IFS=" "" $as_nl" 22818 22819# Find who we are. Look in the path if we contain no directory separator. 22820as_myself= 22821case $0 in #(( 22822 *[\\/]* ) as_myself=$0 ;; 22823 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22824for as_dir in $PATH 22825do 22826 IFS=$as_save_IFS 22827 test -z "$as_dir" && as_dir=. 22828 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22829 done 22830IFS=$as_save_IFS 22831 22832 ;; 22833esac 22834# We did not find ourselves, most probably we were run as `sh COMMAND' 22835# in which case we are not to be found in the path. 22836if test "x$as_myself" = x; then 22837 as_myself=$0 22838fi 22839if test ! -f "$as_myself"; then 22840 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22841 exit 1 22842fi 22843 22844# Unset variables that we do not need and which cause bugs (e.g. in 22845# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22846# suppresses any "Segmentation fault" message there. '((' could 22847# trigger a bug in pdksh 5.2.14. 22848for as_var in BASH_ENV ENV MAIL MAILPATH 22849do eval test x\${$as_var+set} = xset \ 22850 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22851done 22852PS1='$ ' 22853PS2='> ' 22854PS4='+ ' 22855 22856# NLS nuisances. 22857LC_ALL=C 22858export LC_ALL 22859LANGUAGE=C 22860export LANGUAGE 22861 22862# CDPATH. 22863(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22864 22865 22866# as_fn_error STATUS ERROR [LINENO LOG_FD] 22867# ---------------------------------------- 22868# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22869# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22870# script with STATUS, using 1 if that was 0. 22871as_fn_error () 22872{ 22873 as_status=$1; test $as_status -eq 0 && as_status=1 22874 if test "$4"; then 22875 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22876 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22877 fi 22878 $as_echo "$as_me: error: $2" >&2 22879 as_fn_exit $as_status 22880} # as_fn_error 22881 22882 22883# as_fn_set_status STATUS 22884# ----------------------- 22885# Set $? to STATUS, without forking. 22886as_fn_set_status () 22887{ 22888 return $1 22889} # as_fn_set_status 22890 22891# as_fn_exit STATUS 22892# ----------------- 22893# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22894as_fn_exit () 22895{ 22896 set +e 22897 as_fn_set_status $1 22898 exit $1 22899} # as_fn_exit 22900 22901# as_fn_unset VAR 22902# --------------- 22903# Portably unset VAR. 22904as_fn_unset () 22905{ 22906 { eval $1=; unset $1;} 22907} 22908as_unset=as_fn_unset 22909# as_fn_append VAR VALUE 22910# ---------------------- 22911# Append the text in VALUE to the end of the definition contained in VAR. Take 22912# advantage of any shell optimizations that allow amortized linear growth over 22913# repeated appends, instead of the typical quadratic growth present in naive 22914# implementations. 22915if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22916 eval 'as_fn_append () 22917 { 22918 eval $1+=\$2 22919 }' 22920else 22921 as_fn_append () 22922 { 22923 eval $1=\$$1\$2 22924 } 22925fi # as_fn_append 22926 22927# as_fn_arith ARG... 22928# ------------------ 22929# Perform arithmetic evaluation on the ARGs, and store the result in the 22930# global $as_val. Take advantage of shells that can avoid forks. The arguments 22931# must be portable across $(()) and expr. 22932if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22933 eval 'as_fn_arith () 22934 { 22935 as_val=$(( $* )) 22936 }' 22937else 22938 as_fn_arith () 22939 { 22940 as_val=`expr "$@" || test $? -eq 1` 22941 } 22942fi # as_fn_arith 22943 22944 22945if expr a : '\(a\)' >/dev/null 2>&1 && 22946 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22947 as_expr=expr 22948else 22949 as_expr=false 22950fi 22951 22952if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22953 as_basename=basename 22954else 22955 as_basename=false 22956fi 22957 22958if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22959 as_dirname=dirname 22960else 22961 as_dirname=false 22962fi 22963 22964as_me=`$as_basename -- "$0" || 22965$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22966 X"$0" : 'X\(//\)$' \| \ 22967 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22968$as_echo X/"$0" | 22969 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22970 s//\1/ 22971 q 22972 } 22973 /^X\/\(\/\/\)$/{ 22974 s//\1/ 22975 q 22976 } 22977 /^X\/\(\/\).*/{ 22978 s//\1/ 22979 q 22980 } 22981 s/.*/./; q'` 22982 22983# Avoid depending upon Character Ranges. 22984as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22985as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22986as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22987as_cr_digits='0123456789' 22988as_cr_alnum=$as_cr_Letters$as_cr_digits 22989 22990ECHO_C= ECHO_N= ECHO_T= 22991case `echo -n x` in #((((( 22992-n*) 22993 case `echo 'xy\c'` in 22994 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22995 xy) ECHO_C='\c';; 22996 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22997 ECHO_T=' ';; 22998 esac;; 22999*) 23000 ECHO_N='-n';; 23001esac 23002 23003rm -f conf$$ conf$$.exe conf$$.file 23004if test -d conf$$.dir; then 23005 rm -f conf$$.dir/conf$$.file 23006else 23007 rm -f conf$$.dir 23008 mkdir conf$$.dir 2>/dev/null 23009fi 23010if (echo >conf$$.file) 2>/dev/null; then 23011 if ln -s conf$$.file conf$$ 2>/dev/null; then 23012 as_ln_s='ln -s' 23013 # ... but there are two gotchas: 23014 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23015 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23016 # In both cases, we have to default to `cp -pR'. 23017 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23018 as_ln_s='cp -pR' 23019 elif ln conf$$.file conf$$ 2>/dev/null; then 23020 as_ln_s=ln 23021 else 23022 as_ln_s='cp -pR' 23023 fi 23024else 23025 as_ln_s='cp -pR' 23026fi 23027rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23028rmdir conf$$.dir 2>/dev/null 23029 23030 23031# as_fn_mkdir_p 23032# ------------- 23033# Create "$as_dir" as a directory, including parents if necessary. 23034as_fn_mkdir_p () 23035{ 23036 23037 case $as_dir in #( 23038 -*) as_dir=./$as_dir;; 23039 esac 23040 test -d "$as_dir" || eval $as_mkdir_p || { 23041 as_dirs= 23042 while :; do 23043 case $as_dir in #( 23044 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23045 *) as_qdir=$as_dir;; 23046 esac 23047 as_dirs="'$as_qdir' $as_dirs" 23048 as_dir=`$as_dirname -- "$as_dir" || 23049$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23050 X"$as_dir" : 'X\(//\)[^/]' \| \ 23051 X"$as_dir" : 'X\(//\)$' \| \ 23052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23053$as_echo X"$as_dir" | 23054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23055 s//\1/ 23056 q 23057 } 23058 /^X\(\/\/\)[^/].*/{ 23059 s//\1/ 23060 q 23061 } 23062 /^X\(\/\/\)$/{ 23063 s//\1/ 23064 q 23065 } 23066 /^X\(\/\).*/{ 23067 s//\1/ 23068 q 23069 } 23070 s/.*/./; q'` 23071 test -d "$as_dir" && break 23072 done 23073 test -z "$as_dirs" || eval "mkdir $as_dirs" 23074 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23075 23076 23077} # as_fn_mkdir_p 23078if mkdir -p . 2>/dev/null; then 23079 as_mkdir_p='mkdir -p "$as_dir"' 23080else 23081 test -d ./-p && rmdir ./-p 23082 as_mkdir_p=false 23083fi 23084 23085 23086# as_fn_executable_p FILE 23087# ----------------------- 23088# Test if FILE is an executable regular file. 23089as_fn_executable_p () 23090{ 23091 test -f "$1" && test -x "$1" 23092} # as_fn_executable_p 23093as_test_x='test -x' 23094as_executable_p=as_fn_executable_p 23095 23096# Sed expression to map a string onto a valid CPP name. 23097as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23098 23099# Sed expression to map a string onto a valid variable name. 23100as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23101 23102 23103exec 6>&1 23104## ----------------------------------- ## 23105## Main body of $CONFIG_STATUS script. ## 23106## ----------------------------------- ## 23107_ASEOF 23108test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23109 23110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23111# Save the log message, to keep $0 and so on meaningful, and to 23112# report actual input values of CONFIG_FILES etc. instead of their 23113# values after options handling. 23114ac_log=" 23115This file was extended by nbdkit $as_me 1.20.4, which was 23116generated by GNU Autoconf 2.69. Invocation command line was 23117 23118 CONFIG_FILES = $CONFIG_FILES 23119 CONFIG_HEADERS = $CONFIG_HEADERS 23120 CONFIG_LINKS = $CONFIG_LINKS 23121 CONFIG_COMMANDS = $CONFIG_COMMANDS 23122 $ $0 $@ 23123 23124on `(hostname || uname -n) 2>/dev/null | sed 1q` 23125" 23126 23127_ACEOF 23128 23129case $ac_config_files in *" 23130"*) set x $ac_config_files; shift; ac_config_files=$*;; 23131esac 23132 23133case $ac_config_headers in *" 23134"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23135esac 23136 23137 23138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23139# Files that config.status was made for. 23140config_files="$ac_config_files" 23141config_headers="$ac_config_headers" 23142config_commands="$ac_config_commands" 23143 23144_ACEOF 23145 23146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23147ac_cs_usage="\ 23148\`$as_me' instantiates files and other configuration actions 23149from templates according to the current configuration. Unless the files 23150and actions are specified as TAGs, all are instantiated by default. 23151 23152Usage: $0 [OPTION]... [TAG]... 23153 23154 -h, --help print this help, then exit 23155 -V, --version print version number and configuration settings, then exit 23156 --config print configuration, then exit 23157 -q, --quiet, --silent 23158 do not print progress messages 23159 -d, --debug don't remove temporary files 23160 --recheck update $as_me by reconfiguring in the same conditions 23161 --file=FILE[:TEMPLATE] 23162 instantiate the configuration file FILE 23163 --header=FILE[:TEMPLATE] 23164 instantiate the configuration header FILE 23165 23166Configuration files: 23167$config_files 23168 23169Configuration headers: 23170$config_headers 23171 23172Configuration commands: 23173$config_commands 23174 23175Report bugs to the package provider." 23176 23177_ACEOF 23178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23179ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 23180ac_cs_version="\\ 23181nbdkit config.status 1.20.4 23182configured by $0, generated by GNU Autoconf 2.69, 23183 with options \\"\$ac_cs_config\\" 23184 23185Copyright (C) 2012 Free Software Foundation, Inc. 23186This config.status script is free software; the Free Software Foundation 23187gives unlimited permission to copy, distribute and modify it." 23188 23189ac_pwd='$ac_pwd' 23190srcdir='$srcdir' 23191INSTALL='$INSTALL' 23192MKDIR_P='$MKDIR_P' 23193AWK='$AWK' 23194test -n "\$AWK" || AWK=awk 23195_ACEOF 23196 23197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23198# The default lists apply if the user does not specify any file. 23199ac_need_defaults=: 23200while test $# != 0 23201do 23202 case $1 in 23203 --*=?*) 23204 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23205 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23206 ac_shift=: 23207 ;; 23208 --*=) 23209 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23210 ac_optarg= 23211 ac_shift=: 23212 ;; 23213 *) 23214 ac_option=$1 23215 ac_optarg=$2 23216 ac_shift=shift 23217 ;; 23218 esac 23219 23220 case $ac_option in 23221 # Handling of the options. 23222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23223 ac_cs_recheck=: ;; 23224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23225 $as_echo "$ac_cs_version"; exit ;; 23226 --config | --confi | --conf | --con | --co | --c ) 23227 $as_echo "$ac_cs_config"; exit ;; 23228 --debug | --debu | --deb | --de | --d | -d ) 23229 debug=: ;; 23230 --file | --fil | --fi | --f ) 23231 $ac_shift 23232 case $ac_optarg in 23233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23234 '') as_fn_error $? "missing file argument" ;; 23235 esac 23236 as_fn_append CONFIG_FILES " '$ac_optarg'" 23237 ac_need_defaults=false;; 23238 --header | --heade | --head | --hea ) 23239 $ac_shift 23240 case $ac_optarg in 23241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23242 esac 23243 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23244 ac_need_defaults=false;; 23245 --he | --h) 23246 # Conflict between --help and --header 23247 as_fn_error $? "ambiguous option: \`$1' 23248Try \`$0 --help' for more information.";; 23249 --help | --hel | -h ) 23250 $as_echo "$ac_cs_usage"; exit ;; 23251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23252 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23253 ac_cs_silent=: ;; 23254 23255 # This is an error. 23256 -*) as_fn_error $? "unrecognized option: \`$1' 23257Try \`$0 --help' for more information." ;; 23258 23259 *) as_fn_append ac_config_targets " $1" 23260 ac_need_defaults=false ;; 23261 23262 esac 23263 shift 23264done 23265 23266ac_configure_extra_args= 23267 23268if $ac_cs_silent; then 23269 exec 6>/dev/null 23270 ac_configure_extra_args="$ac_configure_extra_args --silent" 23271fi 23272 23273_ACEOF 23274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23275if \$ac_cs_recheck; then 23276 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23277 shift 23278 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23279 CONFIG_SHELL='$SHELL' 23280 export CONFIG_SHELL 23281 exec "\$@" 23282fi 23283 23284_ACEOF 23285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23286exec 5>>config.log 23287{ 23288 echo 23289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23290## Running $as_me. ## 23291_ASBOX 23292 $as_echo "$ac_log" 23293} >&5 23294 23295_ACEOF 23296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23297# 23298# INIT-COMMANDS 23299# 23300AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 23301 23302 23303# The HP-UX ksh and POSIX shell print the target directory to stdout 23304# if CDPATH is set. 23305(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23306 23307sed_quote_subst='$sed_quote_subst' 23308double_quote_subst='$double_quote_subst' 23309delay_variable_subst='$delay_variable_subst' 23310macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23311macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23312enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23313enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23314pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23315enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23316shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23317SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23318ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23319PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23320host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23321host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23322host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23323build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23324build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23325build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23326SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23327Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23328GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23329EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23330FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23331LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23332NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23333LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23334max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23335ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23336exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23337lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23338lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23339lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23340lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23341lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23342reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23343reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23344OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23345deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23346file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23347file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23348want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23349DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23350sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23351AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23352AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23353archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23354STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23355RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23356old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23357old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23358old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23359lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23360CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23361CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23362compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23363GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23364lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23365lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23366lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23367lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23368lt_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"`' 23369lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23370nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23371lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23372lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23373objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23374MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23375lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23376lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23377lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23378lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23379lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23380need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23381MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23382DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23383NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23384LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23385OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23386OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23387libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23388shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23389extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23390archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23391enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23392export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23393whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23394compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23395old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23396old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23397archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23398archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23399module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23400module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23401with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23402allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23403no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23404hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23405hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23406hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23407hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23408hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23409hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23410hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23411inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23412link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23413always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23414export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23415exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23416include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23417prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23418postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23419file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23420variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23421need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23422need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23423version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23424runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23425shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23426shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23427libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23428library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23429soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23430install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23431postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23432postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23433finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23434finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23435hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23436sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23437configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23438configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23439hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23440enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23441enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23442enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23443old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23444striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23445compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 23446predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 23447postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 23448predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 23449postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 23450compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 23451LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 23452reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 23453reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23454old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23455compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 23456GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 23457lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 23458lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 23459lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 23460lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 23461lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 23462archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 23463enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 23464export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23465whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23466compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 23467old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23468old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23469archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23470archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23471module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23472module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23473with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 23474allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 23475no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 23476hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23477hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 23478hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 23479hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 23480hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 23481hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 23482hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 23483inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 23484link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 23485always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 23486export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23487exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 23488include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 23489prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23490postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23491file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 23492hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 23493compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 23494predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 23495postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 23496predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 23497postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 23498compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 23499 23500LTCC='$LTCC' 23501LTCFLAGS='$LTCFLAGS' 23502compiler='$compiler_DEFAULT' 23503 23504# A function that is used when there is no print builtin or printf. 23505func_fallback_echo () 23506{ 23507 eval 'cat <<_LTECHO_EOF 23508\$1 23509_LTECHO_EOF' 23510} 23511 23512# Quote evaled strings. 23513for var in SHELL \ 23514ECHO \ 23515PATH_SEPARATOR \ 23516SED \ 23517GREP \ 23518EGREP \ 23519FGREP \ 23520LD \ 23521NM \ 23522LN_S \ 23523lt_SP2NL \ 23524lt_NL2SP \ 23525reload_flag \ 23526OBJDUMP \ 23527deplibs_check_method \ 23528file_magic_cmd \ 23529file_magic_glob \ 23530want_nocaseglob \ 23531DLLTOOL \ 23532sharedlib_from_linklib_cmd \ 23533AR \ 23534AR_FLAGS \ 23535archiver_list_spec \ 23536STRIP \ 23537RANLIB \ 23538CC \ 23539CFLAGS \ 23540compiler \ 23541lt_cv_sys_global_symbol_pipe \ 23542lt_cv_sys_global_symbol_to_cdecl \ 23543lt_cv_sys_global_symbol_to_import \ 23544lt_cv_sys_global_symbol_to_c_name_address \ 23545lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23546lt_cv_nm_interface \ 23547nm_file_list_spec \ 23548lt_cv_truncate_bin \ 23549lt_prog_compiler_no_builtin_flag \ 23550lt_prog_compiler_pic \ 23551lt_prog_compiler_wl \ 23552lt_prog_compiler_static \ 23553lt_cv_prog_compiler_c_o \ 23554need_locks \ 23555MANIFEST_TOOL \ 23556DSYMUTIL \ 23557NMEDIT \ 23558LIPO \ 23559OTOOL \ 23560OTOOL64 \ 23561shrext_cmds \ 23562export_dynamic_flag_spec \ 23563whole_archive_flag_spec \ 23564compiler_needs_object \ 23565with_gnu_ld \ 23566allow_undefined_flag \ 23567no_undefined_flag \ 23568hardcode_libdir_flag_spec \ 23569hardcode_libdir_separator \ 23570exclude_expsyms \ 23571include_expsyms \ 23572file_list_spec \ 23573variables_saved_for_relink \ 23574libname_spec \ 23575library_names_spec \ 23576soname_spec \ 23577install_override_mode \ 23578finish_eval \ 23579old_striplib \ 23580striplib \ 23581compiler_lib_search_dirs \ 23582predep_objects \ 23583postdep_objects \ 23584predeps \ 23585postdeps \ 23586compiler_lib_search_path \ 23587LD_CXX \ 23588reload_flag_CXX \ 23589compiler_CXX \ 23590lt_prog_compiler_no_builtin_flag_CXX \ 23591lt_prog_compiler_pic_CXX \ 23592lt_prog_compiler_wl_CXX \ 23593lt_prog_compiler_static_CXX \ 23594lt_cv_prog_compiler_c_o_CXX \ 23595export_dynamic_flag_spec_CXX \ 23596whole_archive_flag_spec_CXX \ 23597compiler_needs_object_CXX \ 23598with_gnu_ld_CXX \ 23599allow_undefined_flag_CXX \ 23600no_undefined_flag_CXX \ 23601hardcode_libdir_flag_spec_CXX \ 23602hardcode_libdir_separator_CXX \ 23603exclude_expsyms_CXX \ 23604include_expsyms_CXX \ 23605file_list_spec_CXX \ 23606compiler_lib_search_dirs_CXX \ 23607predep_objects_CXX \ 23608postdep_objects_CXX \ 23609predeps_CXX \ 23610postdeps_CXX \ 23611compiler_lib_search_path_CXX; do 23612 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23613 *[\\\\\\\`\\"\\\$]*) 23614 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23615 ;; 23616 *) 23617 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23618 ;; 23619 esac 23620done 23621 23622# Double-quote double-evaled strings. 23623for var in reload_cmds \ 23624old_postinstall_cmds \ 23625old_postuninstall_cmds \ 23626old_archive_cmds \ 23627extract_expsyms_cmds \ 23628old_archive_from_new_cmds \ 23629old_archive_from_expsyms_cmds \ 23630archive_cmds \ 23631archive_expsym_cmds \ 23632module_cmds \ 23633module_expsym_cmds \ 23634export_symbols_cmds \ 23635prelink_cmds \ 23636postlink_cmds \ 23637postinstall_cmds \ 23638postuninstall_cmds \ 23639finish_cmds \ 23640sys_lib_search_path_spec \ 23641configure_time_dlsearch_path \ 23642configure_time_lt_sys_library_path \ 23643reload_cmds_CXX \ 23644old_archive_cmds_CXX \ 23645old_archive_from_new_cmds_CXX \ 23646old_archive_from_expsyms_cmds_CXX \ 23647archive_cmds_CXX \ 23648archive_expsym_cmds_CXX \ 23649module_cmds_CXX \ 23650module_expsym_cmds_CXX \ 23651export_symbols_cmds_CXX \ 23652prelink_cmds_CXX \ 23653postlink_cmds_CXX; do 23654 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23655 *[\\\\\\\`\\"\\\$]*) 23656 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23657 ;; 23658 *) 23659 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23660 ;; 23661 esac 23662done 23663 23664ac_aux_dir='$ac_aux_dir' 23665 23666# See if we are running on zsh, and set the options that allow our 23667# commands through without removal of \ escapes INIT. 23668if test -n "\${ZSH_VERSION+set}"; then 23669 setopt NO_GLOB_SUBST 23670fi 23671 23672 23673 PACKAGE='$PACKAGE' 23674 VERSION='$VERSION' 23675 RM='$RM' 23676 ofile='$ofile' 23677 23678 23679 23680 23681 23682 23683_ACEOF 23684 23685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23686 23687# Handling of arguments. 23688for ac_config_target in $ac_config_targets 23689do 23690 case $ac_config_target in 23691 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23692 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23694 "podwrapper.pl") CONFIG_FILES="$CONFIG_FILES podwrapper.pl" ;; 23695 "common/protocol/generate-protostrings.sh") CONFIG_FILES="$CONFIG_FILES common/protocol/generate-protostrings.sh" ;; 23696 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23697 "bash/Makefile") CONFIG_FILES="$CONFIG_FILES bash/Makefile" ;; 23698 "common/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES common/bitmap/Makefile" ;; 23699 "common/gpt/Makefile") CONFIG_FILES="$CONFIG_FILES common/gpt/Makefile" ;; 23700 "common/include/Makefile") CONFIG_FILES="$CONFIG_FILES common/include/Makefile" ;; 23701 "common/protocol/Makefile") CONFIG_FILES="$CONFIG_FILES common/protocol/Makefile" ;; 23702 "common/regions/Makefile") CONFIG_FILES="$CONFIG_FILES common/regions/Makefile" ;; 23703 "common/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES common/sparse/Makefile" ;; 23704 "common/utils/Makefile") CONFIG_FILES="$CONFIG_FILES common/utils/Makefile" ;; 23705 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 23706 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 23707 "include/nbdkit-version.h") CONFIG_FILES="$CONFIG_FILES include/nbdkit-version.h" ;; 23708 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 23709 "plugins/curl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/curl/Makefile" ;; 23710 "plugins/data/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/data/Makefile" ;; 23711 "plugins/eval/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/eval/Makefile" ;; 23712 "plugins/example1/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/example1/Makefile" ;; 23713 "plugins/example2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/example2/Makefile" ;; 23714 "plugins/example3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/example3/Makefile" ;; 23715 "plugins/example4/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/example4/Makefile" ;; 23716 "plugins/ext2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ext2/Makefile" ;; 23717 "plugins/file/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/file/Makefile" ;; 23718 "plugins/floppy/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/floppy/Makefile" ;; 23719 "plugins/full/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/full/Makefile" ;; 23720 "plugins/golang/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/golang/Makefile" ;; 23721 "plugins/guestfs/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/guestfs/Makefile" ;; 23722 "plugins/gzip/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/gzip/Makefile" ;; 23723 "plugins/info/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/info/Makefile" ;; 23724 "plugins/iso/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/iso/Makefile" ;; 23725 "plugins/libvirt/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/libvirt/Makefile" ;; 23726 "plugins/linuxdisk/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/linuxdisk/Makefile" ;; 23727 "plugins/lua/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/lua/Makefile" ;; 23728 "plugins/memory/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/memory/Makefile" ;; 23729 "plugins/nbd/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/nbd/Makefile" ;; 23730 "plugins/null/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/null/Makefile" ;; 23731 "plugins/ocaml/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ocaml/Makefile" ;; 23732 "plugins/partitioning/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/partitioning/Makefile" ;; 23733 "plugins/pattern/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/pattern/Makefile" ;; 23734 "plugins/perl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/perl/Makefile" ;; 23735 "plugins/python/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/python/Makefile" ;; 23736 "plugins/random/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/random/Makefile" ;; 23737 "plugins/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ruby/Makefile" ;; 23738 "plugins/rust/Cargo.toml") CONFIG_FILES="$CONFIG_FILES plugins/rust/Cargo.toml" ;; 23739 "plugins/rust/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/rust/Makefile" ;; 23740 "plugins/sh/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sh/Makefile" ;; 23741 "plugins/ssh/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ssh/Makefile" ;; 23742 "plugins/split/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/split/Makefile" ;; 23743 "plugins/streaming/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/streaming/Makefile" ;; 23744 "plugins/tar/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/tar/Makefile" ;; 23745 "plugins/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/tcl/Makefile" ;; 23746 "plugins/tmpdisk/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/tmpdisk/Makefile" ;; 23747 "plugins/vddk/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/vddk/Makefile" ;; 23748 "plugins/zero/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/zero/Makefile" ;; 23749 "filters/Makefile") CONFIG_FILES="$CONFIG_FILES filters/Makefile" ;; 23750 "filters/blocksize/Makefile") CONFIG_FILES="$CONFIG_FILES filters/blocksize/Makefile" ;; 23751 "filters/cache/Makefile") CONFIG_FILES="$CONFIG_FILES filters/cache/Makefile" ;; 23752 "filters/cacheextents/Makefile") CONFIG_FILES="$CONFIG_FILES filters/cacheextents/Makefile" ;; 23753 "filters/cow/Makefile") CONFIG_FILES="$CONFIG_FILES filters/cow/Makefile" ;; 23754 "filters/delay/Makefile") CONFIG_FILES="$CONFIG_FILES filters/delay/Makefile" ;; 23755 "filters/error/Makefile") CONFIG_FILES="$CONFIG_FILES filters/error/Makefile" ;; 23756 "filters/exitlast/Makefile") CONFIG_FILES="$CONFIG_FILES filters/exitlast/Makefile" ;; 23757 "filters/ext2/Makefile") CONFIG_FILES="$CONFIG_FILES filters/ext2/Makefile" ;; 23758 "filters/extentlist/Makefile") CONFIG_FILES="$CONFIG_FILES filters/extentlist/Makefile" ;; 23759 "filters/fua/Makefile") CONFIG_FILES="$CONFIG_FILES filters/fua/Makefile" ;; 23760 "filters/ip/Makefile") CONFIG_FILES="$CONFIG_FILES filters/ip/Makefile" ;; 23761 "filters/limit/Makefile") CONFIG_FILES="$CONFIG_FILES filters/limit/Makefile" ;; 23762 "filters/log/Makefile") CONFIG_FILES="$CONFIG_FILES filters/log/Makefile" ;; 23763 "filters/nocache/Makefile") CONFIG_FILES="$CONFIG_FILES filters/nocache/Makefile" ;; 23764 "filters/noextents/Makefile") CONFIG_FILES="$CONFIG_FILES filters/noextents/Makefile" ;; 23765 "filters/nofilter/Makefile") CONFIG_FILES="$CONFIG_FILES filters/nofilter/Makefile" ;; 23766 "filters/noparallel/Makefile") CONFIG_FILES="$CONFIG_FILES filters/noparallel/Makefile" ;; 23767 "filters/nozero/Makefile") CONFIG_FILES="$CONFIG_FILES filters/nozero/Makefile" ;; 23768 "filters/offset/Makefile") CONFIG_FILES="$CONFIG_FILES filters/offset/Makefile" ;; 23769 "filters/partition/Makefile") CONFIG_FILES="$CONFIG_FILES filters/partition/Makefile" ;; 23770 "filters/rate/Makefile") CONFIG_FILES="$CONFIG_FILES filters/rate/Makefile" ;; 23771 "filters/readahead/Makefile") CONFIG_FILES="$CONFIG_FILES filters/readahead/Makefile" ;; 23772 "filters/retry/Makefile") CONFIG_FILES="$CONFIG_FILES filters/retry/Makefile" ;; 23773 "filters/stats/Makefile") CONFIG_FILES="$CONFIG_FILES filters/stats/Makefile" ;; 23774 "filters/truncate/Makefile") CONFIG_FILES="$CONFIG_FILES filters/truncate/Makefile" ;; 23775 "filters/xz/Makefile") CONFIG_FILES="$CONFIG_FILES filters/xz/Makefile" ;; 23776 "fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES fuzzing/Makefile" ;; 23777 "server/local/nbdkit.pc") CONFIG_FILES="$CONFIG_FILES server/local/nbdkit.pc" ;; 23778 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; 23779 "server/nbdkit.pc") CONFIG_FILES="$CONFIG_FILES server/nbdkit.pc" ;; 23780 "tests/functions.sh") CONFIG_FILES="$CONFIG_FILES tests/functions.sh" ;; 23781 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 23782 "valgrind/Makefile") CONFIG_FILES="$CONFIG_FILES valgrind/Makefile" ;; 23783 23784 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23785 esac 23786done 23787 23788 23789# If the user did not use the arguments to specify the items to instantiate, 23790# then the envvar interface is used. Set only those that are not. 23791# We use the long form for the default assignment because of an extremely 23792# bizarre bug on SunOS 4.1.3. 23793if $ac_need_defaults; then 23794 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23795 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23796 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23797fi 23798 23799# Have a temporary directory for convenience. Make it in the build tree 23800# simply because there is no reason against having it here, and in addition, 23801# creating and moving files from /tmp can sometimes cause problems. 23802# Hook for its removal unless debugging. 23803# Note that there is a small window in which the directory will not be cleaned: 23804# after its creation but before its name has been assigned to `$tmp'. 23805$debug || 23806{ 23807 tmp= ac_tmp= 23808 trap 'exit_status=$? 23809 : "${ac_tmp:=$tmp}" 23810 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23811' 0 23812 trap 'as_fn_exit 1' 1 2 13 15 23813} 23814# Create a (secure) tmp directory for tmp files. 23815 23816{ 23817 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23818 test -d "$tmp" 23819} || 23820{ 23821 tmp=./conf$$-$RANDOM 23822 (umask 077 && mkdir "$tmp") 23823} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23824ac_tmp=$tmp 23825 23826# Set up the scripts for CONFIG_FILES section. 23827# No need to generate them if there are no CONFIG_FILES. 23828# This happens for instance with `./config.status config.h'. 23829if test -n "$CONFIG_FILES"; then 23830 23831 23832ac_cr=`echo X | tr X '\015'` 23833# On cygwin, bash can eat \r inside `` if the user requested igncr. 23834# But we know of no other shell where ac_cr would be empty at this 23835# point, so we can use a bashism as a fallback. 23836if test "x$ac_cr" = x; then 23837 eval ac_cr=\$\'\\r\' 23838fi 23839ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23840if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23841 ac_cs_awk_cr='\\r' 23842else 23843 ac_cs_awk_cr=$ac_cr 23844fi 23845 23846echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23847_ACEOF 23848 23849 23850{ 23851 echo "cat >conf$$subs.awk <<_ACEOF" && 23852 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23853 echo "_ACEOF" 23854} >conf$$subs.sh || 23855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23856ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23857ac_delim='%!_!# ' 23858for ac_last_try in false false false false false :; do 23859 . ./conf$$subs.sh || 23860 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23861 23862 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23863 if test $ac_delim_n = $ac_delim_num; then 23864 break 23865 elif $ac_last_try; then 23866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23867 else 23868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23869 fi 23870done 23871rm -f conf$$subs.sh 23872 23873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23874cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23875_ACEOF 23876sed -n ' 23877h 23878s/^/S["/; s/!.*/"]=/ 23879p 23880g 23881s/^[^!]*!// 23882:repl 23883t repl 23884s/'"$ac_delim"'$// 23885t delim 23886:nl 23887h 23888s/\(.\{148\}\)..*/\1/ 23889t more1 23890s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23891p 23892n 23893b repl 23894:more1 23895s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23896p 23897g 23898s/.\{148\}// 23899t nl 23900:delim 23901h 23902s/\(.\{148\}\)..*/\1/ 23903t more2 23904s/["\\]/\\&/g; s/^/"/; s/$/"/ 23905p 23906b 23907:more2 23908s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23909p 23910g 23911s/.\{148\}// 23912t delim 23913' <conf$$subs.awk | sed ' 23914/^[^""]/{ 23915 N 23916 s/\n// 23917} 23918' >>$CONFIG_STATUS || ac_write_fail=1 23919rm -f conf$$subs.awk 23920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23921_ACAWK 23922cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23923 for (key in S) S_is_set[key] = 1 23924 FS = "" 23925 23926} 23927{ 23928 line = $ 0 23929 nfields = split(line, field, "@") 23930 substed = 0 23931 len = length(field[1]) 23932 for (i = 2; i < nfields; i++) { 23933 key = field[i] 23934 keylen = length(key) 23935 if (S_is_set[key]) { 23936 value = S[key] 23937 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23938 len += length(value) + length(field[++i]) 23939 substed = 1 23940 } else 23941 len += 1 + keylen 23942 } 23943 23944 print line 23945} 23946 23947_ACAWK 23948_ACEOF 23949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23950if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23951 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23952else 23953 cat 23954fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23955 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23956_ACEOF 23957 23958# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23959# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23960# trailing colons and then remove the whole line if VPATH becomes empty 23961# (actually we leave an empty line to preserve line numbers). 23962if test "x$srcdir" = x.; then 23963 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23964h 23965s/// 23966s/^/:/ 23967s/[ ]*$/:/ 23968s/:\$(srcdir):/:/g 23969s/:\${srcdir}:/:/g 23970s/:@srcdir@:/:/g 23971s/^:*// 23972s/:*$// 23973x 23974s/\(=[ ]*\).*/\1/ 23975G 23976s/\n// 23977s/^[^=]*=[ ]*$// 23978}' 23979fi 23980 23981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23982fi # test -n "$CONFIG_FILES" 23983 23984# Set up the scripts for CONFIG_HEADERS section. 23985# No need to generate them if there are no CONFIG_HEADERS. 23986# This happens for instance with `./config.status Makefile'. 23987if test -n "$CONFIG_HEADERS"; then 23988cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23989BEGIN { 23990_ACEOF 23991 23992# Transform confdefs.h into an awk script `defines.awk', embedded as 23993# here-document in config.status, that substitutes the proper values into 23994# config.h.in to produce config.h. 23995 23996# Create a delimiter string that does not exist in confdefs.h, to ease 23997# handling of long lines. 23998ac_delim='%!_!# ' 23999for ac_last_try in false false :; do 24000 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24001 if test -z "$ac_tt"; then 24002 break 24003 elif $ac_last_try; then 24004 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24005 else 24006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24007 fi 24008done 24009 24010# For the awk script, D is an array of macro values keyed by name, 24011# likewise P contains macro parameters if any. Preserve backslash 24012# newline sequences. 24013 24014ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24015sed -n ' 24016s/.\{148\}/&'"$ac_delim"'/g 24017t rset 24018:rset 24019s/^[ ]*#[ ]*define[ ][ ]*/ / 24020t def 24021d 24022:def 24023s/\\$// 24024t bsnl 24025s/["\\]/\\&/g 24026s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24027D["\1"]=" \3"/p 24028s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24029d 24030:bsnl 24031s/["\\]/\\&/g 24032s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24033D["\1"]=" \3\\\\\\n"\\/p 24034t cont 24035s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24036t cont 24037d 24038:cont 24039n 24040s/.\{148\}/&'"$ac_delim"'/g 24041t clear 24042:clear 24043s/\\$// 24044t bsnlc 24045s/["\\]/\\&/g; s/^/"/; s/$/"/p 24046d 24047:bsnlc 24048s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24049b cont 24050' <confdefs.h | sed ' 24051s/'"$ac_delim"'/"\\\ 24052"/g' >>$CONFIG_STATUS || ac_write_fail=1 24053 24054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24055 for (key in D) D_is_set[key] = 1 24056 FS = "" 24057} 24058/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24059 line = \$ 0 24060 split(line, arg, " ") 24061 if (arg[1] == "#") { 24062 defundef = arg[2] 24063 mac1 = arg[3] 24064 } else { 24065 defundef = substr(arg[1], 2) 24066 mac1 = arg[2] 24067 } 24068 split(mac1, mac2, "(") #) 24069 macro = mac2[1] 24070 prefix = substr(line, 1, index(line, defundef) - 1) 24071 if (D_is_set[macro]) { 24072 # Preserve the white space surrounding the "#". 24073 print prefix "define", macro P[macro] D[macro] 24074 next 24075 } else { 24076 # Replace #undef with comments. This is necessary, for example, 24077 # in the case of _POSIX_SOURCE, which is predefined and required 24078 # on some systems where configure will not decide to define it. 24079 if (defundef == "undef") { 24080 print "/*", prefix defundef, macro, "*/" 24081 next 24082 } 24083 } 24084} 24085{ print } 24086_ACAWK 24087_ACEOF 24088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24089 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24090fi # test -n "$CONFIG_HEADERS" 24091 24092 24093eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24094shift 24095for ac_tag 24096do 24097 case $ac_tag in 24098 :[FHLC]) ac_mode=$ac_tag; continue;; 24099 esac 24100 case $ac_mode$ac_tag in 24101 :[FHL]*:*);; 24102 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24103 :[FH]-) ac_tag=-:-;; 24104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24105 esac 24106 ac_save_IFS=$IFS 24107 IFS=: 24108 set x $ac_tag 24109 IFS=$ac_save_IFS 24110 shift 24111 ac_file=$1 24112 shift 24113 24114 case $ac_mode in 24115 :L) ac_source=$1;; 24116 :[FH]) 24117 ac_file_inputs= 24118 for ac_f 24119 do 24120 case $ac_f in 24121 -) ac_f="$ac_tmp/stdin";; 24122 *) # Look for the file first in the build tree, then in the source tree 24123 # (if the path is not absolute). The absolute path cannot be DOS-style, 24124 # because $ac_f cannot contain `:'. 24125 test -f "$ac_f" || 24126 case $ac_f in 24127 [\\/$]*) false;; 24128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24129 esac || 24130 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24131 esac 24132 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24133 as_fn_append ac_file_inputs " '$ac_f'" 24134 done 24135 24136 # Let's still pretend it is `configure' which instantiates (i.e., don't 24137 # use $as_me), people would be surprised to read: 24138 # /* config.h. Generated by config.status. */ 24139 configure_input='Generated from '` 24140 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24141 `' by configure.' 24142 if test x"$ac_file" != x-; then 24143 configure_input="$ac_file. $configure_input" 24144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24145$as_echo "$as_me: creating $ac_file" >&6;} 24146 fi 24147 # Neutralize special characters interpreted by sed in replacement strings. 24148 case $configure_input in #( 24149 *\&* | *\|* | *\\* ) 24150 ac_sed_conf_input=`$as_echo "$configure_input" | 24151 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24152 *) ac_sed_conf_input=$configure_input;; 24153 esac 24154 24155 case $ac_tag in 24156 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24158 esac 24159 ;; 24160 esac 24161 24162 ac_dir=`$as_dirname -- "$ac_file" || 24163$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24164 X"$ac_file" : 'X\(//\)[^/]' \| \ 24165 X"$ac_file" : 'X\(//\)$' \| \ 24166 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24167$as_echo X"$ac_file" | 24168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24169 s//\1/ 24170 q 24171 } 24172 /^X\(\/\/\)[^/].*/{ 24173 s//\1/ 24174 q 24175 } 24176 /^X\(\/\/\)$/{ 24177 s//\1/ 24178 q 24179 } 24180 /^X\(\/\).*/{ 24181 s//\1/ 24182 q 24183 } 24184 s/.*/./; q'` 24185 as_dir="$ac_dir"; as_fn_mkdir_p 24186 ac_builddir=. 24187 24188case "$ac_dir" in 24189.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24190*) 24191 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24192 # A ".." for each directory in $ac_dir_suffix. 24193 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24194 case $ac_top_builddir_sub in 24195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24197 esac ;; 24198esac 24199ac_abs_top_builddir=$ac_pwd 24200ac_abs_builddir=$ac_pwd$ac_dir_suffix 24201# for backward compatibility: 24202ac_top_builddir=$ac_top_build_prefix 24203 24204case $srcdir in 24205 .) # We are building in place. 24206 ac_srcdir=. 24207 ac_top_srcdir=$ac_top_builddir_sub 24208 ac_abs_top_srcdir=$ac_pwd ;; 24209 [\\/]* | ?:[\\/]* ) # Absolute name. 24210 ac_srcdir=$srcdir$ac_dir_suffix; 24211 ac_top_srcdir=$srcdir 24212 ac_abs_top_srcdir=$srcdir ;; 24213 *) # Relative name. 24214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24215 ac_top_srcdir=$ac_top_build_prefix$srcdir 24216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24217esac 24218ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24219 24220 24221 case $ac_mode in 24222 :F) 24223 # 24224 # CONFIG_FILE 24225 # 24226 24227 case $INSTALL in 24228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24230 esac 24231 ac_MKDIR_P=$MKDIR_P 24232 case $MKDIR_P in 24233 [\\/$]* | ?:[\\/]* ) ;; 24234 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24235 esac 24236_ACEOF 24237 24238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24239# If the template does not know about datarootdir, expand it. 24240# FIXME: This hack should be removed a few years after 2.60. 24241ac_datarootdir_hack=; ac_datarootdir_seen= 24242ac_sed_dataroot=' 24243/datarootdir/ { 24244 p 24245 q 24246} 24247/@datadir@/p 24248/@docdir@/p 24249/@infodir@/p 24250/@localedir@/p 24251/@mandir@/p' 24252case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24253*datarootdir*) ac_datarootdir_seen=yes;; 24254*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24256$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24257_ACEOF 24258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24259 ac_datarootdir_hack=' 24260 s&@datadir@&$datadir&g 24261 s&@docdir@&$docdir&g 24262 s&@infodir@&$infodir&g 24263 s&@localedir@&$localedir&g 24264 s&@mandir@&$mandir&g 24265 s&\\\${datarootdir}&$datarootdir&g' ;; 24266esac 24267_ACEOF 24268 24269# Neutralize VPATH when `$srcdir' = `.'. 24270# Shell code in configure.ac might set extrasub. 24271# FIXME: do we really want to maintain this feature? 24272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24273ac_sed_extra="$ac_vpsub 24274$extrasub 24275_ACEOF 24276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24277:t 24278/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24279s|@configure_input@|$ac_sed_conf_input|;t t 24280s&@top_builddir@&$ac_top_builddir_sub&;t t 24281s&@top_build_prefix@&$ac_top_build_prefix&;t t 24282s&@srcdir@&$ac_srcdir&;t t 24283s&@abs_srcdir@&$ac_abs_srcdir&;t t 24284s&@top_srcdir@&$ac_top_srcdir&;t t 24285s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24286s&@builddir@&$ac_builddir&;t t 24287s&@abs_builddir@&$ac_abs_builddir&;t t 24288s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24289s&@INSTALL@&$ac_INSTALL&;t t 24290s&@MKDIR_P@&$ac_MKDIR_P&;t t 24291$ac_datarootdir_hack 24292" 24293eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24294 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24295 24296test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24297 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24298 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24299 "$ac_tmp/out"`; test -z "$ac_out"; } && 24300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24301which seems to be undefined. Please make sure it is defined" >&5 24302$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24303which seems to be undefined. Please make sure it is defined" >&2;} 24304 24305 rm -f "$ac_tmp/stdin" 24306 case $ac_file in 24307 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24308 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24309 esac \ 24310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24311 ;; 24312 :H) 24313 # 24314 # CONFIG_HEADER 24315 # 24316 if test x"$ac_file" != x-; then 24317 { 24318 $as_echo "/* $configure_input */" \ 24319 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24320 } >"$ac_tmp/config.h" \ 24321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24322 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24323 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24324$as_echo "$as_me: $ac_file is unchanged" >&6;} 24325 else 24326 rm -f "$ac_file" 24327 mv "$ac_tmp/config.h" "$ac_file" \ 24328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24329 fi 24330 else 24331 $as_echo "/* $configure_input */" \ 24332 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24333 || as_fn_error $? "could not create -" "$LINENO" 5 24334 fi 24335# Compute "$ac_file"'s index in $config_headers. 24336_am_arg="$ac_file" 24337_am_stamp_count=1 24338for _am_header in $config_headers :; do 24339 case $_am_header in 24340 $_am_arg | $_am_arg:* ) 24341 break ;; 24342 * ) 24343 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24344 esac 24345done 24346echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24347$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24348 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24349 X"$_am_arg" : 'X\(//\)$' \| \ 24350 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24351$as_echo X"$_am_arg" | 24352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24353 s//\1/ 24354 q 24355 } 24356 /^X\(\/\/\)[^/].*/{ 24357 s//\1/ 24358 q 24359 } 24360 /^X\(\/\/\)$/{ 24361 s//\1/ 24362 q 24363 } 24364 /^X\(\/\).*/{ 24365 s//\1/ 24366 q 24367 } 24368 s/.*/./; q'`/stamp-h$_am_stamp_count 24369 ;; 24370 24371 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24372$as_echo "$as_me: executing $ac_file commands" >&6;} 24373 ;; 24374 esac 24375 24376 24377 case $ac_file$ac_mode in 24378 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24379 # Older Autoconf quotes --file arguments for eval, but not when files 24380 # are listed without --file. Let's play safe and only enable the eval 24381 # if we detect the quoting. 24382 # TODO: see whether this extra hack can be removed once we start 24383 # requiring Autoconf 2.70 or later. 24384 case $CONFIG_FILES in #( 24385 *\'*) : 24386 eval set x "$CONFIG_FILES" ;; #( 24387 *) : 24388 set x $CONFIG_FILES ;; #( 24389 *) : 24390 ;; 24391esac 24392 shift 24393 # Used to flag and report bootstrapping failures. 24394 am_rc=0 24395 for am_mf 24396 do 24397 # Strip MF so we end up with the name of the file. 24398 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 24399 # Check whether this is an Automake generated Makefile which includes 24400 # dependency-tracking related rules and includes. 24401 # Grep'ing the whole file directly is not great: AIX grep has a line 24402 # limit of 2048, but all sed's we know have understand at least 4000. 24403 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 24404 || continue 24405 am_dirpart=`$as_dirname -- "$am_mf" || 24406$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24407 X"$am_mf" : 'X\(//\)[^/]' \| \ 24408 X"$am_mf" : 'X\(//\)$' \| \ 24409 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24410$as_echo X"$am_mf" | 24411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24412 s//\1/ 24413 q 24414 } 24415 /^X\(\/\/\)[^/].*/{ 24416 s//\1/ 24417 q 24418 } 24419 /^X\(\/\/\)$/{ 24420 s//\1/ 24421 q 24422 } 24423 /^X\(\/\).*/{ 24424 s//\1/ 24425 q 24426 } 24427 s/.*/./; q'` 24428 am_filepart=`$as_basename -- "$am_mf" || 24429$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 24430 X"$am_mf" : 'X\(//\)$' \| \ 24431 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24432$as_echo X/"$am_mf" | 24433 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24434 s//\1/ 24435 q 24436 } 24437 /^X\/\(\/\/\)$/{ 24438 s//\1/ 24439 q 24440 } 24441 /^X\/\(\/\).*/{ 24442 s//\1/ 24443 q 24444 } 24445 s/.*/./; q'` 24446 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 24447 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24448 | $MAKE -f - am--depfiles" >&5 24449 (cd "$am_dirpart" \ 24450 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24451 | $MAKE -f - am--depfiles) >&5 2>&5 24452 ac_status=$? 24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24454 (exit $ac_status); } || am_rc=$? 24455 done 24456 if test $am_rc -ne 0; then 24457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24459as_fn_error $? "Something went wrong bootstrapping makefile fragments 24460 for automatic dependency tracking. Try re-running configure with the 24461 '--disable-dependency-tracking' option to at least be able to build 24462 the package (albeit without support for automatic dependency tracking). 24463See \`config.log' for more details" "$LINENO" 5; } 24464 fi 24465 { am_dirpart=; unset am_dirpart;} 24466 { am_filepart=; unset am_filepart;} 24467 { am_mf=; unset am_mf;} 24468 { am_rc=; unset am_rc;} 24469 rm -f conftest-deps.mk 24470} 24471 ;; 24472 "libtool":C) 24473 24474 # See if we are running on zsh, and set the options that allow our 24475 # commands through without removal of \ escapes. 24476 if test -n "${ZSH_VERSION+set}"; then 24477 setopt NO_GLOB_SUBST 24478 fi 24479 24480 cfgfile=${ofile}T 24481 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24482 $RM "$cfgfile" 24483 24484 cat <<_LT_EOF >> "$cfgfile" 24485#! $SHELL 24486# Generated automatically by $as_me ($PACKAGE) $VERSION 24487# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24488# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24489 24490# Provide generalized library-building support services. 24491# Written by Gordon Matzigkeit, 1996 24492 24493# Copyright (C) 2014 Free Software Foundation, Inc. 24494# This is free software; see the source for copying conditions. There is NO 24495# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24496 24497# GNU Libtool is free software; you can redistribute it and/or modify 24498# it under the terms of the GNU General Public License as published by 24499# the Free Software Foundation; either version 2 of of the License, or 24500# (at your option) any later version. 24501# 24502# As a special exception to the GNU General Public License, if you 24503# distribute this file as part of a program or library that is built 24504# using GNU Libtool, you may include this file under the same 24505# distribution terms that you use for the rest of that program. 24506# 24507# GNU Libtool is distributed in the hope that it will be useful, but 24508# WITHOUT ANY WARRANTY; without even the implied warranty of 24509# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24510# GNU General Public License for more details. 24511# 24512# You should have received a copy of the GNU General Public License 24513# along with this program. If not, see <http://www.gnu.org/licenses/>. 24514 24515 24516# The names of the tagged configurations supported by this script. 24517available_tags='CXX ' 24518 24519# Configured defaults for sys_lib_dlsearch_path munging. 24520: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24521 24522# ### BEGIN LIBTOOL CONFIG 24523 24524# Which release of libtool.m4 was used? 24525macro_version=$macro_version 24526macro_revision=$macro_revision 24527 24528# Whether or not to build shared libraries. 24529build_libtool_libs=$enable_shared 24530 24531# Whether or not to build static libraries. 24532build_old_libs=$enable_static 24533 24534# What type of objects to build. 24535pic_mode=$pic_mode 24536 24537# Whether or not to optimize for fast installation. 24538fast_install=$enable_fast_install 24539 24540# Shared archive member basename,for filename based shared library versioning on AIX. 24541shared_archive_member_spec=$shared_archive_member_spec 24542 24543# Shell to use when invoking shell scripts. 24544SHELL=$lt_SHELL 24545 24546# An echo program that protects backslashes. 24547ECHO=$lt_ECHO 24548 24549# The PATH separator for the build system. 24550PATH_SEPARATOR=$lt_PATH_SEPARATOR 24551 24552# The host system. 24553host_alias=$host_alias 24554host=$host 24555host_os=$host_os 24556 24557# The build system. 24558build_alias=$build_alias 24559build=$build 24560build_os=$build_os 24561 24562# A sed program that does not truncate output. 24563SED=$lt_SED 24564 24565# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24566Xsed="\$SED -e 1s/^X//" 24567 24568# A grep program that handles long lines. 24569GREP=$lt_GREP 24570 24571# An ERE matcher. 24572EGREP=$lt_EGREP 24573 24574# A literal string matcher. 24575FGREP=$lt_FGREP 24576 24577# A BSD- or MS-compatible name lister. 24578NM=$lt_NM 24579 24580# Whether we need soft or hard links. 24581LN_S=$lt_LN_S 24582 24583# What is the maximum length of a command? 24584max_cmd_len=$max_cmd_len 24585 24586# Object file suffix (normally "o"). 24587objext=$ac_objext 24588 24589# Executable file suffix (normally ""). 24590exeext=$exeext 24591 24592# whether the shell understands "unset". 24593lt_unset=$lt_unset 24594 24595# turn spaces into newlines. 24596SP2NL=$lt_lt_SP2NL 24597 24598# turn newlines into spaces. 24599NL2SP=$lt_lt_NL2SP 24600 24601# convert \$build file names to \$host format. 24602to_host_file_cmd=$lt_cv_to_host_file_cmd 24603 24604# convert \$build files to toolchain format. 24605to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24606 24607# An object symbol dumper. 24608OBJDUMP=$lt_OBJDUMP 24609 24610# Method to check whether dependent libraries are shared objects. 24611deplibs_check_method=$lt_deplibs_check_method 24612 24613# Command to use when deplibs_check_method = "file_magic". 24614file_magic_cmd=$lt_file_magic_cmd 24615 24616# How to find potential files when deplibs_check_method = "file_magic". 24617file_magic_glob=$lt_file_magic_glob 24618 24619# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24620want_nocaseglob=$lt_want_nocaseglob 24621 24622# DLL creation program. 24623DLLTOOL=$lt_DLLTOOL 24624 24625# Command to associate shared and link libraries. 24626sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24627 24628# The archiver. 24629AR=$lt_AR 24630 24631# Flags to create an archive. 24632AR_FLAGS=$lt_AR_FLAGS 24633 24634# How to feed a file listing to the archiver. 24635archiver_list_spec=$lt_archiver_list_spec 24636 24637# A symbol stripping program. 24638STRIP=$lt_STRIP 24639 24640# Commands used to install an old-style archive. 24641RANLIB=$lt_RANLIB 24642old_postinstall_cmds=$lt_old_postinstall_cmds 24643old_postuninstall_cmds=$lt_old_postuninstall_cmds 24644 24645# Whether to use a lock for old archive extraction. 24646lock_old_archive_extraction=$lock_old_archive_extraction 24647 24648# A C compiler. 24649LTCC=$lt_CC 24650 24651# LTCC compiler flags. 24652LTCFLAGS=$lt_CFLAGS 24653 24654# Take the output of nm and produce a listing of raw symbols and C names. 24655global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24656 24657# Transform the output of nm in a proper C declaration. 24658global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24659 24660# Transform the output of nm into a list of symbols to manually relocate. 24661global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24662 24663# Transform the output of nm in a C name address pair. 24664global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24665 24666# Transform the output of nm in a C name address pair when lib prefix is needed. 24667global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24668 24669# The name lister interface. 24670nm_interface=$lt_lt_cv_nm_interface 24671 24672# Specify filename containing input files for \$NM. 24673nm_file_list_spec=$lt_nm_file_list_spec 24674 24675# The root where to search for dependent libraries,and where our libraries should be installed. 24676lt_sysroot=$lt_sysroot 24677 24678# Command to truncate a binary pipe. 24679lt_truncate_bin=$lt_lt_cv_truncate_bin 24680 24681# The name of the directory that contains temporary libtool files. 24682objdir=$objdir 24683 24684# Used to examine libraries when file_magic_cmd begins with "file". 24685MAGIC_CMD=$MAGIC_CMD 24686 24687# Must we lock files when doing compilation? 24688need_locks=$lt_need_locks 24689 24690# Manifest tool. 24691MANIFEST_TOOL=$lt_MANIFEST_TOOL 24692 24693# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24694DSYMUTIL=$lt_DSYMUTIL 24695 24696# Tool to change global to local symbols on Mac OS X. 24697NMEDIT=$lt_NMEDIT 24698 24699# Tool to manipulate fat objects and archives on Mac OS X. 24700LIPO=$lt_LIPO 24701 24702# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24703OTOOL=$lt_OTOOL 24704 24705# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24706OTOOL64=$lt_OTOOL64 24707 24708# Old archive suffix (normally "a"). 24709libext=$libext 24710 24711# Shared library suffix (normally ".so"). 24712shrext_cmds=$lt_shrext_cmds 24713 24714# The commands to extract the exported symbol list from a shared archive. 24715extract_expsyms_cmds=$lt_extract_expsyms_cmds 24716 24717# Variables whose values should be saved in libtool wrapper scripts and 24718# restored at link time. 24719variables_saved_for_relink=$lt_variables_saved_for_relink 24720 24721# Do we need the "lib" prefix for modules? 24722need_lib_prefix=$need_lib_prefix 24723 24724# Do we need a version for libraries? 24725need_version=$need_version 24726 24727# Library versioning type. 24728version_type=$version_type 24729 24730# Shared library runtime path variable. 24731runpath_var=$runpath_var 24732 24733# Shared library path variable. 24734shlibpath_var=$shlibpath_var 24735 24736# Is shlibpath searched before the hard-coded library search path? 24737shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24738 24739# Format of library name prefix. 24740libname_spec=$lt_libname_spec 24741 24742# List of archive names. First name is the real one, the rest are links. 24743# The last name is the one that the linker finds with -lNAME 24744library_names_spec=$lt_library_names_spec 24745 24746# The coded name of the library, if different from the real name. 24747soname_spec=$lt_soname_spec 24748 24749# Permission mode override for installation of shared libraries. 24750install_override_mode=$lt_install_override_mode 24751 24752# Command to use after installation of a shared archive. 24753postinstall_cmds=$lt_postinstall_cmds 24754 24755# Command to use after uninstallation of a shared archive. 24756postuninstall_cmds=$lt_postuninstall_cmds 24757 24758# Commands used to finish a libtool library installation in a directory. 24759finish_cmds=$lt_finish_cmds 24760 24761# As "finish_cmds", except a single script fragment to be evaled but 24762# not shown. 24763finish_eval=$lt_finish_eval 24764 24765# Whether we should hardcode library paths into libraries. 24766hardcode_into_libs=$hardcode_into_libs 24767 24768# Compile-time system search path for libraries. 24769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24770 24771# Detected run-time system search path for libraries. 24772sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24773 24774# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24775configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24776 24777# Whether dlopen is supported. 24778dlopen_support=$enable_dlopen 24779 24780# Whether dlopen of programs is supported. 24781dlopen_self=$enable_dlopen_self 24782 24783# Whether dlopen of statically linked programs is supported. 24784dlopen_self_static=$enable_dlopen_self_static 24785 24786# Commands to strip libraries. 24787old_striplib=$lt_old_striplib 24788striplib=$lt_striplib 24789 24790 24791# The linker used to build libraries. 24792LD=$lt_LD 24793 24794# How to create reloadable object files. 24795reload_flag=$lt_reload_flag 24796reload_cmds=$lt_reload_cmds 24797 24798# Commands used to build an old-style archive. 24799old_archive_cmds=$lt_old_archive_cmds 24800 24801# A language specific compiler. 24802CC=$lt_compiler 24803 24804# Is the compiler the GNU compiler? 24805with_gcc=$GCC 24806 24807# Compiler flag to turn off builtin functions. 24808no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24809 24810# Additional compiler flags for building library objects. 24811pic_flag=$lt_lt_prog_compiler_pic 24812 24813# How to pass a linker flag through the compiler. 24814wl=$lt_lt_prog_compiler_wl 24815 24816# Compiler flag to prevent dynamic linking. 24817link_static_flag=$lt_lt_prog_compiler_static 24818 24819# Does compiler simultaneously support -c and -o options? 24820compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24821 24822# Whether or not to add -lc for building shared libraries. 24823build_libtool_need_lc=$archive_cmds_need_lc 24824 24825# Whether or not to disallow shared libs when runtime libs are static. 24826allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24827 24828# Compiler flag to allow reflexive dlopens. 24829export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24830 24831# Compiler flag to generate shared objects directly from archives. 24832whole_archive_flag_spec=$lt_whole_archive_flag_spec 24833 24834# Whether the compiler copes with passing no objects directly. 24835compiler_needs_object=$lt_compiler_needs_object 24836 24837# Create an old-style archive from a shared archive. 24838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24839 24840# Create a temporary old-style archive to link instead of a shared archive. 24841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24842 24843# Commands used to build a shared archive. 24844archive_cmds=$lt_archive_cmds 24845archive_expsym_cmds=$lt_archive_expsym_cmds 24846 24847# Commands used to build a loadable module if different from building 24848# a shared archive. 24849module_cmds=$lt_module_cmds 24850module_expsym_cmds=$lt_module_expsym_cmds 24851 24852# Whether we are building with GNU ld or not. 24853with_gnu_ld=$lt_with_gnu_ld 24854 24855# Flag that allows shared libraries with undefined symbols to be built. 24856allow_undefined_flag=$lt_allow_undefined_flag 24857 24858# Flag that enforces no undefined symbols. 24859no_undefined_flag=$lt_no_undefined_flag 24860 24861# Flag to hardcode \$libdir into a binary during linking. 24862# This must work even if \$libdir does not exist 24863hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24864 24865# Whether we need a single "-rpath" flag with a separated argument. 24866hardcode_libdir_separator=$lt_hardcode_libdir_separator 24867 24868# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24869# DIR into the resulting binary. 24870hardcode_direct=$hardcode_direct 24871 24872# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24873# DIR into the resulting binary and the resulting library dependency is 24874# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24875# library is relocated. 24876hardcode_direct_absolute=$hardcode_direct_absolute 24877 24878# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24879# into the resulting binary. 24880hardcode_minus_L=$hardcode_minus_L 24881 24882# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24883# into the resulting binary. 24884hardcode_shlibpath_var=$hardcode_shlibpath_var 24885 24886# Set to "yes" if building a shared library automatically hardcodes DIR 24887# into the library and all subsequent libraries and executables linked 24888# against it. 24889hardcode_automatic=$hardcode_automatic 24890 24891# Set to yes if linker adds runtime paths of dependent libraries 24892# to runtime path list. 24893inherit_rpath=$inherit_rpath 24894 24895# Whether libtool must link a program against all its dependency libraries. 24896link_all_deplibs=$link_all_deplibs 24897 24898# Set to "yes" if exported symbols are required. 24899always_export_symbols=$always_export_symbols 24900 24901# The commands to list exported symbols. 24902export_symbols_cmds=$lt_export_symbols_cmds 24903 24904# Symbols that should not be listed in the preloaded symbols. 24905exclude_expsyms=$lt_exclude_expsyms 24906 24907# Symbols that must always be exported. 24908include_expsyms=$lt_include_expsyms 24909 24910# Commands necessary for linking programs (against libraries) with templates. 24911prelink_cmds=$lt_prelink_cmds 24912 24913# Commands necessary for finishing linking programs. 24914postlink_cmds=$lt_postlink_cmds 24915 24916# Specify filename containing input files. 24917file_list_spec=$lt_file_list_spec 24918 24919# How to hardcode a shared library path into an executable. 24920hardcode_action=$hardcode_action 24921 24922# The directories searched by this compiler when creating a shared library. 24923compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 24924 24925# Dependencies to place before and after the objects being linked to 24926# create a shared library. 24927predep_objects=$lt_predep_objects 24928postdep_objects=$lt_postdep_objects 24929predeps=$lt_predeps 24930postdeps=$lt_postdeps 24931 24932# The library search path used internally by the compiler when linking 24933# a shared library. 24934compiler_lib_search_path=$lt_compiler_lib_search_path 24935 24936# ### END LIBTOOL CONFIG 24937 24938_LT_EOF 24939 24940 cat <<'_LT_EOF' >> "$cfgfile" 24941 24942# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24943 24944# func_munge_path_list VARIABLE PATH 24945# ----------------------------------- 24946# VARIABLE is name of variable containing _space_ separated list of 24947# directories to be munged by the contents of PATH, which is string 24948# having a format: 24949# "DIR[:DIR]:" 24950# string "DIR[ DIR]" will be prepended to VARIABLE 24951# ":DIR[:DIR]" 24952# string "DIR[ DIR]" will be appended to VARIABLE 24953# "DIRP[:DIRP]::[DIRA:]DIRA" 24954# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24955# "DIRA[ DIRA]" will be appended to VARIABLE 24956# "DIR[:DIR]" 24957# VARIABLE will be replaced by "DIR[ DIR]" 24958func_munge_path_list () 24959{ 24960 case x$2 in 24961 x) 24962 ;; 24963 *:) 24964 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24965 ;; 24966 x:*) 24967 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24968 ;; 24969 *::*) 24970 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24971 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24972 ;; 24973 *) 24974 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24975 ;; 24976 esac 24977} 24978 24979 24980# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24981func_cc_basename () 24982{ 24983 for cc_temp in $*""; do 24984 case $cc_temp in 24985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24987 \-*) ;; 24988 *) break;; 24989 esac 24990 done 24991 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24992} 24993 24994 24995# ### END FUNCTIONS SHARED WITH CONFIGURE 24996 24997_LT_EOF 24998 24999 case $host_os in 25000 aix3*) 25001 cat <<\_LT_EOF >> "$cfgfile" 25002# AIX sometimes has problems with the GCC collect2 program. For some 25003# reason, if we set the COLLECT_NAMES environment variable, the problems 25004# vanish in a puff of smoke. 25005if test set != "${COLLECT_NAMES+set}"; then 25006 COLLECT_NAMES= 25007 export COLLECT_NAMES 25008fi 25009_LT_EOF 25010 ;; 25011 esac 25012 25013 25014ltmain=$ac_aux_dir/ltmain.sh 25015 25016 25017 # We use sed instead of cat because bash on DJGPP gets confused if 25018 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25019 # text mode, it properly converts lines to CR/LF. This bash problem 25020 # is reportedly fixed, but why not run on old versions too? 25021 sed '$q' "$ltmain" >> "$cfgfile" \ 25022 || (rm -f "$cfgfile"; exit 1) 25023 25024 mv -f "$cfgfile" "$ofile" || 25025 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25026 chmod +x "$ofile" 25027 25028 25029 cat <<_LT_EOF >> "$ofile" 25030 25031# ### BEGIN LIBTOOL TAG CONFIG: CXX 25032 25033# The linker used to build libraries. 25034LD=$lt_LD_CXX 25035 25036# How to create reloadable object files. 25037reload_flag=$lt_reload_flag_CXX 25038reload_cmds=$lt_reload_cmds_CXX 25039 25040# Commands used to build an old-style archive. 25041old_archive_cmds=$lt_old_archive_cmds_CXX 25042 25043# A language specific compiler. 25044CC=$lt_compiler_CXX 25045 25046# Is the compiler the GNU compiler? 25047with_gcc=$GCC_CXX 25048 25049# Compiler flag to turn off builtin functions. 25050no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 25051 25052# Additional compiler flags for building library objects. 25053pic_flag=$lt_lt_prog_compiler_pic_CXX 25054 25055# How to pass a linker flag through the compiler. 25056wl=$lt_lt_prog_compiler_wl_CXX 25057 25058# Compiler flag to prevent dynamic linking. 25059link_static_flag=$lt_lt_prog_compiler_static_CXX 25060 25061# Does compiler simultaneously support -c and -o options? 25062compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 25063 25064# Whether or not to add -lc for building shared libraries. 25065build_libtool_need_lc=$archive_cmds_need_lc_CXX 25066 25067# Whether or not to disallow shared libs when runtime libs are static. 25068allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 25069 25070# Compiler flag to allow reflexive dlopens. 25071export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 25072 25073# Compiler flag to generate shared objects directly from archives. 25074whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 25075 25076# Whether the compiler copes with passing no objects directly. 25077compiler_needs_object=$lt_compiler_needs_object_CXX 25078 25079# Create an old-style archive from a shared archive. 25080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 25081 25082# Create a temporary old-style archive to link instead of a shared archive. 25083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 25084 25085# Commands used to build a shared archive. 25086archive_cmds=$lt_archive_cmds_CXX 25087archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 25088 25089# Commands used to build a loadable module if different from building 25090# a shared archive. 25091module_cmds=$lt_module_cmds_CXX 25092module_expsym_cmds=$lt_module_expsym_cmds_CXX 25093 25094# Whether we are building with GNU ld or not. 25095with_gnu_ld=$lt_with_gnu_ld_CXX 25096 25097# Flag that allows shared libraries with undefined symbols to be built. 25098allow_undefined_flag=$lt_allow_undefined_flag_CXX 25099 25100# Flag that enforces no undefined symbols. 25101no_undefined_flag=$lt_no_undefined_flag_CXX 25102 25103# Flag to hardcode \$libdir into a binary during linking. 25104# This must work even if \$libdir does not exist 25105hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 25106 25107# Whether we need a single "-rpath" flag with a separated argument. 25108hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 25109 25110# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25111# DIR into the resulting binary. 25112hardcode_direct=$hardcode_direct_CXX 25113 25114# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25115# DIR into the resulting binary and the resulting library dependency is 25116# "absolute",i.e impossible to change by setting \$shlibpath_var if the 25117# library is relocated. 25118hardcode_direct_absolute=$hardcode_direct_absolute_CXX 25119 25120# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25121# into the resulting binary. 25122hardcode_minus_L=$hardcode_minus_L_CXX 25123 25124# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25125# into the resulting binary. 25126hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 25127 25128# Set to "yes" if building a shared library automatically hardcodes DIR 25129# into the library and all subsequent libraries and executables linked 25130# against it. 25131hardcode_automatic=$hardcode_automatic_CXX 25132 25133# Set to yes if linker adds runtime paths of dependent libraries 25134# to runtime path list. 25135inherit_rpath=$inherit_rpath_CXX 25136 25137# Whether libtool must link a program against all its dependency libraries. 25138link_all_deplibs=$link_all_deplibs_CXX 25139 25140# Set to "yes" if exported symbols are required. 25141always_export_symbols=$always_export_symbols_CXX 25142 25143# The commands to list exported symbols. 25144export_symbols_cmds=$lt_export_symbols_cmds_CXX 25145 25146# Symbols that should not be listed in the preloaded symbols. 25147exclude_expsyms=$lt_exclude_expsyms_CXX 25148 25149# Symbols that must always be exported. 25150include_expsyms=$lt_include_expsyms_CXX 25151 25152# Commands necessary for linking programs (against libraries) with templates. 25153prelink_cmds=$lt_prelink_cmds_CXX 25154 25155# Commands necessary for finishing linking programs. 25156postlink_cmds=$lt_postlink_cmds_CXX 25157 25158# Specify filename containing input files. 25159file_list_spec=$lt_file_list_spec_CXX 25160 25161# How to hardcode a shared library path into an executable. 25162hardcode_action=$hardcode_action_CXX 25163 25164# The directories searched by this compiler when creating a shared library. 25165compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 25166 25167# Dependencies to place before and after the objects being linked to 25168# create a shared library. 25169predep_objects=$lt_predep_objects_CXX 25170postdep_objects=$lt_postdep_objects_CXX 25171predeps=$lt_predeps_CXX 25172postdeps=$lt_postdeps_CXX 25173 25174# The library search path used internally by the compiler when linking 25175# a shared library. 25176compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 25177 25178# ### END LIBTOOL TAG CONFIG: CXX 25179_LT_EOF 25180 25181 ;; 25182 "podwrapper.pl":F) chmod +x,-w podwrapper.pl ;; 25183 "common/protocol/generate-protostrings.sh":F) chmod +x,-w common/protocol/generate-protostrings.sh ;; 25184 25185 esac 25186done # for ac_tag 25187 25188 25189as_fn_exit 0 25190_ACEOF 25191ac_clean_files=$ac_clean_files_save 25192 25193test $ac_write_fail = 0 || 25194 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25195 25196 25197# configure is writing to config.log, and then calls config.status. 25198# config.status does its own redirection, appending to config.log. 25199# Unfortunately, on DOS this fails, as config.log is still kept open 25200# by configure, so config.status won't be able to write to it; its 25201# output is simply discarded. So we exec the FD to /dev/null, 25202# effectively closing config.log, so it can be properly (re)opened and 25203# appended to by config.status. When coming back to configure, we 25204# need to make the FD available again. 25205if test "$no_create" != yes; then 25206 ac_cs_success=: 25207 ac_config_status_args= 25208 test "$silent" = yes && 25209 ac_config_status_args="$ac_config_status_args --quiet" 25210 exec 5>/dev/null 25211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25212 exec 5>>config.log 25213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25214 # would make configure fail if this is the last instruction. 25215 $ac_cs_success || as_fn_exit 1 25216fi 25217if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25219$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25220fi 25221 25222 25223echo 25224echo 25225echo "----------------------------------------------------------------------" 25226echo "Thank you for downloading $PACKAGE_STRING" 25227echo 25228echo "This is how we have configured the optional components for you today:" 25229echo 25230 25231feature () 25232{ 25233 printf %s " $1" 25234 shift 25235 if $@; then echo "yes"; else echo "no"; fi 25236} 25237 25238echo "Optional server features:" 25239echo 25240feature "bash-completion ........................ " \ 25241 test "x$HAVE_BASH_COMPLETION_TRUE" = "x" 25242feature "manual pages ........................... " \ 25243 test "x$HAVE_POD_TRUE" = "x" 25244feature "SELinux ................................ " \ 25245 test "x$LIBSELINUX_LIBS" != "x" 25246feature "TLS .................................... " \ 25247 test "x$GNUTLS_LIBS" != "x" 25248 25249echo 25250echo "Optional plugins:" 25251echo 25252feature "curl ................................... " \ 25253 test "x$HAVE_CURL_TRUE" = "x" 25254feature "example4 ............................... " \ 25255 test "x$HAVE_PERL_TRUE" = "x" 25256feature "ext2 ................................... " \ 25257 test "x$HAVE_EXT2_TRUE" = "x" 25258feature "floppy ................................. " \ 25259 test "x$HAVE_ICONV_TRUE" = "x" 25260feature "guestfs ................................ " \ 25261 test "x$HAVE_LIBGUESTFS_TRUE" = "x" 25262feature "gzip ................................... " \ 25263 test "x$HAVE_ZLIB_TRUE" = "x" 25264feature "iso .................................... " \ 25265 test "x$HAVE_ISO_TRUE" = "x" 25266feature "libvirt ................................ " \ 25267 test "x$HAVE_LIBVIRT_TRUE" = "x" 25268feature "nbd .................................... " \ 25269 test "x$HAVE_LIBNBD_TRUE" = "x" 25270feature "ssh .................................... " \ 25271 test "x$HAVE_SSH_TRUE" = "x" 25272feature "tar .................................... " \ 25273 test "x$HAVE_PERL_TRUE" = "x" 25274feature "vddk ................................... " \ 25275 test "x$HAVE_VDDK_TRUE" = "x" 25276 25277 25278echo 25279echo "Languages:" 25280echo 25281feature "go ..................................... " \ 25282 test "x$HAVE_GOLANG_TRUE" = "x" 25283feature "lua .................................... " \ 25284 test "x$HAVE_LUA_TRUE" = "x" 25285feature "ocaml .................................. " \ 25286 test "x$HAVE_OCAML_TRUE" = "x" 25287feature "perl ................................... " \ 25288 test "x$HAVE_PERL_TRUE" = "x" 25289feature "python ................................. " \ 25290 test "x$HAVE_PYTHON_TRUE" = "x" 25291feature "ruby ................................... " \ 25292 test "x$HAVE_RUBY_TRUE" = "x" 25293feature "rust ................................... " \ 25294 test "x$HAVE_RUST_TRUE" = "x" 25295feature "tcl .................................... " \ 25296 test "x$HAVE_TCL_TRUE" = "x" 25297 25298 25299echo 25300echo "Optional filters:" 25301echo 25302feature "ext2 ................................... " \ 25303 test "x$HAVE_EXT2_TRUE" = "x" 25304feature "xz ..................................... " \ 25305 test "x$HAVE_LIBLZMA_TRUE" = "x" 25306 25307echo 25308echo "If any optional component is configured ‘no’ when you expected ‘yes’" 25309echo "then you should check the preceding messages and README." 25310echo 25311echo "Please report bugs back to the mailing list:" 25312echo "http://www.redhat.com/mailman/listinfo/libguestfs" 25313echo 25314echo "Next you should type 'make' to build the package," 25315echo "then 'make check' to run the tests." 25316