1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for file 5.45. 4# 5# Report bugs to <christos@astron.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: christos@astron.com about your system, including any 280$0: error possibly output before this message. Then install 281$0: a modern shell, or manually run the script under such a 282$0: shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600 601test -n "$DJDIR" || exec 7<&0 </dev/null 602exec 6>&1 603 604# Name of the host. 605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606# so uname gets run too. 607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609# 610# Initializations. 611# 612ac_default_prefix=/usr/local 613ac_clean_files= 614ac_config_libobj_dir=. 615LIBOBJS= 616cross_compiling=no 617subdirs= 618MFLAGS= 619MAKEFLAGS= 620 621# Identity of this package. 622PACKAGE_NAME='file' 623PACKAGE_TARNAME='file' 624PACKAGE_VERSION='5.45' 625PACKAGE_STRING='file 5.45' 626PACKAGE_BUGREPORT='christos@astron.com' 627PACKAGE_URL='' 628 629# Factoring default headers for most tests. 630ac_includes_default="\ 631#include <stddef.h> 632#ifdef HAVE_STDIO_H 633# include <stdio.h> 634#endif 635#ifdef HAVE_STDLIB_H 636# include <stdlib.h> 637#endif 638#ifdef HAVE_STRING_H 639# include <string.h> 640#endif 641#ifdef HAVE_INTTYPES_H 642# include <inttypes.h> 643#endif 644#ifdef HAVE_STDINT_H 645# include <stdint.h> 646#endif 647#ifdef HAVE_STRINGS_H 648# include <strings.h> 649#endif 650#ifdef HAVE_SYS_TYPES_H 651# include <sys/types.h> 652#endif 653#ifdef HAVE_SYS_STAT_H 654# include <sys/stat.h> 655#endif 656#ifdef HAVE_UNISTD_H 657# include <unistd.h> 658#endif" 659 660ac_header_c_list= 661ac_func_c_list= 662ac_subst_vars='am__EXEEXT_FALSE 663am__EXEEXT_TRUE 664LTLIBOBJS 665IS_CROSS_COMPILE_FALSE 666IS_CROSS_COMPILE_TRUE 667LIBOBJS 668HAVE_VISIBILITY 669CFLAG_VISIBILITY 670LT_SYS_LIBRARY_PATH 671OTOOL64 672OTOOL 673LIPO 674NMEDIT 675DSYMUTIL 676MANIFEST_TOOL 677RANLIB 678ac_ct_AR 679AR 680DLLTOOL 681OBJDUMP 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LD 686FGREP 687EGREP 688GREP 689SED 690LIBTOOL 691LN_S 692am__fastdepCC_FALSE 693am__fastdepCC_TRUE 694CCDEPMODE 695am__nodep 696AMDEPBACKSLASH 697AMDEP_FALSE 698AMDEP_TRUE 699am__include 700DEPDIR 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708WARNINGS 709FSECT5_FALSE 710FSECT5_TRUE 711fsect 712pkgdatadir 713MINGW_FALSE 714MINGW_TRUE 715MINGW 716host_os 717host_vendor 718host_cpu 719host 720build_os 721build_vendor 722build_cpu 723build 724AM_BACKSLASH 725AM_DEFAULT_VERBOSITY 726AM_DEFAULT_V 727AM_V 728CSCOPE 729ETAGS 730CTAGS 731am__untar 732am__tar 733AMTAR 734am__leading_dot 735SET_MAKE 736AWK 737mkdir_p 738MKDIR_P 739INSTALL_STRIP_PROGRAM 740STRIP 741install_sh 742MAKEINFO 743AUTOHEADER 744AUTOMAKE 745AUTOCONF 746ACLOCAL 747VERSION 748PACKAGE 749CYGPATH_W 750am__isrc 751INSTALL_DATA 752INSTALL_SCRIPT 753INSTALL_PROGRAM 754target_alias 755host_alias 756build_alias 757LIBS 758ECHO_T 759ECHO_N 760ECHO_C 761DEFS 762mandir 763localedir 764libdir 765psdir 766pdfdir 767dvidir 768htmldir 769infodir 770docdir 771oldincludedir 772includedir 773runstatedir 774localstatedir 775sharedstatedir 776sysconfdir 777datadir 778datarootdir 779libexecdir 780sbindir 781bindir 782program_transform_name 783prefix 784exec_prefix 785PACKAGE_URL 786PACKAGE_BUGREPORT 787PACKAGE_STRING 788PACKAGE_VERSION 789PACKAGE_TARNAME 790PACKAGE_NAME 791PATH_SEPARATOR 792SHELL 793am__quote' 794ac_subst_files='' 795ac_user_opts=' 796enable_option_checking 797enable_silent_rules 798enable_elf 799enable_elf_core 800enable_zlib 801enable_bzlib 802enable_xzlib 803enable_zstdlib 804enable_lzlib 805enable_libseccomp 806enable_fsect_man5 807enable_dependency_tracking 808enable_static 809with_pic 810enable_shared 811enable_fast_install 812with_aix_soname 813with_gnu_ld 814with_sysroot 815enable_libtool_lock 816enable_largefile 817enable_warnings 818' 819 ac_precious_vars='build_alias 820host_alias 821target_alias 822CC 823CFLAGS 824LDFLAGS 825LIBS 826CPPFLAGS 827LT_SYS_LIBRARY_PATH' 828 829 830# Initialize some variables set by options. 831ac_init_help= 832ac_init_version=false 833ac_unrecognized_opts= 834ac_unrecognized_sep= 835# The variables have the same names as the options, with 836# dashes changed to underlines. 837cache_file=/dev/null 838exec_prefix=NONE 839no_create= 840no_recursion= 841prefix=NONE 842program_prefix=NONE 843program_suffix=NONE 844program_transform_name=s,x,x, 845silent= 846site= 847srcdir= 848verbose= 849x_includes=NONE 850x_libraries=NONE 851 852# Installation directory options. 853# These are left unexpanded so users can "make install exec_prefix=/foo" 854# and all the variables that are supposed to be based on exec_prefix 855# by default will actually change. 856# Use braces instead of parens because sh, perl, etc. also accept them. 857# (The list follows the same order as the GNU Coding Standards.) 858bindir='${exec_prefix}/bin' 859sbindir='${exec_prefix}/sbin' 860libexecdir='${exec_prefix}/libexec' 861datarootdir='${prefix}/share' 862datadir='${datarootdir}' 863sysconfdir='${prefix}/etc' 864sharedstatedir='${prefix}/com' 865localstatedir='${prefix}/var' 866runstatedir='${localstatedir}/run' 867includedir='${prefix}/include' 868oldincludedir='/usr/include' 869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 870infodir='${datarootdir}/info' 871htmldir='${docdir}' 872dvidir='${docdir}' 873pdfdir='${docdir}' 874psdir='${docdir}' 875libdir='${exec_prefix}/lib' 876localedir='${datarootdir}/locale' 877mandir='${datarootdir}/man' 878 879ac_prev= 880ac_dashdash= 881for ac_option 882do 883 # If the previous option needs an argument, assign it. 884 if test -n "$ac_prev"; then 885 eval $ac_prev=\$ac_option 886 ac_prev= 887 continue 888 fi 889 890 case $ac_option in 891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 892 *=) ac_optarg= ;; 893 *) ac_optarg=yes ;; 894 esac 895 896 case $ac_dashdash$ac_option in 897 --) 898 ac_dashdash=yes ;; 899 900 -bindir | --bindir | --bindi | --bind | --bin | --bi) 901 ac_prev=bindir ;; 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 903 bindir=$ac_optarg ;; 904 905 -build | --build | --buil | --bui | --bu) 906 ac_prev=build_alias ;; 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 908 build_alias=$ac_optarg ;; 909 910 -cache-file | --cache-file | --cache-fil | --cache-fi \ 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 912 ac_prev=cache_file ;; 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 915 cache_file=$ac_optarg ;; 916 917 --config-cache | -C) 918 cache_file=config.cache ;; 919 920 -datadir | --datadir | --datadi | --datad) 921 ac_prev=datadir ;; 922 -datadir=* | --datadir=* | --datadi=* | --datad=*) 923 datadir=$ac_optarg ;; 924 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 926 | --dataroo | --dataro | --datar) 927 ac_prev=datarootdir ;; 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 930 datarootdir=$ac_optarg ;; 931 932 -disable-* | --disable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: \`$ac_useropt'" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=no ;; 947 948 -docdir | --docdir | --docdi | --doc | --do) 949 ac_prev=docdir ;; 950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 951 docdir=$ac_optarg ;; 952 953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 954 ac_prev=dvidir ;; 955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 956 dvidir=$ac_optarg ;; 957 958 -enable-* | --enable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: \`$ac_useropt'" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=\$ac_optarg ;; 973 974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 976 | --exec | --exe | --ex) 977 ac_prev=exec_prefix ;; 978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 980 | --exec=* | --exe=* | --ex=*) 981 exec_prefix=$ac_optarg ;; 982 983 -gas | --gas | --ga | --g) 984 # Obsolete; use --with-gas. 985 with_gas=yes ;; 986 987 -help | --help | --hel | --he | -h) 988 ac_init_help=long ;; 989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 990 ac_init_help=recursive ;; 991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 992 ac_init_help=short ;; 993 994 -host | --host | --hos | --ho) 995 ac_prev=host_alias ;; 996 -host=* | --host=* | --hos=* | --ho=*) 997 host_alias=$ac_optarg ;; 998 999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1000 ac_prev=htmldir ;; 1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1002 | --ht=*) 1003 htmldir=$ac_optarg ;; 1004 1005 -includedir | --includedir | --includedi | --included | --include \ 1006 | --includ | --inclu | --incl | --inc) 1007 ac_prev=includedir ;; 1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1009 | --includ=* | --inclu=* | --incl=* | --inc=*) 1010 includedir=$ac_optarg ;; 1011 1012 -infodir | --infodir | --infodi | --infod | --info | --inf) 1013 ac_prev=infodir ;; 1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1015 infodir=$ac_optarg ;; 1016 1017 -libdir | --libdir | --libdi | --libd) 1018 ac_prev=libdir ;; 1019 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1020 libdir=$ac_optarg ;; 1021 1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1023 | --libexe | --libex | --libe) 1024 ac_prev=libexecdir ;; 1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1026 | --libexe=* | --libex=* | --libe=*) 1027 libexecdir=$ac_optarg ;; 1028 1029 -localedir | --localedir | --localedi | --localed | --locale) 1030 ac_prev=localedir ;; 1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1032 localedir=$ac_optarg ;; 1033 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1035 | --localstate | --localstat | --localsta | --localst | --locals) 1036 ac_prev=localstatedir ;; 1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1039 localstatedir=$ac_optarg ;; 1040 1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1042 ac_prev=mandir ;; 1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1044 mandir=$ac_optarg ;; 1045 1046 -nfp | --nfp | --nf) 1047 # Obsolete; use --without-fp. 1048 with_fp=no ;; 1049 1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1051 | --no-cr | --no-c | -n) 1052 no_create=yes ;; 1053 1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1056 no_recursion=yes ;; 1057 1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1060 | --oldin | --oldi | --old | --ol | --o) 1061 ac_prev=oldincludedir ;; 1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1065 oldincludedir=$ac_optarg ;; 1066 1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1068 ac_prev=prefix ;; 1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1070 prefix=$ac_optarg ;; 1071 1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1073 | --program-pre | --program-pr | --program-p) 1074 ac_prev=program_prefix ;; 1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1077 program_prefix=$ac_optarg ;; 1078 1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1080 | --program-suf | --program-su | --program-s) 1081 ac_prev=program_suffix ;; 1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1084 program_suffix=$ac_optarg ;; 1085 1086 -program-transform-name | --program-transform-name \ 1087 | --program-transform-nam | --program-transform-na \ 1088 | --program-transform-n | --program-transform- \ 1089 | --program-transform | --program-transfor \ 1090 | --program-transfo | --program-transf \ 1091 | --program-trans | --program-tran \ 1092 | --progr-tra | --program-tr | --program-t) 1093 ac_prev=program_transform_name ;; 1094 -program-transform-name=* | --program-transform-name=* \ 1095 | --program-transform-nam=* | --program-transform-na=* \ 1096 | --program-transform-n=* | --program-transform-=* \ 1097 | --program-transform=* | --program-transfor=* \ 1098 | --program-transfo=* | --program-transf=* \ 1099 | --program-trans=* | --program-tran=* \ 1100 | --progr-tra=* | --program-tr=* | --program-t=*) 1101 program_transform_name=$ac_optarg ;; 1102 1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1104 ac_prev=pdfdir ;; 1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1106 pdfdir=$ac_optarg ;; 1107 1108 -psdir | --psdir | --psdi | --psd | --ps) 1109 ac_prev=psdir ;; 1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1111 psdir=$ac_optarg ;; 1112 1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1114 | -silent | --silent | --silen | --sile | --sil) 1115 silent=yes ;; 1116 1117 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1118 | --runstate | --runstat | --runsta | --runst | --runs \ 1119 | --run | --ru | --r) 1120 ac_prev=runstatedir ;; 1121 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1122 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1123 | --run=* | --ru=* | --r=*) 1124 runstatedir=$ac_optarg ;; 1125 1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1127 ac_prev=sbindir ;; 1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1129 | --sbi=* | --sb=*) 1130 sbindir=$ac_optarg ;; 1131 1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1134 | --sharedst | --shareds | --shared | --share | --shar \ 1135 | --sha | --sh) 1136 ac_prev=sharedstatedir ;; 1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1140 | --sha=* | --sh=*) 1141 sharedstatedir=$ac_optarg ;; 1142 1143 -site | --site | --sit) 1144 ac_prev=site ;; 1145 -site=* | --site=* | --sit=*) 1146 site=$ac_optarg ;; 1147 1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1149 ac_prev=srcdir ;; 1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1151 srcdir=$ac_optarg ;; 1152 1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1154 | --syscon | --sysco | --sysc | --sys | --sy) 1155 ac_prev=sysconfdir ;; 1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1158 sysconfdir=$ac_optarg ;; 1159 1160 -target | --target | --targe | --targ | --tar | --ta | --t) 1161 ac_prev=target_alias ;; 1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1163 target_alias=$ac_optarg ;; 1164 1165 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1166 verbose=yes ;; 1167 1168 -version | --version | --versio | --versi | --vers | -V) 1169 ac_init_version=: ;; 1170 1171 -with-* | --with-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: \`$ac_useropt'" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=\$ac_optarg ;; 1186 1187 -without-* | --without-*) 1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1191 as_fn_error $? "invalid package name: \`$ac_useropt'" 1192 ac_useropt_orig=$ac_useropt 1193 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1194 case $ac_user_opts in 1195 *" 1196"with_$ac_useropt" 1197"*) ;; 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1199 ac_unrecognized_sep=', ';; 1200 esac 1201 eval with_$ac_useropt=no ;; 1202 1203 --x) 1204 # Obsolete; use --with-x. 1205 with_x=yes ;; 1206 1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1208 | --x-incl | --x-inc | --x-in | --x-i) 1209 ac_prev=x_includes ;; 1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1212 x_includes=$ac_optarg ;; 1213 1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1216 ac_prev=x_libraries ;; 1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1219 x_libraries=$ac_optarg ;; 1220 1221 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1222Try \`$0 --help' for more information" 1223 ;; 1224 1225 *=*) 1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1227 # Reject names that are not valid shell variable names. 1228 case $ac_envvar in #( 1229 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1231 esac 1232 eval $ac_envvar=\$ac_optarg 1233 export $ac_envvar ;; 1234 1235 *) 1236 # FIXME: should be removed in autoconf 3.0. 1237 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1239 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1241 ;; 1242 1243 esac 1244done 1245 1246if test -n "$ac_prev"; then 1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1248 as_fn_error $? "missing argument to $ac_option" 1249fi 1250 1251if test -n "$ac_unrecognized_opts"; then 1252 case $enable_option_checking in 1253 no) ;; 1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1255 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1256 esac 1257fi 1258 1259# Check all directory arguments for consistency. 1260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1261 datadir sysconfdir sharedstatedir localstatedir includedir \ 1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1263 libdir localedir mandir runstatedir 1264do 1265 eval ac_val=\$$ac_var 1266 # Remove trailing slashes. 1267 case $ac_val in 1268 */ ) 1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1270 eval $ac_var=\$ac_val;; 1271 esac 1272 # Be sure to have absolute directory names. 1273 case $ac_val in 1274 [\\/$]* | ?:[\\/]* ) continue;; 1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1276 esac 1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1278done 1279 1280# There might be people who depend on the old broken behavior: `$host' 1281# used to hold the argument of --host etc. 1282# FIXME: To remove some day. 1283build=$build_alias 1284host=$host_alias 1285target=$target_alias 1286 1287# FIXME: To remove some day. 1288if test "x$host_alias" != x; then 1289 if test "x$build_alias" = x; then 1290 cross_compiling=maybe 1291 elif test "x$build_alias" != "x$host_alias"; then 1292 cross_compiling=yes 1293 fi 1294fi 1295 1296ac_tool_prefix= 1297test -n "$host_alias" && ac_tool_prefix=$host_alias- 1298 1299test "$silent" = yes && exec 6>/dev/null 1300 1301 1302ac_pwd=`pwd` && test -n "$ac_pwd" && 1303ac_ls_di=`ls -di .` && 1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1305 as_fn_error $? "working directory cannot be determined" 1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1307 as_fn_error $? "pwd does not report name of working directory" 1308 1309 1310# Find the source files, if location was not specified. 1311if test -z "$srcdir"; then 1312 ac_srcdir_defaulted=yes 1313 # Try the directory containing this script, then the parent directory. 1314 ac_confdir=`$as_dirname -- "$as_myself" || 1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1316 X"$as_myself" : 'X\(//\)[^/]' \| \ 1317 X"$as_myself" : 'X\(//\)$' \| \ 1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1319printf "%s\n" X"$as_myself" | 1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)[^/].*/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\/\)$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\).*/{ 1333 s//\1/ 1334 q 1335 } 1336 s/.*/./; q'` 1337 srcdir=$ac_confdir 1338 if test ! -r "$srcdir/$ac_unique_file"; then 1339 srcdir=.. 1340 fi 1341else 1342 ac_srcdir_defaulted=no 1343fi 1344if test ! -r "$srcdir/$ac_unique_file"; then 1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1347fi 1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1349ac_abs_confdir=`( 1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1351 pwd)` 1352# When building in place, set srcdir=. 1353if test "$ac_abs_confdir" = "$ac_pwd"; then 1354 srcdir=. 1355fi 1356# Remove unnecessary trailing slashes from srcdir. 1357# Double slashes in file names in object file debugging info 1358# mess up M-x gdb in Emacs. 1359case $srcdir in 1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1361esac 1362for ac_var in $ac_precious_vars; do 1363 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_env_${ac_var}_value=\$${ac_var} 1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1367done 1368 1369# 1370# Report the --help message. 1371# 1372if test "$ac_init_help" = "long"; then 1373 # Omit some internal or obsolete options to make the list less imposing. 1374 # This message is too long to be a string in the A/UX 3.1 sh. 1375 cat <<_ACEOF 1376\`configure' configures file 5.45 to adapt to many kinds of systems. 1377 1378Usage: $0 [OPTION]... [VAR=VALUE]... 1379 1380To assign environment variables (e.g., CC, CFLAGS...), specify them as 1381VAR=VALUE. See below for descriptions of some of the useful variables. 1382 1383Defaults for the options are specified in brackets. 1384 1385Configuration: 1386 -h, --help display this help and exit 1387 --help=short display options specific to this package 1388 --help=recursive display the short help of all the included packages 1389 -V, --version display version information and exit 1390 -q, --quiet, --silent do not print \`checking ...' messages 1391 --cache-file=FILE cache test results in FILE [disabled] 1392 -C, --config-cache alias for \`--cache-file=config.cache' 1393 -n, --no-create do not create output files 1394 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1395 1396Installation directories: 1397 --prefix=PREFIX install architecture-independent files in PREFIX 1398 [$ac_default_prefix] 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1400 [PREFIX] 1401 1402By default, \`make install' will install all the files in 1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1404an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1405for instance \`--prefix=\$HOME'. 1406 1407For better control, use the options below. 1408 1409Fine tuning of the installation directories: 1410 --bindir=DIR user executables [EPREFIX/bin] 1411 --sbindir=DIR system admin executables [EPREFIX/sbin] 1412 --libexecdir=DIR program executables [EPREFIX/libexec] 1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1416 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1417 --libdir=DIR object code libraries [EPREFIX/lib] 1418 --includedir=DIR C header files [PREFIX/include] 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1422 --infodir=DIR info documentation [DATAROOTDIR/info] 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1424 --mandir=DIR man documentation [DATAROOTDIR/man] 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1426 --htmldir=DIR html documentation [DOCDIR] 1427 --dvidir=DIR dvi documentation [DOCDIR] 1428 --pdfdir=DIR pdf documentation [DOCDIR] 1429 --psdir=DIR ps documentation [DOCDIR] 1430_ACEOF 1431 1432 cat <<\_ACEOF 1433 1434Program names: 1435 --program-prefix=PREFIX prepend PREFIX to installed program names 1436 --program-suffix=SUFFIX append SUFFIX to installed program names 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1438 1439System types: 1440 --build=BUILD configure for building on BUILD [guessed] 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1442_ACEOF 1443fi 1444 1445if test -n "$ac_init_help"; then 1446 case $ac_init_help in 1447 short | recursive ) echo "Configuration of file 5.45:";; 1448 esac 1449 cat <<\_ACEOF 1450 1451Optional Features: 1452 --disable-option-checking ignore unrecognized --enable/--with options 1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1455 --enable-silent-rules less verbose build output (undo: "make V=1") 1456 --disable-silent-rules verbose build output (undo: "make V=0") 1457 --disable-elf disable builtin ELF support 1458 --disable-elf-core disable ELF core file support 1459 --disable-zlib disable zlib compression support [default=auto] 1460 --disable-bzlib disable bz2lib compression support [default=auto] 1461 --disable-xzlib disable liblzma/xz compression support 1462 [default=auto] 1463 --disable-zstdlib disable zstdlib compression support [default=auto] 1464 --disable-lzlib disable liblz (lzip) compression support 1465 [default=auto] 1466 --disable-libseccomp disable libseccomp sandboxing [default=auto] 1467 --enable-fsect-man5 enable file formats in man section 5 1468 --enable-dependency-tracking 1469 do not reject slow dependency extractors 1470 --disable-dependency-tracking 1471 speeds up one-time build 1472 --enable-static[=PKGS] build static libraries [default=no] 1473 --enable-shared[=PKGS] build shared libraries [default=yes] 1474 --enable-fast-install[=PKGS] 1475 optimize for fast installation [default=yes] 1476 --disable-libtool-lock avoid locking (might break parallel builds) 1477 --disable-largefile omit support for large files 1478 --disable-warnings disable compiler warnings 1479 1480Optional Packages: 1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1483 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1484 both] 1485 --with-aix-soname=aix|svr4|both 1486 shared library versioning (aka "SONAME") variant to 1487 provide on AIX, [default=aix]. 1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1489 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1490 compiler's sysroot if not specified). 1491 1492Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 LIBS libraries to pass to the linker, e.g. -l<library> 1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1499 you have headers in a nonstandard directory <include dir> 1500 LT_SYS_LIBRARY_PATH 1501 User-defined run-time library search path. 1502 1503Use these variables to override the choices made by `configure' or to help 1504it to find libraries and programs with nonstandard names/locations. 1505 1506Report bugs to <christos@astron.com>. 1507_ACEOF 1508ac_status=$? 1509fi 1510 1511if test "$ac_init_help" = "recursive"; then 1512 # If there are subdirs, report their specific --help. 1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1514 test -d "$ac_dir" || 1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1516 continue 1517 ac_builddir=. 1518 1519case "$ac_dir" in 1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521*) 1522 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1523 # A ".." for each directory in $ac_dir_suffix. 1524 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1525 case $ac_top_builddir_sub in 1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1528 esac ;; 1529esac 1530ac_abs_top_builddir=$ac_pwd 1531ac_abs_builddir=$ac_pwd$ac_dir_suffix 1532# for backward compatibility: 1533ac_top_builddir=$ac_top_build_prefix 1534 1535case $srcdir in 1536 .) # We are building in place. 1537 ac_srcdir=. 1538 ac_top_srcdir=$ac_top_builddir_sub 1539 ac_abs_top_srcdir=$ac_pwd ;; 1540 [\\/]* | ?:[\\/]* ) # Absolute name. 1541 ac_srcdir=$srcdir$ac_dir_suffix; 1542 ac_top_srcdir=$srcdir 1543 ac_abs_top_srcdir=$srcdir ;; 1544 *) # Relative name. 1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1546 ac_top_srcdir=$ac_top_build_prefix$srcdir 1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1548esac 1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1550 1551 cd "$ac_dir" || { ac_status=$?; continue; } 1552 # Check for configure.gnu first; this name is used for a wrapper for 1553 # Metaconfig's "Configure" on case-insensitive file systems. 1554 if test -f "$ac_srcdir/configure.gnu"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1557 elif test -f "$ac_srcdir/configure"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure" --help=recursive 1560 else 1561 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1562 fi || ac_status=$? 1563 cd "$ac_pwd" || { ac_status=$?; break; } 1564 done 1565fi 1566 1567test -n "$ac_init_help" && exit $ac_status 1568if $ac_init_version; then 1569 cat <<\_ACEOF 1570file configure 5.45 1571generated by GNU Autoconf 2.71 1572 1573Copyright (C) 2021 Free Software Foundation, Inc. 1574This configure script is free software; the Free Software Foundation 1575gives unlimited permission to copy, distribute and modify it. 1576_ACEOF 1577 exit 1578fi 1579 1580## ------------------------ ## 1581## Autoconf initialization. ## 1582## ------------------------ ## 1583 1584# ac_fn_c_try_compile LINENO 1585# -------------------------- 1586# Try to compile conftest.$ac_ext, and return whether this succeeded. 1587ac_fn_c_try_compile () 1588{ 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 rm -f conftest.$ac_objext conftest.beam 1591 if { { ac_try="$ac_compile" 1592case "(($ac_try" in 1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1594 *) ac_try_echo=$ac_try;; 1595esac 1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1597printf "%s\n" "$ac_try_echo"; } >&5 1598 (eval "$ac_compile") 2>conftest.err 1599 ac_status=$? 1600 if test -s conftest.err; then 1601 grep -v '^ *+' conftest.err >conftest.er1 1602 cat conftest.er1 >&5 1603 mv -f conftest.er1 conftest.err 1604 fi 1605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } && { 1607 test -z "$ac_c_werror_flag" || 1608 test ! -s conftest.err 1609 } && test -s conftest.$ac_objext 1610then : 1611 ac_retval=0 1612else $as_nop 1613 printf "%s\n" "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 as_fn_set_status $ac_retval 1620 1621} # ac_fn_c_try_compile 1622 1623# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1624# ------------------------------------------------------- 1625# Tests whether HEADER exists and can be compiled using the include files in 1626# INCLUDES, setting the cache variable VAR accordingly. 1627ac_fn_c_check_header_compile () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1631printf %s "checking for $2... " >&6; } 1632if eval test \${$3+y} 1633then : 1634 printf %s "(cached) " >&6 1635else $as_nop 1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637/* end confdefs.h. */ 1638$4 1639#include <$2> 1640_ACEOF 1641if ac_fn_c_try_compile "$LINENO" 1642then : 1643 eval "$3=yes" 1644else $as_nop 1645 eval "$3=no" 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1648fi 1649eval ac_res=\$$3 1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1651printf "%s\n" "$ac_res" >&6; } 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 1654} # ac_fn_c_check_header_compile 1655 1656# ac_fn_c_try_run LINENO 1657# ---------------------- 1658# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1659# executables *can* be run. 1660ac_fn_c_try_run () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 if { { ac_try="$ac_link" 1664case "(($ac_try" in 1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1666 *) ac_try_echo=$ac_try;; 1667esac 1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1669printf "%s\n" "$ac_try_echo"; } >&5 1670 (eval "$ac_link") 2>&5 1671 ac_status=$? 1672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1673 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1674 { { case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679printf "%s\n" "$ac_try_echo"; } >&5 1680 (eval "$ac_try") 2>&5 1681 ac_status=$? 1682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; }; } 1684then : 1685 ac_retval=0 1686else $as_nop 1687 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1688 printf "%s\n" "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=$ac_status 1692fi 1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1695 as_fn_set_status $ac_retval 1696 1697} # ac_fn_c_try_run 1698 1699# ac_fn_c_try_link LINENO 1700# ----------------------- 1701# Try to link conftest.$ac_ext, and return whether this succeeded. 1702ac_fn_c_try_link () 1703{ 1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1706 if { { ac_try="$ac_link" 1707case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710esac 1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712printf "%s\n" "$ac_try_echo"; } >&5 1713 (eval "$ac_link") 2>conftest.err 1714 ac_status=$? 1715 if test -s conftest.err; then 1716 grep -v '^ *+' conftest.err >conftest.er1 1717 cat conftest.er1 >&5 1718 mv -f conftest.er1 conftest.err 1719 fi 1720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1721 test $ac_status = 0; } && { 1722 test -z "$ac_c_werror_flag" || 1723 test ! -s conftest.err 1724 } && test -s conftest$ac_exeext && { 1725 test "$cross_compiling" = yes || 1726 test -x conftest$ac_exeext 1727 } 1728then : 1729 ac_retval=0 1730else $as_nop 1731 printf "%s\n" "$as_me: failed program was:" >&5 1732sed 's/^/| /' conftest.$ac_ext >&5 1733 1734 ac_retval=1 1735fi 1736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1738 # interfere with the next link command; also delete a directory that is 1739 # left behind by Apple's compiler. We do this before executing the actions. 1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 as_fn_set_status $ac_retval 1743 1744} # ac_fn_c_try_link 1745 1746# ac_fn_c_check_func LINENO FUNC VAR 1747# ---------------------------------- 1748# Tests whether FUNC exists, setting the cache variable VAR accordingly 1749ac_fn_c_check_func () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1753printf %s "checking for $2... " >&6; } 1754if eval test \${$3+y} 1755then : 1756 printf %s "(cached) " >&6 1757else $as_nop 1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1762#define $2 innocuous_$2 1763 1764/* System header to define __stub macros and hopefully few prototypes, 1765 which can conflict with char $2 (); below. */ 1766 1767#include <limits.h> 1768#undef $2 1769 1770/* Override any GCC internal prototype to avoid an error. 1771 Use char because int might match the return type of a GCC 1772 builtin and then its argument prototype would still apply. */ 1773#ifdef __cplusplus 1774extern "C" 1775#endif 1776char $2 (); 1777/* The GNU C library defines this for functions which it implements 1778 to always fail with ENOSYS. Some functions are actually named 1779 something starting with __ and the normal name is an alias. */ 1780#if defined __stub_$2 || defined __stub___$2 1781choke me 1782#endif 1783 1784int 1785main (void) 1786{ 1787return $2 (); 1788 ; 1789 return 0; 1790} 1791_ACEOF 1792if ac_fn_c_try_link "$LINENO" 1793then : 1794 eval "$3=yes" 1795else $as_nop 1796 eval "$3=no" 1797fi 1798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1799 conftest$ac_exeext conftest.$ac_ext 1800fi 1801eval ac_res=\$$3 1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1803printf "%s\n" "$ac_res" >&6; } 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 1806} # ac_fn_c_check_func 1807 1808# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1809# ------------------------------------------- 1810# Tests whether TYPE exists after having included INCLUDES, setting cache 1811# variable VAR accordingly. 1812ac_fn_c_check_type () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1816printf %s "checking for $2... " >&6; } 1817if eval test \${$3+y} 1818then : 1819 printf %s "(cached) " >&6 1820else $as_nop 1821 eval "$3=no" 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824$4 1825int 1826main (void) 1827{ 1828if (sizeof ($2)) 1829 return 0; 1830 ; 1831 return 0; 1832} 1833_ACEOF 1834if ac_fn_c_try_compile "$LINENO" 1835then : 1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838$4 1839int 1840main (void) 1841{ 1842if (sizeof (($2))) 1843 return 0; 1844 ; 1845 return 0; 1846} 1847_ACEOF 1848if ac_fn_c_try_compile "$LINENO" 1849then : 1850 1851else $as_nop 1852 eval "$3=yes" 1853fi 1854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1855fi 1856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1857fi 1858eval ac_res=\$$3 1859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860printf "%s\n" "$ac_res" >&6; } 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 1863} # ac_fn_c_check_type 1864 1865# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1866# ---------------------------------------------------- 1867# Tries to find if the field MEMBER exists in type AGGR, after including 1868# INCLUDES, setting cache variable VAR accordingly. 1869ac_fn_c_check_member () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1873printf %s "checking for $2.$3... " >&6; } 1874if eval test \${$4+y} 1875then : 1876 printf %s "(cached) " >&6 1877else $as_nop 1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1879/* end confdefs.h. */ 1880$5 1881int 1882main (void) 1883{ 1884static $2 ac_aggr; 1885if (ac_aggr.$3) 1886return 0; 1887 ; 1888 return 0; 1889} 1890_ACEOF 1891if ac_fn_c_try_compile "$LINENO" 1892then : 1893 eval "$4=yes" 1894else $as_nop 1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1896/* end confdefs.h. */ 1897$5 1898int 1899main (void) 1900{ 1901static $2 ac_aggr; 1902if (sizeof ac_aggr.$3) 1903return 0; 1904 ; 1905 return 0; 1906} 1907_ACEOF 1908if ac_fn_c_try_compile "$LINENO" 1909then : 1910 eval "$4=yes" 1911else $as_nop 1912 eval "$4=no" 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1915fi 1916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1917fi 1918eval ac_res=\$$4 1919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920printf "%s\n" "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_c_check_member 1924 1925# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1926# ------------------------------------------------------------------ 1927# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1928# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1929ac_fn_check_decl () 1930{ 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 as_decl_name=`echo $2|sed 's/ *(.*//'` 1933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1934printf %s "checking whether $as_decl_name is declared... " >&6; } 1935if eval test \${$3+y} 1936then : 1937 printf %s "(cached) " >&6 1938else $as_nop 1939 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1940 eval ac_save_FLAGS=\$$6 1941 as_fn_append $6 " $5" 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int 1946main (void) 1947{ 1948#ifndef $as_decl_name 1949#ifdef __cplusplus 1950 (void) $as_decl_use; 1951#else 1952 (void) $as_decl_name; 1953#endif 1954#endif 1955 1956 ; 1957 return 0; 1958} 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO" 1961then : 1962 eval "$3=yes" 1963else $as_nop 1964 eval "$3=no" 1965fi 1966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1967 eval $6=\$ac_save_FLAGS 1968 1969fi 1970eval ac_res=\$$3 1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972printf "%s\n" "$ac_res" >&6; } 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 1975} # ac_fn_check_decl 1976 1977# ac_fn_c_find_uintX_t LINENO BITS VAR 1978# ------------------------------------ 1979# Finds an unsigned integer type with width BITS, setting cache variable VAR 1980# accordingly. 1981ac_fn_c_find_uintX_t () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1985printf %s "checking for uint$2_t... " >&6; } 1986if eval test \${$3+y} 1987then : 1988 printf %s "(cached) " >&6 1989else $as_nop 1990 eval "$3=no" 1991 # Order is important - never check a type that is potentially smaller 1992 # than half of the expected target width. 1993 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1994 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1996/* end confdefs.h. */ 1997$ac_includes_default 1998int 1999main (void) 2000{ 2001static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2002test_array [0] = 0; 2003return test_array [0]; 2004 2005 ; 2006 return 0; 2007} 2008_ACEOF 2009if ac_fn_c_try_compile "$LINENO" 2010then : 2011 case $ac_type in #( 2012 uint$2_t) : 2013 eval "$3=yes" ;; #( 2014 *) : 2015 eval "$3=\$ac_type" ;; 2016esac 2017fi 2018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2019 if eval test \"x\$"$3"\" = x"no" 2020then : 2021 2022else $as_nop 2023 break 2024fi 2025 done 2026fi 2027eval ac_res=\$$3 2028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2029printf "%s\n" "$ac_res" >&6; } 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 2032} # ac_fn_c_find_uintX_t 2033 2034# ac_fn_c_find_intX_t LINENO BITS VAR 2035# ----------------------------------- 2036# Finds a signed integer type with width BITS, setting cache variable VAR 2037# accordingly. 2038ac_fn_c_find_intX_t () 2039{ 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2042printf %s "checking for int$2_t... " >&6; } 2043if eval test \${$3+y} 2044then : 2045 printf %s "(cached) " >&6 2046else $as_nop 2047 eval "$3=no" 2048 # Order is important - never check a type that is potentially smaller 2049 # than half of the expected target width. 2050 for ac_type in int$2_t 'int' 'long int' \ 2051 'long long int' 'short int' 'signed char'; do 2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2053/* end confdefs.h. */ 2054$ac_includes_default 2055 enum { N = $2 / 2 - 1 }; 2056int 2057main (void) 2058{ 2059static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2060test_array [0] = 0; 2061return test_array [0]; 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO" 2068then : 2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2070/* end confdefs.h. */ 2071$ac_includes_default 2072 enum { N = $2 / 2 - 1 }; 2073int 2074main (void) 2075{ 2076static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2077 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2078test_array [0] = 0; 2079return test_array [0]; 2080 2081 ; 2082 return 0; 2083} 2084_ACEOF 2085if ac_fn_c_try_compile "$LINENO" 2086then : 2087 2088else $as_nop 2089 case $ac_type in #( 2090 int$2_t) : 2091 eval "$3=yes" ;; #( 2092 *) : 2093 eval "$3=\$ac_type" ;; 2094esac 2095fi 2096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2099 if eval test \"x\$"$3"\" = x"no" 2100then : 2101 2102else $as_nop 2103 break 2104fi 2105 done 2106fi 2107eval ac_res=\$$3 2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2109printf "%s\n" "$ac_res" >&6; } 2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2111 2112} # ac_fn_c_find_intX_t 2113ac_configure_args_raw= 2114for ac_arg 2115do 2116 case $ac_arg in 2117 *\'*) 2118 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2119 esac 2120 as_fn_append ac_configure_args_raw " '$ac_arg'" 2121done 2122 2123case $ac_configure_args_raw in 2124 *$as_nl*) 2125 ac_safe_unquote= ;; 2126 *) 2127 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2128 ac_unsafe_a="$ac_unsafe_z#~" 2129 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2130 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2131esac 2132 2133cat >config.log <<_ACEOF 2134This file contains any messages produced by compilers while 2135running configure, to aid debugging if configure makes a mistake. 2136 2137It was created by file $as_me 5.45, which was 2138generated by GNU Autoconf 2.71. Invocation command line was 2139 2140 $ $0$ac_configure_args_raw 2141 2142_ACEOF 2143exec 5>>config.log 2144{ 2145cat <<_ASUNAME 2146## --------- ## 2147## Platform. ## 2148## --------- ## 2149 2150hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2151uname -m = `(uname -m) 2>/dev/null || echo unknown` 2152uname -r = `(uname -r) 2>/dev/null || echo unknown` 2153uname -s = `(uname -s) 2>/dev/null || echo unknown` 2154uname -v = `(uname -v) 2>/dev/null || echo unknown` 2155 2156/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2157/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2158 2159/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2160/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2161/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2162/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2163/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2164/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2165/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2166 2167_ASUNAME 2168 2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2170for as_dir in $PATH 2171do 2172 IFS=$as_save_IFS 2173 case $as_dir in #((( 2174 '') as_dir=./ ;; 2175 */) ;; 2176 *) as_dir=$as_dir/ ;; 2177 esac 2178 printf "%s\n" "PATH: $as_dir" 2179 done 2180IFS=$as_save_IFS 2181 2182} >&5 2183 2184cat >&5 <<_ACEOF 2185 2186 2187## ----------- ## 2188## Core tests. ## 2189## ----------- ## 2190 2191_ACEOF 2192 2193 2194# Keep a trace of the command line. 2195# Strip out --no-create and --no-recursion so they do not pile up. 2196# Strip out --silent because we don't want to record it for future runs. 2197# Also quote any args containing shell meta-characters. 2198# Make two passes to allow for proper duplicate-argument suppression. 2199ac_configure_args= 2200ac_configure_args0= 2201ac_configure_args1= 2202ac_must_keep_next=false 2203for ac_pass in 1 2 2204do 2205 for ac_arg 2206 do 2207 case $ac_arg in 2208 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2210 | -silent | --silent | --silen | --sile | --sil) 2211 continue ;; 2212 *\'*) 2213 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2214 esac 2215 case $ac_pass in 2216 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2217 2) 2218 as_fn_append ac_configure_args1 " '$ac_arg'" 2219 if test $ac_must_keep_next = true; then 2220 ac_must_keep_next=false # Got value, back to normal. 2221 else 2222 case $ac_arg in 2223 *=* | --config-cache | -C | -disable-* | --disable-* \ 2224 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2225 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2226 | -with-* | --with-* | -without-* | --without-* | --x) 2227 case "$ac_configure_args0 " in 2228 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2229 esac 2230 ;; 2231 -* ) ac_must_keep_next=true ;; 2232 esac 2233 fi 2234 as_fn_append ac_configure_args " '$ac_arg'" 2235 ;; 2236 esac 2237 done 2238done 2239{ ac_configure_args0=; unset ac_configure_args0;} 2240{ ac_configure_args1=; unset ac_configure_args1;} 2241 2242# When interrupted or exit'd, cleanup temporary files, and complete 2243# config.log. We remove comments because anyway the quotes in there 2244# would cause problems or look ugly. 2245# WARNING: Use '\'' to represent an apostrophe within the trap. 2246# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2247trap 'exit_status=$? 2248 # Sanitize IFS. 2249 IFS=" "" $as_nl" 2250 # Save into config.log some information that might help in debugging. 2251 { 2252 echo 2253 2254 printf "%s\n" "## ---------------- ## 2255## Cache variables. ## 2256## ---------------- ##" 2257 echo 2258 # The following way of writing the cache mishandles newlines in values, 2259( 2260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2261 eval ac_val=\$$ac_var 2262 case $ac_val in #( 2263 *${as_nl}*) 2264 case $ac_var in #( 2265 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2266printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2267 esac 2268 case $ac_var in #( 2269 _ | IFS | as_nl) ;; #( 2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2271 *) { eval $ac_var=; unset $ac_var;} ;; 2272 esac ;; 2273 esac 2274 done 2275 (set) 2>&1 | 2276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2277 *${as_nl}ac_space=\ *) 2278 sed -n \ 2279 "s/'\''/'\''\\\\'\'''\''/g; 2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2281 ;; #( 2282 *) 2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2284 ;; 2285 esac | 2286 sort 2287) 2288 echo 2289 2290 printf "%s\n" "## ----------------- ## 2291## Output variables. ## 2292## ----------------- ##" 2293 echo 2294 for ac_var in $ac_subst_vars 2295 do 2296 eval ac_val=\$$ac_var 2297 case $ac_val in 2298 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2299 esac 2300 printf "%s\n" "$ac_var='\''$ac_val'\''" 2301 done | sort 2302 echo 2303 2304 if test -n "$ac_subst_files"; then 2305 printf "%s\n" "## ------------------- ## 2306## File substitutions. ## 2307## ------------------- ##" 2308 echo 2309 for ac_var in $ac_subst_files 2310 do 2311 eval ac_val=\$$ac_var 2312 case $ac_val in 2313 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2314 esac 2315 printf "%s\n" "$ac_var='\''$ac_val'\''" 2316 done | sort 2317 echo 2318 fi 2319 2320 if test -s confdefs.h; then 2321 printf "%s\n" "## ----------- ## 2322## confdefs.h. ## 2323## ----------- ##" 2324 echo 2325 cat confdefs.h 2326 echo 2327 fi 2328 test "$ac_signal" != 0 && 2329 printf "%s\n" "$as_me: caught signal $ac_signal" 2330 printf "%s\n" "$as_me: exit $exit_status" 2331 } >&5 2332 rm -f core *.core core.conftest.* && 2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2334 exit $exit_status 2335' 0 2336for ac_signal in 1 2 13 15; do 2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2338done 2339ac_signal=0 2340 2341# confdefs.h avoids OS command line length limits that DEFS can exceed. 2342rm -f -r conftest* confdefs.h 2343 2344printf "%s\n" "/* confdefs.h */" > confdefs.h 2345 2346# Predefined preprocessor variables. 2347 2348printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2349 2350printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2351 2352printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2353 2354printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2355 2356printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2357 2358printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2359 2360 2361# Let the site file select an alternate cache file if it wants to. 2362# Prefer an explicitly selected file to automatically selected ones. 2363if test -n "$CONFIG_SITE"; then 2364 ac_site_files="$CONFIG_SITE" 2365elif test "x$prefix" != xNONE; then 2366 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2367else 2368 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2369fi 2370 2371for ac_site_file in $ac_site_files 2372do 2373 case $ac_site_file in #( 2374 */*) : 2375 ;; #( 2376 *) : 2377 ac_site_file=./$ac_site_file ;; 2378esac 2379 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2381printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2382 sed 's/^/| /' "$ac_site_file" >&5 2383 . "$ac_site_file" \ 2384 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2385printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2386as_fn_error $? "failed to load site script $ac_site_file 2387See \`config.log' for more details" "$LINENO" 5; } 2388 fi 2389done 2390 2391if test -r "$cache_file"; then 2392 # Some versions of bash will fail to source /dev/null (special files 2393 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2394 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2396printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2397 case $cache_file in 2398 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2399 *) . "./$cache_file";; 2400 esac 2401 fi 2402else 2403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2404printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2405 >$cache_file 2406fi 2407 2408# Test code for whether the C compiler supports C89 (global declarations) 2409ac_c_conftest_c89_globals=' 2410/* Does the compiler advertise C89 conformance? 2411 Do not test the value of __STDC__, because some compilers set it to 0 2412 while being otherwise adequately conformant. */ 2413#if !defined __STDC__ 2414# error "Compiler does not advertise C89 conformance" 2415#endif 2416 2417#include <stddef.h> 2418#include <stdarg.h> 2419struct stat; 2420/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2421struct buf { int x; }; 2422struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2423static char *e (p, i) 2424 char **p; 2425 int i; 2426{ 2427 return p[i]; 2428} 2429static char *f (char * (*g) (char **, int), char **p, ...) 2430{ 2431 char *s; 2432 va_list v; 2433 va_start (v,p); 2434 s = g (p, va_arg (v,int)); 2435 va_end (v); 2436 return s; 2437} 2438 2439/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2440 function prototypes and stuff, but not \xHH hex character constants. 2441 These do not provoke an error unfortunately, instead are silently treated 2442 as an "x". The following induces an error, until -std is added to get 2443 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2444 array size at least. It is necessary to write \x00 == 0 to get something 2445 that is true only with -std. */ 2446int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2447 2448/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2449 inside strings and character constants. */ 2450#define FOO(x) '\''x'\'' 2451int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2452 2453int test (int i, double x); 2454struct s1 {int (*f) (int a);}; 2455struct s2 {int (*f) (double a);}; 2456int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2457 int, int);' 2458 2459# Test code for whether the C compiler supports C89 (body of main). 2460ac_c_conftest_c89_main=' 2461ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2462' 2463 2464# Test code for whether the C compiler supports C99 (global declarations) 2465ac_c_conftest_c99_globals=' 2466// Does the compiler advertise C99 conformance? 2467#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2468# error "Compiler does not advertise C99 conformance" 2469#endif 2470 2471#include <stdbool.h> 2472extern int puts (const char *); 2473extern int printf (const char *, ...); 2474extern int dprintf (int, const char *, ...); 2475extern void *malloc (size_t); 2476 2477// Check varargs macros. These examples are taken from C99 6.10.3.5. 2478// dprintf is used instead of fprintf to avoid needing to declare 2479// FILE and stderr. 2480#define debug(...) dprintf (2, __VA_ARGS__) 2481#define showlist(...) puts (#__VA_ARGS__) 2482#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2483static void 2484test_varargs_macros (void) 2485{ 2486 int x = 1234; 2487 int y = 5678; 2488 debug ("Flag"); 2489 debug ("X = %d\n", x); 2490 showlist (The first, second, and third items.); 2491 report (x>y, "x is %d but y is %d", x, y); 2492} 2493 2494// Check long long types. 2495#define BIG64 18446744073709551615ull 2496#define BIG32 4294967295ul 2497#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2498#if !BIG_OK 2499 #error "your preprocessor is broken" 2500#endif 2501#if BIG_OK 2502#else 2503 #error "your preprocessor is broken" 2504#endif 2505static long long int bignum = -9223372036854775807LL; 2506static unsigned long long int ubignum = BIG64; 2507 2508struct incomplete_array 2509{ 2510 int datasize; 2511 double data[]; 2512}; 2513 2514struct named_init { 2515 int number; 2516 const wchar_t *name; 2517 double average; 2518}; 2519 2520typedef const char *ccp; 2521 2522static inline int 2523test_restrict (ccp restrict text) 2524{ 2525 // See if C++-style comments work. 2526 // Iterate through items via the restricted pointer. 2527 // Also check for declarations in for loops. 2528 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2529 continue; 2530 return 0; 2531} 2532 2533// Check varargs and va_copy. 2534static bool 2535test_varargs (const char *format, ...) 2536{ 2537 va_list args; 2538 va_start (args, format); 2539 va_list args_copy; 2540 va_copy (args_copy, args); 2541 2542 const char *str = ""; 2543 int number = 0; 2544 float fnumber = 0; 2545 2546 while (*format) 2547 { 2548 switch (*format++) 2549 { 2550 case '\''s'\'': // string 2551 str = va_arg (args_copy, const char *); 2552 break; 2553 case '\''d'\'': // int 2554 number = va_arg (args_copy, int); 2555 break; 2556 case '\''f'\'': // float 2557 fnumber = va_arg (args_copy, double); 2558 break; 2559 default: 2560 break; 2561 } 2562 } 2563 va_end (args_copy); 2564 va_end (args); 2565 2566 return *str && number && fnumber; 2567} 2568' 2569 2570# Test code for whether the C compiler supports C99 (body of main). 2571ac_c_conftest_c99_main=' 2572 // Check bool. 2573 _Bool success = false; 2574 success |= (argc != 0); 2575 2576 // Check restrict. 2577 if (test_restrict ("String literal") == 0) 2578 success = true; 2579 char *restrict newvar = "Another string"; 2580 2581 // Check varargs. 2582 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2583 test_varargs_macros (); 2584 2585 // Check flexible array members. 2586 struct incomplete_array *ia = 2587 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2588 ia->datasize = 10; 2589 for (int i = 0; i < ia->datasize; ++i) 2590 ia->data[i] = i * 1.234; 2591 2592 // Check named initializers. 2593 struct named_init ni = { 2594 .number = 34, 2595 .name = L"Test wide string", 2596 .average = 543.34343, 2597 }; 2598 2599 ni.number = 58; 2600 2601 int dynamic_array[ni.number]; 2602 dynamic_array[0] = argv[0][0]; 2603 dynamic_array[ni.number - 1] = 543; 2604 2605 // work around unused variable warnings 2606 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2607 || dynamic_array[ni.number - 1] != 543); 2608' 2609 2610# Test code for whether the C compiler supports C11 (global declarations) 2611ac_c_conftest_c11_globals=' 2612// Does the compiler advertise C11 conformance? 2613#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2614# error "Compiler does not advertise C11 conformance" 2615#endif 2616 2617// Check _Alignas. 2618char _Alignas (double) aligned_as_double; 2619char _Alignas (0) no_special_alignment; 2620extern char aligned_as_int; 2621char _Alignas (0) _Alignas (int) aligned_as_int; 2622 2623// Check _Alignof. 2624enum 2625{ 2626 int_alignment = _Alignof (int), 2627 int_array_alignment = _Alignof (int[100]), 2628 char_alignment = _Alignof (char) 2629}; 2630_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2631 2632// Check _Noreturn. 2633int _Noreturn does_not_return (void) { for (;;) continue; } 2634 2635// Check _Static_assert. 2636struct test_static_assert 2637{ 2638 int x; 2639 _Static_assert (sizeof (int) <= sizeof (long int), 2640 "_Static_assert does not work in struct"); 2641 long int y; 2642}; 2643 2644// Check UTF-8 literals. 2645#define u8 syntax error! 2646char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2647 2648// Check duplicate typedefs. 2649typedef long *long_ptr; 2650typedef long int *long_ptr; 2651typedef long_ptr long_ptr; 2652 2653// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2654struct anonymous 2655{ 2656 union { 2657 struct { int i; int j; }; 2658 struct { int k; long int l; } w; 2659 }; 2660 int m; 2661} v1; 2662' 2663 2664# Test code for whether the C compiler supports C11 (body of main). 2665ac_c_conftest_c11_main=' 2666 _Static_assert ((offsetof (struct anonymous, i) 2667 == offsetof (struct anonymous, w.k)), 2668 "Anonymous union alignment botch"); 2669 v1.i = 2; 2670 v1.w.k = 5; 2671 ok |= v1.i != 5; 2672' 2673 2674# Test code for whether the C compiler supports C11 (complete). 2675ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2676${ac_c_conftest_c99_globals} 2677${ac_c_conftest_c11_globals} 2678 2679int 2680main (int argc, char **argv) 2681{ 2682 int ok = 0; 2683 ${ac_c_conftest_c89_main} 2684 ${ac_c_conftest_c99_main} 2685 ${ac_c_conftest_c11_main} 2686 return ok; 2687} 2688" 2689 2690# Test code for whether the C compiler supports C99 (complete). 2691ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2692${ac_c_conftest_c99_globals} 2693 2694int 2695main (int argc, char **argv) 2696{ 2697 int ok = 0; 2698 ${ac_c_conftest_c89_main} 2699 ${ac_c_conftest_c99_main} 2700 return ok; 2701} 2702" 2703 2704# Test code for whether the C compiler supports C89 (complete). 2705ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2706 2707int 2708main (int argc, char **argv) 2709{ 2710 int ok = 0; 2711 ${ac_c_conftest_c89_main} 2712 return ok; 2713} 2714" 2715 2716as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2717as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2718as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2719as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2720as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2721as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2722as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2723as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2724as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2725as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2726as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2727as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2728as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2729as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2730as_fn_append ac_func_c_list " fork HAVE_FORK" 2731as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2732 2733# Auxiliary files required by this configure script. 2734ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh" 2735 2736# Locations in which to look for auxiliary files. 2737ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2738 2739# Search for a directory containing all of the required auxiliary files, 2740# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2741# If we don't find one directory that contains all the files we need, 2742# we report the set of missing files from the *first* directory in 2743# $ac_aux_dir_candidates and give up. 2744ac_missing_aux_files="" 2745ac_first_candidate=: 2746printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2748as_found=false 2749for as_dir in $ac_aux_dir_candidates 2750do 2751 IFS=$as_save_IFS 2752 case $as_dir in #((( 2753 '') as_dir=./ ;; 2754 */) ;; 2755 *) as_dir=$as_dir/ ;; 2756 esac 2757 as_found=: 2758 2759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2760 ac_aux_dir_found=yes 2761 ac_install_sh= 2762 for ac_aux in $ac_aux_files 2763 do 2764 # As a special case, if "install-sh" is required, that requirement 2765 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2766 # and $ac_install_sh is set appropriately for whichever one is found. 2767 if test x"$ac_aux" = x"install-sh" 2768 then 2769 if test -f "${as_dir}install-sh"; then 2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2771 ac_install_sh="${as_dir}install-sh -c" 2772 elif test -f "${as_dir}install.sh"; then 2773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2774 ac_install_sh="${as_dir}install.sh -c" 2775 elif test -f "${as_dir}shtool"; then 2776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2777 ac_install_sh="${as_dir}shtool install -c" 2778 else 2779 ac_aux_dir_found=no 2780 if $ac_first_candidate; then 2781 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2782 else 2783 break 2784 fi 2785 fi 2786 else 2787 if test -f "${as_dir}${ac_aux}"; then 2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2789 else 2790 ac_aux_dir_found=no 2791 if $ac_first_candidate; then 2792 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2793 else 2794 break 2795 fi 2796 fi 2797 fi 2798 done 2799 if test "$ac_aux_dir_found" = yes; then 2800 ac_aux_dir="$as_dir" 2801 break 2802 fi 2803 ac_first_candidate=false 2804 2805 as_found=false 2806done 2807IFS=$as_save_IFS 2808if $as_found 2809then : 2810 2811else $as_nop 2812 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2813fi 2814 2815 2816# These three variables are undocumented and unsupported, 2817# and are intended to be withdrawn in a future Autoconf release. 2818# They can cause serious problems if a builder's source tree is in a directory 2819# whose full name contains unusual characters. 2820if test -f "${ac_aux_dir}config.guess"; then 2821 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2822fi 2823if test -f "${ac_aux_dir}config.sub"; then 2824 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2825fi 2826if test -f "$ac_aux_dir/configure"; then 2827 ac_configure="$SHELL ${ac_aux_dir}configure" 2828fi 2829 2830# Check that the precious variables saved in the cache have kept the same 2831# value. 2832ac_cache_corrupted=false 2833for ac_var in $ac_precious_vars; do 2834 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2835 eval ac_new_set=\$ac_env_${ac_var}_set 2836 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2837 eval ac_new_val=\$ac_env_${ac_var}_value 2838 case $ac_old_set,$ac_new_set in 2839 set,) 2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2841printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2842 ac_cache_corrupted=: ;; 2843 ,set) 2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2845printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2846 ac_cache_corrupted=: ;; 2847 ,);; 2848 *) 2849 if test "x$ac_old_val" != "x$ac_new_val"; then 2850 # differences in whitespace do not lead to failure. 2851 ac_old_val_w=`echo x $ac_old_val` 2852 ac_new_val_w=`echo x $ac_new_val` 2853 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2855printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2856 ac_cache_corrupted=: 2857 else 2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2859printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2860 eval $ac_var=\$ac_old_val 2861 fi 2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2863printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2865printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2866 fi;; 2867 esac 2868 # Pass precious variables to config.status. 2869 if test "$ac_new_set" = set; then 2870 case $ac_new_val in 2871 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2872 *) ac_arg=$ac_var=$ac_new_val ;; 2873 esac 2874 case " $ac_configure_args " in 2875 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2876 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2877 esac 2878 fi 2879done 2880if $ac_cache_corrupted; then 2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2882printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2884printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2885 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2886 and start over" "$LINENO" 5 2887fi 2888## -------------------- ## 2889## Main body of script. ## 2890## -------------------- ## 2891 2892ac_ext=c 2893ac_cpp='$CPP $CPPFLAGS' 2894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2896ac_compiler_gnu=$ac_cv_c_compiler_gnu 2897 2898 2899am__api_version='1.16' 2900 2901 2902 2903 # Find a good install program. We prefer a C program (faster), 2904# so one script is as good as another. But avoid the broken or 2905# incompatible versions: 2906# SysV /etc/install, /usr/sbin/install 2907# SunOS /usr/etc/install 2908# IRIX /sbin/install 2909# AIX /bin/install 2910# AmigaOS /C/install, which installs bootblocks on floppy discs 2911# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2912# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2913# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2914# OS/2's system install, which has a completely different semantic 2915# ./install, which can be erroneously created by make from ./install.sh. 2916# Reject install programs that cannot install multiple files. 2917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2918printf %s "checking for a BSD-compatible install... " >&6; } 2919if test -z "$INSTALL"; then 2920if test ${ac_cv_path_install+y} 2921then : 2922 printf %s "(cached) " >&6 2923else $as_nop 2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925for as_dir in $PATH 2926do 2927 IFS=$as_save_IFS 2928 case $as_dir in #((( 2929 '') as_dir=./ ;; 2930 */) ;; 2931 *) as_dir=$as_dir/ ;; 2932 esac 2933 # Account for fact that we put trailing slashes in our PATH walk. 2934case $as_dir in #(( 2935 ./ | /[cC]/* | \ 2936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2937 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2938 /usr/ucb/* ) ;; 2939 *) 2940 # OSF1 and SCO ODT 3.0 have their own names for install. 2941 # Don't use installbsd from OSF since it installs stuff as root 2942 # by default. 2943 for ac_prog in ginstall scoinst install; do 2944 for ac_exec_ext in '' $ac_executable_extensions; do 2945 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2946 if test $ac_prog = install && 2947 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2948 # AIX install. It has an incompatible calling convention. 2949 : 2950 elif test $ac_prog = install && 2951 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2952 # program-specific install script used by HP pwplus--don't use. 2953 : 2954 else 2955 rm -rf conftest.one conftest.two conftest.dir 2956 echo one > conftest.one 2957 echo two > conftest.two 2958 mkdir conftest.dir 2959 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2960 test -s conftest.one && test -s conftest.two && 2961 test -s conftest.dir/conftest.one && 2962 test -s conftest.dir/conftest.two 2963 then 2964 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2965 break 3 2966 fi 2967 fi 2968 fi 2969 done 2970 done 2971 ;; 2972esac 2973 2974 done 2975IFS=$as_save_IFS 2976 2977rm -rf conftest.one conftest.two conftest.dir 2978 2979fi 2980 if test ${ac_cv_path_install+y}; then 2981 INSTALL=$ac_cv_path_install 2982 else 2983 # As a last resort, use the slow shell script. Don't cache a 2984 # value for INSTALL within a source directory, because that will 2985 # break other packages using the cache if that directory is 2986 # removed, or if the value is a relative name. 2987 INSTALL=$ac_install_sh 2988 fi 2989fi 2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2991printf "%s\n" "$INSTALL" >&6; } 2992 2993# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2994# It thinks the first close brace ends the variable substitution. 2995test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2996 2997test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2998 2999test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3000 3001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3002printf %s "checking whether build environment is sane... " >&6; } 3003# Reject unsafe characters in $srcdir or the absolute working directory 3004# name. Accept space and tab only in the latter. 3005am_lf=' 3006' 3007case `pwd` in 3008 *[\\\"\#\$\&\'\`$am_lf]*) 3009 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3010esac 3011case $srcdir in 3012 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3013 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3014esac 3015 3016# Do 'set' in a subshell so we don't clobber the current shell's 3017# arguments. Must try -L first in case configure is actually a 3018# symlink; some systems play weird games with the mod time of symlinks 3019# (eg FreeBSD returns the mod time of the symlink's containing 3020# directory). 3021if ( 3022 am_has_slept=no 3023 for am_try in 1 2; do 3024 echo "timestamp, slept: $am_has_slept" > conftest.file 3025 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3026 if test "$*" = "X"; then 3027 # -L didn't work. 3028 set X `ls -t "$srcdir/configure" conftest.file` 3029 fi 3030 if test "$*" != "X $srcdir/configure conftest.file" \ 3031 && test "$*" != "X conftest.file $srcdir/configure"; then 3032 3033 # If neither matched, then we have a broken ls. This can happen 3034 # if, for instance, CONFIG_SHELL is bash and it inherits a 3035 # broken ls alias from the environment. This has actually 3036 # happened. Such a system could not be considered "sane". 3037 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3038 alias in your environment" "$LINENO" 5 3039 fi 3040 if test "$2" = conftest.file || test $am_try -eq 2; then 3041 break 3042 fi 3043 # Just in case. 3044 sleep 1 3045 am_has_slept=yes 3046 done 3047 test "$2" = conftest.file 3048 ) 3049then 3050 # Ok. 3051 : 3052else 3053 as_fn_error $? "newly created file is older than distributed files! 3054Check your system clock" "$LINENO" 5 3055fi 3056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3057printf "%s\n" "yes" >&6; } 3058# If we didn't sleep, we still need to ensure time stamps of config.status and 3059# generated files are strictly newer. 3060am_sleep_pid= 3061if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3062 ( sleep 1 ) & 3063 am_sleep_pid=$! 3064fi 3065 3066rm -f conftest.file 3067 3068test "$program_prefix" != NONE && 3069 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3070# Use a double $ so make ignores it. 3071test "$program_suffix" != NONE && 3072 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3073# Double any \ or $. 3074# By default was `s,x,x', remove it if useless. 3075ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3076program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3077 3078 3079# Expand $ac_aux_dir to an absolute path. 3080am_aux_dir=`cd "$ac_aux_dir" && pwd` 3081 3082 3083 if test x"${MISSING+set}" != xset; then 3084 MISSING="\${SHELL} '$am_aux_dir/missing'" 3085fi 3086# Use eval to expand $SHELL 3087if eval "$MISSING --is-lightweight"; then 3088 am_missing_run="$MISSING " 3089else 3090 am_missing_run= 3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3092printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3093fi 3094 3095if test x"${install_sh+set}" != xset; then 3096 case $am_aux_dir in 3097 *\ * | *\ *) 3098 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3099 *) 3100 install_sh="\${SHELL} $am_aux_dir/install-sh" 3101 esac 3102fi 3103 3104# Installed binaries are usually stripped using 'strip' when the user 3105# run "make install-strip". However 'strip' might not be the right 3106# tool to use in cross-compilation environments, therefore Automake 3107# will honor the 'STRIP' environment variable to overrule this program. 3108if test "$cross_compiling" != no; then 3109 if test -n "$ac_tool_prefix"; then 3110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3111set dummy ${ac_tool_prefix}strip; ac_word=$2 3112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3113printf %s "checking for $ac_word... " >&6; } 3114if test ${ac_cv_prog_STRIP+y} 3115then : 3116 printf %s "(cached) " >&6 3117else $as_nop 3118 if test -n "$STRIP"; then 3119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3120else 3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 case $as_dir in #((( 3126 '') as_dir=./ ;; 3127 */) ;; 3128 *) as_dir=$as_dir/ ;; 3129 esac 3130 for ac_exec_ext in '' $ac_executable_extensions; do 3131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3132 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3134 break 2 3135 fi 3136done 3137 done 3138IFS=$as_save_IFS 3139 3140fi 3141fi 3142STRIP=$ac_cv_prog_STRIP 3143if test -n "$STRIP"; then 3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3145printf "%s\n" "$STRIP" >&6; } 3146else 3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3148printf "%s\n" "no" >&6; } 3149fi 3150 3151 3152fi 3153if test -z "$ac_cv_prog_STRIP"; then 3154 ac_ct_STRIP=$STRIP 3155 # Extract the first word of "strip", so it can be a program name with args. 3156set dummy strip; ac_word=$2 3157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3158printf %s "checking for $ac_word... " >&6; } 3159if test ${ac_cv_prog_ac_ct_STRIP+y} 3160then : 3161 printf %s "(cached) " >&6 3162else $as_nop 3163 if test -n "$ac_ct_STRIP"; then 3164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3165else 3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3167for as_dir in $PATH 3168do 3169 IFS=$as_save_IFS 3170 case $as_dir in #((( 3171 '') as_dir=./ ;; 3172 */) ;; 3173 *) as_dir=$as_dir/ ;; 3174 esac 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3177 ac_cv_prog_ac_ct_STRIP="strip" 3178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3179 break 2 3180 fi 3181done 3182 done 3183IFS=$as_save_IFS 3184 3185fi 3186fi 3187ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3188if test -n "$ac_ct_STRIP"; then 3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3190printf "%s\n" "$ac_ct_STRIP" >&6; } 3191else 3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193printf "%s\n" "no" >&6; } 3194fi 3195 3196 if test "x$ac_ct_STRIP" = x; then 3197 STRIP=":" 3198 else 3199 case $cross_compiling:$ac_tool_warned in 3200yes:) 3201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3202printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3203ac_tool_warned=yes ;; 3204esac 3205 STRIP=$ac_ct_STRIP 3206 fi 3207else 3208 STRIP="$ac_cv_prog_STRIP" 3209fi 3210 3211fi 3212INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3213 3214 3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3216printf %s "checking for a race-free mkdir -p... " >&6; } 3217if test -z "$MKDIR_P"; then 3218 if test ${ac_cv_path_mkdir+y} 3219then : 3220 printf %s "(cached) " >&6 3221else $as_nop 3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3223for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3224do 3225 IFS=$as_save_IFS 3226 case $as_dir in #((( 3227 '') as_dir=./ ;; 3228 */) ;; 3229 *) as_dir=$as_dir/ ;; 3230 esac 3231 for ac_prog in mkdir gmkdir; do 3232 for ac_exec_ext in '' $ac_executable_extensions; do 3233 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3234 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3235 'mkdir ('*'coreutils) '* | \ 3236 'BusyBox '* | \ 3237 'mkdir (fileutils) '4.1*) 3238 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3239 break 3;; 3240 esac 3241 done 3242 done 3243 done 3244IFS=$as_save_IFS 3245 3246fi 3247 3248 test -d ./--version && rmdir ./--version 3249 if test ${ac_cv_path_mkdir+y}; then 3250 MKDIR_P="$ac_cv_path_mkdir -p" 3251 else 3252 # As a last resort, use the slow shell script. Don't cache a 3253 # value for MKDIR_P within a source directory, because that will 3254 # break other packages using the cache if that directory is 3255 # removed, or if the value is a relative name. 3256 MKDIR_P="$ac_install_sh -d" 3257 fi 3258fi 3259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3260printf "%s\n" "$MKDIR_P" >&6; } 3261 3262for ac_prog in gawk mawk nawk awk 3263do 3264 # Extract the first word of "$ac_prog", so it can be a program name with args. 3265set dummy $ac_prog; ac_word=$2 3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267printf %s "checking for $ac_word... " >&6; } 3268if test ${ac_cv_prog_AWK+y} 3269then : 3270 printf %s "(cached) " >&6 3271else $as_nop 3272 if test -n "$AWK"; then 3273 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 case $as_dir in #((( 3280 '') as_dir=./ ;; 3281 */) ;; 3282 *) as_dir=$as_dir/ ;; 3283 esac 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3286 ac_cv_prog_AWK="$ac_prog" 3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3288 break 2 3289 fi 3290done 3291 done 3292IFS=$as_save_IFS 3293 3294fi 3295fi 3296AWK=$ac_cv_prog_AWK 3297if test -n "$AWK"; then 3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3299printf "%s\n" "$AWK" >&6; } 3300else 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3302printf "%s\n" "no" >&6; } 3303fi 3304 3305 3306 test -n "$AWK" && break 3307done 3308 3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3310printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3311set x ${MAKE-make} 3312ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3313if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3314then : 3315 printf %s "(cached) " >&6 3316else $as_nop 3317 cat >conftest.make <<\_ACEOF 3318SHELL = /bin/sh 3319all: 3320 @echo '@@@%%%=$(MAKE)=@@@%%%' 3321_ACEOF 3322# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3323case `${MAKE-make} -f conftest.make 2>/dev/null` in 3324 *@@@%%%=?*=@@@%%%*) 3325 eval ac_cv_prog_make_${ac_make}_set=yes;; 3326 *) 3327 eval ac_cv_prog_make_${ac_make}_set=no;; 3328esac 3329rm -f conftest.make 3330fi 3331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3333printf "%s\n" "yes" >&6; } 3334 SET_MAKE= 3335else 3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337printf "%s\n" "no" >&6; } 3338 SET_MAKE="MAKE=${MAKE-make}" 3339fi 3340 3341rm -rf .tst 2>/dev/null 3342mkdir .tst 2>/dev/null 3343if test -d .tst; then 3344 am__leading_dot=. 3345else 3346 am__leading_dot=_ 3347fi 3348rmdir .tst 2>/dev/null 3349 3350# Check whether --enable-silent-rules was given. 3351if test ${enable_silent_rules+y} 3352then : 3353 enableval=$enable_silent_rules; 3354fi 3355 3356case $enable_silent_rules in # ((( 3357 yes) AM_DEFAULT_VERBOSITY=0;; 3358 no) AM_DEFAULT_VERBOSITY=1;; 3359 *) AM_DEFAULT_VERBOSITY=1;; 3360esac 3361am_make=${MAKE-make} 3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3363printf %s "checking whether $am_make supports nested variables... " >&6; } 3364if test ${am_cv_make_support_nested_variables+y} 3365then : 3366 printf %s "(cached) " >&6 3367else $as_nop 3368 if printf "%s\n" 'TRUE=$(BAR$(V)) 3369BAR0=false 3370BAR1=true 3371V=1 3372am__doit: 3373 @$(TRUE) 3374.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3375 am_cv_make_support_nested_variables=yes 3376else 3377 am_cv_make_support_nested_variables=no 3378fi 3379fi 3380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3381printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3382if test $am_cv_make_support_nested_variables = yes; then 3383 AM_V='$(V)' 3384 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3385else 3386 AM_V=$AM_DEFAULT_VERBOSITY 3387 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3388fi 3389AM_BACKSLASH='\' 3390 3391if test "`cd $srcdir && pwd`" != "`pwd`"; then 3392 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3393 # is not polluted with repeated "-I." 3394 am__isrc=' -I$(srcdir)' 3395 # test to see if srcdir already configured 3396 if test -f $srcdir/config.status; then 3397 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3398 fi 3399fi 3400 3401# test whether we have cygpath 3402if test -z "$CYGPATH_W"; then 3403 if (cygpath --version) >/dev/null 2>/dev/null; then 3404 CYGPATH_W='cygpath -w' 3405 else 3406 CYGPATH_W=echo 3407 fi 3408fi 3409 3410 3411# Define the identity of the package. 3412 PACKAGE='file' 3413 VERSION='5.45' 3414 3415 3416printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3417 3418 3419printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3420 3421# Some tools Automake needs. 3422 3423ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3424 3425 3426AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3427 3428 3429AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3430 3431 3432AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3433 3434 3435MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3436 3437# For better backward compatibility. To be removed once Automake 1.9.x 3438# dies out for good. For more background, see: 3439# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3440# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3441mkdir_p='$(MKDIR_P)' 3442 3443# We need awk for the "check" target (and possibly the TAP driver). The 3444# system "awk" is bad on some platforms. 3445# Always define AMTAR for backward compatibility. Yes, it's still used 3446# in the wild :-( We should find a proper way to deprecate it ... 3447AMTAR='$${TAR-tar}' 3448 3449 3450# We'll loop over all known methods to create a tar archive until one works. 3451_am_tools='gnutar pax cpio none' 3452 3453am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3454 3455 3456 3457 3458 3459# Variables for tags utilities; see am/tags.am 3460if test -z "$CTAGS"; then 3461 CTAGS=ctags 3462fi 3463 3464if test -z "$ETAGS"; then 3465 ETAGS=etags 3466fi 3467 3468if test -z "$CSCOPE"; then 3469 CSCOPE=cscope 3470fi 3471 3472 3473 3474# POSIX will say in a future version that running "rm -f" with no argument 3475# is OK; and we want to be able to make that assumption in our Makefile 3476# recipes. So use an aggressive probe to check that the usage we want is 3477# actually supported "in the wild" to an acceptable degree. 3478# See automake bug#10828. 3479# To make any issue more visible, cause the running configure to be aborted 3480# by default if the 'rm' program in use doesn't match our expectations; the 3481# user can still override this though. 3482if rm -f && rm -fr && rm -rf; then : OK; else 3483 cat >&2 <<'END' 3484Oops! 3485 3486Your 'rm' program seems unable to run without file operands specified 3487on the command line, even when the '-f' option is present. This is contrary 3488to the behaviour of most rm programs out there, and not conforming with 3489the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3490 3491Please tell bug-automake@gnu.org about your system, including the value 3492of your $PATH and any error possibly output before this message. This 3493can help us improve future automake versions. 3494 3495END 3496 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3497 echo 'Configuration will proceed anyway, since you have set the' >&2 3498 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3499 echo >&2 3500 else 3501 cat >&2 <<'END' 3502Aborting the configuration process, to ensure you take notice of the issue. 3503 3504You can download and install GNU coreutils to get an 'rm' implementation 3505that behaves properly: <https://www.gnu.org/software/coreutils/>. 3506 3507If you want to complete the configuration process using your problematic 3508'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3509to "yes", and re-run configure. 3510 3511END 3512 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3513 fi 3514fi 3515 3516# Check whether --enable-silent-rules was given. 3517if test ${enable_silent_rules+y} 3518then : 3519 enableval=$enable_silent_rules; 3520fi 3521 3522case $enable_silent_rules in # ((( 3523 yes) AM_DEFAULT_VERBOSITY=0;; 3524 no) AM_DEFAULT_VERBOSITY=1;; 3525 *) AM_DEFAULT_VERBOSITY=0;; 3526esac 3527am_make=${MAKE-make} 3528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3529printf %s "checking whether $am_make supports nested variables... " >&6; } 3530if test ${am_cv_make_support_nested_variables+y} 3531then : 3532 printf %s "(cached) " >&6 3533else $as_nop 3534 if printf "%s\n" 'TRUE=$(BAR$(V)) 3535BAR0=false 3536BAR1=true 3537V=1 3538am__doit: 3539 @$(TRUE) 3540.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3541 am_cv_make_support_nested_variables=yes 3542else 3543 am_cv_make_support_nested_variables=no 3544fi 3545fi 3546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3547printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3548if test $am_cv_make_support_nested_variables = yes; then 3549 AM_V='$(V)' 3550 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3551else 3552 AM_V=$AM_DEFAULT_VERBOSITY 3553 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3554fi 3555AM_BACKSLASH='\' 3556 3557 3558ac_config_headers="$ac_config_headers config.h" 3559 3560 3561 3562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3563printf %s "checking for builtin ELF support... " >&6; } 3564# Check whether --enable-elf was given. 3565if test ${enable_elf+y} 3566then : 3567 enableval=$enable_elf; if test "${enableval}" = yes; then 3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3569printf "%s\n" "yes" >&6; } 3570 3571printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h 3572 3573else 3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3575printf "%s\n" "no" >&6; } 3576fi 3577else $as_nop 3578 3579 # enable by default 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3581printf "%s\n" "yes" >&6; } 3582 3583printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h 3584 3585 3586fi 3587 3588 3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3590printf %s "checking for ELF core file support... " >&6; } 3591# Check whether --enable-elf-core was given. 3592if test ${enable_elf_core+y} 3593then : 3594 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3596printf "%s\n" "yes" >&6; } 3597 3598printf "%s\n" "#define ELFCORE 1" >>confdefs.h 3599 3600else 3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3602printf "%s\n" "no" >&6; } 3603fi 3604else $as_nop 3605 3606 # enable by default 3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3608printf "%s\n" "yes" >&6; } 3609 3610printf "%s\n" "#define ELFCORE 1" >>confdefs.h 3611 3612 3613fi 3614 3615 3616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3617printf %s "checking for zlib support... " >&6; } 3618# Check whether --enable-zlib was given. 3619if test ${enable_zlib+y} 3620then : 3621 enableval=$enable_zlib; 3622fi 3623 3624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3625printf "%s\n" "$enable_zlib" >&6; } 3626 3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5 3628printf %s "checking for bzlib support... " >&6; } 3629# Check whether --enable-bzlib was given. 3630if test ${enable_bzlib+y} 3631then : 3632 enableval=$enable_bzlib; 3633fi 3634 3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5 3636printf "%s\n" "$enable_bzlib" >&6; } 3637 3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5 3639printf %s "checking for xzlib support... " >&6; } 3640# Check whether --enable-xzlib was given. 3641if test ${enable_xzlib+y} 3642then : 3643 enableval=$enable_xzlib; 3644fi 3645 3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5 3647printf "%s\n" "$enable_xzlib" >&6; } 3648 3649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zstdlib support" >&5 3650printf %s "checking for zstdlib support... " >&6; } 3651# Check whether --enable-zstdlib was given. 3652if test ${enable_zstdlib+y} 3653then : 3654 enableval=$enable_zstdlib; 3655fi 3656 3657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zstdlib" >&5 3658printf "%s\n" "$enable_zstdlib" >&6; } 3659 3660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzlib support" >&5 3661printf %s "checking for lzlib support... " >&6; } 3662# Check whether --enable-lzlib was given. 3663if test ${enable_lzlib+y} 3664then : 3665 enableval=$enable_lzlib; 3666fi 3667 3668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lzlib" >&5 3669printf "%s\n" "$enable_lzlib" >&6; } 3670 3671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5 3672printf %s "checking for libseccomp support... " >&6; } 3673# Check whether --enable-libseccomp was given. 3674if test ${enable_libseccomp+y} 3675then : 3676 enableval=$enable_libseccomp; 3677fi 3678 3679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5 3680printf "%s\n" "$enable_libseccomp" >&6; } 3681 3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3683printf %s "checking for file formats in man section 5... " >&6; } 3684# Check whether --enable-fsect-man5 was given. 3685if test ${enable_fsect_man5+y} 3686then : 3687 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3689printf "%s\n" "yes" >&6; } 3690 fsect=5 3691else 3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3693printf "%s\n" "no" >&6; } 3694 fsect=4 3695fi 3696else $as_nop 3697 3698 # disable by default 3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3700printf "%s\n" "no" >&6; } 3701 fsect=4 3702 3703fi 3704 3705 3706 3707 3708 # Make sure we can run config.sub. 3709$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3710 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3711 3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3713printf %s "checking build system type... " >&6; } 3714if test ${ac_cv_build+y} 3715then : 3716 printf %s "(cached) " >&6 3717else $as_nop 3718 ac_build_alias=$build_alias 3719test "x$ac_build_alias" = x && 3720 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3721test "x$ac_build_alias" = x && 3722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3723ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3724 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3725 3726fi 3727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3728printf "%s\n" "$ac_cv_build" >&6; } 3729case $ac_cv_build in 3730*-*-*) ;; 3731*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3732esac 3733build=$ac_cv_build 3734ac_save_IFS=$IFS; IFS='-' 3735set x $ac_cv_build 3736shift 3737build_cpu=$1 3738build_vendor=$2 3739shift; shift 3740# Remember, the first character of IFS is used to create $*, 3741# except with old shells: 3742build_os=$* 3743IFS=$ac_save_IFS 3744case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3745 3746 3747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3748printf %s "checking host system type... " >&6; } 3749if test ${ac_cv_host+y} 3750then : 3751 printf %s "(cached) " >&6 3752else $as_nop 3753 if test "x$host_alias" = x; then 3754 ac_cv_host=$ac_cv_build 3755else 3756 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3757 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3758fi 3759 3760fi 3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3762printf "%s\n" "$ac_cv_host" >&6; } 3763case $ac_cv_host in 3764*-*-*) ;; 3765*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3766esac 3767host=$ac_cv_host 3768ac_save_IFS=$IFS; IFS='-' 3769set x $ac_cv_host 3770shift 3771host_cpu=$1 3772host_vendor=$2 3773shift; shift 3774# Remember, the first character of IFS is used to create $*, 3775# except with old shells: 3776host_os=$* 3777IFS=$ac_save_IFS 3778case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3779 3780 3781case "$host_os" in 3782 mingw32*) 3783 MINGW=1 3784 ;; 3785 *) 3786 MINGW=0 3787 ;; 3788esac 3789 3790 if test "$MINGW" = 1; then 3791 MINGW_TRUE= 3792 MINGW_FALSE='#' 3793else 3794 MINGW_TRUE='#' 3795 MINGW_FALSE= 3796fi 3797 3798 3799pkgdatadir='$(datadir)/misc' 3800 3801 3802 if test x$fsect = x5; then 3803 FSECT5_TRUE= 3804 FSECT5_FALSE='#' 3805else 3806 FSECT5_TRUE='#' 3807 FSECT5_FALSE= 3808fi 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822ac_ext=c 3823ac_cpp='$CPP $CPPFLAGS' 3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3826ac_compiler_gnu=$ac_cv_c_compiler_gnu 3827if test -n "$ac_tool_prefix"; then 3828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3829set dummy ${ac_tool_prefix}gcc; ac_word=$2 3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3831printf %s "checking for $ac_word... " >&6; } 3832if test ${ac_cv_prog_CC+y} 3833then : 3834 printf %s "(cached) " >&6 3835else $as_nop 3836 if test -n "$CC"; then 3837 ac_cv_prog_CC="$CC" # Let the user override the test. 3838else 3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3840for as_dir in $PATH 3841do 3842 IFS=$as_save_IFS 3843 case $as_dir in #((( 3844 '') as_dir=./ ;; 3845 */) ;; 3846 *) as_dir=$as_dir/ ;; 3847 esac 3848 for ac_exec_ext in '' $ac_executable_extensions; do 3849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3850 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3852 break 2 3853 fi 3854done 3855 done 3856IFS=$as_save_IFS 3857 3858fi 3859fi 3860CC=$ac_cv_prog_CC 3861if test -n "$CC"; then 3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3863printf "%s\n" "$CC" >&6; } 3864else 3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3866printf "%s\n" "no" >&6; } 3867fi 3868 3869 3870fi 3871if test -z "$ac_cv_prog_CC"; then 3872 ac_ct_CC=$CC 3873 # Extract the first word of "gcc", so it can be a program name with args. 3874set dummy gcc; ac_word=$2 3875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3876printf %s "checking for $ac_word... " >&6; } 3877if test ${ac_cv_prog_ac_ct_CC+y} 3878then : 3879 printf %s "(cached) " >&6 3880else $as_nop 3881 if test -n "$ac_ct_CC"; then 3882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3883else 3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3885for as_dir in $PATH 3886do 3887 IFS=$as_save_IFS 3888 case $as_dir in #((( 3889 '') as_dir=./ ;; 3890 */) ;; 3891 *) as_dir=$as_dir/ ;; 3892 esac 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3895 ac_cv_prog_ac_ct_CC="gcc" 3896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3897 break 2 3898 fi 3899done 3900 done 3901IFS=$as_save_IFS 3902 3903fi 3904fi 3905ac_ct_CC=$ac_cv_prog_ac_ct_CC 3906if test -n "$ac_ct_CC"; then 3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3908printf "%s\n" "$ac_ct_CC" >&6; } 3909else 3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3911printf "%s\n" "no" >&6; } 3912fi 3913 3914 if test "x$ac_ct_CC" = x; then 3915 CC="" 3916 else 3917 case $cross_compiling:$ac_tool_warned in 3918yes:) 3919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3920printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3921ac_tool_warned=yes ;; 3922esac 3923 CC=$ac_ct_CC 3924 fi 3925else 3926 CC="$ac_cv_prog_CC" 3927fi 3928 3929if test -z "$CC"; then 3930 if test -n "$ac_tool_prefix"; then 3931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3932set dummy ${ac_tool_prefix}cc; ac_word=$2 3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3934printf %s "checking for $ac_word... " >&6; } 3935if test ${ac_cv_prog_CC+y} 3936then : 3937 printf %s "(cached) " >&6 3938else $as_nop 3939 if test -n "$CC"; then 3940 ac_cv_prog_CC="$CC" # Let the user override the test. 3941else 3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3943for as_dir in $PATH 3944do 3945 IFS=$as_save_IFS 3946 case $as_dir in #((( 3947 '') as_dir=./ ;; 3948 */) ;; 3949 *) as_dir=$as_dir/ ;; 3950 esac 3951 for ac_exec_ext in '' $ac_executable_extensions; do 3952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3953 ac_cv_prog_CC="${ac_tool_prefix}cc" 3954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3955 break 2 3956 fi 3957done 3958 done 3959IFS=$as_save_IFS 3960 3961fi 3962fi 3963CC=$ac_cv_prog_CC 3964if test -n "$CC"; then 3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3966printf "%s\n" "$CC" >&6; } 3967else 3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3969printf "%s\n" "no" >&6; } 3970fi 3971 3972 3973 fi 3974fi 3975if test -z "$CC"; then 3976 # Extract the first word of "cc", so it can be a program name with args. 3977set dummy cc; ac_word=$2 3978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3979printf %s "checking for $ac_word... " >&6; } 3980if test ${ac_cv_prog_CC+y} 3981then : 3982 printf %s "(cached) " >&6 3983else $as_nop 3984 if test -n "$CC"; then 3985 ac_cv_prog_CC="$CC" # Let the user override the test. 3986else 3987 ac_prog_rejected=no 3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3989for as_dir in $PATH 3990do 3991 IFS=$as_save_IFS 3992 case $as_dir in #((( 3993 '') as_dir=./ ;; 3994 */) ;; 3995 *) as_dir=$as_dir/ ;; 3996 esac 3997 for ac_exec_ext in '' $ac_executable_extensions; do 3998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3999 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4000 ac_prog_rejected=yes 4001 continue 4002 fi 4003 ac_cv_prog_CC="cc" 4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4005 break 2 4006 fi 4007done 4008 done 4009IFS=$as_save_IFS 4010 4011if test $ac_prog_rejected = yes; then 4012 # We found a bogon in the path, so make sure we never use it. 4013 set dummy $ac_cv_prog_CC 4014 shift 4015 if test $# != 0; then 4016 # We chose a different compiler from the bogus one. 4017 # However, it has the same basename, so the bogon will be chosen 4018 # first if we set CC to just the basename; use the full file name. 4019 shift 4020 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4021 fi 4022fi 4023fi 4024fi 4025CC=$ac_cv_prog_CC 4026if test -n "$CC"; then 4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4028printf "%s\n" "$CC" >&6; } 4029else 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4031printf "%s\n" "no" >&6; } 4032fi 4033 4034 4035fi 4036if test -z "$CC"; then 4037 if test -n "$ac_tool_prefix"; then 4038 for ac_prog in cl.exe 4039 do 4040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4041set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4043printf %s "checking for $ac_word... " >&6; } 4044if test ${ac_cv_prog_CC+y} 4045then : 4046 printf %s "(cached) " >&6 4047else $as_nop 4048 if test -n "$CC"; then 4049 ac_cv_prog_CC="$CC" # Let the user override the test. 4050else 4051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4052for as_dir in $PATH 4053do 4054 IFS=$as_save_IFS 4055 case $as_dir in #((( 4056 '') as_dir=./ ;; 4057 */) ;; 4058 *) as_dir=$as_dir/ ;; 4059 esac 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4064 break 2 4065 fi 4066done 4067 done 4068IFS=$as_save_IFS 4069 4070fi 4071fi 4072CC=$ac_cv_prog_CC 4073if test -n "$CC"; then 4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4075printf "%s\n" "$CC" >&6; } 4076else 4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4078printf "%s\n" "no" >&6; } 4079fi 4080 4081 4082 test -n "$CC" && break 4083 done 4084fi 4085if test -z "$CC"; then 4086 ac_ct_CC=$CC 4087 for ac_prog in cl.exe 4088do 4089 # Extract the first word of "$ac_prog", so it can be a program name with args. 4090set dummy $ac_prog; ac_word=$2 4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4092printf %s "checking for $ac_word... " >&6; } 4093if test ${ac_cv_prog_ac_ct_CC+y} 4094then : 4095 printf %s "(cached) " >&6 4096else $as_nop 4097 if test -n "$ac_ct_CC"; then 4098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4099else 4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4101for as_dir in $PATH 4102do 4103 IFS=$as_save_IFS 4104 case $as_dir in #((( 4105 '') as_dir=./ ;; 4106 */) ;; 4107 *) as_dir=$as_dir/ ;; 4108 esac 4109 for ac_exec_ext in '' $ac_executable_extensions; do 4110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4111 ac_cv_prog_ac_ct_CC="$ac_prog" 4112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4113 break 2 4114 fi 4115done 4116 done 4117IFS=$as_save_IFS 4118 4119fi 4120fi 4121ac_ct_CC=$ac_cv_prog_ac_ct_CC 4122if test -n "$ac_ct_CC"; then 4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4124printf "%s\n" "$ac_ct_CC" >&6; } 4125else 4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4127printf "%s\n" "no" >&6; } 4128fi 4129 4130 4131 test -n "$ac_ct_CC" && break 4132done 4133 4134 if test "x$ac_ct_CC" = x; then 4135 CC="" 4136 else 4137 case $cross_compiling:$ac_tool_warned in 4138yes:) 4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4140printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4141ac_tool_warned=yes ;; 4142esac 4143 CC=$ac_ct_CC 4144 fi 4145fi 4146 4147fi 4148if test -z "$CC"; then 4149 if test -n "$ac_tool_prefix"; then 4150 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4151set dummy ${ac_tool_prefix}clang; ac_word=$2 4152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4153printf %s "checking for $ac_word... " >&6; } 4154if test ${ac_cv_prog_CC+y} 4155then : 4156 printf %s "(cached) " >&6 4157else $as_nop 4158 if test -n "$CC"; then 4159 ac_cv_prog_CC="$CC" # Let the user override the test. 4160else 4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4162for as_dir in $PATH 4163do 4164 IFS=$as_save_IFS 4165 case $as_dir in #((( 4166 '') as_dir=./ ;; 4167 */) ;; 4168 *) as_dir=$as_dir/ ;; 4169 esac 4170 for ac_exec_ext in '' $ac_executable_extensions; do 4171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4172 ac_cv_prog_CC="${ac_tool_prefix}clang" 4173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4174 break 2 4175 fi 4176done 4177 done 4178IFS=$as_save_IFS 4179 4180fi 4181fi 4182CC=$ac_cv_prog_CC 4183if test -n "$CC"; then 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4185printf "%s\n" "$CC" >&6; } 4186else 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4188printf "%s\n" "no" >&6; } 4189fi 4190 4191 4192fi 4193if test -z "$ac_cv_prog_CC"; then 4194 ac_ct_CC=$CC 4195 # Extract the first word of "clang", so it can be a program name with args. 4196set dummy clang; ac_word=$2 4197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4198printf %s "checking for $ac_word... " >&6; } 4199if test ${ac_cv_prog_ac_ct_CC+y} 4200then : 4201 printf %s "(cached) " >&6 4202else $as_nop 4203 if test -n "$ac_ct_CC"; then 4204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4205else 4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4207for as_dir in $PATH 4208do 4209 IFS=$as_save_IFS 4210 case $as_dir in #((( 4211 '') as_dir=./ ;; 4212 */) ;; 4213 *) as_dir=$as_dir/ ;; 4214 esac 4215 for ac_exec_ext in '' $ac_executable_extensions; do 4216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4217 ac_cv_prog_ac_ct_CC="clang" 4218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4219 break 2 4220 fi 4221done 4222 done 4223IFS=$as_save_IFS 4224 4225fi 4226fi 4227ac_ct_CC=$ac_cv_prog_ac_ct_CC 4228if test -n "$ac_ct_CC"; then 4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4230printf "%s\n" "$ac_ct_CC" >&6; } 4231else 4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4233printf "%s\n" "no" >&6; } 4234fi 4235 4236 if test "x$ac_ct_CC" = x; then 4237 CC="" 4238 else 4239 case $cross_compiling:$ac_tool_warned in 4240yes:) 4241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4243ac_tool_warned=yes ;; 4244esac 4245 CC=$ac_ct_CC 4246 fi 4247else 4248 CC="$ac_cv_prog_CC" 4249fi 4250 4251fi 4252 4253 4254test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4255printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4256as_fn_error $? "no acceptable C compiler found in \$PATH 4257See \`config.log' for more details" "$LINENO" 5; } 4258 4259# Provide some information about the compiler. 4260printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4261set X $ac_compile 4262ac_compiler=$2 4263for ac_option in --version -v -V -qversion -version; do 4264 { { ac_try="$ac_compiler $ac_option >&5" 4265case "(($ac_try" in 4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4267 *) ac_try_echo=$ac_try;; 4268esac 4269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4270printf "%s\n" "$ac_try_echo"; } >&5 4271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4272 ac_status=$? 4273 if test -s conftest.err; then 4274 sed '10a\ 4275... rest of stderr output deleted ... 4276 10q' conftest.err >conftest.er1 4277 cat conftest.er1 >&5 4278 fi 4279 rm -f conftest.er1 conftest.err 4280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4281 test $ac_status = 0; } 4282done 4283 4284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286 4287int 4288main (void) 4289{ 4290 4291 ; 4292 return 0; 4293} 4294_ACEOF 4295ac_clean_files_save=$ac_clean_files 4296ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4297# Try to create an executable without -o first, disregard a.out. 4298# It will help us diagnose broken compilers, and finding out an intuition 4299# of exeext. 4300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4301printf %s "checking whether the C compiler works... " >&6; } 4302ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4303 4304# The possible output files: 4305ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4306 4307ac_rmfiles= 4308for ac_file in $ac_files 4309do 4310 case $ac_file in 4311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4312 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4313 esac 4314done 4315rm -f $ac_rmfiles 4316 4317if { { ac_try="$ac_link_default" 4318case "(($ac_try" in 4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4320 *) ac_try_echo=$ac_try;; 4321esac 4322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4323printf "%s\n" "$ac_try_echo"; } >&5 4324 (eval "$ac_link_default") 2>&5 4325 ac_status=$? 4326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4327 test $ac_status = 0; } 4328then : 4329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4330# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4331# in a Makefile. We should not override ac_cv_exeext if it was cached, 4332# so that the user can short-circuit this test for compilers unknown to 4333# Autoconf. 4334for ac_file in $ac_files '' 4335do 4336 test -f "$ac_file" || continue 4337 case $ac_file in 4338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4339 ;; 4340 [ab].out ) 4341 # We found the default executable, but exeext='' is most 4342 # certainly right. 4343 break;; 4344 *.* ) 4345 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4346 then :; else 4347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4348 fi 4349 # We set ac_cv_exeext here because the later test for it is not 4350 # safe: cross compilers may not add the suffix if given an `-o' 4351 # argument, so we may need to know it at that point already. 4352 # Even if this section looks crufty: it has the advantage of 4353 # actually working. 4354 break;; 4355 * ) 4356 break;; 4357 esac 4358done 4359test "$ac_cv_exeext" = no && ac_cv_exeext= 4360 4361else $as_nop 4362 ac_file='' 4363fi 4364if test -z "$ac_file" 4365then : 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4367printf "%s\n" "no" >&6; } 4368printf "%s\n" "$as_me: failed program was:" >&5 4369sed 's/^/| /' conftest.$ac_ext >&5 4370 4371{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4372printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4373as_fn_error 77 "C compiler cannot create executables 4374See \`config.log' for more details" "$LINENO" 5; } 4375else $as_nop 4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4377printf "%s\n" "yes" >&6; } 4378fi 4379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4380printf %s "checking for C compiler default output file name... " >&6; } 4381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4382printf "%s\n" "$ac_file" >&6; } 4383ac_exeext=$ac_cv_exeext 4384 4385rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4386ac_clean_files=$ac_clean_files_save 4387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4388printf %s "checking for suffix of executables... " >&6; } 4389if { { ac_try="$ac_link" 4390case "(($ac_try" in 4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4392 *) ac_try_echo=$ac_try;; 4393esac 4394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4395printf "%s\n" "$ac_try_echo"; } >&5 4396 (eval "$ac_link") 2>&5 4397 ac_status=$? 4398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4399 test $ac_status = 0; } 4400then : 4401 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4402# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4403# work properly (i.e., refer to `conftest.exe'), while it won't with 4404# `rm'. 4405for ac_file in conftest.exe conftest conftest.*; do 4406 test -f "$ac_file" || continue 4407 case $ac_file in 4408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4409 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4410 break;; 4411 * ) break;; 4412 esac 4413done 4414else $as_nop 4415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4416printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4417as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4418See \`config.log' for more details" "$LINENO" 5; } 4419fi 4420rm -f conftest conftest$ac_cv_exeext 4421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4422printf "%s\n" "$ac_cv_exeext" >&6; } 4423 4424rm -f conftest.$ac_ext 4425EXEEXT=$ac_cv_exeext 4426ac_exeext=$EXEEXT 4427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428/* end confdefs.h. */ 4429#include <stdio.h> 4430int 4431main (void) 4432{ 4433FILE *f = fopen ("conftest.out", "w"); 4434 return ferror (f) || fclose (f) != 0; 4435 4436 ; 4437 return 0; 4438} 4439_ACEOF 4440ac_clean_files="$ac_clean_files conftest.out" 4441# Check that the compiler produces executables we can run. If not, either 4442# the compiler is broken, or we cross compile. 4443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4444printf %s "checking whether we are cross compiling... " >&6; } 4445if test "$cross_compiling" != yes; then 4446 { { ac_try="$ac_link" 4447case "(($ac_try" in 4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4449 *) ac_try_echo=$ac_try;; 4450esac 4451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4452printf "%s\n" "$ac_try_echo"; } >&5 4453 (eval "$ac_link") 2>&5 4454 ac_status=$? 4455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4456 test $ac_status = 0; } 4457 if { ac_try='./conftest$ac_cv_exeext' 4458 { { case "(($ac_try" in 4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4460 *) ac_try_echo=$ac_try;; 4461esac 4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4463printf "%s\n" "$ac_try_echo"; } >&5 4464 (eval "$ac_try") 2>&5 4465 ac_status=$? 4466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4467 test $ac_status = 0; }; }; then 4468 cross_compiling=no 4469 else 4470 if test "$cross_compiling" = maybe; then 4471 cross_compiling=yes 4472 else 4473 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4474printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4475as_fn_error 77 "cannot run C compiled programs. 4476If you meant to cross compile, use \`--host'. 4477See \`config.log' for more details" "$LINENO" 5; } 4478 fi 4479 fi 4480fi 4481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4482printf "%s\n" "$cross_compiling" >&6; } 4483 4484rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4485ac_clean_files=$ac_clean_files_save 4486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4487printf %s "checking for suffix of object files... " >&6; } 4488if test ${ac_cv_objext+y} 4489then : 4490 printf %s "(cached) " >&6 4491else $as_nop 4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4493/* end confdefs.h. */ 4494 4495int 4496main (void) 4497{ 4498 4499 ; 4500 return 0; 4501} 4502_ACEOF 4503rm -f conftest.o conftest.obj 4504if { { ac_try="$ac_compile" 4505case "(($ac_try" in 4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4507 *) ac_try_echo=$ac_try;; 4508esac 4509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4510printf "%s\n" "$ac_try_echo"; } >&5 4511 (eval "$ac_compile") 2>&5 4512 ac_status=$? 4513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4514 test $ac_status = 0; } 4515then : 4516 for ac_file in conftest.o conftest.obj conftest.*; do 4517 test -f "$ac_file" || continue; 4518 case $ac_file in 4519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4521 break;; 4522 esac 4523done 4524else $as_nop 4525 printf "%s\n" "$as_me: failed program was:" >&5 4526sed 's/^/| /' conftest.$ac_ext >&5 4527 4528{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4529printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4530as_fn_error $? "cannot compute suffix of object files: cannot compile 4531See \`config.log' for more details" "$LINENO" 5; } 4532fi 4533rm -f conftest.$ac_cv_objext conftest.$ac_ext 4534fi 4535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4536printf "%s\n" "$ac_cv_objext" >&6; } 4537OBJEXT=$ac_cv_objext 4538ac_objext=$OBJEXT 4539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4540printf %s "checking whether the compiler supports GNU C... " >&6; } 4541if test ${ac_cv_c_compiler_gnu+y} 4542then : 4543 printf %s "(cached) " >&6 4544else $as_nop 4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4546/* end confdefs.h. */ 4547 4548int 4549main (void) 4550{ 4551#ifndef __GNUC__ 4552 choke me 4553#endif 4554 4555 ; 4556 return 0; 4557} 4558_ACEOF 4559if ac_fn_c_try_compile "$LINENO" 4560then : 4561 ac_compiler_gnu=yes 4562else $as_nop 4563 ac_compiler_gnu=no 4564fi 4565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4566ac_cv_c_compiler_gnu=$ac_compiler_gnu 4567 4568fi 4569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4570printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4571ac_compiler_gnu=$ac_cv_c_compiler_gnu 4572 4573if test $ac_compiler_gnu = yes; then 4574 GCC=yes 4575else 4576 GCC= 4577fi 4578ac_test_CFLAGS=${CFLAGS+y} 4579ac_save_CFLAGS=$CFLAGS 4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4581printf %s "checking whether $CC accepts -g... " >&6; } 4582if test ${ac_cv_prog_cc_g+y} 4583then : 4584 printf %s "(cached) " >&6 4585else $as_nop 4586 ac_save_c_werror_flag=$ac_c_werror_flag 4587 ac_c_werror_flag=yes 4588 ac_cv_prog_cc_g=no 4589 CFLAGS="-g" 4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4591/* end confdefs.h. */ 4592 4593int 4594main (void) 4595{ 4596 4597 ; 4598 return 0; 4599} 4600_ACEOF 4601if ac_fn_c_try_compile "$LINENO" 4602then : 4603 ac_cv_prog_cc_g=yes 4604else $as_nop 4605 CFLAGS="" 4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4607/* end confdefs.h. */ 4608 4609int 4610main (void) 4611{ 4612 4613 ; 4614 return 0; 4615} 4616_ACEOF 4617if ac_fn_c_try_compile "$LINENO" 4618then : 4619 4620else $as_nop 4621 ac_c_werror_flag=$ac_save_c_werror_flag 4622 CFLAGS="-g" 4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4624/* end confdefs.h. */ 4625 4626int 4627main (void) 4628{ 4629 4630 ; 4631 return 0; 4632} 4633_ACEOF 4634if ac_fn_c_try_compile "$LINENO" 4635then : 4636 ac_cv_prog_cc_g=yes 4637fi 4638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4639fi 4640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4641fi 4642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4643 ac_c_werror_flag=$ac_save_c_werror_flag 4644fi 4645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4646printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4647if test $ac_test_CFLAGS; then 4648 CFLAGS=$ac_save_CFLAGS 4649elif test $ac_cv_prog_cc_g = yes; then 4650 if test "$GCC" = yes; then 4651 CFLAGS="-g -O2" 4652 else 4653 CFLAGS="-g" 4654 fi 4655else 4656 if test "$GCC" = yes; then 4657 CFLAGS="-O2" 4658 else 4659 CFLAGS= 4660 fi 4661fi 4662ac_prog_cc_stdc=no 4663if test x$ac_prog_cc_stdc = xno 4664then : 4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4666printf %s "checking for $CC option to enable C11 features... " >&6; } 4667if test ${ac_cv_prog_cc_c11+y} 4668then : 4669 printf %s "(cached) " >&6 4670else $as_nop 4671 ac_cv_prog_cc_c11=no 4672ac_save_CC=$CC 4673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4674/* end confdefs.h. */ 4675$ac_c_conftest_c11_program 4676_ACEOF 4677for ac_arg in '' -std=gnu11 4678do 4679 CC="$ac_save_CC $ac_arg" 4680 if ac_fn_c_try_compile "$LINENO" 4681then : 4682 ac_cv_prog_cc_c11=$ac_arg 4683fi 4684rm -f core conftest.err conftest.$ac_objext conftest.beam 4685 test "x$ac_cv_prog_cc_c11" != "xno" && break 4686done 4687rm -f conftest.$ac_ext 4688CC=$ac_save_CC 4689fi 4690 4691if test "x$ac_cv_prog_cc_c11" = xno 4692then : 4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4694printf "%s\n" "unsupported" >&6; } 4695else $as_nop 4696 if test "x$ac_cv_prog_cc_c11" = x 4697then : 4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4699printf "%s\n" "none needed" >&6; } 4700else $as_nop 4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4702printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4703 CC="$CC $ac_cv_prog_cc_c11" 4704fi 4705 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4706 ac_prog_cc_stdc=c11 4707fi 4708fi 4709if test x$ac_prog_cc_stdc = xno 4710then : 4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4712printf %s "checking for $CC option to enable C99 features... " >&6; } 4713if test ${ac_cv_prog_cc_c99+y} 4714then : 4715 printf %s "(cached) " >&6 4716else $as_nop 4717 ac_cv_prog_cc_c99=no 4718ac_save_CC=$CC 4719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721$ac_c_conftest_c99_program 4722_ACEOF 4723for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4724do 4725 CC="$ac_save_CC $ac_arg" 4726 if ac_fn_c_try_compile "$LINENO" 4727then : 4728 ac_cv_prog_cc_c99=$ac_arg 4729fi 4730rm -f core conftest.err conftest.$ac_objext conftest.beam 4731 test "x$ac_cv_prog_cc_c99" != "xno" && break 4732done 4733rm -f conftest.$ac_ext 4734CC=$ac_save_CC 4735fi 4736 4737if test "x$ac_cv_prog_cc_c99" = xno 4738then : 4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4740printf "%s\n" "unsupported" >&6; } 4741else $as_nop 4742 if test "x$ac_cv_prog_cc_c99" = x 4743then : 4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4745printf "%s\n" "none needed" >&6; } 4746else $as_nop 4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4748printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4749 CC="$CC $ac_cv_prog_cc_c99" 4750fi 4751 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4752 ac_prog_cc_stdc=c99 4753fi 4754fi 4755if test x$ac_prog_cc_stdc = xno 4756then : 4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4758printf %s "checking for $CC option to enable C89 features... " >&6; } 4759if test ${ac_cv_prog_cc_c89+y} 4760then : 4761 printf %s "(cached) " >&6 4762else $as_nop 4763 ac_cv_prog_cc_c89=no 4764ac_save_CC=$CC 4765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767$ac_c_conftest_c89_program 4768_ACEOF 4769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4770do 4771 CC="$ac_save_CC $ac_arg" 4772 if ac_fn_c_try_compile "$LINENO" 4773then : 4774 ac_cv_prog_cc_c89=$ac_arg 4775fi 4776rm -f core conftest.err conftest.$ac_objext conftest.beam 4777 test "x$ac_cv_prog_cc_c89" != "xno" && break 4778done 4779rm -f conftest.$ac_ext 4780CC=$ac_save_CC 4781fi 4782 4783if test "x$ac_cv_prog_cc_c89" = xno 4784then : 4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4786printf "%s\n" "unsupported" >&6; } 4787else $as_nop 4788 if test "x$ac_cv_prog_cc_c89" = x 4789then : 4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4791printf "%s\n" "none needed" >&6; } 4792else $as_nop 4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4794printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4795 CC="$CC $ac_cv_prog_cc_c89" 4796fi 4797 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4798 ac_prog_cc_stdc=c89 4799fi 4800fi 4801 4802ac_ext=c 4803ac_cpp='$CPP $CPPFLAGS' 4804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4806ac_compiler_gnu=$ac_cv_c_compiler_gnu 4807 4808 4809 ac_ext=c 4810ac_cpp='$CPP $CPPFLAGS' 4811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4813ac_compiler_gnu=$ac_cv_c_compiler_gnu 4814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4815printf %s "checking whether $CC understands -c and -o together... " >&6; } 4816if test ${am_cv_prog_cc_c_o+y} 4817then : 4818 printf %s "(cached) " >&6 4819else $as_nop 4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4821/* end confdefs.h. */ 4822 4823int 4824main (void) 4825{ 4826 4827 ; 4828 return 0; 4829} 4830_ACEOF 4831 # Make sure it works both with $CC and with simple cc. 4832 # Following AC_PROG_CC_C_O, we do the test twice because some 4833 # compilers refuse to overwrite an existing .o file with -o, 4834 # though they will create one. 4835 am_cv_prog_cc_c_o=yes 4836 for am_i in 1 2; do 4837 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4838 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4839 ac_status=$? 4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4841 (exit $ac_status); } \ 4842 && test -f conftest2.$ac_objext; then 4843 : OK 4844 else 4845 am_cv_prog_cc_c_o=no 4846 break 4847 fi 4848 done 4849 rm -f core conftest* 4850 unset am_i 4851fi 4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4853printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4854if test "$am_cv_prog_cc_c_o" != yes; then 4855 # Losing compiler, so override with the script. 4856 # FIXME: It is wrong to rewrite CC. 4857 # But if we don't then we get into trouble of one sort or another. 4858 # A longer-term fix would be to have automake use am__CC in this case, 4859 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4860 CC="$am_aux_dir/compile $CC" 4861fi 4862ac_ext=c 4863ac_cpp='$CPP $CPPFLAGS' 4864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4866ac_compiler_gnu=$ac_cv_c_compiler_gnu 4867 4868DEPDIR="${am__leading_dot}deps" 4869 4870ac_config_commands="$ac_config_commands depfiles" 4871 4872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4873printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4874cat > confinc.mk << 'END' 4875am__doit: 4876 @echo this is the am__doit target >confinc.out 4877.PHONY: am__doit 4878END 4879am__include="#" 4880am__quote= 4881# BSD make does it like this. 4882echo '.include "confinc.mk" # ignored' > confmf.BSD 4883# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4884echo 'include confinc.mk # ignored' > confmf.GNU 4885_am_result=no 4886for s in GNU BSD; do 4887 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4888 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4889 ac_status=$? 4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4891 (exit $ac_status); } 4892 case $?:`cat confinc.out 2>/dev/null` in #( 4893 '0:this is the am__doit target') : 4894 case $s in #( 4895 BSD) : 4896 am__include='.include' am__quote='"' ;; #( 4897 *) : 4898 am__include='include' am__quote='' ;; 4899esac ;; #( 4900 *) : 4901 ;; 4902esac 4903 if test "$am__include" != "#"; then 4904 _am_result="yes ($s style)" 4905 break 4906 fi 4907done 4908rm -f confinc.* confmf.* 4909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4910printf "%s\n" "${_am_result}" >&6; } 4911 4912# Check whether --enable-dependency-tracking was given. 4913if test ${enable_dependency_tracking+y} 4914then : 4915 enableval=$enable_dependency_tracking; 4916fi 4917 4918if test "x$enable_dependency_tracking" != xno; then 4919 am_depcomp="$ac_aux_dir/depcomp" 4920 AMDEPBACKSLASH='\' 4921 am__nodep='_no' 4922fi 4923 if test "x$enable_dependency_tracking" != xno; then 4924 AMDEP_TRUE= 4925 AMDEP_FALSE='#' 4926else 4927 AMDEP_TRUE='#' 4928 AMDEP_FALSE= 4929fi 4930 4931 4932 4933depcc="$CC" am_compiler_list= 4934 4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4936printf %s "checking dependency style of $depcc... " >&6; } 4937if test ${am_cv_CC_dependencies_compiler_type+y} 4938then : 4939 printf %s "(cached) " >&6 4940else $as_nop 4941 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4942 # We make a subdir and do the tests there. Otherwise we can end up 4943 # making bogus files that we don't know about and never remove. For 4944 # instance it was reported that on HP-UX the gcc test will end up 4945 # making a dummy file named 'D' -- because '-MD' means "put the output 4946 # in D". 4947 rm -rf conftest.dir 4948 mkdir conftest.dir 4949 # Copy depcomp to subdir because otherwise we won't find it if we're 4950 # using a relative directory. 4951 cp "$am_depcomp" conftest.dir 4952 cd conftest.dir 4953 # We will build objects and dependencies in a subdirectory because 4954 # it helps to detect inapplicable dependency modes. For instance 4955 # both Tru64's cc and ICC support -MD to output dependencies as a 4956 # side effect of compilation, but ICC will put the dependencies in 4957 # the current directory while Tru64 will put them in the object 4958 # directory. 4959 mkdir sub 4960 4961 am_cv_CC_dependencies_compiler_type=none 4962 if test "$am_compiler_list" = ""; then 4963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4964 fi 4965 am__universal=false 4966 case " $depcc " in #( 4967 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4968 esac 4969 4970 for depmode in $am_compiler_list; do 4971 # Setup a source with many dependencies, because some compilers 4972 # like to wrap large dependency lists on column 80 (with \), and 4973 # we should not choose a depcomp mode which is confused by this. 4974 # 4975 # We need to recreate these files for each test, as the compiler may 4976 # overwrite some of them when testing with obscure command lines. 4977 # This happens at least with the AIX C compiler. 4978 : > sub/conftest.c 4979 for i in 1 2 3 4 5 6; do 4980 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4981 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4982 # Solaris 10 /bin/sh. 4983 echo '/* dummy */' > sub/conftst$i.h 4984 done 4985 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4986 4987 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4988 # mode. It turns out that the SunPro C++ compiler does not properly 4989 # handle '-M -o', and we need to detect this. Also, some Intel 4990 # versions had trouble with output in subdirs. 4991 am__obj=sub/conftest.${OBJEXT-o} 4992 am__minus_obj="-o $am__obj" 4993 case $depmode in 4994 gcc) 4995 # This depmode causes a compiler race in universal mode. 4996 test "$am__universal" = false || continue 4997 ;; 4998 nosideeffect) 4999 # After this tag, mechanisms are not by side-effect, so they'll 5000 # only be used when explicitly requested. 5001 if test "x$enable_dependency_tracking" = xyes; then 5002 continue 5003 else 5004 break 5005 fi 5006 ;; 5007 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5008 # This compiler won't grok '-c -o', but also, the minuso test has 5009 # not run yet. These depmodes are late enough in the game, and 5010 # so weak that their functioning should not be impacted. 5011 am__obj=conftest.${OBJEXT-o} 5012 am__minus_obj= 5013 ;; 5014 none) break ;; 5015 esac 5016 if depmode=$depmode \ 5017 source=sub/conftest.c object=$am__obj \ 5018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5019 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5020 >/dev/null 2>conftest.err && 5021 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5023 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5025 # icc doesn't choke on unknown options, it will just issue warnings 5026 # or remarks (even with -Werror). So we grep stderr for any message 5027 # that says an option was ignored or not supported. 5028 # When given -MP, icc 7.0 and 7.1 complain thusly: 5029 # icc: Command line warning: ignoring option '-M'; no argument required 5030 # The diagnosis changed in icc 8.0: 5031 # icc: Command line remark: option '-MP' not supported 5032 if (grep 'ignoring option' conftest.err || 5033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5034 am_cv_CC_dependencies_compiler_type=$depmode 5035 break 5036 fi 5037 fi 5038 done 5039 5040 cd .. 5041 rm -rf conftest.dir 5042else 5043 am_cv_CC_dependencies_compiler_type=none 5044fi 5045 5046fi 5047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5048printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5050 5051 if 5052 test "x$enable_dependency_tracking" != xno \ 5053 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5054 am__fastdepCC_TRUE= 5055 am__fastdepCC_FALSE='#' 5056else 5057 am__fastdepCC_TRUE='#' 5058 am__fastdepCC_FALSE= 5059fi 5060 5061 5062 5063ac_header= ac_cache= 5064for ac_item in $ac_header_c_list 5065do 5066 if test $ac_cache; then 5067 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5068 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5069 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5070 fi 5071 ac_header= ac_cache= 5072 elif test $ac_header; then 5073 ac_cache=$ac_item 5074 else 5075 ac_header=$ac_item 5076 fi 5077done 5078 5079 5080 5081 5082 5083 5084 5085 5086if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5087then : 5088 5089printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5090 5091fi 5092 5093 5094 5095 5096 5097 5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5099printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5100if test ${ac_cv_safe_to_define___extensions__+y} 5101then : 5102 printf %s "(cached) " >&6 5103else $as_nop 5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5105/* end confdefs.h. */ 5106 5107# define __EXTENSIONS__ 1 5108 $ac_includes_default 5109int 5110main (void) 5111{ 5112 5113 ; 5114 return 0; 5115} 5116_ACEOF 5117if ac_fn_c_try_compile "$LINENO" 5118then : 5119 ac_cv_safe_to_define___extensions__=yes 5120else $as_nop 5121 ac_cv_safe_to_define___extensions__=no 5122fi 5123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5124fi 5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5126printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5127 5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5129printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5130if test ${ac_cv_should_define__xopen_source+y} 5131then : 5132 printf %s "(cached) " >&6 5133else $as_nop 5134 ac_cv_should_define__xopen_source=no 5135 if test $ac_cv_header_wchar_h = yes 5136then : 5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5138/* end confdefs.h. */ 5139 5140 #include <wchar.h> 5141 mbstate_t x; 5142int 5143main (void) 5144{ 5145 5146 ; 5147 return 0; 5148} 5149_ACEOF 5150if ac_fn_c_try_compile "$LINENO" 5151then : 5152 5153else $as_nop 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5155/* end confdefs.h. */ 5156 5157 #define _XOPEN_SOURCE 500 5158 #include <wchar.h> 5159 mbstate_t x; 5160int 5161main (void) 5162{ 5163 5164 ; 5165 return 0; 5166} 5167_ACEOF 5168if ac_fn_c_try_compile "$LINENO" 5169then : 5170 ac_cv_should_define__xopen_source=yes 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5173fi 5174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5175fi 5176fi 5177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5178printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5179 5180 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5181 5182 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5183 5184 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5185 5186 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5187 5188 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5189 5190 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5191 5192 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5193 5194 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5195 5196 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5197 5198 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5199 5200 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5201 5202 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5203 5204 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5205 5206 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5207 5208 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5209 5210 if test $ac_cv_header_minix_config_h = yes 5211then : 5212 MINIX=yes 5213 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5214 5215 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5216 5217 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5218 5219else $as_nop 5220 MINIX= 5221fi 5222 if test $ac_cv_safe_to_define___extensions__ = yes 5223then : 5224 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5225 5226fi 5227 if test $ac_cv_should_define__xopen_source = yes 5228then : 5229 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5230 5231fi 5232 5233 5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5235printf %s "checking whether byte ordering is bigendian... " >&6; } 5236if test ${ac_cv_c_bigendian+y} 5237then : 5238 printf %s "(cached) " >&6 5239else $as_nop 5240 ac_cv_c_bigendian=unknown 5241 # See if we're dealing with a universal compiler. 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243/* end confdefs.h. */ 5244#ifndef __APPLE_CC__ 5245 not a universal capable compiler 5246 #endif 5247 typedef int dummy; 5248 5249_ACEOF 5250if ac_fn_c_try_compile "$LINENO" 5251then : 5252 5253 # Check for potential -arch flags. It is not universal unless 5254 # there are at least two -arch flags with different values. 5255 ac_arch= 5256 ac_prev= 5257 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5258 if test -n "$ac_prev"; then 5259 case $ac_word in 5260 i?86 | x86_64 | ppc | ppc64) 5261 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5262 ac_arch=$ac_word 5263 else 5264 ac_cv_c_bigendian=universal 5265 break 5266 fi 5267 ;; 5268 esac 5269 ac_prev= 5270 elif test "x$ac_word" = "x-arch"; then 5271 ac_prev=arch 5272 fi 5273 done 5274fi 5275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5276 if test $ac_cv_c_bigendian = unknown; then 5277 # See if sys/param.h defines the BYTE_ORDER macro. 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280#include <sys/types.h> 5281 #include <sys/param.h> 5282 5283int 5284main (void) 5285{ 5286#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5287 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5288 && LITTLE_ENDIAN) 5289 bogus endian macros 5290 #endif 5291 5292 ; 5293 return 0; 5294} 5295_ACEOF 5296if ac_fn_c_try_compile "$LINENO" 5297then : 5298 # It does; now see whether it defined to BIG_ENDIAN or not. 5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5300/* end confdefs.h. */ 5301#include <sys/types.h> 5302 #include <sys/param.h> 5303 5304int 5305main (void) 5306{ 5307#if BYTE_ORDER != BIG_ENDIAN 5308 not big endian 5309 #endif 5310 5311 ; 5312 return 0; 5313} 5314_ACEOF 5315if ac_fn_c_try_compile "$LINENO" 5316then : 5317 ac_cv_c_bigendian=yes 5318else $as_nop 5319 ac_cv_c_bigendian=no 5320fi 5321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5322fi 5323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5324 fi 5325 if test $ac_cv_c_bigendian = unknown; then 5326 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328/* end confdefs.h. */ 5329#include <limits.h> 5330 5331int 5332main (void) 5333{ 5334#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5335 bogus endian macros 5336 #endif 5337 5338 ; 5339 return 0; 5340} 5341_ACEOF 5342if ac_fn_c_try_compile "$LINENO" 5343then : 5344 # It does; now see whether it defined to _BIG_ENDIAN or not. 5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5346/* end confdefs.h. */ 5347#include <limits.h> 5348 5349int 5350main (void) 5351{ 5352#ifndef _BIG_ENDIAN 5353 not big endian 5354 #endif 5355 5356 ; 5357 return 0; 5358} 5359_ACEOF 5360if ac_fn_c_try_compile "$LINENO" 5361then : 5362 ac_cv_c_bigendian=yes 5363else $as_nop 5364 ac_cv_c_bigendian=no 5365fi 5366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5367fi 5368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5369 fi 5370 if test $ac_cv_c_bigendian = unknown; then 5371 # Compile a test program. 5372 if test "$cross_compiling" = yes 5373then : 5374 # Try to guess by grepping values from an object file. 5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5376/* end confdefs.h. */ 5377unsigned short int ascii_mm[] = 5378 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5379 unsigned short int ascii_ii[] = 5380 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5381 int use_ascii (int i) { 5382 return ascii_mm[i] + ascii_ii[i]; 5383 } 5384 unsigned short int ebcdic_ii[] = 5385 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5386 unsigned short int ebcdic_mm[] = 5387 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5388 int use_ebcdic (int i) { 5389 return ebcdic_mm[i] + ebcdic_ii[i]; 5390 } 5391 extern int foo; 5392 5393int 5394main (void) 5395{ 5396return use_ascii (foo) == use_ebcdic (foo); 5397 ; 5398 return 0; 5399} 5400_ACEOF 5401if ac_fn_c_try_compile "$LINENO" 5402then : 5403 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5404 ac_cv_c_bigendian=yes 5405 fi 5406 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5407 if test "$ac_cv_c_bigendian" = unknown; then 5408 ac_cv_c_bigendian=no 5409 else 5410 # finding both strings is unlikely to happen, but who knows? 5411 ac_cv_c_bigendian=unknown 5412 fi 5413 fi 5414fi 5415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5416else $as_nop 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419$ac_includes_default 5420int 5421main (void) 5422{ 5423 5424 /* Are we little or big endian? From Harbison&Steele. */ 5425 union 5426 { 5427 long int l; 5428 char c[sizeof (long int)]; 5429 } u; 5430 u.l = 1; 5431 return u.c[sizeof (long int) - 1] == 1; 5432 5433 ; 5434 return 0; 5435} 5436_ACEOF 5437if ac_fn_c_try_run "$LINENO" 5438then : 5439 ac_cv_c_bigendian=no 5440else $as_nop 5441 ac_cv_c_bigendian=yes 5442fi 5443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5444 conftest.$ac_objext conftest.beam conftest.$ac_ext 5445fi 5446 5447 fi 5448fi 5449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5450printf "%s\n" "$ac_cv_c_bigendian" >&6; } 5451 case $ac_cv_c_bigendian in #( 5452 yes) 5453 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 5454;; #( 5455 no) 5456 ;; #( 5457 universal) 5458 5459printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5460 5461 ;; #( 5462 *) 5463 as_fn_error $? "unknown endianness 5464 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5465 esac 5466 5467 5468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5469printf %s "checking whether ln -s works... " >&6; } 5470LN_S=$as_ln_s 5471if test "$LN_S" = "ln -s"; then 5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5473printf "%s\n" "yes" >&6; } 5474else 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5476printf "%s\n" "no, using $LN_S" >&6; } 5477fi 5478 5479case `pwd` in 5480 *\ * | *\ *) 5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5482printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5483esac 5484 5485 5486 5487macro_version='2.4.6' 5488macro_revision='2.4.6' 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503ltmain=$ac_aux_dir/ltmain.sh 5504 5505# Backslashify metacharacters that are still active within 5506# double-quoted strings. 5507sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5508 5509# Same as above, but do not quote variable references. 5510double_quote_subst='s/\(["`\\]\)/\\\1/g' 5511 5512# Sed substitution to delay expansion of an escaped shell variable in a 5513# double_quote_subst'ed string. 5514delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5515 5516# Sed substitution to delay expansion of an escaped single quote. 5517delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5518 5519# Sed substitution to avoid accidental globbing in evaled expressions 5520no_glob_subst='s/\*/\\\*/g' 5521 5522ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5523ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5524ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5525 5526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5527printf %s "checking how to print strings... " >&6; } 5528# Test print first, because it will be a builtin if present. 5529if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5530 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5531 ECHO='print -r --' 5532elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5533 ECHO='printf %s\n' 5534else 5535 # Use this function as a fallback that always works. 5536 func_fallback_echo () 5537 { 5538 eval 'cat <<_LTECHO_EOF 5539$1 5540_LTECHO_EOF' 5541 } 5542 ECHO='func_fallback_echo' 5543fi 5544 5545# func_echo_all arg... 5546# Invoke $ECHO with all args, space-separated. 5547func_echo_all () 5548{ 5549 $ECHO "" 5550} 5551 5552case $ECHO in 5553 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5554printf "%s\n" "printf" >&6; } ;; 5555 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5556printf "%s\n" "print -r" >&6; } ;; 5557 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5558printf "%s\n" "cat" >&6; } ;; 5559esac 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5575printf %s "checking for a sed that does not truncate output... " >&6; } 5576if test ${ac_cv_path_SED+y} 5577then : 5578 printf %s "(cached) " >&6 5579else $as_nop 5580 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5581 for ac_i in 1 2 3 4 5 6 7; do 5582 ac_script="$ac_script$as_nl$ac_script" 5583 done 5584 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5585 { ac_script=; unset ac_script;} 5586 if test -z "$SED"; then 5587 ac_path_SED_found=false 5588 # Loop through the user's path and test for each of PROGNAME-LIST 5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590for as_dir in $PATH 5591do 5592 IFS=$as_save_IFS 5593 case $as_dir in #((( 5594 '') as_dir=./ ;; 5595 */) ;; 5596 *) as_dir=$as_dir/ ;; 5597 esac 5598 for ac_prog in sed gsed 5599 do 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5602 as_fn_executable_p "$ac_path_SED" || continue 5603# Check for GNU ac_path_SED and select it if it is found. 5604 # Check for GNU $ac_path_SED 5605case `"$ac_path_SED" --version 2>&1` in 5606*GNU*) 5607 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5608*) 5609 ac_count=0 5610 printf %s 0123456789 >"conftest.in" 5611 while : 5612 do 5613 cat "conftest.in" "conftest.in" >"conftest.tmp" 5614 mv "conftest.tmp" "conftest.in" 5615 cp "conftest.in" "conftest.nl" 5616 printf "%s\n" '' >> "conftest.nl" 5617 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5619 as_fn_arith $ac_count + 1 && ac_count=$as_val 5620 if test $ac_count -gt ${ac_path_SED_max-0}; then 5621 # Best one so far, save it but keep looking for a better one 5622 ac_cv_path_SED="$ac_path_SED" 5623 ac_path_SED_max=$ac_count 5624 fi 5625 # 10*(2^10) chars as input seems more than enough 5626 test $ac_count -gt 10 && break 5627 done 5628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5629esac 5630 5631 $ac_path_SED_found && break 3 5632 done 5633 done 5634 done 5635IFS=$as_save_IFS 5636 if test -z "$ac_cv_path_SED"; then 5637 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5638 fi 5639else 5640 ac_cv_path_SED=$SED 5641fi 5642 5643fi 5644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5645printf "%s\n" "$ac_cv_path_SED" >&6; } 5646 SED="$ac_cv_path_SED" 5647 rm -f conftest.sed 5648 5649test -z "$SED" && SED=sed 5650Xsed="$SED -e 1s/^X//" 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5663printf %s "checking for grep that handles long lines and -e... " >&6; } 5664if test ${ac_cv_path_GREP+y} 5665then : 5666 printf %s "(cached) " >&6 5667else $as_nop 5668 if test -z "$GREP"; then 5669 ac_path_GREP_found=false 5670 # Loop through the user's path and test for each of PROGNAME-LIST 5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5673do 5674 IFS=$as_save_IFS 5675 case $as_dir in #((( 5676 '') as_dir=./ ;; 5677 */) ;; 5678 *) as_dir=$as_dir/ ;; 5679 esac 5680 for ac_prog in grep ggrep 5681 do 5682 for ac_exec_ext in '' $ac_executable_extensions; do 5683 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5684 as_fn_executable_p "$ac_path_GREP" || continue 5685# Check for GNU ac_path_GREP and select it if it is found. 5686 # Check for GNU $ac_path_GREP 5687case `"$ac_path_GREP" --version 2>&1` in 5688*GNU*) 5689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5690*) 5691 ac_count=0 5692 printf %s 0123456789 >"conftest.in" 5693 while : 5694 do 5695 cat "conftest.in" "conftest.in" >"conftest.tmp" 5696 mv "conftest.tmp" "conftest.in" 5697 cp "conftest.in" "conftest.nl" 5698 printf "%s\n" 'GREP' >> "conftest.nl" 5699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5701 as_fn_arith $ac_count + 1 && ac_count=$as_val 5702 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5703 # Best one so far, save it but keep looking for a better one 5704 ac_cv_path_GREP="$ac_path_GREP" 5705 ac_path_GREP_max=$ac_count 5706 fi 5707 # 10*(2^10) chars as input seems more than enough 5708 test $ac_count -gt 10 && break 5709 done 5710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5711esac 5712 5713 $ac_path_GREP_found && break 3 5714 done 5715 done 5716 done 5717IFS=$as_save_IFS 5718 if test -z "$ac_cv_path_GREP"; then 5719 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5720 fi 5721else 5722 ac_cv_path_GREP=$GREP 5723fi 5724 5725fi 5726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5727printf "%s\n" "$ac_cv_path_GREP" >&6; } 5728 GREP="$ac_cv_path_GREP" 5729 5730 5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5732printf %s "checking for egrep... " >&6; } 5733if test ${ac_cv_path_EGREP+y} 5734then : 5735 printf %s "(cached) " >&6 5736else $as_nop 5737 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5738 then ac_cv_path_EGREP="$GREP -E" 5739 else 5740 if test -z "$EGREP"; then 5741 ac_path_EGREP_found=false 5742 # Loop through the user's path and test for each of PROGNAME-LIST 5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5744for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5745do 5746 IFS=$as_save_IFS 5747 case $as_dir in #((( 5748 '') as_dir=./ ;; 5749 */) ;; 5750 *) as_dir=$as_dir/ ;; 5751 esac 5752 for ac_prog in egrep 5753 do 5754 for ac_exec_ext in '' $ac_executable_extensions; do 5755 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5756 as_fn_executable_p "$ac_path_EGREP" || continue 5757# Check for GNU ac_path_EGREP and select it if it is found. 5758 # Check for GNU $ac_path_EGREP 5759case `"$ac_path_EGREP" --version 2>&1` in 5760*GNU*) 5761 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5762*) 5763 ac_count=0 5764 printf %s 0123456789 >"conftest.in" 5765 while : 5766 do 5767 cat "conftest.in" "conftest.in" >"conftest.tmp" 5768 mv "conftest.tmp" "conftest.in" 5769 cp "conftest.in" "conftest.nl" 5770 printf "%s\n" 'EGREP' >> "conftest.nl" 5771 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5773 as_fn_arith $ac_count + 1 && ac_count=$as_val 5774 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5775 # Best one so far, save it but keep looking for a better one 5776 ac_cv_path_EGREP="$ac_path_EGREP" 5777 ac_path_EGREP_max=$ac_count 5778 fi 5779 # 10*(2^10) chars as input seems more than enough 5780 test $ac_count -gt 10 && break 5781 done 5782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5783esac 5784 5785 $ac_path_EGREP_found && break 3 5786 done 5787 done 5788 done 5789IFS=$as_save_IFS 5790 if test -z "$ac_cv_path_EGREP"; then 5791 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5792 fi 5793else 5794 ac_cv_path_EGREP=$EGREP 5795fi 5796 5797 fi 5798fi 5799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5800printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5801 EGREP="$ac_cv_path_EGREP" 5802 5803 5804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5805printf %s "checking for fgrep... " >&6; } 5806if test ${ac_cv_path_FGREP+y} 5807then : 5808 printf %s "(cached) " >&6 5809else $as_nop 5810 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5811 then ac_cv_path_FGREP="$GREP -F" 5812 else 5813 if test -z "$FGREP"; then 5814 ac_path_FGREP_found=false 5815 # Loop through the user's path and test for each of PROGNAME-LIST 5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5817for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5818do 5819 IFS=$as_save_IFS 5820 case $as_dir in #((( 5821 '') as_dir=./ ;; 5822 */) ;; 5823 *) as_dir=$as_dir/ ;; 5824 esac 5825 for ac_prog in fgrep 5826 do 5827 for ac_exec_ext in '' $ac_executable_extensions; do 5828 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5829 as_fn_executable_p "$ac_path_FGREP" || continue 5830# Check for GNU ac_path_FGREP and select it if it is found. 5831 # Check for GNU $ac_path_FGREP 5832case `"$ac_path_FGREP" --version 2>&1` in 5833*GNU*) 5834 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5835*) 5836 ac_count=0 5837 printf %s 0123456789 >"conftest.in" 5838 while : 5839 do 5840 cat "conftest.in" "conftest.in" >"conftest.tmp" 5841 mv "conftest.tmp" "conftest.in" 5842 cp "conftest.in" "conftest.nl" 5843 printf "%s\n" 'FGREP' >> "conftest.nl" 5844 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5846 as_fn_arith $ac_count + 1 && ac_count=$as_val 5847 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5848 # Best one so far, save it but keep looking for a better one 5849 ac_cv_path_FGREP="$ac_path_FGREP" 5850 ac_path_FGREP_max=$ac_count 5851 fi 5852 # 10*(2^10) chars as input seems more than enough 5853 test $ac_count -gt 10 && break 5854 done 5855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5856esac 5857 5858 $ac_path_FGREP_found && break 3 5859 done 5860 done 5861 done 5862IFS=$as_save_IFS 5863 if test -z "$ac_cv_path_FGREP"; then 5864 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5865 fi 5866else 5867 ac_cv_path_FGREP=$FGREP 5868fi 5869 5870 fi 5871fi 5872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5873printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5874 FGREP="$ac_cv_path_FGREP" 5875 5876 5877test -z "$GREP" && GREP=grep 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897# Check whether --with-gnu-ld was given. 5898if test ${with_gnu_ld+y} 5899then : 5900 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5901else $as_nop 5902 with_gnu_ld=no 5903fi 5904 5905ac_prog=ld 5906if test yes = "$GCC"; then 5907 # Check if gcc -print-prog-name=ld gives a path. 5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5909printf %s "checking for ld used by $CC... " >&6; } 5910 case $host in 5911 *-*-mingw*) 5912 # gcc leaves a trailing carriage return, which upsets mingw 5913 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5914 *) 5915 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5916 esac 5917 case $ac_prog in 5918 # Accept absolute paths. 5919 [\\/]* | ?:[\\/]*) 5920 re_direlt='/[^/][^/]*/\.\./' 5921 # Canonicalize the pathname of ld 5922 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5923 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5924 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5925 done 5926 test -z "$LD" && LD=$ac_prog 5927 ;; 5928 "") 5929 # If it fails, then pretend we aren't using GCC. 5930 ac_prog=ld 5931 ;; 5932 *) 5933 # If it is relative, then search for the first ld in PATH. 5934 with_gnu_ld=unknown 5935 ;; 5936 esac 5937elif test yes = "$with_gnu_ld"; then 5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5939printf %s "checking for GNU ld... " >&6; } 5940else 5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5942printf %s "checking for non-GNU ld... " >&6; } 5943fi 5944if test ${lt_cv_path_LD+y} 5945then : 5946 printf %s "(cached) " >&6 5947else $as_nop 5948 if test -z "$LD"; then 5949 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5950 for ac_dir in $PATH; do 5951 IFS=$lt_save_ifs 5952 test -z "$ac_dir" && ac_dir=. 5953 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5954 lt_cv_path_LD=$ac_dir/$ac_prog 5955 # Check to see if the program is GNU ld. I'd rather use --version, 5956 # but apparently some variants of GNU ld only accept -v. 5957 # Break only if it was the GNU/non-GNU ld that we prefer. 5958 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5959 *GNU* | *'with BFD'*) 5960 test no != "$with_gnu_ld" && break 5961 ;; 5962 *) 5963 test yes != "$with_gnu_ld" && break 5964 ;; 5965 esac 5966 fi 5967 done 5968 IFS=$lt_save_ifs 5969else 5970 lt_cv_path_LD=$LD # Let the user override the test with a path. 5971fi 5972fi 5973 5974LD=$lt_cv_path_LD 5975if test -n "$LD"; then 5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5977printf "%s\n" "$LD" >&6; } 5978else 5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5980printf "%s\n" "no" >&6; } 5981fi 5982test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5984printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5985if test ${lt_cv_prog_gnu_ld+y} 5986then : 5987 printf %s "(cached) " >&6 5988else $as_nop 5989 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5990case `$LD -v 2>&1 </dev/null` in 5991*GNU* | *'with BFD'*) 5992 lt_cv_prog_gnu_ld=yes 5993 ;; 5994*) 5995 lt_cv_prog_gnu_ld=no 5996 ;; 5997esac 5998fi 5999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6000printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6001with_gnu_ld=$lt_cv_prog_gnu_ld 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6012printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6013if test ${lt_cv_path_NM+y} 6014then : 6015 printf %s "(cached) " >&6 6016else $as_nop 6017 if test -n "$NM"; then 6018 # Let the user override the test. 6019 lt_cv_path_NM=$NM 6020else 6021 lt_nm_to_check=${ac_tool_prefix}nm 6022 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6023 lt_nm_to_check="$lt_nm_to_check nm" 6024 fi 6025 for lt_tmp_nm in $lt_nm_to_check; do 6026 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6027 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6028 IFS=$lt_save_ifs 6029 test -z "$ac_dir" && ac_dir=. 6030 tmp_nm=$ac_dir/$lt_tmp_nm 6031 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6032 # Check to see if the nm accepts a BSD-compat flag. 6033 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6034 # nm: unknown option "B" ignored 6035 # Tru64's nm complains that /dev/null is an invalid object file 6036 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6037 case $build_os in 6038 mingw*) lt_bad_file=conftest.nm/nofile ;; 6039 *) lt_bad_file=/dev/null ;; 6040 esac 6041 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6042 *$lt_bad_file* | *'Invalid file or object type'*) 6043 lt_cv_path_NM="$tmp_nm -B" 6044 break 2 6045 ;; 6046 *) 6047 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6048 */dev/null*) 6049 lt_cv_path_NM="$tmp_nm -p" 6050 break 2 6051 ;; 6052 *) 6053 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6054 continue # so that we can try to find one that supports BSD flags 6055 ;; 6056 esac 6057 ;; 6058 esac 6059 fi 6060 done 6061 IFS=$lt_save_ifs 6062 done 6063 : ${lt_cv_path_NM=no} 6064fi 6065fi 6066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6067printf "%s\n" "$lt_cv_path_NM" >&6; } 6068if test no != "$lt_cv_path_NM"; then 6069 NM=$lt_cv_path_NM 6070else 6071 # Didn't find any BSD compatible name lister, look for dumpbin. 6072 if test -n "$DUMPBIN"; then : 6073 # Let the user override the test. 6074 else 6075 if test -n "$ac_tool_prefix"; then 6076 for ac_prog in dumpbin "link -dump" 6077 do 6078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6079set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6081printf %s "checking for $ac_word... " >&6; } 6082if test ${ac_cv_prog_DUMPBIN+y} 6083then : 6084 printf %s "(cached) " >&6 6085else $as_nop 6086 if test -n "$DUMPBIN"; then 6087 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6088else 6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6090for as_dir in $PATH 6091do 6092 IFS=$as_save_IFS 6093 case $as_dir in #((( 6094 '') as_dir=./ ;; 6095 */) ;; 6096 *) as_dir=$as_dir/ ;; 6097 esac 6098 for ac_exec_ext in '' $ac_executable_extensions; do 6099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6100 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6102 break 2 6103 fi 6104done 6105 done 6106IFS=$as_save_IFS 6107 6108fi 6109fi 6110DUMPBIN=$ac_cv_prog_DUMPBIN 6111if test -n "$DUMPBIN"; then 6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6113printf "%s\n" "$DUMPBIN" >&6; } 6114else 6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6116printf "%s\n" "no" >&6; } 6117fi 6118 6119 6120 test -n "$DUMPBIN" && break 6121 done 6122fi 6123if test -z "$DUMPBIN"; then 6124 ac_ct_DUMPBIN=$DUMPBIN 6125 for ac_prog in dumpbin "link -dump" 6126do 6127 # Extract the first word of "$ac_prog", so it can be a program name with args. 6128set dummy $ac_prog; ac_word=$2 6129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130printf %s "checking for $ac_word... " >&6; } 6131if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6132then : 6133 printf %s "(cached) " >&6 6134else $as_nop 6135 if test -n "$ac_ct_DUMPBIN"; then 6136 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6137else 6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139for as_dir in $PATH 6140do 6141 IFS=$as_save_IFS 6142 case $as_dir in #((( 6143 '') as_dir=./ ;; 6144 */) ;; 6145 *) as_dir=$as_dir/ ;; 6146 esac 6147 for ac_exec_ext in '' $ac_executable_extensions; do 6148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6149 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6151 break 2 6152 fi 6153done 6154 done 6155IFS=$as_save_IFS 6156 6157fi 6158fi 6159ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6160if test -n "$ac_ct_DUMPBIN"; then 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6162printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6163else 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6165printf "%s\n" "no" >&6; } 6166fi 6167 6168 6169 test -n "$ac_ct_DUMPBIN" && break 6170done 6171 6172 if test "x$ac_ct_DUMPBIN" = x; then 6173 DUMPBIN=":" 6174 else 6175 case $cross_compiling:$ac_tool_warned in 6176yes:) 6177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6178printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6179ac_tool_warned=yes ;; 6180esac 6181 DUMPBIN=$ac_ct_DUMPBIN 6182 fi 6183fi 6184 6185 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6186 *COFF*) 6187 DUMPBIN="$DUMPBIN -symbols -headers" 6188 ;; 6189 *) 6190 DUMPBIN=: 6191 ;; 6192 esac 6193 fi 6194 6195 if test : != "$DUMPBIN"; then 6196 NM=$DUMPBIN 6197 fi 6198fi 6199test -z "$NM" && NM=nm 6200 6201 6202 6203 6204 6205 6206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6207printf %s "checking the name lister ($NM) interface... " >&6; } 6208if test ${lt_cv_nm_interface+y} 6209then : 6210 printf %s "(cached) " >&6 6211else $as_nop 6212 lt_cv_nm_interface="BSD nm" 6213 echo "int some_variable = 0;" > conftest.$ac_ext 6214 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6215 (eval "$ac_compile" 2>conftest.err) 6216 cat conftest.err >&5 6217 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6218 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6219 cat conftest.err >&5 6220 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6221 cat conftest.out >&5 6222 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6223 lt_cv_nm_interface="MS dumpbin" 6224 fi 6225 rm -f conftest* 6226fi 6227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6228printf "%s\n" "$lt_cv_nm_interface" >&6; } 6229 6230# find the maximum length of command line arguments 6231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6232printf %s "checking the maximum length of command line arguments... " >&6; } 6233if test ${lt_cv_sys_max_cmd_len+y} 6234then : 6235 printf %s "(cached) " >&6 6236else $as_nop 6237 i=0 6238 teststring=ABCD 6239 6240 case $build_os in 6241 msdosdjgpp*) 6242 # On DJGPP, this test can blow up pretty badly due to problems in libc 6243 # (any single argument exceeding 2000 bytes causes a buffer overrun 6244 # during glob expansion). Even if it were fixed, the result of this 6245 # check would be larger than it should be. 6246 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6247 ;; 6248 6249 gnu*) 6250 # Under GNU Hurd, this test is not required because there is 6251 # no limit to the length of command line arguments. 6252 # Libtool will interpret -1 as no limit whatsoever 6253 lt_cv_sys_max_cmd_len=-1; 6254 ;; 6255 6256 cygwin* | mingw* | cegcc*) 6257 # On Win9x/ME, this test blows up -- it succeeds, but takes 6258 # about 5 minutes as the teststring grows exponentially. 6259 # Worse, since 9x/ME are not pre-emptively multitasking, 6260 # you end up with a "frozen" computer, even though with patience 6261 # the test eventually succeeds (with a max line length of 256k). 6262 # Instead, let's just punt: use the minimum linelength reported by 6263 # all of the supported platforms: 8192 (on NT/2K/XP). 6264 lt_cv_sys_max_cmd_len=8192; 6265 ;; 6266 6267 mint*) 6268 # On MiNT this can take a long time and run out of memory. 6269 lt_cv_sys_max_cmd_len=8192; 6270 ;; 6271 6272 amigaos*) 6273 # On AmigaOS with pdksh, this test takes hours, literally. 6274 # So we just punt and use a minimum line length of 8192. 6275 lt_cv_sys_max_cmd_len=8192; 6276 ;; 6277 6278 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6279 # This has been around since 386BSD, at least. Likely further. 6280 if test -x /sbin/sysctl; then 6281 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6282 elif test -x /usr/sbin/sysctl; then 6283 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6284 else 6285 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6286 fi 6287 # And add a safety zone 6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6290 ;; 6291 6292 interix*) 6293 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6294 lt_cv_sys_max_cmd_len=196608 6295 ;; 6296 6297 os2*) 6298 # The test takes a long time on OS/2. 6299 lt_cv_sys_max_cmd_len=8192 6300 ;; 6301 6302 osf*) 6303 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6304 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6305 # nice to cause kernel panics so lets avoid the loop below. 6306 # First set a reasonable default. 6307 lt_cv_sys_max_cmd_len=16384 6308 # 6309 if test -x /sbin/sysconfig; then 6310 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6311 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6312 esac 6313 fi 6314 ;; 6315 sco3.2v5*) 6316 lt_cv_sys_max_cmd_len=102400 6317 ;; 6318 sysv5* | sco5v6* | sysv4.2uw2*) 6319 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6320 if test -n "$kargmax"; then 6321 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6322 else 6323 lt_cv_sys_max_cmd_len=32768 6324 fi 6325 ;; 6326 *) 6327 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6328 if test -n "$lt_cv_sys_max_cmd_len" && \ 6329 test undefined != "$lt_cv_sys_max_cmd_len"; then 6330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6332 else 6333 # Make teststring a little bigger before we do anything with it. 6334 # a 1K string should be a reasonable start. 6335 for i in 1 2 3 4 5 6 7 8; do 6336 teststring=$teststring$teststring 6337 done 6338 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6339 # If test is not a shell built-in, we'll probably end up computing a 6340 # maximum length that is only half of the actual maximum length, but 6341 # we can't tell. 6342 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6343 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6344 test 17 != "$i" # 1/2 MB should be enough 6345 do 6346 i=`expr $i + 1` 6347 teststring=$teststring$teststring 6348 done 6349 # Only check the string length outside the loop. 6350 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6351 teststring= 6352 # Add a significant safety factor because C++ compilers can tack on 6353 # massive amounts of additional arguments before passing them to the 6354 # linker. It appears as though 1/2 is a usable value. 6355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6356 fi 6357 ;; 6358 esac 6359 6360fi 6361 6362if test -n "$lt_cv_sys_max_cmd_len"; then 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6364printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6365else 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6367printf "%s\n" "none" >&6; } 6368fi 6369max_cmd_len=$lt_cv_sys_max_cmd_len 6370 6371 6372 6373 6374 6375 6376: ${CP="cp -f"} 6377: ${MV="mv -f"} 6378: ${RM="rm -f"} 6379 6380if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6381 lt_unset=unset 6382else 6383 lt_unset=false 6384fi 6385 6386 6387 6388 6389 6390# test EBCDIC or ASCII 6391case `echo X|tr X '\101'` in 6392 A) # ASCII based system 6393 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6394 lt_SP2NL='tr \040 \012' 6395 lt_NL2SP='tr \015\012 \040\040' 6396 ;; 6397 *) # EBCDIC based system 6398 lt_SP2NL='tr \100 \n' 6399 lt_NL2SP='tr \r\n \100\100' 6400 ;; 6401esac 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6412printf %s "checking how to convert $build file names to $host format... " >&6; } 6413if test ${lt_cv_to_host_file_cmd+y} 6414then : 6415 printf %s "(cached) " >&6 6416else $as_nop 6417 case $host in 6418 *-*-mingw* ) 6419 case $build in 6420 *-*-mingw* ) # actually msys 6421 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6422 ;; 6423 *-*-cygwin* ) 6424 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6425 ;; 6426 * ) # otherwise, assume *nix 6427 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6428 ;; 6429 esac 6430 ;; 6431 *-*-cygwin* ) 6432 case $build in 6433 *-*-mingw* ) # actually msys 6434 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6435 ;; 6436 *-*-cygwin* ) 6437 lt_cv_to_host_file_cmd=func_convert_file_noop 6438 ;; 6439 * ) # otherwise, assume *nix 6440 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6441 ;; 6442 esac 6443 ;; 6444 * ) # unhandled hosts (and "normal" native builds) 6445 lt_cv_to_host_file_cmd=func_convert_file_noop 6446 ;; 6447esac 6448 6449fi 6450 6451to_host_file_cmd=$lt_cv_to_host_file_cmd 6452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6453printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6454 6455 6456 6457 6458 6459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6460printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6461if test ${lt_cv_to_tool_file_cmd+y} 6462then : 6463 printf %s "(cached) " >&6 6464else $as_nop 6465 #assume ordinary cross tools, or native build. 6466lt_cv_to_tool_file_cmd=func_convert_file_noop 6467case $host in 6468 *-*-mingw* ) 6469 case $build in 6470 *-*-mingw* ) # actually msys 6471 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6472 ;; 6473 esac 6474 ;; 6475esac 6476 6477fi 6478 6479to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6481printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6482 6483 6484 6485 6486 6487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6488printf %s "checking for $LD option to reload object files... " >&6; } 6489if test ${lt_cv_ld_reload_flag+y} 6490then : 6491 printf %s "(cached) " >&6 6492else $as_nop 6493 lt_cv_ld_reload_flag='-r' 6494fi 6495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6496printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6497reload_flag=$lt_cv_ld_reload_flag 6498case $reload_flag in 6499"" | " "*) ;; 6500*) reload_flag=" $reload_flag" ;; 6501esac 6502reload_cmds='$LD$reload_flag -o $output$reload_objs' 6503case $host_os in 6504 cygwin* | mingw* | pw32* | cegcc*) 6505 if test yes != "$GCC"; then 6506 reload_cmds=false 6507 fi 6508 ;; 6509 darwin*) 6510 if test yes = "$GCC"; then 6511 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6512 else 6513 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6514 fi 6515 ;; 6516esac 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526if test -n "$ac_tool_prefix"; then 6527 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6528set dummy ${ac_tool_prefix}objdump; ac_word=$2 6529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6530printf %s "checking for $ac_word... " >&6; } 6531if test ${ac_cv_prog_OBJDUMP+y} 6532then : 6533 printf %s "(cached) " >&6 6534else $as_nop 6535 if test -n "$OBJDUMP"; then 6536 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6537else 6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6539for as_dir in $PATH 6540do 6541 IFS=$as_save_IFS 6542 case $as_dir in #((( 6543 '') as_dir=./ ;; 6544 */) ;; 6545 *) as_dir=$as_dir/ ;; 6546 esac 6547 for ac_exec_ext in '' $ac_executable_extensions; do 6548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6549 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6551 break 2 6552 fi 6553done 6554 done 6555IFS=$as_save_IFS 6556 6557fi 6558fi 6559OBJDUMP=$ac_cv_prog_OBJDUMP 6560if test -n "$OBJDUMP"; then 6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6562printf "%s\n" "$OBJDUMP" >&6; } 6563else 6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6565printf "%s\n" "no" >&6; } 6566fi 6567 6568 6569fi 6570if test -z "$ac_cv_prog_OBJDUMP"; then 6571 ac_ct_OBJDUMP=$OBJDUMP 6572 # Extract the first word of "objdump", so it can be a program name with args. 6573set dummy objdump; ac_word=$2 6574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6575printf %s "checking for $ac_word... " >&6; } 6576if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6577then : 6578 printf %s "(cached) " >&6 6579else $as_nop 6580 if test -n "$ac_ct_OBJDUMP"; then 6581 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6582else 6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584for as_dir in $PATH 6585do 6586 IFS=$as_save_IFS 6587 case $as_dir in #((( 6588 '') as_dir=./ ;; 6589 */) ;; 6590 *) as_dir=$as_dir/ ;; 6591 esac 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6594 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598done 6599 done 6600IFS=$as_save_IFS 6601 6602fi 6603fi 6604ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6605if test -n "$ac_ct_OBJDUMP"; then 6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6607printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6608else 6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6610printf "%s\n" "no" >&6; } 6611fi 6612 6613 if test "x$ac_ct_OBJDUMP" = x; then 6614 OBJDUMP="false" 6615 else 6616 case $cross_compiling:$ac_tool_warned in 6617yes:) 6618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6619printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6620ac_tool_warned=yes ;; 6621esac 6622 OBJDUMP=$ac_ct_OBJDUMP 6623 fi 6624else 6625 OBJDUMP="$ac_cv_prog_OBJDUMP" 6626fi 6627 6628test -z "$OBJDUMP" && OBJDUMP=objdump 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6639printf %s "checking how to recognize dependent libraries... " >&6; } 6640if test ${lt_cv_deplibs_check_method+y} 6641then : 6642 printf %s "(cached) " >&6 6643else $as_nop 6644 lt_cv_file_magic_cmd='$MAGIC_CMD' 6645lt_cv_file_magic_test_file= 6646lt_cv_deplibs_check_method='unknown' 6647# Need to set the preceding variable on all platforms that support 6648# interlibrary dependencies. 6649# 'none' -- dependencies not supported. 6650# 'unknown' -- same as none, but documents that we really don't know. 6651# 'pass_all' -- all dependencies passed with no checks. 6652# 'test_compile' -- check by making test program. 6653# 'file_magic [[regex]]' -- check by looking for files in library path 6654# that responds to the $file_magic_cmd with a given extended regex. 6655# If you have 'file' or equivalent on your system and you're not sure 6656# whether 'pass_all' will *always* work, you probably want this one. 6657 6658case $host_os in 6659aix[4-9]*) 6660 lt_cv_deplibs_check_method=pass_all 6661 ;; 6662 6663beos*) 6664 lt_cv_deplibs_check_method=pass_all 6665 ;; 6666 6667bsdi[45]*) 6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6669 lt_cv_file_magic_cmd='/usr/bin/file -L' 6670 lt_cv_file_magic_test_file=/shlib/libc.so 6671 ;; 6672 6673cygwin*) 6674 # func_win32_libid is a shell function defined in ltmain.sh 6675 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6676 lt_cv_file_magic_cmd='func_win32_libid' 6677 ;; 6678 6679mingw* | pw32*) 6680 # Base MSYS/MinGW do not provide the 'file' command needed by 6681 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6682 # unless we find 'file', for example because we are cross-compiling. 6683 if ( file / ) >/dev/null 2>&1; then 6684 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6685 lt_cv_file_magic_cmd='func_win32_libid' 6686 else 6687 # Keep this pattern in sync with the one in func_win32_libid. 6688 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6689 lt_cv_file_magic_cmd='$OBJDUMP -f' 6690 fi 6691 ;; 6692 6693cegcc*) 6694 # use the weaker test based on 'objdump'. See mingw*. 6695 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6696 lt_cv_file_magic_cmd='$OBJDUMP -f' 6697 ;; 6698 6699darwin* | rhapsody*) 6700 lt_cv_deplibs_check_method=pass_all 6701 ;; 6702 6703freebsd* | dragonfly*) 6704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6705 case $host_cpu in 6706 i*86 ) 6707 # Not sure whether the presence of OpenBSD here was a mistake. 6708 # Let's accept both of them until this is cleared up. 6709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6710 lt_cv_file_magic_cmd=/usr/bin/file 6711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6712 ;; 6713 esac 6714 else 6715 lt_cv_deplibs_check_method=pass_all 6716 fi 6717 ;; 6718 6719haiku*) 6720 lt_cv_deplibs_check_method=pass_all 6721 ;; 6722 6723hpux10.20* | hpux11*) 6724 lt_cv_file_magic_cmd=/usr/bin/file 6725 case $host_cpu in 6726 ia64*) 6727 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6728 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6729 ;; 6730 hppa*64*) 6731 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]' 6732 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6733 ;; 6734 *) 6735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6736 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6737 ;; 6738 esac 6739 ;; 6740 6741interix[3-9]*) 6742 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6744 ;; 6745 6746irix5* | irix6* | nonstopux*) 6747 case $LD in 6748 *-32|*"-32 ") libmagic=32-bit;; 6749 *-n32|*"-n32 ") libmagic=N32;; 6750 *-64|*"-64 ") libmagic=64-bit;; 6751 *) libmagic=never-match;; 6752 esac 6753 lt_cv_deplibs_check_method=pass_all 6754 ;; 6755 6756# This must be glibc/ELF. 6757linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6758 lt_cv_deplibs_check_method=pass_all 6759 ;; 6760 6761netbsd*) 6762 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6764 else 6765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6766 fi 6767 ;; 6768 6769newos6*) 6770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6771 lt_cv_file_magic_cmd=/usr/bin/file 6772 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6773 ;; 6774 6775*nto* | *qnx*) 6776 lt_cv_deplibs_check_method=pass_all 6777 ;; 6778 6779openbsd* | bitrig*) 6780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6782 else 6783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6784 fi 6785 ;; 6786 6787osf3* | osf4* | osf5*) 6788 lt_cv_deplibs_check_method=pass_all 6789 ;; 6790 6791rdos*) 6792 lt_cv_deplibs_check_method=pass_all 6793 ;; 6794 6795solaris*) 6796 lt_cv_deplibs_check_method=pass_all 6797 ;; 6798 6799sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6800 lt_cv_deplibs_check_method=pass_all 6801 ;; 6802 6803sysv4 | sysv4.3*) 6804 case $host_vendor in 6805 motorola) 6806 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]' 6807 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6808 ;; 6809 ncr) 6810 lt_cv_deplibs_check_method=pass_all 6811 ;; 6812 sequent) 6813 lt_cv_file_magic_cmd='/bin/file' 6814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6815 ;; 6816 sni) 6817 lt_cv_file_magic_cmd='/bin/file' 6818 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6819 lt_cv_file_magic_test_file=/lib/libc.so 6820 ;; 6821 siemens) 6822 lt_cv_deplibs_check_method=pass_all 6823 ;; 6824 pc) 6825 lt_cv_deplibs_check_method=pass_all 6826 ;; 6827 esac 6828 ;; 6829 6830tpf*) 6831 lt_cv_deplibs_check_method=pass_all 6832 ;; 6833os2*) 6834 lt_cv_deplibs_check_method=pass_all 6835 ;; 6836esac 6837 6838fi 6839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6840printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6841 6842file_magic_glob= 6843want_nocaseglob=no 6844if test "$build" = "$host"; then 6845 case $host_os in 6846 mingw* | pw32*) 6847 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6848 want_nocaseglob=yes 6849 else 6850 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6851 fi 6852 ;; 6853 esac 6854fi 6855 6856file_magic_cmd=$lt_cv_file_magic_cmd 6857deplibs_check_method=$lt_cv_deplibs_check_method 6858test -z "$deplibs_check_method" && deplibs_check_method=unknown 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881if test -n "$ac_tool_prefix"; then 6882 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6883set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885printf %s "checking for $ac_word... " >&6; } 6886if test ${ac_cv_prog_DLLTOOL+y} 6887then : 6888 printf %s "(cached) " >&6 6889else $as_nop 6890 if test -n "$DLLTOOL"; then 6891 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6892else 6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 case $as_dir in #((( 6898 '') as_dir=./ ;; 6899 */) ;; 6900 *) as_dir=$as_dir/ ;; 6901 esac 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6904 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908done 6909 done 6910IFS=$as_save_IFS 6911 6912fi 6913fi 6914DLLTOOL=$ac_cv_prog_DLLTOOL 6915if test -n "$DLLTOOL"; then 6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6917printf "%s\n" "$DLLTOOL" >&6; } 6918else 6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920printf "%s\n" "no" >&6; } 6921fi 6922 6923 6924fi 6925if test -z "$ac_cv_prog_DLLTOOL"; then 6926 ac_ct_DLLTOOL=$DLLTOOL 6927 # Extract the first word of "dlltool", so it can be a program name with args. 6928set dummy dlltool; ac_word=$2 6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6930printf %s "checking for $ac_word... " >&6; } 6931if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6932then : 6933 printf %s "(cached) " >&6 6934else $as_nop 6935 if test -n "$ac_ct_DLLTOOL"; then 6936 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6937else 6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6939for as_dir in $PATH 6940do 6941 IFS=$as_save_IFS 6942 case $as_dir in #((( 6943 '') as_dir=./ ;; 6944 */) ;; 6945 *) as_dir=$as_dir/ ;; 6946 esac 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6949 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957fi 6958fi 6959ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6960if test -n "$ac_ct_DLLTOOL"; then 6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6962printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6963else 6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6965printf "%s\n" "no" >&6; } 6966fi 6967 6968 if test "x$ac_ct_DLLTOOL" = x; then 6969 DLLTOOL="false" 6970 else 6971 case $cross_compiling:$ac_tool_warned in 6972yes:) 6973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6974printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6975ac_tool_warned=yes ;; 6976esac 6977 DLLTOOL=$ac_ct_DLLTOOL 6978 fi 6979else 6980 DLLTOOL="$ac_cv_prog_DLLTOOL" 6981fi 6982 6983test -z "$DLLTOOL" && DLLTOOL=dlltool 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6995printf %s "checking how to associate runtime and link libraries... " >&6; } 6996if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6997then : 6998 printf %s "(cached) " >&6 6999else $as_nop 7000 lt_cv_sharedlib_from_linklib_cmd='unknown' 7001 7002case $host_os in 7003cygwin* | mingw* | pw32* | cegcc*) 7004 # two different shell functions defined in ltmain.sh; 7005 # decide which one to use based on capabilities of $DLLTOOL 7006 case `$DLLTOOL --help 2>&1` in 7007 *--identify-strict*) 7008 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7009 ;; 7010 *) 7011 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7012 ;; 7013 esac 7014 ;; 7015*) 7016 # fallback: assume linklib IS sharedlib 7017 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7018 ;; 7019esac 7020 7021fi 7022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7023printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7024sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7025test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7026 7027 7028 7029 7030 7031 7032 7033if test -n "$ac_tool_prefix"; then 7034 for ac_prog in ar 7035 do 7036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7037set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7039printf %s "checking for $ac_word... " >&6; } 7040if test ${ac_cv_prog_AR+y} 7041then : 7042 printf %s "(cached) " >&6 7043else $as_nop 7044 if test -n "$AR"; then 7045 ac_cv_prog_AR="$AR" # Let the user override the test. 7046else 7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048for as_dir in $PATH 7049do 7050 IFS=$as_save_IFS 7051 case $as_dir in #((( 7052 '') as_dir=./ ;; 7053 */) ;; 7054 *) as_dir=$as_dir/ ;; 7055 esac 7056 for ac_exec_ext in '' $ac_executable_extensions; do 7057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7058 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7060 break 2 7061 fi 7062done 7063 done 7064IFS=$as_save_IFS 7065 7066fi 7067fi 7068AR=$ac_cv_prog_AR 7069if test -n "$AR"; then 7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7071printf "%s\n" "$AR" >&6; } 7072else 7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7074printf "%s\n" "no" >&6; } 7075fi 7076 7077 7078 test -n "$AR" && break 7079 done 7080fi 7081if test -z "$AR"; then 7082 ac_ct_AR=$AR 7083 for ac_prog in ar 7084do 7085 # Extract the first word of "$ac_prog", so it can be a program name with args. 7086set dummy $ac_prog; ac_word=$2 7087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7088printf %s "checking for $ac_word... " >&6; } 7089if test ${ac_cv_prog_ac_ct_AR+y} 7090then : 7091 printf %s "(cached) " >&6 7092else $as_nop 7093 if test -n "$ac_ct_AR"; then 7094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7095else 7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7097for as_dir in $PATH 7098do 7099 IFS=$as_save_IFS 7100 case $as_dir in #((( 7101 '') as_dir=./ ;; 7102 */) ;; 7103 *) as_dir=$as_dir/ ;; 7104 esac 7105 for ac_exec_ext in '' $ac_executable_extensions; do 7106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7107 ac_cv_prog_ac_ct_AR="$ac_prog" 7108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7109 break 2 7110 fi 7111done 7112 done 7113IFS=$as_save_IFS 7114 7115fi 7116fi 7117ac_ct_AR=$ac_cv_prog_ac_ct_AR 7118if test -n "$ac_ct_AR"; then 7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7120printf "%s\n" "$ac_ct_AR" >&6; } 7121else 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7123printf "%s\n" "no" >&6; } 7124fi 7125 7126 7127 test -n "$ac_ct_AR" && break 7128done 7129 7130 if test "x$ac_ct_AR" = x; then 7131 AR="false" 7132 else 7133 case $cross_compiling:$ac_tool_warned in 7134yes:) 7135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7136printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7137ac_tool_warned=yes ;; 7138esac 7139 AR=$ac_ct_AR 7140 fi 7141fi 7142 7143: ${AR=ar} 7144: ${AR_FLAGS=cru} 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7157printf %s "checking for archiver @FILE support... " >&6; } 7158if test ${lt_cv_ar_at_file+y} 7159then : 7160 printf %s "(cached) " >&6 7161else $as_nop 7162 lt_cv_ar_at_file=no 7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7164/* end confdefs.h. */ 7165 7166int 7167main (void) 7168{ 7169 7170 ; 7171 return 0; 7172} 7173_ACEOF 7174if ac_fn_c_try_compile "$LINENO" 7175then : 7176 echo conftest.$ac_objext > conftest.lst 7177 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7179 (eval $lt_ar_try) 2>&5 7180 ac_status=$? 7181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7182 test $ac_status = 0; } 7183 if test 0 -eq "$ac_status"; then 7184 # Ensure the archiver fails upon bogus file names. 7185 rm -f conftest.$ac_objext libconftest.a 7186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7187 (eval $lt_ar_try) 2>&5 7188 ac_status=$? 7189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7190 test $ac_status = 0; } 7191 if test 0 -ne "$ac_status"; then 7192 lt_cv_ar_at_file=@ 7193 fi 7194 fi 7195 rm -f conftest.* libconftest.a 7196 7197fi 7198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7199 7200fi 7201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7202printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7203 7204if test no = "$lt_cv_ar_at_file"; then 7205 archiver_list_spec= 7206else 7207 archiver_list_spec=$lt_cv_ar_at_file 7208fi 7209 7210 7211 7212 7213 7214 7215 7216if test -n "$ac_tool_prefix"; then 7217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7218set dummy ${ac_tool_prefix}strip; ac_word=$2 7219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7220printf %s "checking for $ac_word... " >&6; } 7221if test ${ac_cv_prog_STRIP+y} 7222then : 7223 printf %s "(cached) " >&6 7224else $as_nop 7225 if test -n "$STRIP"; then 7226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7227else 7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229for as_dir in $PATH 7230do 7231 IFS=$as_save_IFS 7232 case $as_dir in #((( 7233 '') as_dir=./ ;; 7234 */) ;; 7235 *) as_dir=$as_dir/ ;; 7236 esac 7237 for ac_exec_ext in '' $ac_executable_extensions; do 7238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7239 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7241 break 2 7242 fi 7243done 7244 done 7245IFS=$as_save_IFS 7246 7247fi 7248fi 7249STRIP=$ac_cv_prog_STRIP 7250if test -n "$STRIP"; then 7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7252printf "%s\n" "$STRIP" >&6; } 7253else 7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7255printf "%s\n" "no" >&6; } 7256fi 7257 7258 7259fi 7260if test -z "$ac_cv_prog_STRIP"; then 7261 ac_ct_STRIP=$STRIP 7262 # Extract the first word of "strip", so it can be a program name with args. 7263set dummy strip; ac_word=$2 7264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7265printf %s "checking for $ac_word... " >&6; } 7266if test ${ac_cv_prog_ac_ct_STRIP+y} 7267then : 7268 printf %s "(cached) " >&6 7269else $as_nop 7270 if test -n "$ac_ct_STRIP"; then 7271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7272else 7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7274for as_dir in $PATH 7275do 7276 IFS=$as_save_IFS 7277 case $as_dir in #((( 7278 '') as_dir=./ ;; 7279 */) ;; 7280 *) as_dir=$as_dir/ ;; 7281 esac 7282 for ac_exec_ext in '' $ac_executable_extensions; do 7283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7284 ac_cv_prog_ac_ct_STRIP="strip" 7285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7286 break 2 7287 fi 7288done 7289 done 7290IFS=$as_save_IFS 7291 7292fi 7293fi 7294ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7295if test -n "$ac_ct_STRIP"; then 7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7297printf "%s\n" "$ac_ct_STRIP" >&6; } 7298else 7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7300printf "%s\n" "no" >&6; } 7301fi 7302 7303 if test "x$ac_ct_STRIP" = x; then 7304 STRIP=":" 7305 else 7306 case $cross_compiling:$ac_tool_warned in 7307yes:) 7308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7309printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7310ac_tool_warned=yes ;; 7311esac 7312 STRIP=$ac_ct_STRIP 7313 fi 7314else 7315 STRIP="$ac_cv_prog_STRIP" 7316fi 7317 7318test -z "$STRIP" && STRIP=: 7319 7320 7321 7322 7323 7324 7325if test -n "$ac_tool_prefix"; then 7326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7327set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7329printf %s "checking for $ac_word... " >&6; } 7330if test ${ac_cv_prog_RANLIB+y} 7331then : 7332 printf %s "(cached) " >&6 7333else $as_nop 7334 if test -n "$RANLIB"; then 7335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7336else 7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7338for as_dir in $PATH 7339do 7340 IFS=$as_save_IFS 7341 case $as_dir in #((( 7342 '') as_dir=./ ;; 7343 */) ;; 7344 *) as_dir=$as_dir/ ;; 7345 esac 7346 for ac_exec_ext in '' $ac_executable_extensions; do 7347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7350 break 2 7351 fi 7352done 7353 done 7354IFS=$as_save_IFS 7355 7356fi 7357fi 7358RANLIB=$ac_cv_prog_RANLIB 7359if test -n "$RANLIB"; then 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7361printf "%s\n" "$RANLIB" >&6; } 7362else 7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7364printf "%s\n" "no" >&6; } 7365fi 7366 7367 7368fi 7369if test -z "$ac_cv_prog_RANLIB"; then 7370 ac_ct_RANLIB=$RANLIB 7371 # Extract the first word of "ranlib", so it can be a program name with args. 7372set dummy ranlib; ac_word=$2 7373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7374printf %s "checking for $ac_word... " >&6; } 7375if test ${ac_cv_prog_ac_ct_RANLIB+y} 7376then : 7377 printf %s "(cached) " >&6 7378else $as_nop 7379 if test -n "$ac_ct_RANLIB"; then 7380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7381else 7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7383for as_dir in $PATH 7384do 7385 IFS=$as_save_IFS 7386 case $as_dir in #((( 7387 '') as_dir=./ ;; 7388 */) ;; 7389 *) as_dir=$as_dir/ ;; 7390 esac 7391 for ac_exec_ext in '' $ac_executable_extensions; do 7392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7393 ac_cv_prog_ac_ct_RANLIB="ranlib" 7394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7395 break 2 7396 fi 7397done 7398 done 7399IFS=$as_save_IFS 7400 7401fi 7402fi 7403ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7404if test -n "$ac_ct_RANLIB"; then 7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7406printf "%s\n" "$ac_ct_RANLIB" >&6; } 7407else 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409printf "%s\n" "no" >&6; } 7410fi 7411 7412 if test "x$ac_ct_RANLIB" = x; then 7413 RANLIB=":" 7414 else 7415 case $cross_compiling:$ac_tool_warned in 7416yes:) 7417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7418printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7419ac_tool_warned=yes ;; 7420esac 7421 RANLIB=$ac_ct_RANLIB 7422 fi 7423else 7424 RANLIB="$ac_cv_prog_RANLIB" 7425fi 7426 7427test -z "$RANLIB" && RANLIB=: 7428 7429 7430 7431 7432 7433 7434# Determine commands to create old-style static archives. 7435old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7436old_postinstall_cmds='chmod 644 $oldlib' 7437old_postuninstall_cmds= 7438 7439if test -n "$RANLIB"; then 7440 case $host_os in 7441 bitrig* | openbsd*) 7442 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7443 ;; 7444 *) 7445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7446 ;; 7447 esac 7448 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7449fi 7450 7451case $host_os in 7452 darwin*) 7453 lock_old_archive_extraction=yes ;; 7454 *) 7455 lock_old_archive_extraction=no ;; 7456esac 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496# If no C compiler was specified, use CC. 7497LTCC=${LTCC-"$CC"} 7498 7499# If no C compiler flags were specified, use CFLAGS. 7500LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7501 7502# Allow CC to be a program name with arguments. 7503compiler=$CC 7504 7505 7506# Check for command to grab the raw symbol name followed by C symbol from nm. 7507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7508printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7509if test ${lt_cv_sys_global_symbol_pipe+y} 7510then : 7511 printf %s "(cached) " >&6 7512else $as_nop 7513 7514# These are sane defaults that work on at least a few old systems. 7515# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7516 7517# Character class describing NM global symbol codes. 7518symcode='[BCDEGRST]' 7519 7520# Regexp to match symbols that can be accessed directly from C. 7521sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7522 7523# Define system-specific variables. 7524case $host_os in 7525aix*) 7526 symcode='[BCDT]' 7527 ;; 7528cygwin* | mingw* | pw32* | cegcc*) 7529 symcode='[ABCDGISTW]' 7530 ;; 7531hpux*) 7532 if test ia64 = "$host_cpu"; then 7533 symcode='[ABCDEGRST]' 7534 fi 7535 ;; 7536irix* | nonstopux*) 7537 symcode='[BCDEGRST]' 7538 ;; 7539osf*) 7540 symcode='[BCDEGQRST]' 7541 ;; 7542solaris*) 7543 symcode='[BDRT]' 7544 ;; 7545sco3.2v5*) 7546 symcode='[DT]' 7547 ;; 7548sysv4.2uw2*) 7549 symcode='[DT]' 7550 ;; 7551sysv5* | sco5v6* | unixware* | OpenUNIX*) 7552 symcode='[ABDT]' 7553 ;; 7554sysv4) 7555 symcode='[DFNSTU]' 7556 ;; 7557esac 7558 7559# If we're using GNU nm, then use its standard symbol codes. 7560case `$NM -V 2>&1` in 7561*GNU* | *'with BFD'*) 7562 symcode='[ABCDGIRSTW]' ;; 7563esac 7564 7565if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7566 # Gets list of data symbols to import. 7567 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7568 # Adjust the below global symbol transforms to fixup imported variables. 7569 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7570 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7571 lt_c_name_lib_hook="\ 7572 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7573 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7574else 7575 # Disable hooks by default. 7576 lt_cv_sys_global_symbol_to_import= 7577 lt_cdecl_hook= 7578 lt_c_name_hook= 7579 lt_c_name_lib_hook= 7580fi 7581 7582# Transform an extracted symbol line into a proper C declaration. 7583# Some systems (esp. on ia64) link data and code symbols differently, 7584# so use this general approach. 7585lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7586$lt_cdecl_hook\ 7587" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7588" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7589 7590# Transform an extracted symbol line into symbol name and symbol address 7591lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7592$lt_c_name_hook\ 7593" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7594" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7595 7596# Transform an extracted symbol line into symbol name with lib prefix and 7597# symbol address. 7598lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7599$lt_c_name_lib_hook\ 7600" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7601" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7602" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7603 7604# Handle CRLF in mingw tool chain 7605opt_cr= 7606case $build_os in 7607mingw*) 7608 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7609 ;; 7610esac 7611 7612# Try without a prefix underscore, then with it. 7613for ac_symprfx in "" "_"; do 7614 7615 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7616 symxfrm="\\1 $ac_symprfx\\2 \\2" 7617 7618 # Write the raw and C identifiers. 7619 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7620 # Fake it for dumpbin and say T for any non-static function, 7621 # D for any global variable and I for any imported variable. 7622 # Also find C++ and __fastcall symbols from MSVC++, 7623 # which start with @ or ?. 7624 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7625" {last_section=section; section=\$ 3};"\ 7626" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7627" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7628" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7629" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7630" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7631" \$ 0!~/External *\|/{next};"\ 7632" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7633" {if(hide[section]) next};"\ 7634" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7635" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7636" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7637" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7638" ' prfx=^$ac_symprfx" 7639 else 7640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7641 fi 7642 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7643 7644 # Check to see that the pipe works correctly. 7645 pipe_works=no 7646 7647 rm -f conftest* 7648 cat > conftest.$ac_ext <<_LT_EOF 7649#ifdef __cplusplus 7650extern "C" { 7651#endif 7652char nm_test_var; 7653void nm_test_func(void); 7654void nm_test_func(void){} 7655#ifdef __cplusplus 7656} 7657#endif 7658int main(){nm_test_var='a';nm_test_func();return(0);} 7659_LT_EOF 7660 7661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7662 (eval $ac_compile) 2>&5 7663 ac_status=$? 7664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7665 test $ac_status = 0; }; then 7666 # Now try to grab the symbols. 7667 nlist=conftest.nm 7668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7669 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7670 ac_status=$? 7671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7672 test $ac_status = 0; } && test -s "$nlist"; then 7673 # Try sorting and uniquifying the output. 7674 if sort "$nlist" | uniq > "$nlist"T; then 7675 mv -f "$nlist"T "$nlist" 7676 else 7677 rm -f "$nlist"T 7678 fi 7679 7680 # Make sure that we snagged all the symbols we need. 7681 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7682 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7683 cat <<_LT_EOF > conftest.$ac_ext 7684/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7685#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7686/* DATA imports from DLLs on WIN32 can't be const, because runtime 7687 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7688# define LT_DLSYM_CONST 7689#elif defined __osf__ 7690/* This system does not cope well with relocations in const data. */ 7691# define LT_DLSYM_CONST 7692#else 7693# define LT_DLSYM_CONST const 7694#endif 7695 7696#ifdef __cplusplus 7697extern "C" { 7698#endif 7699 7700_LT_EOF 7701 # Now generate the symbol file. 7702 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7703 7704 cat <<_LT_EOF >> conftest.$ac_ext 7705 7706/* The mapping between symbol names and symbols. */ 7707LT_DLSYM_CONST struct { 7708 const char *name; 7709 void *address; 7710} 7711lt__PROGRAM__LTX_preloaded_symbols[] = 7712{ 7713 { "@PROGRAM@", (void *) 0 }, 7714_LT_EOF 7715 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7716 cat <<\_LT_EOF >> conftest.$ac_ext 7717 {0, (void *) 0} 7718}; 7719 7720/* This works around a problem in FreeBSD linker */ 7721#ifdef FREEBSD_WORKAROUND 7722static const void *lt_preloaded_setup() { 7723 return lt__PROGRAM__LTX_preloaded_symbols; 7724} 7725#endif 7726 7727#ifdef __cplusplus 7728} 7729#endif 7730_LT_EOF 7731 # Now try linking the two files. 7732 mv conftest.$ac_objext conftstm.$ac_objext 7733 lt_globsym_save_LIBS=$LIBS 7734 lt_globsym_save_CFLAGS=$CFLAGS 7735 LIBS=conftstm.$ac_objext 7736 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7738 (eval $ac_link) 2>&5 7739 ac_status=$? 7740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7741 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7742 pipe_works=yes 7743 fi 7744 LIBS=$lt_globsym_save_LIBS 7745 CFLAGS=$lt_globsym_save_CFLAGS 7746 else 7747 echo "cannot find nm_test_func in $nlist" >&5 7748 fi 7749 else 7750 echo "cannot find nm_test_var in $nlist" >&5 7751 fi 7752 else 7753 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7754 fi 7755 else 7756 echo "$progname: failed program was:" >&5 7757 cat conftest.$ac_ext >&5 7758 fi 7759 rm -rf conftest* conftst* 7760 7761 # Do not use the global_symbol_pipe unless it works. 7762 if test yes = "$pipe_works"; then 7763 break 7764 else 7765 lt_cv_sys_global_symbol_pipe= 7766 fi 7767done 7768 7769fi 7770 7771if test -z "$lt_cv_sys_global_symbol_pipe"; then 7772 lt_cv_sys_global_symbol_to_cdecl= 7773fi 7774if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7776printf "%s\n" "failed" >&6; } 7777else 7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7779printf "%s\n" "ok" >&6; } 7780fi 7781 7782# Response file support. 7783if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7784 nm_file_list_spec='@' 7785elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7786 nm_file_list_spec='@' 7787fi 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7826printf %s "checking for sysroot... " >&6; } 7827 7828# Check whether --with-sysroot was given. 7829if test ${with_sysroot+y} 7830then : 7831 withval=$with_sysroot; 7832else $as_nop 7833 with_sysroot=no 7834fi 7835 7836 7837lt_sysroot= 7838case $with_sysroot in #( 7839 yes) 7840 if test yes = "$GCC"; then 7841 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7842 fi 7843 ;; #( 7844 /*) 7845 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7846 ;; #( 7847 no|'') 7848 ;; #( 7849 *) 7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7851printf "%s\n" "$with_sysroot" >&6; } 7852 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7853 ;; 7854esac 7855 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7857printf "%s\n" "${lt_sysroot:-no}" >&6; } 7858 7859 7860 7861 7862 7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7864printf %s "checking for a working dd... " >&6; } 7865if test ${ac_cv_path_lt_DD+y} 7866then : 7867 printf %s "(cached) " >&6 7868else $as_nop 7869 printf 0123456789abcdef0123456789abcdef >conftest.i 7870cat conftest.i conftest.i >conftest2.i 7871: ${lt_DD:=$DD} 7872if test -z "$lt_DD"; then 7873 ac_path_lt_DD_found=false 7874 # Loop through the user's path and test for each of PROGNAME-LIST 7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7876for as_dir in $PATH 7877do 7878 IFS=$as_save_IFS 7879 case $as_dir in #((( 7880 '') as_dir=./ ;; 7881 */) ;; 7882 *) as_dir=$as_dir/ ;; 7883 esac 7884 for ac_prog in dd 7885 do 7886 for ac_exec_ext in '' $ac_executable_extensions; do 7887 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7888 as_fn_executable_p "$ac_path_lt_DD" || continue 7889if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7890 cmp -s conftest.i conftest.out \ 7891 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7892fi 7893 $ac_path_lt_DD_found && break 3 7894 done 7895 done 7896 done 7897IFS=$as_save_IFS 7898 if test -z "$ac_cv_path_lt_DD"; then 7899 : 7900 fi 7901else 7902 ac_cv_path_lt_DD=$lt_DD 7903fi 7904 7905rm -f conftest.i conftest2.i conftest.out 7906fi 7907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7908printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7909 7910 7911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7912printf %s "checking how to truncate binary pipes... " >&6; } 7913if test ${lt_cv_truncate_bin+y} 7914then : 7915 printf %s "(cached) " >&6 7916else $as_nop 7917 printf 0123456789abcdef0123456789abcdef >conftest.i 7918cat conftest.i conftest.i >conftest2.i 7919lt_cv_truncate_bin= 7920if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7921 cmp -s conftest.i conftest.out \ 7922 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7923fi 7924rm -f conftest.i conftest2.i conftest.out 7925test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7926fi 7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7928printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7929 7930 7931 7932 7933 7934 7935 7936# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7937func_cc_basename () 7938{ 7939 for cc_temp in $*""; do 7940 case $cc_temp in 7941 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7942 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7943 \-*) ;; 7944 *) break;; 7945 esac 7946 done 7947 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7948} 7949 7950# Check whether --enable-libtool-lock was given. 7951if test ${enable_libtool_lock+y} 7952then : 7953 enableval=$enable_libtool_lock; 7954fi 7955 7956test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7957 7958# Some flags need to be propagated to the compiler or linker for good 7959# libtool support. 7960case $host in 7961ia64-*-hpux*) 7962 # Find out what ABI is being produced by ac_compile, and set mode 7963 # options accordingly. 7964 echo 'int i;' > conftest.$ac_ext 7965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7966 (eval $ac_compile) 2>&5 7967 ac_status=$? 7968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7969 test $ac_status = 0; }; then 7970 case `/usr/bin/file conftest.$ac_objext` in 7971 *ELF-32*) 7972 HPUX_IA64_MODE=32 7973 ;; 7974 *ELF-64*) 7975 HPUX_IA64_MODE=64 7976 ;; 7977 esac 7978 fi 7979 rm -rf conftest* 7980 ;; 7981*-*-irix6*) 7982 # Find out what ABI is being produced by ac_compile, and set linker 7983 # options accordingly. 7984 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7986 (eval $ac_compile) 2>&5 7987 ac_status=$? 7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7989 test $ac_status = 0; }; then 7990 if test yes = "$lt_cv_prog_gnu_ld"; then 7991 case `/usr/bin/file conftest.$ac_objext` in 7992 *32-bit*) 7993 LD="${LD-ld} -melf32bsmip" 7994 ;; 7995 *N32*) 7996 LD="${LD-ld} -melf32bmipn32" 7997 ;; 7998 *64-bit*) 7999 LD="${LD-ld} -melf64bmip" 8000 ;; 8001 esac 8002 else 8003 case `/usr/bin/file conftest.$ac_objext` in 8004 *32-bit*) 8005 LD="${LD-ld} -32" 8006 ;; 8007 *N32*) 8008 LD="${LD-ld} -n32" 8009 ;; 8010 *64-bit*) 8011 LD="${LD-ld} -64" 8012 ;; 8013 esac 8014 fi 8015 fi 8016 rm -rf conftest* 8017 ;; 8018 8019mips64*-*linux*) 8020 # Find out what ABI is being produced by ac_compile, and set linker 8021 # options accordingly. 8022 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8024 (eval $ac_compile) 2>&5 8025 ac_status=$? 8026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8027 test $ac_status = 0; }; then 8028 emul=elf 8029 case `/usr/bin/file conftest.$ac_objext` in 8030 *32-bit*) 8031 emul="${emul}32" 8032 ;; 8033 *64-bit*) 8034 emul="${emul}64" 8035 ;; 8036 esac 8037 case `/usr/bin/file conftest.$ac_objext` in 8038 *MSB*) 8039 emul="${emul}btsmip" 8040 ;; 8041 *LSB*) 8042 emul="${emul}ltsmip" 8043 ;; 8044 esac 8045 case `/usr/bin/file conftest.$ac_objext` in 8046 *N32*) 8047 emul="${emul}n32" 8048 ;; 8049 esac 8050 LD="${LD-ld} -m $emul" 8051 fi 8052 rm -rf conftest* 8053 ;; 8054 8055x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8056s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8057 # Find out what ABI is being produced by ac_compile, and set linker 8058 # options accordingly. Note that the listed cases only cover the 8059 # situations where additional linker options are needed (such as when 8060 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8061 # vice versa); the common cases where no linker options are needed do 8062 # not appear in the list. 8063 echo 'int i;' > conftest.$ac_ext 8064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8065 (eval $ac_compile) 2>&5 8066 ac_status=$? 8067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8068 test $ac_status = 0; }; then 8069 case `/usr/bin/file conftest.o` in 8070 *32-bit*) 8071 case $host in 8072 x86_64-*kfreebsd*-gnu) 8073 LD="${LD-ld} -m elf_i386_fbsd" 8074 ;; 8075 x86_64-*linux*) 8076 case `/usr/bin/file conftest.o` in 8077 *x86-64*) 8078 LD="${LD-ld} -m elf32_x86_64" 8079 ;; 8080 *) 8081 LD="${LD-ld} -m elf_i386" 8082 ;; 8083 esac 8084 ;; 8085 powerpc64le-*linux*) 8086 LD="${LD-ld} -m elf32lppclinux" 8087 ;; 8088 powerpc64-*linux*) 8089 LD="${LD-ld} -m elf32ppclinux" 8090 ;; 8091 s390x-*linux*) 8092 LD="${LD-ld} -m elf_s390" 8093 ;; 8094 sparc64-*linux*) 8095 LD="${LD-ld} -m elf32_sparc" 8096 ;; 8097 esac 8098 ;; 8099 *64-bit*) 8100 case $host in 8101 x86_64-*kfreebsd*-gnu) 8102 LD="${LD-ld} -m elf_x86_64_fbsd" 8103 ;; 8104 x86_64-*linux*) 8105 LD="${LD-ld} -m elf_x86_64" 8106 ;; 8107 powerpcle-*linux*) 8108 LD="${LD-ld} -m elf64lppc" 8109 ;; 8110 powerpc-*linux*) 8111 LD="${LD-ld} -m elf64ppc" 8112 ;; 8113 s390*-*linux*|s390*-*tpf*) 8114 LD="${LD-ld} -m elf64_s390" 8115 ;; 8116 sparc*-*linux*) 8117 LD="${LD-ld} -m elf64_sparc" 8118 ;; 8119 esac 8120 ;; 8121 esac 8122 fi 8123 rm -rf conftest* 8124 ;; 8125 8126*-*-sco3.2v5*) 8127 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8128 SAVE_CFLAGS=$CFLAGS 8129 CFLAGS="$CFLAGS -belf" 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8131printf %s "checking whether the C compiler needs -belf... " >&6; } 8132if test ${lt_cv_cc_needs_belf+y} 8133then : 8134 printf %s "(cached) " >&6 8135else $as_nop 8136 ac_ext=c 8137ac_cpp='$CPP $CPPFLAGS' 8138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8140ac_compiler_gnu=$ac_cv_c_compiler_gnu 8141 8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8143/* end confdefs.h. */ 8144 8145int 8146main (void) 8147{ 8148 8149 ; 8150 return 0; 8151} 8152_ACEOF 8153if ac_fn_c_try_link "$LINENO" 8154then : 8155 lt_cv_cc_needs_belf=yes 8156else $as_nop 8157 lt_cv_cc_needs_belf=no 8158fi 8159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8160 conftest$ac_exeext conftest.$ac_ext 8161 ac_ext=c 8162ac_cpp='$CPP $CPPFLAGS' 8163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8165ac_compiler_gnu=$ac_cv_c_compiler_gnu 8166 8167fi 8168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8169printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8170 if test yes != "$lt_cv_cc_needs_belf"; then 8171 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8172 CFLAGS=$SAVE_CFLAGS 8173 fi 8174 ;; 8175*-*solaris*) 8176 # Find out what ABI is being produced by ac_compile, and set linker 8177 # options accordingly. 8178 echo 'int i;' > conftest.$ac_ext 8179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8180 (eval $ac_compile) 2>&5 8181 ac_status=$? 8182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8183 test $ac_status = 0; }; then 8184 case `/usr/bin/file conftest.o` in 8185 *64-bit*) 8186 case $lt_cv_prog_gnu_ld in 8187 yes*) 8188 case $host in 8189 i?86-*-solaris*|x86_64-*-solaris*) 8190 LD="${LD-ld} -m elf_x86_64" 8191 ;; 8192 sparc*-*-solaris*) 8193 LD="${LD-ld} -m elf64_sparc" 8194 ;; 8195 esac 8196 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8197 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8198 LD=${LD-ld}_sol2 8199 fi 8200 ;; 8201 *) 8202 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8203 LD="${LD-ld} -64" 8204 fi 8205 ;; 8206 esac 8207 ;; 8208 esac 8209 fi 8210 rm -rf conftest* 8211 ;; 8212esac 8213 8214need_locks=$enable_libtool_lock 8215 8216if test -n "$ac_tool_prefix"; then 8217 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8218set dummy ${ac_tool_prefix}mt; ac_word=$2 8219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8220printf %s "checking for $ac_word... " >&6; } 8221if test ${ac_cv_prog_MANIFEST_TOOL+y} 8222then : 8223 printf %s "(cached) " >&6 8224else $as_nop 8225 if test -n "$MANIFEST_TOOL"; then 8226 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8227else 8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8229for as_dir in $PATH 8230do 8231 IFS=$as_save_IFS 8232 case $as_dir in #((( 8233 '') as_dir=./ ;; 8234 */) ;; 8235 *) as_dir=$as_dir/ ;; 8236 esac 8237 for ac_exec_ext in '' $ac_executable_extensions; do 8238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8239 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8241 break 2 8242 fi 8243done 8244 done 8245IFS=$as_save_IFS 8246 8247fi 8248fi 8249MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8250if test -n "$MANIFEST_TOOL"; then 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8252printf "%s\n" "$MANIFEST_TOOL" >&6; } 8253else 8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8255printf "%s\n" "no" >&6; } 8256fi 8257 8258 8259fi 8260if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8261 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8262 # Extract the first word of "mt", so it can be a program name with args. 8263set dummy mt; ac_word=$2 8264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8265printf %s "checking for $ac_word... " >&6; } 8266if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8267then : 8268 printf %s "(cached) " >&6 8269else $as_nop 8270 if test -n "$ac_ct_MANIFEST_TOOL"; then 8271 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8272else 8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8274for as_dir in $PATH 8275do 8276 IFS=$as_save_IFS 8277 case $as_dir in #((( 8278 '') as_dir=./ ;; 8279 */) ;; 8280 *) as_dir=$as_dir/ ;; 8281 esac 8282 for ac_exec_ext in '' $ac_executable_extensions; do 8283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8284 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8286 break 2 8287 fi 8288done 8289 done 8290IFS=$as_save_IFS 8291 8292fi 8293fi 8294ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8295if test -n "$ac_ct_MANIFEST_TOOL"; then 8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8297printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8298else 8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8300printf "%s\n" "no" >&6; } 8301fi 8302 8303 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8304 MANIFEST_TOOL=":" 8305 else 8306 case $cross_compiling:$ac_tool_warned in 8307yes:) 8308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8309printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8310ac_tool_warned=yes ;; 8311esac 8312 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8313 fi 8314else 8315 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8316fi 8317 8318test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8320printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8321if test ${lt_cv_path_mainfest_tool+y} 8322then : 8323 printf %s "(cached) " >&6 8324else $as_nop 8325 lt_cv_path_mainfest_tool=no 8326 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8327 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8328 cat conftest.err >&5 8329 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8330 lt_cv_path_mainfest_tool=yes 8331 fi 8332 rm -f conftest* 8333fi 8334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8335printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8336if test yes != "$lt_cv_path_mainfest_tool"; then 8337 MANIFEST_TOOL=: 8338fi 8339 8340 8341 8342 8343 8344 8345 case $host_os in 8346 rhapsody* | darwin*) 8347 if test -n "$ac_tool_prefix"; then 8348 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8349set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8351printf %s "checking for $ac_word... " >&6; } 8352if test ${ac_cv_prog_DSYMUTIL+y} 8353then : 8354 printf %s "(cached) " >&6 8355else $as_nop 8356 if test -n "$DSYMUTIL"; then 8357 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8358else 8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8360for as_dir in $PATH 8361do 8362 IFS=$as_save_IFS 8363 case $as_dir in #((( 8364 '') as_dir=./ ;; 8365 */) ;; 8366 *) as_dir=$as_dir/ ;; 8367 esac 8368 for ac_exec_ext in '' $ac_executable_extensions; do 8369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8370 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8372 break 2 8373 fi 8374done 8375 done 8376IFS=$as_save_IFS 8377 8378fi 8379fi 8380DSYMUTIL=$ac_cv_prog_DSYMUTIL 8381if test -n "$DSYMUTIL"; then 8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8383printf "%s\n" "$DSYMUTIL" >&6; } 8384else 8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8386printf "%s\n" "no" >&6; } 8387fi 8388 8389 8390fi 8391if test -z "$ac_cv_prog_DSYMUTIL"; then 8392 ac_ct_DSYMUTIL=$DSYMUTIL 8393 # Extract the first word of "dsymutil", so it can be a program name with args. 8394set dummy dsymutil; ac_word=$2 8395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8396printf %s "checking for $ac_word... " >&6; } 8397if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8398then : 8399 printf %s "(cached) " >&6 8400else $as_nop 8401 if test -n "$ac_ct_DSYMUTIL"; then 8402 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8403else 8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8405for as_dir in $PATH 8406do 8407 IFS=$as_save_IFS 8408 case $as_dir in #((( 8409 '') as_dir=./ ;; 8410 */) ;; 8411 *) as_dir=$as_dir/ ;; 8412 esac 8413 for ac_exec_ext in '' $ac_executable_extensions; do 8414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8415 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8417 break 2 8418 fi 8419done 8420 done 8421IFS=$as_save_IFS 8422 8423fi 8424fi 8425ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8426if test -n "$ac_ct_DSYMUTIL"; then 8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8428printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8429else 8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8431printf "%s\n" "no" >&6; } 8432fi 8433 8434 if test "x$ac_ct_DSYMUTIL" = x; then 8435 DSYMUTIL=":" 8436 else 8437 case $cross_compiling:$ac_tool_warned in 8438yes:) 8439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8440printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8441ac_tool_warned=yes ;; 8442esac 8443 DSYMUTIL=$ac_ct_DSYMUTIL 8444 fi 8445else 8446 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8447fi 8448 8449 if test -n "$ac_tool_prefix"; then 8450 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8451set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8453printf %s "checking for $ac_word... " >&6; } 8454if test ${ac_cv_prog_NMEDIT+y} 8455then : 8456 printf %s "(cached) " >&6 8457else $as_nop 8458 if test -n "$NMEDIT"; then 8459 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8460else 8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8462for as_dir in $PATH 8463do 8464 IFS=$as_save_IFS 8465 case $as_dir in #((( 8466 '') as_dir=./ ;; 8467 */) ;; 8468 *) as_dir=$as_dir/ ;; 8469 esac 8470 for ac_exec_ext in '' $ac_executable_extensions; do 8471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8472 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8474 break 2 8475 fi 8476done 8477 done 8478IFS=$as_save_IFS 8479 8480fi 8481fi 8482NMEDIT=$ac_cv_prog_NMEDIT 8483if test -n "$NMEDIT"; then 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8485printf "%s\n" "$NMEDIT" >&6; } 8486else 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8488printf "%s\n" "no" >&6; } 8489fi 8490 8491 8492fi 8493if test -z "$ac_cv_prog_NMEDIT"; then 8494 ac_ct_NMEDIT=$NMEDIT 8495 # Extract the first word of "nmedit", so it can be a program name with args. 8496set dummy nmedit; ac_word=$2 8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8498printf %s "checking for $ac_word... " >&6; } 8499if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8500then : 8501 printf %s "(cached) " >&6 8502else $as_nop 8503 if test -n "$ac_ct_NMEDIT"; then 8504 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8505else 8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8507for as_dir in $PATH 8508do 8509 IFS=$as_save_IFS 8510 case $as_dir in #((( 8511 '') as_dir=./ ;; 8512 */) ;; 8513 *) as_dir=$as_dir/ ;; 8514 esac 8515 for ac_exec_ext in '' $ac_executable_extensions; do 8516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8517 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8519 break 2 8520 fi 8521done 8522 done 8523IFS=$as_save_IFS 8524 8525fi 8526fi 8527ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8528if test -n "$ac_ct_NMEDIT"; then 8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8530printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8531else 8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8533printf "%s\n" "no" >&6; } 8534fi 8535 8536 if test "x$ac_ct_NMEDIT" = x; then 8537 NMEDIT=":" 8538 else 8539 case $cross_compiling:$ac_tool_warned in 8540yes:) 8541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8542printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8543ac_tool_warned=yes ;; 8544esac 8545 NMEDIT=$ac_ct_NMEDIT 8546 fi 8547else 8548 NMEDIT="$ac_cv_prog_NMEDIT" 8549fi 8550 8551 if test -n "$ac_tool_prefix"; then 8552 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8553set dummy ${ac_tool_prefix}lipo; ac_word=$2 8554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8555printf %s "checking for $ac_word... " >&6; } 8556if test ${ac_cv_prog_LIPO+y} 8557then : 8558 printf %s "(cached) " >&6 8559else $as_nop 8560 if test -n "$LIPO"; then 8561 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8562else 8563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8564for as_dir in $PATH 8565do 8566 IFS=$as_save_IFS 8567 case $as_dir in #((( 8568 '') as_dir=./ ;; 8569 */) ;; 8570 *) as_dir=$as_dir/ ;; 8571 esac 8572 for ac_exec_ext in '' $ac_executable_extensions; do 8573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8574 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8576 break 2 8577 fi 8578done 8579 done 8580IFS=$as_save_IFS 8581 8582fi 8583fi 8584LIPO=$ac_cv_prog_LIPO 8585if test -n "$LIPO"; then 8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8587printf "%s\n" "$LIPO" >&6; } 8588else 8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8590printf "%s\n" "no" >&6; } 8591fi 8592 8593 8594fi 8595if test -z "$ac_cv_prog_LIPO"; then 8596 ac_ct_LIPO=$LIPO 8597 # Extract the first word of "lipo", so it can be a program name with args. 8598set dummy lipo; ac_word=$2 8599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8600printf %s "checking for $ac_word... " >&6; } 8601if test ${ac_cv_prog_ac_ct_LIPO+y} 8602then : 8603 printf %s "(cached) " >&6 8604else $as_nop 8605 if test -n "$ac_ct_LIPO"; then 8606 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8607else 8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8609for as_dir in $PATH 8610do 8611 IFS=$as_save_IFS 8612 case $as_dir in #((( 8613 '') as_dir=./ ;; 8614 */) ;; 8615 *) as_dir=$as_dir/ ;; 8616 esac 8617 for ac_exec_ext in '' $ac_executable_extensions; do 8618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8619 ac_cv_prog_ac_ct_LIPO="lipo" 8620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8621 break 2 8622 fi 8623done 8624 done 8625IFS=$as_save_IFS 8626 8627fi 8628fi 8629ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8630if test -n "$ac_ct_LIPO"; then 8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8632printf "%s\n" "$ac_ct_LIPO" >&6; } 8633else 8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8635printf "%s\n" "no" >&6; } 8636fi 8637 8638 if test "x$ac_ct_LIPO" = x; then 8639 LIPO=":" 8640 else 8641 case $cross_compiling:$ac_tool_warned in 8642yes:) 8643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8644printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8645ac_tool_warned=yes ;; 8646esac 8647 LIPO=$ac_ct_LIPO 8648 fi 8649else 8650 LIPO="$ac_cv_prog_LIPO" 8651fi 8652 8653 if test -n "$ac_tool_prefix"; then 8654 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8655set dummy ${ac_tool_prefix}otool; ac_word=$2 8656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8657printf %s "checking for $ac_word... " >&6; } 8658if test ${ac_cv_prog_OTOOL+y} 8659then : 8660 printf %s "(cached) " >&6 8661else $as_nop 8662 if test -n "$OTOOL"; then 8663 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8664else 8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8666for as_dir in $PATH 8667do 8668 IFS=$as_save_IFS 8669 case $as_dir in #((( 8670 '') as_dir=./ ;; 8671 */) ;; 8672 *) as_dir=$as_dir/ ;; 8673 esac 8674 for ac_exec_ext in '' $ac_executable_extensions; do 8675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8676 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8678 break 2 8679 fi 8680done 8681 done 8682IFS=$as_save_IFS 8683 8684fi 8685fi 8686OTOOL=$ac_cv_prog_OTOOL 8687if test -n "$OTOOL"; then 8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8689printf "%s\n" "$OTOOL" >&6; } 8690else 8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8692printf "%s\n" "no" >&6; } 8693fi 8694 8695 8696fi 8697if test -z "$ac_cv_prog_OTOOL"; then 8698 ac_ct_OTOOL=$OTOOL 8699 # Extract the first word of "otool", so it can be a program name with args. 8700set dummy otool; ac_word=$2 8701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8702printf %s "checking for $ac_word... " >&6; } 8703if test ${ac_cv_prog_ac_ct_OTOOL+y} 8704then : 8705 printf %s "(cached) " >&6 8706else $as_nop 8707 if test -n "$ac_ct_OTOOL"; then 8708 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8709else 8710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8711for as_dir in $PATH 8712do 8713 IFS=$as_save_IFS 8714 case $as_dir in #((( 8715 '') as_dir=./ ;; 8716 */) ;; 8717 *) as_dir=$as_dir/ ;; 8718 esac 8719 for ac_exec_ext in '' $ac_executable_extensions; do 8720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8721 ac_cv_prog_ac_ct_OTOOL="otool" 8722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8723 break 2 8724 fi 8725done 8726 done 8727IFS=$as_save_IFS 8728 8729fi 8730fi 8731ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8732if test -n "$ac_ct_OTOOL"; then 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8734printf "%s\n" "$ac_ct_OTOOL" >&6; } 8735else 8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8737printf "%s\n" "no" >&6; } 8738fi 8739 8740 if test "x$ac_ct_OTOOL" = x; then 8741 OTOOL=":" 8742 else 8743 case $cross_compiling:$ac_tool_warned in 8744yes:) 8745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8746printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8747ac_tool_warned=yes ;; 8748esac 8749 OTOOL=$ac_ct_OTOOL 8750 fi 8751else 8752 OTOOL="$ac_cv_prog_OTOOL" 8753fi 8754 8755 if test -n "$ac_tool_prefix"; then 8756 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8757set dummy ${ac_tool_prefix}otool64; ac_word=$2 8758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8759printf %s "checking for $ac_word... " >&6; } 8760if test ${ac_cv_prog_OTOOL64+y} 8761then : 8762 printf %s "(cached) " >&6 8763else $as_nop 8764 if test -n "$OTOOL64"; then 8765 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8766else 8767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8768for as_dir in $PATH 8769do 8770 IFS=$as_save_IFS 8771 case $as_dir in #((( 8772 '') as_dir=./ ;; 8773 */) ;; 8774 *) as_dir=$as_dir/ ;; 8775 esac 8776 for ac_exec_ext in '' $ac_executable_extensions; do 8777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8780 break 2 8781 fi 8782done 8783 done 8784IFS=$as_save_IFS 8785 8786fi 8787fi 8788OTOOL64=$ac_cv_prog_OTOOL64 8789if test -n "$OTOOL64"; then 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8791printf "%s\n" "$OTOOL64" >&6; } 8792else 8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8794printf "%s\n" "no" >&6; } 8795fi 8796 8797 8798fi 8799if test -z "$ac_cv_prog_OTOOL64"; then 8800 ac_ct_OTOOL64=$OTOOL64 8801 # Extract the first word of "otool64", so it can be a program name with args. 8802set dummy otool64; ac_word=$2 8803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8804printf %s "checking for $ac_word... " >&6; } 8805if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8806then : 8807 printf %s "(cached) " >&6 8808else $as_nop 8809 if test -n "$ac_ct_OTOOL64"; then 8810 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8811else 8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8813for as_dir in $PATH 8814do 8815 IFS=$as_save_IFS 8816 case $as_dir in #((( 8817 '') as_dir=./ ;; 8818 */) ;; 8819 *) as_dir=$as_dir/ ;; 8820 esac 8821 for ac_exec_ext in '' $ac_executable_extensions; do 8822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8823 ac_cv_prog_ac_ct_OTOOL64="otool64" 8824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8825 break 2 8826 fi 8827done 8828 done 8829IFS=$as_save_IFS 8830 8831fi 8832fi 8833ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8834if test -n "$ac_ct_OTOOL64"; then 8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8836printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8837else 8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8839printf "%s\n" "no" >&6; } 8840fi 8841 8842 if test "x$ac_ct_OTOOL64" = x; then 8843 OTOOL64=":" 8844 else 8845 case $cross_compiling:$ac_tool_warned in 8846yes:) 8847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8849ac_tool_warned=yes ;; 8850esac 8851 OTOOL64=$ac_ct_OTOOL64 8852 fi 8853else 8854 OTOOL64="$ac_cv_prog_OTOOL64" 8855fi 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8884printf %s "checking for -single_module linker flag... " >&6; } 8885if test ${lt_cv_apple_cc_single_mod+y} 8886then : 8887 printf %s "(cached) " >&6 8888else $as_nop 8889 lt_cv_apple_cc_single_mod=no 8890 if test -z "$LT_MULTI_MODULE"; then 8891 # By default we will add the -single_module flag. You can override 8892 # by either setting the environment variable LT_MULTI_MODULE 8893 # non-empty at configure time, or by adding -multi_module to the 8894 # link flags. 8895 rm -rf libconftest.dylib* 8896 echo "int foo(void){return 1;}" > conftest.c 8897 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8898-dynamiclib -Wl,-single_module conftest.c" >&5 8899 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8900 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8901 _lt_result=$? 8902 # If there is a non-empty error log, and "single_module" 8903 # appears in it, assume the flag caused a linker warning 8904 if test -s conftest.err && $GREP single_module conftest.err; then 8905 cat conftest.err >&5 8906 # Otherwise, if the output was created with a 0 exit code from 8907 # the compiler, it worked. 8908 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8909 lt_cv_apple_cc_single_mod=yes 8910 else 8911 cat conftest.err >&5 8912 fi 8913 rm -rf libconftest.dylib* 8914 rm -f conftest.* 8915 fi 8916fi 8917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8918printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8919 8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8921printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8922if test ${lt_cv_ld_exported_symbols_list+y} 8923then : 8924 printf %s "(cached) " >&6 8925else $as_nop 8926 lt_cv_ld_exported_symbols_list=no 8927 save_LDFLAGS=$LDFLAGS 8928 echo "_main" > conftest.sym 8929 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8931/* end confdefs.h. */ 8932 8933int 8934main (void) 8935{ 8936 8937 ; 8938 return 0; 8939} 8940_ACEOF 8941if ac_fn_c_try_link "$LINENO" 8942then : 8943 lt_cv_ld_exported_symbols_list=yes 8944else $as_nop 8945 lt_cv_ld_exported_symbols_list=no 8946fi 8947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8948 conftest$ac_exeext conftest.$ac_ext 8949 LDFLAGS=$save_LDFLAGS 8950 8951fi 8952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8953printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8954 8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8956printf %s "checking for -force_load linker flag... " >&6; } 8957if test ${lt_cv_ld_force_load+y} 8958then : 8959 printf %s "(cached) " >&6 8960else $as_nop 8961 lt_cv_ld_force_load=no 8962 cat > conftest.c << _LT_EOF 8963int forced_loaded() { return 2;} 8964_LT_EOF 8965 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8966 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8967 echo "$AR cru libconftest.a conftest.o" >&5 8968 $AR cru libconftest.a conftest.o 2>&5 8969 echo "$RANLIB libconftest.a" >&5 8970 $RANLIB libconftest.a 2>&5 8971 cat > conftest.c << _LT_EOF 8972int main() { return 0;} 8973_LT_EOF 8974 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8975 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8976 _lt_result=$? 8977 if test -s conftest.err && $GREP force_load conftest.err; then 8978 cat conftest.err >&5 8979 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8980 lt_cv_ld_force_load=yes 8981 else 8982 cat conftest.err >&5 8983 fi 8984 rm -f conftest.err libconftest.a conftest conftest.c 8985 rm -rf conftest.dSYM 8986 8987fi 8988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8989printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8990 case $host_os in 8991 rhapsody* | darwin1.[012]) 8992 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8993 darwin1.*) 8994 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8995 darwin*) # darwin 5.x on 8996 # if running on 10.5 or later, the deployment target defaults 8997 # to the OS version, if on x86, and 10.4, the deployment 8998 # target defaults to 10.4. Don't you love it? 8999 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9000 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9001 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9002 10.[012][,.]*) 9003 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9004 10.*) 9005 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9006 esac 9007 ;; 9008 esac 9009 if test yes = "$lt_cv_apple_cc_single_mod"; then 9010 _lt_dar_single_mod='$single_module' 9011 fi 9012 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9013 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9014 else 9015 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9016 fi 9017 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9018 _lt_dsymutil='~$DSYMUTIL $lib || :' 9019 else 9020 _lt_dsymutil= 9021 fi 9022 ;; 9023 esac 9024 9025# func_munge_path_list VARIABLE PATH 9026# ----------------------------------- 9027# VARIABLE is name of variable containing _space_ separated list of 9028# directories to be munged by the contents of PATH, which is string 9029# having a format: 9030# "DIR[:DIR]:" 9031# string "DIR[ DIR]" will be prepended to VARIABLE 9032# ":DIR[:DIR]" 9033# string "DIR[ DIR]" will be appended to VARIABLE 9034# "DIRP[:DIRP]::[DIRA:]DIRA" 9035# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9036# "DIRA[ DIRA]" will be appended to VARIABLE 9037# "DIR[:DIR]" 9038# VARIABLE will be replaced by "DIR[ DIR]" 9039func_munge_path_list () 9040{ 9041 case x$2 in 9042 x) 9043 ;; 9044 *:) 9045 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9046 ;; 9047 x:*) 9048 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9049 ;; 9050 *::*) 9051 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9052 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9053 ;; 9054 *) 9055 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9056 ;; 9057 esac 9058} 9059 9060ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9061" 9062if test "x$ac_cv_header_dlfcn_h" = xyes 9063then : 9064 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9065 9066fi 9067 9068 9069 9070 9071 9072# Set options 9073# Check whether --enable-static was given. 9074if test ${enable_static+y} 9075then : 9076 enableval=$enable_static; p=${PACKAGE-default} 9077 case $enableval in 9078 yes) enable_static=yes ;; 9079 no) enable_static=no ;; 9080 *) 9081 enable_static=no 9082 # Look at the argument we got. We use all the common list separators. 9083 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9084 for pkg in $enableval; do 9085 IFS=$lt_save_ifs 9086 if test "X$pkg" = "X$p"; then 9087 enable_static=yes 9088 fi 9089 done 9090 IFS=$lt_save_ifs 9091 ;; 9092 esac 9093else $as_nop 9094 enable_static=no 9095fi 9096 9097 9098 9099 9100 9101 9102 9103 9104# Check whether --with-pic was given. 9105if test ${with_pic+y} 9106then : 9107 withval=$with_pic; lt_p=${PACKAGE-default} 9108 case $withval in 9109 yes|no) pic_mode=$withval ;; 9110 *) 9111 pic_mode=default 9112 # Look at the argument we got. We use all the common list separators. 9113 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9114 for lt_pkg in $withval; do 9115 IFS=$lt_save_ifs 9116 if test "X$lt_pkg" = "X$lt_p"; then 9117 pic_mode=yes 9118 fi 9119 done 9120 IFS=$lt_save_ifs 9121 ;; 9122 esac 9123else $as_nop 9124 pic_mode=yes 9125fi 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 enable_dlopen=no 9136 9137 9138 enable_win32_dll=no 9139 9140 9141 # Check whether --enable-shared was given. 9142if test ${enable_shared+y} 9143then : 9144 enableval=$enable_shared; p=${PACKAGE-default} 9145 case $enableval in 9146 yes) enable_shared=yes ;; 9147 no) enable_shared=no ;; 9148 *) 9149 enable_shared=no 9150 # Look at the argument we got. We use all the common list separators. 9151 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9152 for pkg in $enableval; do 9153 IFS=$lt_save_ifs 9154 if test "X$pkg" = "X$p"; then 9155 enable_shared=yes 9156 fi 9157 done 9158 IFS=$lt_save_ifs 9159 ;; 9160 esac 9161else $as_nop 9162 enable_shared=yes 9163fi 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 # Check whether --enable-fast-install was given. 9176if test ${enable_fast_install+y} 9177then : 9178 enableval=$enable_fast_install; p=${PACKAGE-default} 9179 case $enableval in 9180 yes) enable_fast_install=yes ;; 9181 no) enable_fast_install=no ;; 9182 *) 9183 enable_fast_install=no 9184 # Look at the argument we got. We use all the common list separators. 9185 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9186 for pkg in $enableval; do 9187 IFS=$lt_save_ifs 9188 if test "X$pkg" = "X$p"; then 9189 enable_fast_install=yes 9190 fi 9191 done 9192 IFS=$lt_save_ifs 9193 ;; 9194 esac 9195else $as_nop 9196 enable_fast_install=yes 9197fi 9198 9199 9200 9201 9202 9203 9204 9205 9206 shared_archive_member_spec= 9207case $host,$enable_shared in 9208power*-*-aix[5-9]*,yes) 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9210printf %s "checking which variant of shared library versioning to provide... " >&6; } 9211 9212# Check whether --with-aix-soname was given. 9213if test ${with_aix_soname+y} 9214then : 9215 withval=$with_aix_soname; case $withval in 9216 aix|svr4|both) 9217 ;; 9218 *) 9219 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9220 ;; 9221 esac 9222 lt_cv_with_aix_soname=$with_aix_soname 9223else $as_nop 9224 if test ${lt_cv_with_aix_soname+y} 9225then : 9226 printf %s "(cached) " >&6 9227else $as_nop 9228 lt_cv_with_aix_soname=aix 9229fi 9230 9231 with_aix_soname=$lt_cv_with_aix_soname 9232fi 9233 9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9235printf "%s\n" "$with_aix_soname" >&6; } 9236 if test aix != "$with_aix_soname"; then 9237 # For the AIX way of multilib, we name the shared archive member 9238 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9239 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9240 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9241 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9242 if test 64 = "${OBJECT_MODE-32}"; then 9243 shared_archive_member_spec=shr_64 9244 else 9245 shared_archive_member_spec=shr 9246 fi 9247 fi 9248 ;; 9249*) 9250 with_aix_soname=aix 9251 ;; 9252esac 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263# This can be used to rebuild libtool when needed 9264LIBTOOL_DEPS=$ltmain 9265 9266# Always use our own libtool. 9267LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298test -z "$LN_S" && LN_S="ln -s" 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313if test -n "${ZSH_VERSION+set}"; then 9314 setopt NO_GLOB_SUBST 9315fi 9316 9317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9318printf %s "checking for objdir... " >&6; } 9319if test ${lt_cv_objdir+y} 9320then : 9321 printf %s "(cached) " >&6 9322else $as_nop 9323 rm -f .libs 2>/dev/null 9324mkdir .libs 2>/dev/null 9325if test -d .libs; then 9326 lt_cv_objdir=.libs 9327else 9328 # MS-DOS does not allow filenames that begin with a dot. 9329 lt_cv_objdir=_libs 9330fi 9331rmdir .libs 2>/dev/null 9332fi 9333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9334printf "%s\n" "$lt_cv_objdir" >&6; } 9335objdir=$lt_cv_objdir 9336 9337 9338 9339 9340 9341printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9342 9343 9344 9345 9346case $host_os in 9347aix3*) 9348 # AIX sometimes has problems with the GCC collect2 program. For some 9349 # reason, if we set the COLLECT_NAMES environment variable, the problems 9350 # vanish in a puff of smoke. 9351 if test set != "${COLLECT_NAMES+set}"; then 9352 COLLECT_NAMES= 9353 export COLLECT_NAMES 9354 fi 9355 ;; 9356esac 9357 9358# Global variables: 9359ofile=libtool 9360can_build_shared=yes 9361 9362# All known linkers require a '.a' archive for static linking (except MSVC, 9363# which needs '.lib'). 9364libext=a 9365 9366with_gnu_ld=$lt_cv_prog_gnu_ld 9367 9368old_CC=$CC 9369old_CFLAGS=$CFLAGS 9370 9371# Set sane defaults for various variables 9372test -z "$CC" && CC=cc 9373test -z "$LTCC" && LTCC=$CC 9374test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9375test -z "$LD" && LD=ld 9376test -z "$ac_objext" && ac_objext=o 9377 9378func_cc_basename $compiler 9379cc_basename=$func_cc_basename_result 9380 9381 9382# Only perform the check for file, if the check method requires it 9383test -z "$MAGIC_CMD" && MAGIC_CMD=file 9384case $deplibs_check_method in 9385file_magic*) 9386 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9388printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9389if test ${lt_cv_path_MAGIC_CMD+y} 9390then : 9391 printf %s "(cached) " >&6 9392else $as_nop 9393 case $MAGIC_CMD in 9394[\\/*] | ?:[\\/]*) 9395 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9396 ;; 9397*) 9398 lt_save_MAGIC_CMD=$MAGIC_CMD 9399 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9400 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9401 for ac_dir in $ac_dummy; do 9402 IFS=$lt_save_ifs 9403 test -z "$ac_dir" && ac_dir=. 9404 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9405 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9406 if test -n "$file_magic_test_file"; then 9407 case $deplibs_check_method in 9408 "file_magic "*) 9409 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9410 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9411 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9412 $EGREP "$file_magic_regex" > /dev/null; then 9413 : 9414 else 9415 cat <<_LT_EOF 1>&2 9416 9417*** Warning: the command libtool uses to detect shared libraries, 9418*** $file_magic_cmd, produces output that libtool cannot recognize. 9419*** The result is that libtool may fail to recognize shared libraries 9420*** as such. This will affect the creation of libtool libraries that 9421*** depend on shared libraries, but programs linked with such libtool 9422*** libraries will work regardless of this problem. Nevertheless, you 9423*** may want to report the problem to your system manager and/or to 9424*** bug-libtool@gnu.org 9425 9426_LT_EOF 9427 fi ;; 9428 esac 9429 fi 9430 break 9431 fi 9432 done 9433 IFS=$lt_save_ifs 9434 MAGIC_CMD=$lt_save_MAGIC_CMD 9435 ;; 9436esac 9437fi 9438 9439MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9440if test -n "$MAGIC_CMD"; then 9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9442printf "%s\n" "$MAGIC_CMD" >&6; } 9443else 9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9445printf "%s\n" "no" >&6; } 9446fi 9447 9448 9449 9450 9451 9452if test -z "$lt_cv_path_MAGIC_CMD"; then 9453 if test -n "$ac_tool_prefix"; then 9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9455printf %s "checking for file... " >&6; } 9456if test ${lt_cv_path_MAGIC_CMD+y} 9457then : 9458 printf %s "(cached) " >&6 9459else $as_nop 9460 case $MAGIC_CMD in 9461[\\/*] | ?:[\\/]*) 9462 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9463 ;; 9464*) 9465 lt_save_MAGIC_CMD=$MAGIC_CMD 9466 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9468 for ac_dir in $ac_dummy; do 9469 IFS=$lt_save_ifs 9470 test -z "$ac_dir" && ac_dir=. 9471 if test -f "$ac_dir/file"; then 9472 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9473 if test -n "$file_magic_test_file"; then 9474 case $deplibs_check_method in 9475 "file_magic "*) 9476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9477 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9479 $EGREP "$file_magic_regex" > /dev/null; then 9480 : 9481 else 9482 cat <<_LT_EOF 1>&2 9483 9484*** Warning: the command libtool uses to detect shared libraries, 9485*** $file_magic_cmd, produces output that libtool cannot recognize. 9486*** The result is that libtool may fail to recognize shared libraries 9487*** as such. This will affect the creation of libtool libraries that 9488*** depend on shared libraries, but programs linked with such libtool 9489*** libraries will work regardless of this problem. Nevertheless, you 9490*** may want to report the problem to your system manager and/or to 9491*** bug-libtool@gnu.org 9492 9493_LT_EOF 9494 fi ;; 9495 esac 9496 fi 9497 break 9498 fi 9499 done 9500 IFS=$lt_save_ifs 9501 MAGIC_CMD=$lt_save_MAGIC_CMD 9502 ;; 9503esac 9504fi 9505 9506MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9507if test -n "$MAGIC_CMD"; then 9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9509printf "%s\n" "$MAGIC_CMD" >&6; } 9510else 9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9512printf "%s\n" "no" >&6; } 9513fi 9514 9515 9516 else 9517 MAGIC_CMD=: 9518 fi 9519fi 9520 9521 fi 9522 ;; 9523esac 9524 9525# Use C for the default configuration in the libtool script 9526 9527lt_save_CC=$CC 9528ac_ext=c 9529ac_cpp='$CPP $CPPFLAGS' 9530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9532ac_compiler_gnu=$ac_cv_c_compiler_gnu 9533 9534 9535# Source file extension for C test sources. 9536ac_ext=c 9537 9538# Object file extension for compiled C test sources. 9539objext=o 9540objext=$objext 9541 9542# Code to be used in simple compile tests 9543lt_simple_compile_test_code="int some_variable = 0;" 9544 9545# Code to be used in simple link tests 9546lt_simple_link_test_code='int main(){return(0);}' 9547 9548 9549 9550 9551 9552 9553 9554# If no C compiler was specified, use CC. 9555LTCC=${LTCC-"$CC"} 9556 9557# If no C compiler flags were specified, use CFLAGS. 9558LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9559 9560# Allow CC to be a program name with arguments. 9561compiler=$CC 9562 9563# Save the default compiler, since it gets overwritten when the other 9564# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9565compiler_DEFAULT=$CC 9566 9567# save warnings/boilerplate of simple test code 9568ac_outfile=conftest.$ac_objext 9569echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9570eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9571_lt_compiler_boilerplate=`cat conftest.err` 9572$RM conftest* 9573 9574ac_outfile=conftest.$ac_objext 9575echo "$lt_simple_link_test_code" >conftest.$ac_ext 9576eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9577_lt_linker_boilerplate=`cat conftest.err` 9578$RM -r conftest* 9579 9580 9581## CAVEAT EMPTOR: 9582## There is no encapsulation within the following macros, do not change 9583## the running order or otherwise move them around unless you know exactly 9584## what you are doing... 9585if test -n "$compiler"; then 9586 9587lt_prog_compiler_no_builtin_flag= 9588 9589if test yes = "$GCC"; then 9590 case $cc_basename in 9591 nvcc*) 9592 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9593 *) 9594 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9595 esac 9596 9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9598printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9599if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9600then : 9601 printf %s "(cached) " >&6 9602else $as_nop 9603 lt_cv_prog_compiler_rtti_exceptions=no 9604 ac_outfile=conftest.$ac_objext 9605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9606 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9607 # Insert the option either (1) after the last *FLAGS variable, or 9608 # (2) before a word containing "conftest.", or (3) at the end. 9609 # Note that $ac_compile itself does not contain backslashes and begins 9610 # with a dollar sign (not a hyphen), so the echo should work correctly. 9611 # The option is referenced via a variable to avoid confusing sed. 9612 lt_compile=`echo "$ac_compile" | $SED \ 9613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9615 -e 's:$: $lt_compiler_flag:'` 9616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9617 (eval "$lt_compile" 2>conftest.err) 9618 ac_status=$? 9619 cat conftest.err >&5 9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9621 if (exit $ac_status) && test -s "$ac_outfile"; then 9622 # The compiler can only warn and ignore the option if not recognized 9623 # So say no if there are warnings other than the usual output. 9624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9626 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9627 lt_cv_prog_compiler_rtti_exceptions=yes 9628 fi 9629 fi 9630 $RM conftest* 9631 9632fi 9633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9634printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9635 9636if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9637 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9638else 9639 : 9640fi 9641 9642fi 9643 9644 9645 9646 9647 9648 9649 lt_prog_compiler_wl= 9650lt_prog_compiler_pic= 9651lt_prog_compiler_static= 9652 9653 9654 if test yes = "$GCC"; then 9655 lt_prog_compiler_wl='-Wl,' 9656 lt_prog_compiler_static='-static' 9657 9658 case $host_os in 9659 aix*) 9660 # All AIX code is PIC. 9661 if test ia64 = "$host_cpu"; then 9662 # AIX 5 now supports IA64 processor 9663 lt_prog_compiler_static='-Bstatic' 9664 fi 9665 lt_prog_compiler_pic='-fPIC' 9666 ;; 9667 9668 amigaos*) 9669 case $host_cpu in 9670 powerpc) 9671 # see comment about AmigaOS4 .so support 9672 lt_prog_compiler_pic='-fPIC' 9673 ;; 9674 m68k) 9675 # FIXME: we need at least 68020 code to build shared libraries, but 9676 # adding the '-m68020' flag to GCC prevents building anything better, 9677 # like '-m68040'. 9678 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9679 ;; 9680 esac 9681 ;; 9682 9683 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9684 # PIC is the default for these OSes. 9685 ;; 9686 9687 mingw* | cygwin* | pw32* | os2* | cegcc*) 9688 # This hack is so that the source file can tell whether it is being 9689 # built for inclusion in a dll (and should export symbols for example). 9690 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9691 # (--disable-auto-import) libraries 9692 lt_prog_compiler_pic='-DDLL_EXPORT' 9693 case $host_os in 9694 os2*) 9695 lt_prog_compiler_static='$wl-static' 9696 ;; 9697 esac 9698 ;; 9699 9700 darwin* | rhapsody*) 9701 # PIC is the default on this platform 9702 # Common symbols not allowed in MH_DYLIB files 9703 lt_prog_compiler_pic='-fno-common' 9704 ;; 9705 9706 haiku*) 9707 # PIC is the default for Haiku. 9708 # The "-static" flag exists, but is broken. 9709 lt_prog_compiler_static= 9710 ;; 9711 9712 hpux*) 9713 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9714 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9715 # sets the default TLS model and affects inlining. 9716 case $host_cpu in 9717 hppa*64*) 9718 # +Z the default 9719 ;; 9720 *) 9721 lt_prog_compiler_pic='-fPIC' 9722 ;; 9723 esac 9724 ;; 9725 9726 interix[3-9]*) 9727 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9728 # Instead, we relocate shared libraries at runtime. 9729 ;; 9730 9731 msdosdjgpp*) 9732 # Just because we use GCC doesn't mean we suddenly get shared libraries 9733 # on systems that don't support them. 9734 lt_prog_compiler_can_build_shared=no 9735 enable_shared=no 9736 ;; 9737 9738 *nto* | *qnx*) 9739 # QNX uses GNU C++, but need to define -shared option too, otherwise 9740 # it will coredump. 9741 lt_prog_compiler_pic='-fPIC -shared' 9742 ;; 9743 9744 sysv4*MP*) 9745 if test -d /usr/nec; then 9746 lt_prog_compiler_pic=-Kconform_pic 9747 fi 9748 ;; 9749 9750 *) 9751 lt_prog_compiler_pic='-fPIC' 9752 ;; 9753 esac 9754 9755 case $cc_basename in 9756 nvcc*) # Cuda Compiler Driver 2.2 9757 lt_prog_compiler_wl='-Xlinker ' 9758 if test -n "$lt_prog_compiler_pic"; then 9759 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9760 fi 9761 ;; 9762 esac 9763 else 9764 # PORTME Check for flag to pass linker flags through the system compiler. 9765 case $host_os in 9766 aix*) 9767 lt_prog_compiler_wl='-Wl,' 9768 if test ia64 = "$host_cpu"; then 9769 # AIX 5 now supports IA64 processor 9770 lt_prog_compiler_static='-Bstatic' 9771 else 9772 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9773 fi 9774 ;; 9775 9776 darwin* | rhapsody*) 9777 # PIC is the default on this platform 9778 # Common symbols not allowed in MH_DYLIB files 9779 lt_prog_compiler_pic='-fno-common' 9780 case $cc_basename in 9781 nagfor*) 9782 # NAG Fortran compiler 9783 lt_prog_compiler_wl='-Wl,-Wl,,' 9784 lt_prog_compiler_pic='-PIC' 9785 lt_prog_compiler_static='-Bstatic' 9786 ;; 9787 esac 9788 ;; 9789 9790 mingw* | cygwin* | pw32* | os2* | cegcc*) 9791 # This hack is so that the source file can tell whether it is being 9792 # built for inclusion in a dll (and should export symbols for example). 9793 lt_prog_compiler_pic='-DDLL_EXPORT' 9794 case $host_os in 9795 os2*) 9796 lt_prog_compiler_static='$wl-static' 9797 ;; 9798 esac 9799 ;; 9800 9801 hpux9* | hpux10* | hpux11*) 9802 lt_prog_compiler_wl='-Wl,' 9803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9804 # not for PA HP-UX. 9805 case $host_cpu in 9806 hppa*64*|ia64*) 9807 # +Z the default 9808 ;; 9809 *) 9810 lt_prog_compiler_pic='+Z' 9811 ;; 9812 esac 9813 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9814 lt_prog_compiler_static='$wl-a ${wl}archive' 9815 ;; 9816 9817 irix5* | irix6* | nonstopux*) 9818 lt_prog_compiler_wl='-Wl,' 9819 # PIC (with -KPIC) is the default. 9820 lt_prog_compiler_static='-non_shared' 9821 ;; 9822 9823 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9824 case $cc_basename in 9825 # old Intel for x86_64, which still supported -KPIC. 9826 ecc*) 9827 lt_prog_compiler_wl='-Wl,' 9828 lt_prog_compiler_pic='-KPIC' 9829 lt_prog_compiler_static='-static' 9830 ;; 9831 # icc used to be incompatible with GCC. 9832 # ICC 10 doesn't accept -KPIC any more. 9833 icc* | ifort*) 9834 lt_prog_compiler_wl='-Wl,' 9835 lt_prog_compiler_pic='-fPIC' 9836 lt_prog_compiler_static='-static' 9837 ;; 9838 # Lahey Fortran 8.1. 9839 lf95*) 9840 lt_prog_compiler_wl='-Wl,' 9841 lt_prog_compiler_pic='--shared' 9842 lt_prog_compiler_static='--static' 9843 ;; 9844 nagfor*) 9845 # NAG Fortran compiler 9846 lt_prog_compiler_wl='-Wl,-Wl,,' 9847 lt_prog_compiler_pic='-PIC' 9848 lt_prog_compiler_static='-Bstatic' 9849 ;; 9850 tcc*) 9851 # Fabrice Bellard et al's Tiny C Compiler 9852 lt_prog_compiler_wl='-Wl,' 9853 lt_prog_compiler_pic='-fPIC' 9854 lt_prog_compiler_static='-static' 9855 ;; 9856 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9857 # Portland Group compilers (*not* the Pentium gcc compiler, 9858 # which looks to be a dead project) 9859 lt_prog_compiler_wl='-Wl,' 9860 lt_prog_compiler_pic='-fpic' 9861 lt_prog_compiler_static='-Bstatic' 9862 ;; 9863 ccc*) 9864 lt_prog_compiler_wl='-Wl,' 9865 # All Alpha code is PIC. 9866 lt_prog_compiler_static='-non_shared' 9867 ;; 9868 xl* | bgxl* | bgf* | mpixl*) 9869 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9870 lt_prog_compiler_wl='-Wl,' 9871 lt_prog_compiler_pic='-qpic' 9872 lt_prog_compiler_static='-qstaticlink' 9873 ;; 9874 *) 9875 case `$CC -V 2>&1 | sed 5q` in 9876 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9877 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9878 lt_prog_compiler_pic='-KPIC' 9879 lt_prog_compiler_static='-Bstatic' 9880 lt_prog_compiler_wl='' 9881 ;; 9882 *Sun\ F* | *Sun*Fortran*) 9883 lt_prog_compiler_pic='-KPIC' 9884 lt_prog_compiler_static='-Bstatic' 9885 lt_prog_compiler_wl='-Qoption ld ' 9886 ;; 9887 *Sun\ C*) 9888 # Sun C 5.9 9889 lt_prog_compiler_pic='-KPIC' 9890 lt_prog_compiler_static='-Bstatic' 9891 lt_prog_compiler_wl='-Wl,' 9892 ;; 9893 *Intel*\ [CF]*Compiler*) 9894 lt_prog_compiler_wl='-Wl,' 9895 lt_prog_compiler_pic='-fPIC' 9896 lt_prog_compiler_static='-static' 9897 ;; 9898 *Portland\ Group*) 9899 lt_prog_compiler_wl='-Wl,' 9900 lt_prog_compiler_pic='-fpic' 9901 lt_prog_compiler_static='-Bstatic' 9902 ;; 9903 esac 9904 ;; 9905 esac 9906 ;; 9907 9908 newsos6) 9909 lt_prog_compiler_pic='-KPIC' 9910 lt_prog_compiler_static='-Bstatic' 9911 ;; 9912 9913 *nto* | *qnx*) 9914 # QNX uses GNU C++, but need to define -shared option too, otherwise 9915 # it will coredump. 9916 lt_prog_compiler_pic='-fPIC -shared' 9917 ;; 9918 9919 osf3* | osf4* | osf5*) 9920 lt_prog_compiler_wl='-Wl,' 9921 # All OSF/1 code is PIC. 9922 lt_prog_compiler_static='-non_shared' 9923 ;; 9924 9925 rdos*) 9926 lt_prog_compiler_static='-non_shared' 9927 ;; 9928 9929 solaris*) 9930 lt_prog_compiler_pic='-KPIC' 9931 lt_prog_compiler_static='-Bstatic' 9932 case $cc_basename in 9933 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9934 lt_prog_compiler_wl='-Qoption ld ';; 9935 *) 9936 lt_prog_compiler_wl='-Wl,';; 9937 esac 9938 ;; 9939 9940 sunos4*) 9941 lt_prog_compiler_wl='-Qoption ld ' 9942 lt_prog_compiler_pic='-PIC' 9943 lt_prog_compiler_static='-Bstatic' 9944 ;; 9945 9946 sysv4 | sysv4.2uw2* | sysv4.3*) 9947 lt_prog_compiler_wl='-Wl,' 9948 lt_prog_compiler_pic='-KPIC' 9949 lt_prog_compiler_static='-Bstatic' 9950 ;; 9951 9952 sysv4*MP*) 9953 if test -d /usr/nec; then 9954 lt_prog_compiler_pic='-Kconform_pic' 9955 lt_prog_compiler_static='-Bstatic' 9956 fi 9957 ;; 9958 9959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9960 lt_prog_compiler_wl='-Wl,' 9961 lt_prog_compiler_pic='-KPIC' 9962 lt_prog_compiler_static='-Bstatic' 9963 ;; 9964 9965 unicos*) 9966 lt_prog_compiler_wl='-Wl,' 9967 lt_prog_compiler_can_build_shared=no 9968 ;; 9969 9970 uts4*) 9971 lt_prog_compiler_pic='-pic' 9972 lt_prog_compiler_static='-Bstatic' 9973 ;; 9974 9975 *) 9976 lt_prog_compiler_can_build_shared=no 9977 ;; 9978 esac 9979 fi 9980 9981case $host_os in 9982 # For platforms that do not support PIC, -DPIC is meaningless: 9983 *djgpp*) 9984 lt_prog_compiler_pic= 9985 ;; 9986 *) 9987 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9988 ;; 9989esac 9990 9991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9992printf %s "checking for $compiler option to produce PIC... " >&6; } 9993if test ${lt_cv_prog_compiler_pic+y} 9994then : 9995 printf %s "(cached) " >&6 9996else $as_nop 9997 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9998fi 9999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10000printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10001lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10002 10003# 10004# Check to make sure the PIC flag actually works. 10005# 10006if test -n "$lt_prog_compiler_pic"; then 10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10008printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10009if test ${lt_cv_prog_compiler_pic_works+y} 10010then : 10011 printf %s "(cached) " >&6 10012else $as_nop 10013 lt_cv_prog_compiler_pic_works=no 10014 ac_outfile=conftest.$ac_objext 10015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10016 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10017 # Insert the option either (1) after the last *FLAGS variable, or 10018 # (2) before a word containing "conftest.", or (3) at the end. 10019 # Note that $ac_compile itself does not contain backslashes and begins 10020 # with a dollar sign (not a hyphen), so the echo should work correctly. 10021 # The option is referenced via a variable to avoid confusing sed. 10022 lt_compile=`echo "$ac_compile" | $SED \ 10023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10025 -e 's:$: $lt_compiler_flag:'` 10026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10027 (eval "$lt_compile" 2>conftest.err) 10028 ac_status=$? 10029 cat conftest.err >&5 10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10031 if (exit $ac_status) && test -s "$ac_outfile"; then 10032 # The compiler can only warn and ignore the option if not recognized 10033 # So say no if there are warnings other than the usual output. 10034 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10036 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10037 lt_cv_prog_compiler_pic_works=yes 10038 fi 10039 fi 10040 $RM conftest* 10041 10042fi 10043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10044printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10045 10046if test yes = "$lt_cv_prog_compiler_pic_works"; then 10047 case $lt_prog_compiler_pic in 10048 "" | " "*) ;; 10049 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10050 esac 10051else 10052 lt_prog_compiler_pic= 10053 lt_prog_compiler_can_build_shared=no 10054fi 10055 10056fi 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068# 10069# Check to make sure the static flag actually works. 10070# 10071wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10073printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10074if test ${lt_cv_prog_compiler_static_works+y} 10075then : 10076 printf %s "(cached) " >&6 10077else $as_nop 10078 lt_cv_prog_compiler_static_works=no 10079 save_LDFLAGS=$LDFLAGS 10080 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10081 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10082 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10083 # The linker can only warn and ignore the option if not recognized 10084 # So say no if there are warnings 10085 if test -s conftest.err; then 10086 # Append any errors to the config.log. 10087 cat conftest.err 1>&5 10088 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10090 if diff conftest.exp conftest.er2 >/dev/null; then 10091 lt_cv_prog_compiler_static_works=yes 10092 fi 10093 else 10094 lt_cv_prog_compiler_static_works=yes 10095 fi 10096 fi 10097 $RM -r conftest* 10098 LDFLAGS=$save_LDFLAGS 10099 10100fi 10101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10102printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10103 10104if test yes = "$lt_cv_prog_compiler_static_works"; then 10105 : 10106else 10107 lt_prog_compiler_static= 10108fi 10109 10110 10111 10112 10113 10114 10115 10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10117printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10118if test ${lt_cv_prog_compiler_c_o+y} 10119then : 10120 printf %s "(cached) " >&6 10121else $as_nop 10122 lt_cv_prog_compiler_c_o=no 10123 $RM -r conftest 2>/dev/null 10124 mkdir conftest 10125 cd conftest 10126 mkdir out 10127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10128 10129 lt_compiler_flag="-o out/conftest2.$ac_objext" 10130 # Insert the option either (1) after the last *FLAGS variable, or 10131 # (2) before a word containing "conftest.", or (3) at the end. 10132 # Note that $ac_compile itself does not contain backslashes and begins 10133 # with a dollar sign (not a hyphen), so the echo should work correctly. 10134 lt_compile=`echo "$ac_compile" | $SED \ 10135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10137 -e 's:$: $lt_compiler_flag:'` 10138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10139 (eval "$lt_compile" 2>out/conftest.err) 10140 ac_status=$? 10141 cat out/conftest.err >&5 10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10143 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10144 then 10145 # The compiler can only warn and ignore the option if not recognized 10146 # So say no if there are warnings 10147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10150 lt_cv_prog_compiler_c_o=yes 10151 fi 10152 fi 10153 chmod u+w . 2>&5 10154 $RM conftest* 10155 # SGI C++ compiler will create directory out/ii_files/ for 10156 # template instantiation 10157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10158 $RM out/* && rmdir out 10159 cd .. 10160 $RM -r conftest 10161 $RM conftest* 10162 10163fi 10164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10165printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10166 10167 10168 10169 10170 10171 10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10173printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10174if test ${lt_cv_prog_compiler_c_o+y} 10175then : 10176 printf %s "(cached) " >&6 10177else $as_nop 10178 lt_cv_prog_compiler_c_o=no 10179 $RM -r conftest 2>/dev/null 10180 mkdir conftest 10181 cd conftest 10182 mkdir out 10183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10184 10185 lt_compiler_flag="-o out/conftest2.$ac_objext" 10186 # Insert the option either (1) after the last *FLAGS variable, or 10187 # (2) before a word containing "conftest.", or (3) at the end. 10188 # Note that $ac_compile itself does not contain backslashes and begins 10189 # with a dollar sign (not a hyphen), so the echo should work correctly. 10190 lt_compile=`echo "$ac_compile" | $SED \ 10191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10193 -e 's:$: $lt_compiler_flag:'` 10194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10195 (eval "$lt_compile" 2>out/conftest.err) 10196 ac_status=$? 10197 cat out/conftest.err >&5 10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10199 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10200 then 10201 # The compiler can only warn and ignore the option if not recognized 10202 # So say no if there are warnings 10203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10206 lt_cv_prog_compiler_c_o=yes 10207 fi 10208 fi 10209 chmod u+w . 2>&5 10210 $RM conftest* 10211 # SGI C++ compiler will create directory out/ii_files/ for 10212 # template instantiation 10213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10214 $RM out/* && rmdir out 10215 cd .. 10216 $RM -r conftest 10217 $RM conftest* 10218 10219fi 10220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10221printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10222 10223 10224 10225 10226hard_links=nottested 10227if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10228 # do not overwrite the value of need_locks provided by the user 10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10230printf %s "checking if we can lock with hard links... " >&6; } 10231 hard_links=yes 10232 $RM conftest* 10233 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10234 touch conftest.a 10235 ln conftest.a conftest.b 2>&5 || hard_links=no 10236 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10238printf "%s\n" "$hard_links" >&6; } 10239 if test no = "$hard_links"; then 10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10241printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10242 need_locks=warn 10243 fi 10244else 10245 need_locks=no 10246fi 10247 10248 10249 10250 10251 10252 10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10254printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10255 10256 runpath_var= 10257 allow_undefined_flag= 10258 always_export_symbols=no 10259 archive_cmds= 10260 archive_expsym_cmds= 10261 compiler_needs_object=no 10262 enable_shared_with_static_runtimes=no 10263 export_dynamic_flag_spec= 10264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10265 hardcode_automatic=no 10266 hardcode_direct=no 10267 hardcode_direct_absolute=no 10268 hardcode_libdir_flag_spec= 10269 hardcode_libdir_separator= 10270 hardcode_minus_L=no 10271 hardcode_shlibpath_var=unsupported 10272 inherit_rpath=no 10273 link_all_deplibs=unknown 10274 module_cmds= 10275 module_expsym_cmds= 10276 old_archive_from_new_cmds= 10277 old_archive_from_expsyms_cmds= 10278 thread_safe_flag_spec= 10279 whole_archive_flag_spec= 10280 # include_expsyms should be a list of space-separated symbols to be *always* 10281 # included in the symbol list 10282 include_expsyms= 10283 # exclude_expsyms can be an extended regexp of symbols to exclude 10284 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10285 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10286 # as well as any symbol that contains 'd'. 10287 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10288 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10289 # platforms (ab)use it in PIC code, but their linkers get confused if 10290 # the symbol is explicitly referenced. Since portable code cannot 10291 # rely on this symbol name, it's probably fine to never include it in 10292 # preloaded symbol tables. 10293 # Exclude shared library initialization/finalization symbols. 10294 extract_expsyms_cmds= 10295 10296 case $host_os in 10297 cygwin* | mingw* | pw32* | cegcc*) 10298 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10299 # When not using gcc, we currently assume that we are using 10300 # Microsoft Visual C++. 10301 if test yes != "$GCC"; then 10302 with_gnu_ld=no 10303 fi 10304 ;; 10305 interix*) 10306 # we just hope/assume this is gcc and not c89 (= MSVC++) 10307 with_gnu_ld=yes 10308 ;; 10309 openbsd* | bitrig*) 10310 with_gnu_ld=no 10311 ;; 10312 esac 10313 10314 ld_shlibs=yes 10315 10316 # On some targets, GNU ld is compatible enough with the native linker 10317 # that we're better off using the native interface for both. 10318 lt_use_gnu_ld_interface=no 10319 if test yes = "$with_gnu_ld"; then 10320 case $host_os in 10321 aix*) 10322 # The AIX port of GNU ld has always aspired to compatibility 10323 # with the native linker. However, as the warning in the GNU ld 10324 # block says, versions before 2.19.5* couldn't really create working 10325 # shared libraries, regardless of the interface used. 10326 case `$LD -v 2>&1` in 10327 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10328 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10329 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10330 *) 10331 lt_use_gnu_ld_interface=yes 10332 ;; 10333 esac 10334 ;; 10335 *) 10336 lt_use_gnu_ld_interface=yes 10337 ;; 10338 esac 10339 fi 10340 10341 if test yes = "$lt_use_gnu_ld_interface"; then 10342 # If archive_cmds runs LD, not CC, wlarc should be empty 10343 wlarc='$wl' 10344 10345 # Set some defaults for GNU ld with shared library support. These 10346 # are reset later if shared libraries are not supported. Putting them 10347 # here allows them to be overridden if necessary. 10348 runpath_var=LD_RUN_PATH 10349 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10350 export_dynamic_flag_spec='$wl--export-dynamic' 10351 # ancient GNU ld didn't support --whole-archive et. al. 10352 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10353 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10354 else 10355 whole_archive_flag_spec= 10356 fi 10357 supports_anon_versioning=no 10358 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10359 *GNU\ gold*) supports_anon_versioning=yes ;; 10360 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10361 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10362 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10363 *\ 2.11.*) ;; # other 2.11 versions 10364 *) supports_anon_versioning=yes ;; 10365 esac 10366 10367 # See if GNU ld supports shared libraries. 10368 case $host_os in 10369 aix[3-9]*) 10370 # On AIX/PPC, the GNU linker is very broken 10371 if test ia64 != "$host_cpu"; then 10372 ld_shlibs=no 10373 cat <<_LT_EOF 1>&2 10374 10375*** Warning: the GNU linker, at least up to release 2.19, is reported 10376*** to be unable to reliably create shared libraries on AIX. 10377*** Therefore, libtool is disabling shared libraries support. If you 10378*** really care for shared libraries, you may want to install binutils 10379*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10380*** You will then need to restart the configuration process. 10381 10382_LT_EOF 10383 fi 10384 ;; 10385 10386 amigaos*) 10387 case $host_cpu in 10388 powerpc) 10389 # see comment about AmigaOS4 .so support 10390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10391 archive_expsym_cmds='' 10392 ;; 10393 m68k) 10394 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)' 10395 hardcode_libdir_flag_spec='-L$libdir' 10396 hardcode_minus_L=yes 10397 ;; 10398 esac 10399 ;; 10400 10401 beos*) 10402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10403 allow_undefined_flag=unsupported 10404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10405 # support --undefined. This deserves some investigation. FIXME 10406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10407 else 10408 ld_shlibs=no 10409 fi 10410 ;; 10411 10412 cygwin* | mingw* | pw32* | cegcc*) 10413 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10414 # as there is no search path for DLLs. 10415 hardcode_libdir_flag_spec='-L$libdir' 10416 export_dynamic_flag_spec='$wl--export-all-symbols' 10417 allow_undefined_flag=unsupported 10418 always_export_symbols=no 10419 enable_shared_with_static_runtimes=yes 10420 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' 10421 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10422 10423 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10425 # If the export-symbols file already is a .def file, use it as 10426 # is; otherwise, prepend EXPORTS... 10427 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10428 cp $export_symbols $output_objdir/$soname.def; 10429 else 10430 echo EXPORTS > $output_objdir/$soname.def; 10431 cat $export_symbols >> $output_objdir/$soname.def; 10432 fi~ 10433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10434 else 10435 ld_shlibs=no 10436 fi 10437 ;; 10438 10439 haiku*) 10440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10441 link_all_deplibs=yes 10442 ;; 10443 10444 os2*) 10445 hardcode_libdir_flag_spec='-L$libdir' 10446 hardcode_minus_L=yes 10447 allow_undefined_flag=unsupported 10448 shrext_cmds=.dll 10449 archive_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 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10454 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10455 emximp -o $lib $output_objdir/$libname.def' 10456 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10457 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10458 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10459 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10460 prefix_cmds="$SED"~ 10461 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10462 prefix_cmds="$prefix_cmds -e 1d"; 10463 fi~ 10464 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10465 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10466 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10467 emximp -o $lib $output_objdir/$libname.def' 10468 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10469 enable_shared_with_static_runtimes=yes 10470 ;; 10471 10472 interix[3-9]*) 10473 hardcode_direct=no 10474 hardcode_shlibpath_var=no 10475 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10476 export_dynamic_flag_spec='$wl-E' 10477 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10478 # Instead, shared libraries are loaded at an image base (0x10000000 by 10479 # default) and relocated if they conflict, which is a slow very memory 10480 # consuming and fragmenting process. To avoid this, we pick a random, 10481 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10482 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10483 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10484 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' 10485 ;; 10486 10487 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10488 tmp_diet=no 10489 if test linux-dietlibc = "$host_os"; then 10490 case $cc_basename in 10491 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10492 esac 10493 fi 10494 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10495 && test no = "$tmp_diet" 10496 then 10497 tmp_addflag=' $pic_flag' 10498 tmp_sharedflag='-shared' 10499 case $cc_basename,$host_cpu in 10500 pgcc*) # Portland Group C compiler 10501 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' 10502 tmp_addflag=' $pic_flag' 10503 ;; 10504 pgf77* | pgf90* | pgf95* | pgfortran*) 10505 # Portland Group f77 and f90 compilers 10506 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' 10507 tmp_addflag=' $pic_flag -Mnomain' ;; 10508 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10509 tmp_addflag=' -i_dynamic' ;; 10510 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10511 tmp_addflag=' -i_dynamic -nofor_main' ;; 10512 ifc* | ifort*) # Intel Fortran compiler 10513 tmp_addflag=' -nofor_main' ;; 10514 lf95*) # Lahey Fortran 8.1 10515 whole_archive_flag_spec= 10516 tmp_sharedflag='--shared' ;; 10517 nagfor*) # NAGFOR 5.3 10518 tmp_sharedflag='-Wl,-shared' ;; 10519 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10520 tmp_sharedflag='-qmkshrobj' 10521 tmp_addflag= ;; 10522 nvcc*) # Cuda Compiler Driver 2.2 10523 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' 10524 compiler_needs_object=yes 10525 ;; 10526 esac 10527 case `$CC -V 2>&1 | sed 5q` in 10528 *Sun\ C*) # Sun C 5.9 10529 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' 10530 compiler_needs_object=yes 10531 tmp_sharedflag='-G' ;; 10532 *Sun\ F*) # Sun Fortran 8.3 10533 tmp_sharedflag='-G' ;; 10534 esac 10535 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10536 10537 if test yes = "$supports_anon_versioning"; then 10538 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10540 echo "local: *; };" >> $output_objdir/$libname.ver~ 10541 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10542 fi 10543 10544 case $cc_basename in 10545 tcc*) 10546 export_dynamic_flag_spec='-rdynamic' 10547 ;; 10548 xlf* | bgf* | bgxlf* | mpixlf*) 10549 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10550 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10551 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10552 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10553 if test yes = "$supports_anon_versioning"; then 10554 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10556 echo "local: *; };" >> $output_objdir/$libname.ver~ 10557 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10558 fi 10559 ;; 10560 esac 10561 else 10562 ld_shlibs=no 10563 fi 10564 ;; 10565 10566 netbsd*) 10567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10568 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10569 wlarc= 10570 else 10571 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10572 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10573 fi 10574 ;; 10575 10576 solaris*) 10577 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10578 ld_shlibs=no 10579 cat <<_LT_EOF 1>&2 10580 10581*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10582*** create shared libraries on Solaris systems. Therefore, libtool 10583*** is disabling shared libraries support. We urge you to upgrade GNU 10584*** binutils to release 2.9.1 or newer. Another option is to modify 10585*** your PATH or compiler configuration so that the native linker is 10586*** used, and then restart. 10587 10588_LT_EOF 10589 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10591 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10592 else 10593 ld_shlibs=no 10594 fi 10595 ;; 10596 10597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10598 case `$LD -v 2>&1` in 10599 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10600 ld_shlibs=no 10601 cat <<_LT_EOF 1>&2 10602 10603*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10604*** reliably create shared libraries on SCO systems. Therefore, libtool 10605*** is disabling shared libraries support. We urge you to upgrade GNU 10606*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10607*** your PATH or compiler configuration so that the native linker is 10608*** used, and then restart. 10609 10610_LT_EOF 10611 ;; 10612 *) 10613 # For security reasons, it is highly recommended that you always 10614 # use absolute paths for naming shared libraries, and exclude the 10615 # DT_RUNPATH tag from executables and libraries. But doing so 10616 # requires that you compile everything twice, which is a pain. 10617 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10618 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10620 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10621 else 10622 ld_shlibs=no 10623 fi 10624 ;; 10625 esac 10626 ;; 10627 10628 sunos4*) 10629 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10630 wlarc= 10631 hardcode_direct=yes 10632 hardcode_shlibpath_var=no 10633 ;; 10634 10635 *) 10636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10638 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10639 else 10640 ld_shlibs=no 10641 fi 10642 ;; 10643 esac 10644 10645 if test no = "$ld_shlibs"; then 10646 runpath_var= 10647 hardcode_libdir_flag_spec= 10648 export_dynamic_flag_spec= 10649 whole_archive_flag_spec= 10650 fi 10651 else 10652 # PORTME fill in a description of your system's linker (not GNU ld) 10653 case $host_os in 10654 aix3*) 10655 allow_undefined_flag=unsupported 10656 always_export_symbols=yes 10657 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' 10658 # Note: this linker hardcodes the directories in LIBPATH if there 10659 # are no directories specified by -L. 10660 hardcode_minus_L=yes 10661 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10662 # Neither direct hardcoding nor static linking is supported with a 10663 # broken collect2. 10664 hardcode_direct=unsupported 10665 fi 10666 ;; 10667 10668 aix[4-9]*) 10669 if test ia64 = "$host_cpu"; then 10670 # On IA64, the linker does run time linking by default, so we don't 10671 # have to do anything special. 10672 aix_use_runtimelinking=no 10673 exp_sym_flag='-Bexport' 10674 no_entry_flag= 10675 else 10676 # If we're using GNU nm, then we don't want the "-C" option. 10677 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10678 # Without the "-l" option, or with the "-B" option, AIX nm treats 10679 # weak defined symbols like other global defined symbols, whereas 10680 # GNU nm marks them as "W". 10681 # While the 'weak' keyword is ignored in the Export File, we need 10682 # it in the Import File for the 'aix-soname' feature, so we have 10683 # to replace the "-B" option with "-P" for AIX nm. 10684 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10685 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' 10686 else 10687 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' 10688 fi 10689 aix_use_runtimelinking=no 10690 10691 # Test if we are trying to use run time linking or normal 10692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10693 # have runtime linking enabled, and use it for executables. 10694 # For shared libraries, we enable/disable runtime linking 10695 # depending on the kind of the shared library created - 10696 # when "with_aix_soname,aix_use_runtimelinking" is: 10697 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10698 # "aix,yes" lib.so shared, rtl:yes, for executables 10699 # lib.a static archive 10700 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10701 # lib.a(lib.so.V) shared, rtl:no, for executables 10702 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10703 # lib.a(lib.so.V) shared, rtl:no 10704 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10705 # lib.a static archive 10706 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10707 for ld_flag in $LDFLAGS; do 10708 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10709 aix_use_runtimelinking=yes 10710 break 10711 fi 10712 done 10713 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10714 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10715 # so we don't have lib.a shared libs to link our executables. 10716 # We have to force runtime linking in this case. 10717 aix_use_runtimelinking=yes 10718 LDFLAGS="$LDFLAGS -Wl,-brtl" 10719 fi 10720 ;; 10721 esac 10722 10723 exp_sym_flag='-bexport' 10724 no_entry_flag='-bnoentry' 10725 fi 10726 10727 # When large executables or shared objects are built, AIX ld can 10728 # have problems creating the table of contents. If linking a library 10729 # or program results in "error TOC overflow" add -mminimal-toc to 10730 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10731 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10732 10733 archive_cmds='' 10734 hardcode_direct=yes 10735 hardcode_direct_absolute=yes 10736 hardcode_libdir_separator=':' 10737 link_all_deplibs=yes 10738 file_list_spec='$wl-f,' 10739 case $with_aix_soname,$aix_use_runtimelinking in 10740 aix,*) ;; # traditional, no import file 10741 svr4,* | *,yes) # use import file 10742 # The Import File defines what to hardcode. 10743 hardcode_direct=no 10744 hardcode_direct_absolute=no 10745 ;; 10746 esac 10747 10748 if test yes = "$GCC"; then 10749 case $host_os in aix4.[012]|aix4.[012].*) 10750 # We only want to do this on AIX 4.2 and lower, the check 10751 # below for broken collect2 doesn't work under 4.3+ 10752 collect2name=`$CC -print-prog-name=collect2` 10753 if test -f "$collect2name" && 10754 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10755 then 10756 # We have reworked collect2 10757 : 10758 else 10759 # We have old collect2 10760 hardcode_direct=unsupported 10761 # It fails to find uninstalled libraries when the uninstalled 10762 # path is not listed in the libpath. Setting hardcode_minus_L 10763 # to unsupported forces relinking 10764 hardcode_minus_L=yes 10765 hardcode_libdir_flag_spec='-L$libdir' 10766 hardcode_libdir_separator= 10767 fi 10768 ;; 10769 esac 10770 shared_flag='-shared' 10771 if test yes = "$aix_use_runtimelinking"; then 10772 shared_flag="$shared_flag "'$wl-G' 10773 fi 10774 # Need to ensure runtime linking is disabled for the traditional 10775 # shared library, or the linker may eventually find shared libraries 10776 # /with/ Import File - we do not want to mix them. 10777 shared_flag_aix='-shared' 10778 shared_flag_svr4='-shared $wl-G' 10779 else 10780 # not using gcc 10781 if test ia64 = "$host_cpu"; then 10782 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10783 # chokes on -Wl,-G. The following line is correct: 10784 shared_flag='-G' 10785 else 10786 if test yes = "$aix_use_runtimelinking"; then 10787 shared_flag='$wl-G' 10788 else 10789 shared_flag='$wl-bM:SRE' 10790 fi 10791 shared_flag_aix='$wl-bM:SRE' 10792 shared_flag_svr4='$wl-G' 10793 fi 10794 fi 10795 10796 export_dynamic_flag_spec='$wl-bexpall' 10797 # It seems that -bexpall does not export symbols beginning with 10798 # underscore (_), so it is better to generate a list of symbols to export. 10799 always_export_symbols=yes 10800 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10801 # Warning - without using the other runtime loading flags (-brtl), 10802 # -berok will link without error, but may produce a broken library. 10803 allow_undefined_flag='-berok' 10804 # Determine the default libpath from the value encoded in an 10805 # empty executable. 10806 if test set = "${lt_cv_aix_libpath+set}"; then 10807 aix_libpath=$lt_cv_aix_libpath 10808else 10809 if test ${lt_cv_aix_libpath_+y} 10810then : 10811 printf %s "(cached) " >&6 10812else $as_nop 10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10814/* end confdefs.h. */ 10815 10816int 10817main (void) 10818{ 10819 10820 ; 10821 return 0; 10822} 10823_ACEOF 10824if ac_fn_c_try_link "$LINENO" 10825then : 10826 10827 lt_aix_libpath_sed=' 10828 /Import File Strings/,/^$/ { 10829 /^0/ { 10830 s/^0 *\([^ ]*\) *$/\1/ 10831 p 10832 } 10833 }' 10834 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10835 # Check for a 64-bit object if we didn't find anything. 10836 if test -z "$lt_cv_aix_libpath_"; then 10837 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10838 fi 10839fi 10840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10841 conftest$ac_exeext conftest.$ac_ext 10842 if test -z "$lt_cv_aix_libpath_"; then 10843 lt_cv_aix_libpath_=/usr/lib:/lib 10844 fi 10845 10846fi 10847 10848 aix_libpath=$lt_cv_aix_libpath_ 10849fi 10850 10851 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10852 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 10853 else 10854 if test ia64 = "$host_cpu"; then 10855 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10856 allow_undefined_flag="-z nodefs" 10857 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" 10858 else 10859 # Determine the default libpath from the value encoded in an 10860 # empty executable. 10861 if test set = "${lt_cv_aix_libpath+set}"; then 10862 aix_libpath=$lt_cv_aix_libpath 10863else 10864 if test ${lt_cv_aix_libpath_+y} 10865then : 10866 printf %s "(cached) " >&6 10867else $as_nop 10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869/* end confdefs.h. */ 10870 10871int 10872main (void) 10873{ 10874 10875 ; 10876 return 0; 10877} 10878_ACEOF 10879if ac_fn_c_try_link "$LINENO" 10880then : 10881 10882 lt_aix_libpath_sed=' 10883 /Import File Strings/,/^$/ { 10884 /^0/ { 10885 s/^0 *\([^ ]*\) *$/\1/ 10886 p 10887 } 10888 }' 10889 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10890 # Check for a 64-bit object if we didn't find anything. 10891 if test -z "$lt_cv_aix_libpath_"; then 10892 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10893 fi 10894fi 10895rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10896 conftest$ac_exeext conftest.$ac_ext 10897 if test -z "$lt_cv_aix_libpath_"; then 10898 lt_cv_aix_libpath_=/usr/lib:/lib 10899 fi 10900 10901fi 10902 10903 aix_libpath=$lt_cv_aix_libpath_ 10904fi 10905 10906 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10907 # Warning - without using the other run time loading flags, 10908 # -berok will link without error, but may produce a broken library. 10909 no_undefined_flag=' $wl-bernotok' 10910 allow_undefined_flag=' $wl-berok' 10911 if test yes = "$with_gnu_ld"; then 10912 # We only use this code for GNU lds that support --whole-archive. 10913 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10914 else 10915 # Exported symbols can be pulled into shared objects from archives 10916 whole_archive_flag_spec='$convenience' 10917 fi 10918 archive_cmds_need_lc=yes 10919 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10920 # -brtl affects multiple linker settings, -berok does not and is overridden later 10921 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10922 if test svr4 != "$with_aix_soname"; then 10923 # This is similar to how AIX traditionally builds its shared libraries. 10924 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' 10925 fi 10926 if test aix != "$with_aix_soname"; then 10927 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' 10928 else 10929 # used by -dlpreopen to get the symbols 10930 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10931 fi 10932 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10933 fi 10934 fi 10935 ;; 10936 10937 amigaos*) 10938 case $host_cpu in 10939 powerpc) 10940 # see comment about AmigaOS4 .so support 10941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10942 archive_expsym_cmds='' 10943 ;; 10944 m68k) 10945 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)' 10946 hardcode_libdir_flag_spec='-L$libdir' 10947 hardcode_minus_L=yes 10948 ;; 10949 esac 10950 ;; 10951 10952 bsdi[45]*) 10953 export_dynamic_flag_spec=-rdynamic 10954 ;; 10955 10956 cygwin* | mingw* | pw32* | cegcc*) 10957 # When not using gcc, we currently assume that we are using 10958 # Microsoft Visual C++. 10959 # hardcode_libdir_flag_spec is actually meaningless, as there is 10960 # no search path for DLLs. 10961 case $cc_basename in 10962 cl*) 10963 # Native MSVC 10964 hardcode_libdir_flag_spec=' ' 10965 allow_undefined_flag=unsupported 10966 always_export_symbols=yes 10967 file_list_spec='@' 10968 # Tell ltmain to make .lib files, not .a files. 10969 libext=lib 10970 # Tell ltmain to make .dll files, not .so files. 10971 shrext_cmds=.dll 10972 # FIXME: Setting linknames here is a bad hack. 10973 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10974 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10975 cp "$export_symbols" "$output_objdir/$soname.def"; 10976 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10977 else 10978 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10979 fi~ 10980 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10981 linknames=' 10982 # The linker will not automatically build a static lib if we build a DLL. 10983 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10984 enable_shared_with_static_runtimes=yes 10985 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10987 # Don't use ranlib 10988 old_postinstall_cmds='chmod 644 $oldlib' 10989 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10990 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10991 case $lt_outputfile in 10992 *.exe|*.EXE) ;; 10993 *) 10994 lt_outputfile=$lt_outputfile.exe 10995 lt_tool_outputfile=$lt_tool_outputfile.exe 10996 ;; 10997 esac~ 10998 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10999 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11000 $RM "$lt_outputfile.manifest"; 11001 fi' 11002 ;; 11003 *) 11004 # Assume MSVC wrapper 11005 hardcode_libdir_flag_spec=' ' 11006 allow_undefined_flag=unsupported 11007 # Tell ltmain to make .lib files, not .a files. 11008 libext=lib 11009 # Tell ltmain to make .dll files, not .so files. 11010 shrext_cmds=.dll 11011 # FIXME: Setting linknames here is a bad hack. 11012 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11013 # The linker will automatically build a .lib file if we build a DLL. 11014 old_archive_from_new_cmds='true' 11015 # FIXME: Should let the user specify the lib program. 11016 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11017 enable_shared_with_static_runtimes=yes 11018 ;; 11019 esac 11020 ;; 11021 11022 darwin* | rhapsody*) 11023 11024 11025 archive_cmds_need_lc=no 11026 hardcode_direct=no 11027 hardcode_automatic=yes 11028 hardcode_shlibpath_var=unsupported 11029 if test yes = "$lt_cv_ld_force_load"; then 11030 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\"`' 11031 11032 else 11033 whole_archive_flag_spec='' 11034 fi 11035 link_all_deplibs=yes 11036 allow_undefined_flag=$_lt_dar_allow_undefined 11037 case $cc_basename in 11038 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11039 *) _lt_dar_can_shared=$GCC ;; 11040 esac 11041 if test yes = "$_lt_dar_can_shared"; then 11042 output_verbose_link_cmd=func_echo_all 11043 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11044 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11045 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" 11046 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" 11047 11048 else 11049 ld_shlibs=no 11050 fi 11051 11052 ;; 11053 11054 dgux*) 11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11056 hardcode_libdir_flag_spec='-L$libdir' 11057 hardcode_shlibpath_var=no 11058 ;; 11059 11060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11061 # support. Future versions do this automatically, but an explicit c++rt0.o 11062 # does not break anything, and helps significantly (at the cost of a little 11063 # extra space). 11064 freebsd2.2*) 11065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11066 hardcode_libdir_flag_spec='-R$libdir' 11067 hardcode_direct=yes 11068 hardcode_shlibpath_var=no 11069 ;; 11070 11071 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11072 freebsd2.*) 11073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11074 hardcode_direct=yes 11075 hardcode_minus_L=yes 11076 hardcode_shlibpath_var=no 11077 ;; 11078 11079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11080 freebsd* | dragonfly*) 11081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11082 hardcode_libdir_flag_spec='-R$libdir' 11083 hardcode_direct=yes 11084 hardcode_shlibpath_var=no 11085 ;; 11086 11087 hpux9*) 11088 if test yes = "$GCC"; then 11089 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' 11090 else 11091 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' 11092 fi 11093 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11094 hardcode_libdir_separator=: 11095 hardcode_direct=yes 11096 11097 # hardcode_minus_L: Not really in the search PATH, 11098 # but as the default location of the library. 11099 hardcode_minus_L=yes 11100 export_dynamic_flag_spec='$wl-E' 11101 ;; 11102 11103 hpux10*) 11104 if test yes,no = "$GCC,$with_gnu_ld"; then 11105 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11106 else 11107 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11108 fi 11109 if test no = "$with_gnu_ld"; then 11110 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11111 hardcode_libdir_separator=: 11112 hardcode_direct=yes 11113 hardcode_direct_absolute=yes 11114 export_dynamic_flag_spec='$wl-E' 11115 # hardcode_minus_L: Not really in the search PATH, 11116 # but as the default location of the library. 11117 hardcode_minus_L=yes 11118 fi 11119 ;; 11120 11121 hpux11*) 11122 if test yes,no = "$GCC,$with_gnu_ld"; then 11123 case $host_cpu in 11124 hppa*64*) 11125 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11126 ;; 11127 ia64*) 11128 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11129 ;; 11130 *) 11131 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11132 ;; 11133 esac 11134 else 11135 case $host_cpu in 11136 hppa*64*) 11137 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11138 ;; 11139 ia64*) 11140 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11141 ;; 11142 *) 11143 11144 # Older versions of the 11.00 compiler do not understand -b yet 11145 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11147printf %s "checking if $CC understands -b... " >&6; } 11148if test ${lt_cv_prog_compiler__b+y} 11149then : 11150 printf %s "(cached) " >&6 11151else $as_nop 11152 lt_cv_prog_compiler__b=no 11153 save_LDFLAGS=$LDFLAGS 11154 LDFLAGS="$LDFLAGS -b" 11155 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11157 # The linker can only warn and ignore the option if not recognized 11158 # So say no if there are warnings 11159 if test -s conftest.err; then 11160 # Append any errors to the config.log. 11161 cat conftest.err 1>&5 11162 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11164 if diff conftest.exp conftest.er2 >/dev/null; then 11165 lt_cv_prog_compiler__b=yes 11166 fi 11167 else 11168 lt_cv_prog_compiler__b=yes 11169 fi 11170 fi 11171 $RM -r conftest* 11172 LDFLAGS=$save_LDFLAGS 11173 11174fi 11175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11176printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11177 11178if test yes = "$lt_cv_prog_compiler__b"; then 11179 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11180else 11181 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11182fi 11183 11184 ;; 11185 esac 11186 fi 11187 if test no = "$with_gnu_ld"; then 11188 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11189 hardcode_libdir_separator=: 11190 11191 case $host_cpu in 11192 hppa*64*|ia64*) 11193 hardcode_direct=no 11194 hardcode_shlibpath_var=no 11195 ;; 11196 *) 11197 hardcode_direct=yes 11198 hardcode_direct_absolute=yes 11199 export_dynamic_flag_spec='$wl-E' 11200 11201 # hardcode_minus_L: Not really in the search PATH, 11202 # but as the default location of the library. 11203 hardcode_minus_L=yes 11204 ;; 11205 esac 11206 fi 11207 ;; 11208 11209 irix5* | irix6* | nonstopux*) 11210 if test yes = "$GCC"; then 11211 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' 11212 # Try to use the -exported_symbol ld option, if it does not 11213 # work, assume that -exports_file does not work either and 11214 # implicitly export all symbols. 11215 # This should be the same for all languages, so no per-tag cache variable. 11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11217printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11218if test ${lt_cv_irix_exported_symbol+y} 11219then : 11220 printf %s "(cached) " >&6 11221else $as_nop 11222 save_LDFLAGS=$LDFLAGS 11223 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11225/* end confdefs.h. */ 11226int foo (void) { return 0; } 11227_ACEOF 11228if ac_fn_c_try_link "$LINENO" 11229then : 11230 lt_cv_irix_exported_symbol=yes 11231else $as_nop 11232 lt_cv_irix_exported_symbol=no 11233fi 11234rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11235 conftest$ac_exeext conftest.$ac_ext 11236 LDFLAGS=$save_LDFLAGS 11237fi 11238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11239printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11240 if test yes = "$lt_cv_irix_exported_symbol"; then 11241 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' 11242 fi 11243 else 11244 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' 11245 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' 11246 fi 11247 archive_cmds_need_lc='no' 11248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11249 hardcode_libdir_separator=: 11250 inherit_rpath=yes 11251 link_all_deplibs=yes 11252 ;; 11253 11254 linux*) 11255 case $cc_basename in 11256 tcc*) 11257 # Fabrice Bellard et al's Tiny C Compiler 11258 ld_shlibs=yes 11259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11260 ;; 11261 esac 11262 ;; 11263 11264 netbsd*) 11265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11267 else 11268 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11269 fi 11270 hardcode_libdir_flag_spec='-R$libdir' 11271 hardcode_direct=yes 11272 hardcode_shlibpath_var=no 11273 ;; 11274 11275 newsos6) 11276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11277 hardcode_direct=yes 11278 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11279 hardcode_libdir_separator=: 11280 hardcode_shlibpath_var=no 11281 ;; 11282 11283 *nto* | *qnx*) 11284 ;; 11285 11286 openbsd* | bitrig*) 11287 if test -f /usr/libexec/ld.so; then 11288 hardcode_direct=yes 11289 hardcode_shlibpath_var=no 11290 hardcode_direct_absolute=yes 11291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11293 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11294 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11295 export_dynamic_flag_spec='$wl-E' 11296 else 11297 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11298 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11299 fi 11300 else 11301 ld_shlibs=no 11302 fi 11303 ;; 11304 11305 os2*) 11306 hardcode_libdir_flag_spec='-L$libdir' 11307 hardcode_minus_L=yes 11308 allow_undefined_flag=unsupported 11309 shrext_cmds=.dll 11310 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11311 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11312 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11313 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11314 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11315 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11316 emximp -o $lib $output_objdir/$libname.def' 11317 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11318 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11319 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11320 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11321 prefix_cmds="$SED"~ 11322 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11323 prefix_cmds="$prefix_cmds -e 1d"; 11324 fi~ 11325 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11326 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11327 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11328 emximp -o $lib $output_objdir/$libname.def' 11329 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11330 enable_shared_with_static_runtimes=yes 11331 ;; 11332 11333 osf3*) 11334 if test yes = "$GCC"; then 11335 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11336 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' 11337 else 11338 allow_undefined_flag=' -expect_unresolved \*' 11339 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' 11340 fi 11341 archive_cmds_need_lc='no' 11342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11343 hardcode_libdir_separator=: 11344 ;; 11345 11346 osf4* | osf5*) # as osf3* with the addition of -msym flag 11347 if test yes = "$GCC"; then 11348 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11349 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' 11350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11351 else 11352 allow_undefined_flag=' -expect_unresolved \*' 11353 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' 11354 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~ 11355 $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' 11356 11357 # Both c and cxx compiler support -rpath directly 11358 hardcode_libdir_flag_spec='-rpath $libdir' 11359 fi 11360 archive_cmds_need_lc='no' 11361 hardcode_libdir_separator=: 11362 ;; 11363 11364 solaris*) 11365 no_undefined_flag=' -z defs' 11366 if test yes = "$GCC"; then 11367 wlarc='$wl' 11368 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11370 $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' 11371 else 11372 case `$CC -V 2>&1` in 11373 *"Compilers 5.0"*) 11374 wlarc='' 11375 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11376 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11377 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11378 ;; 11379 *) 11380 wlarc='$wl' 11381 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11383 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11384 ;; 11385 esac 11386 fi 11387 hardcode_libdir_flag_spec='-R$libdir' 11388 hardcode_shlibpath_var=no 11389 case $host_os in 11390 solaris2.[0-5] | solaris2.[0-5].*) ;; 11391 *) 11392 # The compiler driver will combine and reorder linker options, 11393 # but understands '-z linker_flag'. GCC discards it without '$wl', 11394 # but is careful enough not to reorder. 11395 # Supported since Solaris 2.6 (maybe 2.5.1?) 11396 if test yes = "$GCC"; then 11397 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11398 else 11399 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11400 fi 11401 ;; 11402 esac 11403 link_all_deplibs=yes 11404 ;; 11405 11406 sunos4*) 11407 if test sequent = "$host_vendor"; then 11408 # Use $CC to link under sequent, because it throws in some extra .o 11409 # files that make .init and .fini sections work. 11410 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11411 else 11412 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11413 fi 11414 hardcode_libdir_flag_spec='-L$libdir' 11415 hardcode_direct=yes 11416 hardcode_minus_L=yes 11417 hardcode_shlibpath_var=no 11418 ;; 11419 11420 sysv4) 11421 case $host_vendor in 11422 sni) 11423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11424 hardcode_direct=yes # is this really true??? 11425 ;; 11426 siemens) 11427 ## LD is ld it makes a PLAMLIB 11428 ## CC just makes a GrossModule. 11429 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11430 reload_cmds='$CC -r -o $output$reload_objs' 11431 hardcode_direct=no 11432 ;; 11433 motorola) 11434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11435 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11436 ;; 11437 esac 11438 runpath_var='LD_RUN_PATH' 11439 hardcode_shlibpath_var=no 11440 ;; 11441 11442 sysv4.3*) 11443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11444 hardcode_shlibpath_var=no 11445 export_dynamic_flag_spec='-Bexport' 11446 ;; 11447 11448 sysv4*MP*) 11449 if test -d /usr/nec; then 11450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11451 hardcode_shlibpath_var=no 11452 runpath_var=LD_RUN_PATH 11453 hardcode_runpath_var=yes 11454 ld_shlibs=yes 11455 fi 11456 ;; 11457 11458 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11459 no_undefined_flag='$wl-z,text' 11460 archive_cmds_need_lc=no 11461 hardcode_shlibpath_var=no 11462 runpath_var='LD_RUN_PATH' 11463 11464 if test yes = "$GCC"; then 11465 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11466 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11467 else 11468 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11469 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11470 fi 11471 ;; 11472 11473 sysv5* | sco3.2v5* | sco5v6*) 11474 # Note: We CANNOT use -z defs as we might desire, because we do not 11475 # link with -lc, and that would cause any symbols used from libc to 11476 # always be unresolved, which means just about no library would 11477 # ever link correctly. If we're not using GNU ld we use -z text 11478 # though, which does catch some bad symbols but isn't as heavy-handed 11479 # as -z defs. 11480 no_undefined_flag='$wl-z,text' 11481 allow_undefined_flag='$wl-z,nodefs' 11482 archive_cmds_need_lc=no 11483 hardcode_shlibpath_var=no 11484 hardcode_libdir_flag_spec='$wl-R,$libdir' 11485 hardcode_libdir_separator=':' 11486 link_all_deplibs=yes 11487 export_dynamic_flag_spec='$wl-Bexport' 11488 runpath_var='LD_RUN_PATH' 11489 11490 if test yes = "$GCC"; then 11491 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11492 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11493 else 11494 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11495 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11496 fi 11497 ;; 11498 11499 uts4*) 11500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11501 hardcode_libdir_flag_spec='-L$libdir' 11502 hardcode_shlibpath_var=no 11503 ;; 11504 11505 *) 11506 ld_shlibs=no 11507 ;; 11508 esac 11509 11510 if test sni = "$host_vendor"; then 11511 case $host in 11512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11513 export_dynamic_flag_spec='$wl-Blargedynsym' 11514 ;; 11515 esac 11516 fi 11517 fi 11518 11519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11520printf "%s\n" "$ld_shlibs" >&6; } 11521test no = "$ld_shlibs" && can_build_shared=no 11522 11523with_gnu_ld=$with_gnu_ld 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539# 11540# Do we need to explicitly link libc? 11541# 11542case "x$archive_cmds_need_lc" in 11543x|xyes) 11544 # Assume -lc should be added 11545 archive_cmds_need_lc=yes 11546 11547 if test yes,yes = "$GCC,$enable_shared"; then 11548 case $archive_cmds in 11549 *'~'*) 11550 # FIXME: we may have to deal with multi-command sequences. 11551 ;; 11552 '$CC '*) 11553 # Test whether the compiler implicitly links with -lc since on some 11554 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11555 # to ld, don't add -lc before -lgcc. 11556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11557printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11558if test ${lt_cv_archive_cmds_need_lc+y} 11559then : 11560 printf %s "(cached) " >&6 11561else $as_nop 11562 $RM conftest* 11563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11564 11565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11566 (eval $ac_compile) 2>&5 11567 ac_status=$? 11568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11569 test $ac_status = 0; } 2>conftest.err; then 11570 soname=conftest 11571 lib=conftest 11572 libobjs=conftest.$ac_objext 11573 deplibs= 11574 wl=$lt_prog_compiler_wl 11575 pic_flag=$lt_prog_compiler_pic 11576 compiler_flags=-v 11577 linker_flags=-v 11578 verstring= 11579 output_objdir=. 11580 libname=conftest 11581 lt_save_allow_undefined_flag=$allow_undefined_flag 11582 allow_undefined_flag= 11583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11584 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11585 ac_status=$? 11586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11587 test $ac_status = 0; } 11588 then 11589 lt_cv_archive_cmds_need_lc=no 11590 else 11591 lt_cv_archive_cmds_need_lc=yes 11592 fi 11593 allow_undefined_flag=$lt_save_allow_undefined_flag 11594 else 11595 cat conftest.err 1>&5 11596 fi 11597 $RM conftest* 11598 11599fi 11600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11601printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11602 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11603 ;; 11604 esac 11605 fi 11606 ;; 11607esac 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11761printf %s "checking dynamic linker characteristics... " >&6; } 11762 11763if test yes = "$GCC"; then 11764 case $host_os in 11765 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11766 *) lt_awk_arg='/^libraries:/' ;; 11767 esac 11768 case $host_os in 11769 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11770 *) lt_sed_strip_eq='s|=/|/|g' ;; 11771 esac 11772 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11773 case $lt_search_path_spec in 11774 *\;*) 11775 # if the path contains ";" then we assume it to be the separator 11776 # otherwise default to the standard path separator (i.e. ":") - it is 11777 # assumed that no part of a normal pathname contains ";" but that should 11778 # okay in the real world where ";" in dirpaths is itself problematic. 11779 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11780 ;; 11781 *) 11782 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11783 ;; 11784 esac 11785 # Ok, now we have the path, separated by spaces, we can step through it 11786 # and add multilib dir if necessary... 11787 lt_tmp_lt_search_path_spec= 11788 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11789 # ...but if some path component already ends with the multilib dir we assume 11790 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11791 case "$lt_multi_os_dir; $lt_search_path_spec " in 11792 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11793 lt_multi_os_dir= 11794 ;; 11795 esac 11796 for lt_sys_path in $lt_search_path_spec; do 11797 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11799 elif test -n "$lt_multi_os_dir"; then 11800 test -d "$lt_sys_path" && \ 11801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11802 fi 11803 done 11804 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11805BEGIN {RS = " "; FS = "/|\n";} { 11806 lt_foo = ""; 11807 lt_count = 0; 11808 for (lt_i = NF; lt_i > 0; lt_i--) { 11809 if ($lt_i != "" && $lt_i != ".") { 11810 if ($lt_i == "..") { 11811 lt_count++; 11812 } else { 11813 if (lt_count == 0) { 11814 lt_foo = "/" $lt_i lt_foo; 11815 } else { 11816 lt_count--; 11817 } 11818 } 11819 } 11820 } 11821 if (lt_foo != "") { lt_freq[lt_foo]++; } 11822 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11823}'` 11824 # AWK program above erroneously prepends '/' to C:/dos/paths 11825 # for these hosts. 11826 case $host_os in 11827 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11828 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11829 esac 11830 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11831else 11832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11833fi 11834library_names_spec= 11835libname_spec='lib$name' 11836soname_spec= 11837shrext_cmds=.so 11838postinstall_cmds= 11839postuninstall_cmds= 11840finish_cmds= 11841finish_eval= 11842shlibpath_var= 11843shlibpath_overrides_runpath=unknown 11844version_type=none 11845dynamic_linker="$host_os ld.so" 11846sys_lib_dlsearch_path_spec="/lib /usr/lib" 11847need_lib_prefix=unknown 11848hardcode_into_libs=no 11849 11850# when you set need_version to no, make sure it does not cause -set_version 11851# flags to be left without arguments 11852need_version=unknown 11853 11854 11855 11856case $host_os in 11857aix3*) 11858 version_type=linux # correct to gnu/linux during the next big refactor 11859 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11860 shlibpath_var=LIBPATH 11861 11862 # AIX 3 has no versioning support, so we append a major version to the name. 11863 soname_spec='$libname$release$shared_ext$major' 11864 ;; 11865 11866aix[4-9]*) 11867 version_type=linux # correct to gnu/linux during the next big refactor 11868 need_lib_prefix=no 11869 need_version=no 11870 hardcode_into_libs=yes 11871 if test ia64 = "$host_cpu"; then 11872 # AIX 5 supports IA64 11873 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11874 shlibpath_var=LD_LIBRARY_PATH 11875 else 11876 # With GCC up to 2.95.x, collect2 would create an import file 11877 # for dependence libraries. The import file would start with 11878 # the line '#! .'. This would cause the generated library to 11879 # depend on '.', always an invalid library. This was fixed in 11880 # development snapshots of GCC prior to 3.0. 11881 case $host_os in 11882 aix4 | aix4.[01] | aix4.[01].*) 11883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11884 echo ' yes ' 11885 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11886 : 11887 else 11888 can_build_shared=no 11889 fi 11890 ;; 11891 esac 11892 # Using Import Files as archive members, it is possible to support 11893 # filename-based versioning of shared library archives on AIX. While 11894 # this would work for both with and without runtime linking, it will 11895 # prevent static linking of such archives. So we do filename-based 11896 # shared library versioning with .so extension only, which is used 11897 # when both runtime linking and shared linking is enabled. 11898 # Unfortunately, runtime linking may impact performance, so we do 11899 # not want this to be the default eventually. Also, we use the 11900 # versioned .so libs for executables only if there is the -brtl 11901 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11902 # To allow for filename-based versioning support, we need to create 11903 # libNAME.so.V as an archive file, containing: 11904 # *) an Import File, referring to the versioned filename of the 11905 # archive as well as the shared archive member, telling the 11906 # bitwidth (32 or 64) of that shared object, and providing the 11907 # list of exported symbols of that shared object, eventually 11908 # decorated with the 'weak' keyword 11909 # *) the shared object with the F_LOADONLY flag set, to really avoid 11910 # it being seen by the linker. 11911 # At run time we better use the real file rather than another symlink, 11912 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11913 11914 case $with_aix_soname,$aix_use_runtimelinking in 11915 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11916 # soname into executable. Probably we can add versioning support to 11917 # collect2, so additional links can be useful in future. 11918 aix,yes) # traditional libtool 11919 dynamic_linker='AIX unversionable lib.so' 11920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11921 # instead of lib<name>.a to let people know that these are not 11922 # typical AIX shared libraries. 11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11924 ;; 11925 aix,no) # traditional AIX only 11926 dynamic_linker='AIX lib.a(lib.so.V)' 11927 # We preserve .a as extension for shared libraries through AIX4.2 11928 # and later when we are not doing run time linking. 11929 library_names_spec='$libname$release.a $libname.a' 11930 soname_spec='$libname$release$shared_ext$major' 11931 ;; 11932 svr4,*) # full svr4 only 11933 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11934 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11935 # We do not specify a path in Import Files, so LIBPATH fires. 11936 shlibpath_overrides_runpath=yes 11937 ;; 11938 *,yes) # both, prefer svr4 11939 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11940 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11941 # unpreferred sharedlib libNAME.a needs extra handling 11942 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"' 11943 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"' 11944 # We do not specify a path in Import Files, so LIBPATH fires. 11945 shlibpath_overrides_runpath=yes 11946 ;; 11947 *,no) # both, prefer aix 11948 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11949 library_names_spec='$libname$release.a $libname.a' 11950 soname_spec='$libname$release$shared_ext$major' 11951 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11952 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)' 11953 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"' 11954 ;; 11955 esac 11956 shlibpath_var=LIBPATH 11957 fi 11958 ;; 11959 11960amigaos*) 11961 case $host_cpu in 11962 powerpc) 11963 # Since July 2007 AmigaOS4 officially supports .so libraries. 11964 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11966 ;; 11967 m68k) 11968 library_names_spec='$libname.ixlibrary $libname.a' 11969 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11970 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' 11971 ;; 11972 esac 11973 ;; 11974 11975beos*) 11976 library_names_spec='$libname$shared_ext' 11977 dynamic_linker="$host_os ld.so" 11978 shlibpath_var=LIBRARY_PATH 11979 ;; 11980 11981bsdi[45]*) 11982 version_type=linux # correct to gnu/linux during the next big refactor 11983 need_version=no 11984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11985 soname_spec='$libname$release$shared_ext$major' 11986 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11987 shlibpath_var=LD_LIBRARY_PATH 11988 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11989 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11990 # the default ld.so.conf also contains /usr/contrib/lib and 11991 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11992 # libtool to hard-code these into programs 11993 ;; 11994 11995cygwin* | mingw* | pw32* | cegcc*) 11996 version_type=windows 11997 shrext_cmds=.dll 11998 need_version=no 11999 need_lib_prefix=no 12000 12001 case $GCC,$cc_basename in 12002 yes,*) 12003 # gcc 12004 library_names_spec='$libname.dll.a' 12005 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12006 postinstall_cmds='base_file=`basename \$file`~ 12007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12008 dldir=$destdir/`dirname \$dlpath`~ 12009 test -d \$dldir || mkdir -p \$dldir~ 12010 $install_prog $dir/$dlname \$dldir/$dlname~ 12011 chmod a+x \$dldir/$dlname~ 12012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12013 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12014 fi' 12015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12016 dlpath=$dir/\$dldll~ 12017 $RM \$dlpath' 12018 shlibpath_overrides_runpath=yes 12019 12020 case $host_os in 12021 cygwin*) 12022 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12023 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12024 12025 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12026 ;; 12027 mingw* | cegcc*) 12028 # MinGW DLLs use traditional 'lib' prefix 12029 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12030 ;; 12031 pw32*) 12032 # pw32 DLLs use 'pw' prefix rather than 'lib' 12033 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12034 ;; 12035 esac 12036 dynamic_linker='Win32 ld.exe' 12037 ;; 12038 12039 *,cl*) 12040 # Native MSVC 12041 libname_spec='$name' 12042 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12043 library_names_spec='$libname.dll.lib' 12044 12045 case $build_os in 12046 mingw*) 12047 sys_lib_search_path_spec= 12048 lt_save_ifs=$IFS 12049 IFS=';' 12050 for lt_path in $LIB 12051 do 12052 IFS=$lt_save_ifs 12053 # Let DOS variable expansion print the short 8.3 style file name. 12054 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12055 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12056 done 12057 IFS=$lt_save_ifs 12058 # Convert to MSYS style. 12059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12060 ;; 12061 cygwin*) 12062 # Convert to unix form, then to dos form, then back to unix form 12063 # but this time dos style (no spaces!) so that the unix form looks 12064 # like /cygdrive/c/PROGRA~1:/cygdr... 12065 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12066 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12067 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12068 ;; 12069 *) 12070 sys_lib_search_path_spec=$LIB 12071 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12072 # It is most probably a Windows format PATH. 12073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12074 else 12075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12076 fi 12077 # FIXME: find the short name or the path components, as spaces are 12078 # common. (e.g. "Program Files" -> "PROGRA~1") 12079 ;; 12080 esac 12081 12082 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12083 postinstall_cmds='base_file=`basename \$file`~ 12084 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12085 dldir=$destdir/`dirname \$dlpath`~ 12086 test -d \$dldir || mkdir -p \$dldir~ 12087 $install_prog $dir/$dlname \$dldir/$dlname' 12088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12089 dlpath=$dir/\$dldll~ 12090 $RM \$dlpath' 12091 shlibpath_overrides_runpath=yes 12092 dynamic_linker='Win32 link.exe' 12093 ;; 12094 12095 *) 12096 # Assume MSVC wrapper 12097 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12098 dynamic_linker='Win32 ld.exe' 12099 ;; 12100 esac 12101 # FIXME: first we should search . and the directory the executable is in 12102 shlibpath_var=PATH 12103 ;; 12104 12105darwin* | rhapsody*) 12106 dynamic_linker="$host_os dyld" 12107 version_type=darwin 12108 need_lib_prefix=no 12109 need_version=no 12110 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12111 soname_spec='$libname$release$major$shared_ext' 12112 shlibpath_overrides_runpath=yes 12113 shlibpath_var=DYLD_LIBRARY_PATH 12114 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12115 12116 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12118 ;; 12119 12120dgux*) 12121 version_type=linux # correct to gnu/linux during the next big refactor 12122 need_lib_prefix=no 12123 need_version=no 12124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12125 soname_spec='$libname$release$shared_ext$major' 12126 shlibpath_var=LD_LIBRARY_PATH 12127 ;; 12128 12129freebsd* | dragonfly*) 12130 # DragonFly does not have aout. When/if they implement a new 12131 # versioning mechanism, adjust this. 12132 if test -x /usr/bin/objformat; then 12133 objformat=`/usr/bin/objformat` 12134 else 12135 case $host_os in 12136 freebsd[23].*) objformat=aout ;; 12137 *) objformat=elf ;; 12138 esac 12139 fi 12140 version_type=freebsd-$objformat 12141 case $version_type in 12142 freebsd-elf*) 12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12144 soname_spec='$libname$release$shared_ext$major' 12145 need_version=no 12146 need_lib_prefix=no 12147 ;; 12148 freebsd-*) 12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12150 need_version=yes 12151 ;; 12152 esac 12153 shlibpath_var=LD_LIBRARY_PATH 12154 case $host_os in 12155 freebsd2.*) 12156 shlibpath_overrides_runpath=yes 12157 ;; 12158 freebsd3.[01]* | freebsdelf3.[01]*) 12159 shlibpath_overrides_runpath=yes 12160 hardcode_into_libs=yes 12161 ;; 12162 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12163 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12164 shlibpath_overrides_runpath=no 12165 hardcode_into_libs=yes 12166 ;; 12167 *) # from 4.6 on, and DragonFly 12168 shlibpath_overrides_runpath=yes 12169 hardcode_into_libs=yes 12170 ;; 12171 esac 12172 ;; 12173 12174haiku*) 12175 version_type=linux # correct to gnu/linux during the next big refactor 12176 need_lib_prefix=no 12177 need_version=no 12178 dynamic_linker="$host_os runtime_loader" 12179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12180 soname_spec='$libname$release$shared_ext$major' 12181 shlibpath_var=LIBRARY_PATH 12182 shlibpath_overrides_runpath=no 12183 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12184 hardcode_into_libs=yes 12185 ;; 12186 12187hpux9* | hpux10* | hpux11*) 12188 # Give a soname corresponding to the major version so that dld.sl refuses to 12189 # link against other versions. 12190 version_type=sunos 12191 need_lib_prefix=no 12192 need_version=no 12193 case $host_cpu in 12194 ia64*) 12195 shrext_cmds='.so' 12196 hardcode_into_libs=yes 12197 dynamic_linker="$host_os dld.so" 12198 shlibpath_var=LD_LIBRARY_PATH 12199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12201 soname_spec='$libname$release$shared_ext$major' 12202 if test 32 = "$HPUX_IA64_MODE"; then 12203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12204 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12205 else 12206 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12207 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12208 fi 12209 ;; 12210 hppa*64*) 12211 shrext_cmds='.sl' 12212 hardcode_into_libs=yes 12213 dynamic_linker="$host_os dld.sl" 12214 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12217 soname_spec='$libname$release$shared_ext$major' 12218 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12220 ;; 12221 *) 12222 shrext_cmds='.sl' 12223 dynamic_linker="$host_os dld.sl" 12224 shlibpath_var=SHLIB_PATH 12225 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12227 soname_spec='$libname$release$shared_ext$major' 12228 ;; 12229 esac 12230 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12231 postinstall_cmds='chmod 555 $lib' 12232 # or fails outright, so override atomically: 12233 install_override_mode=555 12234 ;; 12235 12236interix[3-9]*) 12237 version_type=linux # correct to gnu/linux during the next big refactor 12238 need_lib_prefix=no 12239 need_version=no 12240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12241 soname_spec='$libname$release$shared_ext$major' 12242 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12243 shlibpath_var=LD_LIBRARY_PATH 12244 shlibpath_overrides_runpath=no 12245 hardcode_into_libs=yes 12246 ;; 12247 12248irix5* | irix6* | nonstopux*) 12249 case $host_os in 12250 nonstopux*) version_type=nonstopux ;; 12251 *) 12252 if test yes = "$lt_cv_prog_gnu_ld"; then 12253 version_type=linux # correct to gnu/linux during the next big refactor 12254 else 12255 version_type=irix 12256 fi ;; 12257 esac 12258 need_lib_prefix=no 12259 need_version=no 12260 soname_spec='$libname$release$shared_ext$major' 12261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12262 case $host_os in 12263 irix5* | nonstopux*) 12264 libsuff= shlibsuff= 12265 ;; 12266 *) 12267 case $LD in # libtool.m4 will add one of these switches to LD 12268 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12269 libsuff= shlibsuff= libmagic=32-bit;; 12270 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12271 libsuff=32 shlibsuff=N32 libmagic=N32;; 12272 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12273 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12274 *) libsuff= shlibsuff= libmagic=never-match;; 12275 esac 12276 ;; 12277 esac 12278 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12279 shlibpath_overrides_runpath=no 12280 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12281 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12282 hardcode_into_libs=yes 12283 ;; 12284 12285# No shared lib support for Linux oldld, aout, or coff. 12286linux*oldld* | linux*aout* | linux*coff*) 12287 dynamic_linker=no 12288 ;; 12289 12290linux*android*) 12291 version_type=none # Android doesn't support versioned libraries. 12292 need_lib_prefix=no 12293 need_version=no 12294 library_names_spec='$libname$release$shared_ext' 12295 soname_spec='$libname$release$shared_ext' 12296 finish_cmds= 12297 shlibpath_var=LD_LIBRARY_PATH 12298 shlibpath_overrides_runpath=yes 12299 12300 # This implies no fast_install, which is unacceptable. 12301 # Some rework will be needed to allow for fast_install 12302 # before this can be enabled. 12303 hardcode_into_libs=yes 12304 12305 dynamic_linker='Android linker' 12306 # Don't embed -rpath directories since the linker doesn't support them. 12307 hardcode_libdir_flag_spec='-L$libdir' 12308 ;; 12309 12310# This must be glibc/ELF. 12311linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12312 version_type=linux # correct to gnu/linux during the next big refactor 12313 need_lib_prefix=no 12314 need_version=no 12315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12316 soname_spec='$libname$release$shared_ext$major' 12317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12318 shlibpath_var=LD_LIBRARY_PATH 12319 shlibpath_overrides_runpath=no 12320 12321 # Some binutils ld are patched to set DT_RUNPATH 12322 if test ${lt_cv_shlibpath_overrides_runpath+y} 12323then : 12324 printf %s "(cached) " >&6 12325else $as_nop 12326 lt_cv_shlibpath_overrides_runpath=no 12327 save_LDFLAGS=$LDFLAGS 12328 save_libdir=$libdir 12329 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12330 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12332/* end confdefs.h. */ 12333 12334int 12335main (void) 12336{ 12337 12338 ; 12339 return 0; 12340} 12341_ACEOF 12342if ac_fn_c_try_link "$LINENO" 12343then : 12344 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12345then : 12346 lt_cv_shlibpath_overrides_runpath=yes 12347fi 12348fi 12349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12350 conftest$ac_exeext conftest.$ac_ext 12351 LDFLAGS=$save_LDFLAGS 12352 libdir=$save_libdir 12353 12354fi 12355 12356 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12357 12358 # This implies no fast_install, which is unacceptable. 12359 # Some rework will be needed to allow for fast_install 12360 # before this can be enabled. 12361 hardcode_into_libs=yes 12362 12363 # Ideally, we could use ldconfig to report *all* directores which are 12364 # searched for libraries, however this is still not possible. Aside from not 12365 # being certain /sbin/ldconfig is available, command 12366 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12367 # even though it is searched at run-time. Try to do the best guess by 12368 # appending ld.so.conf contents (and includes) to the search path. 12369 if test -f /etc/ld.so.conf; then 12370 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' ' '` 12371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12372 fi 12373 12374 # We used to test for /lib/ld.so.1 and disable shared libraries on 12375 # powerpc, because MkLinux only supported shared libraries with the 12376 # GNU dynamic linker. Since this was broken with cross compilers, 12377 # most powerpc-linux boxes support dynamic linking these days and 12378 # people can always --disable-shared, the test was removed, and we 12379 # assume the GNU/Linux dynamic linker is in use. 12380 dynamic_linker='GNU/Linux ld.so' 12381 ;; 12382 12383netbsd*) 12384 version_type=sunos 12385 need_lib_prefix=no 12386 need_version=no 12387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12390 dynamic_linker='NetBSD (a.out) ld.so' 12391 else 12392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12393 soname_spec='$libname$release$shared_ext$major' 12394 dynamic_linker='NetBSD ld.elf_so' 12395 fi 12396 shlibpath_var=LD_LIBRARY_PATH 12397 shlibpath_overrides_runpath=yes 12398 hardcode_into_libs=yes 12399 ;; 12400 12401newsos6) 12402 version_type=linux # correct to gnu/linux during the next big refactor 12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12404 shlibpath_var=LD_LIBRARY_PATH 12405 shlibpath_overrides_runpath=yes 12406 ;; 12407 12408*nto* | *qnx*) 12409 version_type=qnx 12410 need_lib_prefix=no 12411 need_version=no 12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12413 soname_spec='$libname$release$shared_ext$major' 12414 shlibpath_var=LD_LIBRARY_PATH 12415 shlibpath_overrides_runpath=no 12416 hardcode_into_libs=yes 12417 dynamic_linker='ldqnx.so' 12418 ;; 12419 12420openbsd* | bitrig*) 12421 version_type=sunos 12422 sys_lib_dlsearch_path_spec=/usr/lib 12423 need_lib_prefix=no 12424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12425 need_version=no 12426 else 12427 need_version=yes 12428 fi 12429 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12431 shlibpath_var=LD_LIBRARY_PATH 12432 shlibpath_overrides_runpath=yes 12433 ;; 12434 12435os2*) 12436 libname_spec='$name' 12437 version_type=windows 12438 shrext_cmds=.dll 12439 need_version=no 12440 need_lib_prefix=no 12441 # OS/2 can only load a DLL with a base name of 8 characters or less. 12442 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12443 v=$($ECHO $release$versuffix | tr -d .-); 12444 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12445 $ECHO $n$v`$shared_ext' 12446 library_names_spec='${libname}_dll.$libext' 12447 dynamic_linker='OS/2 ld.exe' 12448 shlibpath_var=BEGINLIBPATH 12449 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12451 postinstall_cmds='base_file=`basename \$file`~ 12452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12453 dldir=$destdir/`dirname \$dlpath`~ 12454 test -d \$dldir || mkdir -p \$dldir~ 12455 $install_prog $dir/$dlname \$dldir/$dlname~ 12456 chmod a+x \$dldir/$dlname~ 12457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12459 fi' 12460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12461 dlpath=$dir/\$dldll~ 12462 $RM \$dlpath' 12463 ;; 12464 12465osf3* | osf4* | osf5*) 12466 version_type=osf 12467 need_lib_prefix=no 12468 need_version=no 12469 soname_spec='$libname$release$shared_ext$major' 12470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12471 shlibpath_var=LD_LIBRARY_PATH 12472 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12474 ;; 12475 12476rdos*) 12477 dynamic_linker=no 12478 ;; 12479 12480solaris*) 12481 version_type=linux # correct to gnu/linux during the next big refactor 12482 need_lib_prefix=no 12483 need_version=no 12484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12485 soname_spec='$libname$release$shared_ext$major' 12486 shlibpath_var=LD_LIBRARY_PATH 12487 shlibpath_overrides_runpath=yes 12488 hardcode_into_libs=yes 12489 # ldd complains unless libraries are executable 12490 postinstall_cmds='chmod +x $lib' 12491 ;; 12492 12493sunos4*) 12494 version_type=sunos 12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12496 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12497 shlibpath_var=LD_LIBRARY_PATH 12498 shlibpath_overrides_runpath=yes 12499 if test yes = "$with_gnu_ld"; then 12500 need_lib_prefix=no 12501 fi 12502 need_version=yes 12503 ;; 12504 12505sysv4 | sysv4.3*) 12506 version_type=linux # correct to gnu/linux during the next big refactor 12507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12508 soname_spec='$libname$release$shared_ext$major' 12509 shlibpath_var=LD_LIBRARY_PATH 12510 case $host_vendor in 12511 sni) 12512 shlibpath_overrides_runpath=no 12513 need_lib_prefix=no 12514 runpath_var=LD_RUN_PATH 12515 ;; 12516 siemens) 12517 need_lib_prefix=no 12518 ;; 12519 motorola) 12520 need_lib_prefix=no 12521 need_version=no 12522 shlibpath_overrides_runpath=no 12523 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12524 ;; 12525 esac 12526 ;; 12527 12528sysv4*MP*) 12529 if test -d /usr/nec; then 12530 version_type=linux # correct to gnu/linux during the next big refactor 12531 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12532 soname_spec='$libname$shared_ext.$major' 12533 shlibpath_var=LD_LIBRARY_PATH 12534 fi 12535 ;; 12536 12537sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12538 version_type=sco 12539 need_lib_prefix=no 12540 need_version=no 12541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12542 soname_spec='$libname$release$shared_ext$major' 12543 shlibpath_var=LD_LIBRARY_PATH 12544 shlibpath_overrides_runpath=yes 12545 hardcode_into_libs=yes 12546 if test yes = "$with_gnu_ld"; then 12547 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12548 else 12549 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12550 case $host_os in 12551 sco3.2v5*) 12552 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12553 ;; 12554 esac 12555 fi 12556 sys_lib_dlsearch_path_spec='/usr/lib' 12557 ;; 12558 12559tpf*) 12560 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12561 version_type=linux # correct to gnu/linux during the next big refactor 12562 need_lib_prefix=no 12563 need_version=no 12564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12565 shlibpath_var=LD_LIBRARY_PATH 12566 shlibpath_overrides_runpath=no 12567 hardcode_into_libs=yes 12568 ;; 12569 12570uts4*) 12571 version_type=linux # correct to gnu/linux during the next big refactor 12572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12573 soname_spec='$libname$release$shared_ext$major' 12574 shlibpath_var=LD_LIBRARY_PATH 12575 ;; 12576 12577*) 12578 dynamic_linker=no 12579 ;; 12580esac 12581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12582printf "%s\n" "$dynamic_linker" >&6; } 12583test no = "$dynamic_linker" && can_build_shared=no 12584 12585variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12586if test yes = "$GCC"; then 12587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12588fi 12589 12590if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12591 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12592fi 12593 12594if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12595 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12596fi 12597 12598# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12599configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12600 12601# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12602func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12603 12604# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12605configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12704printf %s "checking how to hardcode library paths into programs... " >&6; } 12705hardcode_action= 12706if test -n "$hardcode_libdir_flag_spec" || 12707 test -n "$runpath_var" || 12708 test yes = "$hardcode_automatic"; then 12709 12710 # We can hardcode non-existent directories. 12711 if test no != "$hardcode_direct" && 12712 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12713 # have to relink, otherwise we might link with an installed library 12714 # when we should be linking with a yet-to-be-installed one 12715 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12716 test no != "$hardcode_minus_L"; then 12717 # Linking always hardcodes the temporary library directory. 12718 hardcode_action=relink 12719 else 12720 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12721 hardcode_action=immediate 12722 fi 12723else 12724 # We cannot hardcode anything, or else we can only hardcode existing 12725 # directories. 12726 hardcode_action=unsupported 12727fi 12728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12729printf "%s\n" "$hardcode_action" >&6; } 12730 12731if test relink = "$hardcode_action" || 12732 test yes = "$inherit_rpath"; then 12733 # Fast installation is not supported 12734 enable_fast_install=no 12735elif test yes = "$shlibpath_overrides_runpath" || 12736 test no = "$enable_shared"; then 12737 # Fast installation is not necessary 12738 enable_fast_install=needless 12739fi 12740 12741 12742 12743 12744 12745 12746 if test yes != "$enable_dlopen"; then 12747 enable_dlopen=unknown 12748 enable_dlopen_self=unknown 12749 enable_dlopen_self_static=unknown 12750else 12751 lt_cv_dlopen=no 12752 lt_cv_dlopen_libs= 12753 12754 case $host_os in 12755 beos*) 12756 lt_cv_dlopen=load_add_on 12757 lt_cv_dlopen_libs= 12758 lt_cv_dlopen_self=yes 12759 ;; 12760 12761 mingw* | pw32* | cegcc*) 12762 lt_cv_dlopen=LoadLibrary 12763 lt_cv_dlopen_libs= 12764 ;; 12765 12766 cygwin*) 12767 lt_cv_dlopen=dlopen 12768 lt_cv_dlopen_libs= 12769 ;; 12770 12771 darwin*) 12772 # if libdl is installed we need to link against it 12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12774printf %s "checking for dlopen in -ldl... " >&6; } 12775if test ${ac_cv_lib_dl_dlopen+y} 12776then : 12777 printf %s "(cached) " >&6 12778else $as_nop 12779 ac_check_lib_save_LIBS=$LIBS 12780LIBS="-ldl $LIBS" 12781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12782/* end confdefs.h. */ 12783 12784/* Override any GCC internal prototype to avoid an error. 12785 Use char because int might match the return type of a GCC 12786 builtin and then its argument prototype would still apply. */ 12787char dlopen (); 12788int 12789main (void) 12790{ 12791return dlopen (); 12792 ; 12793 return 0; 12794} 12795_ACEOF 12796if ac_fn_c_try_link "$LINENO" 12797then : 12798 ac_cv_lib_dl_dlopen=yes 12799else $as_nop 12800 ac_cv_lib_dl_dlopen=no 12801fi 12802rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12803 conftest$ac_exeext conftest.$ac_ext 12804LIBS=$ac_check_lib_save_LIBS 12805fi 12806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12807printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12808if test "x$ac_cv_lib_dl_dlopen" = xyes 12809then : 12810 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12811else $as_nop 12812 12813 lt_cv_dlopen=dyld 12814 lt_cv_dlopen_libs= 12815 lt_cv_dlopen_self=yes 12816 12817fi 12818 12819 ;; 12820 12821 tpf*) 12822 # Don't try to run any link tests for TPF. We know it's impossible 12823 # because TPF is a cross-compiler, and we know how we open DSOs. 12824 lt_cv_dlopen=dlopen 12825 lt_cv_dlopen_libs= 12826 lt_cv_dlopen_self=no 12827 ;; 12828 12829 *) 12830 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12831if test "x$ac_cv_func_shl_load" = xyes 12832then : 12833 lt_cv_dlopen=shl_load 12834else $as_nop 12835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12836printf %s "checking for shl_load in -ldld... " >&6; } 12837if test ${ac_cv_lib_dld_shl_load+y} 12838then : 12839 printf %s "(cached) " >&6 12840else $as_nop 12841 ac_check_lib_save_LIBS=$LIBS 12842LIBS="-ldld $LIBS" 12843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12844/* end confdefs.h. */ 12845 12846/* Override any GCC internal prototype to avoid an error. 12847 Use char because int might match the return type of a GCC 12848 builtin and then its argument prototype would still apply. */ 12849char shl_load (); 12850int 12851main (void) 12852{ 12853return shl_load (); 12854 ; 12855 return 0; 12856} 12857_ACEOF 12858if ac_fn_c_try_link "$LINENO" 12859then : 12860 ac_cv_lib_dld_shl_load=yes 12861else $as_nop 12862 ac_cv_lib_dld_shl_load=no 12863fi 12864rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12865 conftest$ac_exeext conftest.$ac_ext 12866LIBS=$ac_check_lib_save_LIBS 12867fi 12868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12869printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12870if test "x$ac_cv_lib_dld_shl_load" = xyes 12871then : 12872 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12873else $as_nop 12874 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12875if test "x$ac_cv_func_dlopen" = xyes 12876then : 12877 lt_cv_dlopen=dlopen 12878else $as_nop 12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12880printf %s "checking for dlopen in -ldl... " >&6; } 12881if test ${ac_cv_lib_dl_dlopen+y} 12882then : 12883 printf %s "(cached) " >&6 12884else $as_nop 12885 ac_check_lib_save_LIBS=$LIBS 12886LIBS="-ldl $LIBS" 12887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888/* end confdefs.h. */ 12889 12890/* Override any GCC internal prototype to avoid an error. 12891 Use char because int might match the return type of a GCC 12892 builtin and then its argument prototype would still apply. */ 12893char dlopen (); 12894int 12895main (void) 12896{ 12897return dlopen (); 12898 ; 12899 return 0; 12900} 12901_ACEOF 12902if ac_fn_c_try_link "$LINENO" 12903then : 12904 ac_cv_lib_dl_dlopen=yes 12905else $as_nop 12906 ac_cv_lib_dl_dlopen=no 12907fi 12908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12909 conftest$ac_exeext conftest.$ac_ext 12910LIBS=$ac_check_lib_save_LIBS 12911fi 12912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12913printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12914if test "x$ac_cv_lib_dl_dlopen" = xyes 12915then : 12916 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12917else $as_nop 12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12919printf %s "checking for dlopen in -lsvld... " >&6; } 12920if test ${ac_cv_lib_svld_dlopen+y} 12921then : 12922 printf %s "(cached) " >&6 12923else $as_nop 12924 ac_check_lib_save_LIBS=$LIBS 12925LIBS="-lsvld $LIBS" 12926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12927/* end confdefs.h. */ 12928 12929/* Override any GCC internal prototype to avoid an error. 12930 Use char because int might match the return type of a GCC 12931 builtin and then its argument prototype would still apply. */ 12932char dlopen (); 12933int 12934main (void) 12935{ 12936return dlopen (); 12937 ; 12938 return 0; 12939} 12940_ACEOF 12941if ac_fn_c_try_link "$LINENO" 12942then : 12943 ac_cv_lib_svld_dlopen=yes 12944else $as_nop 12945 ac_cv_lib_svld_dlopen=no 12946fi 12947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12948 conftest$ac_exeext conftest.$ac_ext 12949LIBS=$ac_check_lib_save_LIBS 12950fi 12951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12952printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12953if test "x$ac_cv_lib_svld_dlopen" = xyes 12954then : 12955 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12956else $as_nop 12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12958printf %s "checking for dld_link in -ldld... " >&6; } 12959if test ${ac_cv_lib_dld_dld_link+y} 12960then : 12961 printf %s "(cached) " >&6 12962else $as_nop 12963 ac_check_lib_save_LIBS=$LIBS 12964LIBS="-ldld $LIBS" 12965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12966/* end confdefs.h. */ 12967 12968/* Override any GCC internal prototype to avoid an error. 12969 Use char because int might match the return type of a GCC 12970 builtin and then its argument prototype would still apply. */ 12971char dld_link (); 12972int 12973main (void) 12974{ 12975return dld_link (); 12976 ; 12977 return 0; 12978} 12979_ACEOF 12980if ac_fn_c_try_link "$LINENO" 12981then : 12982 ac_cv_lib_dld_dld_link=yes 12983else $as_nop 12984 ac_cv_lib_dld_dld_link=no 12985fi 12986rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12987 conftest$ac_exeext conftest.$ac_ext 12988LIBS=$ac_check_lib_save_LIBS 12989fi 12990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12991printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12992if test "x$ac_cv_lib_dld_dld_link" = xyes 12993then : 12994 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12995fi 12996 12997 12998fi 12999 13000 13001fi 13002 13003 13004fi 13005 13006 13007fi 13008 13009 13010fi 13011 13012 ;; 13013 esac 13014 13015 if test no = "$lt_cv_dlopen"; then 13016 enable_dlopen=no 13017 else 13018 enable_dlopen=yes 13019 fi 13020 13021 case $lt_cv_dlopen in 13022 dlopen) 13023 save_CPPFLAGS=$CPPFLAGS 13024 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13025 13026 save_LDFLAGS=$LDFLAGS 13027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13028 13029 save_LIBS=$LIBS 13030 LIBS="$lt_cv_dlopen_libs $LIBS" 13031 13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13033printf %s "checking whether a program can dlopen itself... " >&6; } 13034if test ${lt_cv_dlopen_self+y} 13035then : 13036 printf %s "(cached) " >&6 13037else $as_nop 13038 if test yes = "$cross_compiling"; then : 13039 lt_cv_dlopen_self=cross 13040else 13041 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13042 lt_status=$lt_dlunknown 13043 cat > conftest.$ac_ext <<_LT_EOF 13044#line $LINENO "configure" 13045#include "confdefs.h" 13046 13047#if HAVE_DLFCN_H 13048#include <dlfcn.h> 13049#endif 13050 13051#include <stdio.h> 13052 13053#ifdef RTLD_GLOBAL 13054# define LT_DLGLOBAL RTLD_GLOBAL 13055#else 13056# ifdef DL_GLOBAL 13057# define LT_DLGLOBAL DL_GLOBAL 13058# else 13059# define LT_DLGLOBAL 0 13060# endif 13061#endif 13062 13063/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13064 find out it does not work in some platform. */ 13065#ifndef LT_DLLAZY_OR_NOW 13066# ifdef RTLD_LAZY 13067# define LT_DLLAZY_OR_NOW RTLD_LAZY 13068# else 13069# ifdef DL_LAZY 13070# define LT_DLLAZY_OR_NOW DL_LAZY 13071# else 13072# ifdef RTLD_NOW 13073# define LT_DLLAZY_OR_NOW RTLD_NOW 13074# else 13075# ifdef DL_NOW 13076# define LT_DLLAZY_OR_NOW DL_NOW 13077# else 13078# define LT_DLLAZY_OR_NOW 0 13079# endif 13080# endif 13081# endif 13082# endif 13083#endif 13084 13085/* When -fvisibility=hidden is used, assume the code has been annotated 13086 correspondingly for the symbols needed. */ 13087#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13088int fnord () __attribute__((visibility("default"))); 13089#endif 13090 13091int fnord () { return 42; } 13092int main () 13093{ 13094 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13095 int status = $lt_dlunknown; 13096 13097 if (self) 13098 { 13099 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13100 else 13101 { 13102 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13103 else puts (dlerror ()); 13104 } 13105 /* dlclose (self); */ 13106 } 13107 else 13108 puts (dlerror ()); 13109 13110 return status; 13111} 13112_LT_EOF 13113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13114 (eval $ac_link) 2>&5 13115 ac_status=$? 13116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13117 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13118 (./conftest; exit; ) >&5 2>/dev/null 13119 lt_status=$? 13120 case x$lt_status in 13121 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13122 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13123 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13124 esac 13125 else : 13126 # compilation failed 13127 lt_cv_dlopen_self=no 13128 fi 13129fi 13130rm -fr conftest* 13131 13132 13133fi 13134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13135printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13136 13137 if test yes = "$lt_cv_dlopen_self"; then 13138 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13140printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13141if test ${lt_cv_dlopen_self_static+y} 13142then : 13143 printf %s "(cached) " >&6 13144else $as_nop 13145 if test yes = "$cross_compiling"; then : 13146 lt_cv_dlopen_self_static=cross 13147else 13148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13149 lt_status=$lt_dlunknown 13150 cat > conftest.$ac_ext <<_LT_EOF 13151#line $LINENO "configure" 13152#include "confdefs.h" 13153 13154#if HAVE_DLFCN_H 13155#include <dlfcn.h> 13156#endif 13157 13158#include <stdio.h> 13159 13160#ifdef RTLD_GLOBAL 13161# define LT_DLGLOBAL RTLD_GLOBAL 13162#else 13163# ifdef DL_GLOBAL 13164# define LT_DLGLOBAL DL_GLOBAL 13165# else 13166# define LT_DLGLOBAL 0 13167# endif 13168#endif 13169 13170/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13171 find out it does not work in some platform. */ 13172#ifndef LT_DLLAZY_OR_NOW 13173# ifdef RTLD_LAZY 13174# define LT_DLLAZY_OR_NOW RTLD_LAZY 13175# else 13176# ifdef DL_LAZY 13177# define LT_DLLAZY_OR_NOW DL_LAZY 13178# else 13179# ifdef RTLD_NOW 13180# define LT_DLLAZY_OR_NOW RTLD_NOW 13181# else 13182# ifdef DL_NOW 13183# define LT_DLLAZY_OR_NOW DL_NOW 13184# else 13185# define LT_DLLAZY_OR_NOW 0 13186# endif 13187# endif 13188# endif 13189# endif 13190#endif 13191 13192/* When -fvisibility=hidden is used, assume the code has been annotated 13193 correspondingly for the symbols needed. */ 13194#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13195int fnord () __attribute__((visibility("default"))); 13196#endif 13197 13198int fnord () { return 42; } 13199int main () 13200{ 13201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13202 int status = $lt_dlunknown; 13203 13204 if (self) 13205 { 13206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13207 else 13208 { 13209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13210 else puts (dlerror ()); 13211 } 13212 /* dlclose (self); */ 13213 } 13214 else 13215 puts (dlerror ()); 13216 13217 return status; 13218} 13219_LT_EOF 13220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13221 (eval $ac_link) 2>&5 13222 ac_status=$? 13223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13224 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13225 (./conftest; exit; ) >&5 2>/dev/null 13226 lt_status=$? 13227 case x$lt_status in 13228 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13229 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13230 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13231 esac 13232 else : 13233 # compilation failed 13234 lt_cv_dlopen_self_static=no 13235 fi 13236fi 13237rm -fr conftest* 13238 13239 13240fi 13241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13242printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13243 fi 13244 13245 CPPFLAGS=$save_CPPFLAGS 13246 LDFLAGS=$save_LDFLAGS 13247 LIBS=$save_LIBS 13248 ;; 13249 esac 13250 13251 case $lt_cv_dlopen_self in 13252 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13253 *) enable_dlopen_self=unknown ;; 13254 esac 13255 13256 case $lt_cv_dlopen_self_static in 13257 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13258 *) enable_dlopen_self_static=unknown ;; 13259 esac 13260fi 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278striplib= 13279old_striplib= 13280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13281printf %s "checking whether stripping libraries is possible... " >&6; } 13282if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13284 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13286printf "%s\n" "yes" >&6; } 13287else 13288# FIXME - insert some real tests, host_os isn't really good enough 13289 case $host_os in 13290 darwin*) 13291 if test -n "$STRIP"; then 13292 striplib="$STRIP -x" 13293 old_striplib="$STRIP -S" 13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13295printf "%s\n" "yes" >&6; } 13296 else 13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13298printf "%s\n" "no" >&6; } 13299 fi 13300 ;; 13301 *) 13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13303printf "%s\n" "no" >&6; } 13304 ;; 13305 esac 13306fi 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 # Report what library types will actually be built 13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13321printf %s "checking if libtool supports shared libraries... " >&6; } 13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13323printf "%s\n" "$can_build_shared" >&6; } 13324 13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13326printf %s "checking whether to build shared libraries... " >&6; } 13327 test no = "$can_build_shared" && enable_shared=no 13328 13329 # On AIX, shared libraries and static libraries use the same namespace, and 13330 # are all built from PIC. 13331 case $host_os in 13332 aix3*) 13333 test yes = "$enable_shared" && enable_static=no 13334 if test -n "$RANLIB"; then 13335 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13336 postinstall_cmds='$RANLIB $lib' 13337 fi 13338 ;; 13339 13340 aix[4-9]*) 13341 if test ia64 != "$host_cpu"; then 13342 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13343 yes,aix,yes) ;; # shared object as lib.so file only 13344 yes,svr4,*) ;; # shared object as lib.so archive member only 13345 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13346 esac 13347 fi 13348 ;; 13349 esac 13350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13351printf "%s\n" "$enable_shared" >&6; } 13352 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13354printf %s "checking whether to build static libraries... " >&6; } 13355 # Make sure either enable_shared or enable_static is yes. 13356 test yes = "$enable_shared" || enable_static=yes 13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13358printf "%s\n" "$enable_static" >&6; } 13359 13360 13361 13362 13363fi 13364ac_ext=c 13365ac_cpp='$CPP $CPPFLAGS' 13366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13368ac_compiler_gnu=$ac_cv_c_compiler_gnu 13369 13370CC=$lt_save_CC 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 ac_config_commands="$ac_config_commands libtool" 13387 13388 13389 13390 13391# Only expand once: 13392 13393 13394 13395 13396 CFLAG_VISIBILITY= 13397 HAVE_VISIBILITY=0 13398 if test -n "$GCC"; then 13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 13400printf %s "checking whether the -Werror option is usable... " >&6; } 13401 if test ${gl_cv_cc_vis_werror+y} 13402then : 13403 printf %s "(cached) " >&6 13404else $as_nop 13405 13406 gl_save_CFLAGS="$CFLAGS" 13407 CFLAGS="$CFLAGS -Werror" 13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13409/* end confdefs.h. */ 13410 13411int 13412main (void) 13413{ 13414 13415 ; 13416 return 0; 13417} 13418_ACEOF 13419if ac_fn_c_try_compile "$LINENO" 13420then : 13421 gl_cv_cc_vis_werror=yes 13422else $as_nop 13423 gl_cv_cc_vis_werror=no 13424fi 13425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13426 CFLAGS="$gl_save_CFLAGS" 13427fi 13428 13429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 13430printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 13432printf %s "checking for simple visibility declarations... " >&6; } 13433 if test ${gl_cv_cc_visibility+y} 13434then : 13435 printf %s "(cached) " >&6 13436else $as_nop 13437 13438 gl_save_CFLAGS="$CFLAGS" 13439 CFLAGS="$CFLAGS -fvisibility=hidden" 13440 if test $gl_cv_cc_vis_werror = yes; then 13441 CFLAGS="$CFLAGS -Werror" 13442 fi 13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13444/* end confdefs.h. */ 13445extern __attribute__((__visibility__("hidden"))) int hiddenvar; 13446 extern __attribute__((__visibility__("default"))) int exportedvar; 13447 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 13448 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 13449 void dummyfunc (void) {} 13450 13451int 13452main (void) 13453{ 13454 13455 ; 13456 return 0; 13457} 13458_ACEOF 13459if ac_fn_c_try_compile "$LINENO" 13460then : 13461 gl_cv_cc_visibility=yes 13462else $as_nop 13463 gl_cv_cc_visibility=no 13464fi 13465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13466 CFLAGS="$gl_save_CFLAGS" 13467fi 13468 13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 13470printf "%s\n" "$gl_cv_cc_visibility" >&6; } 13471 if test $gl_cv_cc_visibility = yes; then 13472 CFLAG_VISIBILITY="-fvisibility=hidden" 13473 HAVE_VISIBILITY=1 13474 fi 13475 fi 13476 13477 13478 13479printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 13480 13481 13482 13483ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 13484if test "x$ac_cv_header_sys_mkdev_h" = xyes 13485then : 13486 13487printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h 13488 13489fi 13490 13491if test $ac_cv_header_sys_mkdev_h = no; then 13492 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 13493if test "x$ac_cv_header_sys_sysmacros_h" = xyes 13494then : 13495 13496printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 13497 13498fi 13499 13500fi 13501 13502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13503printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13504if test ${ac_cv_header_sys_wait_h+y} 13505then : 13506 printf %s "(cached) " >&6 13507else $as_nop 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510#include <sys/types.h> 13511#include <sys/wait.h> 13512#ifndef WEXITSTATUS 13513# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13514#endif 13515#ifndef WIFEXITED 13516# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13517#endif 13518 13519int 13520main (void) 13521{ 13522 int s; 13523 wait (&s); 13524 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13525 ; 13526 return 0; 13527} 13528_ACEOF 13529if ac_fn_c_try_compile "$LINENO" 13530then : 13531 ac_cv_header_sys_wait_h=yes 13532else $as_nop 13533 ac_cv_header_sys_wait_h=no 13534fi 13535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13536fi 13537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13538printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } 13539if test $ac_cv_header_sys_wait_h = yes; then 13540 13541printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13542 13543fi 13544 13545ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 13546if test "x$ac_cv_header_stdint_h" = xyes 13547then : 13548 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 13549 13550fi 13551ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 13552if test "x$ac_cv_header_fcntl_h" = xyes 13553then : 13554 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 13555 13556fi 13557ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 13558if test "x$ac_cv_header_inttypes_h" = xyes 13559then : 13560 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 13561 13562fi 13563ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 13564if test "x$ac_cv_header_unistd_h" = xyes 13565then : 13566 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 13567 13568fi 13569ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 13570if test "x$ac_cv_header_byteswap_h" = xyes 13571then : 13572 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h 13573 13574fi 13575 13576ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" 13577if test "x$ac_cv_header_spawn_h" = xyes 13578then : 13579 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h 13580 13581fi 13582ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 13583if test "x$ac_cv_header_utime_h" = xyes 13584then : 13585 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 13586 13587fi 13588ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 13589if test "x$ac_cv_header_wchar_h" = xyes 13590then : 13591 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 13592 13593fi 13594ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" 13595if test "x$ac_cv_header_wctype_h" = xyes 13596then : 13597 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h 13598 13599fi 13600 13601ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 13602if test "x$ac_cv_header_getopt_h" = xyes 13603then : 13604 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 13605 13606fi 13607ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 13608if test "x$ac_cv_header_err_h" = xyes 13609then : 13610 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 13611 13612fi 13613ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default" 13614if test "x$ac_cv_header_xlocale_h" = xyes 13615then : 13616 printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h 13617 13618fi 13619 13620ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default" 13621if test "x$ac_cv_header_sys_bswap_h" = xyes 13622then : 13623 printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h 13624 13625fi 13626ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 13627if test "x$ac_cv_header_sys_mman_h" = xyes 13628then : 13629 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 13630 13631fi 13632ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 13633if test "x$ac_cv_header_sys_stat_h" = xyes 13634then : 13635 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 13636 13637fi 13638ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 13639if test "x$ac_cv_header_sys_types_h" = xyes 13640then : 13641 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 13642 13643fi 13644ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default" 13645if test "x$ac_cv_header_sys_utime_h" = xyes 13646then : 13647 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h 13648 13649fi 13650ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 13651if test "x$ac_cv_header_sys_time_h" = xyes 13652then : 13653 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 13654 13655fi 13656ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 13657if test "x$ac_cv_header_sys_sysmacros_h" = xyes 13658then : 13659 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 13660 13661fi 13662ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 13663if test "x$ac_cv_header_sys_ioctl_h" = xyes 13664then : 13665 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 13666 13667fi 13668 13669if test "$enable_zlib" != "no"; then 13670 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 13671if test "x$ac_cv_header_zlib_h" = xyes 13672then : 13673 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 13674 13675fi 13676 13677fi 13678if test "$enable_bzlib" != "no"; then 13679 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 13680if test "x$ac_cv_header_bzlib_h" = xyes 13681then : 13682 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 13683 13684fi 13685 13686fi 13687if test "$enable_xzlib" != "no"; then 13688 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 13689if test "x$ac_cv_header_lzma_h" = xyes 13690then : 13691 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 13692 13693fi 13694 13695fi 13696if test "$enable_zstdlib" != "no"; then 13697 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default" 13698if test "x$ac_cv_header_zstd_h" = xyes 13699then : 13700 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h 13701 13702fi 13703ac_fn_c_check_header_compile "$LINENO" "zstd_errors.h" "ac_cv_header_zstd_errors_h" "$ac_includes_default" 13704if test "x$ac_cv_header_zstd_errors_h" = xyes 13705then : 13706 printf "%s\n" "#define HAVE_ZSTD_ERRORS_H 1" >>confdefs.h 13707 13708fi 13709 13710fi 13711if test "$enable_lzlib" != "no"; then 13712 ac_fn_c_check_header_compile "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default" 13713if test "x$ac_cv_header_lzlib_h" = xyes 13714then : 13715 printf "%s\n" "#define HAVE_LZLIB_H 1" >>confdefs.h 13716 13717fi 13718 13719fi 13720ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h> 13721" 13722if test "x$ac_cv_type_sig_t" = xyes 13723then : 13724 13725printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h 13726 13727fi 13728 13729 13730ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13731if test "x$ac_cv_type_off_t" = xyes 13732then : 13733 13734else $as_nop 13735 13736printf "%s\n" "#define off_t long int" >>confdefs.h 13737 13738fi 13739 13740ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13741if test "x$ac_cv_type_size_t" = xyes 13742then : 13743 13744else $as_nop 13745 13746printf "%s\n" "#define size_t unsigned int" >>confdefs.h 13747 13748fi 13749 13750ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 13751if test "x$ac_cv_member_struct_stat_st_rdev" = xyes 13752then : 13753 13754printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h 13755 13756 13757fi 13758 13759 13760ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 13761" 13762if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes 13763then : 13764 13765printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 13766 13767 13768fi 13769 13770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13771printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13772if test ${ac_cv_struct_tm+y} 13773then : 13774 printf %s "(cached) " >&6 13775else $as_nop 13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13777/* end confdefs.h. */ 13778#include <sys/types.h> 13779#include <time.h> 13780 13781int 13782main (void) 13783{ 13784struct tm tm; 13785 int *p = &tm.tm_sec; 13786 return !p; 13787 ; 13788 return 0; 13789} 13790_ACEOF 13791if ac_fn_c_try_compile "$LINENO" 13792then : 13793 ac_cv_struct_tm=time.h 13794else $as_nop 13795 ac_cv_struct_tm=sys/time.h 13796fi 13797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13798fi 13799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13800printf "%s\n" "$ac_cv_struct_tm" >&6; } 13801if test $ac_cv_struct_tm = sys/time.h; then 13802 13803printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 13804 13805fi 13806 13807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13808printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13809if test ${ac_cv_c_undeclared_builtin_options+y} 13810then : 13811 printf %s "(cached) " >&6 13812else $as_nop 13813 ac_save_CFLAGS=$CFLAGS 13814 ac_cv_c_undeclared_builtin_options='cannot detect' 13815 for ac_arg in '' -fno-builtin; do 13816 CFLAGS="$ac_save_CFLAGS $ac_arg" 13817 # This test program should *not* compile successfully. 13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13819/* end confdefs.h. */ 13820 13821int 13822main (void) 13823{ 13824(void) strchr; 13825 ; 13826 return 0; 13827} 13828_ACEOF 13829if ac_fn_c_try_compile "$LINENO" 13830then : 13831 13832else $as_nop 13833 # This test program should compile successfully. 13834 # No library function is consistently available on 13835 # freestanding implementations, so test against a dummy 13836 # declaration. Include always-available headers on the 13837 # off chance that they somehow elicit warnings. 13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13839/* end confdefs.h. */ 13840#include <float.h> 13841#include <limits.h> 13842#include <stdarg.h> 13843#include <stddef.h> 13844extern void ac_decl (int, char *); 13845 13846int 13847main (void) 13848{ 13849(void) ac_decl (0, (char *) 0); 13850 (void) ac_decl; 13851 13852 ; 13853 return 0; 13854} 13855_ACEOF 13856if ac_fn_c_try_compile "$LINENO" 13857then : 13858 if test x"$ac_arg" = x 13859then : 13860 ac_cv_c_undeclared_builtin_options='none needed' 13861else $as_nop 13862 ac_cv_c_undeclared_builtin_options=$ac_arg 13863fi 13864 break 13865fi 13866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13867fi 13868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13869 done 13870 CFLAGS=$ac_save_CFLAGS 13871 13872fi 13873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13874printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13875 case $ac_cv_c_undeclared_builtin_options in #( 13876 'cannot detect') : 13877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13879as_fn_error $? "cannot make $CC report undeclared builtins 13880See \`config.log' for more details" "$LINENO" 5; } ;; #( 13881 'none needed') : 13882 ac_c_undeclared_builtin_options='' ;; #( 13883 *) : 13884 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13885esac 13886 13887ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13888#include <$ac_cv_struct_tm> 13889 13890" 13891if test "x$ac_cv_member_struct_tm_tm_zone" = xyes 13892then : 13893 13894printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 13895 13896 13897fi 13898 13899if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13900 13901printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 13902 13903else 13904 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13905" "$ac_c_undeclared_builtin_options" "CFLAGS" 13906if test "x$ac_cv_have_decl_tzname" = xyes 13907then : 13908 ac_have_decl=1 13909else $as_nop 13910 ac_have_decl=0 13911fi 13912printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 13913 13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13915printf %s "checking for tzname... " >&6; } 13916if test ${ac_cv_var_tzname+y} 13917then : 13918 printf %s "(cached) " >&6 13919else $as_nop 13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13921/* end confdefs.h. */ 13922#include <time.h> 13923#if !HAVE_DECL_TZNAME 13924extern char *tzname[]; 13925#endif 13926 13927int 13928main (void) 13929{ 13930return tzname[0][0]; 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935if ac_fn_c_try_link "$LINENO" 13936then : 13937 ac_cv_var_tzname=yes 13938else $as_nop 13939 ac_cv_var_tzname=no 13940fi 13941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13942 conftest$ac_exeext conftest.$ac_ext 13943fi 13944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13945printf "%s\n" "$ac_cv_var_tzname" >&6; } 13946 if test $ac_cv_var_tzname = yes; then 13947 13948printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 13949 13950 fi 13951fi 13952 13953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 13954printf %s "checking for tm_zone in struct tm... " >&6; } 13955if test ${ac_cv_struct_tm_zone+y} 13956then : 13957 printf %s "(cached) " >&6 13958else $as_nop 13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13960/* end confdefs.h. */ 13961#include <sys/types.h> 13962#include <$ac_cv_struct_tm> 13963int 13964main (void) 13965{ 13966struct tm tm; tm.tm_zone; 13967 ; 13968 return 0; 13969} 13970_ACEOF 13971if ac_fn_c_try_compile "$LINENO" 13972then : 13973 ac_cv_struct_tm_zone=yes 13974else $as_nop 13975 ac_cv_struct_tm_zone=no 13976fi 13977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13978fi 13979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 13980printf "%s\n" "$ac_cv_struct_tm_zone" >&6; } 13981if test "$ac_cv_struct_tm_zone" = yes; then 13982 13983printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 13984 13985fi 13986 13987# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 13988# consider it declared and we won't give our own extern. 13989ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13990" "$ac_c_undeclared_builtin_options" "CFLAGS" 13991if test "x$ac_cv_have_decl_tzname" = xyes 13992then : 13993 ac_have_decl=1 13994else $as_nop 13995 ac_have_decl=0 13996fi 13997printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 13998 13999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 14000printf %s "checking for tzname... " >&6; } 14001if test ${ac_cv_var_tzname+y} 14002then : 14003 printf %s "(cached) " >&6 14004else $as_nop 14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14006/* end confdefs.h. */ 14007#include <time.h> 14008int 14009main (void) 14010{ 14011#if !HAVE_DECL_TZNAME 14012extern char *tzname[]; 14013#endif 14014return tzname[0][0]; 14015 ; 14016 return 0; 14017} 14018_ACEOF 14019if ac_fn_c_try_link "$LINENO" 14020then : 14021 ac_cv_var_tzname=yes 14022else $as_nop 14023 ac_cv_var_tzname=no 14024fi 14025rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14026 conftest$ac_exeext conftest.$ac_ext 14027fi 14028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 14029printf "%s\n" "$ac_cv_var_tzname" >&6; } 14030 if test $ac_cv_var_tzname = yes; then 14031 14032printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 14033 14034 fi 14035 14036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 14037printf %s "checking for tm_isdst in struct tm... " >&6; } 14038if test ${ac_cv_struct_tm_isdst+y} 14039then : 14040 printf %s "(cached) " >&6 14041else $as_nop 14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14043/* end confdefs.h. */ 14044#include <sys/types.h> 14045#include <$ac_cv_struct_tm> 14046int 14047main (void) 14048{ 14049struct tm tm; tm.tm_isdst; 14050 ; 14051 return 0; 14052} 14053_ACEOF 14054if ac_fn_c_try_compile "$LINENO" 14055then : 14056 ac_cv_struct_tm_isdst=yes 14057else $as_nop 14058 ac_cv_struct_tm_isdst=no 14059fi 14060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14061fi 14062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 14063printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; } 14064if test "$ac_cv_struct_tm_isdst" = yes; then 14065 14066printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h 14067 14068fi 14069 14070 14071ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 14072#include <stdlib.h> 14073" "$ac_c_undeclared_builtin_options" "CFLAGS" 14074if test "x$ac_cv_have_decl_daylight" = xyes 14075then : 14076 ac_have_decl=1 14077else $as_nop 14078 ac_have_decl=0 14079fi 14080printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h 14081 14082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 14083printf %s "checking for daylight... " >&6; } 14084if test ${ac_cv_var_daylight+y} 14085then : 14086 printf %s "(cached) " >&6 14087else $as_nop 14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14089/* end confdefs.h. */ 14090#include <time.h> 14091#include <stdlib.h> 14092int 14093main (void) 14094{ 14095#if !HAVE_DECL_DAYLIGHT 14096extern int daylight; 14097#endif 14098daylight = atoi("1"); 14099 ; 14100 return 0; 14101} 14102_ACEOF 14103if ac_fn_c_try_link "$LINENO" 14104then : 14105 ac_cv_var_daylight=yes 14106else $as_nop 14107 ac_cv_var_daylight=no 14108fi 14109rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14110 conftest$ac_exeext conftest.$ac_ext 14111fi 14112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 14113printf "%s\n" "$ac_cv_var_daylight" >&6; } 14114 if test $ac_cv_var_daylight = yes; then 14115 14116printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h 14117 14118 fi 14119 14120# Check whether --enable-largefile was given. 14121if test ${enable_largefile+y} 14122then : 14123 enableval=$enable_largefile; 14124fi 14125 14126if test "$enable_largefile" != no; then 14127 14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14129printf %s "checking for special C compiler options needed for large files... " >&6; } 14130if test ${ac_cv_sys_largefile_CC+y} 14131then : 14132 printf %s "(cached) " >&6 14133else $as_nop 14134 ac_cv_sys_largefile_CC=no 14135 if test "$GCC" != yes; then 14136 ac_save_CC=$CC 14137 while :; do 14138 # IRIX 6.2 and later do not support large files by default, 14139 # so use the C compiler's -n32 option if that helps. 14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142#include <sys/types.h> 14143 /* Check that off_t can represent 2**63 - 1 correctly. 14144 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14145 since some C++ compilers masquerading as C compilers 14146 incorrectly reject 9223372036854775807. */ 14147#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14149 && LARGE_OFF_T % 2147483647 == 1) 14150 ? 1 : -1]; 14151int 14152main (void) 14153{ 14154 14155 ; 14156 return 0; 14157} 14158_ACEOF 14159 if ac_fn_c_try_compile "$LINENO" 14160then : 14161 break 14162fi 14163rm -f core conftest.err conftest.$ac_objext conftest.beam 14164 CC="$CC -n32" 14165 if ac_fn_c_try_compile "$LINENO" 14166then : 14167 ac_cv_sys_largefile_CC=' -n32'; break 14168fi 14169rm -f core conftest.err conftest.$ac_objext conftest.beam 14170 break 14171 done 14172 CC=$ac_save_CC 14173 rm -f conftest.$ac_ext 14174 fi 14175fi 14176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14177printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 14178 if test "$ac_cv_sys_largefile_CC" != no; then 14179 CC=$CC$ac_cv_sys_largefile_CC 14180 fi 14181 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14183printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14184if test ${ac_cv_sys_file_offset_bits+y} 14185then : 14186 printf %s "(cached) " >&6 14187else $as_nop 14188 while :; do 14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190/* end confdefs.h. */ 14191#include <sys/types.h> 14192 /* Check that off_t can represent 2**63 - 1 correctly. 14193 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14194 since some C++ compilers masquerading as C compilers 14195 incorrectly reject 9223372036854775807. */ 14196#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14198 && LARGE_OFF_T % 2147483647 == 1) 14199 ? 1 : -1]; 14200int 14201main (void) 14202{ 14203 14204 ; 14205 return 0; 14206} 14207_ACEOF 14208if ac_fn_c_try_compile "$LINENO" 14209then : 14210 ac_cv_sys_file_offset_bits=no; break 14211fi 14212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215#define _FILE_OFFSET_BITS 64 14216#include <sys/types.h> 14217 /* Check that off_t can represent 2**63 - 1 correctly. 14218 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14219 since some C++ compilers masquerading as C compilers 14220 incorrectly reject 9223372036854775807. */ 14221#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14223 && LARGE_OFF_T % 2147483647 == 1) 14224 ? 1 : -1]; 14225int 14226main (void) 14227{ 14228 14229 ; 14230 return 0; 14231} 14232_ACEOF 14233if ac_fn_c_try_compile "$LINENO" 14234then : 14235 ac_cv_sys_file_offset_bits=64; break 14236fi 14237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14238 ac_cv_sys_file_offset_bits=unknown 14239 break 14240done 14241fi 14242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14243printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 14244case $ac_cv_sys_file_offset_bits in #( 14245 no | unknown) ;; 14246 *) 14247printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 14248;; 14249esac 14250rm -rf conftest* 14251 if test $ac_cv_sys_file_offset_bits = unknown; then 14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14253printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 14254if test ${ac_cv_sys_large_files+y} 14255then : 14256 printf %s "(cached) " >&6 14257else $as_nop 14258 while :; do 14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14260/* end confdefs.h. */ 14261#include <sys/types.h> 14262 /* Check that off_t can represent 2**63 - 1 correctly. 14263 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14264 since some C++ compilers masquerading as C compilers 14265 incorrectly reject 9223372036854775807. */ 14266#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14268 && LARGE_OFF_T % 2147483647 == 1) 14269 ? 1 : -1]; 14270int 14271main (void) 14272{ 14273 14274 ; 14275 return 0; 14276} 14277_ACEOF 14278if ac_fn_c_try_compile "$LINENO" 14279then : 14280 ac_cv_sys_large_files=no; break 14281fi 14282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14284/* end confdefs.h. */ 14285#define _LARGE_FILES 1 14286#include <sys/types.h> 14287 /* Check that off_t can represent 2**63 - 1 correctly. 14288 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14289 since some C++ compilers masquerading as C compilers 14290 incorrectly reject 9223372036854775807. */ 14291#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14293 && LARGE_OFF_T % 2147483647 == 1) 14294 ? 1 : -1]; 14295int 14296main (void) 14297{ 14298 14299 ; 14300 return 0; 14301} 14302_ACEOF 14303if ac_fn_c_try_compile "$LINENO" 14304then : 14305 ac_cv_sys_large_files=1; break 14306fi 14307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14308 ac_cv_sys_large_files=unknown 14309 break 14310done 14311fi 14312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14313printf "%s\n" "$ac_cv_sys_large_files" >&6; } 14314case $ac_cv_sys_large_files in #( 14315 no | unknown) ;; 14316 *) 14317printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 14318;; 14319esac 14320rm -rf conftest* 14321 fi 14322fi 14323 14324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 14325printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 14326if test ${ac_cv_sys_largefile_source+y} 14327then : 14328 printf %s "(cached) " >&6 14329else $as_nop 14330 while :; do 14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14332/* end confdefs.h. */ 14333#include <sys/types.h> /* for off_t */ 14334 #include <stdio.h> 14335int 14336main (void) 14337{ 14338int (*fp) (FILE *, off_t, int) = fseeko; 14339 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14340 ; 14341 return 0; 14342} 14343_ACEOF 14344if ac_fn_c_try_link "$LINENO" 14345then : 14346 ac_cv_sys_largefile_source=no; break 14347fi 14348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14349 conftest$ac_exeext conftest.$ac_ext 14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14351/* end confdefs.h. */ 14352#define _LARGEFILE_SOURCE 1 14353#include <sys/types.h> /* for off_t */ 14354 #include <stdio.h> 14355int 14356main (void) 14357{ 14358int (*fp) (FILE *, off_t, int) = fseeko; 14359 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14360 ; 14361 return 0; 14362} 14363_ACEOF 14364if ac_fn_c_try_link "$LINENO" 14365then : 14366 ac_cv_sys_largefile_source=1; break 14367fi 14368rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14369 conftest$ac_exeext conftest.$ac_ext 14370 ac_cv_sys_largefile_source=unknown 14371 break 14372done 14373fi 14374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 14375printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } 14376case $ac_cv_sys_largefile_source in #( 14377 no | unknown) ;; 14378 *) 14379printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h 14380;; 14381esac 14382rm -rf conftest* 14383 14384# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14385# in glibc 2.1.3, but that breaks too many other things. 14386# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14387if test $ac_cv_sys_largefile_source != unknown; then 14388 14389printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 14390 14391fi 14392 14393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 14394printf %s "checking for mbstate_t... " >&6; } 14395if test ${ac_cv_type_mbstate_t+y} 14396then : 14397 printf %s "(cached) " >&6 14398else $as_nop 14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14400/* end confdefs.h. */ 14401$ac_includes_default 14402# include <wchar.h> 14403int 14404main (void) 14405{ 14406mbstate_t x; return sizeof x; 14407 ; 14408 return 0; 14409} 14410_ACEOF 14411if ac_fn_c_try_compile "$LINENO" 14412then : 14413 ac_cv_type_mbstate_t=yes 14414else $as_nop 14415 ac_cv_type_mbstate_t=no 14416fi 14417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14418fi 14419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 14420printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } 14421 if test $ac_cv_type_mbstate_t = yes; then 14422 14423printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h 14424 14425 else 14426 14427printf "%s\n" "#define mbstate_t int" >>confdefs.h 14428 14429 fi 14430 14431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 14432printf %s "checking for struct option in getopt... " >&6; } 14433if test ${ac_cv_struct_option_getopt_h+y} 14434then : 14435 printf %s "(cached) " >&6 14436else $as_nop 14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14438/* end confdefs.h. */ 14439#include <getopt.h> 14440int 14441main (void) 14442{ 14443struct option op; op.name; 14444 ; 14445 return 0; 14446} 14447_ACEOF 14448if ac_fn_c_try_compile "$LINENO" 14449then : 14450 ac_cv_struct_option_getopt_h=yes 14451else $as_nop 14452 ac_cv_struct_option_getopt_h=no 14453fi 14454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14455fi 14456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 14457printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; } 14458if test "$ac_cv_struct_option_getopt_h" = yes; then 14459 14460printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 14461 14462fi 14463 14464 14465 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 14466" 14467if test "x$ac_cv_type_pid_t" = xyes 14468then : 14469 14470else $as_nop 14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14472/* end confdefs.h. */ 14473 14474 #if defined _WIN64 && !defined __CYGWIN__ 14475 LLP64 14476 #endif 14477 14478int 14479main (void) 14480{ 14481 14482 ; 14483 return 0; 14484} 14485 14486_ACEOF 14487if ac_fn_c_try_compile "$LINENO" 14488then : 14489 ac_pid_type='int' 14490else $as_nop 14491 ac_pid_type='__int64' 14492fi 14493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14494 14495printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 14496 14497 14498fi 14499 14500 14501ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 14502case $ac_cv_c_uint8_t in #( 14503 no|yes) ;; #( 14504 *) 14505 14506printf "%s\n" "#define _UINT8_T 1" >>confdefs.h 14507 14508 14509printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h 14510;; 14511 esac 14512 14513ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 14514case $ac_cv_c_uint16_t in #( 14515 no|yes) ;; #( 14516 *) 14517 14518 14519printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h 14520;; 14521 esac 14522 14523ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 14524case $ac_cv_c_uint32_t in #( 14525 no|yes) ;; #( 14526 *) 14527 14528printf "%s\n" "#define _UINT32_T 1" >>confdefs.h 14529 14530 14531printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h 14532;; 14533 esac 14534 14535ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 14536case $ac_cv_c_int32_t in #( 14537 no|yes) ;; #( 14538 *) 14539 14540printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h 14541;; 14542esac 14543 14544ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 14545case $ac_cv_c_uint64_t in #( 14546 no|yes) ;; #( 14547 *) 14548 14549printf "%s\n" "#define _UINT64_T 1" >>confdefs.h 14550 14551 14552printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h 14553;; 14554 esac 14555 14556ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 14557case $ac_cv_c_int64_t in #( 14558 no|yes) ;; #( 14559 *) 14560 14561printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h 14562;; 14563esac 14564 14565 14566 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 14567if test "x$ac_cv_type_intptr_t" = xyes 14568then : 14569 14570printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h 14571 14572else $as_nop 14573 for ac_type in 'int' 'long int' 'long long int'; do 14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14575/* end confdefs.h. */ 14576$ac_includes_default 14577int 14578main (void) 14579{ 14580static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 14581test_array [0] = 0; 14582return test_array [0]; 14583 14584 ; 14585 return 0; 14586} 14587_ACEOF 14588if ac_fn_c_try_compile "$LINENO" 14589then : 14590 14591printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h 14592 14593 ac_type= 14594fi 14595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14596 test -z "$ac_type" && break 14597 done 14598fi 14599 14600 14601 14602 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 14603if test "x$ac_cv_type_uintptr_t" = xyes 14604then : 14605 14606printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 14607 14608else $as_nop 14609 for ac_type in 'unsigned int' 'unsigned long int' \ 14610 'unsigned long long int'; do 14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14612/* end confdefs.h. */ 14613$ac_includes_default 14614int 14615main (void) 14616{ 14617static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 14618test_array [0] = 0; 14619return test_array [0]; 14620 14621 ; 14622 return 0; 14623} 14624_ACEOF 14625if ac_fn_c_try_compile "$LINENO" 14626then : 14627 14628printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 14629 14630 ac_type= 14631fi 14632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14633 test -z "$ac_type" && break 14634 done 14635fi 14636 14637 14638 14639ac_func= 14640for ac_item in $ac_func_c_list 14641do 14642 if test $ac_func; then 14643 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 14644 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 14645 echo "#define $ac_item 1" >> confdefs.h 14646 fi 14647 ac_func= 14648 else 14649 ac_func=$ac_item 14650 fi 14651done 14652 14653 14654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 14655printf %s "checking for working mmap... " >&6; } 14656if test ${ac_cv_func_mmap_fixed_mapped+y} 14657then : 14658 printf %s "(cached) " >&6 14659else $as_nop 14660 if test "$cross_compiling" = yes 14661then : 14662 case "$host_os" in # (( 14663 # Guess yes on platforms where we know the result. 14664 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 14665 # If we don't know, assume the worst. 14666 *) ac_cv_func_mmap_fixed_mapped=no ;; 14667 esac 14668else $as_nop 14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14670/* end confdefs.h. */ 14671$ac_includes_default 14672/* malloc might have been renamed as rpl_malloc. */ 14673#undef malloc 14674 14675/* Thanks to Mike Haertel and Jim Avera for this test. 14676 Here is a matrix of mmap possibilities: 14677 mmap private not fixed 14678 mmap private fixed at somewhere currently unmapped 14679 mmap private fixed at somewhere already mapped 14680 mmap shared not fixed 14681 mmap shared fixed at somewhere currently unmapped 14682 mmap shared fixed at somewhere already mapped 14683 For private mappings, we should verify that changes cannot be read() 14684 back from the file, nor mmap's back from the file at a different 14685 address. (There have been systems where private was not correctly 14686 implemented like the infamous i386 svr4.0, and systems where the 14687 VM page cache was not coherent with the file system buffer cache 14688 like early versions of FreeBSD and possibly contemporary NetBSD.) 14689 For shared mappings, we should conversely verify that changes get 14690 propagated back to all the places they're supposed to be. 14691 14692 Grep wants private fixed already mapped. 14693 The main things grep needs to know about mmap are: 14694 * does it exist and is it safe to write into the mmap'd area 14695 * how to use it (BSD variants) */ 14696 14697#include <fcntl.h> 14698#include <sys/mman.h> 14699 14700/* This mess was copied from the GNU getpagesize.h. */ 14701#ifndef HAVE_GETPAGESIZE 14702# ifdef _SC_PAGESIZE 14703# define getpagesize() sysconf(_SC_PAGESIZE) 14704# else /* no _SC_PAGESIZE */ 14705# ifdef HAVE_SYS_PARAM_H 14706# include <sys/param.h> 14707# ifdef EXEC_PAGESIZE 14708# define getpagesize() EXEC_PAGESIZE 14709# else /* no EXEC_PAGESIZE */ 14710# ifdef NBPG 14711# define getpagesize() NBPG * CLSIZE 14712# ifndef CLSIZE 14713# define CLSIZE 1 14714# endif /* no CLSIZE */ 14715# else /* no NBPG */ 14716# ifdef NBPC 14717# define getpagesize() NBPC 14718# else /* no NBPC */ 14719# ifdef PAGESIZE 14720# define getpagesize() PAGESIZE 14721# endif /* PAGESIZE */ 14722# endif /* no NBPC */ 14723# endif /* no NBPG */ 14724# endif /* no EXEC_PAGESIZE */ 14725# else /* no HAVE_SYS_PARAM_H */ 14726# define getpagesize() 8192 /* punt totally */ 14727# endif /* no HAVE_SYS_PARAM_H */ 14728# endif /* no _SC_PAGESIZE */ 14729 14730#endif /* no HAVE_GETPAGESIZE */ 14731 14732int 14733main (void) 14734{ 14735 char *data, *data2, *data3; 14736 const char *cdata2; 14737 int i, pagesize; 14738 int fd, fd2; 14739 14740 pagesize = getpagesize (); 14741 14742 /* First, make a file with some known garbage in it. */ 14743 data = (char *) malloc (pagesize); 14744 if (!data) 14745 return 1; 14746 for (i = 0; i < pagesize; ++i) 14747 *(data + i) = rand (); 14748 umask (0); 14749 fd = creat ("conftest.mmap", 0600); 14750 if (fd < 0) 14751 return 2; 14752 if (write (fd, data, pagesize) != pagesize) 14753 return 3; 14754 close (fd); 14755 14756 /* Next, check that the tail of a page is zero-filled. File must have 14757 non-zero length, otherwise we risk SIGBUS for entire page. */ 14758 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 14759 if (fd2 < 0) 14760 return 4; 14761 cdata2 = ""; 14762 if (write (fd2, cdata2, 1) != 1) 14763 return 5; 14764 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 14765 if (data2 == MAP_FAILED) 14766 return 6; 14767 for (i = 0; i < pagesize; ++i) 14768 if (*(data2 + i)) 14769 return 7; 14770 close (fd2); 14771 if (munmap (data2, pagesize)) 14772 return 8; 14773 14774 /* Next, try to mmap the file at a fixed address which already has 14775 something else allocated at it. If we can, also make sure that 14776 we see the same garbage. */ 14777 fd = open ("conftest.mmap", O_RDWR); 14778 if (fd < 0) 14779 return 9; 14780 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 14781 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 14782 return 10; 14783 for (i = 0; i < pagesize; ++i) 14784 if (*(data + i) != *(data2 + i)) 14785 return 11; 14786 14787 /* Finally, make sure that changes to the mapped area do not 14788 percolate back to the file as seen by read(). (This is a bug on 14789 some variants of i386 svr4.0.) */ 14790 for (i = 0; i < pagesize; ++i) 14791 *(data2 + i) = *(data2 + i) + 1; 14792 data3 = (char *) malloc (pagesize); 14793 if (!data3) 14794 return 12; 14795 if (read (fd, data3, pagesize) != pagesize) 14796 return 13; 14797 for (i = 0; i < pagesize; ++i) 14798 if (*(data + i) != *(data3 + i)) 14799 return 14; 14800 close (fd); 14801 free (data); 14802 free (data3); 14803 return 0; 14804} 14805_ACEOF 14806if ac_fn_c_try_run "$LINENO" 14807then : 14808 ac_cv_func_mmap_fixed_mapped=yes 14809else $as_nop 14810 ac_cv_func_mmap_fixed_mapped=no 14811fi 14812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14813 conftest.$ac_objext conftest.beam conftest.$ac_ext 14814fi 14815 14816fi 14817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 14818printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 14819if test $ac_cv_func_mmap_fixed_mapped = yes; then 14820 14821printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 14822 14823fi 14824rm -f conftest.mmap conftest.txt 14825 14826 14827 14828 14829 14830 14831if test "x$ac_cv_func_fork" = xyes; then 14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14833printf %s "checking for working fork... " >&6; } 14834if test ${ac_cv_func_fork_works+y} 14835then : 14836 printf %s "(cached) " >&6 14837else $as_nop 14838 if test "$cross_compiling" = yes 14839then : 14840 ac_cv_func_fork_works=cross 14841else $as_nop 14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14843/* end confdefs.h. */ 14844$ac_includes_default 14845int 14846main (void) 14847{ 14848 14849 /* By Ruediger Kuhlmann. */ 14850 return fork () < 0; 14851 14852 ; 14853 return 0; 14854} 14855_ACEOF 14856if ac_fn_c_try_run "$LINENO" 14857then : 14858 ac_cv_func_fork_works=yes 14859else $as_nop 14860 ac_cv_func_fork_works=no 14861fi 14862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14863 conftest.$ac_objext conftest.beam conftest.$ac_ext 14864fi 14865 14866fi 14867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14868printf "%s\n" "$ac_cv_func_fork_works" >&6; } 14869 14870else 14871 ac_cv_func_fork_works=$ac_cv_func_fork 14872fi 14873if test "x$ac_cv_func_fork_works" = xcross; then 14874 case $host in 14875 *-*-amigaos* | *-*-msdosdjgpp*) 14876 # Override, as these systems have only a dummy fork() stub 14877 ac_cv_func_fork_works=no 14878 ;; 14879 *) 14880 ac_cv_func_fork_works=yes 14881 ;; 14882 esac 14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14884printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14885fi 14886ac_cv_func_vfork_works=$ac_cv_func_vfork 14887if test "x$ac_cv_func_vfork" = xyes; then 14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14889printf %s "checking for working vfork... " >&6; } 14890if test ${ac_cv_func_vfork_works+y} 14891then : 14892 printf %s "(cached) " >&6 14893else $as_nop 14894 if test "$cross_compiling" = yes 14895then : 14896 ac_cv_func_vfork_works=cross 14897else $as_nop 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14899/* end confdefs.h. */ 14900/* Thanks to Paul Eggert for this test. */ 14901$ac_includes_default 14902#include <signal.h> 14903#include <sys/wait.h> 14904#ifdef HAVE_VFORK_H 14905# include <vfork.h> 14906#endif 14907 14908static void 14909do_nothing (int sig) 14910{ 14911 (void) sig; 14912} 14913 14914/* On some sparc systems, changes by the child to local and incoming 14915 argument registers are propagated back to the parent. The compiler 14916 is told about this with #include <vfork.h>, but some compilers 14917 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14918 static variable whose address is put into a register that is 14919 clobbered by the vfork. */ 14920static void 14921sparc_address_test (int arg) 14922{ 14923 static pid_t child; 14924 if (!child) { 14925 child = vfork (); 14926 if (child < 0) { 14927 perror ("vfork"); 14928 _exit(2); 14929 } 14930 if (!child) { 14931 arg = getpid(); 14932 write(-1, "", 0); 14933 _exit (arg); 14934 } 14935 } 14936} 14937 14938int 14939main (void) 14940{ 14941 pid_t parent = getpid (); 14942 pid_t child; 14943 14944 sparc_address_test (0); 14945 14946 /* On Solaris 2.4, changes by the child to the signal handler 14947 also munge signal handlers in the parent. To detect this, 14948 start by putting the parent's handler in a known state. */ 14949 signal (SIGTERM, SIG_DFL); 14950 14951 child = vfork (); 14952 14953 if (child == 0) { 14954 /* Here is another test for sparc vfork register problems. This 14955 test uses lots of local variables, at least as many local 14956 variables as main has allocated so far including compiler 14957 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14958 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14959 reuse the register of parent for one of the local variables, 14960 since it will think that parent can't possibly be used any more 14961 in this routine. Assigning to the local variable will thus 14962 munge parent in the parent process. */ 14963 pid_t 14964 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14965 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14966 /* Convince the compiler that p..p7 are live; otherwise, it might 14967 use the same hardware register for all 8 local variables. */ 14968 if (p != p1 || p != p2 || p != p3 || p != p4 14969 || p != p5 || p != p6 || p != p7) 14970 _exit(1); 14971 14972 /* Alter the child's signal handler. */ 14973 if (signal (SIGTERM, do_nothing) != SIG_DFL) 14974 _exit(1); 14975 14976 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14977 from child file descriptors. If the child closes a descriptor 14978 before it execs or exits, this munges the parent's descriptor 14979 as well. Test for this by closing stdout in the child. */ 14980 _exit(close(fileno(stdout)) != 0); 14981 } else { 14982 int status; 14983 struct stat st; 14984 14985 while (wait(&status) != child) 14986 ; 14987 return ( 14988 /* Was there some problem with vforking? */ 14989 child < 0 14990 14991 /* Did the child munge the parent's signal handler? */ 14992 || signal (SIGTERM, SIG_DFL) != SIG_DFL 14993 14994 /* Did the child fail? (This shouldn't happen.) */ 14995 || status 14996 14997 /* Did the vfork/compiler bug occur? */ 14998 || parent != getpid() 14999 15000 /* Did the file descriptor bug occur? */ 15001 || fstat(fileno(stdout), &st) != 0 15002 ); 15003 } 15004} 15005_ACEOF 15006if ac_fn_c_try_run "$LINENO" 15007then : 15008 ac_cv_func_vfork_works=yes 15009else $as_nop 15010 ac_cv_func_vfork_works=no 15011fi 15012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15013 conftest.$ac_objext conftest.beam conftest.$ac_ext 15014fi 15015 15016fi 15017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15018printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 15019 15020fi; 15021if test "x$ac_cv_func_fork_works" = xcross; then 15022 ac_cv_func_vfork_works=$ac_cv_func_vfork 15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15024printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15025fi 15026 15027if test "x$ac_cv_func_vfork_works" = xyes; then 15028 15029printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15030 15031else 15032 15033printf "%s\n" "#define vfork fork" >>confdefs.h 15034 15035fi 15036if test "x$ac_cv_func_fork_works" = xyes; then 15037 15038printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 15039 15040fi 15041 15042 15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 15044printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 15045if test ${ac_cv_func_mbrtowc+y} 15046then : 15047 printf %s "(cached) " >&6 15048else $as_nop 15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15050/* end confdefs.h. */ 15051#include <wchar.h> 15052int 15053main (void) 15054{ 15055wchar_t wc; 15056 char const s[] = ""; 15057 size_t n = 1; 15058 mbstate_t state; 15059 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 15060 ; 15061 return 0; 15062} 15063_ACEOF 15064if ac_fn_c_try_link "$LINENO" 15065then : 15066 ac_cv_func_mbrtowc=yes 15067else $as_nop 15068 ac_cv_func_mbrtowc=no 15069fi 15070rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15071 conftest$ac_exeext conftest.$ac_ext 15072fi 15073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 15074printf "%s\n" "$ac_cv_func_mbrtowc" >&6; } 15075 if test $ac_cv_func_mbrtowc = yes; then 15076 15077printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h 15078 15079 fi 15080 15081 15082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 15083printf %s "checking for gcc compiler warnings... " >&6; } 15084# Check whether --enable-warnings was given. 15085if test ${enable_warnings+y} 15086then : 15087 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15089printf "%s\n" "no" >&6; } 15090 WARNINGS= 15091else 15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15093printf "%s\n" "yes" >&6; } 15094 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 15095 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 15096 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 15097 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 15098fi 15099else $as_nop 15100 15101if test "$GCC" = yes; then 15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15103printf "%s\n" "yes" >&6; } 15104 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 15105 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 15106 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 15107 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 15108else 15109 WARNINGS= 15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15111printf "%s\n" "no" >&6; } 15112fi 15113fi 15114 15115 15116ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 15117if test "x$ac_cv_func_strndup" = xyes 15118then : 15119 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 15120 15121fi 15122ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 15123if test "x$ac_cv_func_mkstemp" = xyes 15124then : 15125 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 15126 15127fi 15128ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 15129if test "x$ac_cv_func_mkostemp" = xyes 15130then : 15131 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 15132 15133fi 15134ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 15135if test "x$ac_cv_func_utimes" = xyes 15136then : 15137 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 15138 15139fi 15140ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" 15141if test "x$ac_cv_func_utime" = xyes 15142then : 15143 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h 15144 15145fi 15146ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" 15147if test "x$ac_cv_func_wcwidth" = xyes 15148then : 15149 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h 15150 15151fi 15152ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" 15153if test "x$ac_cv_func_strtof" = xyes 15154then : 15155 printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h 15156 15157fi 15158ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale" 15159if test "x$ac_cv_func_newlocale" = xyes 15160then : 15161 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h 15162 15163fi 15164ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale" 15165if test "x$ac_cv_func_uselocale" = xyes 15166then : 15167 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h 15168 15169fi 15170ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale" 15171if test "x$ac_cv_func_freelocale" = xyes 15172then : 15173 printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h 15174 15175fi 15176ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" 15177if test "x$ac_cv_func_memmem" = xyes 15178then : 15179 printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h 15180 15181fi 15182ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 15183if test "x$ac_cv_func_pipe2" = xyes 15184then : 15185 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 15186 15187fi 15188ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" 15189if test "x$ac_cv_func_posix_spawnp" = xyes 15190then : 15191 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h 15192 15193fi 15194 15195 15196ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 15197if test "x$ac_cv_func_getopt_long" = xyes 15198then : 15199 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h 15200 15201else $as_nop 15202 case " $LIBOBJS " in 15203 *" getopt_long.$ac_objext "* ) ;; 15204 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 15205 ;; 15206esac 15207 15208fi 15209ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 15210if test "x$ac_cv_func_asprintf" = xyes 15211then : 15212 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 15213 15214else $as_nop 15215 case " $LIBOBJS " in 15216 *" asprintf.$ac_objext "* ) ;; 15217 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 15218 ;; 15219esac 15220 15221fi 15222ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 15223if test "x$ac_cv_func_vasprintf" = xyes 15224then : 15225 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 15226 15227else $as_nop 15228 case " $LIBOBJS " in 15229 *" vasprintf.$ac_objext "* ) ;; 15230 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 15231 ;; 15232esac 15233 15234fi 15235ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15236if test "x$ac_cv_func_strlcpy" = xyes 15237then : 15238 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 15239 15240else $as_nop 15241 case " $LIBOBJS " in 15242 *" strlcpy.$ac_objext "* ) ;; 15243 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 15244 ;; 15245esac 15246 15247fi 15248ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15249if test "x$ac_cv_func_strlcat" = xyes 15250then : 15251 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 15252 15253else $as_nop 15254 case " $LIBOBJS " in 15255 *" strlcat.$ac_objext "* ) ;; 15256 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 15257 ;; 15258esac 15259 15260fi 15261ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 15262if test "x$ac_cv_func_getline" = xyes 15263then : 15264 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h 15265 15266else $as_nop 15267 case " $LIBOBJS " in 15268 *" getline.$ac_objext "* ) ;; 15269 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 15270 ;; 15271esac 15272 15273fi 15274ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 15275if test "x$ac_cv_func_ctime_r" = xyes 15276then : 15277 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 15278 15279else $as_nop 15280 case " $LIBOBJS " in 15281 *" ctime_r.$ac_objext "* ) ;; 15282 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 15283 ;; 15284esac 15285 15286fi 15287ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 15288if test "x$ac_cv_func_asctime_r" = xyes 15289then : 15290 printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h 15291 15292else $as_nop 15293 case " $LIBOBJS " in 15294 *" asctime_r.$ac_objext "* ) ;; 15295 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 15296 ;; 15297esac 15298 15299fi 15300ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 15301if test "x$ac_cv_func_localtime_r" = xyes 15302then : 15303 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 15304 15305else $as_nop 15306 case " $LIBOBJS " in 15307 *" localtime_r.$ac_objext "* ) ;; 15308 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 15309 ;; 15310esac 15311 15312fi 15313ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 15314if test "x$ac_cv_func_gmtime_r" = xyes 15315then : 15316 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 15317 15318else $as_nop 15319 case " $LIBOBJS " in 15320 *" gmtime_r.$ac_objext "* ) ;; 15321 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 15322 ;; 15323esac 15324 15325fi 15326ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 15327if test "x$ac_cv_func_pread" = xyes 15328then : 15329 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 15330 15331else $as_nop 15332 case " $LIBOBJS " in 15333 *" pread.$ac_objext "* ) ;; 15334 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 15335 ;; 15336esac 15337 15338fi 15339ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 15340if test "x$ac_cv_func_strcasestr" = xyes 15341then : 15342 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 15343 15344else $as_nop 15345 case " $LIBOBJS " in 15346 *" strcasestr.$ac_objext "* ) ;; 15347 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 15348 ;; 15349esac 15350 15351fi 15352ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 15353if test "x$ac_cv_func_fmtcheck" = xyes 15354then : 15355 printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h 15356 15357else $as_nop 15358 case " $LIBOBJS " in 15359 *" fmtcheck.$ac_objext "* ) ;; 15360 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 15361 ;; 15362esac 15363 15364fi 15365ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 15366if test "x$ac_cv_func_dprintf" = xyes 15367then : 15368 printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h 15369 15370else $as_nop 15371 case " $LIBOBJS " in 15372 *" dprintf.$ac_objext "* ) ;; 15373 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 15374 ;; 15375esac 15376 15377fi 15378 15379 15380if test "$enable_zlib" != "no"; then 15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 15382printf %s "checking for gzopen in -lz... " >&6; } 15383if test ${ac_cv_lib_z_gzopen+y} 15384then : 15385 printf %s "(cached) " >&6 15386else $as_nop 15387 ac_check_lib_save_LIBS=$LIBS 15388LIBS="-lz $LIBS" 15389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15390/* end confdefs.h. */ 15391 15392/* Override any GCC internal prototype to avoid an error. 15393 Use char because int might match the return type of a GCC 15394 builtin and then its argument prototype would still apply. */ 15395char gzopen (); 15396int 15397main (void) 15398{ 15399return gzopen (); 15400 ; 15401 return 0; 15402} 15403_ACEOF 15404if ac_fn_c_try_link "$LINENO" 15405then : 15406 ac_cv_lib_z_gzopen=yes 15407else $as_nop 15408 ac_cv_lib_z_gzopen=no 15409fi 15410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15411 conftest$ac_exeext conftest.$ac_ext 15412LIBS=$ac_check_lib_save_LIBS 15413fi 15414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 15415printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; } 15416if test "x$ac_cv_lib_z_gzopen" = xyes 15417then : 15418 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 15419 15420 LIBS="-lz $LIBS" 15421 15422fi 15423 15424fi 15425if test "$enable_bzlib" != "no"; then 15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5 15427printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; } 15428if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y} 15429then : 15430 printf %s "(cached) " >&6 15431else $as_nop 15432 ac_check_lib_save_LIBS=$LIBS 15433LIBS="-lbz2 $LIBS" 15434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15435/* end confdefs.h. */ 15436 15437/* Override any GCC internal prototype to avoid an error. 15438 Use char because int might match the return type of a GCC 15439 builtin and then its argument prototype would still apply. */ 15440char BZ2_bzCompressInit (); 15441int 15442main (void) 15443{ 15444return BZ2_bzCompressInit (); 15445 ; 15446 return 0; 15447} 15448_ACEOF 15449if ac_fn_c_try_link "$LINENO" 15450then : 15451 ac_cv_lib_bz2_BZ2_bzCompressInit=yes 15452else $as_nop 15453 ac_cv_lib_bz2_BZ2_bzCompressInit=no 15454fi 15455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15456 conftest$ac_exeext conftest.$ac_ext 15457LIBS=$ac_check_lib_save_LIBS 15458fi 15459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 15460printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; } 15461if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes 15462then : 15463 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h 15464 15465 LIBS="-lbz2 $LIBS" 15466 15467fi 15468 15469fi 15470if test "$enable_xzlib" != "no"; then 15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5 15472printf %s "checking for lzma_stream_decoder in -llzma... " >&6; } 15473if test ${ac_cv_lib_lzma_lzma_stream_decoder+y} 15474then : 15475 printf %s "(cached) " >&6 15476else $as_nop 15477 ac_check_lib_save_LIBS=$LIBS 15478LIBS="-llzma $LIBS" 15479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15480/* end confdefs.h. */ 15481 15482/* Override any GCC internal prototype to avoid an error. 15483 Use char because int might match the return type of a GCC 15484 builtin and then its argument prototype would still apply. */ 15485char lzma_stream_decoder (); 15486int 15487main (void) 15488{ 15489return lzma_stream_decoder (); 15490 ; 15491 return 0; 15492} 15493_ACEOF 15494if ac_fn_c_try_link "$LINENO" 15495then : 15496 ac_cv_lib_lzma_lzma_stream_decoder=yes 15497else $as_nop 15498 ac_cv_lib_lzma_lzma_stream_decoder=no 15499fi 15500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15501 conftest$ac_exeext conftest.$ac_ext 15502LIBS=$ac_check_lib_save_LIBS 15503fi 15504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5 15505printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; } 15506if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes 15507then : 15508 printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h 15509 15510 LIBS="-llzma $LIBS" 15511 15512fi 15513 15514fi 15515if test "$enable_zstdlib" != "no"; then 15516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5 15517printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; } 15518if test ${ac_cv_lib_zstd_ZSTD_createDStream+y} 15519then : 15520 printf %s "(cached) " >&6 15521else $as_nop 15522 ac_check_lib_save_LIBS=$LIBS 15523LIBS="-lzstd $LIBS" 15524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15525/* end confdefs.h. */ 15526 15527/* Override any GCC internal prototype to avoid an error. 15528 Use char because int might match the return type of a GCC 15529 builtin and then its argument prototype would still apply. */ 15530char ZSTD_createDStream (); 15531int 15532main (void) 15533{ 15534return ZSTD_createDStream (); 15535 ; 15536 return 0; 15537} 15538_ACEOF 15539if ac_fn_c_try_link "$LINENO" 15540then : 15541 ac_cv_lib_zstd_ZSTD_createDStream=yes 15542else $as_nop 15543 ac_cv_lib_zstd_ZSTD_createDStream=no 15544fi 15545rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15546 conftest$ac_exeext conftest.$ac_ext 15547LIBS=$ac_check_lib_save_LIBS 15548fi 15549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5 15550printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; } 15551if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes 15552then : 15553 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h 15554 15555 LIBS="-lzstd $LIBS" 15556 15557fi 15558 15559fi 15560if test "$enable_lzlib" != "no"; then 15561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5 15562printf %s "checking for LZ_decompress_open in -llz... " >&6; } 15563if test ${ac_cv_lib_lz_LZ_decompress_open+y} 15564then : 15565 printf %s "(cached) " >&6 15566else $as_nop 15567 ac_check_lib_save_LIBS=$LIBS 15568LIBS="-llz $LIBS" 15569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15570/* end confdefs.h. */ 15571 15572/* Override any GCC internal prototype to avoid an error. 15573 Use char because int might match the return type of a GCC 15574 builtin and then its argument prototype would still apply. */ 15575char LZ_decompress_open (); 15576int 15577main (void) 15578{ 15579return LZ_decompress_open (); 15580 ; 15581 return 0; 15582} 15583_ACEOF 15584if ac_fn_c_try_link "$LINENO" 15585then : 15586 ac_cv_lib_lz_LZ_decompress_open=yes 15587else $as_nop 15588 ac_cv_lib_lz_LZ_decompress_open=no 15589fi 15590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15591 conftest$ac_exeext conftest.$ac_ext 15592LIBS=$ac_check_lib_save_LIBS 15593fi 15594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5 15595printf "%s\n" "$ac_cv_lib_lz_LZ_decompress_open" >&6; } 15596if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes 15597then : 15598 printf "%s\n" "#define HAVE_LIBLZ 1" >>confdefs.h 15599 15600 LIBS="-llz $LIBS" 15601 15602fi 15603 15604fi 15605if test "$enable_libseccomp" != "no"; then 15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5 15607printf %s "checking for seccomp_init in -lseccomp... " >&6; } 15608if test ${ac_cv_lib_seccomp_seccomp_init+y} 15609then : 15610 printf %s "(cached) " >&6 15611else $as_nop 15612 ac_check_lib_save_LIBS=$LIBS 15613LIBS="-lseccomp $LIBS" 15614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15615/* end confdefs.h. */ 15616 15617/* Override any GCC internal prototype to avoid an error. 15618 Use char because int might match the return type of a GCC 15619 builtin and then its argument prototype would still apply. */ 15620char seccomp_init (); 15621int 15622main (void) 15623{ 15624return seccomp_init (); 15625 ; 15626 return 0; 15627} 15628_ACEOF 15629if ac_fn_c_try_link "$LINENO" 15630then : 15631 ac_cv_lib_seccomp_seccomp_init=yes 15632else $as_nop 15633 ac_cv_lib_seccomp_seccomp_init=no 15634fi 15635rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15636 conftest$ac_exeext conftest.$ac_ext 15637LIBS=$ac_check_lib_save_LIBS 15638fi 15639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5 15640printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; } 15641if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes 15642then : 15643 printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h 15644 15645 LIBS="-lseccomp $LIBS" 15646 15647fi 15648 15649fi 15650if test "$MINGW" = 1; then 15651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 15652printf %s "checking for regexec in -lgnurx... " >&6; } 15653if test ${ac_cv_lib_gnurx_regexec+y} 15654then : 15655 printf %s "(cached) " >&6 15656else $as_nop 15657 ac_check_lib_save_LIBS=$LIBS 15658LIBS="-lgnurx $LIBS" 15659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15660/* end confdefs.h. */ 15661 15662/* Override any GCC internal prototype to avoid an error. 15663 Use char because int might match the return type of a GCC 15664 builtin and then its argument prototype would still apply. */ 15665char regexec (); 15666int 15667main (void) 15668{ 15669return regexec (); 15670 ; 15671 return 0; 15672} 15673_ACEOF 15674if ac_fn_c_try_link "$LINENO" 15675then : 15676 ac_cv_lib_gnurx_regexec=yes 15677else $as_nop 15678 ac_cv_lib_gnurx_regexec=no 15679fi 15680rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15681 conftest$ac_exeext conftest.$ac_ext 15682LIBS=$ac_check_lib_save_LIBS 15683fi 15684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 15685printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; } 15686if test "x$ac_cv_lib_gnurx_regexec" = xyes 15687then : 15688 printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h 15689 15690 LIBS="-lgnurx $LIBS" 15691 15692else $as_nop 15693 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 15694fi 15695 15696fi 15697 15698 if test "$cross_compiling" = yes; then 15699 IS_CROSS_COMPILE_TRUE= 15700 IS_CROSS_COMPILE_FALSE='#' 15701else 15702 IS_CROSS_COMPILE_TRUE='#' 15703 IS_CROSS_COMPILE_FALSE= 15704fi 15705 15706 15707if test "$enable_zlib" = "yes"; then 15708 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 15709 as_fn_error $? "zlib support requested but not found" "$LINENO" 5 15710 fi 15711fi 15712if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 15713 15714printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h 15715 15716fi 15717if test "$enable_bzlib" = "yes"; then 15718 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then 15719 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5 15720 fi 15721fi 15722if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then 15723 15724printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h 15725 15726fi 15727if test "$enable_xzlib" = "yes"; then 15728 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then 15729 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5 15730 fi 15731fi 15732if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then 15733 15734printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h 15735 15736fi 15737if test "$enable_zstdlib" = "yes"; then 15738 if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" != "yesyes"; then 15739 as_fn_error $? "zstdlib support requested but not found" "$LINENO" 5 15740 fi 15741fi 15742if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" = "yesyes"; then 15743 15744printf "%s\n" "#define ZSTDLIBSUPPORT 1" >>confdefs.h 15745 15746fi 15747if test "$enable_lzlib" = "yes"; then 15748 if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" != "yesyes"; then 15749 as_fn_error $? "lzlib support requested but not found" "$LINENO" 5 15750 fi 15751fi 15752if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" = "yesyes"; then 15753 15754printf "%s\n" "#define LZLIBSUPPORT 1" >>confdefs.h 15755 15756fi 15757 15758ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc" 15759 15760cat >confcache <<\_ACEOF 15761# This file is a shell script that caches the results of configure 15762# tests run on this system so they can be shared between configure 15763# scripts and configure runs, see configure's option --config-cache. 15764# It is not useful on other systems. If it contains results you don't 15765# want to keep, you may remove or edit it. 15766# 15767# config.status only pays attention to the cache file if you give it 15768# the --recheck option to rerun configure. 15769# 15770# `ac_cv_env_foo' variables (set or unset) will be overridden when 15771# loading this file, other *unset* `ac_cv_foo' will be assigned the 15772# following values. 15773 15774_ACEOF 15775 15776# The following way of writing the cache mishandles newlines in values, 15777# but we know of no workaround that is simple, portable, and efficient. 15778# So, we kill variables containing newlines. 15779# Ultrix sh set writes to stderr and can't be redirected directly, 15780# and sets the high bit in the cache file unless we assign to the vars. 15781( 15782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15783 eval ac_val=\$$ac_var 15784 case $ac_val in #( 15785 *${as_nl}*) 15786 case $ac_var in #( 15787 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15788printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15789 esac 15790 case $ac_var in #( 15791 _ | IFS | as_nl) ;; #( 15792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15793 *) { eval $ac_var=; unset $ac_var;} ;; 15794 esac ;; 15795 esac 15796 done 15797 15798 (set) 2>&1 | 15799 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15800 *${as_nl}ac_space=\ *) 15801 # `set' does not quote correctly, so add quotes: double-quote 15802 # substitution turns \\\\ into \\, and sed turns \\ into \. 15803 sed -n \ 15804 "s/'/'\\\\''/g; 15805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15806 ;; #( 15807 *) 15808 # `set' quotes correctly as required by POSIX, so do not add quotes. 15809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15810 ;; 15811 esac | 15812 sort 15813) | 15814 sed ' 15815 /^ac_cv_env_/b end 15816 t clear 15817 :clear 15818 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 15819 t end 15820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15821 :end' >>confcache 15822if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15823 if test -w "$cache_file"; then 15824 if test "x$cache_file" != "x/dev/null"; then 15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15826printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 15827 if test ! -f "$cache_file" || test -h "$cache_file"; then 15828 cat confcache >"$cache_file" 15829 else 15830 case $cache_file in #( 15831 */* | ?:*) 15832 mv -f confcache "$cache_file"$$ && 15833 mv -f "$cache_file"$$ "$cache_file" ;; #( 15834 *) 15835 mv -f confcache "$cache_file" ;; 15836 esac 15837 fi 15838 fi 15839 else 15840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15841printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 15842 fi 15843fi 15844rm -f confcache 15845 15846test "x$prefix" = xNONE && prefix=$ac_default_prefix 15847# Let make expand exec_prefix. 15848test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15849 15850DEFS=-DHAVE_CONFIG_H 15851 15852ac_libobjs= 15853ac_ltlibobjs= 15854U= 15855for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15856 # 1. Remove the extension, and $U if already installed. 15857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15858 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 15859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15860 # will be set to the directory where LIBOBJS objects are built. 15861 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15862 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15863done 15864LIBOBJS=$ac_libobjs 15865 15866LTLIBOBJS=$ac_ltlibobjs 15867 15868 15869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15870printf %s "checking that generated files are newer than configure... " >&6; } 15871 if test -n "$am_sleep_pid"; then 15872 # Hide warnings about reused PIDs. 15873 wait $am_sleep_pid 2>/dev/null 15874 fi 15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 15876printf "%s\n" "done" >&6; } 15877 if test -n "$EXEEXT"; then 15878 am__EXEEXT_TRUE= 15879 am__EXEEXT_FALSE='#' 15880else 15881 am__EXEEXT_TRUE='#' 15882 am__EXEEXT_FALSE= 15883fi 15884 15885if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 15886 as_fn_error $? "conditional \"MINGW\" was never defined. 15887Usually this means the macro was only invoked conditionally." "$LINENO" 5 15888fi 15889if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 15890 as_fn_error $? "conditional \"FSECT5\" was never defined. 15891Usually this means the macro was only invoked conditionally." "$LINENO" 5 15892fi 15893if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15894 as_fn_error $? "conditional \"AMDEP\" was never defined. 15895Usually this means the macro was only invoked conditionally." "$LINENO" 5 15896fi 15897if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15898 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15899Usually this means the macro was only invoked conditionally." "$LINENO" 5 15900fi 15901 15902if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 15903 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 15904Usually this means the macro was only invoked conditionally." "$LINENO" 5 15905fi 15906 15907: "${CONFIG_STATUS=./config.status}" 15908ac_write_fail=0 15909ac_clean_files_save=$ac_clean_files 15910ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15912printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 15913as_write_fail=0 15914cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15915#! $SHELL 15916# Generated by $as_me. 15917# Run this file to recreate the current configuration. 15918# Compiler output produced by configure, useful for debugging 15919# configure, is in config.log if it exists. 15920 15921debug=false 15922ac_cs_recheck=false 15923ac_cs_silent=false 15924 15925SHELL=\${CONFIG_SHELL-$SHELL} 15926export SHELL 15927_ASEOF 15928cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15929## -------------------- ## 15930## M4sh Initialization. ## 15931## -------------------- ## 15932 15933# Be more Bourne compatible 15934DUALCASE=1; export DUALCASE # for MKS sh 15935as_nop=: 15936if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 15937then : 15938 emulate sh 15939 NULLCMD=: 15940 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15941 # is contrary to our usage. Disable this feature. 15942 alias -g '${1+"$@"}'='"$@"' 15943 setopt NO_GLOB_SUBST 15944else $as_nop 15945 case `(set -o) 2>/dev/null` in #( 15946 *posix*) : 15947 set -o posix ;; #( 15948 *) : 15949 ;; 15950esac 15951fi 15952 15953 15954 15955# Reset variables that may have inherited troublesome values from 15956# the environment. 15957 15958# IFS needs to be set, to space, tab, and newline, in precisely that order. 15959# (If _AS_PATH_WALK were called with IFS unset, it would have the 15960# side effect of setting IFS to empty, thus disabling word splitting.) 15961# Quoting is to prevent editors from complaining about space-tab. 15962as_nl=' 15963' 15964export as_nl 15965IFS=" "" $as_nl" 15966 15967PS1='$ ' 15968PS2='> ' 15969PS4='+ ' 15970 15971# Ensure predictable behavior from utilities with locale-dependent output. 15972LC_ALL=C 15973export LC_ALL 15974LANGUAGE=C 15975export LANGUAGE 15976 15977# We cannot yet rely on "unset" to work, but we need these variables 15978# to be unset--not just set to an empty or harmless value--now, to 15979# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 15980# also avoids known problems related to "unset" and subshell syntax 15981# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 15982for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 15983do eval test \${$as_var+y} \ 15984 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15985done 15986 15987# Ensure that fds 0, 1, and 2 are open. 15988if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 15989if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 15990if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 15991 15992# The user is always right. 15993if ${PATH_SEPARATOR+false} :; then 15994 PATH_SEPARATOR=: 15995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15997 PATH_SEPARATOR=';' 15998 } 15999fi 16000 16001 16002# Find who we are. Look in the path if we contain no directory separator. 16003as_myself= 16004case $0 in #(( 16005 *[\\/]* ) as_myself=$0 ;; 16006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16007for as_dir in $PATH 16008do 16009 IFS=$as_save_IFS 16010 case $as_dir in #((( 16011 '') as_dir=./ ;; 16012 */) ;; 16013 *) as_dir=$as_dir/ ;; 16014 esac 16015 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 16016 done 16017IFS=$as_save_IFS 16018 16019 ;; 16020esac 16021# We did not find ourselves, most probably we were run as `sh COMMAND' 16022# in which case we are not to be found in the path. 16023if test "x$as_myself" = x; then 16024 as_myself=$0 16025fi 16026if test ! -f "$as_myself"; then 16027 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16028 exit 1 16029fi 16030 16031 16032 16033# as_fn_error STATUS ERROR [LINENO LOG_FD] 16034# ---------------------------------------- 16035# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16036# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16037# script with STATUS, using 1 if that was 0. 16038as_fn_error () 16039{ 16040 as_status=$1; test $as_status -eq 0 && as_status=1 16041 if test "$4"; then 16042 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16044 fi 16045 printf "%s\n" "$as_me: error: $2" >&2 16046 as_fn_exit $as_status 16047} # as_fn_error 16048 16049 16050 16051# as_fn_set_status STATUS 16052# ----------------------- 16053# Set $? to STATUS, without forking. 16054as_fn_set_status () 16055{ 16056 return $1 16057} # as_fn_set_status 16058 16059# as_fn_exit STATUS 16060# ----------------- 16061# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16062as_fn_exit () 16063{ 16064 set +e 16065 as_fn_set_status $1 16066 exit $1 16067} # as_fn_exit 16068 16069# as_fn_unset VAR 16070# --------------- 16071# Portably unset VAR. 16072as_fn_unset () 16073{ 16074 { eval $1=; unset $1;} 16075} 16076as_unset=as_fn_unset 16077 16078# as_fn_append VAR VALUE 16079# ---------------------- 16080# Append the text in VALUE to the end of the definition contained in VAR. Take 16081# advantage of any shell optimizations that allow amortized linear growth over 16082# repeated appends, instead of the typical quadratic growth present in naive 16083# implementations. 16084if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 16085then : 16086 eval 'as_fn_append () 16087 { 16088 eval $1+=\$2 16089 }' 16090else $as_nop 16091 as_fn_append () 16092 { 16093 eval $1=\$$1\$2 16094 } 16095fi # as_fn_append 16096 16097# as_fn_arith ARG... 16098# ------------------ 16099# Perform arithmetic evaluation on the ARGs, and store the result in the 16100# global $as_val. Take advantage of shells that can avoid forks. The arguments 16101# must be portable across $(()) and expr. 16102if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 16103then : 16104 eval 'as_fn_arith () 16105 { 16106 as_val=$(( $* )) 16107 }' 16108else $as_nop 16109 as_fn_arith () 16110 { 16111 as_val=`expr "$@" || test $? -eq 1` 16112 } 16113fi # as_fn_arith 16114 16115 16116if expr a : '\(a\)' >/dev/null 2>&1 && 16117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16118 as_expr=expr 16119else 16120 as_expr=false 16121fi 16122 16123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16124 as_basename=basename 16125else 16126 as_basename=false 16127fi 16128 16129if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16130 as_dirname=dirname 16131else 16132 as_dirname=false 16133fi 16134 16135as_me=`$as_basename -- "$0" || 16136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16137 X"$0" : 'X\(//\)$' \| \ 16138 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16139printf "%s\n" X/"$0" | 16140 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16141 s//\1/ 16142 q 16143 } 16144 /^X\/\(\/\/\)$/{ 16145 s//\1/ 16146 q 16147 } 16148 /^X\/\(\/\).*/{ 16149 s//\1/ 16150 q 16151 } 16152 s/.*/./; q'` 16153 16154# Avoid depending upon Character Ranges. 16155as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16156as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16157as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16158as_cr_digits='0123456789' 16159as_cr_alnum=$as_cr_Letters$as_cr_digits 16160 16161 16162# Determine whether it's possible to make 'echo' print without a newline. 16163# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 16164# for compatibility with existing Makefiles. 16165ECHO_C= ECHO_N= ECHO_T= 16166case `echo -n x` in #((((( 16167-n*) 16168 case `echo 'xy\c'` in 16169 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16170 xy) ECHO_C='\c';; 16171 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16172 ECHO_T=' ';; 16173 esac;; 16174*) 16175 ECHO_N='-n';; 16176esac 16177 16178# For backward compatibility with old third-party macros, we provide 16179# the shell variables $as_echo and $as_echo_n. New code should use 16180# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 16181as_echo='printf %s\n' 16182as_echo_n='printf %s' 16183 16184rm -f conf$$ conf$$.exe conf$$.file 16185if test -d conf$$.dir; then 16186 rm -f conf$$.dir/conf$$.file 16187else 16188 rm -f conf$$.dir 16189 mkdir conf$$.dir 2>/dev/null 16190fi 16191if (echo >conf$$.file) 2>/dev/null; then 16192 if ln -s conf$$.file conf$$ 2>/dev/null; then 16193 as_ln_s='ln -s' 16194 # ... but there are two gotchas: 16195 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16196 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16197 # In both cases, we have to default to `cp -pR'. 16198 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16199 as_ln_s='cp -pR' 16200 elif ln conf$$.file conf$$ 2>/dev/null; then 16201 as_ln_s=ln 16202 else 16203 as_ln_s='cp -pR' 16204 fi 16205else 16206 as_ln_s='cp -pR' 16207fi 16208rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16209rmdir conf$$.dir 2>/dev/null 16210 16211 16212# as_fn_mkdir_p 16213# ------------- 16214# Create "$as_dir" as a directory, including parents if necessary. 16215as_fn_mkdir_p () 16216{ 16217 16218 case $as_dir in #( 16219 -*) as_dir=./$as_dir;; 16220 esac 16221 test -d "$as_dir" || eval $as_mkdir_p || { 16222 as_dirs= 16223 while :; do 16224 case $as_dir in #( 16225 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16226 *) as_qdir=$as_dir;; 16227 esac 16228 as_dirs="'$as_qdir' $as_dirs" 16229 as_dir=`$as_dirname -- "$as_dir" || 16230$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16231 X"$as_dir" : 'X\(//\)[^/]' \| \ 16232 X"$as_dir" : 'X\(//\)$' \| \ 16233 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16234printf "%s\n" X"$as_dir" | 16235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16236 s//\1/ 16237 q 16238 } 16239 /^X\(\/\/\)[^/].*/{ 16240 s//\1/ 16241 q 16242 } 16243 /^X\(\/\/\)$/{ 16244 s//\1/ 16245 q 16246 } 16247 /^X\(\/\).*/{ 16248 s//\1/ 16249 q 16250 } 16251 s/.*/./; q'` 16252 test -d "$as_dir" && break 16253 done 16254 test -z "$as_dirs" || eval "mkdir $as_dirs" 16255 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16256 16257 16258} # as_fn_mkdir_p 16259if mkdir -p . 2>/dev/null; then 16260 as_mkdir_p='mkdir -p "$as_dir"' 16261else 16262 test -d ./-p && rmdir ./-p 16263 as_mkdir_p=false 16264fi 16265 16266 16267# as_fn_executable_p FILE 16268# ----------------------- 16269# Test if FILE is an executable regular file. 16270as_fn_executable_p () 16271{ 16272 test -f "$1" && test -x "$1" 16273} # as_fn_executable_p 16274as_test_x='test -x' 16275as_executable_p=as_fn_executable_p 16276 16277# Sed expression to map a string onto a valid CPP name. 16278as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16279 16280# Sed expression to map a string onto a valid variable name. 16281as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16282 16283 16284exec 6>&1 16285## ----------------------------------- ## 16286## Main body of $CONFIG_STATUS script. ## 16287## ----------------------------------- ## 16288_ASEOF 16289test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16290 16291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16292# Save the log message, to keep $0 and so on meaningful, and to 16293# report actual input values of CONFIG_FILES etc. instead of their 16294# values after options handling. 16295ac_log=" 16296This file was extended by file $as_me 5.45, which was 16297generated by GNU Autoconf 2.71. Invocation command line was 16298 16299 CONFIG_FILES = $CONFIG_FILES 16300 CONFIG_HEADERS = $CONFIG_HEADERS 16301 CONFIG_LINKS = $CONFIG_LINKS 16302 CONFIG_COMMANDS = $CONFIG_COMMANDS 16303 $ $0 $@ 16304 16305on `(hostname || uname -n) 2>/dev/null | sed 1q` 16306" 16307 16308_ACEOF 16309 16310case $ac_config_files in *" 16311"*) set x $ac_config_files; shift; ac_config_files=$*;; 16312esac 16313 16314case $ac_config_headers in *" 16315"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16316esac 16317 16318 16319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16320# Files that config.status was made for. 16321config_files="$ac_config_files" 16322config_headers="$ac_config_headers" 16323config_commands="$ac_config_commands" 16324 16325_ACEOF 16326 16327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16328ac_cs_usage="\ 16329\`$as_me' instantiates files and other configuration actions 16330from templates according to the current configuration. Unless the files 16331and actions are specified as TAGs, all are instantiated by default. 16332 16333Usage: $0 [OPTION]... [TAG]... 16334 16335 -h, --help print this help, then exit 16336 -V, --version print version number and configuration settings, then exit 16337 --config print configuration, then exit 16338 -q, --quiet, --silent 16339 do not print progress messages 16340 -d, --debug don't remove temporary files 16341 --recheck update $as_me by reconfiguring in the same conditions 16342 --file=FILE[:TEMPLATE] 16343 instantiate the configuration file FILE 16344 --header=FILE[:TEMPLATE] 16345 instantiate the configuration header FILE 16346 16347Configuration files: 16348$config_files 16349 16350Configuration headers: 16351$config_headers 16352 16353Configuration commands: 16354$config_commands 16355 16356Report bugs to <christos@astron.com>." 16357 16358_ACEOF 16359ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 16360ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 16361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16362ac_cs_config='$ac_cs_config_escaped' 16363ac_cs_version="\\ 16364file config.status 5.45 16365configured by $0, generated by GNU Autoconf 2.71, 16366 with options \\"\$ac_cs_config\\" 16367 16368Copyright (C) 2021 Free Software Foundation, Inc. 16369This config.status script is free software; the Free Software Foundation 16370gives unlimited permission to copy, distribute and modify it." 16371 16372ac_pwd='$ac_pwd' 16373srcdir='$srcdir' 16374INSTALL='$INSTALL' 16375MKDIR_P='$MKDIR_P' 16376AWK='$AWK' 16377test -n "\$AWK" || AWK=awk 16378_ACEOF 16379 16380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16381# The default lists apply if the user does not specify any file. 16382ac_need_defaults=: 16383while test $# != 0 16384do 16385 case $1 in 16386 --*=?*) 16387 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16388 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16389 ac_shift=: 16390 ;; 16391 --*=) 16392 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16393 ac_optarg= 16394 ac_shift=: 16395 ;; 16396 *) 16397 ac_option=$1 16398 ac_optarg=$2 16399 ac_shift=shift 16400 ;; 16401 esac 16402 16403 case $ac_option in 16404 # Handling of the options. 16405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16406 ac_cs_recheck=: ;; 16407 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16408 printf "%s\n" "$ac_cs_version"; exit ;; 16409 --config | --confi | --conf | --con | --co | --c ) 16410 printf "%s\n" "$ac_cs_config"; exit ;; 16411 --debug | --debu | --deb | --de | --d | -d ) 16412 debug=: ;; 16413 --file | --fil | --fi | --f ) 16414 $ac_shift 16415 case $ac_optarg in 16416 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16417 '') as_fn_error $? "missing file argument" ;; 16418 esac 16419 as_fn_append CONFIG_FILES " '$ac_optarg'" 16420 ac_need_defaults=false;; 16421 --header | --heade | --head | --hea ) 16422 $ac_shift 16423 case $ac_optarg in 16424 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16425 esac 16426 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16427 ac_need_defaults=false;; 16428 --he | --h) 16429 # Conflict between --help and --header 16430 as_fn_error $? "ambiguous option: \`$1' 16431Try \`$0 --help' for more information.";; 16432 --help | --hel | -h ) 16433 printf "%s\n" "$ac_cs_usage"; exit ;; 16434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16435 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16436 ac_cs_silent=: ;; 16437 16438 # This is an error. 16439 -*) as_fn_error $? "unrecognized option: \`$1' 16440Try \`$0 --help' for more information." ;; 16441 16442 *) as_fn_append ac_config_targets " $1" 16443 ac_need_defaults=false ;; 16444 16445 esac 16446 shift 16447done 16448 16449ac_configure_extra_args= 16450 16451if $ac_cs_silent; then 16452 exec 6>/dev/null 16453 ac_configure_extra_args="$ac_configure_extra_args --silent" 16454fi 16455 16456_ACEOF 16457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16458if \$ac_cs_recheck; then 16459 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16460 shift 16461 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 16462 CONFIG_SHELL='$SHELL' 16463 export CONFIG_SHELL 16464 exec "\$@" 16465fi 16466 16467_ACEOF 16468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16469exec 5>>config.log 16470{ 16471 echo 16472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16473## Running $as_me. ## 16474_ASBOX 16475 printf "%s\n" "$ac_log" 16476} >&5 16477 16478_ACEOF 16479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16480# 16481# INIT-COMMANDS 16482# 16483AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16484 16485 16486# The HP-UX ksh and POSIX shell print the target directory to stdout 16487# if CDPATH is set. 16488(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16489 16490sed_quote_subst='$sed_quote_subst' 16491double_quote_subst='$double_quote_subst' 16492delay_variable_subst='$delay_variable_subst' 16493macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16494macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16495enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16496pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16497enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16498enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16499shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16500SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16501ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16502PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16503host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16504host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16505host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16506build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16507build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16508build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16509SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16510Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16511GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16512EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16513FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16514LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16515NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16516LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16517max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16518ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16519exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16520lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16521lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16522lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16523lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16524lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16525reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16526reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16527OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16528deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16529file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16530file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16531want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16532DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16533sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16534AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16535AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16536archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16537STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16538RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16539old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16540old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16541old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16542lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16543CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16544CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16545compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16546GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16547lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16548lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16549lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16550lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16551lt_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"`' 16552lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16553nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16554lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16555lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16556objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16557MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16558lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16559lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16560lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16561lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16562lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16563need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16564MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16565DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16566NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16567LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16568OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16569OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16570libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16571shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16572extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16573archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16574enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16575export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16576whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16577compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16578old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16579old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16580archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16581archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16582module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16583module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16584with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16585allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16586no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16587hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16588hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16589hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16590hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16591hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16592hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16593hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16594inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16595link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16596always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16597export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16598exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16599include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16600prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16601postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16602file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16603variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16604need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16605need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16606version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16607runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16608shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16609shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16610libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16611library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16612soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16613install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16614postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16615postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16616finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16617finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16618hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16619sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16620configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16621configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16622hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16623enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16624enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16625enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16626old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16627striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16628 16629LTCC='$LTCC' 16630LTCFLAGS='$LTCFLAGS' 16631compiler='$compiler_DEFAULT' 16632 16633# A function that is used when there is no print builtin or printf. 16634func_fallback_echo () 16635{ 16636 eval 'cat <<_LTECHO_EOF 16637\$1 16638_LTECHO_EOF' 16639} 16640 16641# Quote evaled strings. 16642for var in SHELL \ 16643ECHO \ 16644PATH_SEPARATOR \ 16645SED \ 16646GREP \ 16647EGREP \ 16648FGREP \ 16649LD \ 16650NM \ 16651LN_S \ 16652lt_SP2NL \ 16653lt_NL2SP \ 16654reload_flag \ 16655OBJDUMP \ 16656deplibs_check_method \ 16657file_magic_cmd \ 16658file_magic_glob \ 16659want_nocaseglob \ 16660DLLTOOL \ 16661sharedlib_from_linklib_cmd \ 16662AR \ 16663AR_FLAGS \ 16664archiver_list_spec \ 16665STRIP \ 16666RANLIB \ 16667CC \ 16668CFLAGS \ 16669compiler \ 16670lt_cv_sys_global_symbol_pipe \ 16671lt_cv_sys_global_symbol_to_cdecl \ 16672lt_cv_sys_global_symbol_to_import \ 16673lt_cv_sys_global_symbol_to_c_name_address \ 16674lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16675lt_cv_nm_interface \ 16676nm_file_list_spec \ 16677lt_cv_truncate_bin \ 16678lt_prog_compiler_no_builtin_flag \ 16679lt_prog_compiler_pic \ 16680lt_prog_compiler_wl \ 16681lt_prog_compiler_static \ 16682lt_cv_prog_compiler_c_o \ 16683need_locks \ 16684MANIFEST_TOOL \ 16685DSYMUTIL \ 16686NMEDIT \ 16687LIPO \ 16688OTOOL \ 16689OTOOL64 \ 16690shrext_cmds \ 16691export_dynamic_flag_spec \ 16692whole_archive_flag_spec \ 16693compiler_needs_object \ 16694with_gnu_ld \ 16695allow_undefined_flag \ 16696no_undefined_flag \ 16697hardcode_libdir_flag_spec \ 16698hardcode_libdir_separator \ 16699exclude_expsyms \ 16700include_expsyms \ 16701file_list_spec \ 16702variables_saved_for_relink \ 16703libname_spec \ 16704library_names_spec \ 16705soname_spec \ 16706install_override_mode \ 16707finish_eval \ 16708old_striplib \ 16709striplib; do 16710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16711 *[\\\\\\\`\\"\\\$]*) 16712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16713 ;; 16714 *) 16715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16716 ;; 16717 esac 16718done 16719 16720# Double-quote double-evaled strings. 16721for var in reload_cmds \ 16722old_postinstall_cmds \ 16723old_postuninstall_cmds \ 16724old_archive_cmds \ 16725extract_expsyms_cmds \ 16726old_archive_from_new_cmds \ 16727old_archive_from_expsyms_cmds \ 16728archive_cmds \ 16729archive_expsym_cmds \ 16730module_cmds \ 16731module_expsym_cmds \ 16732export_symbols_cmds \ 16733prelink_cmds \ 16734postlink_cmds \ 16735postinstall_cmds \ 16736postuninstall_cmds \ 16737finish_cmds \ 16738sys_lib_search_path_spec \ 16739configure_time_dlsearch_path \ 16740configure_time_lt_sys_library_path; do 16741 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16742 *[\\\\\\\`\\"\\\$]*) 16743 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16744 ;; 16745 *) 16746 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16747 ;; 16748 esac 16749done 16750 16751ac_aux_dir='$ac_aux_dir' 16752 16753# See if we are running on zsh, and set the options that allow our 16754# commands through without removal of \ escapes INIT. 16755if test -n "\${ZSH_VERSION+set}"; then 16756 setopt NO_GLOB_SUBST 16757fi 16758 16759 16760 PACKAGE='$PACKAGE' 16761 VERSION='$VERSION' 16762 RM='$RM' 16763 ofile='$ofile' 16764 16765 16766 16767 16768_ACEOF 16769 16770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16771 16772# Handling of arguments. 16773for ac_config_target in $ac_config_targets 16774do 16775 case $ac_config_target in 16776 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16777 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16778 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16780 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16781 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 16782 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 16783 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16784 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 16785 "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;; 16786 16787 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16788 esac 16789done 16790 16791 16792# If the user did not use the arguments to specify the items to instantiate, 16793# then the envvar interface is used. Set only those that are not. 16794# We use the long form for the default assignment because of an extremely 16795# bizarre bug on SunOS 4.1.3. 16796if $ac_need_defaults; then 16797 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 16798 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 16799 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 16800fi 16801 16802# Have a temporary directory for convenience. Make it in the build tree 16803# simply because there is no reason against having it here, and in addition, 16804# creating and moving files from /tmp can sometimes cause problems. 16805# Hook for its removal unless debugging. 16806# Note that there is a small window in which the directory will not be cleaned: 16807# after its creation but before its name has been assigned to `$tmp'. 16808$debug || 16809{ 16810 tmp= ac_tmp= 16811 trap 'exit_status=$? 16812 : "${ac_tmp:=$tmp}" 16813 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16814' 0 16815 trap 'as_fn_exit 1' 1 2 13 15 16816} 16817# Create a (secure) tmp directory for tmp files. 16818 16819{ 16820 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16821 test -d "$tmp" 16822} || 16823{ 16824 tmp=./conf$$-$RANDOM 16825 (umask 077 && mkdir "$tmp") 16826} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16827ac_tmp=$tmp 16828 16829# Set up the scripts for CONFIG_FILES section. 16830# No need to generate them if there are no CONFIG_FILES. 16831# This happens for instance with `./config.status config.h'. 16832if test -n "$CONFIG_FILES"; then 16833 16834 16835ac_cr=`echo X | tr X '\015'` 16836# On cygwin, bash can eat \r inside `` if the user requested igncr. 16837# But we know of no other shell where ac_cr would be empty at this 16838# point, so we can use a bashism as a fallback. 16839if test "x$ac_cr" = x; then 16840 eval ac_cr=\$\'\\r\' 16841fi 16842ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16843if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16844 ac_cs_awk_cr='\\r' 16845else 16846 ac_cs_awk_cr=$ac_cr 16847fi 16848 16849echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16850_ACEOF 16851 16852 16853{ 16854 echo "cat >conf$$subs.awk <<_ACEOF" && 16855 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16856 echo "_ACEOF" 16857} >conf$$subs.sh || 16858 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16859ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16860ac_delim='%!_!# ' 16861for ac_last_try in false false false false false :; do 16862 . ./conf$$subs.sh || 16863 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16864 16865 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16866 if test $ac_delim_n = $ac_delim_num; then 16867 break 16868 elif $ac_last_try; then 16869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16870 else 16871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16872 fi 16873done 16874rm -f conf$$subs.sh 16875 16876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16877cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16878_ACEOF 16879sed -n ' 16880h 16881s/^/S["/; s/!.*/"]=/ 16882p 16883g 16884s/^[^!]*!// 16885:repl 16886t repl 16887s/'"$ac_delim"'$// 16888t delim 16889:nl 16890h 16891s/\(.\{148\}\)..*/\1/ 16892t more1 16893s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16894p 16895n 16896b repl 16897:more1 16898s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16899p 16900g 16901s/.\{148\}// 16902t nl 16903:delim 16904h 16905s/\(.\{148\}\)..*/\1/ 16906t more2 16907s/["\\]/\\&/g; s/^/"/; s/$/"/ 16908p 16909b 16910:more2 16911s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16912p 16913g 16914s/.\{148\}// 16915t delim 16916' <conf$$subs.awk | sed ' 16917/^[^""]/{ 16918 N 16919 s/\n// 16920} 16921' >>$CONFIG_STATUS || ac_write_fail=1 16922rm -f conf$$subs.awk 16923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16924_ACAWK 16925cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16926 for (key in S) S_is_set[key] = 1 16927 FS = "" 16928 16929} 16930{ 16931 line = $ 0 16932 nfields = split(line, field, "@") 16933 substed = 0 16934 len = length(field[1]) 16935 for (i = 2; i < nfields; i++) { 16936 key = field[i] 16937 keylen = length(key) 16938 if (S_is_set[key]) { 16939 value = S[key] 16940 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16941 len += length(value) + length(field[++i]) 16942 substed = 1 16943 } else 16944 len += 1 + keylen 16945 } 16946 16947 print line 16948} 16949 16950_ACAWK 16951_ACEOF 16952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16953if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16954 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16955else 16956 cat 16957fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16958 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16959_ACEOF 16960 16961# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16962# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16963# trailing colons and then remove the whole line if VPATH becomes empty 16964# (actually we leave an empty line to preserve line numbers). 16965if test "x$srcdir" = x.; then 16966 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16967h 16968s/// 16969s/^/:/ 16970s/[ ]*$/:/ 16971s/:\$(srcdir):/:/g 16972s/:\${srcdir}:/:/g 16973s/:@srcdir@:/:/g 16974s/^:*// 16975s/:*$// 16976x 16977s/\(=[ ]*\).*/\1/ 16978G 16979s/\n// 16980s/^[^=]*=[ ]*$// 16981}' 16982fi 16983 16984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16985fi # test -n "$CONFIG_FILES" 16986 16987# Set up the scripts for CONFIG_HEADERS section. 16988# No need to generate them if there are no CONFIG_HEADERS. 16989# This happens for instance with `./config.status Makefile'. 16990if test -n "$CONFIG_HEADERS"; then 16991cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16992BEGIN { 16993_ACEOF 16994 16995# Transform confdefs.h into an awk script `defines.awk', embedded as 16996# here-document in config.status, that substitutes the proper values into 16997# config.h.in to produce config.h. 16998 16999# Create a delimiter string that does not exist in confdefs.h, to ease 17000# handling of long lines. 17001ac_delim='%!_!# ' 17002for ac_last_try in false false :; do 17003 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17004 if test -z "$ac_tt"; then 17005 break 17006 elif $ac_last_try; then 17007 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17008 else 17009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17010 fi 17011done 17012 17013# For the awk script, D is an array of macro values keyed by name, 17014# likewise P contains macro parameters if any. Preserve backslash 17015# newline sequences. 17016 17017ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17018sed -n ' 17019s/.\{148\}/&'"$ac_delim"'/g 17020t rset 17021:rset 17022s/^[ ]*#[ ]*define[ ][ ]*/ / 17023t def 17024d 17025:def 17026s/\\$// 17027t bsnl 17028s/["\\]/\\&/g 17029s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17030D["\1"]=" \3"/p 17031s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17032d 17033:bsnl 17034s/["\\]/\\&/g 17035s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17036D["\1"]=" \3\\\\\\n"\\/p 17037t cont 17038s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17039t cont 17040d 17041:cont 17042n 17043s/.\{148\}/&'"$ac_delim"'/g 17044t clear 17045:clear 17046s/\\$// 17047t bsnlc 17048s/["\\]/\\&/g; s/^/"/; s/$/"/p 17049d 17050:bsnlc 17051s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17052b cont 17053' <confdefs.h | sed ' 17054s/'"$ac_delim"'/"\\\ 17055"/g' >>$CONFIG_STATUS || ac_write_fail=1 17056 17057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17058 for (key in D) D_is_set[key] = 1 17059 FS = "" 17060} 17061/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17062 line = \$ 0 17063 split(line, arg, " ") 17064 if (arg[1] == "#") { 17065 defundef = arg[2] 17066 mac1 = arg[3] 17067 } else { 17068 defundef = substr(arg[1], 2) 17069 mac1 = arg[2] 17070 } 17071 split(mac1, mac2, "(") #) 17072 macro = mac2[1] 17073 prefix = substr(line, 1, index(line, defundef) - 1) 17074 if (D_is_set[macro]) { 17075 # Preserve the white space surrounding the "#". 17076 print prefix "define", macro P[macro] D[macro] 17077 next 17078 } else { 17079 # Replace #undef with comments. This is necessary, for example, 17080 # in the case of _POSIX_SOURCE, which is predefined and required 17081 # on some systems where configure will not decide to define it. 17082 if (defundef == "undef") { 17083 print "/*", prefix defundef, macro, "*/" 17084 next 17085 } 17086 } 17087} 17088{ print } 17089_ACAWK 17090_ACEOF 17091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17092 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17093fi # test -n "$CONFIG_HEADERS" 17094 17095 17096eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17097shift 17098for ac_tag 17099do 17100 case $ac_tag in 17101 :[FHLC]) ac_mode=$ac_tag; continue;; 17102 esac 17103 case $ac_mode$ac_tag in 17104 :[FHL]*:*);; 17105 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17106 :[FH]-) ac_tag=-:-;; 17107 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17108 esac 17109 ac_save_IFS=$IFS 17110 IFS=: 17111 set x $ac_tag 17112 IFS=$ac_save_IFS 17113 shift 17114 ac_file=$1 17115 shift 17116 17117 case $ac_mode in 17118 :L) ac_source=$1;; 17119 :[FH]) 17120 ac_file_inputs= 17121 for ac_f 17122 do 17123 case $ac_f in 17124 -) ac_f="$ac_tmp/stdin";; 17125 *) # Look for the file first in the build tree, then in the source tree 17126 # (if the path is not absolute). The absolute path cannot be DOS-style, 17127 # because $ac_f cannot contain `:'. 17128 test -f "$ac_f" || 17129 case $ac_f in 17130 [\\/$]*) false;; 17131 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17132 esac || 17133 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17134 esac 17135 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17136 as_fn_append ac_file_inputs " '$ac_f'" 17137 done 17138 17139 # Let's still pretend it is `configure' which instantiates (i.e., don't 17140 # use $as_me), people would be surprised to read: 17141 # /* config.h. Generated by config.status. */ 17142 configure_input='Generated from '` 17143 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17144 `' by configure.' 17145 if test x"$ac_file" != x-; then 17146 configure_input="$ac_file. $configure_input" 17147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17148printf "%s\n" "$as_me: creating $ac_file" >&6;} 17149 fi 17150 # Neutralize special characters interpreted by sed in replacement strings. 17151 case $configure_input in #( 17152 *\&* | *\|* | *\\* ) 17153 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 17154 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17155 *) ac_sed_conf_input=$configure_input;; 17156 esac 17157 17158 case $ac_tag in 17159 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17161 esac 17162 ;; 17163 esac 17164 17165 ac_dir=`$as_dirname -- "$ac_file" || 17166$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17167 X"$ac_file" : 'X\(//\)[^/]' \| \ 17168 X"$ac_file" : 'X\(//\)$' \| \ 17169 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17170printf "%s\n" X"$ac_file" | 17171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17172 s//\1/ 17173 q 17174 } 17175 /^X\(\/\/\)[^/].*/{ 17176 s//\1/ 17177 q 17178 } 17179 /^X\(\/\/\)$/{ 17180 s//\1/ 17181 q 17182 } 17183 /^X\(\/\).*/{ 17184 s//\1/ 17185 q 17186 } 17187 s/.*/./; q'` 17188 as_dir="$ac_dir"; as_fn_mkdir_p 17189 ac_builddir=. 17190 17191case "$ac_dir" in 17192.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17193*) 17194 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 17195 # A ".." for each directory in $ac_dir_suffix. 17196 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17197 case $ac_top_builddir_sub in 17198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17200 esac ;; 17201esac 17202ac_abs_top_builddir=$ac_pwd 17203ac_abs_builddir=$ac_pwd$ac_dir_suffix 17204# for backward compatibility: 17205ac_top_builddir=$ac_top_build_prefix 17206 17207case $srcdir in 17208 .) # We are building in place. 17209 ac_srcdir=. 17210 ac_top_srcdir=$ac_top_builddir_sub 17211 ac_abs_top_srcdir=$ac_pwd ;; 17212 [\\/]* | ?:[\\/]* ) # Absolute name. 17213 ac_srcdir=$srcdir$ac_dir_suffix; 17214 ac_top_srcdir=$srcdir 17215 ac_abs_top_srcdir=$srcdir ;; 17216 *) # Relative name. 17217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17218 ac_top_srcdir=$ac_top_build_prefix$srcdir 17219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17220esac 17221ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17222 17223 17224 case $ac_mode in 17225 :F) 17226 # 17227 # CONFIG_FILE 17228 # 17229 17230 case $INSTALL in 17231 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17232 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17233 esac 17234 ac_MKDIR_P=$MKDIR_P 17235 case $MKDIR_P in 17236 [\\/$]* | ?:[\\/]* ) ;; 17237 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17238 esac 17239_ACEOF 17240 17241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17242# If the template does not know about datarootdir, expand it. 17243# FIXME: This hack should be removed a few years after 2.60. 17244ac_datarootdir_hack=; ac_datarootdir_seen= 17245ac_sed_dataroot=' 17246/datarootdir/ { 17247 p 17248 q 17249} 17250/@datadir@/p 17251/@docdir@/p 17252/@infodir@/p 17253/@localedir@/p 17254/@mandir@/p' 17255case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17256*datarootdir*) ac_datarootdir_seen=yes;; 17257*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17259printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17260_ACEOF 17261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17262 ac_datarootdir_hack=' 17263 s&@datadir@&$datadir&g 17264 s&@docdir@&$docdir&g 17265 s&@infodir@&$infodir&g 17266 s&@localedir@&$localedir&g 17267 s&@mandir@&$mandir&g 17268 s&\\\${datarootdir}&$datarootdir&g' ;; 17269esac 17270_ACEOF 17271 17272# Neutralize VPATH when `$srcdir' = `.'. 17273# Shell code in configure.ac might set extrasub. 17274# FIXME: do we really want to maintain this feature? 17275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17276ac_sed_extra="$ac_vpsub 17277$extrasub 17278_ACEOF 17279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17280:t 17281/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17282s|@configure_input@|$ac_sed_conf_input|;t t 17283s&@top_builddir@&$ac_top_builddir_sub&;t t 17284s&@top_build_prefix@&$ac_top_build_prefix&;t t 17285s&@srcdir@&$ac_srcdir&;t t 17286s&@abs_srcdir@&$ac_abs_srcdir&;t t 17287s&@top_srcdir@&$ac_top_srcdir&;t t 17288s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17289s&@builddir@&$ac_builddir&;t t 17290s&@abs_builddir@&$ac_abs_builddir&;t t 17291s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17292s&@INSTALL@&$ac_INSTALL&;t t 17293s&@MKDIR_P@&$ac_MKDIR_P&;t t 17294$ac_datarootdir_hack 17295" 17296eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17297 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17298 17299test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17300 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17301 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17302 "$ac_tmp/out"`; test -z "$ac_out"; } && 17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17304which seems to be undefined. Please make sure it is defined" >&5 17305printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17306which seems to be undefined. Please make sure it is defined" >&2;} 17307 17308 rm -f "$ac_tmp/stdin" 17309 case $ac_file in 17310 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17311 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17312 esac \ 17313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17314 ;; 17315 :H) 17316 # 17317 # CONFIG_HEADER 17318 # 17319 if test x"$ac_file" != x-; then 17320 { 17321 printf "%s\n" "/* $configure_input */" >&1 \ 17322 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17323 } >"$ac_tmp/config.h" \ 17324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17325 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17327printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 17328 else 17329 rm -f "$ac_file" 17330 mv "$ac_tmp/config.h" "$ac_file" \ 17331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17332 fi 17333 else 17334 printf "%s\n" "/* $configure_input */" >&1 \ 17335 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17336 || as_fn_error $? "could not create -" "$LINENO" 5 17337 fi 17338# Compute "$ac_file"'s index in $config_headers. 17339_am_arg="$ac_file" 17340_am_stamp_count=1 17341for _am_header in $config_headers :; do 17342 case $_am_header in 17343 $_am_arg | $_am_arg:* ) 17344 break ;; 17345 * ) 17346 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17347 esac 17348done 17349echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17350$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17351 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17352 X"$_am_arg" : 'X\(//\)$' \| \ 17353 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17354printf "%s\n" X"$_am_arg" | 17355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17356 s//\1/ 17357 q 17358 } 17359 /^X\(\/\/\)[^/].*/{ 17360 s//\1/ 17361 q 17362 } 17363 /^X\(\/\/\)$/{ 17364 s//\1/ 17365 q 17366 } 17367 /^X\(\/\).*/{ 17368 s//\1/ 17369 q 17370 } 17371 s/.*/./; q'`/stamp-h$_am_stamp_count 17372 ;; 17373 17374 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17375printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 17376 ;; 17377 esac 17378 17379 17380 case $ac_file$ac_mode in 17381 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17382 # Older Autoconf quotes --file arguments for eval, but not when files 17383 # are listed without --file. Let's play safe and only enable the eval 17384 # if we detect the quoting. 17385 # TODO: see whether this extra hack can be removed once we start 17386 # requiring Autoconf 2.70 or later. 17387 case $CONFIG_FILES in #( 17388 *\'*) : 17389 eval set x "$CONFIG_FILES" ;; #( 17390 *) : 17391 set x $CONFIG_FILES ;; #( 17392 *) : 17393 ;; 17394esac 17395 shift 17396 # Used to flag and report bootstrapping failures. 17397 am_rc=0 17398 for am_mf 17399 do 17400 # Strip MF so we end up with the name of the file. 17401 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 17402 # Check whether this is an Automake generated Makefile which includes 17403 # dependency-tracking related rules and includes. 17404 # Grep'ing the whole file directly is not great: AIX grep has a line 17405 # limit of 2048, but all sed's we know have understand at least 4000. 17406 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17407 || continue 17408 am_dirpart=`$as_dirname -- "$am_mf" || 17409$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17410 X"$am_mf" : 'X\(//\)[^/]' \| \ 17411 X"$am_mf" : 'X\(//\)$' \| \ 17412 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17413printf "%s\n" X"$am_mf" | 17414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17415 s//\1/ 17416 q 17417 } 17418 /^X\(\/\/\)[^/].*/{ 17419 s//\1/ 17420 q 17421 } 17422 /^X\(\/\/\)$/{ 17423 s//\1/ 17424 q 17425 } 17426 /^X\(\/\).*/{ 17427 s//\1/ 17428 q 17429 } 17430 s/.*/./; q'` 17431 am_filepart=`$as_basename -- "$am_mf" || 17432$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17433 X"$am_mf" : 'X\(//\)$' \| \ 17434 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17435printf "%s\n" X/"$am_mf" | 17436 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17437 s//\1/ 17438 q 17439 } 17440 /^X\/\(\/\/\)$/{ 17441 s//\1/ 17442 q 17443 } 17444 /^X\/\(\/\).*/{ 17445 s//\1/ 17446 q 17447 } 17448 s/.*/./; q'` 17449 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17450 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17451 | $MAKE -f - am--depfiles" >&5 17452 (cd "$am_dirpart" \ 17453 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17454 | $MAKE -f - am--depfiles) >&5 2>&5 17455 ac_status=$? 17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17457 (exit $ac_status); } || am_rc=$? 17458 done 17459 if test $am_rc -ne 0; then 17460 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17461printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17462as_fn_error $? "Something went wrong bootstrapping makefile fragments 17463 for automatic dependency tracking. If GNU make was not used, consider 17464 re-running the configure script with MAKE=\"gmake\" (or whatever is 17465 necessary). You can also try re-running configure with the 17466 '--disable-dependency-tracking' option to at least be able to build 17467 the package (albeit without support for automatic dependency tracking). 17468See \`config.log' for more details" "$LINENO" 5; } 17469 fi 17470 { am_dirpart=; unset am_dirpart;} 17471 { am_filepart=; unset am_filepart;} 17472 { am_mf=; unset am_mf;} 17473 { am_rc=; unset am_rc;} 17474 rm -f conftest-deps.mk 17475} 17476 ;; 17477 "libtool":C) 17478 17479 # See if we are running on zsh, and set the options that allow our 17480 # commands through without removal of \ escapes. 17481 if test -n "${ZSH_VERSION+set}"; then 17482 setopt NO_GLOB_SUBST 17483 fi 17484 17485 cfgfile=${ofile}T 17486 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17487 $RM "$cfgfile" 17488 17489 cat <<_LT_EOF >> "$cfgfile" 17490#! $SHELL 17491# Generated automatically by $as_me ($PACKAGE) $VERSION 17492# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17493# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17494 17495# Provide generalized library-building support services. 17496# Written by Gordon Matzigkeit, 1996 17497 17498# Copyright (C) 2014 Free Software Foundation, Inc. 17499# This is free software; see the source for copying conditions. There is NO 17500# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17501 17502# GNU Libtool is free software; you can redistribute it and/or modify 17503# it under the terms of the GNU General Public License as published by 17504# the Free Software Foundation; either version 2 of of the License, or 17505# (at your option) any later version. 17506# 17507# As a special exception to the GNU General Public License, if you 17508# distribute this file as part of a program or library that is built 17509# using GNU Libtool, you may include this file under the same 17510# distribution terms that you use for the rest of that program. 17511# 17512# GNU Libtool is distributed in the hope that it will be useful, but 17513# WITHOUT ANY WARRANTY; without even the implied warranty of 17514# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17515# GNU General Public License for more details. 17516# 17517# You should have received a copy of the GNU General Public License 17518# along with this program. If not, see <http://www.gnu.org/licenses/>. 17519 17520 17521# The names of the tagged configurations supported by this script. 17522available_tags='' 17523 17524# Configured defaults for sys_lib_dlsearch_path munging. 17525: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17526 17527# ### BEGIN LIBTOOL CONFIG 17528 17529# Which release of libtool.m4 was used? 17530macro_version=$macro_version 17531macro_revision=$macro_revision 17532 17533# Whether or not to build static libraries. 17534build_old_libs=$enable_static 17535 17536# What type of objects to build. 17537pic_mode=$pic_mode 17538 17539# Whether or not to build shared libraries. 17540build_libtool_libs=$enable_shared 17541 17542# Whether or not to optimize for fast installation. 17543fast_install=$enable_fast_install 17544 17545# Shared archive member basename,for filename based shared library versioning on AIX. 17546shared_archive_member_spec=$shared_archive_member_spec 17547 17548# Shell to use when invoking shell scripts. 17549SHELL=$lt_SHELL 17550 17551# An echo program that protects backslashes. 17552ECHO=$lt_ECHO 17553 17554# The PATH separator for the build system. 17555PATH_SEPARATOR=$lt_PATH_SEPARATOR 17556 17557# The host system. 17558host_alias=$host_alias 17559host=$host 17560host_os=$host_os 17561 17562# The build system. 17563build_alias=$build_alias 17564build=$build 17565build_os=$build_os 17566 17567# A sed program that does not truncate output. 17568SED=$lt_SED 17569 17570# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17571Xsed="\$SED -e 1s/^X//" 17572 17573# A grep program that handles long lines. 17574GREP=$lt_GREP 17575 17576# An ERE matcher. 17577EGREP=$lt_EGREP 17578 17579# A literal string matcher. 17580FGREP=$lt_FGREP 17581 17582# A BSD- or MS-compatible name lister. 17583NM=$lt_NM 17584 17585# Whether we need soft or hard links. 17586LN_S=$lt_LN_S 17587 17588# What is the maximum length of a command? 17589max_cmd_len=$max_cmd_len 17590 17591# Object file suffix (normally "o"). 17592objext=$ac_objext 17593 17594# Executable file suffix (normally ""). 17595exeext=$exeext 17596 17597# whether the shell understands "unset". 17598lt_unset=$lt_unset 17599 17600# turn spaces into newlines. 17601SP2NL=$lt_lt_SP2NL 17602 17603# turn newlines into spaces. 17604NL2SP=$lt_lt_NL2SP 17605 17606# convert \$build file names to \$host format. 17607to_host_file_cmd=$lt_cv_to_host_file_cmd 17608 17609# convert \$build files to toolchain format. 17610to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17611 17612# An object symbol dumper. 17613OBJDUMP=$lt_OBJDUMP 17614 17615# Method to check whether dependent libraries are shared objects. 17616deplibs_check_method=$lt_deplibs_check_method 17617 17618# Command to use when deplibs_check_method = "file_magic". 17619file_magic_cmd=$lt_file_magic_cmd 17620 17621# How to find potential files when deplibs_check_method = "file_magic". 17622file_magic_glob=$lt_file_magic_glob 17623 17624# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17625want_nocaseglob=$lt_want_nocaseglob 17626 17627# DLL creation program. 17628DLLTOOL=$lt_DLLTOOL 17629 17630# Command to associate shared and link libraries. 17631sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17632 17633# The archiver. 17634AR=$lt_AR 17635 17636# Flags to create an archive. 17637AR_FLAGS=$lt_AR_FLAGS 17638 17639# How to feed a file listing to the archiver. 17640archiver_list_spec=$lt_archiver_list_spec 17641 17642# A symbol stripping program. 17643STRIP=$lt_STRIP 17644 17645# Commands used to install an old-style archive. 17646RANLIB=$lt_RANLIB 17647old_postinstall_cmds=$lt_old_postinstall_cmds 17648old_postuninstall_cmds=$lt_old_postuninstall_cmds 17649 17650# Whether to use a lock for old archive extraction. 17651lock_old_archive_extraction=$lock_old_archive_extraction 17652 17653# A C compiler. 17654LTCC=$lt_CC 17655 17656# LTCC compiler flags. 17657LTCFLAGS=$lt_CFLAGS 17658 17659# Take the output of nm and produce a listing of raw symbols and C names. 17660global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17661 17662# Transform the output of nm in a proper C declaration. 17663global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17664 17665# Transform the output of nm into a list of symbols to manually relocate. 17666global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17667 17668# Transform the output of nm in a C name address pair. 17669global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17670 17671# Transform the output of nm in a C name address pair when lib prefix is needed. 17672global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17673 17674# The name lister interface. 17675nm_interface=$lt_lt_cv_nm_interface 17676 17677# Specify filename containing input files for \$NM. 17678nm_file_list_spec=$lt_nm_file_list_spec 17679 17680# The root where to search for dependent libraries,and where our libraries should be installed. 17681lt_sysroot=$lt_sysroot 17682 17683# Command to truncate a binary pipe. 17684lt_truncate_bin=$lt_lt_cv_truncate_bin 17685 17686# The name of the directory that contains temporary libtool files. 17687objdir=$objdir 17688 17689# Used to examine libraries when file_magic_cmd begins with "file". 17690MAGIC_CMD=$MAGIC_CMD 17691 17692# Must we lock files when doing compilation? 17693need_locks=$lt_need_locks 17694 17695# Manifest tool. 17696MANIFEST_TOOL=$lt_MANIFEST_TOOL 17697 17698# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17699DSYMUTIL=$lt_DSYMUTIL 17700 17701# Tool to change global to local symbols on Mac OS X. 17702NMEDIT=$lt_NMEDIT 17703 17704# Tool to manipulate fat objects and archives on Mac OS X. 17705LIPO=$lt_LIPO 17706 17707# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17708OTOOL=$lt_OTOOL 17709 17710# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17711OTOOL64=$lt_OTOOL64 17712 17713# Old archive suffix (normally "a"). 17714libext=$libext 17715 17716# Shared library suffix (normally ".so"). 17717shrext_cmds=$lt_shrext_cmds 17718 17719# The commands to extract the exported symbol list from a shared archive. 17720extract_expsyms_cmds=$lt_extract_expsyms_cmds 17721 17722# Variables whose values should be saved in libtool wrapper scripts and 17723# restored at link time. 17724variables_saved_for_relink=$lt_variables_saved_for_relink 17725 17726# Do we need the "lib" prefix for modules? 17727need_lib_prefix=$need_lib_prefix 17728 17729# Do we need a version for libraries? 17730need_version=$need_version 17731 17732# Library versioning type. 17733version_type=$version_type 17734 17735# Shared library runtime path variable. 17736runpath_var=$runpath_var 17737 17738# Shared library path variable. 17739shlibpath_var=$shlibpath_var 17740 17741# Is shlibpath searched before the hard-coded library search path? 17742shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17743 17744# Format of library name prefix. 17745libname_spec=$lt_libname_spec 17746 17747# List of archive names. First name is the real one, the rest are links. 17748# The last name is the one that the linker finds with -lNAME 17749library_names_spec=$lt_library_names_spec 17750 17751# The coded name of the library, if different from the real name. 17752soname_spec=$lt_soname_spec 17753 17754# Permission mode override for installation of shared libraries. 17755install_override_mode=$lt_install_override_mode 17756 17757# Command to use after installation of a shared archive. 17758postinstall_cmds=$lt_postinstall_cmds 17759 17760# Command to use after uninstallation of a shared archive. 17761postuninstall_cmds=$lt_postuninstall_cmds 17762 17763# Commands used to finish a libtool library installation in a directory. 17764finish_cmds=$lt_finish_cmds 17765 17766# As "finish_cmds", except a single script fragment to be evaled but 17767# not shown. 17768finish_eval=$lt_finish_eval 17769 17770# Whether we should hardcode library paths into libraries. 17771hardcode_into_libs=$hardcode_into_libs 17772 17773# Compile-time system search path for libraries. 17774sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17775 17776# Detected run-time system search path for libraries. 17777sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17778 17779# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17780configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17781 17782# Whether dlopen is supported. 17783dlopen_support=$enable_dlopen 17784 17785# Whether dlopen of programs is supported. 17786dlopen_self=$enable_dlopen_self 17787 17788# Whether dlopen of statically linked programs is supported. 17789dlopen_self_static=$enable_dlopen_self_static 17790 17791# Commands to strip libraries. 17792old_striplib=$lt_old_striplib 17793striplib=$lt_striplib 17794 17795 17796# The linker used to build libraries. 17797LD=$lt_LD 17798 17799# How to create reloadable object files. 17800reload_flag=$lt_reload_flag 17801reload_cmds=$lt_reload_cmds 17802 17803# Commands used to build an old-style archive. 17804old_archive_cmds=$lt_old_archive_cmds 17805 17806# A language specific compiler. 17807CC=$lt_compiler 17808 17809# Is the compiler the GNU compiler? 17810with_gcc=$GCC 17811 17812# Compiler flag to turn off builtin functions. 17813no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17814 17815# Additional compiler flags for building library objects. 17816pic_flag=$lt_lt_prog_compiler_pic 17817 17818# How to pass a linker flag through the compiler. 17819wl=$lt_lt_prog_compiler_wl 17820 17821# Compiler flag to prevent dynamic linking. 17822link_static_flag=$lt_lt_prog_compiler_static 17823 17824# Does compiler simultaneously support -c and -o options? 17825compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17826 17827# Whether or not to add -lc for building shared libraries. 17828build_libtool_need_lc=$archive_cmds_need_lc 17829 17830# Whether or not to disallow shared libs when runtime libs are static. 17831allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17832 17833# Compiler flag to allow reflexive dlopens. 17834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17835 17836# Compiler flag to generate shared objects directly from archives. 17837whole_archive_flag_spec=$lt_whole_archive_flag_spec 17838 17839# Whether the compiler copes with passing no objects directly. 17840compiler_needs_object=$lt_compiler_needs_object 17841 17842# Create an old-style archive from a shared archive. 17843old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17844 17845# Create a temporary old-style archive to link instead of a shared archive. 17846old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17847 17848# Commands used to build a shared archive. 17849archive_cmds=$lt_archive_cmds 17850archive_expsym_cmds=$lt_archive_expsym_cmds 17851 17852# Commands used to build a loadable module if different from building 17853# a shared archive. 17854module_cmds=$lt_module_cmds 17855module_expsym_cmds=$lt_module_expsym_cmds 17856 17857# Whether we are building with GNU ld or not. 17858with_gnu_ld=$lt_with_gnu_ld 17859 17860# Flag that allows shared libraries with undefined symbols to be built. 17861allow_undefined_flag=$lt_allow_undefined_flag 17862 17863# Flag that enforces no undefined symbols. 17864no_undefined_flag=$lt_no_undefined_flag 17865 17866# Flag to hardcode \$libdir into a binary during linking. 17867# This must work even if \$libdir does not exist 17868hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17869 17870# Whether we need a single "-rpath" flag with a separated argument. 17871hardcode_libdir_separator=$lt_hardcode_libdir_separator 17872 17873# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17874# DIR into the resulting binary. 17875hardcode_direct=$hardcode_direct 17876 17877# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17878# DIR into the resulting binary and the resulting library dependency is 17879# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17880# library is relocated. 17881hardcode_direct_absolute=$hardcode_direct_absolute 17882 17883# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17884# into the resulting binary. 17885hardcode_minus_L=$hardcode_minus_L 17886 17887# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17888# into the resulting binary. 17889hardcode_shlibpath_var=$hardcode_shlibpath_var 17890 17891# Set to "yes" if building a shared library automatically hardcodes DIR 17892# into the library and all subsequent libraries and executables linked 17893# against it. 17894hardcode_automatic=$hardcode_automatic 17895 17896# Set to yes if linker adds runtime paths of dependent libraries 17897# to runtime path list. 17898inherit_rpath=$inherit_rpath 17899 17900# Whether libtool must link a program against all its dependency libraries. 17901link_all_deplibs=$link_all_deplibs 17902 17903# Set to "yes" if exported symbols are required. 17904always_export_symbols=$always_export_symbols 17905 17906# The commands to list exported symbols. 17907export_symbols_cmds=$lt_export_symbols_cmds 17908 17909# Symbols that should not be listed in the preloaded symbols. 17910exclude_expsyms=$lt_exclude_expsyms 17911 17912# Symbols that must always be exported. 17913include_expsyms=$lt_include_expsyms 17914 17915# Commands necessary for linking programs (against libraries) with templates. 17916prelink_cmds=$lt_prelink_cmds 17917 17918# Commands necessary for finishing linking programs. 17919postlink_cmds=$lt_postlink_cmds 17920 17921# Specify filename containing input files. 17922file_list_spec=$lt_file_list_spec 17923 17924# How to hardcode a shared library path into an executable. 17925hardcode_action=$hardcode_action 17926 17927# ### END LIBTOOL CONFIG 17928 17929_LT_EOF 17930 17931 cat <<'_LT_EOF' >> "$cfgfile" 17932 17933# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17934 17935# func_munge_path_list VARIABLE PATH 17936# ----------------------------------- 17937# VARIABLE is name of variable containing _space_ separated list of 17938# directories to be munged by the contents of PATH, which is string 17939# having a format: 17940# "DIR[:DIR]:" 17941# string "DIR[ DIR]" will be prepended to VARIABLE 17942# ":DIR[:DIR]" 17943# string "DIR[ DIR]" will be appended to VARIABLE 17944# "DIRP[:DIRP]::[DIRA:]DIRA" 17945# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17946# "DIRA[ DIRA]" will be appended to VARIABLE 17947# "DIR[:DIR]" 17948# VARIABLE will be replaced by "DIR[ DIR]" 17949func_munge_path_list () 17950{ 17951 case x$2 in 17952 x) 17953 ;; 17954 *:) 17955 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17956 ;; 17957 x:*) 17958 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17959 ;; 17960 *::*) 17961 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17962 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17963 ;; 17964 *) 17965 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17966 ;; 17967 esac 17968} 17969 17970 17971# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17972func_cc_basename () 17973{ 17974 for cc_temp in $*""; do 17975 case $cc_temp in 17976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17978 \-*) ;; 17979 *) break;; 17980 esac 17981 done 17982 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17983} 17984 17985 17986# ### END FUNCTIONS SHARED WITH CONFIGURE 17987 17988_LT_EOF 17989 17990 case $host_os in 17991 aix3*) 17992 cat <<\_LT_EOF >> "$cfgfile" 17993# AIX sometimes has problems with the GCC collect2 program. For some 17994# reason, if we set the COLLECT_NAMES environment variable, the problems 17995# vanish in a puff of smoke. 17996if test set != "${COLLECT_NAMES+set}"; then 17997 COLLECT_NAMES= 17998 export COLLECT_NAMES 17999fi 18000_LT_EOF 18001 ;; 18002 esac 18003 18004 18005 18006ltmain=$ac_aux_dir/ltmain.sh 18007 18008 18009 # We use sed instead of cat because bash on DJGPP gets confused if 18010 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18011 # text mode, it properly converts lines to CR/LF. This bash problem 18012 # is reportedly fixed, but why not run on old versions too? 18013 sed '$q' "$ltmain" >> "$cfgfile" \ 18014 || (rm -f "$cfgfile"; exit 1) 18015 18016 mv -f "$cfgfile" "$ofile" || 18017 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18018 chmod +x "$ofile" 18019 18020 ;; 18021 18022 esac 18023done # for ac_tag 18024 18025 18026as_fn_exit 0 18027_ACEOF 18028ac_clean_files=$ac_clean_files_save 18029 18030test $ac_write_fail = 0 || 18031 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18032 18033 18034# configure is writing to config.log, and then calls config.status. 18035# config.status does its own redirection, appending to config.log. 18036# Unfortunately, on DOS this fails, as config.log is still kept open 18037# by configure, so config.status won't be able to write to it; its 18038# output is simply discarded. So we exec the FD to /dev/null, 18039# effectively closing config.log, so it can be properly (re)opened and 18040# appended to by config.status. When coming back to configure, we 18041# need to make the FD available again. 18042if test "$no_create" != yes; then 18043 ac_cs_success=: 18044 ac_config_status_args= 18045 test "$silent" = yes && 18046 ac_config_status_args="$ac_config_status_args --quiet" 18047 exec 5>/dev/null 18048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18049 exec 5>>config.log 18050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18051 # would make configure fail if this is the last instruction. 18052 $ac_cs_success || as_fn_exit 1 18053fi 18054if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18056printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18057fi 18058 18059 18060