1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for ldns 1.8.3. 4# 5# Report bugs to <libdns@nlnetlabs.nl>. 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: libdns@nlnetlabs.nl 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='ldns' 623PACKAGE_TARNAME='libdns' 624PACKAGE_VERSION='1.8.3' 625PACKAGE_STRING='ldns 1.8.3' 626PACKAGE_BUGREPORT='libdns@nlnetlabs.nl' 627PACKAGE_URL='' 628 629ac_unique_file="packet.c" 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662ac_func_c_list= 663ac_subst_vars='LTLIBOBJS 664CONFIG_FILES 665ldns_build_config_have_attr_unused 666ldns_build_config_have_attr_format 667ldns_build_config_have_ssl 668DEFAULT_CAPATH 669DEFAULT_CAFILE 670LDNS_TRUST_ANCHOR_FILE 671WINDRES 672ldns_build_config_have_b32_pton 673ldns_build_config_have_b32_ntop 674LIBOBJS 675ldns_build_config_have_socklen_t 676LIBPCAP_LIBS 677include_unistd_h 678include_systypes_h 679include_inttypes_h 680ldns_build_config_have_inttypes_h 681include_sys_socket_h 682LIBSSL_SSL_LIBS 683LIBSSL_LIBS 684LIBSSL_LDFLAGS 685LIBSSL_CPPFLAGS 686ldns_build_config_use_dane_ta_usage 687ldns_build_config_use_dane_verify 688ldns_build_config_use_dane 689ldns_build_config_use_ed448 690ldns_build_config_use_ed25519 691ldns_build_config_use_dsa 692RUNTIME_PATH 693HAVE_SSL 694libtool 695CLEAN_P5_DNS_LDNS 696UNINSTALL_P5_DNS_LDNS 697INSTALL_P5_DNS_LDNS 698TEST_P5_DNS_LDNS 699P5_DNS_LDNS 700PERL 701PYLDNSXUNINST 702PYLDNSXINST 703PYLDNSUNINST 704PYLDNSINST 705PYLDNSX 706PYTHON_X_CFLAGS 707swig 708PYLDNS 709SWIG_LIB 710SWIG 711SWIGPY3 712PYTHON_EXTRA_LDFLAGS 713PYTHON_EXTRA_LIBS 714PYTHON_SITE_PKG 715PYTHON_LIBS 716PYTHON_CPPFLAGS 717PYTHON 718PYTHON_VERSION 719UNINSTALL_CONFIG_MANPAGE 720UNINSTALL_CONFIG 721INSTALL_CONFIG_MANPAGE 722INSTALL_CONFIG 723LINT_EXAMPLES 724CLEAN_EXAMPLES 725UNINSTALL_EXAMPLES 726INSTALL_EXAMPLES 727EXAMPLES 728LINT_DRILL 729CLEAN_DRILL 730UNINSTALL_DRILL 731INSTALL_DRILL 732DRILL 733doxygen 734LINTFLAGS 735SET_MAKE 736DEPFLAG 737LT_SYS_LIBRARY_PATH 738OTOOL64 739OTOOL 740LIPO 741NMEDIT 742DSYMUTIL 743MANIFEST_TOOL 744AWK 745RANLIB 746STRIP 747ac_ct_AR 748AR 749DLLTOOL 750OBJDUMP 751LN_S 752NM 753ac_ct_DUMPBIN 754DUMPBIN 755LD 756FGREP 757EGREP 758GREP 759SED 760host_os 761host_vendor 762host_cpu 763host 764build_os 765build_vendor 766build_cpu 767build 768LIBTOOL 769OBJEXT 770EXEEXT 771ac_ct_CC 772CPPFLAGS 773LDFLAGS 774CFLAGS 775CC 776VERSION_INFO 777LDNS_VERSION_MICRO 778LDNS_VERSION_MINOR 779LDNS_VERSION_MAJOR 780target_alias 781host_alias 782build_alias 783LIBS 784ECHO_T 785ECHO_N 786ECHO_C 787DEFS 788mandir 789localedir 790libdir 791psdir 792pdfdir 793dvidir 794htmldir 795infodir 796docdir 797oldincludedir 798includedir 799localstatedir 800sharedstatedir 801sysconfdir 802datadir 803datarootdir 804libexecdir 805sbindir 806bindir 807program_transform_name 808prefix 809exec_prefix 810PACKAGE_URL 811PACKAGE_BUGREPORT 812PACKAGE_STRING 813PACKAGE_VERSION 814PACKAGE_TARNAME 815PACKAGE_NAME 816PATH_SEPARATOR 817SHELL' 818ac_subst_files='' 819ac_user_opts=' 820enable_option_checking 821enable_shared 822enable_static 823with_pic 824enable_fast_install 825with_aix_soname 826with_gnu_ld 827with_sysroot 828enable_libtool_lock 829with_drill 830with_examples 831enable_ldns_config 832enable_stderr_msgs 833enable_poll 834with_pyldns 835with_pyldnsx 836with_p5_dns_ldns 837with_ssl 838enable_sha2 839enable_gost 840enable_gost_anyway 841enable_ecdsa 842enable_dsa 843enable_ed25519 844enable_ed448 845enable_dane 846enable_dane_verify 847enable_dane_ta_usage 848enable_full_dane 849enable_no_dane_ta_usage 850enable_no_dane_verify 851enable_rrtype_ninfo 852enable_rrtype_rkey 853enable_rrtype_openpgpkey 854enable_rrtype_ta 855enable_rrtype_avc 856enable_rrtype_doa 857enable_rrtype_amtrelay 858enable_rrtype_svcb_https 859enable_rpath 860with_xcode_sdk 861with_trust_anchor 862with_ca_file 863with_ca_path 864' 865 ac_precious_vars='build_alias 866host_alias 867target_alias 868CC 869CFLAGS 870LDFLAGS 871LIBS 872CPPFLAGS 873LT_SYS_LIBRARY_PATH 874PYTHON_VERSION' 875 876 877# Initialize some variables set by options. 878ac_init_help= 879ac_init_version=false 880ac_unrecognized_opts= 881ac_unrecognized_sep= 882# The variables have the same names as the options, with 883# dashes changed to underlines. 884cache_file=/dev/null 885exec_prefix=NONE 886no_create= 887no_recursion= 888prefix=NONE 889program_prefix=NONE 890program_suffix=NONE 891program_transform_name=s,x,x, 892silent= 893site= 894srcdir= 895verbose= 896x_includes=NONE 897x_libraries=NONE 898 899# Installation directory options. 900# These are left unexpanded so users can "make install exec_prefix=/foo" 901# and all the variables that are supposed to be based on exec_prefix 902# by default will actually change. 903# Use braces instead of parens because sh, perl, etc. also accept them. 904# (The list follows the same order as the GNU Coding Standards.) 905bindir='${exec_prefix}/bin' 906sbindir='${exec_prefix}/sbin' 907libexecdir='${exec_prefix}/libexec' 908datarootdir='${prefix}/share' 909datadir='${datarootdir}' 910sysconfdir='${prefix}/etc' 911sharedstatedir='${prefix}/com' 912localstatedir='${prefix}/var' 913includedir='${prefix}/include' 914oldincludedir='/usr/include' 915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 916infodir='${datarootdir}/info' 917htmldir='${docdir}' 918dvidir='${docdir}' 919pdfdir='${docdir}' 920psdir='${docdir}' 921libdir='${exec_prefix}/lib' 922localedir='${datarootdir}/locale' 923mandir='${datarootdir}/man' 924 925ac_prev= 926ac_dashdash= 927for ac_option 928do 929 # If the previous option needs an argument, assign it. 930 if test -n "$ac_prev"; then 931 eval $ac_prev=\$ac_option 932 ac_prev= 933 continue 934 fi 935 936 case $ac_option in 937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 938 *=) ac_optarg= ;; 939 *) ac_optarg=yes ;; 940 esac 941 942 case $ac_dashdash$ac_option in 943 --) 944 ac_dashdash=yes ;; 945 946 -bindir | --bindir | --bindi | --bind | --bin | --bi) 947 ac_prev=bindir ;; 948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 949 bindir=$ac_optarg ;; 950 951 -build | --build | --buil | --bui | --bu) 952 ac_prev=build_alias ;; 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 954 build_alias=$ac_optarg ;; 955 956 -cache-file | --cache-file | --cache-fil | --cache-fi \ 957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 958 ac_prev=cache_file ;; 959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 961 cache_file=$ac_optarg ;; 962 963 --config-cache | -C) 964 cache_file=config.cache ;; 965 966 -datadir | --datadir | --datadi | --datad) 967 ac_prev=datadir ;; 968 -datadir=* | --datadir=* | --datadi=* | --datad=*) 969 datadir=$ac_optarg ;; 970 971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 972 | --dataroo | --dataro | --datar) 973 ac_prev=datarootdir ;; 974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 976 datarootdir=$ac_optarg ;; 977 978 -disable-* | --disable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: \`$ac_useropt'" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987"enable_$ac_useropt" 988"*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=no ;; 993 994 -docdir | --docdir | --docdi | --doc | --do) 995 ac_prev=docdir ;; 996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 997 docdir=$ac_optarg ;; 998 999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1000 ac_prev=dvidir ;; 1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1002 dvidir=$ac_optarg ;; 1003 1004 -enable-* | --enable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013"enable_$ac_useropt" 1014"*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1164 ac_prev=sbindir ;; 1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1166 | --sbi=* | --sb=*) 1167 sbindir=$ac_optarg ;; 1168 1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1171 | --sharedst | --shareds | --shared | --share | --shar \ 1172 | --sha | --sh) 1173 ac_prev=sharedstatedir ;; 1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1177 | --sha=* | --sh=*) 1178 sharedstatedir=$ac_optarg ;; 1179 1180 -site | --site | --sit) 1181 ac_prev=site ;; 1182 -site=* | --site=* | --sit=*) 1183 site=$ac_optarg ;; 1184 1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1186 ac_prev=srcdir ;; 1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1188 srcdir=$ac_optarg ;; 1189 1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1191 | --syscon | --sysco | --sysc | --sys | --sy) 1192 ac_prev=sysconfdir ;; 1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1195 sysconfdir=$ac_optarg ;; 1196 1197 -target | --target | --targe | --targ | --tar | --ta | --t) 1198 ac_prev=target_alias ;; 1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1200 target_alias=$ac_optarg ;; 1201 1202 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1203 verbose=yes ;; 1204 1205 -version | --version | --versio | --versi | --vers | -V) 1206 ac_init_version=: ;; 1207 1208 -with-* | --with-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: \`$ac_useropt'" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217"with_$ac_useropt" 1218"*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=\$ac_optarg ;; 1223 1224 -without-* | --without-*) 1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1226 # Reject names that are not valid shell variable names. 1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1228 as_fn_error $? "invalid package name: \`$ac_useropt'" 1229 ac_useropt_orig=$ac_useropt 1230 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1231 case $ac_user_opts in 1232 *" 1233"with_$ac_useropt" 1234"*) ;; 1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1236 ac_unrecognized_sep=', ';; 1237 esac 1238 eval with_$ac_useropt=no ;; 1239 1240 --x) 1241 # Obsolete; use --with-x. 1242 with_x=yes ;; 1243 1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1245 | --x-incl | --x-inc | --x-in | --x-i) 1246 ac_prev=x_includes ;; 1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1249 x_includes=$ac_optarg ;; 1250 1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1253 ac_prev=x_libraries ;; 1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1256 x_libraries=$ac_optarg ;; 1257 1258 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1259Try \`$0 --help' for more information" 1260 ;; 1261 1262 *=*) 1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1264 # Reject names that are not valid shell variable names. 1265 case $ac_envvar in #( 1266 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1268 esac 1269 eval $ac_envvar=\$ac_optarg 1270 export $ac_envvar ;; 1271 1272 *) 1273 # FIXME: should be removed in autoconf 3.0. 1274 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1276 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1278 ;; 1279 1280 esac 1281done 1282 1283if test -n "$ac_prev"; then 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 as_fn_error $? "missing argument to $ac_option" 1286fi 1287 1288if test -n "$ac_unrecognized_opts"; then 1289 case $enable_option_checking in 1290 no) ;; 1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1292 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1293 esac 1294fi 1295 1296# Check all directory arguments for consistency. 1297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1298 datadir sysconfdir sharedstatedir localstatedir includedir \ 1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1300 libdir localedir mandir 1301do 1302 eval ac_val=\$$ac_var 1303 # Remove trailing slashes. 1304 case $ac_val in 1305 */ ) 1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1307 eval $ac_var=\$ac_val;; 1308 esac 1309 # Be sure to have absolute directory names. 1310 case $ac_val in 1311 [\\/$]* | ?:[\\/]* ) continue;; 1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1313 esac 1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1315done 1316 1317# There might be people who depend on the old broken behavior: `$host' 1318# used to hold the argument of --host etc. 1319# FIXME: To remove some day. 1320build=$build_alias 1321host=$host_alias 1322target=$target_alias 1323 1324# FIXME: To remove some day. 1325if test "x$host_alias" != x; then 1326 if test "x$build_alias" = x; then 1327 cross_compiling=maybe 1328 elif test "x$build_alias" != "x$host_alias"; then 1329 cross_compiling=yes 1330 fi 1331fi 1332 1333ac_tool_prefix= 1334test -n "$host_alias" && ac_tool_prefix=$host_alias- 1335 1336test "$silent" = yes && exec 6>/dev/null 1337 1338 1339ac_pwd=`pwd` && test -n "$ac_pwd" && 1340ac_ls_di=`ls -di .` && 1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1342 as_fn_error $? "working directory cannot be determined" 1343test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1344 as_fn_error $? "pwd does not report name of working directory" 1345 1346 1347# Find the source files, if location was not specified. 1348if test -z "$srcdir"; then 1349 ac_srcdir_defaulted=yes 1350 # Try the directory containing this script, then the parent directory. 1351 ac_confdir=`$as_dirname -- "$as_myself" || 1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1353 X"$as_myself" : 'X\(//\)[^/]' \| \ 1354 X"$as_myself" : 'X\(//\)$' \| \ 1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1356printf "%s\n" X"$as_myself" | 1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)[^/].*/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\/\)$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\).*/{ 1370 s//\1/ 1371 q 1372 } 1373 s/.*/./; q'` 1374 srcdir=$ac_confdir 1375 if test ! -r "$srcdir/$ac_unique_file"; then 1376 srcdir=.. 1377 fi 1378else 1379 ac_srcdir_defaulted=no 1380fi 1381if test ! -r "$srcdir/$ac_unique_file"; then 1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1384fi 1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1386ac_abs_confdir=`( 1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1388 pwd)` 1389# When building in place, set srcdir=. 1390if test "$ac_abs_confdir" = "$ac_pwd"; then 1391 srcdir=. 1392fi 1393# Remove unnecessary trailing slashes from srcdir. 1394# Double slashes in file names in object file debugging info 1395# mess up M-x gdb in Emacs. 1396case $srcdir in 1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1398esac 1399for ac_var in $ac_precious_vars; do 1400 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_env_${ac_var}_value=\$${ac_var} 1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1403 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1404done 1405 1406# 1407# Report the --help message. 1408# 1409if test "$ac_init_help" = "long"; then 1410 # Omit some internal or obsolete options to make the list less imposing. 1411 # This message is too long to be a string in the A/UX 3.1 sh. 1412 cat <<_ACEOF 1413\`configure' configures ldns 1.8.3 to adapt to many kinds of systems. 1414 1415Usage: $0 [OPTION]... [VAR=VALUE]... 1416 1417To assign environment variables (e.g., CC, CFLAGS...), specify them as 1418VAR=VALUE. See below for descriptions of some of the useful variables. 1419 1420Defaults for the options are specified in brackets. 1421 1422Configuration: 1423 -h, --help display this help and exit 1424 --help=short display options specific to this package 1425 --help=recursive display the short help of all the included packages 1426 -V, --version display version information and exit 1427 -q, --quiet, --silent do not print \`checking ...' messages 1428 --cache-file=FILE cache test results in FILE [disabled] 1429 -C, --config-cache alias for \`--cache-file=config.cache' 1430 -n, --no-create do not create output files 1431 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1432 1433Installation directories: 1434 --prefix=PREFIX install architecture-independent files in PREFIX 1435 [$ac_default_prefix] 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1437 [PREFIX] 1438 1439By default, \`make install' will install all the files in 1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1441an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1442for instance \`--prefix=\$HOME'. 1443 1444For better control, use the options below. 1445 1446Fine tuning of the installation directories: 1447 --bindir=DIR user executables [EPREFIX/bin] 1448 --sbindir=DIR system admin executables [EPREFIX/sbin] 1449 --libexecdir=DIR program executables [EPREFIX/libexec] 1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1453 --libdir=DIR object code libraries [EPREFIX/lib] 1454 --includedir=DIR C header files [PREFIX/include] 1455 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1458 --infodir=DIR info documentation [DATAROOTDIR/info] 1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1460 --mandir=DIR man documentation [DATAROOTDIR/man] 1461 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns] 1462 --htmldir=DIR html documentation [DOCDIR] 1463 --dvidir=DIR dvi documentation [DOCDIR] 1464 --pdfdir=DIR pdf documentation [DOCDIR] 1465 --psdir=DIR ps documentation [DOCDIR] 1466_ACEOF 1467 1468 cat <<\_ACEOF 1469 1470System types: 1471 --build=BUILD configure for building on BUILD [guessed] 1472 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1473_ACEOF 1474fi 1475 1476if test -n "$ac_init_help"; then 1477 case $ac_init_help in 1478 short | recursive ) echo "Configuration of ldns 1.8.3:";; 1479 esac 1480 cat <<\_ACEOF 1481 1482Optional Features: 1483 --disable-option-checking ignore unrecognized --enable/--with options 1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1486 --enable-shared[=PKGS] build shared libraries [default=yes] 1487 --enable-static[=PKGS] build static libraries [default=yes] 1488 --enable-fast-install[=PKGS] 1489 optimize for fast installation [default=yes] 1490 --disable-libtool-lock avoid locking (might break parallel builds) 1491 --disable-ldns-config disable installation of ldns-config 1492 (default=enabled) 1493 --enable-stderr-msgs Enable printing to stderr (default=disabled) 1494 --enable-poll This platform supports poll(7) 1495 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1496 --disable-gost Disable GOST support 1497 --enable-gost-anyway Enable GOST even without a GOST engine installed 1498 --disable-ecdsa Disable ECDSA support 1499 --disable-dsa Disable DSA support 1500 --disable-ed25519 Disable (experimental) ED25519 support. Default is 1501 detect 1502 --disable-ed448 Disable (experimental) ED448 support. Default is 1503 detect 1504 --disable-dane Disable DANE support 1505 --disable-dane-verify Disable DANE verify support 1506 --disable-dane-ta-usage Disable DANE-TA usage type support 1507 1508 --enable-rrtype-ninfo Enable draft RR type ninfo. 1509 --enable-rrtype-rkey Enable draft RR type rkey. 1510 --disable-rrtype-openpgpkey 1511 Disable openpgpkey RR type. 1512 --enable-rrtype-ta Enable draft RR type ta. 1513 --enable-rrtype-avc Enable draft RR type avc. 1514 --enable-rrtype-doa Enable draft RR type DOA. 1515 --enable-rrtype-amtrelay 1516 Enable draft RR type AMTRELAY. 1517 --disable-rrtype-svcb-https 1518 Disable RR types SVCB and HTTPS. 1519 --disable-rpath disable hardcoded rpath (default=enabled) 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1525 both] 1526 --with-aix-soname=aix|svr4|both 1527 shared library versioning (aka "SONAME") variant to 1528 provide on AIX, [default=aix]. 1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1530 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1531 compiler's sysroot if not specified). 1532 --with-drill Also build drill. 1533 --with-examples Also build examples. 1534 --with-pyldns generate python library, or --without-pyldns to 1535 disable Python support. 1536 --without-pyldnsx Do not install the ldnsx python module, or 1537 --with-pyldnsx to install it. 1538 --with-p5-dns-ldns generate DNS::LDNS perl bindings 1539 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1540 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1541 /usr) 1542 --with-xcode-sdk Set xcode SDK version. Default is autodetect 1543 --with-trust-anchor=KEYFILE 1544 Default location of the trust anchor file for drill 1545 and ldns-dane. [default=SYSCONFDIR/unbound/root.key] 1546 --with-ca-file=CAFILE File containing CA certificates for ldns-dane 1547 --with-ca-path=CAPATH Directory containing CA certificate files for 1548 ldns-dane 1549 1550Some influential environment variables: 1551 CC C compiler command 1552 CFLAGS C compiler flags 1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1554 nonstandard directory <lib dir> 1555 LIBS libraries to pass to the linker, e.g. -l<library> 1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1557 you have headers in a nonstandard directory <include dir> 1558 LT_SYS_LIBRARY_PATH 1559 User-defined run-time library search path. 1560 PYTHON_VERSION 1561 The installed Python version to use, for example '2.3'. This 1562 string will be appended to the Python interpreter canonical 1563 name. 1564 1565Use these variables to override the choices made by `configure' or to help 1566it to find libraries and programs with nonstandard names/locations. 1567 1568Report bugs to <libdns@nlnetlabs.nl>. 1569_ACEOF 1570ac_status=$? 1571fi 1572 1573if test "$ac_init_help" = "recursive"; then 1574 # If there are subdirs, report their specific --help. 1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1576 test -d "$ac_dir" || 1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1578 continue 1579 ac_builddir=. 1580 1581case "$ac_dir" in 1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1583*) 1584 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1585 # A ".." for each directory in $ac_dir_suffix. 1586 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1587 case $ac_top_builddir_sub in 1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1590 esac ;; 1591esac 1592ac_abs_top_builddir=$ac_pwd 1593ac_abs_builddir=$ac_pwd$ac_dir_suffix 1594# for backward compatibility: 1595ac_top_builddir=$ac_top_build_prefix 1596 1597case $srcdir in 1598 .) # We are building in place. 1599 ac_srcdir=. 1600 ac_top_srcdir=$ac_top_builddir_sub 1601 ac_abs_top_srcdir=$ac_pwd ;; 1602 [\\/]* | ?:[\\/]* ) # Absolute name. 1603 ac_srcdir=$srcdir$ac_dir_suffix; 1604 ac_top_srcdir=$srcdir 1605 ac_abs_top_srcdir=$srcdir ;; 1606 *) # Relative name. 1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1608 ac_top_srcdir=$ac_top_build_prefix$srcdir 1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1610esac 1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1612 1613 cd "$ac_dir" || { ac_status=$?; continue; } 1614 # Check for configure.gnu first; this name is used for a wrapper for 1615 # Metaconfig's "Configure" on case-insensitive file systems. 1616 if test -f "$ac_srcdir/configure.gnu"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1619 elif test -f "$ac_srcdir/configure"; then 1620 echo && 1621 $SHELL "$ac_srcdir/configure" --help=recursive 1622 else 1623 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1624 fi || ac_status=$? 1625 cd "$ac_pwd" || { ac_status=$?; break; } 1626 done 1627fi 1628 1629test -n "$ac_init_help" && exit $ac_status 1630if $ac_init_version; then 1631 cat <<\_ACEOF 1632ldns configure 1.8.3 1633generated by GNU Autoconf 2.71 1634 1635Copyright (C) 2021 Free Software Foundation, Inc. 1636This configure script is free software; the Free Software Foundation 1637gives unlimited permission to copy, distribute and modify it. 1638_ACEOF 1639 exit 1640fi 1641 1642## ------------------------ ## 1643## Autoconf initialization. ## 1644## ------------------------ ## 1645 1646# ac_fn_c_try_compile LINENO 1647# -------------------------- 1648# Try to compile conftest.$ac_ext, and return whether this succeeded. 1649ac_fn_c_try_compile () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 rm -f conftest.$ac_objext conftest.beam 1653 if { { ac_try="$ac_compile" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659printf "%s\n" "$ac_try_echo"; } >&5 1660 (eval "$ac_compile") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { 1669 test -z "$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 } && test -s conftest.$ac_objext 1672then : 1673 ac_retval=0 1674else $as_nop 1675 printf "%s\n" "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_c_try_compile 1684 1685# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1686# ------------------------------------------------------- 1687# Tests whether HEADER exists and can be compiled using the include files in 1688# INCLUDES, setting the cache variable VAR accordingly. 1689ac_fn_c_check_header_compile () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1693printf %s "checking for $2... " >&6; } 1694if eval test \${$3+y} 1695then : 1696 printf %s "(cached) " >&6 1697else $as_nop 1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1699/* end confdefs.h. */ 1700$4 1701#include <$2> 1702_ACEOF 1703if ac_fn_c_try_compile "$LINENO" 1704then : 1705 eval "$3=yes" 1706else $as_nop 1707 eval "$3=no" 1708fi 1709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1710fi 1711eval ac_res=\$$3 1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1713printf "%s\n" "$ac_res" >&6; } 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 1716} # ac_fn_c_check_header_compile 1717 1718# ac_fn_c_try_link LINENO 1719# ----------------------- 1720# Try to link conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_link () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1725 if { { ac_try="$ac_link" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731printf "%s\n" "$ac_try_echo"; } >&5 1732 (eval "$ac_link") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { 1741 test -z "$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 } && test -s conftest$ac_exeext && { 1744 test "$cross_compiling" = yes || 1745 test -x conftest$ac_exeext 1746 } 1747then : 1748 ac_retval=0 1749else $as_nop 1750 printf "%s\n" "$as_me: failed program was:" >&5 1751sed 's/^/| /' conftest.$ac_ext >&5 1752 1753 ac_retval=1 1754fi 1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1757 # interfere with the next link command; also delete a directory that is 1758 # left behind by Apple's compiler. We do this before executing the actions. 1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_link 1764 1765# ac_fn_c_check_func LINENO FUNC VAR 1766# ---------------------------------- 1767# Tests whether FUNC exists, setting the cache variable VAR accordingly 1768ac_fn_c_check_func () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1772printf %s "checking for $2... " >&6; } 1773if eval test \${$3+y} 1774then : 1775 printf %s "(cached) " >&6 1776else $as_nop 1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778/* end confdefs.h. */ 1779/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1781#define $2 innocuous_$2 1782 1783/* System header to define __stub macros and hopefully few prototypes, 1784 which can conflict with char $2 (); below. */ 1785 1786#include <limits.h> 1787#undef $2 1788 1789/* Override any GCC internal prototype to avoid an error. 1790 Use char because int might match the return type of a GCC 1791 builtin and then its argument prototype would still apply. */ 1792#ifdef __cplusplus 1793extern "C" 1794#endif 1795char $2 (); 1796/* The GNU C library defines this for functions which it implements 1797 to always fail with ENOSYS. Some functions are actually named 1798 something starting with __ and the normal name is an alias. */ 1799#if defined __stub_$2 || defined __stub___$2 1800choke me 1801#endif 1802 1803int 1804main (void) 1805{ 1806return $2 (); 1807 ; 1808 return 0; 1809} 1810_ACEOF 1811if ac_fn_c_try_link "$LINENO" 1812then : 1813 eval "$3=yes" 1814else $as_nop 1815 eval "$3=no" 1816fi 1817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1818 conftest$ac_exeext conftest.$ac_ext 1819fi 1820eval ac_res=\$$3 1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822printf "%s\n" "$ac_res" >&6; } 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 1825} # ac_fn_c_check_func 1826 1827# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1828# ------------------------------------------- 1829# Tests whether TYPE exists after having included INCLUDES, setting cache 1830# variable VAR accordingly. 1831ac_fn_c_check_type () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835printf %s "checking for $2... " >&6; } 1836if eval test \${$3+y} 1837then : 1838 printf %s "(cached) " >&6 1839else $as_nop 1840 eval "$3=no" 1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843$4 1844int 1845main (void) 1846{ 1847if (sizeof ($2)) 1848 return 0; 1849 ; 1850 return 0; 1851} 1852_ACEOF 1853if ac_fn_c_try_compile "$LINENO" 1854then : 1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856/* end confdefs.h. */ 1857$4 1858int 1859main (void) 1860{ 1861if (sizeof (($2))) 1862 return 0; 1863 ; 1864 return 0; 1865} 1866_ACEOF 1867if ac_fn_c_try_compile "$LINENO" 1868then : 1869 1870else $as_nop 1871 eval "$3=yes" 1872fi 1873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1874fi 1875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1876fi 1877eval ac_res=\$$3 1878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879printf "%s\n" "$ac_res" >&6; } 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882} # ac_fn_c_check_type 1883 1884# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1885# ------------------------------------------------------------------ 1886# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1887# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1888ac_fn_check_decl () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 as_decl_name=`echo $2|sed 's/ *(.*//'` 1892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1893printf %s "checking whether $as_decl_name is declared... " >&6; } 1894if eval test \${$3+y} 1895then : 1896 printf %s "(cached) " >&6 1897else $as_nop 1898 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1899 eval ac_save_FLAGS=\$$6 1900 as_fn_append $6 " $5" 1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1902/* end confdefs.h. */ 1903$4 1904int 1905main (void) 1906{ 1907#ifndef $as_decl_name 1908#ifdef __cplusplus 1909 (void) $as_decl_use; 1910#else 1911 (void) $as_decl_name; 1912#endif 1913#endif 1914 1915 ; 1916 return 0; 1917} 1918_ACEOF 1919if ac_fn_c_try_compile "$LINENO" 1920then : 1921 eval "$3=yes" 1922else $as_nop 1923 eval "$3=no" 1924fi 1925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1926 eval $6=\$ac_save_FLAGS 1927 1928fi 1929eval ac_res=\$$3 1930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1931printf "%s\n" "$ac_res" >&6; } 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 1934} # ac_fn_check_decl 1935 1936# ac_fn_c_try_run LINENO 1937# ---------------------- 1938# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1939# executables *can* be run. 1940ac_fn_c_try_run () 1941{ 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 if { { ac_try="$ac_link" 1944case "(($ac_try" in 1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1946 *) ac_try_echo=$ac_try;; 1947esac 1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1949printf "%s\n" "$ac_try_echo"; } >&5 1950 (eval "$ac_link") 2>&5 1951 ac_status=$? 1952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1953 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1954 { { case "(($ac_try" in 1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1956 *) ac_try_echo=$ac_try;; 1957esac 1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1959printf "%s\n" "$ac_try_echo"; } >&5 1960 (eval "$ac_try") 2>&5 1961 ac_status=$? 1962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1963 test $ac_status = 0; }; } 1964then : 1965 ac_retval=0 1966else $as_nop 1967 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1968 printf "%s\n" "$as_me: failed program was:" >&5 1969sed 's/^/| /' conftest.$ac_ext >&5 1970 1971 ac_retval=$ac_status 1972fi 1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1975 as_fn_set_status $ac_retval 1976 1977} # ac_fn_c_try_run 1978 1979# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1980# -------------------------------------------- 1981# Tries to find the compile-time value of EXPR in a program that includes 1982# INCLUDES, setting VAR accordingly. Returns whether the value could be 1983# computed 1984ac_fn_c_compute_int () 1985{ 1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1987 if test "$cross_compiling" = yes; then 1988 # Depending upon the size, compute the lo and hi bounds. 1989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991$4 1992int 1993main (void) 1994{ 1995static int test_array [1 - 2 * !(($2) >= 0)]; 1996test_array [0] = 0; 1997return test_array [0]; 1998 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO" 2004then : 2005 ac_lo=0 ac_mid=0 2006 while :; do 2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2008/* end confdefs.h. */ 2009$4 2010int 2011main (void) 2012{ 2013static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2014test_array [0] = 0; 2015return test_array [0]; 2016 2017 ; 2018 return 0; 2019} 2020_ACEOF 2021if ac_fn_c_try_compile "$LINENO" 2022then : 2023 ac_hi=$ac_mid; break 2024else $as_nop 2025 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2026 if test $ac_lo -le $ac_mid; then 2027 ac_lo= ac_hi= 2028 break 2029 fi 2030 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2033 done 2034else $as_nop 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037$4 2038int 2039main (void) 2040{ 2041static int test_array [1 - 2 * !(($2) < 0)]; 2042test_array [0] = 0; 2043return test_array [0]; 2044 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_compile "$LINENO" 2050then : 2051 ac_hi=-1 ac_mid=-1 2052 while :; do 2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054/* end confdefs.h. */ 2055$4 2056int 2057main (void) 2058{ 2059static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 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 ac_lo=$ac_mid; break 2070else $as_nop 2071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2072 if test $ac_mid -le $ac_hi; then 2073 ac_lo= ac_hi= 2074 break 2075 fi 2076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2077fi 2078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2079 done 2080else $as_nop 2081 ac_lo= ac_hi= 2082fi 2083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2084fi 2085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2086# Binary search between lo and hi bounds. 2087while test "x$ac_lo" != "x$ac_hi"; do 2088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2090/* end confdefs.h. */ 2091$4 2092int 2093main (void) 2094{ 2095static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2096test_array [0] = 0; 2097return test_array [0]; 2098 2099 ; 2100 return 0; 2101} 2102_ACEOF 2103if ac_fn_c_try_compile "$LINENO" 2104then : 2105 ac_hi=$ac_mid 2106else $as_nop 2107 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2108fi 2109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2110done 2111case $ac_lo in #(( 2112?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2113'') ac_retval=1 ;; 2114esac 2115 else 2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118$4 2119static long int longval (void) { return $2; } 2120static unsigned long int ulongval (void) { return $2; } 2121#include <stdio.h> 2122#include <stdlib.h> 2123int 2124main (void) 2125{ 2126 2127 FILE *f = fopen ("conftest.val", "w"); 2128 if (! f) 2129 return 1; 2130 if (($2) < 0) 2131 { 2132 long int i = longval (); 2133 if (i != ($2)) 2134 return 1; 2135 fprintf (f, "%ld", i); 2136 } 2137 else 2138 { 2139 unsigned long int i = ulongval (); 2140 if (i != ($2)) 2141 return 1; 2142 fprintf (f, "%lu", i); 2143 } 2144 /* Do not output a trailing newline, as this causes \r\n confusion 2145 on some platforms. */ 2146 return ferror (f) || fclose (f) != 0; 2147 2148 ; 2149 return 0; 2150} 2151_ACEOF 2152if ac_fn_c_try_run "$LINENO" 2153then : 2154 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2155else $as_nop 2156 ac_retval=1 2157fi 2158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2159 conftest.$ac_objext conftest.beam conftest.$ac_ext 2160rm -f conftest.val 2161 2162 fi 2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2164 as_fn_set_status $ac_retval 2165 2166} # ac_fn_c_compute_int 2167 2168# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2169# ---------------------------------------------------- 2170# Tries to find if the field MEMBER exists in type AGGR, after including 2171# INCLUDES, setting cache variable VAR accordingly. 2172ac_fn_c_check_member () 2173{ 2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2176printf %s "checking for $2.$3... " >&6; } 2177if eval test \${$4+y} 2178then : 2179 printf %s "(cached) " >&6 2180else $as_nop 2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2182/* end confdefs.h. */ 2183$5 2184int 2185main (void) 2186{ 2187static $2 ac_aggr; 2188if (ac_aggr.$3) 2189return 0; 2190 ; 2191 return 0; 2192} 2193_ACEOF 2194if ac_fn_c_try_compile "$LINENO" 2195then : 2196 eval "$4=yes" 2197else $as_nop 2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2199/* end confdefs.h. */ 2200$5 2201int 2202main (void) 2203{ 2204static $2 ac_aggr; 2205if (sizeof ac_aggr.$3) 2206return 0; 2207 ; 2208 return 0; 2209} 2210_ACEOF 2211if ac_fn_c_try_compile "$LINENO" 2212then : 2213 eval "$4=yes" 2214else $as_nop 2215 eval "$4=no" 2216fi 2217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2218fi 2219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2220fi 2221eval ac_res=\$$4 2222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2223printf "%s\n" "$ac_res" >&6; } 2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2225 2226} # ac_fn_c_check_member 2227ac_configure_args_raw= 2228for ac_arg 2229do 2230 case $ac_arg in 2231 *\'*) 2232 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2233 esac 2234 as_fn_append ac_configure_args_raw " '$ac_arg'" 2235done 2236 2237case $ac_configure_args_raw in 2238 *$as_nl*) 2239 ac_safe_unquote= ;; 2240 *) 2241 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2242 ac_unsafe_a="$ac_unsafe_z#~" 2243 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2244 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2245esac 2246 2247cat >config.log <<_ACEOF 2248This file contains any messages produced by compilers while 2249running configure, to aid debugging if configure makes a mistake. 2250 2251It was created by ldns $as_me 1.8.3, which was 2252generated by GNU Autoconf 2.71. Invocation command line was 2253 2254 $ $0$ac_configure_args_raw 2255 2256_ACEOF 2257exec 5>>config.log 2258{ 2259cat <<_ASUNAME 2260## --------- ## 2261## Platform. ## 2262## --------- ## 2263 2264hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2265uname -m = `(uname -m) 2>/dev/null || echo unknown` 2266uname -r = `(uname -r) 2>/dev/null || echo unknown` 2267uname -s = `(uname -s) 2>/dev/null || echo unknown` 2268uname -v = `(uname -v) 2>/dev/null || echo unknown` 2269 2270/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2271/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2272 2273/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2274/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2275/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2276/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2277/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2278/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2279/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2280 2281_ASUNAME 2282 2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 case $as_dir in #((( 2288 '') as_dir=./ ;; 2289 */) ;; 2290 *) as_dir=$as_dir/ ;; 2291 esac 2292 printf "%s\n" "PATH: $as_dir" 2293 done 2294IFS=$as_save_IFS 2295 2296} >&5 2297 2298cat >&5 <<_ACEOF 2299 2300 2301## ----------- ## 2302## Core tests. ## 2303## ----------- ## 2304 2305_ACEOF 2306 2307 2308# Keep a trace of the command line. 2309# Strip out --no-create and --no-recursion so they do not pile up. 2310# Strip out --silent because we don't want to record it for future runs. 2311# Also quote any args containing shell meta-characters. 2312# Make two passes to allow for proper duplicate-argument suppression. 2313ac_configure_args= 2314ac_configure_args0= 2315ac_configure_args1= 2316ac_must_keep_next=false 2317for ac_pass in 1 2 2318do 2319 for ac_arg 2320 do 2321 case $ac_arg in 2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2324 | -silent | --silent | --silen | --sile | --sil) 2325 continue ;; 2326 *\'*) 2327 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2328 esac 2329 case $ac_pass in 2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2331 2) 2332 as_fn_append ac_configure_args1 " '$ac_arg'" 2333 if test $ac_must_keep_next = true; then 2334 ac_must_keep_next=false # Got value, back to normal. 2335 else 2336 case $ac_arg in 2337 *=* | --config-cache | -C | -disable-* | --disable-* \ 2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2340 | -with-* | --with-* | -without-* | --without-* | --x) 2341 case "$ac_configure_args0 " in 2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2343 esac 2344 ;; 2345 -* ) ac_must_keep_next=true ;; 2346 esac 2347 fi 2348 as_fn_append ac_configure_args " '$ac_arg'" 2349 ;; 2350 esac 2351 done 2352done 2353{ ac_configure_args0=; unset ac_configure_args0;} 2354{ ac_configure_args1=; unset ac_configure_args1;} 2355 2356# When interrupted or exit'd, cleanup temporary files, and complete 2357# config.log. We remove comments because anyway the quotes in there 2358# would cause problems or look ugly. 2359# WARNING: Use '\'' to represent an apostrophe within the trap. 2360# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2361trap 'exit_status=$? 2362 # Sanitize IFS. 2363 IFS=" "" $as_nl" 2364 # Save into config.log some information that might help in debugging. 2365 { 2366 echo 2367 2368 printf "%s\n" "## ---------------- ## 2369## Cache variables. ## 2370## ---------------- ##" 2371 echo 2372 # The following way of writing the cache mishandles newlines in values, 2373( 2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2375 eval ac_val=\$$ac_var 2376 case $ac_val in #( 2377 *${as_nl}*) 2378 case $ac_var in #( 2379 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2380printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2381 esac 2382 case $ac_var in #( 2383 _ | IFS | as_nl) ;; #( 2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2385 *) { eval $ac_var=; unset $ac_var;} ;; 2386 esac ;; 2387 esac 2388 done 2389 (set) 2>&1 | 2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2391 *${as_nl}ac_space=\ *) 2392 sed -n \ 2393 "s/'\''/'\''\\\\'\'''\''/g; 2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2395 ;; #( 2396 *) 2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2398 ;; 2399 esac | 2400 sort 2401) 2402 echo 2403 2404 printf "%s\n" "## ----------------- ## 2405## Output variables. ## 2406## ----------------- ##" 2407 echo 2408 for ac_var in $ac_subst_vars 2409 do 2410 eval ac_val=\$$ac_var 2411 case $ac_val in 2412 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2413 esac 2414 printf "%s\n" "$ac_var='\''$ac_val'\''" 2415 done | sort 2416 echo 2417 2418 if test -n "$ac_subst_files"; then 2419 printf "%s\n" "## ------------------- ## 2420## File substitutions. ## 2421## ------------------- ##" 2422 echo 2423 for ac_var in $ac_subst_files 2424 do 2425 eval ac_val=\$$ac_var 2426 case $ac_val in 2427 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2428 esac 2429 printf "%s\n" "$ac_var='\''$ac_val'\''" 2430 done | sort 2431 echo 2432 fi 2433 2434 if test -s confdefs.h; then 2435 printf "%s\n" "## ----------- ## 2436## confdefs.h. ## 2437## ----------- ##" 2438 echo 2439 cat confdefs.h 2440 echo 2441 fi 2442 test "$ac_signal" != 0 && 2443 printf "%s\n" "$as_me: caught signal $ac_signal" 2444 printf "%s\n" "$as_me: exit $exit_status" 2445 } >&5 2446 rm -f core *.core core.conftest.* && 2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2448 exit $exit_status 2449' 0 2450for ac_signal in 1 2 13 15; do 2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2452done 2453ac_signal=0 2454 2455# confdefs.h avoids OS command line length limits that DEFS can exceed. 2456rm -f -r conftest* confdefs.h 2457 2458printf "%s\n" "/* confdefs.h */" > confdefs.h 2459 2460# Predefined preprocessor variables. 2461 2462printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2463 2464printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2465 2466printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2467 2468printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2469 2470printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2471 2472printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2473 2474 2475# Let the site file select an alternate cache file if it wants to. 2476# Prefer an explicitly selected file to automatically selected ones. 2477if test -n "$CONFIG_SITE"; then 2478 ac_site_files="$CONFIG_SITE" 2479elif test "x$prefix" != xNONE; then 2480 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2481else 2482 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2483fi 2484 2485for ac_site_file in $ac_site_files 2486do 2487 case $ac_site_file in #( 2488 */*) : 2489 ;; #( 2490 *) : 2491 ac_site_file=./$ac_site_file ;; 2492esac 2493 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2495printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2496 sed 's/^/| /' "$ac_site_file" >&5 2497 . "$ac_site_file" \ 2498 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2499printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2500as_fn_error $? "failed to load site script $ac_site_file 2501See \`config.log' for more details" "$LINENO" 5; } 2502 fi 2503done 2504 2505if test -r "$cache_file"; then 2506 # Some versions of bash will fail to source /dev/null (special files 2507 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2508 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2510printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2511 case $cache_file in 2512 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2513 *) . "./$cache_file";; 2514 esac 2515 fi 2516else 2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2518printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2519 >$cache_file 2520fi 2521 2522as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2523# Test code for whether the C compiler supports C89 (global declarations) 2524ac_c_conftest_c89_globals=' 2525/* Does the compiler advertise C89 conformance? 2526 Do not test the value of __STDC__, because some compilers set it to 0 2527 while being otherwise adequately conformant. */ 2528#if !defined __STDC__ 2529# error "Compiler does not advertise C89 conformance" 2530#endif 2531 2532#include <stddef.h> 2533#include <stdarg.h> 2534struct stat; 2535/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2536struct buf { int x; }; 2537struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2538static char *e (p, i) 2539 char **p; 2540 int i; 2541{ 2542 return p[i]; 2543} 2544static char *f (char * (*g) (char **, int), char **p, ...) 2545{ 2546 char *s; 2547 va_list v; 2548 va_start (v,p); 2549 s = g (p, va_arg (v,int)); 2550 va_end (v); 2551 return s; 2552} 2553 2554/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2555 function prototypes and stuff, but not \xHH hex character constants. 2556 These do not provoke an error unfortunately, instead are silently treated 2557 as an "x". The following induces an error, until -std is added to get 2558 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2559 array size at least. It is necessary to write \x00 == 0 to get something 2560 that is true only with -std. */ 2561int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2562 2563/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2564 inside strings and character constants. */ 2565#define FOO(x) '\''x'\'' 2566int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2567 2568int test (int i, double x); 2569struct s1 {int (*f) (int a);}; 2570struct s2 {int (*f) (double a);}; 2571int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2572 int, int);' 2573 2574# Test code for whether the C compiler supports C89 (body of main). 2575ac_c_conftest_c89_main=' 2576ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2577' 2578 2579# Test code for whether the C compiler supports C99 (global declarations) 2580ac_c_conftest_c99_globals=' 2581// Does the compiler advertise C99 conformance? 2582#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2583# error "Compiler does not advertise C99 conformance" 2584#endif 2585 2586#include <stdbool.h> 2587extern int puts (const char *); 2588extern int printf (const char *, ...); 2589extern int dprintf (int, const char *, ...); 2590extern void *malloc (size_t); 2591 2592// Check varargs macros. These examples are taken from C99 6.10.3.5. 2593// dprintf is used instead of fprintf to avoid needing to declare 2594// FILE and stderr. 2595#define debug(...) dprintf (2, __VA_ARGS__) 2596#define showlist(...) puts (#__VA_ARGS__) 2597#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2598static void 2599test_varargs_macros (void) 2600{ 2601 int x = 1234; 2602 int y = 5678; 2603 debug ("Flag"); 2604 debug ("X = %d\n", x); 2605 showlist (The first, second, and third items.); 2606 report (x>y, "x is %d but y is %d", x, y); 2607} 2608 2609// Check long long types. 2610#define BIG64 18446744073709551615ull 2611#define BIG32 4294967295ul 2612#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2613#if !BIG_OK 2614 #error "your preprocessor is broken" 2615#endif 2616#if BIG_OK 2617#else 2618 #error "your preprocessor is broken" 2619#endif 2620static long long int bignum = -9223372036854775807LL; 2621static unsigned long long int ubignum = BIG64; 2622 2623struct incomplete_array 2624{ 2625 int datasize; 2626 double data[]; 2627}; 2628 2629struct named_init { 2630 int number; 2631 const wchar_t *name; 2632 double average; 2633}; 2634 2635typedef const char *ccp; 2636 2637static inline int 2638test_restrict (ccp restrict text) 2639{ 2640 // See if C++-style comments work. 2641 // Iterate through items via the restricted pointer. 2642 // Also check for declarations in for loops. 2643 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2644 continue; 2645 return 0; 2646} 2647 2648// Check varargs and va_copy. 2649static bool 2650test_varargs (const char *format, ...) 2651{ 2652 va_list args; 2653 va_start (args, format); 2654 va_list args_copy; 2655 va_copy (args_copy, args); 2656 2657 const char *str = ""; 2658 int number = 0; 2659 float fnumber = 0; 2660 2661 while (*format) 2662 { 2663 switch (*format++) 2664 { 2665 case '\''s'\'': // string 2666 str = va_arg (args_copy, const char *); 2667 break; 2668 case '\''d'\'': // int 2669 number = va_arg (args_copy, int); 2670 break; 2671 case '\''f'\'': // float 2672 fnumber = va_arg (args_copy, double); 2673 break; 2674 default: 2675 break; 2676 } 2677 } 2678 va_end (args_copy); 2679 va_end (args); 2680 2681 return *str && number && fnumber; 2682} 2683' 2684 2685# Test code for whether the C compiler supports C99 (body of main). 2686ac_c_conftest_c99_main=' 2687 // Check bool. 2688 _Bool success = false; 2689 success |= (argc != 0); 2690 2691 // Check restrict. 2692 if (test_restrict ("String literal") == 0) 2693 success = true; 2694 char *restrict newvar = "Another string"; 2695 2696 // Check varargs. 2697 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2698 test_varargs_macros (); 2699 2700 // Check flexible array members. 2701 struct incomplete_array *ia = 2702 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2703 ia->datasize = 10; 2704 for (int i = 0; i < ia->datasize; ++i) 2705 ia->data[i] = i * 1.234; 2706 2707 // Check named initializers. 2708 struct named_init ni = { 2709 .number = 34, 2710 .name = L"Test wide string", 2711 .average = 543.34343, 2712 }; 2713 2714 ni.number = 58; 2715 2716 int dynamic_array[ni.number]; 2717 dynamic_array[0] = argv[0][0]; 2718 dynamic_array[ni.number - 1] = 543; 2719 2720 // work around unused variable warnings 2721 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2722 || dynamic_array[ni.number - 1] != 543); 2723' 2724 2725# Test code for whether the C compiler supports C11 (global declarations) 2726ac_c_conftest_c11_globals=' 2727// Does the compiler advertise C11 conformance? 2728#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2729# error "Compiler does not advertise C11 conformance" 2730#endif 2731 2732// Check _Alignas. 2733char _Alignas (double) aligned_as_double; 2734char _Alignas (0) no_special_alignment; 2735extern char aligned_as_int; 2736char _Alignas (0) _Alignas (int) aligned_as_int; 2737 2738// Check _Alignof. 2739enum 2740{ 2741 int_alignment = _Alignof (int), 2742 int_array_alignment = _Alignof (int[100]), 2743 char_alignment = _Alignof (char) 2744}; 2745_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2746 2747// Check _Noreturn. 2748int _Noreturn does_not_return (void) { for (;;) continue; } 2749 2750// Check _Static_assert. 2751struct test_static_assert 2752{ 2753 int x; 2754 _Static_assert (sizeof (int) <= sizeof (long int), 2755 "_Static_assert does not work in struct"); 2756 long int y; 2757}; 2758 2759// Check UTF-8 literals. 2760#define u8 syntax error! 2761char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2762 2763// Check duplicate typedefs. 2764typedef long *long_ptr; 2765typedef long int *long_ptr; 2766typedef long_ptr long_ptr; 2767 2768// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2769struct anonymous 2770{ 2771 union { 2772 struct { int i; int j; }; 2773 struct { int k; long int l; } w; 2774 }; 2775 int m; 2776} v1; 2777' 2778 2779# Test code for whether the C compiler supports C11 (body of main). 2780ac_c_conftest_c11_main=' 2781 _Static_assert ((offsetof (struct anonymous, i) 2782 == offsetof (struct anonymous, w.k)), 2783 "Anonymous union alignment botch"); 2784 v1.i = 2; 2785 v1.w.k = 5; 2786 ok |= v1.i != 5; 2787' 2788 2789# Test code for whether the C compiler supports C11 (complete). 2790ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2791${ac_c_conftest_c99_globals} 2792${ac_c_conftest_c11_globals} 2793 2794int 2795main (int argc, char **argv) 2796{ 2797 int ok = 0; 2798 ${ac_c_conftest_c89_main} 2799 ${ac_c_conftest_c99_main} 2800 ${ac_c_conftest_c11_main} 2801 return ok; 2802} 2803" 2804 2805# Test code for whether the C compiler supports C99 (complete). 2806ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2807${ac_c_conftest_c99_globals} 2808 2809int 2810main (int argc, char **argv) 2811{ 2812 int ok = 0; 2813 ${ac_c_conftest_c89_main} 2814 ${ac_c_conftest_c99_main} 2815 return ok; 2816} 2817" 2818 2819# Test code for whether the C compiler supports C89 (complete). 2820ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2821 2822int 2823main (int argc, char **argv) 2824{ 2825 int ok = 0; 2826 ${ac_c_conftest_c89_main} 2827 return ok; 2828} 2829" 2830 2831as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2832as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2833as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2834as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2835as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2836as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2837as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2838as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2839as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2840as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2841as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2842as_fn_append ac_func_c_list " fork HAVE_FORK" 2843as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2844 2845# Auxiliary files required by this configure script. 2846ac_aux_files="config.guess config.sub ltmain.sh" 2847 2848# Locations in which to look for auxiliary files. 2849ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2850 2851# Search for a directory containing all of the required auxiliary files, 2852# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2853# If we don't find one directory that contains all the files we need, 2854# we report the set of missing files from the *first* directory in 2855# $ac_aux_dir_candidates and give up. 2856ac_missing_aux_files="" 2857ac_first_candidate=: 2858printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860as_found=false 2861for as_dir in $ac_aux_dir_candidates 2862do 2863 IFS=$as_save_IFS 2864 case $as_dir in #((( 2865 '') as_dir=./ ;; 2866 */) ;; 2867 *) as_dir=$as_dir/ ;; 2868 esac 2869 as_found=: 2870 2871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2872 ac_aux_dir_found=yes 2873 ac_install_sh= 2874 for ac_aux in $ac_aux_files 2875 do 2876 # As a special case, if "install-sh" is required, that requirement 2877 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2878 # and $ac_install_sh is set appropriately for whichever one is found. 2879 if test x"$ac_aux" = x"install-sh" 2880 then 2881 if test -f "${as_dir}install-sh"; then 2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2883 ac_install_sh="${as_dir}install-sh -c" 2884 elif test -f "${as_dir}install.sh"; then 2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2886 ac_install_sh="${as_dir}install.sh -c" 2887 elif test -f "${as_dir}shtool"; then 2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2889 ac_install_sh="${as_dir}shtool install -c" 2890 else 2891 ac_aux_dir_found=no 2892 if $ac_first_candidate; then 2893 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2894 else 2895 break 2896 fi 2897 fi 2898 else 2899 if test -f "${as_dir}${ac_aux}"; then 2900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2901 else 2902 ac_aux_dir_found=no 2903 if $ac_first_candidate; then 2904 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2905 else 2906 break 2907 fi 2908 fi 2909 fi 2910 done 2911 if test "$ac_aux_dir_found" = yes; then 2912 ac_aux_dir="$as_dir" 2913 break 2914 fi 2915 ac_first_candidate=false 2916 2917 as_found=false 2918done 2919IFS=$as_save_IFS 2920if $as_found 2921then : 2922 2923else $as_nop 2924 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2925fi 2926 2927 2928# These three variables are undocumented and unsupported, 2929# and are intended to be withdrawn in a future Autoconf release. 2930# They can cause serious problems if a builder's source tree is in a directory 2931# whose full name contains unusual characters. 2932if test -f "${ac_aux_dir}config.guess"; then 2933 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2934fi 2935if test -f "${ac_aux_dir}config.sub"; then 2936 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2937fi 2938if test -f "$ac_aux_dir/configure"; then 2939 ac_configure="$SHELL ${ac_aux_dir}configure" 2940fi 2941 2942# Check that the precious variables saved in the cache have kept the same 2943# value. 2944ac_cache_corrupted=false 2945for ac_var in $ac_precious_vars; do 2946 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2947 eval ac_new_set=\$ac_env_${ac_var}_set 2948 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2949 eval ac_new_val=\$ac_env_${ac_var}_value 2950 case $ac_old_set,$ac_new_set in 2951 set,) 2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2953printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2954 ac_cache_corrupted=: ;; 2955 ,set) 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2957printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2958 ac_cache_corrupted=: ;; 2959 ,);; 2960 *) 2961 if test "x$ac_old_val" != "x$ac_new_val"; then 2962 # differences in whitespace do not lead to failure. 2963 ac_old_val_w=`echo x $ac_old_val` 2964 ac_new_val_w=`echo x $ac_new_val` 2965 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2967printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2968 ac_cache_corrupted=: 2969 else 2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2971printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2972 eval $ac_var=\$ac_old_val 2973 fi 2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2975printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2977printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2978 fi;; 2979 esac 2980 # Pass precious variables to config.status. 2981 if test "$ac_new_set" = set; then 2982 case $ac_new_val in 2983 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2984 *) ac_arg=$ac_var=$ac_new_val ;; 2985 esac 2986 case " $ac_configure_args " in 2987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2988 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2989 esac 2990 fi 2991done 2992if $ac_cache_corrupted; then 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2994printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2996printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2997 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2998 and start over" "$LINENO" 5 2999fi 3000## -------------------- ## 3001## Main body of script. ## 3002## -------------------- ## 3003 3004ac_ext=c 3005ac_cpp='$CPP $CPPFLAGS' 3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3008ac_compiler_gnu=$ac_cv_c_compiler_gnu 3009 3010 3011 3012# needed to build correct soname 3013LDNS_VERSION_MAJOR=1 3014 3015LDNS_VERSION_MINOR=8 3016 3017LDNS_VERSION_MICRO=3 3018 3019 3020# Library version 3021# --------------- 3022# current:revision:age 3023# (binary-api-number):(which-binary-api-version):(how-many-nrs-backwardscompat) 3024# if source code changes increment revision 3025# if any interfaces have been added/removed/changed since last update then 3026# increment current and set revision to 0 3027# if any interfaces have been added since the last public release then increment age 3028# if any interfaces have been removed or changed since the last public release then 3029# set age to 0 3030# 3031# ldns-1.6.17 and before had a .so with version same as VERSION_INFO 3032# ldns-1.7.0 had libversion 2:0:0 3033# ldns-1.7.1 had libversion 3:0:0 (though it should have had 3:0:1) 3034# ldns-1.8.0 had libversion 4:0:2 (though it should have had 4:0:1) 3035# ldns-1.8.1 had libversion 5:0:2 3036# ldns-1.8.1 had libversion 6:0:3 3037# ldns-1.8.2 had libversion 7:0:4 3038# ldns-1.8.3 has libversion 8:0:5 3039# 3040VERSION_INFO=8:0:5 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052ac_ext=c 3053ac_cpp='$CPP $CPPFLAGS' 3054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3056ac_compiler_gnu=$ac_cv_c_compiler_gnu 3057if test -n "$ac_tool_prefix"; then 3058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3059set dummy ${ac_tool_prefix}gcc; ac_word=$2 3060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3061printf %s "checking for $ac_word... " >&6; } 3062if test ${ac_cv_prog_CC+y} 3063then : 3064 printf %s "(cached) " >&6 3065else $as_nop 3066 if test -n "$CC"; then 3067 ac_cv_prog_CC="$CC" # Let the user override the test. 3068else 3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070for as_dir in $PATH 3071do 3072 IFS=$as_save_IFS 3073 case $as_dir in #((( 3074 '') as_dir=./ ;; 3075 */) ;; 3076 *) as_dir=$as_dir/ ;; 3077 esac 3078 for ac_exec_ext in '' $ac_executable_extensions; do 3079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3080 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3082 break 2 3083 fi 3084done 3085 done 3086IFS=$as_save_IFS 3087 3088fi 3089fi 3090CC=$ac_cv_prog_CC 3091if test -n "$CC"; then 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3093printf "%s\n" "$CC" >&6; } 3094else 3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3096printf "%s\n" "no" >&6; } 3097fi 3098 3099 3100fi 3101if test -z "$ac_cv_prog_CC"; then 3102 ac_ct_CC=$CC 3103 # Extract the first word of "gcc", so it can be a program name with args. 3104set dummy gcc; ac_word=$2 3105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3106printf %s "checking for $ac_word... " >&6; } 3107if test ${ac_cv_prog_ac_ct_CC+y} 3108then : 3109 printf %s "(cached) " >&6 3110else $as_nop 3111 if test -n "$ac_ct_CC"; then 3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3113else 3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3115for as_dir in $PATH 3116do 3117 IFS=$as_save_IFS 3118 case $as_dir in #((( 3119 '') as_dir=./ ;; 3120 */) ;; 3121 *) as_dir=$as_dir/ ;; 3122 esac 3123 for ac_exec_ext in '' $ac_executable_extensions; do 3124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3125 ac_cv_prog_ac_ct_CC="gcc" 3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3127 break 2 3128 fi 3129done 3130 done 3131IFS=$as_save_IFS 3132 3133fi 3134fi 3135ac_ct_CC=$ac_cv_prog_ac_ct_CC 3136if test -n "$ac_ct_CC"; then 3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3138printf "%s\n" "$ac_ct_CC" >&6; } 3139else 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141printf "%s\n" "no" >&6; } 3142fi 3143 3144 if test "x$ac_ct_CC" = x; then 3145 CC="" 3146 else 3147 case $cross_compiling:$ac_tool_warned in 3148yes:) 3149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3150printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3151ac_tool_warned=yes ;; 3152esac 3153 CC=$ac_ct_CC 3154 fi 3155else 3156 CC="$ac_cv_prog_CC" 3157fi 3158 3159if test -z "$CC"; then 3160 if test -n "$ac_tool_prefix"; then 3161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3162set dummy ${ac_tool_prefix}cc; ac_word=$2 3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164printf %s "checking for $ac_word... " >&6; } 3165if test ${ac_cv_prog_CC+y} 3166then : 3167 printf %s "(cached) " >&6 3168else $as_nop 3169 if test -n "$CC"; then 3170 ac_cv_prog_CC="$CC" # Let the user override the test. 3171else 3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3173for as_dir in $PATH 3174do 3175 IFS=$as_save_IFS 3176 case $as_dir in #((( 3177 '') as_dir=./ ;; 3178 */) ;; 3179 *) as_dir=$as_dir/ ;; 3180 esac 3181 for ac_exec_ext in '' $ac_executable_extensions; do 3182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3183 ac_cv_prog_CC="${ac_tool_prefix}cc" 3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3185 break 2 3186 fi 3187done 3188 done 3189IFS=$as_save_IFS 3190 3191fi 3192fi 3193CC=$ac_cv_prog_CC 3194if test -n "$CC"; then 3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3196printf "%s\n" "$CC" >&6; } 3197else 3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3199printf "%s\n" "no" >&6; } 3200fi 3201 3202 3203 fi 3204fi 3205if test -z "$CC"; then 3206 # Extract the first word of "cc", so it can be a program name with args. 3207set dummy cc; ac_word=$2 3208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3209printf %s "checking for $ac_word... " >&6; } 3210if test ${ac_cv_prog_CC+y} 3211then : 3212 printf %s "(cached) " >&6 3213else $as_nop 3214 if test -n "$CC"; then 3215 ac_cv_prog_CC="$CC" # Let the user override the test. 3216else 3217 ac_prog_rejected=no 3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3219for as_dir in $PATH 3220do 3221 IFS=$as_save_IFS 3222 case $as_dir in #((( 3223 '') as_dir=./ ;; 3224 */) ;; 3225 *) as_dir=$as_dir/ ;; 3226 esac 3227 for ac_exec_ext in '' $ac_executable_extensions; do 3228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3229 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3230 ac_prog_rejected=yes 3231 continue 3232 fi 3233 ac_cv_prog_CC="cc" 3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3235 break 2 3236 fi 3237done 3238 done 3239IFS=$as_save_IFS 3240 3241if test $ac_prog_rejected = yes; then 3242 # We found a bogon in the path, so make sure we never use it. 3243 set dummy $ac_cv_prog_CC 3244 shift 3245 if test $# != 0; then 3246 # We chose a different compiler from the bogus one. 3247 # However, it has the same basename, so the bogon will be chosen 3248 # first if we set CC to just the basename; use the full file name. 3249 shift 3250 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3251 fi 3252fi 3253fi 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258printf "%s\n" "$CC" >&6; } 3259else 3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261printf "%s\n" "no" >&6; } 3262fi 3263 3264 3265fi 3266if test -z "$CC"; then 3267 if test -n "$ac_tool_prefix"; then 3268 for ac_prog in cl.exe 3269 do 3270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3271set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3273printf %s "checking for $ac_word... " >&6; } 3274if test ${ac_cv_prog_CC+y} 3275then : 3276 printf %s "(cached) " >&6 3277else $as_nop 3278 if test -n "$CC"; then 3279 ac_cv_prog_CC="$CC" # Let the user override the test. 3280else 3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3282for as_dir in $PATH 3283do 3284 IFS=$as_save_IFS 3285 case $as_dir in #((( 3286 '') as_dir=./ ;; 3287 */) ;; 3288 *) as_dir=$as_dir/ ;; 3289 esac 3290 for ac_exec_ext in '' $ac_executable_extensions; do 3291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3294 break 2 3295 fi 3296done 3297 done 3298IFS=$as_save_IFS 3299 3300fi 3301fi 3302CC=$ac_cv_prog_CC 3303if test -n "$CC"; then 3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3305printf "%s\n" "$CC" >&6; } 3306else 3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308printf "%s\n" "no" >&6; } 3309fi 3310 3311 3312 test -n "$CC" && break 3313 done 3314fi 3315if test -z "$CC"; then 3316 ac_ct_CC=$CC 3317 for ac_prog in cl.exe 3318do 3319 # Extract the first word of "$ac_prog", so it can be a program name with args. 3320set dummy $ac_prog; ac_word=$2 3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3322printf %s "checking for $ac_word... " >&6; } 3323if test ${ac_cv_prog_ac_ct_CC+y} 3324then : 3325 printf %s "(cached) " >&6 3326else $as_nop 3327 if test -n "$ac_ct_CC"; then 3328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3329else 3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3331for as_dir in $PATH 3332do 3333 IFS=$as_save_IFS 3334 case $as_dir in #((( 3335 '') as_dir=./ ;; 3336 */) ;; 3337 *) as_dir=$as_dir/ ;; 3338 esac 3339 for ac_exec_ext in '' $ac_executable_extensions; do 3340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3341 ac_cv_prog_ac_ct_CC="$ac_prog" 3342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3343 break 2 3344 fi 3345done 3346 done 3347IFS=$as_save_IFS 3348 3349fi 3350fi 3351ac_ct_CC=$ac_cv_prog_ac_ct_CC 3352if test -n "$ac_ct_CC"; then 3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3354printf "%s\n" "$ac_ct_CC" >&6; } 3355else 3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3357printf "%s\n" "no" >&6; } 3358fi 3359 3360 3361 test -n "$ac_ct_CC" && break 3362done 3363 3364 if test "x$ac_ct_CC" = x; then 3365 CC="" 3366 else 3367 case $cross_compiling:$ac_tool_warned in 3368yes:) 3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3370printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3371ac_tool_warned=yes ;; 3372esac 3373 CC=$ac_ct_CC 3374 fi 3375fi 3376 3377fi 3378if test -z "$CC"; then 3379 if test -n "$ac_tool_prefix"; then 3380 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3381set dummy ${ac_tool_prefix}clang; ac_word=$2 3382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383printf %s "checking for $ac_word... " >&6; } 3384if test ${ac_cv_prog_CC+y} 3385then : 3386 printf %s "(cached) " >&6 3387else $as_nop 3388 if test -n "$CC"; then 3389 ac_cv_prog_CC="$CC" # Let the user override the test. 3390else 3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392for as_dir in $PATH 3393do 3394 IFS=$as_save_IFS 3395 case $as_dir in #((( 3396 '') as_dir=./ ;; 3397 */) ;; 3398 *) as_dir=$as_dir/ ;; 3399 esac 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3402 ac_cv_prog_CC="${ac_tool_prefix}clang" 3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406done 3407 done 3408IFS=$as_save_IFS 3409 3410fi 3411fi 3412CC=$ac_cv_prog_CC 3413if test -n "$CC"; then 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3415printf "%s\n" "$CC" >&6; } 3416else 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418printf "%s\n" "no" >&6; } 3419fi 3420 3421 3422fi 3423if test -z "$ac_cv_prog_CC"; then 3424 ac_ct_CC=$CC 3425 # Extract the first word of "clang", so it can be a program name with args. 3426set dummy clang; ac_word=$2 3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3428printf %s "checking for $ac_word... " >&6; } 3429if test ${ac_cv_prog_ac_ct_CC+y} 3430then : 3431 printf %s "(cached) " >&6 3432else $as_nop 3433 if test -n "$ac_ct_CC"; then 3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3435else 3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3437for as_dir in $PATH 3438do 3439 IFS=$as_save_IFS 3440 case $as_dir in #((( 3441 '') as_dir=./ ;; 3442 */) ;; 3443 *) as_dir=$as_dir/ ;; 3444 esac 3445 for ac_exec_ext in '' $ac_executable_extensions; do 3446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3447 ac_cv_prog_ac_ct_CC="clang" 3448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3449 break 2 3450 fi 3451done 3452 done 3453IFS=$as_save_IFS 3454 3455fi 3456fi 3457ac_ct_CC=$ac_cv_prog_ac_ct_CC 3458if test -n "$ac_ct_CC"; then 3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3460printf "%s\n" "$ac_ct_CC" >&6; } 3461else 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463printf "%s\n" "no" >&6; } 3464fi 3465 3466 if test "x$ac_ct_CC" = x; then 3467 CC="" 3468 else 3469 case $cross_compiling:$ac_tool_warned in 3470yes:) 3471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3472printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3473ac_tool_warned=yes ;; 3474esac 3475 CC=$ac_ct_CC 3476 fi 3477else 3478 CC="$ac_cv_prog_CC" 3479fi 3480 3481fi 3482 3483 3484test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3485printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3486as_fn_error $? "no acceptable C compiler found in \$PATH 3487See \`config.log' for more details" "$LINENO" 5; } 3488 3489# Provide some information about the compiler. 3490printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3491set X $ac_compile 3492ac_compiler=$2 3493for ac_option in --version -v -V -qversion -version; do 3494 { { ac_try="$ac_compiler $ac_option >&5" 3495case "(($ac_try" in 3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3497 *) ac_try_echo=$ac_try;; 3498esac 3499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3500printf "%s\n" "$ac_try_echo"; } >&5 3501 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3502 ac_status=$? 3503 if test -s conftest.err; then 3504 sed '10a\ 3505... rest of stderr output deleted ... 3506 10q' conftest.err >conftest.er1 3507 cat conftest.er1 >&5 3508 fi 3509 rm -f conftest.er1 conftest.err 3510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3511 test $ac_status = 0; } 3512done 3513 3514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3515/* end confdefs.h. */ 3516 3517int 3518main (void) 3519{ 3520 3521 ; 3522 return 0; 3523} 3524_ACEOF 3525ac_clean_files_save=$ac_clean_files 3526ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3527# Try to create an executable without -o first, disregard a.out. 3528# It will help us diagnose broken compilers, and finding out an intuition 3529# of exeext. 3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3531printf %s "checking whether the C compiler works... " >&6; } 3532ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3533 3534# The possible output files: 3535ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3536 3537ac_rmfiles= 3538for ac_file in $ac_files 3539do 3540 case $ac_file in 3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3542 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3543 esac 3544done 3545rm -f $ac_rmfiles 3546 3547if { { ac_try="$ac_link_default" 3548case "(($ac_try" in 3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3550 *) ac_try_echo=$ac_try;; 3551esac 3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3553printf "%s\n" "$ac_try_echo"; } >&5 3554 (eval "$ac_link_default") 2>&5 3555 ac_status=$? 3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3557 test $ac_status = 0; } 3558then : 3559 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3560# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3561# in a Makefile. We should not override ac_cv_exeext if it was cached, 3562# so that the user can short-circuit this test for compilers unknown to 3563# Autoconf. 3564for ac_file in $ac_files '' 3565do 3566 test -f "$ac_file" || continue 3567 case $ac_file in 3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3569 ;; 3570 [ab].out ) 3571 # We found the default executable, but exeext='' is most 3572 # certainly right. 3573 break;; 3574 *.* ) 3575 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3576 then :; else 3577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3578 fi 3579 # We set ac_cv_exeext here because the later test for it is not 3580 # safe: cross compilers may not add the suffix if given an `-o' 3581 # argument, so we may need to know it at that point already. 3582 # Even if this section looks crufty: it has the advantage of 3583 # actually working. 3584 break;; 3585 * ) 3586 break;; 3587 esac 3588done 3589test "$ac_cv_exeext" = no && ac_cv_exeext= 3590 3591else $as_nop 3592 ac_file='' 3593fi 3594if test -z "$ac_file" 3595then : 3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3597printf "%s\n" "no" >&6; } 3598printf "%s\n" "$as_me: failed program was:" >&5 3599sed 's/^/| /' conftest.$ac_ext >&5 3600 3601{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3602printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3603as_fn_error 77 "C compiler cannot create executables 3604See \`config.log' for more details" "$LINENO" 5; } 3605else $as_nop 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3607printf "%s\n" "yes" >&6; } 3608fi 3609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3610printf %s "checking for C compiler default output file name... " >&6; } 3611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3612printf "%s\n" "$ac_file" >&6; } 3613ac_exeext=$ac_cv_exeext 3614 3615rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3616ac_clean_files=$ac_clean_files_save 3617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3618printf %s "checking for suffix of executables... " >&6; } 3619if { { ac_try="$ac_link" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3625printf "%s\n" "$ac_try_echo"; } >&5 3626 (eval "$ac_link") 2>&5 3627 ac_status=$? 3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3629 test $ac_status = 0; } 3630then : 3631 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3632# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3633# work properly (i.e., refer to `conftest.exe'), while it won't with 3634# `rm'. 3635for ac_file in conftest.exe conftest conftest.*; do 3636 test -f "$ac_file" || continue 3637 case $ac_file in 3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3639 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3640 break;; 3641 * ) break;; 3642 esac 3643done 3644else $as_nop 3645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3646printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3647as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3648See \`config.log' for more details" "$LINENO" 5; } 3649fi 3650rm -f conftest conftest$ac_cv_exeext 3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3652printf "%s\n" "$ac_cv_exeext" >&6; } 3653 3654rm -f conftest.$ac_ext 3655EXEEXT=$ac_cv_exeext 3656ac_exeext=$EXEEXT 3657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3658/* end confdefs.h. */ 3659#include <stdio.h> 3660int 3661main (void) 3662{ 3663FILE *f = fopen ("conftest.out", "w"); 3664 return ferror (f) || fclose (f) != 0; 3665 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670ac_clean_files="$ac_clean_files conftest.out" 3671# Check that the compiler produces executables we can run. If not, either 3672# the compiler is broken, or we cross compile. 3673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3674printf %s "checking whether we are cross compiling... " >&6; } 3675if test "$cross_compiling" != yes; then 3676 { { ac_try="$ac_link" 3677case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3682printf "%s\n" "$ac_try_echo"; } >&5 3683 (eval "$ac_link") 2>&5 3684 ac_status=$? 3685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3686 test $ac_status = 0; } 3687 if { ac_try='./conftest$ac_cv_exeext' 3688 { { case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693printf "%s\n" "$ac_try_echo"; } >&5 3694 (eval "$ac_try") 2>&5 3695 ac_status=$? 3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; }; }; then 3698 cross_compiling=no 3699 else 3700 if test "$cross_compiling" = maybe; then 3701 cross_compiling=yes 3702 else 3703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3704printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3705as_fn_error 77 "cannot run C compiled programs. 3706If you meant to cross compile, use \`--host'. 3707See \`config.log' for more details" "$LINENO" 5; } 3708 fi 3709 fi 3710fi 3711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3712printf "%s\n" "$cross_compiling" >&6; } 3713 3714rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3715ac_clean_files=$ac_clean_files_save 3716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3717printf %s "checking for suffix of object files... " >&6; } 3718if test ${ac_cv_objext+y} 3719then : 3720 printf %s "(cached) " >&6 3721else $as_nop 3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3723/* end confdefs.h. */ 3724 3725int 3726main (void) 3727{ 3728 3729 ; 3730 return 0; 3731} 3732_ACEOF 3733rm -f conftest.o conftest.obj 3734if { { ac_try="$ac_compile" 3735case "(($ac_try" in 3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3737 *) ac_try_echo=$ac_try;; 3738esac 3739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3740printf "%s\n" "$ac_try_echo"; } >&5 3741 (eval "$ac_compile") 2>&5 3742 ac_status=$? 3743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3744 test $ac_status = 0; } 3745then : 3746 for ac_file in conftest.o conftest.obj conftest.*; do 3747 test -f "$ac_file" || continue; 3748 case $ac_file in 3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3750 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3751 break;; 3752 esac 3753done 3754else $as_nop 3755 printf "%s\n" "$as_me: failed program was:" >&5 3756sed 's/^/| /' conftest.$ac_ext >&5 3757 3758{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3759printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3760as_fn_error $? "cannot compute suffix of object files: cannot compile 3761See \`config.log' for more details" "$LINENO" 5; } 3762fi 3763rm -f conftest.$ac_cv_objext conftest.$ac_ext 3764fi 3765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3766printf "%s\n" "$ac_cv_objext" >&6; } 3767OBJEXT=$ac_cv_objext 3768ac_objext=$OBJEXT 3769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3770printf %s "checking whether the compiler supports GNU C... " >&6; } 3771if test ${ac_cv_c_compiler_gnu+y} 3772then : 3773 printf %s "(cached) " >&6 3774else $as_nop 3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3776/* end confdefs.h. */ 3777 3778int 3779main (void) 3780{ 3781#ifndef __GNUC__ 3782 choke me 3783#endif 3784 3785 ; 3786 return 0; 3787} 3788_ACEOF 3789if ac_fn_c_try_compile "$LINENO" 3790then : 3791 ac_compiler_gnu=yes 3792else $as_nop 3793 ac_compiler_gnu=no 3794fi 3795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3796ac_cv_c_compiler_gnu=$ac_compiler_gnu 3797 3798fi 3799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3800printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3801ac_compiler_gnu=$ac_cv_c_compiler_gnu 3802 3803if test $ac_compiler_gnu = yes; then 3804 GCC=yes 3805else 3806 GCC= 3807fi 3808ac_test_CFLAGS=${CFLAGS+y} 3809ac_save_CFLAGS=$CFLAGS 3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3811printf %s "checking whether $CC accepts -g... " >&6; } 3812if test ${ac_cv_prog_cc_g+y} 3813then : 3814 printf %s "(cached) " >&6 3815else $as_nop 3816 ac_save_c_werror_flag=$ac_c_werror_flag 3817 ac_c_werror_flag=yes 3818 ac_cv_prog_cc_g=no 3819 CFLAGS="-g" 3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3821/* end confdefs.h. */ 3822 3823int 3824main (void) 3825{ 3826 3827 ; 3828 return 0; 3829} 3830_ACEOF 3831if ac_fn_c_try_compile "$LINENO" 3832then : 3833 ac_cv_prog_cc_g=yes 3834else $as_nop 3835 CFLAGS="" 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837/* end confdefs.h. */ 3838 3839int 3840main (void) 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847if ac_fn_c_try_compile "$LINENO" 3848then : 3849 3850else $as_nop 3851 ac_c_werror_flag=$ac_save_c_werror_flag 3852 CFLAGS="-g" 3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855 3856int 3857main (void) 3858{ 3859 3860 ; 3861 return 0; 3862} 3863_ACEOF 3864if ac_fn_c_try_compile "$LINENO" 3865then : 3866 ac_cv_prog_cc_g=yes 3867fi 3868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3869fi 3870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3871fi 3872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3873 ac_c_werror_flag=$ac_save_c_werror_flag 3874fi 3875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3876printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3877if test $ac_test_CFLAGS; then 3878 CFLAGS=$ac_save_CFLAGS 3879elif test $ac_cv_prog_cc_g = yes; then 3880 if test "$GCC" = yes; then 3881 CFLAGS="-g -O2" 3882 else 3883 CFLAGS="-g" 3884 fi 3885else 3886 if test "$GCC" = yes; then 3887 CFLAGS="-O2" 3888 else 3889 CFLAGS= 3890 fi 3891fi 3892ac_prog_cc_stdc=no 3893if test x$ac_prog_cc_stdc = xno 3894then : 3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3896printf %s "checking for $CC option to enable C11 features... " >&6; } 3897if test ${ac_cv_prog_cc_c11+y} 3898then : 3899 printf %s "(cached) " >&6 3900else $as_nop 3901 ac_cv_prog_cc_c11=no 3902ac_save_CC=$CC 3903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904/* end confdefs.h. */ 3905$ac_c_conftest_c11_program 3906_ACEOF 3907for ac_arg in '' -std=gnu11 3908do 3909 CC="$ac_save_CC $ac_arg" 3910 if ac_fn_c_try_compile "$LINENO" 3911then : 3912 ac_cv_prog_cc_c11=$ac_arg 3913fi 3914rm -f core conftest.err conftest.$ac_objext conftest.beam 3915 test "x$ac_cv_prog_cc_c11" != "xno" && break 3916done 3917rm -f conftest.$ac_ext 3918CC=$ac_save_CC 3919fi 3920 3921if test "x$ac_cv_prog_cc_c11" = xno 3922then : 3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3924printf "%s\n" "unsupported" >&6; } 3925else $as_nop 3926 if test "x$ac_cv_prog_cc_c11" = x 3927then : 3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3929printf "%s\n" "none needed" >&6; } 3930else $as_nop 3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3932printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3933 CC="$CC $ac_cv_prog_cc_c11" 3934fi 3935 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3936 ac_prog_cc_stdc=c11 3937fi 3938fi 3939if test x$ac_prog_cc_stdc = xno 3940then : 3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3942printf %s "checking for $CC option to enable C99 features... " >&6; } 3943if test ${ac_cv_prog_cc_c99+y} 3944then : 3945 printf %s "(cached) " >&6 3946else $as_nop 3947 ac_cv_prog_cc_c99=no 3948ac_save_CC=$CC 3949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951$ac_c_conftest_c99_program 3952_ACEOF 3953for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3954do 3955 CC="$ac_save_CC $ac_arg" 3956 if ac_fn_c_try_compile "$LINENO" 3957then : 3958 ac_cv_prog_cc_c99=$ac_arg 3959fi 3960rm -f core conftest.err conftest.$ac_objext conftest.beam 3961 test "x$ac_cv_prog_cc_c99" != "xno" && break 3962done 3963rm -f conftest.$ac_ext 3964CC=$ac_save_CC 3965fi 3966 3967if test "x$ac_cv_prog_cc_c99" = xno 3968then : 3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3970printf "%s\n" "unsupported" >&6; } 3971else $as_nop 3972 if test "x$ac_cv_prog_cc_c99" = x 3973then : 3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3975printf "%s\n" "none needed" >&6; } 3976else $as_nop 3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3978printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3979 CC="$CC $ac_cv_prog_cc_c99" 3980fi 3981 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3982 ac_prog_cc_stdc=c99 3983fi 3984fi 3985if test x$ac_prog_cc_stdc = xno 3986then : 3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3988printf %s "checking for $CC option to enable C89 features... " >&6; } 3989if test ${ac_cv_prog_cc_c89+y} 3990then : 3991 printf %s "(cached) " >&6 3992else $as_nop 3993 ac_cv_prog_cc_c89=no 3994ac_save_CC=$CC 3995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997$ac_c_conftest_c89_program 3998_ACEOF 3999for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4000do 4001 CC="$ac_save_CC $ac_arg" 4002 if ac_fn_c_try_compile "$LINENO" 4003then : 4004 ac_cv_prog_cc_c89=$ac_arg 4005fi 4006rm -f core conftest.err conftest.$ac_objext conftest.beam 4007 test "x$ac_cv_prog_cc_c89" != "xno" && break 4008done 4009rm -f conftest.$ac_ext 4010CC=$ac_save_CC 4011fi 4012 4013if test "x$ac_cv_prog_cc_c89" = xno 4014then : 4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4016printf "%s\n" "unsupported" >&6; } 4017else $as_nop 4018 if test "x$ac_cv_prog_cc_c89" = x 4019then : 4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4021printf "%s\n" "none needed" >&6; } 4022else $as_nop 4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4024printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4025 CC="$CC $ac_cv_prog_cc_c89" 4026fi 4027 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4028 ac_prog_cc_stdc=c89 4029fi 4030fi 4031 4032ac_ext=c 4033ac_cpp='$CPP $CPPFLAGS' 4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4036ac_compiler_gnu=$ac_cv_c_compiler_gnu 4037 4038 4039ac_header= ac_cache= 4040for ac_item in $ac_header_c_list 4041do 4042 if test $ac_cache; then 4043 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4044 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4045 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4046 fi 4047 ac_header= ac_cache= 4048 elif test $ac_header; then 4049 ac_cache=$ac_item 4050 else 4051 ac_header=$ac_item 4052 fi 4053done 4054 4055 4056 4057 4058 4059 4060 4061 4062if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4063then : 4064 4065printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4066 4067fi 4068 4069 4070 4071 4072 4073 4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4075printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4076if test ${ac_cv_safe_to_define___extensions__+y} 4077then : 4078 printf %s "(cached) " >&6 4079else $as_nop 4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4081/* end confdefs.h. */ 4082 4083# define __EXTENSIONS__ 1 4084 $ac_includes_default 4085int 4086main (void) 4087{ 4088 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093if ac_fn_c_try_compile "$LINENO" 4094then : 4095 ac_cv_safe_to_define___extensions__=yes 4096else $as_nop 4097 ac_cv_safe_to_define___extensions__=no 4098fi 4099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4100fi 4101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4102printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4103 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4105printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4106if test ${ac_cv_should_define__xopen_source+y} 4107then : 4108 printf %s "(cached) " >&6 4109else $as_nop 4110 ac_cv_should_define__xopen_source=no 4111 if test $ac_cv_header_wchar_h = yes 4112then : 4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115 4116 #include <wchar.h> 4117 mbstate_t x; 4118int 4119main (void) 4120{ 4121 4122 ; 4123 return 0; 4124} 4125_ACEOF 4126if ac_fn_c_try_compile "$LINENO" 4127then : 4128 4129else $as_nop 4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131/* end confdefs.h. */ 4132 4133 #define _XOPEN_SOURCE 500 4134 #include <wchar.h> 4135 mbstate_t x; 4136int 4137main (void) 4138{ 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144if ac_fn_c_try_compile "$LINENO" 4145then : 4146 ac_cv_should_define__xopen_source=yes 4147fi 4148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4149fi 4150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4151fi 4152fi 4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4154printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4155 4156 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4157 4158 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4159 4160 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4161 4162 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4163 4164 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4165 4166 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4167 4168 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4169 4170 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4171 4172 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4173 4174 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4175 4176 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4177 4178 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4179 4180 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4181 4182 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4183 4184 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4185 4186 if test $ac_cv_header_minix_config_h = yes 4187then : 4188 MINIX=yes 4189 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4190 4191 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4192 4193 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4194 4195else $as_nop 4196 MINIX= 4197fi 4198 if test $ac_cv_safe_to_define___extensions__ = yes 4199then : 4200 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4201 4202fi 4203 if test $ac_cv_should_define__xopen_source = yes 4204then : 4205 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4206 4207fi 4208 4209 4210if test "$ac_cv_header_minix_config_h" = "yes"; then 4211 4212printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4213 4214fi 4215 4216 4217case `pwd` in 4218 *\ * | *\ *) 4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4220printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4221esac 4222 4223 4224 4225macro_version='2.4.6' 4226macro_revision='2.4.6' 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241ltmain=$ac_aux_dir/ltmain.sh 4242 4243 4244 4245 # Make sure we can run config.sub. 4246$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4247 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4248 4249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4250printf %s "checking build system type... " >&6; } 4251if test ${ac_cv_build+y} 4252then : 4253 printf %s "(cached) " >&6 4254else $as_nop 4255 ac_build_alias=$build_alias 4256test "x$ac_build_alias" = x && 4257 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4258test "x$ac_build_alias" = x && 4259 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4260ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4261 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4262 4263fi 4264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4265printf "%s\n" "$ac_cv_build" >&6; } 4266case $ac_cv_build in 4267*-*-*) ;; 4268*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4269esac 4270build=$ac_cv_build 4271ac_save_IFS=$IFS; IFS='-' 4272set x $ac_cv_build 4273shift 4274build_cpu=$1 4275build_vendor=$2 4276shift; shift 4277# Remember, the first character of IFS is used to create $*, 4278# except with old shells: 4279build_os=$* 4280IFS=$ac_save_IFS 4281case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4282 4283 4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4285printf %s "checking host system type... " >&6; } 4286if test ${ac_cv_host+y} 4287then : 4288 printf %s "(cached) " >&6 4289else $as_nop 4290 if test "x$host_alias" = x; then 4291 ac_cv_host=$ac_cv_build 4292else 4293 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4294 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4295fi 4296 4297fi 4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4299printf "%s\n" "$ac_cv_host" >&6; } 4300case $ac_cv_host in 4301*-*-*) ;; 4302*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4303esac 4304host=$ac_cv_host 4305ac_save_IFS=$IFS; IFS='-' 4306set x $ac_cv_host 4307shift 4308host_cpu=$1 4309host_vendor=$2 4310shift; shift 4311# Remember, the first character of IFS is used to create $*, 4312# except with old shells: 4313host_os=$* 4314IFS=$ac_save_IFS 4315case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4316 4317 4318# Backslashify metacharacters that are still active within 4319# double-quoted strings. 4320sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4321 4322# Same as above, but do not quote variable references. 4323double_quote_subst='s/\(["`\\]\)/\\\1/g' 4324 4325# Sed substitution to delay expansion of an escaped shell variable in a 4326# double_quote_subst'ed string. 4327delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4328 4329# Sed substitution to delay expansion of an escaped single quote. 4330delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4331 4332# Sed substitution to avoid accidental globbing in evaled expressions 4333no_glob_subst='s/\*/\\\*/g' 4334 4335ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4336ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4337ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4338 4339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4340printf %s "checking how to print strings... " >&6; } 4341# Test print first, because it will be a builtin if present. 4342if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4343 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4344 ECHO='print -r --' 4345elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4346 ECHO='printf %s\n' 4347else 4348 # Use this function as a fallback that always works. 4349 func_fallback_echo () 4350 { 4351 eval 'cat <<_LTECHO_EOF 4352$1 4353_LTECHO_EOF' 4354 } 4355 ECHO='func_fallback_echo' 4356fi 4357 4358# func_echo_all arg... 4359# Invoke $ECHO with all args, space-separated. 4360func_echo_all () 4361{ 4362 $ECHO "" 4363} 4364 4365case $ECHO in 4366 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4367printf "%s\n" "printf" >&6; } ;; 4368 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4369printf "%s\n" "print -r" >&6; } ;; 4370 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4371printf "%s\n" "cat" >&6; } ;; 4372esac 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4388printf %s "checking for a sed that does not truncate output... " >&6; } 4389if test ${ac_cv_path_SED+y} 4390then : 4391 printf %s "(cached) " >&6 4392else $as_nop 4393 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4394 for ac_i in 1 2 3 4 5 6 7; do 4395 ac_script="$ac_script$as_nl$ac_script" 4396 done 4397 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4398 { ac_script=; unset ac_script;} 4399 if test -z "$SED"; then 4400 ac_path_SED_found=false 4401 # Loop through the user's path and test for each of PROGNAME-LIST 4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4403for as_dir in $PATH 4404do 4405 IFS=$as_save_IFS 4406 case $as_dir in #((( 4407 '') as_dir=./ ;; 4408 */) ;; 4409 *) as_dir=$as_dir/ ;; 4410 esac 4411 for ac_prog in sed gsed 4412 do 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4415 as_fn_executable_p "$ac_path_SED" || continue 4416# Check for GNU ac_path_SED and select it if it is found. 4417 # Check for GNU $ac_path_SED 4418case `"$ac_path_SED" --version 2>&1` in 4419*GNU*) 4420 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4421*) 4422 ac_count=0 4423 printf %s 0123456789 >"conftest.in" 4424 while : 4425 do 4426 cat "conftest.in" "conftest.in" >"conftest.tmp" 4427 mv "conftest.tmp" "conftest.in" 4428 cp "conftest.in" "conftest.nl" 4429 printf "%s\n" '' >> "conftest.nl" 4430 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4432 as_fn_arith $ac_count + 1 && ac_count=$as_val 4433 if test $ac_count -gt ${ac_path_SED_max-0}; then 4434 # Best one so far, save it but keep looking for a better one 4435 ac_cv_path_SED="$ac_path_SED" 4436 ac_path_SED_max=$ac_count 4437 fi 4438 # 10*(2^10) chars as input seems more than enough 4439 test $ac_count -gt 10 && break 4440 done 4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4442esac 4443 4444 $ac_path_SED_found && break 3 4445 done 4446 done 4447 done 4448IFS=$as_save_IFS 4449 if test -z "$ac_cv_path_SED"; then 4450 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4451 fi 4452else 4453 ac_cv_path_SED=$SED 4454fi 4455 4456fi 4457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4458printf "%s\n" "$ac_cv_path_SED" >&6; } 4459 SED="$ac_cv_path_SED" 4460 rm -f conftest.sed 4461 4462test -z "$SED" && SED=sed 4463Xsed="$SED -e 1s/^X//" 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4476printf %s "checking for grep that handles long lines and -e... " >&6; } 4477if test ${ac_cv_path_GREP+y} 4478then : 4479 printf %s "(cached) " >&6 4480else $as_nop 4481 if test -z "$GREP"; then 4482 ac_path_GREP_found=false 4483 # Loop through the user's path and test for each of PROGNAME-LIST 4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4485for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4486do 4487 IFS=$as_save_IFS 4488 case $as_dir in #((( 4489 '') as_dir=./ ;; 4490 */) ;; 4491 *) as_dir=$as_dir/ ;; 4492 esac 4493 for ac_prog in grep ggrep 4494 do 4495 for ac_exec_ext in '' $ac_executable_extensions; do 4496 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4497 as_fn_executable_p "$ac_path_GREP" || continue 4498# Check for GNU ac_path_GREP and select it if it is found. 4499 # Check for GNU $ac_path_GREP 4500case `"$ac_path_GREP" --version 2>&1` in 4501*GNU*) 4502 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4503*) 4504 ac_count=0 4505 printf %s 0123456789 >"conftest.in" 4506 while : 4507 do 4508 cat "conftest.in" "conftest.in" >"conftest.tmp" 4509 mv "conftest.tmp" "conftest.in" 4510 cp "conftest.in" "conftest.nl" 4511 printf "%s\n" 'GREP' >> "conftest.nl" 4512 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4514 as_fn_arith $ac_count + 1 && ac_count=$as_val 4515 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4516 # Best one so far, save it but keep looking for a better one 4517 ac_cv_path_GREP="$ac_path_GREP" 4518 ac_path_GREP_max=$ac_count 4519 fi 4520 # 10*(2^10) chars as input seems more than enough 4521 test $ac_count -gt 10 && break 4522 done 4523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4524esac 4525 4526 $ac_path_GREP_found && break 3 4527 done 4528 done 4529 done 4530IFS=$as_save_IFS 4531 if test -z "$ac_cv_path_GREP"; then 4532 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4533 fi 4534else 4535 ac_cv_path_GREP=$GREP 4536fi 4537 4538fi 4539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4540printf "%s\n" "$ac_cv_path_GREP" >&6; } 4541 GREP="$ac_cv_path_GREP" 4542 4543 4544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4545printf %s "checking for egrep... " >&6; } 4546if test ${ac_cv_path_EGREP+y} 4547then : 4548 printf %s "(cached) " >&6 4549else $as_nop 4550 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4551 then ac_cv_path_EGREP="$GREP -E" 4552 else 4553 if test -z "$EGREP"; then 4554 ac_path_EGREP_found=false 4555 # Loop through the user's path and test for each of PROGNAME-LIST 4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4558do 4559 IFS=$as_save_IFS 4560 case $as_dir in #((( 4561 '') as_dir=./ ;; 4562 */) ;; 4563 *) as_dir=$as_dir/ ;; 4564 esac 4565 for ac_prog in egrep 4566 do 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4569 as_fn_executable_p "$ac_path_EGREP" || continue 4570# Check for GNU ac_path_EGREP and select it if it is found. 4571 # Check for GNU $ac_path_EGREP 4572case `"$ac_path_EGREP" --version 2>&1` in 4573*GNU*) 4574 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4575*) 4576 ac_count=0 4577 printf %s 0123456789 >"conftest.in" 4578 while : 4579 do 4580 cat "conftest.in" "conftest.in" >"conftest.tmp" 4581 mv "conftest.tmp" "conftest.in" 4582 cp "conftest.in" "conftest.nl" 4583 printf "%s\n" 'EGREP' >> "conftest.nl" 4584 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4586 as_fn_arith $ac_count + 1 && ac_count=$as_val 4587 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4588 # Best one so far, save it but keep looking for a better one 4589 ac_cv_path_EGREP="$ac_path_EGREP" 4590 ac_path_EGREP_max=$ac_count 4591 fi 4592 # 10*(2^10) chars as input seems more than enough 4593 test $ac_count -gt 10 && break 4594 done 4595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4596esac 4597 4598 $ac_path_EGREP_found && break 3 4599 done 4600 done 4601 done 4602IFS=$as_save_IFS 4603 if test -z "$ac_cv_path_EGREP"; then 4604 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4605 fi 4606else 4607 ac_cv_path_EGREP=$EGREP 4608fi 4609 4610 fi 4611fi 4612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4613printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4614 EGREP="$ac_cv_path_EGREP" 4615 4616 4617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4618printf %s "checking for fgrep... " >&6; } 4619if test ${ac_cv_path_FGREP+y} 4620then : 4621 printf %s "(cached) " >&6 4622else $as_nop 4623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4624 then ac_cv_path_FGREP="$GREP -F" 4625 else 4626 if test -z "$FGREP"; then 4627 ac_path_FGREP_found=false 4628 # Loop through the user's path and test for each of PROGNAME-LIST 4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4631do 4632 IFS=$as_save_IFS 4633 case $as_dir in #((( 4634 '') as_dir=./ ;; 4635 */) ;; 4636 *) as_dir=$as_dir/ ;; 4637 esac 4638 for ac_prog in fgrep 4639 do 4640 for ac_exec_ext in '' $ac_executable_extensions; do 4641 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4642 as_fn_executable_p "$ac_path_FGREP" || continue 4643# Check for GNU ac_path_FGREP and select it if it is found. 4644 # Check for GNU $ac_path_FGREP 4645case `"$ac_path_FGREP" --version 2>&1` in 4646*GNU*) 4647 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4648*) 4649 ac_count=0 4650 printf %s 0123456789 >"conftest.in" 4651 while : 4652 do 4653 cat "conftest.in" "conftest.in" >"conftest.tmp" 4654 mv "conftest.tmp" "conftest.in" 4655 cp "conftest.in" "conftest.nl" 4656 printf "%s\n" 'FGREP' >> "conftest.nl" 4657 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4659 as_fn_arith $ac_count + 1 && ac_count=$as_val 4660 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4661 # Best one so far, save it but keep looking for a better one 4662 ac_cv_path_FGREP="$ac_path_FGREP" 4663 ac_path_FGREP_max=$ac_count 4664 fi 4665 # 10*(2^10) chars as input seems more than enough 4666 test $ac_count -gt 10 && break 4667 done 4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4669esac 4670 4671 $ac_path_FGREP_found && break 3 4672 done 4673 done 4674 done 4675IFS=$as_save_IFS 4676 if test -z "$ac_cv_path_FGREP"; then 4677 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4678 fi 4679else 4680 ac_cv_path_FGREP=$FGREP 4681fi 4682 4683 fi 4684fi 4685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4686printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4687 FGREP="$ac_cv_path_FGREP" 4688 4689 4690test -z "$GREP" && GREP=grep 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710# Check whether --with-gnu-ld was given. 4711if test ${with_gnu_ld+y} 4712then : 4713 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4714else $as_nop 4715 with_gnu_ld=no 4716fi 4717 4718ac_prog=ld 4719if test yes = "$GCC"; then 4720 # Check if gcc -print-prog-name=ld gives a path. 4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4722printf %s "checking for ld used by $CC... " >&6; } 4723 case $host in 4724 *-*-mingw*) 4725 # gcc leaves a trailing carriage return, which upsets mingw 4726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4727 *) 4728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4729 esac 4730 case $ac_prog in 4731 # Accept absolute paths. 4732 [\\/]* | ?:[\\/]*) 4733 re_direlt='/[^/][^/]*/\.\./' 4734 # Canonicalize the pathname of ld 4735 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4736 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4737 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4738 done 4739 test -z "$LD" && LD=$ac_prog 4740 ;; 4741 "") 4742 # If it fails, then pretend we aren't using GCC. 4743 ac_prog=ld 4744 ;; 4745 *) 4746 # If it is relative, then search for the first ld in PATH. 4747 with_gnu_ld=unknown 4748 ;; 4749 esac 4750elif test yes = "$with_gnu_ld"; then 4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4752printf %s "checking for GNU ld... " >&6; } 4753else 4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4755printf %s "checking for non-GNU ld... " >&6; } 4756fi 4757if test ${lt_cv_path_LD+y} 4758then : 4759 printf %s "(cached) " >&6 4760else $as_nop 4761 if test -z "$LD"; then 4762 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4763 for ac_dir in $PATH; do 4764 IFS=$lt_save_ifs 4765 test -z "$ac_dir" && ac_dir=. 4766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4767 lt_cv_path_LD=$ac_dir/$ac_prog 4768 # Check to see if the program is GNU ld. I'd rather use --version, 4769 # but apparently some variants of GNU ld only accept -v. 4770 # Break only if it was the GNU/non-GNU ld that we prefer. 4771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4772 *GNU* | *'with BFD'*) 4773 test no != "$with_gnu_ld" && break 4774 ;; 4775 *) 4776 test yes != "$with_gnu_ld" && break 4777 ;; 4778 esac 4779 fi 4780 done 4781 IFS=$lt_save_ifs 4782else 4783 lt_cv_path_LD=$LD # Let the user override the test with a path. 4784fi 4785fi 4786 4787LD=$lt_cv_path_LD 4788if test -n "$LD"; then 4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4790printf "%s\n" "$LD" >&6; } 4791else 4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4793printf "%s\n" "no" >&6; } 4794fi 4795test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4797printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 4798if test ${lt_cv_prog_gnu_ld+y} 4799then : 4800 printf %s "(cached) " >&6 4801else $as_nop 4802 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4803case `$LD -v 2>&1 </dev/null` in 4804*GNU* | *'with BFD'*) 4805 lt_cv_prog_gnu_ld=yes 4806 ;; 4807*) 4808 lt_cv_prog_gnu_ld=no 4809 ;; 4810esac 4811fi 4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4813printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 4814with_gnu_ld=$lt_cv_prog_gnu_ld 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4825printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4826if test ${lt_cv_path_NM+y} 4827then : 4828 printf %s "(cached) " >&6 4829else $as_nop 4830 if test -n "$NM"; then 4831 # Let the user override the test. 4832 lt_cv_path_NM=$NM 4833else 4834 lt_nm_to_check=${ac_tool_prefix}nm 4835 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4836 lt_nm_to_check="$lt_nm_to_check nm" 4837 fi 4838 for lt_tmp_nm in $lt_nm_to_check; do 4839 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4840 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4841 IFS=$lt_save_ifs 4842 test -z "$ac_dir" && ac_dir=. 4843 tmp_nm=$ac_dir/$lt_tmp_nm 4844 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4845 # Check to see if the nm accepts a BSD-compat flag. 4846 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4847 # nm: unknown option "B" ignored 4848 # Tru64's nm complains that /dev/null is an invalid object file 4849 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4850 case $build_os in 4851 mingw*) lt_bad_file=conftest.nm/nofile ;; 4852 *) lt_bad_file=/dev/null ;; 4853 esac 4854 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4855 *$lt_bad_file* | *'Invalid file or object type'*) 4856 lt_cv_path_NM="$tmp_nm -B" 4857 break 2 4858 ;; 4859 *) 4860 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4861 */dev/null*) 4862 lt_cv_path_NM="$tmp_nm -p" 4863 break 2 4864 ;; 4865 *) 4866 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4867 continue # so that we can try to find one that supports BSD flags 4868 ;; 4869 esac 4870 ;; 4871 esac 4872 fi 4873 done 4874 IFS=$lt_save_ifs 4875 done 4876 : ${lt_cv_path_NM=no} 4877fi 4878fi 4879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4880printf "%s\n" "$lt_cv_path_NM" >&6; } 4881if test no != "$lt_cv_path_NM"; then 4882 NM=$lt_cv_path_NM 4883else 4884 # Didn't find any BSD compatible name lister, look for dumpbin. 4885 if test -n "$DUMPBIN"; then : 4886 # Let the user override the test. 4887 else 4888 if test -n "$ac_tool_prefix"; then 4889 for ac_prog in dumpbin "link -dump" 4890 do 4891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4892set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4894printf %s "checking for $ac_word... " >&6; } 4895if test ${ac_cv_prog_DUMPBIN+y} 4896then : 4897 printf %s "(cached) " >&6 4898else $as_nop 4899 if test -n "$DUMPBIN"; then 4900 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4901else 4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4903for as_dir in $PATH 4904do 4905 IFS=$as_save_IFS 4906 case $as_dir in #((( 4907 '') as_dir=./ ;; 4908 */) ;; 4909 *) as_dir=$as_dir/ ;; 4910 esac 4911 for ac_exec_ext in '' $ac_executable_extensions; do 4912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4913 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4915 break 2 4916 fi 4917done 4918 done 4919IFS=$as_save_IFS 4920 4921fi 4922fi 4923DUMPBIN=$ac_cv_prog_DUMPBIN 4924if test -n "$DUMPBIN"; then 4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4926printf "%s\n" "$DUMPBIN" >&6; } 4927else 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4929printf "%s\n" "no" >&6; } 4930fi 4931 4932 4933 test -n "$DUMPBIN" && break 4934 done 4935fi 4936if test -z "$DUMPBIN"; then 4937 ac_ct_DUMPBIN=$DUMPBIN 4938 for ac_prog in dumpbin "link -dump" 4939do 4940 # Extract the first word of "$ac_prog", so it can be a program name with args. 4941set dummy $ac_prog; ac_word=$2 4942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4943printf %s "checking for $ac_word... " >&6; } 4944if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 4945then : 4946 printf %s "(cached) " >&6 4947else $as_nop 4948 if test -n "$ac_ct_DUMPBIN"; then 4949 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4950else 4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4952for as_dir in $PATH 4953do 4954 IFS=$as_save_IFS 4955 case $as_dir in #((( 4956 '') as_dir=./ ;; 4957 */) ;; 4958 *) as_dir=$as_dir/ ;; 4959 esac 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4964 break 2 4965 fi 4966done 4967 done 4968IFS=$as_save_IFS 4969 4970fi 4971fi 4972ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4973if test -n "$ac_ct_DUMPBIN"; then 4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4975printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 4976else 4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978printf "%s\n" "no" >&6; } 4979fi 4980 4981 4982 test -n "$ac_ct_DUMPBIN" && break 4983done 4984 4985 if test "x$ac_ct_DUMPBIN" = x; then 4986 DUMPBIN=":" 4987 else 4988 case $cross_compiling:$ac_tool_warned in 4989yes:) 4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4991printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4992ac_tool_warned=yes ;; 4993esac 4994 DUMPBIN=$ac_ct_DUMPBIN 4995 fi 4996fi 4997 4998 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4999 *COFF*) 5000 DUMPBIN="$DUMPBIN -symbols -headers" 5001 ;; 5002 *) 5003 DUMPBIN=: 5004 ;; 5005 esac 5006 fi 5007 5008 if test : != "$DUMPBIN"; then 5009 NM=$DUMPBIN 5010 fi 5011fi 5012test -z "$NM" && NM=nm 5013 5014 5015 5016 5017 5018 5019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5020printf %s "checking the name lister ($NM) interface... " >&6; } 5021if test ${lt_cv_nm_interface+y} 5022then : 5023 printf %s "(cached) " >&6 5024else $as_nop 5025 lt_cv_nm_interface="BSD nm" 5026 echo "int some_variable = 0;" > conftest.$ac_ext 5027 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5028 (eval "$ac_compile" 2>conftest.err) 5029 cat conftest.err >&5 5030 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5031 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5032 cat conftest.err >&5 5033 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5034 cat conftest.out >&5 5035 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5036 lt_cv_nm_interface="MS dumpbin" 5037 fi 5038 rm -f conftest* 5039fi 5040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5041printf "%s\n" "$lt_cv_nm_interface" >&6; } 5042 5043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5044printf %s "checking whether ln -s works... " >&6; } 5045LN_S=$as_ln_s 5046if test "$LN_S" = "ln -s"; then 5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5048printf "%s\n" "yes" >&6; } 5049else 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5051printf "%s\n" "no, using $LN_S" >&6; } 5052fi 5053 5054# find the maximum length of command line arguments 5055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5056printf %s "checking the maximum length of command line arguments... " >&6; } 5057if test ${lt_cv_sys_max_cmd_len+y} 5058then : 5059 printf %s "(cached) " >&6 5060else $as_nop 5061 i=0 5062 teststring=ABCD 5063 5064 case $build_os in 5065 msdosdjgpp*) 5066 # On DJGPP, this test can blow up pretty badly due to problems in libc 5067 # (any single argument exceeding 2000 bytes causes a buffer overrun 5068 # during glob expansion). Even if it were fixed, the result of this 5069 # check would be larger than it should be. 5070 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5071 ;; 5072 5073 gnu*) 5074 # Under GNU Hurd, this test is not required because there is 5075 # no limit to the length of command line arguments. 5076 # Libtool will interpret -1 as no limit whatsoever 5077 lt_cv_sys_max_cmd_len=-1; 5078 ;; 5079 5080 cygwin* | mingw* | cegcc*) 5081 # On Win9x/ME, this test blows up -- it succeeds, but takes 5082 # about 5 minutes as the teststring grows exponentially. 5083 # Worse, since 9x/ME are not pre-emptively multitasking, 5084 # you end up with a "frozen" computer, even though with patience 5085 # the test eventually succeeds (with a max line length of 256k). 5086 # Instead, let's just punt: use the minimum linelength reported by 5087 # all of the supported platforms: 8192 (on NT/2K/XP). 5088 lt_cv_sys_max_cmd_len=8192; 5089 ;; 5090 5091 mint*) 5092 # On MiNT this can take a long time and run out of memory. 5093 lt_cv_sys_max_cmd_len=8192; 5094 ;; 5095 5096 amigaos*) 5097 # On AmigaOS with pdksh, this test takes hours, literally. 5098 # So we just punt and use a minimum line length of 8192. 5099 lt_cv_sys_max_cmd_len=8192; 5100 ;; 5101 5102 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5103 # This has been around since 386BSD, at least. Likely further. 5104 if test -x /sbin/sysctl; then 5105 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5106 elif test -x /usr/sbin/sysctl; then 5107 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5108 else 5109 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5110 fi 5111 # And add a safety zone 5112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5114 ;; 5115 5116 interix*) 5117 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5118 lt_cv_sys_max_cmd_len=196608 5119 ;; 5120 5121 os2*) 5122 # The test takes a long time on OS/2. 5123 lt_cv_sys_max_cmd_len=8192 5124 ;; 5125 5126 osf*) 5127 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5128 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5129 # nice to cause kernel panics so lets avoid the loop below. 5130 # First set a reasonable default. 5131 lt_cv_sys_max_cmd_len=16384 5132 # 5133 if test -x /sbin/sysconfig; then 5134 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5135 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5136 esac 5137 fi 5138 ;; 5139 sco3.2v5*) 5140 lt_cv_sys_max_cmd_len=102400 5141 ;; 5142 sysv5* | sco5v6* | sysv4.2uw2*) 5143 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5144 if test -n "$kargmax"; then 5145 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5146 else 5147 lt_cv_sys_max_cmd_len=32768 5148 fi 5149 ;; 5150 *) 5151 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5152 if test -n "$lt_cv_sys_max_cmd_len" && \ 5153 test undefined != "$lt_cv_sys_max_cmd_len"; then 5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5156 else 5157 # Make teststring a little bigger before we do anything with it. 5158 # a 1K string should be a reasonable start. 5159 for i in 1 2 3 4 5 6 7 8; do 5160 teststring=$teststring$teststring 5161 done 5162 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5163 # If test is not a shell built-in, we'll probably end up computing a 5164 # maximum length that is only half of the actual maximum length, but 5165 # we can't tell. 5166 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5167 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5168 test 17 != "$i" # 1/2 MB should be enough 5169 do 5170 i=`expr $i + 1` 5171 teststring=$teststring$teststring 5172 done 5173 # Only check the string length outside the loop. 5174 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5175 teststring= 5176 # Add a significant safety factor because C++ compilers can tack on 5177 # massive amounts of additional arguments before passing them to the 5178 # linker. It appears as though 1/2 is a usable value. 5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5180 fi 5181 ;; 5182 esac 5183 5184fi 5185 5186if test -n "$lt_cv_sys_max_cmd_len"; then 5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5188printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5189else 5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5191printf "%s\n" "none" >&6; } 5192fi 5193max_cmd_len=$lt_cv_sys_max_cmd_len 5194 5195 5196 5197 5198 5199 5200: ${CP="cp -f"} 5201: ${MV="mv -f"} 5202: ${RM="rm -f"} 5203 5204if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5205 lt_unset=unset 5206else 5207 lt_unset=false 5208fi 5209 5210 5211 5212 5213 5214# test EBCDIC or ASCII 5215case `echo X|tr X '\101'` in 5216 A) # ASCII based system 5217 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5218 lt_SP2NL='tr \040 \012' 5219 lt_NL2SP='tr \015\012 \040\040' 5220 ;; 5221 *) # EBCDIC based system 5222 lt_SP2NL='tr \100 \n' 5223 lt_NL2SP='tr \r\n \100\100' 5224 ;; 5225esac 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5236printf %s "checking how to convert $build file names to $host format... " >&6; } 5237if test ${lt_cv_to_host_file_cmd+y} 5238then : 5239 printf %s "(cached) " >&6 5240else $as_nop 5241 case $host in 5242 *-*-mingw* ) 5243 case $build in 5244 *-*-mingw* ) # actually msys 5245 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5246 ;; 5247 *-*-cygwin* ) 5248 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5249 ;; 5250 * ) # otherwise, assume *nix 5251 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5252 ;; 5253 esac 5254 ;; 5255 *-*-cygwin* ) 5256 case $build in 5257 *-*-mingw* ) # actually msys 5258 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5259 ;; 5260 *-*-cygwin* ) 5261 lt_cv_to_host_file_cmd=func_convert_file_noop 5262 ;; 5263 * ) # otherwise, assume *nix 5264 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5265 ;; 5266 esac 5267 ;; 5268 * ) # unhandled hosts (and "normal" native builds) 5269 lt_cv_to_host_file_cmd=func_convert_file_noop 5270 ;; 5271esac 5272 5273fi 5274 5275to_host_file_cmd=$lt_cv_to_host_file_cmd 5276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5277printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5278 5279 5280 5281 5282 5283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5284printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5285if test ${lt_cv_to_tool_file_cmd+y} 5286then : 5287 printf %s "(cached) " >&6 5288else $as_nop 5289 #assume ordinary cross tools, or native build. 5290lt_cv_to_tool_file_cmd=func_convert_file_noop 5291case $host in 5292 *-*-mingw* ) 5293 case $build in 5294 *-*-mingw* ) # actually msys 5295 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5296 ;; 5297 esac 5298 ;; 5299esac 5300 5301fi 5302 5303to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5305printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5306 5307 5308 5309 5310 5311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5312printf %s "checking for $LD option to reload object files... " >&6; } 5313if test ${lt_cv_ld_reload_flag+y} 5314then : 5315 printf %s "(cached) " >&6 5316else $as_nop 5317 lt_cv_ld_reload_flag='-r' 5318fi 5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5320printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5321reload_flag=$lt_cv_ld_reload_flag 5322case $reload_flag in 5323"" | " "*) ;; 5324*) reload_flag=" $reload_flag" ;; 5325esac 5326reload_cmds='$LD$reload_flag -o $output$reload_objs' 5327case $host_os in 5328 cygwin* | mingw* | pw32* | cegcc*) 5329 if test yes != "$GCC"; then 5330 reload_cmds=false 5331 fi 5332 ;; 5333 darwin*) 5334 if test yes = "$GCC"; then 5335 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5336 else 5337 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5338 fi 5339 ;; 5340esac 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350if test -n "$ac_tool_prefix"; then 5351 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5352set dummy ${ac_tool_prefix}objdump; ac_word=$2 5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5354printf %s "checking for $ac_word... " >&6; } 5355if test ${ac_cv_prog_OBJDUMP+y} 5356then : 5357 printf %s "(cached) " >&6 5358else $as_nop 5359 if test -n "$OBJDUMP"; then 5360 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5361else 5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5363for as_dir in $PATH 5364do 5365 IFS=$as_save_IFS 5366 case $as_dir in #((( 5367 '') as_dir=./ ;; 5368 */) ;; 5369 *) as_dir=$as_dir/ ;; 5370 esac 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5373 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377done 5378 done 5379IFS=$as_save_IFS 5380 5381fi 5382fi 5383OBJDUMP=$ac_cv_prog_OBJDUMP 5384if test -n "$OBJDUMP"; then 5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5386printf "%s\n" "$OBJDUMP" >&6; } 5387else 5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5389printf "%s\n" "no" >&6; } 5390fi 5391 5392 5393fi 5394if test -z "$ac_cv_prog_OBJDUMP"; then 5395 ac_ct_OBJDUMP=$OBJDUMP 5396 # Extract the first word of "objdump", so it can be a program name with args. 5397set dummy objdump; ac_word=$2 5398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5399printf %s "checking for $ac_word... " >&6; } 5400if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5401then : 5402 printf %s "(cached) " >&6 5403else $as_nop 5404 if test -n "$ac_ct_OBJDUMP"; then 5405 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5406else 5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5408for as_dir in $PATH 5409do 5410 IFS=$as_save_IFS 5411 case $as_dir in #((( 5412 '') as_dir=./ ;; 5413 */) ;; 5414 *) as_dir=$as_dir/ ;; 5415 esac 5416 for ac_exec_ext in '' $ac_executable_extensions; do 5417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5418 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5420 break 2 5421 fi 5422done 5423 done 5424IFS=$as_save_IFS 5425 5426fi 5427fi 5428ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5429if test -n "$ac_ct_OBJDUMP"; then 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5431printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5432else 5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5434printf "%s\n" "no" >&6; } 5435fi 5436 5437 if test "x$ac_ct_OBJDUMP" = x; then 5438 OBJDUMP="false" 5439 else 5440 case $cross_compiling:$ac_tool_warned in 5441yes:) 5442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5443printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5444ac_tool_warned=yes ;; 5445esac 5446 OBJDUMP=$ac_ct_OBJDUMP 5447 fi 5448else 5449 OBJDUMP="$ac_cv_prog_OBJDUMP" 5450fi 5451 5452test -z "$OBJDUMP" && OBJDUMP=objdump 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5463printf %s "checking how to recognize dependent libraries... " >&6; } 5464if test ${lt_cv_deplibs_check_method+y} 5465then : 5466 printf %s "(cached) " >&6 5467else $as_nop 5468 lt_cv_file_magic_cmd='$MAGIC_CMD' 5469lt_cv_file_magic_test_file= 5470lt_cv_deplibs_check_method='unknown' 5471# Need to set the preceding variable on all platforms that support 5472# interlibrary dependencies. 5473# 'none' -- dependencies not supported. 5474# 'unknown' -- same as none, but documents that we really don't know. 5475# 'pass_all' -- all dependencies passed with no checks. 5476# 'test_compile' -- check by making test program. 5477# 'file_magic [[regex]]' -- check by looking for files in library path 5478# that responds to the $file_magic_cmd with a given extended regex. 5479# If you have 'file' or equivalent on your system and you're not sure 5480# whether 'pass_all' will *always* work, you probably want this one. 5481 5482case $host_os in 5483aix[4-9]*) 5484 lt_cv_deplibs_check_method=pass_all 5485 ;; 5486 5487beos*) 5488 lt_cv_deplibs_check_method=pass_all 5489 ;; 5490 5491bsdi[45]*) 5492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5493 lt_cv_file_magic_cmd='/usr/bin/file -L' 5494 lt_cv_file_magic_test_file=/shlib/libc.so 5495 ;; 5496 5497cygwin*) 5498 # func_win32_libid is a shell function defined in ltmain.sh 5499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5500 lt_cv_file_magic_cmd='func_win32_libid' 5501 ;; 5502 5503mingw* | pw32*) 5504 # Base MSYS/MinGW do not provide the 'file' command needed by 5505 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5506 # unless we find 'file', for example because we are cross-compiling. 5507 if ( file / ) >/dev/null 2>&1; then 5508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5509 lt_cv_file_magic_cmd='func_win32_libid' 5510 else 5511 # Keep this pattern in sync with the one in func_win32_libid. 5512 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5513 lt_cv_file_magic_cmd='$OBJDUMP -f' 5514 fi 5515 ;; 5516 5517cegcc*) 5518 # use the weaker test based on 'objdump'. See mingw*. 5519 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5520 lt_cv_file_magic_cmd='$OBJDUMP -f' 5521 ;; 5522 5523darwin* | rhapsody*) 5524 lt_cv_deplibs_check_method=pass_all 5525 ;; 5526 5527freebsd* | dragonfly*) 5528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5529 case $host_cpu in 5530 i*86 ) 5531 # Not sure whether the presence of OpenBSD here was a mistake. 5532 # Let's accept both of them until this is cleared up. 5533 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5534 lt_cv_file_magic_cmd=/usr/bin/file 5535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5536 ;; 5537 esac 5538 else 5539 lt_cv_deplibs_check_method=pass_all 5540 fi 5541 ;; 5542 5543haiku*) 5544 lt_cv_deplibs_check_method=pass_all 5545 ;; 5546 5547hpux10.20* | hpux11*) 5548 lt_cv_file_magic_cmd=/usr/bin/file 5549 case $host_cpu in 5550 ia64*) 5551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5553 ;; 5554 hppa*64*) 5555 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]' 5556 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5557 ;; 5558 *) 5559 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5560 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5561 ;; 5562 esac 5563 ;; 5564 5565interix[3-9]*) 5566 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5568 ;; 5569 5570irix5* | irix6* | nonstopux*) 5571 case $LD in 5572 *-32|*"-32 ") libmagic=32-bit;; 5573 *-n32|*"-n32 ") libmagic=N32;; 5574 *-64|*"-64 ") libmagic=64-bit;; 5575 *) libmagic=never-match;; 5576 esac 5577 lt_cv_deplibs_check_method=pass_all 5578 ;; 5579 5580# This must be glibc/ELF. 5581linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5582 lt_cv_deplibs_check_method=pass_all 5583 ;; 5584 5585netbsd* | netbsdelf*-gnu) 5586 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5588 else 5589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5590 fi 5591 ;; 5592 5593newos6*) 5594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5595 lt_cv_file_magic_cmd=/usr/bin/file 5596 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5597 ;; 5598 5599*nto* | *qnx*) 5600 lt_cv_deplibs_check_method=pass_all 5601 ;; 5602 5603openbsd* | bitrig*) 5604 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5606 else 5607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5608 fi 5609 ;; 5610 5611osf3* | osf4* | osf5*) 5612 lt_cv_deplibs_check_method=pass_all 5613 ;; 5614 5615rdos*) 5616 lt_cv_deplibs_check_method=pass_all 5617 ;; 5618 5619solaris*) 5620 lt_cv_deplibs_check_method=pass_all 5621 ;; 5622 5623sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5624 lt_cv_deplibs_check_method=pass_all 5625 ;; 5626 5627sysv4 | sysv4.3*) 5628 case $host_vendor in 5629 motorola) 5630 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]' 5631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5632 ;; 5633 ncr) 5634 lt_cv_deplibs_check_method=pass_all 5635 ;; 5636 sequent) 5637 lt_cv_file_magic_cmd='/bin/file' 5638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5639 ;; 5640 sni) 5641 lt_cv_file_magic_cmd='/bin/file' 5642 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5643 lt_cv_file_magic_test_file=/lib/libc.so 5644 ;; 5645 siemens) 5646 lt_cv_deplibs_check_method=pass_all 5647 ;; 5648 pc) 5649 lt_cv_deplibs_check_method=pass_all 5650 ;; 5651 esac 5652 ;; 5653 5654tpf*) 5655 lt_cv_deplibs_check_method=pass_all 5656 ;; 5657os2*) 5658 lt_cv_deplibs_check_method=pass_all 5659 ;; 5660esac 5661 5662fi 5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5664printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 5665 5666file_magic_glob= 5667want_nocaseglob=no 5668if test "$build" = "$host"; then 5669 case $host_os in 5670 mingw* | pw32*) 5671 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5672 want_nocaseglob=yes 5673 else 5674 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5675 fi 5676 ;; 5677 esac 5678fi 5679 5680file_magic_cmd=$lt_cv_file_magic_cmd 5681deplibs_check_method=$lt_cv_deplibs_check_method 5682test -z "$deplibs_check_method" && deplibs_check_method=unknown 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705if test -n "$ac_tool_prefix"; then 5706 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5707set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5709printf %s "checking for $ac_word... " >&6; } 5710if test ${ac_cv_prog_DLLTOOL+y} 5711then : 5712 printf %s "(cached) " >&6 5713else $as_nop 5714 if test -n "$DLLTOOL"; then 5715 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5716else 5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5718for as_dir in $PATH 5719do 5720 IFS=$as_save_IFS 5721 case $as_dir in #((( 5722 '') as_dir=./ ;; 5723 */) ;; 5724 *) as_dir=$as_dir/ ;; 5725 esac 5726 for ac_exec_ext in '' $ac_executable_extensions; do 5727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5728 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5730 break 2 5731 fi 5732done 5733 done 5734IFS=$as_save_IFS 5735 5736fi 5737fi 5738DLLTOOL=$ac_cv_prog_DLLTOOL 5739if test -n "$DLLTOOL"; then 5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5741printf "%s\n" "$DLLTOOL" >&6; } 5742else 5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5744printf "%s\n" "no" >&6; } 5745fi 5746 5747 5748fi 5749if test -z "$ac_cv_prog_DLLTOOL"; then 5750 ac_ct_DLLTOOL=$DLLTOOL 5751 # Extract the first word of "dlltool", so it can be a program name with args. 5752set dummy dlltool; ac_word=$2 5753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5754printf %s "checking for $ac_word... " >&6; } 5755if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 5756then : 5757 printf %s "(cached) " >&6 5758else $as_nop 5759 if test -n "$ac_ct_DLLTOOL"; then 5760 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5761else 5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5763for as_dir in $PATH 5764do 5765 IFS=$as_save_IFS 5766 case $as_dir in #((( 5767 '') as_dir=./ ;; 5768 */) ;; 5769 *) as_dir=$as_dir/ ;; 5770 esac 5771 for ac_exec_ext in '' $ac_executable_extensions; do 5772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5773 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5775 break 2 5776 fi 5777done 5778 done 5779IFS=$as_save_IFS 5780 5781fi 5782fi 5783ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5784if test -n "$ac_ct_DLLTOOL"; then 5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5786printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 5787else 5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5789printf "%s\n" "no" >&6; } 5790fi 5791 5792 if test "x$ac_ct_DLLTOOL" = x; then 5793 DLLTOOL="false" 5794 else 5795 case $cross_compiling:$ac_tool_warned in 5796yes:) 5797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5799ac_tool_warned=yes ;; 5800esac 5801 DLLTOOL=$ac_ct_DLLTOOL 5802 fi 5803else 5804 DLLTOOL="$ac_cv_prog_DLLTOOL" 5805fi 5806 5807test -z "$DLLTOOL" && DLLTOOL=dlltool 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5819printf %s "checking how to associate runtime and link libraries... " >&6; } 5820if test ${lt_cv_sharedlib_from_linklib_cmd+y} 5821then : 5822 printf %s "(cached) " >&6 5823else $as_nop 5824 lt_cv_sharedlib_from_linklib_cmd='unknown' 5825 5826case $host_os in 5827cygwin* | mingw* | pw32* | cegcc*) 5828 # two different shell functions defined in ltmain.sh; 5829 # decide which one to use based on capabilities of $DLLTOOL 5830 case `$DLLTOOL --help 2>&1` in 5831 *--identify-strict*) 5832 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5833 ;; 5834 *) 5835 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5836 ;; 5837 esac 5838 ;; 5839*) 5840 # fallback: assume linklib IS sharedlib 5841 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5842 ;; 5843esac 5844 5845fi 5846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5847printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5848sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5849test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5850 5851 5852 5853 5854 5855 5856 5857if test -n "$ac_tool_prefix"; then 5858 for ac_prog in ar 5859 do 5860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5861set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5863printf %s "checking for $ac_word... " >&6; } 5864if test ${ac_cv_prog_AR+y} 5865then : 5866 printf %s "(cached) " >&6 5867else $as_nop 5868 if test -n "$AR"; then 5869 ac_cv_prog_AR="$AR" # Let the user override the test. 5870else 5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5872for as_dir in $PATH 5873do 5874 IFS=$as_save_IFS 5875 case $as_dir in #((( 5876 '') as_dir=./ ;; 5877 */) ;; 5878 *) as_dir=$as_dir/ ;; 5879 esac 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5882 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886done 5887 done 5888IFS=$as_save_IFS 5889 5890fi 5891fi 5892AR=$ac_cv_prog_AR 5893if test -n "$AR"; then 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5895printf "%s\n" "$AR" >&6; } 5896else 5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898printf "%s\n" "no" >&6; } 5899fi 5900 5901 5902 test -n "$AR" && break 5903 done 5904fi 5905if test -z "$AR"; then 5906 ac_ct_AR=$AR 5907 for ac_prog in ar 5908do 5909 # Extract the first word of "$ac_prog", so it can be a program name with args. 5910set dummy $ac_prog; ac_word=$2 5911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5912printf %s "checking for $ac_word... " >&6; } 5913if test ${ac_cv_prog_ac_ct_AR+y} 5914then : 5915 printf %s "(cached) " >&6 5916else $as_nop 5917 if test -n "$ac_ct_AR"; then 5918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 case $as_dir in #((( 5925 '') as_dir=./ ;; 5926 */) ;; 5927 *) as_dir=$as_dir/ ;; 5928 esac 5929 for ac_exec_ext in '' $ac_executable_extensions; do 5930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5931 ac_cv_prog_ac_ct_AR="$ac_prog" 5932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5933 break 2 5934 fi 5935done 5936 done 5937IFS=$as_save_IFS 5938 5939fi 5940fi 5941ac_ct_AR=$ac_cv_prog_ac_ct_AR 5942if test -n "$ac_ct_AR"; then 5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5944printf "%s\n" "$ac_ct_AR" >&6; } 5945else 5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5947printf "%s\n" "no" >&6; } 5948fi 5949 5950 5951 test -n "$ac_ct_AR" && break 5952done 5953 5954 if test "x$ac_ct_AR" = x; then 5955 AR="false" 5956 else 5957 case $cross_compiling:$ac_tool_warned in 5958yes:) 5959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5961ac_tool_warned=yes ;; 5962esac 5963 AR=$ac_ct_AR 5964 fi 5965fi 5966 5967: ${AR=ar} 5968: ${AR_FLAGS=cr} 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5981printf %s "checking for archiver @FILE support... " >&6; } 5982if test ${lt_cv_ar_at_file+y} 5983then : 5984 printf %s "(cached) " >&6 5985else $as_nop 5986 lt_cv_ar_at_file=no 5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5988/* end confdefs.h. */ 5989 5990int 5991main (void) 5992{ 5993 5994 ; 5995 return 0; 5996} 5997_ACEOF 5998if ac_fn_c_try_compile "$LINENO" 5999then : 6000 echo conftest.$ac_objext > conftest.lst 6001 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6003 (eval $lt_ar_try) 2>&5 6004 ac_status=$? 6005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6006 test $ac_status = 0; } 6007 if test 0 -eq "$ac_status"; then 6008 # Ensure the archiver fails upon bogus file names. 6009 rm -f conftest.$ac_objext libconftest.a 6010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6011 (eval $lt_ar_try) 2>&5 6012 ac_status=$? 6013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6014 test $ac_status = 0; } 6015 if test 0 -ne "$ac_status"; then 6016 lt_cv_ar_at_file=@ 6017 fi 6018 fi 6019 rm -f conftest.* libconftest.a 6020 6021fi 6022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6023 6024fi 6025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6026printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6027 6028if test no = "$lt_cv_ar_at_file"; then 6029 archiver_list_spec= 6030else 6031 archiver_list_spec=$lt_cv_ar_at_file 6032fi 6033 6034 6035 6036 6037 6038 6039 6040if test -n "$ac_tool_prefix"; then 6041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6042set dummy ${ac_tool_prefix}strip; ac_word=$2 6043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6044printf %s "checking for $ac_word... " >&6; } 6045if test ${ac_cv_prog_STRIP+y} 6046then : 6047 printf %s "(cached) " >&6 6048else $as_nop 6049 if test -n "$STRIP"; then 6050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6051else 6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053for as_dir in $PATH 6054do 6055 IFS=$as_save_IFS 6056 case $as_dir in #((( 6057 '') as_dir=./ ;; 6058 */) ;; 6059 *) as_dir=$as_dir/ ;; 6060 esac 6061 for ac_exec_ext in '' $ac_executable_extensions; do 6062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6063 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6065 break 2 6066 fi 6067done 6068 done 6069IFS=$as_save_IFS 6070 6071fi 6072fi 6073STRIP=$ac_cv_prog_STRIP 6074if test -n "$STRIP"; then 6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6076printf "%s\n" "$STRIP" >&6; } 6077else 6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6079printf "%s\n" "no" >&6; } 6080fi 6081 6082 6083fi 6084if test -z "$ac_cv_prog_STRIP"; then 6085 ac_ct_STRIP=$STRIP 6086 # Extract the first word of "strip", so it can be a program name with args. 6087set dummy strip; ac_word=$2 6088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6089printf %s "checking for $ac_word... " >&6; } 6090if test ${ac_cv_prog_ac_ct_STRIP+y} 6091then : 6092 printf %s "(cached) " >&6 6093else $as_nop 6094 if test -n "$ac_ct_STRIP"; then 6095 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6096else 6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6098for as_dir in $PATH 6099do 6100 IFS=$as_save_IFS 6101 case $as_dir in #((( 6102 '') as_dir=./ ;; 6103 */) ;; 6104 *) as_dir=$as_dir/ ;; 6105 esac 6106 for ac_exec_ext in '' $ac_executable_extensions; do 6107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6108 ac_cv_prog_ac_ct_STRIP="strip" 6109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6110 break 2 6111 fi 6112done 6113 done 6114IFS=$as_save_IFS 6115 6116fi 6117fi 6118ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6119if test -n "$ac_ct_STRIP"; then 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6121printf "%s\n" "$ac_ct_STRIP" >&6; } 6122else 6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6124printf "%s\n" "no" >&6; } 6125fi 6126 6127 if test "x$ac_ct_STRIP" = x; then 6128 STRIP=":" 6129 else 6130 case $cross_compiling:$ac_tool_warned in 6131yes:) 6132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6133printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6134ac_tool_warned=yes ;; 6135esac 6136 STRIP=$ac_ct_STRIP 6137 fi 6138else 6139 STRIP="$ac_cv_prog_STRIP" 6140fi 6141 6142test -z "$STRIP" && STRIP=: 6143 6144 6145 6146 6147 6148 6149if test -n "$ac_tool_prefix"; then 6150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6151set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6153printf %s "checking for $ac_word... " >&6; } 6154if test ${ac_cv_prog_RANLIB+y} 6155then : 6156 printf %s "(cached) " >&6 6157else $as_nop 6158 if test -n "$RANLIB"; then 6159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6160else 6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162for as_dir in $PATH 6163do 6164 IFS=$as_save_IFS 6165 case $as_dir in #((( 6166 '') as_dir=./ ;; 6167 */) ;; 6168 *) as_dir=$as_dir/ ;; 6169 esac 6170 for ac_exec_ext in '' $ac_executable_extensions; do 6171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6174 break 2 6175 fi 6176done 6177 done 6178IFS=$as_save_IFS 6179 6180fi 6181fi 6182RANLIB=$ac_cv_prog_RANLIB 6183if test -n "$RANLIB"; then 6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6185printf "%s\n" "$RANLIB" >&6; } 6186else 6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6188printf "%s\n" "no" >&6; } 6189fi 6190 6191 6192fi 6193if test -z "$ac_cv_prog_RANLIB"; then 6194 ac_ct_RANLIB=$RANLIB 6195 # Extract the first word of "ranlib", so it can be a program name with args. 6196set dummy ranlib; ac_word=$2 6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198printf %s "checking for $ac_word... " >&6; } 6199if test ${ac_cv_prog_ac_ct_RANLIB+y} 6200then : 6201 printf %s "(cached) " >&6 6202else $as_nop 6203 if test -n "$ac_ct_RANLIB"; then 6204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6205else 6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6207for as_dir in $PATH 6208do 6209 IFS=$as_save_IFS 6210 case $as_dir in #((( 6211 '') as_dir=./ ;; 6212 */) ;; 6213 *) as_dir=$as_dir/ ;; 6214 esac 6215 for ac_exec_ext in '' $ac_executable_extensions; do 6216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6217 ac_cv_prog_ac_ct_RANLIB="ranlib" 6218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6219 break 2 6220 fi 6221done 6222 done 6223IFS=$as_save_IFS 6224 6225fi 6226fi 6227ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6228if test -n "$ac_ct_RANLIB"; then 6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6230printf "%s\n" "$ac_ct_RANLIB" >&6; } 6231else 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6233printf "%s\n" "no" >&6; } 6234fi 6235 6236 if test "x$ac_ct_RANLIB" = x; then 6237 RANLIB=":" 6238 else 6239 case $cross_compiling:$ac_tool_warned in 6240yes:) 6241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6243ac_tool_warned=yes ;; 6244esac 6245 RANLIB=$ac_ct_RANLIB 6246 fi 6247else 6248 RANLIB="$ac_cv_prog_RANLIB" 6249fi 6250 6251test -z "$RANLIB" && RANLIB=: 6252 6253 6254 6255 6256 6257 6258# Determine commands to create old-style static archives. 6259old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6260old_postinstall_cmds='chmod 644 $oldlib' 6261old_postuninstall_cmds= 6262 6263if test -n "$RANLIB"; then 6264 case $host_os in 6265 bitrig* | openbsd*) 6266 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6267 ;; 6268 *) 6269 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6270 ;; 6271 esac 6272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6273fi 6274 6275case $host_os in 6276 darwin*) 6277 lock_old_archive_extraction=yes ;; 6278 *) 6279 lock_old_archive_extraction=no ;; 6280esac 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302for ac_prog in gawk mawk nawk awk 6303do 6304 # Extract the first word of "$ac_prog", so it can be a program name with args. 6305set dummy $ac_prog; ac_word=$2 6306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6307printf %s "checking for $ac_word... " >&6; } 6308if test ${ac_cv_prog_AWK+y} 6309then : 6310 printf %s "(cached) " >&6 6311else $as_nop 6312 if test -n "$AWK"; then 6313 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6314else 6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6316for as_dir in $PATH 6317do 6318 IFS=$as_save_IFS 6319 case $as_dir in #((( 6320 '') as_dir=./ ;; 6321 */) ;; 6322 *) as_dir=$as_dir/ ;; 6323 esac 6324 for ac_exec_ext in '' $ac_executable_extensions; do 6325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6326 ac_cv_prog_AWK="$ac_prog" 6327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6328 break 2 6329 fi 6330done 6331 done 6332IFS=$as_save_IFS 6333 6334fi 6335fi 6336AWK=$ac_cv_prog_AWK 6337if test -n "$AWK"; then 6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6339printf "%s\n" "$AWK" >&6; } 6340else 6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6342printf "%s\n" "no" >&6; } 6343fi 6344 6345 6346 test -n "$AWK" && break 6347done 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367# If no C compiler was specified, use CC. 6368LTCC=${LTCC-"$CC"} 6369 6370# If no C compiler flags were specified, use CFLAGS. 6371LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6372 6373# Allow CC to be a program name with arguments. 6374compiler=$CC 6375 6376 6377# Check for command to grab the raw symbol name followed by C symbol from nm. 6378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6379printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6380if test ${lt_cv_sys_global_symbol_pipe+y} 6381then : 6382 printf %s "(cached) " >&6 6383else $as_nop 6384 6385# These are sane defaults that work on at least a few old systems. 6386# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6387 6388# Character class describing NM global symbol codes. 6389symcode='[BCDEGRST]' 6390 6391# Regexp to match symbols that can be accessed directly from C. 6392sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6393 6394# Define system-specific variables. 6395case $host_os in 6396aix*) 6397 symcode='[BCDT]' 6398 ;; 6399cygwin* | mingw* | pw32* | cegcc*) 6400 symcode='[ABCDGISTW]' 6401 ;; 6402hpux*) 6403 if test ia64 = "$host_cpu"; then 6404 symcode='[ABCDEGRST]' 6405 fi 6406 ;; 6407irix* | nonstopux*) 6408 symcode='[BCDEGRST]' 6409 ;; 6410osf*) 6411 symcode='[BCDEGQRST]' 6412 ;; 6413solaris*) 6414 symcode='[BDRT]' 6415 ;; 6416sco3.2v5*) 6417 symcode='[DT]' 6418 ;; 6419sysv4.2uw2*) 6420 symcode='[DT]' 6421 ;; 6422sysv5* | sco5v6* | unixware* | OpenUNIX*) 6423 symcode='[ABDT]' 6424 ;; 6425sysv4) 6426 symcode='[DFNSTU]' 6427 ;; 6428esac 6429 6430# If we're using GNU nm, then use its standard symbol codes. 6431case `$NM -V 2>&1` in 6432*GNU* | *'with BFD'*) 6433 symcode='[ABCDGIRSTW]' ;; 6434esac 6435 6436if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6437 # Gets list of data symbols to import. 6438 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6439 # Adjust the below global symbol transforms to fixup imported variables. 6440 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6441 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6442 lt_c_name_lib_hook="\ 6443 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6444 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6445else 6446 # Disable hooks by default. 6447 lt_cv_sys_global_symbol_to_import= 6448 lt_cdecl_hook= 6449 lt_c_name_hook= 6450 lt_c_name_lib_hook= 6451fi 6452 6453# Transform an extracted symbol line into a proper C declaration. 6454# Some systems (esp. on ia64) link data and code symbols differently, 6455# so use this general approach. 6456lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6457$lt_cdecl_hook\ 6458" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6459" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6460 6461# Transform an extracted symbol line into symbol name and symbol address 6462lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6463$lt_c_name_hook\ 6464" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6465" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6466 6467# Transform an extracted symbol line into symbol name with lib prefix and 6468# symbol address. 6469lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6470$lt_c_name_lib_hook\ 6471" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6472" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6473" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6474 6475# Handle CRLF in mingw tool chain 6476opt_cr= 6477case $build_os in 6478mingw*) 6479 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6480 ;; 6481esac 6482 6483# Try without a prefix underscore, then with it. 6484for ac_symprfx in "" "_"; do 6485 6486 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6487 symxfrm="\\1 $ac_symprfx\\2 \\2" 6488 6489 # Write the raw and C identifiers. 6490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6491 # Fake it for dumpbin and say T for any non-static function, 6492 # D for any global variable and I for any imported variable. 6493 # Also find C++ and __fastcall symbols from MSVC++, 6494 # which start with @ or ?. 6495 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6496" {last_section=section; section=\$ 3};"\ 6497" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6498" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6499" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6500" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6501" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6502" \$ 0!~/External *\|/{next};"\ 6503" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6504" {if(hide[section]) next};"\ 6505" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6506" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6507" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6508" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6509" ' prfx=^$ac_symprfx" 6510 else 6511 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6512 fi 6513 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6514 6515 # Check to see that the pipe works correctly. 6516 pipe_works=no 6517 6518 rm -f conftest* 6519 cat > conftest.$ac_ext <<_LT_EOF 6520#ifdef __cplusplus 6521extern "C" { 6522#endif 6523char nm_test_var; 6524void nm_test_func(void); 6525void nm_test_func(void){} 6526#ifdef __cplusplus 6527} 6528#endif 6529int main(){nm_test_var='a';nm_test_func();return(0);} 6530_LT_EOF 6531 6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6533 (eval $ac_compile) 2>&5 6534 ac_status=$? 6535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6536 test $ac_status = 0; }; then 6537 # Now try to grab the symbols. 6538 nlist=conftest.nm 6539 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6540 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6541 # Try sorting and uniquifying the output. 6542 if sort "$nlist" | uniq > "$nlist"T; then 6543 mv -f "$nlist"T "$nlist" 6544 else 6545 rm -f "$nlist"T 6546 fi 6547 6548 # Make sure that we snagged all the symbols we need. 6549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6551 cat <<_LT_EOF > conftest.$ac_ext 6552/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6553#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6554/* DATA imports from DLLs on WIN32 can't be const, because runtime 6555 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6556# define LT_DLSYM_CONST 6557#elif defined __osf__ 6558/* This system does not cope well with relocations in const data. */ 6559# define LT_DLSYM_CONST 6560#else 6561# define LT_DLSYM_CONST const 6562#endif 6563 6564#ifdef __cplusplus 6565extern "C" { 6566#endif 6567 6568_LT_EOF 6569 # Now generate the symbol file. 6570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6571 6572 cat <<_LT_EOF >> conftest.$ac_ext 6573 6574/* The mapping between symbol names and symbols. */ 6575LT_DLSYM_CONST struct { 6576 const char *name; 6577 void *address; 6578} 6579lt__PROGRAM__LTX_preloaded_symbols[] = 6580{ 6581 { "@PROGRAM@", (void *) 0 }, 6582_LT_EOF 6583 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6584 cat <<\_LT_EOF >> conftest.$ac_ext 6585 {0, (void *) 0} 6586}; 6587 6588/* This works around a problem in FreeBSD linker */ 6589#ifdef FREEBSD_WORKAROUND 6590static const void *lt_preloaded_setup() { 6591 return lt__PROGRAM__LTX_preloaded_symbols; 6592} 6593#endif 6594 6595#ifdef __cplusplus 6596} 6597#endif 6598_LT_EOF 6599 # Now try linking the two files. 6600 mv conftest.$ac_objext conftstm.$ac_objext 6601 lt_globsym_save_LIBS=$LIBS 6602 lt_globsym_save_CFLAGS=$CFLAGS 6603 LIBS=conftstm.$ac_objext 6604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6606 (eval $ac_link) 2>&5 6607 ac_status=$? 6608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6609 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6610 pipe_works=yes 6611 fi 6612 LIBS=$lt_globsym_save_LIBS 6613 CFLAGS=$lt_globsym_save_CFLAGS 6614 else 6615 echo "cannot find nm_test_func in $nlist" >&5 6616 fi 6617 else 6618 echo "cannot find nm_test_var in $nlist" >&5 6619 fi 6620 else 6621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6622 fi 6623 else 6624 echo "$progname: failed program was:" >&5 6625 cat conftest.$ac_ext >&5 6626 fi 6627 rm -rf conftest* conftst* 6628 6629 # Do not use the global_symbol_pipe unless it works. 6630 if test yes = "$pipe_works"; then 6631 break 6632 else 6633 lt_cv_sys_global_symbol_pipe= 6634 fi 6635done 6636 6637fi 6638 6639if test -z "$lt_cv_sys_global_symbol_pipe"; then 6640 lt_cv_sys_global_symbol_to_cdecl= 6641fi 6642if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6644printf "%s\n" "failed" >&6; } 6645else 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6647printf "%s\n" "ok" >&6; } 6648fi 6649 6650# Response file support. 6651if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6652 nm_file_list_spec='@' 6653elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6654 nm_file_list_spec='@' 6655fi 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6694printf %s "checking for sysroot... " >&6; } 6695 6696# Check whether --with-sysroot was given. 6697if test ${with_sysroot+y} 6698then : 6699 withval=$with_sysroot; 6700else $as_nop 6701 with_sysroot=no 6702fi 6703 6704 6705lt_sysroot= 6706case $with_sysroot in #( 6707 yes) 6708 if test yes = "$GCC"; then 6709 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6710 fi 6711 ;; #( 6712 /*) 6713 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6714 ;; #( 6715 no|'') 6716 ;; #( 6717 *) 6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6719printf "%s\n" "$with_sysroot" >&6; } 6720 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6721 ;; 6722esac 6723 6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6725printf "%s\n" "${lt_sysroot:-no}" >&6; } 6726 6727 6728 6729 6730 6731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6732printf %s "checking for a working dd... " >&6; } 6733if test ${ac_cv_path_lt_DD+y} 6734then : 6735 printf %s "(cached) " >&6 6736else $as_nop 6737 printf 0123456789abcdef0123456789abcdef >conftest.i 6738cat conftest.i conftest.i >conftest2.i 6739: ${lt_DD:=$DD} 6740if test -z "$lt_DD"; then 6741 ac_path_lt_DD_found=false 6742 # Loop through the user's path and test for each of PROGNAME-LIST 6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744for as_dir in $PATH 6745do 6746 IFS=$as_save_IFS 6747 case $as_dir in #((( 6748 '') as_dir=./ ;; 6749 */) ;; 6750 *) as_dir=$as_dir/ ;; 6751 esac 6752 for ac_prog in dd 6753 do 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 6756 as_fn_executable_p "$ac_path_lt_DD" || continue 6757if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6758 cmp -s conftest.i conftest.out \ 6759 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6760fi 6761 $ac_path_lt_DD_found && break 3 6762 done 6763 done 6764 done 6765IFS=$as_save_IFS 6766 if test -z "$ac_cv_path_lt_DD"; then 6767 : 6768 fi 6769else 6770 ac_cv_path_lt_DD=$lt_DD 6771fi 6772 6773rm -f conftest.i conftest2.i conftest.out 6774fi 6775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6776printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 6777 6778 6779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6780printf %s "checking how to truncate binary pipes... " >&6; } 6781if test ${lt_cv_truncate_bin+y} 6782then : 6783 printf %s "(cached) " >&6 6784else $as_nop 6785 printf 0123456789abcdef0123456789abcdef >conftest.i 6786cat conftest.i conftest.i >conftest2.i 6787lt_cv_truncate_bin= 6788if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6789 cmp -s conftest.i conftest.out \ 6790 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6791fi 6792rm -f conftest.i conftest2.i conftest.out 6793test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6794fi 6795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6796printf "%s\n" "$lt_cv_truncate_bin" >&6; } 6797 6798 6799 6800 6801 6802 6803 6804# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6805func_cc_basename () 6806{ 6807 for cc_temp in $*""; do 6808 case $cc_temp in 6809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6811 \-*) ;; 6812 *) break;; 6813 esac 6814 done 6815 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6816} 6817 6818# Check whether --enable-libtool-lock was given. 6819if test ${enable_libtool_lock+y} 6820then : 6821 enableval=$enable_libtool_lock; 6822fi 6823 6824test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6825 6826# Some flags need to be propagated to the compiler or linker for good 6827# libtool support. 6828case $host in 6829ia64-*-hpux*) 6830 # Find out what ABI is being produced by ac_compile, and set mode 6831 # options accordingly. 6832 echo 'int i;' > conftest.$ac_ext 6833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6834 (eval $ac_compile) 2>&5 6835 ac_status=$? 6836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6837 test $ac_status = 0; }; then 6838 case `/usr/bin/file conftest.$ac_objext` in 6839 *ELF-32*) 6840 HPUX_IA64_MODE=32 6841 ;; 6842 *ELF-64*) 6843 HPUX_IA64_MODE=64 6844 ;; 6845 esac 6846 fi 6847 rm -rf conftest* 6848 ;; 6849*-*-irix6*) 6850 # Find out what ABI is being produced by ac_compile, and set linker 6851 # options accordingly. 6852 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6854 (eval $ac_compile) 2>&5 6855 ac_status=$? 6856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6857 test $ac_status = 0; }; then 6858 if test yes = "$lt_cv_prog_gnu_ld"; then 6859 case `/usr/bin/file conftest.$ac_objext` in 6860 *32-bit*) 6861 LD="${LD-ld} -melf32bsmip" 6862 ;; 6863 *N32*) 6864 LD="${LD-ld} -melf32bmipn32" 6865 ;; 6866 *64-bit*) 6867 LD="${LD-ld} -melf64bmip" 6868 ;; 6869 esac 6870 else 6871 case `/usr/bin/file conftest.$ac_objext` in 6872 *32-bit*) 6873 LD="${LD-ld} -32" 6874 ;; 6875 *N32*) 6876 LD="${LD-ld} -n32" 6877 ;; 6878 *64-bit*) 6879 LD="${LD-ld} -64" 6880 ;; 6881 esac 6882 fi 6883 fi 6884 rm -rf conftest* 6885 ;; 6886 6887mips64*-*linux*) 6888 # Find out what ABI is being produced by ac_compile, and set linker 6889 # options accordingly. 6890 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6892 (eval $ac_compile) 2>&5 6893 ac_status=$? 6894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6895 test $ac_status = 0; }; then 6896 emul=elf 6897 case `/usr/bin/file conftest.$ac_objext` in 6898 *32-bit*) 6899 emul="${emul}32" 6900 ;; 6901 *64-bit*) 6902 emul="${emul}64" 6903 ;; 6904 esac 6905 case `/usr/bin/file conftest.$ac_objext` in 6906 *MSB*) 6907 emul="${emul}btsmip" 6908 ;; 6909 *LSB*) 6910 emul="${emul}ltsmip" 6911 ;; 6912 esac 6913 case `/usr/bin/file conftest.$ac_objext` in 6914 *N32*) 6915 emul="${emul}n32" 6916 ;; 6917 esac 6918 LD="${LD-ld} -m $emul" 6919 fi 6920 rm -rf conftest* 6921 ;; 6922 6923x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6924s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6925 # Find out what ABI is being produced by ac_compile, and set linker 6926 # options accordingly. Note that the listed cases only cover the 6927 # situations where additional linker options are needed (such as when 6928 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6929 # vice versa); the common cases where no linker options are needed do 6930 # not appear in the list. 6931 echo 'int i;' > conftest.$ac_ext 6932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6933 (eval $ac_compile) 2>&5 6934 ac_status=$? 6935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6936 test $ac_status = 0; }; then 6937 case `/usr/bin/file conftest.o` in 6938 *32-bit*) 6939 case $host in 6940 x86_64-*kfreebsd*-gnu) 6941 LD="${LD-ld} -m elf_i386_fbsd" 6942 ;; 6943 x86_64-*linux*) 6944 case `/usr/bin/file conftest.o` in 6945 *x86-64*) 6946 LD="${LD-ld} -m elf32_x86_64" 6947 ;; 6948 *) 6949 LD="${LD-ld} -m elf_i386" 6950 ;; 6951 esac 6952 ;; 6953 powerpc64le-*linux*) 6954 LD="${LD-ld} -m elf32lppclinux" 6955 ;; 6956 powerpc64-*linux*) 6957 LD="${LD-ld} -m elf32ppclinux" 6958 ;; 6959 s390x-*linux*) 6960 LD="${LD-ld} -m elf_s390" 6961 ;; 6962 sparc64-*linux*) 6963 LD="${LD-ld} -m elf32_sparc" 6964 ;; 6965 esac 6966 ;; 6967 *64-bit*) 6968 case $host in 6969 x86_64-*kfreebsd*-gnu) 6970 LD="${LD-ld} -m elf_x86_64_fbsd" 6971 ;; 6972 x86_64-*linux*) 6973 LD="${LD-ld} -m elf_x86_64" 6974 ;; 6975 powerpcle-*linux*) 6976 LD="${LD-ld} -m elf64lppc" 6977 ;; 6978 powerpc-*linux*) 6979 LD="${LD-ld} -m elf64ppc" 6980 ;; 6981 s390*-*linux*|s390*-*tpf*) 6982 LD="${LD-ld} -m elf64_s390" 6983 ;; 6984 sparc*-*linux*) 6985 LD="${LD-ld} -m elf64_sparc" 6986 ;; 6987 esac 6988 ;; 6989 esac 6990 fi 6991 rm -rf conftest* 6992 ;; 6993 6994*-*-sco3.2v5*) 6995 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6996 SAVE_CFLAGS=$CFLAGS 6997 CFLAGS="$CFLAGS -belf" 6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6999printf %s "checking whether the C compiler needs -belf... " >&6; } 7000if test ${lt_cv_cc_needs_belf+y} 7001then : 7002 printf %s "(cached) " >&6 7003else $as_nop 7004 ac_ext=c 7005ac_cpp='$CPP $CPPFLAGS' 7006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7008ac_compiler_gnu=$ac_cv_c_compiler_gnu 7009 7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7011/* end confdefs.h. */ 7012 7013int 7014main (void) 7015{ 7016 7017 ; 7018 return 0; 7019} 7020_ACEOF 7021if ac_fn_c_try_link "$LINENO" 7022then : 7023 lt_cv_cc_needs_belf=yes 7024else $as_nop 7025 lt_cv_cc_needs_belf=no 7026fi 7027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7028 conftest$ac_exeext conftest.$ac_ext 7029 ac_ext=c 7030ac_cpp='$CPP $CPPFLAGS' 7031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7033ac_compiler_gnu=$ac_cv_c_compiler_gnu 7034 7035fi 7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7037printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7038 if test yes != "$lt_cv_cc_needs_belf"; then 7039 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7040 CFLAGS=$SAVE_CFLAGS 7041 fi 7042 ;; 7043*-*solaris*) 7044 # Find out what ABI is being produced by ac_compile, and set linker 7045 # options accordingly. 7046 echo 'int i;' > conftest.$ac_ext 7047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7048 (eval $ac_compile) 2>&5 7049 ac_status=$? 7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7051 test $ac_status = 0; }; then 7052 case `/usr/bin/file conftest.o` in 7053 *64-bit*) 7054 case $lt_cv_prog_gnu_ld in 7055 yes*) 7056 case $host in 7057 i?86-*-solaris*|x86_64-*-solaris*) 7058 LD="${LD-ld} -m elf_x86_64" 7059 ;; 7060 sparc*-*-solaris*) 7061 LD="${LD-ld} -m elf64_sparc" 7062 ;; 7063 esac 7064 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7065 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7066 LD=${LD-ld}_sol2 7067 fi 7068 ;; 7069 *) 7070 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7071 LD="${LD-ld} -64" 7072 fi 7073 ;; 7074 esac 7075 ;; 7076 esac 7077 fi 7078 rm -rf conftest* 7079 ;; 7080esac 7081 7082need_locks=$enable_libtool_lock 7083 7084if test -n "$ac_tool_prefix"; then 7085 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7086set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+y} 7090then : 7091 printf %s "(cached) " >&6 7092else $as_nop 7093 if test -n "$MANIFEST_TOOL"; then 7094 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt" 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 7117MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7118if test -n "$MANIFEST_TOOL"; then 7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7120printf "%s\n" "$MANIFEST_TOOL" >&6; } 7121else 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7123printf "%s\n" "no" >&6; } 7124fi 7125 7126 7127fi 7128if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7129 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7130 # Extract the first word of "mt", so it can be a program name with args. 7131set dummy mt; ac_word=$2 7132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7133printf %s "checking for $ac_word... " >&6; } 7134if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7135then : 7136 printf %s "(cached) " >&6 7137else $as_nop 7138 if test -n "$ac_ct_MANIFEST_TOOL"; then 7139 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7140else 7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7142for as_dir in $PATH 7143do 7144 IFS=$as_save_IFS 7145 case $as_dir in #((( 7146 '') as_dir=./ ;; 7147 */) ;; 7148 *) as_dir=$as_dir/ ;; 7149 esac 7150 for ac_exec_ext in '' $ac_executable_extensions; do 7151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7152 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7154 break 2 7155 fi 7156done 7157 done 7158IFS=$as_save_IFS 7159 7160fi 7161fi 7162ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7163if test -n "$ac_ct_MANIFEST_TOOL"; then 7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7165printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7166else 7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7168printf "%s\n" "no" >&6; } 7169fi 7170 7171 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7172 MANIFEST_TOOL=":" 7173 else 7174 case $cross_compiling:$ac_tool_warned in 7175yes:) 7176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7177printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7178ac_tool_warned=yes ;; 7179esac 7180 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7181 fi 7182else 7183 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7184fi 7185 7186test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7188printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7189if test ${lt_cv_path_mainfest_tool+y} 7190then : 7191 printf %s "(cached) " >&6 7192else $as_nop 7193 lt_cv_path_mainfest_tool=no 7194 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7195 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7196 cat conftest.err >&5 7197 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7198 lt_cv_path_mainfest_tool=yes 7199 fi 7200 rm -f conftest* 7201fi 7202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7203printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7204if test yes != "$lt_cv_path_mainfest_tool"; then 7205 MANIFEST_TOOL=: 7206fi 7207 7208 7209 7210 7211 7212 7213 case $host_os in 7214 rhapsody* | darwin*) 7215 if test -n "$ac_tool_prefix"; then 7216 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7217set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7219printf %s "checking for $ac_word... " >&6; } 7220if test ${ac_cv_prog_DSYMUTIL+y} 7221then : 7222 printf %s "(cached) " >&6 7223else $as_nop 7224 if test -n "$DSYMUTIL"; then 7225 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7226else 7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7228for as_dir in $PATH 7229do 7230 IFS=$as_save_IFS 7231 case $as_dir in #((( 7232 '') as_dir=./ ;; 7233 */) ;; 7234 *) as_dir=$as_dir/ ;; 7235 esac 7236 for ac_exec_ext in '' $ac_executable_extensions; do 7237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7238 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7240 break 2 7241 fi 7242done 7243 done 7244IFS=$as_save_IFS 7245 7246fi 7247fi 7248DSYMUTIL=$ac_cv_prog_DSYMUTIL 7249if test -n "$DSYMUTIL"; then 7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7251printf "%s\n" "$DSYMUTIL" >&6; } 7252else 7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7254printf "%s\n" "no" >&6; } 7255fi 7256 7257 7258fi 7259if test -z "$ac_cv_prog_DSYMUTIL"; then 7260 ac_ct_DSYMUTIL=$DSYMUTIL 7261 # Extract the first word of "dsymutil", so it can be a program name with args. 7262set dummy dsymutil; ac_word=$2 7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7264printf %s "checking for $ac_word... " >&6; } 7265if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7266then : 7267 printf %s "(cached) " >&6 7268else $as_nop 7269 if test -n "$ac_ct_DSYMUTIL"; then 7270 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7271else 7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7273for as_dir in $PATH 7274do 7275 IFS=$as_save_IFS 7276 case $as_dir in #((( 7277 '') as_dir=./ ;; 7278 */) ;; 7279 *) as_dir=$as_dir/ ;; 7280 esac 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7283 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288 done 7289IFS=$as_save_IFS 7290 7291fi 7292fi 7293ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7294if test -n "$ac_ct_DSYMUTIL"; then 7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7296printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7297else 7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7299printf "%s\n" "no" >&6; } 7300fi 7301 7302 if test "x$ac_ct_DSYMUTIL" = x; then 7303 DSYMUTIL=":" 7304 else 7305 case $cross_compiling:$ac_tool_warned in 7306yes:) 7307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7308printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7309ac_tool_warned=yes ;; 7310esac 7311 DSYMUTIL=$ac_ct_DSYMUTIL 7312 fi 7313else 7314 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7315fi 7316 7317 if test -n "$ac_tool_prefix"; then 7318 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7319set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321printf %s "checking for $ac_word... " >&6; } 7322if test ${ac_cv_prog_NMEDIT+y} 7323then : 7324 printf %s "(cached) " >&6 7325else $as_nop 7326 if test -n "$NMEDIT"; then 7327 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7328else 7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7330for as_dir in $PATH 7331do 7332 IFS=$as_save_IFS 7333 case $as_dir in #((( 7334 '') as_dir=./ ;; 7335 */) ;; 7336 *) as_dir=$as_dir/ ;; 7337 esac 7338 for ac_exec_ext in '' $ac_executable_extensions; do 7339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7340 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7342 break 2 7343 fi 7344done 7345 done 7346IFS=$as_save_IFS 7347 7348fi 7349fi 7350NMEDIT=$ac_cv_prog_NMEDIT 7351if test -n "$NMEDIT"; then 7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7353printf "%s\n" "$NMEDIT" >&6; } 7354else 7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7356printf "%s\n" "no" >&6; } 7357fi 7358 7359 7360fi 7361if test -z "$ac_cv_prog_NMEDIT"; then 7362 ac_ct_NMEDIT=$NMEDIT 7363 # Extract the first word of "nmedit", so it can be a program name with args. 7364set dummy nmedit; ac_word=$2 7365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7366printf %s "checking for $ac_word... " >&6; } 7367if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7368then : 7369 printf %s "(cached) " >&6 7370else $as_nop 7371 if test -n "$ac_ct_NMEDIT"; then 7372 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7373else 7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7375for as_dir in $PATH 7376do 7377 IFS=$as_save_IFS 7378 case $as_dir in #((( 7379 '') as_dir=./ ;; 7380 */) ;; 7381 *) as_dir=$as_dir/ ;; 7382 esac 7383 for ac_exec_ext in '' $ac_executable_extensions; do 7384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7385 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7387 break 2 7388 fi 7389done 7390 done 7391IFS=$as_save_IFS 7392 7393fi 7394fi 7395ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7396if test -n "$ac_ct_NMEDIT"; then 7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7398printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7399else 7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401printf "%s\n" "no" >&6; } 7402fi 7403 7404 if test "x$ac_ct_NMEDIT" = x; then 7405 NMEDIT=":" 7406 else 7407 case $cross_compiling:$ac_tool_warned in 7408yes:) 7409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7410printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7411ac_tool_warned=yes ;; 7412esac 7413 NMEDIT=$ac_ct_NMEDIT 7414 fi 7415else 7416 NMEDIT="$ac_cv_prog_NMEDIT" 7417fi 7418 7419 if test -n "$ac_tool_prefix"; then 7420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7421set dummy ${ac_tool_prefix}lipo; ac_word=$2 7422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7423printf %s "checking for $ac_word... " >&6; } 7424if test ${ac_cv_prog_LIPO+y} 7425then : 7426 printf %s "(cached) " >&6 7427else $as_nop 7428 if test -n "$LIPO"; then 7429 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7430else 7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7432for as_dir in $PATH 7433do 7434 IFS=$as_save_IFS 7435 case $as_dir in #((( 7436 '') as_dir=./ ;; 7437 */) ;; 7438 *) as_dir=$as_dir/ ;; 7439 esac 7440 for ac_exec_ext in '' $ac_executable_extensions; do 7441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7442 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7444 break 2 7445 fi 7446done 7447 done 7448IFS=$as_save_IFS 7449 7450fi 7451fi 7452LIPO=$ac_cv_prog_LIPO 7453if test -n "$LIPO"; then 7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7455printf "%s\n" "$LIPO" >&6; } 7456else 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7458printf "%s\n" "no" >&6; } 7459fi 7460 7461 7462fi 7463if test -z "$ac_cv_prog_LIPO"; then 7464 ac_ct_LIPO=$LIPO 7465 # Extract the first word of "lipo", so it can be a program name with args. 7466set dummy lipo; ac_word=$2 7467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7468printf %s "checking for $ac_word... " >&6; } 7469if test ${ac_cv_prog_ac_ct_LIPO+y} 7470then : 7471 printf %s "(cached) " >&6 7472else $as_nop 7473 if test -n "$ac_ct_LIPO"; then 7474 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7475else 7476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7477for as_dir in $PATH 7478do 7479 IFS=$as_save_IFS 7480 case $as_dir in #((( 7481 '') as_dir=./ ;; 7482 */) ;; 7483 *) as_dir=$as_dir/ ;; 7484 esac 7485 for ac_exec_ext in '' $ac_executable_extensions; do 7486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7487 ac_cv_prog_ac_ct_LIPO="lipo" 7488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7489 break 2 7490 fi 7491done 7492 done 7493IFS=$as_save_IFS 7494 7495fi 7496fi 7497ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7498if test -n "$ac_ct_LIPO"; then 7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7500printf "%s\n" "$ac_ct_LIPO" >&6; } 7501else 7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7503printf "%s\n" "no" >&6; } 7504fi 7505 7506 if test "x$ac_ct_LIPO" = x; then 7507 LIPO=":" 7508 else 7509 case $cross_compiling:$ac_tool_warned in 7510yes:) 7511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7512printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7513ac_tool_warned=yes ;; 7514esac 7515 LIPO=$ac_ct_LIPO 7516 fi 7517else 7518 LIPO="$ac_cv_prog_LIPO" 7519fi 7520 7521 if test -n "$ac_tool_prefix"; then 7522 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7523set dummy ${ac_tool_prefix}otool; ac_word=$2 7524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7525printf %s "checking for $ac_word... " >&6; } 7526if test ${ac_cv_prog_OTOOL+y} 7527then : 7528 printf %s "(cached) " >&6 7529else $as_nop 7530 if test -n "$OTOOL"; then 7531 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7532else 7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7534for as_dir in $PATH 7535do 7536 IFS=$as_save_IFS 7537 case $as_dir in #((( 7538 '') as_dir=./ ;; 7539 */) ;; 7540 *) as_dir=$as_dir/ ;; 7541 esac 7542 for ac_exec_ext in '' $ac_executable_extensions; do 7543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7544 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7546 break 2 7547 fi 7548done 7549 done 7550IFS=$as_save_IFS 7551 7552fi 7553fi 7554OTOOL=$ac_cv_prog_OTOOL 7555if test -n "$OTOOL"; then 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7557printf "%s\n" "$OTOOL" >&6; } 7558else 7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7560printf "%s\n" "no" >&6; } 7561fi 7562 7563 7564fi 7565if test -z "$ac_cv_prog_OTOOL"; then 7566 ac_ct_OTOOL=$OTOOL 7567 # Extract the first word of "otool", so it can be a program name with args. 7568set dummy otool; ac_word=$2 7569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7570printf %s "checking for $ac_word... " >&6; } 7571if test ${ac_cv_prog_ac_ct_OTOOL+y} 7572then : 7573 printf %s "(cached) " >&6 7574else $as_nop 7575 if test -n "$ac_ct_OTOOL"; then 7576 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7577else 7578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7579for as_dir in $PATH 7580do 7581 IFS=$as_save_IFS 7582 case $as_dir in #((( 7583 '') as_dir=./ ;; 7584 */) ;; 7585 *) as_dir=$as_dir/ ;; 7586 esac 7587 for ac_exec_ext in '' $ac_executable_extensions; do 7588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7589 ac_cv_prog_ac_ct_OTOOL="otool" 7590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7591 break 2 7592 fi 7593done 7594 done 7595IFS=$as_save_IFS 7596 7597fi 7598fi 7599ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7600if test -n "$ac_ct_OTOOL"; then 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7602printf "%s\n" "$ac_ct_OTOOL" >&6; } 7603else 7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7605printf "%s\n" "no" >&6; } 7606fi 7607 7608 if test "x$ac_ct_OTOOL" = x; then 7609 OTOOL=":" 7610 else 7611 case $cross_compiling:$ac_tool_warned in 7612yes:) 7613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7614printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7615ac_tool_warned=yes ;; 7616esac 7617 OTOOL=$ac_ct_OTOOL 7618 fi 7619else 7620 OTOOL="$ac_cv_prog_OTOOL" 7621fi 7622 7623 if test -n "$ac_tool_prefix"; then 7624 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7625set dummy ${ac_tool_prefix}otool64; ac_word=$2 7626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7627printf %s "checking for $ac_word... " >&6; } 7628if test ${ac_cv_prog_OTOOL64+y} 7629then : 7630 printf %s "(cached) " >&6 7631else $as_nop 7632 if test -n "$OTOOL64"; then 7633 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7634else 7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636for as_dir in $PATH 7637do 7638 IFS=$as_save_IFS 7639 case $as_dir in #((( 7640 '') as_dir=./ ;; 7641 */) ;; 7642 *) as_dir=$as_dir/ ;; 7643 esac 7644 for ac_exec_ext in '' $ac_executable_extensions; do 7645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7646 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7648 break 2 7649 fi 7650done 7651 done 7652IFS=$as_save_IFS 7653 7654fi 7655fi 7656OTOOL64=$ac_cv_prog_OTOOL64 7657if test -n "$OTOOL64"; then 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7659printf "%s\n" "$OTOOL64" >&6; } 7660else 7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7662printf "%s\n" "no" >&6; } 7663fi 7664 7665 7666fi 7667if test -z "$ac_cv_prog_OTOOL64"; then 7668 ac_ct_OTOOL64=$OTOOL64 7669 # Extract the first word of "otool64", so it can be a program name with args. 7670set dummy otool64; ac_word=$2 7671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7672printf %s "checking for $ac_word... " >&6; } 7673if test ${ac_cv_prog_ac_ct_OTOOL64+y} 7674then : 7675 printf %s "(cached) " >&6 7676else $as_nop 7677 if test -n "$ac_ct_OTOOL64"; then 7678 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7679else 7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7681for as_dir in $PATH 7682do 7683 IFS=$as_save_IFS 7684 case $as_dir in #((( 7685 '') as_dir=./ ;; 7686 */) ;; 7687 *) as_dir=$as_dir/ ;; 7688 esac 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7691 ac_cv_prog_ac_ct_OTOOL64="otool64" 7692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7693 break 2 7694 fi 7695done 7696 done 7697IFS=$as_save_IFS 7698 7699fi 7700fi 7701ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7702if test -n "$ac_ct_OTOOL64"; then 7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7704printf "%s\n" "$ac_ct_OTOOL64" >&6; } 7705else 7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7707printf "%s\n" "no" >&6; } 7708fi 7709 7710 if test "x$ac_ct_OTOOL64" = x; then 7711 OTOOL64=":" 7712 else 7713 case $cross_compiling:$ac_tool_warned in 7714yes:) 7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7716printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7717ac_tool_warned=yes ;; 7718esac 7719 OTOOL64=$ac_ct_OTOOL64 7720 fi 7721else 7722 OTOOL64="$ac_cv_prog_OTOOL64" 7723fi 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7752printf %s "checking for -single_module linker flag... " >&6; } 7753if test ${lt_cv_apple_cc_single_mod+y} 7754then : 7755 printf %s "(cached) " >&6 7756else $as_nop 7757 lt_cv_apple_cc_single_mod=no 7758 if test -z "$LT_MULTI_MODULE"; then 7759 # By default we will add the -single_module flag. You can override 7760 # by either setting the environment variable LT_MULTI_MODULE 7761 # non-empty at configure time, or by adding -multi_module to the 7762 # link flags. 7763 rm -rf libconftest.dylib* 7764 echo "int foo(void){return 1;}" > conftest.c 7765 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7766-dynamiclib -Wl,-single_module conftest.c" >&5 7767 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7768 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7769 _lt_result=$? 7770 # If there is a non-empty error log, and "single_module" 7771 # appears in it, assume the flag caused a linker warning 7772 if test -s conftest.err && $GREP single_module conftest.err; then 7773 cat conftest.err >&5 7774 # Otherwise, if the output was created with a 0 exit code from 7775 # the compiler, it worked. 7776 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7777 lt_cv_apple_cc_single_mod=yes 7778 else 7779 cat conftest.err >&5 7780 fi 7781 rm -rf libconftest.dylib* 7782 rm -f conftest.* 7783 fi 7784fi 7785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7786printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 7787 7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7789printf %s "checking for -exported_symbols_list linker flag... " >&6; } 7790if test ${lt_cv_ld_exported_symbols_list+y} 7791then : 7792 printf %s "(cached) " >&6 7793else $as_nop 7794 lt_cv_ld_exported_symbols_list=no 7795 save_LDFLAGS=$LDFLAGS 7796 echo "_main" > conftest.sym 7797 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799/* end confdefs.h. */ 7800 7801int 7802main (void) 7803{ 7804 7805 ; 7806 return 0; 7807} 7808_ACEOF 7809if ac_fn_c_try_link "$LINENO" 7810then : 7811 lt_cv_ld_exported_symbols_list=yes 7812else $as_nop 7813 lt_cv_ld_exported_symbols_list=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7816 conftest$ac_exeext conftest.$ac_ext 7817 LDFLAGS=$save_LDFLAGS 7818 7819fi 7820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7821printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 7822 7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7824printf %s "checking for -force_load linker flag... " >&6; } 7825if test ${lt_cv_ld_force_load+y} 7826then : 7827 printf %s "(cached) " >&6 7828else $as_nop 7829 lt_cv_ld_force_load=no 7830 cat > conftest.c << _LT_EOF 7831int forced_loaded() { return 2;} 7832_LT_EOF 7833 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7834 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7835 echo "$AR cr libconftest.a conftest.o" >&5 7836 $AR cr libconftest.a conftest.o 2>&5 7837 echo "$RANLIB libconftest.a" >&5 7838 $RANLIB libconftest.a 2>&5 7839 cat > conftest.c << _LT_EOF 7840int main() { return 0;} 7841_LT_EOF 7842 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7843 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7844 _lt_result=$? 7845 if test -s conftest.err && $GREP force_load conftest.err; then 7846 cat conftest.err >&5 7847 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7848 lt_cv_ld_force_load=yes 7849 else 7850 cat conftest.err >&5 7851 fi 7852 rm -f conftest.err libconftest.a conftest conftest.c 7853 rm -rf conftest.dSYM 7854 7855fi 7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7857printf "%s\n" "$lt_cv_ld_force_load" >&6; } 7858 case $host_os in 7859 rhapsody* | darwin1.[012]) 7860 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7861 darwin1.*) 7862 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7863 darwin*) # darwin 5.x on 7864 # if running on 10.5 or later, the deployment target defaults 7865 # to the OS version, if on x86, and 10.4, the deployment 7866 # target defaults to 10.4. Don't you love it? 7867 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7868 10.0,*86*-darwin8*|10.0,*-darwin[912]*) 7869 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7870 10.[012][,.]*) 7871 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7872 10.*|11.*) 7873 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7874 esac 7875 ;; 7876 esac 7877 if test yes = "$lt_cv_apple_cc_single_mod"; then 7878 _lt_dar_single_mod='$single_module' 7879 fi 7880 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7881 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7882 else 7883 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7884 fi 7885 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7886 _lt_dsymutil='~$DSYMUTIL $lib || :' 7887 else 7888 _lt_dsymutil= 7889 fi 7890 ;; 7891 esac 7892 7893# func_munge_path_list VARIABLE PATH 7894# ----------------------------------- 7895# VARIABLE is name of variable containing _space_ separated list of 7896# directories to be munged by the contents of PATH, which is string 7897# having a format: 7898# "DIR[:DIR]:" 7899# string "DIR[ DIR]" will be prepended to VARIABLE 7900# ":DIR[:DIR]" 7901# string "DIR[ DIR]" will be appended to VARIABLE 7902# "DIRP[:DIRP]::[DIRA:]DIRA" 7903# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7904# "DIRA[ DIRA]" will be appended to VARIABLE 7905# "DIR[:DIR]" 7906# VARIABLE will be replaced by "DIR[ DIR]" 7907func_munge_path_list () 7908{ 7909 case x$2 in 7910 x) 7911 ;; 7912 *:) 7913 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7914 ;; 7915 x:*) 7916 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7917 ;; 7918 *::*) 7919 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7920 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7921 ;; 7922 *) 7923 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7924 ;; 7925 esac 7926} 7927 7928ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7929" 7930if test "x$ac_cv_header_dlfcn_h" = xyes 7931then : 7932 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 7933 7934fi 7935 7936 7937 7938 7939 7940# Set options 7941 7942 7943 7944 enable_dlopen=no 7945 7946 7947 enable_win32_dll=no 7948 7949 7950 # Check whether --enable-shared was given. 7951if test ${enable_shared+y} 7952then : 7953 enableval=$enable_shared; p=${PACKAGE-default} 7954 case $enableval in 7955 yes) enable_shared=yes ;; 7956 no) enable_shared=no ;; 7957 *) 7958 enable_shared=no 7959 # Look at the argument we got. We use all the common list separators. 7960 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7961 for pkg in $enableval; do 7962 IFS=$lt_save_ifs 7963 if test "X$pkg" = "X$p"; then 7964 enable_shared=yes 7965 fi 7966 done 7967 IFS=$lt_save_ifs 7968 ;; 7969 esac 7970else $as_nop 7971 enable_shared=yes 7972fi 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 # Check whether --enable-static was given. 7983if test ${enable_static+y} 7984then : 7985 enableval=$enable_static; p=${PACKAGE-default} 7986 case $enableval in 7987 yes) enable_static=yes ;; 7988 no) enable_static=no ;; 7989 *) 7990 enable_static=no 7991 # Look at the argument we got. We use all the common list separators. 7992 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7993 for pkg in $enableval; do 7994 IFS=$lt_save_ifs 7995 if test "X$pkg" = "X$p"; then 7996 enable_static=yes 7997 fi 7998 done 7999 IFS=$lt_save_ifs 8000 ;; 8001 esac 8002else $as_nop 8003 enable_static=yes 8004fi 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015# Check whether --with-pic was given. 8016if test ${with_pic+y} 8017then : 8018 withval=$with_pic; lt_p=${PACKAGE-default} 8019 case $withval in 8020 yes|no) pic_mode=$withval ;; 8021 *) 8022 pic_mode=default 8023 # Look at the argument we got. We use all the common list separators. 8024 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8025 for lt_pkg in $withval; do 8026 IFS=$lt_save_ifs 8027 if test "X$lt_pkg" = "X$lt_p"; then 8028 pic_mode=yes 8029 fi 8030 done 8031 IFS=$lt_save_ifs 8032 ;; 8033 esac 8034else $as_nop 8035 pic_mode=default 8036fi 8037 8038 8039 8040 8041 8042 8043 8044 8045 # Check whether --enable-fast-install was given. 8046if test ${enable_fast_install+y} 8047then : 8048 enableval=$enable_fast_install; p=${PACKAGE-default} 8049 case $enableval in 8050 yes) enable_fast_install=yes ;; 8051 no) enable_fast_install=no ;; 8052 *) 8053 enable_fast_install=no 8054 # Look at the argument we got. We use all the common list separators. 8055 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8056 for pkg in $enableval; do 8057 IFS=$lt_save_ifs 8058 if test "X$pkg" = "X$p"; then 8059 enable_fast_install=yes 8060 fi 8061 done 8062 IFS=$lt_save_ifs 8063 ;; 8064 esac 8065else $as_nop 8066 enable_fast_install=yes 8067fi 8068 8069 8070 8071 8072 8073 8074 8075 8076 shared_archive_member_spec= 8077case $host,$enable_shared in 8078power*-*-aix[5-9]*,yes) 8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8080printf %s "checking which variant of shared library versioning to provide... " >&6; } 8081 8082# Check whether --with-aix-soname was given. 8083if test ${with_aix_soname+y} 8084then : 8085 withval=$with_aix_soname; case $withval in 8086 aix|svr4|both) 8087 ;; 8088 *) 8089 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8090 ;; 8091 esac 8092 lt_cv_with_aix_soname=$with_aix_soname 8093else $as_nop 8094 if test ${lt_cv_with_aix_soname+y} 8095then : 8096 printf %s "(cached) " >&6 8097else $as_nop 8098 lt_cv_with_aix_soname=aix 8099fi 8100 8101 with_aix_soname=$lt_cv_with_aix_soname 8102fi 8103 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8105printf "%s\n" "$with_aix_soname" >&6; } 8106 if test aix != "$with_aix_soname"; then 8107 # For the AIX way of multilib, we name the shared archive member 8108 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8109 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8110 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8111 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8112 if test 64 = "${OBJECT_MODE-32}"; then 8113 shared_archive_member_spec=shr_64 8114 else 8115 shared_archive_member_spec=shr 8116 fi 8117 fi 8118 ;; 8119*) 8120 with_aix_soname=aix 8121 ;; 8122esac 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133# This can be used to rebuild libtool when needed 8134LIBTOOL_DEPS=$ltmain 8135 8136# Always use our own libtool. 8137LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168test -z "$LN_S" && LN_S="ln -s" 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183if test -n "${ZSH_VERSION+set}"; then 8184 setopt NO_GLOB_SUBST 8185fi 8186 8187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8188printf %s "checking for objdir... " >&6; } 8189if test ${lt_cv_objdir+y} 8190then : 8191 printf %s "(cached) " >&6 8192else $as_nop 8193 rm -f .libs 2>/dev/null 8194mkdir .libs 2>/dev/null 8195if test -d .libs; then 8196 lt_cv_objdir=.libs 8197else 8198 # MS-DOS does not allow filenames that begin with a dot. 8199 lt_cv_objdir=_libs 8200fi 8201rmdir .libs 2>/dev/null 8202fi 8203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8204printf "%s\n" "$lt_cv_objdir" >&6; } 8205objdir=$lt_cv_objdir 8206 8207 8208 8209 8210 8211printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8212 8213 8214 8215 8216case $host_os in 8217aix3*) 8218 # AIX sometimes has problems with the GCC collect2 program. For some 8219 # reason, if we set the COLLECT_NAMES environment variable, the problems 8220 # vanish in a puff of smoke. 8221 if test set != "${COLLECT_NAMES+set}"; then 8222 COLLECT_NAMES= 8223 export COLLECT_NAMES 8224 fi 8225 ;; 8226esac 8227 8228# Global variables: 8229ofile=libtool 8230can_build_shared=yes 8231 8232# All known linkers require a '.a' archive for static linking (except MSVC, 8233# which needs '.lib'). 8234libext=a 8235 8236with_gnu_ld=$lt_cv_prog_gnu_ld 8237 8238old_CC=$CC 8239old_CFLAGS=$CFLAGS 8240 8241# Set sane defaults for various variables 8242test -z "$CC" && CC=cc 8243test -z "$LTCC" && LTCC=$CC 8244test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8245test -z "$LD" && LD=ld 8246test -z "$ac_objext" && ac_objext=o 8247 8248func_cc_basename $compiler 8249cc_basename=$func_cc_basename_result 8250 8251 8252# Only perform the check for file, if the check method requires it 8253test -z "$MAGIC_CMD" && MAGIC_CMD=file 8254case $deplibs_check_method in 8255file_magic*) 8256 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8258printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8259if test ${lt_cv_path_MAGIC_CMD+y} 8260then : 8261 printf %s "(cached) " >&6 8262else $as_nop 8263 case $MAGIC_CMD in 8264[\\/*] | ?:[\\/]*) 8265 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8266 ;; 8267*) 8268 lt_save_MAGIC_CMD=$MAGIC_CMD 8269 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8271 for ac_dir in $ac_dummy; do 8272 IFS=$lt_save_ifs 8273 test -z "$ac_dir" && ac_dir=. 8274 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8275 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8276 if test -n "$file_magic_test_file"; then 8277 case $deplibs_check_method in 8278 "file_magic "*) 8279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8280 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8282 $EGREP "$file_magic_regex" > /dev/null; then 8283 : 8284 else 8285 cat <<_LT_EOF 1>&2 8286 8287*** Warning: the command libtool uses to detect shared libraries, 8288*** $file_magic_cmd, produces output that libtool cannot recognize. 8289*** The result is that libtool may fail to recognize shared libraries 8290*** as such. This will affect the creation of libtool libraries that 8291*** depend on shared libraries, but programs linked with such libtool 8292*** libraries will work regardless of this problem. Nevertheless, you 8293*** may want to report the problem to your system manager and/or to 8294*** bug-libtool@gnu.org 8295 8296_LT_EOF 8297 fi ;; 8298 esac 8299 fi 8300 break 8301 fi 8302 done 8303 IFS=$lt_save_ifs 8304 MAGIC_CMD=$lt_save_MAGIC_CMD 8305 ;; 8306esac 8307fi 8308 8309MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8310if test -n "$MAGIC_CMD"; then 8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8312printf "%s\n" "$MAGIC_CMD" >&6; } 8313else 8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8315printf "%s\n" "no" >&6; } 8316fi 8317 8318 8319 8320 8321 8322if test -z "$lt_cv_path_MAGIC_CMD"; then 8323 if test -n "$ac_tool_prefix"; then 8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8325printf %s "checking for file... " >&6; } 8326if test ${lt_cv_path_MAGIC_CMD+y} 8327then : 8328 printf %s "(cached) " >&6 8329else $as_nop 8330 case $MAGIC_CMD in 8331[\\/*] | ?:[\\/]*) 8332 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8333 ;; 8334*) 8335 lt_save_MAGIC_CMD=$MAGIC_CMD 8336 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8337 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8338 for ac_dir in $ac_dummy; do 8339 IFS=$lt_save_ifs 8340 test -z "$ac_dir" && ac_dir=. 8341 if test -f "$ac_dir/file"; then 8342 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8343 if test -n "$file_magic_test_file"; then 8344 case $deplibs_check_method in 8345 "file_magic "*) 8346 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8347 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8348 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8349 $EGREP "$file_magic_regex" > /dev/null; then 8350 : 8351 else 8352 cat <<_LT_EOF 1>&2 8353 8354*** Warning: the command libtool uses to detect shared libraries, 8355*** $file_magic_cmd, produces output that libtool cannot recognize. 8356*** The result is that libtool may fail to recognize shared libraries 8357*** as such. This will affect the creation of libtool libraries that 8358*** depend on shared libraries, but programs linked with such libtool 8359*** libraries will work regardless of this problem. Nevertheless, you 8360*** may want to report the problem to your system manager and/or to 8361*** bug-libtool@gnu.org 8362 8363_LT_EOF 8364 fi ;; 8365 esac 8366 fi 8367 break 8368 fi 8369 done 8370 IFS=$lt_save_ifs 8371 MAGIC_CMD=$lt_save_MAGIC_CMD 8372 ;; 8373esac 8374fi 8375 8376MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8377if test -n "$MAGIC_CMD"; then 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8379printf "%s\n" "$MAGIC_CMD" >&6; } 8380else 8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8382printf "%s\n" "no" >&6; } 8383fi 8384 8385 8386 else 8387 MAGIC_CMD=: 8388 fi 8389fi 8390 8391 fi 8392 ;; 8393esac 8394 8395# Use C for the default configuration in the libtool script 8396 8397lt_save_CC=$CC 8398ac_ext=c 8399ac_cpp='$CPP $CPPFLAGS' 8400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8402ac_compiler_gnu=$ac_cv_c_compiler_gnu 8403 8404 8405# Source file extension for C test sources. 8406ac_ext=c 8407 8408# Object file extension for compiled C test sources. 8409objext=o 8410objext=$objext 8411 8412# Code to be used in simple compile tests 8413lt_simple_compile_test_code="int some_variable = 0;" 8414 8415# Code to be used in simple link tests 8416lt_simple_link_test_code='int main(){return(0);}' 8417 8418 8419 8420 8421 8422 8423 8424# If no C compiler was specified, use CC. 8425LTCC=${LTCC-"$CC"} 8426 8427# If no C compiler flags were specified, use CFLAGS. 8428LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8429 8430# Allow CC to be a program name with arguments. 8431compiler=$CC 8432 8433# Save the default compiler, since it gets overwritten when the other 8434# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8435compiler_DEFAULT=$CC 8436 8437# save warnings/boilerplate of simple test code 8438ac_outfile=conftest.$ac_objext 8439echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8440eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8441_lt_compiler_boilerplate=`cat conftest.err` 8442$RM conftest* 8443 8444ac_outfile=conftest.$ac_objext 8445echo "$lt_simple_link_test_code" >conftest.$ac_ext 8446eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8447_lt_linker_boilerplate=`cat conftest.err` 8448$RM -r conftest* 8449 8450 8451## CAVEAT EMPTOR: 8452## There is no encapsulation within the following macros, do not change 8453## the running order or otherwise move them around unless you know exactly 8454## what you are doing... 8455if test -n "$compiler"; then 8456 8457lt_prog_compiler_no_builtin_flag= 8458 8459if test yes = "$GCC"; then 8460 case $cc_basename in 8461 nvcc*) 8462 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8463 *) 8464 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8465 esac 8466 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8468printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8469if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8470then : 8471 printf %s "(cached) " >&6 8472else $as_nop 8473 lt_cv_prog_compiler_rtti_exceptions=no 8474 ac_outfile=conftest.$ac_objext 8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8476 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8477 # Insert the option either (1) after the last *FLAGS variable, or 8478 # (2) before a word containing "conftest.", or (3) at the end. 8479 # Note that $ac_compile itself does not contain backslashes and begins 8480 # with a dollar sign (not a hyphen), so the echo should work correctly. 8481 # The option is referenced via a variable to avoid confusing sed. 8482 lt_compile=`echo "$ac_compile" | $SED \ 8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8485 -e 's:$: $lt_compiler_flag:'` 8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8487 (eval "$lt_compile" 2>conftest.err) 8488 ac_status=$? 8489 cat conftest.err >&5 8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8491 if (exit $ac_status) && test -s "$ac_outfile"; then 8492 # The compiler can only warn and ignore the option if not recognized 8493 # So say no if there are warnings other than the usual output. 8494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8497 lt_cv_prog_compiler_rtti_exceptions=yes 8498 fi 8499 fi 8500 $RM conftest* 8501 8502fi 8503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8504printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8505 8506if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8507 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8508else 8509 : 8510fi 8511 8512fi 8513 8514 8515 8516 8517 8518 8519 lt_prog_compiler_wl= 8520lt_prog_compiler_pic= 8521lt_prog_compiler_static= 8522 8523 8524 if test yes = "$GCC"; then 8525 lt_prog_compiler_wl='-Wl,' 8526 lt_prog_compiler_static='-static' 8527 8528 case $host_os in 8529 aix*) 8530 # All AIX code is PIC. 8531 if test ia64 = "$host_cpu"; then 8532 # AIX 5 now supports IA64 processor 8533 lt_prog_compiler_static='-Bstatic' 8534 fi 8535 lt_prog_compiler_pic='-fPIC' 8536 ;; 8537 8538 amigaos*) 8539 case $host_cpu in 8540 powerpc) 8541 # see comment about AmigaOS4 .so support 8542 lt_prog_compiler_pic='-fPIC' 8543 ;; 8544 m68k) 8545 # FIXME: we need at least 68020 code to build shared libraries, but 8546 # adding the '-m68020' flag to GCC prevents building anything better, 8547 # like '-m68040'. 8548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8549 ;; 8550 esac 8551 ;; 8552 8553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8554 # PIC is the default for these OSes. 8555 ;; 8556 8557 mingw* | cygwin* | pw32* | os2* | cegcc*) 8558 # This hack is so that the source file can tell whether it is being 8559 # built for inclusion in a dll (and should export symbols for example). 8560 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8561 # (--disable-auto-import) libraries 8562 lt_prog_compiler_pic='-DDLL_EXPORT' 8563 case $host_os in 8564 os2*) 8565 lt_prog_compiler_static='$wl-static' 8566 ;; 8567 esac 8568 ;; 8569 8570 darwin* | rhapsody*) 8571 # PIC is the default on this platform 8572 # Common symbols not allowed in MH_DYLIB files 8573 lt_prog_compiler_pic='-fno-common' 8574 ;; 8575 8576 haiku*) 8577 # PIC is the default for Haiku. 8578 # The "-static" flag exists, but is broken. 8579 lt_prog_compiler_static= 8580 ;; 8581 8582 hpux*) 8583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8585 # sets the default TLS model and affects inlining. 8586 case $host_cpu in 8587 hppa*64*) 8588 # +Z the default 8589 ;; 8590 *) 8591 lt_prog_compiler_pic='-fPIC' 8592 ;; 8593 esac 8594 ;; 8595 8596 interix[3-9]*) 8597 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8598 # Instead, we relocate shared libraries at runtime. 8599 ;; 8600 8601 msdosdjgpp*) 8602 # Just because we use GCC doesn't mean we suddenly get shared libraries 8603 # on systems that don't support them. 8604 lt_prog_compiler_can_build_shared=no 8605 enable_shared=no 8606 ;; 8607 8608 *nto* | *qnx*) 8609 # QNX uses GNU C++, but need to define -shared option too, otherwise 8610 # it will coredump. 8611 lt_prog_compiler_pic='-fPIC -shared' 8612 ;; 8613 8614 sysv4*MP*) 8615 if test -d /usr/nec; then 8616 lt_prog_compiler_pic=-Kconform_pic 8617 fi 8618 ;; 8619 8620 *) 8621 lt_prog_compiler_pic='-fPIC' 8622 ;; 8623 esac 8624 8625 case $cc_basename in 8626 nvcc*) # Cuda Compiler Driver 2.2 8627 lt_prog_compiler_wl='-Xlinker ' 8628 if test -n "$lt_prog_compiler_pic"; then 8629 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8630 fi 8631 ;; 8632 esac 8633 else 8634 # PORTME Check for flag to pass linker flags through the system compiler. 8635 case $host_os in 8636 aix*) 8637 lt_prog_compiler_wl='-Wl,' 8638 if test ia64 = "$host_cpu"; then 8639 # AIX 5 now supports IA64 processor 8640 lt_prog_compiler_static='-Bstatic' 8641 else 8642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8643 fi 8644 ;; 8645 8646 darwin* | rhapsody*) 8647 # PIC is the default on this platform 8648 # Common symbols not allowed in MH_DYLIB files 8649 lt_prog_compiler_pic='-fno-common' 8650 case $cc_basename in 8651 nagfor*) 8652 # NAG Fortran compiler 8653 lt_prog_compiler_wl='-Wl,-Wl,,' 8654 lt_prog_compiler_pic='-PIC' 8655 lt_prog_compiler_static='-Bstatic' 8656 ;; 8657 esac 8658 ;; 8659 8660 mingw* | cygwin* | pw32* | os2* | cegcc*) 8661 # This hack is so that the source file can tell whether it is being 8662 # built for inclusion in a dll (and should export symbols for example). 8663 lt_prog_compiler_pic='-DDLL_EXPORT' 8664 case $host_os in 8665 os2*) 8666 lt_prog_compiler_static='$wl-static' 8667 ;; 8668 esac 8669 ;; 8670 8671 hpux9* | hpux10* | hpux11*) 8672 lt_prog_compiler_wl='-Wl,' 8673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8674 # not for PA HP-UX. 8675 case $host_cpu in 8676 hppa*64*|ia64*) 8677 # +Z the default 8678 ;; 8679 *) 8680 lt_prog_compiler_pic='+Z' 8681 ;; 8682 esac 8683 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8684 lt_prog_compiler_static='$wl-a ${wl}archive' 8685 ;; 8686 8687 irix5* | irix6* | nonstopux*) 8688 lt_prog_compiler_wl='-Wl,' 8689 # PIC (with -KPIC) is the default. 8690 lt_prog_compiler_static='-non_shared' 8691 ;; 8692 8693 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8694 case $cc_basename in 8695 # old Intel for x86_64, which still supported -KPIC. 8696 ecc*) 8697 lt_prog_compiler_wl='-Wl,' 8698 lt_prog_compiler_pic='-KPIC' 8699 lt_prog_compiler_static='-static' 8700 ;; 8701 # flang / f18. f95 an alias for gfortran or flang on Debian 8702 flang* | f18* | f95*) 8703 lt_prog_compiler_wl='-Wl,' 8704 lt_prog_compiler_pic='-fPIC' 8705 lt_prog_compiler_static='-static' 8706 ;; 8707 # icc used to be incompatible with GCC. 8708 # ICC 10 doesn't accept -KPIC any more. 8709 icc* | ifort*) 8710 lt_prog_compiler_wl='-Wl,' 8711 lt_prog_compiler_pic='-fPIC' 8712 lt_prog_compiler_static='-static' 8713 ;; 8714 # Lahey Fortran 8.1. 8715 lf95*) 8716 lt_prog_compiler_wl='-Wl,' 8717 lt_prog_compiler_pic='--shared' 8718 lt_prog_compiler_static='--static' 8719 ;; 8720 nagfor*) 8721 # NAG Fortran compiler 8722 lt_prog_compiler_wl='-Wl,-Wl,,' 8723 lt_prog_compiler_pic='-PIC' 8724 lt_prog_compiler_static='-Bstatic' 8725 ;; 8726 tcc*) 8727 # Fabrice Bellard et al's Tiny C Compiler 8728 lt_prog_compiler_wl='-Wl,' 8729 lt_prog_compiler_pic='-fPIC' 8730 lt_prog_compiler_static='-static' 8731 ;; 8732 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8733 # Portland Group compilers (*not* the Pentium gcc compiler, 8734 # which looks to be a dead project) 8735 lt_prog_compiler_wl='-Wl,' 8736 lt_prog_compiler_pic='-fpic' 8737 lt_prog_compiler_static='-Bstatic' 8738 ;; 8739 ccc*) 8740 lt_prog_compiler_wl='-Wl,' 8741 # All Alpha code is PIC. 8742 lt_prog_compiler_static='-non_shared' 8743 ;; 8744 xl* | bgxl* | bgf* | mpixl*) 8745 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8746 lt_prog_compiler_wl='-Wl,' 8747 lt_prog_compiler_pic='-qpic' 8748 lt_prog_compiler_static='-qstaticlink' 8749 ;; 8750 *) 8751 case `$CC -V 2>&1 | sed 5q` in 8752 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8753 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8754 lt_prog_compiler_pic='-KPIC' 8755 lt_prog_compiler_static='-Bstatic' 8756 lt_prog_compiler_wl='' 8757 ;; 8758 *Sun\ F* | *Sun*Fortran*) 8759 lt_prog_compiler_pic='-KPIC' 8760 lt_prog_compiler_static='-Bstatic' 8761 lt_prog_compiler_wl='-Qoption ld ' 8762 ;; 8763 *Sun\ C*) 8764 # Sun C 5.9 8765 lt_prog_compiler_pic='-KPIC' 8766 lt_prog_compiler_static='-Bstatic' 8767 lt_prog_compiler_wl='-Wl,' 8768 ;; 8769 *Intel*\ [CF]*Compiler*) 8770 lt_prog_compiler_wl='-Wl,' 8771 lt_prog_compiler_pic='-fPIC' 8772 lt_prog_compiler_static='-static' 8773 ;; 8774 *Portland\ Group*) 8775 lt_prog_compiler_wl='-Wl,' 8776 lt_prog_compiler_pic='-fpic' 8777 lt_prog_compiler_static='-Bstatic' 8778 ;; 8779 esac 8780 ;; 8781 esac 8782 ;; 8783 8784 newsos6) 8785 lt_prog_compiler_pic='-KPIC' 8786 lt_prog_compiler_static='-Bstatic' 8787 ;; 8788 8789 *nto* | *qnx*) 8790 # QNX uses GNU C++, but need to define -shared option too, otherwise 8791 # it will coredump. 8792 lt_prog_compiler_pic='-fPIC -shared' 8793 ;; 8794 8795 osf3* | osf4* | osf5*) 8796 lt_prog_compiler_wl='-Wl,' 8797 # All OSF/1 code is PIC. 8798 lt_prog_compiler_static='-non_shared' 8799 ;; 8800 8801 rdos*) 8802 lt_prog_compiler_static='-non_shared' 8803 ;; 8804 8805 solaris*) 8806 lt_prog_compiler_pic='-KPIC' 8807 lt_prog_compiler_static='-Bstatic' 8808 case $cc_basename in 8809 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8810 lt_prog_compiler_wl='-Qoption ld ';; 8811 *) 8812 lt_prog_compiler_wl='-Wl,';; 8813 esac 8814 ;; 8815 8816 sunos4*) 8817 lt_prog_compiler_wl='-Qoption ld ' 8818 lt_prog_compiler_pic='-PIC' 8819 lt_prog_compiler_static='-Bstatic' 8820 ;; 8821 8822 sysv4 | sysv4.2uw2* | sysv4.3*) 8823 lt_prog_compiler_wl='-Wl,' 8824 lt_prog_compiler_pic='-KPIC' 8825 lt_prog_compiler_static='-Bstatic' 8826 ;; 8827 8828 sysv4*MP*) 8829 if test -d /usr/nec; then 8830 lt_prog_compiler_pic='-Kconform_pic' 8831 lt_prog_compiler_static='-Bstatic' 8832 fi 8833 ;; 8834 8835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8836 lt_prog_compiler_wl='-Wl,' 8837 lt_prog_compiler_pic='-KPIC' 8838 lt_prog_compiler_static='-Bstatic' 8839 ;; 8840 8841 unicos*) 8842 lt_prog_compiler_wl='-Wl,' 8843 lt_prog_compiler_can_build_shared=no 8844 ;; 8845 8846 uts4*) 8847 lt_prog_compiler_pic='-pic' 8848 lt_prog_compiler_static='-Bstatic' 8849 ;; 8850 8851 *) 8852 lt_prog_compiler_can_build_shared=no 8853 ;; 8854 esac 8855 fi 8856 8857case $host_os in 8858 # For platforms that do not support PIC, -DPIC is meaningless: 8859 *djgpp*) 8860 lt_prog_compiler_pic= 8861 ;; 8862 *) 8863 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8864 ;; 8865esac 8866 8867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8868printf %s "checking for $compiler option to produce PIC... " >&6; } 8869if test ${lt_cv_prog_compiler_pic+y} 8870then : 8871 printf %s "(cached) " >&6 8872else $as_nop 8873 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8874fi 8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8876printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 8877lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8878 8879# 8880# Check to make sure the PIC flag actually works. 8881# 8882if test -n "$lt_prog_compiler_pic"; then 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8884printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8885if test ${lt_cv_prog_compiler_pic_works+y} 8886then : 8887 printf %s "(cached) " >&6 8888else $as_nop 8889 lt_cv_prog_compiler_pic_works=no 8890 ac_outfile=conftest.$ac_objext 8891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8893 # Insert the option either (1) after the last *FLAGS variable, or 8894 # (2) before a word containing "conftest.", or (3) at the end. 8895 # Note that $ac_compile itself does not contain backslashes and begins 8896 # with a dollar sign (not a hyphen), so the echo should work correctly. 8897 # The option is referenced via a variable to avoid confusing sed. 8898 lt_compile=`echo "$ac_compile" | $SED \ 8899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8901 -e 's:$: $lt_compiler_flag:'` 8902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8903 (eval "$lt_compile" 2>conftest.err) 8904 ac_status=$? 8905 cat conftest.err >&5 8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8907 if (exit $ac_status) && test -s "$ac_outfile"; then 8908 # The compiler can only warn and ignore the option if not recognized 8909 # So say no if there are warnings other than the usual output. 8910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8913 lt_cv_prog_compiler_pic_works=yes 8914 fi 8915 fi 8916 $RM conftest* 8917 8918fi 8919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8920printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 8921 8922if test yes = "$lt_cv_prog_compiler_pic_works"; then 8923 case $lt_prog_compiler_pic in 8924 "" | " "*) ;; 8925 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8926 esac 8927else 8928 lt_prog_compiler_pic= 8929 lt_prog_compiler_can_build_shared=no 8930fi 8931 8932fi 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944# 8945# Check to make sure the static flag actually works. 8946# 8947wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8949printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8950if test ${lt_cv_prog_compiler_static_works+y} 8951then : 8952 printf %s "(cached) " >&6 8953else $as_nop 8954 lt_cv_prog_compiler_static_works=no 8955 save_LDFLAGS=$LDFLAGS 8956 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8957 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8959 # The linker can only warn and ignore the option if not recognized 8960 # So say no if there are warnings 8961 if test -s conftest.err; then 8962 # Append any errors to the config.log. 8963 cat conftest.err 1>&5 8964 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8966 if diff conftest.exp conftest.er2 >/dev/null; then 8967 lt_cv_prog_compiler_static_works=yes 8968 fi 8969 else 8970 lt_cv_prog_compiler_static_works=yes 8971 fi 8972 fi 8973 $RM -r conftest* 8974 LDFLAGS=$save_LDFLAGS 8975 8976fi 8977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8978printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 8979 8980if test yes = "$lt_cv_prog_compiler_static_works"; then 8981 : 8982else 8983 lt_prog_compiler_static= 8984fi 8985 8986 8987 8988 8989 8990 8991 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8993printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8994if test ${lt_cv_prog_compiler_c_o+y} 8995then : 8996 printf %s "(cached) " >&6 8997else $as_nop 8998 lt_cv_prog_compiler_c_o=no 8999 $RM -r conftest 2>/dev/null 9000 mkdir conftest 9001 cd conftest 9002 mkdir out 9003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9004 9005 lt_compiler_flag="-o out/conftest2.$ac_objext" 9006 # Insert the option either (1) after the last *FLAGS variable, or 9007 # (2) before a word containing "conftest.", or (3) at the end. 9008 # Note that $ac_compile itself does not contain backslashes and begins 9009 # with a dollar sign (not a hyphen), so the echo should work correctly. 9010 lt_compile=`echo "$ac_compile" | $SED \ 9011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9013 -e 's:$: $lt_compiler_flag:'` 9014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9015 (eval "$lt_compile" 2>out/conftest.err) 9016 ac_status=$? 9017 cat out/conftest.err >&5 9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9019 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9020 then 9021 # The compiler can only warn and ignore the option if not recognized 9022 # So say no if there are warnings 9023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9026 lt_cv_prog_compiler_c_o=yes 9027 fi 9028 fi 9029 chmod u+w . 2>&5 9030 $RM conftest* 9031 # SGI C++ compiler will create directory out/ii_files/ for 9032 # template instantiation 9033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9034 $RM out/* && rmdir out 9035 cd .. 9036 $RM -r conftest 9037 $RM conftest* 9038 9039fi 9040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9041printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9042 9043 9044 9045 9046 9047 9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9049printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9050if test ${lt_cv_prog_compiler_c_o+y} 9051then : 9052 printf %s "(cached) " >&6 9053else $as_nop 9054 lt_cv_prog_compiler_c_o=no 9055 $RM -r conftest 2>/dev/null 9056 mkdir conftest 9057 cd conftest 9058 mkdir out 9059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9060 9061 lt_compiler_flag="-o out/conftest2.$ac_objext" 9062 # Insert the option either (1) after the last *FLAGS variable, or 9063 # (2) before a word containing "conftest.", or (3) at the end. 9064 # Note that $ac_compile itself does not contain backslashes and begins 9065 # with a dollar sign (not a hyphen), so the echo should work correctly. 9066 lt_compile=`echo "$ac_compile" | $SED \ 9067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9069 -e 's:$: $lt_compiler_flag:'` 9070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9071 (eval "$lt_compile" 2>out/conftest.err) 9072 ac_status=$? 9073 cat out/conftest.err >&5 9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9075 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9076 then 9077 # The compiler can only warn and ignore the option if not recognized 9078 # So say no if there are warnings 9079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9080 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9081 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9082 lt_cv_prog_compiler_c_o=yes 9083 fi 9084 fi 9085 chmod u+w . 2>&5 9086 $RM conftest* 9087 # SGI C++ compiler will create directory out/ii_files/ for 9088 # template instantiation 9089 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9090 $RM out/* && rmdir out 9091 cd .. 9092 $RM -r conftest 9093 $RM conftest* 9094 9095fi 9096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9097printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9098 9099 9100 9101 9102hard_links=nottested 9103if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9104 # do not overwrite the value of need_locks provided by the user 9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9106printf %s "checking if we can lock with hard links... " >&6; } 9107 hard_links=yes 9108 $RM conftest* 9109 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9110 touch conftest.a 9111 ln conftest.a conftest.b 2>&5 || hard_links=no 9112 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9114printf "%s\n" "$hard_links" >&6; } 9115 if test no = "$hard_links"; then 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9117printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9118 need_locks=warn 9119 fi 9120else 9121 need_locks=no 9122fi 9123 9124 9125 9126 9127 9128 9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9130printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9131 9132 runpath_var= 9133 allow_undefined_flag= 9134 always_export_symbols=no 9135 archive_cmds= 9136 archive_expsym_cmds= 9137 compiler_needs_object=no 9138 enable_shared_with_static_runtimes=no 9139 export_dynamic_flag_spec= 9140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9141 hardcode_automatic=no 9142 hardcode_direct=no 9143 hardcode_direct_absolute=no 9144 hardcode_libdir_flag_spec= 9145 hardcode_libdir_separator= 9146 hardcode_minus_L=no 9147 hardcode_shlibpath_var=unsupported 9148 inherit_rpath=no 9149 link_all_deplibs=unknown 9150 module_cmds= 9151 module_expsym_cmds= 9152 old_archive_from_new_cmds= 9153 old_archive_from_expsyms_cmds= 9154 thread_safe_flag_spec= 9155 whole_archive_flag_spec= 9156 # include_expsyms should be a list of space-separated symbols to be *always* 9157 # included in the symbol list 9158 include_expsyms= 9159 # exclude_expsyms can be an extended regexp of symbols to exclude 9160 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9161 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9162 # as well as any symbol that contains 'd'. 9163 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9164 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9165 # platforms (ab)use it in PIC code, but their linkers get confused if 9166 # the symbol is explicitly referenced. Since portable code cannot 9167 # rely on this symbol name, it's probably fine to never include it in 9168 # preloaded symbol tables. 9169 # Exclude shared library initialization/finalization symbols. 9170 extract_expsyms_cmds= 9171 9172 case $host_os in 9173 cygwin* | mingw* | pw32* | cegcc*) 9174 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9175 # When not using gcc, we currently assume that we are using 9176 # Microsoft Visual C++. 9177 if test yes != "$GCC"; then 9178 with_gnu_ld=no 9179 fi 9180 ;; 9181 interix*) 9182 # we just hope/assume this is gcc and not c89 (= MSVC++) 9183 with_gnu_ld=yes 9184 ;; 9185 openbsd* | bitrig*) 9186 with_gnu_ld=no 9187 ;; 9188 linux* | k*bsd*-gnu | gnu*) 9189 link_all_deplibs=no 9190 ;; 9191 esac 9192 9193 ld_shlibs=yes 9194 9195 # On some targets, GNU ld is compatible enough with the native linker 9196 # that we're better off using the native interface for both. 9197 lt_use_gnu_ld_interface=no 9198 if test yes = "$with_gnu_ld"; then 9199 case $host_os in 9200 aix*) 9201 # The AIX port of GNU ld has always aspired to compatibility 9202 # with the native linker. However, as the warning in the GNU ld 9203 # block says, versions before 2.19.5* couldn't really create working 9204 # shared libraries, regardless of the interface used. 9205 case `$LD -v 2>&1` in 9206 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9207 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9208 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9209 *) 9210 lt_use_gnu_ld_interface=yes 9211 ;; 9212 esac 9213 ;; 9214 *) 9215 lt_use_gnu_ld_interface=yes 9216 ;; 9217 esac 9218 fi 9219 9220 if test yes = "$lt_use_gnu_ld_interface"; then 9221 # If archive_cmds runs LD, not CC, wlarc should be empty 9222 wlarc='$wl' 9223 9224 # Set some defaults for GNU ld with shared library support. These 9225 # are reset later if shared libraries are not supported. Putting them 9226 # here allows them to be overridden if necessary. 9227 runpath_var=LD_RUN_PATH 9228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9229 export_dynamic_flag_spec='$wl--export-dynamic' 9230 # ancient GNU ld didn't support --whole-archive et. al. 9231 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9232 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9233 else 9234 whole_archive_flag_spec= 9235 fi 9236 supports_anon_versioning=no 9237 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9238 *GNU\ gold*) supports_anon_versioning=yes ;; 9239 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9240 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9241 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9242 *\ 2.11.*) ;; # other 2.11 versions 9243 *) supports_anon_versioning=yes ;; 9244 esac 9245 9246 # See if GNU ld supports shared libraries. 9247 case $host_os in 9248 aix[3-9]*) 9249 # On AIX/PPC, the GNU linker is very broken 9250 if test ia64 != "$host_cpu"; then 9251 ld_shlibs=no 9252 cat <<_LT_EOF 1>&2 9253 9254*** Warning: the GNU linker, at least up to release 2.19, is reported 9255*** to be unable to reliably create shared libraries on AIX. 9256*** Therefore, libtool is disabling shared libraries support. If you 9257*** really care for shared libraries, you may want to install binutils 9258*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9259*** You will then need to restart the configuration process. 9260 9261_LT_EOF 9262 fi 9263 ;; 9264 9265 amigaos*) 9266 case $host_cpu in 9267 powerpc) 9268 # see comment about AmigaOS4 .so support 9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9270 archive_expsym_cmds='' 9271 ;; 9272 m68k) 9273 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)' 9274 hardcode_libdir_flag_spec='-L$libdir' 9275 hardcode_minus_L=yes 9276 ;; 9277 esac 9278 ;; 9279 9280 beos*) 9281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9282 allow_undefined_flag=unsupported 9283 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9284 # support --undefined. This deserves some investigation. FIXME 9285 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9286 else 9287 ld_shlibs=no 9288 fi 9289 ;; 9290 9291 cygwin* | mingw* | pw32* | cegcc*) 9292 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9293 # as there is no search path for DLLs. 9294 hardcode_libdir_flag_spec='-L$libdir' 9295 export_dynamic_flag_spec='$wl--export-all-symbols' 9296 allow_undefined_flag=unsupported 9297 always_export_symbols=no 9298 enable_shared_with_static_runtimes=yes 9299 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' 9300 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9301 9302 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9304 # If the export-symbols file already is a .def file, use it as 9305 # is; otherwise, prepend EXPORTS... 9306 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9307 cp $export_symbols $output_objdir/$soname.def; 9308 else 9309 echo EXPORTS > $output_objdir/$soname.def; 9310 cat $export_symbols >> $output_objdir/$soname.def; 9311 fi~ 9312 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9313 else 9314 ld_shlibs=no 9315 fi 9316 ;; 9317 9318 haiku*) 9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9320 link_all_deplibs=yes 9321 ;; 9322 9323 os2*) 9324 hardcode_libdir_flag_spec='-L$libdir' 9325 hardcode_minus_L=yes 9326 allow_undefined_flag=unsupported 9327 shrext_cmds=.dll 9328 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9329 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9330 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9331 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9332 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9333 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9334 emximp -o $lib $output_objdir/$libname.def' 9335 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9336 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9337 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9338 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9339 prefix_cmds="$SED"~ 9340 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9341 prefix_cmds="$prefix_cmds -e 1d"; 9342 fi~ 9343 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9344 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9345 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9346 emximp -o $lib $output_objdir/$libname.def' 9347 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9348 enable_shared_with_static_runtimes=yes 9349 ;; 9350 9351 interix[3-9]*) 9352 hardcode_direct=no 9353 hardcode_shlibpath_var=no 9354 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9355 export_dynamic_flag_spec='$wl-E' 9356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9357 # Instead, shared libraries are loaded at an image base (0x10000000 by 9358 # default) and relocated if they conflict, which is a slow very memory 9359 # consuming and fragmenting process. To avoid this, we pick a random, 9360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9361 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9363 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' 9364 ;; 9365 9366 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9367 tmp_diet=no 9368 if test linux-dietlibc = "$host_os"; then 9369 case $cc_basename in 9370 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9371 esac 9372 fi 9373 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9374 && test no = "$tmp_diet" 9375 then 9376 tmp_addflag=' $pic_flag' 9377 tmp_sharedflag='-shared' 9378 case $cc_basename,$host_cpu in 9379 pgcc*) # Portland Group C compiler 9380 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' 9381 tmp_addflag=' $pic_flag' 9382 ;; 9383 pgf77* | pgf90* | pgf95* | pgfortran*) 9384 # Portland Group f77 and f90 compilers 9385 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' 9386 tmp_addflag=' $pic_flag -Mnomain' ;; 9387 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9388 tmp_addflag=' -i_dynamic' ;; 9389 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9390 tmp_addflag=' -i_dynamic -nofor_main' ;; 9391 ifc* | ifort*) # Intel Fortran compiler 9392 tmp_addflag=' -nofor_main' ;; 9393 lf95*) # Lahey Fortran 8.1 9394 whole_archive_flag_spec= 9395 tmp_sharedflag='--shared' ;; 9396 nagfor*) # NAGFOR 5.3 9397 tmp_sharedflag='-Wl,-shared' ;; 9398 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9399 tmp_sharedflag='-qmkshrobj' 9400 tmp_addflag= ;; 9401 nvcc*) # Cuda Compiler Driver 2.2 9402 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' 9403 compiler_needs_object=yes 9404 ;; 9405 esac 9406 case `$CC -V 2>&1 | sed 5q` in 9407 *Sun\ C*) # Sun C 5.9 9408 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' 9409 compiler_needs_object=yes 9410 tmp_sharedflag='-G' ;; 9411 *Sun\ F*) # Sun Fortran 8.3 9412 tmp_sharedflag='-G' ;; 9413 esac 9414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9415 9416 if test yes = "$supports_anon_versioning"; then 9417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9419 echo "local: *; };" >> $output_objdir/$libname.ver~ 9420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9421 fi 9422 9423 case $cc_basename in 9424 tcc*) 9425 export_dynamic_flag_spec='-rdynamic' 9426 ;; 9427 xlf* | bgf* | bgxlf* | mpixlf*) 9428 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9429 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9431 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9432 if test yes = "$supports_anon_versioning"; then 9433 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9435 echo "local: *; };" >> $output_objdir/$libname.ver~ 9436 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9437 fi 9438 ;; 9439 esac 9440 else 9441 ld_shlibs=no 9442 fi 9443 ;; 9444 9445 netbsd* | netbsdelf*-gnu) 9446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9447 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9448 wlarc= 9449 else 9450 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9451 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9452 fi 9453 ;; 9454 9455 solaris*) 9456 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9457 ld_shlibs=no 9458 cat <<_LT_EOF 1>&2 9459 9460*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9461*** create shared libraries on Solaris systems. Therefore, libtool 9462*** is disabling shared libraries support. We urge you to upgrade GNU 9463*** binutils to release 2.9.1 or newer. Another option is to modify 9464*** your PATH or compiler configuration so that the native linker is 9465*** used, and then restart. 9466 9467_LT_EOF 9468 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9470 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9471 else 9472 ld_shlibs=no 9473 fi 9474 ;; 9475 9476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9477 case `$LD -v 2>&1` in 9478 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9479 ld_shlibs=no 9480 cat <<_LT_EOF 1>&2 9481 9482*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9483*** reliably create shared libraries on SCO systems. Therefore, libtool 9484*** is disabling shared libraries support. We urge you to upgrade GNU 9485*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9486*** your PATH or compiler configuration so that the native linker is 9487*** used, and then restart. 9488 9489_LT_EOF 9490 ;; 9491 *) 9492 # For security reasons, it is highly recommended that you always 9493 # use absolute paths for naming shared libraries, and exclude the 9494 # DT_RUNPATH tag from executables and libraries. But doing so 9495 # requires that you compile everything twice, which is a pain. 9496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9500 else 9501 ld_shlibs=no 9502 fi 9503 ;; 9504 esac 9505 ;; 9506 9507 sunos4*) 9508 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9509 wlarc= 9510 hardcode_direct=yes 9511 hardcode_shlibpath_var=no 9512 ;; 9513 9514 *) 9515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9516 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9517 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9518 else 9519 ld_shlibs=no 9520 fi 9521 ;; 9522 esac 9523 9524 if test no = "$ld_shlibs"; then 9525 runpath_var= 9526 hardcode_libdir_flag_spec= 9527 export_dynamic_flag_spec= 9528 whole_archive_flag_spec= 9529 fi 9530 else 9531 # PORTME fill in a description of your system's linker (not GNU ld) 9532 case $host_os in 9533 aix3*) 9534 allow_undefined_flag=unsupported 9535 always_export_symbols=yes 9536 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' 9537 # Note: this linker hardcodes the directories in LIBPATH if there 9538 # are no directories specified by -L. 9539 hardcode_minus_L=yes 9540 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9541 # Neither direct hardcoding nor static linking is supported with a 9542 # broken collect2. 9543 hardcode_direct=unsupported 9544 fi 9545 ;; 9546 9547 aix[4-9]*) 9548 if test ia64 = "$host_cpu"; then 9549 # On IA64, the linker does run time linking by default, so we don't 9550 # have to do anything special. 9551 aix_use_runtimelinking=no 9552 exp_sym_flag='-Bexport' 9553 no_entry_flag= 9554 else 9555 # If we're using GNU nm, then we don't want the "-C" option. 9556 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9557 # Without the "-l" option, or with the "-B" option, AIX nm treats 9558 # weak defined symbols like other global defined symbols, whereas 9559 # GNU nm marks them as "W". 9560 # While the 'weak' keyword is ignored in the Export File, we need 9561 # it in the Import File for the 'aix-soname' feature, so we have 9562 # to replace the "-B" option with "-P" for AIX nm. 9563 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9564 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' 9565 else 9566 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' 9567 fi 9568 aix_use_runtimelinking=no 9569 9570 # Test if we are trying to use run time linking or normal 9571 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9572 # have runtime linking enabled, and use it for executables. 9573 # For shared libraries, we enable/disable runtime linking 9574 # depending on the kind of the shared library created - 9575 # when "with_aix_soname,aix_use_runtimelinking" is: 9576 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9577 # "aix,yes" lib.so shared, rtl:yes, for executables 9578 # lib.a static archive 9579 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9580 # lib.a(lib.so.V) shared, rtl:no, for executables 9581 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9582 # lib.a(lib.so.V) shared, rtl:no 9583 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9584 # lib.a static archive 9585 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9586 for ld_flag in $LDFLAGS; do 9587 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9588 aix_use_runtimelinking=yes 9589 break 9590 fi 9591 done 9592 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9593 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9594 # so we don't have lib.a shared libs to link our executables. 9595 # We have to force runtime linking in this case. 9596 aix_use_runtimelinking=yes 9597 LDFLAGS="$LDFLAGS -Wl,-brtl" 9598 fi 9599 ;; 9600 esac 9601 9602 exp_sym_flag='-bexport' 9603 no_entry_flag='-bnoentry' 9604 fi 9605 9606 # When large executables or shared objects are built, AIX ld can 9607 # have problems creating the table of contents. If linking a library 9608 # or program results in "error TOC overflow" add -mminimal-toc to 9609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9611 9612 archive_cmds='' 9613 hardcode_direct=yes 9614 hardcode_direct_absolute=yes 9615 hardcode_libdir_separator=':' 9616 link_all_deplibs=yes 9617 file_list_spec='$wl-f,' 9618 case $with_aix_soname,$aix_use_runtimelinking in 9619 aix,*) ;; # traditional, no import file 9620 svr4,* | *,yes) # use import file 9621 # The Import File defines what to hardcode. 9622 hardcode_direct=no 9623 hardcode_direct_absolute=no 9624 ;; 9625 esac 9626 9627 if test yes = "$GCC"; then 9628 case $host_os in aix4.[012]|aix4.[012].*) 9629 # We only want to do this on AIX 4.2 and lower, the check 9630 # below for broken collect2 doesn't work under 4.3+ 9631 collect2name=`$CC -print-prog-name=collect2` 9632 if test -f "$collect2name" && 9633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9634 then 9635 # We have reworked collect2 9636 : 9637 else 9638 # We have old collect2 9639 hardcode_direct=unsupported 9640 # It fails to find uninstalled libraries when the uninstalled 9641 # path is not listed in the libpath. Setting hardcode_minus_L 9642 # to unsupported forces relinking 9643 hardcode_minus_L=yes 9644 hardcode_libdir_flag_spec='-L$libdir' 9645 hardcode_libdir_separator= 9646 fi 9647 ;; 9648 esac 9649 shared_flag='-shared' 9650 if test yes = "$aix_use_runtimelinking"; then 9651 shared_flag="$shared_flag "'$wl-G' 9652 fi 9653 # Need to ensure runtime linking is disabled for the traditional 9654 # shared library, or the linker may eventually find shared libraries 9655 # /with/ Import File - we do not want to mix them. 9656 shared_flag_aix='-shared' 9657 shared_flag_svr4='-shared $wl-G' 9658 else 9659 # not using gcc 9660 if test ia64 = "$host_cpu"; then 9661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9662 # chokes on -Wl,-G. The following line is correct: 9663 shared_flag='-G' 9664 else 9665 if test yes = "$aix_use_runtimelinking"; then 9666 shared_flag='$wl-G' 9667 else 9668 shared_flag='$wl-bM:SRE' 9669 fi 9670 shared_flag_aix='$wl-bM:SRE' 9671 shared_flag_svr4='$wl-G' 9672 fi 9673 fi 9674 9675 export_dynamic_flag_spec='$wl-bexpall' 9676 # It seems that -bexpall does not export symbols beginning with 9677 # underscore (_), so it is better to generate a list of symbols to export. 9678 always_export_symbols=yes 9679 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9680 # Warning - without using the other runtime loading flags (-brtl), 9681 # -berok will link without error, but may produce a broken library. 9682 allow_undefined_flag='-berok' 9683 # Determine the default libpath from the value encoded in an 9684 # empty executable. 9685 if test set = "${lt_cv_aix_libpath+set}"; then 9686 aix_libpath=$lt_cv_aix_libpath 9687else 9688 if test ${lt_cv_aix_libpath_+y} 9689then : 9690 printf %s "(cached) " >&6 9691else $as_nop 9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9693/* end confdefs.h. */ 9694 9695int 9696main (void) 9697{ 9698 9699 ; 9700 return 0; 9701} 9702_ACEOF 9703if ac_fn_c_try_link "$LINENO" 9704then : 9705 9706 lt_aix_libpath_sed=' 9707 /Import File Strings/,/^$/ { 9708 /^0/ { 9709 s/^0 *\([^ ]*\) *$/\1/ 9710 p 9711 } 9712 }' 9713 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9714 # Check for a 64-bit object if we didn't find anything. 9715 if test -z "$lt_cv_aix_libpath_"; then 9716 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9717 fi 9718fi 9719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9720 conftest$ac_exeext conftest.$ac_ext 9721 if test -z "$lt_cv_aix_libpath_"; then 9722 lt_cv_aix_libpath_=/usr/lib:/lib 9723 fi 9724 9725fi 9726 9727 aix_libpath=$lt_cv_aix_libpath_ 9728fi 9729 9730 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9731 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 9732 else 9733 if test ia64 = "$host_cpu"; then 9734 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9735 allow_undefined_flag="-z nodefs" 9736 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" 9737 else 9738 # Determine the default libpath from the value encoded in an 9739 # empty executable. 9740 if test set = "${lt_cv_aix_libpath+set}"; then 9741 aix_libpath=$lt_cv_aix_libpath 9742else 9743 if test ${lt_cv_aix_libpath_+y} 9744then : 9745 printf %s "(cached) " >&6 9746else $as_nop 9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9748/* end confdefs.h. */ 9749 9750int 9751main (void) 9752{ 9753 9754 ; 9755 return 0; 9756} 9757_ACEOF 9758if ac_fn_c_try_link "$LINENO" 9759then : 9760 9761 lt_aix_libpath_sed=' 9762 /Import File Strings/,/^$/ { 9763 /^0/ { 9764 s/^0 *\([^ ]*\) *$/\1/ 9765 p 9766 } 9767 }' 9768 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9769 # Check for a 64-bit object if we didn't find anything. 9770 if test -z "$lt_cv_aix_libpath_"; then 9771 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9772 fi 9773fi 9774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9775 conftest$ac_exeext conftest.$ac_ext 9776 if test -z "$lt_cv_aix_libpath_"; then 9777 lt_cv_aix_libpath_=/usr/lib:/lib 9778 fi 9779 9780fi 9781 9782 aix_libpath=$lt_cv_aix_libpath_ 9783fi 9784 9785 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9786 # Warning - without using the other run time loading flags, 9787 # -berok will link without error, but may produce a broken library. 9788 no_undefined_flag=' $wl-bernotok' 9789 allow_undefined_flag=' $wl-berok' 9790 if test yes = "$with_gnu_ld"; then 9791 # We only use this code for GNU lds that support --whole-archive. 9792 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9793 else 9794 # Exported symbols can be pulled into shared objects from archives 9795 whole_archive_flag_spec='$convenience' 9796 fi 9797 archive_cmds_need_lc=yes 9798 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9799 # -brtl affects multiple linker settings, -berok does not and is overridden later 9800 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9801 if test svr4 != "$with_aix_soname"; then 9802 # This is similar to how AIX traditionally builds its shared libraries. 9803 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' 9804 fi 9805 if test aix != "$with_aix_soname"; then 9806 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' 9807 else 9808 # used by -dlpreopen to get the symbols 9809 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9810 fi 9811 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9812 fi 9813 fi 9814 ;; 9815 9816 amigaos*) 9817 case $host_cpu in 9818 powerpc) 9819 # see comment about AmigaOS4 .so support 9820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9821 archive_expsym_cmds='' 9822 ;; 9823 m68k) 9824 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)' 9825 hardcode_libdir_flag_spec='-L$libdir' 9826 hardcode_minus_L=yes 9827 ;; 9828 esac 9829 ;; 9830 9831 bsdi[45]*) 9832 export_dynamic_flag_spec=-rdynamic 9833 ;; 9834 9835 cygwin* | mingw* | pw32* | cegcc*) 9836 # When not using gcc, we currently assume that we are using 9837 # Microsoft Visual C++. 9838 # hardcode_libdir_flag_spec is actually meaningless, as there is 9839 # no search path for DLLs. 9840 case $cc_basename in 9841 cl*) 9842 # Native MSVC 9843 hardcode_libdir_flag_spec=' ' 9844 allow_undefined_flag=unsupported 9845 always_export_symbols=yes 9846 file_list_spec='@' 9847 # Tell ltmain to make .lib files, not .a files. 9848 libext=lib 9849 # Tell ltmain to make .dll files, not .so files. 9850 shrext_cmds=.dll 9851 # FIXME: Setting linknames here is a bad hack. 9852 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9853 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9854 cp "$export_symbols" "$output_objdir/$soname.def"; 9855 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9856 else 9857 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9858 fi~ 9859 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9860 linknames=' 9861 # The linker will not automatically build a static lib if we build a DLL. 9862 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9863 enable_shared_with_static_runtimes=yes 9864 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9866 # Don't use ranlib 9867 old_postinstall_cmds='chmod 644 $oldlib' 9868 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9869 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9870 case $lt_outputfile in 9871 *.exe|*.EXE) ;; 9872 *) 9873 lt_outputfile=$lt_outputfile.exe 9874 lt_tool_outputfile=$lt_tool_outputfile.exe 9875 ;; 9876 esac~ 9877 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9878 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9879 $RM "$lt_outputfile.manifest"; 9880 fi' 9881 ;; 9882 *) 9883 # Assume MSVC wrapper 9884 hardcode_libdir_flag_spec=' ' 9885 allow_undefined_flag=unsupported 9886 # Tell ltmain to make .lib files, not .a files. 9887 libext=lib 9888 # Tell ltmain to make .dll files, not .so files. 9889 shrext_cmds=.dll 9890 # FIXME: Setting linknames here is a bad hack. 9891 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9892 # The linker will automatically build a .lib file if we build a DLL. 9893 old_archive_from_new_cmds='true' 9894 # FIXME: Should let the user specify the lib program. 9895 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9896 enable_shared_with_static_runtimes=yes 9897 ;; 9898 esac 9899 ;; 9900 9901 darwin* | rhapsody*) 9902 9903 9904 archive_cmds_need_lc=no 9905 hardcode_direct=no 9906 hardcode_automatic=yes 9907 hardcode_shlibpath_var=unsupported 9908 if test yes = "$lt_cv_ld_force_load"; then 9909 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\"`' 9910 9911 else 9912 whole_archive_flag_spec='' 9913 fi 9914 link_all_deplibs=yes 9915 allow_undefined_flag=$_lt_dar_allow_undefined 9916 case $cc_basename in 9917 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9918 *) _lt_dar_can_shared=$GCC ;; 9919 esac 9920 if test yes = "$_lt_dar_can_shared"; then 9921 output_verbose_link_cmd=func_echo_all 9922 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9923 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9924 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" 9925 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" 9926 9927 else 9928 ld_shlibs=no 9929 fi 9930 9931 ;; 9932 9933 dgux*) 9934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9935 hardcode_libdir_flag_spec='-L$libdir' 9936 hardcode_shlibpath_var=no 9937 ;; 9938 9939 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9940 # support. Future versions do this automatically, but an explicit c++rt0.o 9941 # does not break anything, and helps significantly (at the cost of a little 9942 # extra space). 9943 freebsd2.2*) 9944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9945 hardcode_libdir_flag_spec='-R$libdir' 9946 hardcode_direct=yes 9947 hardcode_shlibpath_var=no 9948 ;; 9949 9950 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9951 freebsd2.*) 9952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9953 hardcode_direct=yes 9954 hardcode_minus_L=yes 9955 hardcode_shlibpath_var=no 9956 ;; 9957 9958 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9959 freebsd* | dragonfly*) 9960 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9961 hardcode_libdir_flag_spec='-R$libdir' 9962 hardcode_direct=yes 9963 hardcode_shlibpath_var=no 9964 ;; 9965 9966 hpux9*) 9967 if test yes = "$GCC"; then 9968 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' 9969 else 9970 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' 9971 fi 9972 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9973 hardcode_libdir_separator=: 9974 hardcode_direct=yes 9975 9976 # hardcode_minus_L: Not really in the search PATH, 9977 # but as the default location of the library. 9978 hardcode_minus_L=yes 9979 export_dynamic_flag_spec='$wl-E' 9980 ;; 9981 9982 hpux10*) 9983 if test yes,no = "$GCC,$with_gnu_ld"; then 9984 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9985 else 9986 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9987 fi 9988 if test no = "$with_gnu_ld"; then 9989 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9990 hardcode_libdir_separator=: 9991 hardcode_direct=yes 9992 hardcode_direct_absolute=yes 9993 export_dynamic_flag_spec='$wl-E' 9994 # hardcode_minus_L: Not really in the search PATH, 9995 # but as the default location of the library. 9996 hardcode_minus_L=yes 9997 fi 9998 ;; 9999 10000 hpux11*) 10001 if test yes,no = "$GCC,$with_gnu_ld"; then 10002 case $host_cpu in 10003 hppa*64*) 10004 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10005 ;; 10006 ia64*) 10007 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10008 ;; 10009 *) 10010 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10011 ;; 10012 esac 10013 else 10014 case $host_cpu in 10015 hppa*64*) 10016 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10017 ;; 10018 ia64*) 10019 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10020 ;; 10021 *) 10022 10023 # Older versions of the 11.00 compiler do not understand -b yet 10024 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10026printf %s "checking if $CC understands -b... " >&6; } 10027if test ${lt_cv_prog_compiler__b+y} 10028then : 10029 printf %s "(cached) " >&6 10030else $as_nop 10031 lt_cv_prog_compiler__b=no 10032 save_LDFLAGS=$LDFLAGS 10033 LDFLAGS="$LDFLAGS -b" 10034 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10036 # The linker can only warn and ignore the option if not recognized 10037 # So say no if there are warnings 10038 if test -s conftest.err; then 10039 # Append any errors to the config.log. 10040 cat conftest.err 1>&5 10041 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10043 if diff conftest.exp conftest.er2 >/dev/null; then 10044 lt_cv_prog_compiler__b=yes 10045 fi 10046 else 10047 lt_cv_prog_compiler__b=yes 10048 fi 10049 fi 10050 $RM -r conftest* 10051 LDFLAGS=$save_LDFLAGS 10052 10053fi 10054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10055printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10056 10057if test yes = "$lt_cv_prog_compiler__b"; then 10058 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10059else 10060 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10061fi 10062 10063 ;; 10064 esac 10065 fi 10066 if test no = "$with_gnu_ld"; then 10067 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10068 hardcode_libdir_separator=: 10069 10070 case $host_cpu in 10071 hppa*64*|ia64*) 10072 hardcode_direct=no 10073 hardcode_shlibpath_var=no 10074 ;; 10075 *) 10076 hardcode_direct=yes 10077 hardcode_direct_absolute=yes 10078 export_dynamic_flag_spec='$wl-E' 10079 10080 # hardcode_minus_L: Not really in the search PATH, 10081 # but as the default location of the library. 10082 hardcode_minus_L=yes 10083 ;; 10084 esac 10085 fi 10086 ;; 10087 10088 irix5* | irix6* | nonstopux*) 10089 if test yes = "$GCC"; then 10090 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' 10091 # Try to use the -exported_symbol ld option, if it does not 10092 # work, assume that -exports_file does not work either and 10093 # implicitly export all symbols. 10094 # This should be the same for all languages, so no per-tag cache variable. 10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10096printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10097if test ${lt_cv_irix_exported_symbol+y} 10098then : 10099 printf %s "(cached) " >&6 10100else $as_nop 10101 save_LDFLAGS=$LDFLAGS 10102 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10104/* end confdefs.h. */ 10105int foo (void) { return 0; } 10106_ACEOF 10107if ac_fn_c_try_link "$LINENO" 10108then : 10109 lt_cv_irix_exported_symbol=yes 10110else $as_nop 10111 lt_cv_irix_exported_symbol=no 10112fi 10113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10114 conftest$ac_exeext conftest.$ac_ext 10115 LDFLAGS=$save_LDFLAGS 10116fi 10117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10118printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10119 if test yes = "$lt_cv_irix_exported_symbol"; then 10120 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' 10121 fi 10122 link_all_deplibs=no 10123 else 10124 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' 10125 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' 10126 fi 10127 archive_cmds_need_lc='no' 10128 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10129 hardcode_libdir_separator=: 10130 inherit_rpath=yes 10131 link_all_deplibs=yes 10132 ;; 10133 10134 linux*) 10135 case $cc_basename in 10136 tcc*) 10137 # Fabrice Bellard et al's Tiny C Compiler 10138 ld_shlibs=yes 10139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10140 ;; 10141 esac 10142 ;; 10143 10144 netbsd* | netbsdelf*-gnu) 10145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10147 else 10148 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10149 fi 10150 hardcode_libdir_flag_spec='-R$libdir' 10151 hardcode_direct=yes 10152 hardcode_shlibpath_var=no 10153 ;; 10154 10155 newsos6) 10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10157 hardcode_direct=yes 10158 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10159 hardcode_libdir_separator=: 10160 hardcode_shlibpath_var=no 10161 ;; 10162 10163 *nto* | *qnx*) 10164 ;; 10165 10166 openbsd* | bitrig*) 10167 if test -f /usr/libexec/ld.so; then 10168 hardcode_direct=yes 10169 hardcode_shlibpath_var=no 10170 hardcode_direct_absolute=yes 10171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10172 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10173 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10174 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10175 export_dynamic_flag_spec='$wl-E' 10176 else 10177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10178 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10179 fi 10180 else 10181 ld_shlibs=no 10182 fi 10183 ;; 10184 10185 os2*) 10186 hardcode_libdir_flag_spec='-L$libdir' 10187 hardcode_minus_L=yes 10188 allow_undefined_flag=unsupported 10189 shrext_cmds=.dll 10190 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10191 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10192 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10193 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10194 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10195 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10196 emximp -o $lib $output_objdir/$libname.def' 10197 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10198 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10199 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10200 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10201 prefix_cmds="$SED"~ 10202 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10203 prefix_cmds="$prefix_cmds -e 1d"; 10204 fi~ 10205 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10206 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10207 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10208 emximp -o $lib $output_objdir/$libname.def' 10209 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10210 enable_shared_with_static_runtimes=yes 10211 ;; 10212 10213 osf3*) 10214 if test yes = "$GCC"; then 10215 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10216 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' 10217 else 10218 allow_undefined_flag=' -expect_unresolved \*' 10219 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' 10220 fi 10221 archive_cmds_need_lc='no' 10222 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10223 hardcode_libdir_separator=: 10224 ;; 10225 10226 osf4* | osf5*) # as osf3* with the addition of -msym flag 10227 if test yes = "$GCC"; then 10228 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10229 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' 10230 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10231 else 10232 allow_undefined_flag=' -expect_unresolved \*' 10233 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' 10234 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~ 10235 $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' 10236 10237 # Both c and cxx compiler support -rpath directly 10238 hardcode_libdir_flag_spec='-rpath $libdir' 10239 fi 10240 archive_cmds_need_lc='no' 10241 hardcode_libdir_separator=: 10242 ;; 10243 10244 solaris*) 10245 no_undefined_flag=' -z defs' 10246 if test yes = "$GCC"; then 10247 wlarc='$wl' 10248 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10249 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10250 $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' 10251 else 10252 case `$CC -V 2>&1` in 10253 *"Compilers 5.0"*) 10254 wlarc='' 10255 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10256 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10257 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10258 ;; 10259 *) 10260 wlarc='$wl' 10261 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10263 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10264 ;; 10265 esac 10266 fi 10267 hardcode_libdir_flag_spec='-R$libdir' 10268 hardcode_shlibpath_var=no 10269 case $host_os in 10270 solaris2.[0-5] | solaris2.[0-5].*) ;; 10271 *) 10272 # The compiler driver will combine and reorder linker options, 10273 # but understands '-z linker_flag'. GCC discards it without '$wl', 10274 # but is careful enough not to reorder. 10275 # Supported since Solaris 2.6 (maybe 2.5.1?) 10276 if test yes = "$GCC"; then 10277 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10278 else 10279 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10280 fi 10281 ;; 10282 esac 10283 link_all_deplibs=yes 10284 ;; 10285 10286 sunos4*) 10287 if test sequent = "$host_vendor"; then 10288 # Use $CC to link under sequent, because it throws in some extra .o 10289 # files that make .init and .fini sections work. 10290 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10291 else 10292 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10293 fi 10294 hardcode_libdir_flag_spec='-L$libdir' 10295 hardcode_direct=yes 10296 hardcode_minus_L=yes 10297 hardcode_shlibpath_var=no 10298 ;; 10299 10300 sysv4) 10301 case $host_vendor in 10302 sni) 10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10304 hardcode_direct=yes # is this really true??? 10305 ;; 10306 siemens) 10307 ## LD is ld it makes a PLAMLIB 10308 ## CC just makes a GrossModule. 10309 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10310 reload_cmds='$CC -r -o $output$reload_objs' 10311 hardcode_direct=no 10312 ;; 10313 motorola) 10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10315 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10316 ;; 10317 esac 10318 runpath_var='LD_RUN_PATH' 10319 hardcode_shlibpath_var=no 10320 ;; 10321 10322 sysv4.3*) 10323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10324 hardcode_shlibpath_var=no 10325 export_dynamic_flag_spec='-Bexport' 10326 ;; 10327 10328 sysv4*MP*) 10329 if test -d /usr/nec; then 10330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10331 hardcode_shlibpath_var=no 10332 runpath_var=LD_RUN_PATH 10333 hardcode_runpath_var=yes 10334 ld_shlibs=yes 10335 fi 10336 ;; 10337 10338 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10339 no_undefined_flag='$wl-z,text' 10340 archive_cmds_need_lc=no 10341 hardcode_shlibpath_var=no 10342 runpath_var='LD_RUN_PATH' 10343 10344 if test yes = "$GCC"; then 10345 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10346 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10347 else 10348 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10349 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10350 fi 10351 ;; 10352 10353 sysv5* | sco3.2v5* | sco5v6*) 10354 # Note: We CANNOT use -z defs as we might desire, because we do not 10355 # link with -lc, and that would cause any symbols used from libc to 10356 # always be unresolved, which means just about no library would 10357 # ever link correctly. If we're not using GNU ld we use -z text 10358 # though, which does catch some bad symbols but isn't as heavy-handed 10359 # as -z defs. 10360 no_undefined_flag='$wl-z,text' 10361 allow_undefined_flag='$wl-z,nodefs' 10362 archive_cmds_need_lc=no 10363 hardcode_shlibpath_var=no 10364 hardcode_libdir_flag_spec='$wl-R,$libdir' 10365 hardcode_libdir_separator=':' 10366 link_all_deplibs=yes 10367 export_dynamic_flag_spec='$wl-Bexport' 10368 runpath_var='LD_RUN_PATH' 10369 10370 if test yes = "$GCC"; then 10371 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10372 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10373 else 10374 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10375 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10376 fi 10377 ;; 10378 10379 uts4*) 10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10381 hardcode_libdir_flag_spec='-L$libdir' 10382 hardcode_shlibpath_var=no 10383 ;; 10384 10385 *) 10386 ld_shlibs=no 10387 ;; 10388 esac 10389 10390 if test sni = "$host_vendor"; then 10391 case $host in 10392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10393 export_dynamic_flag_spec='$wl-Blargedynsym' 10394 ;; 10395 esac 10396 fi 10397 fi 10398 10399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10400printf "%s\n" "$ld_shlibs" >&6; } 10401test no = "$ld_shlibs" && can_build_shared=no 10402 10403with_gnu_ld=$with_gnu_ld 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419# 10420# Do we need to explicitly link libc? 10421# 10422case "x$archive_cmds_need_lc" in 10423x|xyes) 10424 # Assume -lc should be added 10425 archive_cmds_need_lc=yes 10426 10427 if test yes,yes = "$GCC,$enable_shared"; then 10428 case $archive_cmds in 10429 *'~'*) 10430 # FIXME: we may have to deal with multi-command sequences. 10431 ;; 10432 '$CC '*) 10433 # Test whether the compiler implicitly links with -lc since on some 10434 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10435 # to ld, don't add -lc before -lgcc. 10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10437printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10438if test ${lt_cv_archive_cmds_need_lc+y} 10439then : 10440 printf %s "(cached) " >&6 10441else $as_nop 10442 $RM conftest* 10443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10444 10445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10446 (eval $ac_compile) 2>&5 10447 ac_status=$? 10448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10449 test $ac_status = 0; } 2>conftest.err; then 10450 soname=conftest 10451 lib=conftest 10452 libobjs=conftest.$ac_objext 10453 deplibs= 10454 wl=$lt_prog_compiler_wl 10455 pic_flag=$lt_prog_compiler_pic 10456 compiler_flags=-v 10457 linker_flags=-v 10458 verstring= 10459 output_objdir=. 10460 libname=conftest 10461 lt_save_allow_undefined_flag=$allow_undefined_flag 10462 allow_undefined_flag= 10463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10464 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10465 ac_status=$? 10466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10467 test $ac_status = 0; } 10468 then 10469 lt_cv_archive_cmds_need_lc=no 10470 else 10471 lt_cv_archive_cmds_need_lc=yes 10472 fi 10473 allow_undefined_flag=$lt_save_allow_undefined_flag 10474 else 10475 cat conftest.err 1>&5 10476 fi 10477 $RM conftest* 10478 10479fi 10480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10481printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10482 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10483 ;; 10484 esac 10485 fi 10486 ;; 10487esac 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10641printf %s "checking dynamic linker characteristics... " >&6; } 10642 10643if test yes = "$GCC"; then 10644 case $host_os in 10645 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10646 *) lt_awk_arg='/^libraries:/' ;; 10647 esac 10648 case $host_os in 10649 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10650 *) lt_sed_strip_eq='s|=/|/|g' ;; 10651 esac 10652 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10653 case $lt_search_path_spec in 10654 *\;*) 10655 # if the path contains ";" then we assume it to be the separator 10656 # otherwise default to the standard path separator (i.e. ":") - it is 10657 # assumed that no part of a normal pathname contains ";" but that should 10658 # okay in the real world where ";" in dirpaths is itself problematic. 10659 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10660 ;; 10661 *) 10662 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10663 ;; 10664 esac 10665 # Ok, now we have the path, separated by spaces, we can step through it 10666 # and add multilib dir if necessary... 10667 lt_tmp_lt_search_path_spec= 10668 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10669 # ...but if some path component already ends with the multilib dir we assume 10670 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10671 case "$lt_multi_os_dir; $lt_search_path_spec " in 10672 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10673 lt_multi_os_dir= 10674 ;; 10675 esac 10676 for lt_sys_path in $lt_search_path_spec; do 10677 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10679 elif test -n "$lt_multi_os_dir"; then 10680 test -d "$lt_sys_path" && \ 10681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10682 fi 10683 done 10684 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10685BEGIN {RS = " "; FS = "/|\n";} { 10686 lt_foo = ""; 10687 lt_count = 0; 10688 for (lt_i = NF; lt_i > 0; lt_i--) { 10689 if ($lt_i != "" && $lt_i != ".") { 10690 if ($lt_i == "..") { 10691 lt_count++; 10692 } else { 10693 if (lt_count == 0) { 10694 lt_foo = "/" $lt_i lt_foo; 10695 } else { 10696 lt_count--; 10697 } 10698 } 10699 } 10700 } 10701 if (lt_foo != "") { lt_freq[lt_foo]++; } 10702 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10703}'` 10704 # AWK program above erroneously prepends '/' to C:/dos/paths 10705 # for these hosts. 10706 case $host_os in 10707 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10708 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10709 esac 10710 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10711else 10712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10713fi 10714library_names_spec= 10715libname_spec='lib$name' 10716soname_spec= 10717shrext_cmds=.so 10718postinstall_cmds= 10719postuninstall_cmds= 10720finish_cmds= 10721finish_eval= 10722shlibpath_var= 10723shlibpath_overrides_runpath=unknown 10724version_type=none 10725dynamic_linker="$host_os ld.so" 10726sys_lib_dlsearch_path_spec="/lib /usr/lib" 10727need_lib_prefix=unknown 10728hardcode_into_libs=no 10729 10730# when you set need_version to no, make sure it does not cause -set_version 10731# flags to be left without arguments 10732need_version=unknown 10733 10734 10735 10736case $host_os in 10737aix3*) 10738 version_type=linux # correct to gnu/linux during the next big refactor 10739 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10740 shlibpath_var=LIBPATH 10741 10742 # AIX 3 has no versioning support, so we append a major version to the name. 10743 soname_spec='$libname$release$shared_ext$major' 10744 ;; 10745 10746aix[4-9]*) 10747 version_type=linux # correct to gnu/linux during the next big refactor 10748 need_lib_prefix=no 10749 need_version=no 10750 hardcode_into_libs=yes 10751 if test ia64 = "$host_cpu"; then 10752 # AIX 5 supports IA64 10753 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10754 shlibpath_var=LD_LIBRARY_PATH 10755 else 10756 # With GCC up to 2.95.x, collect2 would create an import file 10757 # for dependence libraries. The import file would start with 10758 # the line '#! .'. This would cause the generated library to 10759 # depend on '.', always an invalid library. This was fixed in 10760 # development snapshots of GCC prior to 3.0. 10761 case $host_os in 10762 aix4 | aix4.[01] | aix4.[01].*) 10763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10764 echo ' yes ' 10765 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10766 : 10767 else 10768 can_build_shared=no 10769 fi 10770 ;; 10771 esac 10772 # Using Import Files as archive members, it is possible to support 10773 # filename-based versioning of shared library archives on AIX. While 10774 # this would work for both with and without runtime linking, it will 10775 # prevent static linking of such archives. So we do filename-based 10776 # shared library versioning with .so extension only, which is used 10777 # when both runtime linking and shared linking is enabled. 10778 # Unfortunately, runtime linking may impact performance, so we do 10779 # not want this to be the default eventually. Also, we use the 10780 # versioned .so libs for executables only if there is the -brtl 10781 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10782 # To allow for filename-based versioning support, we need to create 10783 # libNAME.so.V as an archive file, containing: 10784 # *) an Import File, referring to the versioned filename of the 10785 # archive as well as the shared archive member, telling the 10786 # bitwidth (32 or 64) of that shared object, and providing the 10787 # list of exported symbols of that shared object, eventually 10788 # decorated with the 'weak' keyword 10789 # *) the shared object with the F_LOADONLY flag set, to really avoid 10790 # it being seen by the linker. 10791 # At run time we better use the real file rather than another symlink, 10792 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10793 10794 case $with_aix_soname,$aix_use_runtimelinking in 10795 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10796 # soname into executable. Probably we can add versioning support to 10797 # collect2, so additional links can be useful in future. 10798 aix,yes) # traditional libtool 10799 dynamic_linker='AIX unversionable lib.so' 10800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10801 # instead of lib<name>.a to let people know that these are not 10802 # typical AIX shared libraries. 10803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10804 ;; 10805 aix,no) # traditional AIX only 10806 dynamic_linker='AIX lib.a(lib.so.V)' 10807 # We preserve .a as extension for shared libraries through AIX4.2 10808 # and later when we are not doing run time linking. 10809 library_names_spec='$libname$release.a $libname.a' 10810 soname_spec='$libname$release$shared_ext$major' 10811 ;; 10812 svr4,*) # full svr4 only 10813 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10814 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10815 # We do not specify a path in Import Files, so LIBPATH fires. 10816 shlibpath_overrides_runpath=yes 10817 ;; 10818 *,yes) # both, prefer svr4 10819 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10820 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10821 # unpreferred sharedlib libNAME.a needs extra handling 10822 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"' 10823 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"' 10824 # We do not specify a path in Import Files, so LIBPATH fires. 10825 shlibpath_overrides_runpath=yes 10826 ;; 10827 *,no) # both, prefer aix 10828 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10829 library_names_spec='$libname$release.a $libname.a' 10830 soname_spec='$libname$release$shared_ext$major' 10831 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10832 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)' 10833 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"' 10834 ;; 10835 esac 10836 shlibpath_var=LIBPATH 10837 fi 10838 ;; 10839 10840amigaos*) 10841 case $host_cpu in 10842 powerpc) 10843 # Since July 2007 AmigaOS4 officially supports .so libraries. 10844 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10846 ;; 10847 m68k) 10848 library_names_spec='$libname.ixlibrary $libname.a' 10849 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10850 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' 10851 ;; 10852 esac 10853 ;; 10854 10855beos*) 10856 library_names_spec='$libname$shared_ext' 10857 dynamic_linker="$host_os ld.so" 10858 shlibpath_var=LIBRARY_PATH 10859 ;; 10860 10861bsdi[45]*) 10862 version_type=linux # correct to gnu/linux during the next big refactor 10863 need_version=no 10864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10865 soname_spec='$libname$release$shared_ext$major' 10866 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10867 shlibpath_var=LD_LIBRARY_PATH 10868 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10869 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10870 # the default ld.so.conf also contains /usr/contrib/lib and 10871 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10872 # libtool to hard-code these into programs 10873 ;; 10874 10875cygwin* | mingw* | pw32* | cegcc*) 10876 version_type=windows 10877 shrext_cmds=.dll 10878 need_version=no 10879 need_lib_prefix=no 10880 10881 case $GCC,$cc_basename in 10882 yes,*) 10883 # gcc 10884 library_names_spec='$libname.dll.a' 10885 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10886 postinstall_cmds='base_file=`basename \$file`~ 10887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10888 dldir=$destdir/`dirname \$dlpath`~ 10889 test -d \$dldir || mkdir -p \$dldir~ 10890 $install_prog $dir/$dlname \$dldir/$dlname~ 10891 chmod a+x \$dldir/$dlname~ 10892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10894 fi' 10895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10896 dlpath=$dir/\$dldll~ 10897 $RM \$dlpath' 10898 shlibpath_overrides_runpath=yes 10899 10900 case $host_os in 10901 cygwin*) 10902 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10903 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10904 10905 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10906 ;; 10907 mingw* | cegcc*) 10908 # MinGW DLLs use traditional 'lib' prefix 10909 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10910 ;; 10911 pw32*) 10912 # pw32 DLLs use 'pw' prefix rather than 'lib' 10913 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10914 ;; 10915 esac 10916 dynamic_linker='Win32 ld.exe' 10917 ;; 10918 10919 *,cl*) 10920 # Native MSVC 10921 libname_spec='$name' 10922 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10923 library_names_spec='$libname.dll.lib' 10924 10925 case $build_os in 10926 mingw*) 10927 sys_lib_search_path_spec= 10928 lt_save_ifs=$IFS 10929 IFS=';' 10930 for lt_path in $LIB 10931 do 10932 IFS=$lt_save_ifs 10933 # Let DOS variable expansion print the short 8.3 style file name. 10934 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10935 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10936 done 10937 IFS=$lt_save_ifs 10938 # Convert to MSYS style. 10939 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10940 ;; 10941 cygwin*) 10942 # Convert to unix form, then to dos form, then back to unix form 10943 # but this time dos style (no spaces!) so that the unix form looks 10944 # like /cygdrive/c/PROGRA~1:/cygdr... 10945 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10946 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10947 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10948 ;; 10949 *) 10950 sys_lib_search_path_spec=$LIB 10951 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10952 # It is most probably a Windows format PATH. 10953 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10954 else 10955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10956 fi 10957 # FIXME: find the short name or the path components, as spaces are 10958 # common. (e.g. "Program Files" -> "PROGRA~1") 10959 ;; 10960 esac 10961 10962 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10963 postinstall_cmds='base_file=`basename \$file`~ 10964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10965 dldir=$destdir/`dirname \$dlpath`~ 10966 test -d \$dldir || mkdir -p \$dldir~ 10967 $install_prog $dir/$dlname \$dldir/$dlname' 10968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10969 dlpath=$dir/\$dldll~ 10970 $RM \$dlpath' 10971 shlibpath_overrides_runpath=yes 10972 dynamic_linker='Win32 link.exe' 10973 ;; 10974 10975 *) 10976 # Assume MSVC wrapper 10977 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10978 dynamic_linker='Win32 ld.exe' 10979 ;; 10980 esac 10981 # FIXME: first we should search . and the directory the executable is in 10982 shlibpath_var=PATH 10983 ;; 10984 10985darwin* | rhapsody*) 10986 dynamic_linker="$host_os dyld" 10987 version_type=darwin 10988 need_lib_prefix=no 10989 need_version=no 10990 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10991 soname_spec='$libname$release$major$shared_ext' 10992 shlibpath_overrides_runpath=yes 10993 shlibpath_var=DYLD_LIBRARY_PATH 10994 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10995 10996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10998 ;; 10999 11000dgux*) 11001 version_type=linux # correct to gnu/linux during the next big refactor 11002 need_lib_prefix=no 11003 need_version=no 11004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11005 soname_spec='$libname$release$shared_ext$major' 11006 shlibpath_var=LD_LIBRARY_PATH 11007 ;; 11008 11009freebsd* | dragonfly*) 11010 # DragonFly does not have aout. When/if they implement a new 11011 # versioning mechanism, adjust this. 11012 if test -x /usr/bin/objformat; then 11013 objformat=`/usr/bin/objformat` 11014 else 11015 case $host_os in 11016 freebsd[23].*) objformat=aout ;; 11017 *) objformat=elf ;; 11018 esac 11019 fi 11020 version_type=freebsd-$objformat 11021 case $version_type in 11022 freebsd-elf*) 11023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11024 soname_spec='$libname$release$shared_ext$major' 11025 need_version=no 11026 need_lib_prefix=no 11027 ;; 11028 freebsd-*) 11029 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11030 need_version=yes 11031 ;; 11032 esac 11033 shlibpath_var=LD_LIBRARY_PATH 11034 case $host_os in 11035 freebsd2.*) 11036 shlibpath_overrides_runpath=yes 11037 ;; 11038 freebsd3.[01]* | freebsdelf3.[01]*) 11039 shlibpath_overrides_runpath=yes 11040 hardcode_into_libs=yes 11041 ;; 11042 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11043 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11044 shlibpath_overrides_runpath=no 11045 hardcode_into_libs=yes 11046 ;; 11047 *) # from 4.6 on, and DragonFly 11048 shlibpath_overrides_runpath=yes 11049 hardcode_into_libs=yes 11050 ;; 11051 esac 11052 ;; 11053 11054haiku*) 11055 version_type=linux # correct to gnu/linux during the next big refactor 11056 need_lib_prefix=no 11057 need_version=no 11058 dynamic_linker="$host_os runtime_loader" 11059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11060 soname_spec='$libname$release$shared_ext$major' 11061 shlibpath_var=LIBRARY_PATH 11062 shlibpath_overrides_runpath=no 11063 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11064 hardcode_into_libs=yes 11065 ;; 11066 11067hpux9* | hpux10* | hpux11*) 11068 # Give a soname corresponding to the major version so that dld.sl refuses to 11069 # link against other versions. 11070 version_type=sunos 11071 need_lib_prefix=no 11072 need_version=no 11073 case $host_cpu in 11074 ia64*) 11075 shrext_cmds='.so' 11076 hardcode_into_libs=yes 11077 dynamic_linker="$host_os dld.so" 11078 shlibpath_var=LD_LIBRARY_PATH 11079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11081 soname_spec='$libname$release$shared_ext$major' 11082 if test 32 = "$HPUX_IA64_MODE"; then 11083 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11084 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11085 else 11086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11087 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11088 fi 11089 ;; 11090 hppa*64*) 11091 shrext_cmds='.sl' 11092 hardcode_into_libs=yes 11093 dynamic_linker="$host_os dld.sl" 11094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11097 soname_spec='$libname$release$shared_ext$major' 11098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11100 ;; 11101 *) 11102 shrext_cmds='.sl' 11103 dynamic_linker="$host_os dld.sl" 11104 shlibpath_var=SHLIB_PATH 11105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11107 soname_spec='$libname$release$shared_ext$major' 11108 ;; 11109 esac 11110 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11111 postinstall_cmds='chmod 555 $lib' 11112 # or fails outright, so override atomically: 11113 install_override_mode=555 11114 ;; 11115 11116interix[3-9]*) 11117 version_type=linux # correct to gnu/linux during the next big refactor 11118 need_lib_prefix=no 11119 need_version=no 11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11121 soname_spec='$libname$release$shared_ext$major' 11122 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 shlibpath_overrides_runpath=no 11125 hardcode_into_libs=yes 11126 ;; 11127 11128irix5* | irix6* | nonstopux*) 11129 case $host_os in 11130 nonstopux*) version_type=nonstopux ;; 11131 *) 11132 if test yes = "$lt_cv_prog_gnu_ld"; then 11133 version_type=linux # correct to gnu/linux during the next big refactor 11134 else 11135 version_type=irix 11136 fi ;; 11137 esac 11138 need_lib_prefix=no 11139 need_version=no 11140 soname_spec='$libname$release$shared_ext$major' 11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11142 case $host_os in 11143 irix5* | nonstopux*) 11144 libsuff= shlibsuff= 11145 ;; 11146 *) 11147 case $LD in # libtool.m4 will add one of these switches to LD 11148 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11149 libsuff= shlibsuff= libmagic=32-bit;; 11150 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11151 libsuff=32 shlibsuff=N32 libmagic=N32;; 11152 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11153 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11154 *) libsuff= shlibsuff= libmagic=never-match;; 11155 esac 11156 ;; 11157 esac 11158 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11159 shlibpath_overrides_runpath=no 11160 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11161 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11162 hardcode_into_libs=yes 11163 ;; 11164 11165# No shared lib support for Linux oldld, aout, or coff. 11166linux*oldld* | linux*aout* | linux*coff*) 11167 dynamic_linker=no 11168 ;; 11169 11170linux*android*) 11171 version_type=none # Android doesn't support versioned libraries. 11172 need_lib_prefix=no 11173 need_version=no 11174 library_names_spec='$libname$release$shared_ext' 11175 soname_spec='$libname$release$shared_ext' 11176 finish_cmds= 11177 shlibpath_var=LD_LIBRARY_PATH 11178 shlibpath_overrides_runpath=yes 11179 11180 # This implies no fast_install, which is unacceptable. 11181 # Some rework will be needed to allow for fast_install 11182 # before this can be enabled. 11183 hardcode_into_libs=yes 11184 11185 dynamic_linker='Android linker' 11186 # Don't embed -rpath directories since the linker doesn't support them. 11187 hardcode_libdir_flag_spec='-L$libdir' 11188 ;; 11189 11190# This must be glibc/ELF. 11191linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11192 version_type=linux # correct to gnu/linux during the next big refactor 11193 need_lib_prefix=no 11194 need_version=no 11195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11196 soname_spec='$libname$release$shared_ext$major' 11197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11198 shlibpath_var=LD_LIBRARY_PATH 11199 shlibpath_overrides_runpath=no 11200 11201 # Some binutils ld are patched to set DT_RUNPATH 11202 if test ${lt_cv_shlibpath_overrides_runpath+y} 11203then : 11204 printf %s "(cached) " >&6 11205else $as_nop 11206 lt_cv_shlibpath_overrides_runpath=no 11207 save_LDFLAGS=$LDFLAGS 11208 save_libdir=$libdir 11209 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11210 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11212/* end confdefs.h. */ 11213 11214int 11215main (void) 11216{ 11217 11218 ; 11219 return 0; 11220} 11221_ACEOF 11222if ac_fn_c_try_link "$LINENO" 11223then : 11224 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11225then : 11226 lt_cv_shlibpath_overrides_runpath=yes 11227fi 11228fi 11229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11230 conftest$ac_exeext conftest.$ac_ext 11231 LDFLAGS=$save_LDFLAGS 11232 libdir=$save_libdir 11233 11234fi 11235 11236 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11237 11238 # This implies no fast_install, which is unacceptable. 11239 # Some rework will be needed to allow for fast_install 11240 # before this can be enabled. 11241 hardcode_into_libs=yes 11242 11243 # Ideally, we could use ldconfig to report *all* directores which are 11244 # searched for libraries, however this is still not possible. Aside from not 11245 # being certain /sbin/ldconfig is available, command 11246 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11247 # even though it is searched at run-time. Try to do the best guess by 11248 # appending ld.so.conf contents (and includes) to the search path. 11249 if test -f /etc/ld.so.conf; then 11250 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' ' '` 11251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11252 fi 11253 11254 # We used to test for /lib/ld.so.1 and disable shared libraries on 11255 # powerpc, because MkLinux only supported shared libraries with the 11256 # GNU dynamic linker. Since this was broken with cross compilers, 11257 # most powerpc-linux boxes support dynamic linking these days and 11258 # people can always --disable-shared, the test was removed, and we 11259 # assume the GNU/Linux dynamic linker is in use. 11260 dynamic_linker='GNU/Linux ld.so' 11261 ;; 11262 11263netbsdelf*-gnu) 11264 version_type=linux 11265 need_lib_prefix=no 11266 need_version=no 11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11268 soname_spec='${libname}${release}${shared_ext}$major' 11269 shlibpath_var=LD_LIBRARY_PATH 11270 shlibpath_overrides_runpath=no 11271 hardcode_into_libs=yes 11272 dynamic_linker='NetBSD ld.elf_so' 11273 ;; 11274 11275netbsd*) 11276 version_type=sunos 11277 need_lib_prefix=no 11278 need_version=no 11279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11282 dynamic_linker='NetBSD (a.out) ld.so' 11283 else 11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11285 soname_spec='$libname$release$shared_ext$major' 11286 dynamic_linker='NetBSD ld.elf_so' 11287 fi 11288 shlibpath_var=LD_LIBRARY_PATH 11289 shlibpath_overrides_runpath=yes 11290 hardcode_into_libs=yes 11291 ;; 11292 11293newsos6) 11294 version_type=linux # correct to gnu/linux during the next big refactor 11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11296 shlibpath_var=LD_LIBRARY_PATH 11297 shlibpath_overrides_runpath=yes 11298 ;; 11299 11300*nto* | *qnx*) 11301 version_type=qnx 11302 need_lib_prefix=no 11303 need_version=no 11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11305 soname_spec='$libname$release$shared_ext$major' 11306 shlibpath_var=LD_LIBRARY_PATH 11307 shlibpath_overrides_runpath=no 11308 hardcode_into_libs=yes 11309 dynamic_linker='ldqnx.so' 11310 ;; 11311 11312openbsd* | bitrig*) 11313 version_type=sunos 11314 sys_lib_dlsearch_path_spec=/usr/lib 11315 need_lib_prefix=no 11316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11317 need_version=no 11318 else 11319 need_version=yes 11320 fi 11321 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11323 shlibpath_var=LD_LIBRARY_PATH 11324 shlibpath_overrides_runpath=yes 11325 ;; 11326 11327os2*) 11328 libname_spec='$name' 11329 version_type=windows 11330 shrext_cmds=.dll 11331 need_version=no 11332 need_lib_prefix=no 11333 # OS/2 can only load a DLL with a base name of 8 characters or less. 11334 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11335 v=$($ECHO $release$versuffix | tr -d .-); 11336 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11337 $ECHO $n$v`$shared_ext' 11338 library_names_spec='${libname}_dll.$libext' 11339 dynamic_linker='OS/2 ld.exe' 11340 shlibpath_var=BEGINLIBPATH 11341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11343 postinstall_cmds='base_file=`basename \$file`~ 11344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11345 dldir=$destdir/`dirname \$dlpath`~ 11346 test -d \$dldir || mkdir -p \$dldir~ 11347 $install_prog $dir/$dlname \$dldir/$dlname~ 11348 chmod a+x \$dldir/$dlname~ 11349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11351 fi' 11352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11353 dlpath=$dir/\$dldll~ 11354 $RM \$dlpath' 11355 ;; 11356 11357osf3* | osf4* | osf5*) 11358 version_type=osf 11359 need_lib_prefix=no 11360 need_version=no 11361 soname_spec='$libname$release$shared_ext$major' 11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11363 shlibpath_var=LD_LIBRARY_PATH 11364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11366 ;; 11367 11368rdos*) 11369 dynamic_linker=no 11370 ;; 11371 11372solaris*) 11373 version_type=linux # correct to gnu/linux during the next big refactor 11374 need_lib_prefix=no 11375 need_version=no 11376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11377 soname_spec='$libname$release$shared_ext$major' 11378 shlibpath_var=LD_LIBRARY_PATH 11379 shlibpath_overrides_runpath=yes 11380 hardcode_into_libs=yes 11381 # ldd complains unless libraries are executable 11382 postinstall_cmds='chmod +x $lib' 11383 ;; 11384 11385sunos4*) 11386 version_type=sunos 11387 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11388 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11389 shlibpath_var=LD_LIBRARY_PATH 11390 shlibpath_overrides_runpath=yes 11391 if test yes = "$with_gnu_ld"; then 11392 need_lib_prefix=no 11393 fi 11394 need_version=yes 11395 ;; 11396 11397sysv4 | sysv4.3*) 11398 version_type=linux # correct to gnu/linux during the next big refactor 11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11400 soname_spec='$libname$release$shared_ext$major' 11401 shlibpath_var=LD_LIBRARY_PATH 11402 case $host_vendor in 11403 sni) 11404 shlibpath_overrides_runpath=no 11405 need_lib_prefix=no 11406 runpath_var=LD_RUN_PATH 11407 ;; 11408 siemens) 11409 need_lib_prefix=no 11410 ;; 11411 motorola) 11412 need_lib_prefix=no 11413 need_version=no 11414 shlibpath_overrides_runpath=no 11415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11416 ;; 11417 esac 11418 ;; 11419 11420sysv4*MP*) 11421 if test -d /usr/nec; then 11422 version_type=linux # correct to gnu/linux during the next big refactor 11423 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11424 soname_spec='$libname$shared_ext.$major' 11425 shlibpath_var=LD_LIBRARY_PATH 11426 fi 11427 ;; 11428 11429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11430 version_type=sco 11431 need_lib_prefix=no 11432 need_version=no 11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11434 soname_spec='$libname$release$shared_ext$major' 11435 shlibpath_var=LD_LIBRARY_PATH 11436 shlibpath_overrides_runpath=yes 11437 hardcode_into_libs=yes 11438 if test yes = "$with_gnu_ld"; then 11439 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11440 else 11441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11442 case $host_os in 11443 sco3.2v5*) 11444 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11445 ;; 11446 esac 11447 fi 11448 sys_lib_dlsearch_path_spec='/usr/lib' 11449 ;; 11450 11451tpf*) 11452 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11453 version_type=linux # correct to gnu/linux during the next big refactor 11454 need_lib_prefix=no 11455 need_version=no 11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11457 shlibpath_var=LD_LIBRARY_PATH 11458 shlibpath_overrides_runpath=no 11459 hardcode_into_libs=yes 11460 ;; 11461 11462uts4*) 11463 version_type=linux # correct to gnu/linux during the next big refactor 11464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11465 soname_spec='$libname$release$shared_ext$major' 11466 shlibpath_var=LD_LIBRARY_PATH 11467 ;; 11468 11469*) 11470 dynamic_linker=no 11471 ;; 11472esac 11473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11474printf "%s\n" "$dynamic_linker" >&6; } 11475test no = "$dynamic_linker" && can_build_shared=no 11476 11477variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11478if test yes = "$GCC"; then 11479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11480fi 11481 11482if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11483 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11484fi 11485 11486if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11487 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11488fi 11489 11490# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11491configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11492 11493# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11494func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11495 11496# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11497configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11596printf %s "checking how to hardcode library paths into programs... " >&6; } 11597hardcode_action= 11598if test -n "$hardcode_libdir_flag_spec" || 11599 test -n "$runpath_var" || 11600 test yes = "$hardcode_automatic"; then 11601 11602 # We can hardcode non-existent directories. 11603 if test no != "$hardcode_direct" && 11604 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11605 # have to relink, otherwise we might link with an installed library 11606 # when we should be linking with a yet-to-be-installed one 11607 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11608 test no != "$hardcode_minus_L"; then 11609 # Linking always hardcodes the temporary library directory. 11610 hardcode_action=relink 11611 else 11612 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11613 hardcode_action=immediate 11614 fi 11615else 11616 # We cannot hardcode anything, or else we can only hardcode existing 11617 # directories. 11618 hardcode_action=unsupported 11619fi 11620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11621printf "%s\n" "$hardcode_action" >&6; } 11622 11623if test relink = "$hardcode_action" || 11624 test yes = "$inherit_rpath"; then 11625 # Fast installation is not supported 11626 enable_fast_install=no 11627elif test yes = "$shlibpath_overrides_runpath" || 11628 test no = "$enable_shared"; then 11629 # Fast installation is not necessary 11630 enable_fast_install=needless 11631fi 11632 11633 11634 11635 11636 11637 11638 if test yes != "$enable_dlopen"; then 11639 enable_dlopen=unknown 11640 enable_dlopen_self=unknown 11641 enable_dlopen_self_static=unknown 11642else 11643 lt_cv_dlopen=no 11644 lt_cv_dlopen_libs= 11645 11646 case $host_os in 11647 beos*) 11648 lt_cv_dlopen=load_add_on 11649 lt_cv_dlopen_libs= 11650 lt_cv_dlopen_self=yes 11651 ;; 11652 11653 mingw* | pw32* | cegcc*) 11654 lt_cv_dlopen=LoadLibrary 11655 lt_cv_dlopen_libs= 11656 ;; 11657 11658 cygwin*) 11659 lt_cv_dlopen=dlopen 11660 lt_cv_dlopen_libs= 11661 ;; 11662 11663 darwin*) 11664 # if libdl is installed we need to link against it 11665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11666printf %s "checking for dlopen in -ldl... " >&6; } 11667if test ${ac_cv_lib_dl_dlopen+y} 11668then : 11669 printf %s "(cached) " >&6 11670else $as_nop 11671 ac_check_lib_save_LIBS=$LIBS 11672LIBS="-ldl $LIBS" 11673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11674/* end confdefs.h. */ 11675 11676/* Override any GCC internal prototype to avoid an error. 11677 Use char because int might match the return type of a GCC 11678 builtin and then its argument prototype would still apply. */ 11679char dlopen (); 11680int 11681main (void) 11682{ 11683return dlopen (); 11684 ; 11685 return 0; 11686} 11687_ACEOF 11688if ac_fn_c_try_link "$LINENO" 11689then : 11690 ac_cv_lib_dl_dlopen=yes 11691else $as_nop 11692 ac_cv_lib_dl_dlopen=no 11693fi 11694rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11695 conftest$ac_exeext conftest.$ac_ext 11696LIBS=$ac_check_lib_save_LIBS 11697fi 11698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11699printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 11700if test "x$ac_cv_lib_dl_dlopen" = xyes 11701then : 11702 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11703else $as_nop 11704 11705 lt_cv_dlopen=dyld 11706 lt_cv_dlopen_libs= 11707 lt_cv_dlopen_self=yes 11708 11709fi 11710 11711 ;; 11712 11713 tpf*) 11714 # Don't try to run any link tests for TPF. We know it's impossible 11715 # because TPF is a cross-compiler, and we know how we open DSOs. 11716 lt_cv_dlopen=dlopen 11717 lt_cv_dlopen_libs= 11718 lt_cv_dlopen_self=no 11719 ;; 11720 11721 *) 11722 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11723if test "x$ac_cv_func_shl_load" = xyes 11724then : 11725 lt_cv_dlopen=shl_load 11726else $as_nop 11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11728printf %s "checking for shl_load in -ldld... " >&6; } 11729if test ${ac_cv_lib_dld_shl_load+y} 11730then : 11731 printf %s "(cached) " >&6 11732else $as_nop 11733 ac_check_lib_save_LIBS=$LIBS 11734LIBS="-ldld $LIBS" 11735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11736/* end confdefs.h. */ 11737 11738/* Override any GCC internal prototype to avoid an error. 11739 Use char because int might match the return type of a GCC 11740 builtin and then its argument prototype would still apply. */ 11741char shl_load (); 11742int 11743main (void) 11744{ 11745return shl_load (); 11746 ; 11747 return 0; 11748} 11749_ACEOF 11750if ac_fn_c_try_link "$LINENO" 11751then : 11752 ac_cv_lib_dld_shl_load=yes 11753else $as_nop 11754 ac_cv_lib_dld_shl_load=no 11755fi 11756rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11757 conftest$ac_exeext conftest.$ac_ext 11758LIBS=$ac_check_lib_save_LIBS 11759fi 11760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11761printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 11762if test "x$ac_cv_lib_dld_shl_load" = xyes 11763then : 11764 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11765else $as_nop 11766 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11767if test "x$ac_cv_func_dlopen" = xyes 11768then : 11769 lt_cv_dlopen=dlopen 11770else $as_nop 11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11772printf %s "checking for dlopen in -ldl... " >&6; } 11773if test ${ac_cv_lib_dl_dlopen+y} 11774then : 11775 printf %s "(cached) " >&6 11776else $as_nop 11777 ac_check_lib_save_LIBS=$LIBS 11778LIBS="-ldl $LIBS" 11779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11780/* end confdefs.h. */ 11781 11782/* Override any GCC internal prototype to avoid an error. 11783 Use char because int might match the return type of a GCC 11784 builtin and then its argument prototype would still apply. */ 11785char dlopen (); 11786int 11787main (void) 11788{ 11789return dlopen (); 11790 ; 11791 return 0; 11792} 11793_ACEOF 11794if ac_fn_c_try_link "$LINENO" 11795then : 11796 ac_cv_lib_dl_dlopen=yes 11797else $as_nop 11798 ac_cv_lib_dl_dlopen=no 11799fi 11800rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11801 conftest$ac_exeext conftest.$ac_ext 11802LIBS=$ac_check_lib_save_LIBS 11803fi 11804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11805printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 11806if test "x$ac_cv_lib_dl_dlopen" = xyes 11807then : 11808 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11809else $as_nop 11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11811printf %s "checking for dlopen in -lsvld... " >&6; } 11812if test ${ac_cv_lib_svld_dlopen+y} 11813then : 11814 printf %s "(cached) " >&6 11815else $as_nop 11816 ac_check_lib_save_LIBS=$LIBS 11817LIBS="-lsvld $LIBS" 11818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11819/* end confdefs.h. */ 11820 11821/* Override any GCC internal prototype to avoid an error. 11822 Use char because int might match the return type of a GCC 11823 builtin and then its argument prototype would still apply. */ 11824char dlopen (); 11825int 11826main (void) 11827{ 11828return dlopen (); 11829 ; 11830 return 0; 11831} 11832_ACEOF 11833if ac_fn_c_try_link "$LINENO" 11834then : 11835 ac_cv_lib_svld_dlopen=yes 11836else $as_nop 11837 ac_cv_lib_svld_dlopen=no 11838fi 11839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11840 conftest$ac_exeext conftest.$ac_ext 11841LIBS=$ac_check_lib_save_LIBS 11842fi 11843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11844printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 11845if test "x$ac_cv_lib_svld_dlopen" = xyes 11846then : 11847 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11848else $as_nop 11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11850printf %s "checking for dld_link in -ldld... " >&6; } 11851if test ${ac_cv_lib_dld_dld_link+y} 11852then : 11853 printf %s "(cached) " >&6 11854else $as_nop 11855 ac_check_lib_save_LIBS=$LIBS 11856LIBS="-ldld $LIBS" 11857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11858/* end confdefs.h. */ 11859 11860/* Override any GCC internal prototype to avoid an error. 11861 Use char because int might match the return type of a GCC 11862 builtin and then its argument prototype would still apply. */ 11863char dld_link (); 11864int 11865main (void) 11866{ 11867return dld_link (); 11868 ; 11869 return 0; 11870} 11871_ACEOF 11872if ac_fn_c_try_link "$LINENO" 11873then : 11874 ac_cv_lib_dld_dld_link=yes 11875else $as_nop 11876 ac_cv_lib_dld_dld_link=no 11877fi 11878rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11879 conftest$ac_exeext conftest.$ac_ext 11880LIBS=$ac_check_lib_save_LIBS 11881fi 11882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11883printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 11884if test "x$ac_cv_lib_dld_dld_link" = xyes 11885then : 11886 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11887fi 11888 11889 11890fi 11891 11892 11893fi 11894 11895 11896fi 11897 11898 11899fi 11900 11901 11902fi 11903 11904 ;; 11905 esac 11906 11907 if test no = "$lt_cv_dlopen"; then 11908 enable_dlopen=no 11909 else 11910 enable_dlopen=yes 11911 fi 11912 11913 case $lt_cv_dlopen in 11914 dlopen) 11915 save_CPPFLAGS=$CPPFLAGS 11916 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11917 11918 save_LDFLAGS=$LDFLAGS 11919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11920 11921 save_LIBS=$LIBS 11922 LIBS="$lt_cv_dlopen_libs $LIBS" 11923 11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11925printf %s "checking whether a program can dlopen itself... " >&6; } 11926if test ${lt_cv_dlopen_self+y} 11927then : 11928 printf %s "(cached) " >&6 11929else $as_nop 11930 if test yes = "$cross_compiling"; then : 11931 lt_cv_dlopen_self=cross 11932else 11933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11934 lt_status=$lt_dlunknown 11935 cat > conftest.$ac_ext <<_LT_EOF 11936#line $LINENO "configure" 11937#include "confdefs.h" 11938 11939#if HAVE_DLFCN_H 11940#include <dlfcn.h> 11941#endif 11942 11943#include <stdio.h> 11944 11945#ifdef RTLD_GLOBAL 11946# define LT_DLGLOBAL RTLD_GLOBAL 11947#else 11948# ifdef DL_GLOBAL 11949# define LT_DLGLOBAL DL_GLOBAL 11950# else 11951# define LT_DLGLOBAL 0 11952# endif 11953#endif 11954 11955/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11956 find out it does not work in some platform. */ 11957#ifndef LT_DLLAZY_OR_NOW 11958# ifdef RTLD_LAZY 11959# define LT_DLLAZY_OR_NOW RTLD_LAZY 11960# else 11961# ifdef DL_LAZY 11962# define LT_DLLAZY_OR_NOW DL_LAZY 11963# else 11964# ifdef RTLD_NOW 11965# define LT_DLLAZY_OR_NOW RTLD_NOW 11966# else 11967# ifdef DL_NOW 11968# define LT_DLLAZY_OR_NOW DL_NOW 11969# else 11970# define LT_DLLAZY_OR_NOW 0 11971# endif 11972# endif 11973# endif 11974# endif 11975#endif 11976 11977/* When -fvisibility=hidden is used, assume the code has been annotated 11978 correspondingly for the symbols needed. */ 11979#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11980int fnord () __attribute__((visibility("default"))); 11981#endif 11982 11983int fnord () { return 42; } 11984int main () 11985{ 11986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11987 int status = $lt_dlunknown; 11988 11989 if (self) 11990 { 11991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11992 else 11993 { 11994 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11995 else puts (dlerror ()); 11996 } 11997 /* dlclose (self); */ 11998 } 11999 else 12000 puts (dlerror ()); 12001 12002 return status; 12003} 12004_LT_EOF 12005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12006 (eval $ac_link) 2>&5 12007 ac_status=$? 12008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12009 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12010 (./conftest; exit; ) >&5 2>/dev/null 12011 lt_status=$? 12012 case x$lt_status in 12013 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12014 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12015 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12016 esac 12017 else : 12018 # compilation failed 12019 lt_cv_dlopen_self=no 12020 fi 12021fi 12022rm -fr conftest* 12023 12024 12025fi 12026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12027printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12028 12029 if test yes = "$lt_cv_dlopen_self"; then 12030 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12032printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12033if test ${lt_cv_dlopen_self_static+y} 12034then : 12035 printf %s "(cached) " >&6 12036else $as_nop 12037 if test yes = "$cross_compiling"; then : 12038 lt_cv_dlopen_self_static=cross 12039else 12040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12041 lt_status=$lt_dlunknown 12042 cat > conftest.$ac_ext <<_LT_EOF 12043#line $LINENO "configure" 12044#include "confdefs.h" 12045 12046#if HAVE_DLFCN_H 12047#include <dlfcn.h> 12048#endif 12049 12050#include <stdio.h> 12051 12052#ifdef RTLD_GLOBAL 12053# define LT_DLGLOBAL RTLD_GLOBAL 12054#else 12055# ifdef DL_GLOBAL 12056# define LT_DLGLOBAL DL_GLOBAL 12057# else 12058# define LT_DLGLOBAL 0 12059# endif 12060#endif 12061 12062/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12063 find out it does not work in some platform. */ 12064#ifndef LT_DLLAZY_OR_NOW 12065# ifdef RTLD_LAZY 12066# define LT_DLLAZY_OR_NOW RTLD_LAZY 12067# else 12068# ifdef DL_LAZY 12069# define LT_DLLAZY_OR_NOW DL_LAZY 12070# else 12071# ifdef RTLD_NOW 12072# define LT_DLLAZY_OR_NOW RTLD_NOW 12073# else 12074# ifdef DL_NOW 12075# define LT_DLLAZY_OR_NOW DL_NOW 12076# else 12077# define LT_DLLAZY_OR_NOW 0 12078# endif 12079# endif 12080# endif 12081# endif 12082#endif 12083 12084/* When -fvisibility=hidden is used, assume the code has been annotated 12085 correspondingly for the symbols needed. */ 12086#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12087int fnord () __attribute__((visibility("default"))); 12088#endif 12089 12090int fnord () { return 42; } 12091int main () 12092{ 12093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12094 int status = $lt_dlunknown; 12095 12096 if (self) 12097 { 12098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12099 else 12100 { 12101 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12102 else puts (dlerror ()); 12103 } 12104 /* dlclose (self); */ 12105 } 12106 else 12107 puts (dlerror ()); 12108 12109 return status; 12110} 12111_LT_EOF 12112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12113 (eval $ac_link) 2>&5 12114 ac_status=$? 12115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12116 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12117 (./conftest; exit; ) >&5 2>/dev/null 12118 lt_status=$? 12119 case x$lt_status in 12120 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12121 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12122 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12123 esac 12124 else : 12125 # compilation failed 12126 lt_cv_dlopen_self_static=no 12127 fi 12128fi 12129rm -fr conftest* 12130 12131 12132fi 12133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12134printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12135 fi 12136 12137 CPPFLAGS=$save_CPPFLAGS 12138 LDFLAGS=$save_LDFLAGS 12139 LIBS=$save_LIBS 12140 ;; 12141 esac 12142 12143 case $lt_cv_dlopen_self in 12144 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12145 *) enable_dlopen_self=unknown ;; 12146 esac 12147 12148 case $lt_cv_dlopen_self_static in 12149 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12150 *) enable_dlopen_self_static=unknown ;; 12151 esac 12152fi 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170striplib= 12171old_striplib= 12172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12173printf %s "checking whether stripping libraries is possible... " >&6; } 12174if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12175 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12176 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12178printf "%s\n" "yes" >&6; } 12179else 12180# FIXME - insert some real tests, host_os isn't really good enough 12181 case $host_os in 12182 darwin*) 12183 if test -n "$STRIP"; then 12184 striplib="$STRIP -x" 12185 old_striplib="$STRIP -S" 12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12187printf "%s\n" "yes" >&6; } 12188 else 12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12190printf "%s\n" "no" >&6; } 12191 fi 12192 ;; 12193 *) 12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12195printf "%s\n" "no" >&6; } 12196 ;; 12197 esac 12198fi 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 # Report what library types will actually be built 12212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12213printf %s "checking if libtool supports shared libraries... " >&6; } 12214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12215printf "%s\n" "$can_build_shared" >&6; } 12216 12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12218printf %s "checking whether to build shared libraries... " >&6; } 12219 test no = "$can_build_shared" && enable_shared=no 12220 12221 # On AIX, shared libraries and static libraries use the same namespace, and 12222 # are all built from PIC. 12223 case $host_os in 12224 aix3*) 12225 test yes = "$enable_shared" && enable_static=no 12226 if test -n "$RANLIB"; then 12227 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12228 postinstall_cmds='$RANLIB $lib' 12229 fi 12230 ;; 12231 12232 aix[4-9]*) 12233 if test ia64 != "$host_cpu"; then 12234 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12235 yes,aix,yes) ;; # shared object as lib.so file only 12236 yes,svr4,*) ;; # shared object as lib.so archive member only 12237 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12238 esac 12239 fi 12240 ;; 12241 esac 12242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12243printf "%s\n" "$enable_shared" >&6; } 12244 12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12246printf %s "checking whether to build static libraries... " >&6; } 12247 # Make sure either enable_shared or enable_static is yes. 12248 test yes = "$enable_shared" || enable_static=yes 12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12250printf "%s\n" "$enable_static" >&6; } 12251 12252 12253 12254 12255fi 12256ac_ext=c 12257ac_cpp='$CPP $CPPFLAGS' 12258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12260ac_compiler_gnu=$ac_cv_c_compiler_gnu 12261 12262CC=$lt_save_CC 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 ac_config_commands="$ac_config_commands libtool" 12279 12280 12281 12282 12283# Only expand once: 12284 12285 12286 12287 12288OURCPPFLAGS='' 12289CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}} 12290CFLAGS="$CFLAGS" 12291 12292# Checks for programs. 12293ac_ext=c 12294ac_cpp='$CPP $CPPFLAGS' 12295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12297ac_compiler_gnu=$ac_cv_c_compiler_gnu 12298if test -n "$ac_tool_prefix"; then 12299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12300set dummy ${ac_tool_prefix}gcc; ac_word=$2 12301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12302printf %s "checking for $ac_word... " >&6; } 12303if test ${ac_cv_prog_CC+y} 12304then : 12305 printf %s "(cached) " >&6 12306else $as_nop 12307 if test -n "$CC"; then 12308 ac_cv_prog_CC="$CC" # Let the user override the test. 12309else 12310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12311for as_dir in $PATH 12312do 12313 IFS=$as_save_IFS 12314 case $as_dir in #((( 12315 '') as_dir=./ ;; 12316 */) ;; 12317 *) as_dir=$as_dir/ ;; 12318 esac 12319 for ac_exec_ext in '' $ac_executable_extensions; do 12320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12321 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12323 break 2 12324 fi 12325done 12326 done 12327IFS=$as_save_IFS 12328 12329fi 12330fi 12331CC=$ac_cv_prog_CC 12332if test -n "$CC"; then 12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12334printf "%s\n" "$CC" >&6; } 12335else 12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12337printf "%s\n" "no" >&6; } 12338fi 12339 12340 12341fi 12342if test -z "$ac_cv_prog_CC"; then 12343 ac_ct_CC=$CC 12344 # Extract the first word of "gcc", so it can be a program name with args. 12345set dummy gcc; ac_word=$2 12346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12347printf %s "checking for $ac_word... " >&6; } 12348if test ${ac_cv_prog_ac_ct_CC+y} 12349then : 12350 printf %s "(cached) " >&6 12351else $as_nop 12352 if test -n "$ac_ct_CC"; then 12353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12354else 12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12356for as_dir in $PATH 12357do 12358 IFS=$as_save_IFS 12359 case $as_dir in #((( 12360 '') as_dir=./ ;; 12361 */) ;; 12362 *) as_dir=$as_dir/ ;; 12363 esac 12364 for ac_exec_ext in '' $ac_executable_extensions; do 12365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12366 ac_cv_prog_ac_ct_CC="gcc" 12367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12368 break 2 12369 fi 12370done 12371 done 12372IFS=$as_save_IFS 12373 12374fi 12375fi 12376ac_ct_CC=$ac_cv_prog_ac_ct_CC 12377if test -n "$ac_ct_CC"; then 12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12379printf "%s\n" "$ac_ct_CC" >&6; } 12380else 12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12382printf "%s\n" "no" >&6; } 12383fi 12384 12385 if test "x$ac_ct_CC" = x; then 12386 CC="" 12387 else 12388 case $cross_compiling:$ac_tool_warned in 12389yes:) 12390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12391printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12392ac_tool_warned=yes ;; 12393esac 12394 CC=$ac_ct_CC 12395 fi 12396else 12397 CC="$ac_cv_prog_CC" 12398fi 12399 12400if test -z "$CC"; then 12401 if test -n "$ac_tool_prefix"; then 12402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12403set dummy ${ac_tool_prefix}cc; ac_word=$2 12404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12405printf %s "checking for $ac_word... " >&6; } 12406if test ${ac_cv_prog_CC+y} 12407then : 12408 printf %s "(cached) " >&6 12409else $as_nop 12410 if test -n "$CC"; then 12411 ac_cv_prog_CC="$CC" # Let the user override the test. 12412else 12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12414for as_dir in $PATH 12415do 12416 IFS=$as_save_IFS 12417 case $as_dir in #((( 12418 '') as_dir=./ ;; 12419 */) ;; 12420 *) as_dir=$as_dir/ ;; 12421 esac 12422 for ac_exec_ext in '' $ac_executable_extensions; do 12423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12424 ac_cv_prog_CC="${ac_tool_prefix}cc" 12425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12426 break 2 12427 fi 12428done 12429 done 12430IFS=$as_save_IFS 12431 12432fi 12433fi 12434CC=$ac_cv_prog_CC 12435if test -n "$CC"; then 12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12437printf "%s\n" "$CC" >&6; } 12438else 12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12440printf "%s\n" "no" >&6; } 12441fi 12442 12443 12444 fi 12445fi 12446if test -z "$CC"; then 12447 # Extract the first word of "cc", so it can be a program name with args. 12448set dummy cc; ac_word=$2 12449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12450printf %s "checking for $ac_word... " >&6; } 12451if test ${ac_cv_prog_CC+y} 12452then : 12453 printf %s "(cached) " >&6 12454else $as_nop 12455 if test -n "$CC"; then 12456 ac_cv_prog_CC="$CC" # Let the user override the test. 12457else 12458 ac_prog_rejected=no 12459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12460for as_dir in $PATH 12461do 12462 IFS=$as_save_IFS 12463 case $as_dir in #((( 12464 '') as_dir=./ ;; 12465 */) ;; 12466 *) as_dir=$as_dir/ ;; 12467 esac 12468 for ac_exec_ext in '' $ac_executable_extensions; do 12469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12470 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12471 ac_prog_rejected=yes 12472 continue 12473 fi 12474 ac_cv_prog_CC="cc" 12475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12476 break 2 12477 fi 12478done 12479 done 12480IFS=$as_save_IFS 12481 12482if test $ac_prog_rejected = yes; then 12483 # We found a bogon in the path, so make sure we never use it. 12484 set dummy $ac_cv_prog_CC 12485 shift 12486 if test $# != 0; then 12487 # We chose a different compiler from the bogus one. 12488 # However, it has the same basename, so the bogon will be chosen 12489 # first if we set CC to just the basename; use the full file name. 12490 shift 12491 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 12492 fi 12493fi 12494fi 12495fi 12496CC=$ac_cv_prog_CC 12497if test -n "$CC"; then 12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12499printf "%s\n" "$CC" >&6; } 12500else 12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12502printf "%s\n" "no" >&6; } 12503fi 12504 12505 12506fi 12507if test -z "$CC"; then 12508 if test -n "$ac_tool_prefix"; then 12509 for ac_prog in cl.exe 12510 do 12511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12512set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12514printf %s "checking for $ac_word... " >&6; } 12515if test ${ac_cv_prog_CC+y} 12516then : 12517 printf %s "(cached) " >&6 12518else $as_nop 12519 if test -n "$CC"; then 12520 ac_cv_prog_CC="$CC" # Let the user override the test. 12521else 12522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12523for as_dir in $PATH 12524do 12525 IFS=$as_save_IFS 12526 case $as_dir in #((( 12527 '') as_dir=./ ;; 12528 */) ;; 12529 *) as_dir=$as_dir/ ;; 12530 esac 12531 for ac_exec_ext in '' $ac_executable_extensions; do 12532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12535 break 2 12536 fi 12537done 12538 done 12539IFS=$as_save_IFS 12540 12541fi 12542fi 12543CC=$ac_cv_prog_CC 12544if test -n "$CC"; then 12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12546printf "%s\n" "$CC" >&6; } 12547else 12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12549printf "%s\n" "no" >&6; } 12550fi 12551 12552 12553 test -n "$CC" && break 12554 done 12555fi 12556if test -z "$CC"; then 12557 ac_ct_CC=$CC 12558 for ac_prog in cl.exe 12559do 12560 # Extract the first word of "$ac_prog", so it can be a program name with args. 12561set dummy $ac_prog; ac_word=$2 12562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12563printf %s "checking for $ac_word... " >&6; } 12564if test ${ac_cv_prog_ac_ct_CC+y} 12565then : 12566 printf %s "(cached) " >&6 12567else $as_nop 12568 if test -n "$ac_ct_CC"; then 12569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12570else 12571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12572for as_dir in $PATH 12573do 12574 IFS=$as_save_IFS 12575 case $as_dir in #((( 12576 '') as_dir=./ ;; 12577 */) ;; 12578 *) as_dir=$as_dir/ ;; 12579 esac 12580 for ac_exec_ext in '' $ac_executable_extensions; do 12581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12582 ac_cv_prog_ac_ct_CC="$ac_prog" 12583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12584 break 2 12585 fi 12586done 12587 done 12588IFS=$as_save_IFS 12589 12590fi 12591fi 12592ac_ct_CC=$ac_cv_prog_ac_ct_CC 12593if test -n "$ac_ct_CC"; then 12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12595printf "%s\n" "$ac_ct_CC" >&6; } 12596else 12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12598printf "%s\n" "no" >&6; } 12599fi 12600 12601 12602 test -n "$ac_ct_CC" && break 12603done 12604 12605 if test "x$ac_ct_CC" = x; then 12606 CC="" 12607 else 12608 case $cross_compiling:$ac_tool_warned in 12609yes:) 12610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12611printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12612ac_tool_warned=yes ;; 12613esac 12614 CC=$ac_ct_CC 12615 fi 12616fi 12617 12618fi 12619if test -z "$CC"; then 12620 if test -n "$ac_tool_prefix"; then 12621 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 12622set dummy ${ac_tool_prefix}clang; ac_word=$2 12623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12624printf %s "checking for $ac_word... " >&6; } 12625if test ${ac_cv_prog_CC+y} 12626then : 12627 printf %s "(cached) " >&6 12628else $as_nop 12629 if test -n "$CC"; then 12630 ac_cv_prog_CC="$CC" # Let the user override the test. 12631else 12632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12633for as_dir in $PATH 12634do 12635 IFS=$as_save_IFS 12636 case $as_dir in #((( 12637 '') as_dir=./ ;; 12638 */) ;; 12639 *) as_dir=$as_dir/ ;; 12640 esac 12641 for ac_exec_ext in '' $ac_executable_extensions; do 12642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12643 ac_cv_prog_CC="${ac_tool_prefix}clang" 12644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12645 break 2 12646 fi 12647done 12648 done 12649IFS=$as_save_IFS 12650 12651fi 12652fi 12653CC=$ac_cv_prog_CC 12654if test -n "$CC"; then 12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12656printf "%s\n" "$CC" >&6; } 12657else 12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12659printf "%s\n" "no" >&6; } 12660fi 12661 12662 12663fi 12664if test -z "$ac_cv_prog_CC"; then 12665 ac_ct_CC=$CC 12666 # Extract the first word of "clang", so it can be a program name with args. 12667set dummy clang; ac_word=$2 12668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12669printf %s "checking for $ac_word... " >&6; } 12670if test ${ac_cv_prog_ac_ct_CC+y} 12671then : 12672 printf %s "(cached) " >&6 12673else $as_nop 12674 if test -n "$ac_ct_CC"; then 12675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12676else 12677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12678for as_dir in $PATH 12679do 12680 IFS=$as_save_IFS 12681 case $as_dir in #((( 12682 '') as_dir=./ ;; 12683 */) ;; 12684 *) as_dir=$as_dir/ ;; 12685 esac 12686 for ac_exec_ext in '' $ac_executable_extensions; do 12687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12688 ac_cv_prog_ac_ct_CC="clang" 12689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12690 break 2 12691 fi 12692done 12693 done 12694IFS=$as_save_IFS 12695 12696fi 12697fi 12698ac_ct_CC=$ac_cv_prog_ac_ct_CC 12699if test -n "$ac_ct_CC"; then 12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12701printf "%s\n" "$ac_ct_CC" >&6; } 12702else 12703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12704printf "%s\n" "no" >&6; } 12705fi 12706 12707 if test "x$ac_ct_CC" = x; then 12708 CC="" 12709 else 12710 case $cross_compiling:$ac_tool_warned in 12711yes:) 12712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12713printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12714ac_tool_warned=yes ;; 12715esac 12716 CC=$ac_ct_CC 12717 fi 12718else 12719 CC="$ac_cv_prog_CC" 12720fi 12721 12722fi 12723 12724 12725test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12726printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12727as_fn_error $? "no acceptable C compiler found in \$PATH 12728See \`config.log' for more details" "$LINENO" 5; } 12729 12730# Provide some information about the compiler. 12731printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12732set X $ac_compile 12733ac_compiler=$2 12734for ac_option in --version -v -V -qversion -version; do 12735 { { ac_try="$ac_compiler $ac_option >&5" 12736case "(($ac_try" in 12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12738 *) ac_try_echo=$ac_try;; 12739esac 12740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12741printf "%s\n" "$ac_try_echo"; } >&5 12742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12743 ac_status=$? 12744 if test -s conftest.err; then 12745 sed '10a\ 12746... rest of stderr output deleted ... 12747 10q' conftest.err >conftest.er1 12748 cat conftest.er1 >&5 12749 fi 12750 rm -f conftest.er1 conftest.err 12751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12752 test $ac_status = 0; } 12753done 12754 12755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 12756printf %s "checking whether the compiler supports GNU C... " >&6; } 12757if test ${ac_cv_c_compiler_gnu+y} 12758then : 12759 printf %s "(cached) " >&6 12760else $as_nop 12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12762/* end confdefs.h. */ 12763 12764int 12765main (void) 12766{ 12767#ifndef __GNUC__ 12768 choke me 12769#endif 12770 12771 ; 12772 return 0; 12773} 12774_ACEOF 12775if ac_fn_c_try_compile "$LINENO" 12776then : 12777 ac_compiler_gnu=yes 12778else $as_nop 12779 ac_compiler_gnu=no 12780fi 12781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12782ac_cv_c_compiler_gnu=$ac_compiler_gnu 12783 12784fi 12785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12786printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 12787ac_compiler_gnu=$ac_cv_c_compiler_gnu 12788 12789if test $ac_compiler_gnu = yes; then 12790 GCC=yes 12791else 12792 GCC= 12793fi 12794ac_test_CFLAGS=${CFLAGS+y} 12795ac_save_CFLAGS=$CFLAGS 12796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12797printf %s "checking whether $CC accepts -g... " >&6; } 12798if test ${ac_cv_prog_cc_g+y} 12799then : 12800 printf %s "(cached) " >&6 12801else $as_nop 12802 ac_save_c_werror_flag=$ac_c_werror_flag 12803 ac_c_werror_flag=yes 12804 ac_cv_prog_cc_g=no 12805 CFLAGS="-g" 12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12807/* end confdefs.h. */ 12808 12809int 12810main (void) 12811{ 12812 12813 ; 12814 return 0; 12815} 12816_ACEOF 12817if ac_fn_c_try_compile "$LINENO" 12818then : 12819 ac_cv_prog_cc_g=yes 12820else $as_nop 12821 CFLAGS="" 12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12823/* end confdefs.h. */ 12824 12825int 12826main (void) 12827{ 12828 12829 ; 12830 return 0; 12831} 12832_ACEOF 12833if ac_fn_c_try_compile "$LINENO" 12834then : 12835 12836else $as_nop 12837 ac_c_werror_flag=$ac_save_c_werror_flag 12838 CFLAGS="-g" 12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12840/* end confdefs.h. */ 12841 12842int 12843main (void) 12844{ 12845 12846 ; 12847 return 0; 12848} 12849_ACEOF 12850if ac_fn_c_try_compile "$LINENO" 12851then : 12852 ac_cv_prog_cc_g=yes 12853fi 12854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12855fi 12856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12857fi 12858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12859 ac_c_werror_flag=$ac_save_c_werror_flag 12860fi 12861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12862printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 12863if test $ac_test_CFLAGS; then 12864 CFLAGS=$ac_save_CFLAGS 12865elif test $ac_cv_prog_cc_g = yes; then 12866 if test "$GCC" = yes; then 12867 CFLAGS="-g -O2" 12868 else 12869 CFLAGS="-g" 12870 fi 12871else 12872 if test "$GCC" = yes; then 12873 CFLAGS="-O2" 12874 else 12875 CFLAGS= 12876 fi 12877fi 12878ac_prog_cc_stdc=no 12879if test x$ac_prog_cc_stdc = xno 12880then : 12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 12882printf %s "checking for $CC option to enable C11 features... " >&6; } 12883if test ${ac_cv_prog_cc_c11+y} 12884then : 12885 printf %s "(cached) " >&6 12886else $as_nop 12887 ac_cv_prog_cc_c11=no 12888ac_save_CC=$CC 12889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891$ac_c_conftest_c11_program 12892_ACEOF 12893for ac_arg in '' -std=gnu11 12894do 12895 CC="$ac_save_CC $ac_arg" 12896 if ac_fn_c_try_compile "$LINENO" 12897then : 12898 ac_cv_prog_cc_c11=$ac_arg 12899fi 12900rm -f core conftest.err conftest.$ac_objext conftest.beam 12901 test "x$ac_cv_prog_cc_c11" != "xno" && break 12902done 12903rm -f conftest.$ac_ext 12904CC=$ac_save_CC 12905fi 12906 12907if test "x$ac_cv_prog_cc_c11" = xno 12908then : 12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12910printf "%s\n" "unsupported" >&6; } 12911else $as_nop 12912 if test "x$ac_cv_prog_cc_c11" = x 12913then : 12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12915printf "%s\n" "none needed" >&6; } 12916else $as_nop 12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 12918printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 12919 CC="$CC $ac_cv_prog_cc_c11" 12920fi 12921 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 12922 ac_prog_cc_stdc=c11 12923fi 12924fi 12925if test x$ac_prog_cc_stdc = xno 12926then : 12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 12928printf %s "checking for $CC option to enable C99 features... " >&6; } 12929if test ${ac_cv_prog_cc_c99+y} 12930then : 12931 printf %s "(cached) " >&6 12932else $as_nop 12933 ac_cv_prog_cc_c99=no 12934ac_save_CC=$CC 12935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12936/* end confdefs.h. */ 12937$ac_c_conftest_c99_program 12938_ACEOF 12939for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 12940do 12941 CC="$ac_save_CC $ac_arg" 12942 if ac_fn_c_try_compile "$LINENO" 12943then : 12944 ac_cv_prog_cc_c99=$ac_arg 12945fi 12946rm -f core conftest.err conftest.$ac_objext conftest.beam 12947 test "x$ac_cv_prog_cc_c99" != "xno" && break 12948done 12949rm -f conftest.$ac_ext 12950CC=$ac_save_CC 12951fi 12952 12953if test "x$ac_cv_prog_cc_c99" = xno 12954then : 12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12956printf "%s\n" "unsupported" >&6; } 12957else $as_nop 12958 if test "x$ac_cv_prog_cc_c99" = x 12959then : 12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12961printf "%s\n" "none needed" >&6; } 12962else $as_nop 12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12964printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 12965 CC="$CC $ac_cv_prog_cc_c99" 12966fi 12967 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 12968 ac_prog_cc_stdc=c99 12969fi 12970fi 12971if test x$ac_prog_cc_stdc = xno 12972then : 12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 12974printf %s "checking for $CC option to enable C89 features... " >&6; } 12975if test ${ac_cv_prog_cc_c89+y} 12976then : 12977 printf %s "(cached) " >&6 12978else $as_nop 12979 ac_cv_prog_cc_c89=no 12980ac_save_CC=$CC 12981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12982/* end confdefs.h. */ 12983$ac_c_conftest_c89_program 12984_ACEOF 12985for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12986do 12987 CC="$ac_save_CC $ac_arg" 12988 if ac_fn_c_try_compile "$LINENO" 12989then : 12990 ac_cv_prog_cc_c89=$ac_arg 12991fi 12992rm -f core conftest.err conftest.$ac_objext conftest.beam 12993 test "x$ac_cv_prog_cc_c89" != "xno" && break 12994done 12995rm -f conftest.$ac_ext 12996CC=$ac_save_CC 12997fi 12998 12999if test "x$ac_cv_prog_cc_c89" = xno 13000then : 13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13002printf "%s\n" "unsupported" >&6; } 13003else $as_nop 13004 if test "x$ac_cv_prog_cc_c89" = x 13005then : 13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13007printf "%s\n" "none needed" >&6; } 13008else $as_nop 13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13010printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 13011 CC="$CC $ac_cv_prog_cc_c89" 13012fi 13013 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 13014 ac_prog_cc_stdc=c89 13015fi 13016fi 13017 13018ac_ext=c 13019ac_cpp='$CPP $CPPFLAGS' 13020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13022ac_compiler_gnu=$ac_cv_c_compiler_gnu 13023 13024 13025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 13026printf %s "checking $CC dependency flag... " >&6; } 13027echo 'void f(){}' >conftest.c 13028if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 13029 DEPFLAG="-MM" 13030else 13031 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 13032 DEPFLAG="-xM1" 13033 else 13034 DEPFLAG="-MM" # dunno do something 13035 fi 13036fi 13037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 13038printf "%s\n" "$DEPFLAG" >&6; } 13039rm -f conftest.c 13040 13041 13042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 13043printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 13044set x ${MAKE-make} 13045ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 13046if eval test \${ac_cv_prog_make_${ac_make}_set+y} 13047then : 13048 printf %s "(cached) " >&6 13049else $as_nop 13050 cat >conftest.make <<\_ACEOF 13051SHELL = /bin/sh 13052all: 13053 @echo '@@@%%%=$(MAKE)=@@@%%%' 13054_ACEOF 13055# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 13056case `${MAKE-make} -f conftest.make 2>/dev/null` in 13057 *@@@%%%=?*=@@@%%%*) 13058 eval ac_cv_prog_make_${ac_make}_set=yes;; 13059 *) 13060 eval ac_cv_prog_make_${ac_make}_set=no;; 13061esac 13062rm -f conftest.make 13063fi 13064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13066printf "%s\n" "yes" >&6; } 13067 SET_MAKE= 13068else 13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13070printf "%s\n" "no" >&6; } 13071 SET_MAKE="MAKE=${MAKE-make}" 13072fi 13073 13074 13075# Extra (sp)lint flags for NetBSD 13076 13077case "$host_os" in 13078 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS" 13079 ;; 13080 *) LINTFLAGS="$LINTFLAGS" 13081 ;; 13082esac 13083 13084 13085 13086printf "%s\n" "#define WINVER 0x0502" >>confdefs.h 13087 13088 13089 13090 13091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 13092printf %s "checking whether $CC supports -std=c99... " >&6; } 13093cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 13094if eval test \${cv_prog_cc_flag_$cache+y} 13095then : 13096 printf %s "(cached) " >&6 13097else $as_nop 13098 13099echo 'void f(void){}' >conftest.c 13100if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 13101eval "cv_prog_cc_flag_$cache=yes" 13102else 13103eval "cv_prog_cc_flag_$cache=no" 13104fi 13105rm -f conftest conftest.o conftest.c 13106 13107fi 13108 13109if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13111printf "%s\n" "yes" >&6; } 13112: 13113C99FLAG="-std=c99" 13114else 13115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13116printf "%s\n" "no" >&6; } 13117: 13118 13119fi 13120 13121 13122 13123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 13124printf %s "checking whether $CC supports -xc99... " >&6; } 13125cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 13126if eval test \${cv_prog_cc_flag_$cache+y} 13127then : 13128 printf %s "(cached) " >&6 13129else $as_nop 13130 13131echo 'void f(void){}' >conftest.c 13132if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 13133eval "cv_prog_cc_flag_$cache=yes" 13134else 13135eval "cv_prog_cc_flag_$cache=no" 13136fi 13137rm -f conftest conftest.o conftest.c 13138 13139fi 13140 13141if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13143printf "%s\n" "yes" >&6; } 13144: 13145C99FLAG="-xc99" 13146else 13147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13148printf "%s\n" "no" >&6; } 13149: 13150 13151fi 13152 13153 13154# routine to copy files 13155# argument 1 is a list of files (relative to the source dir) 13156# argument 2 is a destination directory (relative to the current 13157# working directory 13158 13159 13160# copy all .h files in the dir at argument 1 13161# (relative to source) to the dir at argument 2 13162# (relative to current dir) 13163 13164 13165# Checks for typedefs, structures, and compiler characteristics. 13166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13167printf %s "checking for an ANSI C-conforming const... " >&6; } 13168if test ${ac_cv_c_const+y} 13169then : 13170 printf %s "(cached) " >&6 13171else $as_nop 13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13173/* end confdefs.h. */ 13174 13175int 13176main (void) 13177{ 13178 13179#ifndef __cplusplus 13180 /* Ultrix mips cc rejects this sort of thing. */ 13181 typedef int charset[2]; 13182 const charset cs = { 0, 0 }; 13183 /* SunOS 4.1.1 cc rejects this. */ 13184 char const *const *pcpcc; 13185 char **ppc; 13186 /* NEC SVR4.0.2 mips cc rejects this. */ 13187 struct point {int x, y;}; 13188 static struct point const zero = {0,0}; 13189 /* IBM XL C 1.02.0.0 rejects this. 13190 It does not let you subtract one const X* pointer from another in 13191 an arm of an if-expression whose if-part is not a constant 13192 expression */ 13193 const char *g = "string"; 13194 pcpcc = &g + (g ? g-g : 0); 13195 /* HPUX 7.0 cc rejects these. */ 13196 ++pcpcc; 13197 ppc = (char**) pcpcc; 13198 pcpcc = (char const *const *) ppc; 13199 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13200 char tx; 13201 char *t = &tx; 13202 char const *s = 0 ? (char *) 0 : (char const *) 0; 13203 13204 *t++ = 0; 13205 if (s) return 0; 13206 } 13207 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13208 int x[] = {25, 17}; 13209 const int *foo = &x[0]; 13210 ++foo; 13211 } 13212 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13213 typedef const int *iptr; 13214 iptr p = 0; 13215 ++p; 13216 } 13217 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 13218 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13219 struct s { int j; const int *ap[3]; } bx; 13220 struct s *b = &bx; b->j = 5; 13221 } 13222 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13223 const int foo = 10; 13224 if (!foo) return 0; 13225 } 13226 return !cs[0] && !zero.x; 13227#endif 13228 13229 ; 13230 return 0; 13231} 13232_ACEOF 13233if ac_fn_c_try_compile "$LINENO" 13234then : 13235 ac_cv_c_const=yes 13236else $as_nop 13237 ac_cv_c_const=no 13238fi 13239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13240fi 13241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13242printf "%s\n" "$ac_cv_c_const" >&6; } 13243if test $ac_cv_c_const = no; then 13244 13245printf "%s\n" "#define const /**/" >>confdefs.h 13246 13247fi 13248 13249ac_ext=c 13250ac_cpp='$CPP $CPPFLAGS' 13251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13253ac_compiler_gnu=$ac_cv_c_compiler_gnu 13254 13255if test "x$CFLAGS" = "x" ; then 13256 13257 13258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 13259printf %s "checking whether $CC supports -g... " >&6; } 13260cache=`echo g | sed 'y%.=/+-%___p_%'` 13261if eval test \${cv_prog_cc_flag_$cache+y} 13262then : 13263 printf %s "(cached) " >&6 13264else $as_nop 13265 13266echo 'void f(void){}' >conftest.c 13267if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 13268eval "cv_prog_cc_flag_$cache=yes" 13269else 13270eval "cv_prog_cc_flag_$cache=no" 13271fi 13272rm -f conftest conftest.o conftest.c 13273 13274fi 13275 13276if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13278printf "%s\n" "yes" >&6; } 13279: 13280CFLAGS="-g" 13281else 13282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13283printf "%s\n" "no" >&6; } 13284: 13285 13286fi 13287 13288 13289 13290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 13291printf %s "checking whether $CC supports -O2... " >&6; } 13292cache=`echo O2 | sed 'y%.=/+-%___p_%'` 13293if eval test \${cv_prog_cc_flag_$cache+y} 13294then : 13295 printf %s "(cached) " >&6 13296else $as_nop 13297 13298echo 'void f(void){}' >conftest.c 13299if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 13300eval "cv_prog_cc_flag_$cache=yes" 13301else 13302eval "cv_prog_cc_flag_$cache=no" 13303fi 13304rm -f conftest conftest.o conftest.c 13305 13306fi 13307 13308if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13310printf "%s\n" "yes" >&6; } 13311: 13312CFLAGS="-O2 $CFLAGS" 13313else 13314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13315printf "%s\n" "no" >&6; } 13316: 13317 13318fi 13319 13320fi 13321 13322 13323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 13324printf %s "checking whether $CC supports -Wall... " >&6; } 13325cache=`echo Wall | sed 'y%.=/+-%___p_%'` 13326if eval test \${cv_prog_cc_flag_$cache+y} 13327then : 13328 printf %s "(cached) " >&6 13329else $as_nop 13330 13331echo 'void f(void){}' >conftest.c 13332if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 13333eval "cv_prog_cc_flag_$cache=yes" 13334else 13335eval "cv_prog_cc_flag_$cache=no" 13336fi 13337rm -f conftest conftest.o conftest.c 13338 13339fi 13340 13341if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13343printf "%s\n" "yes" >&6; } 13344: 13345CFLAGS="-Wall $CFLAGS" 13346else 13347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13348printf "%s\n" "no" >&6; } 13349: 13350 13351fi 13352 13353 13354 13355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 13356printf %s "checking whether $CC supports -W... " >&6; } 13357cache=`echo W | sed 'y%.=/+-%___p_%'` 13358if eval test \${cv_prog_cc_flag_$cache+y} 13359then : 13360 printf %s "(cached) " >&6 13361else $as_nop 13362 13363echo 'void f(void){}' >conftest.c 13364if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 13365eval "cv_prog_cc_flag_$cache=yes" 13366else 13367eval "cv_prog_cc_flag_$cache=no" 13368fi 13369rm -f conftest conftest.o conftest.c 13370 13371fi 13372 13373if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13375printf "%s\n" "yes" >&6; } 13376: 13377CFLAGS="-W $CFLAGS" 13378else 13379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13380printf "%s\n" "no" >&6; } 13381: 13382 13383fi 13384 13385 13386 13387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5 13388printf %s "checking whether $CC supports -Wwrite-strings... " >&6; } 13389cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'` 13390if eval test \${cv_prog_cc_flag_$cache+y} 13391then : 13392 printf %s "(cached) " >&6 13393else $as_nop 13394 13395echo 'void f(void){}' >conftest.c 13396if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then 13397eval "cv_prog_cc_flag_$cache=yes" 13398else 13399eval "cv_prog_cc_flag_$cache=no" 13400fi 13401rm -f conftest conftest.o conftest.c 13402 13403fi 13404 13405if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13407printf "%s\n" "yes" >&6; } 13408: 13409CFLAGS="-Wwrite-strings $CFLAGS" 13410else 13411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13412printf "%s\n" "no" >&6; } 13413: 13414 13415fi 13416 13417 13418 13419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5 13420printf %s "checking whether $CC supports -Wstrict-prototypes... " >&6; } 13421cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'` 13422if eval test \${cv_prog_cc_flag_$cache+y} 13423then : 13424 printf %s "(cached) " >&6 13425else $as_nop 13426 13427echo 'void f(void){}' >conftest.c 13428if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then 13429eval "cv_prog_cc_flag_$cache=yes" 13430else 13431eval "cv_prog_cc_flag_$cache=no" 13432fi 13433rm -f conftest conftest.o conftest.c 13434 13435fi 13436 13437if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13439printf "%s\n" "yes" >&6; } 13440: 13441CFLAGS="-Wstrict-prototypes $CFLAGS" 13442else 13443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13444printf "%s\n" "no" >&6; } 13445: 13446 13447fi 13448 13449#ACX_CHECK_COMPILER_FLAG(Wshadow, [CFLAGS="-Wshadow $CFLAGS"]) 13450 13451 13452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-function" >&5 13453printf %s "checking whether $CC supports -Wunused-function... " >&6; } 13454cache=`echo Wunused-function | sed 'y%.=/+-%___p_%'` 13455if eval test \${cv_prog_cc_flag_$cache+y} 13456then : 13457 printf %s "(cached) " >&6 13458else $as_nop 13459 13460echo 'void f(void){}' >conftest.c 13461if test -z "`$CC $CPPFLAGS $CFLAGS -Wunused-function -c conftest.c 2>&1`"; then 13462eval "cv_prog_cc_flag_$cache=yes" 13463else 13464eval "cv_prog_cc_flag_$cache=no" 13465fi 13466rm -f conftest conftest.o conftest.c 13467 13468fi 13469 13470if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13472printf "%s\n" "yes" >&6; } 13473: 13474CFLAGS="-Wunused-function $CFLAGS" 13475else 13476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13477printf "%s\n" "no" >&6; } 13478: 13479 13480fi 13481 13482 13483 13484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5 13485printf %s "checking whether $CC supports -Wmissing-prototypes... " >&6; } 13486cache=`echo Wmissing-prototypes | sed 'y%.=/+-%___p_%'` 13487if eval test \${cv_prog_cc_flag_$cache+y} 13488then : 13489 printf %s "(cached) " >&6 13490else $as_nop 13491 13492echo 'void f(void){}' >conftest.c 13493if test -z "`$CC $CPPFLAGS $CFLAGS -Wmissing-prototypes -c conftest.c 2>&1`"; then 13494eval "cv_prog_cc_flag_$cache=yes" 13495else 13496eval "cv_prog_cc_flag_$cache=no" 13497fi 13498rm -f conftest conftest.o conftest.c 13499 13500fi 13501 13502if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13504printf "%s\n" "yes" >&6; } 13505: 13506CFLAGS="-Wmissing-prototypes $CFLAGS" 13507else 13508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13509printf "%s\n" "no" >&6; } 13510: 13511 13512fi 13513 13514 13515 13516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5 13517printf %s "checking whether $CC supports -fno-strict-aliasing... " >&6; } 13518cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'` 13519if eval test \${cv_prog_cc_flag_$cache+y} 13520then : 13521 printf %s "(cached) " >&6 13522else $as_nop 13523 13524echo 'void f(void){}' >conftest.c 13525if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then 13526eval "cv_prog_cc_flag_$cache=yes" 13527else 13528eval "cv_prog_cc_flag_$cache=no" 13529fi 13530rm -f conftest conftest.o conftest.c 13531 13532fi 13533 13534if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13536printf "%s\n" "yes" >&6; } 13537: 13538CFLAGS="-fno-strict-aliasing $CFLAGS" 13539else 13540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13541printf "%s\n" "no" >&6; } 13542: 13543 13544fi 13545 13546 13547ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 13548" 13549if test "x$ac_cv_header_getopt_h" = xyes 13550then : 13551 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 13552 13553fi 13554ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 13555" 13556if test "x$ac_cv_header_time_h" = xyes 13557then : 13558 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 13559 13560fi 13561 13562 13563# MinGW32 tests 13564ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default 13565" 13566if test "x$ac_cv_header_winsock2_h" = xyes 13567then : 13568 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 13569 13570fi 13571ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default 13572" 13573if test "x$ac_cv_header_ws2tcpip_h" = xyes 13574then : 13575 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 13576 13577fi 13578 13579# end mingw32 tests 13580 13581# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 13582ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default" 13583if test "x$ac_cv_header_TargetConditionals_h" = xyes 13584then : 13585 printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h 13586 13587fi 13588 13589 13590 13591 13592 13593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 13594printf %s "checking whether $CC supports -Werror... " >&6; } 13595cache=`echo Werror | sed 'y%.=/+-%___p_%'` 13596if eval test \${cv_prog_cc_flag_$cache+y} 13597then : 13598 printf %s "(cached) " >&6 13599else $as_nop 13600 13601echo 'void f(void){}' >conftest.c 13602if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 13603eval "cv_prog_cc_flag_$cache=yes" 13604else 13605eval "cv_prog_cc_flag_$cache=no" 13606fi 13607rm -f conftest conftest.o conftest.c 13608 13609fi 13610 13611if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13613printf "%s\n" "yes" >&6; } 13614: 13615ERRFLAG="-Werror" 13616else 13617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13618printf "%s\n" "no" >&6; } 13619: 13620ERRFLAG="-errwarn" 13621fi 13622 13623 13624 13625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 13626printf %s "checking whether $CC supports -Wall... " >&6; } 13627cache=`echo Wall | sed 'y%.=/+-%___p_%'` 13628if eval test \${cv_prog_cc_flag_$cache+y} 13629then : 13630 printf %s "(cached) " >&6 13631else $as_nop 13632 13633echo 'void f(void){}' >conftest.c 13634if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 13635eval "cv_prog_cc_flag_$cache=yes" 13636else 13637eval "cv_prog_cc_flag_$cache=no" 13638fi 13639rm -f conftest conftest.o conftest.c 13640 13641fi 13642 13643if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13645printf "%s\n" "yes" >&6; } 13646: 13647ERRFLAG="$ERRFLAG -Wall" 13648else 13649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13650printf "%s\n" "no" >&6; } 13651: 13652ERRFLAG="$ERRFLAG -errfmt" 13653fi 13654 13655 13656 13657 13658 13659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 13660printf %s "checking whether $CC supports -std=c99... " >&6; } 13661cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 13662if eval test \${cv_prog_cc_flag_$cache+y} 13663then : 13664 printf %s "(cached) " >&6 13665else $as_nop 13666 13667echo 'void f(void){}' >conftest.c 13668if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 13669eval "cv_prog_cc_flag_$cache=yes" 13670else 13671eval "cv_prog_cc_flag_$cache=no" 13672fi 13673rm -f conftest conftest.o conftest.c 13674 13675fi 13676 13677if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13679printf "%s\n" "yes" >&6; } 13680: 13681C99FLAG="-std=c99" 13682else 13683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13684printf "%s\n" "no" >&6; } 13685: 13686 13687fi 13688 13689 13690 13691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 13692printf %s "checking whether $CC supports -xc99... " >&6; } 13693cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 13694if eval test \${cv_prog_cc_flag_$cache+y} 13695then : 13696 printf %s "(cached) " >&6 13697else $as_nop 13698 13699echo 'void f(void){}' >conftest.c 13700if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 13701eval "cv_prog_cc_flag_$cache=yes" 13702else 13703eval "cv_prog_cc_flag_$cache=no" 13704fi 13705rm -f conftest conftest.o conftest.c 13706 13707fi 13708 13709if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13711printf "%s\n" "yes" >&6; } 13712: 13713C99FLAG="-xc99" 13714else 13715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13716printf "%s\n" "no" >&6; } 13717: 13718 13719fi 13720 13721 13722ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 13723" 13724if test "x$ac_cv_header_getopt_h" = xyes 13725then : 13726 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 13727 13728fi 13729ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 13730" 13731if test "x$ac_cv_header_time_h" = xyes 13732then : 13733 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 13734 13735fi 13736 13737 13738 13739 13740 13741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 13742printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 13743cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 13744if eval test \${cv_prog_cc_flag_needed_$cache+y} 13745then : 13746 printf %s "(cached) " >&6 13747else $as_nop 13748 13749echo ' 13750#include "confdefs.h" 13751#include <stdlib.h> 13752#include <ctype.h> 13753#include <sys/time.h> 13754#ifdef HAVE_TIME_H 13755#include <time.h> 13756#endif 13757#include <unistd.h> 13758#include <netdb.h> 13759#ifdef HAVE_GETOPT_H 13760#include <getopt.h> 13761#endif 13762 13763int test() { 13764 int a; 13765 char **opts = NULL; 13766 struct timeval tv; 13767 char *t; 13768 time_t time = 0; 13769 char *buf = NULL; 13770 const char* str = NULL; 13771 struct msghdr msg; 13772 msg.msg_control = 0; 13773 t = ctime_r(&time, buf); 13774 tv.tv_usec = 10; 13775 srandom(32); 13776 a = getopt(2, opts, "a"); 13777 a = isascii(32); 13778 str = gai_strerror(0); 13779 if(str && t && tv.tv_usec && msg.msg_control) 13780 a = 0; 13781 return a; 13782} 13783' > conftest.c 13784echo 'void f(){}' >>conftest.c 13785if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 13786eval "cv_prog_cc_flag_needed_$cache=no" 13787else 13788 13789if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 13790eval "cv_prog_cc_flag_needed_$cache=yes" 13791else 13792eval "cv_prog_cc_flag_needed_$cache=fail" 13793#echo 'Test with flag fails too!' 13794#cat conftest.c 13795#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 13796#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 13797#exit 1 13798fi 13799 13800fi 13801rm -f conftest conftest.c conftest.o 13802 13803fi 13804 13805if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 13806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13807printf "%s\n" "yes" >&6; } 13808: 13809CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 13810else 13811if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 13812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13813printf "%s\n" "no" >&6; } 13814#echo 'Test with flag is no!' 13815#cat conftest.c 13816#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 13817#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 13818#exit 1 13819: 13820 13821else 13822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13823printf "%s\n" "failed" >&6; } 13824: 13825 13826fi 13827fi 13828 13829 13830 13831 13832 13833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 13834printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 13835cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 13836if eval test \${cv_prog_cc_flag_needed_$cache+y} 13837then : 13838 printf %s "(cached) " >&6 13839else $as_nop 13840 13841echo ' 13842#include "confdefs.h" 13843#include <stdlib.h> 13844#include <ctype.h> 13845#include <sys/time.h> 13846#ifdef HAVE_TIME_H 13847#include <time.h> 13848#endif 13849#include <unistd.h> 13850#include <netdb.h> 13851#ifdef HAVE_GETOPT_H 13852#include <getopt.h> 13853#endif 13854 13855int test() { 13856 int a; 13857 char **opts = NULL; 13858 struct timeval tv; 13859 char *t; 13860 time_t time = 0; 13861 char *buf = NULL; 13862 const char* str = NULL; 13863 struct msghdr msg; 13864 msg.msg_control = 0; 13865 t = ctime_r(&time, buf); 13866 tv.tv_usec = 10; 13867 srandom(32); 13868 a = getopt(2, opts, "a"); 13869 a = isascii(32); 13870 str = gai_strerror(0); 13871 if(str && t && tv.tv_usec && msg.msg_control) 13872 a = 0; 13873 return a; 13874} 13875' > conftest.c 13876echo 'void f(){}' >>conftest.c 13877if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 13878eval "cv_prog_cc_flag_needed_$cache=no" 13879else 13880 13881if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 13882eval "cv_prog_cc_flag_needed_$cache=yes" 13883else 13884eval "cv_prog_cc_flag_needed_$cache=fail" 13885#echo 'Test with flag fails too!' 13886#cat conftest.c 13887#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 13888#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 13889#exit 1 13890fi 13891 13892fi 13893rm -f conftest conftest.c conftest.o 13894 13895fi 13896 13897if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 13898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13899printf "%s\n" "yes" >&6; } 13900: 13901CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 13902else 13903if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 13904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13905printf "%s\n" "no" >&6; } 13906#echo 'Test with flag is no!' 13907#cat conftest.c 13908#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 13909#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 13910#exit 1 13911: 13912 13913else 13914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13915printf "%s\n" "failed" >&6; } 13916: 13917 13918fi 13919fi 13920 13921 13922 13923 13924 13925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 13926printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 13927cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh` 13928if eval test \${cv_prog_cc_flag_needed_$cache+y} 13929then : 13930 printf %s "(cached) " >&6 13931else $as_nop 13932 13933echo ' 13934#include <stdbool.h> 13935#include <ctype.h> 13936int test() { 13937 int a = 0; 13938 return a; 13939} 13940' > conftest.c 13941echo 'void f(){}' >>conftest.c 13942if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 13943eval "cv_prog_cc_flag_needed_$cache=no" 13944else 13945 13946if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 13947eval "cv_prog_cc_flag_needed_$cache=yes" 13948else 13949eval "cv_prog_cc_flag_needed_$cache=fail" 13950#echo 'Test with flag fails too!' 13951#cat conftest.c 13952#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 13953#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 13954#exit 1 13955fi 13956 13957fi 13958rm -f conftest conftest.c conftest.o 13959 13960fi 13961 13962if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 13963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13964printf "%s\n" "yes" >&6; } 13965: 13966CFLAGS="$CFLAGS $C99FLAG" 13967else 13968if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 13969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13970printf "%s\n" "no" >&6; } 13971#echo 'Test with flag is no!' 13972#cat conftest.c 13973#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 13974#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 13975#exit 1 13976: 13977 13978else 13979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13980printf "%s\n" "failed" >&6; } 13981: 13982 13983fi 13984fi 13985 13986 13987 13988 13989 13990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 13991printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 13992cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 13993if eval test \${cv_prog_cc_flag_needed_$cache+y} 13994then : 13995 printf %s "(cached) " >&6 13996else $as_nop 13997 13998echo ' 13999#include <ctype.h> 14000 14001int test() { 14002 int a; 14003 a = isascii(32); 14004 return a; 14005} 14006' > conftest.c 14007echo 'void f(){}' >>conftest.c 14008if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14009eval "cv_prog_cc_flag_needed_$cache=no" 14010else 14011 14012if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 14013eval "cv_prog_cc_flag_needed_$cache=yes" 14014else 14015eval "cv_prog_cc_flag_needed_$cache=fail" 14016#echo 'Test with flag fails too!' 14017#cat conftest.c 14018#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 14019#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 14020#exit 1 14021fi 14022 14023fi 14024rm -f conftest conftest.c conftest.o 14025 14026fi 14027 14028if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14030printf "%s\n" "yes" >&6; } 14031: 14032CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 14033else 14034if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14036printf "%s\n" "no" >&6; } 14037#echo 'Test with flag is no!' 14038#cat conftest.c 14039#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 14040#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 14041#exit 1 14042: 14043 14044else 14045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14046printf "%s\n" "failed" >&6; } 14047: 14048 14049fi 14050fi 14051 14052 14053 14054 14055 14056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 14057printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 14058cache=_D_GNU_SOURCE 14059if eval test \${cv_prog_cc_flag_needed_$cache+y} 14060then : 14061 printf %s "(cached) " >&6 14062else $as_nop 14063 14064echo ' 14065#include <netinet/in.h> 14066 14067int test() { 14068 struct in6_pktinfo inf; 14069 int a = (int)sizeof(inf); 14070 return a; 14071} 14072' > conftest.c 14073echo 'void f(){}' >>conftest.c 14074if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14075eval "cv_prog_cc_flag_needed_$cache=no" 14076else 14077 14078if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 14079eval "cv_prog_cc_flag_needed_$cache=yes" 14080else 14081eval "cv_prog_cc_flag_needed_$cache=fail" 14082#echo 'Test with flag fails too!' 14083#cat conftest.c 14084#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 14085#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 14086#exit 1 14087fi 14088 14089fi 14090rm -f conftest conftest.c conftest.o 14091 14092fi 14093 14094if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14096printf "%s\n" "yes" >&6; } 14097: 14098CFLAGS="$CFLAGS -D_GNU_SOURCE" 14099else 14100if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14102printf "%s\n" "no" >&6; } 14103#echo 'Test with flag is no!' 14104#cat conftest.c 14105#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 14106#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 14107#exit 1 14108: 14109 14110else 14111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14112printf "%s\n" "failed" >&6; } 14113: 14114 14115fi 14116fi 14117 14118 14119# check again for GNU_SOURCE for setresgid. May fail if setresgid 14120# is not available at all. -D_FRSRESGID is to make this check unique. 14121# otherwise we would get the previous cached result. 14122 14123 14124 14125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 14126printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 14127cache=_D_GNU_SOURCE__D_FRSRESGID 14128if eval test \${cv_prog_cc_flag_needed_$cache+y} 14129then : 14130 printf %s "(cached) " >&6 14131else $as_nop 14132 14133echo ' 14134#include <unistd.h> 14135 14136int test() { 14137 int a = setresgid(0,0,0); 14138 a = setresuid(0,0,0); 14139 return a; 14140} 14141' > conftest.c 14142echo 'void f(){}' >>conftest.c 14143if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14144eval "cv_prog_cc_flag_needed_$cache=no" 14145else 14146 14147if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 14148eval "cv_prog_cc_flag_needed_$cache=yes" 14149else 14150eval "cv_prog_cc_flag_needed_$cache=fail" 14151#echo 'Test with flag fails too!' 14152#cat conftest.c 14153#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 14154#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 14155#exit 1 14156fi 14157 14158fi 14159rm -f conftest conftest.c conftest.o 14160 14161fi 14162 14163if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14165printf "%s\n" "yes" >&6; } 14166: 14167CFLAGS="$CFLAGS -D_GNU_SOURCE" 14168else 14169if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14171printf "%s\n" "no" >&6; } 14172#echo 'Test with flag is no!' 14173#cat conftest.c 14174#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 14175#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 14176#exit 1 14177: 14178 14179else 14180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14181printf "%s\n" "failed" >&6; } 14182: 14183 14184fi 14185fi 14186 14187 14188 14189 14190 14191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 14192printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 14193cache=_D_POSIX_C_SOURCE_200112 14194if eval test \${cv_prog_cc_flag_needed_$cache+y} 14195then : 14196 printf %s "(cached) " >&6 14197else $as_nop 14198 14199echo ' 14200#include "confdefs.h" 14201#ifdef HAVE_TIME_H 14202#include <time.h> 14203#endif 14204#include <netdb.h> 14205 14206int test() { 14207 int a = 0; 14208 char *t; 14209 time_t time = 0; 14210 char *buf = NULL; 14211 const char* str = NULL; 14212 t = ctime_r(&time, buf); 14213 str = gai_strerror(0); 14214 if(t && str) 14215 a = 0; 14216 return a; 14217} 14218' > conftest.c 14219echo 'void f(){}' >>conftest.c 14220if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14221eval "cv_prog_cc_flag_needed_$cache=no" 14222else 14223 14224if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 14225eval "cv_prog_cc_flag_needed_$cache=yes" 14226else 14227eval "cv_prog_cc_flag_needed_$cache=fail" 14228#echo 'Test with flag fails too!' 14229#cat conftest.c 14230#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 14231#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 14232#exit 1 14233fi 14234 14235fi 14236rm -f conftest conftest.c conftest.o 14237 14238fi 14239 14240if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14242printf "%s\n" "yes" >&6; } 14243: 14244CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 14245else 14246if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14248printf "%s\n" "no" >&6; } 14249#echo 'Test with flag is no!' 14250#cat conftest.c 14251#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 14252#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 14253#exit 1 14254: 14255 14256else 14257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14258printf "%s\n" "failed" >&6; } 14259: 14260 14261fi 14262fi 14263 14264 14265 14266 14267 14268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 14269printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 14270cache=_D__EXTENSIONS__ 14271if eval test \${cv_prog_cc_flag_needed_$cache+y} 14272then : 14273 printf %s "(cached) " >&6 14274else $as_nop 14275 14276echo ' 14277#include "confdefs.h" 14278#include <stdlib.h> 14279#include <ctype.h> 14280#include <sys/time.h> 14281#ifdef HAVE_TIME_H 14282#include <time.h> 14283#endif 14284#include <unistd.h> 14285#ifdef HAVE_GETOPT_H 14286#include <getopt.h> 14287#endif 14288 14289int test() { 14290 int a; 14291 char **opts = NULL; 14292 struct timeval tv; 14293 tv.tv_usec = 10; 14294 srandom(32); 14295 a = getopt(2, opts, "a"); 14296 a = isascii(32); 14297 if(tv.tv_usec) 14298 a = 0; 14299 return a; 14300} 14301' > conftest.c 14302echo 'void f(){}' >>conftest.c 14303if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14304eval "cv_prog_cc_flag_needed_$cache=no" 14305else 14306 14307if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 14308eval "cv_prog_cc_flag_needed_$cache=yes" 14309else 14310eval "cv_prog_cc_flag_needed_$cache=fail" 14311#echo 'Test with flag fails too!' 14312#cat conftest.c 14313#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 14314#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 14315#exit 1 14316fi 14317 14318fi 14319rm -f conftest conftest.c conftest.o 14320 14321fi 14322 14323if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14325printf "%s\n" "yes" >&6; } 14326: 14327CFLAGS="$CFLAGS -D__EXTENSIONS__" 14328else 14329if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14331printf "%s\n" "no" >&6; } 14332#echo 'Test with flag is no!' 14333#cat conftest.c 14334#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 14335#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 14336#exit 1 14337: 14338 14339else 14340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14341printf "%s\n" "failed" >&6; } 14342: 14343 14344fi 14345fi 14346 14347 14348 14349 14350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14351printf %s "checking for inline... " >&6; } 14352if test ${ac_cv_c_inline+y} 14353then : 14354 printf %s "(cached) " >&6 14355else $as_nop 14356 ac_cv_c_inline=no 14357for ac_kw in inline __inline__ __inline; do 14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14359/* end confdefs.h. */ 14360#ifndef __cplusplus 14361typedef int foo_t; 14362static $ac_kw foo_t static_foo (void) {return 0; } 14363$ac_kw foo_t foo (void) {return 0; } 14364#endif 14365 14366_ACEOF 14367if ac_fn_c_try_compile "$LINENO" 14368then : 14369 ac_cv_c_inline=$ac_kw 14370fi 14371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14372 test "$ac_cv_c_inline" != no && break 14373done 14374 14375fi 14376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14377printf "%s\n" "$ac_cv_c_inline" >&6; } 14378 14379case $ac_cv_c_inline in 14380 inline | yes) ;; 14381 *) 14382 case $ac_cv_c_inline in 14383 no) ac_val=;; 14384 *) ac_val=$ac_cv_c_inline;; 14385 esac 14386 cat >>confdefs.h <<_ACEOF 14387#ifndef __cplusplus 14388#define inline $ac_val 14389#endif 14390_ACEOF 14391 ;; 14392esac 14393 14394ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14395if test "x$ac_cv_type_int8_t" = xyes 14396then : 14397 14398else $as_nop 14399 14400printf "%s\n" "#define int8_t char" >>confdefs.h 14401 14402fi 14403 14404ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14405if test "x$ac_cv_type_int16_t" = xyes 14406then : 14407 14408else $as_nop 14409 14410printf "%s\n" "#define int16_t short" >>confdefs.h 14411 14412fi 14413 14414ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14415if test "x$ac_cv_type_int32_t" = xyes 14416then : 14417 14418else $as_nop 14419 14420printf "%s\n" "#define int32_t int" >>confdefs.h 14421 14422fi 14423 14424ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 14425if test "x$ac_cv_type_int64_t" = xyes 14426then : 14427 14428else $as_nop 14429 14430printf "%s\n" "#define int64_t long long" >>confdefs.h 14431 14432fi 14433 14434ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14435if test "x$ac_cv_type_uint8_t" = xyes 14436then : 14437 14438else $as_nop 14439 14440printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h 14441 14442fi 14443 14444ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14445if test "x$ac_cv_type_uint16_t" = xyes 14446then : 14447 14448else $as_nop 14449 14450printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h 14451 14452fi 14453 14454ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14455if test "x$ac_cv_type_uint32_t" = xyes 14456then : 14457 14458else $as_nop 14459 14460printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h 14461 14462fi 14463 14464ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 14465if test "x$ac_cv_type_uint64_t" = xyes 14466then : 14467 14468else $as_nop 14469 14470printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h 14471 14472fi 14473 14474 14475# my own checks 14476# Extract the first word of "doxygen", so it can be a program name with args. 14477set dummy doxygen; ac_word=$2 14478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14479printf %s "checking for $ac_word... " >&6; } 14480if test ${ac_cv_prog_doxygen+y} 14481then : 14482 printf %s "(cached) " >&6 14483else $as_nop 14484 if test -n "$doxygen"; then 14485 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 14486else 14487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14488for as_dir in $PATH 14489do 14490 IFS=$as_save_IFS 14491 case $as_dir in #((( 14492 '') as_dir=./ ;; 14493 */) ;; 14494 *) as_dir=$as_dir/ ;; 14495 esac 14496 for ac_exec_ext in '' $ac_executable_extensions; do 14497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14498 ac_cv_prog_doxygen="doxygen" 14499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14500 break 2 14501 fi 14502done 14503 done 14504IFS=$as_save_IFS 14505 14506fi 14507fi 14508doxygen=$ac_cv_prog_doxygen 14509if test -n "$doxygen"; then 14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 14511printf "%s\n" "$doxygen" >&6; } 14512else 14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14514printf "%s\n" "no" >&6; } 14515fi 14516 14517 14518 14519# check to see if libraries are needed for these functions. 14520ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 14521if test "x$ac_cv_func_socket" = xyes 14522then : 14523 14524else $as_nop 14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14526printf %s "checking for library containing socket... " >&6; } 14527if test ${ac_cv_search_socket+y} 14528then : 14529 printf %s "(cached) " >&6 14530else $as_nop 14531 ac_func_search_save_LIBS=$LIBS 14532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14533/* end confdefs.h. */ 14534 14535/* Override any GCC internal prototype to avoid an error. 14536 Use char because int might match the return type of a GCC 14537 builtin and then its argument prototype would still apply. */ 14538char socket (); 14539int 14540main (void) 14541{ 14542return socket (); 14543 ; 14544 return 0; 14545} 14546_ACEOF 14547for ac_lib in '' socket 14548do 14549 if test -z "$ac_lib"; then 14550 ac_res="none required" 14551 else 14552 ac_res=-l$ac_lib 14553 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14554 fi 14555 if ac_fn_c_try_link "$LINENO" 14556then : 14557 ac_cv_search_socket=$ac_res 14558fi 14559rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14560 conftest$ac_exeext 14561 if test ${ac_cv_search_socket+y} 14562then : 14563 break 14564fi 14565done 14566if test ${ac_cv_search_socket+y} 14567then : 14568 14569else $as_nop 14570 ac_cv_search_socket=no 14571fi 14572rm conftest.$ac_ext 14573LIBS=$ac_func_search_save_LIBS 14574fi 14575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14576printf "%s\n" "$ac_cv_search_socket" >&6; } 14577ac_res=$ac_cv_search_socket 14578if test "$ac_res" != no 14579then : 14580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14581 14582fi 14583 14584 14585fi 14586 14587 14588# modern Linux provides inet_ntop in -lsocket. 14589# modern OS X provides inet_ntop in -lc. 14590# modern Solaris provides inet_ntop in -lsocket -lnsl. 14591# older Solaris provides inet_ntop in -lresolv. 14592ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 14593if test "x$ac_cv_func_inet_ntop" = xyes 14594then : 14595 14596else $as_nop 14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 14598printf %s "checking for library containing inet_ntop... " >&6; } 14599if test ${ac_cv_search_inet_ntop+y} 14600then : 14601 printf %s "(cached) " >&6 14602else $as_nop 14603 ac_func_search_save_LIBS=$LIBS 14604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14605/* end confdefs.h. */ 14606 14607/* Override any GCC internal prototype to avoid an error. 14608 Use char because int might match the return type of a GCC 14609 builtin and then its argument prototype would still apply. */ 14610char inet_ntop (); 14611int 14612main (void) 14613{ 14614return inet_ntop (); 14615 ; 14616 return 0; 14617} 14618_ACEOF 14619for ac_lib in '' socket c nsl resolv 14620do 14621 if test -z "$ac_lib"; then 14622 ac_res="none required" 14623 else 14624 ac_res=-l$ac_lib 14625 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14626 fi 14627 if ac_fn_c_try_link "$LINENO" 14628then : 14629 ac_cv_search_inet_ntop=$ac_res 14630fi 14631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14632 conftest$ac_exeext 14633 if test ${ac_cv_search_inet_ntop+y} 14634then : 14635 break 14636fi 14637done 14638if test ${ac_cv_search_inet_ntop+y} 14639then : 14640 14641else $as_nop 14642 ac_cv_search_inet_ntop=no 14643fi 14644rm conftest.$ac_ext 14645LIBS=$ac_func_search_save_LIBS 14646fi 14647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 14648printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } 14649ac_res=$ac_cv_search_inet_ntop 14650if test "$ac_res" != no 14651then : 14652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14653 ac_cv_func_inet_ntop=yes 14654fi 14655 14656 14657fi 14658 14659 14660# modern Linux provides inet_pton in -lsocket. 14661# modern OS X provides inet_pton in -lc. 14662# modern Solaris provides inet_pton in -lsocket -lnsl. 14663# older Solaris provides inet_pton in -lresolv. 14664ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 14665if test "x$ac_cv_func_inet_pton" = xyes 14666then : 14667 14668else $as_nop 14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 14670printf %s "checking for library containing inet_pton... " >&6; } 14671if test ${ac_cv_search_inet_pton+y} 14672then : 14673 printf %s "(cached) " >&6 14674else $as_nop 14675 ac_func_search_save_LIBS=$LIBS 14676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14677/* end confdefs.h. */ 14678 14679/* Override any GCC internal prototype to avoid an error. 14680 Use char because int might match the return type of a GCC 14681 builtin and then its argument prototype would still apply. */ 14682char inet_pton (); 14683int 14684main (void) 14685{ 14686return inet_pton (); 14687 ; 14688 return 0; 14689} 14690_ACEOF 14691for ac_lib in '' socket c nsl resolv 14692do 14693 if test -z "$ac_lib"; then 14694 ac_res="none required" 14695 else 14696 ac_res=-l$ac_lib 14697 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14698 fi 14699 if ac_fn_c_try_link "$LINENO" 14700then : 14701 ac_cv_search_inet_pton=$ac_res 14702fi 14703rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14704 conftest$ac_exeext 14705 if test ${ac_cv_search_inet_pton+y} 14706then : 14707 break 14708fi 14709done 14710if test ${ac_cv_search_inet_pton+y} 14711then : 14712 14713else $as_nop 14714 ac_cv_search_inet_pton=no 14715fi 14716rm conftest.$ac_ext 14717LIBS=$ac_func_search_save_LIBS 14718fi 14719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 14720printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 14721ac_res=$ac_cv_search_inet_pton 14722if test "$ac_res" != no 14723then : 14724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14725 ac_cv_func_inet_pton=yes 14726fi 14727 14728 14729fi 14730 14731 14732 14733 14734# Check whether --with-drill was given. 14735if test ${with_drill+y} 14736then : 14737 withval=$with_drill; 14738else $as_nop 14739 with_drill="no" 14740fi 14741 14742if test x_$with_drill != x_no ; then 14743 DRILL=drill 14744 14745 INSTALL_DRILL=install-drill 14746 14747 UNINSTALL_DRILL=uninstall-drill 14748 14749 CLEAN_DRILL=clean-drill 14750 14751 LINT_DRILL=lint-drill 14752 14753 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then 14754 as_fn_error $? " 14755A config.h was detected in the drill subdirectory. 14756This does not work with the --with-drill option. 14757Please remove the config.h from the drill subdirectory 14758or do not use the --with-drill option." "$LINENO" 5 14759 fi 14760else 14761 DRILL="" 14762 14763 INSTALL_DRILL="" 14764 14765 UNINSTALL_DRILL="" 14766 14767 CLEAN_DRILL="" 14768 14769 LINT_DRILL="" 14770 14771fi 14772 14773 14774 14775# Check whether --with-examples was given. 14776if test ${with_examples+y} 14777then : 14778 withval=$with_examples; 14779else $as_nop 14780 with_examples="no" 14781fi 14782 14783if test x_$with_examples != x_no ; then 14784 EXAMPLES=examples 14785 14786 INSTALL_EXAMPLES=install-examples 14787 14788 UNINSTALL_EXAMPLES=uninstall-examples 14789 14790 CLEAN_EXAMPLES=clean-examples 14791 14792 LINT_EXAMPLES=lint-examples 14793 14794 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then 14795 as_fn_error $? " 14796A config.h was detected in the examples subdirectory. 14797This does not work with the --with-examples option. 14798Please remove the config.h from the examples subdirectory 14799or do not use the --with-examples option." "$LINENO" 5 14800 fi 14801else 14802 EXAMPLES="" 14803 14804 INSTALL_EXAMPLES="" 14805 14806 UNINSTALL_EXAMPLES="" 14807 14808 CLEAN_EXAMPLES="" 14809 14810 LINT_EXAMPLES="" 14811 14812fi 14813 14814# add option to disable installation of ldns-config script 14815# Check whether --enable-ldns-config was given. 14816if test ${enable_ldns_config+y} 14817then : 14818 enableval=$enable_ldns_config; enable_ldns_config=$enableval 14819else $as_nop 14820 enable_ldns_config=yes 14821fi 14822 14823if test "x$enable_ldns_config" = xyes; then 14824 INSTALL_CONFIG=install-config 14825 14826 INSTALL_CONFIG_MANPAGE=install-config-manpage 14827 14828 UNINSTALL_CONFIG=uninstall-config 14829 14830 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage 14831 14832else 14833 INSTALL_CONFIG="" 14834 14835 INSTALL_CONFIG_MANPAGE="" 14836 14837 UNINSTALL_CONFIG="" 14838 14839 UNINSTALL_CONFIG_MANPAGE="" 14840 14841fi 14842 14843# add option to disable library printing to stderr 14844# Check whether --enable-stderr-msgs was given. 14845if test ${enable_stderr_msgs+y} 14846then : 14847 enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval 14848else $as_nop 14849 enable_stderr_msgs=no 14850fi 14851 14852case "$enable_stderr_msgs" in 14853 no) ;; 14854 *) 14855 14856printf "%s\n" "#define STDERR_MSGS 1" >>confdefs.h 14857 14858 ;; 14859esac 14860 14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll(2)" >&5 14862printf %s "checking for poll(2)... " >&6; } 14863 if test ${ax_cv_have_poll+y} 14864then : 14865 printf %s "(cached) " >&6 14866else $as_nop 14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14868/* end confdefs.h. */ 14869 #include <poll.h> 14870int 14871main (void) 14872{ 14873int rc; rc = poll((struct pollfd *)(0), 0, 0); 14874 ; 14875 return 0; 14876} 14877_ACEOF 14878if ac_fn_c_try_link "$LINENO" 14879then : 14880 ax_cv_have_poll=yes 14881else $as_nop 14882 ax_cv_have_poll=no 14883fi 14884rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14885 conftest$ac_exeext conftest.$ac_ext 14886fi 14887 14888 if test "${ax_cv_have_poll}" = "yes" 14889then : 14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14891printf "%s\n" "yes" >&6; } 14892 ax_config_feature_poll=yes 14893 14894else $as_nop 14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14896printf "%s\n" "no" >&6; } 14897 ax_config_feature_poll=no 14898 14899fi 14900 14901 14902# Check whether --enable-poll was given. 14903if test ${enable_poll+y} 14904then : 14905 enableval=$enable_poll; 14906case "${enableval}" in 14907 yes) 14908 ax_config_feature_poll="yes" 14909 ;; 14910 no) 14911 ax_config_feature_poll="no" 14912 ;; 14913 *) 14914 as_fn_error $? "bad value ${enableval} for feature --poll" "$LINENO" 5 14915 ;; 14916esac 14917 14918fi 14919 14920 14921if test "$ax_config_feature_poll" = yes 14922then : 14923 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 14924 14925 14926 if test "$ax_config_feature_verbose" = yes 14927then : 14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Feature poll is enabled" >&5 14929printf "%s\n" "$as_me: Feature poll is enabled" >&6;} 14930 14931fi 14932 14933else $as_nop 14934 14935 if test "$ax_config_feature_verbose" = yes 14936then : 14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Feature poll is disabled" >&5 14938printf "%s\n" "$as_me: Feature poll is disabled" >&6;} 14939 14940fi 14941 14942fi 14943 14944 14945 14946 14947 14948# check for python 14949PYTHON_X_CFLAGS="" 14950ldns_with_pyldns=no 14951ldns_with_pyldnsx=no 14952 14953# Check whether --with-pyldns was given. 14954if test ${with_pyldns+y} 14955then : 14956 withval=$with_pyldns; 14957else $as_nop 14958 withval="no" 14959fi 14960 14961ldns_have_python=no 14962if test x_$withval != x_no; then 14963 # =========================================================================== 14964# https://www.gnu.org/software/autoconf-archive/ax_python_devel.html 14965# =========================================================================== 14966# 14967# SYNOPSIS 14968# 14969# AX_PYTHON_DEVEL([version]) 14970# 14971# DESCRIPTION 14972# 14973# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it 14974# in your configure.ac. 14975# 14976# This macro checks for Python and tries to get the include path to 14977# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output 14978# variables. It also exports $(PYTHON_EXTRA_LIBS) and 14979# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code. 14980# 14981# You can search for some particular version of Python by passing a 14982# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please 14983# note that you *have* to pass also an operator along with the version to 14984# match, and pay special attention to the single quotes surrounding the 14985# version number. Don't use "PYTHON_VERSION" for this: that environment 14986# variable is declared as precious and thus reserved for the end-user. 14987# 14988# This macro should work for all versions of Python >= 2.1.0. As an end 14989# user, you can disable the check for the python version by setting the 14990# PYTHON_NOVERSIONCHECK environment variable to something else than the 14991# empty string. 14992# 14993# If you need to use this macro for an older Python version, please 14994# contact the authors. We're always open for feedback. 14995# 14996# LICENSE 14997# 14998# Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de> 14999# Copyright (c) 2009 Alan W. Irwin 15000# Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net> 15001# Copyright (c) 2009 Andrew Collier 15002# Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org> 15003# Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org> 15004# Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu> 15005# 15006# This program is free software: you can redistribute it and/or modify it 15007# under the terms of the GNU General Public License as published by the 15008# Free Software Foundation, either version 3 of the License, or (at your 15009# option) any later version. 15010# 15011# This program is distributed in the hope that it will be useful, but 15012# WITHOUT ANY WARRANTY; without even the implied warranty of 15013# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 15014# Public License for more details. 15015# 15016# You should have received a copy of the GNU General Public License along 15017# with this program. If not, see <https://www.gnu.org/licenses/>. 15018# 15019# As a special exception, the respective Autoconf Macro's copyright owner 15020# gives unlimited permission to copy, distribute and modify the configure 15021# scripts that are the output of Autoconf when processing the Macro. You 15022# need not follow the terms of the GNU General Public License when using 15023# or distributing such scripts, even though portions of the text of the 15024# Macro appear in them. The GNU General Public License (GPL) does govern 15025# all other use of the material that constitutes the Autoconf Macro. 15026# 15027# This special exception to the GPL applies to versions of the Autoconf 15028# Macro released by the Autoconf Archive. When you make and distribute a 15029# modified version of the Autoconf Macro, you may extend this special 15030# exception to the GPL to apply to your modified version as well. 15031 15032#serial 21 15033 15034# This is what autoupdate's m4 run will expand. It fires the warning 15035# (with _au_warn_XXX), outputs it into the updated configure.ac (with 15036# m4_warn), and then outputs the replacement expansion. We need extra 15037# quotation around the m4_warn and dnl so they will be written 15038# unexpanded into the updated configure.ac. 15039 15040 15041# This is an auxiliary macro that is also run when 15042# autoupdate runs m4. It simply calls m4_warning, but 15043# we need a wrapper so that each warning is emitted only 15044# once. We break the quoting in m4_warning's argument in 15045# order to expand this macro's arguments, not AU_DEFUN's. 15046 15047 15048# Finally, this is the expansion that is picked up by 15049# autoconf, causing NAME to expand to NEW-CODE, plus 15050# (if SILENT is not "silent") a m4_warning telling the 15051# maintainer to run autoupdate. We don't issue MESSAGE 15052# from autoconf, because that's instructions for what 15053# to do *after* running autoupdate. 15054 15055 15056 15057 ac_save_LIBS="$LIBS" 15058 15059 # 15060 # Allow the use of a (user set) custom python version 15061 # 15062 15063 15064 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 15065set dummy python$PYTHON_VERSION; ac_word=$2 15066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15067printf %s "checking for $ac_word... " >&6; } 15068if test ${ac_cv_path_PYTHON+y} 15069then : 15070 printf %s "(cached) " >&6 15071else $as_nop 15072 case $PYTHON in 15073 [\\/]* | ?:[\\/]*) 15074 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15075 ;; 15076 *) 15077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15078for as_dir in $PATH 15079do 15080 IFS=$as_save_IFS 15081 case $as_dir in #((( 15082 '') as_dir=./ ;; 15083 */) ;; 15084 *) as_dir=$as_dir/ ;; 15085 esac 15086 for ac_exec_ext in '' $ac_executable_extensions; do 15087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15088 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 15089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15090 break 2 15091 fi 15092done 15093 done 15094IFS=$as_save_IFS 15095 15096 ;; 15097esac 15098fi 15099PYTHON=$ac_cv_path_PYTHON 15100if test -n "$PYTHON"; then 15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15102printf "%s\n" "$PYTHON" >&6; } 15103else 15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15105printf "%s\n" "no" >&6; } 15106fi 15107 15108 15109 if test -z "$PYTHON"; then 15110 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 15111 PYTHON_VERSION="" 15112 fi 15113 15114 # 15115 # Check for a version of Python >= 2.1.0 15116 # 15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 15118printf %s "checking for a version of Python >= '2.1.0'... " >&6; } 15119 ac_supports_python_ver=`$PYTHON -c "import sys; \ 15120 ver = sys.version.split ()[0]; \ 15121 print (ver >= '2.1.0')"` 15122 if test "$ac_supports_python_ver" != "True"; then 15123 if test -z "$PYTHON_NOVERSIONCHECK"; then 15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15125printf "%s\n" "no" >&6; } 15126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15127printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15128as_fn_error $? " 15129This version of the AC_PYTHON_DEVEL macro 15130doesn't work properly with versions of Python before 151312.1.0. You may need to re-run configure, setting the 15132variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG, 15133PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 15134Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 15135to something else than an empty string. 15136 15137See \`config.log' for more details" "$LINENO" 5; } 15138 else 15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 15140printf "%s\n" "skip at user request" >&6; } 15141 fi 15142 else 15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15144printf "%s\n" "yes" >&6; } 15145 fi 15146 15147 # 15148 # if the macro parameter ``version'' is set, honour it 15149 # 15150 if test -n ">= '2.4.0'"; then 15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5 15152printf %s "checking for a version of Python >= '2.4.0'... " >&6; } 15153 ac_supports_python_ver=`$PYTHON -c "import sys; \ 15154 ver = sys.version.split ()[0]; \ 15155 print (ver >= '2.4.0')"` 15156 if test "$ac_supports_python_ver" = "True"; then 15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15158printf "%s\n" "yes" >&6; } 15159 else 15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15161printf "%s\n" "no" >&6; } 15162 as_fn_error $? "this package requires Python >= '2.4.0'. 15163If you have it installed, but it isn't the default Python 15164interpreter in your system path, please pass the PYTHON_VERSION 15165variable to configure. See \`\`configure --help'' for reference. 15166" "$LINENO" 5 15167 PYTHON_VERSION="" 15168 fi 15169 fi 15170 15171 # 15172 # Check if you have distutils, else fail 15173 # 15174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 15175printf %s "checking for the distutils Python package... " >&6; } 15176 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 15177 if test $? -eq 0; then 15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15179printf "%s\n" "yes" >&6; } 15180 else 15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15182printf "%s\n" "no" >&6; } 15183 as_fn_error $? "cannot import Python module \"distutils\". 15184Please check your Python installation. The error was: 15185$ac_distutils_result" "$LINENO" 5 15186 PYTHON_VERSION="" 15187 fi 15188 15189 # 15190 # Check for Python include path 15191 # 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 15193printf %s "checking for Python include path... " >&6; } 15194 if test -z "$PYTHON_CPPFLAGS"; then 15195 python_path=`$PYTHON -c "import distutils.sysconfig; \ 15196 print (distutils.sysconfig.get_python_inc ());"` 15197 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ 15198 print (distutils.sysconfig.get_python_inc (plat_specific=1));"` 15199 if test -n "${python_path}"; then 15200 if test "${plat_python_path}" != "${python_path}"; then 15201 python_path="-I$python_path -I$plat_python_path" 15202 else 15203 python_path="-I$python_path" 15204 fi 15205 fi 15206 PYTHON_CPPFLAGS=$python_path 15207 fi 15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 15209printf "%s\n" "$PYTHON_CPPFLAGS" >&6; } 15210 15211 15212 # 15213 # Check for Python library path 15214 # 15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 15216printf %s "checking for Python library path... " >&6; } 15217 if test -z "$PYTHON_LIBS"; then 15218 # (makes two attempts to ensure we've got a version number 15219 # from the interpreter) 15220 ac_python_version=`cat<<EOD | $PYTHON - 15221 15222# join all versioning strings, on some systems 15223# major/minor numbers could be in different list elements 15224from distutils.sysconfig import * 15225e = get_config_var('VERSION') 15226if e is not None: 15227 print(e) 15228EOD` 15229 15230 if test -z "$ac_python_version"; then 15231 if test -n "$PYTHON_VERSION"; then 15232 ac_python_version=$PYTHON_VERSION 15233 else 15234 ac_python_version=`$PYTHON -c "import sys; \ 15235 print (sys.version[:3])"` 15236 fi 15237 fi 15238 15239 # Make the versioning information available to the compiler 15240 15241printf "%s\n" "#define HAVE_PYTHON \"$ac_python_version\"" >>confdefs.h 15242 15243 15244 # First, the library directory: 15245 ac_python_libdir=`cat<<EOD | $PYTHON - 15246 15247# There should be only one 15248import distutils.sysconfig 15249e = distutils.sysconfig.get_config_var('LIBDIR') 15250if e is not None: 15251 print (e) 15252EOD` 15253 15254 # Now, for the library: 15255 ac_python_library=`cat<<EOD | $PYTHON - 15256 15257import distutils.sysconfig 15258c = distutils.sysconfig.get_config_vars() 15259if 'LDVERSION' in c: 15260 print ('python'+c['LDVERSION']) 15261else: 15262 print ('python'+c['VERSION']) 15263EOD` 15264 15265 # This small piece shamelessly adapted from PostgreSQL python macro; 15266 # credits goes to momjian, I think. I'd like to put the right name 15267 # in the credits, if someone can point me in the right direction... ? 15268 # 15269 if test -n "$ac_python_libdir" -a -n "$ac_python_library" 15270 then 15271 # use the official shared library 15272 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 15273 PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library" 15274 else 15275 # old way: use libpython from python_configdir 15276 ac_python_libdir=`$PYTHON -c \ 15277 "from distutils.sysconfig import get_python_lib as f; \ 15278 import os; \ 15279 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 15280 PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version" 15281 fi 15282 15283 if test -z "PYTHON_LIBS"; then 15284 as_fn_error $? " 15285 Cannot determine location of your Python DSO. Please check it was installed with 15286 dynamic libraries enabled, or try setting PYTHON_LIBS by hand. 15287 " "$LINENO" 5 15288 fi 15289 fi 15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5 15291printf "%s\n" "$PYTHON_LIBS" >&6; } 15292 15293 15294 # 15295 # Check for site packages 15296 # 15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 15298printf %s "checking for Python site-packages path... " >&6; } 15299 if test -z "$PYTHON_SITE_PKG"; then 15300 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 15301 print (distutils.sysconfig.get_python_lib(1,0));"` 15302 fi 15303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 15304printf "%s\n" "$PYTHON_SITE_PKG" >&6; } 15305 15306 15307 # 15308 # libraries which must be linked in when embedding 15309 # 15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 15311printf %s "checking python extra libraries... " >&6; } 15312 if test -z "$PYTHON_EXTRA_LIBS"; then 15313 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 15314 conf = distutils.sysconfig.get_config_var; \ 15315 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"` 15316 fi 15317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 15318printf "%s\n" "$PYTHON_EXTRA_LIBS" >&6; } 15319 15320 15321 # 15322 # linking flags needed when embedding 15323 # 15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 15325printf %s "checking python extra linking flags... " >&6; } 15326 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 15327 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 15328 conf = distutils.sysconfig.get_config_var; \ 15329 print (conf('LINKFORSHARED'))"` 15330 fi 15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 15332printf "%s\n" "$PYTHON_EXTRA_LDFLAGS" >&6; } 15333 15334 15335 # 15336 # final check to see if everything compiles alright 15337 # 15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 15339printf %s "checking consistency of all components of python development environment... " >&6; } 15340 # save current global flags 15341 ac_save_LIBS="$LIBS" 15342 ac_save_LDFLAGS="$LDFLAGS" 15343 ac_save_CPPFLAGS="$CPPFLAGS" 15344 LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS" 15345 LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS" 15346 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 15347 ac_ext=c 15348ac_cpp='$CPP $CPPFLAGS' 15349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15351ac_compiler_gnu=$ac_cv_c_compiler_gnu 15352 15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15354/* end confdefs.h. */ 15355 15356 #include <Python.h> 15357int 15358main (void) 15359{ 15360Py_Initialize(); 15361 ; 15362 return 0; 15363} 15364 15365_ACEOF 15366if ac_fn_c_try_link "$LINENO" 15367then : 15368 pythonexists=yes 15369else $as_nop 15370 pythonexists=no 15371fi 15372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15373 conftest$ac_exeext conftest.$ac_ext 15374 ac_ext=c 15375ac_cpp='$CPP $CPPFLAGS' 15376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15378ac_compiler_gnu=$ac_cv_c_compiler_gnu 15379 15380 # turn back to default flags 15381 CPPFLAGS="$ac_save_CPPFLAGS" 15382 LIBS="$ac_save_LIBS" 15383 LDFLAGS="$ac_save_LDFLAGS" 15384 15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 15386printf "%s\n" "$pythonexists" >&6; } 15387 15388 if test ! "x$pythonexists" = "xyes"; then 15389 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15390printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15391as_fn_error $? " 15392 Could not link test program to Python. Maybe the main Python library has been 15393 installed in some non-standard library path. If so, pass it to configure, 15394 via the LIBS environment variable. 15395 Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\" 15396 ============================================================================ 15397 ERROR! 15398 You probably have to install the development version of the Python package 15399 for your distribution. The exact name of this package varies among them. 15400 ============================================================================ 15401 15402See \`config.log' for more details" "$LINENO" 5; } 15403 PYTHON_VERSION="" 15404 fi 15405 15406 # 15407 # all done! 15408 # 15409 15410 if test ! -z "$ac_python_version"; then 15411 ldns_have_python=yes 15412 fi 15413 15414 # pass additional Python 3 option to SWIG 15415 if test `$PYTHON -c "import sys; \ 15416 ver = sys.version.split()[0]; \ 15417 print(ver >= '3')"` = "True"; then 15418 SWIGPY3="-py3 -DPY3" 15419 15420 fi 15421 15422 # check for SWIG 15423 if test x_$ldns_have_python != x_no; then 15424 # =========================================================================== 15425# https://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html 15426# =========================================================================== 15427# 15428# SYNOPSIS 15429# 15430# AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) 15431# 15432# DESCRIPTION 15433# 15434# This macro searches for a SWIG installation on your system. If found, 15435# then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is 15436# found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. 15437# 15438# You can use the optional first argument to check if the version of the 15439# available SWIG is greater than or equal to the value of the argument. It 15440# should have the format: N[.N[.N]] (N is a number between 0 and 999. Only 15441# the first N is mandatory.) If the version argument is given (e.g. 15442# 1.3.17), AX_PKG_SWIG checks that the swig package is this version number 15443# or higher. 15444# 15445# As usual, action-if-found is executed if SWIG is found, otherwise 15446# action-if-not-found is executed. 15447# 15448# In configure.in, use as: 15449# 15450# AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) 15451# AX_SWIG_ENABLE_CXX 15452# AX_SWIG_MULTI_MODULE_SUPPORT 15453# AX_SWIG_PYTHON 15454# 15455# LICENSE 15456# 15457# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> 15458# Copyright (c) 2008 Alan W. Irwin 15459# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> 15460# Copyright (c) 2008 Andrew Collier 15461# Copyright (c) 2011 Murray Cumming <murrayc@openismus.com> 15462# 15463# This program is free software; you can redistribute it and/or modify it 15464# under the terms of the GNU General Public License as published by the 15465# Free Software Foundation; either version 2 of the License, or (at your 15466# option) any later version. 15467# 15468# This program is distributed in the hope that it will be useful, but 15469# WITHOUT ANY WARRANTY; without even the implied warranty of 15470# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 15471# Public License for more details. 15472# 15473# You should have received a copy of the GNU General Public License along 15474# with this program. If not, see <https://www.gnu.org/licenses/>. 15475# 15476# As a special exception, the respective Autoconf Macro's copyright owner 15477# gives unlimited permission to copy, distribute and modify the configure 15478# scripts that are the output of Autoconf when processing the Macro. You 15479# need not follow the terms of the GNU General Public License when using 15480# or distributing such scripts, even though portions of the text of the 15481# Macro appear in them. The GNU General Public License (GPL) does govern 15482# all other use of the material that constitutes the Autoconf Macro. 15483# 15484# This special exception to the GPL applies to versions of the Autoconf 15485# Macro released by the Autoconf Archive. When you make and distribute a 15486# modified version of the Autoconf Macro, you may extend this special 15487# exception to the GPL to apply to your modified version as well. 15488 15489#serial 13 15490 15491 15492 15493 15494 # check for >=SWIG-2.0.4 if Python 3.2 used 15495 if test `$PYTHON -c "import sys; \ 15496 ver = sys.version.split()[0]; \ 15497 print(ver >= '3.2')"` = "True"; then 15498 15499 # Find path to the "swig" executable. 15500 for ac_prog in swig swig3.0 swig2.0 15501do 15502 # Extract the first word of "$ac_prog", so it can be a program name with args. 15503set dummy $ac_prog; ac_word=$2 15504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15505printf %s "checking for $ac_word... " >&6; } 15506if test ${ac_cv_path_SWIG+y} 15507then : 15508 printf %s "(cached) " >&6 15509else $as_nop 15510 case $SWIG in 15511 [\\/]* | ?:[\\/]*) 15512 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 15513 ;; 15514 *) 15515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15516for as_dir in $PATH 15517do 15518 IFS=$as_save_IFS 15519 case $as_dir in #((( 15520 '') as_dir=./ ;; 15521 */) ;; 15522 *) as_dir=$as_dir/ ;; 15523 esac 15524 for ac_exec_ext in '' $ac_executable_extensions; do 15525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15526 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 15527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15528 break 2 15529 fi 15530done 15531 done 15532IFS=$as_save_IFS 15533 15534 ;; 15535esac 15536fi 15537SWIG=$ac_cv_path_SWIG 15538if test -n "$SWIG"; then 15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 15540printf "%s\n" "$SWIG" >&6; } 15541else 15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15543printf "%s\n" "no" >&6; } 15544fi 15545 15546 15547 test -n "$SWIG" && break 15548done 15549 15550 if test -z "$SWIG" ; then 15551 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 15552 elif test -n "2.0.4" ; then 15553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 15554printf %s "checking SWIG version... " >&6; } 15555 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 15557printf "%s\n" "$swig_version" >&6; } 15558 if test -n "$swig_version" ; then 15559 # Calculate the required version number components 15560 required=2.0.4 15561 required_major=`echo $required | sed 's/[^0-9].*//'` 15562 if test -z "$required_major" ; then 15563 required_major=0 15564 fi 15565 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15566 required_minor=`echo $required | sed 's/[^0-9].*//'` 15567 if test -z "$required_minor" ; then 15568 required_minor=0 15569 fi 15570 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15571 required_patch=`echo $required | sed 's/[^0-9].*//'` 15572 if test -z "$required_patch" ; then 15573 required_patch=0 15574 fi 15575 # Calculate the available version number components 15576 available=$swig_version 15577 available_major=`echo $available | sed 's/[^0-9].*//'` 15578 if test -z "$available_major" ; then 15579 available_major=0 15580 fi 15581 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15582 available_minor=`echo $available | sed 's/[^0-9].*//'` 15583 if test -z "$available_minor" ; then 15584 available_minor=0 15585 fi 15586 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15587 available_patch=`echo $available | sed 's/[^0-9].*//'` 15588 if test -z "$available_patch" ; then 15589 available_patch=0 15590 fi 15591 # Convert the version tuple into a single number for easier comparison. 15592 # Using base 100 should be safe since SWIG internally uses BCD values 15593 # to encode its version number. 15594 required_swig_vernum=`expr $required_major \* 10000 \ 15595 \+ $required_minor \* 100 \+ $required_patch` 15596 available_swig_vernum=`expr $available_major \* 10000 \ 15597 \+ $available_minor \* 100 \+ $available_patch` 15598 15599 if test $available_swig_vernum -lt $required_swig_vernum; then 15600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5 15601printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;} 15602 SWIG='' 15603 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 15604 else 15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 15606printf %s "checking for SWIG library... " >&6; } 15607 SWIG_LIB=`$SWIG -swiglib` 15608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 15609printf "%s\n" "$SWIG_LIB" >&6; } 15610 15611 fi 15612 else 15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 15614printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 15615 SWIG='' 15616 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 15617 fi 15618 fi 15619 15620 15621 else 15622 15623 # Find path to the "swig" executable. 15624 for ac_prog in swig swig3.0 swig2.0 15625do 15626 # Extract the first word of "$ac_prog", so it can be a program name with args. 15627set dummy $ac_prog; ac_word=$2 15628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15629printf %s "checking for $ac_word... " >&6; } 15630if test ${ac_cv_path_SWIG+y} 15631then : 15632 printf %s "(cached) " >&6 15633else $as_nop 15634 case $SWIG in 15635 [\\/]* | ?:[\\/]*) 15636 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 15637 ;; 15638 *) 15639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15640for as_dir in $PATH 15641do 15642 IFS=$as_save_IFS 15643 case $as_dir in #((( 15644 '') as_dir=./ ;; 15645 */) ;; 15646 *) as_dir=$as_dir/ ;; 15647 esac 15648 for ac_exec_ext in '' $ac_executable_extensions; do 15649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15650 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 15651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15652 break 2 15653 fi 15654done 15655 done 15656IFS=$as_save_IFS 15657 15658 ;; 15659esac 15660fi 15661SWIG=$ac_cv_path_SWIG 15662if test -n "$SWIG"; then 15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 15664printf "%s\n" "$SWIG" >&6; } 15665else 15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15667printf "%s\n" "no" >&6; } 15668fi 15669 15670 15671 test -n "$SWIG" && break 15672done 15673 15674 if test -z "$SWIG" ; then 15675 : 15676 elif test -n "" ; then 15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 15678printf %s "checking SWIG version... " >&6; } 15679 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 15680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 15681printf "%s\n" "$swig_version" >&6; } 15682 if test -n "$swig_version" ; then 15683 # Calculate the required version number components 15684 required= 15685 required_major=`echo $required | sed 's/[^0-9].*//'` 15686 if test -z "$required_major" ; then 15687 required_major=0 15688 fi 15689 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15690 required_minor=`echo $required | sed 's/[^0-9].*//'` 15691 if test -z "$required_minor" ; then 15692 required_minor=0 15693 fi 15694 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15695 required_patch=`echo $required | sed 's/[^0-9].*//'` 15696 if test -z "$required_patch" ; then 15697 required_patch=0 15698 fi 15699 # Calculate the available version number components 15700 available=$swig_version 15701 available_major=`echo $available | sed 's/[^0-9].*//'` 15702 if test -z "$available_major" ; then 15703 available_major=0 15704 fi 15705 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15706 available_minor=`echo $available | sed 's/[^0-9].*//'` 15707 if test -z "$available_minor" ; then 15708 available_minor=0 15709 fi 15710 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15711 available_patch=`echo $available | sed 's/[^0-9].*//'` 15712 if test -z "$available_patch" ; then 15713 available_patch=0 15714 fi 15715 # Convert the version tuple into a single number for easier comparison. 15716 # Using base 100 should be safe since SWIG internally uses BCD values 15717 # to encode its version number. 15718 required_swig_vernum=`expr $required_major \* 10000 \ 15719 \+ $required_minor \* 100 \+ $required_patch` 15720 available_swig_vernum=`expr $available_major \* 10000 \ 15721 \+ $available_minor \* 100 \+ $available_patch` 15722 15723 if test $available_swig_vernum -lt $required_swig_vernum; then 15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5 15725printf "%s\n" "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;} 15726 SWIG='' 15727 15728 else 15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 15730printf %s "checking for SWIG library... " >&6; } 15731 SWIG_LIB=`$SWIG -swiglib` 15732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 15733printf "%s\n" "$SWIG_LIB" >&6; } 15734 15735 fi 15736 else 15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 15738printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 15739 SWIG='' 15740 15741 fi 15742 fi 15743 15744 15745 fi 15746 15747 if test ! -x "$SWIG"; then 15748 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5 15749 else 15750 15751printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h 15752 15753 PYLDNS="pyldns" 15754 15755 swig="$SWIG" 15756 15757 ldns_with_pyldns=yes 15758 fi 15759 else 15760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5 15761printf "%s\n" "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # ' 15762 fi 15763 15764 # xtra cflags for pyldns 15765 if test x_$ldns_have_python != x_no; then 15766 15767 15768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5 15769printf %s "checking whether $CC supports -fno-strict-aliasing... " >&6; } 15770cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'` 15771if eval test \${cv_prog_cc_flag_$cache+y} 15772then : 15773 printf %s "(cached) " >&6 15774else $as_nop 15775 15776echo 'void f(void){}' >conftest.c 15777if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then 15778eval "cv_prog_cc_flag_$cache=yes" 15779else 15780eval "cv_prog_cc_flag_$cache=no" 15781fi 15782rm -f conftest conftest.o conftest.c 15783 15784fi 15785 15786if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15788printf "%s\n" "yes" >&6; } 15789: 15790PYTHON_X_CFLAGS="-fno-strict-aliasing" 15791else 15792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15793printf "%s\n" "no" >&6; } 15794: 15795 15796fi 15797 15798 15799 15800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5 15801printf %s "checking whether $CC supports -Wno-missing-field-initializers... " >&6; } 15802cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'` 15803if eval test \${cv_prog_cc_flag_$cache+y} 15804then : 15805 printf %s "(cached) " >&6 15806else $as_nop 15807 15808echo 'void f(void){}' >conftest.c 15809if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then 15810eval "cv_prog_cc_flag_$cache=yes" 15811else 15812eval "cv_prog_cc_flag_$cache=no" 15813fi 15814rm -f conftest conftest.o conftest.c 15815 15816fi 15817 15818if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15820printf "%s\n" "yes" >&6; } 15821: 15822PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS" 15823else 15824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15825printf "%s\n" "no" >&6; } 15826: 15827 15828fi 15829 15830 15831 15832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5 15833printf %s "checking whether $CC supports -Wno-unused-parameter... " >&6; } 15834cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'` 15835if eval test \${cv_prog_cc_flag_$cache+y} 15836then : 15837 printf %s "(cached) " >&6 15838else $as_nop 15839 15840echo 'void f(void){}' >conftest.c 15841if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then 15842eval "cv_prog_cc_flag_$cache=yes" 15843else 15844eval "cv_prog_cc_flag_$cache=no" 15845fi 15846rm -f conftest conftest.o conftest.c 15847 15848fi 15849 15850if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15852printf "%s\n" "yes" >&6; } 15853: 15854PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS" 15855else 15856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15857printf "%s\n" "no" >&6; } 15858: 15859 15860fi 15861 15862 15863 15864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5 15865printf %s "checking whether $CC supports -Wno-unused-variable... " >&6; } 15866cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'` 15867if eval test \${cv_prog_cc_flag_$cache+y} 15868then : 15869 printf %s "(cached) " >&6 15870else $as_nop 15871 15872echo 'void f(void){}' >conftest.c 15873if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then 15874eval "cv_prog_cc_flag_$cache=yes" 15875else 15876eval "cv_prog_cc_flag_$cache=no" 15877fi 15878rm -f conftest conftest.o conftest.c 15879 15880fi 15881 15882if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15884printf "%s\n" "yes" >&6; } 15885: 15886PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS" 15887else 15888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15889printf "%s\n" "no" >&6; } 15890: 15891 15892fi 15893 15894 fi 15895fi 15896 15897 15898# Check for pyldnsx 15899 15900# Check whether --with-pyldnsx was given. 15901if test ${with_pyldnsx+y} 15902then : 15903 withval=$with_pyldnsx; 15904else $as_nop 15905 withval="with_pyldns" 15906fi 15907 15908if test x_$withval != x_no; then 15909 if test x_$ldns_with_pyldns != x_no; then 15910 PYLDNSX="pyldnsx" 15911 15912 ldns_with_pyldnsx=yes 15913 else 15914 if test x_$withval != x_with_pyldns; then 15915 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5 15916 fi 15917 fi 15918fi 15919 15920if test x_$ldns_with_pyldns != x_no; then 15921 PYLDNSINST="install-pyldns" 15922 PYLDNSUNINST="uninstall-pyldns" 15923 15924else 15925 PYLDNSINST="" 15926 PYLDNSUNINST="" 15927 15928fi 15929if test x_$ldns_with_pyldnsx != x_no; then 15930 PYLDNSXINST="install-pyldnsx" 15931 PYLDNSXUNINST="uninstall-pyldnsx" 15932 15933else 15934 PYLDNSXINST="" 15935 PYLDNSXUNINST="" 15936 15937fi 15938 15939# check for perl 15940ldns_with_p5_dns_ldns=no 15941 15942# Check whether --with-p5-dns-ldns was given. 15943if test ${with_p5_dns_ldns+y} 15944then : 15945 withval=$with_p5_dns_ldns; 15946else $as_nop 15947 withval="no" 15948fi 15949 15950ldns_have_perl=no 15951if test x_$withval != x_no; then 15952 # Extract the first word of "perl", so it can be a program name with args. 15953set dummy perl; ac_word=$2 15954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15955printf %s "checking for $ac_word... " >&6; } 15956if test ${ac_cv_path_PERL+y} 15957then : 15958 printf %s "(cached) " >&6 15959else $as_nop 15960 case $PERL in 15961 [\\/]* | ?:[\\/]*) 15962 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 15963 ;; 15964 *) 15965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15966for as_dir in $PATH 15967do 15968 IFS=$as_save_IFS 15969 case $as_dir in #((( 15970 '') as_dir=./ ;; 15971 */) ;; 15972 *) as_dir=$as_dir/ ;; 15973 esac 15974 for ac_exec_ext in '' $ac_executable_extensions; do 15975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15976 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 15977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15978 break 2 15979 fi 15980done 15981 done 15982IFS=$as_save_IFS 15983 15984 ;; 15985esac 15986fi 15987PERL=$ac_cv_path_PERL 15988if test -n "$PERL"; then 15989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 15990printf "%s\n" "$PERL" >&6; } 15991else 15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15993printf "%s\n" "no" >&6; } 15994fi 15995 15996 15997 if test -z "$PERL"; then 15998 as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5 15999 fi 16000 P5_DNS_LDNS="p5-dns-ldns" 16001 TEST_P5_DNS_LDNS="test-p5-dns-ldns" 16002 INSTALL_P5_DNS_LDNS="install-p5-dns-ldns" 16003 UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns" 16004 CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns" 16005 16006else 16007 P5_DNS_LDNS="" 16008 TEST_P5_DNS_LDNS="" 16009 INSTALL_P5_DNS_LDNS="" 16010 UNINSTALL_P5_DNS_LDNS="" 16011 CLEAN_P5_DNS_LDNS="" 16012 16013fi 16014 16015# Use libtool 16016 16017# skip these tests, we do not need them. 16018 16019 16020 16021 16022 16023 16024 16025 16026# always use ./libtool unless override from commandline (libtool=mylibtool) 16027if test -z "$libtool"; then 16028 libtool="./libtool" 16029fi 16030 16031# avoid libtool max commandline length test on systems that fork slowly. 16032 16033if echo "$host_os" | grep "sunos4" >/dev/null; then 16034 lt_cv_sys_max_cmd_len=32750; 16035fi 16036if test -n "$ac_tool_prefix"; then 16037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 16038set dummy ${ac_tool_prefix}ar; ac_word=$2 16039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16040printf %s "checking for $ac_word... " >&6; } 16041if test ${ac_cv_path_AR+y} 16042then : 16043 printf %s "(cached) " >&6 16044else $as_nop 16045 case $AR in 16046 [\\/]* | ?:[\\/]*) 16047 ac_cv_path_AR="$AR" # Let the user override the test with a path. 16048 ;; 16049 *) 16050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16051for as_dir in $PATH 16052do 16053 IFS=$as_save_IFS 16054 case $as_dir in #((( 16055 '') as_dir=./ ;; 16056 */) ;; 16057 *) as_dir=$as_dir/ ;; 16058 esac 16059 for ac_exec_ext in '' $ac_executable_extensions; do 16060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16061 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 16062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16063 break 2 16064 fi 16065done 16066 done 16067IFS=$as_save_IFS 16068 16069 ;; 16070esac 16071fi 16072AR=$ac_cv_path_AR 16073if test -n "$AR"; then 16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 16075printf "%s\n" "$AR" >&6; } 16076else 16077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16078printf "%s\n" "no" >&6; } 16079fi 16080 16081 16082fi 16083if test -z "$ac_cv_path_AR"; then 16084 ac_pt_AR=$AR 16085 # Extract the first word of "ar", so it can be a program name with args. 16086set dummy ar; ac_word=$2 16087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16088printf %s "checking for $ac_word... " >&6; } 16089if test ${ac_cv_path_ac_pt_AR+y} 16090then : 16091 printf %s "(cached) " >&6 16092else $as_nop 16093 case $ac_pt_AR in 16094 [\\/]* | ?:[\\/]*) 16095 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 16096 ;; 16097 *) 16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16099for as_dir in $PATH 16100do 16101 IFS=$as_save_IFS 16102 case $as_dir in #((( 16103 '') as_dir=./ ;; 16104 */) ;; 16105 *) as_dir=$as_dir/ ;; 16106 esac 16107 for ac_exec_ext in '' $ac_executable_extensions; do 16108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16109 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext" 16110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16111 break 2 16112 fi 16113done 16114 done 16115IFS=$as_save_IFS 16116 16117 ;; 16118esac 16119fi 16120ac_pt_AR=$ac_cv_path_ac_pt_AR 16121if test -n "$ac_pt_AR"; then 16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 16123printf "%s\n" "$ac_pt_AR" >&6; } 16124else 16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16126printf "%s\n" "no" >&6; } 16127fi 16128 16129 if test "x$ac_pt_AR" = x; then 16130 AR="false" 16131 else 16132 case $cross_compiling:$ac_tool_warned in 16133yes:) 16134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16135printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16136ac_tool_warned=yes ;; 16137esac 16138 AR=$ac_pt_AR 16139 fi 16140else 16141 AR="$ac_cv_path_AR" 16142fi 16143 16144if test $AR = false; then 16145 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 16146fi 16147 16148 16149 16150 16151 16152 16153tmp_CPPFLAGS=$CPPFLAGS 16154tmp_LDFLAGS=$LDFLAGS 16155tmp_LIBS=$LIBS 16156 16157 16158 16159# Check whether --with-ssl was given. 16160if test ${with_ssl+y} 16161then : 16162 withval=$with_ssl; 16163 16164else $as_nop 16165 16166 withval="yes" 16167 16168fi 16169 16170 16171 withval=$withval 16172 if test x_$withval != x_no; then 16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 16174printf %s "checking for SSL... " >&6; } 16175 if test x_$withval = x_ -o x_$withval = x_yes; then 16176 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 16177 fi 16178 for dir in $withval; do 16179 ssldir="$dir" 16180 if test -f "$dir/include/openssl/ssl.h"; then 16181 found_ssl="yes" 16182 16183printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h 16184 16185 if test "$ssldir" != "/usr"; then 16186 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 16187 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 16188 fi 16189 break; 16190 fi 16191 done 16192 if test x_$found_ssl != x_yes; then 16193 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 16194 else 16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 16196printf "%s\n" "found in $ssldir" >&6; } 16197 HAVE_SSL=yes 16198 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 16199 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 16200 LDFLAGS="$LDFLAGS -L$ssldir/lib64" 16201 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib64" 16202 16203 if test "x$enable_rpath" = xyes; then 16204 if echo "$ssldir/lib64" | grep "^/" >/dev/null; then 16205 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib64" 16206 fi 16207 fi 16208 16209 else 16210 LDFLAGS="$LDFLAGS -L$ssldir/lib" 16211 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 16212 16213 if test "x$enable_rpath" = xyes; then 16214 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 16215 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 16216 fi 16217 fi 16218 16219 fi 16220 fi 16221 16222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 16223printf %s "checking for EVP_sha256 in -lcrypto... " >&6; } 16224 LIBS="$LIBS -lcrypto" 16225 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16227/* end confdefs.h. */ 16228 16229int 16230main (void) 16231{ 16232 16233 int EVP_sha256(void); 16234 (void)EVP_sha256(); 16235 16236 ; 16237 return 0; 16238} 16239_ACEOF 16240if ac_fn_c_try_link "$LINENO" 16241then : 16242 16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16244printf "%s\n" "yes" >&6; } 16245 16246printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16247 16248 16249else $as_nop 16250 16251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16252printf "%s\n" "no" >&6; } 16253 # check if -lwsock32 or -lgdi32 are needed. 16254 BAKLIBS="$LIBS" 16255 BAKSSLLIBS="$LIBSSL_LIBS" 16256 LIBS="$LIBS -lgdi32 -lws2_32" 16257 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 16258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 16259printf %s "checking if -lcrypto needs -lgdi32... " >&6; } 16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16261/* end confdefs.h. */ 16262 16263int 16264main (void) 16265{ 16266 16267 int EVP_sha256(void); 16268 (void)EVP_sha256(); 16269 16270 ; 16271 return 0; 16272} 16273_ACEOF 16274if ac_fn_c_try_link "$LINENO" 16275then : 16276 16277 16278printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16279 16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16281printf "%s\n" "yes" >&6; } 16282 16283else $as_nop 16284 16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16286printf "%s\n" "no" >&6; } 16287 LIBS="$BAKLIBS" 16288 LIBSSL_LIBS="$BAKSSLLIBS" 16289 LIBS="$LIBS -ldl" 16290 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 16292printf %s "checking if -lcrypto needs -ldl... " >&6; } 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295 16296int 16297main (void) 16298{ 16299 16300 int EVP_sha256(void); 16301 (void)EVP_sha256(); 16302 16303 ; 16304 return 0; 16305} 16306_ACEOF 16307if ac_fn_c_try_link "$LINENO" 16308then : 16309 16310 16311printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16312 16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16314printf "%s\n" "yes" >&6; } 16315 16316else $as_nop 16317 16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16319printf "%s\n" "no" >&6; } 16320 LIBS="$BAKLIBS" 16321 LIBSSL_LIBS="$BAKSSLLIBS" 16322 LIBS="$LIBS -ldl -pthread" 16323 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 16325printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; } 16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16327/* end confdefs.h. */ 16328 16329int 16330main (void) 16331{ 16332 16333 int EVP_sha256(void); 16334 (void)EVP_sha256(); 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_c_try_link "$LINENO" 16341then : 16342 16343 16344printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16345 16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16347printf "%s\n" "yes" >&6; } 16348 16349else $as_nop 16350 16351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16352printf "%s\n" "no" >&6; } 16353 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 16354 16355fi 16356rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16357 conftest$ac_exeext conftest.$ac_ext 16358 16359fi 16360rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16361 conftest$ac_exeext conftest.$ac_ext 16362 16363fi 16364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16365 conftest$ac_exeext conftest.$ac_ext 16366 16367fi 16368rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16369 conftest$ac_exeext conftest.$ac_ext 16370 fi 16371 16372 16373 fi 16374ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 16375" 16376if test "x$ac_cv_header_openssl_ssl_h" = xyes 16377then : 16378 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 16379 16380fi 16381 16382ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 16383" 16384if test "x$ac_cv_header_openssl_err_h" = xyes 16385then : 16386 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 16387 16388fi 16389 16390ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 16391" 16392if test "x$ac_cv_header_openssl_rand_h" = xyes 16393then : 16394 printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h 16395 16396fi 16397 16398 16399 16400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 16401printf %s "checking for LibreSSL... " >&6; } 16402if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 16403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16404printf "%s\n" "yes" >&6; } 16405 16406printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h 16407 16408else 16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16410printf "%s\n" "no" >&6; } 16411fi 16412ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 16413if test "x$ac_cv_header_openssl_ssl_h" = xyes 16414then : 16415 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 16416 16417fi 16418ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" 16419if test "x$ac_cv_header_openssl_evp_h" = xyes 16420then : 16421 printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h 16422 16423fi 16424ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default" 16425if test "x$ac_cv_header_openssl_engine_h" = xyes 16426then : 16427 printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h 16428 16429fi 16430ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default" 16431if test "x$ac_cv_header_openssl_conf_h" = xyes 16432then : 16433 printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h 16434 16435fi 16436 16437ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256" 16438if test "x$ac_cv_func_EVP_sha256" = xyes 16439then : 16440 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16441 16442fi 16443ac_fn_c_check_func "$LINENO" "EVP_sha384" "ac_cv_func_EVP_sha384" 16444if test "x$ac_cv_func_EVP_sha384" = xyes 16445then : 16446 printf "%s\n" "#define HAVE_EVP_SHA384 1" >>confdefs.h 16447 16448fi 16449ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512" 16450if test "x$ac_cv_func_EVP_sha512" = xyes 16451then : 16452 printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h 16453 16454fi 16455ac_fn_c_check_func "$LINENO" "EVP_PKEY_keygen" "ac_cv_func_EVP_PKEY_keygen" 16456if test "x$ac_cv_func_EVP_PKEY_keygen" = xyes 16457then : 16458 printf "%s\n" "#define HAVE_EVP_PKEY_KEYGEN 1" >>confdefs.h 16459 16460fi 16461ac_fn_c_check_func "$LINENO" "ECDSA_SIG_get0" "ac_cv_func_ECDSA_SIG_get0" 16462if test "x$ac_cv_func_ECDSA_SIG_get0" = xyes 16463then : 16464 printf "%s\n" "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h 16465 16466fi 16467ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new" 16468if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes 16469then : 16470 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h 16471 16472fi 16473ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0" 16474if test "x$ac_cv_func_DSA_SIG_set0" = xyes 16475then : 16476 printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h 16477 16478fi 16479ac_fn_c_check_func "$LINENO" "DSA_SIG_get0" "ac_cv_func_DSA_SIG_get0" 16480if test "x$ac_cv_func_DSA_SIG_get0" = xyes 16481then : 16482 printf "%s\n" "#define HAVE_DSA_SIG_GET0 1" >>confdefs.h 16483 16484fi 16485ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1" 16486if test "x$ac_cv_func_EVP_dss1" = xyes 16487then : 16488 printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h 16489 16490fi 16491ac_fn_c_check_func "$LINENO" "DSA_get0_pqg" "ac_cv_func_DSA_get0_pqg" 16492if test "x$ac_cv_func_DSA_get0_pqg" = xyes 16493then : 16494 printf "%s\n" "#define HAVE_DSA_GET0_PQG 1" >>confdefs.h 16495 16496fi 16497ac_fn_c_check_func "$LINENO" "DSA_get0_key" "ac_cv_func_DSA_get0_key" 16498if test "x$ac_cv_func_DSA_get0_key" = xyes 16499then : 16500 printf "%s\n" "#define HAVE_DSA_GET0_KEY 1" >>confdefs.h 16501 16502fi 16503ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup" 16504if test "x$ac_cv_func_EVP_cleanup" = xyes 16505then : 16506 printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h 16507 16508fi 16509ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup" 16510if test "x$ac_cv_func_ENGINE_cleanup" = xyes 16511then : 16512 printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h 16513 16514fi 16515ac_fn_c_check_func "$LINENO" "ENGINE_free" "ac_cv_func_ENGINE_free" 16516if test "x$ac_cv_func_ENGINE_free" = xyes 16517then : 16518 printf "%s\n" "#define HAVE_ENGINE_FREE 1" >>confdefs.h 16519 16520fi 16521ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data" 16522if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes 16523then : 16524 printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h 16525 16526fi 16527ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings" 16528if test "x$ac_cv_func_ERR_free_strings" = xyes 16529then : 16530 printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h 16531 16532fi 16533ac_fn_c_check_func "$LINENO" "CONF_modules_unload" "ac_cv_func_CONF_modules_unload" 16534if test "x$ac_cv_func_CONF_modules_unload" = xyes 16535then : 16536 printf "%s\n" "#define HAVE_CONF_MODULES_UNLOAD 1" >>confdefs.h 16537 16538fi 16539ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 16540if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 16541then : 16542 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 16543 16544fi 16545ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 16546if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 16547then : 16548 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 16549 16550fi 16551ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings" 16552if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes 16553then : 16554 printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h 16555 16556fi 16557ac_fn_c_check_func "$LINENO" "CRYPTO_memcmp" "ac_cv_func_CRYPTO_memcmp" 16558if test "x$ac_cv_func_CRYPTO_memcmp" = xyes 16559then : 16560 printf "%s\n" "#define HAVE_CRYPTO_MEMCMP 1" >>confdefs.h 16561 16562fi 16563ac_fn_c_check_func "$LINENO" "EVP_PKEY_get_base_id" "ac_cv_func_EVP_PKEY_get_base_id" 16564if test "x$ac_cv_func_EVP_PKEY_get_base_id" = xyes 16565then : 16566 printf "%s\n" "#define HAVE_EVP_PKEY_GET_BASE_ID 1" >>confdefs.h 16567 16568fi 16569 16570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 16571printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 16572if test ${ac_cv_c_undeclared_builtin_options+y} 16573then : 16574 printf %s "(cached) " >&6 16575else $as_nop 16576 ac_save_CFLAGS=$CFLAGS 16577 ac_cv_c_undeclared_builtin_options='cannot detect' 16578 for ac_arg in '' -fno-builtin; do 16579 CFLAGS="$ac_save_CFLAGS $ac_arg" 16580 # This test program should *not* compile successfully. 16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16582/* end confdefs.h. */ 16583 16584int 16585main (void) 16586{ 16587(void) strchr; 16588 ; 16589 return 0; 16590} 16591_ACEOF 16592if ac_fn_c_try_compile "$LINENO" 16593then : 16594 16595else $as_nop 16596 # This test program should compile successfully. 16597 # No library function is consistently available on 16598 # freestanding implementations, so test against a dummy 16599 # declaration. Include always-available headers on the 16600 # off chance that they somehow elicit warnings. 16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16602/* end confdefs.h. */ 16603#include <float.h> 16604#include <limits.h> 16605#include <stdarg.h> 16606#include <stddef.h> 16607extern void ac_decl (int, char *); 16608 16609int 16610main (void) 16611{ 16612(void) ac_decl (0, (char *) 0); 16613 (void) ac_decl; 16614 16615 ; 16616 return 0; 16617} 16618_ACEOF 16619if ac_fn_c_try_compile "$LINENO" 16620then : 16621 if test x"$ac_arg" = x 16622then : 16623 ac_cv_c_undeclared_builtin_options='none needed' 16624else $as_nop 16625 ac_cv_c_undeclared_builtin_options=$ac_arg 16626fi 16627 break 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16630fi 16631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16632 done 16633 CFLAGS=$ac_save_CFLAGS 16634 16635fi 16636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 16637printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 16638 case $ac_cv_c_undeclared_builtin_options in #( 16639 'cannot detect') : 16640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16641printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16642as_fn_error $? "cannot make $CC report undeclared builtins 16643See \`config.log' for more details" "$LINENO" 5; } ;; #( 16644 'none needed') : 16645 ac_c_undeclared_builtin_options='' ;; #( 16646 *) : 16647 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 16648esac 16649 16650ac_fn_check_decl "$LINENO" "EVP_PKEY_base_id" "ac_cv_have_decl_EVP_PKEY_base_id" "$ac_includes_default 16651#include <openssl/evp.h> 16652 16653" "$ac_c_undeclared_builtin_options" "CFLAGS" 16654if test "x$ac_cv_have_decl_EVP_PKEY_base_id" = xyes 16655then : 16656 ac_have_decl=1 16657else $as_nop 16658 ac_have_decl=0 16659fi 16660printf "%s\n" "#define HAVE_DECL_EVP_PKEY_BASE_ID $ac_have_decl" >>confdefs.h 16661if test $ac_have_decl = 1 16662then : 16663 16664 16665printf "%s\n" "#define HAVE_EVP_PKEY_BASE_ID 1" >>confdefs.h 16666 16667 16668fi 16669 16670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking for OpenSSL >= 3.0.0" >&5 16671printf %s "checking Checking for OpenSSL >= 3.0.0... " >&6; } 16672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16673/* end confdefs.h. */ 16674 16675#include <openssl/ssl.h> 16676#if OPENSSL_VERSION_MAJOR >= 3 16677#define SOMETHING 16678#else 16679This fails compiling. 16680So either no OpenSSL at all (the include already failed), or the version < 3.0.0 16681#endif 16682 16683int 16684main (void) 16685{ 16686 16687 16688 ; 16689 return 0; 16690} 16691_ACEOF 16692if ac_fn_c_try_compile "$LINENO" 16693then : 16694 16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16696printf "%s\n" "yes" >&6; } 16697 CFLAGS="-DOPENSSL_API_COMPAT=10100 $CFLAGS" 16698 16699else $as_nop 16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16701printf "%s\n" "no" >&6; } 16702 16703fi 16704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16705 16706 16707# for macosx, see if glibtool exists and use that 16708# BSD's need to know the version... 16709#AC_CHECK_PROG(glibtool, glibtool, [glibtool], ) 16710#AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool]) 16711 16712# Check whether --enable-sha2 was given. 16713if test ${enable_sha2+y} 16714then : 16715 enableval=$enable_sha2; 16716fi 16717 16718case "$enable_sha2" in 16719 no) 16720 ;; 16721 yes|*) 16722 if test "x$HAVE_SSL" != "xyes"; then 16723 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5 16724 fi 16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5 16726printf %s "checking for SHA256 and SHA512... " >&6; } 16727 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init" 16728if test "x$ac_cv_func_SHA256_Init" = xyes 16729then : 16730 16731else $as_nop 16732 16733 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5 16734 16735fi 16736 16737 16738printf "%s\n" "#define USE_SHA2 1" >>confdefs.h 16739 16740 ;; 16741esac 16742 16743# check whether gost also works 16744 16745# Check whether --enable-gost was given. 16746if test ${enable_gost+y} 16747then : 16748 enableval=$enable_gost; 16749fi 16750 16751case "$enable_gost" in 16752 no) 16753 ;; 16754 *) if test "x$HAVE_SSL" != "xyes"; then 16755 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5 16756 fi 16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5 16758printf %s "checking for GOST... " >&6; } 16759 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 16760if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes 16761then : 16762 16763else $as_nop 16764 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5 16765fi 16766 16767 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 16768if test "x$ac_cv_func_EC_KEY_new" = xyes 16769then : 16770 16771else $as_nop 16772 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5 16773fi 16774 16775 16776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 16777printf %s "checking if GOST works... " >&6; } 16778if test c${cross_compiling} = cno; then 16779BAKCFLAGS="$CFLAGS" 16780if test -n "$ssldir"; then 16781 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 16782 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib64" 16783 else 16784 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 16785 fi 16786fi 16787if test "$cross_compiling" = yes 16788then : 16789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16790printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16791as_fn_error $? "cannot run test program while cross compiling 16792See \`config.log' for more details" "$LINENO" 5; } 16793else $as_nop 16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16795/* end confdefs.h. */ 16796 16797#include <string.h> 16798#ifdef HAVE_OPENSSL_SSL_H 16799#include <openssl/ssl.h> 16800#endif 16801#ifdef HAVE_OPENSSL_EVP_H 16802#include <openssl/evp.h> 16803#endif 16804#ifdef HAVE_OPENSSL_ENGINE_H 16805#include <openssl/engine.h> 16806#endif 16807#ifdef HAVE_OPENSSL_CONF_H 16808#include <openssl/conf.h> 16809#endif 16810/* routine to load gost (from sldns) */ 16811int load_gost_id(void) 16812{ 16813 static int gost_id = 0; 16814 const EVP_PKEY_ASN1_METHOD* meth; 16815 ENGINE* e; 16816 16817 if(gost_id) return gost_id; 16818 16819 /* see if configuration loaded gost implementation from other engine*/ 16820 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 16821 if(meth) { 16822 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16823 return gost_id; 16824 } 16825 16826 /* see if engine can be loaded already */ 16827 e = ENGINE_by_id("gost"); 16828 if(!e) { 16829 /* load it ourself, in case statically linked */ 16830 ENGINE_load_builtin_engines(); 16831 ENGINE_load_dynamic(); 16832 e = ENGINE_by_id("gost"); 16833 } 16834 if(!e) { 16835 /* no gost engine in openssl */ 16836 return 0; 16837 } 16838 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 16839 ENGINE_finish(e); 16840 ENGINE_free(e); 16841 return 0; 16842 } 16843 16844 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 16845 if(!meth) { 16846 /* algo not found */ 16847 ENGINE_finish(e); 16848 ENGINE_free(e); 16849 return 0; 16850 } 16851 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16852 return gost_id; 16853} 16854int main(void) { 16855 EVP_MD_CTX* ctx; 16856 const EVP_MD* md; 16857 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 16858 const char* str = "Hello world"; 16859 const unsigned char check[] = { 16860 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 16861 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 16862 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 16863 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 16864 }; 16865 OPENSSL_config(NULL); 16866 (void)load_gost_id(); 16867 md = EVP_get_digestbyname("md_gost94"); 16868 if(!md) return 1; 16869 memset(digest, 0, sizeof(digest)); 16870 ctx = EVP_MD_CTX_create(); 16871 if(!ctx) return 2; 16872 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 16873 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 16874 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 16875 /* uncomment to see the hash calculated. 16876 {int i; 16877 for(i=0; i<32; i++) 16878 printf(" %2.2x", (int)digest[i]); 16879 printf("\n");} 16880 */ 16881 if(memcmp(digest, check, sizeof(check)) != 0) 16882 return 6; 16883 return 0; 16884} 16885 16886_ACEOF 16887if ac_fn_c_try_run "$LINENO" 16888then : 16889 eval "ac_cv_c_gost_works=yes" 16890else $as_nop 16891 eval "ac_cv_c_gost_works=no" 16892fi 16893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16894 conftest.$ac_objext conftest.beam conftest.$ac_ext 16895fi 16896 16897CFLAGS="$BAKCFLAGS" 16898else 16899eval "ac_cv_c_gost_works=maybe" 16900fi 16901 16902 # Check whether --enable-gost-anyway was given. 16903if test ${enable_gost_anyway+y} 16904then : 16905 enableval=$enable_gost_anyway; 16906fi 16907 16908 if test "$ac_cv_c_gost_works" != "no" -o "$enable_gost_anyway" = "yes"; then 16909 if test "$ac_cv_c_gost_works" = "no"; then 16910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, but compiling with GOST support anyway" >&5 16911printf "%s\n" "no, but compiling with GOST support anyway" >&6; } 16912 else 16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16914printf "%s\n" "yes" >&6; } 16915 fi 16916 use_gost="yes" 16917 16918printf "%s\n" "#define USE_GOST 1" >>confdefs.h 16919 16920 else 16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16922printf "%s\n" "no" >&6; } 16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Gost support does not work because the engine is missing." >&5 16924printf "%s\n" "$as_me: WARNING: Gost support does not work because the engine is missing." >&2;} 16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&5 16926printf "%s\n" "$as_me: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&2;} 16927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&5 16928printf "%s\n" "$as_me: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&2;} 16929 fi 16930 ;; 16931esac 16932 16933# Check whether --enable-ecdsa was given. 16934if test ${enable_ecdsa+y} 16935then : 16936 enableval=$enable_ecdsa; 16937fi 16938 16939case "$enable_ecdsa" in 16940 no) 16941 ;; 16942 *) if test "x$HAVE_SSL" != "xyes"; then 16943 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5 16944 fi 16945 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 16946if test "x$ac_cv_func_ECDSA_sign" = xyes 16947then : 16948 16949else $as_nop 16950 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 16951fi 16952 16953 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 16954if test "x$ac_cv_func_SHA384_Init" = xyes 16955then : 16956 16957else $as_nop 16958 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 16959fi 16960 16961 ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 16962#include <openssl/evp.h> 16963 16964" "$ac_c_undeclared_builtin_options" "CFLAGS" 16965if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes 16966then : 16967 ac_have_decl=1 16968else $as_nop 16969 ac_have_decl=0 16970fi 16971printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h 16972if test $ac_have_decl = 1 16973then : 16974 16975else $as_nop 16976 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 16977fi 16978ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 16979#include <openssl/evp.h> 16980 16981" "$ac_c_undeclared_builtin_options" "CFLAGS" 16982if test "x$ac_cv_have_decl_NID_secp384r1" = xyes 16983then : 16984 ac_have_decl=1 16985else $as_nop 16986 ac_have_decl=0 16987fi 16988printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h 16989if test $ac_have_decl = 1 16990then : 16991 16992else $as_nop 16993 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 16994fi 16995 16996 # we now know we have ECDSA and the required curves. 16997 16998printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h 16999 17000 ;; 17001esac 17002 17003# Check whether --enable-dsa was given. 17004if test ${enable_dsa+y} 17005then : 17006 enableval=$enable_dsa; 17007fi 17008 17009case "$enable_dsa" in 17010 no) 17011 ldns_build_config_use_dsa=0 17012 17013 ;; 17014 *) # detect if DSA is supported, and turn it off if not. 17015 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 17016if test "x$ac_cv_func_DSA_SIG_new" = xyes 17017then : 17018 17019 17020printf "%s\n" "#define USE_DSA 1" >>confdefs.h 17021 17022 ldns_build_config_use_dsa=1 17023 17024 17025else $as_nop 17026 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 17027 fi 17028 ldns_build_config_use_dsa=0 17029 17030fi 17031 17032 ;; 17033esac 17034 17035# Check whether --enable-ed25519 was given. 17036if test ${enable_ed25519+y} 17037then : 17038 enableval=$enable_ed25519; 17039fi 17040 17041case "$enable_ed25519" in 17042 no) 17043 ldns_build_config_use_ed25519=0 17044 17045 ;; 17046 *) ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 17047#include <openssl/evp.h> 17048 17049" "$ac_c_undeclared_builtin_options" "CFLAGS" 17050if test "x$ac_cv_have_decl_NID_ED25519" = xyes 17051then : 17052 ac_have_decl=1 17053else $as_nop 17054 ac_have_decl=0 17055fi 17056printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h 17057if test $ac_have_decl = 1 17058then : 17059 17060 17061printf "%s\n" "#define USE_ED25519 1" >>confdefs.h 17062 17063 ldns_build_config_use_ed25519=1 17064 17065 17066else $as_nop 17067 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 17068 fi 17069 ldns_build_config_use_ed25519=0 17070 17071fi 17072 17073 ;; 17074esac 17075 17076# Check whether --enable-ed448 was given. 17077if test ${enable_ed448+y} 17078then : 17079 enableval=$enable_ed448; 17080fi 17081 17082case "$enable_ed448" in 17083 no) 17084 ldns_build_config_use_ed448=0 17085 17086 ;; 17087 *) ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 17088#include <openssl/evp.h> 17089 17090" "$ac_c_undeclared_builtin_options" "CFLAGS" 17091if test "x$ac_cv_have_decl_NID_ED448" = xyes 17092then : 17093 ac_have_decl=1 17094else $as_nop 17095 ac_have_decl=0 17096fi 17097printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h 17098if test $ac_have_decl = 1 17099then : 17100 17101 17102printf "%s\n" "#define USE_ED448 1" >>confdefs.h 17103 17104 ldns_build_config_use_ed448=1 17105 17106 17107else $as_nop 17108 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 17109 fi 17110 ldns_build_config_use_ed448=0 17111 17112fi 17113 17114 ;; 17115esac 17116 17117# Check whether --enable-dane was given. 17118if test ${enable_dane+y} 17119then : 17120 enableval=$enable_dane; 17121fi 17122 17123# Check whether --enable-dane-verify was given. 17124if test ${enable_dane_verify+y} 17125then : 17126 enableval=$enable_dane_verify; 17127fi 17128 17129# Check whether --enable-dane-ta-usage was given. 17130if test ${enable_dane_ta_usage+y} 17131then : 17132 enableval=$enable_dane_ta_usage; 17133fi 17134 17135 17136# Check whether --enable-full-dane was given. 17137if test ${enable_full_dane+y} 17138then : 17139 enableval=$enable_full_dane; 17140 enable_dane_ta_usage=yes 17141 enable_dane_verify=yes 17142 enable_dane=yes 17143 17144fi 17145 17146# Check whether --enable-no-dane-ta-usage was given. 17147if test ${enable_no_dane_ta_usage+y} 17148then : 17149 enableval=$enable_no_dane_ta_usage; 17150 enable_dane_ta_usage=no 17151 enable_dane_verify=yes 17152 enable_dane=yes 17153 17154fi 17155 17156# Check whether --enable-no-dane-verify was given. 17157if test ${enable_no_dane_verify+y} 17158then : 17159 enableval=$enable_no_dane_verify; 17160 enable_dane_ta_usage=no 17161 enable_dane_verify=no 17162 enable_dane=yes 17163 17164fi 17165 17166case "$enable_dane" in 17167 no) 17168 ldns_build_config_use_dane=0 17169 17170 ldns_build_config_use_dane_verify=0 17171 17172 ldns_build_config_use_dane_ta_usage=0 17173 17174 ;; 17175 *) if test "x$HAVE_SSL" != "xyes"; then 17176 as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5 17177 fi 17178 ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca" 17179if test "x$ac_cv_func_X509_check_ca" = xyes 17180then : 17181 17182else $as_nop 17183 as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5 17184fi 17185 17186 ldns_build_config_use_dane=1 17187 17188 17189printf "%s\n" "#define USE_DANE 1" >>confdefs.h 17190 17191 case "$enable_dane_verify" in 17192 no) 17193 ldns_build_config_use_dane_verify=0 17194 17195 ldns_build_config_use_dane_ta_usage=0 17196 17197 ;; 17198 *) 17199 ldns_build_config_use_dane_verify=1 17200 17201 17202printf "%s\n" "#define USE_DANE_VERIFY 1" >>confdefs.h 17203 17204 case "$enable_dane_ta_usage" in 17205 no) 17206 ldns_build_config_use_dane_ta_usage=0 17207 17208 ;; 17209 *) danetmpLIBS="$LIBS" 17210 LIBS="-lssl -lcrypto $LIBS" 17211 ac_fn_c_check_func "$LINENO" "SSL_get0_dane" "ac_cv_func_SSL_get0_dane" 17212if test "x$ac_cv_func_SSL_get0_dane" = xyes 17213then : 17214 17215else $as_nop 17216 as_fn_error $? "OpenSSL does not support offline DANE verification (Needed for the DANE-TA usage type). Please upgrade OpenSSL to version >= 1.1.0 or rerun with --disable-dane-verify or --disable-dane-ta-usage" "$LINENO" 5 17217fi 17218 17219 LIBSSL_LIBS="-lssl $LIBSSL_LIBS" 17220 LIBS="$danetmpLIBS" 17221 ldns_build_config_use_dane_ta_usage=1 17222 17223 17224printf "%s\n" "#define USE_DANE_TA_USAGE 1" >>confdefs.h 17225 17226 ;; 17227 esac 17228 esac 17229 ;; 17230esac 17231 17232# Check whether --enable-rrtype-ninfo was given. 17233if test ${enable_rrtype_ninfo+y} 17234then : 17235 enableval=$enable_rrtype_ninfo; 17236fi 17237 17238case "$enable_rrtype_ninfo" in 17239 yes) 17240 17241printf "%s\n" "#define RRTYPE_NINFO /**/" >>confdefs.h 17242 17243 ;; 17244 no|*) 17245 ;; 17246esac 17247# Check whether --enable-rrtype-rkey was given. 17248if test ${enable_rrtype_rkey+y} 17249then : 17250 enableval=$enable_rrtype_rkey; 17251fi 17252 17253case "$enable_rrtype_rkey" in 17254 yes) 17255 17256printf "%s\n" "#define RRTYPE_RKEY /**/" >>confdefs.h 17257 17258 ;; 17259 no|*) 17260 ;; 17261esac 17262# Check whether --enable-rrtype-openpgpkey was given. 17263if test ${enable_rrtype_openpgpkey+y} 17264then : 17265 enableval=$enable_rrtype_openpgpkey; 17266fi 17267 17268case "$enable_rrtype_openpgpkey" in 17269 no) 17270 ;; 17271 yes|*) 17272 17273printf "%s\n" "#define RRTYPE_OPENPGPKEY /**/" >>confdefs.h 17274 17275 ;; 17276esac 17277# Check whether --enable-rrtype-ta was given. 17278if test ${enable_rrtype_ta+y} 17279then : 17280 enableval=$enable_rrtype_ta; 17281fi 17282 17283case "$enable_rrtype_ta" in 17284 yes) 17285 17286printf "%s\n" "#define RRTYPE_TA /**/" >>confdefs.h 17287 17288 ;; 17289 no|*) 17290 ;; 17291esac 17292# Check whether --enable-rrtype-avc was given. 17293if test ${enable_rrtype_avc+y} 17294then : 17295 enableval=$enable_rrtype_avc; 17296fi 17297 17298case "$enable_rrtype_avc" in 17299 yes) 17300 17301printf "%s\n" "#define RRTYPE_AVC /**/" >>confdefs.h 17302 17303 ;; 17304 no|*) 17305 ;; 17306esac 17307# Check whether --enable-rrtype-doa was given. 17308if test ${enable_rrtype_doa+y} 17309then : 17310 enableval=$enable_rrtype_doa; 17311fi 17312 17313case "$enable_rrtype_doa" in 17314 yes) 17315 17316printf "%s\n" "#define RRTYPE_DOA /**/" >>confdefs.h 17317 17318 ;; 17319 no|*) 17320 ;; 17321esac 17322# Check whether --enable-rrtype-amtrelay was given. 17323if test ${enable_rrtype_amtrelay+y} 17324then : 17325 enableval=$enable_rrtype_amtrelay; 17326fi 17327 17328case "$enable_rrtype_amtrelay" in 17329 yes) 17330 17331printf "%s\n" "#define RRTYPE_AMTRELAY /**/" >>confdefs.h 17332 17333 ;; 17334 no|*) 17335 ;; 17336esac 17337# Check whether --enable-rrtype-svcb-https was given. 17338if test ${enable_rrtype_svcb_https+y} 17339then : 17340 enableval=$enable_rrtype_svcb_https; 17341fi 17342 17343case "$enable_rrtype_svcb_https" in 17344 no) 17345 ;; 17346 yes|*) 17347 17348printf "%s\n" "#define RRTYPE_SVCB_HTTPS /**/" >>confdefs.h 17349 17350 ;; 17351esac 17352 17353 17354 17355 17356 17357 17358if test "x$HAVE_SSL" = "xyes"; then 17359 if echo "$LIBSSL_LIBS" | grep -- "-lssl" >/dev/null 2>&1; then 17360 LIBSSL_SSL_LIBS="$LIBSSL_LIBS" 17361 else 17362 LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS" 17363 fi 17364 LIBSSL_SSL_LIBS="$LIBSSL_SSL_LIBS" 17365 17366fi 17367CPPFLAGS=$tmp_CPPFLAGS 17368LDFLAGS=$tmp_LDFLAGS 17369LIBS=$tmp_LIBS 17370 17371 17372# add option to disable the evil rpath 17373 17374# Check whether --enable-rpath was given. 17375if test ${enable_rpath+y} 17376then : 17377 enableval=$enable_rpath; enable_rpath=$enableval 17378else $as_nop 17379 enable_rpath=yes 17380fi 17381 17382if test "x$enable_rpath" = xno; then 17383 ac_config_commands="$ac_config_commands disable-rpath" 17384 17385fi 17386 17387 17388#AC_RUN_IFELSE([AC_LANG_SOURCE( 17389#[ 17390#int main() 17391#{ 17392#short one = 1; 17393#char *cp = (char*)&one; 17394#if ( *cp == 0 ) 17395#return(0); 17396#else 17397#return(1); 17398#} 17399#])], [],[ 17400#AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian]) 17401#],[]) 17402 17403# should define WORDS_BIGENDIAN if the system is big-endian 17404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17405printf %s "checking whether byte ordering is bigendian... " >&6; } 17406if test ${ac_cv_c_bigendian+y} 17407then : 17408 printf %s "(cached) " >&6 17409else $as_nop 17410 ac_cv_c_bigendian=unknown 17411 # See if we're dealing with a universal compiler. 17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17413/* end confdefs.h. */ 17414#ifndef __APPLE_CC__ 17415 not a universal capable compiler 17416 #endif 17417 typedef int dummy; 17418 17419_ACEOF 17420if ac_fn_c_try_compile "$LINENO" 17421then : 17422 17423 # Check for potential -arch flags. It is not universal unless 17424 # there are at least two -arch flags with different values. 17425 ac_arch= 17426 ac_prev= 17427 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17428 if test -n "$ac_prev"; then 17429 case $ac_word in 17430 i?86 | x86_64 | ppc | ppc64) 17431 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17432 ac_arch=$ac_word 17433 else 17434 ac_cv_c_bigendian=universal 17435 break 17436 fi 17437 ;; 17438 esac 17439 ac_prev= 17440 elif test "x$ac_word" = "x-arch"; then 17441 ac_prev=arch 17442 fi 17443 done 17444fi 17445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17446 if test $ac_cv_c_bigendian = unknown; then 17447 # See if sys/param.h defines the BYTE_ORDER macro. 17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17449/* end confdefs.h. */ 17450#include <sys/types.h> 17451 #include <sys/param.h> 17452 17453int 17454main (void) 17455{ 17456#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17457 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17458 && LITTLE_ENDIAN) 17459 bogus endian macros 17460 #endif 17461 17462 ; 17463 return 0; 17464} 17465_ACEOF 17466if ac_fn_c_try_compile "$LINENO" 17467then : 17468 # It does; now see whether it defined to BIG_ENDIAN or not. 17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17470/* end confdefs.h. */ 17471#include <sys/types.h> 17472 #include <sys/param.h> 17473 17474int 17475main (void) 17476{ 17477#if BYTE_ORDER != BIG_ENDIAN 17478 not big endian 17479 #endif 17480 17481 ; 17482 return 0; 17483} 17484_ACEOF 17485if ac_fn_c_try_compile "$LINENO" 17486then : 17487 ac_cv_c_bigendian=yes 17488else $as_nop 17489 ac_cv_c_bigendian=no 17490fi 17491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17492fi 17493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17494 fi 17495 if test $ac_cv_c_bigendian = unknown; then 17496 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17498/* end confdefs.h. */ 17499#include <limits.h> 17500 17501int 17502main (void) 17503{ 17504#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17505 bogus endian macros 17506 #endif 17507 17508 ; 17509 return 0; 17510} 17511_ACEOF 17512if ac_fn_c_try_compile "$LINENO" 17513then : 17514 # It does; now see whether it defined to _BIG_ENDIAN or not. 17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17516/* end confdefs.h. */ 17517#include <limits.h> 17518 17519int 17520main (void) 17521{ 17522#ifndef _BIG_ENDIAN 17523 not big endian 17524 #endif 17525 17526 ; 17527 return 0; 17528} 17529_ACEOF 17530if ac_fn_c_try_compile "$LINENO" 17531then : 17532 ac_cv_c_bigendian=yes 17533else $as_nop 17534 ac_cv_c_bigendian=no 17535fi 17536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17537fi 17538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17539 fi 17540 if test $ac_cv_c_bigendian = unknown; then 17541 # Compile a test program. 17542 if test "$cross_compiling" = yes 17543then : 17544 # Try to guess by grepping values from an object file. 17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17546/* end confdefs.h. */ 17547unsigned short int ascii_mm[] = 17548 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17549 unsigned short int ascii_ii[] = 17550 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17551 int use_ascii (int i) { 17552 return ascii_mm[i] + ascii_ii[i]; 17553 } 17554 unsigned short int ebcdic_ii[] = 17555 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17556 unsigned short int ebcdic_mm[] = 17557 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17558 int use_ebcdic (int i) { 17559 return ebcdic_mm[i] + ebcdic_ii[i]; 17560 } 17561 extern int foo; 17562 17563int 17564main (void) 17565{ 17566return use_ascii (foo) == use_ebcdic (foo); 17567 ; 17568 return 0; 17569} 17570_ACEOF 17571if ac_fn_c_try_compile "$LINENO" 17572then : 17573 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17574 ac_cv_c_bigendian=yes 17575 fi 17576 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17577 if test "$ac_cv_c_bigendian" = unknown; then 17578 ac_cv_c_bigendian=no 17579 else 17580 # finding both strings is unlikely to happen, but who knows? 17581 ac_cv_c_bigendian=unknown 17582 fi 17583 fi 17584fi 17585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17586else $as_nop 17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17588/* end confdefs.h. */ 17589$ac_includes_default 17590int 17591main (void) 17592{ 17593 17594 /* Are we little or big endian? From Harbison&Steele. */ 17595 union 17596 { 17597 long int l; 17598 char c[sizeof (long int)]; 17599 } u; 17600 u.l = 1; 17601 return u.c[sizeof (long int) - 1] == 1; 17602 17603 ; 17604 return 0; 17605} 17606_ACEOF 17607if ac_fn_c_try_run "$LINENO" 17608then : 17609 ac_cv_c_bigendian=no 17610else $as_nop 17611 ac_cv_c_bigendian=yes 17612fi 17613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17614 conftest.$ac_objext conftest.beam conftest.$ac_ext 17615fi 17616 17617 fi 17618fi 17619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17620printf "%s\n" "$ac_cv_c_bigendian" >&6; } 17621 case $ac_cv_c_bigendian in #( 17622 yes) 17623 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 17624;; #( 17625 no) 17626 ;; #( 17627 universal) 17628 17629printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17630 17631 ;; #( 17632 *) 17633 as_fn_error $? "unknown endianness 17634 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17635 esac 17636 17637 17638# Checks for header files. 17639# Autoupdate added the next two lines to ensure that your configure 17640# script's behavior did not change. They are probably safe to remove. 17641 17642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 17643printf %s "checking for egrep... " >&6; } 17644if test ${ac_cv_path_EGREP+y} 17645then : 17646 printf %s "(cached) " >&6 17647else $as_nop 17648 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 17649 then ac_cv_path_EGREP="$GREP -E" 17650 else 17651 if test -z "$EGREP"; then 17652 ac_path_EGREP_found=false 17653 # Loop through the user's path and test for each of PROGNAME-LIST 17654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17655for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 17656do 17657 IFS=$as_save_IFS 17658 case $as_dir in #((( 17659 '') as_dir=./ ;; 17660 */) ;; 17661 *) as_dir=$as_dir/ ;; 17662 esac 17663 for ac_prog in egrep 17664 do 17665 for ac_exec_ext in '' $ac_executable_extensions; do 17666 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 17667 as_fn_executable_p "$ac_path_EGREP" || continue 17668# Check for GNU ac_path_EGREP and select it if it is found. 17669 # Check for GNU $ac_path_EGREP 17670case `"$ac_path_EGREP" --version 2>&1` in 17671*GNU*) 17672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 17673*) 17674 ac_count=0 17675 printf %s 0123456789 >"conftest.in" 17676 while : 17677 do 17678 cat "conftest.in" "conftest.in" >"conftest.tmp" 17679 mv "conftest.tmp" "conftest.in" 17680 cp "conftest.in" "conftest.nl" 17681 printf "%s\n" 'EGREP' >> "conftest.nl" 17682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 17683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 17684 as_fn_arith $ac_count + 1 && ac_count=$as_val 17685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 17686 # Best one so far, save it but keep looking for a better one 17687 ac_cv_path_EGREP="$ac_path_EGREP" 17688 ac_path_EGREP_max=$ac_count 17689 fi 17690 # 10*(2^10) chars as input seems more than enough 17691 test $ac_count -gt 10 && break 17692 done 17693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 17694esac 17695 17696 $ac_path_EGREP_found && break 3 17697 done 17698 done 17699 done 17700IFS=$as_save_IFS 17701 if test -z "$ac_cv_path_EGREP"; then 17702 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 17703 fi 17704else 17705 ac_cv_path_EGREP=$EGREP 17706fi 17707 17708 fi 17709fi 17710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 17711printf "%s\n" "$ac_cv_path_EGREP" >&6; } 17712 EGREP="$ac_cv_path_EGREP" 17713 17714 17715 17716ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 17717if test "x$ac_cv_type__Bool" = xyes 17718then : 17719 17720printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h 17721 17722 17723fi 17724 17725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 17726printf %s "checking for stdbool.h that conforms to C99... " >&6; } 17727if test ${ac_cv_header_stdbool_h+y} 17728then : 17729 printf %s "(cached) " >&6 17730else $as_nop 17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17732/* end confdefs.h. */ 17733#include <stdbool.h> 17734 17735 #ifndef __bool_true_false_are_defined 17736 #error "__bool_true_false_are_defined is not defined" 17737 #endif 17738 char a[__bool_true_false_are_defined == 1 ? 1 : -1]; 17739 17740 /* Regardless of whether this is C++ or "_Bool" is a 17741 valid type name, "true" and "false" should be usable 17742 in #if expressions and integer constant expressions, 17743 and "bool" should be a valid type name. */ 17744 17745 #if !true 17746 #error "'true' is not true" 17747 #endif 17748 #if true != 1 17749 #error "'true' is not equal to 1" 17750 #endif 17751 char b[true == 1 ? 1 : -1]; 17752 char c[true]; 17753 17754 #if false 17755 #error "'false' is not false" 17756 #endif 17757 #if false != 0 17758 #error "'false' is not equal to 0" 17759 #endif 17760 char d[false == 0 ? 1 : -1]; 17761 17762 enum { e = false, f = true, g = false * true, h = true * 256 }; 17763 17764 char i[(bool) 0.5 == true ? 1 : -1]; 17765 char j[(bool) 0.0 == false ? 1 : -1]; 17766 char k[sizeof (bool) > 0 ? 1 : -1]; 17767 17768 struct sb { bool s: 1; bool t; } s; 17769 char l[sizeof s.t > 0 ? 1 : -1]; 17770 17771 /* The following fails for 17772 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 17773 bool m[h]; 17774 char n[sizeof m == h * sizeof m[0] ? 1 : -1]; 17775 char o[-1 - (bool) 0 < 0 ? 1 : -1]; 17776 /* Catch a bug in an HP-UX C compiler. See 17777 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 17778 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 17779 */ 17780 bool p = true; 17781 bool *pp = &p; 17782 17783 /* C 1999 specifies that bool, true, and false are to be 17784 macros, but C++ 2011 and later overrule this. */ 17785 #if __cplusplus < 201103 17786 #ifndef bool 17787 #error "bool is not defined" 17788 #endif 17789 #ifndef false 17790 #error "false is not defined" 17791 #endif 17792 #ifndef true 17793 #error "true is not defined" 17794 #endif 17795 #endif 17796 17797 /* If _Bool is available, repeat with it all the tests 17798 above that used bool. */ 17799 #ifdef HAVE__BOOL 17800 struct sB { _Bool s: 1; _Bool t; } t; 17801 17802 char q[(_Bool) 0.5 == true ? 1 : -1]; 17803 char r[(_Bool) 0.0 == false ? 1 : -1]; 17804 char u[sizeof (_Bool) > 0 ? 1 : -1]; 17805 char v[sizeof t.t > 0 ? 1 : -1]; 17806 17807 _Bool w[h]; 17808 char x[sizeof m == h * sizeof m[0] ? 1 : -1]; 17809 char y[-1 - (_Bool) 0 < 0 ? 1 : -1]; 17810 _Bool z = true; 17811 _Bool *pz = &p; 17812 #endif 17813 17814int 17815main (void) 17816{ 17817 17818 bool ps = &s; 17819 *pp |= p; 17820 *pp |= ! p; 17821 17822 #ifdef HAVE__BOOL 17823 _Bool pt = &t; 17824 *pz |= z; 17825 *pz |= ! z; 17826 #endif 17827 17828 /* Refer to every declared value, so they cannot be 17829 discarded as unused. */ 17830 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k 17831 + !l + !m + !n + !o + !p + !pp + !ps 17832 #ifdef HAVE__BOOL 17833 + !q + !r + !u + !v + !w + !x + !y + !z + !pt 17834 #endif 17835 ); 17836 17837 ; 17838 return 0; 17839} 17840_ACEOF 17841if ac_fn_c_try_compile "$LINENO" 17842then : 17843 ac_cv_header_stdbool_h=yes 17844else $as_nop 17845 ac_cv_header_stdbool_h=no 17846fi 17847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17848fi 17849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 17850printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } 17851 17852if test $ac_cv_header_stdbool_h = yes; then 17853 17854printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 17855 17856fi 17857 17858#AC_HEADER_SYS_WAIT 17859#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h]) 17860# do the very minimum - we can always extend this 17861ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 17862" 17863if test "x$ac_cv_header_getopt_h" = xyes 17864then : 17865 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 17866 17867fi 17868ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default 17869" 17870if test "x$ac_cv_header_stdarg_h" = xyes 17871then : 17872 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 17873 17874fi 17875ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 17876" 17877if test "x$ac_cv_header_openssl_ssl_h" = xyes 17878then : 17879 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 17880 17881fi 17882ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default 17883" 17884if test "x$ac_cv_header_netinet_in_h" = xyes 17885then : 17886 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 17887 17888fi 17889ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 17890" 17891if test "x$ac_cv_header_time_h" = xyes 17892then : 17893 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 17894 17895fi 17896ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default 17897" 17898if test "x$ac_cv_header_arpa_inet_h" = xyes 17899then : 17900 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 17901 17902fi 17903ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 17904" 17905if test "x$ac_cv_header_netdb_h" = xyes 17906then : 17907 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 17908 17909fi 17910 17911ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default 17912 17913 #if HAVE_SYS_PARAM_H 17914 # include <sys/param.h> 17915 #endif 17916 17917 17918" 17919if test "x$ac_cv_header_sys_param_h" = xyes 17920then : 17921 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 17922 17923fi 17924ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default 17925 17926 #if HAVE_SYS_PARAM_H 17927 # include <sys/param.h> 17928 #endif 17929 17930 17931" 17932if test "x$ac_cv_header_sys_mount_h" = xyes 17933then : 17934 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h 17935 17936fi 17937 17938ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 17939 17940 #if HAVE_SYS_PARAM_H 17941 # include <sys/param.h> 17942 #endif 17943 17944 17945" 17946if test "x$ac_cv_header_sys_socket_h" = xyes 17947then : 17948 17949include_sys_socket_h='#include <sys/socket.h>' 17950 17951printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 17952 17953 17954else $as_nop 17955 17956include_sys_socket_h='' 17957 17958fi 17959 17960 17961ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default 17962 17963" 17964if test "x$ac_cv_header_inttypes_h" = xyes 17965then : 17966 17967include_inttypes_h='#include <inttypes.h>' 17968 17969printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 17970 17971ldns_build_config_have_inttypes_h=1 17972 17973 17974else $as_nop 17975 17976include_inttypes_h='' 17977ldns_build_config_have_inttypes_h=0 17978 17979 17980fi 17981 17982 17983ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default 17984 17985" 17986if test "x$ac_cv_header_sys_types_h" = xyes 17987then : 17988 17989include_systypes_h='#include <sys/types.h>' 17990 17991printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 17992 17993 17994else $as_nop 17995 17996include_systypes_h='' 17997 17998fi 17999 18000 18001ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 18002 18003" 18004if test "x$ac_cv_header_unistd_h" = xyes 18005then : 18006 18007include_unistd_h='#include <unistd.h>' 18008 18009printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 18010 18011 18012else $as_nop 18013 18014include_unistd_h='' 18015 18016fi 18017 18018 18019 18020# The cast to long int works around a bug in the HP C Compiler 18021# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18022# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18023# This bug is HP SR number 8606223364. 18024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 18025printf %s "checking size of time_t... " >&6; } 18026if test ${ac_cv_sizeof_time_t+y} 18027then : 18028 printf %s "(cached) " >&6 18029else $as_nop 18030 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 18031$ac_includes_default 18032#ifdef TIME_WITH_SYS_TIME 18033# include <sys/time.h> 18034# include <time.h> 18035#else 18036# ifdef HAVE_SYS_TIME_H 18037# include <sys/time.h> 18038# else 18039# include <time.h> 18040# endif 18041#endif 18042 18043" 18044then : 18045 18046else $as_nop 18047 if test "$ac_cv_type_time_t" = yes; then 18048 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18049printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18050as_fn_error 77 "cannot compute sizeof (time_t) 18051See \`config.log' for more details" "$LINENO" 5; } 18052 else 18053 ac_cv_sizeof_time_t=0 18054 fi 18055fi 18056 18057fi 18058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 18059printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 18060 18061 18062 18063printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 18064 18065 18066 18067if test x_$with_examples != x_no; then 18068ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default 18069" 18070if test "x$ac_cv_header_pcap_h" = xyes 18071then : 18072 printf "%s\n" "#define HAVE_PCAP_H 1" >>confdefs.h 18073 18074fi 18075 18076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5 18077printf %s "checking for pcap_open_offline in -lpcap... " >&6; } 18078if test ${ac_cv_lib_pcap_pcap_open_offline+y} 18079then : 18080 printf %s "(cached) " >&6 18081else $as_nop 18082 ac_check_lib_save_LIBS=$LIBS 18083LIBS="-lpcap $LIBS" 18084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18085/* end confdefs.h. */ 18086 18087/* Override any GCC internal prototype to avoid an error. 18088 Use char because int might match the return type of a GCC 18089 builtin and then its argument prototype would still apply. */ 18090char pcap_open_offline (); 18091int 18092main (void) 18093{ 18094return pcap_open_offline (); 18095 ; 18096 return 0; 18097} 18098_ACEOF 18099if ac_fn_c_try_link "$LINENO" 18100then : 18101 ac_cv_lib_pcap_pcap_open_offline=yes 18102else $as_nop 18103 ac_cv_lib_pcap_pcap_open_offline=no 18104fi 18105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18106 conftest$ac_exeext conftest.$ac_ext 18107LIBS=$ac_check_lib_save_LIBS 18108fi 18109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5 18110printf "%s\n" "$ac_cv_lib_pcap_pcap_open_offline" >&6; } 18111if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes 18112then : 18113 18114 18115printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h 18116 LIBPCAP_LIBS=-lpcap 18117 18118 18119else $as_nop 18120 18121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5 18122printf "%s\n" "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;} 18123 18124 18125fi 18126 18127ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" " 18128$ac_includes_default 18129#ifdef HAVE_NETINET_IN_SYSTM_H 18130#include <netinet/in_systm.h> 18131#endif 18132#ifdef HAVE_NETINET_IN_H 18133#include <netinet/in.h> 18134#endif 18135#ifdef HAVE_SYS_SOCKET_H 18136#include <sys/socket.h> 18137#endif 18138#ifdef HAVE_NET_IF_H 18139#include <net/if.h> 18140#endif 18141" 18142if test "x$ac_cv_header_netinet_in_systm_h" = xyes 18143then : 18144 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h 18145 18146fi 18147ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 18148$ac_includes_default 18149#ifdef HAVE_NETINET_IN_SYSTM_H 18150#include <netinet/in_systm.h> 18151#endif 18152#ifdef HAVE_NETINET_IN_H 18153#include <netinet/in.h> 18154#endif 18155#ifdef HAVE_SYS_SOCKET_H 18156#include <sys/socket.h> 18157#endif 18158#ifdef HAVE_NET_IF_H 18159#include <net/if.h> 18160#endif 18161" 18162if test "x$ac_cv_header_net_if_h" = xyes 18163then : 18164 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 18165 18166fi 18167ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" " 18168$ac_includes_default 18169#ifdef HAVE_NETINET_IN_SYSTM_H 18170#include <netinet/in_systm.h> 18171#endif 18172#ifdef HAVE_NETINET_IN_H 18173#include <netinet/in.h> 18174#endif 18175#ifdef HAVE_SYS_SOCKET_H 18176#include <sys/socket.h> 18177#endif 18178#ifdef HAVE_NET_IF_H 18179#include <net/if.h> 18180#endif 18181" 18182if test "x$ac_cv_header_netinet_ip_h" = xyes 18183then : 18184 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h 18185 18186fi 18187ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" " 18188$ac_includes_default 18189#ifdef HAVE_NETINET_IN_SYSTM_H 18190#include <netinet/in_systm.h> 18191#endif 18192#ifdef HAVE_NETINET_IN_H 18193#include <netinet/in.h> 18194#endif 18195#ifdef HAVE_SYS_SOCKET_H 18196#include <sys/socket.h> 18197#endif 18198#ifdef HAVE_NET_IF_H 18199#include <net/if.h> 18200#endif 18201" 18202if test "x$ac_cv_header_netinet_udp_h" = xyes 18203then : 18204 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h 18205 18206fi 18207ac_fn_c_check_header_compile "$LINENO" "netinet/igmp.h" "ac_cv_header_netinet_igmp_h" " 18208$ac_includes_default 18209#ifdef HAVE_NETINET_IN_SYSTM_H 18210#include <netinet/in_systm.h> 18211#endif 18212#ifdef HAVE_NETINET_IN_H 18213#include <netinet/in.h> 18214#endif 18215#ifdef HAVE_SYS_SOCKET_H 18216#include <sys/socket.h> 18217#endif 18218#ifdef HAVE_NET_IF_H 18219#include <net/if.h> 18220#endif 18221" 18222if test "x$ac_cv_header_netinet_igmp_h" = xyes 18223then : 18224 printf "%s\n" "#define HAVE_NETINET_IGMP_H 1" >>confdefs.h 18225 18226fi 18227ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" " 18228$ac_includes_default 18229#ifdef HAVE_NETINET_IN_SYSTM_H 18230#include <netinet/in_systm.h> 18231#endif 18232#ifdef HAVE_NETINET_IN_H 18233#include <netinet/in.h> 18234#endif 18235#ifdef HAVE_SYS_SOCKET_H 18236#include <sys/socket.h> 18237#endif 18238#ifdef HAVE_NET_IF_H 18239#include <net/if.h> 18240#endif 18241" 18242if test "x$ac_cv_header_netinet_if_ether_h" = xyes 18243then : 18244 printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h 18245 18246fi 18247ac_fn_c_check_header_compile "$LINENO" "netinet/ip6.h" "ac_cv_header_netinet_ip6_h" " 18248$ac_includes_default 18249#ifdef HAVE_NETINET_IN_SYSTM_H 18250#include <netinet/in_systm.h> 18251#endif 18252#ifdef HAVE_NETINET_IN_H 18253#include <netinet/in.h> 18254#endif 18255#ifdef HAVE_SYS_SOCKET_H 18256#include <sys/socket.h> 18257#endif 18258#ifdef HAVE_NET_IF_H 18259#include <net/if.h> 18260#endif 18261" 18262if test "x$ac_cv_header_netinet_ip6_h" = xyes 18263then : 18264 printf "%s\n" "#define HAVE_NETINET_IP6_H 1" >>confdefs.h 18265 18266fi 18267ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" " 18268$ac_includes_default 18269#ifdef HAVE_NETINET_IN_SYSTM_H 18270#include <netinet/in_systm.h> 18271#endif 18272#ifdef HAVE_NETINET_IN_H 18273#include <netinet/in.h> 18274#endif 18275#ifdef HAVE_SYS_SOCKET_H 18276#include <sys/socket.h> 18277#endif 18278#ifdef HAVE_NET_IF_H 18279#include <net/if.h> 18280#endif 18281" 18282if test "x$ac_cv_header_net_ethernet_h" = xyes 18283then : 18284 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h 18285 18286fi 18287ac_fn_c_check_header_compile "$LINENO" "netinet/ip_compat.h" "ac_cv_header_netinet_ip_compat_h" " 18288$ac_includes_default 18289#ifdef HAVE_NETINET_IN_SYSTM_H 18290#include <netinet/in_systm.h> 18291#endif 18292#ifdef HAVE_NETINET_IN_H 18293#include <netinet/in.h> 18294#endif 18295#ifdef HAVE_SYS_SOCKET_H 18296#include <sys/socket.h> 18297#endif 18298#ifdef HAVE_NET_IF_H 18299#include <net/if.h> 18300#endif 18301" 18302if test "x$ac_cv_header_netinet_ip_compat_h" = xyes 18303then : 18304 printf "%s\n" "#define HAVE_NETINET_IP_COMPAT_H 1" >>confdefs.h 18305 18306fi 18307 18308fi 18309 18310 18311ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18312$ac_includes_default 18313#ifdef HAVE_SYS_SOCKET_H 18314# include <sys/socket.h> 18315#endif 18316#ifdef HAVE_WS2TCPIP_H 18317# include <ws2tcpip.h> 18318#endif 18319 18320" 18321if test "x$ac_cv_type_socklen_t" = xyes 18322then : 18323 18324else $as_nop 18325 18326printf "%s\n" "#define socklen_t int" >>confdefs.h 18327 18328fi 18329 18330if test "x$ac_cv_type_socklen_t" = xyes; then 18331 ldns_build_config_have_socklen_t=1 18332 18333else 18334 ldns_build_config_have_socklen_t=0 18335 18336fi 18337ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18338if test "x$ac_cv_type_size_t" = xyes 18339then : 18340 18341else $as_nop 18342 18343printf "%s\n" "#define size_t unsigned int" >>confdefs.h 18344 18345fi 18346 18347ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 18348if test "x$ac_cv_type_ssize_t" = xyes 18349then : 18350 18351else $as_nop 18352 18353printf "%s\n" "#define ssize_t int" >>confdefs.h 18354 18355fi 18356 18357ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 18358if test "x$ac_cv_type_intptr_t" = xyes 18359then : 18360 18361else $as_nop 18362 18363printf "%s\n" "#define intptr_t size_t" >>confdefs.h 18364 18365fi 18366 18367ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 18368#if HAVE_SYS_TYPES_H 18369# include <sys/types.h> 18370#endif 18371#if HAVE_NETINET_IN_H 18372# include <netinet/in.h> 18373#endif 18374" 18375if test "x$ac_cv_type_in_addr_t" = xyes 18376then : 18377 18378else $as_nop 18379 18380printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h 18381 18382fi 18383 18384ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 18385#if HAVE_SYS_TYPES_H 18386# include <sys/types.h> 18387#endif 18388#if HAVE_NETINET_IN_H 18389# include <netinet/in.h> 18390#endif 18391" 18392if test "x$ac_cv_type_in_port_t" = xyes 18393then : 18394 18395else $as_nop 18396 18397printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h 18398 18399fi 18400 18401ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 18402#ifdef HAVE_NETINET_IN_H 18403#include <netinet/in.h> 18404#endif 18405#ifdef HAVE_SYS_SOCKET_H 18406#include <sys/socket.h> 18407#endif 18408#ifdef HAVE_NETDB_H 18409#include <netdb.h> 18410#endif 18411#ifdef HAVE_ARPA_INET_H 18412#include <arpa/inet.h> 18413#endif 18414 18415" 18416if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes 18417then : 18418 18419else $as_nop 18420 18421 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 18422#ifdef HAVE_NETINET_IN_H 18423#include <netinet/in.h> 18424#endif 18425#ifdef HAVE_SYS_SOCKET_H 18426#include <sys/socket.h> 18427#endif 18428#ifdef HAVE_NETDB_H 18429#include <netdb.h> 18430#endif 18431#ifdef HAVE_ARPA_INET_H 18432#include <arpa/inet.h> 18433#endif 18434 18435" 18436if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes 18437then : 18438 18439 18440printf "%s\n" "#define ss_family __ss_family" >>confdefs.h 18441 18442 18443fi 18444 18445 18446fi 18447 18448 18449# AC_FUNC_MALLOC suffers false failures and causes Asan failures. 18450# AC_FUNC_MALLOC 18451# AC_FUNC_REALLOC 18452 18453ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton" 18454if test "x$ac_cv_func_b64_pton" = xyes 18455then : 18456 printf "%s\n" "#define HAVE_B64_PTON 1" >>confdefs.h 18457 18458else $as_nop 18459 case " $LIBOBJS " in 18460 *" b64_pton.$ac_objext "* ) ;; 18461 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 18462 ;; 18463esac 18464 18465fi 18466 18467ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop" 18468if test "x$ac_cv_func_b64_ntop" = xyes 18469then : 18470 printf "%s\n" "#define HAVE_B64_NTOP 1" >>confdefs.h 18471 18472else $as_nop 18473 case " $LIBOBJS " in 18474 *" b64_ntop.$ac_objext "* ) ;; 18475 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 18476 ;; 18477esac 18478 18479fi 18480 18481ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" 18482if test "x$ac_cv_func_calloc" = xyes 18483then : 18484 printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h 18485 18486else $as_nop 18487 case " $LIBOBJS " in 18488 *" calloc.$ac_objext "* ) ;; 18489 *) LIBOBJS="$LIBOBJS calloc.$ac_objext" 18490 ;; 18491esac 18492 18493fi 18494 18495ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 18496if test "x$ac_cv_func_timegm" = xyes 18497then : 18498 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h 18499 18500else $as_nop 18501 case " $LIBOBJS " in 18502 *" timegm.$ac_objext "* ) ;; 18503 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 18504 ;; 18505esac 18506 18507fi 18508 18509ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 18510if test "x$ac_cv_func_gmtime_r" = xyes 18511then : 18512 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 18513 18514else $as_nop 18515 case " $LIBOBJS " in 18516 *" gmtime_r.$ac_objext "* ) ;; 18517 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 18518 ;; 18519esac 18520 18521fi 18522 18523ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 18524if test "x$ac_cv_func_ctime_r" = xyes 18525then : 18526 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 18527 18528else $as_nop 18529 case " $LIBOBJS " in 18530 *" ctime_r.$ac_objext "* ) ;; 18531 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 18532 ;; 18533esac 18534 18535fi 18536 18537ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 18538if test "x$ac_cv_func_localtime_r" = xyes 18539then : 18540 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 18541 18542else $as_nop 18543 case " $LIBOBJS " in 18544 *" localtime_r.$ac_objext "* ) ;; 18545 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 18546 ;; 18547esac 18548 18549fi 18550 18551ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 18552if test "x$ac_cv_func_isblank" = xyes 18553then : 18554 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h 18555 18556else $as_nop 18557 case " $LIBOBJS " in 18558 *" isblank.$ac_objext "* ) ;; 18559 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 18560 ;; 18561esac 18562 18563fi 18564 18565ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii" 18566if test "x$ac_cv_func_isascii" = xyes 18567then : 18568 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h 18569 18570else $as_nop 18571 case " $LIBOBJS " in 18572 *" isascii.$ac_objext "* ) ;; 18573 *) LIBOBJS="$LIBOBJS isascii.$ac_objext" 18574 ;; 18575esac 18576 18577fi 18578 18579ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 18580if test "x$ac_cv_func_inet_aton" = xyes 18581then : 18582 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 18583 18584else $as_nop 18585 case " $LIBOBJS " in 18586 *" inet_aton.$ac_objext "* ) ;; 18587 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 18588 ;; 18589esac 18590 18591fi 18592 18593ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 18594if test "x$ac_cv_func_inet_pton" = xyes 18595then : 18596 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 18597 18598else $as_nop 18599 case " $LIBOBJS " in 18600 *" inet_pton.$ac_objext "* ) ;; 18601 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 18602 ;; 18603esac 18604 18605fi 18606 18607ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 18608if test "x$ac_cv_func_inet_ntop" = xyes 18609then : 18610 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 18611 18612else $as_nop 18613 case " $LIBOBJS " in 18614 *" inet_ntop.$ac_objext "* ) ;; 18615 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 18616 ;; 18617esac 18618 18619fi 18620 18621ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 18622if test "x$ac_cv_func_snprintf" = xyes 18623then : 18624 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 18625 18626else $as_nop 18627 case " $LIBOBJS " in 18628 *" snprintf.$ac_objext "* ) ;; 18629 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 18630 ;; 18631esac 18632 18633fi 18634 18635ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18636if test "x$ac_cv_func_strlcpy" = xyes 18637then : 18638 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 18639 18640else $as_nop 18641 case " $LIBOBJS " in 18642 *" strlcpy.$ac_objext "* ) ;; 18643 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 18644 ;; 18645esac 18646 18647fi 18648 18649ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 18650if test "x$ac_cv_func_memmove" = xyes 18651then : 18652 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 18653 18654else $as_nop 18655 case " $LIBOBJS " in 18656 *" memmove.$ac_objext "* ) ;; 18657 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 18658 ;; 18659esac 18660 18661fi 18662 18663 18664 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 18665" 18666if test "x$ac_cv_type_pid_t" = xyes 18667then : 18668 18669else $as_nop 18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671/* end confdefs.h. */ 18672 18673 #if defined _WIN64 && !defined __CYGWIN__ 18674 LLP64 18675 #endif 18676 18677int 18678main (void) 18679{ 18680 18681 ; 18682 return 0; 18683} 18684 18685_ACEOF 18686if ac_fn_c_try_compile "$LINENO" 18687then : 18688 ac_pid_type='int' 18689else $as_nop 18690 ac_pid_type='__int64' 18691fi 18692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18693 18694printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 18695 18696 18697fi 18698 18699 18700 18701ac_func= 18702for ac_item in $ac_func_c_list 18703do 18704 if test $ac_func; then 18705 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 18706 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 18707 echo "#define $ac_item 1" >> confdefs.h 18708 fi 18709 ac_func= 18710 else 18711 ac_func=$ac_item 18712 fi 18713done 18714 18715 18716 18717if test "x$ac_cv_func_fork" = xyes; then 18718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 18719printf %s "checking for working fork... " >&6; } 18720if test ${ac_cv_func_fork_works+y} 18721then : 18722 printf %s "(cached) " >&6 18723else $as_nop 18724 if test "$cross_compiling" = yes 18725then : 18726 ac_cv_func_fork_works=cross 18727else $as_nop 18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18729/* end confdefs.h. */ 18730$ac_includes_default 18731int 18732main (void) 18733{ 18734 18735 /* By Ruediger Kuhlmann. */ 18736 return fork () < 0; 18737 18738 ; 18739 return 0; 18740} 18741_ACEOF 18742if ac_fn_c_try_run "$LINENO" 18743then : 18744 ac_cv_func_fork_works=yes 18745else $as_nop 18746 ac_cv_func_fork_works=no 18747fi 18748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18749 conftest.$ac_objext conftest.beam conftest.$ac_ext 18750fi 18751 18752fi 18753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 18754printf "%s\n" "$ac_cv_func_fork_works" >&6; } 18755 18756else 18757 ac_cv_func_fork_works=$ac_cv_func_fork 18758fi 18759if test "x$ac_cv_func_fork_works" = xcross; then 18760 case $host in 18761 *-*-amigaos* | *-*-msdosdjgpp*) 18762 # Override, as these systems have only a dummy fork() stub 18763 ac_cv_func_fork_works=no 18764 ;; 18765 *) 18766 ac_cv_func_fork_works=yes 18767 ;; 18768 esac 18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 18770printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 18771fi 18772ac_cv_func_vfork_works=$ac_cv_func_vfork 18773if test "x$ac_cv_func_vfork" = xyes; then 18774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 18775printf %s "checking for working vfork... " >&6; } 18776if test ${ac_cv_func_vfork_works+y} 18777then : 18778 printf %s "(cached) " >&6 18779else $as_nop 18780 if test "$cross_compiling" = yes 18781then : 18782 ac_cv_func_vfork_works=cross 18783else $as_nop 18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18785/* end confdefs.h. */ 18786/* Thanks to Paul Eggert for this test. */ 18787$ac_includes_default 18788#include <signal.h> 18789#include <sys/wait.h> 18790#ifdef HAVE_VFORK_H 18791# include <vfork.h> 18792#endif 18793 18794static void 18795do_nothing (int sig) 18796{ 18797 (void) sig; 18798} 18799 18800/* On some sparc systems, changes by the child to local and incoming 18801 argument registers are propagated back to the parent. The compiler 18802 is told about this with #include <vfork.h>, but some compilers 18803 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 18804 static variable whose address is put into a register that is 18805 clobbered by the vfork. */ 18806static void 18807sparc_address_test (int arg) 18808{ 18809 static pid_t child; 18810 if (!child) { 18811 child = vfork (); 18812 if (child < 0) { 18813 perror ("vfork"); 18814 _exit(2); 18815 } 18816 if (!child) { 18817 arg = getpid(); 18818 write(-1, "", 0); 18819 _exit (arg); 18820 } 18821 } 18822} 18823 18824int 18825main (void) 18826{ 18827 pid_t parent = getpid (); 18828 pid_t child; 18829 18830 sparc_address_test (0); 18831 18832 /* On Solaris 2.4, changes by the child to the signal handler 18833 also munge signal handlers in the parent. To detect this, 18834 start by putting the parent's handler in a known state. */ 18835 signal (SIGTERM, SIG_DFL); 18836 18837 child = vfork (); 18838 18839 if (child == 0) { 18840 /* Here is another test for sparc vfork register problems. This 18841 test uses lots of local variables, at least as many local 18842 variables as main has allocated so far including compiler 18843 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 18844 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 18845 reuse the register of parent for one of the local variables, 18846 since it will think that parent can't possibly be used any more 18847 in this routine. Assigning to the local variable will thus 18848 munge parent in the parent process. */ 18849 pid_t 18850 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 18851 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 18852 /* Convince the compiler that p..p7 are live; otherwise, it might 18853 use the same hardware register for all 8 local variables. */ 18854 if (p != p1 || p != p2 || p != p3 || p != p4 18855 || p != p5 || p != p6 || p != p7) 18856 _exit(1); 18857 18858 /* Alter the child's signal handler. */ 18859 if (signal (SIGTERM, do_nothing) != SIG_DFL) 18860 _exit(1); 18861 18862 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 18863 from child file descriptors. If the child closes a descriptor 18864 before it execs or exits, this munges the parent's descriptor 18865 as well. Test for this by closing stdout in the child. */ 18866 _exit(close(fileno(stdout)) != 0); 18867 } else { 18868 int status; 18869 struct stat st; 18870 18871 while (wait(&status) != child) 18872 ; 18873 return ( 18874 /* Was there some problem with vforking? */ 18875 child < 0 18876 18877 /* Did the child munge the parent's signal handler? */ 18878 || signal (SIGTERM, SIG_DFL) != SIG_DFL 18879 18880 /* Did the child fail? (This shouldn't happen.) */ 18881 || status 18882 18883 /* Did the vfork/compiler bug occur? */ 18884 || parent != getpid() 18885 18886 /* Did the file descriptor bug occur? */ 18887 || fstat(fileno(stdout), &st) != 0 18888 ); 18889 } 18890} 18891_ACEOF 18892if ac_fn_c_try_run "$LINENO" 18893then : 18894 ac_cv_func_vfork_works=yes 18895else $as_nop 18896 ac_cv_func_vfork_works=no 18897fi 18898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18899 conftest.$ac_objext conftest.beam conftest.$ac_ext 18900fi 18901 18902fi 18903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 18904printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 18905 18906fi; 18907if test "x$ac_cv_func_fork_works" = xcross; then 18908 ac_cv_func_vfork_works=$ac_cv_func_vfork 18909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 18910printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 18911fi 18912 18913if test "x$ac_cv_func_vfork_works" = xyes; then 18914 18915printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 18916 18917else 18918 18919printf "%s\n" "#define vfork fork" >>confdefs.h 18920 18921fi 18922if test "x$ac_cv_func_fork_works" = xyes; then 18923 18924printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 18925 18926fi 18927 18928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compile of fork" >&5 18929printf %s "checking compile of fork... " >&6; } 18930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18931/* end confdefs.h. */ 18932 18933#include <unistd.h> 18934 18935int 18936main (void) 18937{ 18938 18939 (void)fork(); 18940 18941 ; 18942 return 0; 18943} 18944_ACEOF 18945if ac_fn_c_try_compile "$LINENO" 18946then : 18947 18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18949printf "%s\n" "yes" >&6; } 18950 18951printf "%s\n" "#define HAVE_FORK_AVAILABLE 1" >>confdefs.h 18952 18953 18954else $as_nop 18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18956printf "%s\n" "no" >&6; } 18957 18958fi 18959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18960ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent" 18961if test "x$ac_cv_func_endprotoent" = xyes 18962then : 18963 printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h 18964 18965fi 18966ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent" 18967if test "x$ac_cv_func_endservent" = xyes 18968then : 18969 printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h 18970 18971fi 18972ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" 18973if test "x$ac_cv_func_sleep" = xyes 18974then : 18975 printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h 18976 18977fi 18978ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 18979if test "x$ac_cv_func_random" = xyes 18980then : 18981 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h 18982 18983fi 18984ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 18985if test "x$ac_cv_func_fcntl" = xyes 18986then : 18987 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 18988 18989fi 18990ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 18991if test "x$ac_cv_func_strtoul" = xyes 18992then : 18993 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h 18994 18995fi 18996ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero" 18997if test "x$ac_cv_func_bzero" = xyes 18998then : 18999 printf "%s\n" "#define HAVE_BZERO 1" >>confdefs.h 19000 19001fi 19002ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 19003if test "x$ac_cv_func_memset" = xyes 19004then : 19005 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h 19006 19007fi 19008ac_fn_c_check_func "$LINENO" "b32_ntop" "ac_cv_func_b32_ntop" 19009if test "x$ac_cv_func_b32_ntop" = xyes 19010then : 19011 printf "%s\n" "#define HAVE_B32_NTOP 1" >>confdefs.h 19012 19013fi 19014ac_fn_c_check_func "$LINENO" "b32_pton" "ac_cv_func_b32_pton" 19015if test "x$ac_cv_func_b32_pton" = xyes 19016then : 19017 printf "%s\n" "#define HAVE_B32_PTON 1" >>confdefs.h 19018 19019fi 19020 19021if test "x$HAVE_B32_NTOP" = "xyes"; then 19022 ldns_build_config_have_b32_ntop=1 19023 19024else 19025 ldns_build_config_have_b32_ntop=0 19026 19027fi 19028if test "x$HAVE_B32_PTON" = "xyes"; then 19029 ldns_build_config_have_b32_pton=1 19030 19031else 19032 ldns_build_config_have_b32_pton=0 19033 19034fi 19035 19036 19037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 19038printf %s "checking for getaddrinfo... " >&6; } 19039ac_cv_func_getaddrinfo=no 19040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19041/* end confdefs.h. */ 19042 19043#ifdef __cplusplus 19044extern "C" 19045{ 19046#endif 19047char* getaddrinfo(); 19048char* (*f) () = getaddrinfo; 19049#ifdef __cplusplus 19050} 19051#endif 19052int main() { 19053 ; 19054 return 0; 19055} 19056 19057_ACEOF 19058if ac_fn_c_try_link "$LINENO" 19059then : 19060 ac_cv_func_getaddrinfo="yes" 19061if test "$ac_cv_header_windows_h" = "yes"; then 19062 19063printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 19064 19065 USE_WINSOCK="1" 19066 if echo $LIBS | grep 'lws2_32' >/dev/null; then 19067 : 19068 else 19069 LIBS="$LIBS -lws2_32" 19070 fi 19071fi 19072 19073else $as_nop 19074 ORIGLIBS="$LIBS" 19075LIBS="$LIBS -lws2_32" 19076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19077/* end confdefs.h. */ 19078 19079#ifdef HAVE_WS2TCPIP_H 19080#include <ws2tcpip.h> 19081#endif 19082 19083int 19084main (void) 19085{ 19086 19087 (void)getaddrinfo(NULL, NULL, NULL, NULL); 19088 19089 19090 ; 19091 return 0; 19092} 19093_ACEOF 19094if ac_fn_c_try_link "$LINENO" 19095then : 19096 19097ac_cv_func_getaddrinfo="yes" 19098 19099printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 19100 19101USE_WINSOCK="1" 19102 19103else $as_nop 19104 19105ac_cv_func_getaddrinfo="no" 19106LIBS="$ORIGLIBS" 19107 19108fi 19109rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19110 conftest$ac_exeext conftest.$ac_ext 19111 19112fi 19113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19114 conftest$ac_exeext conftest.$ac_ext 19115 19116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 19117printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; } 19118if test $ac_cv_func_getaddrinfo = yes; then 19119 19120printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 19121 19122fi 19123 19124if test $ac_cv_func_getaddrinfo = no; then 19125 case " $LIBOBJS " in 19126 *" fake-rfc2553.$ac_objext "* ) ;; 19127 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 19128 ;; 19129esac 19130 19131fi 19132if test "$USE_WINSOCK" = 1; then 19133 if test -n "$ac_tool_prefix"; then 19134 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 19135set dummy ${ac_tool_prefix}windres; ac_word=$2 19136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19137printf %s "checking for $ac_word... " >&6; } 19138if test ${ac_cv_prog_WINDRES+y} 19139then : 19140 printf %s "(cached) " >&6 19141else $as_nop 19142 if test -n "$WINDRES"; then 19143 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 19144else 19145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19146for as_dir in $PATH 19147do 19148 IFS=$as_save_IFS 19149 case $as_dir in #((( 19150 '') as_dir=./ ;; 19151 */) ;; 19152 *) as_dir=$as_dir/ ;; 19153 esac 19154 for ac_exec_ext in '' $ac_executable_extensions; do 19155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19156 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 19157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19158 break 2 19159 fi 19160done 19161 done 19162IFS=$as_save_IFS 19163 19164fi 19165fi 19166WINDRES=$ac_cv_prog_WINDRES 19167if test -n "$WINDRES"; then 19168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 19169printf "%s\n" "$WINDRES" >&6; } 19170else 19171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19172printf "%s\n" "no" >&6; } 19173fi 19174 19175 19176fi 19177if test -z "$ac_cv_prog_WINDRES"; then 19178 ac_ct_WINDRES=$WINDRES 19179 # Extract the first word of "windres", so it can be a program name with args. 19180set dummy windres; ac_word=$2 19181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19182printf %s "checking for $ac_word... " >&6; } 19183if test ${ac_cv_prog_ac_ct_WINDRES+y} 19184then : 19185 printf %s "(cached) " >&6 19186else $as_nop 19187 if test -n "$ac_ct_WINDRES"; then 19188 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 19189else 19190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19191for as_dir in $PATH 19192do 19193 IFS=$as_save_IFS 19194 case $as_dir in #((( 19195 '') as_dir=./ ;; 19196 */) ;; 19197 *) as_dir=$as_dir/ ;; 19198 esac 19199 for ac_exec_ext in '' $ac_executable_extensions; do 19200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19201 ac_cv_prog_ac_ct_WINDRES="windres" 19202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19203 break 2 19204 fi 19205done 19206 done 19207IFS=$as_save_IFS 19208 19209fi 19210fi 19211ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 19212if test -n "$ac_ct_WINDRES"; then 19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 19214printf "%s\n" "$ac_ct_WINDRES" >&6; } 19215else 19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19217printf "%s\n" "no" >&6; } 19218fi 19219 19220 if test "x$ac_ct_WINDRES" = x; then 19221 WINDRES="" 19222 else 19223 case $cross_compiling:$ac_tool_warned in 19224yes:) 19225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19226printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19227ac_tool_warned=yes ;; 19228esac 19229 WINDRES=$ac_ct_WINDRES 19230 fi 19231else 19232 WINDRES="$ac_cv_prog_WINDRES" 19233fi 19234 19235fi 19236 19237# check ioctlsocket 19238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 19239printf %s "checking for ioctlsocket... " >&6; } 19240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19241/* end confdefs.h. */ 19242 19243#ifdef HAVE_WINSOCK2_H 19244#include <winsock2.h> 19245#endif 19246 19247int 19248main (void) 19249{ 19250 19251 (void)ioctlsocket(0, 0, NULL); 19252 19253 ; 19254 return 0; 19255} 19256_ACEOF 19257if ac_fn_c_try_link "$LINENO" 19258then : 19259 19260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19261printf "%s\n" "yes" >&6; } 19262 19263printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 19264 19265 19266else $as_nop 19267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19268printf "%s\n" "no" >&6; } 19269fi 19270rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19271 conftest$ac_exeext conftest.$ac_ext 19272 19273 19274#AC_SEARCH_LIBS(RSA_new, [crypto]) 19275 19276 19277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 19278printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 19279if test ${ac_cv_c_format_attribute+y} 19280then : 19281 printf %s "(cached) " >&6 19282else $as_nop 19283 ac_cv_c_format_attribute=no 19284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19285/* end confdefs.h. */ 19286#include <stdio.h> 19287void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 19288void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 19289 19290int 19291main (void) 19292{ 19293 19294 f ("%s", "str"); 19295 19296 ; 19297 return 0; 19298} 19299_ACEOF 19300if ac_fn_c_try_compile "$LINENO" 19301then : 19302 ac_cv_c_format_attribute="yes" 19303else $as_nop 19304 ac_cv_c_format_attribute="no" 19305fi 19306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19307 19308fi 19309 19310 19311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 19312printf "%s\n" "$ac_cv_c_format_attribute" >&6; } 19313if test $ac_cv_c_format_attribute = yes; then 19314 19315printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 19316 19317fi 19318 19319 19320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 19321printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 19322if test ${ac_cv_c_unused_attribute+y} 19323then : 19324 printf %s "(cached) " >&6 19325else $as_nop 19326 ac_cv_c_unused_attribute=no 19327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19328/* end confdefs.h. */ 19329#include <stdio.h> 19330void f (char *u __attribute__((unused))); 19331 19332int 19333main (void) 19334{ 19335 19336 f ("x"); 19337 19338 ; 19339 return 0; 19340} 19341_ACEOF 19342if ac_fn_c_try_compile "$LINENO" 19343then : 19344 ac_cv_c_unused_attribute="yes" 19345else $as_nop 19346 ac_cv_c_unused_attribute="no" 19347fi 19348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19349 19350fi 19351 19352 19353 19354 19355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 19356printf "%s\n" "$ac_cv_c_unused_attribute" >&6; } 19357if test $ac_cv_c_unused_attribute = yes; then 19358 19359printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 19360 19361fi 19362 19363 19364 19365# Check whether --with-xcode-sdk was given. 19366if test ${with_xcode_sdk+y} 19367then : 19368 withval=$with_xcode_sdk; 19369else $as_nop 19370 with_xcode_sdk="yes" 19371fi 19372 19373if test "x_$with_xcode_sdk" != "x_no" ; then 19374 # check OSX deployment target, if needed 19375 if echo $target_os | grep darwin > /dev/null; then 19376 sdk_p=`xcode-select -print-path`; 19377 if test "x_$with_xcode_sdk" = "x_yes" ; then 19378 sdk_v="$( /usr/bin/xcrun --show-sdk-version 2>/dev/null )" 19379 else 19380 sdk_v="$with_xcode_sdk" 19381 fi 19382 # xcrun only got that option in 10.7 19383 if test -z "$sdk_v" ; then 19384 sdk_c="10.6" 19385 sdk_v="10.6" 19386 fi 19387 SYSROOT="$( find ${sdk_p} -name MacOSX${sdk_v}.sdk )" 19388 case $sdk_v in 19389 10.9|10.8) sdk_c="10.7";; 19390 10.11|10.10|*) sdk_c="10.10";; 19391 esac 19392 export MACOSX_DEPLOYMENT_TARGET="${sdk_c}"; 19393 export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${SYSROOT}" 19394 fi 19395fi 19396 19397 19398printf "%s\n" "#define SYSCONFDIR sysconfdir" >>confdefs.h 19399 19400 19401 19402# Check whether --with-trust-anchor was given. 19403if test ${with_trust_anchor+y} 19404then : 19405 withval=$with_trust_anchor; 19406 LDNS_TRUST_ANCHOR_FILE="$withval" 19407 19408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default trust anchor: $withval" >&5 19409printf "%s\n" "$as_me: Default trust anchor: $withval" >&6;} 19410 19411else $as_nop 19412 19413 LDNS_TRUST_ANCHOR_FILE="\$(sysconfdir)/unbound/root.key" 19414 19415 19416fi 19417 19418 19419 19420# Check whether --with-ca-file was given. 19421if test ${with_ca_file+y} 19422then : 19423 withval=$with_ca_file; 19424 19425printf "%s\n" "#define HAVE_DANE_CA_FILE 1" >>confdefs.h 19426 19427 19428printf "%s\n" "#define LDNS_DANE_CA_FILE \"$withval\"" >>confdefs.h 19429 19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5 19431printf "%s\n" "$as_me: Using CAfile: $withval" >&6;} 19432 DEFAULT_CAFILE="Default is $withval" 19433 19434 19435else $as_nop 19436 19437 19438printf "%s\n" "#define HAVE_DANE_CA_FILE 0" >>confdefs.h 19439 19440 19441 19442fi 19443 19444 19445 19446# Check whether --with-ca-path was given. 19447if test ${with_ca_path+y} 19448then : 19449 withval=$with_ca_path; 19450 19451printf "%s\n" "#define HAVE_DANE_CA_PATH 1" >>confdefs.h 19452 19453 19454printf "%s\n" "#define LDNS_DANE_CA_PATH \"$withval\"" >>confdefs.h 19455 19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5 19457printf "%s\n" "$as_me: Using CApath: $withval" >&6;} 19458 DEFAULT_CAPATH="Default is $withval" 19459 19460 19461else $as_nop 19462 19463 19464printf "%s\n" "#define HAVE_DANE_CA_PATH 0" >>confdefs.h 19465 19466 19467 19468fi 19469 19470 19471 19472 19473 19474 19475if test "x$HAVE_SSL" = "xyes"; then 19476 ldns_build_config_have_ssl=1 19477 19478else 19479 ldns_build_config_have_ssl=0 19480 19481fi 19482if test "x$ac_cv_c_format_attribute" = "xyes"; then 19483 ldns_build_config_have_attr_format=1 19484 19485else 19486 ldns_build_config_have_attr_format=0 19487 19488fi 19489if test "x$ac_cv_c_unused_attribute" = "xyes"; then 19490 ldns_build_config_have_attr_unused=1 19491 19492else 19493 ldns_build_config_have_attr_unused=0 19494 19495fi 19496 19497CONFIG_FILES="Makefile libdns.doxygen ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config" 19498 19499ac_config_files="$ac_config_files $CONFIG_FILES" 19500 19501 19502ac_config_headers="$ac_config_headers ldns/config.h" 19503 19504cat >confcache <<\_ACEOF 19505# This file is a shell script that caches the results of configure 19506# tests run on this system so they can be shared between configure 19507# scripts and configure runs, see configure's option --config-cache. 19508# It is not useful on other systems. If it contains results you don't 19509# want to keep, you may remove or edit it. 19510# 19511# config.status only pays attention to the cache file if you give it 19512# the --recheck option to rerun configure. 19513# 19514# `ac_cv_env_foo' variables (set or unset) will be overridden when 19515# loading this file, other *unset* `ac_cv_foo' will be assigned the 19516# following values. 19517 19518_ACEOF 19519 19520# The following way of writing the cache mishandles newlines in values, 19521# but we know of no workaround that is simple, portable, and efficient. 19522# So, we kill variables containing newlines. 19523# Ultrix sh set writes to stderr and can't be redirected directly, 19524# and sets the high bit in the cache file unless we assign to the vars. 19525( 19526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19527 eval ac_val=\$$ac_var 19528 case $ac_val in #( 19529 *${as_nl}*) 19530 case $ac_var in #( 19531 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19532printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19533 esac 19534 case $ac_var in #( 19535 _ | IFS | as_nl) ;; #( 19536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19537 *) { eval $ac_var=; unset $ac_var;} ;; 19538 esac ;; 19539 esac 19540 done 19541 19542 (set) 2>&1 | 19543 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19544 *${as_nl}ac_space=\ *) 19545 # `set' does not quote correctly, so add quotes: double-quote 19546 # substitution turns \\\\ into \\, and sed turns \\ into \. 19547 sed -n \ 19548 "s/'/'\\\\''/g; 19549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19550 ;; #( 19551 *) 19552 # `set' quotes correctly as required by POSIX, so do not add quotes. 19553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19554 ;; 19555 esac | 19556 sort 19557) | 19558 sed ' 19559 /^ac_cv_env_/b end 19560 t clear 19561 :clear 19562 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19563 t end 19564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19565 :end' >>confcache 19566if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19567 if test -w "$cache_file"; then 19568 if test "x$cache_file" != "x/dev/null"; then 19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19570printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19571 if test ! -f "$cache_file" || test -h "$cache_file"; then 19572 cat confcache >"$cache_file" 19573 else 19574 case $cache_file in #( 19575 */* | ?:*) 19576 mv -f confcache "$cache_file"$$ && 19577 mv -f "$cache_file"$$ "$cache_file" ;; #( 19578 *) 19579 mv -f confcache "$cache_file" ;; 19580 esac 19581 fi 19582 fi 19583 else 19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19585printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19586 fi 19587fi 19588rm -f confcache 19589 19590test "x$prefix" = xNONE && prefix=$ac_default_prefix 19591# Let make expand exec_prefix. 19592test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19593 19594DEFS=-DHAVE_CONFIG_H 19595 19596ac_libobjs= 19597ac_ltlibobjs= 19598U= 19599for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19600 # 1. Remove the extension, and $U if already installed. 19601 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19602 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19603 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19604 # will be set to the directory where LIBOBJS objects are built. 19605 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19606 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19607done 19608LIBOBJS=$ac_libobjs 19609 19610LTLIBOBJS=$ac_ltlibobjs 19611 19612 19613 19614 19615: "${CONFIG_STATUS=./config.status}" 19616ac_write_fail=0 19617ac_clean_files_save=$ac_clean_files 19618ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19620printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19621as_write_fail=0 19622cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19623#! $SHELL 19624# Generated by $as_me. 19625# Run this file to recreate the current configuration. 19626# Compiler output produced by configure, useful for debugging 19627# configure, is in config.log if it exists. 19628 19629debug=false 19630ac_cs_recheck=false 19631ac_cs_silent=false 19632 19633SHELL=\${CONFIG_SHELL-$SHELL} 19634export SHELL 19635_ASEOF 19636cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19637## -------------------- ## 19638## M4sh Initialization. ## 19639## -------------------- ## 19640 19641# Be more Bourne compatible 19642DUALCASE=1; export DUALCASE # for MKS sh 19643as_nop=: 19644if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19645then : 19646 emulate sh 19647 NULLCMD=: 19648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19649 # is contrary to our usage. Disable this feature. 19650 alias -g '${1+"$@"}'='"$@"' 19651 setopt NO_GLOB_SUBST 19652else $as_nop 19653 case `(set -o) 2>/dev/null` in #( 19654 *posix*) : 19655 set -o posix ;; #( 19656 *) : 19657 ;; 19658esac 19659fi 19660 19661 19662 19663# Reset variables that may have inherited troublesome values from 19664# the environment. 19665 19666# IFS needs to be set, to space, tab, and newline, in precisely that order. 19667# (If _AS_PATH_WALK were called with IFS unset, it would have the 19668# side effect of setting IFS to empty, thus disabling word splitting.) 19669# Quoting is to prevent editors from complaining about space-tab. 19670as_nl=' 19671' 19672export as_nl 19673IFS=" "" $as_nl" 19674 19675PS1='$ ' 19676PS2='> ' 19677PS4='+ ' 19678 19679# Ensure predictable behavior from utilities with locale-dependent output. 19680LC_ALL=C 19681export LC_ALL 19682LANGUAGE=C 19683export LANGUAGE 19684 19685# We cannot yet rely on "unset" to work, but we need these variables 19686# to be unset--not just set to an empty or harmless value--now, to 19687# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19688# also avoids known problems related to "unset" and subshell syntax 19689# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19690for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19691do eval test \${$as_var+y} \ 19692 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19693done 19694 19695# Ensure that fds 0, 1, and 2 are open. 19696if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19697if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19698if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19699 19700# The user is always right. 19701if ${PATH_SEPARATOR+false} :; then 19702 PATH_SEPARATOR=: 19703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19705 PATH_SEPARATOR=';' 19706 } 19707fi 19708 19709 19710# Find who we are. Look in the path if we contain no directory separator. 19711as_myself= 19712case $0 in #(( 19713 *[\\/]* ) as_myself=$0 ;; 19714 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19715for as_dir in $PATH 19716do 19717 IFS=$as_save_IFS 19718 case $as_dir in #((( 19719 '') as_dir=./ ;; 19720 */) ;; 19721 *) as_dir=$as_dir/ ;; 19722 esac 19723 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19724 done 19725IFS=$as_save_IFS 19726 19727 ;; 19728esac 19729# We did not find ourselves, most probably we were run as `sh COMMAND' 19730# in which case we are not to be found in the path. 19731if test "x$as_myself" = x; then 19732 as_myself=$0 19733fi 19734if test ! -f "$as_myself"; then 19735 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19736 exit 1 19737fi 19738 19739 19740 19741# as_fn_error STATUS ERROR [LINENO LOG_FD] 19742# ---------------------------------------- 19743# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19744# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19745# script with STATUS, using 1 if that was 0. 19746as_fn_error () 19747{ 19748 as_status=$1; test $as_status -eq 0 && as_status=1 19749 if test "$4"; then 19750 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19752 fi 19753 printf "%s\n" "$as_me: error: $2" >&2 19754 as_fn_exit $as_status 19755} # as_fn_error 19756 19757 19758 19759# as_fn_set_status STATUS 19760# ----------------------- 19761# Set $? to STATUS, without forking. 19762as_fn_set_status () 19763{ 19764 return $1 19765} # as_fn_set_status 19766 19767# as_fn_exit STATUS 19768# ----------------- 19769# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19770as_fn_exit () 19771{ 19772 set +e 19773 as_fn_set_status $1 19774 exit $1 19775} # as_fn_exit 19776 19777# as_fn_unset VAR 19778# --------------- 19779# Portably unset VAR. 19780as_fn_unset () 19781{ 19782 { eval $1=; unset $1;} 19783} 19784as_unset=as_fn_unset 19785 19786# as_fn_append VAR VALUE 19787# ---------------------- 19788# Append the text in VALUE to the end of the definition contained in VAR. Take 19789# advantage of any shell optimizations that allow amortized linear growth over 19790# repeated appends, instead of the typical quadratic growth present in naive 19791# implementations. 19792if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19793then : 19794 eval 'as_fn_append () 19795 { 19796 eval $1+=\$2 19797 }' 19798else $as_nop 19799 as_fn_append () 19800 { 19801 eval $1=\$$1\$2 19802 } 19803fi # as_fn_append 19804 19805# as_fn_arith ARG... 19806# ------------------ 19807# Perform arithmetic evaluation on the ARGs, and store the result in the 19808# global $as_val. Take advantage of shells that can avoid forks. The arguments 19809# must be portable across $(()) and expr. 19810if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19811then : 19812 eval 'as_fn_arith () 19813 { 19814 as_val=$(( $* )) 19815 }' 19816else $as_nop 19817 as_fn_arith () 19818 { 19819 as_val=`expr "$@" || test $? -eq 1` 19820 } 19821fi # as_fn_arith 19822 19823 19824if expr a : '\(a\)' >/dev/null 2>&1 && 19825 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19826 as_expr=expr 19827else 19828 as_expr=false 19829fi 19830 19831if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19832 as_basename=basename 19833else 19834 as_basename=false 19835fi 19836 19837if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19838 as_dirname=dirname 19839else 19840 as_dirname=false 19841fi 19842 19843as_me=`$as_basename -- "$0" || 19844$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19845 X"$0" : 'X\(//\)$' \| \ 19846 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19847printf "%s\n" X/"$0" | 19848 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19849 s//\1/ 19850 q 19851 } 19852 /^X\/\(\/\/\)$/{ 19853 s//\1/ 19854 q 19855 } 19856 /^X\/\(\/\).*/{ 19857 s//\1/ 19858 q 19859 } 19860 s/.*/./; q'` 19861 19862# Avoid depending upon Character Ranges. 19863as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19864as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19865as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19866as_cr_digits='0123456789' 19867as_cr_alnum=$as_cr_Letters$as_cr_digits 19868 19869 19870# Determine whether it's possible to make 'echo' print without a newline. 19871# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19872# for compatibility with existing Makefiles. 19873ECHO_C= ECHO_N= ECHO_T= 19874case `echo -n x` in #((((( 19875-n*) 19876 case `echo 'xy\c'` in 19877 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19878 xy) ECHO_C='\c';; 19879 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19880 ECHO_T=' ';; 19881 esac;; 19882*) 19883 ECHO_N='-n';; 19884esac 19885 19886# For backward compatibility with old third-party macros, we provide 19887# the shell variables $as_echo and $as_echo_n. New code should use 19888# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19889as_echo='printf %s\n' 19890as_echo_n='printf %s' 19891 19892rm -f conf$$ conf$$.exe conf$$.file 19893if test -d conf$$.dir; then 19894 rm -f conf$$.dir/conf$$.file 19895else 19896 rm -f conf$$.dir 19897 mkdir conf$$.dir 2>/dev/null 19898fi 19899if (echo >conf$$.file) 2>/dev/null; then 19900 if ln -s conf$$.file conf$$ 2>/dev/null; then 19901 as_ln_s='ln -s' 19902 # ... but there are two gotchas: 19903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19905 # In both cases, we have to default to `cp -pR'. 19906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19907 as_ln_s='cp -pR' 19908 elif ln conf$$.file conf$$ 2>/dev/null; then 19909 as_ln_s=ln 19910 else 19911 as_ln_s='cp -pR' 19912 fi 19913else 19914 as_ln_s='cp -pR' 19915fi 19916rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19917rmdir conf$$.dir 2>/dev/null 19918 19919 19920# as_fn_mkdir_p 19921# ------------- 19922# Create "$as_dir" as a directory, including parents if necessary. 19923as_fn_mkdir_p () 19924{ 19925 19926 case $as_dir in #( 19927 -*) as_dir=./$as_dir;; 19928 esac 19929 test -d "$as_dir" || eval $as_mkdir_p || { 19930 as_dirs= 19931 while :; do 19932 case $as_dir in #( 19933 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19934 *) as_qdir=$as_dir;; 19935 esac 19936 as_dirs="'$as_qdir' $as_dirs" 19937 as_dir=`$as_dirname -- "$as_dir" || 19938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19939 X"$as_dir" : 'X\(//\)[^/]' \| \ 19940 X"$as_dir" : 'X\(//\)$' \| \ 19941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19942printf "%s\n" X"$as_dir" | 19943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19944 s//\1/ 19945 q 19946 } 19947 /^X\(\/\/\)[^/].*/{ 19948 s//\1/ 19949 q 19950 } 19951 /^X\(\/\/\)$/{ 19952 s//\1/ 19953 q 19954 } 19955 /^X\(\/\).*/{ 19956 s//\1/ 19957 q 19958 } 19959 s/.*/./; q'` 19960 test -d "$as_dir" && break 19961 done 19962 test -z "$as_dirs" || eval "mkdir $as_dirs" 19963 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19964 19965 19966} # as_fn_mkdir_p 19967if mkdir -p . 2>/dev/null; then 19968 as_mkdir_p='mkdir -p "$as_dir"' 19969else 19970 test -d ./-p && rmdir ./-p 19971 as_mkdir_p=false 19972fi 19973 19974 19975# as_fn_executable_p FILE 19976# ----------------------- 19977# Test if FILE is an executable regular file. 19978as_fn_executable_p () 19979{ 19980 test -f "$1" && test -x "$1" 19981} # as_fn_executable_p 19982as_test_x='test -x' 19983as_executable_p=as_fn_executable_p 19984 19985# Sed expression to map a string onto a valid CPP name. 19986as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19987 19988# Sed expression to map a string onto a valid variable name. 19989as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19990 19991 19992exec 6>&1 19993## ----------------------------------- ## 19994## Main body of $CONFIG_STATUS script. ## 19995## ----------------------------------- ## 19996_ASEOF 19997test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19998 19999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20000# Save the log message, to keep $0 and so on meaningful, and to 20001# report actual input values of CONFIG_FILES etc. instead of their 20002# values after options handling. 20003ac_log=" 20004This file was extended by ldns $as_me 1.8.3, which was 20005generated by GNU Autoconf 2.71. Invocation command line was 20006 20007 CONFIG_FILES = $CONFIG_FILES 20008 CONFIG_HEADERS = $CONFIG_HEADERS 20009 CONFIG_LINKS = $CONFIG_LINKS 20010 CONFIG_COMMANDS = $CONFIG_COMMANDS 20011 $ $0 $@ 20012 20013on `(hostname || uname -n) 2>/dev/null | sed 1q` 20014" 20015 20016_ACEOF 20017 20018case $ac_config_files in *" 20019"*) set x $ac_config_files; shift; ac_config_files=$*;; 20020esac 20021 20022case $ac_config_headers in *" 20023"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20024esac 20025 20026 20027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20028# Files that config.status was made for. 20029config_files="$ac_config_files" 20030config_headers="$ac_config_headers" 20031config_commands="$ac_config_commands" 20032 20033_ACEOF 20034 20035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20036ac_cs_usage="\ 20037\`$as_me' instantiates files and other configuration actions 20038from templates according to the current configuration. Unless the files 20039and actions are specified as TAGs, all are instantiated by default. 20040 20041Usage: $0 [OPTION]... [TAG]... 20042 20043 -h, --help print this help, then exit 20044 -V, --version print version number and configuration settings, then exit 20045 --config print configuration, then exit 20046 -q, --quiet, --silent 20047 do not print progress messages 20048 -d, --debug don't remove temporary files 20049 --recheck update $as_me by reconfiguring in the same conditions 20050 --file=FILE[:TEMPLATE] 20051 instantiate the configuration file FILE 20052 --header=FILE[:TEMPLATE] 20053 instantiate the configuration header FILE 20054 20055Configuration files: 20056$config_files 20057 20058Configuration headers: 20059$config_headers 20060 20061Configuration commands: 20062$config_commands 20063 20064Report bugs to <libdns@nlnetlabs.nl>." 20065 20066_ACEOF 20067ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20068ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20070ac_cs_config='$ac_cs_config_escaped' 20071ac_cs_version="\\ 20072ldns config.status 1.8.3 20073configured by $0, generated by GNU Autoconf 2.71, 20074 with options \\"\$ac_cs_config\\" 20075 20076Copyright (C) 2021 Free Software Foundation, Inc. 20077This config.status script is free software; the Free Software Foundation 20078gives unlimited permission to copy, distribute and modify it." 20079 20080ac_pwd='$ac_pwd' 20081srcdir='$srcdir' 20082AWK='$AWK' 20083test -n "\$AWK" || AWK=awk 20084_ACEOF 20085 20086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20087# The default lists apply if the user does not specify any file. 20088ac_need_defaults=: 20089while test $# != 0 20090do 20091 case $1 in 20092 --*=?*) 20093 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20095 ac_shift=: 20096 ;; 20097 --*=) 20098 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20099 ac_optarg= 20100 ac_shift=: 20101 ;; 20102 *) 20103 ac_option=$1 20104 ac_optarg=$2 20105 ac_shift=shift 20106 ;; 20107 esac 20108 20109 case $ac_option in 20110 # Handling of the options. 20111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20112 ac_cs_recheck=: ;; 20113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20114 printf "%s\n" "$ac_cs_version"; exit ;; 20115 --config | --confi | --conf | --con | --co | --c ) 20116 printf "%s\n" "$ac_cs_config"; exit ;; 20117 --debug | --debu | --deb | --de | --d | -d ) 20118 debug=: ;; 20119 --file | --fil | --fi | --f ) 20120 $ac_shift 20121 case $ac_optarg in 20122 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20123 '') as_fn_error $? "missing file argument" ;; 20124 esac 20125 as_fn_append CONFIG_FILES " '$ac_optarg'" 20126 ac_need_defaults=false;; 20127 --header | --heade | --head | --hea ) 20128 $ac_shift 20129 case $ac_optarg in 20130 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20131 esac 20132 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20133 ac_need_defaults=false;; 20134 --he | --h) 20135 # Conflict between --help and --header 20136 as_fn_error $? "ambiguous option: \`$1' 20137Try \`$0 --help' for more information.";; 20138 --help | --hel | -h ) 20139 printf "%s\n" "$ac_cs_usage"; exit ;; 20140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20141 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20142 ac_cs_silent=: ;; 20143 20144 # This is an error. 20145 -*) as_fn_error $? "unrecognized option: \`$1' 20146Try \`$0 --help' for more information." ;; 20147 20148 *) as_fn_append ac_config_targets " $1" 20149 ac_need_defaults=false ;; 20150 20151 esac 20152 shift 20153done 20154 20155ac_configure_extra_args= 20156 20157if $ac_cs_silent; then 20158 exec 6>/dev/null 20159 ac_configure_extra_args="$ac_configure_extra_args --silent" 20160fi 20161 20162_ACEOF 20163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20164if \$ac_cs_recheck; then 20165 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20166 shift 20167 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20168 CONFIG_SHELL='$SHELL' 20169 export CONFIG_SHELL 20170 exec "\$@" 20171fi 20172 20173_ACEOF 20174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20175exec 5>>config.log 20176{ 20177 echo 20178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20179## Running $as_me. ## 20180_ASBOX 20181 printf "%s\n" "$ac_log" 20182} >&5 20183 20184_ACEOF 20185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20186# 20187# INIT-COMMANDS 20188# 20189 20190 20191# The HP-UX ksh and POSIX shell print the target directory to stdout 20192# if CDPATH is set. 20193(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20194 20195sed_quote_subst='$sed_quote_subst' 20196double_quote_subst='$double_quote_subst' 20197delay_variable_subst='$delay_variable_subst' 20198macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20199macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20200enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20201enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20202pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20203enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20204shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20205SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20206ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20207PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20208host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20209host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20210host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20211build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20212build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20213build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20214SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20215Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20216GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20217EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20218FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20219LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20220NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20221LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20222max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20223ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20224exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20225lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20226lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20227lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20228lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20229lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20230reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20231reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20232OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20233deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20234file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20235file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20236want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20237DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20238sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20239AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20240AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20241archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20242STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20243RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20244old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20245old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20246old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20247lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20248CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20249CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20250compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20251GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20252lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20253lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20254lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20255lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20256lt_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"`' 20257lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20258nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20259lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20260lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20261objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20262MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20263lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20264lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20265lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20266lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20267lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20268need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20269MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20270DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20271NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20272LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20273OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20274OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20275libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20276shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20277extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20278archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20279enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20280export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20281whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20282compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20283old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20284old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20285archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20286archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20287module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20288module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20289with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20290allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20291no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20292hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20293hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20294hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20295hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20296hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20297hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20298hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20299inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20300link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20301always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20302export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20303exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20304include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20305prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20306postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20307file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20308variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20309need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20310need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20311version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20312runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20313shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20314shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20315libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20316library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20317soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20318install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20319postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20320postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20321finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20322finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20323hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20324sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20325configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20326configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20327hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20328enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20329enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20330enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20331old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20332striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20333 20334LTCC='$LTCC' 20335LTCFLAGS='$LTCFLAGS' 20336compiler='$compiler_DEFAULT' 20337 20338# A function that is used when there is no print builtin or printf. 20339func_fallback_echo () 20340{ 20341 eval 'cat <<_LTECHO_EOF 20342\$1 20343_LTECHO_EOF' 20344} 20345 20346# Quote evaled strings. 20347for var in SHELL \ 20348ECHO \ 20349PATH_SEPARATOR \ 20350SED \ 20351GREP \ 20352EGREP \ 20353FGREP \ 20354LD \ 20355NM \ 20356LN_S \ 20357lt_SP2NL \ 20358lt_NL2SP \ 20359reload_flag \ 20360OBJDUMP \ 20361deplibs_check_method \ 20362file_magic_cmd \ 20363file_magic_glob \ 20364want_nocaseglob \ 20365DLLTOOL \ 20366sharedlib_from_linklib_cmd \ 20367AR \ 20368AR_FLAGS \ 20369archiver_list_spec \ 20370STRIP \ 20371RANLIB \ 20372CC \ 20373CFLAGS \ 20374compiler \ 20375lt_cv_sys_global_symbol_pipe \ 20376lt_cv_sys_global_symbol_to_cdecl \ 20377lt_cv_sys_global_symbol_to_import \ 20378lt_cv_sys_global_symbol_to_c_name_address \ 20379lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20380lt_cv_nm_interface \ 20381nm_file_list_spec \ 20382lt_cv_truncate_bin \ 20383lt_prog_compiler_no_builtin_flag \ 20384lt_prog_compiler_pic \ 20385lt_prog_compiler_wl \ 20386lt_prog_compiler_static \ 20387lt_cv_prog_compiler_c_o \ 20388need_locks \ 20389MANIFEST_TOOL \ 20390DSYMUTIL \ 20391NMEDIT \ 20392LIPO \ 20393OTOOL \ 20394OTOOL64 \ 20395shrext_cmds \ 20396export_dynamic_flag_spec \ 20397whole_archive_flag_spec \ 20398compiler_needs_object \ 20399with_gnu_ld \ 20400allow_undefined_flag \ 20401no_undefined_flag \ 20402hardcode_libdir_flag_spec \ 20403hardcode_libdir_separator \ 20404exclude_expsyms \ 20405include_expsyms \ 20406file_list_spec \ 20407variables_saved_for_relink \ 20408libname_spec \ 20409library_names_spec \ 20410soname_spec \ 20411install_override_mode \ 20412finish_eval \ 20413old_striplib \ 20414striplib; do 20415 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20416 *[\\\\\\\`\\"\\\$]*) 20417 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20418 ;; 20419 *) 20420 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20421 ;; 20422 esac 20423done 20424 20425# Double-quote double-evaled strings. 20426for var in reload_cmds \ 20427old_postinstall_cmds \ 20428old_postuninstall_cmds \ 20429old_archive_cmds \ 20430extract_expsyms_cmds \ 20431old_archive_from_new_cmds \ 20432old_archive_from_expsyms_cmds \ 20433archive_cmds \ 20434archive_expsym_cmds \ 20435module_cmds \ 20436module_expsym_cmds \ 20437export_symbols_cmds \ 20438prelink_cmds \ 20439postlink_cmds \ 20440postinstall_cmds \ 20441postuninstall_cmds \ 20442finish_cmds \ 20443sys_lib_search_path_spec \ 20444configure_time_dlsearch_path \ 20445configure_time_lt_sys_library_path; do 20446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20447 *[\\\\\\\`\\"\\\$]*) 20448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20449 ;; 20450 *) 20451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20452 ;; 20453 esac 20454done 20455 20456ac_aux_dir='$ac_aux_dir' 20457 20458# See if we are running on zsh, and set the options that allow our 20459# commands through without removal of \ escapes INIT. 20460if test -n "\${ZSH_VERSION+set}"; then 20461 setopt NO_GLOB_SUBST 20462fi 20463 20464 20465 PACKAGE='$PACKAGE' 20466 VERSION='$VERSION' 20467 RM='$RM' 20468 ofile='$ofile' 20469 20470 20471 20472 20473_ACEOF 20474 20475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20476 20477# Handling of arguments. 20478for ac_config_target in $ac_config_targets 20479do 20480 case $ac_config_target in 20481 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20482 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 20483 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;; 20484 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;; 20485 20486 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20487 esac 20488done 20489 20490 20491# If the user did not use the arguments to specify the items to instantiate, 20492# then the envvar interface is used. Set only those that are not. 20493# We use the long form for the default assignment because of an extremely 20494# bizarre bug on SunOS 4.1.3. 20495if $ac_need_defaults; then 20496 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20497 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20498 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20499fi 20500 20501# Have a temporary directory for convenience. Make it in the build tree 20502# simply because there is no reason against having it here, and in addition, 20503# creating and moving files from /tmp can sometimes cause problems. 20504# Hook for its removal unless debugging. 20505# Note that there is a small window in which the directory will not be cleaned: 20506# after its creation but before its name has been assigned to `$tmp'. 20507$debug || 20508{ 20509 tmp= ac_tmp= 20510 trap 'exit_status=$? 20511 : "${ac_tmp:=$tmp}" 20512 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20513' 0 20514 trap 'as_fn_exit 1' 1 2 13 15 20515} 20516# Create a (secure) tmp directory for tmp files. 20517 20518{ 20519 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20520 test -d "$tmp" 20521} || 20522{ 20523 tmp=./conf$$-$RANDOM 20524 (umask 077 && mkdir "$tmp") 20525} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20526ac_tmp=$tmp 20527 20528# Set up the scripts for CONFIG_FILES section. 20529# No need to generate them if there are no CONFIG_FILES. 20530# This happens for instance with `./config.status config.h'. 20531if test -n "$CONFIG_FILES"; then 20532 20533 20534ac_cr=`echo X | tr X '\015'` 20535# On cygwin, bash can eat \r inside `` if the user requested igncr. 20536# But we know of no other shell where ac_cr would be empty at this 20537# point, so we can use a bashism as a fallback. 20538if test "x$ac_cr" = x; then 20539 eval ac_cr=\$\'\\r\' 20540fi 20541ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20542if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20543 ac_cs_awk_cr='\\r' 20544else 20545 ac_cs_awk_cr=$ac_cr 20546fi 20547 20548echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20549_ACEOF 20550 20551 20552{ 20553 echo "cat >conf$$subs.awk <<_ACEOF" && 20554 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20555 echo "_ACEOF" 20556} >conf$$subs.sh || 20557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20558ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20559ac_delim='%!_!# ' 20560for ac_last_try in false false false false false :; do 20561 . ./conf$$subs.sh || 20562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20563 20564 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20565 if test $ac_delim_n = $ac_delim_num; then 20566 break 20567 elif $ac_last_try; then 20568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20569 else 20570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20571 fi 20572done 20573rm -f conf$$subs.sh 20574 20575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20576cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20577_ACEOF 20578sed -n ' 20579h 20580s/^/S["/; s/!.*/"]=/ 20581p 20582g 20583s/^[^!]*!// 20584:repl 20585t repl 20586s/'"$ac_delim"'$// 20587t delim 20588:nl 20589h 20590s/\(.\{148\}\)..*/\1/ 20591t more1 20592s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20593p 20594n 20595b repl 20596:more1 20597s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20598p 20599g 20600s/.\{148\}// 20601t nl 20602:delim 20603h 20604s/\(.\{148\}\)..*/\1/ 20605t more2 20606s/["\\]/\\&/g; s/^/"/; s/$/"/ 20607p 20608b 20609:more2 20610s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20611p 20612g 20613s/.\{148\}// 20614t delim 20615' <conf$$subs.awk | sed ' 20616/^[^""]/{ 20617 N 20618 s/\n// 20619} 20620' >>$CONFIG_STATUS || ac_write_fail=1 20621rm -f conf$$subs.awk 20622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20623_ACAWK 20624cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20625 for (key in S) S_is_set[key] = 1 20626 FS = "" 20627 20628} 20629{ 20630 line = $ 0 20631 nfields = split(line, field, "@") 20632 substed = 0 20633 len = length(field[1]) 20634 for (i = 2; i < nfields; i++) { 20635 key = field[i] 20636 keylen = length(key) 20637 if (S_is_set[key]) { 20638 value = S[key] 20639 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20640 len += length(value) + length(field[++i]) 20641 substed = 1 20642 } else 20643 len += 1 + keylen 20644 } 20645 20646 print line 20647} 20648 20649_ACAWK 20650_ACEOF 20651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20652if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20653 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20654else 20655 cat 20656fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20657 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20658_ACEOF 20659 20660# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20661# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20662# trailing colons and then remove the whole line if VPATH becomes empty 20663# (actually we leave an empty line to preserve line numbers). 20664if test "x$srcdir" = x.; then 20665 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20666h 20667s/// 20668s/^/:/ 20669s/[ ]*$/:/ 20670s/:\$(srcdir):/:/g 20671s/:\${srcdir}:/:/g 20672s/:@srcdir@:/:/g 20673s/^:*// 20674s/:*$// 20675x 20676s/\(=[ ]*\).*/\1/ 20677G 20678s/\n// 20679s/^[^=]*=[ ]*$// 20680}' 20681fi 20682 20683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20684fi # test -n "$CONFIG_FILES" 20685 20686# Set up the scripts for CONFIG_HEADERS section. 20687# No need to generate them if there are no CONFIG_HEADERS. 20688# This happens for instance with `./config.status Makefile'. 20689if test -n "$CONFIG_HEADERS"; then 20690cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20691BEGIN { 20692_ACEOF 20693 20694# Transform confdefs.h into an awk script `defines.awk', embedded as 20695# here-document in config.status, that substitutes the proper values into 20696# config.h.in to produce config.h. 20697 20698# Create a delimiter string that does not exist in confdefs.h, to ease 20699# handling of long lines. 20700ac_delim='%!_!# ' 20701for ac_last_try in false false :; do 20702 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20703 if test -z "$ac_tt"; then 20704 break 20705 elif $ac_last_try; then 20706 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20707 else 20708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20709 fi 20710done 20711 20712# For the awk script, D is an array of macro values keyed by name, 20713# likewise P contains macro parameters if any. Preserve backslash 20714# newline sequences. 20715 20716ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20717sed -n ' 20718s/.\{148\}/&'"$ac_delim"'/g 20719t rset 20720:rset 20721s/^[ ]*#[ ]*define[ ][ ]*/ / 20722t def 20723d 20724:def 20725s/\\$// 20726t bsnl 20727s/["\\]/\\&/g 20728s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20729D["\1"]=" \3"/p 20730s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20731d 20732:bsnl 20733s/["\\]/\\&/g 20734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20735D["\1"]=" \3\\\\\\n"\\/p 20736t cont 20737s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20738t cont 20739d 20740:cont 20741n 20742s/.\{148\}/&'"$ac_delim"'/g 20743t clear 20744:clear 20745s/\\$// 20746t bsnlc 20747s/["\\]/\\&/g; s/^/"/; s/$/"/p 20748d 20749:bsnlc 20750s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20751b cont 20752' <confdefs.h | sed ' 20753s/'"$ac_delim"'/"\\\ 20754"/g' >>$CONFIG_STATUS || ac_write_fail=1 20755 20756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20757 for (key in D) D_is_set[key] = 1 20758 FS = "" 20759} 20760/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20761 line = \$ 0 20762 split(line, arg, " ") 20763 if (arg[1] == "#") { 20764 defundef = arg[2] 20765 mac1 = arg[3] 20766 } else { 20767 defundef = substr(arg[1], 2) 20768 mac1 = arg[2] 20769 } 20770 split(mac1, mac2, "(") #) 20771 macro = mac2[1] 20772 prefix = substr(line, 1, index(line, defundef) - 1) 20773 if (D_is_set[macro]) { 20774 # Preserve the white space surrounding the "#". 20775 print prefix "define", macro P[macro] D[macro] 20776 next 20777 } else { 20778 # Replace #undef with comments. This is necessary, for example, 20779 # in the case of _POSIX_SOURCE, which is predefined and required 20780 # on some systems where configure will not decide to define it. 20781 if (defundef == "undef") { 20782 print "/*", prefix defundef, macro, "*/" 20783 next 20784 } 20785 } 20786} 20787{ print } 20788_ACAWK 20789_ACEOF 20790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20791 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20792fi # test -n "$CONFIG_HEADERS" 20793 20794 20795eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20796shift 20797for ac_tag 20798do 20799 case $ac_tag in 20800 :[FHLC]) ac_mode=$ac_tag; continue;; 20801 esac 20802 case $ac_mode$ac_tag in 20803 :[FHL]*:*);; 20804 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20805 :[FH]-) ac_tag=-:-;; 20806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20807 esac 20808 ac_save_IFS=$IFS 20809 IFS=: 20810 set x $ac_tag 20811 IFS=$ac_save_IFS 20812 shift 20813 ac_file=$1 20814 shift 20815 20816 case $ac_mode in 20817 :L) ac_source=$1;; 20818 :[FH]) 20819 ac_file_inputs= 20820 for ac_f 20821 do 20822 case $ac_f in 20823 -) ac_f="$ac_tmp/stdin";; 20824 *) # Look for the file first in the build tree, then in the source tree 20825 # (if the path is not absolute). The absolute path cannot be DOS-style, 20826 # because $ac_f cannot contain `:'. 20827 test -f "$ac_f" || 20828 case $ac_f in 20829 [\\/$]*) false;; 20830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20831 esac || 20832 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20833 esac 20834 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20835 as_fn_append ac_file_inputs " '$ac_f'" 20836 done 20837 20838 # Let's still pretend it is `configure' which instantiates (i.e., don't 20839 # use $as_me), people would be surprised to read: 20840 # /* config.h. Generated by config.status. */ 20841 configure_input='Generated from '` 20842 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20843 `' by configure.' 20844 if test x"$ac_file" != x-; then 20845 configure_input="$ac_file. $configure_input" 20846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20847printf "%s\n" "$as_me: creating $ac_file" >&6;} 20848 fi 20849 # Neutralize special characters interpreted by sed in replacement strings. 20850 case $configure_input in #( 20851 *\&* | *\|* | *\\* ) 20852 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20853 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20854 *) ac_sed_conf_input=$configure_input;; 20855 esac 20856 20857 case $ac_tag in 20858 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20860 esac 20861 ;; 20862 esac 20863 20864 ac_dir=`$as_dirname -- "$ac_file" || 20865$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20866 X"$ac_file" : 'X\(//\)[^/]' \| \ 20867 X"$ac_file" : 'X\(//\)$' \| \ 20868 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20869printf "%s\n" X"$ac_file" | 20870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20871 s//\1/ 20872 q 20873 } 20874 /^X\(\/\/\)[^/].*/{ 20875 s//\1/ 20876 q 20877 } 20878 /^X\(\/\/\)$/{ 20879 s//\1/ 20880 q 20881 } 20882 /^X\(\/\).*/{ 20883 s//\1/ 20884 q 20885 } 20886 s/.*/./; q'` 20887 as_dir="$ac_dir"; as_fn_mkdir_p 20888 ac_builddir=. 20889 20890case "$ac_dir" in 20891.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20892*) 20893 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20894 # A ".." for each directory in $ac_dir_suffix. 20895 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20896 case $ac_top_builddir_sub in 20897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20899 esac ;; 20900esac 20901ac_abs_top_builddir=$ac_pwd 20902ac_abs_builddir=$ac_pwd$ac_dir_suffix 20903# for backward compatibility: 20904ac_top_builddir=$ac_top_build_prefix 20905 20906case $srcdir in 20907 .) # We are building in place. 20908 ac_srcdir=. 20909 ac_top_srcdir=$ac_top_builddir_sub 20910 ac_abs_top_srcdir=$ac_pwd ;; 20911 [\\/]* | ?:[\\/]* ) # Absolute name. 20912 ac_srcdir=$srcdir$ac_dir_suffix; 20913 ac_top_srcdir=$srcdir 20914 ac_abs_top_srcdir=$srcdir ;; 20915 *) # Relative name. 20916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20917 ac_top_srcdir=$ac_top_build_prefix$srcdir 20918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20919esac 20920ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20921 20922 20923 case $ac_mode in 20924 :F) 20925 # 20926 # CONFIG_FILE 20927 # 20928 20929_ACEOF 20930 20931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20932# If the template does not know about datarootdir, expand it. 20933# FIXME: This hack should be removed a few years after 2.60. 20934ac_datarootdir_hack=; ac_datarootdir_seen= 20935ac_sed_dataroot=' 20936/datarootdir/ { 20937 p 20938 q 20939} 20940/@datadir@/p 20941/@docdir@/p 20942/@infodir@/p 20943/@localedir@/p 20944/@mandir@/p' 20945case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20946*datarootdir*) ac_datarootdir_seen=yes;; 20947*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20949printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20950_ACEOF 20951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20952 ac_datarootdir_hack=' 20953 s&@datadir@&$datadir&g 20954 s&@docdir@&$docdir&g 20955 s&@infodir@&$infodir&g 20956 s&@localedir@&$localedir&g 20957 s&@mandir@&$mandir&g 20958 s&\\\${datarootdir}&$datarootdir&g' ;; 20959esac 20960_ACEOF 20961 20962# Neutralize VPATH when `$srcdir' = `.'. 20963# Shell code in configure.ac might set extrasub. 20964# FIXME: do we really want to maintain this feature? 20965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20966ac_sed_extra="$ac_vpsub 20967$extrasub 20968_ACEOF 20969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20970:t 20971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20972s|@configure_input@|$ac_sed_conf_input|;t t 20973s&@top_builddir@&$ac_top_builddir_sub&;t t 20974s&@top_build_prefix@&$ac_top_build_prefix&;t t 20975s&@srcdir@&$ac_srcdir&;t t 20976s&@abs_srcdir@&$ac_abs_srcdir&;t t 20977s&@top_srcdir@&$ac_top_srcdir&;t t 20978s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20979s&@builddir@&$ac_builddir&;t t 20980s&@abs_builddir@&$ac_abs_builddir&;t t 20981s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20982$ac_datarootdir_hack 20983" 20984eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20985 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20986 20987test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20988 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20989 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20990 "$ac_tmp/out"`; test -z "$ac_out"; } && 20991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20992which seems to be undefined. Please make sure it is defined" >&5 20993printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20994which seems to be undefined. Please make sure it is defined" >&2;} 20995 20996 rm -f "$ac_tmp/stdin" 20997 case $ac_file in 20998 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20999 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21000 esac \ 21001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21002 ;; 21003 :H) 21004 # 21005 # CONFIG_HEADER 21006 # 21007 if test x"$ac_file" != x-; then 21008 { 21009 printf "%s\n" "/* $configure_input */" >&1 \ 21010 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21011 } >"$ac_tmp/config.h" \ 21012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21013 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21015printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21016 else 21017 rm -f "$ac_file" 21018 mv "$ac_tmp/config.h" "$ac_file" \ 21019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21020 fi 21021 else 21022 printf "%s\n" "/* $configure_input */" >&1 \ 21023 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21024 || as_fn_error $? "could not create -" "$LINENO" 5 21025 fi 21026 ;; 21027 21028 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21029printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21030 ;; 21031 esac 21032 21033 21034 case $ac_file$ac_mode in 21035 "libtool":C) 21036 21037 # See if we are running on zsh, and set the options that allow our 21038 # commands through without removal of \ escapes. 21039 if test -n "${ZSH_VERSION+set}"; then 21040 setopt NO_GLOB_SUBST 21041 fi 21042 21043 cfgfile=${ofile}T 21044 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21045 $RM "$cfgfile" 21046 21047 cat <<_LT_EOF >> "$cfgfile" 21048#! $SHELL 21049# Generated automatically by $as_me ($PACKAGE) $VERSION 21050# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21051 21052# Provide generalized library-building support services. 21053# Written by Gordon Matzigkeit, 1996 21054 21055# Copyright (C) 2014 Free Software Foundation, Inc. 21056# This is free software; see the source for copying conditions. There is NO 21057# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21058 21059# GNU Libtool is free software; you can redistribute it and/or modify 21060# it under the terms of the GNU General Public License as published by 21061# the Free Software Foundation; either version 2 of of the License, or 21062# (at your option) any later version. 21063# 21064# As a special exception to the GNU General Public License, if you 21065# distribute this file as part of a program or library that is built 21066# using GNU Libtool, you may include this file under the same 21067# distribution terms that you use for the rest of that program. 21068# 21069# GNU Libtool is distributed in the hope that it will be useful, but 21070# WITHOUT ANY WARRANTY; without even the implied warranty of 21071# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21072# GNU General Public License for more details. 21073# 21074# You should have received a copy of the GNU General Public License 21075# along with this program. If not, see <http://www.gnu.org/licenses/>. 21076 21077 21078# The names of the tagged configurations supported by this script. 21079available_tags='' 21080 21081# Configured defaults for sys_lib_dlsearch_path munging. 21082: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21083 21084# ### BEGIN LIBTOOL CONFIG 21085 21086# Which release of libtool.m4 was used? 21087macro_version=$macro_version 21088macro_revision=$macro_revision 21089 21090# Whether or not to build shared libraries. 21091build_libtool_libs=$enable_shared 21092 21093# Whether or not to build static libraries. 21094build_old_libs=$enable_static 21095 21096# What type of objects to build. 21097pic_mode=$pic_mode 21098 21099# Whether or not to optimize for fast installation. 21100fast_install=$enable_fast_install 21101 21102# Shared archive member basename,for filename based shared library versioning on AIX. 21103shared_archive_member_spec=$shared_archive_member_spec 21104 21105# Shell to use when invoking shell scripts. 21106SHELL=$lt_SHELL 21107 21108# An echo program that protects backslashes. 21109ECHO=$lt_ECHO 21110 21111# The PATH separator for the build system. 21112PATH_SEPARATOR=$lt_PATH_SEPARATOR 21113 21114# The host system. 21115host_alias=$host_alias 21116host=$host 21117host_os=$host_os 21118 21119# The build system. 21120build_alias=$build_alias 21121build=$build 21122build_os=$build_os 21123 21124# A sed program that does not truncate output. 21125SED=$lt_SED 21126 21127# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21128Xsed="\$SED -e 1s/^X//" 21129 21130# A grep program that handles long lines. 21131GREP=$lt_GREP 21132 21133# An ERE matcher. 21134EGREP=$lt_EGREP 21135 21136# A literal string matcher. 21137FGREP=$lt_FGREP 21138 21139# A BSD- or MS-compatible name lister. 21140NM=$lt_NM 21141 21142# Whether we need soft or hard links. 21143LN_S=$lt_LN_S 21144 21145# What is the maximum length of a command? 21146max_cmd_len=$max_cmd_len 21147 21148# Object file suffix (normally "o"). 21149objext=$ac_objext 21150 21151# Executable file suffix (normally ""). 21152exeext=$exeext 21153 21154# whether the shell understands "unset". 21155lt_unset=$lt_unset 21156 21157# turn spaces into newlines. 21158SP2NL=$lt_lt_SP2NL 21159 21160# turn newlines into spaces. 21161NL2SP=$lt_lt_NL2SP 21162 21163# convert \$build file names to \$host format. 21164to_host_file_cmd=$lt_cv_to_host_file_cmd 21165 21166# convert \$build files to toolchain format. 21167to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21168 21169# An object symbol dumper. 21170OBJDUMP=$lt_OBJDUMP 21171 21172# Method to check whether dependent libraries are shared objects. 21173deplibs_check_method=$lt_deplibs_check_method 21174 21175# Command to use when deplibs_check_method = "file_magic". 21176file_magic_cmd=$lt_file_magic_cmd 21177 21178# How to find potential files when deplibs_check_method = "file_magic". 21179file_magic_glob=$lt_file_magic_glob 21180 21181# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21182want_nocaseglob=$lt_want_nocaseglob 21183 21184# DLL creation program. 21185DLLTOOL=$lt_DLLTOOL 21186 21187# Command to associate shared and link libraries. 21188sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21189 21190# The archiver. 21191AR=$lt_AR 21192 21193# Flags to create an archive. 21194AR_FLAGS=$lt_AR_FLAGS 21195 21196# How to feed a file listing to the archiver. 21197archiver_list_spec=$lt_archiver_list_spec 21198 21199# A symbol stripping program. 21200STRIP=$lt_STRIP 21201 21202# Commands used to install an old-style archive. 21203RANLIB=$lt_RANLIB 21204old_postinstall_cmds=$lt_old_postinstall_cmds 21205old_postuninstall_cmds=$lt_old_postuninstall_cmds 21206 21207# Whether to use a lock for old archive extraction. 21208lock_old_archive_extraction=$lock_old_archive_extraction 21209 21210# A C compiler. 21211LTCC=$lt_CC 21212 21213# LTCC compiler flags. 21214LTCFLAGS=$lt_CFLAGS 21215 21216# Take the output of nm and produce a listing of raw symbols and C names. 21217global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21218 21219# Transform the output of nm in a proper C declaration. 21220global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21221 21222# Transform the output of nm into a list of symbols to manually relocate. 21223global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21224 21225# Transform the output of nm in a C name address pair. 21226global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21227 21228# Transform the output of nm in a C name address pair when lib prefix is needed. 21229global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21230 21231# The name lister interface. 21232nm_interface=$lt_lt_cv_nm_interface 21233 21234# Specify filename containing input files for \$NM. 21235nm_file_list_spec=$lt_nm_file_list_spec 21236 21237# The root where to search for dependent libraries,and where our libraries should be installed. 21238lt_sysroot=$lt_sysroot 21239 21240# Command to truncate a binary pipe. 21241lt_truncate_bin=$lt_lt_cv_truncate_bin 21242 21243# The name of the directory that contains temporary libtool files. 21244objdir=$objdir 21245 21246# Used to examine libraries when file_magic_cmd begins with "file". 21247MAGIC_CMD=$MAGIC_CMD 21248 21249# Must we lock files when doing compilation? 21250need_locks=$lt_need_locks 21251 21252# Manifest tool. 21253MANIFEST_TOOL=$lt_MANIFEST_TOOL 21254 21255# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21256DSYMUTIL=$lt_DSYMUTIL 21257 21258# Tool to change global to local symbols on Mac OS X. 21259NMEDIT=$lt_NMEDIT 21260 21261# Tool to manipulate fat objects and archives on Mac OS X. 21262LIPO=$lt_LIPO 21263 21264# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21265OTOOL=$lt_OTOOL 21266 21267# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21268OTOOL64=$lt_OTOOL64 21269 21270# Old archive suffix (normally "a"). 21271libext=$libext 21272 21273# Shared library suffix (normally ".so"). 21274shrext_cmds=$lt_shrext_cmds 21275 21276# The commands to extract the exported symbol list from a shared archive. 21277extract_expsyms_cmds=$lt_extract_expsyms_cmds 21278 21279# Variables whose values should be saved in libtool wrapper scripts and 21280# restored at link time. 21281variables_saved_for_relink=$lt_variables_saved_for_relink 21282 21283# Do we need the "lib" prefix for modules? 21284need_lib_prefix=$need_lib_prefix 21285 21286# Do we need a version for libraries? 21287need_version=$need_version 21288 21289# Library versioning type. 21290version_type=$version_type 21291 21292# Shared library runtime path variable. 21293runpath_var=$runpath_var 21294 21295# Shared library path variable. 21296shlibpath_var=$shlibpath_var 21297 21298# Is shlibpath searched before the hard-coded library search path? 21299shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21300 21301# Format of library name prefix. 21302libname_spec=$lt_libname_spec 21303 21304# List of archive names. First name is the real one, the rest are links. 21305# The last name is the one that the linker finds with -lNAME 21306library_names_spec=$lt_library_names_spec 21307 21308# The coded name of the library, if different from the real name. 21309soname_spec=$lt_soname_spec 21310 21311# Permission mode override for installation of shared libraries. 21312install_override_mode=$lt_install_override_mode 21313 21314# Command to use after installation of a shared archive. 21315postinstall_cmds=$lt_postinstall_cmds 21316 21317# Command to use after uninstallation of a shared archive. 21318postuninstall_cmds=$lt_postuninstall_cmds 21319 21320# Commands used to finish a libtool library installation in a directory. 21321finish_cmds=$lt_finish_cmds 21322 21323# As "finish_cmds", except a single script fragment to be evaled but 21324# not shown. 21325finish_eval=$lt_finish_eval 21326 21327# Whether we should hardcode library paths into libraries. 21328hardcode_into_libs=$hardcode_into_libs 21329 21330# Compile-time system search path for libraries. 21331sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21332 21333# Detected run-time system search path for libraries. 21334sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21335 21336# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21337configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21338 21339# Whether dlopen is supported. 21340dlopen_support=$enable_dlopen 21341 21342# Whether dlopen of programs is supported. 21343dlopen_self=$enable_dlopen_self 21344 21345# Whether dlopen of statically linked programs is supported. 21346dlopen_self_static=$enable_dlopen_self_static 21347 21348# Commands to strip libraries. 21349old_striplib=$lt_old_striplib 21350striplib=$lt_striplib 21351 21352 21353# The linker used to build libraries. 21354LD=$lt_LD 21355 21356# How to create reloadable object files. 21357reload_flag=$lt_reload_flag 21358reload_cmds=$lt_reload_cmds 21359 21360# Commands used to build an old-style archive. 21361old_archive_cmds=$lt_old_archive_cmds 21362 21363# A language specific compiler. 21364CC=$lt_compiler 21365 21366# Is the compiler the GNU compiler? 21367with_gcc=$GCC 21368 21369# Compiler flag to turn off builtin functions. 21370no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21371 21372# Additional compiler flags for building library objects. 21373pic_flag=$lt_lt_prog_compiler_pic 21374 21375# How to pass a linker flag through the compiler. 21376wl=$lt_lt_prog_compiler_wl 21377 21378# Compiler flag to prevent dynamic linking. 21379link_static_flag=$lt_lt_prog_compiler_static 21380 21381# Does compiler simultaneously support -c and -o options? 21382compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21383 21384# Whether or not to add -lc for building shared libraries. 21385build_libtool_need_lc=$archive_cmds_need_lc 21386 21387# Whether or not to disallow shared libs when runtime libs are static. 21388allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21389 21390# Compiler flag to allow reflexive dlopens. 21391export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21392 21393# Compiler flag to generate shared objects directly from archives. 21394whole_archive_flag_spec=$lt_whole_archive_flag_spec 21395 21396# Whether the compiler copes with passing no objects directly. 21397compiler_needs_object=$lt_compiler_needs_object 21398 21399# Create an old-style archive from a shared archive. 21400old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21401 21402# Create a temporary old-style archive to link instead of a shared archive. 21403old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21404 21405# Commands used to build a shared archive. 21406archive_cmds=$lt_archive_cmds 21407archive_expsym_cmds=$lt_archive_expsym_cmds 21408 21409# Commands used to build a loadable module if different from building 21410# a shared archive. 21411module_cmds=$lt_module_cmds 21412module_expsym_cmds=$lt_module_expsym_cmds 21413 21414# Whether we are building with GNU ld or not. 21415with_gnu_ld=$lt_with_gnu_ld 21416 21417# Flag that allows shared libraries with undefined symbols to be built. 21418allow_undefined_flag=$lt_allow_undefined_flag 21419 21420# Flag that enforces no undefined symbols. 21421no_undefined_flag=$lt_no_undefined_flag 21422 21423# Flag to hardcode \$libdir into a binary during linking. 21424# This must work even if \$libdir does not exist 21425hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21426 21427# Whether we need a single "-rpath" flag with a separated argument. 21428hardcode_libdir_separator=$lt_hardcode_libdir_separator 21429 21430# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21431# DIR into the resulting binary. 21432hardcode_direct=$hardcode_direct 21433 21434# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21435# DIR into the resulting binary and the resulting library dependency is 21436# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21437# library is relocated. 21438hardcode_direct_absolute=$hardcode_direct_absolute 21439 21440# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21441# into the resulting binary. 21442hardcode_minus_L=$hardcode_minus_L 21443 21444# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21445# into the resulting binary. 21446hardcode_shlibpath_var=$hardcode_shlibpath_var 21447 21448# Set to "yes" if building a shared library automatically hardcodes DIR 21449# into the library and all subsequent libraries and executables linked 21450# against it. 21451hardcode_automatic=$hardcode_automatic 21452 21453# Set to yes if linker adds runtime paths of dependent libraries 21454# to runtime path list. 21455inherit_rpath=$inherit_rpath 21456 21457# Whether libtool must link a program against all its dependency libraries. 21458link_all_deplibs=$link_all_deplibs 21459 21460# Set to "yes" if exported symbols are required. 21461always_export_symbols=$always_export_symbols 21462 21463# The commands to list exported symbols. 21464export_symbols_cmds=$lt_export_symbols_cmds 21465 21466# Symbols that should not be listed in the preloaded symbols. 21467exclude_expsyms=$lt_exclude_expsyms 21468 21469# Symbols that must always be exported. 21470include_expsyms=$lt_include_expsyms 21471 21472# Commands necessary for linking programs (against libraries) with templates. 21473prelink_cmds=$lt_prelink_cmds 21474 21475# Commands necessary for finishing linking programs. 21476postlink_cmds=$lt_postlink_cmds 21477 21478# Specify filename containing input files. 21479file_list_spec=$lt_file_list_spec 21480 21481# How to hardcode a shared library path into an executable. 21482hardcode_action=$hardcode_action 21483 21484# ### END LIBTOOL CONFIG 21485 21486_LT_EOF 21487 21488 cat <<'_LT_EOF' >> "$cfgfile" 21489 21490# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21491 21492# func_munge_path_list VARIABLE PATH 21493# ----------------------------------- 21494# VARIABLE is name of variable containing _space_ separated list of 21495# directories to be munged by the contents of PATH, which is string 21496# having a format: 21497# "DIR[:DIR]:" 21498# string "DIR[ DIR]" will be prepended to VARIABLE 21499# ":DIR[:DIR]" 21500# string "DIR[ DIR]" will be appended to VARIABLE 21501# "DIRP[:DIRP]::[DIRA:]DIRA" 21502# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21503# "DIRA[ DIRA]" will be appended to VARIABLE 21504# "DIR[:DIR]" 21505# VARIABLE will be replaced by "DIR[ DIR]" 21506func_munge_path_list () 21507{ 21508 case x$2 in 21509 x) 21510 ;; 21511 *:) 21512 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21513 ;; 21514 x:*) 21515 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21516 ;; 21517 *::*) 21518 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21519 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21520 ;; 21521 *) 21522 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21523 ;; 21524 esac 21525} 21526 21527 21528# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21529func_cc_basename () 21530{ 21531 for cc_temp in $*""; do 21532 case $cc_temp in 21533 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21534 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21535 \-*) ;; 21536 *) break;; 21537 esac 21538 done 21539 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21540} 21541 21542 21543# ### END FUNCTIONS SHARED WITH CONFIGURE 21544 21545_LT_EOF 21546 21547 case $host_os in 21548 aix3*) 21549 cat <<\_LT_EOF >> "$cfgfile" 21550# AIX sometimes has problems with the GCC collect2 program. For some 21551# reason, if we set the COLLECT_NAMES environment variable, the problems 21552# vanish in a puff of smoke. 21553if test set != "${COLLECT_NAMES+set}"; then 21554 COLLECT_NAMES= 21555 export COLLECT_NAMES 21556fi 21557_LT_EOF 21558 ;; 21559 esac 21560 21561 21562 21563ltmain=$ac_aux_dir/ltmain.sh 21564 21565 21566 # We use sed instead of cat because bash on DJGPP gets confused if 21567 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21568 # text mode, it properly converts lines to CR/LF. This bash problem 21569 # is reportedly fixed, but why not run on old versions too? 21570 sed '$q' "$ltmain" >> "$cfgfile" \ 21571 || (rm -f "$cfgfile"; exit 1) 21572 21573 mv -f "$cfgfile" "$ofile" || 21574 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21575 chmod +x "$ofile" 21576 21577 ;; 21578 "disable-rpath":C) 21579 sed < libtool > libtool-2 \ 21580 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 21581 mv libtool-2 libtool 21582 chmod 755 libtool 21583 libtool="./libtool" 21584 ;; 21585 21586 esac 21587done # for ac_tag 21588 21589 21590as_fn_exit 0 21591_ACEOF 21592ac_clean_files=$ac_clean_files_save 21593 21594test $ac_write_fail = 0 || 21595 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21596 21597 21598# configure is writing to config.log, and then calls config.status. 21599# config.status does its own redirection, appending to config.log. 21600# Unfortunately, on DOS this fails, as config.log is still kept open 21601# by configure, so config.status won't be able to write to it; its 21602# output is simply discarded. So we exec the FD to /dev/null, 21603# effectively closing config.log, so it can be properly (re)opened and 21604# appended to by config.status. When coming back to configure, we 21605# need to make the FD available again. 21606if test "$no_create" != yes; then 21607 ac_cs_success=: 21608 ac_config_status_args= 21609 test "$silent" = yes && 21610 ac_config_status_args="$ac_config_status_args --quiet" 21611 exec 5>/dev/null 21612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21613 exec 5>>config.log 21614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21615 # would make configure fail if this is the last instruction. 21616 $ac_cs_success || as_fn_exit 1 21617fi 21618if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21620printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21621fi 21622 21623 21624echo "copying header files" 21625 21626for file in $srcdir/ldns//*.h; do 21627 sh $srcdir/install-sh -m 644 $file ldns/ 21628done 21629 21630 21631 21632 21633