1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for ldns 1.9.2. 4# 5# Report bugs to <dns-team@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: dns-team@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.9.2' 625PACKAGE_STRING='ldns 1.9.2' 626PACKAGE_BUGREPORT='dns-team@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_PLATFORM_SITE_PKG 715PYTHON_SITE_PKG 716PYTHON_LIBS 717PYTHON_CPPFLAGS 718PYTHON 719PYTHON_VERSION 720UNINSTALL_CONFIG_MANPAGE 721UNINSTALL_CONFIG 722INSTALL_CONFIG_MANPAGE 723INSTALL_CONFIG 724LINT_EXAMPLES 725CLEAN_EXAMPLES 726UNINSTALL_EXAMPLES 727INSTALL_EXAMPLES 728EXAMPLES 729LINT_DRILL 730CLEAN_DRILL 731UNINSTALL_DRILL 732INSTALL_DRILL 733DRILL 734doxygen 735LINTFLAGS 736SET_MAKE 737DEPFLAG 738LT_SYS_LIBRARY_PATH 739OTOOL64 740OTOOL 741LIPO 742NMEDIT 743DSYMUTIL 744MANIFEST_TOOL 745AWK 746RANLIB 747STRIP 748ac_ct_AR 749AR 750DLLTOOL 751OBJDUMP 752FILECMD 753LN_S 754NM 755ac_ct_DUMPBIN 756DUMPBIN 757LD 758FGREP 759EGREP 760GREP 761SED 762host_os 763host_vendor 764host_cpu 765host 766build_os 767build_vendor 768build_cpu 769build 770LIBTOOL 771OBJEXT 772EXEEXT 773ac_ct_CC 774CPPFLAGS 775LDFLAGS 776CFLAGS 777CC 778VERSION_INFO 779LDNS_VERSION_MICRO 780LDNS_VERSION_MINOR 781LDNS_VERSION_MAJOR 782target_alias 783host_alias 784build_alias 785LIBS 786ECHO_T 787ECHO_N 788ECHO_C 789DEFS 790mandir 791localedir 792libdir 793psdir 794pdfdir 795dvidir 796htmldir 797infodir 798docdir 799oldincludedir 800includedir 801localstatedir 802sharedstatedir 803sysconfdir 804datadir 805datarootdir 806libexecdir 807sbindir 808bindir 809program_transform_name 810prefix 811exec_prefix 812PACKAGE_URL 813PACKAGE_BUGREPORT 814PACKAGE_STRING 815PACKAGE_VERSION 816PACKAGE_TARNAME 817PACKAGE_NAME 818PATH_SEPARATOR 819SHELL' 820ac_subst_files='' 821ac_user_opts=' 822enable_option_checking 823enable_shared 824enable_static 825with_pic 826enable_fast_install 827with_aix_soname 828with_gnu_ld 829with_sysroot 830enable_libtool_lock 831with_drill 832with_examples 833enable_ldns_config 834enable_stderr_msgs 835enable_poll 836with_pyldns 837with_pyldnsx 838with_p5_dns_ldns 839with_ssl 840enable_sha2 841enable_gost 842enable_gost_anyway 843enable_ecdsa 844enable_dsa 845enable_ed25519 846enable_ed448 847enable_dane 848enable_dane_verify 849enable_dane_ta_usage 850enable_full_dane 851enable_no_dane_ta_usage 852enable_no_dane_verify 853enable_draft_rrtypes 854enable_rrtype_ninfo 855enable_rrtype_rkey 856enable_rrtype_openpgpkey 857enable_rrtype_ta 858enable_rrtype_avc 859enable_rrtype_doa 860enable_rrtype_amtrelay 861enable_rrtype_svcb_https 862enable_rrtype_resinfo 863enable_rrtype_dsync 864enable_rrtypes_cla_ipn 865enable_rrtypes_hhit_brid 866enable_rpath 867with_xcode_sdk 868with_trust_anchor 869with_ca_file 870with_ca_path 871' 872 ac_precious_vars='build_alias 873host_alias 874target_alias 875CC 876CFLAGS 877LDFLAGS 878LIBS 879CPPFLAGS 880LT_SYS_LIBRARY_PATH 881PYTHON_VERSION' 882 883 884# Initialize some variables set by options. 885ac_init_help= 886ac_init_version=false 887ac_unrecognized_opts= 888ac_unrecognized_sep= 889# The variables have the same names as the options, with 890# dashes changed to underlines. 891cache_file=/dev/null 892exec_prefix=NONE 893no_create= 894no_recursion= 895prefix=NONE 896program_prefix=NONE 897program_suffix=NONE 898program_transform_name=s,x,x, 899silent= 900site= 901srcdir= 902verbose= 903x_includes=NONE 904x_libraries=NONE 905 906# Installation directory options. 907# These are left unexpanded so users can "make install exec_prefix=/foo" 908# and all the variables that are supposed to be based on exec_prefix 909# by default will actually change. 910# Use braces instead of parens because sh, perl, etc. also accept them. 911# (The list follows the same order as the GNU Coding Standards.) 912bindir='${exec_prefix}/bin' 913sbindir='${exec_prefix}/sbin' 914libexecdir='${exec_prefix}/libexec' 915datarootdir='${prefix}/share' 916datadir='${datarootdir}' 917sysconfdir='${prefix}/etc' 918sharedstatedir='${prefix}/com' 919localstatedir='${prefix}/var' 920includedir='${prefix}/include' 921oldincludedir='/usr/include' 922docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 923infodir='${datarootdir}/info' 924htmldir='${docdir}' 925dvidir='${docdir}' 926pdfdir='${docdir}' 927psdir='${docdir}' 928libdir='${exec_prefix}/lib' 929localedir='${datarootdir}/locale' 930mandir='${datarootdir}/man' 931 932ac_prev= 933ac_dashdash= 934for ac_option 935do 936 # If the previous option needs an argument, assign it. 937 if test -n "$ac_prev"; then 938 eval $ac_prev=\$ac_option 939 ac_prev= 940 continue 941 fi 942 943 case $ac_option in 944 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 945 *=) ac_optarg= ;; 946 *) ac_optarg=yes ;; 947 esac 948 949 case $ac_dashdash$ac_option in 950 --) 951 ac_dashdash=yes ;; 952 953 -bindir | --bindir | --bindi | --bind | --bin | --bi) 954 ac_prev=bindir ;; 955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 956 bindir=$ac_optarg ;; 957 958 -build | --build | --buil | --bui | --bu) 959 ac_prev=build_alias ;; 960 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 961 build_alias=$ac_optarg ;; 962 963 -cache-file | --cache-file | --cache-fil | --cache-fi \ 964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 965 ac_prev=cache_file ;; 966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 968 cache_file=$ac_optarg ;; 969 970 --config-cache | -C) 971 cache_file=config.cache ;; 972 973 -datadir | --datadir | --datadi | --datad) 974 ac_prev=datadir ;; 975 -datadir=* | --datadir=* | --datadi=* | --datad=*) 976 datadir=$ac_optarg ;; 977 978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 979 | --dataroo | --dataro | --datar) 980 ac_prev=datarootdir ;; 981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 983 datarootdir=$ac_optarg ;; 984 985 -disable-* | --disable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error $? "invalid feature name: \`$ac_useropt'" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=no ;; 1000 1001 -docdir | --docdir | --docdi | --doc | --do) 1002 ac_prev=docdir ;; 1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1004 docdir=$ac_optarg ;; 1005 1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1007 ac_prev=dvidir ;; 1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1009 dvidir=$ac_optarg ;; 1010 1011 -enable-* | --enable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=\$ac_optarg ;; 1026 1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1029 | --exec | --exe | --ex) 1030 ac_prev=exec_prefix ;; 1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1033 | --exec=* | --exe=* | --ex=*) 1034 exec_prefix=$ac_optarg ;; 1035 1036 -gas | --gas | --ga | --g) 1037 # Obsolete; use --with-gas. 1038 with_gas=yes ;; 1039 1040 -help | --help | --hel | --he | -h) 1041 ac_init_help=long ;; 1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1043 ac_init_help=recursive ;; 1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1045 ac_init_help=short ;; 1046 1047 -host | --host | --hos | --ho) 1048 ac_prev=host_alias ;; 1049 -host=* | --host=* | --hos=* | --ho=*) 1050 host_alias=$ac_optarg ;; 1051 1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1053 ac_prev=htmldir ;; 1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1055 | --ht=*) 1056 htmldir=$ac_optarg ;; 1057 1058 -includedir | --includedir | --includedi | --included | --include \ 1059 | --includ | --inclu | --incl | --inc) 1060 ac_prev=includedir ;; 1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1062 | --includ=* | --inclu=* | --incl=* | --inc=*) 1063 includedir=$ac_optarg ;; 1064 1065 -infodir | --infodir | --infodi | --infod | --info | --inf) 1066 ac_prev=infodir ;; 1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1068 infodir=$ac_optarg ;; 1069 1070 -libdir | --libdir | --libdi | --libd) 1071 ac_prev=libdir ;; 1072 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1073 libdir=$ac_optarg ;; 1074 1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1076 | --libexe | --libex | --libe) 1077 ac_prev=libexecdir ;; 1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1079 | --libexe=* | --libex=* | --libe=*) 1080 libexecdir=$ac_optarg ;; 1081 1082 -localedir | --localedir | --localedi | --localed | --locale) 1083 ac_prev=localedir ;; 1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1085 localedir=$ac_optarg ;; 1086 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1088 | --localstate | --localstat | --localsta | --localst | --locals) 1089 ac_prev=localstatedir ;; 1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1092 localstatedir=$ac_optarg ;; 1093 1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1095 ac_prev=mandir ;; 1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1097 mandir=$ac_optarg ;; 1098 1099 -nfp | --nfp | --nf) 1100 # Obsolete; use --without-fp. 1101 with_fp=no ;; 1102 1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1104 | --no-cr | --no-c | -n) 1105 no_create=yes ;; 1106 1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1109 no_recursion=yes ;; 1110 1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1113 | --oldin | --oldi | --old | --ol | --o) 1114 ac_prev=oldincludedir ;; 1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1118 oldincludedir=$ac_optarg ;; 1119 1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1121 ac_prev=prefix ;; 1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1123 prefix=$ac_optarg ;; 1124 1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1126 | --program-pre | --program-pr | --program-p) 1127 ac_prev=program_prefix ;; 1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1130 program_prefix=$ac_optarg ;; 1131 1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1133 | --program-suf | --program-su | --program-s) 1134 ac_prev=program_suffix ;; 1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1137 program_suffix=$ac_optarg ;; 1138 1139 -program-transform-name | --program-transform-name \ 1140 | --program-transform-nam | --program-transform-na \ 1141 | --program-transform-n | --program-transform- \ 1142 | --program-transform | --program-transfor \ 1143 | --program-transfo | --program-transf \ 1144 | --program-trans | --program-tran \ 1145 | --progr-tra | --program-tr | --program-t) 1146 ac_prev=program_transform_name ;; 1147 -program-transform-name=* | --program-transform-name=* \ 1148 | --program-transform-nam=* | --program-transform-na=* \ 1149 | --program-transform-n=* | --program-transform-=* \ 1150 | --program-transform=* | --program-transfor=* \ 1151 | --program-transfo=* | --program-transf=* \ 1152 | --program-trans=* | --program-tran=* \ 1153 | --progr-tra=* | --program-tr=* | --program-t=*) 1154 program_transform_name=$ac_optarg ;; 1155 1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1157 ac_prev=pdfdir ;; 1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1159 pdfdir=$ac_optarg ;; 1160 1161 -psdir | --psdir | --psdi | --psd | --ps) 1162 ac_prev=psdir ;; 1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1164 psdir=$ac_optarg ;; 1165 1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1167 | -silent | --silent | --silen | --sile | --sil) 1168 silent=yes ;; 1169 1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1171 ac_prev=sbindir ;; 1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1173 | --sbi=* | --sb=*) 1174 sbindir=$ac_optarg ;; 1175 1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1178 | --sharedst | --shareds | --shared | --share | --shar \ 1179 | --sha | --sh) 1180 ac_prev=sharedstatedir ;; 1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1184 | --sha=* | --sh=*) 1185 sharedstatedir=$ac_optarg ;; 1186 1187 -site | --site | --sit) 1188 ac_prev=site ;; 1189 -site=* | --site=* | --sit=*) 1190 site=$ac_optarg ;; 1191 1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1193 ac_prev=srcdir ;; 1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1195 srcdir=$ac_optarg ;; 1196 1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1198 | --syscon | --sysco | --sysc | --sys | --sy) 1199 ac_prev=sysconfdir ;; 1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1202 sysconfdir=$ac_optarg ;; 1203 1204 -target | --target | --targe | --targ | --tar | --ta | --t) 1205 ac_prev=target_alias ;; 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1207 target_alias=$ac_optarg ;; 1208 1209 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1210 verbose=yes ;; 1211 1212 -version | --version | --versio | --versi | --vers | -V) 1213 ac_init_version=: ;; 1214 1215 -with-* | --with-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error $? "invalid package name: \`$ac_useropt'" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=\$ac_optarg ;; 1230 1231 -without-* | --without-*) 1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1233 # Reject names that are not valid shell variable names. 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1235 as_fn_error $? "invalid package name: \`$ac_useropt'" 1236 ac_useropt_orig=$ac_useropt 1237 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1238 case $ac_user_opts in 1239 *" 1240"with_$ac_useropt" 1241"*) ;; 1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1243 ac_unrecognized_sep=', ';; 1244 esac 1245 eval with_$ac_useropt=no ;; 1246 1247 --x) 1248 # Obsolete; use --with-x. 1249 with_x=yes ;; 1250 1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1252 | --x-incl | --x-inc | --x-in | --x-i) 1253 ac_prev=x_includes ;; 1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1256 x_includes=$ac_optarg ;; 1257 1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1260 ac_prev=x_libraries ;; 1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1263 x_libraries=$ac_optarg ;; 1264 1265 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1266Try \`$0 --help' for more information" 1267 ;; 1268 1269 *=*) 1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1271 # Reject names that are not valid shell variable names. 1272 case $ac_envvar in #( 1273 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1275 esac 1276 eval $ac_envvar=\$ac_optarg 1277 export $ac_envvar ;; 1278 1279 *) 1280 # FIXME: should be removed in autoconf 3.0. 1281 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1283 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1285 ;; 1286 1287 esac 1288done 1289 1290if test -n "$ac_prev"; then 1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1292 as_fn_error $? "missing argument to $ac_option" 1293fi 1294 1295if test -n "$ac_unrecognized_opts"; then 1296 case $enable_option_checking in 1297 no) ;; 1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1299 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1300 esac 1301fi 1302 1303# Check all directory arguments for consistency. 1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1305 datadir sysconfdir sharedstatedir localstatedir includedir \ 1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1307 libdir localedir mandir 1308do 1309 eval ac_val=\$$ac_var 1310 # Remove trailing slashes. 1311 case $ac_val in 1312 */ ) 1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1314 eval $ac_var=\$ac_val;; 1315 esac 1316 # Be sure to have absolute directory names. 1317 case $ac_val in 1318 [\\/$]* | ?:[\\/]* ) continue;; 1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1320 esac 1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1322done 1323 1324# There might be people who depend on the old broken behavior: `$host' 1325# used to hold the argument of --host etc. 1326# FIXME: To remove some day. 1327build=$build_alias 1328host=$host_alias 1329target=$target_alias 1330 1331# FIXME: To remove some day. 1332if test "x$host_alias" != x; then 1333 if test "x$build_alias" = x; then 1334 cross_compiling=maybe 1335 elif test "x$build_alias" != "x$host_alias"; then 1336 cross_compiling=yes 1337 fi 1338fi 1339 1340ac_tool_prefix= 1341test -n "$host_alias" && ac_tool_prefix=$host_alias- 1342 1343test "$silent" = yes && exec 6>/dev/null 1344 1345 1346ac_pwd=`pwd` && test -n "$ac_pwd" && 1347ac_ls_di=`ls -di .` && 1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1349 as_fn_error $? "working directory cannot be determined" 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1351 as_fn_error $? "pwd does not report name of working directory" 1352 1353 1354# Find the source files, if location was not specified. 1355if test -z "$srcdir"; then 1356 ac_srcdir_defaulted=yes 1357 # Try the directory containing this script, then the parent directory. 1358 ac_confdir=`$as_dirname -- "$as_myself" || 1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1360 X"$as_myself" : 'X\(//\)[^/]' \| \ 1361 X"$as_myself" : 'X\(//\)$' \| \ 1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1363printf "%s\n" X"$as_myself" | 1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\/\)[^/].*/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\/\)$/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\).*/{ 1377 s//\1/ 1378 q 1379 } 1380 s/.*/./; q'` 1381 srcdir=$ac_confdir 1382 if test ! -r "$srcdir/$ac_unique_file"; then 1383 srcdir=.. 1384 fi 1385else 1386 ac_srcdir_defaulted=no 1387fi 1388if test ! -r "$srcdir/$ac_unique_file"; then 1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1391fi 1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1393ac_abs_confdir=`( 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1395 pwd)` 1396# When building in place, set srcdir=. 1397if test "$ac_abs_confdir" = "$ac_pwd"; then 1398 srcdir=. 1399fi 1400# Remove unnecessary trailing slashes from srcdir. 1401# Double slashes in file names in object file debugging info 1402# mess up M-x gdb in Emacs. 1403case $srcdir in 1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1405esac 1406for ac_var in $ac_precious_vars; do 1407 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1408 eval ac_env_${ac_var}_value=\$${ac_var} 1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1411done 1412 1413# 1414# Report the --help message. 1415# 1416if test "$ac_init_help" = "long"; then 1417 # Omit some internal or obsolete options to make the list less imposing. 1418 # This message is too long to be a string in the A/UX 3.1 sh. 1419 cat <<_ACEOF 1420\`configure' configures ldns 1.9.2 to adapt to many kinds of systems. 1421 1422Usage: $0 [OPTION]... [VAR=VALUE]... 1423 1424To assign environment variables (e.g., CC, CFLAGS...), specify them as 1425VAR=VALUE. See below for descriptions of some of the useful variables. 1426 1427Defaults for the options are specified in brackets. 1428 1429Configuration: 1430 -h, --help display this help and exit 1431 --help=short display options specific to this package 1432 --help=recursive display the short help of all the included packages 1433 -V, --version display version information and exit 1434 -q, --quiet, --silent do not print \`checking ...' messages 1435 --cache-file=FILE cache test results in FILE [disabled] 1436 -C, --config-cache alias for \`--cache-file=config.cache' 1437 -n, --no-create do not create output files 1438 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1439 1440Installation directories: 1441 --prefix=PREFIX install architecture-independent files in PREFIX 1442 [$ac_default_prefix] 1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1444 [PREFIX] 1445 1446By default, \`make install' will install all the files in 1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1448an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1449for instance \`--prefix=\$HOME'. 1450 1451For better control, use the options below. 1452 1453Fine tuning of the installation directories: 1454 --bindir=DIR user executables [EPREFIX/bin] 1455 --sbindir=DIR system admin executables [EPREFIX/sbin] 1456 --libexecdir=DIR program executables [EPREFIX/libexec] 1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1460 --libdir=DIR object code libraries [EPREFIX/lib] 1461 --includedir=DIR C header files [PREFIX/include] 1462 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1465 --infodir=DIR info documentation [DATAROOTDIR/info] 1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1467 --mandir=DIR man documentation [DATAROOTDIR/man] 1468 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns] 1469 --htmldir=DIR html documentation [DOCDIR] 1470 --dvidir=DIR dvi documentation [DOCDIR] 1471 --pdfdir=DIR pdf documentation [DOCDIR] 1472 --psdir=DIR ps documentation [DOCDIR] 1473_ACEOF 1474 1475 cat <<\_ACEOF 1476 1477System types: 1478 --build=BUILD configure for building on BUILD [guessed] 1479 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1480_ACEOF 1481fi 1482 1483if test -n "$ac_init_help"; then 1484 case $ac_init_help in 1485 short | recursive ) echo "Configuration of ldns 1.9.2:";; 1486 esac 1487 cat <<\_ACEOF 1488 1489Optional Features: 1490 --disable-option-checking ignore unrecognized --enable/--with options 1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1493 --enable-shared[=PKGS] build shared libraries [default=yes] 1494 --enable-static[=PKGS] build static libraries [default=yes] 1495 --enable-fast-install[=PKGS] 1496 optimize for fast installation [default=yes] 1497 --disable-libtool-lock avoid locking (might break parallel builds) 1498 --disable-ldns-config disable installation of ldns-config 1499 (default=enabled) 1500 --enable-stderr-msgs Enable printing to stderr (default=disabled) 1501 --enable-poll This platform supports poll(7) 1502 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1503 --disable-gost Disable GOST support 1504 --enable-gost-anyway Enable GOST even without a GOST engine installed 1505 --disable-ecdsa Disable ECDSA support 1506 --disable-dsa Disable DSA support 1507 --disable-ed25519 Disable (experimental) ED25519 support. Default is 1508 detect 1509 --disable-ed448 Disable (experimental) ED448 support. Default is 1510 detect 1511 --disable-dane Disable DANE support 1512 --disable-dane-verify Disable DANE verify support 1513 --disable-dane-ta-usage Disable DANE-TA usage type support 1514 1515 --enable-draft-rrtypes Enable all draft RR types. 1516 --enable-rrtype-ninfo Enable draft RR type ninfo. 1517 --enable-rrtype-rkey Enable draft RR type rkey. 1518 --disable-rrtype-openpgpkey 1519 Disable openpgpkey RR type. 1520 --enable-rrtype-ta Enable draft RR type ta. 1521 --enable-rrtype-avc Enable draft RR type avc. 1522 --enable-rrtype-doa Enable draft RR type DOA. 1523 --disable-rrtype-amtrelay 1524 Disable RR type AMTRELAY. 1525 --disable-rrtype-svcb-https 1526 Disable RR types SVCB and HTTPS. 1527 --disable-rrtype-resinfo 1528 Disable RR type RESINFO. 1529 --disable-rrtype-dsync Disable RR type DSYNC. 1530 --enable-rrtypes-cla-ipn 1531 Enable draft RR types CLA and IPN. 1532 --enable-rrtypes-hhit-brid 1533 Enable draft RR types HHIT and BRID. 1534 --disable-rpath disable hardcoded rpath (default=enabled) 1535 1536Optional Packages: 1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1539 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1540 both] 1541 --with-aix-soname=aix|svr4|both 1542 shared library versioning (aka "SONAME") variant to 1543 provide on AIX, [default=aix]. 1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1545 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1546 compiler's sysroot if not specified). 1547 --with-drill Also build drill. 1548 --with-examples Also build examples. 1549 --with-pyldns generate python library, or --without-pyldns to 1550 disable Python support. 1551 --without-pyldnsx Do not install the ldnsx python module, or 1552 --with-pyldnsx to install it. 1553 --with-p5-dns-ldns generate DNS::LDNS perl bindings 1554 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1555 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1556 /usr or specify like /usr/include/openssl11) 1557 --with-xcode-sdk Set xcode SDK version. Default is autodetect 1558 --with-trust-anchor=KEYFILE 1559 Default location of the trust anchor file for drill 1560 and ldns-dane. [default=SYSCONFDIR/unbound/root.key] 1561 --with-ca-file=CAFILE File containing CA certificates for ldns-dane 1562 --with-ca-path=CAPATH Directory containing CA certificate files for 1563 ldns-dane 1564 1565Some influential environment variables: 1566 CC C compiler command 1567 CFLAGS C compiler flags 1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1569 nonstandard directory <lib dir> 1570 LIBS libraries to pass to the linker, e.g. -l<library> 1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1572 you have headers in a nonstandard directory <include dir> 1573 LT_SYS_LIBRARY_PATH 1574 User-defined run-time library search path. 1575 PYTHON_VERSION 1576 The installed Python version to use, for example '2.3'. This 1577 string will be appended to the Python interpreter canonical 1578 name. 1579 1580Use these variables to override the choices made by `configure' or to help 1581it to find libraries and programs with nonstandard names/locations. 1582 1583Report bugs to <dns-team@nlnetlabs.nl>. 1584_ACEOF 1585ac_status=$? 1586fi 1587 1588if test "$ac_init_help" = "recursive"; then 1589 # If there are subdirs, report their specific --help. 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1591 test -d "$ac_dir" || 1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1593 continue 1594 ac_builddir=. 1595 1596case "$ac_dir" in 1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1598*) 1599 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1600 # A ".." for each directory in $ac_dir_suffix. 1601 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1602 case $ac_top_builddir_sub in 1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1605 esac ;; 1606esac 1607ac_abs_top_builddir=$ac_pwd 1608ac_abs_builddir=$ac_pwd$ac_dir_suffix 1609# for backward compatibility: 1610ac_top_builddir=$ac_top_build_prefix 1611 1612case $srcdir in 1613 .) # We are building in place. 1614 ac_srcdir=. 1615 ac_top_srcdir=$ac_top_builddir_sub 1616 ac_abs_top_srcdir=$ac_pwd ;; 1617 [\\/]* | ?:[\\/]* ) # Absolute name. 1618 ac_srcdir=$srcdir$ac_dir_suffix; 1619 ac_top_srcdir=$srcdir 1620 ac_abs_top_srcdir=$srcdir ;; 1621 *) # Relative name. 1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1623 ac_top_srcdir=$ac_top_build_prefix$srcdir 1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1625esac 1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1627 1628 cd "$ac_dir" || { ac_status=$?; continue; } 1629 # Check for configure.gnu first; this name is used for a wrapper for 1630 # Metaconfig's "Configure" on case-insensitive file systems. 1631 if test -f "$ac_srcdir/configure.gnu"; then 1632 echo && 1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1634 elif test -f "$ac_srcdir/configure"; then 1635 echo && 1636 $SHELL "$ac_srcdir/configure" --help=recursive 1637 else 1638 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1639 fi || ac_status=$? 1640 cd "$ac_pwd" || { ac_status=$?; break; } 1641 done 1642fi 1643 1644test -n "$ac_init_help" && exit $ac_status 1645if $ac_init_version; then 1646 cat <<\_ACEOF 1647ldns configure 1.9.2 1648generated by GNU Autoconf 2.71 1649 1650Copyright (C) 2021 Free Software Foundation, Inc. 1651This configure script is free software; the Free Software Foundation 1652gives unlimited permission to copy, distribute and modify it. 1653_ACEOF 1654 exit 1655fi 1656 1657## ------------------------ ## 1658## Autoconf initialization. ## 1659## ------------------------ ## 1660 1661# ac_fn_c_try_compile LINENO 1662# -------------------------- 1663# Try to compile conftest.$ac_ext, and return whether this succeeded. 1664ac_fn_c_try_compile () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 rm -f conftest.$ac_objext conftest.beam 1668 if { { ac_try="$ac_compile" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674printf "%s\n" "$ac_try_echo"; } >&5 1675 (eval "$ac_compile") 2>conftest.err 1676 ac_status=$? 1677 if test -s conftest.err; then 1678 grep -v '^ *+' conftest.err >conftest.er1 1679 cat conftest.er1 >&5 1680 mv -f conftest.er1 conftest.err 1681 fi 1682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; } && { 1684 test -z "$ac_c_werror_flag" || 1685 test ! -s conftest.err 1686 } && test -s conftest.$ac_objext 1687then : 1688 ac_retval=0 1689else $as_nop 1690 printf "%s\n" "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 1694fi 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1696 as_fn_set_status $ac_retval 1697 1698} # ac_fn_c_try_compile 1699 1700# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1701# ------------------------------------------------------- 1702# Tests whether HEADER exists and can be compiled using the include files in 1703# INCLUDES, setting the cache variable VAR accordingly. 1704ac_fn_c_check_header_compile () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1708printf %s "checking for $2... " >&6; } 1709if eval test \${$3+y} 1710then : 1711 printf %s "(cached) " >&6 1712else $as_nop 1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1714/* end confdefs.h. */ 1715$4 1716#include <$2> 1717_ACEOF 1718if ac_fn_c_try_compile "$LINENO" 1719then : 1720 eval "$3=yes" 1721else $as_nop 1722 eval "$3=no" 1723fi 1724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1725fi 1726eval ac_res=\$$3 1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1728printf "%s\n" "$ac_res" >&6; } 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 1731} # ac_fn_c_check_header_compile 1732 1733# ac_fn_c_try_link LINENO 1734# ----------------------- 1735# Try to link conftest.$ac_ext, and return whether this succeeded. 1736ac_fn_c_try_link () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1740 if { { ac_try="$ac_link" 1741case "(($ac_try" in 1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1743 *) ac_try_echo=$ac_try;; 1744esac 1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1746printf "%s\n" "$ac_try_echo"; } >&5 1747 (eval "$ac_link") 2>conftest.err 1748 ac_status=$? 1749 if test -s conftest.err; then 1750 grep -v '^ *+' conftest.err >conftest.er1 1751 cat conftest.er1 >&5 1752 mv -f conftest.er1 conftest.err 1753 fi 1754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1755 test $ac_status = 0; } && { 1756 test -z "$ac_c_werror_flag" || 1757 test ! -s conftest.err 1758 } && test -s conftest$ac_exeext && { 1759 test "$cross_compiling" = yes || 1760 test -x conftest$ac_exeext 1761 } 1762then : 1763 ac_retval=0 1764else $as_nop 1765 printf "%s\n" "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=1 1769fi 1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1772 # interfere with the next link command; also delete a directory that is 1773 # left behind by Apple's compiler. We do this before executing the actions. 1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778} # ac_fn_c_try_link 1779 1780# ac_fn_c_check_func LINENO FUNC VAR 1781# ---------------------------------- 1782# Tests whether FUNC exists, setting the cache variable VAR accordingly 1783ac_fn_c_check_func () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787printf %s "checking for $2... " >&6; } 1788if eval test \${$3+y} 1789then : 1790 printf %s "(cached) " >&6 1791else $as_nop 1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1793/* end confdefs.h. */ 1794/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1796#define $2 innocuous_$2 1797 1798/* System header to define __stub macros and hopefully few prototypes, 1799 which can conflict with char $2 (); below. */ 1800 1801#include <limits.h> 1802#undef $2 1803 1804/* Override any GCC internal prototype to avoid an error. 1805 Use char because int might match the return type of a GCC 1806 builtin and then its argument prototype would still apply. */ 1807#ifdef __cplusplus 1808extern "C" 1809#endif 1810char $2 (); 1811/* The GNU C library defines this for functions which it implements 1812 to always fail with ENOSYS. Some functions are actually named 1813 something starting with __ and the normal name is an alias. */ 1814#if defined __stub_$2 || defined __stub___$2 1815choke me 1816#endif 1817 1818int 1819main (void) 1820{ 1821return $2 (); 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826if ac_fn_c_try_link "$LINENO" 1827then : 1828 eval "$3=yes" 1829else $as_nop 1830 eval "$3=no" 1831fi 1832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1833 conftest$ac_exeext conftest.$ac_ext 1834fi 1835eval ac_res=\$$3 1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1837printf "%s\n" "$ac_res" >&6; } 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 1840} # ac_fn_c_check_func 1841 1842# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1843# ------------------------------------------- 1844# Tests whether TYPE exists after having included INCLUDES, setting cache 1845# variable VAR accordingly. 1846ac_fn_c_check_type () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1850printf %s "checking for $2... " >&6; } 1851if eval test \${$3+y} 1852then : 1853 printf %s "(cached) " >&6 1854else $as_nop 1855 eval "$3=no" 1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1857/* end confdefs.h. */ 1858$4 1859int 1860main (void) 1861{ 1862if (sizeof ($2)) 1863 return 0; 1864 ; 1865 return 0; 1866} 1867_ACEOF 1868if ac_fn_c_try_compile "$LINENO" 1869then : 1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1871/* end confdefs.h. */ 1872$4 1873int 1874main (void) 1875{ 1876if (sizeof (($2))) 1877 return 0; 1878 ; 1879 return 0; 1880} 1881_ACEOF 1882if ac_fn_c_try_compile "$LINENO" 1883then : 1884 1885else $as_nop 1886 eval "$3=yes" 1887fi 1888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1889fi 1890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894printf "%s\n" "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_type 1898 1899# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1900# ------------------------------------------------------------------ 1901# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1902# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1903ac_fn_check_decl () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 as_decl_name=`echo $2|sed 's/ *(.*//'` 1907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1908printf %s "checking whether $as_decl_name is declared... " >&6; } 1909if eval test \${$3+y} 1910then : 1911 printf %s "(cached) " >&6 1912else $as_nop 1913 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1914 eval ac_save_FLAGS=\$$6 1915 as_fn_append $6 " $5" 1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1917/* end confdefs.h. */ 1918$4 1919int 1920main (void) 1921{ 1922#ifndef $as_decl_name 1923#ifdef __cplusplus 1924 (void) $as_decl_use; 1925#else 1926 (void) $as_decl_name; 1927#endif 1928#endif 1929 1930 ; 1931 return 0; 1932} 1933_ACEOF 1934if ac_fn_c_try_compile "$LINENO" 1935then : 1936 eval "$3=yes" 1937else $as_nop 1938 eval "$3=no" 1939fi 1940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1941 eval $6=\$ac_save_FLAGS 1942 1943fi 1944eval ac_res=\$$3 1945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1946printf "%s\n" "$ac_res" >&6; } 1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1948 1949} # ac_fn_check_decl 1950 1951# ac_fn_c_try_run LINENO 1952# ---------------------- 1953# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1954# executables *can* be run. 1955ac_fn_c_try_run () 1956{ 1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1958 if { { ac_try="$ac_link" 1959case "(($ac_try" in 1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1961 *) ac_try_echo=$ac_try;; 1962esac 1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1964printf "%s\n" "$ac_try_echo"; } >&5 1965 (eval "$ac_link") 2>&5 1966 ac_status=$? 1967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1968 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1969 { { case "(($ac_try" in 1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1971 *) ac_try_echo=$ac_try;; 1972esac 1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1974printf "%s\n" "$ac_try_echo"; } >&5 1975 (eval "$ac_try") 2>&5 1976 ac_status=$? 1977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1978 test $ac_status = 0; }; } 1979then : 1980 ac_retval=0 1981else $as_nop 1982 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1983 printf "%s\n" "$as_me: failed program was:" >&5 1984sed 's/^/| /' conftest.$ac_ext >&5 1985 1986 ac_retval=$ac_status 1987fi 1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 as_fn_set_status $ac_retval 1991 1992} # ac_fn_c_try_run 1993 1994# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1995# -------------------------------------------- 1996# Tries to find the compile-time value of EXPR in a program that includes 1997# INCLUDES, setting VAR accordingly. Returns whether the value could be 1998# computed 1999ac_fn_c_compute_int () 2000{ 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2002 if test "$cross_compiling" = yes; then 2003 # Depending upon the size, compute the lo and hi bounds. 2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006$4 2007int 2008main (void) 2009{ 2010static int test_array [1 - 2 * !(($2) >= 0)]; 2011test_array [0] = 0; 2012return test_array [0]; 2013 2014 ; 2015 return 0; 2016} 2017_ACEOF 2018if ac_fn_c_try_compile "$LINENO" 2019then : 2020 ac_lo=0 ac_mid=0 2021 while :; do 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024$4 2025int 2026main (void) 2027{ 2028static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2029test_array [0] = 0; 2030return test_array [0]; 2031 2032 ; 2033 return 0; 2034} 2035_ACEOF 2036if ac_fn_c_try_compile "$LINENO" 2037then : 2038 ac_hi=$ac_mid; break 2039else $as_nop 2040 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2041 if test $ac_lo -le $ac_mid; then 2042 ac_lo= ac_hi= 2043 break 2044 fi 2045 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2046fi 2047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2048 done 2049else $as_nop 2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052$4 2053int 2054main (void) 2055{ 2056static int test_array [1 - 2 * !(($2) < 0)]; 2057test_array [0] = 0; 2058return test_array [0]; 2059 2060 ; 2061 return 0; 2062} 2063_ACEOF 2064if ac_fn_c_try_compile "$LINENO" 2065then : 2066 ac_hi=-1 ac_mid=-1 2067 while :; do 2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2069/* end confdefs.h. */ 2070$4 2071int 2072main (void) 2073{ 2074static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2075test_array [0] = 0; 2076return test_array [0]; 2077 2078 ; 2079 return 0; 2080} 2081_ACEOF 2082if ac_fn_c_try_compile "$LINENO" 2083then : 2084 ac_lo=$ac_mid; break 2085else $as_nop 2086 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2087 if test $ac_mid -le $ac_hi; then 2088 ac_lo= ac_hi= 2089 break 2090 fi 2091 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2092fi 2093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2094 done 2095else $as_nop 2096 ac_lo= ac_hi= 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2099fi 2100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2101# Binary search between lo and hi bounds. 2102while test "x$ac_lo" != "x$ac_hi"; do 2103 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105/* end confdefs.h. */ 2106$4 2107int 2108main (void) 2109{ 2110static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2111test_array [0] = 0; 2112return test_array [0]; 2113 2114 ; 2115 return 0; 2116} 2117_ACEOF 2118if ac_fn_c_try_compile "$LINENO" 2119then : 2120 ac_hi=$ac_mid 2121else $as_nop 2122 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2123fi 2124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2125done 2126case $ac_lo in #(( 2127?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2128'') ac_retval=1 ;; 2129esac 2130 else 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132/* end confdefs.h. */ 2133$4 2134static long int longval (void) { return $2; } 2135static unsigned long int ulongval (void) { return $2; } 2136#include <stdio.h> 2137#include <stdlib.h> 2138int 2139main (void) 2140{ 2141 2142 FILE *f = fopen ("conftest.val", "w"); 2143 if (! f) 2144 return 1; 2145 if (($2) < 0) 2146 { 2147 long int i = longval (); 2148 if (i != ($2)) 2149 return 1; 2150 fprintf (f, "%ld", i); 2151 } 2152 else 2153 { 2154 unsigned long int i = ulongval (); 2155 if (i != ($2)) 2156 return 1; 2157 fprintf (f, "%lu", i); 2158 } 2159 /* Do not output a trailing newline, as this causes \r\n confusion 2160 on some platforms. */ 2161 return ferror (f) || fclose (f) != 0; 2162 2163 ; 2164 return 0; 2165} 2166_ACEOF 2167if ac_fn_c_try_run "$LINENO" 2168then : 2169 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2170else $as_nop 2171 ac_retval=1 2172fi 2173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2174 conftest.$ac_objext conftest.beam conftest.$ac_ext 2175rm -f conftest.val 2176 2177 fi 2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2179 as_fn_set_status $ac_retval 2180 2181} # ac_fn_c_compute_int 2182 2183# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2184# ---------------------------------------------------- 2185# Tries to find if the field MEMBER exists in type AGGR, after including 2186# INCLUDES, setting cache variable VAR accordingly. 2187ac_fn_c_check_member () 2188{ 2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2191printf %s "checking for $2.$3... " >&6; } 2192if eval test \${$4+y} 2193then : 2194 printf %s "(cached) " >&6 2195else $as_nop 2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2197/* end confdefs.h. */ 2198$5 2199int 2200main (void) 2201{ 2202static $2 ac_aggr; 2203if (ac_aggr.$3) 2204return 0; 2205 ; 2206 return 0; 2207} 2208_ACEOF 2209if ac_fn_c_try_compile "$LINENO" 2210then : 2211 eval "$4=yes" 2212else $as_nop 2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2214/* end confdefs.h. */ 2215$5 2216int 2217main (void) 2218{ 2219static $2 ac_aggr; 2220if (sizeof ac_aggr.$3) 2221return 0; 2222 ; 2223 return 0; 2224} 2225_ACEOF 2226if ac_fn_c_try_compile "$LINENO" 2227then : 2228 eval "$4=yes" 2229else $as_nop 2230 eval "$4=no" 2231fi 2232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2233fi 2234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2235fi 2236eval ac_res=\$$4 2237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2238printf "%s\n" "$ac_res" >&6; } 2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2240 2241} # ac_fn_c_check_member 2242ac_configure_args_raw= 2243for ac_arg 2244do 2245 case $ac_arg in 2246 *\'*) 2247 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2248 esac 2249 as_fn_append ac_configure_args_raw " '$ac_arg'" 2250done 2251 2252case $ac_configure_args_raw in 2253 *$as_nl*) 2254 ac_safe_unquote= ;; 2255 *) 2256 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2257 ac_unsafe_a="$ac_unsafe_z#~" 2258 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2259 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2260esac 2261 2262cat >config.log <<_ACEOF 2263This file contains any messages produced by compilers while 2264running configure, to aid debugging if configure makes a mistake. 2265 2266It was created by ldns $as_me 1.9.2, which was 2267generated by GNU Autoconf 2.71. Invocation command line was 2268 2269 $ $0$ac_configure_args_raw 2270 2271_ACEOF 2272exec 5>>config.log 2273{ 2274cat <<_ASUNAME 2275## --------- ## 2276## Platform. ## 2277## --------- ## 2278 2279hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2280uname -m = `(uname -m) 2>/dev/null || echo unknown` 2281uname -r = `(uname -r) 2>/dev/null || echo unknown` 2282uname -s = `(uname -s) 2>/dev/null || echo unknown` 2283uname -v = `(uname -v) 2>/dev/null || echo unknown` 2284 2285/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2286/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2287 2288/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2289/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2290/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2291/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2292/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2293/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2294/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2295 2296_ASUNAME 2297 2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH 2300do 2301 IFS=$as_save_IFS 2302 case $as_dir in #((( 2303 '') as_dir=./ ;; 2304 */) ;; 2305 *) as_dir=$as_dir/ ;; 2306 esac 2307 printf "%s\n" "PATH: $as_dir" 2308 done 2309IFS=$as_save_IFS 2310 2311} >&5 2312 2313cat >&5 <<_ACEOF 2314 2315 2316## ----------- ## 2317## Core tests. ## 2318## ----------- ## 2319 2320_ACEOF 2321 2322 2323# Keep a trace of the command line. 2324# Strip out --no-create and --no-recursion so they do not pile up. 2325# Strip out --silent because we don't want to record it for future runs. 2326# Also quote any args containing shell meta-characters. 2327# Make two passes to allow for proper duplicate-argument suppression. 2328ac_configure_args= 2329ac_configure_args0= 2330ac_configure_args1= 2331ac_must_keep_next=false 2332for ac_pass in 1 2 2333do 2334 for ac_arg 2335 do 2336 case $ac_arg in 2337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2339 | -silent | --silent | --silen | --sile | --sil) 2340 continue ;; 2341 *\'*) 2342 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2343 esac 2344 case $ac_pass in 2345 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2346 2) 2347 as_fn_append ac_configure_args1 " '$ac_arg'" 2348 if test $ac_must_keep_next = true; then 2349 ac_must_keep_next=false # Got value, back to normal. 2350 else 2351 case $ac_arg in 2352 *=* | --config-cache | -C | -disable-* | --disable-* \ 2353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2355 | -with-* | --with-* | -without-* | --without-* | --x) 2356 case "$ac_configure_args0 " in 2357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2358 esac 2359 ;; 2360 -* ) ac_must_keep_next=true ;; 2361 esac 2362 fi 2363 as_fn_append ac_configure_args " '$ac_arg'" 2364 ;; 2365 esac 2366 done 2367done 2368{ ac_configure_args0=; unset ac_configure_args0;} 2369{ ac_configure_args1=; unset ac_configure_args1;} 2370 2371# When interrupted or exit'd, cleanup temporary files, and complete 2372# config.log. We remove comments because anyway the quotes in there 2373# would cause problems or look ugly. 2374# WARNING: Use '\'' to represent an apostrophe within the trap. 2375# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2376trap 'exit_status=$? 2377 # Sanitize IFS. 2378 IFS=" "" $as_nl" 2379 # Save into config.log some information that might help in debugging. 2380 { 2381 echo 2382 2383 printf "%s\n" "## ---------------- ## 2384## Cache variables. ## 2385## ---------------- ##" 2386 echo 2387 # The following way of writing the cache mishandles newlines in values, 2388( 2389 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2390 eval ac_val=\$$ac_var 2391 case $ac_val in #( 2392 *${as_nl}*) 2393 case $ac_var in #( 2394 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2395printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2396 esac 2397 case $ac_var in #( 2398 _ | IFS | as_nl) ;; #( 2399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2400 *) { eval $ac_var=; unset $ac_var;} ;; 2401 esac ;; 2402 esac 2403 done 2404 (set) 2>&1 | 2405 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2406 *${as_nl}ac_space=\ *) 2407 sed -n \ 2408 "s/'\''/'\''\\\\'\'''\''/g; 2409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2410 ;; #( 2411 *) 2412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2413 ;; 2414 esac | 2415 sort 2416) 2417 echo 2418 2419 printf "%s\n" "## ----------------- ## 2420## Output variables. ## 2421## ----------------- ##" 2422 echo 2423 for ac_var in $ac_subst_vars 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 2433 if test -n "$ac_subst_files"; then 2434 printf "%s\n" "## ------------------- ## 2435## File substitutions. ## 2436## ------------------- ##" 2437 echo 2438 for ac_var in $ac_subst_files 2439 do 2440 eval ac_val=\$$ac_var 2441 case $ac_val in 2442 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2443 esac 2444 printf "%s\n" "$ac_var='\''$ac_val'\''" 2445 done | sort 2446 echo 2447 fi 2448 2449 if test -s confdefs.h; then 2450 printf "%s\n" "## ----------- ## 2451## confdefs.h. ## 2452## ----------- ##" 2453 echo 2454 cat confdefs.h 2455 echo 2456 fi 2457 test "$ac_signal" != 0 && 2458 printf "%s\n" "$as_me: caught signal $ac_signal" 2459 printf "%s\n" "$as_me: exit $exit_status" 2460 } >&5 2461 rm -f core *.core core.conftest.* && 2462 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2463 exit $exit_status 2464' 0 2465for ac_signal in 1 2 13 15; do 2466 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2467done 2468ac_signal=0 2469 2470# confdefs.h avoids OS command line length limits that DEFS can exceed. 2471rm -f -r conftest* confdefs.h 2472 2473printf "%s\n" "/* confdefs.h */" > confdefs.h 2474 2475# Predefined preprocessor variables. 2476 2477printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2478 2479printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2480 2481printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2482 2483printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2484 2485printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2486 2487printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2488 2489 2490# Let the site file select an alternate cache file if it wants to. 2491# Prefer an explicitly selected file to automatically selected ones. 2492if test -n "$CONFIG_SITE"; then 2493 ac_site_files="$CONFIG_SITE" 2494elif test "x$prefix" != xNONE; then 2495 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2496else 2497 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2498fi 2499 2500for ac_site_file in $ac_site_files 2501do 2502 case $ac_site_file in #( 2503 */*) : 2504 ;; #( 2505 *) : 2506 ac_site_file=./$ac_site_file ;; 2507esac 2508 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2510printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2511 sed 's/^/| /' "$ac_site_file" >&5 2512 . "$ac_site_file" \ 2513 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2515as_fn_error $? "failed to load site script $ac_site_file 2516See \`config.log' for more details" "$LINENO" 5; } 2517 fi 2518done 2519 2520if test -r "$cache_file"; then 2521 # Some versions of bash will fail to source /dev/null (special files 2522 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2523 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2525printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2526 case $cache_file in 2527 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2528 *) . "./$cache_file";; 2529 esac 2530 fi 2531else 2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2533printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2534 >$cache_file 2535fi 2536 2537as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2538# Test code for whether the C compiler supports C89 (global declarations) 2539ac_c_conftest_c89_globals=' 2540/* Does the compiler advertise C89 conformance? 2541 Do not test the value of __STDC__, because some compilers set it to 0 2542 while being otherwise adequately conformant. */ 2543#if !defined __STDC__ 2544# error "Compiler does not advertise C89 conformance" 2545#endif 2546 2547#include <stddef.h> 2548#include <stdarg.h> 2549struct stat; 2550/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2551struct buf { int x; }; 2552struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2553static char *e (p, i) 2554 char **p; 2555 int i; 2556{ 2557 return p[i]; 2558} 2559static char *f (char * (*g) (char **, int), char **p, ...) 2560{ 2561 char *s; 2562 va_list v; 2563 va_start (v,p); 2564 s = g (p, va_arg (v,int)); 2565 va_end (v); 2566 return s; 2567} 2568 2569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2570 function prototypes and stuff, but not \xHH hex character constants. 2571 These do not provoke an error unfortunately, instead are silently treated 2572 as an "x". The following induces an error, until -std is added to get 2573 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2574 array size at least. It is necessary to write \x00 == 0 to get something 2575 that is true only with -std. */ 2576int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2577 2578/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2579 inside strings and character constants. */ 2580#define FOO(x) '\''x'\'' 2581int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2582 2583int test (int i, double x); 2584struct s1 {int (*f) (int a);}; 2585struct s2 {int (*f) (double a);}; 2586int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2587 int, int);' 2588 2589# Test code for whether the C compiler supports C89 (body of main). 2590ac_c_conftest_c89_main=' 2591ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2592' 2593 2594# Test code for whether the C compiler supports C99 (global declarations) 2595ac_c_conftest_c99_globals=' 2596// Does the compiler advertise C99 conformance? 2597#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2598# error "Compiler does not advertise C99 conformance" 2599#endif 2600 2601#include <stdbool.h> 2602extern int puts (const char *); 2603extern int printf (const char *, ...); 2604extern int dprintf (int, const char *, ...); 2605extern void *malloc (size_t); 2606 2607// Check varargs macros. These examples are taken from C99 6.10.3.5. 2608// dprintf is used instead of fprintf to avoid needing to declare 2609// FILE and stderr. 2610#define debug(...) dprintf (2, __VA_ARGS__) 2611#define showlist(...) puts (#__VA_ARGS__) 2612#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2613static void 2614test_varargs_macros (void) 2615{ 2616 int x = 1234; 2617 int y = 5678; 2618 debug ("Flag"); 2619 debug ("X = %d\n", x); 2620 showlist (The first, second, and third items.); 2621 report (x>y, "x is %d but y is %d", x, y); 2622} 2623 2624// Check long long types. 2625#define BIG64 18446744073709551615ull 2626#define BIG32 4294967295ul 2627#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2628#if !BIG_OK 2629 #error "your preprocessor is broken" 2630#endif 2631#if BIG_OK 2632#else 2633 #error "your preprocessor is broken" 2634#endif 2635static long long int bignum = -9223372036854775807LL; 2636static unsigned long long int ubignum = BIG64; 2637 2638struct incomplete_array 2639{ 2640 int datasize; 2641 double data[]; 2642}; 2643 2644struct named_init { 2645 int number; 2646 const wchar_t *name; 2647 double average; 2648}; 2649 2650typedef const char *ccp; 2651 2652static inline int 2653test_restrict (ccp restrict text) 2654{ 2655 // See if C++-style comments work. 2656 // Iterate through items via the restricted pointer. 2657 // Also check for declarations in for loops. 2658 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2659 continue; 2660 return 0; 2661} 2662 2663// Check varargs and va_copy. 2664static bool 2665test_varargs (const char *format, ...) 2666{ 2667 va_list args; 2668 va_start (args, format); 2669 va_list args_copy; 2670 va_copy (args_copy, args); 2671 2672 const char *str = ""; 2673 int number = 0; 2674 float fnumber = 0; 2675 2676 while (*format) 2677 { 2678 switch (*format++) 2679 { 2680 case '\''s'\'': // string 2681 str = va_arg (args_copy, const char *); 2682 break; 2683 case '\''d'\'': // int 2684 number = va_arg (args_copy, int); 2685 break; 2686 case '\''f'\'': // float 2687 fnumber = va_arg (args_copy, double); 2688 break; 2689 default: 2690 break; 2691 } 2692 } 2693 va_end (args_copy); 2694 va_end (args); 2695 2696 return *str && number && fnumber; 2697} 2698' 2699 2700# Test code for whether the C compiler supports C99 (body of main). 2701ac_c_conftest_c99_main=' 2702 // Check bool. 2703 _Bool success = false; 2704 success |= (argc != 0); 2705 2706 // Check restrict. 2707 if (test_restrict ("String literal") == 0) 2708 success = true; 2709 char *restrict newvar = "Another string"; 2710 2711 // Check varargs. 2712 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2713 test_varargs_macros (); 2714 2715 // Check flexible array members. 2716 struct incomplete_array *ia = 2717 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2718 ia->datasize = 10; 2719 for (int i = 0; i < ia->datasize; ++i) 2720 ia->data[i] = i * 1.234; 2721 2722 // Check named initializers. 2723 struct named_init ni = { 2724 .number = 34, 2725 .name = L"Test wide string", 2726 .average = 543.34343, 2727 }; 2728 2729 ni.number = 58; 2730 2731 int dynamic_array[ni.number]; 2732 dynamic_array[0] = argv[0][0]; 2733 dynamic_array[ni.number - 1] = 543; 2734 2735 // work around unused variable warnings 2736 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2737 || dynamic_array[ni.number - 1] != 543); 2738' 2739 2740# Test code for whether the C compiler supports C11 (global declarations) 2741ac_c_conftest_c11_globals=' 2742// Does the compiler advertise C11 conformance? 2743#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2744# error "Compiler does not advertise C11 conformance" 2745#endif 2746 2747// Check _Alignas. 2748char _Alignas (double) aligned_as_double; 2749char _Alignas (0) no_special_alignment; 2750extern char aligned_as_int; 2751char _Alignas (0) _Alignas (int) aligned_as_int; 2752 2753// Check _Alignof. 2754enum 2755{ 2756 int_alignment = _Alignof (int), 2757 int_array_alignment = _Alignof (int[100]), 2758 char_alignment = _Alignof (char) 2759}; 2760_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2761 2762// Check _Noreturn. 2763int _Noreturn does_not_return (void) { for (;;) continue; } 2764 2765// Check _Static_assert. 2766struct test_static_assert 2767{ 2768 int x; 2769 _Static_assert (sizeof (int) <= sizeof (long int), 2770 "_Static_assert does not work in struct"); 2771 long int y; 2772}; 2773 2774// Check UTF-8 literals. 2775#define u8 syntax error! 2776char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2777 2778// Check duplicate typedefs. 2779typedef long *long_ptr; 2780typedef long int *long_ptr; 2781typedef long_ptr long_ptr; 2782 2783// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2784struct anonymous 2785{ 2786 union { 2787 struct { int i; int j; }; 2788 struct { int k; long int l; } w; 2789 }; 2790 int m; 2791} v1; 2792' 2793 2794# Test code for whether the C compiler supports C11 (body of main). 2795ac_c_conftest_c11_main=' 2796 _Static_assert ((offsetof (struct anonymous, i) 2797 == offsetof (struct anonymous, w.k)), 2798 "Anonymous union alignment botch"); 2799 v1.i = 2; 2800 v1.w.k = 5; 2801 ok |= v1.i != 5; 2802' 2803 2804# Test code for whether the C compiler supports C11 (complete). 2805ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2806${ac_c_conftest_c99_globals} 2807${ac_c_conftest_c11_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 ${ac_c_conftest_c11_main} 2816 return ok; 2817} 2818" 2819 2820# Test code for whether the C compiler supports C99 (complete). 2821ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2822${ac_c_conftest_c99_globals} 2823 2824int 2825main (int argc, char **argv) 2826{ 2827 int ok = 0; 2828 ${ac_c_conftest_c89_main} 2829 ${ac_c_conftest_c99_main} 2830 return ok; 2831} 2832" 2833 2834# Test code for whether the C compiler supports C89 (complete). 2835ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2836 2837int 2838main (int argc, char **argv) 2839{ 2840 int ok = 0; 2841 ${ac_c_conftest_c89_main} 2842 return ok; 2843} 2844" 2845 2846as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2847as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2848as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2849as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2850as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2851as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2852as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2853as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2854as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2855as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2856as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2857as_fn_append ac_func_c_list " fork HAVE_FORK" 2858as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2859 2860# Auxiliary files required by this configure script. 2861ac_aux_files="config.guess config.sub ltmain.sh" 2862 2863# Locations in which to look for auxiliary files. 2864ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2865 2866# Search for a directory containing all of the required auxiliary files, 2867# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2868# If we don't find one directory that contains all the files we need, 2869# we report the set of missing files from the *first* directory in 2870# $ac_aux_dir_candidates and give up. 2871ac_missing_aux_files="" 2872ac_first_candidate=: 2873printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875as_found=false 2876for as_dir in $ac_aux_dir_candidates 2877do 2878 IFS=$as_save_IFS 2879 case $as_dir in #((( 2880 '') as_dir=./ ;; 2881 */) ;; 2882 *) as_dir=$as_dir/ ;; 2883 esac 2884 as_found=: 2885 2886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2887 ac_aux_dir_found=yes 2888 ac_install_sh= 2889 for ac_aux in $ac_aux_files 2890 do 2891 # As a special case, if "install-sh" is required, that requirement 2892 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2893 # and $ac_install_sh is set appropriately for whichever one is found. 2894 if test x"$ac_aux" = x"install-sh" 2895 then 2896 if test -f "${as_dir}install-sh"; then 2897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2898 ac_install_sh="${as_dir}install-sh -c" 2899 elif test -f "${as_dir}install.sh"; then 2900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2901 ac_install_sh="${as_dir}install.sh -c" 2902 elif test -f "${as_dir}shtool"; then 2903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2904 ac_install_sh="${as_dir}shtool install -c" 2905 else 2906 ac_aux_dir_found=no 2907 if $ac_first_candidate; then 2908 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2909 else 2910 break 2911 fi 2912 fi 2913 else 2914 if test -f "${as_dir}${ac_aux}"; then 2915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2916 else 2917 ac_aux_dir_found=no 2918 if $ac_first_candidate; then 2919 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2920 else 2921 break 2922 fi 2923 fi 2924 fi 2925 done 2926 if test "$ac_aux_dir_found" = yes; then 2927 ac_aux_dir="$as_dir" 2928 break 2929 fi 2930 ac_first_candidate=false 2931 2932 as_found=false 2933done 2934IFS=$as_save_IFS 2935if $as_found 2936then : 2937 2938else $as_nop 2939 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2940fi 2941 2942 2943# These three variables are undocumented and unsupported, 2944# and are intended to be withdrawn in a future Autoconf release. 2945# They can cause serious problems if a builder's source tree is in a directory 2946# whose full name contains unusual characters. 2947if test -f "${ac_aux_dir}config.guess"; then 2948 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2949fi 2950if test -f "${ac_aux_dir}config.sub"; then 2951 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2952fi 2953if test -f "$ac_aux_dir/configure"; then 2954 ac_configure="$SHELL ${ac_aux_dir}configure" 2955fi 2956 2957# Check that the precious variables saved in the cache have kept the same 2958# value. 2959ac_cache_corrupted=false 2960for ac_var in $ac_precious_vars; do 2961 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2962 eval ac_new_set=\$ac_env_${ac_var}_set 2963 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2964 eval ac_new_val=\$ac_env_${ac_var}_value 2965 case $ac_old_set,$ac_new_set in 2966 set,) 2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2968printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2969 ac_cache_corrupted=: ;; 2970 ,set) 2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2972printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2973 ac_cache_corrupted=: ;; 2974 ,);; 2975 *) 2976 if test "x$ac_old_val" != "x$ac_new_val"; then 2977 # differences in whitespace do not lead to failure. 2978 ac_old_val_w=`echo x $ac_old_val` 2979 ac_new_val_w=`echo x $ac_new_val` 2980 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2982printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2983 ac_cache_corrupted=: 2984 else 2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2986printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2987 eval $ac_var=\$ac_old_val 2988 fi 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2990printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2992printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2993 fi;; 2994 esac 2995 # Pass precious variables to config.status. 2996 if test "$ac_new_set" = set; then 2997 case $ac_new_val in 2998 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2999 *) ac_arg=$ac_var=$ac_new_val ;; 3000 esac 3001 case " $ac_configure_args " in 3002 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3003 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3004 esac 3005 fi 3006done 3007if $ac_cache_corrupted; then 3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3009printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3011printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3012 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3013 and start over" "$LINENO" 5 3014fi 3015## -------------------- ## 3016## Main body of script. ## 3017## -------------------- ## 3018 3019ac_ext=c 3020ac_cpp='$CPP $CPPFLAGS' 3021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3023ac_compiler_gnu=$ac_cv_c_compiler_gnu 3024 3025 3026 3027# needed to build correct soname 3028LDNS_VERSION_MAJOR=1 3029 3030LDNS_VERSION_MINOR=9 3031 3032LDNS_VERSION_MICRO=2 3033 3034 3035# Library version 3036# --------------- 3037# current:revision:age 3038# (binary-api-number):(which-binary-api-version):(how-many-nrs-backwardscompat) 3039# if source code changes increment revision 3040# if any interfaces have been added/removed/changed since last update then 3041# increment current and set revision to 0 3042# if any interfaces have been added since the last public release then increment age 3043# if any interfaces have been removed or changed since the last public release then 3044# set age to 0 3045# 3046# ldns-1.6.17 and before had a .so with version same as VERSION_INFO 3047# ldns-1.7.0 had libversion 2:0:0 3048# ldns-1.7.1 had libversion 3:0:0 (though it should have had 3:0:1) 3049# ldns-1.8.0 had libversion 4:0:2 (though it should have had 4:0:1) 3050# ldns-1.8.1 had libversion 5:0:2 3051# ldns-1.8.1 had libversion 6:0:3 3052# ldns-1.8.2 had libversion 7:0:4 3053# ldns-1.8.3 had libversion 8:0:5 3054# ldns-1.8.4 had libversion 9:0:6 3055# ldns-1.9.0 had libversion 9:0:6 (though it should have had 10:0:0) 3056# ldns-1.9.1 had libversion 11:0:0 (but should have had 10:0:7 with 11:0:0 reserved for the ldns-1.10.0 release) 3057# ldns-1.9.2 has libversion 12:0:9 3058# 3059VERSION_INFO=12:0:9 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071ac_ext=c 3072ac_cpp='$CPP $CPPFLAGS' 3073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3075ac_compiler_gnu=$ac_cv_c_compiler_gnu 3076if test -n "$ac_tool_prefix"; then 3077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3078set dummy ${ac_tool_prefix}gcc; ac_word=$2 3079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3080printf %s "checking for $ac_word... " >&6; } 3081if test ${ac_cv_prog_CC+y} 3082then : 3083 printf %s "(cached) " >&6 3084else $as_nop 3085 if test -n "$CC"; then 3086 ac_cv_prog_CC="$CC" # Let the user override the test. 3087else 3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089for as_dir in $PATH 3090do 3091 IFS=$as_save_IFS 3092 case $as_dir in #((( 3093 '') as_dir=./ ;; 3094 */) ;; 3095 *) as_dir=$as_dir/ ;; 3096 esac 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3099 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3101 break 2 3102 fi 3103done 3104 done 3105IFS=$as_save_IFS 3106 3107fi 3108fi 3109CC=$ac_cv_prog_CC 3110if test -n "$CC"; then 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3112printf "%s\n" "$CC" >&6; } 3113else 3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115printf "%s\n" "no" >&6; } 3116fi 3117 3118 3119fi 3120if test -z "$ac_cv_prog_CC"; then 3121 ac_ct_CC=$CC 3122 # Extract the first word of "gcc", so it can be a program name with args. 3123set dummy gcc; ac_word=$2 3124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3125printf %s "checking for $ac_word... " >&6; } 3126if test ${ac_cv_prog_ac_ct_CC+y} 3127then : 3128 printf %s "(cached) " >&6 3129else $as_nop 3130 if test -n "$ac_ct_CC"; then 3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3132else 3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH 3135do 3136 IFS=$as_save_IFS 3137 case $as_dir in #((( 3138 '') as_dir=./ ;; 3139 */) ;; 3140 *) as_dir=$as_dir/ ;; 3141 esac 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3144 ac_cv_prog_ac_ct_CC="gcc" 3145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154ac_ct_CC=$ac_cv_prog_ac_ct_CC 3155if test -n "$ac_ct_CC"; then 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3157printf "%s\n" "$ac_ct_CC" >&6; } 3158else 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160printf "%s\n" "no" >&6; } 3161fi 3162 3163 if test "x$ac_ct_CC" = x; then 3164 CC="" 3165 else 3166 case $cross_compiling:$ac_tool_warned in 3167yes:) 3168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3169printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3170ac_tool_warned=yes ;; 3171esac 3172 CC=$ac_ct_CC 3173 fi 3174else 3175 CC="$ac_cv_prog_CC" 3176fi 3177 3178if test -z "$CC"; then 3179 if test -n "$ac_tool_prefix"; then 3180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3181set dummy ${ac_tool_prefix}cc; ac_word=$2 3182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183printf %s "checking for $ac_word... " >&6; } 3184if test ${ac_cv_prog_CC+y} 3185then : 3186 printf %s "(cached) " >&6 3187else $as_nop 3188 if test -n "$CC"; then 3189 ac_cv_prog_CC="$CC" # Let the user override the test. 3190else 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 case $as_dir in #((( 3196 '') as_dir=./ ;; 3197 */) ;; 3198 *) as_dir=$as_dir/ ;; 3199 esac 3200 for ac_exec_ext in '' $ac_executable_extensions; do 3201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3202 ac_cv_prog_CC="${ac_tool_prefix}cc" 3203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3204 break 2 3205 fi 3206done 3207 done 3208IFS=$as_save_IFS 3209 3210fi 3211fi 3212CC=$ac_cv_prog_CC 3213if test -n "$CC"; then 3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3215printf "%s\n" "$CC" >&6; } 3216else 3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3218printf "%s\n" "no" >&6; } 3219fi 3220 3221 3222 fi 3223fi 3224if test -z "$CC"; then 3225 # Extract the first word of "cc", so it can be a program name with args. 3226set dummy cc; ac_word=$2 3227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228printf %s "checking for $ac_word... " >&6; } 3229if test ${ac_cv_prog_CC+y} 3230then : 3231 printf %s "(cached) " >&6 3232else $as_nop 3233 if test -n "$CC"; then 3234 ac_cv_prog_CC="$CC" # Let the user override the test. 3235else 3236 ac_prog_rejected=no 3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3238for as_dir in $PATH 3239do 3240 IFS=$as_save_IFS 3241 case $as_dir in #((( 3242 '') as_dir=./ ;; 3243 */) ;; 3244 *) as_dir=$as_dir/ ;; 3245 esac 3246 for ac_exec_ext in '' $ac_executable_extensions; do 3247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3248 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3249 ac_prog_rejected=yes 3250 continue 3251 fi 3252 ac_cv_prog_CC="cc" 3253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260if test $ac_prog_rejected = yes; then 3261 # We found a bogon in the path, so make sure we never use it. 3262 set dummy $ac_cv_prog_CC 3263 shift 3264 if test $# != 0; then 3265 # We chose a different compiler from the bogus one. 3266 # However, it has the same basename, so the bogon will be chosen 3267 # first if we set CC to just the basename; use the full file name. 3268 shift 3269 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3270 fi 3271fi 3272fi 3273fi 3274CC=$ac_cv_prog_CC 3275if test -n "$CC"; then 3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3277printf "%s\n" "$CC" >&6; } 3278else 3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3280printf "%s\n" "no" >&6; } 3281fi 3282 3283 3284fi 3285if test -z "$CC"; then 3286 if test -n "$ac_tool_prefix"; then 3287 for ac_prog in cl.exe 3288 do 3289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3290set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3292printf %s "checking for $ac_word... " >&6; } 3293if test ${ac_cv_prog_CC+y} 3294then : 3295 printf %s "(cached) " >&6 3296else $as_nop 3297 if test -n "$CC"; then 3298 ac_cv_prog_CC="$CC" # Let the user override the test. 3299else 3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH 3302do 3303 IFS=$as_save_IFS 3304 case $as_dir in #((( 3305 '') as_dir=./ ;; 3306 */) ;; 3307 *) as_dir=$as_dir/ ;; 3308 esac 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3313 break 2 3314 fi 3315done 3316 done 3317IFS=$as_save_IFS 3318 3319fi 3320fi 3321CC=$ac_cv_prog_CC 3322if test -n "$CC"; then 3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3324printf "%s\n" "$CC" >&6; } 3325else 3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3327printf "%s\n" "no" >&6; } 3328fi 3329 3330 3331 test -n "$CC" && break 3332 done 3333fi 3334if test -z "$CC"; then 3335 ac_ct_CC=$CC 3336 for ac_prog in cl.exe 3337do 3338 # Extract the first word of "$ac_prog", so it can be a program name with args. 3339set dummy $ac_prog; ac_word=$2 3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3341printf %s "checking for $ac_word... " >&6; } 3342if test ${ac_cv_prog_ac_ct_CC+y} 3343then : 3344 printf %s "(cached) " >&6 3345else $as_nop 3346 if test -n "$ac_ct_CC"; then 3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3348else 3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350for as_dir in $PATH 3351do 3352 IFS=$as_save_IFS 3353 case $as_dir in #((( 3354 '') as_dir=./ ;; 3355 */) ;; 3356 *) as_dir=$as_dir/ ;; 3357 esac 3358 for ac_exec_ext in '' $ac_executable_extensions; do 3359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3360 ac_cv_prog_ac_ct_CC="$ac_prog" 3361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3362 break 2 3363 fi 3364done 3365 done 3366IFS=$as_save_IFS 3367 3368fi 3369fi 3370ac_ct_CC=$ac_cv_prog_ac_ct_CC 3371if test -n "$ac_ct_CC"; then 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3373printf "%s\n" "$ac_ct_CC" >&6; } 3374else 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3376printf "%s\n" "no" >&6; } 3377fi 3378 3379 3380 test -n "$ac_ct_CC" && break 3381done 3382 3383 if test "x$ac_ct_CC" = x; then 3384 CC="" 3385 else 3386 case $cross_compiling:$ac_tool_warned in 3387yes:) 3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3389printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3390ac_tool_warned=yes ;; 3391esac 3392 CC=$ac_ct_CC 3393 fi 3394fi 3395 3396fi 3397if test -z "$CC"; then 3398 if test -n "$ac_tool_prefix"; then 3399 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3400set dummy ${ac_tool_prefix}clang; ac_word=$2 3401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3402printf %s "checking for $ac_word... " >&6; } 3403if test ${ac_cv_prog_CC+y} 3404then : 3405 printf %s "(cached) " >&6 3406else $as_nop 3407 if test -n "$CC"; then 3408 ac_cv_prog_CC="$CC" # Let the user override the test. 3409else 3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3411for as_dir in $PATH 3412do 3413 IFS=$as_save_IFS 3414 case $as_dir in #((( 3415 '') as_dir=./ ;; 3416 */) ;; 3417 *) as_dir=$as_dir/ ;; 3418 esac 3419 for ac_exec_ext in '' $ac_executable_extensions; do 3420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3421 ac_cv_prog_CC="${ac_tool_prefix}clang" 3422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3423 break 2 3424 fi 3425done 3426 done 3427IFS=$as_save_IFS 3428 3429fi 3430fi 3431CC=$ac_cv_prog_CC 3432if test -n "$CC"; then 3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3434printf "%s\n" "$CC" >&6; } 3435else 3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3437printf "%s\n" "no" >&6; } 3438fi 3439 3440 3441fi 3442if test -z "$ac_cv_prog_CC"; then 3443 ac_ct_CC=$CC 3444 # Extract the first word of "clang", so it can be a program name with args. 3445set dummy clang; ac_word=$2 3446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3447printf %s "checking for $ac_word... " >&6; } 3448if test ${ac_cv_prog_ac_ct_CC+y} 3449then : 3450 printf %s "(cached) " >&6 3451else $as_nop 3452 if test -n "$ac_ct_CC"; then 3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3454else 3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3456for as_dir in $PATH 3457do 3458 IFS=$as_save_IFS 3459 case $as_dir in #((( 3460 '') as_dir=./ ;; 3461 */) ;; 3462 *) as_dir=$as_dir/ ;; 3463 esac 3464 for ac_exec_ext in '' $ac_executable_extensions; do 3465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3466 ac_cv_prog_ac_ct_CC="clang" 3467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3468 break 2 3469 fi 3470done 3471 done 3472IFS=$as_save_IFS 3473 3474fi 3475fi 3476ac_ct_CC=$ac_cv_prog_ac_ct_CC 3477if test -n "$ac_ct_CC"; then 3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3479printf "%s\n" "$ac_ct_CC" >&6; } 3480else 3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3482printf "%s\n" "no" >&6; } 3483fi 3484 3485 if test "x$ac_ct_CC" = x; then 3486 CC="" 3487 else 3488 case $cross_compiling:$ac_tool_warned in 3489yes:) 3490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3491printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3492ac_tool_warned=yes ;; 3493esac 3494 CC=$ac_ct_CC 3495 fi 3496else 3497 CC="$ac_cv_prog_CC" 3498fi 3499 3500fi 3501 3502 3503test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3504printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3505as_fn_error $? "no acceptable C compiler found in \$PATH 3506See \`config.log' for more details" "$LINENO" 5; } 3507 3508# Provide some information about the compiler. 3509printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3510set X $ac_compile 3511ac_compiler=$2 3512for ac_option in --version -v -V -qversion -version; do 3513 { { ac_try="$ac_compiler $ac_option >&5" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519printf "%s\n" "$ac_try_echo"; } >&5 3520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3521 ac_status=$? 3522 if test -s conftest.err; then 3523 sed '10a\ 3524... rest of stderr output deleted ... 3525 10q' conftest.err >conftest.er1 3526 cat conftest.er1 >&5 3527 fi 3528 rm -f conftest.er1 conftest.err 3529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3530 test $ac_status = 0; } 3531done 3532 3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534/* end confdefs.h. */ 3535 3536int 3537main (void) 3538{ 3539 3540 ; 3541 return 0; 3542} 3543_ACEOF 3544ac_clean_files_save=$ac_clean_files 3545ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3546# Try to create an executable without -o first, disregard a.out. 3547# It will help us diagnose broken compilers, and finding out an intuition 3548# of exeext. 3549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3550printf %s "checking whether the C compiler works... " >&6; } 3551ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3552 3553# The possible output files: 3554ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3555 3556ac_rmfiles= 3557for ac_file in $ac_files 3558do 3559 case $ac_file in 3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3561 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3562 esac 3563done 3564rm -f $ac_rmfiles 3565 3566if { { ac_try="$ac_link_default" 3567case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572printf "%s\n" "$ac_try_echo"; } >&5 3573 (eval "$ac_link_default") 2>&5 3574 ac_status=$? 3575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3576 test $ac_status = 0; } 3577then : 3578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3579# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3580# in a Makefile. We should not override ac_cv_exeext if it was cached, 3581# so that the user can short-circuit this test for compilers unknown to 3582# Autoconf. 3583for ac_file in $ac_files '' 3584do 3585 test -f "$ac_file" || continue 3586 case $ac_file in 3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3588 ;; 3589 [ab].out ) 3590 # We found the default executable, but exeext='' is most 3591 # certainly right. 3592 break;; 3593 *.* ) 3594 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3595 then :; else 3596 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3597 fi 3598 # We set ac_cv_exeext here because the later test for it is not 3599 # safe: cross compilers may not add the suffix if given an `-o' 3600 # argument, so we may need to know it at that point already. 3601 # Even if this section looks crufty: it has the advantage of 3602 # actually working. 3603 break;; 3604 * ) 3605 break;; 3606 esac 3607done 3608test "$ac_cv_exeext" = no && ac_cv_exeext= 3609 3610else $as_nop 3611 ac_file='' 3612fi 3613if test -z "$ac_file" 3614then : 3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3616printf "%s\n" "no" >&6; } 3617printf "%s\n" "$as_me: failed program was:" >&5 3618sed 's/^/| /' conftest.$ac_ext >&5 3619 3620{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3621printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3622as_fn_error 77 "C compiler cannot create executables 3623See \`config.log' for more details" "$LINENO" 5; } 3624else $as_nop 3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3626printf "%s\n" "yes" >&6; } 3627fi 3628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3629printf %s "checking for C compiler default output file name... " >&6; } 3630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3631printf "%s\n" "$ac_file" >&6; } 3632ac_exeext=$ac_cv_exeext 3633 3634rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3635ac_clean_files=$ac_clean_files_save 3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3637printf %s "checking for suffix of executables... " >&6; } 3638if { { ac_try="$ac_link" 3639case "(($ac_try" in 3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3641 *) ac_try_echo=$ac_try;; 3642esac 3643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3644printf "%s\n" "$ac_try_echo"; } >&5 3645 (eval "$ac_link") 2>&5 3646 ac_status=$? 3647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3648 test $ac_status = 0; } 3649then : 3650 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3651# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3652# work properly (i.e., refer to `conftest.exe'), while it won't with 3653# `rm'. 3654for ac_file in conftest.exe conftest conftest.*; do 3655 test -f "$ac_file" || continue 3656 case $ac_file in 3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3659 break;; 3660 * ) break;; 3661 esac 3662done 3663else $as_nop 3664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3665printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3666as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3667See \`config.log' for more details" "$LINENO" 5; } 3668fi 3669rm -f conftest conftest$ac_cv_exeext 3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3671printf "%s\n" "$ac_cv_exeext" >&6; } 3672 3673rm -f conftest.$ac_ext 3674EXEEXT=$ac_cv_exeext 3675ac_exeext=$EXEEXT 3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677/* end confdefs.h. */ 3678#include <stdio.h> 3679int 3680main (void) 3681{ 3682FILE *f = fopen ("conftest.out", "w"); 3683 return ferror (f) || fclose (f) != 0; 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689ac_clean_files="$ac_clean_files conftest.out" 3690# Check that the compiler produces executables we can run. If not, either 3691# the compiler is broken, or we cross compile. 3692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3693printf %s "checking whether we are cross compiling... " >&6; } 3694if test "$cross_compiling" != yes; then 3695 { { ac_try="$ac_link" 3696case "(($ac_try" in 3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3698 *) ac_try_echo=$ac_try;; 3699esac 3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3701printf "%s\n" "$ac_try_echo"; } >&5 3702 (eval "$ac_link") 2>&5 3703 ac_status=$? 3704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3705 test $ac_status = 0; } 3706 if { ac_try='./conftest$ac_cv_exeext' 3707 { { case "(($ac_try" in 3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3709 *) ac_try_echo=$ac_try;; 3710esac 3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3712printf "%s\n" "$ac_try_echo"; } >&5 3713 (eval "$ac_try") 2>&5 3714 ac_status=$? 3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3716 test $ac_status = 0; }; }; then 3717 cross_compiling=no 3718 else 3719 if test "$cross_compiling" = maybe; then 3720 cross_compiling=yes 3721 else 3722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3723printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3724as_fn_error 77 "cannot run C compiled programs. 3725If you meant to cross compile, use \`--host'. 3726See \`config.log' for more details" "$LINENO" 5; } 3727 fi 3728 fi 3729fi 3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3731printf "%s\n" "$cross_compiling" >&6; } 3732 3733rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3734ac_clean_files=$ac_clean_files_save 3735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3736printf %s "checking for suffix of object files... " >&6; } 3737if test ${ac_cv_objext+y} 3738then : 3739 printf %s "(cached) " >&6 3740else $as_nop 3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743 3744int 3745main (void) 3746{ 3747 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752rm -f conftest.o conftest.obj 3753if { { ac_try="$ac_compile" 3754case "(($ac_try" in 3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3756 *) ac_try_echo=$ac_try;; 3757esac 3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3759printf "%s\n" "$ac_try_echo"; } >&5 3760 (eval "$ac_compile") 2>&5 3761 ac_status=$? 3762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3763 test $ac_status = 0; } 3764then : 3765 for ac_file in conftest.o conftest.obj conftest.*; do 3766 test -f "$ac_file" || continue; 3767 case $ac_file in 3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3770 break;; 3771 esac 3772done 3773else $as_nop 3774 printf "%s\n" "$as_me: failed program was:" >&5 3775sed 's/^/| /' conftest.$ac_ext >&5 3776 3777{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3778printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3779as_fn_error $? "cannot compute suffix of object files: cannot compile 3780See \`config.log' for more details" "$LINENO" 5; } 3781fi 3782rm -f conftest.$ac_cv_objext conftest.$ac_ext 3783fi 3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3785printf "%s\n" "$ac_cv_objext" >&6; } 3786OBJEXT=$ac_cv_objext 3787ac_objext=$OBJEXT 3788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3789printf %s "checking whether the compiler supports GNU C... " >&6; } 3790if test ${ac_cv_c_compiler_gnu+y} 3791then : 3792 printf %s "(cached) " >&6 3793else $as_nop 3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795/* end confdefs.h. */ 3796 3797int 3798main (void) 3799{ 3800#ifndef __GNUC__ 3801 choke me 3802#endif 3803 3804 ; 3805 return 0; 3806} 3807_ACEOF 3808if ac_fn_c_try_compile "$LINENO" 3809then : 3810 ac_compiler_gnu=yes 3811else $as_nop 3812 ac_compiler_gnu=no 3813fi 3814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3815ac_cv_c_compiler_gnu=$ac_compiler_gnu 3816 3817fi 3818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3819printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3820ac_compiler_gnu=$ac_cv_c_compiler_gnu 3821 3822if test $ac_compiler_gnu = yes; then 3823 GCC=yes 3824else 3825 GCC= 3826fi 3827ac_test_CFLAGS=${CFLAGS+y} 3828ac_save_CFLAGS=$CFLAGS 3829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3830printf %s "checking whether $CC accepts -g... " >&6; } 3831if test ${ac_cv_prog_cc_g+y} 3832then : 3833 printf %s "(cached) " >&6 3834else $as_nop 3835 ac_save_c_werror_flag=$ac_c_werror_flag 3836 ac_c_werror_flag=yes 3837 ac_cv_prog_cc_g=no 3838 CFLAGS="-g" 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841 3842int 3843main (void) 3844{ 3845 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850if ac_fn_c_try_compile "$LINENO" 3851then : 3852 ac_cv_prog_cc_g=yes 3853else $as_nop 3854 CFLAGS="" 3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3856/* end confdefs.h. */ 3857 3858int 3859main (void) 3860{ 3861 3862 ; 3863 return 0; 3864} 3865_ACEOF 3866if ac_fn_c_try_compile "$LINENO" 3867then : 3868 3869else $as_nop 3870 ac_c_werror_flag=$ac_save_c_werror_flag 3871 CFLAGS="-g" 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874 3875int 3876main (void) 3877{ 3878 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883if ac_fn_c_try_compile "$LINENO" 3884then : 3885 ac_cv_prog_cc_g=yes 3886fi 3887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3888fi 3889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3890fi 3891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3892 ac_c_werror_flag=$ac_save_c_werror_flag 3893fi 3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3895printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3896if test $ac_test_CFLAGS; then 3897 CFLAGS=$ac_save_CFLAGS 3898elif test $ac_cv_prog_cc_g = yes; then 3899 if test "$GCC" = yes; then 3900 CFLAGS="-g -O2" 3901 else 3902 CFLAGS="-g" 3903 fi 3904else 3905 if test "$GCC" = yes; then 3906 CFLAGS="-O2" 3907 else 3908 CFLAGS= 3909 fi 3910fi 3911ac_prog_cc_stdc=no 3912if test x$ac_prog_cc_stdc = xno 3913then : 3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3915printf %s "checking for $CC option to enable C11 features... " >&6; } 3916if test ${ac_cv_prog_cc_c11+y} 3917then : 3918 printf %s "(cached) " >&6 3919else $as_nop 3920 ac_cv_prog_cc_c11=no 3921ac_save_CC=$CC 3922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3923/* end confdefs.h. */ 3924$ac_c_conftest_c11_program 3925_ACEOF 3926for ac_arg in '' -std=gnu11 3927do 3928 CC="$ac_save_CC $ac_arg" 3929 if ac_fn_c_try_compile "$LINENO" 3930then : 3931 ac_cv_prog_cc_c11=$ac_arg 3932fi 3933rm -f core conftest.err conftest.$ac_objext conftest.beam 3934 test "x$ac_cv_prog_cc_c11" != "xno" && break 3935done 3936rm -f conftest.$ac_ext 3937CC=$ac_save_CC 3938fi 3939 3940if test "x$ac_cv_prog_cc_c11" = xno 3941then : 3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3943printf "%s\n" "unsupported" >&6; } 3944else $as_nop 3945 if test "x$ac_cv_prog_cc_c11" = x 3946then : 3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3948printf "%s\n" "none needed" >&6; } 3949else $as_nop 3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3951printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3952 CC="$CC $ac_cv_prog_cc_c11" 3953fi 3954 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3955 ac_prog_cc_stdc=c11 3956fi 3957fi 3958if test x$ac_prog_cc_stdc = xno 3959then : 3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3961printf %s "checking for $CC option to enable C99 features... " >&6; } 3962if test ${ac_cv_prog_cc_c99+y} 3963then : 3964 printf %s "(cached) " >&6 3965else $as_nop 3966 ac_cv_prog_cc_c99=no 3967ac_save_CC=$CC 3968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3969/* end confdefs.h. */ 3970$ac_c_conftest_c99_program 3971_ACEOF 3972for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3973do 3974 CC="$ac_save_CC $ac_arg" 3975 if ac_fn_c_try_compile "$LINENO" 3976then : 3977 ac_cv_prog_cc_c99=$ac_arg 3978fi 3979rm -f core conftest.err conftest.$ac_objext conftest.beam 3980 test "x$ac_cv_prog_cc_c99" != "xno" && break 3981done 3982rm -f conftest.$ac_ext 3983CC=$ac_save_CC 3984fi 3985 3986if test "x$ac_cv_prog_cc_c99" = xno 3987then : 3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3989printf "%s\n" "unsupported" >&6; } 3990else $as_nop 3991 if test "x$ac_cv_prog_cc_c99" = x 3992then : 3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3994printf "%s\n" "none needed" >&6; } 3995else $as_nop 3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3997printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3998 CC="$CC $ac_cv_prog_cc_c99" 3999fi 4000 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4001 ac_prog_cc_stdc=c99 4002fi 4003fi 4004if test x$ac_prog_cc_stdc = xno 4005then : 4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4007printf %s "checking for $CC option to enable C89 features... " >&6; } 4008if test ${ac_cv_prog_cc_c89+y} 4009then : 4010 printf %s "(cached) " >&6 4011else $as_nop 4012 ac_cv_prog_cc_c89=no 4013ac_save_CC=$CC 4014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016$ac_c_conftest_c89_program 4017_ACEOF 4018for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4019do 4020 CC="$ac_save_CC $ac_arg" 4021 if ac_fn_c_try_compile "$LINENO" 4022then : 4023 ac_cv_prog_cc_c89=$ac_arg 4024fi 4025rm -f core conftest.err conftest.$ac_objext conftest.beam 4026 test "x$ac_cv_prog_cc_c89" != "xno" && break 4027done 4028rm -f conftest.$ac_ext 4029CC=$ac_save_CC 4030fi 4031 4032if test "x$ac_cv_prog_cc_c89" = xno 4033then : 4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4035printf "%s\n" "unsupported" >&6; } 4036else $as_nop 4037 if test "x$ac_cv_prog_cc_c89" = x 4038then : 4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4040printf "%s\n" "none needed" >&6; } 4041else $as_nop 4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4043printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4044 CC="$CC $ac_cv_prog_cc_c89" 4045fi 4046 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4047 ac_prog_cc_stdc=c89 4048fi 4049fi 4050 4051ac_ext=c 4052ac_cpp='$CPP $CPPFLAGS' 4053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4055ac_compiler_gnu=$ac_cv_c_compiler_gnu 4056 4057 4058ac_header= ac_cache= 4059for ac_item in $ac_header_c_list 4060do 4061 if test $ac_cache; then 4062 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4063 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4064 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4065 fi 4066 ac_header= ac_cache= 4067 elif test $ac_header; then 4068 ac_cache=$ac_item 4069 else 4070 ac_header=$ac_item 4071 fi 4072done 4073 4074 4075 4076 4077 4078 4079 4080 4081if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4082then : 4083 4084printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4085 4086fi 4087 4088 4089 4090 4091 4092 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4094printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4095if test ${ac_cv_safe_to_define___extensions__+y} 4096then : 4097 printf %s "(cached) " >&6 4098else $as_nop 4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100/* end confdefs.h. */ 4101 4102# define __EXTENSIONS__ 1 4103 $ac_includes_default 4104int 4105main (void) 4106{ 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112if ac_fn_c_try_compile "$LINENO" 4113then : 4114 ac_cv_safe_to_define___extensions__=yes 4115else $as_nop 4116 ac_cv_safe_to_define___extensions__=no 4117fi 4118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4119fi 4120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4121printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4122 4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4124printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4125if test ${ac_cv_should_define__xopen_source+y} 4126then : 4127 printf %s "(cached) " >&6 4128else $as_nop 4129 ac_cv_should_define__xopen_source=no 4130 if test $ac_cv_header_wchar_h = yes 4131then : 4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4133/* end confdefs.h. */ 4134 4135 #include <wchar.h> 4136 mbstate_t x; 4137int 4138main (void) 4139{ 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145if ac_fn_c_try_compile "$LINENO" 4146then : 4147 4148else $as_nop 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151 4152 #define _XOPEN_SOURCE 500 4153 #include <wchar.h> 4154 mbstate_t x; 4155int 4156main (void) 4157{ 4158 4159 ; 4160 return 0; 4161} 4162_ACEOF 4163if ac_fn_c_try_compile "$LINENO" 4164then : 4165 ac_cv_should_define__xopen_source=yes 4166fi 4167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4168fi 4169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4170fi 4171fi 4172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4173printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4174 4175 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4176 4177 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4178 4179 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4180 4181 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4182 4183 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4184 4185 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4186 4187 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4188 4189 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4190 4191 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4192 4193 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4194 4195 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4196 4197 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4198 4199 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4200 4201 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4202 4203 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4204 4205 if test $ac_cv_header_minix_config_h = yes 4206then : 4207 MINIX=yes 4208 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4209 4210 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4211 4212 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4213 4214else $as_nop 4215 MINIX= 4216fi 4217 if test $ac_cv_safe_to_define___extensions__ = yes 4218then : 4219 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4220 4221fi 4222 if test $ac_cv_should_define__xopen_source = yes 4223then : 4224 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4225 4226fi 4227 4228if test "$ac_cv_header_minix_config_h" = "yes"; then 4229 4230printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4231 4232fi 4233 4234 4235case `pwd` in 4236 *\ * | *\ *) 4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4238printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4239esac 4240 4241 4242 4243macro_version='2.4.7' 4244macro_revision='2.4.7' 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259ltmain=$ac_aux_dir/ltmain.sh 4260 4261 4262 4263 # Make sure we can run config.sub. 4264$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4265 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4266 4267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4268printf %s "checking build system type... " >&6; } 4269if test ${ac_cv_build+y} 4270then : 4271 printf %s "(cached) " >&6 4272else $as_nop 4273 ac_build_alias=$build_alias 4274test "x$ac_build_alias" = x && 4275 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4276test "x$ac_build_alias" = x && 4277 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4278ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4279 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4280 4281fi 4282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4283printf "%s\n" "$ac_cv_build" >&6; } 4284case $ac_cv_build in 4285*-*-*) ;; 4286*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4287esac 4288build=$ac_cv_build 4289ac_save_IFS=$IFS; IFS='-' 4290set x $ac_cv_build 4291shift 4292build_cpu=$1 4293build_vendor=$2 4294shift; shift 4295# Remember, the first character of IFS is used to create $*, 4296# except with old shells: 4297build_os=$* 4298IFS=$ac_save_IFS 4299case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4300 4301 4302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4303printf %s "checking host system type... " >&6; } 4304if test ${ac_cv_host+y} 4305then : 4306 printf %s "(cached) " >&6 4307else $as_nop 4308 if test "x$host_alias" = x; then 4309 ac_cv_host=$ac_cv_build 4310else 4311 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4312 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4313fi 4314 4315fi 4316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4317printf "%s\n" "$ac_cv_host" >&6; } 4318case $ac_cv_host in 4319*-*-*) ;; 4320*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4321esac 4322host=$ac_cv_host 4323ac_save_IFS=$IFS; IFS='-' 4324set x $ac_cv_host 4325shift 4326host_cpu=$1 4327host_vendor=$2 4328shift; shift 4329# Remember, the first character of IFS is used to create $*, 4330# except with old shells: 4331host_os=$* 4332IFS=$ac_save_IFS 4333case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4334 4335 4336# Backslashify metacharacters that are still active within 4337# double-quoted strings. 4338sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4339 4340# Same as above, but do not quote variable references. 4341double_quote_subst='s/\(["`\\]\)/\\\1/g' 4342 4343# Sed substitution to delay expansion of an escaped shell variable in a 4344# double_quote_subst'ed string. 4345delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4346 4347# Sed substitution to delay expansion of an escaped single quote. 4348delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4349 4350# Sed substitution to avoid accidental globbing in evaled expressions 4351no_glob_subst='s/\*/\\\*/g' 4352 4353ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4354ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4355ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4356 4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4358printf %s "checking how to print strings... " >&6; } 4359# Test print first, because it will be a builtin if present. 4360if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4361 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4362 ECHO='print -r --' 4363elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4364 ECHO='printf %s\n' 4365else 4366 # Use this function as a fallback that always works. 4367 func_fallback_echo () 4368 { 4369 eval 'cat <<_LTECHO_EOF 4370$1 4371_LTECHO_EOF' 4372 } 4373 ECHO='func_fallback_echo' 4374fi 4375 4376# func_echo_all arg... 4377# Invoke $ECHO with all args, space-separated. 4378func_echo_all () 4379{ 4380 $ECHO "" 4381} 4382 4383case $ECHO in 4384 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4385printf "%s\n" "printf" >&6; } ;; 4386 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4387printf "%s\n" "print -r" >&6; } ;; 4388 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4389printf "%s\n" "cat" >&6; } ;; 4390esac 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4406printf %s "checking for a sed that does not truncate output... " >&6; } 4407if test ${ac_cv_path_SED+y} 4408then : 4409 printf %s "(cached) " >&6 4410else $as_nop 4411 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4412 for ac_i in 1 2 3 4 5 6 7; do 4413 ac_script="$ac_script$as_nl$ac_script" 4414 done 4415 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4416 { ac_script=; unset ac_script;} 4417 if test -z "$SED"; then 4418 ac_path_SED_found=false 4419 # Loop through the user's path and test for each of PROGNAME-LIST 4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421for as_dir in $PATH 4422do 4423 IFS=$as_save_IFS 4424 case $as_dir in #((( 4425 '') as_dir=./ ;; 4426 */) ;; 4427 *) as_dir=$as_dir/ ;; 4428 esac 4429 for ac_prog in sed gsed 4430 do 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4433 as_fn_executable_p "$ac_path_SED" || continue 4434# Check for GNU ac_path_SED and select it if it is found. 4435 # Check for GNU $ac_path_SED 4436case `"$ac_path_SED" --version 2>&1` in 4437*GNU*) 4438 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4439*) 4440 ac_count=0 4441 printf %s 0123456789 >"conftest.in" 4442 while : 4443 do 4444 cat "conftest.in" "conftest.in" >"conftest.tmp" 4445 mv "conftest.tmp" "conftest.in" 4446 cp "conftest.in" "conftest.nl" 4447 printf "%s\n" '' >> "conftest.nl" 4448 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4450 as_fn_arith $ac_count + 1 && ac_count=$as_val 4451 if test $ac_count -gt ${ac_path_SED_max-0}; then 4452 # Best one so far, save it but keep looking for a better one 4453 ac_cv_path_SED="$ac_path_SED" 4454 ac_path_SED_max=$ac_count 4455 fi 4456 # 10*(2^10) chars as input seems more than enough 4457 test $ac_count -gt 10 && break 4458 done 4459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4460esac 4461 4462 $ac_path_SED_found && break 3 4463 done 4464 done 4465 done 4466IFS=$as_save_IFS 4467 if test -z "$ac_cv_path_SED"; then 4468 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4469 fi 4470else 4471 ac_cv_path_SED=$SED 4472fi 4473 4474fi 4475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4476printf "%s\n" "$ac_cv_path_SED" >&6; } 4477 SED="$ac_cv_path_SED" 4478 rm -f conftest.sed 4479 4480test -z "$SED" && SED=sed 4481Xsed="$SED -e 1s/^X//" 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4494printf %s "checking for grep that handles long lines and -e... " >&6; } 4495if test ${ac_cv_path_GREP+y} 4496then : 4497 printf %s "(cached) " >&6 4498else $as_nop 4499 if test -z "$GREP"; then 4500 ac_path_GREP_found=false 4501 # Loop through the user's path and test for each of PROGNAME-LIST 4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4503for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4504do 4505 IFS=$as_save_IFS 4506 case $as_dir in #((( 4507 '') as_dir=./ ;; 4508 */) ;; 4509 *) as_dir=$as_dir/ ;; 4510 esac 4511 for ac_prog in grep ggrep 4512 do 4513 for ac_exec_ext in '' $ac_executable_extensions; do 4514 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4515 as_fn_executable_p "$ac_path_GREP" || continue 4516# Check for GNU ac_path_GREP and select it if it is found. 4517 # Check for GNU $ac_path_GREP 4518case `"$ac_path_GREP" --version 2>&1` in 4519*GNU*) 4520 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4521*) 4522 ac_count=0 4523 printf %s 0123456789 >"conftest.in" 4524 while : 4525 do 4526 cat "conftest.in" "conftest.in" >"conftest.tmp" 4527 mv "conftest.tmp" "conftest.in" 4528 cp "conftest.in" "conftest.nl" 4529 printf "%s\n" 'GREP' >> "conftest.nl" 4530 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4532 as_fn_arith $ac_count + 1 && ac_count=$as_val 4533 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4534 # Best one so far, save it but keep looking for a better one 4535 ac_cv_path_GREP="$ac_path_GREP" 4536 ac_path_GREP_max=$ac_count 4537 fi 4538 # 10*(2^10) chars as input seems more than enough 4539 test $ac_count -gt 10 && break 4540 done 4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4542esac 4543 4544 $ac_path_GREP_found && break 3 4545 done 4546 done 4547 done 4548IFS=$as_save_IFS 4549 if test -z "$ac_cv_path_GREP"; then 4550 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4551 fi 4552else 4553 ac_cv_path_GREP=$GREP 4554fi 4555 4556fi 4557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4558printf "%s\n" "$ac_cv_path_GREP" >&6; } 4559 GREP="$ac_cv_path_GREP" 4560 4561 4562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4563printf %s "checking for egrep... " >&6; } 4564if test ${ac_cv_path_EGREP+y} 4565then : 4566 printf %s "(cached) " >&6 4567else $as_nop 4568 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4569 then ac_cv_path_EGREP="$GREP -E" 4570 else 4571 if test -z "$EGREP"; then 4572 ac_path_EGREP_found=false 4573 # Loop through the user's path and test for each of PROGNAME-LIST 4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4575for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4576do 4577 IFS=$as_save_IFS 4578 case $as_dir in #((( 4579 '') as_dir=./ ;; 4580 */) ;; 4581 *) as_dir=$as_dir/ ;; 4582 esac 4583 for ac_prog in egrep 4584 do 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4587 as_fn_executable_p "$ac_path_EGREP" || continue 4588# Check for GNU ac_path_EGREP and select it if it is found. 4589 # Check for GNU $ac_path_EGREP 4590case `"$ac_path_EGREP" --version 2>&1` in 4591*GNU*) 4592 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4593*) 4594 ac_count=0 4595 printf %s 0123456789 >"conftest.in" 4596 while : 4597 do 4598 cat "conftest.in" "conftest.in" >"conftest.tmp" 4599 mv "conftest.tmp" "conftest.in" 4600 cp "conftest.in" "conftest.nl" 4601 printf "%s\n" 'EGREP' >> "conftest.nl" 4602 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4604 as_fn_arith $ac_count + 1 && ac_count=$as_val 4605 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4606 # Best one so far, save it but keep looking for a better one 4607 ac_cv_path_EGREP="$ac_path_EGREP" 4608 ac_path_EGREP_max=$ac_count 4609 fi 4610 # 10*(2^10) chars as input seems more than enough 4611 test $ac_count -gt 10 && break 4612 done 4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4614esac 4615 4616 $ac_path_EGREP_found && break 3 4617 done 4618 done 4619 done 4620IFS=$as_save_IFS 4621 if test -z "$ac_cv_path_EGREP"; then 4622 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4623 fi 4624else 4625 ac_cv_path_EGREP=$EGREP 4626fi 4627 4628 fi 4629fi 4630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4631printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4632 EGREP="$ac_cv_path_EGREP" 4633 4634 4635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4636printf %s "checking for fgrep... " >&6; } 4637if test ${ac_cv_path_FGREP+y} 4638then : 4639 printf %s "(cached) " >&6 4640else $as_nop 4641 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4642 then ac_cv_path_FGREP="$GREP -F" 4643 else 4644 if test -z "$FGREP"; then 4645 ac_path_FGREP_found=false 4646 # Loop through the user's path and test for each of PROGNAME-LIST 4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4649do 4650 IFS=$as_save_IFS 4651 case $as_dir in #((( 4652 '') as_dir=./ ;; 4653 */) ;; 4654 *) as_dir=$as_dir/ ;; 4655 esac 4656 for ac_prog in fgrep 4657 do 4658 for ac_exec_ext in '' $ac_executable_extensions; do 4659 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4660 as_fn_executable_p "$ac_path_FGREP" || continue 4661# Check for GNU ac_path_FGREP and select it if it is found. 4662 # Check for GNU $ac_path_FGREP 4663case `"$ac_path_FGREP" --version 2>&1` in 4664*GNU*) 4665 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4666*) 4667 ac_count=0 4668 printf %s 0123456789 >"conftest.in" 4669 while : 4670 do 4671 cat "conftest.in" "conftest.in" >"conftest.tmp" 4672 mv "conftest.tmp" "conftest.in" 4673 cp "conftest.in" "conftest.nl" 4674 printf "%s\n" 'FGREP' >> "conftest.nl" 4675 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4677 as_fn_arith $ac_count + 1 && ac_count=$as_val 4678 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4679 # Best one so far, save it but keep looking for a better one 4680 ac_cv_path_FGREP="$ac_path_FGREP" 4681 ac_path_FGREP_max=$ac_count 4682 fi 4683 # 10*(2^10) chars as input seems more than enough 4684 test $ac_count -gt 10 && break 4685 done 4686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4687esac 4688 4689 $ac_path_FGREP_found && break 3 4690 done 4691 done 4692 done 4693IFS=$as_save_IFS 4694 if test -z "$ac_cv_path_FGREP"; then 4695 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4696 fi 4697else 4698 ac_cv_path_FGREP=$FGREP 4699fi 4700 4701 fi 4702fi 4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4704printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4705 FGREP="$ac_cv_path_FGREP" 4706 4707 4708test -z "$GREP" && GREP=grep 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728# Check whether --with-gnu-ld was given. 4729if test ${with_gnu_ld+y} 4730then : 4731 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4732else $as_nop 4733 with_gnu_ld=no 4734fi 4735 4736ac_prog=ld 4737if test yes = "$GCC"; then 4738 # Check if gcc -print-prog-name=ld gives a path. 4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4740printf %s "checking for ld used by $CC... " >&6; } 4741 case $host in 4742 *-*-mingw*) 4743 # gcc leaves a trailing carriage return, which upsets mingw 4744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4745 *) 4746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4747 esac 4748 case $ac_prog in 4749 # Accept absolute paths. 4750 [\\/]* | ?:[\\/]*) 4751 re_direlt='/[^/][^/]*/\.\./' 4752 # Canonicalize the pathname of ld 4753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4756 done 4757 test -z "$LD" && LD=$ac_prog 4758 ;; 4759 "") 4760 # If it fails, then pretend we aren't using GCC. 4761 ac_prog=ld 4762 ;; 4763 *) 4764 # If it is relative, then search for the first ld in PATH. 4765 with_gnu_ld=unknown 4766 ;; 4767 esac 4768elif test yes = "$with_gnu_ld"; then 4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4770printf %s "checking for GNU ld... " >&6; } 4771else 4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4773printf %s "checking for non-GNU ld... " >&6; } 4774fi 4775if test ${lt_cv_path_LD+y} 4776then : 4777 printf %s "(cached) " >&6 4778else $as_nop 4779 if test -z "$LD"; then 4780 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4781 for ac_dir in $PATH; do 4782 IFS=$lt_save_ifs 4783 test -z "$ac_dir" && ac_dir=. 4784 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4785 lt_cv_path_LD=$ac_dir/$ac_prog 4786 # Check to see if the program is GNU ld. I'd rather use --version, 4787 # but apparently some variants of GNU ld only accept -v. 4788 # Break only if it was the GNU/non-GNU ld that we prefer. 4789 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4790 *GNU* | *'with BFD'*) 4791 test no != "$with_gnu_ld" && break 4792 ;; 4793 *) 4794 test yes != "$with_gnu_ld" && break 4795 ;; 4796 esac 4797 fi 4798 done 4799 IFS=$lt_save_ifs 4800else 4801 lt_cv_path_LD=$LD # Let the user override the test with a path. 4802fi 4803fi 4804 4805LD=$lt_cv_path_LD 4806if test -n "$LD"; then 4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4808printf "%s\n" "$LD" >&6; } 4809else 4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4811printf "%s\n" "no" >&6; } 4812fi 4813test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4815printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 4816if test ${lt_cv_prog_gnu_ld+y} 4817then : 4818 printf %s "(cached) " >&6 4819else $as_nop 4820 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4821case `$LD -v 2>&1 </dev/null` in 4822*GNU* | *'with BFD'*) 4823 lt_cv_prog_gnu_ld=yes 4824 ;; 4825*) 4826 lt_cv_prog_gnu_ld=no 4827 ;; 4828esac 4829fi 4830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4831printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 4832with_gnu_ld=$lt_cv_prog_gnu_ld 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4843printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4844if test ${lt_cv_path_NM+y} 4845then : 4846 printf %s "(cached) " >&6 4847else $as_nop 4848 if test -n "$NM"; then 4849 # Let the user override the test. 4850 lt_cv_path_NM=$NM 4851else 4852 lt_nm_to_check=${ac_tool_prefix}nm 4853 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4854 lt_nm_to_check="$lt_nm_to_check nm" 4855 fi 4856 for lt_tmp_nm in $lt_nm_to_check; do 4857 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4858 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4859 IFS=$lt_save_ifs 4860 test -z "$ac_dir" && ac_dir=. 4861 tmp_nm=$ac_dir/$lt_tmp_nm 4862 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4863 # Check to see if the nm accepts a BSD-compat flag. 4864 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4865 # nm: unknown option "B" ignored 4866 # Tru64's nm complains that /dev/null is an invalid object file 4867 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4868 case $build_os in 4869 mingw*) lt_bad_file=conftest.nm/nofile ;; 4870 *) lt_bad_file=/dev/null ;; 4871 esac 4872 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 4873 *$lt_bad_file* | *'Invalid file or object type'*) 4874 lt_cv_path_NM="$tmp_nm -B" 4875 break 2 4876 ;; 4877 *) 4878 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 4879 */dev/null*) 4880 lt_cv_path_NM="$tmp_nm -p" 4881 break 2 4882 ;; 4883 *) 4884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4885 continue # so that we can try to find one that supports BSD flags 4886 ;; 4887 esac 4888 ;; 4889 esac 4890 fi 4891 done 4892 IFS=$lt_save_ifs 4893 done 4894 : ${lt_cv_path_NM=no} 4895fi 4896fi 4897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4898printf "%s\n" "$lt_cv_path_NM" >&6; } 4899if test no != "$lt_cv_path_NM"; then 4900 NM=$lt_cv_path_NM 4901else 4902 # Didn't find any BSD compatible name lister, look for dumpbin. 4903 if test -n "$DUMPBIN"; then : 4904 # Let the user override the test. 4905 else 4906 if test -n "$ac_tool_prefix"; then 4907 for ac_prog in dumpbin "link -dump" 4908 do 4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4910set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4912printf %s "checking for $ac_word... " >&6; } 4913if test ${ac_cv_prog_DUMPBIN+y} 4914then : 4915 printf %s "(cached) " >&6 4916else $as_nop 4917 if test -n "$DUMPBIN"; then 4918 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4919else 4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4921for as_dir in $PATH 4922do 4923 IFS=$as_save_IFS 4924 case $as_dir in #((( 4925 '') as_dir=./ ;; 4926 */) ;; 4927 *) as_dir=$as_dir/ ;; 4928 esac 4929 for ac_exec_ext in '' $ac_executable_extensions; do 4930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4931 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4933 break 2 4934 fi 4935done 4936 done 4937IFS=$as_save_IFS 4938 4939fi 4940fi 4941DUMPBIN=$ac_cv_prog_DUMPBIN 4942if test -n "$DUMPBIN"; then 4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4944printf "%s\n" "$DUMPBIN" >&6; } 4945else 4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4947printf "%s\n" "no" >&6; } 4948fi 4949 4950 4951 test -n "$DUMPBIN" && break 4952 done 4953fi 4954if test -z "$DUMPBIN"; then 4955 ac_ct_DUMPBIN=$DUMPBIN 4956 for ac_prog in dumpbin "link -dump" 4957do 4958 # Extract the first word of "$ac_prog", so it can be a program name with args. 4959set dummy $ac_prog; ac_word=$2 4960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4961printf %s "checking for $ac_word... " >&6; } 4962if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 4963then : 4964 printf %s "(cached) " >&6 4965else $as_nop 4966 if test -n "$ac_ct_DUMPBIN"; then 4967 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4968else 4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4970for as_dir in $PATH 4971do 4972 IFS=$as_save_IFS 4973 case $as_dir in #((( 4974 '') as_dir=./ ;; 4975 */) ;; 4976 *) as_dir=$as_dir/ ;; 4977 esac 4978 for ac_exec_ext in '' $ac_executable_extensions; do 4979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4980 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4982 break 2 4983 fi 4984done 4985 done 4986IFS=$as_save_IFS 4987 4988fi 4989fi 4990ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4991if test -n "$ac_ct_DUMPBIN"; then 4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4993printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 4994else 4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4996printf "%s\n" "no" >&6; } 4997fi 4998 4999 5000 test -n "$ac_ct_DUMPBIN" && break 5001done 5002 5003 if test "x$ac_ct_DUMPBIN" = x; then 5004 DUMPBIN=":" 5005 else 5006 case $cross_compiling:$ac_tool_warned in 5007yes:) 5008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5009printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5010ac_tool_warned=yes ;; 5011esac 5012 DUMPBIN=$ac_ct_DUMPBIN 5013 fi 5014fi 5015 5016 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5017 *COFF*) 5018 DUMPBIN="$DUMPBIN -symbols -headers" 5019 ;; 5020 *) 5021 DUMPBIN=: 5022 ;; 5023 esac 5024 fi 5025 5026 if test : != "$DUMPBIN"; then 5027 NM=$DUMPBIN 5028 fi 5029fi 5030test -z "$NM" && NM=nm 5031 5032 5033 5034 5035 5036 5037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5038printf %s "checking the name lister ($NM) interface... " >&6; } 5039if test ${lt_cv_nm_interface+y} 5040then : 5041 printf %s "(cached) " >&6 5042else $as_nop 5043 lt_cv_nm_interface="BSD nm" 5044 echo "int some_variable = 0;" > conftest.$ac_ext 5045 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5046 (eval "$ac_compile" 2>conftest.err) 5047 cat conftest.err >&5 5048 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5049 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5050 cat conftest.err >&5 5051 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5052 cat conftest.out >&5 5053 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5054 lt_cv_nm_interface="MS dumpbin" 5055 fi 5056 rm -f conftest* 5057fi 5058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5059printf "%s\n" "$lt_cv_nm_interface" >&6; } 5060 5061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5062printf %s "checking whether ln -s works... " >&6; } 5063LN_S=$as_ln_s 5064if test "$LN_S" = "ln -s"; then 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5066printf "%s\n" "yes" >&6; } 5067else 5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5069printf "%s\n" "no, using $LN_S" >&6; } 5070fi 5071 5072# find the maximum length of command line arguments 5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5074printf %s "checking the maximum length of command line arguments... " >&6; } 5075if test ${lt_cv_sys_max_cmd_len+y} 5076then : 5077 printf %s "(cached) " >&6 5078else $as_nop 5079 i=0 5080 teststring=ABCD 5081 5082 case $build_os in 5083 msdosdjgpp*) 5084 # On DJGPP, this test can blow up pretty badly due to problems in libc 5085 # (any single argument exceeding 2000 bytes causes a buffer overrun 5086 # during glob expansion). Even if it were fixed, the result of this 5087 # check would be larger than it should be. 5088 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5089 ;; 5090 5091 gnu*) 5092 # Under GNU Hurd, this test is not required because there is 5093 # no limit to the length of command line arguments. 5094 # Libtool will interpret -1 as no limit whatsoever 5095 lt_cv_sys_max_cmd_len=-1; 5096 ;; 5097 5098 cygwin* | mingw* | cegcc*) 5099 # On Win9x/ME, this test blows up -- it succeeds, but takes 5100 # about 5 minutes as the teststring grows exponentially. 5101 # Worse, since 9x/ME are not pre-emptively multitasking, 5102 # you end up with a "frozen" computer, even though with patience 5103 # the test eventually succeeds (with a max line length of 256k). 5104 # Instead, let's just punt: use the minimum linelength reported by 5105 # all of the supported platforms: 8192 (on NT/2K/XP). 5106 lt_cv_sys_max_cmd_len=8192; 5107 ;; 5108 5109 mint*) 5110 # On MiNT this can take a long time and run out of memory. 5111 lt_cv_sys_max_cmd_len=8192; 5112 ;; 5113 5114 amigaos*) 5115 # On AmigaOS with pdksh, this test takes hours, literally. 5116 # So we just punt and use a minimum line length of 8192. 5117 lt_cv_sys_max_cmd_len=8192; 5118 ;; 5119 5120 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5121 # This has been around since 386BSD, at least. Likely further. 5122 if test -x /sbin/sysctl; then 5123 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5124 elif test -x /usr/sbin/sysctl; then 5125 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5126 else 5127 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5128 fi 5129 # And add a safety zone 5130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5132 ;; 5133 5134 interix*) 5135 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5136 lt_cv_sys_max_cmd_len=196608 5137 ;; 5138 5139 os2*) 5140 # The test takes a long time on OS/2. 5141 lt_cv_sys_max_cmd_len=8192 5142 ;; 5143 5144 osf*) 5145 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5146 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5147 # nice to cause kernel panics so lets avoid the loop below. 5148 # First set a reasonable default. 5149 lt_cv_sys_max_cmd_len=16384 5150 # 5151 if test -x /sbin/sysconfig; then 5152 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5153 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5154 esac 5155 fi 5156 ;; 5157 sco3.2v5*) 5158 lt_cv_sys_max_cmd_len=102400 5159 ;; 5160 sysv5* | sco5v6* | sysv4.2uw2*) 5161 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5162 if test -n "$kargmax"; then 5163 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5164 else 5165 lt_cv_sys_max_cmd_len=32768 5166 fi 5167 ;; 5168 *) 5169 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5170 if test -n "$lt_cv_sys_max_cmd_len" && \ 5171 test undefined != "$lt_cv_sys_max_cmd_len"; then 5172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5174 else 5175 # Make teststring a little bigger before we do anything with it. 5176 # a 1K string should be a reasonable start. 5177 for i in 1 2 3 4 5 6 7 8; do 5178 teststring=$teststring$teststring 5179 done 5180 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5181 # If test is not a shell built-in, we'll probably end up computing a 5182 # maximum length that is only half of the actual maximum length, but 5183 # we can't tell. 5184 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5185 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5186 test 17 != "$i" # 1/2 MB should be enough 5187 do 5188 i=`expr $i + 1` 5189 teststring=$teststring$teststring 5190 done 5191 # Only check the string length outside the loop. 5192 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5193 teststring= 5194 # Add a significant safety factor because C++ compilers can tack on 5195 # massive amounts of additional arguments before passing them to the 5196 # linker. It appears as though 1/2 is a usable value. 5197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5198 fi 5199 ;; 5200 esac 5201 5202fi 5203 5204if test -n "$lt_cv_sys_max_cmd_len"; then 5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5206printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5207else 5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5209printf "%s\n" "none" >&6; } 5210fi 5211max_cmd_len=$lt_cv_sys_max_cmd_len 5212 5213 5214 5215 5216 5217 5218: ${CP="cp -f"} 5219: ${MV="mv -f"} 5220: ${RM="rm -f"} 5221 5222if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5223 lt_unset=unset 5224else 5225 lt_unset=false 5226fi 5227 5228 5229 5230 5231 5232# test EBCDIC or ASCII 5233case `echo X|tr X '\101'` in 5234 A) # ASCII based system 5235 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5236 lt_SP2NL='tr \040 \012' 5237 lt_NL2SP='tr \015\012 \040\040' 5238 ;; 5239 *) # EBCDIC based system 5240 lt_SP2NL='tr \100 \n' 5241 lt_NL2SP='tr \r\n \100\100' 5242 ;; 5243esac 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5254printf %s "checking how to convert $build file names to $host format... " >&6; } 5255if test ${lt_cv_to_host_file_cmd+y} 5256then : 5257 printf %s "(cached) " >&6 5258else $as_nop 5259 case $host in 5260 *-*-mingw* ) 5261 case $build in 5262 *-*-mingw* ) # actually msys 5263 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5264 ;; 5265 *-*-cygwin* ) 5266 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5267 ;; 5268 * ) # otherwise, assume *nix 5269 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5270 ;; 5271 esac 5272 ;; 5273 *-*-cygwin* ) 5274 case $build in 5275 *-*-mingw* ) # actually msys 5276 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5277 ;; 5278 *-*-cygwin* ) 5279 lt_cv_to_host_file_cmd=func_convert_file_noop 5280 ;; 5281 * ) # otherwise, assume *nix 5282 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5283 ;; 5284 esac 5285 ;; 5286 * ) # unhandled hosts (and "normal" native builds) 5287 lt_cv_to_host_file_cmd=func_convert_file_noop 5288 ;; 5289esac 5290 5291fi 5292 5293to_host_file_cmd=$lt_cv_to_host_file_cmd 5294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5295printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5296 5297 5298 5299 5300 5301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5302printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5303if test ${lt_cv_to_tool_file_cmd+y} 5304then : 5305 printf %s "(cached) " >&6 5306else $as_nop 5307 #assume ordinary cross tools, or native build. 5308lt_cv_to_tool_file_cmd=func_convert_file_noop 5309case $host in 5310 *-*-mingw* ) 5311 case $build in 5312 *-*-mingw* ) # actually msys 5313 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5314 ;; 5315 esac 5316 ;; 5317esac 5318 5319fi 5320 5321to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5323printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5324 5325 5326 5327 5328 5329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5330printf %s "checking for $LD option to reload object files... " >&6; } 5331if test ${lt_cv_ld_reload_flag+y} 5332then : 5333 printf %s "(cached) " >&6 5334else $as_nop 5335 lt_cv_ld_reload_flag='-r' 5336fi 5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5338printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5339reload_flag=$lt_cv_ld_reload_flag 5340case $reload_flag in 5341"" | " "*) ;; 5342*) reload_flag=" $reload_flag" ;; 5343esac 5344reload_cmds='$LD$reload_flag -o $output$reload_objs' 5345case $host_os in 5346 cygwin* | mingw* | pw32* | cegcc*) 5347 if test yes != "$GCC"; then 5348 reload_cmds=false 5349 fi 5350 ;; 5351 darwin*) 5352 if test yes = "$GCC"; then 5353 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5354 else 5355 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5356 fi 5357 ;; 5358esac 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368if test -n "$ac_tool_prefix"; then 5369 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5370set dummy ${ac_tool_prefix}file; ac_word=$2 5371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5372printf %s "checking for $ac_word... " >&6; } 5373if test ${ac_cv_prog_FILECMD+y} 5374then : 5375 printf %s "(cached) " >&6 5376else $as_nop 5377 if test -n "$FILECMD"; then 5378 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5379else 5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5381for as_dir in $PATH 5382do 5383 IFS=$as_save_IFS 5384 case $as_dir in #((( 5385 '') as_dir=./ ;; 5386 */) ;; 5387 *) as_dir=$as_dir/ ;; 5388 esac 5389 for ac_exec_ext in '' $ac_executable_extensions; do 5390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5391 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5393 break 2 5394 fi 5395done 5396 done 5397IFS=$as_save_IFS 5398 5399fi 5400fi 5401FILECMD=$ac_cv_prog_FILECMD 5402if test -n "$FILECMD"; then 5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5404printf "%s\n" "$FILECMD" >&6; } 5405else 5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5407printf "%s\n" "no" >&6; } 5408fi 5409 5410 5411fi 5412if test -z "$ac_cv_prog_FILECMD"; then 5413 ac_ct_FILECMD=$FILECMD 5414 # Extract the first word of "file", so it can be a program name with args. 5415set dummy file; ac_word=$2 5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5417printf %s "checking for $ac_word... " >&6; } 5418if test ${ac_cv_prog_ac_ct_FILECMD+y} 5419then : 5420 printf %s "(cached) " >&6 5421else $as_nop 5422 if test -n "$ac_ct_FILECMD"; then 5423 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5424else 5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH 5427do 5428 IFS=$as_save_IFS 5429 case $as_dir in #((( 5430 '') as_dir=./ ;; 5431 */) ;; 5432 *) as_dir=$as_dir/ ;; 5433 esac 5434 for ac_exec_ext in '' $ac_executable_extensions; do 5435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5436 ac_cv_prog_ac_ct_FILECMD="file" 5437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5438 break 2 5439 fi 5440done 5441 done 5442IFS=$as_save_IFS 5443 5444fi 5445fi 5446ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5447if test -n "$ac_ct_FILECMD"; then 5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5449printf "%s\n" "$ac_ct_FILECMD" >&6; } 5450else 5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5452printf "%s\n" "no" >&6; } 5453fi 5454 5455 if test "x$ac_ct_FILECMD" = x; then 5456 FILECMD=":" 5457 else 5458 case $cross_compiling:$ac_tool_warned in 5459yes:) 5460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5461printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5462ac_tool_warned=yes ;; 5463esac 5464 FILECMD=$ac_ct_FILECMD 5465 fi 5466else 5467 FILECMD="$ac_cv_prog_FILECMD" 5468fi 5469 5470 5471 5472 5473 5474 5475 5476if test -n "$ac_tool_prefix"; then 5477 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5478set dummy ${ac_tool_prefix}objdump; ac_word=$2 5479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5480printf %s "checking for $ac_word... " >&6; } 5481if test ${ac_cv_prog_OBJDUMP+y} 5482then : 5483 printf %s "(cached) " >&6 5484else $as_nop 5485 if test -n "$OBJDUMP"; then 5486 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5487else 5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5489for as_dir in $PATH 5490do 5491 IFS=$as_save_IFS 5492 case $as_dir in #((( 5493 '') as_dir=./ ;; 5494 */) ;; 5495 *) as_dir=$as_dir/ ;; 5496 esac 5497 for ac_exec_ext in '' $ac_executable_extensions; do 5498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5499 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5501 break 2 5502 fi 5503done 5504 done 5505IFS=$as_save_IFS 5506 5507fi 5508fi 5509OBJDUMP=$ac_cv_prog_OBJDUMP 5510if test -n "$OBJDUMP"; then 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5512printf "%s\n" "$OBJDUMP" >&6; } 5513else 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5515printf "%s\n" "no" >&6; } 5516fi 5517 5518 5519fi 5520if test -z "$ac_cv_prog_OBJDUMP"; then 5521 ac_ct_OBJDUMP=$OBJDUMP 5522 # Extract the first word of "objdump", so it can be a program name with args. 5523set dummy objdump; ac_word=$2 5524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5525printf %s "checking for $ac_word... " >&6; } 5526if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5527then : 5528 printf %s "(cached) " >&6 5529else $as_nop 5530 if test -n "$ac_ct_OBJDUMP"; then 5531 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5532else 5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5534for as_dir in $PATH 5535do 5536 IFS=$as_save_IFS 5537 case $as_dir in #((( 5538 '') as_dir=./ ;; 5539 */) ;; 5540 *) as_dir=$as_dir/ ;; 5541 esac 5542 for ac_exec_ext in '' $ac_executable_extensions; do 5543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5544 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5546 break 2 5547 fi 5548done 5549 done 5550IFS=$as_save_IFS 5551 5552fi 5553fi 5554ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5555if test -n "$ac_ct_OBJDUMP"; then 5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5557printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5558else 5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5560printf "%s\n" "no" >&6; } 5561fi 5562 5563 if test "x$ac_ct_OBJDUMP" = x; then 5564 OBJDUMP="false" 5565 else 5566 case $cross_compiling:$ac_tool_warned in 5567yes:) 5568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5569printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5570ac_tool_warned=yes ;; 5571esac 5572 OBJDUMP=$ac_ct_OBJDUMP 5573 fi 5574else 5575 OBJDUMP="$ac_cv_prog_OBJDUMP" 5576fi 5577 5578test -z "$OBJDUMP" && OBJDUMP=objdump 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5589printf %s "checking how to recognize dependent libraries... " >&6; } 5590if test ${lt_cv_deplibs_check_method+y} 5591then : 5592 printf %s "(cached) " >&6 5593else $as_nop 5594 lt_cv_file_magic_cmd='$MAGIC_CMD' 5595lt_cv_file_magic_test_file= 5596lt_cv_deplibs_check_method='unknown' 5597# Need to set the preceding variable on all platforms that support 5598# interlibrary dependencies. 5599# 'none' -- dependencies not supported. 5600# 'unknown' -- same as none, but documents that we really don't know. 5601# 'pass_all' -- all dependencies passed with no checks. 5602# 'test_compile' -- check by making test program. 5603# 'file_magic [[regex]]' -- check by looking for files in library path 5604# that responds to the $file_magic_cmd with a given extended regex. 5605# If you have 'file' or equivalent on your system and you're not sure 5606# whether 'pass_all' will *always* work, you probably want this one. 5607 5608case $host_os in 5609aix[4-9]*) 5610 lt_cv_deplibs_check_method=pass_all 5611 ;; 5612 5613beos*) 5614 lt_cv_deplibs_check_method=pass_all 5615 ;; 5616 5617bsdi[45]*) 5618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5619 lt_cv_file_magic_cmd='$FILECMD -L' 5620 lt_cv_file_magic_test_file=/shlib/libc.so 5621 ;; 5622 5623cygwin*) 5624 # func_win32_libid is a shell function defined in ltmain.sh 5625 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5626 lt_cv_file_magic_cmd='func_win32_libid' 5627 ;; 5628 5629mingw* | pw32*) 5630 # Base MSYS/MinGW do not provide the 'file' command needed by 5631 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5632 # unless we find 'file', for example because we are cross-compiling. 5633 if ( file / ) >/dev/null 2>&1; then 5634 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5635 lt_cv_file_magic_cmd='func_win32_libid' 5636 else 5637 # Keep this pattern in sync with the one in func_win32_libid. 5638 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5639 lt_cv_file_magic_cmd='$OBJDUMP -f' 5640 fi 5641 ;; 5642 5643cegcc*) 5644 # use the weaker test based on 'objdump'. See mingw*. 5645 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5646 lt_cv_file_magic_cmd='$OBJDUMP -f' 5647 ;; 5648 5649darwin* | rhapsody*) 5650 lt_cv_deplibs_check_method=pass_all 5651 ;; 5652 5653freebsd* | dragonfly* | midnightbsd*) 5654 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5655 case $host_cpu in 5656 i*86 ) 5657 # Not sure whether the presence of OpenBSD here was a mistake. 5658 # Let's accept both of them until this is cleared up. 5659 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5660 lt_cv_file_magic_cmd=$FILECMD 5661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5662 ;; 5663 esac 5664 else 5665 lt_cv_deplibs_check_method=pass_all 5666 fi 5667 ;; 5668 5669haiku*) 5670 lt_cv_deplibs_check_method=pass_all 5671 ;; 5672 5673hpux10.20* | hpux11*) 5674 lt_cv_file_magic_cmd=$FILECMD 5675 case $host_cpu in 5676 ia64*) 5677 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5678 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5679 ;; 5680 hppa*64*) 5681 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]' 5682 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5683 ;; 5684 *) 5685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5686 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5687 ;; 5688 esac 5689 ;; 5690 5691interix[3-9]*) 5692 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5694 ;; 5695 5696irix5* | irix6* | nonstopux*) 5697 case $LD in 5698 *-32|*"-32 ") libmagic=32-bit;; 5699 *-n32|*"-n32 ") libmagic=N32;; 5700 *-64|*"-64 ") libmagic=64-bit;; 5701 *) libmagic=never-match;; 5702 esac 5703 lt_cv_deplibs_check_method=pass_all 5704 ;; 5705 5706# This must be glibc/ELF. 5707linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5708 lt_cv_deplibs_check_method=pass_all 5709 ;; 5710 5711netbsd* | netbsdelf*-gnu) 5712 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5714 else 5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5716 fi 5717 ;; 5718 5719newos6*) 5720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5721 lt_cv_file_magic_cmd=$FILECMD 5722 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5723 ;; 5724 5725*nto* | *qnx*) 5726 lt_cv_deplibs_check_method=pass_all 5727 ;; 5728 5729openbsd* | bitrig*) 5730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5732 else 5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5734 fi 5735 ;; 5736 5737osf3* | osf4* | osf5*) 5738 lt_cv_deplibs_check_method=pass_all 5739 ;; 5740 5741rdos*) 5742 lt_cv_deplibs_check_method=pass_all 5743 ;; 5744 5745solaris*) 5746 lt_cv_deplibs_check_method=pass_all 5747 ;; 5748 5749sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5750 lt_cv_deplibs_check_method=pass_all 5751 ;; 5752 5753sysv4 | sysv4.3*) 5754 case $host_vendor in 5755 motorola) 5756 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]' 5757 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5758 ;; 5759 ncr) 5760 lt_cv_deplibs_check_method=pass_all 5761 ;; 5762 sequent) 5763 lt_cv_file_magic_cmd='/bin/file' 5764 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5765 ;; 5766 sni) 5767 lt_cv_file_magic_cmd='/bin/file' 5768 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5769 lt_cv_file_magic_test_file=/lib/libc.so 5770 ;; 5771 siemens) 5772 lt_cv_deplibs_check_method=pass_all 5773 ;; 5774 pc) 5775 lt_cv_deplibs_check_method=pass_all 5776 ;; 5777 esac 5778 ;; 5779 5780tpf*) 5781 lt_cv_deplibs_check_method=pass_all 5782 ;; 5783os2*) 5784 lt_cv_deplibs_check_method=pass_all 5785 ;; 5786esac 5787 5788fi 5789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5790printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 5791 5792file_magic_glob= 5793want_nocaseglob=no 5794if test "$build" = "$host"; then 5795 case $host_os in 5796 mingw* | pw32*) 5797 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5798 want_nocaseglob=yes 5799 else 5800 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5801 fi 5802 ;; 5803 esac 5804fi 5805 5806file_magic_cmd=$lt_cv_file_magic_cmd 5807deplibs_check_method=$lt_cv_deplibs_check_method 5808test -z "$deplibs_check_method" && deplibs_check_method=unknown 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831if test -n "$ac_tool_prefix"; then 5832 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5833set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5835printf %s "checking for $ac_word... " >&6; } 5836if test ${ac_cv_prog_DLLTOOL+y} 5837then : 5838 printf %s "(cached) " >&6 5839else $as_nop 5840 if test -n "$DLLTOOL"; then 5841 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5842else 5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5844for as_dir in $PATH 5845do 5846 IFS=$as_save_IFS 5847 case $as_dir in #((( 5848 '') as_dir=./ ;; 5849 */) ;; 5850 *) as_dir=$as_dir/ ;; 5851 esac 5852 for ac_exec_ext in '' $ac_executable_extensions; do 5853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5854 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5856 break 2 5857 fi 5858done 5859 done 5860IFS=$as_save_IFS 5861 5862fi 5863fi 5864DLLTOOL=$ac_cv_prog_DLLTOOL 5865if test -n "$DLLTOOL"; then 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5867printf "%s\n" "$DLLTOOL" >&6; } 5868else 5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5870printf "%s\n" "no" >&6; } 5871fi 5872 5873 5874fi 5875if test -z "$ac_cv_prog_DLLTOOL"; then 5876 ac_ct_DLLTOOL=$DLLTOOL 5877 # Extract the first word of "dlltool", so it can be a program name with args. 5878set dummy dlltool; ac_word=$2 5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5880printf %s "checking for $ac_word... " >&6; } 5881if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 5882then : 5883 printf %s "(cached) " >&6 5884else $as_nop 5885 if test -n "$ac_ct_DLLTOOL"; then 5886 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5887else 5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5889for as_dir in $PATH 5890do 5891 IFS=$as_save_IFS 5892 case $as_dir in #((( 5893 '') as_dir=./ ;; 5894 */) ;; 5895 *) as_dir=$as_dir/ ;; 5896 esac 5897 for ac_exec_ext in '' $ac_executable_extensions; do 5898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5899 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5901 break 2 5902 fi 5903done 5904 done 5905IFS=$as_save_IFS 5906 5907fi 5908fi 5909ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5910if test -n "$ac_ct_DLLTOOL"; then 5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5912printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 5913else 5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5915printf "%s\n" "no" >&6; } 5916fi 5917 5918 if test "x$ac_ct_DLLTOOL" = x; then 5919 DLLTOOL="false" 5920 else 5921 case $cross_compiling:$ac_tool_warned in 5922yes:) 5923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5924printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5925ac_tool_warned=yes ;; 5926esac 5927 DLLTOOL=$ac_ct_DLLTOOL 5928 fi 5929else 5930 DLLTOOL="$ac_cv_prog_DLLTOOL" 5931fi 5932 5933test -z "$DLLTOOL" && DLLTOOL=dlltool 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5945printf %s "checking how to associate runtime and link libraries... " >&6; } 5946if test ${lt_cv_sharedlib_from_linklib_cmd+y} 5947then : 5948 printf %s "(cached) " >&6 5949else $as_nop 5950 lt_cv_sharedlib_from_linklib_cmd='unknown' 5951 5952case $host_os in 5953cygwin* | mingw* | pw32* | cegcc*) 5954 # two different shell functions defined in ltmain.sh; 5955 # decide which one to use based on capabilities of $DLLTOOL 5956 case `$DLLTOOL --help 2>&1` in 5957 *--identify-strict*) 5958 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5959 ;; 5960 *) 5961 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5962 ;; 5963 esac 5964 ;; 5965*) 5966 # fallback: assume linklib IS sharedlib 5967 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5968 ;; 5969esac 5970 5971fi 5972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5973printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5974sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5975test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5976 5977 5978 5979 5980 5981 5982 5983if test -n "$ac_tool_prefix"; then 5984 for ac_prog in ar 5985 do 5986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5987set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5989printf %s "checking for $ac_word... " >&6; } 5990if test ${ac_cv_prog_AR+y} 5991then : 5992 printf %s "(cached) " >&6 5993else $as_nop 5994 if test -n "$AR"; then 5995 ac_cv_prog_AR="$AR" # Let the user override the test. 5996else 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 case $as_dir in #((( 6002 '') as_dir=./ ;; 6003 */) ;; 6004 *) as_dir=$as_dir/ ;; 6005 esac 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6008 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012done 6013 done 6014IFS=$as_save_IFS 6015 6016fi 6017fi 6018AR=$ac_cv_prog_AR 6019if test -n "$AR"; then 6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6021printf "%s\n" "$AR" >&6; } 6022else 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6024printf "%s\n" "no" >&6; } 6025fi 6026 6027 6028 test -n "$AR" && break 6029 done 6030fi 6031if test -z "$AR"; then 6032 ac_ct_AR=$AR 6033 for ac_prog in ar 6034do 6035 # Extract the first word of "$ac_prog", so it can be a program name with args. 6036set dummy $ac_prog; ac_word=$2 6037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6038printf %s "checking for $ac_word... " >&6; } 6039if test ${ac_cv_prog_ac_ct_AR+y} 6040then : 6041 printf %s "(cached) " >&6 6042else $as_nop 6043 if test -n "$ac_ct_AR"; then 6044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6045else 6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6047for as_dir in $PATH 6048do 6049 IFS=$as_save_IFS 6050 case $as_dir in #((( 6051 '') as_dir=./ ;; 6052 */) ;; 6053 *) as_dir=$as_dir/ ;; 6054 esac 6055 for ac_exec_ext in '' $ac_executable_extensions; do 6056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6057 ac_cv_prog_ac_ct_AR="$ac_prog" 6058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6059 break 2 6060 fi 6061done 6062 done 6063IFS=$as_save_IFS 6064 6065fi 6066fi 6067ac_ct_AR=$ac_cv_prog_ac_ct_AR 6068if test -n "$ac_ct_AR"; then 6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6070printf "%s\n" "$ac_ct_AR" >&6; } 6071else 6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6073printf "%s\n" "no" >&6; } 6074fi 6075 6076 6077 test -n "$ac_ct_AR" && break 6078done 6079 6080 if test "x$ac_ct_AR" = x; then 6081 AR="false" 6082 else 6083 case $cross_compiling:$ac_tool_warned in 6084yes:) 6085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6086printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6087ac_tool_warned=yes ;; 6088esac 6089 AR=$ac_ct_AR 6090 fi 6091fi 6092 6093: ${AR=ar} 6094 6095 6096 6097 6098 6099 6100# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6101# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6102# higher priority because thats what people were doing historically (setting 6103# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6104# variable obsoleted/removed. 6105 6106test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6107lt_ar_flags=$AR_FLAGS 6108 6109 6110 6111 6112 6113 6114# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6115# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6116 6117 6118 6119 6120 6121 6122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6123printf %s "checking for archiver @FILE support... " >&6; } 6124if test ${lt_cv_ar_at_file+y} 6125then : 6126 printf %s "(cached) " >&6 6127else $as_nop 6128 lt_cv_ar_at_file=no 6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6130/* end confdefs.h. */ 6131 6132int 6133main (void) 6134{ 6135 6136 ; 6137 return 0; 6138} 6139_ACEOF 6140if ac_fn_c_try_compile "$LINENO" 6141then : 6142 echo conftest.$ac_objext > conftest.lst 6143 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6145 (eval $lt_ar_try) 2>&5 6146 ac_status=$? 6147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6148 test $ac_status = 0; } 6149 if test 0 -eq "$ac_status"; then 6150 # Ensure the archiver fails upon bogus file names. 6151 rm -f conftest.$ac_objext libconftest.a 6152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6153 (eval $lt_ar_try) 2>&5 6154 ac_status=$? 6155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6156 test $ac_status = 0; } 6157 if test 0 -ne "$ac_status"; then 6158 lt_cv_ar_at_file=@ 6159 fi 6160 fi 6161 rm -f conftest.* libconftest.a 6162 6163fi 6164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6165 6166fi 6167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6168printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6169 6170if test no = "$lt_cv_ar_at_file"; then 6171 archiver_list_spec= 6172else 6173 archiver_list_spec=$lt_cv_ar_at_file 6174fi 6175 6176 6177 6178 6179 6180 6181 6182if test -n "$ac_tool_prefix"; then 6183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6184set dummy ${ac_tool_prefix}strip; ac_word=$2 6185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6186printf %s "checking for $ac_word... " >&6; } 6187if test ${ac_cv_prog_STRIP+y} 6188then : 6189 printf %s "(cached) " >&6 6190else $as_nop 6191 if test -n "$STRIP"; then 6192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6193else 6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6195for as_dir in $PATH 6196do 6197 IFS=$as_save_IFS 6198 case $as_dir in #((( 6199 '') as_dir=./ ;; 6200 */) ;; 6201 *) as_dir=$as_dir/ ;; 6202 esac 6203 for ac_exec_ext in '' $ac_executable_extensions; do 6204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6205 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6207 break 2 6208 fi 6209done 6210 done 6211IFS=$as_save_IFS 6212 6213fi 6214fi 6215STRIP=$ac_cv_prog_STRIP 6216if test -n "$STRIP"; then 6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6218printf "%s\n" "$STRIP" >&6; } 6219else 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6221printf "%s\n" "no" >&6; } 6222fi 6223 6224 6225fi 6226if test -z "$ac_cv_prog_STRIP"; then 6227 ac_ct_STRIP=$STRIP 6228 # Extract the first word of "strip", so it can be a program name with args. 6229set dummy strip; ac_word=$2 6230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6231printf %s "checking for $ac_word... " >&6; } 6232if test ${ac_cv_prog_ac_ct_STRIP+y} 6233then : 6234 printf %s "(cached) " >&6 6235else $as_nop 6236 if test -n "$ac_ct_STRIP"; then 6237 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6238else 6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6240for as_dir in $PATH 6241do 6242 IFS=$as_save_IFS 6243 case $as_dir in #((( 6244 '') as_dir=./ ;; 6245 */) ;; 6246 *) as_dir=$as_dir/ ;; 6247 esac 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6250 ac_cv_prog_ac_ct_STRIP="strip" 6251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255 done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6261if test -n "$ac_ct_STRIP"; then 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6263printf "%s\n" "$ac_ct_STRIP" >&6; } 6264else 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266printf "%s\n" "no" >&6; } 6267fi 6268 6269 if test "x$ac_ct_STRIP" = x; then 6270 STRIP=":" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6275printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 STRIP=$ac_ct_STRIP 6279 fi 6280else 6281 STRIP="$ac_cv_prog_STRIP" 6282fi 6283 6284test -z "$STRIP" && STRIP=: 6285 6286 6287 6288 6289 6290 6291if test -n "$ac_tool_prefix"; then 6292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6293set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6295printf %s "checking for $ac_word... " >&6; } 6296if test ${ac_cv_prog_RANLIB+y} 6297then : 6298 printf %s "(cached) " >&6 6299else $as_nop 6300 if test -n "$RANLIB"; then 6301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6302else 6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304for as_dir in $PATH 6305do 6306 IFS=$as_save_IFS 6307 case $as_dir in #((( 6308 '') as_dir=./ ;; 6309 */) ;; 6310 *) as_dir=$as_dir/ ;; 6311 esac 6312 for ac_exec_ext in '' $ac_executable_extensions; do 6313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6316 break 2 6317 fi 6318done 6319 done 6320IFS=$as_save_IFS 6321 6322fi 6323fi 6324RANLIB=$ac_cv_prog_RANLIB 6325if test -n "$RANLIB"; then 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6327printf "%s\n" "$RANLIB" >&6; } 6328else 6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6330printf "%s\n" "no" >&6; } 6331fi 6332 6333 6334fi 6335if test -z "$ac_cv_prog_RANLIB"; then 6336 ac_ct_RANLIB=$RANLIB 6337 # Extract the first word of "ranlib", so it can be a program name with args. 6338set dummy ranlib; ac_word=$2 6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340printf %s "checking for $ac_word... " >&6; } 6341if test ${ac_cv_prog_ac_ct_RANLIB+y} 6342then : 6343 printf %s "(cached) " >&6 6344else $as_nop 6345 if test -n "$ac_ct_RANLIB"; then 6346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6347else 6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6349for as_dir in $PATH 6350do 6351 IFS=$as_save_IFS 6352 case $as_dir in #((( 6353 '') as_dir=./ ;; 6354 */) ;; 6355 *) as_dir=$as_dir/ ;; 6356 esac 6357 for ac_exec_ext in '' $ac_executable_extensions; do 6358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6359 ac_cv_prog_ac_ct_RANLIB="ranlib" 6360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6361 break 2 6362 fi 6363done 6364 done 6365IFS=$as_save_IFS 6366 6367fi 6368fi 6369ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6370if test -n "$ac_ct_RANLIB"; then 6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6372printf "%s\n" "$ac_ct_RANLIB" >&6; } 6373else 6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6375printf "%s\n" "no" >&6; } 6376fi 6377 6378 if test "x$ac_ct_RANLIB" = x; then 6379 RANLIB=":" 6380 else 6381 case $cross_compiling:$ac_tool_warned in 6382yes:) 6383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6384printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6385ac_tool_warned=yes ;; 6386esac 6387 RANLIB=$ac_ct_RANLIB 6388 fi 6389else 6390 RANLIB="$ac_cv_prog_RANLIB" 6391fi 6392 6393test -z "$RANLIB" && RANLIB=: 6394 6395 6396 6397 6398 6399 6400# Determine commands to create old-style static archives. 6401old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6402old_postinstall_cmds='chmod 644 $oldlib' 6403old_postuninstall_cmds= 6404 6405if test -n "$RANLIB"; then 6406 case $host_os in 6407 bitrig* | openbsd*) 6408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6409 ;; 6410 *) 6411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6412 ;; 6413 esac 6414 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6415fi 6416 6417case $host_os in 6418 darwin*) 6419 lock_old_archive_extraction=yes ;; 6420 *) 6421 lock_old_archive_extraction=no ;; 6422esac 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444for ac_prog in gawk mawk nawk awk 6445do 6446 # Extract the first word of "$ac_prog", so it can be a program name with args. 6447set dummy $ac_prog; ac_word=$2 6448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449printf %s "checking for $ac_word... " >&6; } 6450if test ${ac_cv_prog_AWK+y} 6451then : 6452 printf %s "(cached) " >&6 6453else $as_nop 6454 if test -n "$AWK"; then 6455 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6456else 6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458for as_dir in $PATH 6459do 6460 IFS=$as_save_IFS 6461 case $as_dir in #((( 6462 '') as_dir=./ ;; 6463 */) ;; 6464 *) as_dir=$as_dir/ ;; 6465 esac 6466 for ac_exec_ext in '' $ac_executable_extensions; do 6467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6468 ac_cv_prog_AWK="$ac_prog" 6469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6470 break 2 6471 fi 6472done 6473 done 6474IFS=$as_save_IFS 6475 6476fi 6477fi 6478AWK=$ac_cv_prog_AWK 6479if test -n "$AWK"; then 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6481printf "%s\n" "$AWK" >&6; } 6482else 6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6484printf "%s\n" "no" >&6; } 6485fi 6486 6487 6488 test -n "$AWK" && break 6489done 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509# If no C compiler was specified, use CC. 6510LTCC=${LTCC-"$CC"} 6511 6512# If no C compiler flags were specified, use CFLAGS. 6513LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6514 6515# Allow CC to be a program name with arguments. 6516compiler=$CC 6517 6518 6519# Check for command to grab the raw symbol name followed by C symbol from nm. 6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6521printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6522if test ${lt_cv_sys_global_symbol_pipe+y} 6523then : 6524 printf %s "(cached) " >&6 6525else $as_nop 6526 6527# These are sane defaults that work on at least a few old systems. 6528# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6529 6530# Character class describing NM global symbol codes. 6531symcode='[BCDEGRST]' 6532 6533# Regexp to match symbols that can be accessed directly from C. 6534sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6535 6536# Define system-specific variables. 6537case $host_os in 6538aix*) 6539 symcode='[BCDT]' 6540 ;; 6541cygwin* | mingw* | pw32* | cegcc*) 6542 symcode='[ABCDGISTW]' 6543 ;; 6544hpux*) 6545 if test ia64 = "$host_cpu"; then 6546 symcode='[ABCDEGRST]' 6547 fi 6548 ;; 6549irix* | nonstopux*) 6550 symcode='[BCDEGRST]' 6551 ;; 6552osf*) 6553 symcode='[BCDEGQRST]' 6554 ;; 6555solaris*) 6556 symcode='[BDRT]' 6557 ;; 6558sco3.2v5*) 6559 symcode='[DT]' 6560 ;; 6561sysv4.2uw2*) 6562 symcode='[DT]' 6563 ;; 6564sysv5* | sco5v6* | unixware* | OpenUNIX*) 6565 symcode='[ABDT]' 6566 ;; 6567sysv4) 6568 symcode='[DFNSTU]' 6569 ;; 6570esac 6571 6572# If we're using GNU nm, then use its standard symbol codes. 6573case `$NM -V 2>&1` in 6574*GNU* | *'with BFD'*) 6575 symcode='[ABCDGIRSTW]' ;; 6576esac 6577 6578if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6579 # Gets list of data symbols to import. 6580 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6581 # Adjust the below global symbol transforms to fixup imported variables. 6582 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6583 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6584 lt_c_name_lib_hook="\ 6585 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6586 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6587else 6588 # Disable hooks by default. 6589 lt_cv_sys_global_symbol_to_import= 6590 lt_cdecl_hook= 6591 lt_c_name_hook= 6592 lt_c_name_lib_hook= 6593fi 6594 6595# Transform an extracted symbol line into a proper C declaration. 6596# Some systems (esp. on ia64) link data and code symbols differently, 6597# so use this general approach. 6598lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6599$lt_cdecl_hook\ 6600" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6601" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6602 6603# Transform an extracted symbol line into symbol name and symbol address 6604lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6605$lt_c_name_hook\ 6606" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6607" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6608 6609# Transform an extracted symbol line into symbol name with lib prefix and 6610# symbol address. 6611lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6612$lt_c_name_lib_hook\ 6613" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6614" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6615" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6616 6617# Handle CRLF in mingw tool chain 6618opt_cr= 6619case $build_os in 6620mingw*) 6621 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6622 ;; 6623esac 6624 6625# Try without a prefix underscore, then with it. 6626for ac_symprfx in "" "_"; do 6627 6628 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6629 symxfrm="\\1 $ac_symprfx\\2 \\2" 6630 6631 # Write the raw and C identifiers. 6632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6633 # Fake it for dumpbin and say T for any non-static function, 6634 # D for any global variable and I for any imported variable. 6635 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6636 # which start with @ or ?. 6637 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6638" {last_section=section; section=\$ 3};"\ 6639" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6640" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6641" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6642" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6643" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6644" \$ 0!~/External *\|/{next};"\ 6645" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6646" {if(hide[section]) next};"\ 6647" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6648" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6649" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6650" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6651" ' prfx=^$ac_symprfx" 6652 else 6653 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6654 fi 6655 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6656 6657 # Check to see that the pipe works correctly. 6658 pipe_works=no 6659 6660 rm -f conftest* 6661 cat > conftest.$ac_ext <<_LT_EOF 6662#ifdef __cplusplus 6663extern "C" { 6664#endif 6665char nm_test_var; 6666void nm_test_func(void); 6667void nm_test_func(void){} 6668#ifdef __cplusplus 6669} 6670#endif 6671int main(){nm_test_var='a';nm_test_func();return(0);} 6672_LT_EOF 6673 6674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6675 (eval $ac_compile) 2>&5 6676 ac_status=$? 6677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6678 test $ac_status = 0; }; then 6679 # Now try to grab the symbols. 6680 nlist=conftest.nm 6681 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6682 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6683 # Try sorting and uniquifying the output. 6684 if sort "$nlist" | uniq > "$nlist"T; then 6685 mv -f "$nlist"T "$nlist" 6686 else 6687 rm -f "$nlist"T 6688 fi 6689 6690 # Make sure that we snagged all the symbols we need. 6691 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6692 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6693 cat <<_LT_EOF > conftest.$ac_ext 6694/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6695#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6696/* DATA imports from DLLs on WIN32 can't be const, because runtime 6697 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6698# define LT_DLSYM_CONST 6699#elif defined __osf__ 6700/* This system does not cope well with relocations in const data. */ 6701# define LT_DLSYM_CONST 6702#else 6703# define LT_DLSYM_CONST const 6704#endif 6705 6706#ifdef __cplusplus 6707extern "C" { 6708#endif 6709 6710_LT_EOF 6711 # Now generate the symbol file. 6712 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6713 6714 cat <<_LT_EOF >> conftest.$ac_ext 6715 6716/* The mapping between symbol names and symbols. */ 6717LT_DLSYM_CONST struct { 6718 const char *name; 6719 void *address; 6720} 6721lt__PROGRAM__LTX_preloaded_symbols[] = 6722{ 6723 { "@PROGRAM@", (void *) 0 }, 6724_LT_EOF 6725 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6726 cat <<\_LT_EOF >> conftest.$ac_ext 6727 {0, (void *) 0} 6728}; 6729 6730/* This works around a problem in FreeBSD linker */ 6731#ifdef FREEBSD_WORKAROUND 6732static const void *lt_preloaded_setup() { 6733 return lt__PROGRAM__LTX_preloaded_symbols; 6734} 6735#endif 6736 6737#ifdef __cplusplus 6738} 6739#endif 6740_LT_EOF 6741 # Now try linking the two files. 6742 mv conftest.$ac_objext conftstm.$ac_objext 6743 lt_globsym_save_LIBS=$LIBS 6744 lt_globsym_save_CFLAGS=$CFLAGS 6745 LIBS=conftstm.$ac_objext 6746 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6748 (eval $ac_link) 2>&5 6749 ac_status=$? 6750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6751 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6752 pipe_works=yes 6753 fi 6754 LIBS=$lt_globsym_save_LIBS 6755 CFLAGS=$lt_globsym_save_CFLAGS 6756 else 6757 echo "cannot find nm_test_func in $nlist" >&5 6758 fi 6759 else 6760 echo "cannot find nm_test_var in $nlist" >&5 6761 fi 6762 else 6763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6764 fi 6765 else 6766 echo "$progname: failed program was:" >&5 6767 cat conftest.$ac_ext >&5 6768 fi 6769 rm -rf conftest* conftst* 6770 6771 # Do not use the global_symbol_pipe unless it works. 6772 if test yes = "$pipe_works"; then 6773 break 6774 else 6775 lt_cv_sys_global_symbol_pipe= 6776 fi 6777done 6778 6779fi 6780 6781if test -z "$lt_cv_sys_global_symbol_pipe"; then 6782 lt_cv_sys_global_symbol_to_cdecl= 6783fi 6784if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6786printf "%s\n" "failed" >&6; } 6787else 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6789printf "%s\n" "ok" >&6; } 6790fi 6791 6792# Response file support. 6793if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6794 nm_file_list_spec='@' 6795elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6796 nm_file_list_spec='@' 6797fi 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6836printf %s "checking for sysroot... " >&6; } 6837 6838# Check whether --with-sysroot was given. 6839if test ${with_sysroot+y} 6840then : 6841 withval=$with_sysroot; 6842else $as_nop 6843 with_sysroot=no 6844fi 6845 6846 6847lt_sysroot= 6848case $with_sysroot in #( 6849 yes) 6850 if test yes = "$GCC"; then 6851 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6852 fi 6853 ;; #( 6854 /*) 6855 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 6856 ;; #( 6857 no|'') 6858 ;; #( 6859 *) 6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6861printf "%s\n" "$with_sysroot" >&6; } 6862 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6863 ;; 6864esac 6865 6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6867printf "%s\n" "${lt_sysroot:-no}" >&6; } 6868 6869 6870 6871 6872 6873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6874printf %s "checking for a working dd... " >&6; } 6875if test ${ac_cv_path_lt_DD+y} 6876then : 6877 printf %s "(cached) " >&6 6878else $as_nop 6879 printf 0123456789abcdef0123456789abcdef >conftest.i 6880cat conftest.i conftest.i >conftest2.i 6881: ${lt_DD:=$DD} 6882if test -z "$lt_DD"; then 6883 ac_path_lt_DD_found=false 6884 # Loop through the user's path and test for each of PROGNAME-LIST 6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6886for as_dir in $PATH 6887do 6888 IFS=$as_save_IFS 6889 case $as_dir in #((( 6890 '') as_dir=./ ;; 6891 */) ;; 6892 *) as_dir=$as_dir/ ;; 6893 esac 6894 for ac_prog in dd 6895 do 6896 for ac_exec_ext in '' $ac_executable_extensions; do 6897 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 6898 as_fn_executable_p "$ac_path_lt_DD" || continue 6899if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6900 cmp -s conftest.i conftest.out \ 6901 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6902fi 6903 $ac_path_lt_DD_found && break 3 6904 done 6905 done 6906 done 6907IFS=$as_save_IFS 6908 if test -z "$ac_cv_path_lt_DD"; then 6909 : 6910 fi 6911else 6912 ac_cv_path_lt_DD=$lt_DD 6913fi 6914 6915rm -f conftest.i conftest2.i conftest.out 6916fi 6917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6918printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 6919 6920 6921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6922printf %s "checking how to truncate binary pipes... " >&6; } 6923if test ${lt_cv_truncate_bin+y} 6924then : 6925 printf %s "(cached) " >&6 6926else $as_nop 6927 printf 0123456789abcdef0123456789abcdef >conftest.i 6928cat conftest.i conftest.i >conftest2.i 6929lt_cv_truncate_bin= 6930if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6931 cmp -s conftest.i conftest.out \ 6932 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6933fi 6934rm -f conftest.i conftest2.i conftest.out 6935test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6936fi 6937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6938printf "%s\n" "$lt_cv_truncate_bin" >&6; } 6939 6940 6941 6942 6943 6944 6945 6946# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6947func_cc_basename () 6948{ 6949 for cc_temp in $*""; do 6950 case $cc_temp in 6951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6953 \-*) ;; 6954 *) break;; 6955 esac 6956 done 6957 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6958} 6959 6960# Check whether --enable-libtool-lock was given. 6961if test ${enable_libtool_lock+y} 6962then : 6963 enableval=$enable_libtool_lock; 6964fi 6965 6966test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6967 6968# Some flags need to be propagated to the compiler or linker for good 6969# libtool support. 6970case $host in 6971ia64-*-hpux*) 6972 # Find out what ABI is being produced by ac_compile, and set mode 6973 # options accordingly. 6974 echo 'int i;' > conftest.$ac_ext 6975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6976 (eval $ac_compile) 2>&5 6977 ac_status=$? 6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6979 test $ac_status = 0; }; then 6980 case `$FILECMD conftest.$ac_objext` in 6981 *ELF-32*) 6982 HPUX_IA64_MODE=32 6983 ;; 6984 *ELF-64*) 6985 HPUX_IA64_MODE=64 6986 ;; 6987 esac 6988 fi 6989 rm -rf conftest* 6990 ;; 6991*-*-irix6*) 6992 # Find out what ABI is being produced by ac_compile, and set linker 6993 # options accordingly. 6994 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6996 (eval $ac_compile) 2>&5 6997 ac_status=$? 6998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6999 test $ac_status = 0; }; then 7000 if test yes = "$lt_cv_prog_gnu_ld"; then 7001 case `$FILECMD conftest.$ac_objext` in 7002 *32-bit*) 7003 LD="${LD-ld} -melf32bsmip" 7004 ;; 7005 *N32*) 7006 LD="${LD-ld} -melf32bmipn32" 7007 ;; 7008 *64-bit*) 7009 LD="${LD-ld} -melf64bmip" 7010 ;; 7011 esac 7012 else 7013 case `$FILECMD conftest.$ac_objext` in 7014 *32-bit*) 7015 LD="${LD-ld} -32" 7016 ;; 7017 *N32*) 7018 LD="${LD-ld} -n32" 7019 ;; 7020 *64-bit*) 7021 LD="${LD-ld} -64" 7022 ;; 7023 esac 7024 fi 7025 fi 7026 rm -rf conftest* 7027 ;; 7028 7029mips64*-*linux*) 7030 # Find out what ABI is being produced by ac_compile, and set linker 7031 # options accordingly. 7032 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7034 (eval $ac_compile) 2>&5 7035 ac_status=$? 7036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7037 test $ac_status = 0; }; then 7038 emul=elf 7039 case `$FILECMD conftest.$ac_objext` in 7040 *32-bit*) 7041 emul="${emul}32" 7042 ;; 7043 *64-bit*) 7044 emul="${emul}64" 7045 ;; 7046 esac 7047 case `$FILECMD conftest.$ac_objext` in 7048 *MSB*) 7049 emul="${emul}btsmip" 7050 ;; 7051 *LSB*) 7052 emul="${emul}ltsmip" 7053 ;; 7054 esac 7055 case `$FILECMD conftest.$ac_objext` in 7056 *N32*) 7057 emul="${emul}n32" 7058 ;; 7059 esac 7060 LD="${LD-ld} -m $emul" 7061 fi 7062 rm -rf conftest* 7063 ;; 7064 7065x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7066s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7067 # Find out what ABI is being produced by ac_compile, and set linker 7068 # options accordingly. Note that the listed cases only cover the 7069 # situations where additional linker options are needed (such as when 7070 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7071 # vice versa); the common cases where no linker options are needed do 7072 # not appear in the list. 7073 echo 'int i;' > conftest.$ac_ext 7074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7075 (eval $ac_compile) 2>&5 7076 ac_status=$? 7077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7078 test $ac_status = 0; }; then 7079 case `$FILECMD conftest.o` in 7080 *32-bit*) 7081 case $host in 7082 x86_64-*kfreebsd*-gnu) 7083 LD="${LD-ld} -m elf_i386_fbsd" 7084 ;; 7085 x86_64-*linux*) 7086 case `$FILECMD conftest.o` in 7087 *x86-64*) 7088 LD="${LD-ld} -m elf32_x86_64" 7089 ;; 7090 *) 7091 LD="${LD-ld} -m elf_i386" 7092 ;; 7093 esac 7094 ;; 7095 powerpc64le-*linux*) 7096 LD="${LD-ld} -m elf32lppclinux" 7097 ;; 7098 powerpc64-*linux*) 7099 LD="${LD-ld} -m elf32ppclinux" 7100 ;; 7101 s390x-*linux*) 7102 LD="${LD-ld} -m elf_s390" 7103 ;; 7104 sparc64-*linux*) 7105 LD="${LD-ld} -m elf32_sparc" 7106 ;; 7107 esac 7108 ;; 7109 *64-bit*) 7110 case $host in 7111 x86_64-*kfreebsd*-gnu) 7112 LD="${LD-ld} -m elf_x86_64_fbsd" 7113 ;; 7114 x86_64-*linux*) 7115 LD="${LD-ld} -m elf_x86_64" 7116 ;; 7117 powerpcle-*linux*) 7118 LD="${LD-ld} -m elf64lppc" 7119 ;; 7120 powerpc-*linux*) 7121 LD="${LD-ld} -m elf64ppc" 7122 ;; 7123 s390*-*linux*|s390*-*tpf*) 7124 LD="${LD-ld} -m elf64_s390" 7125 ;; 7126 sparc*-*linux*) 7127 LD="${LD-ld} -m elf64_sparc" 7128 ;; 7129 esac 7130 ;; 7131 esac 7132 fi 7133 rm -rf conftest* 7134 ;; 7135 7136*-*-sco3.2v5*) 7137 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7138 SAVE_CFLAGS=$CFLAGS 7139 CFLAGS="$CFLAGS -belf" 7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7141printf %s "checking whether the C compiler needs -belf... " >&6; } 7142if test ${lt_cv_cc_needs_belf+y} 7143then : 7144 printf %s "(cached) " >&6 7145else $as_nop 7146 ac_ext=c 7147ac_cpp='$CPP $CPPFLAGS' 7148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7150ac_compiler_gnu=$ac_cv_c_compiler_gnu 7151 7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153/* end confdefs.h. */ 7154 7155int 7156main (void) 7157{ 7158 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163if ac_fn_c_try_link "$LINENO" 7164then : 7165 lt_cv_cc_needs_belf=yes 7166else $as_nop 7167 lt_cv_cc_needs_belf=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7170 conftest$ac_exeext conftest.$ac_ext 7171 ac_ext=c 7172ac_cpp='$CPP $CPPFLAGS' 7173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7175ac_compiler_gnu=$ac_cv_c_compiler_gnu 7176 7177fi 7178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7179printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7180 if test yes != "$lt_cv_cc_needs_belf"; then 7181 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7182 CFLAGS=$SAVE_CFLAGS 7183 fi 7184 ;; 7185*-*solaris*) 7186 # Find out what ABI is being produced by ac_compile, and set linker 7187 # options accordingly. 7188 echo 'int i;' > conftest.$ac_ext 7189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7190 (eval $ac_compile) 2>&5 7191 ac_status=$? 7192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7193 test $ac_status = 0; }; then 7194 case `$FILECMD conftest.o` in 7195 *64-bit*) 7196 case $lt_cv_prog_gnu_ld in 7197 yes*) 7198 case $host in 7199 i?86-*-solaris*|x86_64-*-solaris*) 7200 LD="${LD-ld} -m elf_x86_64" 7201 ;; 7202 sparc*-*-solaris*) 7203 LD="${LD-ld} -m elf64_sparc" 7204 ;; 7205 esac 7206 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7207 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7208 LD=${LD-ld}_sol2 7209 fi 7210 ;; 7211 *) 7212 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7213 LD="${LD-ld} -64" 7214 fi 7215 ;; 7216 esac 7217 ;; 7218 esac 7219 fi 7220 rm -rf conftest* 7221 ;; 7222esac 7223 7224need_locks=$enable_libtool_lock 7225 7226if test -n "$ac_tool_prefix"; then 7227 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7228set dummy ${ac_tool_prefix}mt; ac_word=$2 7229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7230printf %s "checking for $ac_word... " >&6; } 7231if test ${ac_cv_prog_MANIFEST_TOOL+y} 7232then : 7233 printf %s "(cached) " >&6 7234else $as_nop 7235 if test -n "$MANIFEST_TOOL"; then 7236 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7237else 7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 case $as_dir in #((( 7243 '') as_dir=./ ;; 7244 */) ;; 7245 *) as_dir=$as_dir/ ;; 7246 esac 7247 for ac_exec_ext in '' $ac_executable_extensions; do 7248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7249 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7251 break 2 7252 fi 7253done 7254 done 7255IFS=$as_save_IFS 7256 7257fi 7258fi 7259MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7260if test -n "$MANIFEST_TOOL"; then 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7262printf "%s\n" "$MANIFEST_TOOL" >&6; } 7263else 7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7265printf "%s\n" "no" >&6; } 7266fi 7267 7268 7269fi 7270if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7271 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7272 # Extract the first word of "mt", so it can be a program name with args. 7273set dummy mt; ac_word=$2 7274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7275printf %s "checking for $ac_word... " >&6; } 7276if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7277then : 7278 printf %s "(cached) " >&6 7279else $as_nop 7280 if test -n "$ac_ct_MANIFEST_TOOL"; then 7281 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7282else 7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7284for as_dir in $PATH 7285do 7286 IFS=$as_save_IFS 7287 case $as_dir in #((( 7288 '') as_dir=./ ;; 7289 */) ;; 7290 *) as_dir=$as_dir/ ;; 7291 esac 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7294 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298done 7299 done 7300IFS=$as_save_IFS 7301 7302fi 7303fi 7304ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7305if test -n "$ac_ct_MANIFEST_TOOL"; then 7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7307printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7308else 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7310printf "%s\n" "no" >&6; } 7311fi 7312 7313 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7314 MANIFEST_TOOL=":" 7315 else 7316 case $cross_compiling:$ac_tool_warned in 7317yes:) 7318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7319printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7320ac_tool_warned=yes ;; 7321esac 7322 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7323 fi 7324else 7325 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7326fi 7327 7328test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7330printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7331if test ${lt_cv_path_mainfest_tool+y} 7332then : 7333 printf %s "(cached) " >&6 7334else $as_nop 7335 lt_cv_path_mainfest_tool=no 7336 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7337 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7338 cat conftest.err >&5 7339 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7340 lt_cv_path_mainfest_tool=yes 7341 fi 7342 rm -f conftest* 7343fi 7344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7345printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7346if test yes != "$lt_cv_path_mainfest_tool"; then 7347 MANIFEST_TOOL=: 7348fi 7349 7350 7351 7352 7353 7354 7355 case $host_os in 7356 rhapsody* | darwin*) 7357 if test -n "$ac_tool_prefix"; then 7358 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7359set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7361printf %s "checking for $ac_word... " >&6; } 7362if test ${ac_cv_prog_DSYMUTIL+y} 7363then : 7364 printf %s "(cached) " >&6 7365else $as_nop 7366 if test -n "$DSYMUTIL"; then 7367 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7368else 7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7370for as_dir in $PATH 7371do 7372 IFS=$as_save_IFS 7373 case $as_dir in #((( 7374 '') as_dir=./ ;; 7375 */) ;; 7376 *) as_dir=$as_dir/ ;; 7377 esac 7378 for ac_exec_ext in '' $ac_executable_extensions; do 7379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7380 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7382 break 2 7383 fi 7384done 7385 done 7386IFS=$as_save_IFS 7387 7388fi 7389fi 7390DSYMUTIL=$ac_cv_prog_DSYMUTIL 7391if test -n "$DSYMUTIL"; then 7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7393printf "%s\n" "$DSYMUTIL" >&6; } 7394else 7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7396printf "%s\n" "no" >&6; } 7397fi 7398 7399 7400fi 7401if test -z "$ac_cv_prog_DSYMUTIL"; then 7402 ac_ct_DSYMUTIL=$DSYMUTIL 7403 # Extract the first word of "dsymutil", so it can be a program name with args. 7404set dummy dsymutil; ac_word=$2 7405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7406printf %s "checking for $ac_word... " >&6; } 7407if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7408then : 7409 printf %s "(cached) " >&6 7410else $as_nop 7411 if test -n "$ac_ct_DSYMUTIL"; then 7412 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7413else 7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7415for as_dir in $PATH 7416do 7417 IFS=$as_save_IFS 7418 case $as_dir in #((( 7419 '') as_dir=./ ;; 7420 */) ;; 7421 *) as_dir=$as_dir/ ;; 7422 esac 7423 for ac_exec_ext in '' $ac_executable_extensions; do 7424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7425 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7427 break 2 7428 fi 7429done 7430 done 7431IFS=$as_save_IFS 7432 7433fi 7434fi 7435ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7436if test -n "$ac_ct_DSYMUTIL"; then 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7438printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7439else 7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7441printf "%s\n" "no" >&6; } 7442fi 7443 7444 if test "x$ac_ct_DSYMUTIL" = x; then 7445 DSYMUTIL=":" 7446 else 7447 case $cross_compiling:$ac_tool_warned in 7448yes:) 7449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7450printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7451ac_tool_warned=yes ;; 7452esac 7453 DSYMUTIL=$ac_ct_DSYMUTIL 7454 fi 7455else 7456 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7457fi 7458 7459 if test -n "$ac_tool_prefix"; then 7460 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7461set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7463printf %s "checking for $ac_word... " >&6; } 7464if test ${ac_cv_prog_NMEDIT+y} 7465then : 7466 printf %s "(cached) " >&6 7467else $as_nop 7468 if test -n "$NMEDIT"; then 7469 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7470else 7471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7472for as_dir in $PATH 7473do 7474 IFS=$as_save_IFS 7475 case $as_dir in #((( 7476 '') as_dir=./ ;; 7477 */) ;; 7478 *) as_dir=$as_dir/ ;; 7479 esac 7480 for ac_exec_ext in '' $ac_executable_extensions; do 7481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7482 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7484 break 2 7485 fi 7486done 7487 done 7488IFS=$as_save_IFS 7489 7490fi 7491fi 7492NMEDIT=$ac_cv_prog_NMEDIT 7493if test -n "$NMEDIT"; then 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7495printf "%s\n" "$NMEDIT" >&6; } 7496else 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7498printf "%s\n" "no" >&6; } 7499fi 7500 7501 7502fi 7503if test -z "$ac_cv_prog_NMEDIT"; then 7504 ac_ct_NMEDIT=$NMEDIT 7505 # Extract the first word of "nmedit", so it can be a program name with args. 7506set dummy nmedit; ac_word=$2 7507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7508printf %s "checking for $ac_word... " >&6; } 7509if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7510then : 7511 printf %s "(cached) " >&6 7512else $as_nop 7513 if test -n "$ac_ct_NMEDIT"; then 7514 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7515else 7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7517for as_dir in $PATH 7518do 7519 IFS=$as_save_IFS 7520 case $as_dir in #((( 7521 '') as_dir=./ ;; 7522 */) ;; 7523 *) as_dir=$as_dir/ ;; 7524 esac 7525 for ac_exec_ext in '' $ac_executable_extensions; do 7526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7527 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7529 break 2 7530 fi 7531done 7532 done 7533IFS=$as_save_IFS 7534 7535fi 7536fi 7537ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7538if test -n "$ac_ct_NMEDIT"; then 7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7540printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7541else 7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7543printf "%s\n" "no" >&6; } 7544fi 7545 7546 if test "x$ac_ct_NMEDIT" = x; then 7547 NMEDIT=":" 7548 else 7549 case $cross_compiling:$ac_tool_warned in 7550yes:) 7551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7552printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7553ac_tool_warned=yes ;; 7554esac 7555 NMEDIT=$ac_ct_NMEDIT 7556 fi 7557else 7558 NMEDIT="$ac_cv_prog_NMEDIT" 7559fi 7560 7561 if test -n "$ac_tool_prefix"; then 7562 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7563set dummy ${ac_tool_prefix}lipo; ac_word=$2 7564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7565printf %s "checking for $ac_word... " >&6; } 7566if test ${ac_cv_prog_LIPO+y} 7567then : 7568 printf %s "(cached) " >&6 7569else $as_nop 7570 if test -n "$LIPO"; then 7571 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7572else 7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7574for as_dir in $PATH 7575do 7576 IFS=$as_save_IFS 7577 case $as_dir in #((( 7578 '') as_dir=./ ;; 7579 */) ;; 7580 *) as_dir=$as_dir/ ;; 7581 esac 7582 for ac_exec_ext in '' $ac_executable_extensions; do 7583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7584 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7586 break 2 7587 fi 7588done 7589 done 7590IFS=$as_save_IFS 7591 7592fi 7593fi 7594LIPO=$ac_cv_prog_LIPO 7595if test -n "$LIPO"; then 7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7597printf "%s\n" "$LIPO" >&6; } 7598else 7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7600printf "%s\n" "no" >&6; } 7601fi 7602 7603 7604fi 7605if test -z "$ac_cv_prog_LIPO"; then 7606 ac_ct_LIPO=$LIPO 7607 # Extract the first word of "lipo", so it can be a program name with args. 7608set dummy lipo; ac_word=$2 7609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7610printf %s "checking for $ac_word... " >&6; } 7611if test ${ac_cv_prog_ac_ct_LIPO+y} 7612then : 7613 printf %s "(cached) " >&6 7614else $as_nop 7615 if test -n "$ac_ct_LIPO"; then 7616 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7617else 7618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7619for as_dir in $PATH 7620do 7621 IFS=$as_save_IFS 7622 case $as_dir in #((( 7623 '') as_dir=./ ;; 7624 */) ;; 7625 *) as_dir=$as_dir/ ;; 7626 esac 7627 for ac_exec_ext in '' $ac_executable_extensions; do 7628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7629 ac_cv_prog_ac_ct_LIPO="lipo" 7630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7631 break 2 7632 fi 7633done 7634 done 7635IFS=$as_save_IFS 7636 7637fi 7638fi 7639ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7640if test -n "$ac_ct_LIPO"; then 7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7642printf "%s\n" "$ac_ct_LIPO" >&6; } 7643else 7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7645printf "%s\n" "no" >&6; } 7646fi 7647 7648 if test "x$ac_ct_LIPO" = x; then 7649 LIPO=":" 7650 else 7651 case $cross_compiling:$ac_tool_warned in 7652yes:) 7653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7654printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7655ac_tool_warned=yes ;; 7656esac 7657 LIPO=$ac_ct_LIPO 7658 fi 7659else 7660 LIPO="$ac_cv_prog_LIPO" 7661fi 7662 7663 if test -n "$ac_tool_prefix"; then 7664 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7665set dummy ${ac_tool_prefix}otool; ac_word=$2 7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7667printf %s "checking for $ac_word... " >&6; } 7668if test ${ac_cv_prog_OTOOL+y} 7669then : 7670 printf %s "(cached) " >&6 7671else $as_nop 7672 if test -n "$OTOOL"; then 7673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7674else 7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7676for as_dir in $PATH 7677do 7678 IFS=$as_save_IFS 7679 case $as_dir in #((( 7680 '') as_dir=./ ;; 7681 */) ;; 7682 *) as_dir=$as_dir/ ;; 7683 esac 7684 for ac_exec_ext in '' $ac_executable_extensions; do 7685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7688 break 2 7689 fi 7690done 7691 done 7692IFS=$as_save_IFS 7693 7694fi 7695fi 7696OTOOL=$ac_cv_prog_OTOOL 7697if test -n "$OTOOL"; then 7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7699printf "%s\n" "$OTOOL" >&6; } 7700else 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7702printf "%s\n" "no" >&6; } 7703fi 7704 7705 7706fi 7707if test -z "$ac_cv_prog_OTOOL"; then 7708 ac_ct_OTOOL=$OTOOL 7709 # Extract the first word of "otool", so it can be a program name with args. 7710set dummy otool; ac_word=$2 7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7712printf %s "checking for $ac_word... " >&6; } 7713if test ${ac_cv_prog_ac_ct_OTOOL+y} 7714then : 7715 printf %s "(cached) " >&6 7716else $as_nop 7717 if test -n "$ac_ct_OTOOL"; then 7718 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7719else 7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7721for as_dir in $PATH 7722do 7723 IFS=$as_save_IFS 7724 case $as_dir in #((( 7725 '') as_dir=./ ;; 7726 */) ;; 7727 *) as_dir=$as_dir/ ;; 7728 esac 7729 for ac_exec_ext in '' $ac_executable_extensions; do 7730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7731 ac_cv_prog_ac_ct_OTOOL="otool" 7732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7733 break 2 7734 fi 7735done 7736 done 7737IFS=$as_save_IFS 7738 7739fi 7740fi 7741ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7742if test -n "$ac_ct_OTOOL"; then 7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7744printf "%s\n" "$ac_ct_OTOOL" >&6; } 7745else 7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7747printf "%s\n" "no" >&6; } 7748fi 7749 7750 if test "x$ac_ct_OTOOL" = x; then 7751 OTOOL=":" 7752 else 7753 case $cross_compiling:$ac_tool_warned in 7754yes:) 7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7756printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7757ac_tool_warned=yes ;; 7758esac 7759 OTOOL=$ac_ct_OTOOL 7760 fi 7761else 7762 OTOOL="$ac_cv_prog_OTOOL" 7763fi 7764 7765 if test -n "$ac_tool_prefix"; then 7766 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7767set dummy ${ac_tool_prefix}otool64; ac_word=$2 7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7769printf %s "checking for $ac_word... " >&6; } 7770if test ${ac_cv_prog_OTOOL64+y} 7771then : 7772 printf %s "(cached) " >&6 7773else $as_nop 7774 if test -n "$OTOOL64"; then 7775 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7776else 7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7778for as_dir in $PATH 7779do 7780 IFS=$as_save_IFS 7781 case $as_dir in #((( 7782 '') as_dir=./ ;; 7783 */) ;; 7784 *) as_dir=$as_dir/ ;; 7785 esac 7786 for ac_exec_ext in '' $ac_executable_extensions; do 7787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7788 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7790 break 2 7791 fi 7792done 7793 done 7794IFS=$as_save_IFS 7795 7796fi 7797fi 7798OTOOL64=$ac_cv_prog_OTOOL64 7799if test -n "$OTOOL64"; then 7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7801printf "%s\n" "$OTOOL64" >&6; } 7802else 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7804printf "%s\n" "no" >&6; } 7805fi 7806 7807 7808fi 7809if test -z "$ac_cv_prog_OTOOL64"; then 7810 ac_ct_OTOOL64=$OTOOL64 7811 # Extract the first word of "otool64", so it can be a program name with args. 7812set dummy otool64; ac_word=$2 7813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7814printf %s "checking for $ac_word... " >&6; } 7815if test ${ac_cv_prog_ac_ct_OTOOL64+y} 7816then : 7817 printf %s "(cached) " >&6 7818else $as_nop 7819 if test -n "$ac_ct_OTOOL64"; then 7820 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7821else 7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7823for as_dir in $PATH 7824do 7825 IFS=$as_save_IFS 7826 case $as_dir in #((( 7827 '') as_dir=./ ;; 7828 */) ;; 7829 *) as_dir=$as_dir/ ;; 7830 esac 7831 for ac_exec_ext in '' $ac_executable_extensions; do 7832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7833 ac_cv_prog_ac_ct_OTOOL64="otool64" 7834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7835 break 2 7836 fi 7837done 7838 done 7839IFS=$as_save_IFS 7840 7841fi 7842fi 7843ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7844if test -n "$ac_ct_OTOOL64"; then 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7846printf "%s\n" "$ac_ct_OTOOL64" >&6; } 7847else 7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7849printf "%s\n" "no" >&6; } 7850fi 7851 7852 if test "x$ac_ct_OTOOL64" = x; then 7853 OTOOL64=":" 7854 else 7855 case $cross_compiling:$ac_tool_warned in 7856yes:) 7857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7858printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7859ac_tool_warned=yes ;; 7860esac 7861 OTOOL64=$ac_ct_OTOOL64 7862 fi 7863else 7864 OTOOL64="$ac_cv_prog_OTOOL64" 7865fi 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7894printf %s "checking for -single_module linker flag... " >&6; } 7895if test ${lt_cv_apple_cc_single_mod+y} 7896then : 7897 printf %s "(cached) " >&6 7898else $as_nop 7899 lt_cv_apple_cc_single_mod=no 7900 if test -z "$LT_MULTI_MODULE"; then 7901 # By default we will add the -single_module flag. You can override 7902 # by either setting the environment variable LT_MULTI_MODULE 7903 # non-empty at configure time, or by adding -multi_module to the 7904 # link flags. 7905 rm -rf libconftest.dylib* 7906 echo "int foo(void){return 1;}" > conftest.c 7907 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7908-dynamiclib -Wl,-single_module conftest.c" >&5 7909 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7910 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7911 _lt_result=$? 7912 # If there is a non-empty error log, and "single_module" 7913 # appears in it, assume the flag caused a linker warning 7914 if test -s conftest.err && $GREP single_module conftest.err; then 7915 cat conftest.err >&5 7916 # Otherwise, if the output was created with a 0 exit code from 7917 # the compiler, it worked. 7918 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7919 lt_cv_apple_cc_single_mod=yes 7920 else 7921 cat conftest.err >&5 7922 fi 7923 rm -rf libconftest.dylib* 7924 rm -f conftest.* 7925 fi 7926fi 7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7928printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 7929 7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7931printf %s "checking for -exported_symbols_list linker flag... " >&6; } 7932if test ${lt_cv_ld_exported_symbols_list+y} 7933then : 7934 printf %s "(cached) " >&6 7935else $as_nop 7936 lt_cv_ld_exported_symbols_list=no 7937 save_LDFLAGS=$LDFLAGS 7938 echo "_main" > conftest.sym 7939 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942 7943int 7944main (void) 7945{ 7946 7947 ; 7948 return 0; 7949} 7950_ACEOF 7951if ac_fn_c_try_link "$LINENO" 7952then : 7953 lt_cv_ld_exported_symbols_list=yes 7954else $as_nop 7955 lt_cv_ld_exported_symbols_list=no 7956fi 7957rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7958 conftest$ac_exeext conftest.$ac_ext 7959 LDFLAGS=$save_LDFLAGS 7960 7961fi 7962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7963printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 7964 7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7966printf %s "checking for -force_load linker flag... " >&6; } 7967if test ${lt_cv_ld_force_load+y} 7968then : 7969 printf %s "(cached) " >&6 7970else $as_nop 7971 lt_cv_ld_force_load=no 7972 cat > conftest.c << _LT_EOF 7973int forced_loaded() { return 2;} 7974_LT_EOF 7975 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7976 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7977 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 7978 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 7979 echo "$RANLIB libconftest.a" >&5 7980 $RANLIB libconftest.a 2>&5 7981 cat > conftest.c << _LT_EOF 7982int main() { return 0;} 7983_LT_EOF 7984 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7985 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7986 _lt_result=$? 7987 if test -s conftest.err && $GREP force_load conftest.err; then 7988 cat conftest.err >&5 7989 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7990 lt_cv_ld_force_load=yes 7991 else 7992 cat conftest.err >&5 7993 fi 7994 rm -f conftest.err libconftest.a conftest conftest.c 7995 rm -rf conftest.dSYM 7996 7997fi 7998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7999printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8000 case $host_os in 8001 rhapsody* | darwin1.[012]) 8002 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8003 darwin1.*) 8004 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8005 darwin*) 8006 case $MACOSX_DEPLOYMENT_TARGET,$host in 8007 10.[012],*|,*powerpc*-darwin[5-8]*) 8008 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8009 *) 8010 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8011 esac 8012 ;; 8013 esac 8014 if test yes = "$lt_cv_apple_cc_single_mod"; then 8015 _lt_dar_single_mod='$single_module' 8016 fi 8017 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8018 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8019 else 8020 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8021 fi 8022 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8023 _lt_dsymutil='~$DSYMUTIL $lib || :' 8024 else 8025 _lt_dsymutil= 8026 fi 8027 ;; 8028 esac 8029 8030# func_munge_path_list VARIABLE PATH 8031# ----------------------------------- 8032# VARIABLE is name of variable containing _space_ separated list of 8033# directories to be munged by the contents of PATH, which is string 8034# having a format: 8035# "DIR[:DIR]:" 8036# string "DIR[ DIR]" will be prepended to VARIABLE 8037# ":DIR[:DIR]" 8038# string "DIR[ DIR]" will be appended to VARIABLE 8039# "DIRP[:DIRP]::[DIRA:]DIRA" 8040# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8041# "DIRA[ DIRA]" will be appended to VARIABLE 8042# "DIR[:DIR]" 8043# VARIABLE will be replaced by "DIR[ DIR]" 8044func_munge_path_list () 8045{ 8046 case x$2 in 8047 x) 8048 ;; 8049 *:) 8050 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8051 ;; 8052 x:*) 8053 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8054 ;; 8055 *::*) 8056 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8057 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8058 ;; 8059 *) 8060 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8061 ;; 8062 esac 8063} 8064 8065ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8066" 8067if test "x$ac_cv_header_dlfcn_h" = xyes 8068then : 8069 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8070 8071fi 8072 8073 8074 8075 8076 8077# Set options 8078 8079 8080 8081 enable_dlopen=no 8082 8083 8084 enable_win32_dll=no 8085 8086 8087 # Check whether --enable-shared was given. 8088if test ${enable_shared+y} 8089then : 8090 enableval=$enable_shared; p=${PACKAGE-default} 8091 case $enableval in 8092 yes) enable_shared=yes ;; 8093 no) enable_shared=no ;; 8094 *) 8095 enable_shared=no 8096 # Look at the argument we got. We use all the common list separators. 8097 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8098 for pkg in $enableval; do 8099 IFS=$lt_save_ifs 8100 if test "X$pkg" = "X$p"; then 8101 enable_shared=yes 8102 fi 8103 done 8104 IFS=$lt_save_ifs 8105 ;; 8106 esac 8107else $as_nop 8108 enable_shared=yes 8109fi 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 # Check whether --enable-static was given. 8120if test ${enable_static+y} 8121then : 8122 enableval=$enable_static; p=${PACKAGE-default} 8123 case $enableval in 8124 yes) enable_static=yes ;; 8125 no) enable_static=no ;; 8126 *) 8127 enable_static=no 8128 # Look at the argument we got. We use all the common list separators. 8129 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8130 for pkg in $enableval; do 8131 IFS=$lt_save_ifs 8132 if test "X$pkg" = "X$p"; then 8133 enable_static=yes 8134 fi 8135 done 8136 IFS=$lt_save_ifs 8137 ;; 8138 esac 8139else $as_nop 8140 enable_static=yes 8141fi 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152# Check whether --with-pic was given. 8153if test ${with_pic+y} 8154then : 8155 withval=$with_pic; lt_p=${PACKAGE-default} 8156 case $withval in 8157 yes|no) pic_mode=$withval ;; 8158 *) 8159 pic_mode=default 8160 # Look at the argument we got. We use all the common list separators. 8161 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8162 for lt_pkg in $withval; do 8163 IFS=$lt_save_ifs 8164 if test "X$lt_pkg" = "X$lt_p"; then 8165 pic_mode=yes 8166 fi 8167 done 8168 IFS=$lt_save_ifs 8169 ;; 8170 esac 8171else $as_nop 8172 pic_mode=default 8173fi 8174 8175 8176 8177 8178 8179 8180 8181 8182 # Check whether --enable-fast-install was given. 8183if test ${enable_fast_install+y} 8184then : 8185 enableval=$enable_fast_install; p=${PACKAGE-default} 8186 case $enableval in 8187 yes) enable_fast_install=yes ;; 8188 no) enable_fast_install=no ;; 8189 *) 8190 enable_fast_install=no 8191 # Look at the argument we got. We use all the common list separators. 8192 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8193 for pkg in $enableval; do 8194 IFS=$lt_save_ifs 8195 if test "X$pkg" = "X$p"; then 8196 enable_fast_install=yes 8197 fi 8198 done 8199 IFS=$lt_save_ifs 8200 ;; 8201 esac 8202else $as_nop 8203 enable_fast_install=yes 8204fi 8205 8206 8207 8208 8209 8210 8211 8212 8213 shared_archive_member_spec= 8214case $host,$enable_shared in 8215power*-*-aix[5-9]*,yes) 8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8217printf %s "checking which variant of shared library versioning to provide... " >&6; } 8218 8219# Check whether --with-aix-soname was given. 8220if test ${with_aix_soname+y} 8221then : 8222 withval=$with_aix_soname; case $withval in 8223 aix|svr4|both) 8224 ;; 8225 *) 8226 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8227 ;; 8228 esac 8229 lt_cv_with_aix_soname=$with_aix_soname 8230else $as_nop 8231 if test ${lt_cv_with_aix_soname+y} 8232then : 8233 printf %s "(cached) " >&6 8234else $as_nop 8235 lt_cv_with_aix_soname=aix 8236fi 8237 8238 with_aix_soname=$lt_cv_with_aix_soname 8239fi 8240 8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8242printf "%s\n" "$with_aix_soname" >&6; } 8243 if test aix != "$with_aix_soname"; then 8244 # For the AIX way of multilib, we name the shared archive member 8245 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8246 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8247 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8248 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8249 if test 64 = "${OBJECT_MODE-32}"; then 8250 shared_archive_member_spec=shr_64 8251 else 8252 shared_archive_member_spec=shr 8253 fi 8254 fi 8255 ;; 8256*) 8257 with_aix_soname=aix 8258 ;; 8259esac 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270# This can be used to rebuild libtool when needed 8271LIBTOOL_DEPS=$ltmain 8272 8273# Always use our own libtool. 8274LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305test -z "$LN_S" && LN_S="ln -s" 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320if test -n "${ZSH_VERSION+set}"; then 8321 setopt NO_GLOB_SUBST 8322fi 8323 8324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8325printf %s "checking for objdir... " >&6; } 8326if test ${lt_cv_objdir+y} 8327then : 8328 printf %s "(cached) " >&6 8329else $as_nop 8330 rm -f .libs 2>/dev/null 8331mkdir .libs 2>/dev/null 8332if test -d .libs; then 8333 lt_cv_objdir=.libs 8334else 8335 # MS-DOS does not allow filenames that begin with a dot. 8336 lt_cv_objdir=_libs 8337fi 8338rmdir .libs 2>/dev/null 8339fi 8340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8341printf "%s\n" "$lt_cv_objdir" >&6; } 8342objdir=$lt_cv_objdir 8343 8344 8345 8346 8347 8348printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8349 8350 8351 8352 8353case $host_os in 8354aix3*) 8355 # AIX sometimes has problems with the GCC collect2 program. For some 8356 # reason, if we set the COLLECT_NAMES environment variable, the problems 8357 # vanish in a puff of smoke. 8358 if test set != "${COLLECT_NAMES+set}"; then 8359 COLLECT_NAMES= 8360 export COLLECT_NAMES 8361 fi 8362 ;; 8363esac 8364 8365# Global variables: 8366ofile=libtool 8367can_build_shared=yes 8368 8369# All known linkers require a '.a' archive for static linking (except MSVC and 8370# ICC, which need '.lib'). 8371libext=a 8372 8373with_gnu_ld=$lt_cv_prog_gnu_ld 8374 8375old_CC=$CC 8376old_CFLAGS=$CFLAGS 8377 8378# Set sane defaults for various variables 8379test -z "$CC" && CC=cc 8380test -z "$LTCC" && LTCC=$CC 8381test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8382test -z "$LD" && LD=ld 8383test -z "$ac_objext" && ac_objext=o 8384 8385func_cc_basename $compiler 8386cc_basename=$func_cc_basename_result 8387 8388 8389# Only perform the check for file, if the check method requires it 8390test -z "$MAGIC_CMD" && MAGIC_CMD=file 8391case $deplibs_check_method in 8392file_magic*) 8393 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8395printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8396if test ${lt_cv_path_MAGIC_CMD+y} 8397then : 8398 printf %s "(cached) " >&6 8399else $as_nop 8400 case $MAGIC_CMD in 8401[\\/*] | ?:[\\/]*) 8402 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8403 ;; 8404*) 8405 lt_save_MAGIC_CMD=$MAGIC_CMD 8406 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8407 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8408 for ac_dir in $ac_dummy; do 8409 IFS=$lt_save_ifs 8410 test -z "$ac_dir" && ac_dir=. 8411 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8412 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8413 if test -n "$file_magic_test_file"; then 8414 case $deplibs_check_method in 8415 "file_magic "*) 8416 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8417 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8419 $EGREP "$file_magic_regex" > /dev/null; then 8420 : 8421 else 8422 cat <<_LT_EOF 1>&2 8423 8424*** Warning: the command libtool uses to detect shared libraries, 8425*** $file_magic_cmd, produces output that libtool cannot recognize. 8426*** The result is that libtool may fail to recognize shared libraries 8427*** as such. This will affect the creation of libtool libraries that 8428*** depend on shared libraries, but programs linked with such libtool 8429*** libraries will work regardless of this problem. Nevertheless, you 8430*** may want to report the problem to your system manager and/or to 8431*** bug-libtool@gnu.org 8432 8433_LT_EOF 8434 fi ;; 8435 esac 8436 fi 8437 break 8438 fi 8439 done 8440 IFS=$lt_save_ifs 8441 MAGIC_CMD=$lt_save_MAGIC_CMD 8442 ;; 8443esac 8444fi 8445 8446MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8447if test -n "$MAGIC_CMD"; then 8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8449printf "%s\n" "$MAGIC_CMD" >&6; } 8450else 8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8452printf "%s\n" "no" >&6; } 8453fi 8454 8455 8456 8457 8458 8459if test -z "$lt_cv_path_MAGIC_CMD"; then 8460 if test -n "$ac_tool_prefix"; then 8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8462printf %s "checking for file... " >&6; } 8463if test ${lt_cv_path_MAGIC_CMD+y} 8464then : 8465 printf %s "(cached) " >&6 8466else $as_nop 8467 case $MAGIC_CMD in 8468[\\/*] | ?:[\\/]*) 8469 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8470 ;; 8471*) 8472 lt_save_MAGIC_CMD=$MAGIC_CMD 8473 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8475 for ac_dir in $ac_dummy; do 8476 IFS=$lt_save_ifs 8477 test -z "$ac_dir" && ac_dir=. 8478 if test -f "$ac_dir/file"; then 8479 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8480 if test -n "$file_magic_test_file"; then 8481 case $deplibs_check_method in 8482 "file_magic "*) 8483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8484 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8486 $EGREP "$file_magic_regex" > /dev/null; then 8487 : 8488 else 8489 cat <<_LT_EOF 1>&2 8490 8491*** Warning: the command libtool uses to detect shared libraries, 8492*** $file_magic_cmd, produces output that libtool cannot recognize. 8493*** The result is that libtool may fail to recognize shared libraries 8494*** as such. This will affect the creation of libtool libraries that 8495*** depend on shared libraries, but programs linked with such libtool 8496*** libraries will work regardless of this problem. Nevertheless, you 8497*** may want to report the problem to your system manager and/or to 8498*** bug-libtool@gnu.org 8499 8500_LT_EOF 8501 fi ;; 8502 esac 8503 fi 8504 break 8505 fi 8506 done 8507 IFS=$lt_save_ifs 8508 MAGIC_CMD=$lt_save_MAGIC_CMD 8509 ;; 8510esac 8511fi 8512 8513MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8514if test -n "$MAGIC_CMD"; then 8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8516printf "%s\n" "$MAGIC_CMD" >&6; } 8517else 8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8519printf "%s\n" "no" >&6; } 8520fi 8521 8522 8523 else 8524 MAGIC_CMD=: 8525 fi 8526fi 8527 8528 fi 8529 ;; 8530esac 8531 8532# Use C for the default configuration in the libtool script 8533 8534lt_save_CC=$CC 8535ac_ext=c 8536ac_cpp='$CPP $CPPFLAGS' 8537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8539ac_compiler_gnu=$ac_cv_c_compiler_gnu 8540 8541 8542# Source file extension for C test sources. 8543ac_ext=c 8544 8545# Object file extension for compiled C test sources. 8546objext=o 8547objext=$objext 8548 8549# Code to be used in simple compile tests 8550lt_simple_compile_test_code="int some_variable = 0;" 8551 8552# Code to be used in simple link tests 8553lt_simple_link_test_code='int main(){return(0);}' 8554 8555 8556 8557 8558 8559 8560 8561# If no C compiler was specified, use CC. 8562LTCC=${LTCC-"$CC"} 8563 8564# If no C compiler flags were specified, use CFLAGS. 8565LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8566 8567# Allow CC to be a program name with arguments. 8568compiler=$CC 8569 8570# Save the default compiler, since it gets overwritten when the other 8571# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8572compiler_DEFAULT=$CC 8573 8574# save warnings/boilerplate of simple test code 8575ac_outfile=conftest.$ac_objext 8576echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8577eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8578_lt_compiler_boilerplate=`cat conftest.err` 8579$RM conftest* 8580 8581ac_outfile=conftest.$ac_objext 8582echo "$lt_simple_link_test_code" >conftest.$ac_ext 8583eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8584_lt_linker_boilerplate=`cat conftest.err` 8585$RM -r conftest* 8586 8587 8588## CAVEAT EMPTOR: 8589## There is no encapsulation within the following macros, do not change 8590## the running order or otherwise move them around unless you know exactly 8591## what you are doing... 8592if test -n "$compiler"; then 8593 8594lt_prog_compiler_no_builtin_flag= 8595 8596if test yes = "$GCC"; then 8597 case $cc_basename in 8598 nvcc*) 8599 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8600 *) 8601 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8602 esac 8603 8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8605printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8606if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8607then : 8608 printf %s "(cached) " >&6 8609else $as_nop 8610 lt_cv_prog_compiler_rtti_exceptions=no 8611 ac_outfile=conftest.$ac_objext 8612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8613 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8614 # Insert the option either (1) after the last *FLAGS variable, or 8615 # (2) before a word containing "conftest.", or (3) at the end. 8616 # Note that $ac_compile itself does not contain backslashes and begins 8617 # with a dollar sign (not a hyphen), so the echo should work correctly. 8618 # The option is referenced via a variable to avoid confusing sed. 8619 lt_compile=`echo "$ac_compile" | $SED \ 8620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8622 -e 's:$: $lt_compiler_flag:'` 8623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8624 (eval "$lt_compile" 2>conftest.err) 8625 ac_status=$? 8626 cat conftest.err >&5 8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8628 if (exit $ac_status) && test -s "$ac_outfile"; then 8629 # The compiler can only warn and ignore the option if not recognized 8630 # So say no if there are warnings other than the usual output. 8631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8634 lt_cv_prog_compiler_rtti_exceptions=yes 8635 fi 8636 fi 8637 $RM conftest* 8638 8639fi 8640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8641printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8642 8643if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8644 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8645else 8646 : 8647fi 8648 8649fi 8650 8651 8652 8653 8654 8655 8656 lt_prog_compiler_wl= 8657lt_prog_compiler_pic= 8658lt_prog_compiler_static= 8659 8660 8661 if test yes = "$GCC"; then 8662 lt_prog_compiler_wl='-Wl,' 8663 lt_prog_compiler_static='-static' 8664 8665 case $host_os in 8666 aix*) 8667 # All AIX code is PIC. 8668 if test ia64 = "$host_cpu"; then 8669 # AIX 5 now supports IA64 processor 8670 lt_prog_compiler_static='-Bstatic' 8671 fi 8672 lt_prog_compiler_pic='-fPIC' 8673 ;; 8674 8675 amigaos*) 8676 case $host_cpu in 8677 powerpc) 8678 # see comment about AmigaOS4 .so support 8679 lt_prog_compiler_pic='-fPIC' 8680 ;; 8681 m68k) 8682 # FIXME: we need at least 68020 code to build shared libraries, but 8683 # adding the '-m68020' flag to GCC prevents building anything better, 8684 # like '-m68040'. 8685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8686 ;; 8687 esac 8688 ;; 8689 8690 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8691 # PIC is the default for these OSes. 8692 ;; 8693 8694 mingw* | cygwin* | pw32* | os2* | cegcc*) 8695 # This hack is so that the source file can tell whether it is being 8696 # built for inclusion in a dll (and should export symbols for example). 8697 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8698 # (--disable-auto-import) libraries 8699 lt_prog_compiler_pic='-DDLL_EXPORT' 8700 case $host_os in 8701 os2*) 8702 lt_prog_compiler_static='$wl-static' 8703 ;; 8704 esac 8705 ;; 8706 8707 darwin* | rhapsody*) 8708 # PIC is the default on this platform 8709 # Common symbols not allowed in MH_DYLIB files 8710 lt_prog_compiler_pic='-fno-common' 8711 ;; 8712 8713 haiku*) 8714 # PIC is the default for Haiku. 8715 # The "-static" flag exists, but is broken. 8716 lt_prog_compiler_static= 8717 ;; 8718 8719 hpux*) 8720 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8721 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8722 # sets the default TLS model and affects inlining. 8723 case $host_cpu in 8724 hppa*64*) 8725 # +Z the default 8726 ;; 8727 *) 8728 lt_prog_compiler_pic='-fPIC' 8729 ;; 8730 esac 8731 ;; 8732 8733 interix[3-9]*) 8734 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8735 # Instead, we relocate shared libraries at runtime. 8736 ;; 8737 8738 msdosdjgpp*) 8739 # Just because we use GCC doesn't mean we suddenly get shared libraries 8740 # on systems that don't support them. 8741 lt_prog_compiler_can_build_shared=no 8742 enable_shared=no 8743 ;; 8744 8745 *nto* | *qnx*) 8746 # QNX uses GNU C++, but need to define -shared option too, otherwise 8747 # it will coredump. 8748 lt_prog_compiler_pic='-fPIC -shared' 8749 ;; 8750 8751 sysv4*MP*) 8752 if test -d /usr/nec; then 8753 lt_prog_compiler_pic=-Kconform_pic 8754 fi 8755 ;; 8756 8757 *) 8758 lt_prog_compiler_pic='-fPIC' 8759 ;; 8760 esac 8761 8762 case $cc_basename in 8763 nvcc*) # Cuda Compiler Driver 2.2 8764 lt_prog_compiler_wl='-Xlinker ' 8765 if test -n "$lt_prog_compiler_pic"; then 8766 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8767 fi 8768 ;; 8769 esac 8770 else 8771 # PORTME Check for flag to pass linker flags through the system compiler. 8772 case $host_os in 8773 aix*) 8774 lt_prog_compiler_wl='-Wl,' 8775 if test ia64 = "$host_cpu"; then 8776 # AIX 5 now supports IA64 processor 8777 lt_prog_compiler_static='-Bstatic' 8778 else 8779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8780 fi 8781 ;; 8782 8783 darwin* | rhapsody*) 8784 # PIC is the default on this platform 8785 # Common symbols not allowed in MH_DYLIB files 8786 lt_prog_compiler_pic='-fno-common' 8787 case $cc_basename in 8788 nagfor*) 8789 # NAG Fortran compiler 8790 lt_prog_compiler_wl='-Wl,-Wl,,' 8791 lt_prog_compiler_pic='-PIC' 8792 lt_prog_compiler_static='-Bstatic' 8793 ;; 8794 esac 8795 ;; 8796 8797 mingw* | cygwin* | pw32* | os2* | cegcc*) 8798 # This hack is so that the source file can tell whether it is being 8799 # built for inclusion in a dll (and should export symbols for example). 8800 lt_prog_compiler_pic='-DDLL_EXPORT' 8801 case $host_os in 8802 os2*) 8803 lt_prog_compiler_static='$wl-static' 8804 ;; 8805 esac 8806 ;; 8807 8808 hpux9* | hpux10* | hpux11*) 8809 lt_prog_compiler_wl='-Wl,' 8810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8811 # not for PA HP-UX. 8812 case $host_cpu in 8813 hppa*64*|ia64*) 8814 # +Z the default 8815 ;; 8816 *) 8817 lt_prog_compiler_pic='+Z' 8818 ;; 8819 esac 8820 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8821 lt_prog_compiler_static='$wl-a ${wl}archive' 8822 ;; 8823 8824 irix5* | irix6* | nonstopux*) 8825 lt_prog_compiler_wl='-Wl,' 8826 # PIC (with -KPIC) is the default. 8827 lt_prog_compiler_static='-non_shared' 8828 ;; 8829 8830 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8831 case $cc_basename in 8832 # old Intel for x86_64, which still supported -KPIC. 8833 ecc*) 8834 lt_prog_compiler_wl='-Wl,' 8835 lt_prog_compiler_pic='-KPIC' 8836 lt_prog_compiler_static='-static' 8837 ;; 8838 # flang / f18. f95 an alias for gfortran or flang on Debian 8839 flang* | f18* | f95*) 8840 lt_prog_compiler_wl='-Wl,' 8841 lt_prog_compiler_pic='-fPIC' 8842 lt_prog_compiler_static='-static' 8843 ;; 8844 # icc used to be incompatible with GCC. 8845 # ICC 10 doesn't accept -KPIC any more. 8846 icc* | ifort*) 8847 lt_prog_compiler_wl='-Wl,' 8848 lt_prog_compiler_pic='-fPIC' 8849 lt_prog_compiler_static='-static' 8850 ;; 8851 # Lahey Fortran 8.1. 8852 lf95*) 8853 lt_prog_compiler_wl='-Wl,' 8854 lt_prog_compiler_pic='--shared' 8855 lt_prog_compiler_static='--static' 8856 ;; 8857 nagfor*) 8858 # NAG Fortran compiler 8859 lt_prog_compiler_wl='-Wl,-Wl,,' 8860 lt_prog_compiler_pic='-PIC' 8861 lt_prog_compiler_static='-Bstatic' 8862 ;; 8863 tcc*) 8864 # Fabrice Bellard et al's Tiny C Compiler 8865 lt_prog_compiler_wl='-Wl,' 8866 lt_prog_compiler_pic='-fPIC' 8867 lt_prog_compiler_static='-static' 8868 ;; 8869 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8870 # Portland Group compilers (*not* the Pentium gcc compiler, 8871 # which looks to be a dead project) 8872 lt_prog_compiler_wl='-Wl,' 8873 lt_prog_compiler_pic='-fpic' 8874 lt_prog_compiler_static='-Bstatic' 8875 ;; 8876 ccc*) 8877 lt_prog_compiler_wl='-Wl,' 8878 # All Alpha code is PIC. 8879 lt_prog_compiler_static='-non_shared' 8880 ;; 8881 xl* | bgxl* | bgf* | mpixl*) 8882 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8883 lt_prog_compiler_wl='-Wl,' 8884 lt_prog_compiler_pic='-qpic' 8885 lt_prog_compiler_static='-qstaticlink' 8886 ;; 8887 *) 8888 case `$CC -V 2>&1 | $SED 5q` in 8889 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8890 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8891 lt_prog_compiler_pic='-KPIC' 8892 lt_prog_compiler_static='-Bstatic' 8893 lt_prog_compiler_wl='' 8894 ;; 8895 *Sun\ F* | *Sun*Fortran*) 8896 lt_prog_compiler_pic='-KPIC' 8897 lt_prog_compiler_static='-Bstatic' 8898 lt_prog_compiler_wl='-Qoption ld ' 8899 ;; 8900 *Sun\ C*) 8901 # Sun C 5.9 8902 lt_prog_compiler_pic='-KPIC' 8903 lt_prog_compiler_static='-Bstatic' 8904 lt_prog_compiler_wl='-Wl,' 8905 ;; 8906 *Intel*\ [CF]*Compiler*) 8907 lt_prog_compiler_wl='-Wl,' 8908 lt_prog_compiler_pic='-fPIC' 8909 lt_prog_compiler_static='-static' 8910 ;; 8911 *Portland\ Group*) 8912 lt_prog_compiler_wl='-Wl,' 8913 lt_prog_compiler_pic='-fpic' 8914 lt_prog_compiler_static='-Bstatic' 8915 ;; 8916 esac 8917 ;; 8918 esac 8919 ;; 8920 8921 newsos6) 8922 lt_prog_compiler_pic='-KPIC' 8923 lt_prog_compiler_static='-Bstatic' 8924 ;; 8925 8926 *nto* | *qnx*) 8927 # QNX uses GNU C++, but need to define -shared option too, otherwise 8928 # it will coredump. 8929 lt_prog_compiler_pic='-fPIC -shared' 8930 ;; 8931 8932 osf3* | osf4* | osf5*) 8933 lt_prog_compiler_wl='-Wl,' 8934 # All OSF/1 code is PIC. 8935 lt_prog_compiler_static='-non_shared' 8936 ;; 8937 8938 rdos*) 8939 lt_prog_compiler_static='-non_shared' 8940 ;; 8941 8942 solaris*) 8943 lt_prog_compiler_pic='-KPIC' 8944 lt_prog_compiler_static='-Bstatic' 8945 case $cc_basename in 8946 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8947 lt_prog_compiler_wl='-Qoption ld ';; 8948 *) 8949 lt_prog_compiler_wl='-Wl,';; 8950 esac 8951 ;; 8952 8953 sunos4*) 8954 lt_prog_compiler_wl='-Qoption ld ' 8955 lt_prog_compiler_pic='-PIC' 8956 lt_prog_compiler_static='-Bstatic' 8957 ;; 8958 8959 sysv4 | sysv4.2uw2* | sysv4.3*) 8960 lt_prog_compiler_wl='-Wl,' 8961 lt_prog_compiler_pic='-KPIC' 8962 lt_prog_compiler_static='-Bstatic' 8963 ;; 8964 8965 sysv4*MP*) 8966 if test -d /usr/nec; then 8967 lt_prog_compiler_pic='-Kconform_pic' 8968 lt_prog_compiler_static='-Bstatic' 8969 fi 8970 ;; 8971 8972 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8973 lt_prog_compiler_wl='-Wl,' 8974 lt_prog_compiler_pic='-KPIC' 8975 lt_prog_compiler_static='-Bstatic' 8976 ;; 8977 8978 unicos*) 8979 lt_prog_compiler_wl='-Wl,' 8980 lt_prog_compiler_can_build_shared=no 8981 ;; 8982 8983 uts4*) 8984 lt_prog_compiler_pic='-pic' 8985 lt_prog_compiler_static='-Bstatic' 8986 ;; 8987 8988 *) 8989 lt_prog_compiler_can_build_shared=no 8990 ;; 8991 esac 8992 fi 8993 8994case $host_os in 8995 # For platforms that do not support PIC, -DPIC is meaningless: 8996 *djgpp*) 8997 lt_prog_compiler_pic= 8998 ;; 8999 *) 9000 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9001 ;; 9002esac 9003 9004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9005printf %s "checking for $compiler option to produce PIC... " >&6; } 9006if test ${lt_cv_prog_compiler_pic+y} 9007then : 9008 printf %s "(cached) " >&6 9009else $as_nop 9010 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9011fi 9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9013printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9014lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9015 9016# 9017# Check to make sure the PIC flag actually works. 9018# 9019if test -n "$lt_prog_compiler_pic"; then 9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9021printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9022if test ${lt_cv_prog_compiler_pic_works+y} 9023then : 9024 printf %s "(cached) " >&6 9025else $as_nop 9026 lt_cv_prog_compiler_pic_works=no 9027 ac_outfile=conftest.$ac_objext 9028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9029 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9030 # Insert the option either (1) after the last *FLAGS variable, or 9031 # (2) before a word containing "conftest.", or (3) at the end. 9032 # Note that $ac_compile itself does not contain backslashes and begins 9033 # with a dollar sign (not a hyphen), so the echo should work correctly. 9034 # The option is referenced via a variable to avoid confusing sed. 9035 lt_compile=`echo "$ac_compile" | $SED \ 9036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9038 -e 's:$: $lt_compiler_flag:'` 9039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9040 (eval "$lt_compile" 2>conftest.err) 9041 ac_status=$? 9042 cat conftest.err >&5 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 if (exit $ac_status) && test -s "$ac_outfile"; then 9045 # The compiler can only warn and ignore the option if not recognized 9046 # So say no if there are warnings other than the usual output. 9047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9050 lt_cv_prog_compiler_pic_works=yes 9051 fi 9052 fi 9053 $RM conftest* 9054 9055fi 9056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9057printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9058 9059if test yes = "$lt_cv_prog_compiler_pic_works"; then 9060 case $lt_prog_compiler_pic in 9061 "" | " "*) ;; 9062 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9063 esac 9064else 9065 lt_prog_compiler_pic= 9066 lt_prog_compiler_can_build_shared=no 9067fi 9068 9069fi 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081# 9082# Check to make sure the static flag actually works. 9083# 9084wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9086printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9087if test ${lt_cv_prog_compiler_static_works+y} 9088then : 9089 printf %s "(cached) " >&6 9090else $as_nop 9091 lt_cv_prog_compiler_static_works=no 9092 save_LDFLAGS=$LDFLAGS 9093 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9094 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9096 # The linker can only warn and ignore the option if not recognized 9097 # So say no if there are warnings 9098 if test -s conftest.err; then 9099 # Append any errors to the config.log. 9100 cat conftest.err 1>&5 9101 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9103 if diff conftest.exp conftest.er2 >/dev/null; then 9104 lt_cv_prog_compiler_static_works=yes 9105 fi 9106 else 9107 lt_cv_prog_compiler_static_works=yes 9108 fi 9109 fi 9110 $RM -r conftest* 9111 LDFLAGS=$save_LDFLAGS 9112 9113fi 9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9115printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9116 9117if test yes = "$lt_cv_prog_compiler_static_works"; then 9118 : 9119else 9120 lt_prog_compiler_static= 9121fi 9122 9123 9124 9125 9126 9127 9128 9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9130printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9131if test ${lt_cv_prog_compiler_c_o+y} 9132then : 9133 printf %s "(cached) " >&6 9134else $as_nop 9135 lt_cv_prog_compiler_c_o=no 9136 $RM -r conftest 2>/dev/null 9137 mkdir conftest 9138 cd conftest 9139 mkdir out 9140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9141 9142 lt_compiler_flag="-o out/conftest2.$ac_objext" 9143 # Insert the option either (1) after the last *FLAGS variable, or 9144 # (2) before a word containing "conftest.", or (3) at the end. 9145 # Note that $ac_compile itself does not contain backslashes and begins 9146 # with a dollar sign (not a hyphen), so the echo should work correctly. 9147 lt_compile=`echo "$ac_compile" | $SED \ 9148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9150 -e 's:$: $lt_compiler_flag:'` 9151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9152 (eval "$lt_compile" 2>out/conftest.err) 9153 ac_status=$? 9154 cat out/conftest.err >&5 9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9156 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9157 then 9158 # The compiler can only warn and ignore the option if not recognized 9159 # So say no if there are warnings 9160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9163 lt_cv_prog_compiler_c_o=yes 9164 fi 9165 fi 9166 chmod u+w . 2>&5 9167 $RM conftest* 9168 # SGI C++ compiler will create directory out/ii_files/ for 9169 # template instantiation 9170 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9171 $RM out/* && rmdir out 9172 cd .. 9173 $RM -r conftest 9174 $RM conftest* 9175 9176fi 9177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9178printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9179 9180 9181 9182 9183 9184 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9186printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9187if test ${lt_cv_prog_compiler_c_o+y} 9188then : 9189 printf %s "(cached) " >&6 9190else $as_nop 9191 lt_cv_prog_compiler_c_o=no 9192 $RM -r conftest 2>/dev/null 9193 mkdir conftest 9194 cd conftest 9195 mkdir out 9196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9197 9198 lt_compiler_flag="-o out/conftest2.$ac_objext" 9199 # Insert the option either (1) after the last *FLAGS variable, or 9200 # (2) before a word containing "conftest.", or (3) at the end. 9201 # Note that $ac_compile itself does not contain backslashes and begins 9202 # with a dollar sign (not a hyphen), so the echo should work correctly. 9203 lt_compile=`echo "$ac_compile" | $SED \ 9204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9206 -e 's:$: $lt_compiler_flag:'` 9207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9208 (eval "$lt_compile" 2>out/conftest.err) 9209 ac_status=$? 9210 cat out/conftest.err >&5 9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9212 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9213 then 9214 # The compiler can only warn and ignore the option if not recognized 9215 # So say no if there are warnings 9216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9217 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9218 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9219 lt_cv_prog_compiler_c_o=yes 9220 fi 9221 fi 9222 chmod u+w . 2>&5 9223 $RM conftest* 9224 # SGI C++ compiler will create directory out/ii_files/ for 9225 # template instantiation 9226 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9227 $RM out/* && rmdir out 9228 cd .. 9229 $RM -r conftest 9230 $RM conftest* 9231 9232fi 9233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9234printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9235 9236 9237 9238 9239hard_links=nottested 9240if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9241 # do not overwrite the value of need_locks provided by the user 9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9243printf %s "checking if we can lock with hard links... " >&6; } 9244 hard_links=yes 9245 $RM conftest* 9246 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9247 touch conftest.a 9248 ln conftest.a conftest.b 2>&5 || hard_links=no 9249 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9251printf "%s\n" "$hard_links" >&6; } 9252 if test no = "$hard_links"; then 9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9254printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9255 need_locks=warn 9256 fi 9257else 9258 need_locks=no 9259fi 9260 9261 9262 9263 9264 9265 9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9267printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9268 9269 runpath_var= 9270 allow_undefined_flag= 9271 always_export_symbols=no 9272 archive_cmds= 9273 archive_expsym_cmds= 9274 compiler_needs_object=no 9275 enable_shared_with_static_runtimes=no 9276 export_dynamic_flag_spec= 9277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9278 hardcode_automatic=no 9279 hardcode_direct=no 9280 hardcode_direct_absolute=no 9281 hardcode_libdir_flag_spec= 9282 hardcode_libdir_separator= 9283 hardcode_minus_L=no 9284 hardcode_shlibpath_var=unsupported 9285 inherit_rpath=no 9286 link_all_deplibs=unknown 9287 module_cmds= 9288 module_expsym_cmds= 9289 old_archive_from_new_cmds= 9290 old_archive_from_expsyms_cmds= 9291 thread_safe_flag_spec= 9292 whole_archive_flag_spec= 9293 # include_expsyms should be a list of space-separated symbols to be *always* 9294 # included in the symbol list 9295 include_expsyms= 9296 # exclude_expsyms can be an extended regexp of symbols to exclude 9297 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9298 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9299 # as well as any symbol that contains 'd'. 9300 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9302 # platforms (ab)use it in PIC code, but their linkers get confused if 9303 # the symbol is explicitly referenced. Since portable code cannot 9304 # rely on this symbol name, it's probably fine to never include it in 9305 # preloaded symbol tables. 9306 # Exclude shared library initialization/finalization symbols. 9307 extract_expsyms_cmds= 9308 9309 case $host_os in 9310 cygwin* | mingw* | pw32* | cegcc*) 9311 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9312 # When not using gcc, we currently assume that we are using 9313 # Microsoft Visual C++ or Intel C++ Compiler. 9314 if test yes != "$GCC"; then 9315 with_gnu_ld=no 9316 fi 9317 ;; 9318 interix*) 9319 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9320 with_gnu_ld=yes 9321 ;; 9322 openbsd* | bitrig*) 9323 with_gnu_ld=no 9324 ;; 9325 linux* | k*bsd*-gnu | gnu*) 9326 link_all_deplibs=no 9327 ;; 9328 esac 9329 9330 ld_shlibs=yes 9331 9332 # On some targets, GNU ld is compatible enough with the native linker 9333 # that we're better off using the native interface for both. 9334 lt_use_gnu_ld_interface=no 9335 if test yes = "$with_gnu_ld"; then 9336 case $host_os in 9337 aix*) 9338 # The AIX port of GNU ld has always aspired to compatibility 9339 # with the native linker. However, as the warning in the GNU ld 9340 # block says, versions before 2.19.5* couldn't really create working 9341 # shared libraries, regardless of the interface used. 9342 case `$LD -v 2>&1` in 9343 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9344 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9345 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9346 *) 9347 lt_use_gnu_ld_interface=yes 9348 ;; 9349 esac 9350 ;; 9351 *) 9352 lt_use_gnu_ld_interface=yes 9353 ;; 9354 esac 9355 fi 9356 9357 if test yes = "$lt_use_gnu_ld_interface"; then 9358 # If archive_cmds runs LD, not CC, wlarc should be empty 9359 wlarc='$wl' 9360 9361 # Set some defaults for GNU ld with shared library support. These 9362 # are reset later if shared libraries are not supported. Putting them 9363 # here allows them to be overridden if necessary. 9364 runpath_var=LD_RUN_PATH 9365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9366 export_dynamic_flag_spec='$wl--export-dynamic' 9367 # ancient GNU ld didn't support --whole-archive et. al. 9368 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9369 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9370 else 9371 whole_archive_flag_spec= 9372 fi 9373 supports_anon_versioning=no 9374 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9375 *GNU\ gold*) supports_anon_versioning=yes ;; 9376 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9377 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9378 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9379 *\ 2.11.*) ;; # other 2.11 versions 9380 *) supports_anon_versioning=yes ;; 9381 esac 9382 9383 # See if GNU ld supports shared libraries. 9384 case $host_os in 9385 aix[3-9]*) 9386 # On AIX/PPC, the GNU linker is very broken 9387 if test ia64 != "$host_cpu"; then 9388 ld_shlibs=no 9389 cat <<_LT_EOF 1>&2 9390 9391*** Warning: the GNU linker, at least up to release 2.19, is reported 9392*** to be unable to reliably create shared libraries on AIX. 9393*** Therefore, libtool is disabling shared libraries support. If you 9394*** really care for shared libraries, you may want to install binutils 9395*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9396*** You will then need to restart the configuration process. 9397 9398_LT_EOF 9399 fi 9400 ;; 9401 9402 amigaos*) 9403 case $host_cpu in 9404 powerpc) 9405 # see comment about AmigaOS4 .so support 9406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9407 archive_expsym_cmds='' 9408 ;; 9409 m68k) 9410 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)' 9411 hardcode_libdir_flag_spec='-L$libdir' 9412 hardcode_minus_L=yes 9413 ;; 9414 esac 9415 ;; 9416 9417 beos*) 9418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9419 allow_undefined_flag=unsupported 9420 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9421 # support --undefined. This deserves some investigation. FIXME 9422 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9423 else 9424 ld_shlibs=no 9425 fi 9426 ;; 9427 9428 cygwin* | mingw* | pw32* | cegcc*) 9429 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9430 # as there is no search path for DLLs. 9431 hardcode_libdir_flag_spec='-L$libdir' 9432 export_dynamic_flag_spec='$wl--export-all-symbols' 9433 allow_undefined_flag=unsupported 9434 always_export_symbols=no 9435 enable_shared_with_static_runtimes=yes 9436 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' 9437 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9438 9439 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9441 # If the export-symbols file already is a .def file, use it as 9442 # is; otherwise, prepend EXPORTS... 9443 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9444 cp $export_symbols $output_objdir/$soname.def; 9445 else 9446 echo EXPORTS > $output_objdir/$soname.def; 9447 cat $export_symbols >> $output_objdir/$soname.def; 9448 fi~ 9449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9450 else 9451 ld_shlibs=no 9452 fi 9453 ;; 9454 9455 haiku*) 9456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9457 link_all_deplibs=yes 9458 ;; 9459 9460 os2*) 9461 hardcode_libdir_flag_spec='-L$libdir' 9462 hardcode_minus_L=yes 9463 allow_undefined_flag=unsupported 9464 shrext_cmds=.dll 9465 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9466 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9467 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9468 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9469 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9470 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9471 emximp -o $lib $output_objdir/$libname.def' 9472 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9473 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9474 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9475 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9476 prefix_cmds="$SED"~ 9477 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9478 prefix_cmds="$prefix_cmds -e 1d"; 9479 fi~ 9480 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9481 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9482 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9483 emximp -o $lib $output_objdir/$libname.def' 9484 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9485 enable_shared_with_static_runtimes=yes 9486 file_list_spec='@' 9487 ;; 9488 9489 interix[3-9]*) 9490 hardcode_direct=no 9491 hardcode_shlibpath_var=no 9492 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9493 export_dynamic_flag_spec='$wl-E' 9494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9495 # Instead, shared libraries are loaded at an image base (0x10000000 by 9496 # default) and relocated if they conflict, which is a slow very memory 9497 # consuming and fragmenting process. To avoid this, we pick a random, 9498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9499 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9501 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' 9502 ;; 9503 9504 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9505 tmp_diet=no 9506 if test linux-dietlibc = "$host_os"; then 9507 case $cc_basename in 9508 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9509 esac 9510 fi 9511 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9512 && test no = "$tmp_diet" 9513 then 9514 tmp_addflag=' $pic_flag' 9515 tmp_sharedflag='-shared' 9516 case $cc_basename,$host_cpu in 9517 pgcc*) # Portland Group C compiler 9518 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' 9519 tmp_addflag=' $pic_flag' 9520 ;; 9521 pgf77* | pgf90* | pgf95* | pgfortran*) 9522 # Portland Group f77 and f90 compilers 9523 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' 9524 tmp_addflag=' $pic_flag -Mnomain' ;; 9525 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9526 tmp_addflag=' -i_dynamic' ;; 9527 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9528 tmp_addflag=' -i_dynamic -nofor_main' ;; 9529 ifc* | ifort*) # Intel Fortran compiler 9530 tmp_addflag=' -nofor_main' ;; 9531 lf95*) # Lahey Fortran 8.1 9532 whole_archive_flag_spec= 9533 tmp_sharedflag='--shared' ;; 9534 nagfor*) # NAGFOR 5.3 9535 tmp_sharedflag='-Wl,-shared' ;; 9536 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9537 tmp_sharedflag='-qmkshrobj' 9538 tmp_addflag= ;; 9539 nvcc*) # Cuda Compiler Driver 2.2 9540 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' 9541 compiler_needs_object=yes 9542 ;; 9543 esac 9544 case `$CC -V 2>&1 | $SED 5q` in 9545 *Sun\ C*) # Sun C 5.9 9546 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' 9547 compiler_needs_object=yes 9548 tmp_sharedflag='-G' ;; 9549 *Sun\ F*) # Sun Fortran 8.3 9550 tmp_sharedflag='-G' ;; 9551 esac 9552 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9553 9554 if test yes = "$supports_anon_versioning"; then 9555 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9556 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9557 echo "local: *; };" >> $output_objdir/$libname.ver~ 9558 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9559 fi 9560 9561 case $cc_basename in 9562 tcc*) 9563 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9564 export_dynamic_flag_spec='-rdynamic' 9565 ;; 9566 xlf* | bgf* | bgxlf* | mpixlf*) 9567 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9568 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9569 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9570 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9571 if test yes = "$supports_anon_versioning"; then 9572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9573 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9574 echo "local: *; };" >> $output_objdir/$libname.ver~ 9575 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9576 fi 9577 ;; 9578 esac 9579 else 9580 ld_shlibs=no 9581 fi 9582 ;; 9583 9584 netbsd* | netbsdelf*-gnu) 9585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9586 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9587 wlarc= 9588 else 9589 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9590 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9591 fi 9592 ;; 9593 9594 solaris*) 9595 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9596 ld_shlibs=no 9597 cat <<_LT_EOF 1>&2 9598 9599*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9600*** create shared libraries on Solaris systems. Therefore, libtool 9601*** is disabling shared libraries support. We urge you to upgrade GNU 9602*** binutils to release 2.9.1 or newer. Another option is to modify 9603*** your PATH or compiler configuration so that the native linker is 9604*** used, and then restart. 9605 9606_LT_EOF 9607 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9609 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9610 else 9611 ld_shlibs=no 9612 fi 9613 ;; 9614 9615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9616 case `$LD -v 2>&1` in 9617 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9618 ld_shlibs=no 9619 cat <<_LT_EOF 1>&2 9620 9621*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9622*** reliably create shared libraries on SCO systems. Therefore, libtool 9623*** is disabling shared libraries support. We urge you to upgrade GNU 9624*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9625*** your PATH or compiler configuration so that the native linker is 9626*** used, and then restart. 9627 9628_LT_EOF 9629 ;; 9630 *) 9631 # For security reasons, it is highly recommended that you always 9632 # use absolute paths for naming shared libraries, and exclude the 9633 # DT_RUNPATH tag from executables and libraries. But doing so 9634 # requires that you compile everything twice, which is a pain. 9635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9636 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9639 else 9640 ld_shlibs=no 9641 fi 9642 ;; 9643 esac 9644 ;; 9645 9646 sunos4*) 9647 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9648 wlarc= 9649 hardcode_direct=yes 9650 hardcode_shlibpath_var=no 9651 ;; 9652 9653 *) 9654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9657 else 9658 ld_shlibs=no 9659 fi 9660 ;; 9661 esac 9662 9663 if test no = "$ld_shlibs"; then 9664 runpath_var= 9665 hardcode_libdir_flag_spec= 9666 export_dynamic_flag_spec= 9667 whole_archive_flag_spec= 9668 fi 9669 else 9670 # PORTME fill in a description of your system's linker (not GNU ld) 9671 case $host_os in 9672 aix3*) 9673 allow_undefined_flag=unsupported 9674 always_export_symbols=yes 9675 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' 9676 # Note: this linker hardcodes the directories in LIBPATH if there 9677 # are no directories specified by -L. 9678 hardcode_minus_L=yes 9679 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9680 # Neither direct hardcoding nor static linking is supported with a 9681 # broken collect2. 9682 hardcode_direct=unsupported 9683 fi 9684 ;; 9685 9686 aix[4-9]*) 9687 if test ia64 = "$host_cpu"; then 9688 # On IA64, the linker does run time linking by default, so we don't 9689 # have to do anything special. 9690 aix_use_runtimelinking=no 9691 exp_sym_flag='-Bexport' 9692 no_entry_flag= 9693 else 9694 # If we're using GNU nm, then we don't want the "-C" option. 9695 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9696 # Without the "-l" option, or with the "-B" option, AIX nm treats 9697 # weak defined symbols like other global defined symbols, whereas 9698 # GNU nm marks them as "W". 9699 # While the 'weak' keyword is ignored in the Export File, we need 9700 # it in the Import File for the 'aix-soname' feature, so we have 9701 # to replace the "-B" option with "-P" for AIX nm. 9702 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9703 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' 9704 else 9705 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 == "L") || (\$ 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' 9706 fi 9707 aix_use_runtimelinking=no 9708 9709 # Test if we are trying to use run time linking or normal 9710 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9711 # have runtime linking enabled, and use it for executables. 9712 # For shared libraries, we enable/disable runtime linking 9713 # depending on the kind of the shared library created - 9714 # when "with_aix_soname,aix_use_runtimelinking" is: 9715 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9716 # "aix,yes" lib.so shared, rtl:yes, for executables 9717 # lib.a static archive 9718 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9719 # lib.a(lib.so.V) shared, rtl:no, for executables 9720 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9721 # lib.a(lib.so.V) shared, rtl:no 9722 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9723 # lib.a static archive 9724 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9725 for ld_flag in $LDFLAGS; do 9726 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9727 aix_use_runtimelinking=yes 9728 break 9729 fi 9730 done 9731 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9732 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9733 # so we don't have lib.a shared libs to link our executables. 9734 # We have to force runtime linking in this case. 9735 aix_use_runtimelinking=yes 9736 LDFLAGS="$LDFLAGS -Wl,-brtl" 9737 fi 9738 ;; 9739 esac 9740 9741 exp_sym_flag='-bexport' 9742 no_entry_flag='-bnoentry' 9743 fi 9744 9745 # When large executables or shared objects are built, AIX ld can 9746 # have problems creating the table of contents. If linking a library 9747 # or program results in "error TOC overflow" add -mminimal-toc to 9748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9750 9751 archive_cmds='' 9752 hardcode_direct=yes 9753 hardcode_direct_absolute=yes 9754 hardcode_libdir_separator=':' 9755 link_all_deplibs=yes 9756 file_list_spec='$wl-f,' 9757 case $with_aix_soname,$aix_use_runtimelinking in 9758 aix,*) ;; # traditional, no import file 9759 svr4,* | *,yes) # use import file 9760 # The Import File defines what to hardcode. 9761 hardcode_direct=no 9762 hardcode_direct_absolute=no 9763 ;; 9764 esac 9765 9766 if test yes = "$GCC"; then 9767 case $host_os in aix4.[012]|aix4.[012].*) 9768 # We only want to do this on AIX 4.2 and lower, the check 9769 # below for broken collect2 doesn't work under 4.3+ 9770 collect2name=`$CC -print-prog-name=collect2` 9771 if test -f "$collect2name" && 9772 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9773 then 9774 # We have reworked collect2 9775 : 9776 else 9777 # We have old collect2 9778 hardcode_direct=unsupported 9779 # It fails to find uninstalled libraries when the uninstalled 9780 # path is not listed in the libpath. Setting hardcode_minus_L 9781 # to unsupported forces relinking 9782 hardcode_minus_L=yes 9783 hardcode_libdir_flag_spec='-L$libdir' 9784 hardcode_libdir_separator= 9785 fi 9786 ;; 9787 esac 9788 shared_flag='-shared' 9789 if test yes = "$aix_use_runtimelinking"; then 9790 shared_flag="$shared_flag "'$wl-G' 9791 fi 9792 # Need to ensure runtime linking is disabled for the traditional 9793 # shared library, or the linker may eventually find shared libraries 9794 # /with/ Import File - we do not want to mix them. 9795 shared_flag_aix='-shared' 9796 shared_flag_svr4='-shared $wl-G' 9797 else 9798 # not using gcc 9799 if test ia64 = "$host_cpu"; then 9800 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9801 # chokes on -Wl,-G. The following line is correct: 9802 shared_flag='-G' 9803 else 9804 if test yes = "$aix_use_runtimelinking"; then 9805 shared_flag='$wl-G' 9806 else 9807 shared_flag='$wl-bM:SRE' 9808 fi 9809 shared_flag_aix='$wl-bM:SRE' 9810 shared_flag_svr4='$wl-G' 9811 fi 9812 fi 9813 9814 export_dynamic_flag_spec='$wl-bexpall' 9815 # It seems that -bexpall does not export symbols beginning with 9816 # underscore (_), so it is better to generate a list of symbols to export. 9817 always_export_symbols=yes 9818 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9819 # Warning - without using the other runtime loading flags (-brtl), 9820 # -berok will link without error, but may produce a broken library. 9821 allow_undefined_flag='-berok' 9822 # Determine the default libpath from the value encoded in an 9823 # empty executable. 9824 if test set = "${lt_cv_aix_libpath+set}"; then 9825 aix_libpath=$lt_cv_aix_libpath 9826else 9827 if test ${lt_cv_aix_libpath_+y} 9828then : 9829 printf %s "(cached) " >&6 9830else $as_nop 9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832/* end confdefs.h. */ 9833 9834int 9835main (void) 9836{ 9837 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842if ac_fn_c_try_link "$LINENO" 9843then : 9844 9845 lt_aix_libpath_sed=' 9846 /Import File Strings/,/^$/ { 9847 /^0/ { 9848 s/^0 *\([^ ]*\) *$/\1/ 9849 p 9850 } 9851 }' 9852 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9853 # Check for a 64-bit object if we didn't find anything. 9854 if test -z "$lt_cv_aix_libpath_"; then 9855 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9856 fi 9857fi 9858rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9859 conftest$ac_exeext conftest.$ac_ext 9860 if test -z "$lt_cv_aix_libpath_"; then 9861 lt_cv_aix_libpath_=/usr/lib:/lib 9862 fi 9863 9864fi 9865 9866 aix_libpath=$lt_cv_aix_libpath_ 9867fi 9868 9869 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9870 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 9871 else 9872 if test ia64 = "$host_cpu"; then 9873 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9874 allow_undefined_flag="-z nodefs" 9875 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" 9876 else 9877 # Determine the default libpath from the value encoded in an 9878 # empty executable. 9879 if test set = "${lt_cv_aix_libpath+set}"; then 9880 aix_libpath=$lt_cv_aix_libpath 9881else 9882 if test ${lt_cv_aix_libpath_+y} 9883then : 9884 printf %s "(cached) " >&6 9885else $as_nop 9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9887/* end confdefs.h. */ 9888 9889int 9890main (void) 9891{ 9892 9893 ; 9894 return 0; 9895} 9896_ACEOF 9897if ac_fn_c_try_link "$LINENO" 9898then : 9899 9900 lt_aix_libpath_sed=' 9901 /Import File Strings/,/^$/ { 9902 /^0/ { 9903 s/^0 *\([^ ]*\) *$/\1/ 9904 p 9905 } 9906 }' 9907 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9908 # Check for a 64-bit object if we didn't find anything. 9909 if test -z "$lt_cv_aix_libpath_"; then 9910 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9911 fi 9912fi 9913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9914 conftest$ac_exeext conftest.$ac_ext 9915 if test -z "$lt_cv_aix_libpath_"; then 9916 lt_cv_aix_libpath_=/usr/lib:/lib 9917 fi 9918 9919fi 9920 9921 aix_libpath=$lt_cv_aix_libpath_ 9922fi 9923 9924 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9925 # Warning - without using the other run time loading flags, 9926 # -berok will link without error, but may produce a broken library. 9927 no_undefined_flag=' $wl-bernotok' 9928 allow_undefined_flag=' $wl-berok' 9929 if test yes = "$with_gnu_ld"; then 9930 # We only use this code for GNU lds that support --whole-archive. 9931 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9932 else 9933 # Exported symbols can be pulled into shared objects from archives 9934 whole_archive_flag_spec='$convenience' 9935 fi 9936 archive_cmds_need_lc=yes 9937 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9938 # -brtl affects multiple linker settings, -berok does not and is overridden later 9939 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9940 if test svr4 != "$with_aix_soname"; then 9941 # This is similar to how AIX traditionally builds its shared libraries. 9942 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' 9943 fi 9944 if test aix != "$with_aix_soname"; then 9945 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' 9946 else 9947 # used by -dlpreopen to get the symbols 9948 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9949 fi 9950 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9951 fi 9952 fi 9953 ;; 9954 9955 amigaos*) 9956 case $host_cpu in 9957 powerpc) 9958 # see comment about AmigaOS4 .so support 9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9960 archive_expsym_cmds='' 9961 ;; 9962 m68k) 9963 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)' 9964 hardcode_libdir_flag_spec='-L$libdir' 9965 hardcode_minus_L=yes 9966 ;; 9967 esac 9968 ;; 9969 9970 bsdi[45]*) 9971 export_dynamic_flag_spec=-rdynamic 9972 ;; 9973 9974 cygwin* | mingw* | pw32* | cegcc*) 9975 # When not using gcc, we currently assume that we are using 9976 # Microsoft Visual C++ or Intel C++ Compiler. 9977 # hardcode_libdir_flag_spec is actually meaningless, as there is 9978 # no search path for DLLs. 9979 case $cc_basename in 9980 cl* | icl*) 9981 # Native MSVC or ICC 9982 hardcode_libdir_flag_spec=' ' 9983 allow_undefined_flag=unsupported 9984 always_export_symbols=yes 9985 file_list_spec='@' 9986 # Tell ltmain to make .lib files, not .a files. 9987 libext=lib 9988 # Tell ltmain to make .dll files, not .so files. 9989 shrext_cmds=.dll 9990 # FIXME: Setting linknames here is a bad hack. 9991 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9992 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9993 cp "$export_symbols" "$output_objdir/$soname.def"; 9994 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9995 else 9996 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9997 fi~ 9998 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9999 linknames=' 10000 # The linker will not automatically build a static lib if we build a DLL. 10001 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10002 enable_shared_with_static_runtimes=yes 10003 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10005 # Don't use ranlib 10006 old_postinstall_cmds='chmod 644 $oldlib' 10007 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10008 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10009 case $lt_outputfile in 10010 *.exe|*.EXE) ;; 10011 *) 10012 lt_outputfile=$lt_outputfile.exe 10013 lt_tool_outputfile=$lt_tool_outputfile.exe 10014 ;; 10015 esac~ 10016 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10017 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10018 $RM "$lt_outputfile.manifest"; 10019 fi' 10020 ;; 10021 *) 10022 # Assume MSVC and ICC wrapper 10023 hardcode_libdir_flag_spec=' ' 10024 allow_undefined_flag=unsupported 10025 # Tell ltmain to make .lib files, not .a files. 10026 libext=lib 10027 # Tell ltmain to make .dll files, not .so files. 10028 shrext_cmds=.dll 10029 # FIXME: Setting linknames here is a bad hack. 10030 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10031 # The linker will automatically build a .lib file if we build a DLL. 10032 old_archive_from_new_cmds='true' 10033 # FIXME: Should let the user specify the lib program. 10034 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10035 enable_shared_with_static_runtimes=yes 10036 ;; 10037 esac 10038 ;; 10039 10040 darwin* | rhapsody*) 10041 10042 10043 archive_cmds_need_lc=no 10044 hardcode_direct=no 10045 hardcode_automatic=yes 10046 hardcode_shlibpath_var=unsupported 10047 if test yes = "$lt_cv_ld_force_load"; then 10048 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\"`' 10049 10050 else 10051 whole_archive_flag_spec='' 10052 fi 10053 link_all_deplibs=yes 10054 allow_undefined_flag=$_lt_dar_allow_undefined 10055 case $cc_basename in 10056 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10057 *) _lt_dar_can_shared=$GCC ;; 10058 esac 10059 if test yes = "$_lt_dar_can_shared"; then 10060 output_verbose_link_cmd=func_echo_all 10061 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10062 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10063 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" 10064 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" 10065 10066 else 10067 ld_shlibs=no 10068 fi 10069 10070 ;; 10071 10072 dgux*) 10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10074 hardcode_libdir_flag_spec='-L$libdir' 10075 hardcode_shlibpath_var=no 10076 ;; 10077 10078 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10079 # support. Future versions do this automatically, but an explicit c++rt0.o 10080 # does not break anything, and helps significantly (at the cost of a little 10081 # extra space). 10082 freebsd2.2*) 10083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10084 hardcode_libdir_flag_spec='-R$libdir' 10085 hardcode_direct=yes 10086 hardcode_shlibpath_var=no 10087 ;; 10088 10089 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10090 freebsd2.*) 10091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10092 hardcode_direct=yes 10093 hardcode_minus_L=yes 10094 hardcode_shlibpath_var=no 10095 ;; 10096 10097 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10098 freebsd* | dragonfly* | midnightbsd*) 10099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10100 hardcode_libdir_flag_spec='-R$libdir' 10101 hardcode_direct=yes 10102 hardcode_shlibpath_var=no 10103 ;; 10104 10105 hpux9*) 10106 if test yes = "$GCC"; then 10107 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' 10108 else 10109 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' 10110 fi 10111 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10112 hardcode_libdir_separator=: 10113 hardcode_direct=yes 10114 10115 # hardcode_minus_L: Not really in the search PATH, 10116 # but as the default location of the library. 10117 hardcode_minus_L=yes 10118 export_dynamic_flag_spec='$wl-E' 10119 ;; 10120 10121 hpux10*) 10122 if test yes,no = "$GCC,$with_gnu_ld"; then 10123 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10124 else 10125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10126 fi 10127 if test no = "$with_gnu_ld"; then 10128 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10129 hardcode_libdir_separator=: 10130 hardcode_direct=yes 10131 hardcode_direct_absolute=yes 10132 export_dynamic_flag_spec='$wl-E' 10133 # hardcode_minus_L: Not really in the search PATH, 10134 # but as the default location of the library. 10135 hardcode_minus_L=yes 10136 fi 10137 ;; 10138 10139 hpux11*) 10140 if test yes,no = "$GCC,$with_gnu_ld"; then 10141 case $host_cpu in 10142 hppa*64*) 10143 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10144 ;; 10145 ia64*) 10146 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10147 ;; 10148 *) 10149 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10150 ;; 10151 esac 10152 else 10153 case $host_cpu in 10154 hppa*64*) 10155 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10156 ;; 10157 ia64*) 10158 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10159 ;; 10160 *) 10161 10162 # Older versions of the 11.00 compiler do not understand -b yet 10163 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10165printf %s "checking if $CC understands -b... " >&6; } 10166if test ${lt_cv_prog_compiler__b+y} 10167then : 10168 printf %s "(cached) " >&6 10169else $as_nop 10170 lt_cv_prog_compiler__b=no 10171 save_LDFLAGS=$LDFLAGS 10172 LDFLAGS="$LDFLAGS -b" 10173 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10175 # The linker can only warn and ignore the option if not recognized 10176 # So say no if there are warnings 10177 if test -s conftest.err; then 10178 # Append any errors to the config.log. 10179 cat conftest.err 1>&5 10180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10182 if diff conftest.exp conftest.er2 >/dev/null; then 10183 lt_cv_prog_compiler__b=yes 10184 fi 10185 else 10186 lt_cv_prog_compiler__b=yes 10187 fi 10188 fi 10189 $RM -r conftest* 10190 LDFLAGS=$save_LDFLAGS 10191 10192fi 10193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10194printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10195 10196if test yes = "$lt_cv_prog_compiler__b"; then 10197 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10198else 10199 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10200fi 10201 10202 ;; 10203 esac 10204 fi 10205 if test no = "$with_gnu_ld"; then 10206 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10207 hardcode_libdir_separator=: 10208 10209 case $host_cpu in 10210 hppa*64*|ia64*) 10211 hardcode_direct=no 10212 hardcode_shlibpath_var=no 10213 ;; 10214 *) 10215 hardcode_direct=yes 10216 hardcode_direct_absolute=yes 10217 export_dynamic_flag_spec='$wl-E' 10218 10219 # hardcode_minus_L: Not really in the search PATH, 10220 # but as the default location of the library. 10221 hardcode_minus_L=yes 10222 ;; 10223 esac 10224 fi 10225 ;; 10226 10227 irix5* | irix6* | nonstopux*) 10228 if test yes = "$GCC"; then 10229 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' 10230 # Try to use the -exported_symbol ld option, if it does not 10231 # work, assume that -exports_file does not work either and 10232 # implicitly export all symbols. 10233 # This should be the same for all languages, so no per-tag cache variable. 10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10235printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10236if test ${lt_cv_irix_exported_symbol+y} 10237then : 10238 printf %s "(cached) " >&6 10239else $as_nop 10240 save_LDFLAGS=$LDFLAGS 10241 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10243/* end confdefs.h. */ 10244int foo (void) { return 0; } 10245_ACEOF 10246if ac_fn_c_try_link "$LINENO" 10247then : 10248 lt_cv_irix_exported_symbol=yes 10249else $as_nop 10250 lt_cv_irix_exported_symbol=no 10251fi 10252rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10253 conftest$ac_exeext conftest.$ac_ext 10254 LDFLAGS=$save_LDFLAGS 10255fi 10256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10257printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10258 if test yes = "$lt_cv_irix_exported_symbol"; then 10259 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' 10260 fi 10261 link_all_deplibs=no 10262 else 10263 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' 10264 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' 10265 fi 10266 archive_cmds_need_lc='no' 10267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10268 hardcode_libdir_separator=: 10269 inherit_rpath=yes 10270 link_all_deplibs=yes 10271 ;; 10272 10273 linux*) 10274 case $cc_basename in 10275 tcc*) 10276 # Fabrice Bellard et al's Tiny C Compiler 10277 ld_shlibs=yes 10278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10279 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10280 ;; 10281 esac 10282 ;; 10283 10284 netbsd* | netbsdelf*-gnu) 10285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10287 else 10288 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10289 fi 10290 hardcode_libdir_flag_spec='-R$libdir' 10291 hardcode_direct=yes 10292 hardcode_shlibpath_var=no 10293 ;; 10294 10295 newsos6) 10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10297 hardcode_direct=yes 10298 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10299 hardcode_libdir_separator=: 10300 hardcode_shlibpath_var=no 10301 ;; 10302 10303 *nto* | *qnx*) 10304 ;; 10305 10306 openbsd* | bitrig*) 10307 if test -f /usr/libexec/ld.so; then 10308 hardcode_direct=yes 10309 hardcode_shlibpath_var=no 10310 hardcode_direct_absolute=yes 10311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10313 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10314 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10315 export_dynamic_flag_spec='$wl-E' 10316 else 10317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10318 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10319 fi 10320 else 10321 ld_shlibs=no 10322 fi 10323 ;; 10324 10325 os2*) 10326 hardcode_libdir_flag_spec='-L$libdir' 10327 hardcode_minus_L=yes 10328 allow_undefined_flag=unsupported 10329 shrext_cmds=.dll 10330 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10331 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10332 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10333 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10334 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10335 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10336 emximp -o $lib $output_objdir/$libname.def' 10337 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10338 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10339 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10340 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10341 prefix_cmds="$SED"~ 10342 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10343 prefix_cmds="$prefix_cmds -e 1d"; 10344 fi~ 10345 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10346 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10347 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10348 emximp -o $lib $output_objdir/$libname.def' 10349 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10350 enable_shared_with_static_runtimes=yes 10351 file_list_spec='@' 10352 ;; 10353 10354 osf3*) 10355 if test yes = "$GCC"; then 10356 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10357 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' 10358 else 10359 allow_undefined_flag=' -expect_unresolved \*' 10360 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' 10361 fi 10362 archive_cmds_need_lc='no' 10363 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10364 hardcode_libdir_separator=: 10365 ;; 10366 10367 osf4* | osf5*) # as osf3* with the addition of -msym flag 10368 if test yes = "$GCC"; then 10369 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10370 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' 10371 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10372 else 10373 allow_undefined_flag=' -expect_unresolved \*' 10374 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' 10375 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~ 10376 $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' 10377 10378 # Both c and cxx compiler support -rpath directly 10379 hardcode_libdir_flag_spec='-rpath $libdir' 10380 fi 10381 archive_cmds_need_lc='no' 10382 hardcode_libdir_separator=: 10383 ;; 10384 10385 solaris*) 10386 no_undefined_flag=' -z defs' 10387 if test yes = "$GCC"; then 10388 wlarc='$wl' 10389 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10390 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10391 $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' 10392 else 10393 case `$CC -V 2>&1` in 10394 *"Compilers 5.0"*) 10395 wlarc='' 10396 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10397 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10398 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10399 ;; 10400 *) 10401 wlarc='$wl' 10402 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10404 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10405 ;; 10406 esac 10407 fi 10408 hardcode_libdir_flag_spec='-R$libdir' 10409 hardcode_shlibpath_var=no 10410 case $host_os in 10411 solaris2.[0-5] | solaris2.[0-5].*) ;; 10412 *) 10413 # The compiler driver will combine and reorder linker options, 10414 # but understands '-z linker_flag'. GCC discards it without '$wl', 10415 # but is careful enough not to reorder. 10416 # Supported since Solaris 2.6 (maybe 2.5.1?) 10417 if test yes = "$GCC"; then 10418 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10419 else 10420 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10421 fi 10422 ;; 10423 esac 10424 link_all_deplibs=yes 10425 ;; 10426 10427 sunos4*) 10428 if test sequent = "$host_vendor"; then 10429 # Use $CC to link under sequent, because it throws in some extra .o 10430 # files that make .init and .fini sections work. 10431 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10432 else 10433 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10434 fi 10435 hardcode_libdir_flag_spec='-L$libdir' 10436 hardcode_direct=yes 10437 hardcode_minus_L=yes 10438 hardcode_shlibpath_var=no 10439 ;; 10440 10441 sysv4) 10442 case $host_vendor in 10443 sni) 10444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10445 hardcode_direct=yes # is this really true??? 10446 ;; 10447 siemens) 10448 ## LD is ld it makes a PLAMLIB 10449 ## CC just makes a GrossModule. 10450 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10451 reload_cmds='$CC -r -o $output$reload_objs' 10452 hardcode_direct=no 10453 ;; 10454 motorola) 10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10456 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10457 ;; 10458 esac 10459 runpath_var='LD_RUN_PATH' 10460 hardcode_shlibpath_var=no 10461 ;; 10462 10463 sysv4.3*) 10464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10465 hardcode_shlibpath_var=no 10466 export_dynamic_flag_spec='-Bexport' 10467 ;; 10468 10469 sysv4*MP*) 10470 if test -d /usr/nec; then 10471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10472 hardcode_shlibpath_var=no 10473 runpath_var=LD_RUN_PATH 10474 hardcode_runpath_var=yes 10475 ld_shlibs=yes 10476 fi 10477 ;; 10478 10479 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10480 no_undefined_flag='$wl-z,text' 10481 archive_cmds_need_lc=no 10482 hardcode_shlibpath_var=no 10483 runpath_var='LD_RUN_PATH' 10484 10485 if test yes = "$GCC"; then 10486 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10487 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10488 else 10489 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10490 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10491 fi 10492 ;; 10493 10494 sysv5* | sco3.2v5* | sco5v6*) 10495 # Note: We CANNOT use -z defs as we might desire, because we do not 10496 # link with -lc, and that would cause any symbols used from libc to 10497 # always be unresolved, which means just about no library would 10498 # ever link correctly. If we're not using GNU ld we use -z text 10499 # though, which does catch some bad symbols but isn't as heavy-handed 10500 # as -z defs. 10501 no_undefined_flag='$wl-z,text' 10502 allow_undefined_flag='$wl-z,nodefs' 10503 archive_cmds_need_lc=no 10504 hardcode_shlibpath_var=no 10505 hardcode_libdir_flag_spec='$wl-R,$libdir' 10506 hardcode_libdir_separator=':' 10507 link_all_deplibs=yes 10508 export_dynamic_flag_spec='$wl-Bexport' 10509 runpath_var='LD_RUN_PATH' 10510 10511 if test yes = "$GCC"; then 10512 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10513 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10514 else 10515 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10516 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10517 fi 10518 ;; 10519 10520 uts4*) 10521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10522 hardcode_libdir_flag_spec='-L$libdir' 10523 hardcode_shlibpath_var=no 10524 ;; 10525 10526 *) 10527 ld_shlibs=no 10528 ;; 10529 esac 10530 10531 if test sni = "$host_vendor"; then 10532 case $host in 10533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10534 export_dynamic_flag_spec='$wl-Blargedynsym' 10535 ;; 10536 esac 10537 fi 10538 fi 10539 10540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10541printf "%s\n" "$ld_shlibs" >&6; } 10542test no = "$ld_shlibs" && can_build_shared=no 10543 10544with_gnu_ld=$with_gnu_ld 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560# 10561# Do we need to explicitly link libc? 10562# 10563case "x$archive_cmds_need_lc" in 10564x|xyes) 10565 # Assume -lc should be added 10566 archive_cmds_need_lc=yes 10567 10568 if test yes,yes = "$GCC,$enable_shared"; then 10569 case $archive_cmds in 10570 *'~'*) 10571 # FIXME: we may have to deal with multi-command sequences. 10572 ;; 10573 '$CC '*) 10574 # Test whether the compiler implicitly links with -lc since on some 10575 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10576 # to ld, don't add -lc before -lgcc. 10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10578printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10579if test ${lt_cv_archive_cmds_need_lc+y} 10580then : 10581 printf %s "(cached) " >&6 10582else $as_nop 10583 $RM conftest* 10584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10585 10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10587 (eval $ac_compile) 2>&5 10588 ac_status=$? 10589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10590 test $ac_status = 0; } 2>conftest.err; then 10591 soname=conftest 10592 lib=conftest 10593 libobjs=conftest.$ac_objext 10594 deplibs= 10595 wl=$lt_prog_compiler_wl 10596 pic_flag=$lt_prog_compiler_pic 10597 compiler_flags=-v 10598 linker_flags=-v 10599 verstring= 10600 output_objdir=. 10601 libname=conftest 10602 lt_save_allow_undefined_flag=$allow_undefined_flag 10603 allow_undefined_flag= 10604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10605 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10606 ac_status=$? 10607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10608 test $ac_status = 0; } 10609 then 10610 lt_cv_archive_cmds_need_lc=no 10611 else 10612 lt_cv_archive_cmds_need_lc=yes 10613 fi 10614 allow_undefined_flag=$lt_save_allow_undefined_flag 10615 else 10616 cat conftest.err 1>&5 10617 fi 10618 $RM conftest* 10619 10620fi 10621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10622printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10623 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10624 ;; 10625 esac 10626 fi 10627 ;; 10628esac 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10782printf %s "checking dynamic linker characteristics... " >&6; } 10783 10784if test yes = "$GCC"; then 10785 case $host_os in 10786 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10787 *) lt_awk_arg='/^libraries:/' ;; 10788 esac 10789 case $host_os in 10790 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10791 *) lt_sed_strip_eq='s|=/|/|g' ;; 10792 esac 10793 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10794 case $lt_search_path_spec in 10795 *\;*) 10796 # if the path contains ";" then we assume it to be the separator 10797 # otherwise default to the standard path separator (i.e. ":") - it is 10798 # assumed that no part of a normal pathname contains ";" but that should 10799 # okay in the real world where ";" in dirpaths is itself problematic. 10800 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10801 ;; 10802 *) 10803 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10804 ;; 10805 esac 10806 # Ok, now we have the path, separated by spaces, we can step through it 10807 # and add multilib dir if necessary... 10808 lt_tmp_lt_search_path_spec= 10809 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10810 # ...but if some path component already ends with the multilib dir we assume 10811 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10812 case "$lt_multi_os_dir; $lt_search_path_spec " in 10813 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10814 lt_multi_os_dir= 10815 ;; 10816 esac 10817 for lt_sys_path in $lt_search_path_spec; do 10818 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10819 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10820 elif test -n "$lt_multi_os_dir"; then 10821 test -d "$lt_sys_path" && \ 10822 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10823 fi 10824 done 10825 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10826BEGIN {RS = " "; FS = "/|\n";} { 10827 lt_foo = ""; 10828 lt_count = 0; 10829 for (lt_i = NF; lt_i > 0; lt_i--) { 10830 if ($lt_i != "" && $lt_i != ".") { 10831 if ($lt_i == "..") { 10832 lt_count++; 10833 } else { 10834 if (lt_count == 0) { 10835 lt_foo = "/" $lt_i lt_foo; 10836 } else { 10837 lt_count--; 10838 } 10839 } 10840 } 10841 } 10842 if (lt_foo != "") { lt_freq[lt_foo]++; } 10843 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10844}'` 10845 # AWK program above erroneously prepends '/' to C:/dos/paths 10846 # for these hosts. 10847 case $host_os in 10848 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10849 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10850 esac 10851 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10852else 10853 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10854fi 10855library_names_spec= 10856libname_spec='lib$name' 10857soname_spec= 10858shrext_cmds=.so 10859postinstall_cmds= 10860postuninstall_cmds= 10861finish_cmds= 10862finish_eval= 10863shlibpath_var= 10864shlibpath_overrides_runpath=unknown 10865version_type=none 10866dynamic_linker="$host_os ld.so" 10867sys_lib_dlsearch_path_spec="/lib /usr/lib" 10868need_lib_prefix=unknown 10869hardcode_into_libs=no 10870 10871# when you set need_version to no, make sure it does not cause -set_version 10872# flags to be left without arguments 10873need_version=unknown 10874 10875 10876 10877case $host_os in 10878aix3*) 10879 version_type=linux # correct to gnu/linux during the next big refactor 10880 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10881 shlibpath_var=LIBPATH 10882 10883 # AIX 3 has no versioning support, so we append a major version to the name. 10884 soname_spec='$libname$release$shared_ext$major' 10885 ;; 10886 10887aix[4-9]*) 10888 version_type=linux # correct to gnu/linux during the next big refactor 10889 need_lib_prefix=no 10890 need_version=no 10891 hardcode_into_libs=yes 10892 if test ia64 = "$host_cpu"; then 10893 # AIX 5 supports IA64 10894 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10895 shlibpath_var=LD_LIBRARY_PATH 10896 else 10897 # With GCC up to 2.95.x, collect2 would create an import file 10898 # for dependence libraries. The import file would start with 10899 # the line '#! .'. This would cause the generated library to 10900 # depend on '.', always an invalid library. This was fixed in 10901 # development snapshots of GCC prior to 3.0. 10902 case $host_os in 10903 aix4 | aix4.[01] | aix4.[01].*) 10904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10905 echo ' yes ' 10906 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10907 : 10908 else 10909 can_build_shared=no 10910 fi 10911 ;; 10912 esac 10913 # Using Import Files as archive members, it is possible to support 10914 # filename-based versioning of shared library archives on AIX. While 10915 # this would work for both with and without runtime linking, it will 10916 # prevent static linking of such archives. So we do filename-based 10917 # shared library versioning with .so extension only, which is used 10918 # when both runtime linking and shared linking is enabled. 10919 # Unfortunately, runtime linking may impact performance, so we do 10920 # not want this to be the default eventually. Also, we use the 10921 # versioned .so libs for executables only if there is the -brtl 10922 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10923 # To allow for filename-based versioning support, we need to create 10924 # libNAME.so.V as an archive file, containing: 10925 # *) an Import File, referring to the versioned filename of the 10926 # archive as well as the shared archive member, telling the 10927 # bitwidth (32 or 64) of that shared object, and providing the 10928 # list of exported symbols of that shared object, eventually 10929 # decorated with the 'weak' keyword 10930 # *) the shared object with the F_LOADONLY flag set, to really avoid 10931 # it being seen by the linker. 10932 # At run time we better use the real file rather than another symlink, 10933 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10934 10935 case $with_aix_soname,$aix_use_runtimelinking in 10936 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10937 # soname into executable. Probably we can add versioning support to 10938 # collect2, so additional links can be useful in future. 10939 aix,yes) # traditional libtool 10940 dynamic_linker='AIX unversionable lib.so' 10941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10942 # instead of lib<name>.a to let people know that these are not 10943 # typical AIX shared libraries. 10944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10945 ;; 10946 aix,no) # traditional AIX only 10947 dynamic_linker='AIX lib.a(lib.so.V)' 10948 # We preserve .a as extension for shared libraries through AIX4.2 10949 # and later when we are not doing run time linking. 10950 library_names_spec='$libname$release.a $libname.a' 10951 soname_spec='$libname$release$shared_ext$major' 10952 ;; 10953 svr4,*) # full svr4 only 10954 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10955 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10956 # We do not specify a path in Import Files, so LIBPATH fires. 10957 shlibpath_overrides_runpath=yes 10958 ;; 10959 *,yes) # both, prefer svr4 10960 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10961 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10962 # unpreferred sharedlib libNAME.a needs extra handling 10963 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"' 10964 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"' 10965 # We do not specify a path in Import Files, so LIBPATH fires. 10966 shlibpath_overrides_runpath=yes 10967 ;; 10968 *,no) # both, prefer aix 10969 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10970 library_names_spec='$libname$release.a $libname.a' 10971 soname_spec='$libname$release$shared_ext$major' 10972 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10973 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)' 10974 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"' 10975 ;; 10976 esac 10977 shlibpath_var=LIBPATH 10978 fi 10979 ;; 10980 10981amigaos*) 10982 case $host_cpu in 10983 powerpc) 10984 # Since July 2007 AmigaOS4 officially supports .so libraries. 10985 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10987 ;; 10988 m68k) 10989 library_names_spec='$libname.ixlibrary $libname.a' 10990 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10991 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' 10992 ;; 10993 esac 10994 ;; 10995 10996beos*) 10997 library_names_spec='$libname$shared_ext' 10998 dynamic_linker="$host_os ld.so" 10999 shlibpath_var=LIBRARY_PATH 11000 ;; 11001 11002bsdi[45]*) 11003 version_type=linux # correct to gnu/linux during the next big refactor 11004 need_version=no 11005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11006 soname_spec='$libname$release$shared_ext$major' 11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11008 shlibpath_var=LD_LIBRARY_PATH 11009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11011 # the default ld.so.conf also contains /usr/contrib/lib and 11012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11013 # libtool to hard-code these into programs 11014 ;; 11015 11016cygwin* | mingw* | pw32* | cegcc*) 11017 version_type=windows 11018 shrext_cmds=.dll 11019 need_version=no 11020 need_lib_prefix=no 11021 11022 case $GCC,$cc_basename in 11023 yes,*) 11024 # gcc 11025 library_names_spec='$libname.dll.a' 11026 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11027 postinstall_cmds='base_file=`basename \$file`~ 11028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11029 dldir=$destdir/`dirname \$dlpath`~ 11030 test -d \$dldir || mkdir -p \$dldir~ 11031 $install_prog $dir/$dlname \$dldir/$dlname~ 11032 chmod a+x \$dldir/$dlname~ 11033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11035 fi' 11036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11037 dlpath=$dir/\$dldll~ 11038 $RM \$dlpath' 11039 shlibpath_overrides_runpath=yes 11040 11041 case $host_os in 11042 cygwin*) 11043 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11044 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11045 11046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11047 ;; 11048 mingw* | cegcc*) 11049 # MinGW DLLs use traditional 'lib' prefix 11050 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11051 ;; 11052 pw32*) 11053 # pw32 DLLs use 'pw' prefix rather than 'lib' 11054 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11055 ;; 11056 esac 11057 dynamic_linker='Win32 ld.exe' 11058 ;; 11059 11060 *,cl* | *,icl*) 11061 # Native MSVC or ICC 11062 libname_spec='$name' 11063 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11064 library_names_spec='$libname.dll.lib' 11065 11066 case $build_os in 11067 mingw*) 11068 sys_lib_search_path_spec= 11069 lt_save_ifs=$IFS 11070 IFS=';' 11071 for lt_path in $LIB 11072 do 11073 IFS=$lt_save_ifs 11074 # Let DOS variable expansion print the short 8.3 style file name. 11075 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11076 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11077 done 11078 IFS=$lt_save_ifs 11079 # Convert to MSYS style. 11080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11081 ;; 11082 cygwin*) 11083 # Convert to unix form, then to dos form, then back to unix form 11084 # but this time dos style (no spaces!) so that the unix form looks 11085 # like /cygdrive/c/PROGRA~1:/cygdr... 11086 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11087 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11088 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11089 ;; 11090 *) 11091 sys_lib_search_path_spec=$LIB 11092 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11093 # It is most probably a Windows format PATH. 11094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11095 else 11096 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11097 fi 11098 # FIXME: find the short name or the path components, as spaces are 11099 # common. (e.g. "Program Files" -> "PROGRA~1") 11100 ;; 11101 esac 11102 11103 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11104 postinstall_cmds='base_file=`basename \$file`~ 11105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11106 dldir=$destdir/`dirname \$dlpath`~ 11107 test -d \$dldir || mkdir -p \$dldir~ 11108 $install_prog $dir/$dlname \$dldir/$dlname' 11109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11110 dlpath=$dir/\$dldll~ 11111 $RM \$dlpath' 11112 shlibpath_overrides_runpath=yes 11113 dynamic_linker='Win32 link.exe' 11114 ;; 11115 11116 *) 11117 # Assume MSVC and ICC wrapper 11118 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11119 dynamic_linker='Win32 ld.exe' 11120 ;; 11121 esac 11122 # FIXME: first we should search . and the directory the executable is in 11123 shlibpath_var=PATH 11124 ;; 11125 11126darwin* | rhapsody*) 11127 dynamic_linker="$host_os dyld" 11128 version_type=darwin 11129 need_lib_prefix=no 11130 need_version=no 11131 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11132 soname_spec='$libname$release$major$shared_ext' 11133 shlibpath_overrides_runpath=yes 11134 shlibpath_var=DYLD_LIBRARY_PATH 11135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11136 11137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11139 ;; 11140 11141dgux*) 11142 version_type=linux # correct to gnu/linux during the next big refactor 11143 need_lib_prefix=no 11144 need_version=no 11145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11146 soname_spec='$libname$release$shared_ext$major' 11147 shlibpath_var=LD_LIBRARY_PATH 11148 ;; 11149 11150freebsd* | dragonfly* | midnightbsd*) 11151 # DragonFly does not have aout. When/if they implement a new 11152 # versioning mechanism, adjust this. 11153 if test -x /usr/bin/objformat; then 11154 objformat=`/usr/bin/objformat` 11155 else 11156 case $host_os in 11157 freebsd[23].*) objformat=aout ;; 11158 *) objformat=elf ;; 11159 esac 11160 fi 11161 version_type=freebsd-$objformat 11162 case $version_type in 11163 freebsd-elf*) 11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11165 soname_spec='$libname$release$shared_ext$major' 11166 need_version=no 11167 need_lib_prefix=no 11168 ;; 11169 freebsd-*) 11170 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11171 need_version=yes 11172 ;; 11173 esac 11174 shlibpath_var=LD_LIBRARY_PATH 11175 case $host_os in 11176 freebsd2.*) 11177 shlibpath_overrides_runpath=yes 11178 ;; 11179 freebsd3.[01]* | freebsdelf3.[01]*) 11180 shlibpath_overrides_runpath=yes 11181 hardcode_into_libs=yes 11182 ;; 11183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11185 shlibpath_overrides_runpath=no 11186 hardcode_into_libs=yes 11187 ;; 11188 *) # from 4.6 on, and DragonFly 11189 shlibpath_overrides_runpath=yes 11190 hardcode_into_libs=yes 11191 ;; 11192 esac 11193 ;; 11194 11195haiku*) 11196 version_type=linux # correct to gnu/linux during the next big refactor 11197 need_lib_prefix=no 11198 need_version=no 11199 dynamic_linker="$host_os runtime_loader" 11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11201 soname_spec='$libname$release$shared_ext$major' 11202 shlibpath_var=LIBRARY_PATH 11203 shlibpath_overrides_runpath=no 11204 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11205 hardcode_into_libs=yes 11206 ;; 11207 11208hpux9* | hpux10* | hpux11*) 11209 # Give a soname corresponding to the major version so that dld.sl refuses to 11210 # link against other versions. 11211 version_type=sunos 11212 need_lib_prefix=no 11213 need_version=no 11214 case $host_cpu in 11215 ia64*) 11216 shrext_cmds='.so' 11217 hardcode_into_libs=yes 11218 dynamic_linker="$host_os dld.so" 11219 shlibpath_var=LD_LIBRARY_PATH 11220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11222 soname_spec='$libname$release$shared_ext$major' 11223 if test 32 = "$HPUX_IA64_MODE"; then 11224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11225 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11226 else 11227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11228 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11229 fi 11230 ;; 11231 hppa*64*) 11232 shrext_cmds='.sl' 11233 hardcode_into_libs=yes 11234 dynamic_linker="$host_os dld.sl" 11235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11238 soname_spec='$libname$release$shared_ext$major' 11239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11241 ;; 11242 *) 11243 shrext_cmds='.sl' 11244 dynamic_linker="$host_os dld.sl" 11245 shlibpath_var=SHLIB_PATH 11246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11248 soname_spec='$libname$release$shared_ext$major' 11249 ;; 11250 esac 11251 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11252 postinstall_cmds='chmod 555 $lib' 11253 # or fails outright, so override atomically: 11254 install_override_mode=555 11255 ;; 11256 11257interix[3-9]*) 11258 version_type=linux # correct to gnu/linux during the next big refactor 11259 need_lib_prefix=no 11260 need_version=no 11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11262 soname_spec='$libname$release$shared_ext$major' 11263 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11264 shlibpath_var=LD_LIBRARY_PATH 11265 shlibpath_overrides_runpath=no 11266 hardcode_into_libs=yes 11267 ;; 11268 11269irix5* | irix6* | nonstopux*) 11270 case $host_os in 11271 nonstopux*) version_type=nonstopux ;; 11272 *) 11273 if test yes = "$lt_cv_prog_gnu_ld"; then 11274 version_type=linux # correct to gnu/linux during the next big refactor 11275 else 11276 version_type=irix 11277 fi ;; 11278 esac 11279 need_lib_prefix=no 11280 need_version=no 11281 soname_spec='$libname$release$shared_ext$major' 11282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11283 case $host_os in 11284 irix5* | nonstopux*) 11285 libsuff= shlibsuff= 11286 ;; 11287 *) 11288 case $LD in # libtool.m4 will add one of these switches to LD 11289 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11290 libsuff= shlibsuff= libmagic=32-bit;; 11291 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11292 libsuff=32 shlibsuff=N32 libmagic=N32;; 11293 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11294 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11295 *) libsuff= shlibsuff= libmagic=never-match;; 11296 esac 11297 ;; 11298 esac 11299 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11300 shlibpath_overrides_runpath=no 11301 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11302 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11303 hardcode_into_libs=yes 11304 ;; 11305 11306# No shared lib support for Linux oldld, aout, or coff. 11307linux*oldld* | linux*aout* | linux*coff*) 11308 dynamic_linker=no 11309 ;; 11310 11311linux*android*) 11312 version_type=none # Android doesn't support versioned libraries. 11313 need_lib_prefix=no 11314 need_version=no 11315 library_names_spec='$libname$release$shared_ext' 11316 soname_spec='$libname$release$shared_ext' 11317 finish_cmds= 11318 shlibpath_var=LD_LIBRARY_PATH 11319 shlibpath_overrides_runpath=yes 11320 11321 # This implies no fast_install, which is unacceptable. 11322 # Some rework will be needed to allow for fast_install 11323 # before this can be enabled. 11324 hardcode_into_libs=yes 11325 11326 dynamic_linker='Android linker' 11327 # Don't embed -rpath directories since the linker doesn't support them. 11328 hardcode_libdir_flag_spec='-L$libdir' 11329 ;; 11330 11331# This must be glibc/ELF. 11332linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11333 version_type=linux # correct to gnu/linux during the next big refactor 11334 need_lib_prefix=no 11335 need_version=no 11336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11337 soname_spec='$libname$release$shared_ext$major' 11338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11339 shlibpath_var=LD_LIBRARY_PATH 11340 shlibpath_overrides_runpath=no 11341 11342 # Some binutils ld are patched to set DT_RUNPATH 11343 if test ${lt_cv_shlibpath_overrides_runpath+y} 11344then : 11345 printf %s "(cached) " >&6 11346else $as_nop 11347 lt_cv_shlibpath_overrides_runpath=no 11348 save_LDFLAGS=$LDFLAGS 11349 save_libdir=$libdir 11350 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11351 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11353/* end confdefs.h. */ 11354 11355int 11356main (void) 11357{ 11358 11359 ; 11360 return 0; 11361} 11362_ACEOF 11363if ac_fn_c_try_link "$LINENO" 11364then : 11365 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11366then : 11367 lt_cv_shlibpath_overrides_runpath=yes 11368fi 11369fi 11370rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11371 conftest$ac_exeext conftest.$ac_ext 11372 LDFLAGS=$save_LDFLAGS 11373 libdir=$save_libdir 11374 11375fi 11376 11377 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11378 11379 # This implies no fast_install, which is unacceptable. 11380 # Some rework will be needed to allow for fast_install 11381 # before this can be enabled. 11382 hardcode_into_libs=yes 11383 11384 # Ideally, we could use ldconfig to report *all* directores which are 11385 # searched for libraries, however this is still not possible. Aside from not 11386 # being certain /sbin/ldconfig is available, command 11387 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11388 # even though it is searched at run-time. Try to do the best guess by 11389 # appending ld.so.conf contents (and includes) to the search path. 11390 if test -f /etc/ld.so.conf; then 11391 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' ' '` 11392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11393 fi 11394 11395 # We used to test for /lib/ld.so.1 and disable shared libraries on 11396 # powerpc, because MkLinux only supported shared libraries with the 11397 # GNU dynamic linker. Since this was broken with cross compilers, 11398 # most powerpc-linux boxes support dynamic linking these days and 11399 # people can always --disable-shared, the test was removed, and we 11400 # assume the GNU/Linux dynamic linker is in use. 11401 dynamic_linker='GNU/Linux ld.so' 11402 ;; 11403 11404netbsdelf*-gnu) 11405 version_type=linux 11406 need_lib_prefix=no 11407 need_version=no 11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11409 soname_spec='${libname}${release}${shared_ext}$major' 11410 shlibpath_var=LD_LIBRARY_PATH 11411 shlibpath_overrides_runpath=no 11412 hardcode_into_libs=yes 11413 dynamic_linker='NetBSD ld.elf_so' 11414 ;; 11415 11416netbsd*) 11417 version_type=sunos 11418 need_lib_prefix=no 11419 need_version=no 11420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11423 dynamic_linker='NetBSD (a.out) ld.so' 11424 else 11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11426 soname_spec='$libname$release$shared_ext$major' 11427 dynamic_linker='NetBSD ld.elf_so' 11428 fi 11429 shlibpath_var=LD_LIBRARY_PATH 11430 shlibpath_overrides_runpath=yes 11431 hardcode_into_libs=yes 11432 ;; 11433 11434newsos6) 11435 version_type=linux # correct to gnu/linux during the next big refactor 11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11437 shlibpath_var=LD_LIBRARY_PATH 11438 shlibpath_overrides_runpath=yes 11439 ;; 11440 11441*nto* | *qnx*) 11442 version_type=qnx 11443 need_lib_prefix=no 11444 need_version=no 11445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11446 soname_spec='$libname$release$shared_ext$major' 11447 shlibpath_var=LD_LIBRARY_PATH 11448 shlibpath_overrides_runpath=no 11449 hardcode_into_libs=yes 11450 dynamic_linker='ldqnx.so' 11451 ;; 11452 11453openbsd* | bitrig*) 11454 version_type=sunos 11455 sys_lib_dlsearch_path_spec=/usr/lib 11456 need_lib_prefix=no 11457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11458 need_version=no 11459 else 11460 need_version=yes 11461 fi 11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11464 shlibpath_var=LD_LIBRARY_PATH 11465 shlibpath_overrides_runpath=yes 11466 ;; 11467 11468os2*) 11469 libname_spec='$name' 11470 version_type=windows 11471 shrext_cmds=.dll 11472 need_version=no 11473 need_lib_prefix=no 11474 # OS/2 can only load a DLL with a base name of 8 characters or less. 11475 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11476 v=$($ECHO $release$versuffix | tr -d .-); 11477 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11478 $ECHO $n$v`$shared_ext' 11479 library_names_spec='${libname}_dll.$libext' 11480 dynamic_linker='OS/2 ld.exe' 11481 shlibpath_var=BEGINLIBPATH 11482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11484 postinstall_cmds='base_file=`basename \$file`~ 11485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11486 dldir=$destdir/`dirname \$dlpath`~ 11487 test -d \$dldir || mkdir -p \$dldir~ 11488 $install_prog $dir/$dlname \$dldir/$dlname~ 11489 chmod a+x \$dldir/$dlname~ 11490 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11491 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11492 fi' 11493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11494 dlpath=$dir/\$dldll~ 11495 $RM \$dlpath' 11496 ;; 11497 11498osf3* | osf4* | osf5*) 11499 version_type=osf 11500 need_lib_prefix=no 11501 need_version=no 11502 soname_spec='$libname$release$shared_ext$major' 11503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11504 shlibpath_var=LD_LIBRARY_PATH 11505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11507 ;; 11508 11509rdos*) 11510 dynamic_linker=no 11511 ;; 11512 11513solaris*) 11514 version_type=linux # correct to gnu/linux during the next big refactor 11515 need_lib_prefix=no 11516 need_version=no 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11518 soname_spec='$libname$release$shared_ext$major' 11519 shlibpath_var=LD_LIBRARY_PATH 11520 shlibpath_overrides_runpath=yes 11521 hardcode_into_libs=yes 11522 # ldd complains unless libraries are executable 11523 postinstall_cmds='chmod +x $lib' 11524 ;; 11525 11526sunos4*) 11527 version_type=sunos 11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11530 shlibpath_var=LD_LIBRARY_PATH 11531 shlibpath_overrides_runpath=yes 11532 if test yes = "$with_gnu_ld"; then 11533 need_lib_prefix=no 11534 fi 11535 need_version=yes 11536 ;; 11537 11538sysv4 | sysv4.3*) 11539 version_type=linux # correct to gnu/linux during the next big refactor 11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11541 soname_spec='$libname$release$shared_ext$major' 11542 shlibpath_var=LD_LIBRARY_PATH 11543 case $host_vendor in 11544 sni) 11545 shlibpath_overrides_runpath=no 11546 need_lib_prefix=no 11547 runpath_var=LD_RUN_PATH 11548 ;; 11549 siemens) 11550 need_lib_prefix=no 11551 ;; 11552 motorola) 11553 need_lib_prefix=no 11554 need_version=no 11555 shlibpath_overrides_runpath=no 11556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11557 ;; 11558 esac 11559 ;; 11560 11561sysv4*MP*) 11562 if test -d /usr/nec; then 11563 version_type=linux # correct to gnu/linux during the next big refactor 11564 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11565 soname_spec='$libname$shared_ext.$major' 11566 shlibpath_var=LD_LIBRARY_PATH 11567 fi 11568 ;; 11569 11570sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11571 version_type=sco 11572 need_lib_prefix=no 11573 need_version=no 11574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11575 soname_spec='$libname$release$shared_ext$major' 11576 shlibpath_var=LD_LIBRARY_PATH 11577 shlibpath_overrides_runpath=yes 11578 hardcode_into_libs=yes 11579 if test yes = "$with_gnu_ld"; then 11580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11581 else 11582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11583 case $host_os in 11584 sco3.2v5*) 11585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11586 ;; 11587 esac 11588 fi 11589 sys_lib_dlsearch_path_spec='/usr/lib' 11590 ;; 11591 11592tpf*) 11593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11594 version_type=linux # correct to gnu/linux during the next big refactor 11595 need_lib_prefix=no 11596 need_version=no 11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11598 shlibpath_var=LD_LIBRARY_PATH 11599 shlibpath_overrides_runpath=no 11600 hardcode_into_libs=yes 11601 ;; 11602 11603uts4*) 11604 version_type=linux # correct to gnu/linux during the next big refactor 11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11606 soname_spec='$libname$release$shared_ext$major' 11607 shlibpath_var=LD_LIBRARY_PATH 11608 ;; 11609 11610*) 11611 dynamic_linker=no 11612 ;; 11613esac 11614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11615printf "%s\n" "$dynamic_linker" >&6; } 11616test no = "$dynamic_linker" && can_build_shared=no 11617 11618variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11619if test yes = "$GCC"; then 11620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11621fi 11622 11623if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11624 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11625fi 11626 11627if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11628 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11629fi 11630 11631# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11632configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11633 11634# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11635func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11636 11637# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11638configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11737printf %s "checking how to hardcode library paths into programs... " >&6; } 11738hardcode_action= 11739if test -n "$hardcode_libdir_flag_spec" || 11740 test -n "$runpath_var" || 11741 test yes = "$hardcode_automatic"; then 11742 11743 # We can hardcode non-existent directories. 11744 if test no != "$hardcode_direct" && 11745 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11746 # have to relink, otherwise we might link with an installed library 11747 # when we should be linking with a yet-to-be-installed one 11748 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11749 test no != "$hardcode_minus_L"; then 11750 # Linking always hardcodes the temporary library directory. 11751 hardcode_action=relink 11752 else 11753 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11754 hardcode_action=immediate 11755 fi 11756else 11757 # We cannot hardcode anything, or else we can only hardcode existing 11758 # directories. 11759 hardcode_action=unsupported 11760fi 11761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11762printf "%s\n" "$hardcode_action" >&6; } 11763 11764if test relink = "$hardcode_action" || 11765 test yes = "$inherit_rpath"; then 11766 # Fast installation is not supported 11767 enable_fast_install=no 11768elif test yes = "$shlibpath_overrides_runpath" || 11769 test no = "$enable_shared"; then 11770 # Fast installation is not necessary 11771 enable_fast_install=needless 11772fi 11773 11774 11775 11776 11777 11778 11779 if test yes != "$enable_dlopen"; then 11780 enable_dlopen=unknown 11781 enable_dlopen_self=unknown 11782 enable_dlopen_self_static=unknown 11783else 11784 lt_cv_dlopen=no 11785 lt_cv_dlopen_libs= 11786 11787 case $host_os in 11788 beos*) 11789 lt_cv_dlopen=load_add_on 11790 lt_cv_dlopen_libs= 11791 lt_cv_dlopen_self=yes 11792 ;; 11793 11794 mingw* | pw32* | cegcc*) 11795 lt_cv_dlopen=LoadLibrary 11796 lt_cv_dlopen_libs= 11797 ;; 11798 11799 cygwin*) 11800 lt_cv_dlopen=dlopen 11801 lt_cv_dlopen_libs= 11802 ;; 11803 11804 darwin*) 11805 # if libdl is installed we need to link against it 11806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11807printf %s "checking for dlopen in -ldl... " >&6; } 11808if test ${ac_cv_lib_dl_dlopen+y} 11809then : 11810 printf %s "(cached) " >&6 11811else $as_nop 11812 ac_check_lib_save_LIBS=$LIBS 11813LIBS="-ldl $LIBS" 11814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11815/* end confdefs.h. */ 11816 11817/* Override any GCC internal prototype to avoid an error. 11818 Use char because int might match the return type of a GCC 11819 builtin and then its argument prototype would still apply. */ 11820char dlopen (); 11821int 11822main (void) 11823{ 11824return dlopen (); 11825 ; 11826 return 0; 11827} 11828_ACEOF 11829if ac_fn_c_try_link "$LINENO" 11830then : 11831 ac_cv_lib_dl_dlopen=yes 11832else $as_nop 11833 ac_cv_lib_dl_dlopen=no 11834fi 11835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11836 conftest$ac_exeext conftest.$ac_ext 11837LIBS=$ac_check_lib_save_LIBS 11838fi 11839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11840printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 11841if test "x$ac_cv_lib_dl_dlopen" = xyes 11842then : 11843 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11844else $as_nop 11845 11846 lt_cv_dlopen=dyld 11847 lt_cv_dlopen_libs= 11848 lt_cv_dlopen_self=yes 11849 11850fi 11851 11852 ;; 11853 11854 tpf*) 11855 # Don't try to run any link tests for TPF. We know it's impossible 11856 # because TPF is a cross-compiler, and we know how we open DSOs. 11857 lt_cv_dlopen=dlopen 11858 lt_cv_dlopen_libs= 11859 lt_cv_dlopen_self=no 11860 ;; 11861 11862 *) 11863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11864if test "x$ac_cv_func_shl_load" = xyes 11865then : 11866 lt_cv_dlopen=shl_load 11867else $as_nop 11868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11869printf %s "checking for shl_load in -ldld... " >&6; } 11870if test ${ac_cv_lib_dld_shl_load+y} 11871then : 11872 printf %s "(cached) " >&6 11873else $as_nop 11874 ac_check_lib_save_LIBS=$LIBS 11875LIBS="-ldld $LIBS" 11876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11877/* end confdefs.h. */ 11878 11879/* Override any GCC internal prototype to avoid an error. 11880 Use char because int might match the return type of a GCC 11881 builtin and then its argument prototype would still apply. */ 11882char shl_load (); 11883int 11884main (void) 11885{ 11886return shl_load (); 11887 ; 11888 return 0; 11889} 11890_ACEOF 11891if ac_fn_c_try_link "$LINENO" 11892then : 11893 ac_cv_lib_dld_shl_load=yes 11894else $as_nop 11895 ac_cv_lib_dld_shl_load=no 11896fi 11897rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11898 conftest$ac_exeext conftest.$ac_ext 11899LIBS=$ac_check_lib_save_LIBS 11900fi 11901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11902printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 11903if test "x$ac_cv_lib_dld_shl_load" = xyes 11904then : 11905 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11906else $as_nop 11907 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11908if test "x$ac_cv_func_dlopen" = xyes 11909then : 11910 lt_cv_dlopen=dlopen 11911else $as_nop 11912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11913printf %s "checking for dlopen in -ldl... " >&6; } 11914if test ${ac_cv_lib_dl_dlopen+y} 11915then : 11916 printf %s "(cached) " >&6 11917else $as_nop 11918 ac_check_lib_save_LIBS=$LIBS 11919LIBS="-ldl $LIBS" 11920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11921/* end confdefs.h. */ 11922 11923/* Override any GCC internal prototype to avoid an error. 11924 Use char because int might match the return type of a GCC 11925 builtin and then its argument prototype would still apply. */ 11926char dlopen (); 11927int 11928main (void) 11929{ 11930return dlopen (); 11931 ; 11932 return 0; 11933} 11934_ACEOF 11935if ac_fn_c_try_link "$LINENO" 11936then : 11937 ac_cv_lib_dl_dlopen=yes 11938else $as_nop 11939 ac_cv_lib_dl_dlopen=no 11940fi 11941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11942 conftest$ac_exeext conftest.$ac_ext 11943LIBS=$ac_check_lib_save_LIBS 11944fi 11945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11946printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 11947if test "x$ac_cv_lib_dl_dlopen" = xyes 11948then : 11949 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11950else $as_nop 11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11952printf %s "checking for dlopen in -lsvld... " >&6; } 11953if test ${ac_cv_lib_svld_dlopen+y} 11954then : 11955 printf %s "(cached) " >&6 11956else $as_nop 11957 ac_check_lib_save_LIBS=$LIBS 11958LIBS="-lsvld $LIBS" 11959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11960/* end confdefs.h. */ 11961 11962/* Override any GCC internal prototype to avoid an error. 11963 Use char because int might match the return type of a GCC 11964 builtin and then its argument prototype would still apply. */ 11965char dlopen (); 11966int 11967main (void) 11968{ 11969return dlopen (); 11970 ; 11971 return 0; 11972} 11973_ACEOF 11974if ac_fn_c_try_link "$LINENO" 11975then : 11976 ac_cv_lib_svld_dlopen=yes 11977else $as_nop 11978 ac_cv_lib_svld_dlopen=no 11979fi 11980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11981 conftest$ac_exeext conftest.$ac_ext 11982LIBS=$ac_check_lib_save_LIBS 11983fi 11984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11985printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 11986if test "x$ac_cv_lib_svld_dlopen" = xyes 11987then : 11988 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11989else $as_nop 11990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11991printf %s "checking for dld_link in -ldld... " >&6; } 11992if test ${ac_cv_lib_dld_dld_link+y} 11993then : 11994 printf %s "(cached) " >&6 11995else $as_nop 11996 ac_check_lib_save_LIBS=$LIBS 11997LIBS="-ldld $LIBS" 11998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11999/* end confdefs.h. */ 12000 12001/* Override any GCC internal prototype to avoid an error. 12002 Use char because int might match the return type of a GCC 12003 builtin and then its argument prototype would still apply. */ 12004char dld_link (); 12005int 12006main (void) 12007{ 12008return dld_link (); 12009 ; 12010 return 0; 12011} 12012_ACEOF 12013if ac_fn_c_try_link "$LINENO" 12014then : 12015 ac_cv_lib_dld_dld_link=yes 12016else $as_nop 12017 ac_cv_lib_dld_dld_link=no 12018fi 12019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12020 conftest$ac_exeext conftest.$ac_ext 12021LIBS=$ac_check_lib_save_LIBS 12022fi 12023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12024printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12025if test "x$ac_cv_lib_dld_dld_link" = xyes 12026then : 12027 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12028fi 12029 12030 12031fi 12032 12033 12034fi 12035 12036 12037fi 12038 12039 12040fi 12041 12042 12043fi 12044 12045 ;; 12046 esac 12047 12048 if test no = "$lt_cv_dlopen"; then 12049 enable_dlopen=no 12050 else 12051 enable_dlopen=yes 12052 fi 12053 12054 case $lt_cv_dlopen in 12055 dlopen) 12056 save_CPPFLAGS=$CPPFLAGS 12057 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12058 12059 save_LDFLAGS=$LDFLAGS 12060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12061 12062 save_LIBS=$LIBS 12063 LIBS="$lt_cv_dlopen_libs $LIBS" 12064 12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12066printf %s "checking whether a program can dlopen itself... " >&6; } 12067if test ${lt_cv_dlopen_self+y} 12068then : 12069 printf %s "(cached) " >&6 12070else $as_nop 12071 if test yes = "$cross_compiling"; then : 12072 lt_cv_dlopen_self=cross 12073else 12074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12075 lt_status=$lt_dlunknown 12076 cat > conftest.$ac_ext <<_LT_EOF 12077#line $LINENO "configure" 12078#include "confdefs.h" 12079 12080#if HAVE_DLFCN_H 12081#include <dlfcn.h> 12082#endif 12083 12084#include <stdio.h> 12085 12086#ifdef RTLD_GLOBAL 12087# define LT_DLGLOBAL RTLD_GLOBAL 12088#else 12089# ifdef DL_GLOBAL 12090# define LT_DLGLOBAL DL_GLOBAL 12091# else 12092# define LT_DLGLOBAL 0 12093# endif 12094#endif 12095 12096/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12097 find out it does not work in some platform. */ 12098#ifndef LT_DLLAZY_OR_NOW 12099# ifdef RTLD_LAZY 12100# define LT_DLLAZY_OR_NOW RTLD_LAZY 12101# else 12102# ifdef DL_LAZY 12103# define LT_DLLAZY_OR_NOW DL_LAZY 12104# else 12105# ifdef RTLD_NOW 12106# define LT_DLLAZY_OR_NOW RTLD_NOW 12107# else 12108# ifdef DL_NOW 12109# define LT_DLLAZY_OR_NOW DL_NOW 12110# else 12111# define LT_DLLAZY_OR_NOW 0 12112# endif 12113# endif 12114# endif 12115# endif 12116#endif 12117 12118/* When -fvisibility=hidden is used, assume the code has been annotated 12119 correspondingly for the symbols needed. */ 12120#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12121int fnord () __attribute__((visibility("default"))); 12122#endif 12123 12124int fnord () { return 42; } 12125int main () 12126{ 12127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12128 int status = $lt_dlunknown; 12129 12130 if (self) 12131 { 12132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12133 else 12134 { 12135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12136 else puts (dlerror ()); 12137 } 12138 /* dlclose (self); */ 12139 } 12140 else 12141 puts (dlerror ()); 12142 12143 return status; 12144} 12145_LT_EOF 12146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12147 (eval $ac_link) 2>&5 12148 ac_status=$? 12149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12150 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12151 (./conftest; exit; ) >&5 2>/dev/null 12152 lt_status=$? 12153 case x$lt_status in 12154 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12155 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12156 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12157 esac 12158 else : 12159 # compilation failed 12160 lt_cv_dlopen_self=no 12161 fi 12162fi 12163rm -fr conftest* 12164 12165 12166fi 12167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12168printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12169 12170 if test yes = "$lt_cv_dlopen_self"; then 12171 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12173printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12174if test ${lt_cv_dlopen_self_static+y} 12175then : 12176 printf %s "(cached) " >&6 12177else $as_nop 12178 if test yes = "$cross_compiling"; then : 12179 lt_cv_dlopen_self_static=cross 12180else 12181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12182 lt_status=$lt_dlunknown 12183 cat > conftest.$ac_ext <<_LT_EOF 12184#line $LINENO "configure" 12185#include "confdefs.h" 12186 12187#if HAVE_DLFCN_H 12188#include <dlfcn.h> 12189#endif 12190 12191#include <stdio.h> 12192 12193#ifdef RTLD_GLOBAL 12194# define LT_DLGLOBAL RTLD_GLOBAL 12195#else 12196# ifdef DL_GLOBAL 12197# define LT_DLGLOBAL DL_GLOBAL 12198# else 12199# define LT_DLGLOBAL 0 12200# endif 12201#endif 12202 12203/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12204 find out it does not work in some platform. */ 12205#ifndef LT_DLLAZY_OR_NOW 12206# ifdef RTLD_LAZY 12207# define LT_DLLAZY_OR_NOW RTLD_LAZY 12208# else 12209# ifdef DL_LAZY 12210# define LT_DLLAZY_OR_NOW DL_LAZY 12211# else 12212# ifdef RTLD_NOW 12213# define LT_DLLAZY_OR_NOW RTLD_NOW 12214# else 12215# ifdef DL_NOW 12216# define LT_DLLAZY_OR_NOW DL_NOW 12217# else 12218# define LT_DLLAZY_OR_NOW 0 12219# endif 12220# endif 12221# endif 12222# endif 12223#endif 12224 12225/* When -fvisibility=hidden is used, assume the code has been annotated 12226 correspondingly for the symbols needed. */ 12227#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12228int fnord () __attribute__((visibility("default"))); 12229#endif 12230 12231int fnord () { return 42; } 12232int main () 12233{ 12234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12235 int status = $lt_dlunknown; 12236 12237 if (self) 12238 { 12239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12240 else 12241 { 12242 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12243 else puts (dlerror ()); 12244 } 12245 /* dlclose (self); */ 12246 } 12247 else 12248 puts (dlerror ()); 12249 12250 return status; 12251} 12252_LT_EOF 12253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12254 (eval $ac_link) 2>&5 12255 ac_status=$? 12256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12257 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12258 (./conftest; exit; ) >&5 2>/dev/null 12259 lt_status=$? 12260 case x$lt_status in 12261 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12262 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12263 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12264 esac 12265 else : 12266 # compilation failed 12267 lt_cv_dlopen_self_static=no 12268 fi 12269fi 12270rm -fr conftest* 12271 12272 12273fi 12274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12275printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12276 fi 12277 12278 CPPFLAGS=$save_CPPFLAGS 12279 LDFLAGS=$save_LDFLAGS 12280 LIBS=$save_LIBS 12281 ;; 12282 esac 12283 12284 case $lt_cv_dlopen_self in 12285 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12286 *) enable_dlopen_self=unknown ;; 12287 esac 12288 12289 case $lt_cv_dlopen_self_static in 12290 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12291 *) enable_dlopen_self_static=unknown ;; 12292 esac 12293fi 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311striplib= 12312old_striplib= 12313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12314printf %s "checking whether stripping libraries is possible... " >&6; } 12315if test -z "$STRIP"; then 12316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12317printf "%s\n" "no" >&6; } 12318else 12319 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12320 old_striplib="$STRIP --strip-debug" 12321 striplib="$STRIP --strip-unneeded" 12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12323printf "%s\n" "yes" >&6; } 12324 else 12325 case $host_os in 12326 darwin*) 12327 # FIXME - insert some real tests, host_os isn't really good enough 12328 striplib="$STRIP -x" 12329 old_striplib="$STRIP -S" 12330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12331printf "%s\n" "yes" >&6; } 12332 ;; 12333 freebsd*) 12334 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12335 old_striplib="$STRIP --strip-debug" 12336 striplib="$STRIP --strip-unneeded" 12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12338printf "%s\n" "yes" >&6; } 12339 else 12340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12341printf "%s\n" "no" >&6; } 12342 fi 12343 ;; 12344 *) 12345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12346printf "%s\n" "no" >&6; } 12347 ;; 12348 esac 12349 fi 12350fi 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 # Report what library types will actually be built 12364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12365printf %s "checking if libtool supports shared libraries... " >&6; } 12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12367printf "%s\n" "$can_build_shared" >&6; } 12368 12369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12370printf %s "checking whether to build shared libraries... " >&6; } 12371 test no = "$can_build_shared" && enable_shared=no 12372 12373 # On AIX, shared libraries and static libraries use the same namespace, and 12374 # are all built from PIC. 12375 case $host_os in 12376 aix3*) 12377 test yes = "$enable_shared" && enable_static=no 12378 if test -n "$RANLIB"; then 12379 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12380 postinstall_cmds='$RANLIB $lib' 12381 fi 12382 ;; 12383 12384 aix[4-9]*) 12385 if test ia64 != "$host_cpu"; then 12386 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12387 yes,aix,yes) ;; # shared object as lib.so file only 12388 yes,svr4,*) ;; # shared object as lib.so archive member only 12389 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12390 esac 12391 fi 12392 ;; 12393 esac 12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12395printf "%s\n" "$enable_shared" >&6; } 12396 12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12398printf %s "checking whether to build static libraries... " >&6; } 12399 # Make sure either enable_shared or enable_static is yes. 12400 test yes = "$enable_shared" || enable_static=yes 12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12402printf "%s\n" "$enable_static" >&6; } 12403 12404 12405 12406 12407fi 12408ac_ext=c 12409ac_cpp='$CPP $CPPFLAGS' 12410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12412ac_compiler_gnu=$ac_cv_c_compiler_gnu 12413 12414CC=$lt_save_CC 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 ac_config_commands="$ac_config_commands libtool" 12431 12432 12433 12434 12435# Only expand once: 12436 12437 12438 12439 12440OURCPPFLAGS='' 12441CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}} 12442CFLAGS="$CFLAGS" 12443 12444# Checks for programs. 12445ac_ext=c 12446ac_cpp='$CPP $CPPFLAGS' 12447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12449ac_compiler_gnu=$ac_cv_c_compiler_gnu 12450if test -n "$ac_tool_prefix"; then 12451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12452set dummy ${ac_tool_prefix}gcc; ac_word=$2 12453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12454printf %s "checking for $ac_word... " >&6; } 12455if test ${ac_cv_prog_CC+y} 12456then : 12457 printf %s "(cached) " >&6 12458else $as_nop 12459 if test -n "$CC"; then 12460 ac_cv_prog_CC="$CC" # Let the user override the test. 12461else 12462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12463for as_dir in $PATH 12464do 12465 IFS=$as_save_IFS 12466 case $as_dir in #((( 12467 '') as_dir=./ ;; 12468 */) ;; 12469 *) as_dir=$as_dir/ ;; 12470 esac 12471 for ac_exec_ext in '' $ac_executable_extensions; do 12472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12473 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12475 break 2 12476 fi 12477done 12478 done 12479IFS=$as_save_IFS 12480 12481fi 12482fi 12483CC=$ac_cv_prog_CC 12484if test -n "$CC"; then 12485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12486printf "%s\n" "$CC" >&6; } 12487else 12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12489printf "%s\n" "no" >&6; } 12490fi 12491 12492 12493fi 12494if test -z "$ac_cv_prog_CC"; then 12495 ac_ct_CC=$CC 12496 # Extract the first word of "gcc", so it can be a program name with args. 12497set dummy gcc; ac_word=$2 12498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12499printf %s "checking for $ac_word... " >&6; } 12500if test ${ac_cv_prog_ac_ct_CC+y} 12501then : 12502 printf %s "(cached) " >&6 12503else $as_nop 12504 if test -n "$ac_ct_CC"; then 12505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12506else 12507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12508for as_dir in $PATH 12509do 12510 IFS=$as_save_IFS 12511 case $as_dir in #((( 12512 '') as_dir=./ ;; 12513 */) ;; 12514 *) as_dir=$as_dir/ ;; 12515 esac 12516 for ac_exec_ext in '' $ac_executable_extensions; do 12517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12518 ac_cv_prog_ac_ct_CC="gcc" 12519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12520 break 2 12521 fi 12522done 12523 done 12524IFS=$as_save_IFS 12525 12526fi 12527fi 12528ac_ct_CC=$ac_cv_prog_ac_ct_CC 12529if test -n "$ac_ct_CC"; then 12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12531printf "%s\n" "$ac_ct_CC" >&6; } 12532else 12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534printf "%s\n" "no" >&6; } 12535fi 12536 12537 if test "x$ac_ct_CC" = x; then 12538 CC="" 12539 else 12540 case $cross_compiling:$ac_tool_warned in 12541yes:) 12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12543printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12544ac_tool_warned=yes ;; 12545esac 12546 CC=$ac_ct_CC 12547 fi 12548else 12549 CC="$ac_cv_prog_CC" 12550fi 12551 12552if test -z "$CC"; then 12553 if test -n "$ac_tool_prefix"; then 12554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12555set dummy ${ac_tool_prefix}cc; ac_word=$2 12556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12557printf %s "checking for $ac_word... " >&6; } 12558if test ${ac_cv_prog_CC+y} 12559then : 12560 printf %s "(cached) " >&6 12561else $as_nop 12562 if test -n "$CC"; then 12563 ac_cv_prog_CC="$CC" # Let the user override the test. 12564else 12565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12566for as_dir in $PATH 12567do 12568 IFS=$as_save_IFS 12569 case $as_dir in #((( 12570 '') as_dir=./ ;; 12571 */) ;; 12572 *) as_dir=$as_dir/ ;; 12573 esac 12574 for ac_exec_ext in '' $ac_executable_extensions; do 12575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12576 ac_cv_prog_CC="${ac_tool_prefix}cc" 12577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12578 break 2 12579 fi 12580done 12581 done 12582IFS=$as_save_IFS 12583 12584fi 12585fi 12586CC=$ac_cv_prog_CC 12587if test -n "$CC"; then 12588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12589printf "%s\n" "$CC" >&6; } 12590else 12591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12592printf "%s\n" "no" >&6; } 12593fi 12594 12595 12596 fi 12597fi 12598if test -z "$CC"; then 12599 # Extract the first word of "cc", so it can be a program name with args. 12600set dummy cc; ac_word=$2 12601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12602printf %s "checking for $ac_word... " >&6; } 12603if test ${ac_cv_prog_CC+y} 12604then : 12605 printf %s "(cached) " >&6 12606else $as_nop 12607 if test -n "$CC"; then 12608 ac_cv_prog_CC="$CC" # Let the user override the test. 12609else 12610 ac_prog_rejected=no 12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12612for as_dir in $PATH 12613do 12614 IFS=$as_save_IFS 12615 case $as_dir in #((( 12616 '') as_dir=./ ;; 12617 */) ;; 12618 *) as_dir=$as_dir/ ;; 12619 esac 12620 for ac_exec_ext in '' $ac_executable_extensions; do 12621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12622 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12623 ac_prog_rejected=yes 12624 continue 12625 fi 12626 ac_cv_prog_CC="cc" 12627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12628 break 2 12629 fi 12630done 12631 done 12632IFS=$as_save_IFS 12633 12634if test $ac_prog_rejected = yes; then 12635 # We found a bogon in the path, so make sure we never use it. 12636 set dummy $ac_cv_prog_CC 12637 shift 12638 if test $# != 0; then 12639 # We chose a different compiler from the bogus one. 12640 # However, it has the same basename, so the bogon will be chosen 12641 # first if we set CC to just the basename; use the full file name. 12642 shift 12643 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 12644 fi 12645fi 12646fi 12647fi 12648CC=$ac_cv_prog_CC 12649if test -n "$CC"; then 12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12651printf "%s\n" "$CC" >&6; } 12652else 12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12654printf "%s\n" "no" >&6; } 12655fi 12656 12657 12658fi 12659if test -z "$CC"; then 12660 if test -n "$ac_tool_prefix"; then 12661 for ac_prog in cl.exe 12662 do 12663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12664set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12666printf %s "checking for $ac_word... " >&6; } 12667if test ${ac_cv_prog_CC+y} 12668then : 12669 printf %s "(cached) " >&6 12670else $as_nop 12671 if test -n "$CC"; then 12672 ac_cv_prog_CC="$CC" # Let the user override the test. 12673else 12674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12675for as_dir in $PATH 12676do 12677 IFS=$as_save_IFS 12678 case $as_dir in #((( 12679 '') as_dir=./ ;; 12680 */) ;; 12681 *) as_dir=$as_dir/ ;; 12682 esac 12683 for ac_exec_ext in '' $ac_executable_extensions; do 12684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12685 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12687 break 2 12688 fi 12689done 12690 done 12691IFS=$as_save_IFS 12692 12693fi 12694fi 12695CC=$ac_cv_prog_CC 12696if test -n "$CC"; then 12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12698printf "%s\n" "$CC" >&6; } 12699else 12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12701printf "%s\n" "no" >&6; } 12702fi 12703 12704 12705 test -n "$CC" && break 12706 done 12707fi 12708if test -z "$CC"; then 12709 ac_ct_CC=$CC 12710 for ac_prog in cl.exe 12711do 12712 # Extract the first word of "$ac_prog", so it can be a program name with args. 12713set dummy $ac_prog; ac_word=$2 12714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12715printf %s "checking for $ac_word... " >&6; } 12716if test ${ac_cv_prog_ac_ct_CC+y} 12717then : 12718 printf %s "(cached) " >&6 12719else $as_nop 12720 if test -n "$ac_ct_CC"; then 12721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12722else 12723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12724for as_dir in $PATH 12725do 12726 IFS=$as_save_IFS 12727 case $as_dir in #((( 12728 '') as_dir=./ ;; 12729 */) ;; 12730 *) as_dir=$as_dir/ ;; 12731 esac 12732 for ac_exec_ext in '' $ac_executable_extensions; do 12733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12734 ac_cv_prog_ac_ct_CC="$ac_prog" 12735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12736 break 2 12737 fi 12738done 12739 done 12740IFS=$as_save_IFS 12741 12742fi 12743fi 12744ac_ct_CC=$ac_cv_prog_ac_ct_CC 12745if test -n "$ac_ct_CC"; then 12746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12747printf "%s\n" "$ac_ct_CC" >&6; } 12748else 12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12750printf "%s\n" "no" >&6; } 12751fi 12752 12753 12754 test -n "$ac_ct_CC" && break 12755done 12756 12757 if test "x$ac_ct_CC" = x; then 12758 CC="" 12759 else 12760 case $cross_compiling:$ac_tool_warned in 12761yes:) 12762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12763printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12764ac_tool_warned=yes ;; 12765esac 12766 CC=$ac_ct_CC 12767 fi 12768fi 12769 12770fi 12771if test -z "$CC"; then 12772 if test -n "$ac_tool_prefix"; then 12773 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 12774set dummy ${ac_tool_prefix}clang; ac_word=$2 12775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12776printf %s "checking for $ac_word... " >&6; } 12777if test ${ac_cv_prog_CC+y} 12778then : 12779 printf %s "(cached) " >&6 12780else $as_nop 12781 if test -n "$CC"; then 12782 ac_cv_prog_CC="$CC" # Let the user override the test. 12783else 12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12785for as_dir in $PATH 12786do 12787 IFS=$as_save_IFS 12788 case $as_dir in #((( 12789 '') as_dir=./ ;; 12790 */) ;; 12791 *) as_dir=$as_dir/ ;; 12792 esac 12793 for ac_exec_ext in '' $ac_executable_extensions; do 12794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12795 ac_cv_prog_CC="${ac_tool_prefix}clang" 12796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12797 break 2 12798 fi 12799done 12800 done 12801IFS=$as_save_IFS 12802 12803fi 12804fi 12805CC=$ac_cv_prog_CC 12806if test -n "$CC"; then 12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12808printf "%s\n" "$CC" >&6; } 12809else 12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12811printf "%s\n" "no" >&6; } 12812fi 12813 12814 12815fi 12816if test -z "$ac_cv_prog_CC"; then 12817 ac_ct_CC=$CC 12818 # Extract the first word of "clang", so it can be a program name with args. 12819set dummy clang; ac_word=$2 12820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12821printf %s "checking for $ac_word... " >&6; } 12822if test ${ac_cv_prog_ac_ct_CC+y} 12823then : 12824 printf %s "(cached) " >&6 12825else $as_nop 12826 if test -n "$ac_ct_CC"; then 12827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12828else 12829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12830for as_dir in $PATH 12831do 12832 IFS=$as_save_IFS 12833 case $as_dir in #((( 12834 '') as_dir=./ ;; 12835 */) ;; 12836 *) as_dir=$as_dir/ ;; 12837 esac 12838 for ac_exec_ext in '' $ac_executable_extensions; do 12839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12840 ac_cv_prog_ac_ct_CC="clang" 12841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12842 break 2 12843 fi 12844done 12845 done 12846IFS=$as_save_IFS 12847 12848fi 12849fi 12850ac_ct_CC=$ac_cv_prog_ac_ct_CC 12851if test -n "$ac_ct_CC"; then 12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12853printf "%s\n" "$ac_ct_CC" >&6; } 12854else 12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12856printf "%s\n" "no" >&6; } 12857fi 12858 12859 if test "x$ac_ct_CC" = x; then 12860 CC="" 12861 else 12862 case $cross_compiling:$ac_tool_warned in 12863yes:) 12864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12865printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12866ac_tool_warned=yes ;; 12867esac 12868 CC=$ac_ct_CC 12869 fi 12870else 12871 CC="$ac_cv_prog_CC" 12872fi 12873 12874fi 12875 12876 12877test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12879as_fn_error $? "no acceptable C compiler found in \$PATH 12880See \`config.log' for more details" "$LINENO" 5; } 12881 12882# Provide some information about the compiler. 12883printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12884set X $ac_compile 12885ac_compiler=$2 12886for ac_option in --version -v -V -qversion -version; do 12887 { { ac_try="$ac_compiler $ac_option >&5" 12888case "(($ac_try" in 12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12890 *) ac_try_echo=$ac_try;; 12891esac 12892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12893printf "%s\n" "$ac_try_echo"; } >&5 12894 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12895 ac_status=$? 12896 if test -s conftest.err; then 12897 sed '10a\ 12898... rest of stderr output deleted ... 12899 10q' conftest.err >conftest.er1 12900 cat conftest.er1 >&5 12901 fi 12902 rm -f conftest.er1 conftest.err 12903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12904 test $ac_status = 0; } 12905done 12906 12907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 12908printf %s "checking whether the compiler supports GNU C... " >&6; } 12909if test ${ac_cv_c_compiler_gnu+y} 12910then : 12911 printf %s "(cached) " >&6 12912else $as_nop 12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12914/* end confdefs.h. */ 12915 12916int 12917main (void) 12918{ 12919#ifndef __GNUC__ 12920 choke me 12921#endif 12922 12923 ; 12924 return 0; 12925} 12926_ACEOF 12927if ac_fn_c_try_compile "$LINENO" 12928then : 12929 ac_compiler_gnu=yes 12930else $as_nop 12931 ac_compiler_gnu=no 12932fi 12933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12934ac_cv_c_compiler_gnu=$ac_compiler_gnu 12935 12936fi 12937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12938printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 12939ac_compiler_gnu=$ac_cv_c_compiler_gnu 12940 12941if test $ac_compiler_gnu = yes; then 12942 GCC=yes 12943else 12944 GCC= 12945fi 12946ac_test_CFLAGS=${CFLAGS+y} 12947ac_save_CFLAGS=$CFLAGS 12948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12949printf %s "checking whether $CC accepts -g... " >&6; } 12950if test ${ac_cv_prog_cc_g+y} 12951then : 12952 printf %s "(cached) " >&6 12953else $as_nop 12954 ac_save_c_werror_flag=$ac_c_werror_flag 12955 ac_c_werror_flag=yes 12956 ac_cv_prog_cc_g=no 12957 CFLAGS="-g" 12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959/* end confdefs.h. */ 12960 12961int 12962main (void) 12963{ 12964 12965 ; 12966 return 0; 12967} 12968_ACEOF 12969if ac_fn_c_try_compile "$LINENO" 12970then : 12971 ac_cv_prog_cc_g=yes 12972else $as_nop 12973 CFLAGS="" 12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12975/* end confdefs.h. */ 12976 12977int 12978main (void) 12979{ 12980 12981 ; 12982 return 0; 12983} 12984_ACEOF 12985if ac_fn_c_try_compile "$LINENO" 12986then : 12987 12988else $as_nop 12989 ac_c_werror_flag=$ac_save_c_werror_flag 12990 CFLAGS="-g" 12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12992/* end confdefs.h. */ 12993 12994int 12995main (void) 12996{ 12997 12998 ; 12999 return 0; 13000} 13001_ACEOF 13002if ac_fn_c_try_compile "$LINENO" 13003then : 13004 ac_cv_prog_cc_g=yes 13005fi 13006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13007fi 13008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13009fi 13010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13011 ac_c_werror_flag=$ac_save_c_werror_flag 13012fi 13013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13014printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 13015if test $ac_test_CFLAGS; then 13016 CFLAGS=$ac_save_CFLAGS 13017elif test $ac_cv_prog_cc_g = yes; then 13018 if test "$GCC" = yes; then 13019 CFLAGS="-g -O2" 13020 else 13021 CFLAGS="-g" 13022 fi 13023else 13024 if test "$GCC" = yes; then 13025 CFLAGS="-O2" 13026 else 13027 CFLAGS= 13028 fi 13029fi 13030ac_prog_cc_stdc=no 13031if test x$ac_prog_cc_stdc = xno 13032then : 13033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 13034printf %s "checking for $CC option to enable C11 features... " >&6; } 13035if test ${ac_cv_prog_cc_c11+y} 13036then : 13037 printf %s "(cached) " >&6 13038else $as_nop 13039 ac_cv_prog_cc_c11=no 13040ac_save_CC=$CC 13041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13042/* end confdefs.h. */ 13043$ac_c_conftest_c11_program 13044_ACEOF 13045for ac_arg in '' -std=gnu11 13046do 13047 CC="$ac_save_CC $ac_arg" 13048 if ac_fn_c_try_compile "$LINENO" 13049then : 13050 ac_cv_prog_cc_c11=$ac_arg 13051fi 13052rm -f core conftest.err conftest.$ac_objext conftest.beam 13053 test "x$ac_cv_prog_cc_c11" != "xno" && break 13054done 13055rm -f conftest.$ac_ext 13056CC=$ac_save_CC 13057fi 13058 13059if test "x$ac_cv_prog_cc_c11" = xno 13060then : 13061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13062printf "%s\n" "unsupported" >&6; } 13063else $as_nop 13064 if test "x$ac_cv_prog_cc_c11" = x 13065then : 13066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13067printf "%s\n" "none needed" >&6; } 13068else $as_nop 13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 13070printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 13071 CC="$CC $ac_cv_prog_cc_c11" 13072fi 13073 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 13074 ac_prog_cc_stdc=c11 13075fi 13076fi 13077if test x$ac_prog_cc_stdc = xno 13078then : 13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 13080printf %s "checking for $CC option to enable C99 features... " >&6; } 13081if test ${ac_cv_prog_cc_c99+y} 13082then : 13083 printf %s "(cached) " >&6 13084else $as_nop 13085 ac_cv_prog_cc_c99=no 13086ac_save_CC=$CC 13087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13088/* end confdefs.h. */ 13089$ac_c_conftest_c99_program 13090_ACEOF 13091for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 13092do 13093 CC="$ac_save_CC $ac_arg" 13094 if ac_fn_c_try_compile "$LINENO" 13095then : 13096 ac_cv_prog_cc_c99=$ac_arg 13097fi 13098rm -f core conftest.err conftest.$ac_objext conftest.beam 13099 test "x$ac_cv_prog_cc_c99" != "xno" && break 13100done 13101rm -f conftest.$ac_ext 13102CC=$ac_save_CC 13103fi 13104 13105if test "x$ac_cv_prog_cc_c99" = xno 13106then : 13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13108printf "%s\n" "unsupported" >&6; } 13109else $as_nop 13110 if test "x$ac_cv_prog_cc_c99" = x 13111then : 13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13113printf "%s\n" "none needed" >&6; } 13114else $as_nop 13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13116printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 13117 CC="$CC $ac_cv_prog_cc_c99" 13118fi 13119 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 13120 ac_prog_cc_stdc=c99 13121fi 13122fi 13123if test x$ac_prog_cc_stdc = xno 13124then : 13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 13126printf %s "checking for $CC option to enable C89 features... " >&6; } 13127if test ${ac_cv_prog_cc_c89+y} 13128then : 13129 printf %s "(cached) " >&6 13130else $as_nop 13131 ac_cv_prog_cc_c89=no 13132ac_save_CC=$CC 13133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13134/* end confdefs.h. */ 13135$ac_c_conftest_c89_program 13136_ACEOF 13137for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13138do 13139 CC="$ac_save_CC $ac_arg" 13140 if ac_fn_c_try_compile "$LINENO" 13141then : 13142 ac_cv_prog_cc_c89=$ac_arg 13143fi 13144rm -f core conftest.err conftest.$ac_objext conftest.beam 13145 test "x$ac_cv_prog_cc_c89" != "xno" && break 13146done 13147rm -f conftest.$ac_ext 13148CC=$ac_save_CC 13149fi 13150 13151if test "x$ac_cv_prog_cc_c89" = xno 13152then : 13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13154printf "%s\n" "unsupported" >&6; } 13155else $as_nop 13156 if test "x$ac_cv_prog_cc_c89" = x 13157then : 13158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13159printf "%s\n" "none needed" >&6; } 13160else $as_nop 13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13162printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 13163 CC="$CC $ac_cv_prog_cc_c89" 13164fi 13165 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 13166 ac_prog_cc_stdc=c89 13167fi 13168fi 13169 13170ac_ext=c 13171ac_cpp='$CPP $CPPFLAGS' 13172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13174ac_compiler_gnu=$ac_cv_c_compiler_gnu 13175 13176 13177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 13178printf %s "checking $CC dependency flag... " >&6; } 13179echo 'void f(void){}' >conftest.c 13180if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 13181 DEPFLAG="-MM" 13182else 13183 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 13184 DEPFLAG="-xM1" 13185 else 13186 DEPFLAG="-MM" # dunno do something 13187 fi 13188fi 13189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 13190printf "%s\n" "$DEPFLAG" >&6; } 13191rm -f conftest.c 13192 13193 13194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 13195printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 13196set x ${MAKE-make} 13197ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 13198if eval test \${ac_cv_prog_make_${ac_make}_set+y} 13199then : 13200 printf %s "(cached) " >&6 13201else $as_nop 13202 cat >conftest.make <<\_ACEOF 13203SHELL = /bin/sh 13204all: 13205 @echo '@@@%%%=$(MAKE)=@@@%%%' 13206_ACEOF 13207# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 13208case `${MAKE-make} -f conftest.make 2>/dev/null` in 13209 *@@@%%%=?*=@@@%%%*) 13210 eval ac_cv_prog_make_${ac_make}_set=yes;; 13211 *) 13212 eval ac_cv_prog_make_${ac_make}_set=no;; 13213esac 13214rm -f conftest.make 13215fi 13216if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13218printf "%s\n" "yes" >&6; } 13219 SET_MAKE= 13220else 13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13222printf "%s\n" "no" >&6; } 13223 SET_MAKE="MAKE=${MAKE-make}" 13224fi 13225 13226 13227# Extra (sp)lint flags for NetBSD 13228 13229case "$host_os" in 13230 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS" 13231 ;; 13232 *) LINTFLAGS="$LINTFLAGS" 13233 ;; 13234esac 13235 13236 13237 13238printf "%s\n" "#define WINVER 0x0502" >>confdefs.h 13239 13240 13241 13242 13243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 13244printf %s "checking whether $CC supports -std=c99... " >&6; } 13245cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 13246if eval test \${cv_prog_cc_flag_$cache+y} 13247then : 13248 printf %s "(cached) " >&6 13249else $as_nop 13250 13251echo 'void f(void){}' >conftest.c 13252if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 13253eval "cv_prog_cc_flag_$cache=yes" 13254else 13255eval "cv_prog_cc_flag_$cache=no" 13256fi 13257rm -f conftest conftest.o conftest.c 13258 13259fi 13260 13261if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13263printf "%s\n" "yes" >&6; } 13264: 13265C99FLAG="-std=c99" 13266else 13267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13268printf "%s\n" "no" >&6; } 13269: 13270 13271fi 13272 13273 13274 13275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 13276printf %s "checking whether $CC supports -xc99... " >&6; } 13277cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 13278if eval test \${cv_prog_cc_flag_$cache+y} 13279then : 13280 printf %s "(cached) " >&6 13281else $as_nop 13282 13283echo 'void f(void){}' >conftest.c 13284if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 13285eval "cv_prog_cc_flag_$cache=yes" 13286else 13287eval "cv_prog_cc_flag_$cache=no" 13288fi 13289rm -f conftest conftest.o conftest.c 13290 13291fi 13292 13293if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13295printf "%s\n" "yes" >&6; } 13296: 13297C99FLAG="-xc99" 13298else 13299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13300printf "%s\n" "no" >&6; } 13301: 13302 13303fi 13304 13305 13306# routine to copy files 13307# argument 1 is a list of files (relative to the source dir) 13308# argument 2 is a destination directory (relative to the current 13309# working directory 13310 13311 13312# copy all .h files in the dir at argument 1 13313# (relative to source) to the dir at argument 2 13314# (relative to current dir) 13315 13316 13317# Checks for typedefs, structures, and compiler characteristics. 13318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13319printf %s "checking for an ANSI C-conforming const... " >&6; } 13320if test ${ac_cv_c_const+y} 13321then : 13322 printf %s "(cached) " >&6 13323else $as_nop 13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13325/* end confdefs.h. */ 13326 13327int 13328main (void) 13329{ 13330 13331#ifndef __cplusplus 13332 /* Ultrix mips cc rejects this sort of thing. */ 13333 typedef int charset[2]; 13334 const charset cs = { 0, 0 }; 13335 /* SunOS 4.1.1 cc rejects this. */ 13336 char const *const *pcpcc; 13337 char **ppc; 13338 /* NEC SVR4.0.2 mips cc rejects this. */ 13339 struct point {int x, y;}; 13340 static struct point const zero = {0,0}; 13341 /* IBM XL C 1.02.0.0 rejects this. 13342 It does not let you subtract one const X* pointer from another in 13343 an arm of an if-expression whose if-part is not a constant 13344 expression */ 13345 const char *g = "string"; 13346 pcpcc = &g + (g ? g-g : 0); 13347 /* HPUX 7.0 cc rejects these. */ 13348 ++pcpcc; 13349 ppc = (char**) pcpcc; 13350 pcpcc = (char const *const *) ppc; 13351 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13352 char tx; 13353 char *t = &tx; 13354 char const *s = 0 ? (char *) 0 : (char const *) 0; 13355 13356 *t++ = 0; 13357 if (s) return 0; 13358 } 13359 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13360 int x[] = {25, 17}; 13361 const int *foo = &x[0]; 13362 ++foo; 13363 } 13364 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13365 typedef const int *iptr; 13366 iptr p = 0; 13367 ++p; 13368 } 13369 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 13370 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13371 struct s { int j; const int *ap[3]; } bx; 13372 struct s *b = &bx; b->j = 5; 13373 } 13374 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13375 const int foo = 10; 13376 if (!foo) return 0; 13377 } 13378 return !cs[0] && !zero.x; 13379#endif 13380 13381 ; 13382 return 0; 13383} 13384_ACEOF 13385if ac_fn_c_try_compile "$LINENO" 13386then : 13387 ac_cv_c_const=yes 13388else $as_nop 13389 ac_cv_c_const=no 13390fi 13391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13392fi 13393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13394printf "%s\n" "$ac_cv_c_const" >&6; } 13395if test $ac_cv_c_const = no; then 13396 13397printf "%s\n" "#define const /**/" >>confdefs.h 13398 13399fi 13400 13401ac_ext=c 13402ac_cpp='$CPP $CPPFLAGS' 13403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13405ac_compiler_gnu=$ac_cv_c_compiler_gnu 13406 13407if test "x$CFLAGS" = "x" ; then 13408 13409 13410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 13411printf %s "checking whether $CC supports -g... " >&6; } 13412cache=`echo g | sed 'y%.=/+-%___p_%'` 13413if eval test \${cv_prog_cc_flag_$cache+y} 13414then : 13415 printf %s "(cached) " >&6 13416else $as_nop 13417 13418echo 'void f(void){}' >conftest.c 13419if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 13420eval "cv_prog_cc_flag_$cache=yes" 13421else 13422eval "cv_prog_cc_flag_$cache=no" 13423fi 13424rm -f conftest conftest.o conftest.c 13425 13426fi 13427 13428if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13430printf "%s\n" "yes" >&6; } 13431: 13432CFLAGS="-g" 13433else 13434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13435printf "%s\n" "no" >&6; } 13436: 13437 13438fi 13439 13440 13441 13442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 13443printf %s "checking whether $CC supports -O2... " >&6; } 13444cache=`echo O2 | sed 'y%.=/+-%___p_%'` 13445if eval test \${cv_prog_cc_flag_$cache+y} 13446then : 13447 printf %s "(cached) " >&6 13448else $as_nop 13449 13450echo 'void f(void){}' >conftest.c 13451if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 13452eval "cv_prog_cc_flag_$cache=yes" 13453else 13454eval "cv_prog_cc_flag_$cache=no" 13455fi 13456rm -f conftest conftest.o conftest.c 13457 13458fi 13459 13460if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13462printf "%s\n" "yes" >&6; } 13463: 13464CFLAGS="-O2 $CFLAGS" 13465else 13466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13467printf "%s\n" "no" >&6; } 13468: 13469 13470fi 13471 13472fi 13473 13474 13475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 13476printf %s "checking whether $CC supports -Wall... " >&6; } 13477cache=`echo Wall | sed 'y%.=/+-%___p_%'` 13478if eval test \${cv_prog_cc_flag_$cache+y} 13479then : 13480 printf %s "(cached) " >&6 13481else $as_nop 13482 13483echo 'void f(void){}' >conftest.c 13484if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 13485eval "cv_prog_cc_flag_$cache=yes" 13486else 13487eval "cv_prog_cc_flag_$cache=no" 13488fi 13489rm -f conftest conftest.o conftest.c 13490 13491fi 13492 13493if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13495printf "%s\n" "yes" >&6; } 13496: 13497CFLAGS="-Wall $CFLAGS" 13498else 13499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13500printf "%s\n" "no" >&6; } 13501: 13502 13503fi 13504 13505 13506 13507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 13508printf %s "checking whether $CC supports -W... " >&6; } 13509cache=`echo W | sed 'y%.=/+-%___p_%'` 13510if eval test \${cv_prog_cc_flag_$cache+y} 13511then : 13512 printf %s "(cached) " >&6 13513else $as_nop 13514 13515echo 'void f(void){}' >conftest.c 13516if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 13517eval "cv_prog_cc_flag_$cache=yes" 13518else 13519eval "cv_prog_cc_flag_$cache=no" 13520fi 13521rm -f conftest conftest.o conftest.c 13522 13523fi 13524 13525if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13527printf "%s\n" "yes" >&6; } 13528: 13529CFLAGS="-W $CFLAGS" 13530else 13531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13532printf "%s\n" "no" >&6; } 13533: 13534 13535fi 13536 13537 13538 13539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5 13540printf %s "checking whether $CC supports -Wwrite-strings... " >&6; } 13541cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'` 13542if eval test \${cv_prog_cc_flag_$cache+y} 13543then : 13544 printf %s "(cached) " >&6 13545else $as_nop 13546 13547echo 'void f(void){}' >conftest.c 13548if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then 13549eval "cv_prog_cc_flag_$cache=yes" 13550else 13551eval "cv_prog_cc_flag_$cache=no" 13552fi 13553rm -f conftest conftest.o conftest.c 13554 13555fi 13556 13557if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13559printf "%s\n" "yes" >&6; } 13560: 13561CFLAGS="-Wwrite-strings $CFLAGS" 13562else 13563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13564printf "%s\n" "no" >&6; } 13565: 13566 13567fi 13568 13569 13570 13571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5 13572printf %s "checking whether $CC supports -Wstrict-prototypes... " >&6; } 13573cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'` 13574if eval test \${cv_prog_cc_flag_$cache+y} 13575then : 13576 printf %s "(cached) " >&6 13577else $as_nop 13578 13579echo 'void f(void){}' >conftest.c 13580if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then 13581eval "cv_prog_cc_flag_$cache=yes" 13582else 13583eval "cv_prog_cc_flag_$cache=no" 13584fi 13585rm -f conftest conftest.o conftest.c 13586 13587fi 13588 13589if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13591printf "%s\n" "yes" >&6; } 13592: 13593CFLAGS="-Wstrict-prototypes $CFLAGS" 13594else 13595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13596printf "%s\n" "no" >&6; } 13597: 13598 13599fi 13600 13601#ACX_CHECK_COMPILER_FLAG(Wshadow, [CFLAGS="-Wshadow $CFLAGS"]) 13602 13603 13604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-function" >&5 13605printf %s "checking whether $CC supports -Wunused-function... " >&6; } 13606cache=`echo Wunused-function | sed 'y%.=/+-%___p_%'` 13607if eval test \${cv_prog_cc_flag_$cache+y} 13608then : 13609 printf %s "(cached) " >&6 13610else $as_nop 13611 13612echo 'void f(void){}' >conftest.c 13613if test -z "`$CC $CPPFLAGS $CFLAGS -Wunused-function -c conftest.c 2>&1`"; then 13614eval "cv_prog_cc_flag_$cache=yes" 13615else 13616eval "cv_prog_cc_flag_$cache=no" 13617fi 13618rm -f conftest conftest.o conftest.c 13619 13620fi 13621 13622if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13624printf "%s\n" "yes" >&6; } 13625: 13626CFLAGS="-Wunused-function $CFLAGS" 13627else 13628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13629printf "%s\n" "no" >&6; } 13630: 13631 13632fi 13633 13634 13635 13636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5 13637printf %s "checking whether $CC supports -Wmissing-prototypes... " >&6; } 13638cache=`echo Wmissing-prototypes | sed 'y%.=/+-%___p_%'` 13639if eval test \${cv_prog_cc_flag_$cache+y} 13640then : 13641 printf %s "(cached) " >&6 13642else $as_nop 13643 13644echo 'void f(void){}' >conftest.c 13645if test -z "`$CC $CPPFLAGS $CFLAGS -Wmissing-prototypes -c conftest.c 2>&1`"; then 13646eval "cv_prog_cc_flag_$cache=yes" 13647else 13648eval "cv_prog_cc_flag_$cache=no" 13649fi 13650rm -f conftest conftest.o conftest.c 13651 13652fi 13653 13654if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13656printf "%s\n" "yes" >&6; } 13657: 13658CFLAGS="-Wmissing-prototypes $CFLAGS" 13659else 13660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13661printf "%s\n" "no" >&6; } 13662: 13663 13664fi 13665 13666 13667 13668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5 13669printf %s "checking whether $CC supports -fno-strict-aliasing... " >&6; } 13670cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'` 13671if eval test \${cv_prog_cc_flag_$cache+y} 13672then : 13673 printf %s "(cached) " >&6 13674else $as_nop 13675 13676echo 'void f(void){}' >conftest.c 13677if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then 13678eval "cv_prog_cc_flag_$cache=yes" 13679else 13680eval "cv_prog_cc_flag_$cache=no" 13681fi 13682rm -f conftest conftest.o conftest.c 13683 13684fi 13685 13686if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13688printf "%s\n" "yes" >&6; } 13689: 13690CFLAGS="-fno-strict-aliasing $CFLAGS" 13691else 13692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13693printf "%s\n" "no" >&6; } 13694: 13695 13696fi 13697 13698 13699ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 13700" 13701if test "x$ac_cv_header_getopt_h" = xyes 13702then : 13703 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 13704 13705fi 13706ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 13707" 13708if test "x$ac_cv_header_time_h" = xyes 13709then : 13710 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 13711 13712fi 13713 13714 13715# MinGW32 tests 13716ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default 13717" 13718if test "x$ac_cv_header_winsock2_h" = xyes 13719then : 13720 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 13721 13722fi 13723ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default 13724" 13725if test "x$ac_cv_header_ws2tcpip_h" = xyes 13726then : 13727 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 13728 13729fi 13730 13731# end mingw32 tests 13732 13733# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 13734ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default" 13735if test "x$ac_cv_header_TargetConditionals_h" = xyes 13736then : 13737 printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h 13738 13739fi 13740 13741 13742 13743 13744 13745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 13746printf %s "checking whether $CC supports -Werror... " >&6; } 13747cache=`echo Werror | sed 'y%.=/+-%___p_%'` 13748if eval test \${cv_prog_cc_flag_$cache+y} 13749then : 13750 printf %s "(cached) " >&6 13751else $as_nop 13752 13753echo 'void f(void){}' >conftest.c 13754if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 13755eval "cv_prog_cc_flag_$cache=yes" 13756else 13757eval "cv_prog_cc_flag_$cache=no" 13758fi 13759rm -f conftest conftest.o conftest.c 13760 13761fi 13762 13763if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13765printf "%s\n" "yes" >&6; } 13766: 13767ERRFLAG="-Werror" 13768else 13769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13770printf "%s\n" "no" >&6; } 13771: 13772ERRFLAG="-errwarn" 13773fi 13774 13775 13776 13777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 13778printf %s "checking whether $CC supports -Wall... " >&6; } 13779cache=`echo Wall | sed 'y%.=/+-%___p_%'` 13780if eval test \${cv_prog_cc_flag_$cache+y} 13781then : 13782 printf %s "(cached) " >&6 13783else $as_nop 13784 13785echo 'void f(void){}' >conftest.c 13786if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 13787eval "cv_prog_cc_flag_$cache=yes" 13788else 13789eval "cv_prog_cc_flag_$cache=no" 13790fi 13791rm -f conftest conftest.o conftest.c 13792 13793fi 13794 13795if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13797printf "%s\n" "yes" >&6; } 13798: 13799ERRFLAG="$ERRFLAG -Wall" 13800else 13801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13802printf "%s\n" "no" >&6; } 13803: 13804ERRFLAG="$ERRFLAG -errfmt" 13805fi 13806 13807 13808 13809 13810 13811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 13812printf %s "checking whether $CC supports -std=c99... " >&6; } 13813cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 13814if eval test \${cv_prog_cc_flag_$cache+y} 13815then : 13816 printf %s "(cached) " >&6 13817else $as_nop 13818 13819echo 'void f(void){}' >conftest.c 13820if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 13821eval "cv_prog_cc_flag_$cache=yes" 13822else 13823eval "cv_prog_cc_flag_$cache=no" 13824fi 13825rm -f conftest conftest.o conftest.c 13826 13827fi 13828 13829if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13831printf "%s\n" "yes" >&6; } 13832: 13833C99FLAG="-std=c99" 13834else 13835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13836printf "%s\n" "no" >&6; } 13837: 13838 13839fi 13840 13841 13842 13843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 13844printf %s "checking whether $CC supports -xc99... " >&6; } 13845cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 13846if eval test \${cv_prog_cc_flag_$cache+y} 13847then : 13848 printf %s "(cached) " >&6 13849else $as_nop 13850 13851echo 'void f(void){}' >conftest.c 13852if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 13853eval "cv_prog_cc_flag_$cache=yes" 13854else 13855eval "cv_prog_cc_flag_$cache=no" 13856fi 13857rm -f conftest conftest.o conftest.c 13858 13859fi 13860 13861if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 13862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13863printf "%s\n" "yes" >&6; } 13864: 13865C99FLAG="-xc99" 13866else 13867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13868printf "%s\n" "no" >&6; } 13869: 13870 13871fi 13872 13873 13874ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 13875" 13876if test "x$ac_cv_header_getopt_h" = xyes 13877then : 13878 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 13879 13880fi 13881ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 13882" 13883if test "x$ac_cv_header_time_h" = xyes 13884then : 13885 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 13886 13887fi 13888 13889 13890 13891 13892 13893{ 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 13894printf %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; } 13895cache=`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` 13896if eval test \${cv_prog_cc_flag_needed_$cache+y} 13897then : 13898 printf %s "(cached) " >&6 13899else $as_nop 13900 13901echo ' 13902#include "confdefs.h" 13903#include <stdlib.h> 13904#include <ctype.h> 13905#include <sys/time.h> 13906#ifdef HAVE_TIME_H 13907#include <time.h> 13908#endif 13909#include <unistd.h> 13910#include <netdb.h> 13911#ifdef HAVE_GETOPT_H 13912#include <getopt.h> 13913#endif 13914 13915int test(void) { 13916 int a; 13917 char **opts = NULL; 13918 struct timeval tv; 13919 char *t; 13920 time_t time = 0; 13921 char *buf = NULL; 13922 const char* str = NULL; 13923 struct msghdr msg; 13924 msg.msg_control = 0; 13925 t = ctime_r(&time, buf); 13926 tv.tv_usec = 10; 13927 srandom(32); 13928 a = getopt(2, opts, "a"); 13929 a = isascii(32); 13930 str = gai_strerror(0); 13931 if(str && t && tv.tv_usec && msg.msg_control) 13932 a = 0; 13933 return a; 13934} 13935' > conftest.c 13936echo 'void f(void){}' >>conftest.c 13937if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 13938eval "cv_prog_cc_flag_needed_$cache=no" 13939else 13940 13941if 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 13942eval "cv_prog_cc_flag_needed_$cache=yes" 13943else 13944eval "cv_prog_cc_flag_needed_$cache=fail" 13945#echo 'Test with flag fails too!' 13946#cat conftest.c 13947#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" 13948#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` 13949#exit 1 13950fi 13951 13952fi 13953rm -f conftest conftest.c conftest.o 13954 13955fi 13956 13957if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 13958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13959printf "%s\n" "yes" >&6; } 13960: 13961CFLAGS="$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" 13962else 13963if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 13964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13965printf "%s\n" "no" >&6; } 13966#echo 'Test with flag is no!' 13967#cat conftest.c 13968#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" 13969#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` 13970#exit 1 13971: 13972 13973else 13974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13975printf "%s\n" "failed" >&6; } 13976: 13977 13978fi 13979fi 13980 13981 13982 13983 13984 13985{ 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 13986printf %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; } 13987cache=`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` 13988if eval test \${cv_prog_cc_flag_needed_$cache+y} 13989then : 13990 printf %s "(cached) " >&6 13991else $as_nop 13992 13993echo ' 13994#include "confdefs.h" 13995#include <stdlib.h> 13996#include <ctype.h> 13997#include <sys/time.h> 13998#ifdef HAVE_TIME_H 13999#include <time.h> 14000#endif 14001#include <unistd.h> 14002#include <netdb.h> 14003#ifdef HAVE_GETOPT_H 14004#include <getopt.h> 14005#endif 14006 14007int test(void) { 14008 int a; 14009 char **opts = NULL; 14010 struct timeval tv; 14011 char *t; 14012 time_t time = 0; 14013 char *buf = NULL; 14014 const char* str = NULL; 14015 struct msghdr msg; 14016 msg.msg_control = 0; 14017 t = ctime_r(&time, buf); 14018 tv.tv_usec = 10; 14019 srandom(32); 14020 a = getopt(2, opts, "a"); 14021 a = isascii(32); 14022 str = gai_strerror(0); 14023 if(str && t && tv.tv_usec && msg.msg_control) 14024 a = 0; 14025 return a; 14026} 14027' > conftest.c 14028echo 'void f(void){}' >>conftest.c 14029if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14030eval "cv_prog_cc_flag_needed_$cache=no" 14031else 14032 14033if 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 14034eval "cv_prog_cc_flag_needed_$cache=yes" 14035else 14036eval "cv_prog_cc_flag_needed_$cache=fail" 14037#echo 'Test with flag fails too!' 14038#cat conftest.c 14039#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" 14040#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` 14041#exit 1 14042fi 14043 14044fi 14045rm -f conftest conftest.c conftest.o 14046 14047fi 14048 14049if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14051printf "%s\n" "yes" >&6; } 14052: 14053CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 14054else 14055if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14057printf "%s\n" "no" >&6; } 14058#echo 'Test with flag is no!' 14059#cat conftest.c 14060#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" 14061#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` 14062#exit 1 14063: 14064 14065else 14066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14067printf "%s\n" "failed" >&6; } 14068: 14069 14070fi 14071fi 14072 14073 14074 14075 14076 14077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 14078printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 14079cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh` 14080if eval test \${cv_prog_cc_flag_needed_$cache+y} 14081then : 14082 printf %s "(cached) " >&6 14083else $as_nop 14084 14085echo ' 14086#include <stdbool.h> 14087#include <ctype.h> 14088int test(void) { 14089 int a = 0; 14090 return a; 14091} 14092' > conftest.c 14093echo 'void f(void){}' >>conftest.c 14094if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14095eval "cv_prog_cc_flag_needed_$cache=no" 14096else 14097 14098if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 14099eval "cv_prog_cc_flag_needed_$cache=yes" 14100else 14101eval "cv_prog_cc_flag_needed_$cache=fail" 14102#echo 'Test with flag fails too!' 14103#cat conftest.c 14104#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 14105#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 14106#exit 1 14107fi 14108 14109fi 14110rm -f conftest conftest.c conftest.o 14111 14112fi 14113 14114if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14116printf "%s\n" "yes" >&6; } 14117: 14118CFLAGS="$CFLAGS $C99FLAG" 14119else 14120if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14122printf "%s\n" "no" >&6; } 14123#echo 'Test with flag is no!' 14124#cat conftest.c 14125#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 14126#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 14127#exit 1 14128: 14129 14130else 14131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14132printf "%s\n" "failed" >&6; } 14133: 14134 14135fi 14136fi 14137 14138 14139 14140 14141 14142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 14143printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 14144cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 14145if eval test \${cv_prog_cc_flag_needed_$cache+y} 14146then : 14147 printf %s "(cached) " >&6 14148else $as_nop 14149 14150echo ' 14151#include <ctype.h> 14152 14153int test(void) { 14154 int a; 14155 a = isascii(32); 14156 return a; 14157} 14158' > conftest.c 14159echo 'void f(void){}' >>conftest.c 14160if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14161eval "cv_prog_cc_flag_needed_$cache=no" 14162else 14163 14164if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 14165eval "cv_prog_cc_flag_needed_$cache=yes" 14166else 14167eval "cv_prog_cc_flag_needed_$cache=fail" 14168#echo 'Test with flag fails too!' 14169#cat conftest.c 14170#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 14171#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 14172#exit 1 14173fi 14174 14175fi 14176rm -f conftest conftest.c conftest.o 14177 14178fi 14179 14180if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14182printf "%s\n" "yes" >&6; } 14183: 14184CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 14185else 14186if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14188printf "%s\n" "no" >&6; } 14189#echo 'Test with flag is no!' 14190#cat conftest.c 14191#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 14192#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 14193#exit 1 14194: 14195 14196else 14197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14198printf "%s\n" "failed" >&6; } 14199: 14200 14201fi 14202fi 14203 14204 14205 14206 14207 14208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 14209printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 14210cache=_D_GNU_SOURCE 14211if eval test \${cv_prog_cc_flag_needed_$cache+y} 14212then : 14213 printf %s "(cached) " >&6 14214else $as_nop 14215 14216echo ' 14217#include <netinet/in.h> 14218 14219int test(void) { 14220 struct in6_pktinfo inf; 14221 int a = (int)sizeof(inf); 14222 return a; 14223} 14224' > conftest.c 14225echo 'void f(void){}' >>conftest.c 14226if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14227eval "cv_prog_cc_flag_needed_$cache=no" 14228else 14229 14230if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 14231eval "cv_prog_cc_flag_needed_$cache=yes" 14232else 14233eval "cv_prog_cc_flag_needed_$cache=fail" 14234#echo 'Test with flag fails too!' 14235#cat conftest.c 14236#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 14237#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 14238#exit 1 14239fi 14240 14241fi 14242rm -f conftest conftest.c conftest.o 14243 14244fi 14245 14246if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14248printf "%s\n" "yes" >&6; } 14249: 14250CFLAGS="$CFLAGS -D_GNU_SOURCE" 14251else 14252if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14254printf "%s\n" "no" >&6; } 14255#echo 'Test with flag is no!' 14256#cat conftest.c 14257#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 14258#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 14259#exit 1 14260: 14261 14262else 14263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14264printf "%s\n" "failed" >&6; } 14265: 14266 14267fi 14268fi 14269 14270 14271# check again for GNU_SOURCE for setresgid. May fail if setresgid 14272# is not available at all. -D_FRSRESGID is to make this check unique. 14273# otherwise we would get the previous cached result. 14274 14275 14276 14277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 14278printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 14279cache=_D_GNU_SOURCE__D_FRSRESGID 14280if eval test \${cv_prog_cc_flag_needed_$cache+y} 14281then : 14282 printf %s "(cached) " >&6 14283else $as_nop 14284 14285echo ' 14286#include <unistd.h> 14287 14288int test(void) { 14289 int a = setresgid(0,0,0); 14290 a = setresuid(0,0,0); 14291 return a; 14292} 14293' > conftest.c 14294echo 'void f(void){}' >>conftest.c 14295if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14296eval "cv_prog_cc_flag_needed_$cache=no" 14297else 14298 14299if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 14300eval "cv_prog_cc_flag_needed_$cache=yes" 14301else 14302eval "cv_prog_cc_flag_needed_$cache=fail" 14303#echo 'Test with flag fails too!' 14304#cat conftest.c 14305#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 14306#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 14307#exit 1 14308fi 14309 14310fi 14311rm -f conftest conftest.c conftest.o 14312 14313fi 14314 14315if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14317printf "%s\n" "yes" >&6; } 14318: 14319CFLAGS="$CFLAGS -D_GNU_SOURCE" 14320else 14321if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14323printf "%s\n" "no" >&6; } 14324#echo 'Test with flag is no!' 14325#cat conftest.c 14326#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 14327#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 14328#exit 1 14329: 14330 14331else 14332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14333printf "%s\n" "failed" >&6; } 14334: 14335 14336fi 14337fi 14338 14339 14340 14341 14342 14343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 14344printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 14345cache=_D_POSIX_C_SOURCE_200112 14346if eval test \${cv_prog_cc_flag_needed_$cache+y} 14347then : 14348 printf %s "(cached) " >&6 14349else $as_nop 14350 14351echo ' 14352#include "confdefs.h" 14353#ifdef HAVE_TIME_H 14354#include <time.h> 14355#endif 14356#include <netdb.h> 14357 14358int test(void) { 14359 int a = 0; 14360 char *t; 14361 time_t time = 0; 14362 char *buf = NULL; 14363 const char* str = NULL; 14364 t = ctime_r(&time, buf); 14365 str = gai_strerror(0); 14366 if(t && str) 14367 a = 0; 14368 return a; 14369} 14370' > conftest.c 14371echo 'void f(void){}' >>conftest.c 14372if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14373eval "cv_prog_cc_flag_needed_$cache=no" 14374else 14375 14376if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 14377eval "cv_prog_cc_flag_needed_$cache=yes" 14378else 14379eval "cv_prog_cc_flag_needed_$cache=fail" 14380#echo 'Test with flag fails too!' 14381#cat conftest.c 14382#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 14383#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 14384#exit 1 14385fi 14386 14387fi 14388rm -f conftest conftest.c conftest.o 14389 14390fi 14391 14392if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14394printf "%s\n" "yes" >&6; } 14395: 14396CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 14397else 14398if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14400printf "%s\n" "no" >&6; } 14401#echo 'Test with flag is no!' 14402#cat conftest.c 14403#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 14404#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 14405#exit 1 14406: 14407 14408else 14409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14410printf "%s\n" "failed" >&6; } 14411: 14412 14413fi 14414fi 14415 14416 14417 14418 14419 14420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 14421printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 14422cache=_D__EXTENSIONS__ 14423if eval test \${cv_prog_cc_flag_needed_$cache+y} 14424then : 14425 printf %s "(cached) " >&6 14426else $as_nop 14427 14428echo ' 14429#include "confdefs.h" 14430#include <stdlib.h> 14431#include <ctype.h> 14432#include <sys/time.h> 14433#ifdef HAVE_TIME_H 14434#include <time.h> 14435#endif 14436#include <unistd.h> 14437#ifdef HAVE_GETOPT_H 14438#include <getopt.h> 14439#endif 14440 14441int test(void) { 14442 int a; 14443 char **opts = NULL; 14444 struct timeval tv; 14445 tv.tv_usec = 10; 14446 srandom(32); 14447 a = getopt(2, opts, "a"); 14448 a = isascii(32); 14449 if(tv.tv_usec) 14450 a = 0; 14451 return a; 14452} 14453' > conftest.c 14454echo 'void f(void){}' >>conftest.c 14455if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14456eval "cv_prog_cc_flag_needed_$cache=no" 14457else 14458 14459if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 14460eval "cv_prog_cc_flag_needed_$cache=yes" 14461else 14462eval "cv_prog_cc_flag_needed_$cache=fail" 14463#echo 'Test with flag fails too!' 14464#cat conftest.c 14465#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 14466#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 14467#exit 1 14468fi 14469 14470fi 14471rm -f conftest conftest.c conftest.o 14472 14473fi 14474 14475if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14477printf "%s\n" "yes" >&6; } 14478: 14479CFLAGS="$CFLAGS -D__EXTENSIONS__" 14480else 14481if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14483printf "%s\n" "no" >&6; } 14484#echo 'Test with flag is no!' 14485#cat conftest.c 14486#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 14487#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 14488#exit 1 14489: 14490 14491else 14492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14493printf "%s\n" "failed" >&6; } 14494: 14495 14496fi 14497fi 14498 14499 14500 14501 14502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14503printf %s "checking for inline... " >&6; } 14504if test ${ac_cv_c_inline+y} 14505then : 14506 printf %s "(cached) " >&6 14507else $as_nop 14508 ac_cv_c_inline=no 14509for ac_kw in inline __inline__ __inline; do 14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14511/* end confdefs.h. */ 14512#ifndef __cplusplus 14513typedef int foo_t; 14514static $ac_kw foo_t static_foo (void) {return 0; } 14515$ac_kw foo_t foo (void) {return 0; } 14516#endif 14517 14518_ACEOF 14519if ac_fn_c_try_compile "$LINENO" 14520then : 14521 ac_cv_c_inline=$ac_kw 14522fi 14523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14524 test "$ac_cv_c_inline" != no && break 14525done 14526 14527fi 14528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14529printf "%s\n" "$ac_cv_c_inline" >&6; } 14530 14531case $ac_cv_c_inline in 14532 inline | yes) ;; 14533 *) 14534 case $ac_cv_c_inline in 14535 no) ac_val=;; 14536 *) ac_val=$ac_cv_c_inline;; 14537 esac 14538 cat >>confdefs.h <<_ACEOF 14539#ifndef __cplusplus 14540#define inline $ac_val 14541#endif 14542_ACEOF 14543 ;; 14544esac 14545 14546ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14547if test "x$ac_cv_type_int8_t" = xyes 14548then : 14549 14550else $as_nop 14551 14552printf "%s\n" "#define int8_t char" >>confdefs.h 14553 14554fi 14555 14556ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14557if test "x$ac_cv_type_int16_t" = xyes 14558then : 14559 14560else $as_nop 14561 14562printf "%s\n" "#define int16_t short" >>confdefs.h 14563 14564fi 14565 14566ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14567if test "x$ac_cv_type_int32_t" = xyes 14568then : 14569 14570else $as_nop 14571 14572printf "%s\n" "#define int32_t int" >>confdefs.h 14573 14574fi 14575 14576ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 14577if test "x$ac_cv_type_int64_t" = xyes 14578then : 14579 14580else $as_nop 14581 14582printf "%s\n" "#define int64_t long long" >>confdefs.h 14583 14584fi 14585 14586ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14587if test "x$ac_cv_type_uint8_t" = xyes 14588then : 14589 14590else $as_nop 14591 14592printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h 14593 14594fi 14595 14596ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14597if test "x$ac_cv_type_uint16_t" = xyes 14598then : 14599 14600else $as_nop 14601 14602printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h 14603 14604fi 14605 14606ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14607if test "x$ac_cv_type_uint32_t" = xyes 14608then : 14609 14610else $as_nop 14611 14612printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h 14613 14614fi 14615 14616ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 14617if test "x$ac_cv_type_uint64_t" = xyes 14618then : 14619 14620else $as_nop 14621 14622printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h 14623 14624fi 14625 14626 14627# my own checks 14628# Extract the first word of "doxygen", so it can be a program name with args. 14629set dummy doxygen; ac_word=$2 14630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14631printf %s "checking for $ac_word... " >&6; } 14632if test ${ac_cv_prog_doxygen+y} 14633then : 14634 printf %s "(cached) " >&6 14635else $as_nop 14636 if test -n "$doxygen"; then 14637 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 14638else 14639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14640for as_dir in $PATH 14641do 14642 IFS=$as_save_IFS 14643 case $as_dir in #((( 14644 '') as_dir=./ ;; 14645 */) ;; 14646 *) as_dir=$as_dir/ ;; 14647 esac 14648 for ac_exec_ext in '' $ac_executable_extensions; do 14649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14650 ac_cv_prog_doxygen="doxygen" 14651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14652 break 2 14653 fi 14654done 14655 done 14656IFS=$as_save_IFS 14657 14658fi 14659fi 14660doxygen=$ac_cv_prog_doxygen 14661if test -n "$doxygen"; then 14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 14663printf "%s\n" "$doxygen" >&6; } 14664else 14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14666printf "%s\n" "no" >&6; } 14667fi 14668 14669 14670 14671# check to see if libraries are needed for these functions. 14672ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 14673if test "x$ac_cv_func_socket" = xyes 14674then : 14675 14676else $as_nop 14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14678printf %s "checking for library containing socket... " >&6; } 14679if test ${ac_cv_search_socket+y} 14680then : 14681 printf %s "(cached) " >&6 14682else $as_nop 14683 ac_func_search_save_LIBS=$LIBS 14684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14685/* end confdefs.h. */ 14686 14687/* Override any GCC internal prototype to avoid an error. 14688 Use char because int might match the return type of a GCC 14689 builtin and then its argument prototype would still apply. */ 14690char socket (); 14691int 14692main (void) 14693{ 14694return socket (); 14695 ; 14696 return 0; 14697} 14698_ACEOF 14699for ac_lib in '' socket 14700do 14701 if test -z "$ac_lib"; then 14702 ac_res="none required" 14703 else 14704 ac_res=-l$ac_lib 14705 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14706 fi 14707 if ac_fn_c_try_link "$LINENO" 14708then : 14709 ac_cv_search_socket=$ac_res 14710fi 14711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14712 conftest$ac_exeext 14713 if test ${ac_cv_search_socket+y} 14714then : 14715 break 14716fi 14717done 14718if test ${ac_cv_search_socket+y} 14719then : 14720 14721else $as_nop 14722 ac_cv_search_socket=no 14723fi 14724rm conftest.$ac_ext 14725LIBS=$ac_func_search_save_LIBS 14726fi 14727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14728printf "%s\n" "$ac_cv_search_socket" >&6; } 14729ac_res=$ac_cv_search_socket 14730if test "$ac_res" != no 14731then : 14732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14733 14734fi 14735 14736 14737fi 14738 14739 14740# modern Linux provides inet_ntop in -lsocket. 14741# modern OS X provides inet_ntop in -lc. 14742# modern Solaris provides inet_ntop in -lsocket -lnsl. 14743# older Solaris provides inet_ntop in -lresolv. 14744# Windows provides inet_ntop in -lws2_32. 14745ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 14746if test "x$ac_cv_func_inet_ntop" = xyes 14747then : 14748 14749else $as_nop 14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 14751printf %s "checking for library containing inet_ntop... " >&6; } 14752if test ${ac_cv_search_inet_ntop+y} 14753then : 14754 printf %s "(cached) " >&6 14755else $as_nop 14756 ac_func_search_save_LIBS=$LIBS 14757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14758/* end confdefs.h. */ 14759 14760/* Override any GCC internal prototype to avoid an error. 14761 Use char because int might match the return type of a GCC 14762 builtin and then its argument prototype would still apply. */ 14763char inet_ntop (); 14764int 14765main (void) 14766{ 14767return inet_ntop (); 14768 ; 14769 return 0; 14770} 14771_ACEOF 14772for ac_lib in '' socket c nsl resolv ws2_32 14773do 14774 if test -z "$ac_lib"; then 14775 ac_res="none required" 14776 else 14777 ac_res=-l$ac_lib 14778 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14779 fi 14780 if ac_fn_c_try_link "$LINENO" 14781then : 14782 ac_cv_search_inet_ntop=$ac_res 14783fi 14784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14785 conftest$ac_exeext 14786 if test ${ac_cv_search_inet_ntop+y} 14787then : 14788 break 14789fi 14790done 14791if test ${ac_cv_search_inet_ntop+y} 14792then : 14793 14794else $as_nop 14795 ac_cv_search_inet_ntop=no 14796fi 14797rm conftest.$ac_ext 14798LIBS=$ac_func_search_save_LIBS 14799fi 14800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 14801printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } 14802ac_res=$ac_cv_search_inet_ntop 14803if test "$ac_res" != no 14804then : 14805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14806 ac_cv_func_inet_ntop=yes 14807fi 14808 14809 14810fi 14811 14812 14813# modern Linux provides inet_pton in -lsocket. 14814# modern OS X provides inet_pton in -lc. 14815# modern Solaris provides inet_pton in -lsocket -lnsl. 14816# older Solaris provides inet_pton in -lresolv. 14817# Windows provides inet_pton in -lws2_32. 14818ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 14819if test "x$ac_cv_func_inet_pton" = xyes 14820then : 14821 14822else $as_nop 14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 14824printf %s "checking for library containing inet_pton... " >&6; } 14825if test ${ac_cv_search_inet_pton+y} 14826then : 14827 printf %s "(cached) " >&6 14828else $as_nop 14829 ac_func_search_save_LIBS=$LIBS 14830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14831/* end confdefs.h. */ 14832 14833/* Override any GCC internal prototype to avoid an error. 14834 Use char because int might match the return type of a GCC 14835 builtin and then its argument prototype would still apply. */ 14836char inet_pton (); 14837int 14838main (void) 14839{ 14840return inet_pton (); 14841 ; 14842 return 0; 14843} 14844_ACEOF 14845for ac_lib in '' socket c nsl resolv ws2_32 14846do 14847 if test -z "$ac_lib"; then 14848 ac_res="none required" 14849 else 14850 ac_res=-l$ac_lib 14851 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14852 fi 14853 if ac_fn_c_try_link "$LINENO" 14854then : 14855 ac_cv_search_inet_pton=$ac_res 14856fi 14857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14858 conftest$ac_exeext 14859 if test ${ac_cv_search_inet_pton+y} 14860then : 14861 break 14862fi 14863done 14864if test ${ac_cv_search_inet_pton+y} 14865then : 14866 14867else $as_nop 14868 ac_cv_search_inet_pton=no 14869fi 14870rm conftest.$ac_ext 14871LIBS=$ac_func_search_save_LIBS 14872fi 14873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 14874printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 14875ac_res=$ac_cv_search_inet_pton 14876if test "$ac_res" != no 14877then : 14878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14879 ac_cv_func_inet_pton=yes 14880fi 14881 14882 14883fi 14884 14885 14886 14887# Check whether --with-drill was given. 14888if test ${with_drill+y} 14889then : 14890 withval=$with_drill; 14891else $as_nop 14892 with_drill="no" 14893fi 14894 14895if test x_$with_drill != x_no ; then 14896 DRILL=drill 14897 14898 INSTALL_DRILL=install-drill 14899 14900 UNINSTALL_DRILL=uninstall-drill 14901 14902 CLEAN_DRILL=clean-drill 14903 14904 LINT_DRILL=lint-drill 14905 14906 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then 14907 as_fn_error $? " 14908A config.h was detected in the drill subdirectory. 14909This does not work with the --with-drill option. 14910Please remove the config.h from the drill subdirectory 14911or do not use the --with-drill option." "$LINENO" 5 14912 fi 14913else 14914 DRILL="" 14915 14916 INSTALL_DRILL="" 14917 14918 UNINSTALL_DRILL="" 14919 14920 CLEAN_DRILL="" 14921 14922 LINT_DRILL="" 14923 14924fi 14925 14926 14927 14928# Check whether --with-examples was given. 14929if test ${with_examples+y} 14930then : 14931 withval=$with_examples; 14932else $as_nop 14933 with_examples="no" 14934fi 14935 14936if test x_$with_examples != x_no ; then 14937 EXAMPLES=examples 14938 14939 INSTALL_EXAMPLES=install-examples 14940 14941 UNINSTALL_EXAMPLES=uninstall-examples 14942 14943 CLEAN_EXAMPLES=clean-examples 14944 14945 LINT_EXAMPLES=lint-examples 14946 14947 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then 14948 as_fn_error $? " 14949A config.h was detected in the examples subdirectory. 14950This does not work with the --with-examples option. 14951Please remove the config.h from the examples subdirectory 14952or do not use the --with-examples option." "$LINENO" 5 14953 fi 14954else 14955 EXAMPLES="" 14956 14957 INSTALL_EXAMPLES="" 14958 14959 UNINSTALL_EXAMPLES="" 14960 14961 CLEAN_EXAMPLES="" 14962 14963 LINT_EXAMPLES="" 14964 14965fi 14966 14967# add option to disable installation of ldns-config script 14968# Check whether --enable-ldns-config was given. 14969if test ${enable_ldns_config+y} 14970then : 14971 enableval=$enable_ldns_config; enable_ldns_config=$enableval 14972else $as_nop 14973 enable_ldns_config=yes 14974fi 14975 14976if test "x$enable_ldns_config" = xyes; then 14977 INSTALL_CONFIG=install-config 14978 14979 INSTALL_CONFIG_MANPAGE=install-config-manpage 14980 14981 UNINSTALL_CONFIG=uninstall-config 14982 14983 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage 14984 14985else 14986 INSTALL_CONFIG="" 14987 14988 INSTALL_CONFIG_MANPAGE="" 14989 14990 UNINSTALL_CONFIG="" 14991 14992 UNINSTALL_CONFIG_MANPAGE="" 14993 14994fi 14995 14996# add option to disable library printing to stderr 14997# Check whether --enable-stderr-msgs was given. 14998if test ${enable_stderr_msgs+y} 14999then : 15000 enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval 15001else $as_nop 15002 enable_stderr_msgs=no 15003fi 15004 15005case "$enable_stderr_msgs" in 15006 no) ;; 15007 *) 15008 15009printf "%s\n" "#define STDERR_MSGS 1" >>confdefs.h 15010 15011 ;; 15012esac 15013 15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll(2)" >&5 15015printf %s "checking for poll(2)... " >&6; } 15016 if test ${ax_cv_have_poll+y} 15017then : 15018 printf %s "(cached) " >&6 15019else $as_nop 15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15021/* end confdefs.h. */ 15022 #include <poll.h> 15023int 15024main (void) 15025{ 15026int rc; rc = poll((struct pollfd *)(0), 0, 0); 15027 ; 15028 return 0; 15029} 15030_ACEOF 15031if ac_fn_c_try_link "$LINENO" 15032then : 15033 ax_cv_have_poll=yes 15034else $as_nop 15035 ax_cv_have_poll=no 15036fi 15037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15038 conftest$ac_exeext conftest.$ac_ext 15039fi 15040 15041 if test "${ax_cv_have_poll}" = "yes" 15042then : 15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15044printf "%s\n" "yes" >&6; } 15045 ax_config_feature_poll=yes 15046 15047else $as_nop 15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15049printf "%s\n" "no" >&6; } 15050 ax_config_feature_poll=no 15051 15052fi 15053 15054 15055# Check whether --enable-poll was given. 15056if test ${enable_poll+y} 15057then : 15058 enableval=$enable_poll; 15059case "${enableval}" in 15060 yes) 15061 ax_config_feature_poll="yes" 15062 ;; 15063 no) 15064 ax_config_feature_poll="no" 15065 ;; 15066 *) 15067 as_fn_error $? "bad value ${enableval} for feature --poll" "$LINENO" 5 15068 ;; 15069esac 15070 15071fi 15072 15073 15074if test "$ax_config_feature_poll" = yes 15075then : 15076 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 15077 15078 15079 if test "$ax_config_feature_verbose" = yes 15080then : 15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Feature poll is enabled" >&5 15082printf "%s\n" "$as_me: Feature poll is enabled" >&6;} 15083 15084fi 15085 15086else $as_nop 15087 15088 if test "$ax_config_feature_verbose" = yes 15089then : 15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Feature poll is disabled" >&5 15091printf "%s\n" "$as_me: Feature poll is disabled" >&6;} 15092 15093fi 15094 15095fi 15096 15097 15098 15099 15100 15101# check for python 15102PYTHON_X_CFLAGS="" 15103ldns_with_pyldns=no 15104ldns_with_pyldnsx=no 15105 15106# Check whether --with-pyldns was given. 15107if test ${with_pyldns+y} 15108then : 15109 withval=$with_pyldns; 15110else $as_nop 15111 withval="no" 15112fi 15113 15114ldns_have_python=no 15115if test x_$withval != x_no; then 15116 # =========================================================================== 15117# https://www.gnu.org/software/autoconf-archive/ax_python_devel.html 15118# =========================================================================== 15119# 15120# SYNOPSIS 15121# 15122# AX_PYTHON_DEVEL([version]) 15123# 15124# DESCRIPTION 15125# 15126# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it 15127# in your configure.ac. 15128# 15129# This macro checks for Python and tries to get the include path to 15130# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output 15131# variables. It also exports $(PYTHON_EXTRA_LIBS) and 15132# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code. 15133# 15134# You can search for some particular version of Python by passing a 15135# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please 15136# note that you *have* to pass also an operator along with the version to 15137# match, and pay special attention to the single quotes surrounding the 15138# version number. Don't use "PYTHON_VERSION" for this: that environment 15139# variable is declared as precious and thus reserved for the end-user. 15140# 15141# This macro should work for all versions of Python >= 2.1.0. As an end 15142# user, you can disable the check for the python version by setting the 15143# PYTHON_NOVERSIONCHECK environment variable to something else than the 15144# empty string. 15145# 15146# If you need to use this macro for an older Python version, please 15147# contact the authors. We're always open for feedback. 15148# 15149# LICENSE 15150# 15151# Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de> 15152# Copyright (c) 2009 Alan W. Irwin 15153# Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net> 15154# Copyright (c) 2009 Andrew Collier 15155# Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org> 15156# Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org> 15157# Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu> 15158# 15159# This program is free software: you can redistribute it and/or modify it 15160# under the terms of the GNU General Public License as published by the 15161# Free Software Foundation, either version 3 of the License, or (at your 15162# option) any later version. 15163# 15164# This program is distributed in the hope that it will be useful, but 15165# WITHOUT ANY WARRANTY; without even the implied warranty of 15166# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 15167# Public License for more details. 15168# 15169# You should have received a copy of the GNU General Public License along 15170# with this program. If not, see <https://www.gnu.org/licenses/>. 15171# 15172# As a special exception, the respective Autoconf Macro's copyright owner 15173# gives unlimited permission to copy, distribute and modify the configure 15174# scripts that are the output of Autoconf when processing the Macro. You 15175# need not follow the terms of the GNU General Public License when using 15176# or distributing such scripts, even though portions of the text of the 15177# Macro appear in them. The GNU General Public License (GPL) does govern 15178# all other use of the material that constitutes the Autoconf Macro. 15179# 15180# This special exception to the GPL applies to versions of the Autoconf 15181# Macro released by the Autoconf Archive. When you make and distribute a 15182# modified version of the Autoconf Macro, you may extend this special 15183# exception to the GPL to apply to your modified version as well. 15184 15185#serial 32 15186 15187# This is what autoupdate's m4 run will expand. It fires the warning 15188# (with _au_warn_XXX), outputs it into the updated configure.ac (with 15189# m4_warn), and then outputs the replacement expansion. We need extra 15190# quotation around the m4_warn and dnl so they will be written 15191# unexpanded into the updated configure.ac. 15192 15193 15194# This is an auxiliary macro that is also run when 15195# autoupdate runs m4. It simply calls m4_warning, but 15196# we need a wrapper so that each warning is emitted only 15197# once. We break the quoting in m4_warning's argument in 15198# order to expand this macro's arguments, not AU_DEFUN's. 15199 15200 15201# Finally, this is the expansion that is picked up by 15202# autoconf, causing NAME to expand to NEW-CODE, plus 15203# (if SILENT is not "silent") a m4_warning telling the 15204# maintainer to run autoupdate. We don't issue MESSAGE 15205# from autoconf, because that's instructions for what 15206# to do *after* running autoupdate. 15207 15208 15209 15210 ac_save_LIBS="$LIBS" 15211 15212 # 15213 # Allow the use of a (user set) custom python version 15214 # 15215 15216 15217 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 15218set dummy python$PYTHON_VERSION; ac_word=$2 15219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15220printf %s "checking for $ac_word... " >&6; } 15221if test ${ac_cv_path_PYTHON+y} 15222then : 15223 printf %s "(cached) " >&6 15224else $as_nop 15225 case $PYTHON in 15226 [\\/]* | ?:[\\/]*) 15227 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15228 ;; 15229 *) 15230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15231for as_dir in $PATH 15232do 15233 IFS=$as_save_IFS 15234 case $as_dir in #((( 15235 '') as_dir=./ ;; 15236 */) ;; 15237 *) as_dir=$as_dir/ ;; 15238 esac 15239 for ac_exec_ext in '' $ac_executable_extensions; do 15240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15241 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 15242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15243 break 2 15244 fi 15245done 15246 done 15247IFS=$as_save_IFS 15248 15249 ;; 15250esac 15251fi 15252PYTHON=$ac_cv_path_PYTHON 15253if test -n "$PYTHON"; then 15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15255printf "%s\n" "$PYTHON" >&6; } 15256else 15257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15258printf "%s\n" "no" >&6; } 15259fi 15260 15261 15262 if test -z "$PYTHON"; then 15263 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 15264 PYTHON_VERSION="" 15265 fi 15266 15267 # 15268 # Check for a version of Python >= 2.1.0 15269 # 15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 15271printf %s "checking for a version of Python >= '2.1.0'... " >&6; } 15272 ac_supports_python_ver=`$PYTHON -c "import sys; \ 15273 ver = sys.version.split ()[0]; \ 15274 print (ver >= '2.1.0')"` 15275 if test "$ac_supports_python_ver" != "True"; then 15276 if test -z "$PYTHON_NOVERSIONCHECK"; then 15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15278printf "%s\n" "no" >&6; } 15279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15280printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15281as_fn_error $? " 15282This version of the AC_PYTHON_DEVEL macro 15283doesn't work properly with versions of Python before 152842.1.0. You may need to re-run configure, setting the 15285variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG, 15286PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 15287Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 15288to something else than an empty string. 15289 15290See \`config.log' for more details" "$LINENO" 5; } 15291 else 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 15293printf "%s\n" "skip at user request" >&6; } 15294 fi 15295 else 15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15297printf "%s\n" "yes" >&6; } 15298 fi 15299 15300 # 15301 # If the macro parameter ``version'' is set, honour it. 15302 # A Python shim class, VPy, is used to implement correct version comparisons via 15303 # string expressions, since e.g. a naive textual ">= 2.7.3" won't work for 15304 # Python 2.7.10 (the ".1" being evaluated as less than ".3"). 15305 # 15306 if test -n ">= '2.4.0'"; then 15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5 15308printf %s "checking for a version of Python >= '2.4.0'... " >&6; } 15309 cat << EOF > ax_python_devel_vpy.py 15310class VPy: 15311 def vtup(self, s): 15312 return tuple(map(int, s.strip().replace("rc", ".").split("."))) 15313 def __init__(self): 15314 import sys 15315 self.vpy = tuple(sys.version_info) 15316 def __eq__(self, s): 15317 return self.vpy == self.vtup(s) 15318 def __ne__(self, s): 15319 return self.vpy != self.vtup(s) 15320 def __lt__(self, s): 15321 return self.vpy < self.vtup(s) 15322 def __gt__(self, s): 15323 return self.vpy > self.vtup(s) 15324 def __le__(self, s): 15325 return self.vpy <= self.vtup(s) 15326 def __ge__(self, s): 15327 return self.vpy >= self.vtup(s) 15328EOF 15329 ac_supports_python_ver=`$PYTHON -c "import ax_python_devel_vpy; \ 15330 ver = ax_python_devel_vpy.VPy(); \ 15331 print (ver >= '2.4.0')"` 15332 rm -rf ax_python_devel_vpy*.py* __pycache__/ax_python_devel_vpy*.py* 15333 if test "$ac_supports_python_ver" = "True"; then 15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15335printf "%s\n" "yes" >&6; } 15336 else 15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15338printf "%s\n" "no" >&6; } 15339 as_fn_error $? "this package requires Python >= '2.4.0'. 15340If you have it installed, but it isn't the default Python 15341interpreter in your system path, please pass the PYTHON_VERSION 15342variable to configure. See \`\`configure --help'' for reference. 15343" "$LINENO" 5 15344 PYTHON_VERSION="" 15345 fi 15346 fi 15347 15348 # 15349 # Check if you have distutils, else fail 15350 # 15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python package" >&5 15352printf %s "checking for the sysconfig Python package... " >&6; } 15353 ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1` 15354 if test $? -eq 0; then 15355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15356printf "%s\n" "yes" >&6; } 15357 IMPORT_SYSCONFIG="import sysconfig" 15358 else 15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15360printf "%s\n" "no" >&6; } 15361 15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 15363printf %s "checking for the distutils Python package... " >&6; } 15364 ac_sysconfig_result=`$PYTHON -c "from distutils import sysconfig" 2>&1` 15365 if test $? -eq 0; then 15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15367printf "%s\n" "yes" >&6; } 15368 IMPORT_SYSCONFIG="from distutils import sysconfig" 15369 else 15370 as_fn_error $? "cannot import Python module \"distutils\". 15371Please check your Python installation. The error was: 15372$ac_sysconfig_result" "$LINENO" 5 15373 PYTHON_VERSION="" 15374 fi 15375 fi 15376 15377 # 15378 # Check for Python include path 15379 # 15380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 15381printf %s "checking for Python include path... " >&6; } 15382 if test -z "$PYTHON_CPPFLAGS"; then 15383 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then 15384 # sysconfig module has different functions 15385 python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \ 15386 print (sysconfig.get_path ('include'));"` 15387 plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \ 15388 print (sysconfig.get_path ('platinclude'));"` 15389 else 15390 # old distutils way 15391 python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \ 15392 print (sysconfig.get_python_inc ());"` 15393 plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \ 15394 print (sysconfig.get_python_inc (plat_specific=1));"` 15395 fi 15396 if test -n "${python_path}"; then 15397 if test "${plat_python_path}" != "${python_path}"; then 15398 python_path="-I$python_path -I$plat_python_path" 15399 else 15400 python_path="-I$python_path" 15401 fi 15402 fi 15403 PYTHON_CPPFLAGS=$python_path 15404 fi 15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 15406printf "%s\n" "$PYTHON_CPPFLAGS" >&6; } 15407 15408 15409 # 15410 # Check for Python library path 15411 # 15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 15413printf %s "checking for Python library path... " >&6; } 15414 if test -z "$PYTHON_LIBS"; then 15415 # (makes two attempts to ensure we've got a version number 15416 # from the interpreter) 15417 ac_python_version=`cat<<EOD | $PYTHON - 15418 15419# join all versioning strings, on some systems 15420# major/minor numbers could be in different list elements 15421from sysconfig import * 15422e = get_config_var('VERSION') 15423if e is not None: 15424 print(e) 15425EOD` 15426 15427 if test -z "$ac_python_version"; then 15428 if test -n "$PYTHON_VERSION"; then 15429 ac_python_version=$PYTHON_VERSION 15430 else 15431 ac_python_version=`$PYTHON -c "import sys; \ 15432 print ("%d.%d" % sys.version_info[:2])"` 15433 fi 15434 fi 15435 15436 # Make the versioning information available to the compiler 15437 15438printf "%s\n" "#define HAVE_PYTHON \"$ac_python_version\"" >>confdefs.h 15439 15440 15441 # First, the library directory: 15442 ac_python_libdir=`cat<<EOD | $PYTHON - 15443 15444# There should be only one 15445$IMPORT_SYSCONFIG 15446e = sysconfig.get_config_var('LIBDIR') 15447if e is not None: 15448 print (e) 15449EOD` 15450 15451 # Now, for the library: 15452 ac_python_library=`cat<<EOD | $PYTHON - 15453 15454$IMPORT_SYSCONFIG 15455c = sysconfig.get_config_vars() 15456if 'LDVERSION' in c: 15457 print ('python'+c['LDVERSION']) 15458else: 15459 print ('python'+c['VERSION']) 15460EOD` 15461 15462 # This small piece shamelessly adapted from PostgreSQL python macro; 15463 # credits goes to momjian, I think. I'd like to put the right name 15464 # in the credits, if someone can point me in the right direction... ? 15465 # 15466 if test -n "$ac_python_libdir" -a -n "$ac_python_library" 15467 then 15468 # use the official shared library 15469 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 15470 PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library" 15471 else 15472 # old way: use libpython from python_configdir 15473 ac_python_libdir=`$PYTHON -c \ 15474 "from sysconfig import get_python_lib as f; \ 15475 import os; \ 15476 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 15477 PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version" 15478 fi 15479 15480 if test -z "PYTHON_LIBS"; then 15481 as_fn_error $? " 15482 Cannot determine location of your Python DSO. Please check it was installed with 15483 dynamic libraries enabled, or try setting PYTHON_LIBS by hand. 15484 " "$LINENO" 5 15485 fi 15486 fi 15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5 15488printf "%s\n" "$PYTHON_LIBS" >&6; } 15489 15490 15491 # 15492 # Check for site packages 15493 # 15494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 15495printf %s "checking for Python site-packages path... " >&6; } 15496 if test -z "$PYTHON_SITE_PKG"; then 15497 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then 15498 PYTHON_SITE_PKG=`$PYTHON -c " 15499$IMPORT_SYSCONFIG; 15500if hasattr(sysconfig, 'get_default_scheme'): 15501 scheme = sysconfig.get_default_scheme() 15502else: 15503 scheme = sysconfig._get_default_scheme() 15504if scheme == 'posix_local': 15505 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/ 15506 scheme = 'posix_prefix' 15507prefix = '$prefix' 15508if prefix == 'NONE': 15509 prefix = '$ac_default_prefix' 15510sitedir = sysconfig.get_path('purelib', scheme, vars={'base': prefix}) 15511print(sitedir)"` 15512 else 15513 # distutils.sysconfig way 15514 PYTHON_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \ 15515 print (sysconfig.get_python_lib(0,0));"` 15516 fi 15517 fi 15518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 15519printf "%s\n" "$PYTHON_SITE_PKG" >&6; } 15520 15521 15522 # 15523 # Check for platform-specific site packages 15524 # 15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python platform specific site-packages path" >&5 15526printf %s "checking for Python platform specific site-packages path... " >&6; } 15527 if test -z "$PYTHON_PLATFORM_SITE_PKG"; then 15528 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then 15529 PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c " 15530$IMPORT_SYSCONFIG; 15531if hasattr(sysconfig, 'get_default_scheme'): 15532 scheme = sysconfig.get_default_scheme() 15533else: 15534 scheme = sysconfig._get_default_scheme() 15535if scheme == 'posix_local': 15536 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/ 15537 scheme = 'posix_prefix' 15538prefix = '$prefix' 15539if prefix == 'NONE': 15540 prefix = '$ac_default_prefix' 15541sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase': prefix}) 15542print(sitedir)"` 15543 else 15544 # distutils.sysconfig way 15545 PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \ 15546 print (sysconfig.get_python_lib(1,0));"` 15547 fi 15548 fi 15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PLATFORM_SITE_PKG" >&5 15550printf "%s\n" "$PYTHON_PLATFORM_SITE_PKG" >&6; } 15551 15552 15553 # 15554 # libraries which must be linked in when embedding 15555 # 15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 15557printf %s "checking python extra libraries... " >&6; } 15558 if test -z "$PYTHON_EXTRA_LIBS"; then 15559 PYTHON_EXTRA_LIBS=`$PYTHON -c "$IMPORT_SYSCONFIG; \ 15560 conf = sysconfig.get_config_var; \ 15561 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"` 15562 fi 15563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 15564printf "%s\n" "$PYTHON_EXTRA_LIBS" >&6; } 15565 15566 15567 # 15568 # linking flags needed when embedding 15569 # 15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 15571printf %s "checking python extra linking flags... " >&6; } 15572 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 15573 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "$IMPORT_SYSCONFIG; \ 15574 conf = sysconfig.get_config_var; \ 15575 print (conf('LINKFORSHARED'))"` 15576 fi 15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 15578printf "%s\n" "$PYTHON_EXTRA_LDFLAGS" >&6; } 15579 15580 15581 # 15582 # final check to see if everything compiles alright 15583 # 15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 15585printf %s "checking consistency of all components of python development environment... " >&6; } 15586 # save current global flags 15587 ac_save_LIBS="$LIBS" 15588 ac_save_LDFLAGS="$LDFLAGS" 15589 ac_save_CPPFLAGS="$CPPFLAGS" 15590 LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS" 15591 LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS" 15592 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 15593 ac_ext=c 15594ac_cpp='$CPP $CPPFLAGS' 15595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15597ac_compiler_gnu=$ac_cv_c_compiler_gnu 15598 15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15600/* end confdefs.h. */ 15601 15602 #include <Python.h> 15603int 15604main (void) 15605{ 15606Py_Initialize(); 15607 ; 15608 return 0; 15609} 15610 15611_ACEOF 15612if ac_fn_c_try_link "$LINENO" 15613then : 15614 pythonexists=yes 15615else $as_nop 15616 pythonexists=no 15617fi 15618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15619 conftest$ac_exeext conftest.$ac_ext 15620 ac_ext=c 15621ac_cpp='$CPP $CPPFLAGS' 15622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15624ac_compiler_gnu=$ac_cv_c_compiler_gnu 15625 15626 # turn back to default flags 15627 CPPFLAGS="$ac_save_CPPFLAGS" 15628 LIBS="$ac_save_LIBS" 15629 LDFLAGS="$ac_save_LDFLAGS" 15630 15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 15632printf "%s\n" "$pythonexists" >&6; } 15633 15634 if test ! "x$pythonexists" = "xyes"; then 15635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15636printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15637as_fn_error $? " 15638 Could not link test program to Python. Maybe the main Python library has been 15639 installed in some non-standard library path. If so, pass it to configure, 15640 via the LIBS environment variable. 15641 Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\" 15642 ============================================================================ 15643 ERROR! 15644 You probably have to install the development version of the Python package 15645 for your distribution. The exact name of this package varies among them. 15646 ============================================================================ 15647 15648See \`config.log' for more details" "$LINENO" 5; } 15649 PYTHON_VERSION="" 15650 fi 15651 15652 # 15653 # all done! 15654 # 15655 15656 if test ! -z "$ac_python_version"; then 15657 ldns_have_python=yes 15658 fi 15659 15660 # pass additional Python 3 option to SWIG 15661 if test `$PYTHON -c "import sys; \ 15662 ver = sys.version.split()[0]; \ 15663 print(ver >= '3')"` = "True"; then 15664 SWIGPY3="-py3 -DPY3" 15665 15666 fi 15667 15668 # check for SWIG 15669 if test x_$ldns_have_python != x_no; then 15670 # =========================================================================== 15671# https://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html 15672# =========================================================================== 15673# 15674# SYNOPSIS 15675# 15676# AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) 15677# 15678# DESCRIPTION 15679# 15680# This macro searches for a SWIG installation on your system. If found, 15681# then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is 15682# found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. 15683# 15684# You can use the optional first argument to check if the version of the 15685# available SWIG is greater than or equal to the value of the argument. It 15686# should have the format: N[.N[.N]] (N is a number between 0 and 999. Only 15687# the first N is mandatory.) If the version argument is given (e.g. 15688# 1.3.17), AX_PKG_SWIG checks that the swig package is this version number 15689# or higher. 15690# 15691# As usual, action-if-found is executed if SWIG is found, otherwise 15692# action-if-not-found is executed. 15693# 15694# In configure.in, use as: 15695# 15696# AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) 15697# AX_SWIG_ENABLE_CXX 15698# AX_SWIG_MULTI_MODULE_SUPPORT 15699# AX_SWIG_PYTHON 15700# 15701# LICENSE 15702# 15703# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> 15704# Copyright (c) 2008 Alan W. Irwin 15705# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> 15706# Copyright (c) 2008 Andrew Collier 15707# Copyright (c) 2011 Murray Cumming <murrayc@openismus.com> 15708# 15709# This program is free software; you can redistribute it and/or modify it 15710# under the terms of the GNU General Public License as published by the 15711# Free Software Foundation; either version 2 of the License, or (at your 15712# option) any later version. 15713# 15714# This program is distributed in the hope that it will be useful, but 15715# WITHOUT ANY WARRANTY; without even the implied warranty of 15716# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 15717# Public License for more details. 15718# 15719# You should have received a copy of the GNU General Public License along 15720# with this program. If not, see <https://www.gnu.org/licenses/>. 15721# 15722# As a special exception, the respective Autoconf Macro's copyright owner 15723# gives unlimited permission to copy, distribute and modify the configure 15724# scripts that are the output of Autoconf when processing the Macro. You 15725# need not follow the terms of the GNU General Public License when using 15726# or distributing such scripts, even though portions of the text of the 15727# Macro appear in them. The GNU General Public License (GPL) does govern 15728# all other use of the material that constitutes the Autoconf Macro. 15729# 15730# This special exception to the GPL applies to versions of the Autoconf 15731# Macro released by the Autoconf Archive. When you make and distribute a 15732# modified version of the Autoconf Macro, you may extend this special 15733# exception to the GPL to apply to your modified version as well. 15734 15735#serial 13 15736 15737 15738 15739 15740 # check for >=SWIG-2.0.4 if Python 3.2 used 15741 if test `$PYTHON -c "import sys; \ 15742 ver = sys.version.split()[0]; \ 15743 print(ver >= '3.2')"` = "True"; then 15744 15745 # Find path to the "swig" executable. 15746 for ac_prog in swig swig3.0 swig2.0 15747do 15748 # Extract the first word of "$ac_prog", so it can be a program name with args. 15749set dummy $ac_prog; ac_word=$2 15750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15751printf %s "checking for $ac_word... " >&6; } 15752if test ${ac_cv_path_SWIG+y} 15753then : 15754 printf %s "(cached) " >&6 15755else $as_nop 15756 case $SWIG in 15757 [\\/]* | ?:[\\/]*) 15758 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 15759 ;; 15760 *) 15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15762for as_dir in $PATH 15763do 15764 IFS=$as_save_IFS 15765 case $as_dir in #((( 15766 '') as_dir=./ ;; 15767 */) ;; 15768 *) as_dir=$as_dir/ ;; 15769 esac 15770 for ac_exec_ext in '' $ac_executable_extensions; do 15771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15772 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 15773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15774 break 2 15775 fi 15776done 15777 done 15778IFS=$as_save_IFS 15779 15780 ;; 15781esac 15782fi 15783SWIG=$ac_cv_path_SWIG 15784if test -n "$SWIG"; then 15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 15786printf "%s\n" "$SWIG" >&6; } 15787else 15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15789printf "%s\n" "no" >&6; } 15790fi 15791 15792 15793 test -n "$SWIG" && break 15794done 15795 15796 if test -z "$SWIG" ; then 15797 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 15798 elif test -n "2.0.4" ; then 15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 15800printf %s "checking SWIG version... " >&6; } 15801 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'` 15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 15803printf "%s\n" "$swig_version" >&6; } 15804 if test -n "$swig_version" ; then 15805 # Calculate the required version number components 15806 required=2.0.4 15807 required_major=`echo $required | sed 's/[^0-9].*//'` 15808 if test -z "$required_major" ; then 15809 required_major=0 15810 fi 15811 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15812 required_minor=`echo $required | sed 's/[^0-9].*//'` 15813 if test -z "$required_minor" ; then 15814 required_minor=0 15815 fi 15816 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15817 required_patch=`echo $required | sed 's/[^0-9].*//'` 15818 if test -z "$required_patch" ; then 15819 required_patch=0 15820 fi 15821 # Calculate the available version number components 15822 available=$swig_version 15823 available_major=`echo $available | sed 's/[^0-9].*//'` 15824 if test -z "$available_major" ; then 15825 available_major=0 15826 fi 15827 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15828 available_minor=`echo $available | sed 's/[^0-9].*//'` 15829 if test -z "$available_minor" ; then 15830 available_minor=0 15831 fi 15832 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15833 available_patch=`echo $available | sed 's/[^0-9].*//'` 15834 if test -z "$available_patch" ; then 15835 available_patch=0 15836 fi 15837 # Convert the version tuple into a single number for easier comparison. 15838 # Using base 100 should be safe since SWIG internally uses BCD values 15839 # to encode its version number. 15840 required_swig_vernum=`expr $required_major \* 10000 \ 15841 \+ $required_minor \* 100 \+ $required_patch` 15842 available_swig_vernum=`expr $available_major \* 10000 \ 15843 \+ $available_minor \* 100 \+ $available_patch` 15844 15845 if test $available_swig_vernum -lt $required_swig_vernum; then 15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5 15847printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;} 15848 SWIG='' 15849 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 15850 else 15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 15852printf %s "checking for SWIG library... " >&6; } 15853 SWIG_LIB=`$SWIG -swiglib` 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 15855printf "%s\n" "$SWIG_LIB" >&6; } 15856 15857 fi 15858 else 15859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 15860printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 15861 SWIG='' 15862 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 15863 fi 15864 fi 15865 15866 15867 else 15868 15869 # Find path to the "swig" executable. 15870 for ac_prog in swig swig3.0 swig2.0 15871do 15872 # Extract the first word of "$ac_prog", so it can be a program name with args. 15873set dummy $ac_prog; ac_word=$2 15874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15875printf %s "checking for $ac_word... " >&6; } 15876if test ${ac_cv_path_SWIG+y} 15877then : 15878 printf %s "(cached) " >&6 15879else $as_nop 15880 case $SWIG in 15881 [\\/]* | ?:[\\/]*) 15882 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 15883 ;; 15884 *) 15885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15886for as_dir in $PATH 15887do 15888 IFS=$as_save_IFS 15889 case $as_dir in #((( 15890 '') as_dir=./ ;; 15891 */) ;; 15892 *) as_dir=$as_dir/ ;; 15893 esac 15894 for ac_exec_ext in '' $ac_executable_extensions; do 15895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15896 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 15897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15898 break 2 15899 fi 15900done 15901 done 15902IFS=$as_save_IFS 15903 15904 ;; 15905esac 15906fi 15907SWIG=$ac_cv_path_SWIG 15908if test -n "$SWIG"; then 15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 15910printf "%s\n" "$SWIG" >&6; } 15911else 15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15913printf "%s\n" "no" >&6; } 15914fi 15915 15916 15917 test -n "$SWIG" && break 15918done 15919 15920 if test -z "$SWIG" ; then 15921 : 15922 elif test -n "" ; then 15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 15924printf %s "checking SWIG version... " >&6; } 15925 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'` 15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 15927printf "%s\n" "$swig_version" >&6; } 15928 if test -n "$swig_version" ; then 15929 # Calculate the required version number components 15930 required= 15931 required_major=`echo $required | sed 's/[^0-9].*//'` 15932 if test -z "$required_major" ; then 15933 required_major=0 15934 fi 15935 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15936 required_minor=`echo $required | sed 's/[^0-9].*//'` 15937 if test -z "$required_minor" ; then 15938 required_minor=0 15939 fi 15940 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15941 required_patch=`echo $required | sed 's/[^0-9].*//'` 15942 if test -z "$required_patch" ; then 15943 required_patch=0 15944 fi 15945 # Calculate the available version number components 15946 available=$swig_version 15947 available_major=`echo $available | sed 's/[^0-9].*//'` 15948 if test -z "$available_major" ; then 15949 available_major=0 15950 fi 15951 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15952 available_minor=`echo $available | sed 's/[^0-9].*//'` 15953 if test -z "$available_minor" ; then 15954 available_minor=0 15955 fi 15956 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15957 available_patch=`echo $available | sed 's/[^0-9].*//'` 15958 if test -z "$available_patch" ; then 15959 available_patch=0 15960 fi 15961 # Convert the version tuple into a single number for easier comparison. 15962 # Using base 100 should be safe since SWIG internally uses BCD values 15963 # to encode its version number. 15964 required_swig_vernum=`expr $required_major \* 10000 \ 15965 \+ $required_minor \* 100 \+ $required_patch` 15966 available_swig_vernum=`expr $available_major \* 10000 \ 15967 \+ $available_minor \* 100 \+ $available_patch` 15968 15969 if test $available_swig_vernum -lt $required_swig_vernum; then 15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5 15971printf "%s\n" "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;} 15972 SWIG='' 15973 15974 else 15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 15976printf %s "checking for SWIG library... " >&6; } 15977 SWIG_LIB=`$SWIG -swiglib` 15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 15979printf "%s\n" "$SWIG_LIB" >&6; } 15980 15981 fi 15982 else 15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 15984printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 15985 SWIG='' 15986 15987 fi 15988 fi 15989 15990 15991 fi 15992 15993 if test ! -x "$SWIG"; then 15994 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5 15995 else 15996 15997printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h 15998 15999 PYLDNS="pyldns" 16000 16001 swig="$SWIG" 16002 16003 ldns_with_pyldns=yes 16004 fi 16005 else 16006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5 16007printf "%s\n" "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # ' 16008 fi 16009 16010 # xtra cflags for pyldns 16011 if test x_$ldns_have_python != x_no; then 16012 16013 16014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5 16015printf %s "checking whether $CC supports -fno-strict-aliasing... " >&6; } 16016cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'` 16017if eval test \${cv_prog_cc_flag_$cache+y} 16018then : 16019 printf %s "(cached) " >&6 16020else $as_nop 16021 16022echo 'void f(void){}' >conftest.c 16023if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then 16024eval "cv_prog_cc_flag_$cache=yes" 16025else 16026eval "cv_prog_cc_flag_$cache=no" 16027fi 16028rm -f conftest conftest.o conftest.c 16029 16030fi 16031 16032if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 16033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16034printf "%s\n" "yes" >&6; } 16035: 16036PYTHON_X_CFLAGS="-fno-strict-aliasing" 16037else 16038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16039printf "%s\n" "no" >&6; } 16040: 16041 16042fi 16043 16044 16045 16046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5 16047printf %s "checking whether $CC supports -Wno-missing-field-initializers... " >&6; } 16048cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'` 16049if eval test \${cv_prog_cc_flag_$cache+y} 16050then : 16051 printf %s "(cached) " >&6 16052else $as_nop 16053 16054echo 'void f(void){}' >conftest.c 16055if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then 16056eval "cv_prog_cc_flag_$cache=yes" 16057else 16058eval "cv_prog_cc_flag_$cache=no" 16059fi 16060rm -f conftest conftest.o conftest.c 16061 16062fi 16063 16064if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 16065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16066printf "%s\n" "yes" >&6; } 16067: 16068PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS" 16069else 16070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16071printf "%s\n" "no" >&6; } 16072: 16073 16074fi 16075 16076 16077 16078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5 16079printf %s "checking whether $CC supports -Wno-unused-parameter... " >&6; } 16080cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'` 16081if eval test \${cv_prog_cc_flag_$cache+y} 16082then : 16083 printf %s "(cached) " >&6 16084else $as_nop 16085 16086echo 'void f(void){}' >conftest.c 16087if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then 16088eval "cv_prog_cc_flag_$cache=yes" 16089else 16090eval "cv_prog_cc_flag_$cache=no" 16091fi 16092rm -f conftest conftest.o conftest.c 16093 16094fi 16095 16096if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 16097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16098printf "%s\n" "yes" >&6; } 16099: 16100PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS" 16101else 16102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16103printf "%s\n" "no" >&6; } 16104: 16105 16106fi 16107 16108 16109 16110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5 16111printf %s "checking whether $CC supports -Wno-unused-variable... " >&6; } 16112cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'` 16113if eval test \${cv_prog_cc_flag_$cache+y} 16114then : 16115 printf %s "(cached) " >&6 16116else $as_nop 16117 16118echo 'void f(void){}' >conftest.c 16119if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then 16120eval "cv_prog_cc_flag_$cache=yes" 16121else 16122eval "cv_prog_cc_flag_$cache=no" 16123fi 16124rm -f conftest conftest.o conftest.c 16125 16126fi 16127 16128if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 16129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16130printf "%s\n" "yes" >&6; } 16131: 16132PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS" 16133else 16134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16135printf "%s\n" "no" >&6; } 16136: 16137 16138fi 16139 16140 fi 16141fi 16142 16143 16144# Check for pyldnsx 16145 16146# Check whether --with-pyldnsx was given. 16147if test ${with_pyldnsx+y} 16148then : 16149 withval=$with_pyldnsx; 16150else $as_nop 16151 withval="with_pyldns" 16152fi 16153 16154if test x_$withval != x_no; then 16155 if test x_$ldns_with_pyldns != x_no; then 16156 PYLDNSX="pyldnsx" 16157 16158 ldns_with_pyldnsx=yes 16159 else 16160 if test x_$withval != x_with_pyldns; then 16161 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5 16162 fi 16163 fi 16164fi 16165 16166if test x_$ldns_with_pyldns != x_no; then 16167 PYLDNSINST="install-pyldns" 16168 PYLDNSUNINST="uninstall-pyldns" 16169 16170else 16171 PYLDNSINST="" 16172 PYLDNSUNINST="" 16173 16174fi 16175if test x_$ldns_with_pyldnsx != x_no; then 16176 PYLDNSXINST="install-pyldnsx" 16177 PYLDNSXUNINST="uninstall-pyldnsx" 16178 16179else 16180 PYLDNSXINST="" 16181 PYLDNSXUNINST="" 16182 16183fi 16184 16185# check for perl 16186ldns_with_p5_dns_ldns=no 16187 16188# Check whether --with-p5-dns-ldns was given. 16189if test ${with_p5_dns_ldns+y} 16190then : 16191 withval=$with_p5_dns_ldns; 16192else $as_nop 16193 withval="no" 16194fi 16195 16196ldns_have_perl=no 16197if test x_$withval != x_no; then 16198 # Extract the first word of "perl", so it can be a program name with args. 16199set dummy perl; ac_word=$2 16200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16201printf %s "checking for $ac_word... " >&6; } 16202if test ${ac_cv_path_PERL+y} 16203then : 16204 printf %s "(cached) " >&6 16205else $as_nop 16206 case $PERL in 16207 [\\/]* | ?:[\\/]*) 16208 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 16209 ;; 16210 *) 16211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16212for as_dir in $PATH 16213do 16214 IFS=$as_save_IFS 16215 case $as_dir in #((( 16216 '') as_dir=./ ;; 16217 */) ;; 16218 *) as_dir=$as_dir/ ;; 16219 esac 16220 for ac_exec_ext in '' $ac_executable_extensions; do 16221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16222 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 16223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16224 break 2 16225 fi 16226done 16227 done 16228IFS=$as_save_IFS 16229 16230 ;; 16231esac 16232fi 16233PERL=$ac_cv_path_PERL 16234if test -n "$PERL"; then 16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 16236printf "%s\n" "$PERL" >&6; } 16237else 16238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16239printf "%s\n" "no" >&6; } 16240fi 16241 16242 16243 if test -z "$PERL"; then 16244 as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5 16245 fi 16246 P5_DNS_LDNS="p5-dns-ldns" 16247 TEST_P5_DNS_LDNS="test-p5-dns-ldns" 16248 INSTALL_P5_DNS_LDNS="install-p5-dns-ldns" 16249 UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns" 16250 CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns" 16251 16252else 16253 P5_DNS_LDNS="" 16254 TEST_P5_DNS_LDNS="" 16255 INSTALL_P5_DNS_LDNS="" 16256 UNINSTALL_P5_DNS_LDNS="" 16257 CLEAN_P5_DNS_LDNS="" 16258 16259fi 16260 16261# Use libtool 16262 16263# skip these tests, we do not need them. 16264 16265 16266 16267 16268 16269 16270 16271 16272# always use ./libtool unless override from commandline (libtool=mylibtool) 16273if test -z "$libtool"; then 16274 libtool="./libtool" 16275fi 16276 16277# avoid libtool max commandline length test on systems that fork slowly. 16278 16279if echo "$host_os" | grep "sunos4" >/dev/null; then 16280 lt_cv_sys_max_cmd_len=32750; 16281fi 16282if test -n "$ac_tool_prefix"; then 16283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 16284set dummy ${ac_tool_prefix}ar; ac_word=$2 16285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16286printf %s "checking for $ac_word... " >&6; } 16287if test ${ac_cv_path_AR+y} 16288then : 16289 printf %s "(cached) " >&6 16290else $as_nop 16291 case $AR in 16292 [\\/]* | ?:[\\/]*) 16293 ac_cv_path_AR="$AR" # Let the user override the test with a path. 16294 ;; 16295 *) 16296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16297for as_dir in $PATH 16298do 16299 IFS=$as_save_IFS 16300 case $as_dir in #((( 16301 '') as_dir=./ ;; 16302 */) ;; 16303 *) as_dir=$as_dir/ ;; 16304 esac 16305 for ac_exec_ext in '' $ac_executable_extensions; do 16306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16307 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 16308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16309 break 2 16310 fi 16311done 16312 done 16313IFS=$as_save_IFS 16314 16315 ;; 16316esac 16317fi 16318AR=$ac_cv_path_AR 16319if test -n "$AR"; then 16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 16321printf "%s\n" "$AR" >&6; } 16322else 16323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16324printf "%s\n" "no" >&6; } 16325fi 16326 16327 16328fi 16329if test -z "$ac_cv_path_AR"; then 16330 ac_pt_AR=$AR 16331 # Extract the first word of "ar", so it can be a program name with args. 16332set dummy ar; ac_word=$2 16333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16334printf %s "checking for $ac_word... " >&6; } 16335if test ${ac_cv_path_ac_pt_AR+y} 16336then : 16337 printf %s "(cached) " >&6 16338else $as_nop 16339 case $ac_pt_AR in 16340 [\\/]* | ?:[\\/]*) 16341 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 16342 ;; 16343 *) 16344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16345for as_dir in $PATH 16346do 16347 IFS=$as_save_IFS 16348 case $as_dir in #((( 16349 '') as_dir=./ ;; 16350 */) ;; 16351 *) as_dir=$as_dir/ ;; 16352 esac 16353 for ac_exec_ext in '' $ac_executable_extensions; do 16354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16355 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext" 16356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16357 break 2 16358 fi 16359done 16360 done 16361IFS=$as_save_IFS 16362 16363 ;; 16364esac 16365fi 16366ac_pt_AR=$ac_cv_path_ac_pt_AR 16367if test -n "$ac_pt_AR"; then 16368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 16369printf "%s\n" "$ac_pt_AR" >&6; } 16370else 16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16372printf "%s\n" "no" >&6; } 16373fi 16374 16375 if test "x$ac_pt_AR" = x; then 16376 AR="false" 16377 else 16378 case $cross_compiling:$ac_tool_warned in 16379yes:) 16380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16381printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16382ac_tool_warned=yes ;; 16383esac 16384 AR=$ac_pt_AR 16385 fi 16386else 16387 AR="$ac_cv_path_AR" 16388fi 16389 16390if test $AR = false; then 16391 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 16392fi 16393 16394 16395 16396 16397 16398 16399tmp_CPPFLAGS=$CPPFLAGS 16400tmp_LDFLAGS=$LDFLAGS 16401tmp_LIBS=$LIBS 16402 16403 16404 16405# Check whether --with-ssl was given. 16406if test ${with_ssl+y} 16407then : 16408 withval=$with_ssl; 16409 16410else $as_nop 16411 16412 withval="yes" 16413 16414fi 16415 16416 16417 withval=$withval 16418 if test x_$withval != x_no; then 16419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 16420printf %s "checking for SSL... " >&6; } 16421 if test -n "$withval"; then 16422 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then 16423 ssldir="$withval" 16424 found_ssl="yes" 16425 withval="" 16426 ssldir_include="$ssldir" 16427 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'` 16428 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 16429 : # found here 16430 else 16431 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'` 16432 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 16433 : # found here 16434 else 16435 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5 16436 fi 16437 fi 16438 fi 16439 fi 16440 if test x_$withval = x_ -o x_$withval = x_yes; then 16441 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 16442 fi 16443 for dir in $withval; do 16444 ssldir="$dir" 16445 if test -f "$dir/include/openssl/ssl.h"; then 16446 found_ssl="yes" 16447 ssldir_include="$ssldir/include" 16448 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 16449 ssldir_lib="$ssldir/lib64" 16450 else 16451 ssldir_lib="$ssldir/lib" 16452 fi 16453 break; 16454 fi 16455 done 16456 if test x_$found_ssl != x_yes; then 16457 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 16458 else 16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 16460printf "%s\n" "found in $ssldir" >&6; } 16461 16462printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h 16463 16464 HAVE_SSL=yes 16465 if test "$ssldir" != "/usr"; then 16466 CPPFLAGS="$CPPFLAGS -I$ssldir_include" 16467 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include" 16468 LDFLAGS="$LDFLAGS -L$ssldir_lib" 16469 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib" 16470 16471 if test "x$enable_rpath" = xyes; then 16472 if echo "$ssldir_lib" | grep "^/" >/dev/null; then 16473 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib" 16474 fi 16475 fi 16476 16477 fi 16478 16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 16480printf %s "checking for EVP_sha256 in -lcrypto... " >&6; } 16481 LIBS="$LIBS -lcrypto" 16482 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16484/* end confdefs.h. */ 16485 16486int 16487main (void) 16488{ 16489 16490 int EVP_sha256(void); 16491 (void)EVP_sha256(); 16492 16493 ; 16494 return 0; 16495} 16496_ACEOF 16497if ac_fn_c_try_link "$LINENO" 16498then : 16499 16500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16501printf "%s\n" "yes" >&6; } 16502 16503printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16504 16505 16506else $as_nop 16507 16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16509printf "%s\n" "no" >&6; } 16510 # check if -lwsock32 or -lgdi32 are needed. 16511 BAKLIBS="$LIBS" 16512 BAKSSLLIBS="$LIBSSL_LIBS" 16513 LIBS="$LIBS -lgdi32 -lws2_32" 16514 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 16515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 16516printf %s "checking if -lcrypto needs -lgdi32... " >&6; } 16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16518/* end confdefs.h. */ 16519 16520int 16521main (void) 16522{ 16523 16524 int EVP_sha256(void); 16525 (void)EVP_sha256(); 16526 16527 ; 16528 return 0; 16529} 16530_ACEOF 16531if ac_fn_c_try_link "$LINENO" 16532then : 16533 16534 16535printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16536 16537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16538printf "%s\n" "yes" >&6; } 16539 16540else $as_nop 16541 16542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16543printf "%s\n" "no" >&6; } 16544 LIBS="$BAKLIBS" 16545 LIBSSL_LIBS="$BAKSSLLIBS" 16546 16547 LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32" 16548 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32" 16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32" >&5 16550printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32... " >&6; } 16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16552/* end confdefs.h. */ 16553 16554int 16555main (void) 16556{ 16557 16558 int EVP_sha256(void); 16559 (void)EVP_sha256(); 16560 16561 ; 16562 return 0; 16563} 16564_ACEOF 16565if ac_fn_c_try_link "$LINENO" 16566then : 16567 16568 16569printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16570 16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16572printf "%s\n" "yes" >&6; } 16573 16574else $as_nop 16575 16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16577printf "%s\n" "no" >&6; } 16578 LIBS="$BAKLIBS" 16579 LIBSSL_LIBS="$BAKSSLLIBS" 16580 16581 LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" 16582 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" 16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" >&5 16584printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a... " >&6; } 16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586/* end confdefs.h. */ 16587 16588int 16589main (void) 16590{ 16591 16592 int EVP_sha256(void); 16593 (void)EVP_sha256(); 16594 16595 ; 16596 return 0; 16597} 16598_ACEOF 16599if ac_fn_c_try_link "$LINENO" 16600then : 16601 16602 16603printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16604 16605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16606printf "%s\n" "yes" >&6; } 16607 16608else $as_nop 16609 16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16611printf "%s\n" "no" >&6; } 16612 LIBS="$BAKLIBS" 16613 LIBSSL_LIBS="$BAKSSLLIBS" 16614 16615 LIBS="$LIBS -ldl" 16616 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 16618printf %s "checking if -lcrypto needs -ldl... " >&6; } 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621 16622int 16623main (void) 16624{ 16625 16626 int EVP_sha256(void); 16627 (void)EVP_sha256(); 16628 16629 ; 16630 return 0; 16631} 16632_ACEOF 16633if ac_fn_c_try_link "$LINENO" 16634then : 16635 16636 16637printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16638 16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16640printf "%s\n" "yes" >&6; } 16641 16642else $as_nop 16643 16644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16645printf "%s\n" "no" >&6; } 16646 LIBS="$BAKLIBS" 16647 LIBSSL_LIBS="$BAKSSLLIBS" 16648 LIBS="$LIBS -ldl -pthread" 16649 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 16650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 16651printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; } 16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16653/* end confdefs.h. */ 16654 16655int 16656main (void) 16657{ 16658 16659 int EVP_sha256(void); 16660 (void)EVP_sha256(); 16661 16662 ; 16663 return 0; 16664} 16665_ACEOF 16666if ac_fn_c_try_link "$LINENO" 16667then : 16668 16669 16670printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16671 16672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16673printf "%s\n" "yes" >&6; } 16674 16675else $as_nop 16676 16677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16678printf "%s\n" "no" >&6; } 16679 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 16680 16681fi 16682rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16683 conftest$ac_exeext conftest.$ac_ext 16684 16685fi 16686rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16687 conftest$ac_exeext conftest.$ac_ext 16688 16689fi 16690rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16691 conftest$ac_exeext conftest.$ac_ext 16692 16693fi 16694rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16695 conftest$ac_exeext conftest.$ac_ext 16696 16697fi 16698rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16699 conftest$ac_exeext conftest.$ac_ext 16700 16701fi 16702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16703 conftest$ac_exeext conftest.$ac_ext 16704 fi 16705 16706 16707 fi 16708ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 16709" 16710if test "x$ac_cv_header_openssl_ssl_h" = xyes 16711then : 16712 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 16713 16714fi 16715 16716ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 16717" 16718if test "x$ac_cv_header_openssl_err_h" = xyes 16719then : 16720 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 16721 16722fi 16723 16724ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 16725" 16726if test "x$ac_cv_header_openssl_rand_h" = xyes 16727then : 16728 printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h 16729 16730fi 16731 16732 16733 16734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 16735printf %s "checking for LibreSSL... " >&6; } 16736if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 16737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16738printf "%s\n" "yes" >&6; } 16739 16740printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h 16741 16742else 16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16744printf "%s\n" "no" >&6; } 16745fi 16746ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 16747if test "x$ac_cv_header_openssl_ssl_h" = xyes 16748then : 16749 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 16750 16751fi 16752ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" 16753if test "x$ac_cv_header_openssl_evp_h" = xyes 16754then : 16755 printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h 16756 16757fi 16758ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default" 16759if test "x$ac_cv_header_openssl_engine_h" = xyes 16760then : 16761 printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h 16762 16763fi 16764ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default" 16765if test "x$ac_cv_header_openssl_conf_h" = xyes 16766then : 16767 printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h 16768 16769fi 16770 16771ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256" 16772if test "x$ac_cv_func_EVP_sha256" = xyes 16773then : 16774 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 16775 16776fi 16777ac_fn_c_check_func "$LINENO" "EVP_sha384" "ac_cv_func_EVP_sha384" 16778if test "x$ac_cv_func_EVP_sha384" = xyes 16779then : 16780 printf "%s\n" "#define HAVE_EVP_SHA384 1" >>confdefs.h 16781 16782fi 16783ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512" 16784if test "x$ac_cv_func_EVP_sha512" = xyes 16785then : 16786 printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h 16787 16788fi 16789ac_fn_c_check_func "$LINENO" "EVP_PKEY_keygen" "ac_cv_func_EVP_PKEY_keygen" 16790if test "x$ac_cv_func_EVP_PKEY_keygen" = xyes 16791then : 16792 printf "%s\n" "#define HAVE_EVP_PKEY_KEYGEN 1" >>confdefs.h 16793 16794fi 16795ac_fn_c_check_func "$LINENO" "ECDSA_SIG_get0" "ac_cv_func_ECDSA_SIG_get0" 16796if test "x$ac_cv_func_ECDSA_SIG_get0" = xyes 16797then : 16798 printf "%s\n" "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h 16799 16800fi 16801ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new" 16802if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes 16803then : 16804 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h 16805 16806fi 16807ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0" 16808if test "x$ac_cv_func_DSA_SIG_set0" = xyes 16809then : 16810 printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h 16811 16812fi 16813ac_fn_c_check_func "$LINENO" "DSA_SIG_get0" "ac_cv_func_DSA_SIG_get0" 16814if test "x$ac_cv_func_DSA_SIG_get0" = xyes 16815then : 16816 printf "%s\n" "#define HAVE_DSA_SIG_GET0 1" >>confdefs.h 16817 16818fi 16819ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1" 16820if test "x$ac_cv_func_EVP_dss1" = xyes 16821then : 16822 printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h 16823 16824fi 16825ac_fn_c_check_func "$LINENO" "DSA_get0_pqg" "ac_cv_func_DSA_get0_pqg" 16826if test "x$ac_cv_func_DSA_get0_pqg" = xyes 16827then : 16828 printf "%s\n" "#define HAVE_DSA_GET0_PQG 1" >>confdefs.h 16829 16830fi 16831ac_fn_c_check_func "$LINENO" "DSA_get0_key" "ac_cv_func_DSA_get0_key" 16832if test "x$ac_cv_func_DSA_get0_key" = xyes 16833then : 16834 printf "%s\n" "#define HAVE_DSA_GET0_KEY 1" >>confdefs.h 16835 16836fi 16837ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup" 16838if test "x$ac_cv_func_EVP_cleanup" = xyes 16839then : 16840 printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h 16841 16842fi 16843ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup" 16844if test "x$ac_cv_func_ENGINE_cleanup" = xyes 16845then : 16846 printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h 16847 16848fi 16849ac_fn_c_check_func "$LINENO" "ENGINE_free" "ac_cv_func_ENGINE_free" 16850if test "x$ac_cv_func_ENGINE_free" = xyes 16851then : 16852 printf "%s\n" "#define HAVE_ENGINE_FREE 1" >>confdefs.h 16853 16854fi 16855ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data" 16856if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes 16857then : 16858 printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h 16859 16860fi 16861ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings" 16862if test "x$ac_cv_func_ERR_free_strings" = xyes 16863then : 16864 printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h 16865 16866fi 16867ac_fn_c_check_func "$LINENO" "CONF_modules_unload" "ac_cv_func_CONF_modules_unload" 16868if test "x$ac_cv_func_CONF_modules_unload" = xyes 16869then : 16870 printf "%s\n" "#define HAVE_CONF_MODULES_UNLOAD 1" >>confdefs.h 16871 16872fi 16873ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 16874if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 16875then : 16876 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 16877 16878fi 16879ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 16880if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 16881then : 16882 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 16883 16884fi 16885ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings" 16886if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes 16887then : 16888 printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h 16889 16890fi 16891ac_fn_c_check_func "$LINENO" "CRYPTO_memcmp" "ac_cv_func_CRYPTO_memcmp" 16892if test "x$ac_cv_func_CRYPTO_memcmp" = xyes 16893then : 16894 printf "%s\n" "#define HAVE_CRYPTO_MEMCMP 1" >>confdefs.h 16895 16896fi 16897ac_fn_c_check_func "$LINENO" "EVP_PKEY_get_base_id" "ac_cv_func_EVP_PKEY_get_base_id" 16898if test "x$ac_cv_func_EVP_PKEY_get_base_id" = xyes 16899then : 16900 printf "%s\n" "#define HAVE_EVP_PKEY_GET_BASE_ID 1" >>confdefs.h 16901 16902fi 16903 16904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 16905printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 16906if test ${ac_cv_c_undeclared_builtin_options+y} 16907then : 16908 printf %s "(cached) " >&6 16909else $as_nop 16910 ac_save_CFLAGS=$CFLAGS 16911 ac_cv_c_undeclared_builtin_options='cannot detect' 16912 for ac_arg in '' -fno-builtin; do 16913 CFLAGS="$ac_save_CFLAGS $ac_arg" 16914 # This test program should *not* compile successfully. 16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16916/* end confdefs.h. */ 16917 16918int 16919main (void) 16920{ 16921(void) strchr; 16922 ; 16923 return 0; 16924} 16925_ACEOF 16926if ac_fn_c_try_compile "$LINENO" 16927then : 16928 16929else $as_nop 16930 # This test program should compile successfully. 16931 # No library function is consistently available on 16932 # freestanding implementations, so test against a dummy 16933 # declaration. Include always-available headers on the 16934 # off chance that they somehow elicit warnings. 16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16936/* end confdefs.h. */ 16937#include <float.h> 16938#include <limits.h> 16939#include <stdarg.h> 16940#include <stddef.h> 16941extern void ac_decl (int, char *); 16942 16943int 16944main (void) 16945{ 16946(void) ac_decl (0, (char *) 0); 16947 (void) ac_decl; 16948 16949 ; 16950 return 0; 16951} 16952_ACEOF 16953if ac_fn_c_try_compile "$LINENO" 16954then : 16955 if test x"$ac_arg" = x 16956then : 16957 ac_cv_c_undeclared_builtin_options='none needed' 16958else $as_nop 16959 ac_cv_c_undeclared_builtin_options=$ac_arg 16960fi 16961 break 16962fi 16963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16964fi 16965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16966 done 16967 CFLAGS=$ac_save_CFLAGS 16968 16969fi 16970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 16971printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 16972 case $ac_cv_c_undeclared_builtin_options in #( 16973 'cannot detect') : 16974 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16975printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16976as_fn_error $? "cannot make $CC report undeclared builtins 16977See \`config.log' for more details" "$LINENO" 5; } ;; #( 16978 'none needed') : 16979 ac_c_undeclared_builtin_options='' ;; #( 16980 *) : 16981 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 16982esac 16983 16984ac_fn_check_decl "$LINENO" "EVP_PKEY_base_id" "ac_cv_have_decl_EVP_PKEY_base_id" "$ac_includes_default 16985#include <openssl/evp.h> 16986 16987" "$ac_c_undeclared_builtin_options" "CFLAGS" 16988if test "x$ac_cv_have_decl_EVP_PKEY_base_id" = xyes 16989then : 16990 ac_have_decl=1 16991else $as_nop 16992 ac_have_decl=0 16993fi 16994printf "%s\n" "#define HAVE_DECL_EVP_PKEY_BASE_ID $ac_have_decl" >>confdefs.h 16995if test $ac_have_decl = 1 16996then : 16997 16998 16999printf "%s\n" "#define HAVE_EVP_PKEY_BASE_ID 1" >>confdefs.h 17000 17001 17002fi 17003 17004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking for OpenSSL >= 3.0.0" >&5 17005printf %s "checking Checking for OpenSSL >= 3.0.0... " >&6; } 17006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17007/* end confdefs.h. */ 17008 17009#include <openssl/ssl.h> 17010#if OPENSSL_VERSION_MAJOR >= 3 17011#define SOMETHING 17012#else 17013This fails compiling. 17014So either no OpenSSL at all (the include already failed), or the version < 3.0.0 17015#endif 17016 17017int 17018main (void) 17019{ 17020 17021 17022 ; 17023 return 0; 17024} 17025_ACEOF 17026if ac_fn_c_try_compile "$LINENO" 17027then : 17028 17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17030printf "%s\n" "yes" >&6; } 17031 CFLAGS="-DOPENSSL_API_COMPAT=10100 $CFLAGS" 17032 17033else $as_nop 17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17035printf "%s\n" "no" >&6; } 17036 17037fi 17038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17039 17040 17041# for macosx, see if glibtool exists and use that 17042# BSD's need to know the version... 17043#AC_CHECK_PROG(glibtool, glibtool, [glibtool], ) 17044#AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool]) 17045 17046# Check whether --enable-sha2 was given. 17047if test ${enable_sha2+y} 17048then : 17049 enableval=$enable_sha2; 17050fi 17051 17052case "$enable_sha2" in 17053 no) 17054 ;; 17055 yes|*) 17056 if test "x$HAVE_SSL" != "xyes"; then 17057 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5 17058 fi 17059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5 17060printf %s "checking for SHA256 and SHA512... " >&6; } 17061 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init" 17062if test "x$ac_cv_func_SHA256_Init" = xyes 17063then : 17064 17065else $as_nop 17066 17067 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5 17068 17069fi 17070 17071 17072printf "%s\n" "#define USE_SHA2 1" >>confdefs.h 17073 17074 ;; 17075esac 17076 17077# check whether gost also works 17078 17079# Check whether --enable-gost was given. 17080if test ${enable_gost+y} 17081then : 17082 enableval=$enable_gost; 17083fi 17084 17085case "$enable_gost" in 17086 no) 17087 ;; 17088 *) if test "x$HAVE_SSL" != "xyes"; then 17089 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5 17090 fi 17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5 17092printf %s "checking for GOST... " >&6; } 17093 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 17094if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes 17095then : 17096 17097else $as_nop 17098 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5 17099fi 17100 17101 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 17102if test "x$ac_cv_func_EC_KEY_new" = xyes 17103then : 17104 17105else $as_nop 17106 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5 17107fi 17108 17109 17110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 17111printf %s "checking if GOST works... " >&6; } 17112if test c${cross_compiling} = cno; then 17113BAKCFLAGS="$CFLAGS" 17114if test -n "$ssldir"; then 17115 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 17116 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib64" 17117 else 17118 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 17119 fi 17120fi 17121if test "$cross_compiling" = yes 17122then : 17123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17124printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17125as_fn_error $? "cannot run test program while cross compiling 17126See \`config.log' for more details" "$LINENO" 5; } 17127else $as_nop 17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17129/* end confdefs.h. */ 17130 17131#include <string.h> 17132#ifdef HAVE_OPENSSL_SSL_H 17133#include <openssl/ssl.h> 17134#endif 17135#ifdef HAVE_OPENSSL_EVP_H 17136#include <openssl/evp.h> 17137#endif 17138#ifdef HAVE_OPENSSL_ENGINE_H 17139#include <openssl/engine.h> 17140#endif 17141#ifdef HAVE_OPENSSL_CONF_H 17142#include <openssl/conf.h> 17143#endif 17144/* routine to load gost (from sldns) */ 17145int load_gost_id(void) 17146{ 17147 static int gost_id = 0; 17148 const EVP_PKEY_ASN1_METHOD* meth; 17149 ENGINE* e; 17150 17151 if(gost_id) return gost_id; 17152 17153 /* see if configuration loaded gost implementation from other engine*/ 17154 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 17155 if(meth) { 17156 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 17157 return gost_id; 17158 } 17159 17160 /* see if engine can be loaded already */ 17161 e = ENGINE_by_id("gost"); 17162 if(!e) { 17163 /* load it ourself, in case statically linked */ 17164 ENGINE_load_builtin_engines(); 17165 ENGINE_load_dynamic(); 17166 e = ENGINE_by_id("gost"); 17167 } 17168 if(!e) { 17169 /* no gost engine in openssl */ 17170 return 0; 17171 } 17172 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 17173 ENGINE_finish(e); 17174 ENGINE_free(e); 17175 return 0; 17176 } 17177 17178 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 17179 if(!meth) { 17180 /* algo not found */ 17181 ENGINE_finish(e); 17182 ENGINE_free(e); 17183 return 0; 17184 } 17185 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 17186 return gost_id; 17187} 17188int main(void) { 17189 EVP_MD_CTX* ctx; 17190 const EVP_MD* md; 17191 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 17192 const char* str = "Hello world"; 17193 const unsigned char check[] = { 17194 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 17195 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 17196 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 17197 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 17198 }; 17199 OPENSSL_config(NULL); 17200 (void)load_gost_id(); 17201 md = EVP_get_digestbyname("md_gost94"); 17202 if(!md) return 1; 17203 memset(digest, 0, sizeof(digest)); 17204 ctx = EVP_MD_CTX_create(); 17205 if(!ctx) return 2; 17206 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 17207 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 17208 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 17209 /* uncomment to see the hash calculated. 17210 {int i; 17211 for(i=0; i<32; i++) 17212 printf(" %2.2x", (int)digest[i]); 17213 printf("\n");} 17214 */ 17215 if(memcmp(digest, check, sizeof(check)) != 0) 17216 return 6; 17217 return 0; 17218} 17219 17220_ACEOF 17221if ac_fn_c_try_run "$LINENO" 17222then : 17223 eval "ac_cv_c_gost_works=yes" 17224else $as_nop 17225 eval "ac_cv_c_gost_works=no" 17226fi 17227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17228 conftest.$ac_objext conftest.beam conftest.$ac_ext 17229fi 17230 17231CFLAGS="$BAKCFLAGS" 17232else 17233eval "ac_cv_c_gost_works=maybe" 17234fi 17235 17236 # Check whether --enable-gost-anyway was given. 17237if test ${enable_gost_anyway+y} 17238then : 17239 enableval=$enable_gost_anyway; 17240fi 17241 17242 if test "$ac_cv_c_gost_works" != "no" -o "$enable_gost_anyway" = "yes"; then 17243 if test "$ac_cv_c_gost_works" = "no"; then 17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, but compiling with GOST support anyway" >&5 17245printf "%s\n" "no, but compiling with GOST support anyway" >&6; } 17246 else 17247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17248printf "%s\n" "yes" >&6; } 17249 fi 17250 use_gost="yes" 17251 17252printf "%s\n" "#define USE_GOST 1" >>confdefs.h 17253 17254 else 17255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17256printf "%s\n" "no" >&6; } 17257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Gost support does not work because the engine is missing." >&5 17258printf "%s\n" "$as_me: WARNING: Gost support does not work because the engine is missing." >&2;} 17259 { 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 17260printf "%s\n" "$as_me: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&2;} 17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&5 17262printf "%s\n" "$as_me: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&2;} 17263 fi 17264 ;; 17265esac 17266 17267# Check whether --enable-ecdsa was given. 17268if test ${enable_ecdsa+y} 17269then : 17270 enableval=$enable_ecdsa; 17271fi 17272 17273case "$enable_ecdsa" in 17274 no) 17275 ;; 17276 *) if test "x$HAVE_SSL" != "xyes"; then 17277 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5 17278 fi 17279 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 17280if test "x$ac_cv_func_ECDSA_sign" = xyes 17281then : 17282 17283else $as_nop 17284 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 17285fi 17286 17287 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 17288if test "x$ac_cv_func_SHA384_Init" = xyes 17289then : 17290 17291else $as_nop 17292 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 17293fi 17294 17295 ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 17296#include <openssl/evp.h> 17297 17298" "$ac_c_undeclared_builtin_options" "CFLAGS" 17299if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes 17300then : 17301 ac_have_decl=1 17302else $as_nop 17303 ac_have_decl=0 17304fi 17305printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h 17306if test $ac_have_decl = 1 17307then : 17308 17309else $as_nop 17310 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 17311fi 17312ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 17313#include <openssl/evp.h> 17314 17315" "$ac_c_undeclared_builtin_options" "CFLAGS" 17316if test "x$ac_cv_have_decl_NID_secp384r1" = xyes 17317then : 17318 ac_have_decl=1 17319else $as_nop 17320 ac_have_decl=0 17321fi 17322printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h 17323if test $ac_have_decl = 1 17324then : 17325 17326else $as_nop 17327 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 17328fi 17329 17330 # we now know we have ECDSA and the required curves. 17331 17332printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h 17333 17334 ;; 17335esac 17336 17337# Check whether --enable-dsa was given. 17338if test ${enable_dsa+y} 17339then : 17340 enableval=$enable_dsa; 17341fi 17342 17343case "$enable_dsa" in 17344 no) 17345 ldns_build_config_use_dsa=0 17346 17347 ;; 17348 *) # detect if DSA is supported, and turn it off if not. 17349 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 17350if test "x$ac_cv_func_DSA_SIG_new" = xyes 17351then : 17352 17353 17354printf "%s\n" "#define USE_DSA 1" >>confdefs.h 17355 17356 ldns_build_config_use_dsa=1 17357 17358 17359else $as_nop 17360 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 17361 fi 17362 ldns_build_config_use_dsa=0 17363 17364fi 17365 17366 ;; 17367esac 17368 17369# Check whether --enable-ed25519 was given. 17370if test ${enable_ed25519+y} 17371then : 17372 enableval=$enable_ed25519; 17373fi 17374 17375case "$enable_ed25519" in 17376 no) 17377 ldns_build_config_use_ed25519=0 17378 17379 ;; 17380 *) ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 17381#include <openssl/evp.h> 17382 17383" "$ac_c_undeclared_builtin_options" "CFLAGS" 17384if test "x$ac_cv_have_decl_NID_ED25519" = xyes 17385then : 17386 ac_have_decl=1 17387else $as_nop 17388 ac_have_decl=0 17389fi 17390printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h 17391if test $ac_have_decl = 1 17392then : 17393 17394 17395printf "%s\n" "#define USE_ED25519 1" >>confdefs.h 17396 17397 ldns_build_config_use_ed25519=1 17398 17399 17400else $as_nop 17401 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 17402 fi 17403 ldns_build_config_use_ed25519=0 17404 17405fi 17406 17407 ;; 17408esac 17409 17410# Check whether --enable-ed448 was given. 17411if test ${enable_ed448+y} 17412then : 17413 enableval=$enable_ed448; 17414fi 17415 17416case "$enable_ed448" in 17417 no) 17418 ldns_build_config_use_ed448=0 17419 17420 ;; 17421 *) ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 17422#include <openssl/evp.h> 17423 17424" "$ac_c_undeclared_builtin_options" "CFLAGS" 17425if test "x$ac_cv_have_decl_NID_ED448" = xyes 17426then : 17427 ac_have_decl=1 17428else $as_nop 17429 ac_have_decl=0 17430fi 17431printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h 17432if test $ac_have_decl = 1 17433then : 17434 17435 17436printf "%s\n" "#define USE_ED448 1" >>confdefs.h 17437 17438 ldns_build_config_use_ed448=1 17439 17440 17441else $as_nop 17442 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 17443 fi 17444 ldns_build_config_use_ed448=0 17445 17446fi 17447 17448 ;; 17449esac 17450 17451# Check whether --enable-dane was given. 17452if test ${enable_dane+y} 17453then : 17454 enableval=$enable_dane; 17455fi 17456 17457# Check whether --enable-dane-verify was given. 17458if test ${enable_dane_verify+y} 17459then : 17460 enableval=$enable_dane_verify; 17461fi 17462 17463# Check whether --enable-dane-ta-usage was given. 17464if test ${enable_dane_ta_usage+y} 17465then : 17466 enableval=$enable_dane_ta_usage; 17467fi 17468 17469 17470# Check whether --enable-full-dane was given. 17471if test ${enable_full_dane+y} 17472then : 17473 enableval=$enable_full_dane; 17474 enable_dane_ta_usage=yes 17475 enable_dane_verify=yes 17476 enable_dane=yes 17477 17478fi 17479 17480# Check whether --enable-no-dane-ta-usage was given. 17481if test ${enable_no_dane_ta_usage+y} 17482then : 17483 enableval=$enable_no_dane_ta_usage; 17484 enable_dane_ta_usage=no 17485 enable_dane_verify=yes 17486 enable_dane=yes 17487 17488fi 17489 17490# Check whether --enable-no-dane-verify was given. 17491if test ${enable_no_dane_verify+y} 17492then : 17493 enableval=$enable_no_dane_verify; 17494 enable_dane_ta_usage=no 17495 enable_dane_verify=no 17496 enable_dane=yes 17497 17498fi 17499 17500case "$enable_dane" in 17501 no) 17502 ldns_build_config_use_dane=0 17503 17504 ldns_build_config_use_dane_verify=0 17505 17506 ldns_build_config_use_dane_ta_usage=0 17507 17508 ;; 17509 *) if test "x$HAVE_SSL" != "xyes"; then 17510 as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5 17511 fi 17512 ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca" 17513if test "x$ac_cv_func_X509_check_ca" = xyes 17514then : 17515 17516else $as_nop 17517 as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5 17518fi 17519 17520 ldns_build_config_use_dane=1 17521 17522 17523printf "%s\n" "#define USE_DANE 1" >>confdefs.h 17524 17525 case "$enable_dane_verify" in 17526 no) 17527 ldns_build_config_use_dane_verify=0 17528 17529 ldns_build_config_use_dane_ta_usage=0 17530 17531 ;; 17532 *) 17533 ldns_build_config_use_dane_verify=1 17534 17535 17536printf "%s\n" "#define USE_DANE_VERIFY 1" >>confdefs.h 17537 17538 case "$enable_dane_ta_usage" in 17539 no) 17540 ldns_build_config_use_dane_ta_usage=0 17541 17542 ;; 17543 *) danetmpLIBS="$LIBS" 17544 LIBS="-lssl -lcrypto $LIBS" 17545 ac_fn_c_check_func "$LINENO" "SSL_get0_dane" "ac_cv_func_SSL_get0_dane" 17546if test "x$ac_cv_func_SSL_get0_dane" = xyes 17547then : 17548 17549else $as_nop 17550 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 17551fi 17552 17553 LIBSSL_LIBS="-lssl $LIBSSL_LIBS" 17554 LIBS="$danetmpLIBS" 17555 ldns_build_config_use_dane_ta_usage=1 17556 17557 17558printf "%s\n" "#define USE_DANE_TA_USAGE 1" >>confdefs.h 17559 17560 ;; 17561 esac 17562 esac 17563 ;; 17564esac 17565 17566# Check whether --enable-draft-rrtypes was given. 17567if test ${enable_draft_rrtypes+y} 17568then : 17569 enableval=$enable_draft_rrtypes; 17570fi 17571 17572# Check whether --enable-rrtype-ninfo was given. 17573if test ${enable_rrtype_ninfo+y} 17574then : 17575 enableval=$enable_rrtype_ninfo; 17576fi 17577 17578if test "x$enable_draft_rrtypes" = "xyes"; then enable_rrtype_ninfo="yes"; fi 17579case "$enable_rrtype_ninfo" in 17580 yes) 17581 17582printf "%s\n" "#define RRTYPE_NINFO /**/" >>confdefs.h 17583 17584 ;; 17585 no|*) 17586 ;; 17587esac 17588# Check whether --enable-rrtype-rkey was given. 17589if test ${enable_rrtype_rkey+y} 17590then : 17591 enableval=$enable_rrtype_rkey; 17592fi 17593 17594if test "x$enable_draft_rrtypes" = "xyes"; then enable_rrtype_rkey="yes"; fi 17595case "$enable_rrtype_rkey" in 17596 yes) 17597 17598printf "%s\n" "#define RRTYPE_RKEY /**/" >>confdefs.h 17599 17600 ;; 17601 no|*) 17602 ;; 17603esac 17604# Check whether --enable-rrtype-openpgpkey was given. 17605if test ${enable_rrtype_openpgpkey+y} 17606then : 17607 enableval=$enable_rrtype_openpgpkey; 17608fi 17609 17610case "$enable_rrtype_openpgpkey" in 17611 no) 17612 ;; 17613 yes|*) 17614 17615printf "%s\n" "#define RRTYPE_OPENPGPKEY /**/" >>confdefs.h 17616 17617 ;; 17618esac 17619# Check whether --enable-rrtype-ta was given. 17620if test ${enable_rrtype_ta+y} 17621then : 17622 enableval=$enable_rrtype_ta; 17623fi 17624 17625if test "x$enable_draft_rrtypes" = "xyes"; then enable_rrtype_ta="yes"; fi 17626case "$enable_rrtype_ta" in 17627 yes) 17628 17629printf "%s\n" "#define RRTYPE_TA /**/" >>confdefs.h 17630 17631 ;; 17632 no|*) 17633 ;; 17634esac 17635# Check whether --enable-rrtype-avc was given. 17636if test ${enable_rrtype_avc+y} 17637then : 17638 enableval=$enable_rrtype_avc; 17639fi 17640 17641if test "x$enable_draft_rrtypes" = "xyes"; then enable_rrtype_avc="yes"; fi 17642case "$enable_rrtype_avc" in 17643 yes) 17644 17645printf "%s\n" "#define RRTYPE_AVC /**/" >>confdefs.h 17646 17647 ;; 17648 no|*) 17649 ;; 17650esac 17651# Check whether --enable-rrtype-doa was given. 17652if test ${enable_rrtype_doa+y} 17653then : 17654 enableval=$enable_rrtype_doa; 17655fi 17656 17657if test "x$enable_draft_rrtypes" = "xyes"; then enable_rrtype_doa="yes"; fi 17658case "$enable_rrtype_doa" in 17659 yes) 17660 17661printf "%s\n" "#define RRTYPE_DOA /**/" >>confdefs.h 17662 17663 ;; 17664 no|*) 17665 ;; 17666esac 17667# Check whether --enable-rrtype-amtrelay was given. 17668if test ${enable_rrtype_amtrelay+y} 17669then : 17670 enableval=$enable_rrtype_amtrelay; 17671fi 17672 17673case "$enable_rrtype_amtrelay" in 17674 no) 17675 ;; 17676 yes|*) 17677 17678printf "%s\n" "#define RRTYPE_AMTRELAY /**/" >>confdefs.h 17679 17680 ;; 17681esac 17682# Check whether --enable-rrtype-svcb-https was given. 17683if test ${enable_rrtype_svcb_https+y} 17684then : 17685 enableval=$enable_rrtype_svcb_https; 17686fi 17687 17688case "$enable_rrtype_svcb_https" in 17689 no) 17690 ;; 17691 yes|*) 17692 17693printf "%s\n" "#define RRTYPE_SVCB_HTTPS /**/" >>confdefs.h 17694 17695 ;; 17696esac 17697# Check whether --enable-rrtype-resinfo was given. 17698if test ${enable_rrtype_resinfo+y} 17699then : 17700 enableval=$enable_rrtype_resinfo; 17701fi 17702 17703case "$enable_rrtype_resinfo" in 17704 no) 17705 ;; 17706 yes|*) 17707 17708printf "%s\n" "#define RRTYPE_RESINFO /**/" >>confdefs.h 17709 17710 ;; 17711esac 17712# Check whether --enable-rrtype-dsync was given. 17713if test ${enable_rrtype_dsync+y} 17714then : 17715 enableval=$enable_rrtype_dsync; 17716fi 17717 17718case "$enable_rrtype_dsync" in 17719 no) 17720 ;; 17721 yes|*) 17722 17723printf "%s\n" "#define RRTYPE_DSYNC /**/" >>confdefs.h 17724 17725 ;; 17726esac 17727# Check whether --enable-rrtypes-cla-ipn was given. 17728if test ${enable_rrtypes_cla_ipn+y} 17729then : 17730 enableval=$enable_rrtypes_cla_ipn; 17731fi 17732 17733if test "x$enable_draft_rrtypes" = "xyes"; then enable_rrtypes_cla_ipn="yes"; fi 17734case "$enable_rrtypes_cla_ipn" in 17735 yes) 17736 17737printf "%s\n" "#define RRTYPE_CLA_IPN /**/" >>confdefs.h 17738 17739 ;; 17740 no|*) 17741 ;; 17742esac 17743# Check whether --enable-rrtypes-hhit-brid was given. 17744if test ${enable_rrtypes_hhit_brid+y} 17745then : 17746 enableval=$enable_rrtypes_hhit_brid; 17747fi 17748 17749if test "x$enable_draft_rrtypes" = "xyes"; then enable_rrtypes_hhit_brid="yes"; fi 17750case "$enable_rrtypes_hhit_brid" in 17751 yes) 17752 17753printf "%s\n" "#define RRTYPE_HHIT_BRID /**/" >>confdefs.h 17754 17755 ;; 17756 no|*) 17757 ;; 17758esac 17759 17760 17761if echo "$tmp_LIBS" | grep "ws2_32" >/dev/null; then 17762 if echo "$LIBSSL_LIBS" | grep "ws2_32" >/dev/null; then 17763 # only need it once. 17764 LIBSSL_LIBS=`echo "$LIBSSL_LIBS" | sed -e 's/ -lws2_32//' -e 's/^-lws2_32//'` 17765 fi 17766fi 17767 17768 17769 17770 17771if test "x$HAVE_SSL" = "xyes"; then 17772 if echo "$LIBSSL_LIBS" | grep -- "-lssl" >/dev/null 2>&1; then 17773 LIBSSL_SSL_LIBS="$LIBSSL_LIBS" 17774 else 17775 LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS" 17776 fi 17777 LIBSSL_SSL_LIBS="$LIBSSL_SSL_LIBS" 17778 17779fi 17780CPPFLAGS=$tmp_CPPFLAGS 17781LDFLAGS=$tmp_LDFLAGS 17782LIBS=$tmp_LIBS 17783 17784 17785# add option to disable the evil rpath 17786 17787# Check whether --enable-rpath was given. 17788if test ${enable_rpath+y} 17789then : 17790 enableval=$enable_rpath; enable_rpath=$enableval 17791else $as_nop 17792 enable_rpath=yes 17793fi 17794 17795if test "x$enable_rpath" = xno; then 17796 ac_config_commands="$ac_config_commands disable-rpath" 17797 17798fi 17799 17800 17801#AC_RUN_IFELSE([AC_LANG_SOURCE( 17802#[ 17803#int main() 17804#{ 17805#short one = 1; 17806#char *cp = (char*)&one; 17807#if ( *cp == 0 ) 17808#return(0); 17809#else 17810#return(1); 17811#} 17812#])], [],[ 17813#AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian]) 17814#],[]) 17815 17816# should define WORDS_BIGENDIAN if the system is big-endian 17817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17818printf %s "checking whether byte ordering is bigendian... " >&6; } 17819if test ${ac_cv_c_bigendian+y} 17820then : 17821 printf %s "(cached) " >&6 17822else $as_nop 17823 ac_cv_c_bigendian=unknown 17824 # See if we're dealing with a universal compiler. 17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17826/* end confdefs.h. */ 17827#ifndef __APPLE_CC__ 17828 not a universal capable compiler 17829 #endif 17830 typedef int dummy; 17831 17832_ACEOF 17833if ac_fn_c_try_compile "$LINENO" 17834then : 17835 17836 # Check for potential -arch flags. It is not universal unless 17837 # there are at least two -arch flags with different values. 17838 ac_arch= 17839 ac_prev= 17840 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17841 if test -n "$ac_prev"; then 17842 case $ac_word in 17843 i?86 | x86_64 | ppc | ppc64) 17844 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17845 ac_arch=$ac_word 17846 else 17847 ac_cv_c_bigendian=universal 17848 break 17849 fi 17850 ;; 17851 esac 17852 ac_prev= 17853 elif test "x$ac_word" = "x-arch"; then 17854 ac_prev=arch 17855 fi 17856 done 17857fi 17858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17859 if test $ac_cv_c_bigendian = unknown; then 17860 # See if sys/param.h defines the BYTE_ORDER macro. 17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17862/* end confdefs.h. */ 17863#include <sys/types.h> 17864 #include <sys/param.h> 17865 17866int 17867main (void) 17868{ 17869#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17870 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17871 && LITTLE_ENDIAN) 17872 bogus endian macros 17873 #endif 17874 17875 ; 17876 return 0; 17877} 17878_ACEOF 17879if ac_fn_c_try_compile "$LINENO" 17880then : 17881 # It does; now see whether it defined to BIG_ENDIAN or not. 17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17883/* end confdefs.h. */ 17884#include <sys/types.h> 17885 #include <sys/param.h> 17886 17887int 17888main (void) 17889{ 17890#if BYTE_ORDER != BIG_ENDIAN 17891 not big endian 17892 #endif 17893 17894 ; 17895 return 0; 17896} 17897_ACEOF 17898if ac_fn_c_try_compile "$LINENO" 17899then : 17900 ac_cv_c_bigendian=yes 17901else $as_nop 17902 ac_cv_c_bigendian=no 17903fi 17904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17905fi 17906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17907 fi 17908 if test $ac_cv_c_bigendian = unknown; then 17909 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17911/* end confdefs.h. */ 17912#include <limits.h> 17913 17914int 17915main (void) 17916{ 17917#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17918 bogus endian macros 17919 #endif 17920 17921 ; 17922 return 0; 17923} 17924_ACEOF 17925if ac_fn_c_try_compile "$LINENO" 17926then : 17927 # It does; now see whether it defined to _BIG_ENDIAN or not. 17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17929/* end confdefs.h. */ 17930#include <limits.h> 17931 17932int 17933main (void) 17934{ 17935#ifndef _BIG_ENDIAN 17936 not big endian 17937 #endif 17938 17939 ; 17940 return 0; 17941} 17942_ACEOF 17943if ac_fn_c_try_compile "$LINENO" 17944then : 17945 ac_cv_c_bigendian=yes 17946else $as_nop 17947 ac_cv_c_bigendian=no 17948fi 17949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17950fi 17951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17952 fi 17953 if test $ac_cv_c_bigendian = unknown; then 17954 # Compile a test program. 17955 if test "$cross_compiling" = yes 17956then : 17957 # Try to guess by grepping values from an object file. 17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17959/* end confdefs.h. */ 17960unsigned short int ascii_mm[] = 17961 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17962 unsigned short int ascii_ii[] = 17963 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17964 int use_ascii (int i) { 17965 return ascii_mm[i] + ascii_ii[i]; 17966 } 17967 unsigned short int ebcdic_ii[] = 17968 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17969 unsigned short int ebcdic_mm[] = 17970 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17971 int use_ebcdic (int i) { 17972 return ebcdic_mm[i] + ebcdic_ii[i]; 17973 } 17974 extern int foo; 17975 17976int 17977main (void) 17978{ 17979return use_ascii (foo) == use_ebcdic (foo); 17980 ; 17981 return 0; 17982} 17983_ACEOF 17984if ac_fn_c_try_compile "$LINENO" 17985then : 17986 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17987 ac_cv_c_bigendian=yes 17988 fi 17989 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17990 if test "$ac_cv_c_bigendian" = unknown; then 17991 ac_cv_c_bigendian=no 17992 else 17993 # finding both strings is unlikely to happen, but who knows? 17994 ac_cv_c_bigendian=unknown 17995 fi 17996 fi 17997fi 17998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17999else $as_nop 18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18001/* end confdefs.h. */ 18002$ac_includes_default 18003int 18004main (void) 18005{ 18006 18007 /* Are we little or big endian? From Harbison&Steele. */ 18008 union 18009 { 18010 long int l; 18011 char c[sizeof (long int)]; 18012 } u; 18013 u.l = 1; 18014 return u.c[sizeof (long int) - 1] == 1; 18015 18016 ; 18017 return 0; 18018} 18019_ACEOF 18020if ac_fn_c_try_run "$LINENO" 18021then : 18022 ac_cv_c_bigendian=no 18023else $as_nop 18024 ac_cv_c_bigendian=yes 18025fi 18026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18027 conftest.$ac_objext conftest.beam conftest.$ac_ext 18028fi 18029 18030 fi 18031fi 18032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 18033printf "%s\n" "$ac_cv_c_bigendian" >&6; } 18034 case $ac_cv_c_bigendian in #( 18035 yes) 18036 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 18037;; #( 18038 no) 18039 ;; #( 18040 universal) 18041 18042printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 18043 18044 ;; #( 18045 *) 18046 as_fn_error $? "unknown endianness 18047 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 18048 esac 18049 18050 18051# Checks for header files. 18052# Autoupdate added the next two lines to ensure that your configure 18053# script's behavior did not change. They are probably safe to remove. 18054 18055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 18056printf %s "checking for egrep... " >&6; } 18057if test ${ac_cv_path_EGREP+y} 18058then : 18059 printf %s "(cached) " >&6 18060else $as_nop 18061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 18062 then ac_cv_path_EGREP="$GREP -E" 18063 else 18064 if test -z "$EGREP"; then 18065 ac_path_EGREP_found=false 18066 # Loop through the user's path and test for each of PROGNAME-LIST 18067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18068for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 18069do 18070 IFS=$as_save_IFS 18071 case $as_dir in #((( 18072 '') as_dir=./ ;; 18073 */) ;; 18074 *) as_dir=$as_dir/ ;; 18075 esac 18076 for ac_prog in egrep 18077 do 18078 for ac_exec_ext in '' $ac_executable_extensions; do 18079 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 18080 as_fn_executable_p "$ac_path_EGREP" || continue 18081# Check for GNU ac_path_EGREP and select it if it is found. 18082 # Check for GNU $ac_path_EGREP 18083case `"$ac_path_EGREP" --version 2>&1` in 18084*GNU*) 18085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 18086*) 18087 ac_count=0 18088 printf %s 0123456789 >"conftest.in" 18089 while : 18090 do 18091 cat "conftest.in" "conftest.in" >"conftest.tmp" 18092 mv "conftest.tmp" "conftest.in" 18093 cp "conftest.in" "conftest.nl" 18094 printf "%s\n" 'EGREP' >> "conftest.nl" 18095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 18096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 18097 as_fn_arith $ac_count + 1 && ac_count=$as_val 18098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 18099 # Best one so far, save it but keep looking for a better one 18100 ac_cv_path_EGREP="$ac_path_EGREP" 18101 ac_path_EGREP_max=$ac_count 18102 fi 18103 # 10*(2^10) chars as input seems more than enough 18104 test $ac_count -gt 10 && break 18105 done 18106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 18107esac 18108 18109 $ac_path_EGREP_found && break 3 18110 done 18111 done 18112 done 18113IFS=$as_save_IFS 18114 if test -z "$ac_cv_path_EGREP"; then 18115 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 18116 fi 18117else 18118 ac_cv_path_EGREP=$EGREP 18119fi 18120 18121 fi 18122fi 18123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 18124printf "%s\n" "$ac_cv_path_EGREP" >&6; } 18125 EGREP="$ac_cv_path_EGREP" 18126 18127 18128 18129ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 18130if test "x$ac_cv_type__Bool" = xyes 18131then : 18132 18133printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h 18134 18135 18136fi 18137 18138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 18139printf %s "checking for stdbool.h that conforms to C99... " >&6; } 18140if test ${ac_cv_header_stdbool_h+y} 18141then : 18142 printf %s "(cached) " >&6 18143else $as_nop 18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18145/* end confdefs.h. */ 18146#include <stdbool.h> 18147 18148 #ifndef __bool_true_false_are_defined 18149 #error "__bool_true_false_are_defined is not defined" 18150 #endif 18151 char a[__bool_true_false_are_defined == 1 ? 1 : -1]; 18152 18153 /* Regardless of whether this is C++ or "_Bool" is a 18154 valid type name, "true" and "false" should be usable 18155 in #if expressions and integer constant expressions, 18156 and "bool" should be a valid type name. */ 18157 18158 #if !true 18159 #error "'true' is not true" 18160 #endif 18161 #if true != 1 18162 #error "'true' is not equal to 1" 18163 #endif 18164 char b[true == 1 ? 1 : -1]; 18165 char c[true]; 18166 18167 #if false 18168 #error "'false' is not false" 18169 #endif 18170 #if false != 0 18171 #error "'false' is not equal to 0" 18172 #endif 18173 char d[false == 0 ? 1 : -1]; 18174 18175 enum { e = false, f = true, g = false * true, h = true * 256 }; 18176 18177 char i[(bool) 0.5 == true ? 1 : -1]; 18178 char j[(bool) 0.0 == false ? 1 : -1]; 18179 char k[sizeof (bool) > 0 ? 1 : -1]; 18180 18181 struct sb { bool s: 1; bool t; } s; 18182 char l[sizeof s.t > 0 ? 1 : -1]; 18183 18184 /* The following fails for 18185 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 18186 bool m[h]; 18187 char n[sizeof m == h * sizeof m[0] ? 1 : -1]; 18188 char o[-1 - (bool) 0 < 0 ? 1 : -1]; 18189 /* Catch a bug in an HP-UX C compiler. See 18190 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 18191 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 18192 */ 18193 bool p = true; 18194 bool *pp = &p; 18195 18196 /* C 1999 specifies that bool, true, and false are to be 18197 macros, but C++ 2011 and later overrule this. */ 18198 #if __cplusplus < 201103 18199 #ifndef bool 18200 #error "bool is not defined" 18201 #endif 18202 #ifndef false 18203 #error "false is not defined" 18204 #endif 18205 #ifndef true 18206 #error "true is not defined" 18207 #endif 18208 #endif 18209 18210 /* If _Bool is available, repeat with it all the tests 18211 above that used bool. */ 18212 #ifdef HAVE__BOOL 18213 struct sB { _Bool s: 1; _Bool t; } t; 18214 18215 char q[(_Bool) 0.5 == true ? 1 : -1]; 18216 char r[(_Bool) 0.0 == false ? 1 : -1]; 18217 char u[sizeof (_Bool) > 0 ? 1 : -1]; 18218 char v[sizeof t.t > 0 ? 1 : -1]; 18219 18220 _Bool w[h]; 18221 char x[sizeof m == h * sizeof m[0] ? 1 : -1]; 18222 char y[-1 - (_Bool) 0 < 0 ? 1 : -1]; 18223 _Bool z = true; 18224 _Bool *pz = &p; 18225 #endif 18226 18227int 18228main (void) 18229{ 18230 18231 bool ps = &s; 18232 *pp |= p; 18233 *pp |= ! p; 18234 18235 #ifdef HAVE__BOOL 18236 _Bool pt = &t; 18237 *pz |= z; 18238 *pz |= ! z; 18239 #endif 18240 18241 /* Refer to every declared value, so they cannot be 18242 discarded as unused. */ 18243 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k 18244 + !l + !m + !n + !o + !p + !pp + !ps 18245 #ifdef HAVE__BOOL 18246 + !q + !r + !u + !v + !w + !x + !y + !z + !pt 18247 #endif 18248 ); 18249 18250 ; 18251 return 0; 18252} 18253_ACEOF 18254if ac_fn_c_try_compile "$LINENO" 18255then : 18256 ac_cv_header_stdbool_h=yes 18257else $as_nop 18258 ac_cv_header_stdbool_h=no 18259fi 18260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18261fi 18262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 18263printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } 18264 18265if test $ac_cv_header_stdbool_h = yes; then 18266 18267printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 18268 18269fi 18270 18271#AC_HEADER_SYS_WAIT 18272#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h]) 18273# do the very minimum - we can always extend this 18274ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 18275" 18276if test "x$ac_cv_header_getopt_h" = xyes 18277then : 18278 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 18279 18280fi 18281ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default 18282" 18283if test "x$ac_cv_header_stdarg_h" = xyes 18284then : 18285 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 18286 18287fi 18288ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 18289" 18290if test "x$ac_cv_header_openssl_ssl_h" = xyes 18291then : 18292 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 18293 18294fi 18295ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default 18296" 18297if test "x$ac_cv_header_netinet_in_h" = xyes 18298then : 18299 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 18300 18301fi 18302ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 18303" 18304if test "x$ac_cv_header_time_h" = xyes 18305then : 18306 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 18307 18308fi 18309ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default 18310" 18311if test "x$ac_cv_header_arpa_inet_h" = xyes 18312then : 18313 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 18314 18315fi 18316ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 18317" 18318if test "x$ac_cv_header_netdb_h" = xyes 18319then : 18320 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 18321 18322fi 18323 18324ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default 18325 18326 #if HAVE_SYS_PARAM_H 18327 # include <sys/param.h> 18328 #endif 18329 18330 18331" 18332if test "x$ac_cv_header_sys_param_h" = xyes 18333then : 18334 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 18335 18336fi 18337ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default 18338 18339 #if HAVE_SYS_PARAM_H 18340 # include <sys/param.h> 18341 #endif 18342 18343 18344" 18345if test "x$ac_cv_header_sys_mount_h" = xyes 18346then : 18347 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h 18348 18349fi 18350 18351ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 18352 18353 #if HAVE_SYS_PARAM_H 18354 # include <sys/param.h> 18355 #endif 18356 18357 18358" 18359if test "x$ac_cv_header_sys_socket_h" = xyes 18360then : 18361 18362include_sys_socket_h='#include <sys/socket.h>' 18363 18364printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 18365 18366 18367else $as_nop 18368 18369include_sys_socket_h='' 18370 18371fi 18372 18373 18374ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default 18375 18376" 18377if test "x$ac_cv_header_inttypes_h" = xyes 18378then : 18379 18380include_inttypes_h='#include <inttypes.h>' 18381 18382printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 18383 18384ldns_build_config_have_inttypes_h=1 18385 18386 18387else $as_nop 18388 18389include_inttypes_h='' 18390ldns_build_config_have_inttypes_h=0 18391 18392 18393fi 18394 18395 18396ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default 18397 18398" 18399if test "x$ac_cv_header_sys_types_h" = xyes 18400then : 18401 18402include_systypes_h='#include <sys/types.h>' 18403 18404printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 18405 18406 18407else $as_nop 18408 18409include_systypes_h='' 18410 18411fi 18412 18413 18414ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 18415 18416" 18417if test "x$ac_cv_header_unistd_h" = xyes 18418then : 18419 18420include_unistd_h='#include <unistd.h>' 18421 18422printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 18423 18424 18425else $as_nop 18426 18427include_unistd_h='' 18428 18429fi 18430 18431 18432 18433# The cast to long int works around a bug in the HP C Compiler 18434# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18435# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18436# This bug is HP SR number 8606223364. 18437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 18438printf %s "checking size of time_t... " >&6; } 18439if test ${ac_cv_sizeof_time_t+y} 18440then : 18441 printf %s "(cached) " >&6 18442else $as_nop 18443 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 18444$ac_includes_default 18445#ifdef TIME_WITH_SYS_TIME 18446# include <sys/time.h> 18447# include <time.h> 18448#else 18449# ifdef HAVE_SYS_TIME_H 18450# include <sys/time.h> 18451# else 18452# include <time.h> 18453# endif 18454#endif 18455 18456" 18457then : 18458 18459else $as_nop 18460 if test "$ac_cv_type_time_t" = yes; then 18461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18462printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18463as_fn_error 77 "cannot compute sizeof (time_t) 18464See \`config.log' for more details" "$LINENO" 5; } 18465 else 18466 ac_cv_sizeof_time_t=0 18467 fi 18468fi 18469 18470fi 18471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 18472printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 18473 18474 18475 18476printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 18477 18478 18479 18480if test x_$with_examples != x_no; then 18481ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default 18482" 18483if test "x$ac_cv_header_pcap_h" = xyes 18484then : 18485 printf "%s\n" "#define HAVE_PCAP_H 1" >>confdefs.h 18486 18487fi 18488 18489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5 18490printf %s "checking for pcap_open_offline in -lpcap... " >&6; } 18491if test ${ac_cv_lib_pcap_pcap_open_offline+y} 18492then : 18493 printf %s "(cached) " >&6 18494else $as_nop 18495 ac_check_lib_save_LIBS=$LIBS 18496LIBS="-lpcap $LIBS" 18497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18498/* end confdefs.h. */ 18499 18500/* Override any GCC internal prototype to avoid an error. 18501 Use char because int might match the return type of a GCC 18502 builtin and then its argument prototype would still apply. */ 18503char pcap_open_offline (); 18504int 18505main (void) 18506{ 18507return pcap_open_offline (); 18508 ; 18509 return 0; 18510} 18511_ACEOF 18512if ac_fn_c_try_link "$LINENO" 18513then : 18514 ac_cv_lib_pcap_pcap_open_offline=yes 18515else $as_nop 18516 ac_cv_lib_pcap_pcap_open_offline=no 18517fi 18518rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18519 conftest$ac_exeext conftest.$ac_ext 18520LIBS=$ac_check_lib_save_LIBS 18521fi 18522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5 18523printf "%s\n" "$ac_cv_lib_pcap_pcap_open_offline" >&6; } 18524if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes 18525then : 18526 18527 18528printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h 18529 LIBPCAP_LIBS=-lpcap 18530 18531 18532else $as_nop 18533 18534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5 18535printf "%s\n" "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;} 18536 18537 18538fi 18539 18540ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" " 18541$ac_includes_default 18542#ifdef HAVE_NETINET_IN_SYSTM_H 18543#include <netinet/in_systm.h> 18544#endif 18545#ifdef HAVE_NETINET_IN_H 18546#include <netinet/in.h> 18547#endif 18548#ifdef HAVE_SYS_SOCKET_H 18549#include <sys/socket.h> 18550#endif 18551#ifdef HAVE_NET_IF_H 18552#include <net/if.h> 18553#endif 18554" 18555if test "x$ac_cv_header_netinet_in_systm_h" = xyes 18556then : 18557 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h 18558 18559fi 18560ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 18561$ac_includes_default 18562#ifdef HAVE_NETINET_IN_SYSTM_H 18563#include <netinet/in_systm.h> 18564#endif 18565#ifdef HAVE_NETINET_IN_H 18566#include <netinet/in.h> 18567#endif 18568#ifdef HAVE_SYS_SOCKET_H 18569#include <sys/socket.h> 18570#endif 18571#ifdef HAVE_NET_IF_H 18572#include <net/if.h> 18573#endif 18574" 18575if test "x$ac_cv_header_net_if_h" = xyes 18576then : 18577 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 18578 18579fi 18580ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" " 18581$ac_includes_default 18582#ifdef HAVE_NETINET_IN_SYSTM_H 18583#include <netinet/in_systm.h> 18584#endif 18585#ifdef HAVE_NETINET_IN_H 18586#include <netinet/in.h> 18587#endif 18588#ifdef HAVE_SYS_SOCKET_H 18589#include <sys/socket.h> 18590#endif 18591#ifdef HAVE_NET_IF_H 18592#include <net/if.h> 18593#endif 18594" 18595if test "x$ac_cv_header_netinet_ip_h" = xyes 18596then : 18597 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h 18598 18599fi 18600ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" " 18601$ac_includes_default 18602#ifdef HAVE_NETINET_IN_SYSTM_H 18603#include <netinet/in_systm.h> 18604#endif 18605#ifdef HAVE_NETINET_IN_H 18606#include <netinet/in.h> 18607#endif 18608#ifdef HAVE_SYS_SOCKET_H 18609#include <sys/socket.h> 18610#endif 18611#ifdef HAVE_NET_IF_H 18612#include <net/if.h> 18613#endif 18614" 18615if test "x$ac_cv_header_netinet_udp_h" = xyes 18616then : 18617 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h 18618 18619fi 18620ac_fn_c_check_header_compile "$LINENO" "netinet/igmp.h" "ac_cv_header_netinet_igmp_h" " 18621$ac_includes_default 18622#ifdef HAVE_NETINET_IN_SYSTM_H 18623#include <netinet/in_systm.h> 18624#endif 18625#ifdef HAVE_NETINET_IN_H 18626#include <netinet/in.h> 18627#endif 18628#ifdef HAVE_SYS_SOCKET_H 18629#include <sys/socket.h> 18630#endif 18631#ifdef HAVE_NET_IF_H 18632#include <net/if.h> 18633#endif 18634" 18635if test "x$ac_cv_header_netinet_igmp_h" = xyes 18636then : 18637 printf "%s\n" "#define HAVE_NETINET_IGMP_H 1" >>confdefs.h 18638 18639fi 18640ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" " 18641$ac_includes_default 18642#ifdef HAVE_NETINET_IN_SYSTM_H 18643#include <netinet/in_systm.h> 18644#endif 18645#ifdef HAVE_NETINET_IN_H 18646#include <netinet/in.h> 18647#endif 18648#ifdef HAVE_SYS_SOCKET_H 18649#include <sys/socket.h> 18650#endif 18651#ifdef HAVE_NET_IF_H 18652#include <net/if.h> 18653#endif 18654" 18655if test "x$ac_cv_header_netinet_if_ether_h" = xyes 18656then : 18657 printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h 18658 18659fi 18660ac_fn_c_check_header_compile "$LINENO" "netinet/ip6.h" "ac_cv_header_netinet_ip6_h" " 18661$ac_includes_default 18662#ifdef HAVE_NETINET_IN_SYSTM_H 18663#include <netinet/in_systm.h> 18664#endif 18665#ifdef HAVE_NETINET_IN_H 18666#include <netinet/in.h> 18667#endif 18668#ifdef HAVE_SYS_SOCKET_H 18669#include <sys/socket.h> 18670#endif 18671#ifdef HAVE_NET_IF_H 18672#include <net/if.h> 18673#endif 18674" 18675if test "x$ac_cv_header_netinet_ip6_h" = xyes 18676then : 18677 printf "%s\n" "#define HAVE_NETINET_IP6_H 1" >>confdefs.h 18678 18679fi 18680ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" " 18681$ac_includes_default 18682#ifdef HAVE_NETINET_IN_SYSTM_H 18683#include <netinet/in_systm.h> 18684#endif 18685#ifdef HAVE_NETINET_IN_H 18686#include <netinet/in.h> 18687#endif 18688#ifdef HAVE_SYS_SOCKET_H 18689#include <sys/socket.h> 18690#endif 18691#ifdef HAVE_NET_IF_H 18692#include <net/if.h> 18693#endif 18694" 18695if test "x$ac_cv_header_net_ethernet_h" = xyes 18696then : 18697 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h 18698 18699fi 18700ac_fn_c_check_header_compile "$LINENO" "netinet/ip_compat.h" "ac_cv_header_netinet_ip_compat_h" " 18701$ac_includes_default 18702#ifdef HAVE_NETINET_IN_SYSTM_H 18703#include <netinet/in_systm.h> 18704#endif 18705#ifdef HAVE_NETINET_IN_H 18706#include <netinet/in.h> 18707#endif 18708#ifdef HAVE_SYS_SOCKET_H 18709#include <sys/socket.h> 18710#endif 18711#ifdef HAVE_NET_IF_H 18712#include <net/if.h> 18713#endif 18714" 18715if test "x$ac_cv_header_netinet_ip_compat_h" = xyes 18716then : 18717 printf "%s\n" "#define HAVE_NETINET_IP_COMPAT_H 1" >>confdefs.h 18718 18719fi 18720 18721fi 18722 18723 18724ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18725$ac_includes_default 18726#ifdef HAVE_SYS_SOCKET_H 18727# include <sys/socket.h> 18728#endif 18729#ifdef HAVE_WS2TCPIP_H 18730# include <ws2tcpip.h> 18731#endif 18732 18733" 18734if test "x$ac_cv_type_socklen_t" = xyes 18735then : 18736 18737else $as_nop 18738 18739printf "%s\n" "#define socklen_t int" >>confdefs.h 18740 18741fi 18742 18743if test "x$ac_cv_type_socklen_t" = xyes; then 18744 ldns_build_config_have_socklen_t=1 18745 18746else 18747 ldns_build_config_have_socklen_t=0 18748 18749fi 18750ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18751if test "x$ac_cv_type_size_t" = xyes 18752then : 18753 18754else $as_nop 18755 18756printf "%s\n" "#define size_t unsigned int" >>confdefs.h 18757 18758fi 18759 18760ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 18761if test "x$ac_cv_type_ssize_t" = xyes 18762then : 18763 18764else $as_nop 18765 18766printf "%s\n" "#define ssize_t int" >>confdefs.h 18767 18768fi 18769 18770ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 18771if test "x$ac_cv_type_intptr_t" = xyes 18772then : 18773 18774else $as_nop 18775 18776printf "%s\n" "#define intptr_t size_t" >>confdefs.h 18777 18778fi 18779 18780ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 18781#if HAVE_SYS_TYPES_H 18782# include <sys/types.h> 18783#endif 18784#if HAVE_NETINET_IN_H 18785# include <netinet/in.h> 18786#endif 18787" 18788if test "x$ac_cv_type_in_addr_t" = xyes 18789then : 18790 18791else $as_nop 18792 18793printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h 18794 18795fi 18796 18797ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 18798#if HAVE_SYS_TYPES_H 18799# include <sys/types.h> 18800#endif 18801#if HAVE_NETINET_IN_H 18802# include <netinet/in.h> 18803#endif 18804" 18805if test "x$ac_cv_type_in_port_t" = xyes 18806then : 18807 18808else $as_nop 18809 18810printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h 18811 18812fi 18813 18814ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 18815#ifdef HAVE_NETINET_IN_H 18816#include <netinet/in.h> 18817#endif 18818#ifdef HAVE_SYS_SOCKET_H 18819#include <sys/socket.h> 18820#endif 18821#ifdef HAVE_NETDB_H 18822#include <netdb.h> 18823#endif 18824#ifdef HAVE_ARPA_INET_H 18825#include <arpa/inet.h> 18826#endif 18827 18828" 18829if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes 18830then : 18831 18832else $as_nop 18833 18834 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 18835#ifdef HAVE_NETINET_IN_H 18836#include <netinet/in.h> 18837#endif 18838#ifdef HAVE_SYS_SOCKET_H 18839#include <sys/socket.h> 18840#endif 18841#ifdef HAVE_NETDB_H 18842#include <netdb.h> 18843#endif 18844#ifdef HAVE_ARPA_INET_H 18845#include <arpa/inet.h> 18846#endif 18847 18848" 18849if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes 18850then : 18851 18852 18853printf "%s\n" "#define ss_family __ss_family" >>confdefs.h 18854 18855 18856fi 18857 18858 18859fi 18860 18861 18862ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 18863$ac_includes_default 18864#ifdef HAVE_NETINET_IN_H 18865#include <netinet/in.h> 18866#endif 18867 18868#ifdef HAVE_NETINET_TCP_H 18869#include <netinet/tcp.h> 18870#endif 18871 18872#ifdef HAVE_ARPA_INET_H 18873#include <arpa/inet.h> 18874#endif 18875 18876#ifdef HAVE_WINSOCK2_H 18877#include <winsock2.h> 18878#endif 18879 18880#ifdef HAVE_WS2TCPIP_H 18881#include <ws2tcpip.h> 18882#endif 18883 18884" "$ac_c_undeclared_builtin_options" "CFLAGS" 18885if test "x$ac_cv_have_decl_inet_pton" = xyes 18886then : 18887 ac_have_decl=1 18888else $as_nop 18889 ac_have_decl=0 18890fi 18891printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h 18892ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 18893$ac_includes_default 18894#ifdef HAVE_NETINET_IN_H 18895#include <netinet/in.h> 18896#endif 18897 18898#ifdef HAVE_NETINET_TCP_H 18899#include <netinet/tcp.h> 18900#endif 18901 18902#ifdef HAVE_ARPA_INET_H 18903#include <arpa/inet.h> 18904#endif 18905 18906#ifdef HAVE_WINSOCK2_H 18907#include <winsock2.h> 18908#endif 18909 18910#ifdef HAVE_WS2TCPIP_H 18911#include <ws2tcpip.h> 18912#endif 18913 18914" "$ac_c_undeclared_builtin_options" "CFLAGS" 18915if test "x$ac_cv_have_decl_inet_ntop" = xyes 18916then : 18917 ac_have_decl=1 18918else $as_nop 18919 ac_have_decl=0 18920fi 18921printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h 18922 18923 18924# AC_FUNC_MALLOC suffers false failures and causes Asan failures. 18925# AC_FUNC_MALLOC 18926# AC_FUNC_REALLOC 18927 18928ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton" 18929if test "x$ac_cv_func_b64_pton" = xyes 18930then : 18931 printf "%s\n" "#define HAVE_B64_PTON 1" >>confdefs.h 18932 18933else $as_nop 18934 case " $LIBOBJS " in 18935 *" b64_pton.$ac_objext "* ) ;; 18936 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 18937 ;; 18938esac 18939 18940fi 18941 18942ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop" 18943if test "x$ac_cv_func_b64_ntop" = xyes 18944then : 18945 printf "%s\n" "#define HAVE_B64_NTOP 1" >>confdefs.h 18946 18947else $as_nop 18948 case " $LIBOBJS " in 18949 *" b64_ntop.$ac_objext "* ) ;; 18950 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 18951 ;; 18952esac 18953 18954fi 18955 18956ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" 18957if test "x$ac_cv_func_calloc" = xyes 18958then : 18959 printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h 18960 18961else $as_nop 18962 case " $LIBOBJS " in 18963 *" calloc.$ac_objext "* ) ;; 18964 *) LIBOBJS="$LIBOBJS calloc.$ac_objext" 18965 ;; 18966esac 18967 18968fi 18969 18970ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 18971if test "x$ac_cv_func_timegm" = xyes 18972then : 18973 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h 18974 18975else $as_nop 18976 case " $LIBOBJS " in 18977 *" timegm.$ac_objext "* ) ;; 18978 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 18979 ;; 18980esac 18981 18982fi 18983 18984ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 18985if test "x$ac_cv_func_gmtime_r" = xyes 18986then : 18987 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 18988 18989else $as_nop 18990 case " $LIBOBJS " in 18991 *" gmtime_r.$ac_objext "* ) ;; 18992 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 18993 ;; 18994esac 18995 18996fi 18997 18998ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 18999if test "x$ac_cv_func_asctime_r" = xyes 19000then : 19001 printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h 19002 19003else $as_nop 19004 case " $LIBOBJS " in 19005 *" asctime_r.$ac_objext "* ) ;; 19006 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 19007 ;; 19008esac 19009 19010fi 19011 19012ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 19013if test "x$ac_cv_func_ctime_r" = xyes 19014then : 19015 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 19016 19017else $as_nop 19018 case " $LIBOBJS " in 19019 *" ctime_r.$ac_objext "* ) ;; 19020 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 19021 ;; 19022esac 19023 19024fi 19025 19026ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 19027if test "x$ac_cv_func_localtime_r" = xyes 19028then : 19029 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 19030 19031else $as_nop 19032 case " $LIBOBJS " in 19033 *" localtime_r.$ac_objext "* ) ;; 19034 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 19035 ;; 19036esac 19037 19038fi 19039 19040ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 19041if test "x$ac_cv_func_isblank" = xyes 19042then : 19043 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h 19044 19045else $as_nop 19046 case " $LIBOBJS " in 19047 *" isblank.$ac_objext "* ) ;; 19048 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 19049 ;; 19050esac 19051 19052fi 19053 19054ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii" 19055if test "x$ac_cv_func_isascii" = xyes 19056then : 19057 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h 19058 19059else $as_nop 19060 case " $LIBOBJS " in 19061 *" isascii.$ac_objext "* ) ;; 19062 *) LIBOBJS="$LIBOBJS isascii.$ac_objext" 19063 ;; 19064esac 19065 19066fi 19067 19068ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 19069if test "x$ac_cv_func_inet_aton" = xyes 19070then : 19071 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 19072 19073else $as_nop 19074 case " $LIBOBJS " in 19075 *" inet_aton.$ac_objext "* ) ;; 19076 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 19077 ;; 19078esac 19079 19080fi 19081 19082ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 19083if test "x$ac_cv_func_inet_pton" = xyes 19084then : 19085 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 19086 19087else $as_nop 19088 case " $LIBOBJS " in 19089 *" inet_pton.$ac_objext "* ) ;; 19090 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 19091 ;; 19092esac 19093 19094fi 19095 19096ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 19097if test "x$ac_cv_func_inet_ntop" = xyes 19098then : 19099 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 19100 19101else $as_nop 19102 case " $LIBOBJS " in 19103 *" inet_ntop.$ac_objext "* ) ;; 19104 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 19105 ;; 19106esac 19107 19108fi 19109 19110ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 19111if test "x$ac_cv_func_snprintf" = xyes 19112then : 19113 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 19114 19115else $as_nop 19116 case " $LIBOBJS " in 19117 *" snprintf.$ac_objext "* ) ;; 19118 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 19119 ;; 19120esac 19121 19122fi 19123 19124ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 19125if test "x$ac_cv_func_strlcpy" = xyes 19126then : 19127 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 19128 19129else $as_nop 19130 case " $LIBOBJS " in 19131 *" strlcpy.$ac_objext "* ) ;; 19132 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 19133 ;; 19134esac 19135 19136fi 19137 19138ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 19139if test "x$ac_cv_func_memmove" = xyes 19140then : 19141 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 19142 19143else $as_nop 19144 case " $LIBOBJS " in 19145 *" memmove.$ac_objext "* ) ;; 19146 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 19147 ;; 19148esac 19149 19150fi 19151 19152 19153 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 19154" 19155if test "x$ac_cv_type_pid_t" = xyes 19156then : 19157 19158else $as_nop 19159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19160/* end confdefs.h. */ 19161 19162 #if defined _WIN64 && !defined __CYGWIN__ 19163 LLP64 19164 #endif 19165 19166int 19167main (void) 19168{ 19169 19170 ; 19171 return 0; 19172} 19173 19174_ACEOF 19175if ac_fn_c_try_compile "$LINENO" 19176then : 19177 ac_pid_type='int' 19178else $as_nop 19179 ac_pid_type='__int64' 19180fi 19181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19182 19183printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 19184 19185 19186fi 19187 19188 19189 19190ac_func= 19191for ac_item in $ac_func_c_list 19192do 19193 if test $ac_func; then 19194 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 19195 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 19196 echo "#define $ac_item 1" >> confdefs.h 19197 fi 19198 ac_func= 19199 else 19200 ac_func=$ac_item 19201 fi 19202done 19203 19204 19205 19206if test "x$ac_cv_func_fork" = xyes; then 19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 19208printf %s "checking for working fork... " >&6; } 19209if test ${ac_cv_func_fork_works+y} 19210then : 19211 printf %s "(cached) " >&6 19212else $as_nop 19213 if test "$cross_compiling" = yes 19214then : 19215 ac_cv_func_fork_works=cross 19216else $as_nop 19217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19218/* end confdefs.h. */ 19219$ac_includes_default 19220int 19221main (void) 19222{ 19223 19224 /* By Ruediger Kuhlmann. */ 19225 return fork () < 0; 19226 19227 ; 19228 return 0; 19229} 19230_ACEOF 19231if ac_fn_c_try_run "$LINENO" 19232then : 19233 ac_cv_func_fork_works=yes 19234else $as_nop 19235 ac_cv_func_fork_works=no 19236fi 19237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19238 conftest.$ac_objext conftest.beam conftest.$ac_ext 19239fi 19240 19241fi 19242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 19243printf "%s\n" "$ac_cv_func_fork_works" >&6; } 19244 19245else 19246 ac_cv_func_fork_works=$ac_cv_func_fork 19247fi 19248if test "x$ac_cv_func_fork_works" = xcross; then 19249 case $host in 19250 *-*-amigaos* | *-*-msdosdjgpp*) 19251 # Override, as these systems have only a dummy fork() stub 19252 ac_cv_func_fork_works=no 19253 ;; 19254 *) 19255 ac_cv_func_fork_works=yes 19256 ;; 19257 esac 19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 19259printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 19260fi 19261ac_cv_func_vfork_works=$ac_cv_func_vfork 19262if test "x$ac_cv_func_vfork" = xyes; then 19263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 19264printf %s "checking for working vfork... " >&6; } 19265if test ${ac_cv_func_vfork_works+y} 19266then : 19267 printf %s "(cached) " >&6 19268else $as_nop 19269 if test "$cross_compiling" = yes 19270then : 19271 ac_cv_func_vfork_works=cross 19272else $as_nop 19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19274/* end confdefs.h. */ 19275/* Thanks to Paul Eggert for this test. */ 19276$ac_includes_default 19277#include <signal.h> 19278#include <sys/wait.h> 19279#ifdef HAVE_VFORK_H 19280# include <vfork.h> 19281#endif 19282 19283static void 19284do_nothing (int sig) 19285{ 19286 (void) sig; 19287} 19288 19289/* On some sparc systems, changes by the child to local and incoming 19290 argument registers are propagated back to the parent. The compiler 19291 is told about this with #include <vfork.h>, but some compilers 19292 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 19293 static variable whose address is put into a register that is 19294 clobbered by the vfork. */ 19295static void 19296sparc_address_test (int arg) 19297{ 19298 static pid_t child; 19299 if (!child) { 19300 child = vfork (); 19301 if (child < 0) { 19302 perror ("vfork"); 19303 _exit(2); 19304 } 19305 if (!child) { 19306 arg = getpid(); 19307 write(-1, "", 0); 19308 _exit (arg); 19309 } 19310 } 19311} 19312 19313int 19314main (void) 19315{ 19316 pid_t parent = getpid (); 19317 pid_t child; 19318 19319 sparc_address_test (0); 19320 19321 /* On Solaris 2.4, changes by the child to the signal handler 19322 also munge signal handlers in the parent. To detect this, 19323 start by putting the parent's handler in a known state. */ 19324 signal (SIGTERM, SIG_DFL); 19325 19326 child = vfork (); 19327 19328 if (child == 0) { 19329 /* Here is another test for sparc vfork register problems. This 19330 test uses lots of local variables, at least as many local 19331 variables as main has allocated so far including compiler 19332 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 19333 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 19334 reuse the register of parent for one of the local variables, 19335 since it will think that parent can't possibly be used any more 19336 in this routine. Assigning to the local variable will thus 19337 munge parent in the parent process. */ 19338 pid_t 19339 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 19340 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 19341 /* Convince the compiler that p..p7 are live; otherwise, it might 19342 use the same hardware register for all 8 local variables. */ 19343 if (p != p1 || p != p2 || p != p3 || p != p4 19344 || p != p5 || p != p6 || p != p7) 19345 _exit(1); 19346 19347 /* Alter the child's signal handler. */ 19348 if (signal (SIGTERM, do_nothing) != SIG_DFL) 19349 _exit(1); 19350 19351 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 19352 from child file descriptors. If the child closes a descriptor 19353 before it execs or exits, this munges the parent's descriptor 19354 as well. Test for this by closing stdout in the child. */ 19355 _exit(close(fileno(stdout)) != 0); 19356 } else { 19357 int status; 19358 struct stat st; 19359 19360 while (wait(&status) != child) 19361 ; 19362 return ( 19363 /* Was there some problem with vforking? */ 19364 child < 0 19365 19366 /* Did the child munge the parent's signal handler? */ 19367 || signal (SIGTERM, SIG_DFL) != SIG_DFL 19368 19369 /* Did the child fail? (This shouldn't happen.) */ 19370 || status 19371 19372 /* Did the vfork/compiler bug occur? */ 19373 || parent != getpid() 19374 19375 /* Did the file descriptor bug occur? */ 19376 || fstat(fileno(stdout), &st) != 0 19377 ); 19378 } 19379} 19380_ACEOF 19381if ac_fn_c_try_run "$LINENO" 19382then : 19383 ac_cv_func_vfork_works=yes 19384else $as_nop 19385 ac_cv_func_vfork_works=no 19386fi 19387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19388 conftest.$ac_objext conftest.beam conftest.$ac_ext 19389fi 19390 19391fi 19392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 19393printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 19394 19395fi; 19396if test "x$ac_cv_func_fork_works" = xcross; then 19397 ac_cv_func_vfork_works=$ac_cv_func_vfork 19398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 19399printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 19400fi 19401 19402if test "x$ac_cv_func_vfork_works" = xyes; then 19403 19404printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 19405 19406else 19407 19408printf "%s\n" "#define vfork fork" >>confdefs.h 19409 19410fi 19411if test "x$ac_cv_func_fork_works" = xyes; then 19412 19413printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 19414 19415fi 19416 19417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compile of fork" >&5 19418printf %s "checking compile of fork... " >&6; } 19419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19420/* end confdefs.h. */ 19421 19422#include <unistd.h> 19423 19424int 19425main (void) 19426{ 19427 19428 (void)fork(); 19429 19430 ; 19431 return 0; 19432} 19433_ACEOF 19434if ac_fn_c_try_compile "$LINENO" 19435then : 19436 19437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19438printf "%s\n" "yes" >&6; } 19439 19440printf "%s\n" "#define HAVE_FORK_AVAILABLE 1" >>confdefs.h 19441 19442 19443else $as_nop 19444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19445printf "%s\n" "no" >&6; } 19446 19447fi 19448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19449ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent" 19450if test "x$ac_cv_func_endprotoent" = xyes 19451then : 19452 printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h 19453 19454fi 19455ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent" 19456if test "x$ac_cv_func_endservent" = xyes 19457then : 19458 printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h 19459 19460fi 19461ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" 19462if test "x$ac_cv_func_sleep" = xyes 19463then : 19464 printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h 19465 19466fi 19467ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 19468if test "x$ac_cv_func_random" = xyes 19469then : 19470 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h 19471 19472fi 19473ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 19474if test "x$ac_cv_func_fcntl" = xyes 19475then : 19476 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 19477 19478fi 19479ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 19480if test "x$ac_cv_func_strtoul" = xyes 19481then : 19482 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h 19483 19484fi 19485ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero" 19486if test "x$ac_cv_func_bzero" = xyes 19487then : 19488 printf "%s\n" "#define HAVE_BZERO 1" >>confdefs.h 19489 19490fi 19491ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 19492if test "x$ac_cv_func_memset" = xyes 19493then : 19494 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h 19495 19496fi 19497ac_fn_c_check_func "$LINENO" "b32_ntop" "ac_cv_func_b32_ntop" 19498if test "x$ac_cv_func_b32_ntop" = xyes 19499then : 19500 printf "%s\n" "#define HAVE_B32_NTOP 1" >>confdefs.h 19501 19502fi 19503ac_fn_c_check_func "$LINENO" "b32_pton" "ac_cv_func_b32_pton" 19504if test "x$ac_cv_func_b32_pton" = xyes 19505then : 19506 printf "%s\n" "#define HAVE_B32_PTON 1" >>confdefs.h 19507 19508fi 19509ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink" 19510if test "x$ac_cv_func_symlink" = xyes 19511then : 19512 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h 19513 19514fi 19515 19516if test "x$HAVE_B32_NTOP" = "xyes"; then 19517 ldns_build_config_have_b32_ntop=1 19518 19519else 19520 ldns_build_config_have_b32_ntop=0 19521 19522fi 19523if test "x$HAVE_B32_PTON" = "xyes"; then 19524 ldns_build_config_have_b32_pton=1 19525 19526else 19527 ldns_build_config_have_b32_pton=0 19528 19529fi 19530 19531 19532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 19533printf %s "checking for getaddrinfo... " >&6; } 19534ac_cv_func_getaddrinfo=no 19535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19536/* end confdefs.h. */ 19537 19538#ifdef __cplusplus 19539extern "C" 19540{ 19541#endif 19542char* getaddrinfo(); 19543char* (*f) () = getaddrinfo; 19544#ifdef __cplusplus 19545} 19546#endif 19547int main(void) { 19548 ; 19549 return 0; 19550} 19551 19552_ACEOF 19553if ac_fn_c_try_link "$LINENO" 19554then : 19555 ac_cv_func_getaddrinfo="yes" 19556if test "$ac_cv_header_windows_h" = "yes"; then 19557 19558printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 19559 19560 USE_WINSOCK="1" 19561 if echo "$LIBS" | grep 'lws2_32' >/dev/null; then 19562 : 19563 else 19564 LIBS="$LIBS -lws2_32" 19565 fi 19566fi 19567 19568else $as_nop 19569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19570/* end confdefs.h. */ 19571 19572#ifdef HAVE_WS2TCPIP_H 19573#include <ws2tcpip.h> 19574#endif 19575 19576int 19577main (void) 19578{ 19579 19580 (void)getaddrinfo(NULL, NULL, NULL, NULL); 19581 19582 19583 ; 19584 return 0; 19585} 19586_ACEOF 19587if ac_fn_c_try_link "$LINENO" 19588then : 19589 19590ac_cv_func_getaddrinfo="yes" 19591 19592printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 19593 19594USE_WINSOCK="1" 19595 19596else $as_nop 19597 ORIGLIBS="$LIBS" 19598LIBS="$LIBS -lws2_32" 19599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19600/* end confdefs.h. */ 19601 19602#ifdef HAVE_WS2TCPIP_H 19603#include <ws2tcpip.h> 19604#endif 19605 19606int 19607main (void) 19608{ 19609 19610 (void)getaddrinfo(NULL, NULL, NULL, NULL); 19611 19612 19613 ; 19614 return 0; 19615} 19616_ACEOF 19617if ac_fn_c_try_link "$LINENO" 19618then : 19619 19620ac_cv_func_getaddrinfo="yes" 19621 19622printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 19623 19624USE_WINSOCK="1" 19625 19626else $as_nop 19627 19628ac_cv_func_getaddrinfo="no" 19629LIBS="$ORIGLIBS" 19630 19631fi 19632rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19633 conftest$ac_exeext conftest.$ac_ext 19634 19635fi 19636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19637 conftest$ac_exeext conftest.$ac_ext 19638 19639fi 19640rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19641 conftest$ac_exeext conftest.$ac_ext 19642 19643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 19644printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; } 19645if test $ac_cv_func_getaddrinfo = yes; then 19646 19647printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 19648 19649fi 19650 19651if test $ac_cv_func_getaddrinfo = no; then 19652 case " $LIBOBJS " in 19653 *" fake-rfc2553.$ac_objext "* ) ;; 19654 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 19655 ;; 19656esac 19657 19658fi 19659if test "$USE_WINSOCK" = 1; then 19660 if test -n "$ac_tool_prefix"; then 19661 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 19662set dummy ${ac_tool_prefix}windres; ac_word=$2 19663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19664printf %s "checking for $ac_word... " >&6; } 19665if test ${ac_cv_prog_WINDRES+y} 19666then : 19667 printf %s "(cached) " >&6 19668else $as_nop 19669 if test -n "$WINDRES"; then 19670 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 19671else 19672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19673for as_dir in $PATH 19674do 19675 IFS=$as_save_IFS 19676 case $as_dir in #((( 19677 '') as_dir=./ ;; 19678 */) ;; 19679 *) as_dir=$as_dir/ ;; 19680 esac 19681 for ac_exec_ext in '' $ac_executable_extensions; do 19682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19683 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 19684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19685 break 2 19686 fi 19687done 19688 done 19689IFS=$as_save_IFS 19690 19691fi 19692fi 19693WINDRES=$ac_cv_prog_WINDRES 19694if test -n "$WINDRES"; then 19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 19696printf "%s\n" "$WINDRES" >&6; } 19697else 19698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19699printf "%s\n" "no" >&6; } 19700fi 19701 19702 19703fi 19704if test -z "$ac_cv_prog_WINDRES"; then 19705 ac_ct_WINDRES=$WINDRES 19706 # Extract the first word of "windres", so it can be a program name with args. 19707set dummy windres; ac_word=$2 19708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19709printf %s "checking for $ac_word... " >&6; } 19710if test ${ac_cv_prog_ac_ct_WINDRES+y} 19711then : 19712 printf %s "(cached) " >&6 19713else $as_nop 19714 if test -n "$ac_ct_WINDRES"; then 19715 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 19716else 19717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19718for as_dir in $PATH 19719do 19720 IFS=$as_save_IFS 19721 case $as_dir in #((( 19722 '') as_dir=./ ;; 19723 */) ;; 19724 *) as_dir=$as_dir/ ;; 19725 esac 19726 for ac_exec_ext in '' $ac_executable_extensions; do 19727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19728 ac_cv_prog_ac_ct_WINDRES="windres" 19729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19730 break 2 19731 fi 19732done 19733 done 19734IFS=$as_save_IFS 19735 19736fi 19737fi 19738ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 19739if test -n "$ac_ct_WINDRES"; then 19740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 19741printf "%s\n" "$ac_ct_WINDRES" >&6; } 19742else 19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19744printf "%s\n" "no" >&6; } 19745fi 19746 19747 if test "x$ac_ct_WINDRES" = x; then 19748 WINDRES="" 19749 else 19750 case $cross_compiling:$ac_tool_warned in 19751yes:) 19752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19753printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19754ac_tool_warned=yes ;; 19755esac 19756 WINDRES=$ac_ct_WINDRES 19757 fi 19758else 19759 WINDRES="$ac_cv_prog_WINDRES" 19760fi 19761 19762fi 19763 19764# check ioctlsocket 19765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 19766printf %s "checking for ioctlsocket... " >&6; } 19767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19768/* end confdefs.h. */ 19769 19770#ifdef HAVE_WINSOCK2_H 19771#include <winsock2.h> 19772#endif 19773 19774int 19775main (void) 19776{ 19777 19778 (void)ioctlsocket(0, 0, NULL); 19779 19780 ; 19781 return 0; 19782} 19783_ACEOF 19784if ac_fn_c_try_link "$LINENO" 19785then : 19786 19787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19788printf "%s\n" "yes" >&6; } 19789 19790printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 19791 19792 19793else $as_nop 19794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19795printf "%s\n" "no" >&6; } 19796fi 19797rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19798 conftest$ac_exeext conftest.$ac_ext 19799 19800 19801#AC_SEARCH_LIBS(RSA_new, [crypto]) 19802 19803 19804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 19805printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 19806if test ${ac_cv_c_format_attribute+y} 19807then : 19808 printf %s "(cached) " >&6 19809else $as_nop 19810 ac_cv_c_format_attribute=no 19811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19812/* end confdefs.h. */ 19813#include <stdio.h> 19814void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 19815void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 19816 19817int 19818main (void) 19819{ 19820 19821 f ("%s", "str"); 19822 19823 ; 19824 return 0; 19825} 19826_ACEOF 19827if ac_fn_c_try_compile "$LINENO" 19828then : 19829 ac_cv_c_format_attribute="yes" 19830else $as_nop 19831 ac_cv_c_format_attribute="no" 19832fi 19833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19834 19835fi 19836 19837 19838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 19839printf "%s\n" "$ac_cv_c_format_attribute" >&6; } 19840if test $ac_cv_c_format_attribute = yes; then 19841 19842printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 19843 19844fi 19845 19846 19847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 19848printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 19849if test ${ac_cv_c_unused_attribute+y} 19850then : 19851 printf %s "(cached) " >&6 19852else $as_nop 19853 ac_cv_c_unused_attribute=no 19854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19855/* end confdefs.h. */ 19856#include <stdio.h> 19857void f (char *u __attribute__((unused))); 19858 19859int 19860main (void) 19861{ 19862 19863 f ("x"); 19864 19865 ; 19866 return 0; 19867} 19868_ACEOF 19869if ac_fn_c_try_compile "$LINENO" 19870then : 19871 ac_cv_c_unused_attribute="yes" 19872else $as_nop 19873 ac_cv_c_unused_attribute="no" 19874fi 19875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19876 19877fi 19878 19879 19880 19881 19882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 19883printf "%s\n" "$ac_cv_c_unused_attribute" >&6; } 19884if test $ac_cv_c_unused_attribute = yes; then 19885 19886printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 19887 19888fi 19889 19890 19891 19892# Check whether --with-xcode-sdk was given. 19893if test ${with_xcode_sdk+y} 19894then : 19895 withval=$with_xcode_sdk; 19896else $as_nop 19897 with_xcode_sdk="yes" 19898fi 19899 19900if test "x_$with_xcode_sdk" != "x_no" ; then 19901 # check OSX deployment target, if needed 19902 if echo $target_os | grep darwin > /dev/null; then 19903 sdk_p=`xcode-select -print-path`; 19904 if test "x_$with_xcode_sdk" = "x_yes" ; then 19905 sdk_v="$( /usr/bin/xcrun --show-sdk-version 2>/dev/null )" 19906 else 19907 sdk_v="$with_xcode_sdk" 19908 fi 19909 # xcrun only got that option in 10.7 19910 if test -z "$sdk_v" ; then 19911 sdk_c="10.6" 19912 sdk_v="10.6" 19913 fi 19914 SYSROOT="$( find ${sdk_p} -name MacOSX${sdk_v}.sdk )" 19915 case $sdk_v in 19916 10.9|10.8) sdk_c="10.7";; 19917 10.11|10.10|*) sdk_c="10.10";; 19918 esac 19919 export MACOSX_DEPLOYMENT_TARGET="${sdk_c}"; 19920 export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${SYSROOT}" 19921 fi 19922fi 19923 19924 19925printf "%s\n" "#define SYSCONFDIR sysconfdir" >>confdefs.h 19926 19927 19928 19929# Check whether --with-trust-anchor was given. 19930if test ${with_trust_anchor+y} 19931then : 19932 withval=$with_trust_anchor; 19933 LDNS_TRUST_ANCHOR_FILE="$withval" 19934 19935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default trust anchor: $withval" >&5 19936printf "%s\n" "$as_me: Default trust anchor: $withval" >&6;} 19937 19938else $as_nop 19939 19940 LDNS_TRUST_ANCHOR_FILE="\$(sysconfdir)/unbound/root.key" 19941 19942 19943fi 19944 19945 19946 19947# Check whether --with-ca-file was given. 19948if test ${with_ca_file+y} 19949then : 19950 withval=$with_ca_file; 19951 19952printf "%s\n" "#define HAVE_DANE_CA_FILE 1" >>confdefs.h 19953 19954 19955printf "%s\n" "#define LDNS_DANE_CA_FILE \"$withval\"" >>confdefs.h 19956 19957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5 19958printf "%s\n" "$as_me: Using CAfile: $withval" >&6;} 19959 DEFAULT_CAFILE="Default is $withval" 19960 19961 19962else $as_nop 19963 19964 19965printf "%s\n" "#define HAVE_DANE_CA_FILE 0" >>confdefs.h 19966 19967 19968 19969fi 19970 19971 19972 19973# Check whether --with-ca-path was given. 19974if test ${with_ca_path+y} 19975then : 19976 withval=$with_ca_path; 19977 19978printf "%s\n" "#define HAVE_DANE_CA_PATH 1" >>confdefs.h 19979 19980 19981printf "%s\n" "#define LDNS_DANE_CA_PATH \"$withval\"" >>confdefs.h 19982 19983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5 19984printf "%s\n" "$as_me: Using CApath: $withval" >&6;} 19985 DEFAULT_CAPATH="Default is $withval" 19986 19987 19988else $as_nop 19989 19990 19991printf "%s\n" "#define HAVE_DANE_CA_PATH 0" >>confdefs.h 19992 19993 19994 19995fi 19996 19997 19998 19999 20000 20001 20002if test "x$HAVE_SSL" = "xyes"; then 20003 ldns_build_config_have_ssl=1 20004 20005else 20006 ldns_build_config_have_ssl=0 20007 20008fi 20009if test "x$ac_cv_c_format_attribute" = "xyes"; then 20010 ldns_build_config_have_attr_format=1 20011 20012else 20013 ldns_build_config_have_attr_format=0 20014 20015fi 20016if test "x$ac_cv_c_unused_attribute" = "xyes"; then 20017 ldns_build_config_have_attr_unused=1 20018 20019else 20020 ldns_build_config_have_attr_unused=0 20021 20022fi 20023 20024CONFIG_FILES="Makefile libdns.doxygen ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config" 20025 20026ac_config_files="$ac_config_files $CONFIG_FILES" 20027 20028 20029ac_config_headers="$ac_config_headers ldns/config.h" 20030 20031cat >confcache <<\_ACEOF 20032# This file is a shell script that caches the results of configure 20033# tests run on this system so they can be shared between configure 20034# scripts and configure runs, see configure's option --config-cache. 20035# It is not useful on other systems. If it contains results you don't 20036# want to keep, you may remove or edit it. 20037# 20038# config.status only pays attention to the cache file if you give it 20039# the --recheck option to rerun configure. 20040# 20041# `ac_cv_env_foo' variables (set or unset) will be overridden when 20042# loading this file, other *unset* `ac_cv_foo' will be assigned the 20043# following values. 20044 20045_ACEOF 20046 20047# The following way of writing the cache mishandles newlines in values, 20048# but we know of no workaround that is simple, portable, and efficient. 20049# So, we kill variables containing newlines. 20050# Ultrix sh set writes to stderr and can't be redirected directly, 20051# and sets the high bit in the cache file unless we assign to the vars. 20052( 20053 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20054 eval ac_val=\$$ac_var 20055 case $ac_val in #( 20056 *${as_nl}*) 20057 case $ac_var in #( 20058 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20059printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20060 esac 20061 case $ac_var in #( 20062 _ | IFS | as_nl) ;; #( 20063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20064 *) { eval $ac_var=; unset $ac_var;} ;; 20065 esac ;; 20066 esac 20067 done 20068 20069 (set) 2>&1 | 20070 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20071 *${as_nl}ac_space=\ *) 20072 # `set' does not quote correctly, so add quotes: double-quote 20073 # substitution turns \\\\ into \\, and sed turns \\ into \. 20074 sed -n \ 20075 "s/'/'\\\\''/g; 20076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20077 ;; #( 20078 *) 20079 # `set' quotes correctly as required by POSIX, so do not add quotes. 20080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20081 ;; 20082 esac | 20083 sort 20084) | 20085 sed ' 20086 /^ac_cv_env_/b end 20087 t clear 20088 :clear 20089 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20090 t end 20091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20092 :end' >>confcache 20093if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20094 if test -w "$cache_file"; then 20095 if test "x$cache_file" != "x/dev/null"; then 20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20097printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20098 if test ! -f "$cache_file" || test -h "$cache_file"; then 20099 cat confcache >"$cache_file" 20100 else 20101 case $cache_file in #( 20102 */* | ?:*) 20103 mv -f confcache "$cache_file"$$ && 20104 mv -f "$cache_file"$$ "$cache_file" ;; #( 20105 *) 20106 mv -f confcache "$cache_file" ;; 20107 esac 20108 fi 20109 fi 20110 else 20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20112printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20113 fi 20114fi 20115rm -f confcache 20116 20117test "x$prefix" = xNONE && prefix=$ac_default_prefix 20118# Let make expand exec_prefix. 20119test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20120 20121DEFS=-DHAVE_CONFIG_H 20122 20123ac_libobjs= 20124ac_ltlibobjs= 20125U= 20126for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20127 # 1. Remove the extension, and $U if already installed. 20128 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20129 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20131 # will be set to the directory where LIBOBJS objects are built. 20132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20133 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20134done 20135LIBOBJS=$ac_libobjs 20136 20137LTLIBOBJS=$ac_ltlibobjs 20138 20139 20140 20141 20142: "${CONFIG_STATUS=./config.status}" 20143ac_write_fail=0 20144ac_clean_files_save=$ac_clean_files 20145ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20147printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20148as_write_fail=0 20149cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20150#! $SHELL 20151# Generated by $as_me. 20152# Run this file to recreate the current configuration. 20153# Compiler output produced by configure, useful for debugging 20154# configure, is in config.log if it exists. 20155 20156debug=false 20157ac_cs_recheck=false 20158ac_cs_silent=false 20159 20160SHELL=\${CONFIG_SHELL-$SHELL} 20161export SHELL 20162_ASEOF 20163cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20164## -------------------- ## 20165## M4sh Initialization. ## 20166## -------------------- ## 20167 20168# Be more Bourne compatible 20169DUALCASE=1; export DUALCASE # for MKS sh 20170as_nop=: 20171if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20172then : 20173 emulate sh 20174 NULLCMD=: 20175 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20176 # is contrary to our usage. Disable this feature. 20177 alias -g '${1+"$@"}'='"$@"' 20178 setopt NO_GLOB_SUBST 20179else $as_nop 20180 case `(set -o) 2>/dev/null` in #( 20181 *posix*) : 20182 set -o posix ;; #( 20183 *) : 20184 ;; 20185esac 20186fi 20187 20188 20189 20190# Reset variables that may have inherited troublesome values from 20191# the environment. 20192 20193# IFS needs to be set, to space, tab, and newline, in precisely that order. 20194# (If _AS_PATH_WALK were called with IFS unset, it would have the 20195# side effect of setting IFS to empty, thus disabling word splitting.) 20196# Quoting is to prevent editors from complaining about space-tab. 20197as_nl=' 20198' 20199export as_nl 20200IFS=" "" $as_nl" 20201 20202PS1='$ ' 20203PS2='> ' 20204PS4='+ ' 20205 20206# Ensure predictable behavior from utilities with locale-dependent output. 20207LC_ALL=C 20208export LC_ALL 20209LANGUAGE=C 20210export LANGUAGE 20211 20212# We cannot yet rely on "unset" to work, but we need these variables 20213# to be unset--not just set to an empty or harmless value--now, to 20214# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20215# also avoids known problems related to "unset" and subshell syntax 20216# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20217for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20218do eval test \${$as_var+y} \ 20219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20220done 20221 20222# Ensure that fds 0, 1, and 2 are open. 20223if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20224if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20225if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20226 20227# The user is always right. 20228if ${PATH_SEPARATOR+false} :; then 20229 PATH_SEPARATOR=: 20230 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20231 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20232 PATH_SEPARATOR=';' 20233 } 20234fi 20235 20236 20237# Find who we are. Look in the path if we contain no directory separator. 20238as_myself= 20239case $0 in #(( 20240 *[\\/]* ) as_myself=$0 ;; 20241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20242for as_dir in $PATH 20243do 20244 IFS=$as_save_IFS 20245 case $as_dir in #((( 20246 '') as_dir=./ ;; 20247 */) ;; 20248 *) as_dir=$as_dir/ ;; 20249 esac 20250 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20251 done 20252IFS=$as_save_IFS 20253 20254 ;; 20255esac 20256# We did not find ourselves, most probably we were run as `sh COMMAND' 20257# in which case we are not to be found in the path. 20258if test "x$as_myself" = x; then 20259 as_myself=$0 20260fi 20261if test ! -f "$as_myself"; then 20262 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20263 exit 1 20264fi 20265 20266 20267 20268# as_fn_error STATUS ERROR [LINENO LOG_FD] 20269# ---------------------------------------- 20270# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20271# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20272# script with STATUS, using 1 if that was 0. 20273as_fn_error () 20274{ 20275 as_status=$1; test $as_status -eq 0 && as_status=1 20276 if test "$4"; then 20277 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20279 fi 20280 printf "%s\n" "$as_me: error: $2" >&2 20281 as_fn_exit $as_status 20282} # as_fn_error 20283 20284 20285 20286# as_fn_set_status STATUS 20287# ----------------------- 20288# Set $? to STATUS, without forking. 20289as_fn_set_status () 20290{ 20291 return $1 20292} # as_fn_set_status 20293 20294# as_fn_exit STATUS 20295# ----------------- 20296# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20297as_fn_exit () 20298{ 20299 set +e 20300 as_fn_set_status $1 20301 exit $1 20302} # as_fn_exit 20303 20304# as_fn_unset VAR 20305# --------------- 20306# Portably unset VAR. 20307as_fn_unset () 20308{ 20309 { eval $1=; unset $1;} 20310} 20311as_unset=as_fn_unset 20312 20313# as_fn_append VAR VALUE 20314# ---------------------- 20315# Append the text in VALUE to the end of the definition contained in VAR. Take 20316# advantage of any shell optimizations that allow amortized linear growth over 20317# repeated appends, instead of the typical quadratic growth present in naive 20318# implementations. 20319if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20320then : 20321 eval 'as_fn_append () 20322 { 20323 eval $1+=\$2 20324 }' 20325else $as_nop 20326 as_fn_append () 20327 { 20328 eval $1=\$$1\$2 20329 } 20330fi # as_fn_append 20331 20332# as_fn_arith ARG... 20333# ------------------ 20334# Perform arithmetic evaluation on the ARGs, and store the result in the 20335# global $as_val. Take advantage of shells that can avoid forks. The arguments 20336# must be portable across $(()) and expr. 20337if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20338then : 20339 eval 'as_fn_arith () 20340 { 20341 as_val=$(( $* )) 20342 }' 20343else $as_nop 20344 as_fn_arith () 20345 { 20346 as_val=`expr "$@" || test $? -eq 1` 20347 } 20348fi # as_fn_arith 20349 20350 20351if expr a : '\(a\)' >/dev/null 2>&1 && 20352 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20353 as_expr=expr 20354else 20355 as_expr=false 20356fi 20357 20358if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20359 as_basename=basename 20360else 20361 as_basename=false 20362fi 20363 20364if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20365 as_dirname=dirname 20366else 20367 as_dirname=false 20368fi 20369 20370as_me=`$as_basename -- "$0" || 20371$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20372 X"$0" : 'X\(//\)$' \| \ 20373 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20374printf "%s\n" X/"$0" | 20375 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20376 s//\1/ 20377 q 20378 } 20379 /^X\/\(\/\/\)$/{ 20380 s//\1/ 20381 q 20382 } 20383 /^X\/\(\/\).*/{ 20384 s//\1/ 20385 q 20386 } 20387 s/.*/./; q'` 20388 20389# Avoid depending upon Character Ranges. 20390as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20391as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20392as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20393as_cr_digits='0123456789' 20394as_cr_alnum=$as_cr_Letters$as_cr_digits 20395 20396 20397# Determine whether it's possible to make 'echo' print without a newline. 20398# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20399# for compatibility with existing Makefiles. 20400ECHO_C= ECHO_N= ECHO_T= 20401case `echo -n x` in #((((( 20402-n*) 20403 case `echo 'xy\c'` in 20404 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20405 xy) ECHO_C='\c';; 20406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20407 ECHO_T=' ';; 20408 esac;; 20409*) 20410 ECHO_N='-n';; 20411esac 20412 20413# For backward compatibility with old third-party macros, we provide 20414# the shell variables $as_echo and $as_echo_n. New code should use 20415# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20416as_echo='printf %s\n' 20417as_echo_n='printf %s' 20418 20419rm -f conf$$ conf$$.exe conf$$.file 20420if test -d conf$$.dir; then 20421 rm -f conf$$.dir/conf$$.file 20422else 20423 rm -f conf$$.dir 20424 mkdir conf$$.dir 2>/dev/null 20425fi 20426if (echo >conf$$.file) 2>/dev/null; then 20427 if ln -s conf$$.file conf$$ 2>/dev/null; then 20428 as_ln_s='ln -s' 20429 # ... but there are two gotchas: 20430 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20431 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20432 # In both cases, we have to default to `cp -pR'. 20433 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20434 as_ln_s='cp -pR' 20435 elif ln conf$$.file conf$$ 2>/dev/null; then 20436 as_ln_s=ln 20437 else 20438 as_ln_s='cp -pR' 20439 fi 20440else 20441 as_ln_s='cp -pR' 20442fi 20443rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20444rmdir conf$$.dir 2>/dev/null 20445 20446 20447# as_fn_mkdir_p 20448# ------------- 20449# Create "$as_dir" as a directory, including parents if necessary. 20450as_fn_mkdir_p () 20451{ 20452 20453 case $as_dir in #( 20454 -*) as_dir=./$as_dir;; 20455 esac 20456 test -d "$as_dir" || eval $as_mkdir_p || { 20457 as_dirs= 20458 while :; do 20459 case $as_dir in #( 20460 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20461 *) as_qdir=$as_dir;; 20462 esac 20463 as_dirs="'$as_qdir' $as_dirs" 20464 as_dir=`$as_dirname -- "$as_dir" || 20465$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20466 X"$as_dir" : 'X\(//\)[^/]' \| \ 20467 X"$as_dir" : 'X\(//\)$' \| \ 20468 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20469printf "%s\n" X"$as_dir" | 20470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20471 s//\1/ 20472 q 20473 } 20474 /^X\(\/\/\)[^/].*/{ 20475 s//\1/ 20476 q 20477 } 20478 /^X\(\/\/\)$/{ 20479 s//\1/ 20480 q 20481 } 20482 /^X\(\/\).*/{ 20483 s//\1/ 20484 q 20485 } 20486 s/.*/./; q'` 20487 test -d "$as_dir" && break 20488 done 20489 test -z "$as_dirs" || eval "mkdir $as_dirs" 20490 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20491 20492 20493} # as_fn_mkdir_p 20494if mkdir -p . 2>/dev/null; then 20495 as_mkdir_p='mkdir -p "$as_dir"' 20496else 20497 test -d ./-p && rmdir ./-p 20498 as_mkdir_p=false 20499fi 20500 20501 20502# as_fn_executable_p FILE 20503# ----------------------- 20504# Test if FILE is an executable regular file. 20505as_fn_executable_p () 20506{ 20507 test -f "$1" && test -x "$1" 20508} # as_fn_executable_p 20509as_test_x='test -x' 20510as_executable_p=as_fn_executable_p 20511 20512# Sed expression to map a string onto a valid CPP name. 20513as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20514 20515# Sed expression to map a string onto a valid variable name. 20516as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20517 20518 20519exec 6>&1 20520## ----------------------------------- ## 20521## Main body of $CONFIG_STATUS script. ## 20522## ----------------------------------- ## 20523_ASEOF 20524test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20525 20526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20527# Save the log message, to keep $0 and so on meaningful, and to 20528# report actual input values of CONFIG_FILES etc. instead of their 20529# values after options handling. 20530ac_log=" 20531This file was extended by ldns $as_me 1.9.2, which was 20532generated by GNU Autoconf 2.71. Invocation command line was 20533 20534 CONFIG_FILES = $CONFIG_FILES 20535 CONFIG_HEADERS = $CONFIG_HEADERS 20536 CONFIG_LINKS = $CONFIG_LINKS 20537 CONFIG_COMMANDS = $CONFIG_COMMANDS 20538 $ $0 $@ 20539 20540on `(hostname || uname -n) 2>/dev/null | sed 1q` 20541" 20542 20543_ACEOF 20544 20545case $ac_config_files in *" 20546"*) set x $ac_config_files; shift; ac_config_files=$*;; 20547esac 20548 20549case $ac_config_headers in *" 20550"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20551esac 20552 20553 20554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20555# Files that config.status was made for. 20556config_files="$ac_config_files" 20557config_headers="$ac_config_headers" 20558config_commands="$ac_config_commands" 20559 20560_ACEOF 20561 20562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20563ac_cs_usage="\ 20564\`$as_me' instantiates files and other configuration actions 20565from templates according to the current configuration. Unless the files 20566and actions are specified as TAGs, all are instantiated by default. 20567 20568Usage: $0 [OPTION]... [TAG]... 20569 20570 -h, --help print this help, then exit 20571 -V, --version print version number and configuration settings, then exit 20572 --config print configuration, then exit 20573 -q, --quiet, --silent 20574 do not print progress messages 20575 -d, --debug don't remove temporary files 20576 --recheck update $as_me by reconfiguring in the same conditions 20577 --file=FILE[:TEMPLATE] 20578 instantiate the configuration file FILE 20579 --header=FILE[:TEMPLATE] 20580 instantiate the configuration header FILE 20581 20582Configuration files: 20583$config_files 20584 20585Configuration headers: 20586$config_headers 20587 20588Configuration commands: 20589$config_commands 20590 20591Report bugs to <dns-team@nlnetlabs.nl>." 20592 20593_ACEOF 20594ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20595ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20597ac_cs_config='$ac_cs_config_escaped' 20598ac_cs_version="\\ 20599ldns config.status 1.9.2 20600configured by $0, generated by GNU Autoconf 2.71, 20601 with options \\"\$ac_cs_config\\" 20602 20603Copyright (C) 2021 Free Software Foundation, Inc. 20604This config.status script is free software; the Free Software Foundation 20605gives unlimited permission to copy, distribute and modify it." 20606 20607ac_pwd='$ac_pwd' 20608srcdir='$srcdir' 20609AWK='$AWK' 20610test -n "\$AWK" || AWK=awk 20611_ACEOF 20612 20613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20614# The default lists apply if the user does not specify any file. 20615ac_need_defaults=: 20616while test $# != 0 20617do 20618 case $1 in 20619 --*=?*) 20620 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20622 ac_shift=: 20623 ;; 20624 --*=) 20625 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20626 ac_optarg= 20627 ac_shift=: 20628 ;; 20629 *) 20630 ac_option=$1 20631 ac_optarg=$2 20632 ac_shift=shift 20633 ;; 20634 esac 20635 20636 case $ac_option in 20637 # Handling of the options. 20638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20639 ac_cs_recheck=: ;; 20640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20641 printf "%s\n" "$ac_cs_version"; exit ;; 20642 --config | --confi | --conf | --con | --co | --c ) 20643 printf "%s\n" "$ac_cs_config"; exit ;; 20644 --debug | --debu | --deb | --de | --d | -d ) 20645 debug=: ;; 20646 --file | --fil | --fi | --f ) 20647 $ac_shift 20648 case $ac_optarg in 20649 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20650 '') as_fn_error $? "missing file argument" ;; 20651 esac 20652 as_fn_append CONFIG_FILES " '$ac_optarg'" 20653 ac_need_defaults=false;; 20654 --header | --heade | --head | --hea ) 20655 $ac_shift 20656 case $ac_optarg in 20657 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20658 esac 20659 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20660 ac_need_defaults=false;; 20661 --he | --h) 20662 # Conflict between --help and --header 20663 as_fn_error $? "ambiguous option: \`$1' 20664Try \`$0 --help' for more information.";; 20665 --help | --hel | -h ) 20666 printf "%s\n" "$ac_cs_usage"; exit ;; 20667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20668 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20669 ac_cs_silent=: ;; 20670 20671 # This is an error. 20672 -*) as_fn_error $? "unrecognized option: \`$1' 20673Try \`$0 --help' for more information." ;; 20674 20675 *) as_fn_append ac_config_targets " $1" 20676 ac_need_defaults=false ;; 20677 20678 esac 20679 shift 20680done 20681 20682ac_configure_extra_args= 20683 20684if $ac_cs_silent; then 20685 exec 6>/dev/null 20686 ac_configure_extra_args="$ac_configure_extra_args --silent" 20687fi 20688 20689_ACEOF 20690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20691if \$ac_cs_recheck; then 20692 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20693 shift 20694 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20695 CONFIG_SHELL='$SHELL' 20696 export CONFIG_SHELL 20697 exec "\$@" 20698fi 20699 20700_ACEOF 20701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20702exec 5>>config.log 20703{ 20704 echo 20705 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20706## Running $as_me. ## 20707_ASBOX 20708 printf "%s\n" "$ac_log" 20709} >&5 20710 20711_ACEOF 20712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20713# 20714# INIT-COMMANDS 20715# 20716 20717 20718# The HP-UX ksh and POSIX shell print the target directory to stdout 20719# if CDPATH is set. 20720(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20721 20722sed_quote_subst='$sed_quote_subst' 20723double_quote_subst='$double_quote_subst' 20724delay_variable_subst='$delay_variable_subst' 20725macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20726macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20727enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20728enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20729pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20730enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20731shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20732SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20733ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20734PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20735host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20736host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20737host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20738build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20739build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20740build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20741SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20742Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20743GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20744EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20745FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20746LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20747NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20748LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20749max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20750ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20751exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20752lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20753lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20754lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20755lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20756lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20757reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20758reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20759FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20760OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20761deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20762file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20763file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20764want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20765DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20766sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20767AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20768lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20769AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20770archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20771STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20772RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20773old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20774old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20775old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20776lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20777CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20778CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20779compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20780GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20781lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20782lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20783lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20784lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20785lt_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"`' 20786lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20787nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20788lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20789lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20790objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20791MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20792lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20793lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20794lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20795lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20796lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20797need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20798MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20799DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20800NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20801LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20802OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20803OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20804libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20805shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20806extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20807archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20808enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20809export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20810whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20811compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20812old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20813old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20814archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20815archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20816module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20817module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20818with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20819allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20820no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20821hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20822hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20823hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20824hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20825hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20826hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20827hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20828inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20829link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20830always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20831export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20832exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20833include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20834prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20835postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20836file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20837variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20838need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20839need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20840version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20841runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20842shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20843shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20844libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20845library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20846soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20847install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20848postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20849postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20850finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20851finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20852hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20853sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20854configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20855configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20856hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20857enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20858enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20859enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20860old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20861striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20862 20863LTCC='$LTCC' 20864LTCFLAGS='$LTCFLAGS' 20865compiler='$compiler_DEFAULT' 20866 20867# A function that is used when there is no print builtin or printf. 20868func_fallback_echo () 20869{ 20870 eval 'cat <<_LTECHO_EOF 20871\$1 20872_LTECHO_EOF' 20873} 20874 20875# Quote evaled strings. 20876for var in SHELL \ 20877ECHO \ 20878PATH_SEPARATOR \ 20879SED \ 20880GREP \ 20881EGREP \ 20882FGREP \ 20883LD \ 20884NM \ 20885LN_S \ 20886lt_SP2NL \ 20887lt_NL2SP \ 20888reload_flag \ 20889FILECMD \ 20890OBJDUMP \ 20891deplibs_check_method \ 20892file_magic_cmd \ 20893file_magic_glob \ 20894want_nocaseglob \ 20895DLLTOOL \ 20896sharedlib_from_linklib_cmd \ 20897AR \ 20898archiver_list_spec \ 20899STRIP \ 20900RANLIB \ 20901CC \ 20902CFLAGS \ 20903compiler \ 20904lt_cv_sys_global_symbol_pipe \ 20905lt_cv_sys_global_symbol_to_cdecl \ 20906lt_cv_sys_global_symbol_to_import \ 20907lt_cv_sys_global_symbol_to_c_name_address \ 20908lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20909lt_cv_nm_interface \ 20910nm_file_list_spec \ 20911lt_cv_truncate_bin \ 20912lt_prog_compiler_no_builtin_flag \ 20913lt_prog_compiler_pic \ 20914lt_prog_compiler_wl \ 20915lt_prog_compiler_static \ 20916lt_cv_prog_compiler_c_o \ 20917need_locks \ 20918MANIFEST_TOOL \ 20919DSYMUTIL \ 20920NMEDIT \ 20921LIPO \ 20922OTOOL \ 20923OTOOL64 \ 20924shrext_cmds \ 20925export_dynamic_flag_spec \ 20926whole_archive_flag_spec \ 20927compiler_needs_object \ 20928with_gnu_ld \ 20929allow_undefined_flag \ 20930no_undefined_flag \ 20931hardcode_libdir_flag_spec \ 20932hardcode_libdir_separator \ 20933exclude_expsyms \ 20934include_expsyms \ 20935file_list_spec \ 20936variables_saved_for_relink \ 20937libname_spec \ 20938library_names_spec \ 20939soname_spec \ 20940install_override_mode \ 20941finish_eval \ 20942old_striplib \ 20943striplib; do 20944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20945 *[\\\\\\\`\\"\\\$]*) 20946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20947 ;; 20948 *) 20949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20950 ;; 20951 esac 20952done 20953 20954# Double-quote double-evaled strings. 20955for var in reload_cmds \ 20956old_postinstall_cmds \ 20957old_postuninstall_cmds \ 20958old_archive_cmds \ 20959extract_expsyms_cmds \ 20960old_archive_from_new_cmds \ 20961old_archive_from_expsyms_cmds \ 20962archive_cmds \ 20963archive_expsym_cmds \ 20964module_cmds \ 20965module_expsym_cmds \ 20966export_symbols_cmds \ 20967prelink_cmds \ 20968postlink_cmds \ 20969postinstall_cmds \ 20970postuninstall_cmds \ 20971finish_cmds \ 20972sys_lib_search_path_spec \ 20973configure_time_dlsearch_path \ 20974configure_time_lt_sys_library_path; do 20975 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20976 *[\\\\\\\`\\"\\\$]*) 20977 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20978 ;; 20979 *) 20980 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20981 ;; 20982 esac 20983done 20984 20985ac_aux_dir='$ac_aux_dir' 20986 20987# See if we are running on zsh, and set the options that allow our 20988# commands through without removal of \ escapes INIT. 20989if test -n "\${ZSH_VERSION+set}"; then 20990 setopt NO_GLOB_SUBST 20991fi 20992 20993 20994 PACKAGE='$PACKAGE' 20995 VERSION='$VERSION' 20996 RM='$RM' 20997 ofile='$ofile' 20998 20999 21000 21001 21002_ACEOF 21003 21004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21005 21006# Handling of arguments. 21007for ac_config_target in $ac_config_targets 21008do 21009 case $ac_config_target in 21010 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21011 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 21012 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;; 21013 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;; 21014 21015 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21016 esac 21017done 21018 21019 21020# If the user did not use the arguments to specify the items to instantiate, 21021# then the envvar interface is used. Set only those that are not. 21022# We use the long form for the default assignment because of an extremely 21023# bizarre bug on SunOS 4.1.3. 21024if $ac_need_defaults; then 21025 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21026 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21027 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21028fi 21029 21030# Have a temporary directory for convenience. Make it in the build tree 21031# simply because there is no reason against having it here, and in addition, 21032# creating and moving files from /tmp can sometimes cause problems. 21033# Hook for its removal unless debugging. 21034# Note that there is a small window in which the directory will not be cleaned: 21035# after its creation but before its name has been assigned to `$tmp'. 21036$debug || 21037{ 21038 tmp= ac_tmp= 21039 trap 'exit_status=$? 21040 : "${ac_tmp:=$tmp}" 21041 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21042' 0 21043 trap 'as_fn_exit 1' 1 2 13 15 21044} 21045# Create a (secure) tmp directory for tmp files. 21046 21047{ 21048 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21049 test -d "$tmp" 21050} || 21051{ 21052 tmp=./conf$$-$RANDOM 21053 (umask 077 && mkdir "$tmp") 21054} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21055ac_tmp=$tmp 21056 21057# Set up the scripts for CONFIG_FILES section. 21058# No need to generate them if there are no CONFIG_FILES. 21059# This happens for instance with `./config.status config.h'. 21060if test -n "$CONFIG_FILES"; then 21061 21062 21063ac_cr=`echo X | tr X '\015'` 21064# On cygwin, bash can eat \r inside `` if the user requested igncr. 21065# But we know of no other shell where ac_cr would be empty at this 21066# point, so we can use a bashism as a fallback. 21067if test "x$ac_cr" = x; then 21068 eval ac_cr=\$\'\\r\' 21069fi 21070ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21071if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21072 ac_cs_awk_cr='\\r' 21073else 21074 ac_cs_awk_cr=$ac_cr 21075fi 21076 21077echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21078_ACEOF 21079 21080 21081{ 21082 echo "cat >conf$$subs.awk <<_ACEOF" && 21083 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21084 echo "_ACEOF" 21085} >conf$$subs.sh || 21086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21087ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21088ac_delim='%!_!# ' 21089for ac_last_try in false false false false false :; do 21090 . ./conf$$subs.sh || 21091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21092 21093 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21094 if test $ac_delim_n = $ac_delim_num; then 21095 break 21096 elif $ac_last_try; then 21097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21098 else 21099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21100 fi 21101done 21102rm -f conf$$subs.sh 21103 21104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21105cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21106_ACEOF 21107sed -n ' 21108h 21109s/^/S["/; s/!.*/"]=/ 21110p 21111g 21112s/^[^!]*!// 21113:repl 21114t repl 21115s/'"$ac_delim"'$// 21116t delim 21117:nl 21118h 21119s/\(.\{148\}\)..*/\1/ 21120t more1 21121s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21122p 21123n 21124b repl 21125:more1 21126s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21127p 21128g 21129s/.\{148\}// 21130t nl 21131:delim 21132h 21133s/\(.\{148\}\)..*/\1/ 21134t more2 21135s/["\\]/\\&/g; s/^/"/; s/$/"/ 21136p 21137b 21138:more2 21139s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21140p 21141g 21142s/.\{148\}// 21143t delim 21144' <conf$$subs.awk | sed ' 21145/^[^""]/{ 21146 N 21147 s/\n// 21148} 21149' >>$CONFIG_STATUS || ac_write_fail=1 21150rm -f conf$$subs.awk 21151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21152_ACAWK 21153cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21154 for (key in S) S_is_set[key] = 1 21155 FS = "" 21156 21157} 21158{ 21159 line = $ 0 21160 nfields = split(line, field, "@") 21161 substed = 0 21162 len = length(field[1]) 21163 for (i = 2; i < nfields; i++) { 21164 key = field[i] 21165 keylen = length(key) 21166 if (S_is_set[key]) { 21167 value = S[key] 21168 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21169 len += length(value) + length(field[++i]) 21170 substed = 1 21171 } else 21172 len += 1 + keylen 21173 } 21174 21175 print line 21176} 21177 21178_ACAWK 21179_ACEOF 21180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21181if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21182 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21183else 21184 cat 21185fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21186 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21187_ACEOF 21188 21189# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21190# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21191# trailing colons and then remove the whole line if VPATH becomes empty 21192# (actually we leave an empty line to preserve line numbers). 21193if test "x$srcdir" = x.; then 21194 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21195h 21196s/// 21197s/^/:/ 21198s/[ ]*$/:/ 21199s/:\$(srcdir):/:/g 21200s/:\${srcdir}:/:/g 21201s/:@srcdir@:/:/g 21202s/^:*// 21203s/:*$// 21204x 21205s/\(=[ ]*\).*/\1/ 21206G 21207s/\n// 21208s/^[^=]*=[ ]*$// 21209}' 21210fi 21211 21212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21213fi # test -n "$CONFIG_FILES" 21214 21215# Set up the scripts for CONFIG_HEADERS section. 21216# No need to generate them if there are no CONFIG_HEADERS. 21217# This happens for instance with `./config.status Makefile'. 21218if test -n "$CONFIG_HEADERS"; then 21219cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21220BEGIN { 21221_ACEOF 21222 21223# Transform confdefs.h into an awk script `defines.awk', embedded as 21224# here-document in config.status, that substitutes the proper values into 21225# config.h.in to produce config.h. 21226 21227# Create a delimiter string that does not exist in confdefs.h, to ease 21228# handling of long lines. 21229ac_delim='%!_!# ' 21230for ac_last_try in false false :; do 21231 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21232 if test -z "$ac_tt"; then 21233 break 21234 elif $ac_last_try; then 21235 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21236 else 21237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21238 fi 21239done 21240 21241# For the awk script, D is an array of macro values keyed by name, 21242# likewise P contains macro parameters if any. Preserve backslash 21243# newline sequences. 21244 21245ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21246sed -n ' 21247s/.\{148\}/&'"$ac_delim"'/g 21248t rset 21249:rset 21250s/^[ ]*#[ ]*define[ ][ ]*/ / 21251t def 21252d 21253:def 21254s/\\$// 21255t bsnl 21256s/["\\]/\\&/g 21257s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21258D["\1"]=" \3"/p 21259s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21260d 21261:bsnl 21262s/["\\]/\\&/g 21263s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21264D["\1"]=" \3\\\\\\n"\\/p 21265t cont 21266s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21267t cont 21268d 21269:cont 21270n 21271s/.\{148\}/&'"$ac_delim"'/g 21272t clear 21273:clear 21274s/\\$// 21275t bsnlc 21276s/["\\]/\\&/g; s/^/"/; s/$/"/p 21277d 21278:bsnlc 21279s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21280b cont 21281' <confdefs.h | sed ' 21282s/'"$ac_delim"'/"\\\ 21283"/g' >>$CONFIG_STATUS || ac_write_fail=1 21284 21285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21286 for (key in D) D_is_set[key] = 1 21287 FS = "" 21288} 21289/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21290 line = \$ 0 21291 split(line, arg, " ") 21292 if (arg[1] == "#") { 21293 defundef = arg[2] 21294 mac1 = arg[3] 21295 } else { 21296 defundef = substr(arg[1], 2) 21297 mac1 = arg[2] 21298 } 21299 split(mac1, mac2, "(") #) 21300 macro = mac2[1] 21301 prefix = substr(line, 1, index(line, defundef) - 1) 21302 if (D_is_set[macro]) { 21303 # Preserve the white space surrounding the "#". 21304 print prefix "define", macro P[macro] D[macro] 21305 next 21306 } else { 21307 # Replace #undef with comments. This is necessary, for example, 21308 # in the case of _POSIX_SOURCE, which is predefined and required 21309 # on some systems where configure will not decide to define it. 21310 if (defundef == "undef") { 21311 print "/*", prefix defundef, macro, "*/" 21312 next 21313 } 21314 } 21315} 21316{ print } 21317_ACAWK 21318_ACEOF 21319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21320 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21321fi # test -n "$CONFIG_HEADERS" 21322 21323 21324eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21325shift 21326for ac_tag 21327do 21328 case $ac_tag in 21329 :[FHLC]) ac_mode=$ac_tag; continue;; 21330 esac 21331 case $ac_mode$ac_tag in 21332 :[FHL]*:*);; 21333 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21334 :[FH]-) ac_tag=-:-;; 21335 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21336 esac 21337 ac_save_IFS=$IFS 21338 IFS=: 21339 set x $ac_tag 21340 IFS=$ac_save_IFS 21341 shift 21342 ac_file=$1 21343 shift 21344 21345 case $ac_mode in 21346 :L) ac_source=$1;; 21347 :[FH]) 21348 ac_file_inputs= 21349 for ac_f 21350 do 21351 case $ac_f in 21352 -) ac_f="$ac_tmp/stdin";; 21353 *) # Look for the file first in the build tree, then in the source tree 21354 # (if the path is not absolute). The absolute path cannot be DOS-style, 21355 # because $ac_f cannot contain `:'. 21356 test -f "$ac_f" || 21357 case $ac_f in 21358 [\\/$]*) false;; 21359 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21360 esac || 21361 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21362 esac 21363 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21364 as_fn_append ac_file_inputs " '$ac_f'" 21365 done 21366 21367 # Let's still pretend it is `configure' which instantiates (i.e., don't 21368 # use $as_me), people would be surprised to read: 21369 # /* config.h. Generated by config.status. */ 21370 configure_input='Generated from '` 21371 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21372 `' by configure.' 21373 if test x"$ac_file" != x-; then 21374 configure_input="$ac_file. $configure_input" 21375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21376printf "%s\n" "$as_me: creating $ac_file" >&6;} 21377 fi 21378 # Neutralize special characters interpreted by sed in replacement strings. 21379 case $configure_input in #( 21380 *\&* | *\|* | *\\* ) 21381 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21382 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21383 *) ac_sed_conf_input=$configure_input;; 21384 esac 21385 21386 case $ac_tag in 21387 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21388 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21389 esac 21390 ;; 21391 esac 21392 21393 ac_dir=`$as_dirname -- "$ac_file" || 21394$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21395 X"$ac_file" : 'X\(//\)[^/]' \| \ 21396 X"$ac_file" : 'X\(//\)$' \| \ 21397 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21398printf "%s\n" X"$ac_file" | 21399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21400 s//\1/ 21401 q 21402 } 21403 /^X\(\/\/\)[^/].*/{ 21404 s//\1/ 21405 q 21406 } 21407 /^X\(\/\/\)$/{ 21408 s//\1/ 21409 q 21410 } 21411 /^X\(\/\).*/{ 21412 s//\1/ 21413 q 21414 } 21415 s/.*/./; q'` 21416 as_dir="$ac_dir"; as_fn_mkdir_p 21417 ac_builddir=. 21418 21419case "$ac_dir" in 21420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21421*) 21422 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21423 # A ".." for each directory in $ac_dir_suffix. 21424 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21425 case $ac_top_builddir_sub in 21426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21428 esac ;; 21429esac 21430ac_abs_top_builddir=$ac_pwd 21431ac_abs_builddir=$ac_pwd$ac_dir_suffix 21432# for backward compatibility: 21433ac_top_builddir=$ac_top_build_prefix 21434 21435case $srcdir in 21436 .) # We are building in place. 21437 ac_srcdir=. 21438 ac_top_srcdir=$ac_top_builddir_sub 21439 ac_abs_top_srcdir=$ac_pwd ;; 21440 [\\/]* | ?:[\\/]* ) # Absolute name. 21441 ac_srcdir=$srcdir$ac_dir_suffix; 21442 ac_top_srcdir=$srcdir 21443 ac_abs_top_srcdir=$srcdir ;; 21444 *) # Relative name. 21445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21446 ac_top_srcdir=$ac_top_build_prefix$srcdir 21447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21448esac 21449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21450 21451 21452 case $ac_mode in 21453 :F) 21454 # 21455 # CONFIG_FILE 21456 # 21457 21458_ACEOF 21459 21460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21461# If the template does not know about datarootdir, expand it. 21462# FIXME: This hack should be removed a few years after 2.60. 21463ac_datarootdir_hack=; ac_datarootdir_seen= 21464ac_sed_dataroot=' 21465/datarootdir/ { 21466 p 21467 q 21468} 21469/@datadir@/p 21470/@docdir@/p 21471/@infodir@/p 21472/@localedir@/p 21473/@mandir@/p' 21474case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21475*datarootdir*) ac_datarootdir_seen=yes;; 21476*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21478printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21479_ACEOF 21480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21481 ac_datarootdir_hack=' 21482 s&@datadir@&$datadir&g 21483 s&@docdir@&$docdir&g 21484 s&@infodir@&$infodir&g 21485 s&@localedir@&$localedir&g 21486 s&@mandir@&$mandir&g 21487 s&\\\${datarootdir}&$datarootdir&g' ;; 21488esac 21489_ACEOF 21490 21491# Neutralize VPATH when `$srcdir' = `.'. 21492# Shell code in configure.ac might set extrasub. 21493# FIXME: do we really want to maintain this feature? 21494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21495ac_sed_extra="$ac_vpsub 21496$extrasub 21497_ACEOF 21498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21499:t 21500/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21501s|@configure_input@|$ac_sed_conf_input|;t t 21502s&@top_builddir@&$ac_top_builddir_sub&;t t 21503s&@top_build_prefix@&$ac_top_build_prefix&;t t 21504s&@srcdir@&$ac_srcdir&;t t 21505s&@abs_srcdir@&$ac_abs_srcdir&;t t 21506s&@top_srcdir@&$ac_top_srcdir&;t t 21507s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21508s&@builddir@&$ac_builddir&;t t 21509s&@abs_builddir@&$ac_abs_builddir&;t t 21510s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21511$ac_datarootdir_hack 21512" 21513eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21514 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21515 21516test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21517 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21519 "$ac_tmp/out"`; test -z "$ac_out"; } && 21520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21521which seems to be undefined. Please make sure it is defined" >&5 21522printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21523which seems to be undefined. Please make sure it is defined" >&2;} 21524 21525 rm -f "$ac_tmp/stdin" 21526 case $ac_file in 21527 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21528 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21529 esac \ 21530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21531 ;; 21532 :H) 21533 # 21534 # CONFIG_HEADER 21535 # 21536 if test x"$ac_file" != x-; then 21537 { 21538 printf "%s\n" "/* $configure_input */" >&1 \ 21539 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21540 } >"$ac_tmp/config.h" \ 21541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21542 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21544printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21545 else 21546 rm -f "$ac_file" 21547 mv "$ac_tmp/config.h" "$ac_file" \ 21548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21549 fi 21550 else 21551 printf "%s\n" "/* $configure_input */" >&1 \ 21552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21553 || as_fn_error $? "could not create -" "$LINENO" 5 21554 fi 21555 ;; 21556 21557 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21558printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21559 ;; 21560 esac 21561 21562 21563 case $ac_file$ac_mode in 21564 "libtool":C) 21565 21566 # See if we are running on zsh, and set the options that allow our 21567 # commands through without removal of \ escapes. 21568 if test -n "${ZSH_VERSION+set}"; then 21569 setopt NO_GLOB_SUBST 21570 fi 21571 21572 cfgfile=${ofile}T 21573 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21574 $RM "$cfgfile" 21575 21576 cat <<_LT_EOF >> "$cfgfile" 21577#! $SHELL 21578# Generated automatically by $as_me ($PACKAGE) $VERSION 21579# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21580 21581# Provide generalized library-building support services. 21582# Written by Gordon Matzigkeit, 1996 21583 21584# Copyright (C) 2014 Free Software Foundation, Inc. 21585# This is free software; see the source for copying conditions. There is NO 21586# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21587 21588# GNU Libtool is free software; you can redistribute it and/or modify 21589# it under the terms of the GNU General Public License as published by 21590# the Free Software Foundation; either version 2 of of the License, or 21591# (at your option) any later version. 21592# 21593# As a special exception to the GNU General Public License, if you 21594# distribute this file as part of a program or library that is built 21595# using GNU Libtool, you may include this file under the same 21596# distribution terms that you use for the rest of that program. 21597# 21598# GNU Libtool is distributed in the hope that it will be useful, but 21599# WITHOUT ANY WARRANTY; without even the implied warranty of 21600# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21601# GNU General Public License for more details. 21602# 21603# You should have received a copy of the GNU General Public License 21604# along with this program. If not, see <http://www.gnu.org/licenses/>. 21605 21606 21607# The names of the tagged configurations supported by this script. 21608available_tags='' 21609 21610# Configured defaults for sys_lib_dlsearch_path munging. 21611: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21612 21613# ### BEGIN LIBTOOL CONFIG 21614 21615# Which release of libtool.m4 was used? 21616macro_version=$macro_version 21617macro_revision=$macro_revision 21618 21619# Whether or not to build shared libraries. 21620build_libtool_libs=$enable_shared 21621 21622# Whether or not to build static libraries. 21623build_old_libs=$enable_static 21624 21625# What type of objects to build. 21626pic_mode=$pic_mode 21627 21628# Whether or not to optimize for fast installation. 21629fast_install=$enable_fast_install 21630 21631# Shared archive member basename,for filename based shared library versioning on AIX. 21632shared_archive_member_spec=$shared_archive_member_spec 21633 21634# Shell to use when invoking shell scripts. 21635SHELL=$lt_SHELL 21636 21637# An echo program that protects backslashes. 21638ECHO=$lt_ECHO 21639 21640# The PATH separator for the build system. 21641PATH_SEPARATOR=$lt_PATH_SEPARATOR 21642 21643# The host system. 21644host_alias=$host_alias 21645host=$host 21646host_os=$host_os 21647 21648# The build system. 21649build_alias=$build_alias 21650build=$build 21651build_os=$build_os 21652 21653# A sed program that does not truncate output. 21654SED=$lt_SED 21655 21656# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21657Xsed="\$SED -e 1s/^X//" 21658 21659# A grep program that handles long lines. 21660GREP=$lt_GREP 21661 21662# An ERE matcher. 21663EGREP=$lt_EGREP 21664 21665# A literal string matcher. 21666FGREP=$lt_FGREP 21667 21668# A BSD- or MS-compatible name lister. 21669NM=$lt_NM 21670 21671# Whether we need soft or hard links. 21672LN_S=$lt_LN_S 21673 21674# What is the maximum length of a command? 21675max_cmd_len=$max_cmd_len 21676 21677# Object file suffix (normally "o"). 21678objext=$ac_objext 21679 21680# Executable file suffix (normally ""). 21681exeext=$exeext 21682 21683# whether the shell understands "unset". 21684lt_unset=$lt_unset 21685 21686# turn spaces into newlines. 21687SP2NL=$lt_lt_SP2NL 21688 21689# turn newlines into spaces. 21690NL2SP=$lt_lt_NL2SP 21691 21692# convert \$build file names to \$host format. 21693to_host_file_cmd=$lt_cv_to_host_file_cmd 21694 21695# convert \$build files to toolchain format. 21696to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21697 21698# A file(cmd) program that detects file types. 21699FILECMD=$lt_FILECMD 21700 21701# An object symbol dumper. 21702OBJDUMP=$lt_OBJDUMP 21703 21704# Method to check whether dependent libraries are shared objects. 21705deplibs_check_method=$lt_deplibs_check_method 21706 21707# Command to use when deplibs_check_method = "file_magic". 21708file_magic_cmd=$lt_file_magic_cmd 21709 21710# How to find potential files when deplibs_check_method = "file_magic". 21711file_magic_glob=$lt_file_magic_glob 21712 21713# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21714want_nocaseglob=$lt_want_nocaseglob 21715 21716# DLL creation program. 21717DLLTOOL=$lt_DLLTOOL 21718 21719# Command to associate shared and link libraries. 21720sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21721 21722# The archiver. 21723AR=$lt_AR 21724 21725# Flags to create an archive (by configure). 21726lt_ar_flags=$lt_ar_flags 21727 21728# Flags to create an archive. 21729AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21730 21731# How to feed a file listing to the archiver. 21732archiver_list_spec=$lt_archiver_list_spec 21733 21734# A symbol stripping program. 21735STRIP=$lt_STRIP 21736 21737# Commands used to install an old-style archive. 21738RANLIB=$lt_RANLIB 21739old_postinstall_cmds=$lt_old_postinstall_cmds 21740old_postuninstall_cmds=$lt_old_postuninstall_cmds 21741 21742# Whether to use a lock for old archive extraction. 21743lock_old_archive_extraction=$lock_old_archive_extraction 21744 21745# A C compiler. 21746LTCC=$lt_CC 21747 21748# LTCC compiler flags. 21749LTCFLAGS=$lt_CFLAGS 21750 21751# Take the output of nm and produce a listing of raw symbols and C names. 21752global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21753 21754# Transform the output of nm in a proper C declaration. 21755global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21756 21757# Transform the output of nm into a list of symbols to manually relocate. 21758global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21759 21760# Transform the output of nm in a C name address pair. 21761global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21762 21763# Transform the output of nm in a C name address pair when lib prefix is needed. 21764global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21765 21766# The name lister interface. 21767nm_interface=$lt_lt_cv_nm_interface 21768 21769# Specify filename containing input files for \$NM. 21770nm_file_list_spec=$lt_nm_file_list_spec 21771 21772# The root where to search for dependent libraries,and where our libraries should be installed. 21773lt_sysroot=$lt_sysroot 21774 21775# Command to truncate a binary pipe. 21776lt_truncate_bin=$lt_lt_cv_truncate_bin 21777 21778# The name of the directory that contains temporary libtool files. 21779objdir=$objdir 21780 21781# Used to examine libraries when file_magic_cmd begins with "file". 21782MAGIC_CMD=$MAGIC_CMD 21783 21784# Must we lock files when doing compilation? 21785need_locks=$lt_need_locks 21786 21787# Manifest tool. 21788MANIFEST_TOOL=$lt_MANIFEST_TOOL 21789 21790# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21791DSYMUTIL=$lt_DSYMUTIL 21792 21793# Tool to change global to local symbols on Mac OS X. 21794NMEDIT=$lt_NMEDIT 21795 21796# Tool to manipulate fat objects and archives on Mac OS X. 21797LIPO=$lt_LIPO 21798 21799# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21800OTOOL=$lt_OTOOL 21801 21802# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21803OTOOL64=$lt_OTOOL64 21804 21805# Old archive suffix (normally "a"). 21806libext=$libext 21807 21808# Shared library suffix (normally ".so"). 21809shrext_cmds=$lt_shrext_cmds 21810 21811# The commands to extract the exported symbol list from a shared archive. 21812extract_expsyms_cmds=$lt_extract_expsyms_cmds 21813 21814# Variables whose values should be saved in libtool wrapper scripts and 21815# restored at link time. 21816variables_saved_for_relink=$lt_variables_saved_for_relink 21817 21818# Do we need the "lib" prefix for modules? 21819need_lib_prefix=$need_lib_prefix 21820 21821# Do we need a version for libraries? 21822need_version=$need_version 21823 21824# Library versioning type. 21825version_type=$version_type 21826 21827# Shared library runtime path variable. 21828runpath_var=$runpath_var 21829 21830# Shared library path variable. 21831shlibpath_var=$shlibpath_var 21832 21833# Is shlibpath searched before the hard-coded library search path? 21834shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21835 21836# Format of library name prefix. 21837libname_spec=$lt_libname_spec 21838 21839# List of archive names. First name is the real one, the rest are links. 21840# The last name is the one that the linker finds with -lNAME 21841library_names_spec=$lt_library_names_spec 21842 21843# The coded name of the library, if different from the real name. 21844soname_spec=$lt_soname_spec 21845 21846# Permission mode override for installation of shared libraries. 21847install_override_mode=$lt_install_override_mode 21848 21849# Command to use after installation of a shared archive. 21850postinstall_cmds=$lt_postinstall_cmds 21851 21852# Command to use after uninstallation of a shared archive. 21853postuninstall_cmds=$lt_postuninstall_cmds 21854 21855# Commands used to finish a libtool library installation in a directory. 21856finish_cmds=$lt_finish_cmds 21857 21858# As "finish_cmds", except a single script fragment to be evaled but 21859# not shown. 21860finish_eval=$lt_finish_eval 21861 21862# Whether we should hardcode library paths into libraries. 21863hardcode_into_libs=$hardcode_into_libs 21864 21865# Compile-time system search path for libraries. 21866sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21867 21868# Detected run-time system search path for libraries. 21869sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21870 21871# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21872configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21873 21874# Whether dlopen is supported. 21875dlopen_support=$enable_dlopen 21876 21877# Whether dlopen of programs is supported. 21878dlopen_self=$enable_dlopen_self 21879 21880# Whether dlopen of statically linked programs is supported. 21881dlopen_self_static=$enable_dlopen_self_static 21882 21883# Commands to strip libraries. 21884old_striplib=$lt_old_striplib 21885striplib=$lt_striplib 21886 21887 21888# The linker used to build libraries. 21889LD=$lt_LD 21890 21891# How to create reloadable object files. 21892reload_flag=$lt_reload_flag 21893reload_cmds=$lt_reload_cmds 21894 21895# Commands used to build an old-style archive. 21896old_archive_cmds=$lt_old_archive_cmds 21897 21898# A language specific compiler. 21899CC=$lt_compiler 21900 21901# Is the compiler the GNU compiler? 21902with_gcc=$GCC 21903 21904# Compiler flag to turn off builtin functions. 21905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21906 21907# Additional compiler flags for building library objects. 21908pic_flag=$lt_lt_prog_compiler_pic 21909 21910# How to pass a linker flag through the compiler. 21911wl=$lt_lt_prog_compiler_wl 21912 21913# Compiler flag to prevent dynamic linking. 21914link_static_flag=$lt_lt_prog_compiler_static 21915 21916# Does compiler simultaneously support -c and -o options? 21917compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21918 21919# Whether or not to add -lc for building shared libraries. 21920build_libtool_need_lc=$archive_cmds_need_lc 21921 21922# Whether or not to disallow shared libs when runtime libs are static. 21923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21924 21925# Compiler flag to allow reflexive dlopens. 21926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21927 21928# Compiler flag to generate shared objects directly from archives. 21929whole_archive_flag_spec=$lt_whole_archive_flag_spec 21930 21931# Whether the compiler copes with passing no objects directly. 21932compiler_needs_object=$lt_compiler_needs_object 21933 21934# Create an old-style archive from a shared archive. 21935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21936 21937# Create a temporary old-style archive to link instead of a shared archive. 21938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21939 21940# Commands used to build a shared archive. 21941archive_cmds=$lt_archive_cmds 21942archive_expsym_cmds=$lt_archive_expsym_cmds 21943 21944# Commands used to build a loadable module if different from building 21945# a shared archive. 21946module_cmds=$lt_module_cmds 21947module_expsym_cmds=$lt_module_expsym_cmds 21948 21949# Whether we are building with GNU ld or not. 21950with_gnu_ld=$lt_with_gnu_ld 21951 21952# Flag that allows shared libraries with undefined symbols to be built. 21953allow_undefined_flag=$lt_allow_undefined_flag 21954 21955# Flag that enforces no undefined symbols. 21956no_undefined_flag=$lt_no_undefined_flag 21957 21958# Flag to hardcode \$libdir into a binary during linking. 21959# This must work even if \$libdir does not exist 21960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21961 21962# Whether we need a single "-rpath" flag with a separated argument. 21963hardcode_libdir_separator=$lt_hardcode_libdir_separator 21964 21965# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21966# DIR into the resulting binary. 21967hardcode_direct=$hardcode_direct 21968 21969# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21970# DIR into the resulting binary and the resulting library dependency is 21971# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21972# library is relocated. 21973hardcode_direct_absolute=$hardcode_direct_absolute 21974 21975# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21976# into the resulting binary. 21977hardcode_minus_L=$hardcode_minus_L 21978 21979# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21980# into the resulting binary. 21981hardcode_shlibpath_var=$hardcode_shlibpath_var 21982 21983# Set to "yes" if building a shared library automatically hardcodes DIR 21984# into the library and all subsequent libraries and executables linked 21985# against it. 21986hardcode_automatic=$hardcode_automatic 21987 21988# Set to yes if linker adds runtime paths of dependent libraries 21989# to runtime path list. 21990inherit_rpath=$inherit_rpath 21991 21992# Whether libtool must link a program against all its dependency libraries. 21993link_all_deplibs=$link_all_deplibs 21994 21995# Set to "yes" if exported symbols are required. 21996always_export_symbols=$always_export_symbols 21997 21998# The commands to list exported symbols. 21999export_symbols_cmds=$lt_export_symbols_cmds 22000 22001# Symbols that should not be listed in the preloaded symbols. 22002exclude_expsyms=$lt_exclude_expsyms 22003 22004# Symbols that must always be exported. 22005include_expsyms=$lt_include_expsyms 22006 22007# Commands necessary for linking programs (against libraries) with templates. 22008prelink_cmds=$lt_prelink_cmds 22009 22010# Commands necessary for finishing linking programs. 22011postlink_cmds=$lt_postlink_cmds 22012 22013# Specify filename containing input files. 22014file_list_spec=$lt_file_list_spec 22015 22016# How to hardcode a shared library path into an executable. 22017hardcode_action=$hardcode_action 22018 22019# ### END LIBTOOL CONFIG 22020 22021_LT_EOF 22022 22023 cat <<'_LT_EOF' >> "$cfgfile" 22024 22025# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22026 22027# func_munge_path_list VARIABLE PATH 22028# ----------------------------------- 22029# VARIABLE is name of variable containing _space_ separated list of 22030# directories to be munged by the contents of PATH, which is string 22031# having a format: 22032# "DIR[:DIR]:" 22033# string "DIR[ DIR]" will be prepended to VARIABLE 22034# ":DIR[:DIR]" 22035# string "DIR[ DIR]" will be appended to VARIABLE 22036# "DIRP[:DIRP]::[DIRA:]DIRA" 22037# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22038# "DIRA[ DIRA]" will be appended to VARIABLE 22039# "DIR[:DIR]" 22040# VARIABLE will be replaced by "DIR[ DIR]" 22041func_munge_path_list () 22042{ 22043 case x$2 in 22044 x) 22045 ;; 22046 *:) 22047 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22048 ;; 22049 x:*) 22050 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22051 ;; 22052 *::*) 22053 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22054 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22055 ;; 22056 *) 22057 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22058 ;; 22059 esac 22060} 22061 22062 22063# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22064func_cc_basename () 22065{ 22066 for cc_temp in $*""; do 22067 case $cc_temp in 22068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22070 \-*) ;; 22071 *) break;; 22072 esac 22073 done 22074 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22075} 22076 22077 22078# ### END FUNCTIONS SHARED WITH CONFIGURE 22079 22080_LT_EOF 22081 22082 case $host_os in 22083 aix3*) 22084 cat <<\_LT_EOF >> "$cfgfile" 22085# AIX sometimes has problems with the GCC collect2 program. For some 22086# reason, if we set the COLLECT_NAMES environment variable, the problems 22087# vanish in a puff of smoke. 22088if test set != "${COLLECT_NAMES+set}"; then 22089 COLLECT_NAMES= 22090 export COLLECT_NAMES 22091fi 22092_LT_EOF 22093 ;; 22094 esac 22095 22096 22097 22098ltmain=$ac_aux_dir/ltmain.sh 22099 22100 22101 # We use sed instead of cat because bash on DJGPP gets confused if 22102 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22103 # text mode, it properly converts lines to CR/LF. This bash problem 22104 # is reportedly fixed, but why not run on old versions too? 22105 $SED '$q' "$ltmain" >> "$cfgfile" \ 22106 || (rm -f "$cfgfile"; exit 1) 22107 22108 mv -f "$cfgfile" "$ofile" || 22109 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22110 chmod +x "$ofile" 22111 22112 ;; 22113 "disable-rpath":C) 22114 sed < libtool > libtool-2 \ 22115 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 22116 mv libtool-2 libtool 22117 chmod 755 libtool 22118 libtool="./libtool" 22119 ;; 22120 22121 esac 22122done # for ac_tag 22123 22124 22125as_fn_exit 0 22126_ACEOF 22127ac_clean_files=$ac_clean_files_save 22128 22129test $ac_write_fail = 0 || 22130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22131 22132 22133# configure is writing to config.log, and then calls config.status. 22134# config.status does its own redirection, appending to config.log. 22135# Unfortunately, on DOS this fails, as config.log is still kept open 22136# by configure, so config.status won't be able to write to it; its 22137# output is simply discarded. So we exec the FD to /dev/null, 22138# effectively closing config.log, so it can be properly (re)opened and 22139# appended to by config.status. When coming back to configure, we 22140# need to make the FD available again. 22141if test "$no_create" != yes; then 22142 ac_cs_success=: 22143 ac_config_status_args= 22144 test "$silent" = yes && 22145 ac_config_status_args="$ac_config_status_args --quiet" 22146 exec 5>/dev/null 22147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22148 exec 5>>config.log 22149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22150 # would make configure fail if this is the last instruction. 22151 $ac_cs_success || as_fn_exit 1 22152fi 22153if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22155printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22156fi 22157 22158 22159echo "copying header files" 22160 22161for file in $srcdir/ldns//*.h; do 22162 sh $srcdir/install-sh -m 644 $file ldns/ 22163done 22164 22165 22166 22167 22168