1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ldns 1.6.17. 4# 5# Report bugs to <libdns@nlnetlabs.nl>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: libdns@nlnetlabs.nl about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='ldns' 592PACKAGE_TARNAME='libdns' 593PACKAGE_VERSION='1.6.17' 594PACKAGE_STRING='ldns 1.6.17' 595PACKAGE_BUGREPORT='libdns@nlnetlabs.nl' 596PACKAGE_URL='' 597 598ac_unique_file="packet.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='LTLIBOBJS 636CONFIG_FILES 637ldns_build_config_have_attr_unused 638ldns_build_config_have_attr_format 639ldns_build_config_have_ssl 640DEFAULT_CAPATH 641DEFAULT_CAFILE 642LDNS_TRUST_ANCHOR_FILE 643WINDRES 644ldns_build_config_have_b32_pton 645ldns_build_config_have_b32_ntop 646LIBOBJS 647ldns_build_config_have_socklen_t 648LIBPCAP_LIBS 649include_unistd_h 650include_systypes_h 651include_inttypes_h 652ldns_build_config_have_inttypes_h 653include_sys_socket_h 654LIBSSL_SSL_LIBS 655LIBSSL_LIBS 656LIBSSL_LDFLAGS 657LIBSSL_CPPFLAGS 658ldns_build_config_use_dane 659RUNTIME_PATH 660HAVE_SSL 661libtool 662CLEAN_P5_DNS_LDNS 663UNINSTALL_P5_DNS_LDNS 664INSTALL_P5_DNS_LDNS 665TEST_P5_DNS_LDNS 666P5_DNS_LDNS 667PERL 668PYLDNSXUNINST 669PYLDNSXINST 670PYLDNSUNINST 671PYLDNSINST 672PYLDNSX 673PYTHON_X_CFLAGS 674swig 675PYLDNS 676SWIG_LIB 677SWIG 678SWIGPY3 679PYTHON_EXTRA_LDFLAGS 680PYTHON_EXTRA_LIBS 681PYTHON_SITE_PKG 682PYTHON_LDFLAGS 683PYTHON_CPPFLAGS 684PYTHON 685PYTHON_VERSION 686UNINSTALL_CONFIG_MANPAGE 687UNINSTALL_CONFIG 688INSTALL_CONFIG_MANPAGE 689INSTALL_CONFIG 690LINT_EXAMPLES 691CLEAN_EXAMPLES 692UNINSTALL_EXAMPLES 693INSTALL_EXAMPLES 694EXAMPLES 695LINT_DRILL 696CLEAN_DRILL 697UNINSTALL_DRILL 698INSTALL_DRILL 699DRILL 700doxygen 701LINTFLAGS 702SET_MAKE 703DEPFLAG 704OTOOL64 705OTOOL 706LIPO 707NMEDIT 708DSYMUTIL 709MANIFEST_TOOL 710AWK 711RANLIB 712STRIP 713ac_ct_AR 714AR 715DLLTOOL 716OBJDUMP 717LN_S 718NM 719ac_ct_DUMPBIN 720DUMPBIN 721LD 722FGREP 723SED 724host_os 725host_vendor 726host_cpu 727host 728build_os 729build_vendor 730build_cpu 731build 732LIBTOOL 733EGREP 734GREP 735CPP 736OBJEXT 737EXEEXT 738ac_ct_CC 739CPPFLAGS 740LDFLAGS 741CFLAGS 742CC 743VERSION_INFO 744LDNS_VERSION_MICRO 745LDNS_VERSION_MINOR 746LDNS_VERSION_MAJOR 747target_alias 748host_alias 749build_alias 750LIBS 751ECHO_T 752ECHO_N 753ECHO_C 754DEFS 755mandir 756localedir 757libdir 758psdir 759pdfdir 760dvidir 761htmldir 762infodir 763docdir 764oldincludedir 765includedir 766localstatedir 767sharedstatedir 768sysconfdir 769datadir 770datarootdir 771libexecdir 772sbindir 773bindir 774program_transform_name 775prefix 776exec_prefix 777PACKAGE_URL 778PACKAGE_BUGREPORT 779PACKAGE_STRING 780PACKAGE_VERSION 781PACKAGE_TARNAME 782PACKAGE_NAME 783PATH_SEPARATOR 784SHELL' 785ac_subst_files='' 786ac_user_opts=' 787enable_option_checking 788enable_shared 789enable_static 790with_pic 791enable_fast_install 792with_gnu_ld 793with_sysroot 794enable_libtool_lock 795with_drill 796with_examples 797enable_ldns_config 798enable_stderr_msgs 799with_pyldns 800with_pyldnsx 801with_p5_dns_ldns 802with_ssl 803enable_sha2 804enable_gost 805enable_ecdsa 806enable_dane 807enable_rrtype_ninfo 808enable_rrtype_rkey 809enable_rrtype_cds 810enable_rrtype_uri 811enable_rrtype_ta 812enable_rpath 813with_trust_anchor 814with_ca_file 815with_ca_path 816' 817 ac_precious_vars='build_alias 818host_alias 819target_alias 820CC 821CFLAGS 822LDFLAGS 823LIBS 824CPPFLAGS 825CPP 826PYTHON_VERSION' 827 828 829# Initialize some variables set by options. 830ac_init_help= 831ac_init_version=false 832ac_unrecognized_opts= 833ac_unrecognized_sep= 834# The variables have the same names as the options, with 835# dashes changed to underlines. 836cache_file=/dev/null 837exec_prefix=NONE 838no_create= 839no_recursion= 840prefix=NONE 841program_prefix=NONE 842program_suffix=NONE 843program_transform_name=s,x,x, 844silent= 845site= 846srcdir= 847verbose= 848x_includes=NONE 849x_libraries=NONE 850 851# Installation directory options. 852# These are left unexpanded so users can "make install exec_prefix=/foo" 853# and all the variables that are supposed to be based on exec_prefix 854# by default will actually change. 855# Use braces instead of parens because sh, perl, etc. also accept them. 856# (The list follows the same order as the GNU Coding Standards.) 857bindir='${exec_prefix}/bin' 858sbindir='${exec_prefix}/sbin' 859libexecdir='${exec_prefix}/libexec' 860datarootdir='${prefix}/share' 861datadir='${datarootdir}' 862sysconfdir='${prefix}/etc' 863sharedstatedir='${prefix}/com' 864localstatedir='${prefix}/var' 865includedir='${prefix}/include' 866oldincludedir='/usr/include' 867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 868infodir='${datarootdir}/info' 869htmldir='${docdir}' 870dvidir='${docdir}' 871pdfdir='${docdir}' 872psdir='${docdir}' 873libdir='${exec_prefix}/lib' 874localedir='${datarootdir}/locale' 875mandir='${datarootdir}/man' 876 877ac_prev= 878ac_dashdash= 879for ac_option 880do 881 # If the previous option needs an argument, assign it. 882 if test -n "$ac_prev"; then 883 eval $ac_prev=\$ac_option 884 ac_prev= 885 continue 886 fi 887 888 case $ac_option in 889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 890 *=) ac_optarg= ;; 891 *) ac_optarg=yes ;; 892 esac 893 894 # Accept the important Cygnus configure options, so we can diagnose typos. 895 896 case $ac_dashdash$ac_option in 897 --) 898 ac_dashdash=yes ;; 899 900 -bindir | --bindir | --bindi | --bind | --bin | --bi) 901 ac_prev=bindir ;; 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 903 bindir=$ac_optarg ;; 904 905 -build | --build | --buil | --bui | --bu) 906 ac_prev=build_alias ;; 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 908 build_alias=$ac_optarg ;; 909 910 -cache-file | --cache-file | --cache-fil | --cache-fi \ 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 912 ac_prev=cache_file ;; 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 915 cache_file=$ac_optarg ;; 916 917 --config-cache | -C) 918 cache_file=config.cache ;; 919 920 -datadir | --datadir | --datadi | --datad) 921 ac_prev=datadir ;; 922 -datadir=* | --datadir=* | --datadi=* | --datad=*) 923 datadir=$ac_optarg ;; 924 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 926 | --dataroo | --dataro | --datar) 927 ac_prev=datarootdir ;; 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 930 datarootdir=$ac_optarg ;; 931 932 -disable-* | --disable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=no ;; 947 948 -docdir | --docdir | --docdi | --doc | --do) 949 ac_prev=docdir ;; 950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 951 docdir=$ac_optarg ;; 952 953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 954 ac_prev=dvidir ;; 955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 956 dvidir=$ac_optarg ;; 957 958 -enable-* | --enable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: $ac_useropt" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=\$ac_optarg ;; 973 974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 976 | --exec | --exe | --ex) 977 ac_prev=exec_prefix ;; 978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 980 | --exec=* | --exe=* | --ex=*) 981 exec_prefix=$ac_optarg ;; 982 983 -gas | --gas | --ga | --g) 984 # Obsolete; use --with-gas. 985 with_gas=yes ;; 986 987 -help | --help | --hel | --he | -h) 988 ac_init_help=long ;; 989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 990 ac_init_help=recursive ;; 991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 992 ac_init_help=short ;; 993 994 -host | --host | --hos | --ho) 995 ac_prev=host_alias ;; 996 -host=* | --host=* | --hos=* | --ho=*) 997 host_alias=$ac_optarg ;; 998 999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1000 ac_prev=htmldir ;; 1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1002 | --ht=*) 1003 htmldir=$ac_optarg ;; 1004 1005 -includedir | --includedir | --includedi | --included | --include \ 1006 | --includ | --inclu | --incl | --inc) 1007 ac_prev=includedir ;; 1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1009 | --includ=* | --inclu=* | --incl=* | --inc=*) 1010 includedir=$ac_optarg ;; 1011 1012 -infodir | --infodir | --infodi | --infod | --info | --inf) 1013 ac_prev=infodir ;; 1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1015 infodir=$ac_optarg ;; 1016 1017 -libdir | --libdir | --libdi | --libd) 1018 ac_prev=libdir ;; 1019 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1020 libdir=$ac_optarg ;; 1021 1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1023 | --libexe | --libex | --libe) 1024 ac_prev=libexecdir ;; 1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1026 | --libexe=* | --libex=* | --libe=*) 1027 libexecdir=$ac_optarg ;; 1028 1029 -localedir | --localedir | --localedi | --localed | --locale) 1030 ac_prev=localedir ;; 1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1032 localedir=$ac_optarg ;; 1033 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1035 | --localstate | --localstat | --localsta | --localst | --locals) 1036 ac_prev=localstatedir ;; 1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1039 localstatedir=$ac_optarg ;; 1040 1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1042 ac_prev=mandir ;; 1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1044 mandir=$ac_optarg ;; 1045 1046 -nfp | --nfp | --nf) 1047 # Obsolete; use --without-fp. 1048 with_fp=no ;; 1049 1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1051 | --no-cr | --no-c | -n) 1052 no_create=yes ;; 1053 1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1056 no_recursion=yes ;; 1057 1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1060 | --oldin | --oldi | --old | --ol | --o) 1061 ac_prev=oldincludedir ;; 1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1065 oldincludedir=$ac_optarg ;; 1066 1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1068 ac_prev=prefix ;; 1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1070 prefix=$ac_optarg ;; 1071 1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1073 | --program-pre | --program-pr | --program-p) 1074 ac_prev=program_prefix ;; 1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1077 program_prefix=$ac_optarg ;; 1078 1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1080 | --program-suf | --program-su | --program-s) 1081 ac_prev=program_suffix ;; 1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1084 program_suffix=$ac_optarg ;; 1085 1086 -program-transform-name | --program-transform-name \ 1087 | --program-transform-nam | --program-transform-na \ 1088 | --program-transform-n | --program-transform- \ 1089 | --program-transform | --program-transfor \ 1090 | --program-transfo | --program-transf \ 1091 | --program-trans | --program-tran \ 1092 | --progr-tra | --program-tr | --program-t) 1093 ac_prev=program_transform_name ;; 1094 -program-transform-name=* | --program-transform-name=* \ 1095 | --program-transform-nam=* | --program-transform-na=* \ 1096 | --program-transform-n=* | --program-transform-=* \ 1097 | --program-transform=* | --program-transfor=* \ 1098 | --program-transfo=* | --program-transf=* \ 1099 | --program-trans=* | --program-tran=* \ 1100 | --progr-tra=* | --program-tr=* | --program-t=*) 1101 program_transform_name=$ac_optarg ;; 1102 1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1104 ac_prev=pdfdir ;; 1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1106 pdfdir=$ac_optarg ;; 1107 1108 -psdir | --psdir | --psdi | --psd | --ps) 1109 ac_prev=psdir ;; 1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1111 psdir=$ac_optarg ;; 1112 1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1114 | -silent | --silent | --silen | --sile | --sil) 1115 silent=yes ;; 1116 1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1118 ac_prev=sbindir ;; 1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1120 | --sbi=* | --sb=*) 1121 sbindir=$ac_optarg ;; 1122 1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1125 | --sharedst | --shareds | --shared | --share | --shar \ 1126 | --sha | --sh) 1127 ac_prev=sharedstatedir ;; 1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1131 | --sha=* | --sh=*) 1132 sharedstatedir=$ac_optarg ;; 1133 1134 -site | --site | --sit) 1135 ac_prev=site ;; 1136 -site=* | --site=* | --sit=*) 1137 site=$ac_optarg ;; 1138 1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1140 ac_prev=srcdir ;; 1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1142 srcdir=$ac_optarg ;; 1143 1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1145 | --syscon | --sysco | --sysc | --sys | --sy) 1146 ac_prev=sysconfdir ;; 1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1149 sysconfdir=$ac_optarg ;; 1150 1151 -target | --target | --targe | --targ | --tar | --ta | --t) 1152 ac_prev=target_alias ;; 1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1154 target_alias=$ac_optarg ;; 1155 1156 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1157 verbose=yes ;; 1158 1159 -version | --version | --versio | --versi | --vers | -V) 1160 ac_init_version=: ;; 1161 1162 -with-* | --with-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: $ac_useropt" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=\$ac_optarg ;; 1177 1178 -without-* | --without-*) 1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1182 as_fn_error $? "invalid package name: $ac_useropt" 1183 ac_useropt_orig=$ac_useropt 1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1185 case $ac_user_opts in 1186 *" 1187"with_$ac_useropt" 1188"*) ;; 1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1190 ac_unrecognized_sep=', ';; 1191 esac 1192 eval with_$ac_useropt=no ;; 1193 1194 --x) 1195 # Obsolete; use --with-x. 1196 with_x=yes ;; 1197 1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1199 | --x-incl | --x-inc | --x-in | --x-i) 1200 ac_prev=x_includes ;; 1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1203 x_includes=$ac_optarg ;; 1204 1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1207 ac_prev=x_libraries ;; 1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1210 x_libraries=$ac_optarg ;; 1211 1212 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1213Try \`$0 --help' for more information" 1214 ;; 1215 1216 *=*) 1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1218 # Reject names that are not valid shell variable names. 1219 case $ac_envvar in #( 1220 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1222 esac 1223 eval $ac_envvar=\$ac_optarg 1224 export $ac_envvar ;; 1225 1226 *) 1227 # FIXME: should be removed in autoconf 3.0. 1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1232 ;; 1233 1234 esac 1235done 1236 1237if test -n "$ac_prev"; then 1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1239 as_fn_error $? "missing argument to $ac_option" 1240fi 1241 1242if test -n "$ac_unrecognized_opts"; then 1243 case $enable_option_checking in 1244 no) ;; 1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1247 esac 1248fi 1249 1250# Check all directory arguments for consistency. 1251for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1252 datadir sysconfdir sharedstatedir localstatedir includedir \ 1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1254 libdir localedir mandir 1255do 1256 eval ac_val=\$$ac_var 1257 # Remove trailing slashes. 1258 case $ac_val in 1259 */ ) 1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1261 eval $ac_var=\$ac_val;; 1262 esac 1263 # Be sure to have absolute directory names. 1264 case $ac_val in 1265 [\\/$]* | ?:[\\/]* ) continue;; 1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1267 esac 1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1269done 1270 1271# There might be people who depend on the old broken behavior: `$host' 1272# used to hold the argument of --host etc. 1273# FIXME: To remove some day. 1274build=$build_alias 1275host=$host_alias 1276target=$target_alias 1277 1278# FIXME: To remove some day. 1279if test "x$host_alias" != x; then 1280 if test "x$build_alias" = x; then 1281 cross_compiling=maybe 1282 elif test "x$build_alias" != "x$host_alias"; then 1283 cross_compiling=yes 1284 fi 1285fi 1286 1287ac_tool_prefix= 1288test -n "$host_alias" && ac_tool_prefix=$host_alias- 1289 1290test "$silent" = yes && exec 6>/dev/null 1291 1292 1293ac_pwd=`pwd` && test -n "$ac_pwd" && 1294ac_ls_di=`ls -di .` && 1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1296 as_fn_error $? "working directory cannot be determined" 1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1298 as_fn_error $? "pwd does not report name of working directory" 1299 1300 1301# Find the source files, if location was not specified. 1302if test -z "$srcdir"; then 1303 ac_srcdir_defaulted=yes 1304 # Try the directory containing this script, then the parent directory. 1305 ac_confdir=`$as_dirname -- "$as_myself" || 1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1307 X"$as_myself" : 'X\(//\)[^/]' \| \ 1308 X"$as_myself" : 'X\(//\)$' \| \ 1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1310$as_echo X"$as_myself" | 1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\/\)[^/].*/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\/\)$/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\).*/{ 1324 s//\1/ 1325 q 1326 } 1327 s/.*/./; q'` 1328 srcdir=$ac_confdir 1329 if test ! -r "$srcdir/$ac_unique_file"; then 1330 srcdir=.. 1331 fi 1332else 1333 ac_srcdir_defaulted=no 1334fi 1335if test ! -r "$srcdir/$ac_unique_file"; then 1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1338fi 1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1340ac_abs_confdir=`( 1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1342 pwd)` 1343# When building in place, set srcdir=. 1344if test "$ac_abs_confdir" = "$ac_pwd"; then 1345 srcdir=. 1346fi 1347# Remove unnecessary trailing slashes from srcdir. 1348# Double slashes in file names in object file debugging info 1349# mess up M-x gdb in Emacs. 1350case $srcdir in 1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1352esac 1353for ac_var in $ac_precious_vars; do 1354 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_env_${ac_var}_value=\$${ac_var} 1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1357 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1358done 1359 1360# 1361# Report the --help message. 1362# 1363if test "$ac_init_help" = "long"; then 1364 # Omit some internal or obsolete options to make the list less imposing. 1365 # This message is too long to be a string in the A/UX 3.1 sh. 1366 cat <<_ACEOF 1367\`configure' configures ldns 1.6.17 to adapt to many kinds of systems. 1368 1369Usage: $0 [OPTION]... [VAR=VALUE]... 1370 1371To assign environment variables (e.g., CC, CFLAGS...), specify them as 1372VAR=VALUE. See below for descriptions of some of the useful variables. 1373 1374Defaults for the options are specified in brackets. 1375 1376Configuration: 1377 -h, --help display this help and exit 1378 --help=short display options specific to this package 1379 --help=recursive display the short help of all the included packages 1380 -V, --version display version information and exit 1381 -q, --quiet, --silent do not print \`checking ...' messages 1382 --cache-file=FILE cache test results in FILE [disabled] 1383 -C, --config-cache alias for \`--cache-file=config.cache' 1384 -n, --no-create do not create output files 1385 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1386 1387Installation directories: 1388 --prefix=PREFIX install architecture-independent files in PREFIX 1389 [$ac_default_prefix] 1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1391 [PREFIX] 1392 1393By default, \`make install' will install all the files in 1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1395an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1396for instance \`--prefix=\$HOME'. 1397 1398For better control, use the options below. 1399 1400Fine tuning of the installation directories: 1401 --bindir=DIR user executables [EPREFIX/bin] 1402 --sbindir=DIR system admin executables [EPREFIX/sbin] 1403 --libexecdir=DIR program executables [EPREFIX/libexec] 1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1407 --libdir=DIR object code libraries [EPREFIX/lib] 1408 --includedir=DIR C header files [PREFIX/include] 1409 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1412 --infodir=DIR info documentation [DATAROOTDIR/info] 1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1414 --mandir=DIR man documentation [DATAROOTDIR/man] 1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns] 1416 --htmldir=DIR html documentation [DOCDIR] 1417 --dvidir=DIR dvi documentation [DOCDIR] 1418 --pdfdir=DIR pdf documentation [DOCDIR] 1419 --psdir=DIR ps documentation [DOCDIR] 1420_ACEOF 1421 1422 cat <<\_ACEOF 1423 1424System types: 1425 --build=BUILD configure for building on BUILD [guessed] 1426 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1427_ACEOF 1428fi 1429 1430if test -n "$ac_init_help"; then 1431 case $ac_init_help in 1432 short | recursive ) echo "Configuration of ldns 1.6.17:";; 1433 esac 1434 cat <<\_ACEOF 1435 1436Optional Features: 1437 --disable-option-checking ignore unrecognized --enable/--with options 1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1440 --enable-shared[=PKGS] build shared libraries [default=yes] 1441 --enable-static[=PKGS] build static libraries [default=yes] 1442 --enable-fast-install[=PKGS] 1443 optimize for fast installation [default=yes] 1444 --disable-libtool-lock avoid locking (might break parallel builds) 1445 --disable-ldns-config disable installation of ldns-config 1446 (default=enabled) 1447 --enable-stderr-msgs Enable printing to stderr (default=disabled) 1448 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1449 --disable-gost Disable GOST support 1450 --disable-ecdsa Disable ECDSA support 1451 --disable-dane Disable DANE support 1452 --enable-rrtype-ninfo Enable draft RR type ninfo. 1453 --enable-rrtype-rkey Enable draft RR type rkey. 1454 --enable-rrtype-cds Enable draft RR type cds. 1455 --enable-rrtype-uri Enable draft RR type uri. 1456 --enable-rrtype-ta Enable draft RR type ta. 1457 --disable-rpath disable hardcoded rpath (default=enabled) 1458 1459Optional Packages: 1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1463 both] 1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1465 --with-sysroot=DIR Search for dependent libraries within DIR 1466 (or the compiler's sysroot if not specified). 1467 --with-drill Also build drill. 1468 --with-examples Also build examples. 1469 --with-pyldns generate python library, or --without-pyldns to 1470 disable Python support. 1471 --without-pyldnsx Do not install the ldnsx python module, or 1472 --with-pyldnsx to install it. 1473 --with-p5-dns-ldns generate DNS::LDNS perl bindings 1474 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1475 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1476 /usr) 1477 --with-trust-anchor=KEYFILE 1478 Default location of the trust anchor file for drill 1479 and ldns-dane. [default=SYSCONFDIR/unbound/root.key] 1480 --with-ca-file=CAFILE File containing CA certificates for ldns-dane 1481 --with-ca-path=CAPATH Directory containing CA certificate files for 1482 ldns-dane 1483 1484Some influential environment variables: 1485 CC C compiler command 1486 CFLAGS C compiler flags 1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1488 nonstandard directory <lib dir> 1489 LIBS libraries to pass to the linker, e.g. -l<library> 1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1491 you have headers in a nonstandard directory <include dir> 1492 CPP C preprocessor 1493 PYTHON_VERSION 1494 The installed Python version to use, for example '2.3'. This 1495 string will be appended to the Python interpreter canonical 1496 name. 1497 1498Use these variables to override the choices made by `configure' or to help 1499it to find libraries and programs with nonstandard names/locations. 1500 1501Report bugs to <libdns@nlnetlabs.nl>. 1502_ACEOF 1503ac_status=$? 1504fi 1505 1506if test "$ac_init_help" = "recursive"; then 1507 # If there are subdirs, report their specific --help. 1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1509 test -d "$ac_dir" || 1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1511 continue 1512 ac_builddir=. 1513 1514case "$ac_dir" in 1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516*) 1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1518 # A ".." for each directory in $ac_dir_suffix. 1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1520 case $ac_top_builddir_sub in 1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1523 esac ;; 1524esac 1525ac_abs_top_builddir=$ac_pwd 1526ac_abs_builddir=$ac_pwd$ac_dir_suffix 1527# for backward compatibility: 1528ac_top_builddir=$ac_top_build_prefix 1529 1530case $srcdir in 1531 .) # We are building in place. 1532 ac_srcdir=. 1533 ac_top_srcdir=$ac_top_builddir_sub 1534 ac_abs_top_srcdir=$ac_pwd ;; 1535 [\\/]* | ?:[\\/]* ) # Absolute name. 1536 ac_srcdir=$srcdir$ac_dir_suffix; 1537 ac_top_srcdir=$srcdir 1538 ac_abs_top_srcdir=$srcdir ;; 1539 *) # Relative name. 1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1541 ac_top_srcdir=$ac_top_build_prefix$srcdir 1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1543esac 1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1545 1546 cd "$ac_dir" || { ac_status=$?; continue; } 1547 # Check for guested configure. 1548 if test -f "$ac_srcdir/configure.gnu"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1551 elif test -f "$ac_srcdir/configure"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure" --help=recursive 1554 else 1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1556 fi || ac_status=$? 1557 cd "$ac_pwd" || { ac_status=$?; break; } 1558 done 1559fi 1560 1561test -n "$ac_init_help" && exit $ac_status 1562if $ac_init_version; then 1563 cat <<\_ACEOF 1564ldns configure 1.6.17 1565generated by GNU Autoconf 2.69 1566 1567Copyright (C) 2012 Free Software Foundation, Inc. 1568This configure script is free software; the Free Software Foundation 1569gives unlimited permission to copy, distribute and modify it. 1570_ACEOF 1571 exit 1572fi 1573 1574## ------------------------ ## 1575## Autoconf initialization. ## 1576## ------------------------ ## 1577 1578# ac_fn_c_try_compile LINENO 1579# -------------------------- 1580# Try to compile conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_compile () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 rm -f conftest.$ac_objext 1585 if { { ac_try="$ac_compile" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_compile") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } && { 1601 test -z "$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 } && test -s conftest.$ac_objext; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_compile 1615 1616# ac_fn_c_try_cpp LINENO 1617# ---------------------- 1618# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_c_try_cpp () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 if { { ac_try="$ac_cpp conftest.$ac_ext" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628$as_echo "$ac_try_echo"; } >&5 1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } > conftest.i && { 1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 }; then : 1641 ac_retval=0 1642else 1643 $as_echo "$as_me: failed program was:" >&5 1644sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647fi 1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1649 as_fn_set_status $ac_retval 1650 1651} # ac_fn_c_try_cpp 1652 1653# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1654# ------------------------------------------------------- 1655# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1656# the include files in INCLUDES and setting the cache variable VAR 1657# accordingly. 1658ac_fn_c_check_header_mongrel () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 if eval \${$3+:} false; then : 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663$as_echo_n "checking for $2... " >&6; } 1664if eval \${$3+:} false; then : 1665 $as_echo_n "(cached) " >&6 1666fi 1667eval ac_res=\$$3 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1669$as_echo "$ac_res" >&6; } 1670else 1671 # Is the header compilable? 1672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1673$as_echo_n "checking $2 usability... " >&6; } 1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676$4 1677#include <$2> 1678_ACEOF 1679if ac_fn_c_try_compile "$LINENO"; then : 1680 ac_header_compiler=yes 1681else 1682 ac_header_compiler=no 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1686$as_echo "$ac_header_compiler" >&6; } 1687 1688# Is the header present? 1689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1690$as_echo_n "checking $2 presence... " >&6; } 1691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1692/* end confdefs.h. */ 1693#include <$2> 1694_ACEOF 1695if ac_fn_c_try_cpp "$LINENO"; then : 1696 ac_header_preproc=yes 1697else 1698 ac_header_preproc=no 1699fi 1700rm -f conftest.err conftest.i conftest.$ac_ext 1701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1702$as_echo "$ac_header_preproc" >&6; } 1703 1704# So? What about this header? 1705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1706 yes:no: ) 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1708$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1710$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1711 ;; 1712 no:yes:* ) 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1714$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1716$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1718$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1720$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1722$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1723( $as_echo "## ---------------------------------- ## 1724## Report this to libdns@nlnetlabs.nl ## 1725## ---------------------------------- ##" 1726 ) | sed "s/^/$as_me: WARNING: /" >&2 1727 ;; 1728esac 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 eval "$3=\$ac_header_compiler" 1735fi 1736eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738$as_echo "$ac_res" >&6; } 1739fi 1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1741 1742} # ac_fn_c_check_header_mongrel 1743 1744# ac_fn_c_try_run LINENO 1745# ---------------------- 1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1747# that executables *can* be run. 1748ac_fn_c_try_run () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 if { { ac_try="$ac_link" 1752case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_link") 2>&5 1759 ac_status=$? 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1762 { { case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_try") 2>&5 1769 ac_status=$? 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; }; }; then : 1772 ac_retval=0 1773else 1774 $as_echo "$as_me: program exited with status $ac_status" >&5 1775 $as_echo "$as_me: failed program was:" >&5 1776sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=$ac_status 1779fi 1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 as_fn_set_status $ac_retval 1783 1784} # ac_fn_c_try_run 1785 1786# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1787# ------------------------------------------------------- 1788# Tests whether HEADER exists and can be compiled using the include files in 1789# INCLUDES, setting the cache variable VAR accordingly. 1790ac_fn_c_check_header_compile () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if eval \${$3+:} false; then : 1796 $as_echo_n "(cached) " >&6 1797else 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800$4 1801#include <$2> 1802_ACEOF 1803if ac_fn_c_try_compile "$LINENO"; then : 1804 eval "$3=yes" 1805else 1806 eval "$3=no" 1807fi 1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809fi 1810eval ac_res=\$$3 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812$as_echo "$ac_res" >&6; } 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 1815} # ac_fn_c_check_header_compile 1816 1817# ac_fn_c_try_link LINENO 1818# ----------------------- 1819# Try to link conftest.$ac_ext, and return whether this succeeded. 1820ac_fn_c_try_link () 1821{ 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 rm -f conftest.$ac_objext conftest$ac_exeext 1824 if { { ac_try="$ac_link" 1825case "(($ac_try" in 1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1827 *) ac_try_echo=$ac_try;; 1828esac 1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1830$as_echo "$ac_try_echo"; } >&5 1831 (eval "$ac_link") 2>conftest.err 1832 ac_status=$? 1833 if test -s conftest.err; then 1834 grep -v '^ *+' conftest.err >conftest.er1 1835 cat conftest.er1 >&5 1836 mv -f conftest.er1 conftest.err 1837 fi 1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1839 test $ac_status = 0; } && { 1840 test -z "$ac_c_werror_flag" || 1841 test ! -s conftest.err 1842 } && test -s conftest$ac_exeext && { 1843 test "$cross_compiling" = yes || 1844 test -x conftest$ac_exeext 1845 }; then : 1846 ac_retval=0 1847else 1848 $as_echo "$as_me: failed program was:" >&5 1849sed 's/^/| /' conftest.$ac_ext >&5 1850 1851 ac_retval=1 1852fi 1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1855 # interfere with the next link command; also delete a directory that is 1856 # left behind by Apple's compiler. We do this before executing the actions. 1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861} # ac_fn_c_try_link 1862 1863# ac_fn_c_check_func LINENO FUNC VAR 1864# ---------------------------------- 1865# Tests whether FUNC exists, setting the cache variable VAR accordingly 1866ac_fn_c_check_func () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1870$as_echo_n "checking for $2... " >&6; } 1871if eval \${$3+:} false; then : 1872 $as_echo_n "(cached) " >&6 1873else 1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1875/* end confdefs.h. */ 1876/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1878#define $2 innocuous_$2 1879 1880/* System header to define __stub macros and hopefully few prototypes, 1881 which can conflict with char $2 (); below. 1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1883 <limits.h> exists even on freestanding compilers. */ 1884 1885#ifdef __STDC__ 1886# include <limits.h> 1887#else 1888# include <assert.h> 1889#endif 1890 1891#undef $2 1892 1893/* Override any GCC internal prototype to avoid an error. 1894 Use char because int might match the return type of a GCC 1895 builtin and then its argument prototype would still apply. */ 1896#ifdef __cplusplus 1897extern "C" 1898#endif 1899char $2 (); 1900/* The GNU C library defines this for functions which it implements 1901 to always fail with ENOSYS. Some functions are actually named 1902 something starting with __ and the normal name is an alias. */ 1903#if defined __stub_$2 || defined __stub___$2 1904choke me 1905#endif 1906 1907int 1908main () 1909{ 1910return $2 (); 1911 ; 1912 return 0; 1913} 1914_ACEOF 1915if ac_fn_c_try_link "$LINENO"; then : 1916 eval "$3=yes" 1917else 1918 eval "$3=no" 1919fi 1920rm -f core conftest.err conftest.$ac_objext \ 1921 conftest$ac_exeext conftest.$ac_ext 1922fi 1923eval ac_res=\$$3 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1925$as_echo "$ac_res" >&6; } 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 1928} # ac_fn_c_check_func 1929 1930# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1931# ------------------------------------------- 1932# Tests whether TYPE exists after having included INCLUDES, setting cache 1933# variable VAR accordingly. 1934ac_fn_c_check_type () 1935{ 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1938$as_echo_n "checking for $2... " >&6; } 1939if eval \${$3+:} false; then : 1940 $as_echo_n "(cached) " >&6 1941else 1942 eval "$3=no" 1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1944/* end confdefs.h. */ 1945$4 1946int 1947main () 1948{ 1949if (sizeof ($2)) 1950 return 0; 1951 ; 1952 return 0; 1953} 1954_ACEOF 1955if ac_fn_c_try_compile "$LINENO"; then : 1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958$4 1959int 1960main () 1961{ 1962if (sizeof (($2))) 1963 return 0; 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968if ac_fn_c_try_compile "$LINENO"; then : 1969 1970else 1971 eval "$3=yes" 1972fi 1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1974fi 1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976fi 1977eval ac_res=\$$3 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1979$as_echo "$ac_res" >&6; } 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 1982} # ac_fn_c_check_type 1983 1984# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1985# --------------------------------------------- 1986# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1987# accordingly. 1988ac_fn_c_check_decl () 1989{ 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 as_decl_name=`echo $2|sed 's/ *(.*//'` 1992 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1994$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1995if eval \${$3+:} false; then : 1996 $as_echo_n "(cached) " >&6 1997else 1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1999/* end confdefs.h. */ 2000$4 2001int 2002main () 2003{ 2004#ifndef $as_decl_name 2005#ifdef __cplusplus 2006 (void) $as_decl_use; 2007#else 2008 (void) $as_decl_name; 2009#endif 2010#endif 2011 2012 ; 2013 return 0; 2014} 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO"; then : 2017 eval "$3=yes" 2018else 2019 eval "$3=no" 2020fi 2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2022fi 2023eval ac_res=\$$3 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2025$as_echo "$ac_res" >&6; } 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 2028} # ac_fn_c_check_decl 2029 2030# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2031# -------------------------------------------- 2032# Tries to find the compile-time value of EXPR in a program that includes 2033# INCLUDES, setting VAR accordingly. Returns whether the value could be 2034# computed 2035ac_fn_c_compute_int () 2036{ 2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2038 if test "$cross_compiling" = yes; then 2039 # Depending upon the size, compute the lo and hi bounds. 2040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041/* end confdefs.h. */ 2042$4 2043int 2044main () 2045{ 2046static int test_array [1 - 2 * !(($2) >= 0)]; 2047test_array [0] = 0; 2048return test_array [0]; 2049 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 ac_lo=0 ac_mid=0 2056 while :; do 2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2058/* end confdefs.h. */ 2059$4 2060int 2061main () 2062{ 2063static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2064test_array [0] = 0; 2065return test_array [0]; 2066 2067 ; 2068 return 0; 2069} 2070_ACEOF 2071if ac_fn_c_try_compile "$LINENO"; then : 2072 ac_hi=$ac_mid; break 2073else 2074 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2075 if test $ac_lo -le $ac_mid; then 2076 ac_lo= ac_hi= 2077 break 2078 fi 2079 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082 done 2083else 2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2085/* end confdefs.h. */ 2086$4 2087int 2088main () 2089{ 2090static int test_array [1 - 2 * !(($2) < 0)]; 2091test_array [0] = 0; 2092return test_array [0]; 2093 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_c_try_compile "$LINENO"; then : 2099 ac_hi=-1 ac_mid=-1 2100 while :; do 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2102/* end confdefs.h. */ 2103$4 2104int 2105main () 2106{ 2107static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2108test_array [0] = 0; 2109return test_array [0]; 2110 2111 ; 2112 return 0; 2113} 2114_ACEOF 2115if ac_fn_c_try_compile "$LINENO"; then : 2116 ac_lo=$ac_mid; break 2117else 2118 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2119 if test $ac_mid -le $ac_hi; then 2120 ac_lo= ac_hi= 2121 break 2122 fi 2123 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2124fi 2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2126 done 2127else 2128 ac_lo= ac_hi= 2129fi 2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2131fi 2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2133# Binary search between lo and hi bounds. 2134while test "x$ac_lo" != "x$ac_hi"; do 2135 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2137/* end confdefs.h. */ 2138$4 2139int 2140main () 2141{ 2142static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2143test_array [0] = 0; 2144return test_array [0]; 2145 2146 ; 2147 return 0; 2148} 2149_ACEOF 2150if ac_fn_c_try_compile "$LINENO"; then : 2151 ac_hi=$ac_mid 2152else 2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2154fi 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156done 2157case $ac_lo in #(( 2158?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2159'') ac_retval=1 ;; 2160esac 2161 else 2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2163/* end confdefs.h. */ 2164$4 2165static long int longval () { return $2; } 2166static unsigned long int ulongval () { return $2; } 2167#include <stdio.h> 2168#include <stdlib.h> 2169int 2170main () 2171{ 2172 2173 FILE *f = fopen ("conftest.val", "w"); 2174 if (! f) 2175 return 1; 2176 if (($2) < 0) 2177 { 2178 long int i = longval (); 2179 if (i != ($2)) 2180 return 1; 2181 fprintf (f, "%ld", i); 2182 } 2183 else 2184 { 2185 unsigned long int i = ulongval (); 2186 if (i != ($2)) 2187 return 1; 2188 fprintf (f, "%lu", i); 2189 } 2190 /* Do not output a trailing newline, as this causes \r\n confusion 2191 on some platforms. */ 2192 return ferror (f) || fclose (f) != 0; 2193 2194 ; 2195 return 0; 2196} 2197_ACEOF 2198if ac_fn_c_try_run "$LINENO"; then : 2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2200else 2201 ac_retval=1 2202fi 2203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2204 conftest.$ac_objext conftest.beam conftest.$ac_ext 2205rm -f conftest.val 2206 2207 fi 2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2209 as_fn_set_status $ac_retval 2210 2211} # ac_fn_c_compute_int 2212 2213# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2214# ---------------------------------------------------- 2215# Tries to find if the field MEMBER exists in type AGGR, after including 2216# INCLUDES, setting cache variable VAR accordingly. 2217ac_fn_c_check_member () 2218{ 2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2221$as_echo_n "checking for $2.$3... " >&6; } 2222if eval \${$4+:} false; then : 2223 $as_echo_n "(cached) " >&6 2224else 2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2226/* end confdefs.h. */ 2227$5 2228int 2229main () 2230{ 2231static $2 ac_aggr; 2232if (ac_aggr.$3) 2233return 0; 2234 ; 2235 return 0; 2236} 2237_ACEOF 2238if ac_fn_c_try_compile "$LINENO"; then : 2239 eval "$4=yes" 2240else 2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2242/* end confdefs.h. */ 2243$5 2244int 2245main () 2246{ 2247static $2 ac_aggr; 2248if (sizeof ac_aggr.$3) 2249return 0; 2250 ; 2251 return 0; 2252} 2253_ACEOF 2254if ac_fn_c_try_compile "$LINENO"; then : 2255 eval "$4=yes" 2256else 2257 eval "$4=no" 2258fi 2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2260fi 2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2262fi 2263eval ac_res=\$$4 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2265$as_echo "$ac_res" >&6; } 2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2267 2268} # ac_fn_c_check_member 2269cat >config.log <<_ACEOF 2270This file contains any messages produced by compilers while 2271running configure, to aid debugging if configure makes a mistake. 2272 2273It was created by ldns $as_me 1.6.17, which was 2274generated by GNU Autoconf 2.69. Invocation command line was 2275 2276 $ $0 $@ 2277 2278_ACEOF 2279exec 5>>config.log 2280{ 2281cat <<_ASUNAME 2282## --------- ## 2283## Platform. ## 2284## --------- ## 2285 2286hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2287uname -m = `(uname -m) 2>/dev/null || echo unknown` 2288uname -r = `(uname -r) 2>/dev/null || echo unknown` 2289uname -s = `(uname -s) 2>/dev/null || echo unknown` 2290uname -v = `(uname -v) 2>/dev/null || echo unknown` 2291 2292/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2293/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2294 2295/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2296/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2297/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2298/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2299/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2300/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2301/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2302 2303_ASUNAME 2304 2305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2306for as_dir in $PATH 2307do 2308 IFS=$as_save_IFS 2309 test -z "$as_dir" && as_dir=. 2310 $as_echo "PATH: $as_dir" 2311 done 2312IFS=$as_save_IFS 2313 2314} >&5 2315 2316cat >&5 <<_ACEOF 2317 2318 2319## ----------- ## 2320## Core tests. ## 2321## ----------- ## 2322 2323_ACEOF 2324 2325 2326# Keep a trace of the command line. 2327# Strip out --no-create and --no-recursion so they do not pile up. 2328# Strip out --silent because we don't want to record it for future runs. 2329# Also quote any args containing shell meta-characters. 2330# Make two passes to allow for proper duplicate-argument suppression. 2331ac_configure_args= 2332ac_configure_args0= 2333ac_configure_args1= 2334ac_must_keep_next=false 2335for ac_pass in 1 2 2336do 2337 for ac_arg 2338 do 2339 case $ac_arg in 2340 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2342 | -silent | --silent | --silen | --sile | --sil) 2343 continue ;; 2344 *\'*) 2345 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2346 esac 2347 case $ac_pass in 2348 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2349 2) 2350 as_fn_append ac_configure_args1 " '$ac_arg'" 2351 if test $ac_must_keep_next = true; then 2352 ac_must_keep_next=false # Got value, back to normal. 2353 else 2354 case $ac_arg in 2355 *=* | --config-cache | -C | -disable-* | --disable-* \ 2356 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2357 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2358 | -with-* | --with-* | -without-* | --without-* | --x) 2359 case "$ac_configure_args0 " in 2360 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2361 esac 2362 ;; 2363 -* ) ac_must_keep_next=true ;; 2364 esac 2365 fi 2366 as_fn_append ac_configure_args " '$ac_arg'" 2367 ;; 2368 esac 2369 done 2370done 2371{ ac_configure_args0=; unset ac_configure_args0;} 2372{ ac_configure_args1=; unset ac_configure_args1;} 2373 2374# When interrupted or exit'd, cleanup temporary files, and complete 2375# config.log. We remove comments because anyway the quotes in there 2376# would cause problems or look ugly. 2377# WARNING: Use '\'' to represent an apostrophe within the trap. 2378# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2379trap 'exit_status=$? 2380 # Save into config.log some information that might help in debugging. 2381 { 2382 echo 2383 2384 $as_echo "## ---------------- ## 2385## Cache variables. ## 2386## ---------------- ##" 2387 echo 2388 # The following way of writing the cache mishandles newlines in values, 2389( 2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2391 eval ac_val=\$$ac_var 2392 case $ac_val in #( 2393 *${as_nl}*) 2394 case $ac_var in #( 2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2396$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2397 esac 2398 case $ac_var in #( 2399 _ | IFS | as_nl) ;; #( 2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2401 *) { eval $ac_var=; unset $ac_var;} ;; 2402 esac ;; 2403 esac 2404 done 2405 (set) 2>&1 | 2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2407 *${as_nl}ac_space=\ *) 2408 sed -n \ 2409 "s/'\''/'\''\\\\'\'''\''/g; 2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2411 ;; #( 2412 *) 2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2414 ;; 2415 esac | 2416 sort 2417) 2418 echo 2419 2420 $as_echo "## ----------------- ## 2421## Output variables. ## 2422## ----------------- ##" 2423 echo 2424 for ac_var in $ac_subst_vars 2425 do 2426 eval ac_val=\$$ac_var 2427 case $ac_val in 2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2429 esac 2430 $as_echo "$ac_var='\''$ac_val'\''" 2431 done | sort 2432 echo 2433 2434 if test -n "$ac_subst_files"; then 2435 $as_echo "## ------------------- ## 2436## File substitutions. ## 2437## ------------------- ##" 2438 echo 2439 for ac_var in $ac_subst_files 2440 do 2441 eval ac_val=\$$ac_var 2442 case $ac_val in 2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2444 esac 2445 $as_echo "$ac_var='\''$ac_val'\''" 2446 done | sort 2447 echo 2448 fi 2449 2450 if test -s confdefs.h; then 2451 $as_echo "## ----------- ## 2452## confdefs.h. ## 2453## ----------- ##" 2454 echo 2455 cat confdefs.h 2456 echo 2457 fi 2458 test "$ac_signal" != 0 && 2459 $as_echo "$as_me: caught signal $ac_signal" 2460 $as_echo "$as_me: exit $exit_status" 2461 } >&5 2462 rm -f core *.core core.conftest.* && 2463 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2464 exit $exit_status 2465' 0 2466for ac_signal in 1 2 13 15; do 2467 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2468done 2469ac_signal=0 2470 2471# confdefs.h avoids OS command line length limits that DEFS can exceed. 2472rm -f -r conftest* confdefs.h 2473 2474$as_echo "/* confdefs.h */" > confdefs.h 2475 2476# Predefined preprocessor variables. 2477 2478cat >>confdefs.h <<_ACEOF 2479#define PACKAGE_NAME "$PACKAGE_NAME" 2480_ACEOF 2481 2482cat >>confdefs.h <<_ACEOF 2483#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2484_ACEOF 2485 2486cat >>confdefs.h <<_ACEOF 2487#define PACKAGE_VERSION "$PACKAGE_VERSION" 2488_ACEOF 2489 2490cat >>confdefs.h <<_ACEOF 2491#define PACKAGE_STRING "$PACKAGE_STRING" 2492_ACEOF 2493 2494cat >>confdefs.h <<_ACEOF 2495#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2496_ACEOF 2497 2498cat >>confdefs.h <<_ACEOF 2499#define PACKAGE_URL "$PACKAGE_URL" 2500_ACEOF 2501 2502 2503# Let the site file select an alternate cache file if it wants to. 2504# Prefer an explicitly selected file to automatically selected ones. 2505ac_site_file1=NONE 2506ac_site_file2=NONE 2507if test -n "$CONFIG_SITE"; then 2508 # We do not want a PATH search for config.site. 2509 case $CONFIG_SITE in #(( 2510 -*) ac_site_file1=./$CONFIG_SITE;; 2511 */*) ac_site_file1=$CONFIG_SITE;; 2512 *) ac_site_file1=./$CONFIG_SITE;; 2513 esac 2514elif test "x$prefix" != xNONE; then 2515 ac_site_file1=$prefix/share/config.site 2516 ac_site_file2=$prefix/etc/config.site 2517else 2518 ac_site_file1=$ac_default_prefix/share/config.site 2519 ac_site_file2=$ac_default_prefix/etc/config.site 2520fi 2521for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2522do 2523 test "x$ac_site_file" = xNONE && continue 2524 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2526$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2527 sed 's/^/| /' "$ac_site_file" >&5 2528 . "$ac_site_file" \ 2529 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2531as_fn_error $? "failed to load site script $ac_site_file 2532See \`config.log' for more details" "$LINENO" 5; } 2533 fi 2534done 2535 2536if test -r "$cache_file"; then 2537 # Some versions of bash will fail to source /dev/null (special files 2538 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2539 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2541$as_echo "$as_me: loading cache $cache_file" >&6;} 2542 case $cache_file in 2543 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2544 *) . "./$cache_file";; 2545 esac 2546 fi 2547else 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2549$as_echo "$as_me: creating cache $cache_file" >&6;} 2550 >$cache_file 2551fi 2552 2553# Check that the precious variables saved in the cache have kept the same 2554# value. 2555ac_cache_corrupted=false 2556for ac_var in $ac_precious_vars; do 2557 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2558 eval ac_new_set=\$ac_env_${ac_var}_set 2559 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2560 eval ac_new_val=\$ac_env_${ac_var}_value 2561 case $ac_old_set,$ac_new_set in 2562 set,) 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2564$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2565 ac_cache_corrupted=: ;; 2566 ,set) 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2568$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2569 ac_cache_corrupted=: ;; 2570 ,);; 2571 *) 2572 if test "x$ac_old_val" != "x$ac_new_val"; then 2573 # differences in whitespace do not lead to failure. 2574 ac_old_val_w=`echo x $ac_old_val` 2575 ac_new_val_w=`echo x $ac_new_val` 2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2578$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2579 ac_cache_corrupted=: 2580 else 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2582$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2583 eval $ac_var=\$ac_old_val 2584 fi 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2586$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2588$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2589 fi;; 2590 esac 2591 # Pass precious variables to config.status. 2592 if test "$ac_new_set" = set; then 2593 case $ac_new_val in 2594 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2595 *) ac_arg=$ac_var=$ac_new_val ;; 2596 esac 2597 case " $ac_configure_args " in 2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2599 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2600 esac 2601 fi 2602done 2603if $ac_cache_corrupted; then 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2607$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2608 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2609fi 2610## -------------------- ## 2611## Main body of script. ## 2612## -------------------- ## 2613 2614ac_ext=c 2615ac_cpp='$CPP $CPPFLAGS' 2616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2618ac_compiler_gnu=$ac_cv_c_compiler_gnu 2619 2620 2621 2622# needed to build correct soname 2623LDNS_VERSION_MAJOR=1 2624 2625LDNS_VERSION_MINOR=6 2626 2627LDNS_VERSION_MICRO=17 2628 2629VERSION_INFO=1:6:17 2630 2631 2632ac_ext=c 2633ac_cpp='$CPP $CPPFLAGS' 2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2636ac_compiler_gnu=$ac_cv_c_compiler_gnu 2637if test -n "$ac_tool_prefix"; then 2638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2639set dummy ${ac_tool_prefix}gcc; ac_word=$2 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2641$as_echo_n "checking for $ac_word... " >&6; } 2642if ${ac_cv_prog_CC+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 if test -n "$CC"; then 2646 ac_cv_prog_CC="$CC" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2655 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660 done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665CC=$ac_cv_prog_CC 2666if test -n "$CC"; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2668$as_echo "$CC" >&6; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2671$as_echo "no" >&6; } 2672fi 2673 2674 2675fi 2676if test -z "$ac_cv_prog_CC"; then 2677 ac_ct_CC=$CC 2678 # Extract the first word of "gcc", so it can be a program name with args. 2679set dummy gcc; ac_word=$2 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2681$as_echo_n "checking for $ac_word... " >&6; } 2682if ${ac_cv_prog_ac_ct_CC+:} false; then : 2683 $as_echo_n "(cached) " >&6 2684else 2685 if test -n "$ac_ct_CC"; then 2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2687else 2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2695 ac_cv_prog_ac_ct_CC="gcc" 2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700 done 2701IFS=$as_save_IFS 2702 2703fi 2704fi 2705ac_ct_CC=$ac_cv_prog_ac_ct_CC 2706if test -n "$ac_ct_CC"; then 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2708$as_echo "$ac_ct_CC" >&6; } 2709else 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2711$as_echo "no" >&6; } 2712fi 2713 2714 if test "x$ac_ct_CC" = x; then 2715 CC="" 2716 else 2717 case $cross_compiling:$ac_tool_warned in 2718yes:) 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2721ac_tool_warned=yes ;; 2722esac 2723 CC=$ac_ct_CC 2724 fi 2725else 2726 CC="$ac_cv_prog_CC" 2727fi 2728 2729if test -z "$CC"; then 2730 if test -n "$ac_tool_prefix"; then 2731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2732set dummy ${ac_tool_prefix}cc; ac_word=$2 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2734$as_echo_n "checking for $ac_word... " >&6; } 2735if ${ac_cv_prog_CC+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 if test -n "$CC"; then 2739 ac_cv_prog_CC="$CC" # Let the user override the test. 2740else 2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2742for as_dir in $PATH 2743do 2744 IFS=$as_save_IFS 2745 test -z "$as_dir" && as_dir=. 2746 for ac_exec_ext in '' $ac_executable_extensions; do 2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2748 ac_cv_prog_CC="${ac_tool_prefix}cc" 2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2750 break 2 2751 fi 2752done 2753 done 2754IFS=$as_save_IFS 2755 2756fi 2757fi 2758CC=$ac_cv_prog_CC 2759if test -n "$CC"; then 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2761$as_echo "$CC" >&6; } 2762else 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2764$as_echo "no" >&6; } 2765fi 2766 2767 2768 fi 2769fi 2770if test -z "$CC"; then 2771 # Extract the first word of "cc", so it can be a program name with args. 2772set dummy cc; ac_word=$2 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2774$as_echo_n "checking for $ac_word... " >&6; } 2775if ${ac_cv_prog_CC+:} false; then : 2776 $as_echo_n "(cached) " >&6 2777else 2778 if test -n "$CC"; then 2779 ac_cv_prog_CC="$CC" # Let the user override the test. 2780else 2781 ac_prog_rejected=no 2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783for as_dir in $PATH 2784do 2785 IFS=$as_save_IFS 2786 test -z "$as_dir" && as_dir=. 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2790 ac_prog_rejected=yes 2791 continue 2792 fi 2793 ac_cv_prog_CC="cc" 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2795 break 2 2796 fi 2797done 2798 done 2799IFS=$as_save_IFS 2800 2801if test $ac_prog_rejected = yes; then 2802 # We found a bogon in the path, so make sure we never use it. 2803 set dummy $ac_cv_prog_CC 2804 shift 2805 if test $# != 0; then 2806 # We chose a different compiler from the bogus one. 2807 # However, it has the same basename, so the bogon will be chosen 2808 # first if we set CC to just the basename; use the full file name. 2809 shift 2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2811 fi 2812fi 2813fi 2814fi 2815CC=$ac_cv_prog_CC 2816if test -n "$CC"; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2818$as_echo "$CC" >&6; } 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822fi 2823 2824 2825fi 2826if test -z "$CC"; then 2827 if test -n "$ac_tool_prefix"; then 2828 for ac_prog in cl.exe 2829 do 2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2831set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2833$as_echo_n "checking for $ac_word... " >&6; } 2834if ${ac_cv_prog_CC+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 if test -n "$CC"; then 2838 ac_cv_prog_CC="$CC" # Let the user override the test. 2839else 2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2841for as_dir in $PATH 2842do 2843 IFS=$as_save_IFS 2844 test -z "$as_dir" && as_dir=. 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2849 break 2 2850 fi 2851done 2852 done 2853IFS=$as_save_IFS 2854 2855fi 2856fi 2857CC=$ac_cv_prog_CC 2858if test -n "$CC"; then 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2860$as_echo "$CC" >&6; } 2861else 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2863$as_echo "no" >&6; } 2864fi 2865 2866 2867 test -n "$CC" && break 2868 done 2869fi 2870if test -z "$CC"; then 2871 ac_ct_CC=$CC 2872 for ac_prog in cl.exe 2873do 2874 # Extract the first word of "$ac_prog", so it can be a program name with args. 2875set dummy $ac_prog; ac_word=$2 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2877$as_echo_n "checking for $ac_word... " >&6; } 2878if ${ac_cv_prog_ac_ct_CC+:} false; then : 2879 $as_echo_n "(cached) " >&6 2880else 2881 if test -n "$ac_ct_CC"; then 2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2883else 2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH 2886do 2887 IFS=$as_save_IFS 2888 test -z "$as_dir" && as_dir=. 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2891 ac_cv_prog_ac_ct_CC="$ac_prog" 2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896 done 2897IFS=$as_save_IFS 2898 2899fi 2900fi 2901ac_ct_CC=$ac_cv_prog_ac_ct_CC 2902if test -n "$ac_ct_CC"; then 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2904$as_echo "$ac_ct_CC" >&6; } 2905else 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2907$as_echo "no" >&6; } 2908fi 2909 2910 2911 test -n "$ac_ct_CC" && break 2912done 2913 2914 if test "x$ac_ct_CC" = x; then 2915 CC="" 2916 else 2917 case $cross_compiling:$ac_tool_warned in 2918yes:) 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2921ac_tool_warned=yes ;; 2922esac 2923 CC=$ac_ct_CC 2924 fi 2925fi 2926 2927fi 2928 2929 2930test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2932as_fn_error $? "no acceptable C compiler found in \$PATH 2933See \`config.log' for more details" "$LINENO" 5; } 2934 2935# Provide some information about the compiler. 2936$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2937set X $ac_compile 2938ac_compiler=$2 2939for ac_option in --version -v -V -qversion; do 2940 { { ac_try="$ac_compiler $ac_option >&5" 2941case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2946$as_echo "$ac_try_echo"; } >&5 2947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2948 ac_status=$? 2949 if test -s conftest.err; then 2950 sed '10a\ 2951... rest of stderr output deleted ... 2952 10q' conftest.err >conftest.er1 2953 cat conftest.er1 >&5 2954 fi 2955 rm -f conftest.er1 conftest.err 2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2957 test $ac_status = 0; } 2958done 2959 2960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2961/* end confdefs.h. */ 2962 2963int 2964main () 2965{ 2966 2967 ; 2968 return 0; 2969} 2970_ACEOF 2971ac_clean_files_save=$ac_clean_files 2972ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2973# Try to create an executable without -o first, disregard a.out. 2974# It will help us diagnose broken compilers, and finding out an intuition 2975# of exeext. 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2977$as_echo_n "checking whether the C compiler works... " >&6; } 2978ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2979 2980# The possible output files: 2981ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2982 2983ac_rmfiles= 2984for ac_file in $ac_files 2985do 2986 case $ac_file in 2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2989 esac 2990done 2991rm -f $ac_rmfiles 2992 2993if { { ac_try="$ac_link_default" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2999$as_echo "$ac_try_echo"; } >&5 3000 (eval "$ac_link_default") 2>&5 3001 ac_status=$? 3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3003 test $ac_status = 0; }; then : 3004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3005# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3006# in a Makefile. We should not override ac_cv_exeext if it was cached, 3007# so that the user can short-circuit this test for compilers unknown to 3008# Autoconf. 3009for ac_file in $ac_files '' 3010do 3011 test -f "$ac_file" || continue 3012 case $ac_file in 3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3014 ;; 3015 [ab].out ) 3016 # We found the default executable, but exeext='' is most 3017 # certainly right. 3018 break;; 3019 *.* ) 3020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3021 then :; else 3022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3023 fi 3024 # We set ac_cv_exeext here because the later test for it is not 3025 # safe: cross compilers may not add the suffix if given an `-o' 3026 # argument, so we may need to know it at that point already. 3027 # Even if this section looks crufty: it has the advantage of 3028 # actually working. 3029 break;; 3030 * ) 3031 break;; 3032 esac 3033done 3034test "$ac_cv_exeext" = no && ac_cv_exeext= 3035 3036else 3037 ac_file='' 3038fi 3039if test -z "$ac_file"; then : 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041$as_echo "no" >&6; } 3042$as_echo "$as_me: failed program was:" >&5 3043sed 's/^/| /' conftest.$ac_ext >&5 3044 3045{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3047as_fn_error 77 "C compiler cannot create executables 3048See \`config.log' for more details" "$LINENO" 5; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3051$as_echo "yes" >&6; } 3052fi 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3054$as_echo_n "checking for C compiler default output file name... " >&6; } 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3056$as_echo "$ac_file" >&6; } 3057ac_exeext=$ac_cv_exeext 3058 3059rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3060ac_clean_files=$ac_clean_files_save 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3062$as_echo_n "checking for suffix of executables... " >&6; } 3063if { { ac_try="$ac_link" 3064case "(($ac_try" in 3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3066 *) ac_try_echo=$ac_try;; 3067esac 3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3069$as_echo "$ac_try_echo"; } >&5 3070 (eval "$ac_link") 2>&5 3071 ac_status=$? 3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3073 test $ac_status = 0; }; then : 3074 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3075# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3076# work properly (i.e., refer to `conftest.exe'), while it won't with 3077# `rm'. 3078for ac_file in conftest.exe conftest conftest.*; do 3079 test -f "$ac_file" || continue 3080 case $ac_file in 3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3083 break;; 3084 * ) break;; 3085 esac 3086done 3087else 3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3090as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3091See \`config.log' for more details" "$LINENO" 5; } 3092fi 3093rm -f conftest conftest$ac_cv_exeext 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3095$as_echo "$ac_cv_exeext" >&6; } 3096 3097rm -f conftest.$ac_ext 3098EXEEXT=$ac_cv_exeext 3099ac_exeext=$EXEEXT 3100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101/* end confdefs.h. */ 3102#include <stdio.h> 3103int 3104main () 3105{ 3106FILE *f = fopen ("conftest.out", "w"); 3107 return ferror (f) || fclose (f) != 0; 3108 3109 ; 3110 return 0; 3111} 3112_ACEOF 3113ac_clean_files="$ac_clean_files conftest.out" 3114# Check that the compiler produces executables we can run. If not, either 3115# the compiler is broken, or we cross compile. 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3117$as_echo_n "checking whether we are cross compiling... " >&6; } 3118if test "$cross_compiling" != yes; then 3119 { { ac_try="$ac_link" 3120case "(($ac_try" in 3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3122 *) ac_try_echo=$ac_try;; 3123esac 3124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3125$as_echo "$ac_try_echo"; } >&5 3126 (eval "$ac_link") 2>&5 3127 ac_status=$? 3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3129 test $ac_status = 0; } 3130 if { ac_try='./conftest$ac_cv_exeext' 3131 { { case "(($ac_try" in 3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3133 *) ac_try_echo=$ac_try;; 3134esac 3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3136$as_echo "$ac_try_echo"; } >&5 3137 (eval "$ac_try") 2>&5 3138 ac_status=$? 3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3140 test $ac_status = 0; }; }; then 3141 cross_compiling=no 3142 else 3143 if test "$cross_compiling" = maybe; then 3144 cross_compiling=yes 3145 else 3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3148as_fn_error $? "cannot run C compiled programs. 3149If you meant to cross compile, use \`--host'. 3150See \`config.log' for more details" "$LINENO" 5; } 3151 fi 3152 fi 3153fi 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3155$as_echo "$cross_compiling" >&6; } 3156 3157rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3158ac_clean_files=$ac_clean_files_save 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3160$as_echo_n "checking for suffix of object files... " >&6; } 3161if ${ac_cv_objext+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163else 3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165/* end confdefs.h. */ 3166 3167int 3168main () 3169{ 3170 3171 ; 3172 return 0; 3173} 3174_ACEOF 3175rm -f conftest.o conftest.obj 3176if { { ac_try="$ac_compile" 3177case "(($ac_try" in 3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3179 *) ac_try_echo=$ac_try;; 3180esac 3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3182$as_echo "$ac_try_echo"; } >&5 3183 (eval "$ac_compile") 2>&5 3184 ac_status=$? 3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3186 test $ac_status = 0; }; then : 3187 for ac_file in conftest.o conftest.obj conftest.*; do 3188 test -f "$ac_file" || continue; 3189 case $ac_file in 3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3192 break;; 3193 esac 3194done 3195else 3196 $as_echo "$as_me: failed program was:" >&5 3197sed 's/^/| /' conftest.$ac_ext >&5 3198 3199{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3201as_fn_error $? "cannot compute suffix of object files: cannot compile 3202See \`config.log' for more details" "$LINENO" 5; } 3203fi 3204rm -f conftest.$ac_cv_objext conftest.$ac_ext 3205fi 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3207$as_echo "$ac_cv_objext" >&6; } 3208OBJEXT=$ac_cv_objext 3209ac_objext=$OBJEXT 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3211$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3212if ${ac_cv_c_compiler_gnu+:} false; then : 3213 $as_echo_n "(cached) " >&6 3214else 3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3216/* end confdefs.h. */ 3217 3218int 3219main () 3220{ 3221#ifndef __GNUC__ 3222 choke me 3223#endif 3224 3225 ; 3226 return 0; 3227} 3228_ACEOF 3229if ac_fn_c_try_compile "$LINENO"; then : 3230 ac_compiler_gnu=yes 3231else 3232 ac_compiler_gnu=no 3233fi 3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3235ac_cv_c_compiler_gnu=$ac_compiler_gnu 3236 3237fi 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3239$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3240if test $ac_compiler_gnu = yes; then 3241 GCC=yes 3242else 3243 GCC= 3244fi 3245ac_test_CFLAGS=${CFLAGS+set} 3246ac_save_CFLAGS=$CFLAGS 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3248$as_echo_n "checking whether $CC accepts -g... " >&6; } 3249if ${ac_cv_prog_cc_g+:} false; then : 3250 $as_echo_n "(cached) " >&6 3251else 3252 ac_save_c_werror_flag=$ac_c_werror_flag 3253 ac_c_werror_flag=yes 3254 ac_cv_prog_cc_g=no 3255 CFLAGS="-g" 3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257/* end confdefs.h. */ 3258 3259int 3260main () 3261{ 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267if ac_fn_c_try_compile "$LINENO"; then : 3268 ac_cv_prog_cc_g=yes 3269else 3270 CFLAGS="" 3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3272/* end confdefs.h. */ 3273 3274int 3275main () 3276{ 3277 3278 ; 3279 return 0; 3280} 3281_ACEOF 3282if ac_fn_c_try_compile "$LINENO"; then : 3283 3284else 3285 ac_c_werror_flag=$ac_save_c_werror_flag 3286 CFLAGS="-g" 3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3288/* end confdefs.h. */ 3289 3290int 3291main () 3292{ 3293 3294 ; 3295 return 0; 3296} 3297_ACEOF 3298if ac_fn_c_try_compile "$LINENO"; then : 3299 ac_cv_prog_cc_g=yes 3300fi 3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3302fi 3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3304fi 3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3306 ac_c_werror_flag=$ac_save_c_werror_flag 3307fi 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3309$as_echo "$ac_cv_prog_cc_g" >&6; } 3310if test "$ac_test_CFLAGS" = set; then 3311 CFLAGS=$ac_save_CFLAGS 3312elif test $ac_cv_prog_cc_g = yes; then 3313 if test "$GCC" = yes; then 3314 CFLAGS="-g -O2" 3315 else 3316 CFLAGS="-g" 3317 fi 3318else 3319 if test "$GCC" = yes; then 3320 CFLAGS="-O2" 3321 else 3322 CFLAGS= 3323 fi 3324fi 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3326$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3327if ${ac_cv_prog_cc_c89+:} false; then : 3328 $as_echo_n "(cached) " >&6 3329else 3330 ac_cv_prog_cc_c89=no 3331ac_save_CC=$CC 3332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3333/* end confdefs.h. */ 3334#include <stdarg.h> 3335#include <stdio.h> 3336struct stat; 3337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3338struct buf { int x; }; 3339FILE * (*rcsopen) (struct buf *, struct stat *, int); 3340static char *e (p, i) 3341 char **p; 3342 int i; 3343{ 3344 return p[i]; 3345} 3346static char *f (char * (*g) (char **, int), char **p, ...) 3347{ 3348 char *s; 3349 va_list v; 3350 va_start (v,p); 3351 s = g (p, va_arg (v,int)); 3352 va_end (v); 3353 return s; 3354} 3355 3356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3357 function prototypes and stuff, but not '\xHH' hex character constants. 3358 These don't provoke an error unfortunately, instead are silently treated 3359 as 'x'. The following induces an error, until -std is added to get 3360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3361 array size at least. It's necessary to write '\x00'==0 to get something 3362 that's true only with -std. */ 3363int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3364 3365/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3366 inside strings and character constants. */ 3367#define FOO(x) 'x' 3368int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3369 3370int test (int i, double x); 3371struct s1 {int (*f) (int a);}; 3372struct s2 {int (*f) (double a);}; 3373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3374int argc; 3375char **argv; 3376int 3377main () 3378{ 3379return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3386do 3387 CC="$ac_save_CC $ac_arg" 3388 if ac_fn_c_try_compile "$LINENO"; then : 3389 ac_cv_prog_cc_c89=$ac_arg 3390fi 3391rm -f core conftest.err conftest.$ac_objext 3392 test "x$ac_cv_prog_cc_c89" != "xno" && break 3393done 3394rm -f conftest.$ac_ext 3395CC=$ac_save_CC 3396 3397fi 3398# AC_CACHE_VAL 3399case "x$ac_cv_prog_cc_c89" in 3400 x) 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3402$as_echo "none needed" >&6; } ;; 3403 xno) 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3405$as_echo "unsupported" >&6; } ;; 3406 *) 3407 CC="$CC $ac_cv_prog_cc_c89" 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3409$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3410esac 3411if test "x$ac_cv_prog_cc_c89" != xno; then : 3412 3413fi 3414 3415ac_ext=c 3416ac_cpp='$CPP $CPPFLAGS' 3417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3419ac_compiler_gnu=$ac_cv_c_compiler_gnu 3420 3421 3422ac_ext=c 3423ac_cpp='$CPP $CPPFLAGS' 3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3426ac_compiler_gnu=$ac_cv_c_compiler_gnu 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3428$as_echo_n "checking how to run the C preprocessor... " >&6; } 3429# On Suns, sometimes $CPP names a directory. 3430if test -n "$CPP" && test -d "$CPP"; then 3431 CPP= 3432fi 3433if test -z "$CPP"; then 3434 if ${ac_cv_prog_CPP+:} false; then : 3435 $as_echo_n "(cached) " >&6 3436else 3437 # Double quotes because CPP needs to be expanded 3438 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3439 do 3440 ac_preproc_ok=false 3441for ac_c_preproc_warn_flag in '' yes 3442do 3443 # Use a header file that comes with gcc, so configuring glibc 3444 # with a fresh cross-compiler works. 3445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3446 # <limits.h> exists even on freestanding compilers. 3447 # On the NeXT, cc -E runs the code through the compiler's parser, 3448 # not just through cpp. "Syntax error" is here to catch this case. 3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3450/* end confdefs.h. */ 3451#ifdef __STDC__ 3452# include <limits.h> 3453#else 3454# include <assert.h> 3455#endif 3456 Syntax error 3457_ACEOF 3458if ac_fn_c_try_cpp "$LINENO"; then : 3459 3460else 3461 # Broken: fails on valid input. 3462continue 3463fi 3464rm -f conftest.err conftest.i conftest.$ac_ext 3465 3466 # OK, works on sane cases. Now check whether nonexistent headers 3467 # can be detected and how. 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470#include <ac_nonexistent.h> 3471_ACEOF 3472if ac_fn_c_try_cpp "$LINENO"; then : 3473 # Broken: success on invalid input. 3474continue 3475else 3476 # Passes both tests. 3477ac_preproc_ok=: 3478break 3479fi 3480rm -f conftest.err conftest.i conftest.$ac_ext 3481 3482done 3483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3484rm -f conftest.i conftest.err conftest.$ac_ext 3485if $ac_preproc_ok; then : 3486 break 3487fi 3488 3489 done 3490 ac_cv_prog_CPP=$CPP 3491 3492fi 3493 CPP=$ac_cv_prog_CPP 3494else 3495 ac_cv_prog_CPP=$CPP 3496fi 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3498$as_echo "$CPP" >&6; } 3499ac_preproc_ok=false 3500for ac_c_preproc_warn_flag in '' yes 3501do 3502 # Use a header file that comes with gcc, so configuring glibc 3503 # with a fresh cross-compiler works. 3504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3505 # <limits.h> exists even on freestanding compilers. 3506 # On the NeXT, cc -E runs the code through the compiler's parser, 3507 # not just through cpp. "Syntax error" is here to catch this case. 3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509/* end confdefs.h. */ 3510#ifdef __STDC__ 3511# include <limits.h> 3512#else 3513# include <assert.h> 3514#endif 3515 Syntax error 3516_ACEOF 3517if ac_fn_c_try_cpp "$LINENO"; then : 3518 3519else 3520 # Broken: fails on valid input. 3521continue 3522fi 3523rm -f conftest.err conftest.i conftest.$ac_ext 3524 3525 # OK, works on sane cases. Now check whether nonexistent headers 3526 # can be detected and how. 3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528/* end confdefs.h. */ 3529#include <ac_nonexistent.h> 3530_ACEOF 3531if ac_fn_c_try_cpp "$LINENO"; then : 3532 # Broken: success on invalid input. 3533continue 3534else 3535 # Passes both tests. 3536ac_preproc_ok=: 3537break 3538fi 3539rm -f conftest.err conftest.i conftest.$ac_ext 3540 3541done 3542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3543rm -f conftest.i conftest.err conftest.$ac_ext 3544if $ac_preproc_ok; then : 3545 3546else 3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3549as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3550See \`config.log' for more details" "$LINENO" 5; } 3551fi 3552 3553ac_ext=c 3554ac_cpp='$CPP $CPPFLAGS' 3555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3557ac_compiler_gnu=$ac_cv_c_compiler_gnu 3558 3559 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3561$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3562if ${ac_cv_path_GREP+:} false; then : 3563 $as_echo_n "(cached) " >&6 3564else 3565 if test -z "$GREP"; then 3566 ac_path_GREP_found=false 3567 # Loop through the user's path and test for each of PROGNAME-LIST 3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3569for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3570do 3571 IFS=$as_save_IFS 3572 test -z "$as_dir" && as_dir=. 3573 for ac_prog in grep ggrep; do 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3576 as_fn_executable_p "$ac_path_GREP" || continue 3577# Check for GNU ac_path_GREP and select it if it is found. 3578 # Check for GNU $ac_path_GREP 3579case `"$ac_path_GREP" --version 2>&1` in 3580*GNU*) 3581 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3582*) 3583 ac_count=0 3584 $as_echo_n 0123456789 >"conftest.in" 3585 while : 3586 do 3587 cat "conftest.in" "conftest.in" >"conftest.tmp" 3588 mv "conftest.tmp" "conftest.in" 3589 cp "conftest.in" "conftest.nl" 3590 $as_echo 'GREP' >> "conftest.nl" 3591 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3593 as_fn_arith $ac_count + 1 && ac_count=$as_val 3594 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3595 # Best one so far, save it but keep looking for a better one 3596 ac_cv_path_GREP="$ac_path_GREP" 3597 ac_path_GREP_max=$ac_count 3598 fi 3599 # 10*(2^10) chars as input seems more than enough 3600 test $ac_count -gt 10 && break 3601 done 3602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3603esac 3604 3605 $ac_path_GREP_found && break 3 3606 done 3607 done 3608 done 3609IFS=$as_save_IFS 3610 if test -z "$ac_cv_path_GREP"; then 3611 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3612 fi 3613else 3614 ac_cv_path_GREP=$GREP 3615fi 3616 3617fi 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3619$as_echo "$ac_cv_path_GREP" >&6; } 3620 GREP="$ac_cv_path_GREP" 3621 3622 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3624$as_echo_n "checking for egrep... " >&6; } 3625if ${ac_cv_path_EGREP+:} false; then : 3626 $as_echo_n "(cached) " >&6 3627else 3628 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3629 then ac_cv_path_EGREP="$GREP -E" 3630 else 3631 if test -z "$EGREP"; then 3632 ac_path_EGREP_found=false 3633 # Loop through the user's path and test for each of PROGNAME-LIST 3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3636do 3637 IFS=$as_save_IFS 3638 test -z "$as_dir" && as_dir=. 3639 for ac_prog in egrep; do 3640 for ac_exec_ext in '' $ac_executable_extensions; do 3641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3642 as_fn_executable_p "$ac_path_EGREP" || continue 3643# Check for GNU ac_path_EGREP and select it if it is found. 3644 # Check for GNU $ac_path_EGREP 3645case `"$ac_path_EGREP" --version 2>&1` in 3646*GNU*) 3647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3648*) 3649 ac_count=0 3650 $as_echo_n 0123456789 >"conftest.in" 3651 while : 3652 do 3653 cat "conftest.in" "conftest.in" >"conftest.tmp" 3654 mv "conftest.tmp" "conftest.in" 3655 cp "conftest.in" "conftest.nl" 3656 $as_echo 'EGREP' >> "conftest.nl" 3657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3659 as_fn_arith $ac_count + 1 && ac_count=$as_val 3660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3661 # Best one so far, save it but keep looking for a better one 3662 ac_cv_path_EGREP="$ac_path_EGREP" 3663 ac_path_EGREP_max=$ac_count 3664 fi 3665 # 10*(2^10) chars as input seems more than enough 3666 test $ac_count -gt 10 && break 3667 done 3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3669esac 3670 3671 $ac_path_EGREP_found && break 3 3672 done 3673 done 3674 done 3675IFS=$as_save_IFS 3676 if test -z "$ac_cv_path_EGREP"; then 3677 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3678 fi 3679else 3680 ac_cv_path_EGREP=$EGREP 3681fi 3682 3683 fi 3684fi 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3686$as_echo "$ac_cv_path_EGREP" >&6; } 3687 EGREP="$ac_cv_path_EGREP" 3688 3689 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3691$as_echo_n "checking for ANSI C header files... " >&6; } 3692if ${ac_cv_header_stdc+:} false; then : 3693 $as_echo_n "(cached) " >&6 3694else 3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696/* end confdefs.h. */ 3697#include <stdlib.h> 3698#include <stdarg.h> 3699#include <string.h> 3700#include <float.h> 3701 3702int 3703main () 3704{ 3705 3706 ; 3707 return 0; 3708} 3709_ACEOF 3710if ac_fn_c_try_compile "$LINENO"; then : 3711 ac_cv_header_stdc=yes 3712else 3713 ac_cv_header_stdc=no 3714fi 3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3716 3717if test $ac_cv_header_stdc = yes; then 3718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721#include <string.h> 3722 3723_ACEOF 3724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3725 $EGREP "memchr" >/dev/null 2>&1; then : 3726 3727else 3728 ac_cv_header_stdc=no 3729fi 3730rm -f conftest* 3731 3732fi 3733 3734if test $ac_cv_header_stdc = yes; then 3735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738#include <stdlib.h> 3739 3740_ACEOF 3741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3742 $EGREP "free" >/dev/null 2>&1; then : 3743 3744else 3745 ac_cv_header_stdc=no 3746fi 3747rm -f conftest* 3748 3749fi 3750 3751if test $ac_cv_header_stdc = yes; then 3752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3753 if test "$cross_compiling" = yes; then : 3754 : 3755else 3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3757/* end confdefs.h. */ 3758#include <ctype.h> 3759#include <stdlib.h> 3760#if ((' ' & 0x0FF) == 0x020) 3761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3763#else 3764# define ISLOWER(c) \ 3765 (('a' <= (c) && (c) <= 'i') \ 3766 || ('j' <= (c) && (c) <= 'r') \ 3767 || ('s' <= (c) && (c) <= 'z')) 3768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3769#endif 3770 3771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3772int 3773main () 3774{ 3775 int i; 3776 for (i = 0; i < 256; i++) 3777 if (XOR (islower (i), ISLOWER (i)) 3778 || toupper (i) != TOUPPER (i)) 3779 return 2; 3780 return 0; 3781} 3782_ACEOF 3783if ac_fn_c_try_run "$LINENO"; then : 3784 3785else 3786 ac_cv_header_stdc=no 3787fi 3788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3789 conftest.$ac_objext conftest.beam conftest.$ac_ext 3790fi 3791 3792fi 3793fi 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3795$as_echo "$ac_cv_header_stdc" >&6; } 3796if test $ac_cv_header_stdc = yes; then 3797 3798$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3799 3800fi 3801 3802# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3803for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3804 inttypes.h stdint.h unistd.h 3805do : 3806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3808" 3809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3810 cat >>confdefs.h <<_ACEOF 3811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3812_ACEOF 3813 3814fi 3815 3816done 3817 3818 3819 3820 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3821if test "x$ac_cv_header_minix_config_h" = xyes; then : 3822 MINIX=yes 3823else 3824 MINIX= 3825fi 3826 3827 3828 if test "$MINIX" = yes; then 3829 3830$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3831 3832 3833$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3834 3835 3836$as_echo "#define _MINIX 1" >>confdefs.h 3837 3838 fi 3839 3840 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3842$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3843if ${ac_cv_safe_to_define___extensions__+:} false; then : 3844 $as_echo_n "(cached) " >&6 3845else 3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3847/* end confdefs.h. */ 3848 3849# define __EXTENSIONS__ 1 3850 $ac_includes_default 3851int 3852main () 3853{ 3854 3855 ; 3856 return 0; 3857} 3858_ACEOF 3859if ac_fn_c_try_compile "$LINENO"; then : 3860 ac_cv_safe_to_define___extensions__=yes 3861else 3862 ac_cv_safe_to_define___extensions__=no 3863fi 3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3865fi 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3867$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3868 test $ac_cv_safe_to_define___extensions__ = yes && 3869 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3870 3871 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3872 3873 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3874 3875 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3876 3877 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3878 3879 3880 3881ac_aux_dir= 3882for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3883 if test -f "$ac_dir/install-sh"; then 3884 ac_aux_dir=$ac_dir 3885 ac_install_sh="$ac_aux_dir/install-sh -c" 3886 break 3887 elif test -f "$ac_dir/install.sh"; then 3888 ac_aux_dir=$ac_dir 3889 ac_install_sh="$ac_aux_dir/install.sh -c" 3890 break 3891 elif test -f "$ac_dir/shtool"; then 3892 ac_aux_dir=$ac_dir 3893 ac_install_sh="$ac_aux_dir/shtool install -c" 3894 break 3895 fi 3896done 3897if test -z "$ac_aux_dir"; then 3898 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3899fi 3900 3901# These three variables are undocumented and unsupported, 3902# and are intended to be withdrawn in a future Autoconf release. 3903# They can cause serious problems if a builder's source tree is in a directory 3904# whose full name contains unusual characters. 3905ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3906ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3907ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3908 3909 3910case `pwd` in 3911 *\ * | *\ *) 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3913$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3914esac 3915 3916 3917 3918macro_version='2.4.2' 3919macro_revision='1.3337' 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933ltmain="$ac_aux_dir/ltmain.sh" 3934 3935# Make sure we can run config.sub. 3936$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3937 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3938 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3940$as_echo_n "checking build system type... " >&6; } 3941if ${ac_cv_build+:} false; then : 3942 $as_echo_n "(cached) " >&6 3943else 3944 ac_build_alias=$build_alias 3945test "x$ac_build_alias" = x && 3946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3947test "x$ac_build_alias" = x && 3948 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3949ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3951 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3954$as_echo "$ac_cv_build" >&6; } 3955case $ac_cv_build in 3956*-*-*) ;; 3957*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3958esac 3959build=$ac_cv_build 3960ac_save_IFS=$IFS; IFS='-' 3961set x $ac_cv_build 3962shift 3963build_cpu=$1 3964build_vendor=$2 3965shift; shift 3966# Remember, the first character of IFS is used to create $*, 3967# except with old shells: 3968build_os=$* 3969IFS=$ac_save_IFS 3970case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3971 3972 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3974$as_echo_n "checking host system type... " >&6; } 3975if ${ac_cv_host+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 if test "x$host_alias" = x; then 3979 ac_cv_host=$ac_cv_build 3980else 3981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3982 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3983fi 3984 3985fi 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3987$as_echo "$ac_cv_host" >&6; } 3988case $ac_cv_host in 3989*-*-*) ;; 3990*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3991esac 3992host=$ac_cv_host 3993ac_save_IFS=$IFS; IFS='-' 3994set x $ac_cv_host 3995shift 3996host_cpu=$1 3997host_vendor=$2 3998shift; shift 3999# Remember, the first character of IFS is used to create $*, 4000# except with old shells: 4001host_os=$* 4002IFS=$ac_save_IFS 4003case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4004 4005 4006# Backslashify metacharacters that are still active within 4007# double-quoted strings. 4008sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4009 4010# Same as above, but do not quote variable references. 4011double_quote_subst='s/\(["`\\]\)/\\\1/g' 4012 4013# Sed substitution to delay expansion of an escaped shell variable in a 4014# double_quote_subst'ed string. 4015delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4016 4017# Sed substitution to delay expansion of an escaped single quote. 4018delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4019 4020# Sed substitution to avoid accidental globbing in evaled expressions 4021no_glob_subst='s/\*/\\\*/g' 4022 4023ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4024ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4025ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4026 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4028$as_echo_n "checking how to print strings... " >&6; } 4029# Test print first, because it will be a builtin if present. 4030if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4031 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4032 ECHO='print -r --' 4033elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4034 ECHO='printf %s\n' 4035else 4036 # Use this function as a fallback that always works. 4037 func_fallback_echo () 4038 { 4039 eval 'cat <<_LTECHO_EOF 4040$1 4041_LTECHO_EOF' 4042 } 4043 ECHO='func_fallback_echo' 4044fi 4045 4046# func_echo_all arg... 4047# Invoke $ECHO with all args, space-separated. 4048func_echo_all () 4049{ 4050 $ECHO "" 4051} 4052 4053case "$ECHO" in 4054 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4055$as_echo "printf" >&6; } ;; 4056 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4057$as_echo "print -r" >&6; } ;; 4058 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4059$as_echo "cat" >&6; } ;; 4060esac 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4076$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4077if ${ac_cv_path_SED+:} false; then : 4078 $as_echo_n "(cached) " >&6 4079else 4080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4081 for ac_i in 1 2 3 4 5 6 7; do 4082 ac_script="$ac_script$as_nl$ac_script" 4083 done 4084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4085 { ac_script=; unset ac_script;} 4086 if test -z "$SED"; then 4087 ac_path_SED_found=false 4088 # Loop through the user's path and test for each of PROGNAME-LIST 4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090for as_dir in $PATH 4091do 4092 IFS=$as_save_IFS 4093 test -z "$as_dir" && as_dir=. 4094 for ac_prog in sed gsed; do 4095 for ac_exec_ext in '' $ac_executable_extensions; do 4096 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4097 as_fn_executable_p "$ac_path_SED" || continue 4098# Check for GNU ac_path_SED and select it if it is found. 4099 # Check for GNU $ac_path_SED 4100case `"$ac_path_SED" --version 2>&1` in 4101*GNU*) 4102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4103*) 4104 ac_count=0 4105 $as_echo_n 0123456789 >"conftest.in" 4106 while : 4107 do 4108 cat "conftest.in" "conftest.in" >"conftest.tmp" 4109 mv "conftest.tmp" "conftest.in" 4110 cp "conftest.in" "conftest.nl" 4111 $as_echo '' >> "conftest.nl" 4112 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4114 as_fn_arith $ac_count + 1 && ac_count=$as_val 4115 if test $ac_count -gt ${ac_path_SED_max-0}; then 4116 # Best one so far, save it but keep looking for a better one 4117 ac_cv_path_SED="$ac_path_SED" 4118 ac_path_SED_max=$ac_count 4119 fi 4120 # 10*(2^10) chars as input seems more than enough 4121 test $ac_count -gt 10 && break 4122 done 4123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4124esac 4125 4126 $ac_path_SED_found && break 3 4127 done 4128 done 4129 done 4130IFS=$as_save_IFS 4131 if test -z "$ac_cv_path_SED"; then 4132 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4133 fi 4134else 4135 ac_cv_path_SED=$SED 4136fi 4137 4138fi 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4140$as_echo "$ac_cv_path_SED" >&6; } 4141 SED="$ac_cv_path_SED" 4142 rm -f conftest.sed 4143 4144test -z "$SED" && SED=sed 4145Xsed="$SED -e 1s/^X//" 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4158$as_echo_n "checking for fgrep... " >&6; } 4159if ${ac_cv_path_FGREP+:} false; then : 4160 $as_echo_n "(cached) " >&6 4161else 4162 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4163 then ac_cv_path_FGREP="$GREP -F" 4164 else 4165 if test -z "$FGREP"; then 4166 ac_path_FGREP_found=false 4167 # Loop through the user's path and test for each of PROGNAME-LIST 4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4169for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4170do 4171 IFS=$as_save_IFS 4172 test -z "$as_dir" && as_dir=. 4173 for ac_prog in fgrep; do 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4176 as_fn_executable_p "$ac_path_FGREP" || continue 4177# Check for GNU ac_path_FGREP and select it if it is found. 4178 # Check for GNU $ac_path_FGREP 4179case `"$ac_path_FGREP" --version 2>&1` in 4180*GNU*) 4181 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4182*) 4183 ac_count=0 4184 $as_echo_n 0123456789 >"conftest.in" 4185 while : 4186 do 4187 cat "conftest.in" "conftest.in" >"conftest.tmp" 4188 mv "conftest.tmp" "conftest.in" 4189 cp "conftest.in" "conftest.nl" 4190 $as_echo 'FGREP' >> "conftest.nl" 4191 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4193 as_fn_arith $ac_count + 1 && ac_count=$as_val 4194 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4195 # Best one so far, save it but keep looking for a better one 4196 ac_cv_path_FGREP="$ac_path_FGREP" 4197 ac_path_FGREP_max=$ac_count 4198 fi 4199 # 10*(2^10) chars as input seems more than enough 4200 test $ac_count -gt 10 && break 4201 done 4202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4203esac 4204 4205 $ac_path_FGREP_found && break 3 4206 done 4207 done 4208 done 4209IFS=$as_save_IFS 4210 if test -z "$ac_cv_path_FGREP"; then 4211 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4212 fi 4213else 4214 ac_cv_path_FGREP=$FGREP 4215fi 4216 4217 fi 4218fi 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4220$as_echo "$ac_cv_path_FGREP" >&6; } 4221 FGREP="$ac_cv_path_FGREP" 4222 4223 4224test -z "$GREP" && GREP=grep 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244# Check whether --with-gnu-ld was given. 4245if test "${with_gnu_ld+set}" = set; then : 4246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4247else 4248 with_gnu_ld=no 4249fi 4250 4251ac_prog=ld 4252if test "$GCC" = yes; then 4253 # Check if gcc -print-prog-name=ld gives a path. 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4255$as_echo_n "checking for ld used by $CC... " >&6; } 4256 case $host in 4257 *-*-mingw*) 4258 # gcc leaves a trailing carriage return which upsets mingw 4259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4260 *) 4261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4262 esac 4263 case $ac_prog in 4264 # Accept absolute paths. 4265 [\\/]* | ?:[\\/]*) 4266 re_direlt='/[^/][^/]*/\.\./' 4267 # Canonicalize the pathname of ld 4268 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4269 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4270 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4271 done 4272 test -z "$LD" && LD="$ac_prog" 4273 ;; 4274 "") 4275 # If it fails, then pretend we aren't using GCC. 4276 ac_prog=ld 4277 ;; 4278 *) 4279 # If it is relative, then search for the first ld in PATH. 4280 with_gnu_ld=unknown 4281 ;; 4282 esac 4283elif test "$with_gnu_ld" = yes; then 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4285$as_echo_n "checking for GNU ld... " >&6; } 4286else 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4288$as_echo_n "checking for non-GNU ld... " >&6; } 4289fi 4290if ${lt_cv_path_LD+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 if test -z "$LD"; then 4294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4295 for ac_dir in $PATH; do 4296 IFS="$lt_save_ifs" 4297 test -z "$ac_dir" && ac_dir=. 4298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4299 lt_cv_path_LD="$ac_dir/$ac_prog" 4300 # Check to see if the program is GNU ld. I'd rather use --version, 4301 # but apparently some variants of GNU ld only accept -v. 4302 # Break only if it was the GNU/non-GNU ld that we prefer. 4303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4304 *GNU* | *'with BFD'*) 4305 test "$with_gnu_ld" != no && break 4306 ;; 4307 *) 4308 test "$with_gnu_ld" != yes && break 4309 ;; 4310 esac 4311 fi 4312 done 4313 IFS="$lt_save_ifs" 4314else 4315 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4316fi 4317fi 4318 4319LD="$lt_cv_path_LD" 4320if test -n "$LD"; then 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4322$as_echo "$LD" >&6; } 4323else 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4325$as_echo "no" >&6; } 4326fi 4327test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4329$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4330if ${lt_cv_prog_gnu_ld+:} false; then : 4331 $as_echo_n "(cached) " >&6 4332else 4333 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4334case `$LD -v 2>&1 </dev/null` in 4335*GNU* | *'with BFD'*) 4336 lt_cv_prog_gnu_ld=yes 4337 ;; 4338*) 4339 lt_cv_prog_gnu_ld=no 4340 ;; 4341esac 4342fi 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4344$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4345with_gnu_ld=$lt_cv_prog_gnu_ld 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4356$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4357if ${lt_cv_path_NM+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359else 4360 if test -n "$NM"; then 4361 # Let the user override the test. 4362 lt_cv_path_NM="$NM" 4363else 4364 lt_nm_to_check="${ac_tool_prefix}nm" 4365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4366 lt_nm_to_check="$lt_nm_to_check nm" 4367 fi 4368 for lt_tmp_nm in $lt_nm_to_check; do 4369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4371 IFS="$lt_save_ifs" 4372 test -z "$ac_dir" && ac_dir=. 4373 tmp_nm="$ac_dir/$lt_tmp_nm" 4374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4375 # Check to see if the nm accepts a BSD-compat flag. 4376 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4377 # nm: unknown option "B" ignored 4378 # Tru64's nm complains that /dev/null is an invalid object file 4379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4380 */dev/null* | *'Invalid file or object type'*) 4381 lt_cv_path_NM="$tmp_nm -B" 4382 break 4383 ;; 4384 *) 4385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4386 */dev/null*) 4387 lt_cv_path_NM="$tmp_nm -p" 4388 break 4389 ;; 4390 *) 4391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4392 continue # so that we can try to find one that supports BSD flags 4393 ;; 4394 esac 4395 ;; 4396 esac 4397 fi 4398 done 4399 IFS="$lt_save_ifs" 4400 done 4401 : ${lt_cv_path_NM=no} 4402fi 4403fi 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4405$as_echo "$lt_cv_path_NM" >&6; } 4406if test "$lt_cv_path_NM" != "no"; then 4407 NM="$lt_cv_path_NM" 4408else 4409 # Didn't find any BSD compatible name lister, look for dumpbin. 4410 if test -n "$DUMPBIN"; then : 4411 # Let the user override the test. 4412 else 4413 if test -n "$ac_tool_prefix"; then 4414 for ac_prog in dumpbin "link -dump" 4415 do 4416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4417set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4419$as_echo_n "checking for $ac_word... " >&6; } 4420if ${ac_cv_prog_DUMPBIN+:} false; then : 4421 $as_echo_n "(cached) " >&6 4422else 4423 if test -n "$DUMPBIN"; then 4424 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4425else 4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4427for as_dir in $PATH 4428do 4429 IFS=$as_save_IFS 4430 test -z "$as_dir" && as_dir=. 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4435 break 2 4436 fi 4437done 4438 done 4439IFS=$as_save_IFS 4440 4441fi 4442fi 4443DUMPBIN=$ac_cv_prog_DUMPBIN 4444if test -n "$DUMPBIN"; then 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4446$as_echo "$DUMPBIN" >&6; } 4447else 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4449$as_echo "no" >&6; } 4450fi 4451 4452 4453 test -n "$DUMPBIN" && break 4454 done 4455fi 4456if test -z "$DUMPBIN"; then 4457 ac_ct_DUMPBIN=$DUMPBIN 4458 for ac_prog in dumpbin "link -dump" 4459do 4460 # Extract the first word of "$ac_prog", so it can be a program name with args. 4461set dummy $ac_prog; ac_word=$2 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4463$as_echo_n "checking for $ac_word... " >&6; } 4464if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4465 $as_echo_n "(cached) " >&6 4466else 4467 if test -n "$ac_ct_DUMPBIN"; then 4468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4469else 4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4471for as_dir in $PATH 4472do 4473 IFS=$as_save_IFS 4474 test -z "$as_dir" && as_dir=. 4475 for ac_exec_ext in '' $ac_executable_extensions; do 4476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4479 break 2 4480 fi 4481done 4482 done 4483IFS=$as_save_IFS 4484 4485fi 4486fi 4487ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4488if test -n "$ac_ct_DUMPBIN"; then 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4490$as_echo "$ac_ct_DUMPBIN" >&6; } 4491else 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4493$as_echo "no" >&6; } 4494fi 4495 4496 4497 test -n "$ac_ct_DUMPBIN" && break 4498done 4499 4500 if test "x$ac_ct_DUMPBIN" = x; then 4501 DUMPBIN=":" 4502 else 4503 case $cross_compiling:$ac_tool_warned in 4504yes:) 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4507ac_tool_warned=yes ;; 4508esac 4509 DUMPBIN=$ac_ct_DUMPBIN 4510 fi 4511fi 4512 4513 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4514 *COFF*) 4515 DUMPBIN="$DUMPBIN -symbols" 4516 ;; 4517 *) 4518 DUMPBIN=: 4519 ;; 4520 esac 4521 fi 4522 4523 if test "$DUMPBIN" != ":"; then 4524 NM="$DUMPBIN" 4525 fi 4526fi 4527test -z "$NM" && NM=nm 4528 4529 4530 4531 4532 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4535$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4536if ${lt_cv_nm_interface+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 lt_cv_nm_interface="BSD nm" 4540 echo "int some_variable = 0;" > conftest.$ac_ext 4541 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4542 (eval "$ac_compile" 2>conftest.err) 4543 cat conftest.err >&5 4544 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4546 cat conftest.err >&5 4547 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4548 cat conftest.out >&5 4549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4550 lt_cv_nm_interface="MS dumpbin" 4551 fi 4552 rm -f conftest* 4553fi 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4555$as_echo "$lt_cv_nm_interface" >&6; } 4556 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4558$as_echo_n "checking whether ln -s works... " >&6; } 4559LN_S=$as_ln_s 4560if test "$LN_S" = "ln -s"; then 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4562$as_echo "yes" >&6; } 4563else 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4565$as_echo "no, using $LN_S" >&6; } 4566fi 4567 4568# find the maximum length of command line arguments 4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4570$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4571if ${lt_cv_sys_max_cmd_len+:} false; then : 4572 $as_echo_n "(cached) " >&6 4573else 4574 i=0 4575 teststring="ABCD" 4576 4577 case $build_os in 4578 msdosdjgpp*) 4579 # On DJGPP, this test can blow up pretty badly due to problems in libc 4580 # (any single argument exceeding 2000 bytes causes a buffer overrun 4581 # during glob expansion). Even if it were fixed, the result of this 4582 # check would be larger than it should be. 4583 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4584 ;; 4585 4586 gnu*) 4587 # Under GNU Hurd, this test is not required because there is 4588 # no limit to the length of command line arguments. 4589 # Libtool will interpret -1 as no limit whatsoever 4590 lt_cv_sys_max_cmd_len=-1; 4591 ;; 4592 4593 cygwin* | mingw* | cegcc*) 4594 # On Win9x/ME, this test blows up -- it succeeds, but takes 4595 # about 5 minutes as the teststring grows exponentially. 4596 # Worse, since 9x/ME are not pre-emptively multitasking, 4597 # you end up with a "frozen" computer, even though with patience 4598 # the test eventually succeeds (with a max line length of 256k). 4599 # Instead, let's just punt: use the minimum linelength reported by 4600 # all of the supported platforms: 8192 (on NT/2K/XP). 4601 lt_cv_sys_max_cmd_len=8192; 4602 ;; 4603 4604 mint*) 4605 # On MiNT this can take a long time and run out of memory. 4606 lt_cv_sys_max_cmd_len=8192; 4607 ;; 4608 4609 amigaos*) 4610 # On AmigaOS with pdksh, this test takes hours, literally. 4611 # So we just punt and use a minimum line length of 8192. 4612 lt_cv_sys_max_cmd_len=8192; 4613 ;; 4614 4615 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4616 # This has been around since 386BSD, at least. Likely further. 4617 if test -x /sbin/sysctl; then 4618 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4619 elif test -x /usr/sbin/sysctl; then 4620 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4621 else 4622 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4623 fi 4624 # And add a safety zone 4625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4627 ;; 4628 4629 interix*) 4630 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4631 lt_cv_sys_max_cmd_len=196608 4632 ;; 4633 4634 os2*) 4635 # The test takes a long time on OS/2. 4636 lt_cv_sys_max_cmd_len=8192 4637 ;; 4638 4639 osf*) 4640 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4641 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4642 # nice to cause kernel panics so lets avoid the loop below. 4643 # First set a reasonable default. 4644 lt_cv_sys_max_cmd_len=16384 4645 # 4646 if test -x /sbin/sysconfig; then 4647 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4648 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4649 esac 4650 fi 4651 ;; 4652 sco3.2v5*) 4653 lt_cv_sys_max_cmd_len=102400 4654 ;; 4655 sysv5* | sco5v6* | sysv4.2uw2*) 4656 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4657 if test -n "$kargmax"; then 4658 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4659 else 4660 lt_cv_sys_max_cmd_len=32768 4661 fi 4662 ;; 4663 *) 4664 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4665 if test -n "$lt_cv_sys_max_cmd_len"; then 4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4668 else 4669 # Make teststring a little bigger before we do anything with it. 4670 # a 1K string should be a reasonable start. 4671 for i in 1 2 3 4 5 6 7 8 ; do 4672 teststring=$teststring$teststring 4673 done 4674 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4675 # If test is not a shell built-in, we'll probably end up computing a 4676 # maximum length that is only half of the actual maximum length, but 4677 # we can't tell. 4678 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4679 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4680 test $i != 17 # 1/2 MB should be enough 4681 do 4682 i=`expr $i + 1` 4683 teststring=$teststring$teststring 4684 done 4685 # Only check the string length outside the loop. 4686 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4687 teststring= 4688 # Add a significant safety factor because C++ compilers can tack on 4689 # massive amounts of additional arguments before passing them to the 4690 # linker. It appears as though 1/2 is a usable value. 4691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4692 fi 4693 ;; 4694 esac 4695 4696fi 4697 4698if test -n $lt_cv_sys_max_cmd_len ; then 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4700$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4701else 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4703$as_echo "none" >&6; } 4704fi 4705max_cmd_len=$lt_cv_sys_max_cmd_len 4706 4707 4708 4709 4710 4711 4712: ${CP="cp -f"} 4713: ${MV="mv -f"} 4714: ${RM="rm -f"} 4715 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4717$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4718# Try some XSI features 4719xsi_shell=no 4720( _lt_dummy="a/b/c" 4721 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4722 = c,a/b,b/c, \ 4723 && eval 'test $(( 1 + 1 )) -eq 2 \ 4724 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4725 && xsi_shell=yes 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4727$as_echo "$xsi_shell" >&6; } 4728 4729 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4731$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4732lt_shell_append=no 4733( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4734 >/dev/null 2>&1 \ 4735 && lt_shell_append=yes 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4737$as_echo "$lt_shell_append" >&6; } 4738 4739 4740if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4741 lt_unset=unset 4742else 4743 lt_unset=false 4744fi 4745 4746 4747 4748 4749 4750# test EBCDIC or ASCII 4751case `echo X|tr X '\101'` in 4752 A) # ASCII based system 4753 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4754 lt_SP2NL='tr \040 \012' 4755 lt_NL2SP='tr \015\012 \040\040' 4756 ;; 4757 *) # EBCDIC based system 4758 lt_SP2NL='tr \100 \n' 4759 lt_NL2SP='tr \r\n \100\100' 4760 ;; 4761esac 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4772$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4773if ${lt_cv_to_host_file_cmd+:} false; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 case $host in 4777 *-*-mingw* ) 4778 case $build in 4779 *-*-mingw* ) # actually msys 4780 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4781 ;; 4782 *-*-cygwin* ) 4783 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4784 ;; 4785 * ) # otherwise, assume *nix 4786 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4787 ;; 4788 esac 4789 ;; 4790 *-*-cygwin* ) 4791 case $build in 4792 *-*-mingw* ) # actually msys 4793 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4794 ;; 4795 *-*-cygwin* ) 4796 lt_cv_to_host_file_cmd=func_convert_file_noop 4797 ;; 4798 * ) # otherwise, assume *nix 4799 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4800 ;; 4801 esac 4802 ;; 4803 * ) # unhandled hosts (and "normal" native builds) 4804 lt_cv_to_host_file_cmd=func_convert_file_noop 4805 ;; 4806esac 4807 4808fi 4809 4810to_host_file_cmd=$lt_cv_to_host_file_cmd 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4812$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4813 4814 4815 4816 4817 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4819$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4820if ${lt_cv_to_tool_file_cmd+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 #assume ordinary cross tools, or native build. 4824lt_cv_to_tool_file_cmd=func_convert_file_noop 4825case $host in 4826 *-*-mingw* ) 4827 case $build in 4828 *-*-mingw* ) # actually msys 4829 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4830 ;; 4831 esac 4832 ;; 4833esac 4834 4835fi 4836 4837to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4839$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4840 4841 4842 4843 4844 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4846$as_echo_n "checking for $LD option to reload object files... " >&6; } 4847if ${lt_cv_ld_reload_flag+:} false; then : 4848 $as_echo_n "(cached) " >&6 4849else 4850 lt_cv_ld_reload_flag='-r' 4851fi 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4853$as_echo "$lt_cv_ld_reload_flag" >&6; } 4854reload_flag=$lt_cv_ld_reload_flag 4855case $reload_flag in 4856"" | " "*) ;; 4857*) reload_flag=" $reload_flag" ;; 4858esac 4859reload_cmds='$LD$reload_flag -o $output$reload_objs' 4860case $host_os in 4861 cygwin* | mingw* | pw32* | cegcc*) 4862 if test "$GCC" != yes; then 4863 reload_cmds=false 4864 fi 4865 ;; 4866 darwin*) 4867 if test "$GCC" = yes; then 4868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4869 else 4870 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4871 fi 4872 ;; 4873esac 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883if test -n "$ac_tool_prefix"; then 4884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4885set dummy ${ac_tool_prefix}objdump; ac_word=$2 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4887$as_echo_n "checking for $ac_word... " >&6; } 4888if ${ac_cv_prog_OBJDUMP+:} false; then : 4889 $as_echo_n "(cached) " >&6 4890else 4891 if test -n "$OBJDUMP"; then 4892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4893else 4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4895for as_dir in $PATH 4896do 4897 IFS=$as_save_IFS 4898 test -z "$as_dir" && as_dir=. 4899 for ac_exec_ext in '' $ac_executable_extensions; do 4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4903 break 2 4904 fi 4905done 4906 done 4907IFS=$as_save_IFS 4908 4909fi 4910fi 4911OBJDUMP=$ac_cv_prog_OBJDUMP 4912if test -n "$OBJDUMP"; then 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4914$as_echo "$OBJDUMP" >&6; } 4915else 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4917$as_echo "no" >&6; } 4918fi 4919 4920 4921fi 4922if test -z "$ac_cv_prog_OBJDUMP"; then 4923 ac_ct_OBJDUMP=$OBJDUMP 4924 # Extract the first word of "objdump", so it can be a program name with args. 4925set dummy objdump; ac_word=$2 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4927$as_echo_n "checking for $ac_word... " >&6; } 4928if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 if test -n "$ac_ct_OBJDUMP"; then 4932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4933else 4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4935for as_dir in $PATH 4936do 4937 IFS=$as_save_IFS 4938 test -z "$as_dir" && as_dir=. 4939 for ac_exec_ext in '' $ac_executable_extensions; do 4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4941 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4943 break 2 4944 fi 4945done 4946 done 4947IFS=$as_save_IFS 4948 4949fi 4950fi 4951ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4952if test -n "$ac_ct_OBJDUMP"; then 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4954$as_echo "$ac_ct_OBJDUMP" >&6; } 4955else 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4957$as_echo "no" >&6; } 4958fi 4959 4960 if test "x$ac_ct_OBJDUMP" = x; then 4961 OBJDUMP="false" 4962 else 4963 case $cross_compiling:$ac_tool_warned in 4964yes:) 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4967ac_tool_warned=yes ;; 4968esac 4969 OBJDUMP=$ac_ct_OBJDUMP 4970 fi 4971else 4972 OBJDUMP="$ac_cv_prog_OBJDUMP" 4973fi 4974 4975test -z "$OBJDUMP" && OBJDUMP=objdump 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4986$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4987if ${lt_cv_deplibs_check_method+:} false; then : 4988 $as_echo_n "(cached) " >&6 4989else 4990 lt_cv_file_magic_cmd='$MAGIC_CMD' 4991lt_cv_file_magic_test_file= 4992lt_cv_deplibs_check_method='unknown' 4993# Need to set the preceding variable on all platforms that support 4994# interlibrary dependencies. 4995# 'none' -- dependencies not supported. 4996# `unknown' -- same as none, but documents that we really don't know. 4997# 'pass_all' -- all dependencies passed with no checks. 4998# 'test_compile' -- check by making test program. 4999# 'file_magic [[regex]]' -- check by looking for files in library path 5000# which responds to the $file_magic_cmd with a given extended regex. 5001# If you have `file' or equivalent on your system and you're not sure 5002# whether `pass_all' will *always* work, you probably want this one. 5003 5004case $host_os in 5005aix[4-9]*) 5006 lt_cv_deplibs_check_method=pass_all 5007 ;; 5008 5009beos*) 5010 lt_cv_deplibs_check_method=pass_all 5011 ;; 5012 5013bsdi[45]*) 5014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5015 lt_cv_file_magic_cmd='/usr/bin/file -L' 5016 lt_cv_file_magic_test_file=/shlib/libc.so 5017 ;; 5018 5019cygwin*) 5020 # func_win32_libid is a shell function defined in ltmain.sh 5021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5022 lt_cv_file_magic_cmd='func_win32_libid' 5023 ;; 5024 5025mingw* | pw32*) 5026 # Base MSYS/MinGW do not provide the 'file' command needed by 5027 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5028 # unless we find 'file', for example because we are cross-compiling. 5029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5032 lt_cv_file_magic_cmd='func_win32_libid' 5033 else 5034 # Keep this pattern in sync with the one in func_win32_libid. 5035 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5036 lt_cv_file_magic_cmd='$OBJDUMP -f' 5037 fi 5038 ;; 5039 5040cegcc*) 5041 # use the weaker test based on 'objdump'. See mingw*. 5042 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5043 lt_cv_file_magic_cmd='$OBJDUMP -f' 5044 ;; 5045 5046darwin* | rhapsody*) 5047 lt_cv_deplibs_check_method=pass_all 5048 ;; 5049 5050freebsd* | dragonfly*) 5051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5052 case $host_cpu in 5053 i*86 ) 5054 # Not sure whether the presence of OpenBSD here was a mistake. 5055 # Let's accept both of them until this is cleared up. 5056 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5057 lt_cv_file_magic_cmd=/usr/bin/file 5058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5059 ;; 5060 esac 5061 else 5062 lt_cv_deplibs_check_method=pass_all 5063 fi 5064 ;; 5065 5066gnu*) 5067 lt_cv_deplibs_check_method=pass_all 5068 ;; 5069 5070haiku*) 5071 lt_cv_deplibs_check_method=pass_all 5072 ;; 5073 5074hpux10.20* | hpux11*) 5075 lt_cv_file_magic_cmd=/usr/bin/file 5076 case $host_cpu in 5077 ia64*) 5078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5079 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5080 ;; 5081 hppa*64*) 5082 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]' 5083 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5084 ;; 5085 *) 5086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5087 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5088 ;; 5089 esac 5090 ;; 5091 5092interix[3-9]*) 5093 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5095 ;; 5096 5097irix5* | irix6* | nonstopux*) 5098 case $LD in 5099 *-32|*"-32 ") libmagic=32-bit;; 5100 *-n32|*"-n32 ") libmagic=N32;; 5101 *-64|*"-64 ") libmagic=64-bit;; 5102 *) libmagic=never-match;; 5103 esac 5104 lt_cv_deplibs_check_method=pass_all 5105 ;; 5106 5107# This must be glibc/ELF. 5108linux* | k*bsd*-gnu | kopensolaris*-gnu) 5109 lt_cv_deplibs_check_method=pass_all 5110 ;; 5111 5112netbsd* | netbsdelf*-gnu) 5113 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5115 else 5116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5117 fi 5118 ;; 5119 5120newos6*) 5121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5122 lt_cv_file_magic_cmd=/usr/bin/file 5123 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5124 ;; 5125 5126*nto* | *qnx*) 5127 lt_cv_deplibs_check_method=pass_all 5128 ;; 5129 5130openbsd*) 5131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5133 else 5134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5135 fi 5136 ;; 5137 5138osf3* | osf4* | osf5*) 5139 lt_cv_deplibs_check_method=pass_all 5140 ;; 5141 5142rdos*) 5143 lt_cv_deplibs_check_method=pass_all 5144 ;; 5145 5146solaris*) 5147 lt_cv_deplibs_check_method=pass_all 5148 ;; 5149 5150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5151 lt_cv_deplibs_check_method=pass_all 5152 ;; 5153 5154sysv4 | sysv4.3*) 5155 case $host_vendor in 5156 motorola) 5157 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]' 5158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5159 ;; 5160 ncr) 5161 lt_cv_deplibs_check_method=pass_all 5162 ;; 5163 sequent) 5164 lt_cv_file_magic_cmd='/bin/file' 5165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5166 ;; 5167 sni) 5168 lt_cv_file_magic_cmd='/bin/file' 5169 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5170 lt_cv_file_magic_test_file=/lib/libc.so 5171 ;; 5172 siemens) 5173 lt_cv_deplibs_check_method=pass_all 5174 ;; 5175 pc) 5176 lt_cv_deplibs_check_method=pass_all 5177 ;; 5178 esac 5179 ;; 5180 5181tpf*) 5182 lt_cv_deplibs_check_method=pass_all 5183 ;; 5184esac 5185 5186fi 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5188$as_echo "$lt_cv_deplibs_check_method" >&6; } 5189 5190file_magic_glob= 5191want_nocaseglob=no 5192if test "$build" = "$host"; then 5193 case $host_os in 5194 mingw* | pw32*) 5195 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5196 want_nocaseglob=yes 5197 else 5198 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5199 fi 5200 ;; 5201 esac 5202fi 5203 5204file_magic_cmd=$lt_cv_file_magic_cmd 5205deplibs_check_method=$lt_cv_deplibs_check_method 5206test -z "$deplibs_check_method" && deplibs_check_method=unknown 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229if test -n "$ac_tool_prefix"; then 5230 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5231set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5233$as_echo_n "checking for $ac_word... " >&6; } 5234if ${ac_cv_prog_DLLTOOL+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 if test -n "$DLLTOOL"; then 5238 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5239else 5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5241for as_dir in $PATH 5242do 5243 IFS=$as_save_IFS 5244 test -z "$as_dir" && as_dir=. 5245 for ac_exec_ext in '' $ac_executable_extensions; do 5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5247 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5249 break 2 5250 fi 5251done 5252 done 5253IFS=$as_save_IFS 5254 5255fi 5256fi 5257DLLTOOL=$ac_cv_prog_DLLTOOL 5258if test -n "$DLLTOOL"; then 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5260$as_echo "$DLLTOOL" >&6; } 5261else 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5263$as_echo "no" >&6; } 5264fi 5265 5266 5267fi 5268if test -z "$ac_cv_prog_DLLTOOL"; then 5269 ac_ct_DLLTOOL=$DLLTOOL 5270 # Extract the first word of "dlltool", so it can be a program name with args. 5271set dummy dlltool; ac_word=$2 5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5273$as_echo_n "checking for $ac_word... " >&6; } 5274if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5275 $as_echo_n "(cached) " >&6 5276else 5277 if test -n "$ac_ct_DLLTOOL"; then 5278 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5279else 5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5281for as_dir in $PATH 5282do 5283 IFS=$as_save_IFS 5284 test -z "$as_dir" && as_dir=. 5285 for ac_exec_ext in '' $ac_executable_extensions; do 5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5287 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5289 break 2 5290 fi 5291done 5292 done 5293IFS=$as_save_IFS 5294 5295fi 5296fi 5297ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5298if test -n "$ac_ct_DLLTOOL"; then 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5300$as_echo "$ac_ct_DLLTOOL" >&6; } 5301else 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5303$as_echo "no" >&6; } 5304fi 5305 5306 if test "x$ac_ct_DLLTOOL" = x; then 5307 DLLTOOL="false" 5308 else 5309 case $cross_compiling:$ac_tool_warned in 5310yes:) 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5313ac_tool_warned=yes ;; 5314esac 5315 DLLTOOL=$ac_ct_DLLTOOL 5316 fi 5317else 5318 DLLTOOL="$ac_cv_prog_DLLTOOL" 5319fi 5320 5321test -z "$DLLTOOL" && DLLTOOL=dlltool 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5333$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5334if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 lt_cv_sharedlib_from_linklib_cmd='unknown' 5338 5339case $host_os in 5340cygwin* | mingw* | pw32* | cegcc*) 5341 # two different shell functions defined in ltmain.sh 5342 # decide which to use based on capabilities of $DLLTOOL 5343 case `$DLLTOOL --help 2>&1` in 5344 *--identify-strict*) 5345 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5346 ;; 5347 *) 5348 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5349 ;; 5350 esac 5351 ;; 5352*) 5353 # fallback: assume linklib IS sharedlib 5354 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5355 ;; 5356esac 5357 5358fi 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5360$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5361sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5362test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5363 5364 5365 5366 5367 5368 5369 5370if test -n "$ac_tool_prefix"; then 5371 for ac_prog in ar 5372 do 5373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5374set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5376$as_echo_n "checking for $ac_word... " >&6; } 5377if ${ac_cv_prog_AR+:} false; then : 5378 $as_echo_n "(cached) " >&6 5379else 5380 if test -n "$AR"; then 5381 ac_cv_prog_AR="$AR" # Let the user override the test. 5382else 5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5384for as_dir in $PATH 5385do 5386 IFS=$as_save_IFS 5387 test -z "$as_dir" && as_dir=. 5388 for ac_exec_ext in '' $ac_executable_extensions; do 5389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5390 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5392 break 2 5393 fi 5394done 5395 done 5396IFS=$as_save_IFS 5397 5398fi 5399fi 5400AR=$ac_cv_prog_AR 5401if test -n "$AR"; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5403$as_echo "$AR" >&6; } 5404else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5406$as_echo "no" >&6; } 5407fi 5408 5409 5410 test -n "$AR" && break 5411 done 5412fi 5413if test -z "$AR"; then 5414 ac_ct_AR=$AR 5415 for ac_prog in ar 5416do 5417 # Extract the first word of "$ac_prog", so it can be a program name with args. 5418set dummy $ac_prog; ac_word=$2 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5420$as_echo_n "checking for $ac_word... " >&6; } 5421if ${ac_cv_prog_ac_ct_AR+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 if test -n "$ac_ct_AR"; then 5425 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5426else 5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5428for as_dir in $PATH 5429do 5430 IFS=$as_save_IFS 5431 test -z "$as_dir" && as_dir=. 5432 for ac_exec_ext in '' $ac_executable_extensions; do 5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5434 ac_cv_prog_ac_ct_AR="$ac_prog" 5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5436 break 2 5437 fi 5438done 5439 done 5440IFS=$as_save_IFS 5441 5442fi 5443fi 5444ac_ct_AR=$ac_cv_prog_ac_ct_AR 5445if test -n "$ac_ct_AR"; then 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5447$as_echo "$ac_ct_AR" >&6; } 5448else 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5450$as_echo "no" >&6; } 5451fi 5452 5453 5454 test -n "$ac_ct_AR" && break 5455done 5456 5457 if test "x$ac_ct_AR" = x; then 5458 AR="false" 5459 else 5460 case $cross_compiling:$ac_tool_warned in 5461yes:) 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5464ac_tool_warned=yes ;; 5465esac 5466 AR=$ac_ct_AR 5467 fi 5468fi 5469 5470: ${AR=ar} 5471: ${AR_FLAGS=cru} 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5484$as_echo_n "checking for archiver @FILE support... " >&6; } 5485if ${lt_cv_ar_at_file+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 lt_cv_ar_at_file=no 5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5490/* end confdefs.h. */ 5491 5492int 5493main () 5494{ 5495 5496 ; 5497 return 0; 5498} 5499_ACEOF 5500if ac_fn_c_try_compile "$LINENO"; then : 5501 echo conftest.$ac_objext > conftest.lst 5502 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5504 (eval $lt_ar_try) 2>&5 5505 ac_status=$? 5506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5507 test $ac_status = 0; } 5508 if test "$ac_status" -eq 0; then 5509 # Ensure the archiver fails upon bogus file names. 5510 rm -f conftest.$ac_objext libconftest.a 5511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5512 (eval $lt_ar_try) 2>&5 5513 ac_status=$? 5514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5515 test $ac_status = 0; } 5516 if test "$ac_status" -ne 0; then 5517 lt_cv_ar_at_file=@ 5518 fi 5519 fi 5520 rm -f conftest.* libconftest.a 5521 5522fi 5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5524 5525fi 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5527$as_echo "$lt_cv_ar_at_file" >&6; } 5528 5529if test "x$lt_cv_ar_at_file" = xno; then 5530 archiver_list_spec= 5531else 5532 archiver_list_spec=$lt_cv_ar_at_file 5533fi 5534 5535 5536 5537 5538 5539 5540 5541if test -n "$ac_tool_prefix"; then 5542 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5543set dummy ${ac_tool_prefix}strip; ac_word=$2 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5545$as_echo_n "checking for $ac_word... " >&6; } 5546if ${ac_cv_prog_STRIP+:} false; then : 5547 $as_echo_n "(cached) " >&6 5548else 5549 if test -n "$STRIP"; then 5550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5551else 5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5553for as_dir in $PATH 5554do 5555 IFS=$as_save_IFS 5556 test -z "$as_dir" && as_dir=. 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5559 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5561 break 2 5562 fi 5563done 5564 done 5565IFS=$as_save_IFS 5566 5567fi 5568fi 5569STRIP=$ac_cv_prog_STRIP 5570if test -n "$STRIP"; then 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5572$as_echo "$STRIP" >&6; } 5573else 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5575$as_echo "no" >&6; } 5576fi 5577 5578 5579fi 5580if test -z "$ac_cv_prog_STRIP"; then 5581 ac_ct_STRIP=$STRIP 5582 # Extract the first word of "strip", so it can be a program name with args. 5583set dummy strip; ac_word=$2 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5585$as_echo_n "checking for $ac_word... " >&6; } 5586if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5587 $as_echo_n "(cached) " >&6 5588else 5589 if test -n "$ac_ct_STRIP"; then 5590 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5591else 5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5593for as_dir in $PATH 5594do 5595 IFS=$as_save_IFS 5596 test -z "$as_dir" && as_dir=. 5597 for ac_exec_ext in '' $ac_executable_extensions; do 5598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5599 ac_cv_prog_ac_ct_STRIP="strip" 5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5601 break 2 5602 fi 5603done 5604 done 5605IFS=$as_save_IFS 5606 5607fi 5608fi 5609ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5610if test -n "$ac_ct_STRIP"; then 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5612$as_echo "$ac_ct_STRIP" >&6; } 5613else 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5615$as_echo "no" >&6; } 5616fi 5617 5618 if test "x$ac_ct_STRIP" = x; then 5619 STRIP=":" 5620 else 5621 case $cross_compiling:$ac_tool_warned in 5622yes:) 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5625ac_tool_warned=yes ;; 5626esac 5627 STRIP=$ac_ct_STRIP 5628 fi 5629else 5630 STRIP="$ac_cv_prog_STRIP" 5631fi 5632 5633test -z "$STRIP" && STRIP=: 5634 5635 5636 5637 5638 5639 5640if test -n "$ac_tool_prefix"; then 5641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5642set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5644$as_echo_n "checking for $ac_word... " >&6; } 5645if ${ac_cv_prog_RANLIB+:} false; then : 5646 $as_echo_n "(cached) " >&6 5647else 5648 if test -n "$RANLIB"; then 5649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5650else 5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5652for as_dir in $PATH 5653do 5654 IFS=$as_save_IFS 5655 test -z "$as_dir" && as_dir=. 5656 for ac_exec_ext in '' $ac_executable_extensions; do 5657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5660 break 2 5661 fi 5662done 5663 done 5664IFS=$as_save_IFS 5665 5666fi 5667fi 5668RANLIB=$ac_cv_prog_RANLIB 5669if test -n "$RANLIB"; then 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5671$as_echo "$RANLIB" >&6; } 5672else 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5674$as_echo "no" >&6; } 5675fi 5676 5677 5678fi 5679if test -z "$ac_cv_prog_RANLIB"; then 5680 ac_ct_RANLIB=$RANLIB 5681 # Extract the first word of "ranlib", so it can be a program name with args. 5682set dummy ranlib; ac_word=$2 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5684$as_echo_n "checking for $ac_word... " >&6; } 5685if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5686 $as_echo_n "(cached) " >&6 5687else 5688 if test -n "$ac_ct_RANLIB"; then 5689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5690else 5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5692for as_dir in $PATH 5693do 5694 IFS=$as_save_IFS 5695 test -z "$as_dir" && as_dir=. 5696 for ac_exec_ext in '' $ac_executable_extensions; do 5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5698 ac_cv_prog_ac_ct_RANLIB="ranlib" 5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5700 break 2 5701 fi 5702done 5703 done 5704IFS=$as_save_IFS 5705 5706fi 5707fi 5708ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5709if test -n "$ac_ct_RANLIB"; then 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5711$as_echo "$ac_ct_RANLIB" >&6; } 5712else 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5714$as_echo "no" >&6; } 5715fi 5716 5717 if test "x$ac_ct_RANLIB" = x; then 5718 RANLIB=":" 5719 else 5720 case $cross_compiling:$ac_tool_warned in 5721yes:) 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5724ac_tool_warned=yes ;; 5725esac 5726 RANLIB=$ac_ct_RANLIB 5727 fi 5728else 5729 RANLIB="$ac_cv_prog_RANLIB" 5730fi 5731 5732test -z "$RANLIB" && RANLIB=: 5733 5734 5735 5736 5737 5738 5739# Determine commands to create old-style static archives. 5740old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5741old_postinstall_cmds='chmod 644 $oldlib' 5742old_postuninstall_cmds= 5743 5744if test -n "$RANLIB"; then 5745 case $host_os in 5746 openbsd*) 5747 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5748 ;; 5749 *) 5750 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5751 ;; 5752 esac 5753 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5754fi 5755 5756case $host_os in 5757 darwin*) 5758 lock_old_archive_extraction=yes ;; 5759 *) 5760 lock_old_archive_extraction=no ;; 5761esac 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783for ac_prog in gawk mawk nawk awk 5784do 5785 # Extract the first word of "$ac_prog", so it can be a program name with args. 5786set dummy $ac_prog; ac_word=$2 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5788$as_echo_n "checking for $ac_word... " >&6; } 5789if ${ac_cv_prog_AWK+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 if test -n "$AWK"; then 5793 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5794else 5795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5796for as_dir in $PATH 5797do 5798 IFS=$as_save_IFS 5799 test -z "$as_dir" && as_dir=. 5800 for ac_exec_ext in '' $ac_executable_extensions; do 5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5802 ac_cv_prog_AWK="$ac_prog" 5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5804 break 2 5805 fi 5806done 5807 done 5808IFS=$as_save_IFS 5809 5810fi 5811fi 5812AWK=$ac_cv_prog_AWK 5813if test -n "$AWK"; then 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5815$as_echo "$AWK" >&6; } 5816else 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5818$as_echo "no" >&6; } 5819fi 5820 5821 5822 test -n "$AWK" && break 5823done 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843# If no C compiler was specified, use CC. 5844LTCC=${LTCC-"$CC"} 5845 5846# If no C compiler flags were specified, use CFLAGS. 5847LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5848 5849# Allow CC to be a program name with arguments. 5850compiler=$CC 5851 5852 5853# Check for command to grab the raw symbol name followed by C symbol from nm. 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5855$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5856if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 5860# These are sane defaults that work on at least a few old systems. 5861# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5862 5863# Character class describing NM global symbol codes. 5864symcode='[BCDEGRST]' 5865 5866# Regexp to match symbols that can be accessed directly from C. 5867sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5868 5869# Define system-specific variables. 5870case $host_os in 5871aix*) 5872 symcode='[BCDT]' 5873 ;; 5874cygwin* | mingw* | pw32* | cegcc*) 5875 symcode='[ABCDGISTW]' 5876 ;; 5877hpux*) 5878 if test "$host_cpu" = ia64; then 5879 symcode='[ABCDEGRST]' 5880 fi 5881 ;; 5882irix* | nonstopux*) 5883 symcode='[BCDEGRST]' 5884 ;; 5885osf*) 5886 symcode='[BCDEGQRST]' 5887 ;; 5888solaris*) 5889 symcode='[BDRT]' 5890 ;; 5891sco3.2v5*) 5892 symcode='[DT]' 5893 ;; 5894sysv4.2uw2*) 5895 symcode='[DT]' 5896 ;; 5897sysv5* | sco5v6* | unixware* | OpenUNIX*) 5898 symcode='[ABDT]' 5899 ;; 5900sysv4) 5901 symcode='[DFNSTU]' 5902 ;; 5903esac 5904 5905# If we're using GNU nm, then use its standard symbol codes. 5906case `$NM -V 2>&1` in 5907*GNU* | *'with BFD'*) 5908 symcode='[ABCDGIRSTW]' ;; 5909esac 5910 5911# Transform an extracted symbol line into a proper C declaration. 5912# Some systems (esp. on ia64) link data and code symbols differently, 5913# so use this general approach. 5914lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5915 5916# Transform an extracted symbol line into symbol name and symbol address 5917lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5918lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5919 5920# Handle CRLF in mingw tool chain 5921opt_cr= 5922case $build_os in 5923mingw*) 5924 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5925 ;; 5926esac 5927 5928# Try without a prefix underscore, then with it. 5929for ac_symprfx in "" "_"; do 5930 5931 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5932 symxfrm="\\1 $ac_symprfx\\2 \\2" 5933 5934 # Write the raw and C identifiers. 5935 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5936 # Fake it for dumpbin and say T for any non-static function 5937 # and D for any global variable. 5938 # Also find C++ and __fastcall symbols from MSVC++, 5939 # which start with @ or ?. 5940 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5941" {last_section=section; section=\$ 3};"\ 5942" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5943" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5944" \$ 0!~/External *\|/{next};"\ 5945" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5946" {if(hide[section]) next};"\ 5947" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5948" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5949" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5950" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5951" ' prfx=^$ac_symprfx" 5952 else 5953 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5954 fi 5955 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5956 5957 # Check to see that the pipe works correctly. 5958 pipe_works=no 5959 5960 rm -f conftest* 5961 cat > conftest.$ac_ext <<_LT_EOF 5962#ifdef __cplusplus 5963extern "C" { 5964#endif 5965char nm_test_var; 5966void nm_test_func(void); 5967void nm_test_func(void){} 5968#ifdef __cplusplus 5969} 5970#endif 5971int main(){nm_test_var='a';nm_test_func();return(0);} 5972_LT_EOF 5973 5974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5975 (eval $ac_compile) 2>&5 5976 ac_status=$? 5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5978 test $ac_status = 0; }; then 5979 # Now try to grab the symbols. 5980 nlist=conftest.nm 5981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5982 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5983 ac_status=$? 5984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5985 test $ac_status = 0; } && test -s "$nlist"; then 5986 # Try sorting and uniquifying the output. 5987 if sort "$nlist" | uniq > "$nlist"T; then 5988 mv -f "$nlist"T "$nlist" 5989 else 5990 rm -f "$nlist"T 5991 fi 5992 5993 # Make sure that we snagged all the symbols we need. 5994 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5995 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5996 cat <<_LT_EOF > conftest.$ac_ext 5997/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5998#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5999/* DATA imports from DLLs on WIN32 con't be const, because runtime 6000 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6001# define LT_DLSYM_CONST 6002#elif defined(__osf__) 6003/* This system does not cope well with relocations in const data. */ 6004# define LT_DLSYM_CONST 6005#else 6006# define LT_DLSYM_CONST const 6007#endif 6008 6009#ifdef __cplusplus 6010extern "C" { 6011#endif 6012 6013_LT_EOF 6014 # Now generate the symbol file. 6015 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6016 6017 cat <<_LT_EOF >> conftest.$ac_ext 6018 6019/* The mapping between symbol names and symbols. */ 6020LT_DLSYM_CONST struct { 6021 const char *name; 6022 void *address; 6023} 6024lt__PROGRAM__LTX_preloaded_symbols[] = 6025{ 6026 { "@PROGRAM@", (void *) 0 }, 6027_LT_EOF 6028 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6029 cat <<\_LT_EOF >> conftest.$ac_ext 6030 {0, (void *) 0} 6031}; 6032 6033/* This works around a problem in FreeBSD linker */ 6034#ifdef FREEBSD_WORKAROUND 6035static const void *lt_preloaded_setup() { 6036 return lt__PROGRAM__LTX_preloaded_symbols; 6037} 6038#endif 6039 6040#ifdef __cplusplus 6041} 6042#endif 6043_LT_EOF 6044 # Now try linking the two files. 6045 mv conftest.$ac_objext conftstm.$ac_objext 6046 lt_globsym_save_LIBS=$LIBS 6047 lt_globsym_save_CFLAGS=$CFLAGS 6048 LIBS="conftstm.$ac_objext" 6049 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6051 (eval $ac_link) 2>&5 6052 ac_status=$? 6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6054 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6055 pipe_works=yes 6056 fi 6057 LIBS=$lt_globsym_save_LIBS 6058 CFLAGS=$lt_globsym_save_CFLAGS 6059 else 6060 echo "cannot find nm_test_func in $nlist" >&5 6061 fi 6062 else 6063 echo "cannot find nm_test_var in $nlist" >&5 6064 fi 6065 else 6066 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6067 fi 6068 else 6069 echo "$progname: failed program was:" >&5 6070 cat conftest.$ac_ext >&5 6071 fi 6072 rm -rf conftest* conftst* 6073 6074 # Do not use the global_symbol_pipe unless it works. 6075 if test "$pipe_works" = yes; then 6076 break 6077 else 6078 lt_cv_sys_global_symbol_pipe= 6079 fi 6080done 6081 6082fi 6083 6084if test -z "$lt_cv_sys_global_symbol_pipe"; then 6085 lt_cv_sys_global_symbol_to_cdecl= 6086fi 6087if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6089$as_echo "failed" >&6; } 6090else 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6092$as_echo "ok" >&6; } 6093fi 6094 6095# Response file support. 6096if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6097 nm_file_list_spec='@' 6098elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6099 nm_file_list_spec='@' 6100fi 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6129$as_echo_n "checking for sysroot... " >&6; } 6130 6131# Check whether --with-sysroot was given. 6132if test "${with_sysroot+set}" = set; then : 6133 withval=$with_sysroot; 6134else 6135 with_sysroot=no 6136fi 6137 6138 6139lt_sysroot= 6140case ${with_sysroot} in #( 6141 yes) 6142 if test "$GCC" = yes; then 6143 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6144 fi 6145 ;; #( 6146 /*) 6147 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6148 ;; #( 6149 no|'') 6150 ;; #( 6151 *) 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6153$as_echo "${with_sysroot}" >&6; } 6154 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6155 ;; 6156esac 6157 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6159$as_echo "${lt_sysroot:-no}" >&6; } 6160 6161 6162 6163 6164 6165# Check whether --enable-libtool-lock was given. 6166if test "${enable_libtool_lock+set}" = set; then : 6167 enableval=$enable_libtool_lock; 6168fi 6169 6170test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6171 6172# Some flags need to be propagated to the compiler or linker for good 6173# libtool support. 6174case $host in 6175ia64-*-hpux*) 6176 # Find out which ABI we are using. 6177 echo 'int i;' > conftest.$ac_ext 6178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6179 (eval $ac_compile) 2>&5 6180 ac_status=$? 6181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6182 test $ac_status = 0; }; then 6183 case `/usr/bin/file conftest.$ac_objext` in 6184 *ELF-32*) 6185 HPUX_IA64_MODE="32" 6186 ;; 6187 *ELF-64*) 6188 HPUX_IA64_MODE="64" 6189 ;; 6190 esac 6191 fi 6192 rm -rf conftest* 6193 ;; 6194*-*-irix6*) 6195 # Find out which ABI we are using. 6196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6198 (eval $ac_compile) 2>&5 6199 ac_status=$? 6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6201 test $ac_status = 0; }; then 6202 if test "$lt_cv_prog_gnu_ld" = yes; then 6203 case `/usr/bin/file conftest.$ac_objext` in 6204 *32-bit*) 6205 LD="${LD-ld} -melf32bsmip" 6206 ;; 6207 *N32*) 6208 LD="${LD-ld} -melf32bmipn32" 6209 ;; 6210 *64-bit*) 6211 LD="${LD-ld} -melf64bmip" 6212 ;; 6213 esac 6214 else 6215 case `/usr/bin/file conftest.$ac_objext` in 6216 *32-bit*) 6217 LD="${LD-ld} -32" 6218 ;; 6219 *N32*) 6220 LD="${LD-ld} -n32" 6221 ;; 6222 *64-bit*) 6223 LD="${LD-ld} -64" 6224 ;; 6225 esac 6226 fi 6227 fi 6228 rm -rf conftest* 6229 ;; 6230 6231x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6232s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6233 # Find out which ABI we are using. 6234 echo 'int i;' > conftest.$ac_ext 6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6236 (eval $ac_compile) 2>&5 6237 ac_status=$? 6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6239 test $ac_status = 0; }; then 6240 case `/usr/bin/file conftest.o` in 6241 *32-bit*) 6242 case $host in 6243 x86_64-*kfreebsd*-gnu) 6244 LD="${LD-ld} -m elf_i386_fbsd" 6245 ;; 6246 x86_64-*linux*) 6247 LD="${LD-ld} -m elf_i386" 6248 ;; 6249 ppc64-*linux*|powerpc64-*linux*) 6250 LD="${LD-ld} -m elf32ppclinux" 6251 ;; 6252 s390x-*linux*) 6253 LD="${LD-ld} -m elf_s390" 6254 ;; 6255 sparc64-*linux*) 6256 LD="${LD-ld} -m elf32_sparc" 6257 ;; 6258 esac 6259 ;; 6260 *64-bit*) 6261 case $host in 6262 x86_64-*kfreebsd*-gnu) 6263 LD="${LD-ld} -m elf_x86_64_fbsd" 6264 ;; 6265 x86_64-*linux*) 6266 LD="${LD-ld} -m elf_x86_64" 6267 ;; 6268 ppc*-*linux*|powerpc*-*linux*) 6269 LD="${LD-ld} -m elf64ppc" 6270 ;; 6271 s390*-*linux*|s390*-*tpf*) 6272 LD="${LD-ld} -m elf64_s390" 6273 ;; 6274 sparc*-*linux*) 6275 LD="${LD-ld} -m elf64_sparc" 6276 ;; 6277 esac 6278 ;; 6279 esac 6280 fi 6281 rm -rf conftest* 6282 ;; 6283 6284*-*-sco3.2v5*) 6285 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6286 SAVE_CFLAGS="$CFLAGS" 6287 CFLAGS="$CFLAGS -belf" 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6289$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6290if ${lt_cv_cc_needs_belf+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 ac_ext=c 6294ac_cpp='$CPP $CPPFLAGS' 6295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6297ac_compiler_gnu=$ac_cv_c_compiler_gnu 6298 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301 6302int 6303main () 6304{ 6305 6306 ; 6307 return 0; 6308} 6309_ACEOF 6310if ac_fn_c_try_link "$LINENO"; then : 6311 lt_cv_cc_needs_belf=yes 6312else 6313 lt_cv_cc_needs_belf=no 6314fi 6315rm -f core conftest.err conftest.$ac_objext \ 6316 conftest$ac_exeext conftest.$ac_ext 6317 ac_ext=c 6318ac_cpp='$CPP $CPPFLAGS' 6319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6321ac_compiler_gnu=$ac_cv_c_compiler_gnu 6322 6323fi 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6325$as_echo "$lt_cv_cc_needs_belf" >&6; } 6326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6328 CFLAGS="$SAVE_CFLAGS" 6329 fi 6330 ;; 6331*-*solaris*) 6332 # Find out which ABI we are using. 6333 echo 'int i;' > conftest.$ac_ext 6334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6335 (eval $ac_compile) 2>&5 6336 ac_status=$? 6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6338 test $ac_status = 0; }; then 6339 case `/usr/bin/file conftest.o` in 6340 *64-bit*) 6341 case $lt_cv_prog_gnu_ld in 6342 yes*) 6343 case $host in 6344 i?86-*-solaris*) 6345 LD="${LD-ld} -m elf_x86_64" 6346 ;; 6347 sparc*-*-solaris*) 6348 LD="${LD-ld} -m elf64_sparc" 6349 ;; 6350 esac 6351 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6352 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6353 LD="${LD-ld}_sol2" 6354 fi 6355 ;; 6356 *) 6357 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6358 LD="${LD-ld} -64" 6359 fi 6360 ;; 6361 esac 6362 ;; 6363 esac 6364 fi 6365 rm -rf conftest* 6366 ;; 6367esac 6368 6369need_locks="$enable_libtool_lock" 6370 6371if test -n "$ac_tool_prefix"; then 6372 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6373set dummy ${ac_tool_prefix}mt; ac_word=$2 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6375$as_echo_n "checking for $ac_word... " >&6; } 6376if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6377 $as_echo_n "(cached) " >&6 6378else 6379 if test -n "$MANIFEST_TOOL"; then 6380 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6381else 6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6383for as_dir in $PATH 6384do 6385 IFS=$as_save_IFS 6386 test -z "$as_dir" && as_dir=. 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6389 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6391 break 2 6392 fi 6393done 6394 done 6395IFS=$as_save_IFS 6396 6397fi 6398fi 6399MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6400if test -n "$MANIFEST_TOOL"; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6402$as_echo "$MANIFEST_TOOL" >&6; } 6403else 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405$as_echo "no" >&6; } 6406fi 6407 6408 6409fi 6410if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6411 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6412 # Extract the first word of "mt", so it can be a program name with args. 6413set dummy mt; ac_word=$2 6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6415$as_echo_n "checking for $ac_word... " >&6; } 6416if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6417 $as_echo_n "(cached) " >&6 6418else 6419 if test -n "$ac_ct_MANIFEST_TOOL"; then 6420 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6421else 6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6423for as_dir in $PATH 6424do 6425 IFS=$as_save_IFS 6426 test -z "$as_dir" && as_dir=. 6427 for ac_exec_ext in '' $ac_executable_extensions; do 6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6429 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6431 break 2 6432 fi 6433done 6434 done 6435IFS=$as_save_IFS 6436 6437fi 6438fi 6439ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6440if test -n "$ac_ct_MANIFEST_TOOL"; then 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6442$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6443else 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6445$as_echo "no" >&6; } 6446fi 6447 6448 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6449 MANIFEST_TOOL=":" 6450 else 6451 case $cross_compiling:$ac_tool_warned in 6452yes:) 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6455ac_tool_warned=yes ;; 6456esac 6457 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6458 fi 6459else 6460 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6461fi 6462 6463test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6465$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6466if ${lt_cv_path_mainfest_tool+:} false; then : 6467 $as_echo_n "(cached) " >&6 6468else 6469 lt_cv_path_mainfest_tool=no 6470 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6471 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6472 cat conftest.err >&5 6473 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6474 lt_cv_path_mainfest_tool=yes 6475 fi 6476 rm -f conftest* 6477fi 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6479$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6480if test "x$lt_cv_path_mainfest_tool" != xyes; then 6481 MANIFEST_TOOL=: 6482fi 6483 6484 6485 6486 6487 6488 6489 case $host_os in 6490 rhapsody* | darwin*) 6491 if test -n "$ac_tool_prefix"; then 6492 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6493set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6495$as_echo_n "checking for $ac_word... " >&6; } 6496if ${ac_cv_prog_DSYMUTIL+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 if test -n "$DSYMUTIL"; then 6500 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6501else 6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6503for as_dir in $PATH 6504do 6505 IFS=$as_save_IFS 6506 test -z "$as_dir" && as_dir=. 6507 for ac_exec_ext in '' $ac_executable_extensions; do 6508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6509 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6511 break 2 6512 fi 6513done 6514 done 6515IFS=$as_save_IFS 6516 6517fi 6518fi 6519DSYMUTIL=$ac_cv_prog_DSYMUTIL 6520if test -n "$DSYMUTIL"; then 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6522$as_echo "$DSYMUTIL" >&6; } 6523else 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6525$as_echo "no" >&6; } 6526fi 6527 6528 6529fi 6530if test -z "$ac_cv_prog_DSYMUTIL"; then 6531 ac_ct_DSYMUTIL=$DSYMUTIL 6532 # Extract the first word of "dsymutil", so it can be a program name with args. 6533set dummy dsymutil; ac_word=$2 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6535$as_echo_n "checking for $ac_word... " >&6; } 6536if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 if test -n "$ac_ct_DSYMUTIL"; then 6540 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6541else 6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6543for as_dir in $PATH 6544do 6545 IFS=$as_save_IFS 6546 test -z "$as_dir" && as_dir=. 6547 for ac_exec_ext in '' $ac_executable_extensions; do 6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6549 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6551 break 2 6552 fi 6553done 6554 done 6555IFS=$as_save_IFS 6556 6557fi 6558fi 6559ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6560if test -n "$ac_ct_DSYMUTIL"; then 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6562$as_echo "$ac_ct_DSYMUTIL" >&6; } 6563else 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6565$as_echo "no" >&6; } 6566fi 6567 6568 if test "x$ac_ct_DSYMUTIL" = x; then 6569 DSYMUTIL=":" 6570 else 6571 case $cross_compiling:$ac_tool_warned in 6572yes:) 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6575ac_tool_warned=yes ;; 6576esac 6577 DSYMUTIL=$ac_ct_DSYMUTIL 6578 fi 6579else 6580 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6581fi 6582 6583 if test -n "$ac_tool_prefix"; then 6584 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6585set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6587$as_echo_n "checking for $ac_word... " >&6; } 6588if ${ac_cv_prog_NMEDIT+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590else 6591 if test -n "$NMEDIT"; then 6592 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6593else 6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595for as_dir in $PATH 6596do 6597 IFS=$as_save_IFS 6598 test -z "$as_dir" && as_dir=. 6599 for ac_exec_ext in '' $ac_executable_extensions; do 6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6601 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6603 break 2 6604 fi 6605done 6606 done 6607IFS=$as_save_IFS 6608 6609fi 6610fi 6611NMEDIT=$ac_cv_prog_NMEDIT 6612if test -n "$NMEDIT"; then 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6614$as_echo "$NMEDIT" >&6; } 6615else 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6617$as_echo "no" >&6; } 6618fi 6619 6620 6621fi 6622if test -z "$ac_cv_prog_NMEDIT"; then 6623 ac_ct_NMEDIT=$NMEDIT 6624 # Extract the first word of "nmedit", so it can be a program name with args. 6625set dummy nmedit; ac_word=$2 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6627$as_echo_n "checking for $ac_word... " >&6; } 6628if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 if test -n "$ac_ct_NMEDIT"; then 6632 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6633else 6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6635for as_dir in $PATH 6636do 6637 IFS=$as_save_IFS 6638 test -z "$as_dir" && as_dir=. 6639 for ac_exec_ext in '' $ac_executable_extensions; do 6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6641 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6643 break 2 6644 fi 6645done 6646 done 6647IFS=$as_save_IFS 6648 6649fi 6650fi 6651ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6652if test -n "$ac_ct_NMEDIT"; then 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6654$as_echo "$ac_ct_NMEDIT" >&6; } 6655else 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6657$as_echo "no" >&6; } 6658fi 6659 6660 if test "x$ac_ct_NMEDIT" = x; then 6661 NMEDIT=":" 6662 else 6663 case $cross_compiling:$ac_tool_warned in 6664yes:) 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6667ac_tool_warned=yes ;; 6668esac 6669 NMEDIT=$ac_ct_NMEDIT 6670 fi 6671else 6672 NMEDIT="$ac_cv_prog_NMEDIT" 6673fi 6674 6675 if test -n "$ac_tool_prefix"; then 6676 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6677set dummy ${ac_tool_prefix}lipo; ac_word=$2 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6679$as_echo_n "checking for $ac_word... " >&6; } 6680if ${ac_cv_prog_LIPO+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 if test -n "$LIPO"; then 6684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6685else 6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687for as_dir in $PATH 6688do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6693 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703LIPO=$ac_cv_prog_LIPO 6704if test -n "$LIPO"; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6706$as_echo "$LIPO" >&6; } 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709$as_echo "no" >&6; } 6710fi 6711 6712 6713fi 6714if test -z "$ac_cv_prog_LIPO"; then 6715 ac_ct_LIPO=$LIPO 6716 # Extract the first word of "lipo", so it can be a program name with args. 6717set dummy lipo; ac_word=$2 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6719$as_echo_n "checking for $ac_word... " >&6; } 6720if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 if test -n "$ac_ct_LIPO"; then 6724 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6725else 6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6727for as_dir in $PATH 6728do 6729 IFS=$as_save_IFS 6730 test -z "$as_dir" && as_dir=. 6731 for ac_exec_ext in '' $ac_executable_extensions; do 6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6733 ac_cv_prog_ac_ct_LIPO="lipo" 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6735 break 2 6736 fi 6737done 6738 done 6739IFS=$as_save_IFS 6740 6741fi 6742fi 6743ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6744if test -n "$ac_ct_LIPO"; then 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6746$as_echo "$ac_ct_LIPO" >&6; } 6747else 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6749$as_echo "no" >&6; } 6750fi 6751 6752 if test "x$ac_ct_LIPO" = x; then 6753 LIPO=":" 6754 else 6755 case $cross_compiling:$ac_tool_warned in 6756yes:) 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6759ac_tool_warned=yes ;; 6760esac 6761 LIPO=$ac_ct_LIPO 6762 fi 6763else 6764 LIPO="$ac_cv_prog_LIPO" 6765fi 6766 6767 if test -n "$ac_tool_prefix"; then 6768 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6769set dummy ${ac_tool_prefix}otool; ac_word=$2 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6771$as_echo_n "checking for $ac_word... " >&6; } 6772if ${ac_cv_prog_OTOOL+:} false; then : 6773 $as_echo_n "(cached) " >&6 6774else 6775 if test -n "$OTOOL"; then 6776 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6777else 6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6779for as_dir in $PATH 6780do 6781 IFS=$as_save_IFS 6782 test -z "$as_dir" && as_dir=. 6783 for ac_exec_ext in '' $ac_executable_extensions; do 6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6785 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6787 break 2 6788 fi 6789done 6790 done 6791IFS=$as_save_IFS 6792 6793fi 6794fi 6795OTOOL=$ac_cv_prog_OTOOL 6796if test -n "$OTOOL"; then 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6798$as_echo "$OTOOL" >&6; } 6799else 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6801$as_echo "no" >&6; } 6802fi 6803 6804 6805fi 6806if test -z "$ac_cv_prog_OTOOL"; then 6807 ac_ct_OTOOL=$OTOOL 6808 # Extract the first word of "otool", so it can be a program name with args. 6809set dummy otool; ac_word=$2 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6811$as_echo_n "checking for $ac_word... " >&6; } 6812if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 if test -n "$ac_ct_OTOOL"; then 6816 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6817else 6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6819for as_dir in $PATH 6820do 6821 IFS=$as_save_IFS 6822 test -z "$as_dir" && as_dir=. 6823 for ac_exec_ext in '' $ac_executable_extensions; do 6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6825 ac_cv_prog_ac_ct_OTOOL="otool" 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6827 break 2 6828 fi 6829done 6830 done 6831IFS=$as_save_IFS 6832 6833fi 6834fi 6835ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6836if test -n "$ac_ct_OTOOL"; then 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6838$as_echo "$ac_ct_OTOOL" >&6; } 6839else 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6841$as_echo "no" >&6; } 6842fi 6843 6844 if test "x$ac_ct_OTOOL" = x; then 6845 OTOOL=":" 6846 else 6847 case $cross_compiling:$ac_tool_warned in 6848yes:) 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6851ac_tool_warned=yes ;; 6852esac 6853 OTOOL=$ac_ct_OTOOL 6854 fi 6855else 6856 OTOOL="$ac_cv_prog_OTOOL" 6857fi 6858 6859 if test -n "$ac_tool_prefix"; then 6860 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6861set dummy ${ac_tool_prefix}otool64; ac_word=$2 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6863$as_echo_n "checking for $ac_word... " >&6; } 6864if ${ac_cv_prog_OTOOL64+:} false; then : 6865 $as_echo_n "(cached) " >&6 6866else 6867 if test -n "$OTOOL64"; then 6868 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6869else 6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6871for as_dir in $PATH 6872do 6873 IFS=$as_save_IFS 6874 test -z "$as_dir" && as_dir=. 6875 for ac_exec_ext in '' $ac_executable_extensions; do 6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6877 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6879 break 2 6880 fi 6881done 6882 done 6883IFS=$as_save_IFS 6884 6885fi 6886fi 6887OTOOL64=$ac_cv_prog_OTOOL64 6888if test -n "$OTOOL64"; then 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6890$as_echo "$OTOOL64" >&6; } 6891else 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6893$as_echo "no" >&6; } 6894fi 6895 6896 6897fi 6898if test -z "$ac_cv_prog_OTOOL64"; then 6899 ac_ct_OTOOL64=$OTOOL64 6900 # Extract the first word of "otool64", so it can be a program name with args. 6901set dummy otool64; ac_word=$2 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6903$as_echo_n "checking for $ac_word... " >&6; } 6904if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 if test -n "$ac_ct_OTOOL64"; then 6908 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6909else 6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911for as_dir in $PATH 6912do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_prog_ac_ct_OTOOL64="otool64" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921done 6922 done 6923IFS=$as_save_IFS 6924 6925fi 6926fi 6927ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6928if test -n "$ac_ct_OTOOL64"; then 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6930$as_echo "$ac_ct_OTOOL64" >&6; } 6931else 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6933$as_echo "no" >&6; } 6934fi 6935 6936 if test "x$ac_ct_OTOOL64" = x; then 6937 OTOOL64=":" 6938 else 6939 case $cross_compiling:$ac_tool_warned in 6940yes:) 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6943ac_tool_warned=yes ;; 6944esac 6945 OTOOL64=$ac_ct_OTOOL64 6946 fi 6947else 6948 OTOOL64="$ac_cv_prog_OTOOL64" 6949fi 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6978$as_echo_n "checking for -single_module linker flag... " >&6; } 6979if ${lt_cv_apple_cc_single_mod+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 lt_cv_apple_cc_single_mod=no 6983 if test -z "${LT_MULTI_MODULE}"; then 6984 # By default we will add the -single_module flag. You can override 6985 # by either setting the environment variable LT_MULTI_MODULE 6986 # non-empty at configure time, or by adding -multi_module to the 6987 # link flags. 6988 rm -rf libconftest.dylib* 6989 echo "int foo(void){return 1;}" > conftest.c 6990 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6991-dynamiclib -Wl,-single_module conftest.c" >&5 6992 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6993 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6994 _lt_result=$? 6995 # If there is a non-empty error log, and "single_module" 6996 # appears in it, assume the flag caused a linker warning 6997 if test -s conftest.err && $GREP single_module conftest.err; then 6998 cat conftest.err >&5 6999 # Otherwise, if the output was created with a 0 exit code from 7000 # the compiler, it worked. 7001 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7002 lt_cv_apple_cc_single_mod=yes 7003 else 7004 cat conftest.err >&5 7005 fi 7006 rm -rf libconftest.dylib* 7007 rm -f conftest.* 7008 fi 7009fi 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7011$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7012 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7014$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7015if ${lt_cv_ld_exported_symbols_list+:} false; then : 7016 $as_echo_n "(cached) " >&6 7017else 7018 lt_cv_ld_exported_symbols_list=no 7019 save_LDFLAGS=$LDFLAGS 7020 echo "_main" > conftest.sym 7021 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024 7025int 7026main () 7027{ 7028 7029 ; 7030 return 0; 7031} 7032_ACEOF 7033if ac_fn_c_try_link "$LINENO"; then : 7034 lt_cv_ld_exported_symbols_list=yes 7035else 7036 lt_cv_ld_exported_symbols_list=no 7037fi 7038rm -f core conftest.err conftest.$ac_objext \ 7039 conftest$ac_exeext conftest.$ac_ext 7040 LDFLAGS="$save_LDFLAGS" 7041 7042fi 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7044$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7045 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7047$as_echo_n "checking for -force_load linker flag... " >&6; } 7048if ${lt_cv_ld_force_load+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 lt_cv_ld_force_load=no 7052 cat > conftest.c << _LT_EOF 7053int forced_loaded() { return 2;} 7054_LT_EOF 7055 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7056 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7057 echo "$AR cru libconftest.a conftest.o" >&5 7058 $AR cru libconftest.a conftest.o 2>&5 7059 echo "$RANLIB libconftest.a" >&5 7060 $RANLIB libconftest.a 2>&5 7061 cat > conftest.c << _LT_EOF 7062int main() { return 0;} 7063_LT_EOF 7064 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7065 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7066 _lt_result=$? 7067 if test -s conftest.err && $GREP force_load conftest.err; then 7068 cat conftest.err >&5 7069 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7070 lt_cv_ld_force_load=yes 7071 else 7072 cat conftest.err >&5 7073 fi 7074 rm -f conftest.err libconftest.a conftest conftest.c 7075 rm -rf conftest.dSYM 7076 7077fi 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7079$as_echo "$lt_cv_ld_force_load" >&6; } 7080 case $host_os in 7081 rhapsody* | darwin1.[012]) 7082 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7083 darwin1.*) 7084 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7085 darwin*) # darwin 5.x on 7086 # if running on 10.5 or later, the deployment target defaults 7087 # to the OS version, if on x86, and 10.4, the deployment 7088 # target defaults to 10.4. Don't you love it? 7089 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7090 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7092 10.[012]*) 7093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7094 10.*) 7095 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7096 esac 7097 ;; 7098 esac 7099 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7100 _lt_dar_single_mod='$single_module' 7101 fi 7102 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7103 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7104 else 7105 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7106 fi 7107 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7108 _lt_dsymutil='~$DSYMUTIL $lib || :' 7109 else 7110 _lt_dsymutil= 7111 fi 7112 ;; 7113 esac 7114 7115for ac_header in dlfcn.h 7116do : 7117 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7118" 7119if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7120 cat >>confdefs.h <<_ACEOF 7121#define HAVE_DLFCN_H 1 7122_ACEOF 7123 7124fi 7125 7126done 7127 7128 7129 7130 7131 7132# Set options 7133 7134 7135 7136 enable_dlopen=no 7137 7138 7139 enable_win32_dll=no 7140 7141 7142 # Check whether --enable-shared was given. 7143if test "${enable_shared+set}" = set; then : 7144 enableval=$enable_shared; p=${PACKAGE-default} 7145 case $enableval in 7146 yes) enable_shared=yes ;; 7147 no) enable_shared=no ;; 7148 *) 7149 enable_shared=no 7150 # Look at the argument we got. We use all the common list separators. 7151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7152 for pkg in $enableval; do 7153 IFS="$lt_save_ifs" 7154 if test "X$pkg" = "X$p"; then 7155 enable_shared=yes 7156 fi 7157 done 7158 IFS="$lt_save_ifs" 7159 ;; 7160 esac 7161else 7162 enable_shared=yes 7163fi 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 # Check whether --enable-static was given. 7174if test "${enable_static+set}" = set; then : 7175 enableval=$enable_static; p=${PACKAGE-default} 7176 case $enableval in 7177 yes) enable_static=yes ;; 7178 no) enable_static=no ;; 7179 *) 7180 enable_static=no 7181 # Look at the argument we got. We use all the common list separators. 7182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7183 for pkg in $enableval; do 7184 IFS="$lt_save_ifs" 7185 if test "X$pkg" = "X$p"; then 7186 enable_static=yes 7187 fi 7188 done 7189 IFS="$lt_save_ifs" 7190 ;; 7191 esac 7192else 7193 enable_static=yes 7194fi 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205# Check whether --with-pic was given. 7206if test "${with_pic+set}" = set; then : 7207 withval=$with_pic; lt_p=${PACKAGE-default} 7208 case $withval in 7209 yes|no) pic_mode=$withval ;; 7210 *) 7211 pic_mode=default 7212 # Look at the argument we got. We use all the common list separators. 7213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7214 for lt_pkg in $withval; do 7215 IFS="$lt_save_ifs" 7216 if test "X$lt_pkg" = "X$lt_p"; then 7217 pic_mode=yes 7218 fi 7219 done 7220 IFS="$lt_save_ifs" 7221 ;; 7222 esac 7223else 7224 pic_mode=default 7225fi 7226 7227 7228test -z "$pic_mode" && pic_mode=default 7229 7230 7231 7232 7233 7234 7235 7236 # Check whether --enable-fast-install was given. 7237if test "${enable_fast_install+set}" = set; then : 7238 enableval=$enable_fast_install; p=${PACKAGE-default} 7239 case $enableval in 7240 yes) enable_fast_install=yes ;; 7241 no) enable_fast_install=no ;; 7242 *) 7243 enable_fast_install=no 7244 # Look at the argument we got. We use all the common list separators. 7245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7246 for pkg in $enableval; do 7247 IFS="$lt_save_ifs" 7248 if test "X$pkg" = "X$p"; then 7249 enable_fast_install=yes 7250 fi 7251 done 7252 IFS="$lt_save_ifs" 7253 ;; 7254 esac 7255else 7256 enable_fast_install=yes 7257fi 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269# This can be used to rebuild libtool when needed 7270LIBTOOL_DEPS="$ltmain" 7271 7272# Always use our own libtool. 7273LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304test -z "$LN_S" && LN_S="ln -s" 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319if test -n "${ZSH_VERSION+set}" ; then 7320 setopt NO_GLOB_SUBST 7321fi 7322 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7324$as_echo_n "checking for objdir... " >&6; } 7325if ${lt_cv_objdir+:} false; then : 7326 $as_echo_n "(cached) " >&6 7327else 7328 rm -f .libs 2>/dev/null 7329mkdir .libs 2>/dev/null 7330if test -d .libs; then 7331 lt_cv_objdir=.libs 7332else 7333 # MS-DOS does not allow filenames that begin with a dot. 7334 lt_cv_objdir=_libs 7335fi 7336rmdir .libs 2>/dev/null 7337fi 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7339$as_echo "$lt_cv_objdir" >&6; } 7340objdir=$lt_cv_objdir 7341 7342 7343 7344 7345 7346cat >>confdefs.h <<_ACEOF 7347#define LT_OBJDIR "$lt_cv_objdir/" 7348_ACEOF 7349 7350 7351 7352 7353case $host_os in 7354aix3*) 7355 # AIX sometimes has problems with the GCC collect2 program. For some 7356 # reason, if we set the COLLECT_NAMES environment variable, the problems 7357 # vanish in a puff of smoke. 7358 if test "X${COLLECT_NAMES+set}" != Xset; then 7359 COLLECT_NAMES= 7360 export COLLECT_NAMES 7361 fi 7362 ;; 7363esac 7364 7365# Global variables: 7366ofile=libtool 7367can_build_shared=yes 7368 7369# All known linkers require a `.a' archive for static linking (except MSVC, 7370# which needs '.lib'). 7371libext=a 7372 7373with_gnu_ld="$lt_cv_prog_gnu_ld" 7374 7375old_CC="$CC" 7376old_CFLAGS="$CFLAGS" 7377 7378# Set sane defaults for various variables 7379test -z "$CC" && CC=cc 7380test -z "$LTCC" && LTCC=$CC 7381test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7382test -z "$LD" && LD=ld 7383test -z "$ac_objext" && ac_objext=o 7384 7385for cc_temp in $compiler""; do 7386 case $cc_temp in 7387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7389 \-*) ;; 7390 *) break;; 7391 esac 7392done 7393cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7394 7395 7396# Only perform the check for file, if the check method requires it 7397test -z "$MAGIC_CMD" && MAGIC_CMD=file 7398case $deplibs_check_method in 7399file_magic*) 7400 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7402$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7403if ${lt_cv_path_MAGIC_CMD+:} false; then : 7404 $as_echo_n "(cached) " >&6 7405else 7406 case $MAGIC_CMD in 7407[\\/*] | ?:[\\/]*) 7408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7409 ;; 7410*) 7411 lt_save_MAGIC_CMD="$MAGIC_CMD" 7412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7414 for ac_dir in $ac_dummy; do 7415 IFS="$lt_save_ifs" 7416 test -z "$ac_dir" && ac_dir=. 7417 if test -f $ac_dir/${ac_tool_prefix}file; then 7418 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7419 if test -n "$file_magic_test_file"; then 7420 case $deplibs_check_method in 7421 "file_magic "*) 7422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7425 $EGREP "$file_magic_regex" > /dev/null; then 7426 : 7427 else 7428 cat <<_LT_EOF 1>&2 7429 7430*** Warning: the command libtool uses to detect shared libraries, 7431*** $file_magic_cmd, produces output that libtool cannot recognize. 7432*** The result is that libtool may fail to recognize shared libraries 7433*** as such. This will affect the creation of libtool libraries that 7434*** depend on shared libraries, but programs linked with such libtool 7435*** libraries will work regardless of this problem. Nevertheless, you 7436*** may want to report the problem to your system manager and/or to 7437*** bug-libtool@gnu.org 7438 7439_LT_EOF 7440 fi ;; 7441 esac 7442 fi 7443 break 7444 fi 7445 done 7446 IFS="$lt_save_ifs" 7447 MAGIC_CMD="$lt_save_MAGIC_CMD" 7448 ;; 7449esac 7450fi 7451 7452MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7453if test -n "$MAGIC_CMD"; then 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7455$as_echo "$MAGIC_CMD" >&6; } 7456else 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7458$as_echo "no" >&6; } 7459fi 7460 7461 7462 7463 7464 7465if test -z "$lt_cv_path_MAGIC_CMD"; then 7466 if test -n "$ac_tool_prefix"; then 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7468$as_echo_n "checking for file... " >&6; } 7469if ${lt_cv_path_MAGIC_CMD+:} false; then : 7470 $as_echo_n "(cached) " >&6 7471else 7472 case $MAGIC_CMD in 7473[\\/*] | ?:[\\/]*) 7474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7475 ;; 7476*) 7477 lt_save_MAGIC_CMD="$MAGIC_CMD" 7478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7480 for ac_dir in $ac_dummy; do 7481 IFS="$lt_save_ifs" 7482 test -z "$ac_dir" && ac_dir=. 7483 if test -f $ac_dir/file; then 7484 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7485 if test -n "$file_magic_test_file"; then 7486 case $deplibs_check_method in 7487 "file_magic "*) 7488 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7491 $EGREP "$file_magic_regex" > /dev/null; then 7492 : 7493 else 7494 cat <<_LT_EOF 1>&2 7495 7496*** Warning: the command libtool uses to detect shared libraries, 7497*** $file_magic_cmd, produces output that libtool cannot recognize. 7498*** The result is that libtool may fail to recognize shared libraries 7499*** as such. This will affect the creation of libtool libraries that 7500*** depend on shared libraries, but programs linked with such libtool 7501*** libraries will work regardless of this problem. Nevertheless, you 7502*** may want to report the problem to your system manager and/or to 7503*** bug-libtool@gnu.org 7504 7505_LT_EOF 7506 fi ;; 7507 esac 7508 fi 7509 break 7510 fi 7511 done 7512 IFS="$lt_save_ifs" 7513 MAGIC_CMD="$lt_save_MAGIC_CMD" 7514 ;; 7515esac 7516fi 7517 7518MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7519if test -n "$MAGIC_CMD"; then 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7521$as_echo "$MAGIC_CMD" >&6; } 7522else 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7524$as_echo "no" >&6; } 7525fi 7526 7527 7528 else 7529 MAGIC_CMD=: 7530 fi 7531fi 7532 7533 fi 7534 ;; 7535esac 7536 7537# Use C for the default configuration in the libtool script 7538 7539lt_save_CC="$CC" 7540ac_ext=c 7541ac_cpp='$CPP $CPPFLAGS' 7542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7544ac_compiler_gnu=$ac_cv_c_compiler_gnu 7545 7546 7547# Source file extension for C test sources. 7548ac_ext=c 7549 7550# Object file extension for compiled C test sources. 7551objext=o 7552objext=$objext 7553 7554# Code to be used in simple compile tests 7555lt_simple_compile_test_code="int some_variable = 0;" 7556 7557# Code to be used in simple link tests 7558lt_simple_link_test_code='int main(){return(0);}' 7559 7560 7561 7562 7563 7564 7565 7566# If no C compiler was specified, use CC. 7567LTCC=${LTCC-"$CC"} 7568 7569# If no C compiler flags were specified, use CFLAGS. 7570LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7571 7572# Allow CC to be a program name with arguments. 7573compiler=$CC 7574 7575# Save the default compiler, since it gets overwritten when the other 7576# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7577compiler_DEFAULT=$CC 7578 7579# save warnings/boilerplate of simple test code 7580ac_outfile=conftest.$ac_objext 7581echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7582eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7583_lt_compiler_boilerplate=`cat conftest.err` 7584$RM conftest* 7585 7586ac_outfile=conftest.$ac_objext 7587echo "$lt_simple_link_test_code" >conftest.$ac_ext 7588eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7589_lt_linker_boilerplate=`cat conftest.err` 7590$RM -r conftest* 7591 7592 7593if test -n "$compiler"; then 7594 7595lt_prog_compiler_no_builtin_flag= 7596 7597if test "$GCC" = yes; then 7598 case $cc_basename in 7599 nvcc*) 7600 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7601 *) 7602 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7603 esac 7604 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7606$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7607if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 lt_cv_prog_compiler_rtti_exceptions=no 7611 ac_outfile=conftest.$ac_objext 7612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7613 lt_compiler_flag="-fno-rtti -fno-exceptions" 7614 # Insert the option either (1) after the last *FLAGS variable, or 7615 # (2) before a word containing "conftest.", or (3) at the end. 7616 # Note that $ac_compile itself does not contain backslashes and begins 7617 # with a dollar sign (not a hyphen), so the echo should work correctly. 7618 # The option is referenced via a variable to avoid confusing sed. 7619 lt_compile=`echo "$ac_compile" | $SED \ 7620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7622 -e 's:$: $lt_compiler_flag:'` 7623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7624 (eval "$lt_compile" 2>conftest.err) 7625 ac_status=$? 7626 cat conftest.err >&5 7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7628 if (exit $ac_status) && test -s "$ac_outfile"; then 7629 # The compiler can only warn and ignore the option if not recognized 7630 # So say no if there are warnings other than the usual output. 7631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7634 lt_cv_prog_compiler_rtti_exceptions=yes 7635 fi 7636 fi 7637 $RM conftest* 7638 7639fi 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7641$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7642 7643if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7644 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7645else 7646 : 7647fi 7648 7649fi 7650 7651 7652 7653 7654 7655 7656 lt_prog_compiler_wl= 7657lt_prog_compiler_pic= 7658lt_prog_compiler_static= 7659 7660 7661 if test "$GCC" = yes; then 7662 lt_prog_compiler_wl='-Wl,' 7663 lt_prog_compiler_static='-static' 7664 7665 case $host_os in 7666 aix*) 7667 # All AIX code is PIC. 7668 if test "$host_cpu" = ia64; then 7669 # AIX 5 now supports IA64 processor 7670 lt_prog_compiler_static='-Bstatic' 7671 fi 7672 ;; 7673 7674 amigaos*) 7675 case $host_cpu in 7676 powerpc) 7677 # see comment about AmigaOS4 .so support 7678 lt_prog_compiler_pic='-fPIC' 7679 ;; 7680 m68k) 7681 # FIXME: we need at least 68020 code to build shared libraries, but 7682 # adding the `-m68020' flag to GCC prevents building anything better, 7683 # like `-m68040'. 7684 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7685 ;; 7686 esac 7687 ;; 7688 7689 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7690 # PIC is the default for these OSes. 7691 ;; 7692 7693 mingw* | cygwin* | pw32* | os2* | cegcc*) 7694 # This hack is so that the source file can tell whether it is being 7695 # built for inclusion in a dll (and should export symbols for example). 7696 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7697 # (--disable-auto-import) libraries 7698 lt_prog_compiler_pic='-DDLL_EXPORT' 7699 ;; 7700 7701 darwin* | rhapsody*) 7702 # PIC is the default on this platform 7703 # Common symbols not allowed in MH_DYLIB files 7704 lt_prog_compiler_pic='-fno-common' 7705 ;; 7706 7707 haiku*) 7708 # PIC is the default for Haiku. 7709 # The "-static" flag exists, but is broken. 7710 lt_prog_compiler_static= 7711 ;; 7712 7713 hpux*) 7714 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7715 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7716 # sets the default TLS model and affects inlining. 7717 case $host_cpu in 7718 hppa*64*) 7719 # +Z the default 7720 ;; 7721 *) 7722 lt_prog_compiler_pic='-fPIC' 7723 ;; 7724 esac 7725 ;; 7726 7727 interix[3-9]*) 7728 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7729 # Instead, we relocate shared libraries at runtime. 7730 ;; 7731 7732 msdosdjgpp*) 7733 # Just because we use GCC doesn't mean we suddenly get shared libraries 7734 # on systems that don't support them. 7735 lt_prog_compiler_can_build_shared=no 7736 enable_shared=no 7737 ;; 7738 7739 *nto* | *qnx*) 7740 # QNX uses GNU C++, but need to define -shared option too, otherwise 7741 # it will coredump. 7742 lt_prog_compiler_pic='-fPIC -shared' 7743 ;; 7744 7745 sysv4*MP*) 7746 if test -d /usr/nec; then 7747 lt_prog_compiler_pic=-Kconform_pic 7748 fi 7749 ;; 7750 7751 *) 7752 lt_prog_compiler_pic='-fPIC' 7753 ;; 7754 esac 7755 7756 case $cc_basename in 7757 nvcc*) # Cuda Compiler Driver 2.2 7758 lt_prog_compiler_wl='-Xlinker ' 7759 if test -n "$lt_prog_compiler_pic"; then 7760 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7761 fi 7762 ;; 7763 esac 7764 else 7765 # PORTME Check for flag to pass linker flags through the system compiler. 7766 case $host_os in 7767 aix*) 7768 lt_prog_compiler_wl='-Wl,' 7769 if test "$host_cpu" = ia64; then 7770 # AIX 5 now supports IA64 processor 7771 lt_prog_compiler_static='-Bstatic' 7772 else 7773 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7774 fi 7775 ;; 7776 7777 mingw* | cygwin* | pw32* | os2* | cegcc*) 7778 # This hack is so that the source file can tell whether it is being 7779 # built for inclusion in a dll (and should export symbols for example). 7780 lt_prog_compiler_pic='-DDLL_EXPORT' 7781 ;; 7782 7783 hpux9* | hpux10* | hpux11*) 7784 lt_prog_compiler_wl='-Wl,' 7785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7786 # not for PA HP-UX. 7787 case $host_cpu in 7788 hppa*64*|ia64*) 7789 # +Z the default 7790 ;; 7791 *) 7792 lt_prog_compiler_pic='+Z' 7793 ;; 7794 esac 7795 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7796 lt_prog_compiler_static='${wl}-a ${wl}archive' 7797 ;; 7798 7799 irix5* | irix6* | nonstopux*) 7800 lt_prog_compiler_wl='-Wl,' 7801 # PIC (with -KPIC) is the default. 7802 lt_prog_compiler_static='-non_shared' 7803 ;; 7804 7805 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7806 case $cc_basename in 7807 # old Intel for x86_64 which still supported -KPIC. 7808 ecc*) 7809 lt_prog_compiler_wl='-Wl,' 7810 lt_prog_compiler_pic='-KPIC' 7811 lt_prog_compiler_static='-static' 7812 ;; 7813 # icc used to be incompatible with GCC. 7814 # ICC 10 doesn't accept -KPIC any more. 7815 icc* | ifort*) 7816 lt_prog_compiler_wl='-Wl,' 7817 lt_prog_compiler_pic='-fPIC' 7818 lt_prog_compiler_static='-static' 7819 ;; 7820 # Lahey Fortran 8.1. 7821 lf95*) 7822 lt_prog_compiler_wl='-Wl,' 7823 lt_prog_compiler_pic='--shared' 7824 lt_prog_compiler_static='--static' 7825 ;; 7826 nagfor*) 7827 # NAG Fortran compiler 7828 lt_prog_compiler_wl='-Wl,-Wl,,' 7829 lt_prog_compiler_pic='-PIC' 7830 lt_prog_compiler_static='-Bstatic' 7831 ;; 7832 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7833 # Portland Group compilers (*not* the Pentium gcc compiler, 7834 # which looks to be a dead project) 7835 lt_prog_compiler_wl='-Wl,' 7836 lt_prog_compiler_pic='-fpic' 7837 lt_prog_compiler_static='-Bstatic' 7838 ;; 7839 ccc*) 7840 lt_prog_compiler_wl='-Wl,' 7841 # All Alpha code is PIC. 7842 lt_prog_compiler_static='-non_shared' 7843 ;; 7844 xl* | bgxl* | bgf* | mpixl*) 7845 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7846 lt_prog_compiler_wl='-Wl,' 7847 lt_prog_compiler_pic='-qpic' 7848 lt_prog_compiler_static='-qstaticlink' 7849 ;; 7850 *) 7851 case `$CC -V 2>&1 | sed 5q` in 7852 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 7853 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7854 lt_prog_compiler_pic='-KPIC' 7855 lt_prog_compiler_static='-Bstatic' 7856 lt_prog_compiler_wl='' 7857 ;; 7858 *Sun\ F* | *Sun*Fortran*) 7859 lt_prog_compiler_pic='-KPIC' 7860 lt_prog_compiler_static='-Bstatic' 7861 lt_prog_compiler_wl='-Qoption ld ' 7862 ;; 7863 *Sun\ C*) 7864 # Sun C 5.9 7865 lt_prog_compiler_pic='-KPIC' 7866 lt_prog_compiler_static='-Bstatic' 7867 lt_prog_compiler_wl='-Wl,' 7868 ;; 7869 *Intel*\ [CF]*Compiler*) 7870 lt_prog_compiler_wl='-Wl,' 7871 lt_prog_compiler_pic='-fPIC' 7872 lt_prog_compiler_static='-static' 7873 ;; 7874 *Portland\ Group*) 7875 lt_prog_compiler_wl='-Wl,' 7876 lt_prog_compiler_pic='-fpic' 7877 lt_prog_compiler_static='-Bstatic' 7878 ;; 7879 esac 7880 ;; 7881 esac 7882 ;; 7883 7884 newsos6) 7885 lt_prog_compiler_pic='-KPIC' 7886 lt_prog_compiler_static='-Bstatic' 7887 ;; 7888 7889 *nto* | *qnx*) 7890 # QNX uses GNU C++, but need to define -shared option too, otherwise 7891 # it will coredump. 7892 lt_prog_compiler_pic='-fPIC -shared' 7893 ;; 7894 7895 osf3* | osf4* | osf5*) 7896 lt_prog_compiler_wl='-Wl,' 7897 # All OSF/1 code is PIC. 7898 lt_prog_compiler_static='-non_shared' 7899 ;; 7900 7901 rdos*) 7902 lt_prog_compiler_static='-non_shared' 7903 ;; 7904 7905 solaris*) 7906 lt_prog_compiler_pic='-KPIC' 7907 lt_prog_compiler_static='-Bstatic' 7908 case $cc_basename in 7909 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7910 lt_prog_compiler_wl='-Qoption ld ';; 7911 *) 7912 lt_prog_compiler_wl='-Wl,';; 7913 esac 7914 ;; 7915 7916 sunos4*) 7917 lt_prog_compiler_wl='-Qoption ld ' 7918 lt_prog_compiler_pic='-PIC' 7919 lt_prog_compiler_static='-Bstatic' 7920 ;; 7921 7922 sysv4 | sysv4.2uw2* | sysv4.3*) 7923 lt_prog_compiler_wl='-Wl,' 7924 lt_prog_compiler_pic='-KPIC' 7925 lt_prog_compiler_static='-Bstatic' 7926 ;; 7927 7928 sysv4*MP*) 7929 if test -d /usr/nec ;then 7930 lt_prog_compiler_pic='-Kconform_pic' 7931 lt_prog_compiler_static='-Bstatic' 7932 fi 7933 ;; 7934 7935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7936 lt_prog_compiler_wl='-Wl,' 7937 lt_prog_compiler_pic='-KPIC' 7938 lt_prog_compiler_static='-Bstatic' 7939 ;; 7940 7941 unicos*) 7942 lt_prog_compiler_wl='-Wl,' 7943 lt_prog_compiler_can_build_shared=no 7944 ;; 7945 7946 uts4*) 7947 lt_prog_compiler_pic='-pic' 7948 lt_prog_compiler_static='-Bstatic' 7949 ;; 7950 7951 *) 7952 lt_prog_compiler_can_build_shared=no 7953 ;; 7954 esac 7955 fi 7956 7957case $host_os in 7958 # For platforms which do not support PIC, -DPIC is meaningless: 7959 *djgpp*) 7960 lt_prog_compiler_pic= 7961 ;; 7962 *) 7963 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7964 ;; 7965esac 7966 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7968$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7969if ${lt_cv_prog_compiler_pic+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971else 7972 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 7973fi 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 7975$as_echo "$lt_cv_prog_compiler_pic" >&6; } 7976lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 7977 7978# 7979# Check to make sure the PIC flag actually works. 7980# 7981if test -n "$lt_prog_compiler_pic"; then 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7983$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7984if ${lt_cv_prog_compiler_pic_works+:} false; then : 7985 $as_echo_n "(cached) " >&6 7986else 7987 lt_cv_prog_compiler_pic_works=no 7988 ac_outfile=conftest.$ac_objext 7989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7991 # Insert the option either (1) after the last *FLAGS variable, or 7992 # (2) before a word containing "conftest.", or (3) at the end. 7993 # Note that $ac_compile itself does not contain backslashes and begins 7994 # with a dollar sign (not a hyphen), so the echo should work correctly. 7995 # The option is referenced via a variable to avoid confusing sed. 7996 lt_compile=`echo "$ac_compile" | $SED \ 7997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7999 -e 's:$: $lt_compiler_flag:'` 8000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8001 (eval "$lt_compile" 2>conftest.err) 8002 ac_status=$? 8003 cat conftest.err >&5 8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8005 if (exit $ac_status) && test -s "$ac_outfile"; then 8006 # The compiler can only warn and ignore the option if not recognized 8007 # So say no if there are warnings other than the usual output. 8008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8011 lt_cv_prog_compiler_pic_works=yes 8012 fi 8013 fi 8014 $RM conftest* 8015 8016fi 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8018$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8019 8020if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8021 case $lt_prog_compiler_pic in 8022 "" | " "*) ;; 8023 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8024 esac 8025else 8026 lt_prog_compiler_pic= 8027 lt_prog_compiler_can_build_shared=no 8028fi 8029 8030fi 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042# 8043# Check to make sure the static flag actually works. 8044# 8045wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8047$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8048if ${lt_cv_prog_compiler_static_works+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050else 8051 lt_cv_prog_compiler_static_works=no 8052 save_LDFLAGS="$LDFLAGS" 8053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8054 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8056 # The linker can only warn and ignore the option if not recognized 8057 # So say no if there are warnings 8058 if test -s conftest.err; then 8059 # Append any errors to the config.log. 8060 cat conftest.err 1>&5 8061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8063 if diff conftest.exp conftest.er2 >/dev/null; then 8064 lt_cv_prog_compiler_static_works=yes 8065 fi 8066 else 8067 lt_cv_prog_compiler_static_works=yes 8068 fi 8069 fi 8070 $RM -r conftest* 8071 LDFLAGS="$save_LDFLAGS" 8072 8073fi 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8075$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8076 8077if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8078 : 8079else 8080 lt_prog_compiler_static= 8081fi 8082 8083 8084 8085 8086 8087 8088 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8090$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8091if ${lt_cv_prog_compiler_c_o+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093else 8094 lt_cv_prog_compiler_c_o=no 8095 $RM -r conftest 2>/dev/null 8096 mkdir conftest 8097 cd conftest 8098 mkdir out 8099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8100 8101 lt_compiler_flag="-o out/conftest2.$ac_objext" 8102 # Insert the option either (1) after the last *FLAGS variable, or 8103 # (2) before a word containing "conftest.", or (3) at the end. 8104 # Note that $ac_compile itself does not contain backslashes and begins 8105 # with a dollar sign (not a hyphen), so the echo should work correctly. 8106 lt_compile=`echo "$ac_compile" | $SED \ 8107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8109 -e 's:$: $lt_compiler_flag:'` 8110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8111 (eval "$lt_compile" 2>out/conftest.err) 8112 ac_status=$? 8113 cat out/conftest.err >&5 8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8115 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8116 then 8117 # The compiler can only warn and ignore the option if not recognized 8118 # So say no if there are warnings 8119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8122 lt_cv_prog_compiler_c_o=yes 8123 fi 8124 fi 8125 chmod u+w . 2>&5 8126 $RM conftest* 8127 # SGI C++ compiler will create directory out/ii_files/ for 8128 # template instantiation 8129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8130 $RM out/* && rmdir out 8131 cd .. 8132 $RM -r conftest 8133 $RM conftest* 8134 8135fi 8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8137$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8138 8139 8140 8141 8142 8143 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8145$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8146if ${lt_cv_prog_compiler_c_o+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 lt_cv_prog_compiler_c_o=no 8150 $RM -r conftest 2>/dev/null 8151 mkdir conftest 8152 cd conftest 8153 mkdir out 8154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8155 8156 lt_compiler_flag="-o out/conftest2.$ac_objext" 8157 # Insert the option either (1) after the last *FLAGS variable, or 8158 # (2) before a word containing "conftest.", or (3) at the end. 8159 # Note that $ac_compile itself does not contain backslashes and begins 8160 # with a dollar sign (not a hyphen), so the echo should work correctly. 8161 lt_compile=`echo "$ac_compile" | $SED \ 8162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8164 -e 's:$: $lt_compiler_flag:'` 8165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8166 (eval "$lt_compile" 2>out/conftest.err) 8167 ac_status=$? 8168 cat out/conftest.err >&5 8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8170 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8171 then 8172 # The compiler can only warn and ignore the option if not recognized 8173 # So say no if there are warnings 8174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8177 lt_cv_prog_compiler_c_o=yes 8178 fi 8179 fi 8180 chmod u+w . 2>&5 8181 $RM conftest* 8182 # SGI C++ compiler will create directory out/ii_files/ for 8183 # template instantiation 8184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8185 $RM out/* && rmdir out 8186 cd .. 8187 $RM -r conftest 8188 $RM conftest* 8189 8190fi 8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8192$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8193 8194 8195 8196 8197hard_links="nottested" 8198if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8199 # do not overwrite the value of need_locks provided by the user 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8201$as_echo_n "checking if we can lock with hard links... " >&6; } 8202 hard_links=yes 8203 $RM conftest* 8204 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8205 touch conftest.a 8206 ln conftest.a conftest.b 2>&5 || hard_links=no 8207 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8209$as_echo "$hard_links" >&6; } 8210 if test "$hard_links" = no; then 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8212$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8213 need_locks=warn 8214 fi 8215else 8216 need_locks=no 8217fi 8218 8219 8220 8221 8222 8223 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8225$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8226 8227 runpath_var= 8228 allow_undefined_flag= 8229 always_export_symbols=no 8230 archive_cmds= 8231 archive_expsym_cmds= 8232 compiler_needs_object=no 8233 enable_shared_with_static_runtimes=no 8234 export_dynamic_flag_spec= 8235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8236 hardcode_automatic=no 8237 hardcode_direct=no 8238 hardcode_direct_absolute=no 8239 hardcode_libdir_flag_spec= 8240 hardcode_libdir_separator= 8241 hardcode_minus_L=no 8242 hardcode_shlibpath_var=unsupported 8243 inherit_rpath=no 8244 link_all_deplibs=unknown 8245 module_cmds= 8246 module_expsym_cmds= 8247 old_archive_from_new_cmds= 8248 old_archive_from_expsyms_cmds= 8249 thread_safe_flag_spec= 8250 whole_archive_flag_spec= 8251 # include_expsyms should be a list of space-separated symbols to be *always* 8252 # included in the symbol list 8253 include_expsyms= 8254 # exclude_expsyms can be an extended regexp of symbols to exclude 8255 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8257 # as well as any symbol that contains `d'. 8258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8260 # platforms (ab)use it in PIC code, but their linkers get confused if 8261 # the symbol is explicitly referenced. Since portable code cannot 8262 # rely on this symbol name, it's probably fine to never include it in 8263 # preloaded symbol tables. 8264 # Exclude shared library initialization/finalization symbols. 8265 extract_expsyms_cmds= 8266 8267 case $host_os in 8268 cygwin* | mingw* | pw32* | cegcc*) 8269 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8270 # When not using gcc, we currently assume that we are using 8271 # Microsoft Visual C++. 8272 if test "$GCC" != yes; then 8273 with_gnu_ld=no 8274 fi 8275 ;; 8276 interix*) 8277 # we just hope/assume this is gcc and not c89 (= MSVC++) 8278 with_gnu_ld=yes 8279 ;; 8280 openbsd*) 8281 with_gnu_ld=no 8282 ;; 8283 linux* | k*bsd*-gnu | gnu*) 8284 link_all_deplibs=no 8285 ;; 8286 esac 8287 8288 ld_shlibs=yes 8289 8290 # On some targets, GNU ld is compatible enough with the native linker 8291 # that we're better off using the native interface for both. 8292 lt_use_gnu_ld_interface=no 8293 if test "$with_gnu_ld" = yes; then 8294 case $host_os in 8295 aix*) 8296 # The AIX port of GNU ld has always aspired to compatibility 8297 # with the native linker. However, as the warning in the GNU ld 8298 # block says, versions before 2.19.5* couldn't really create working 8299 # shared libraries, regardless of the interface used. 8300 case `$LD -v 2>&1` in 8301 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8302 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8303 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8304 *) 8305 lt_use_gnu_ld_interface=yes 8306 ;; 8307 esac 8308 ;; 8309 *) 8310 lt_use_gnu_ld_interface=yes 8311 ;; 8312 esac 8313 fi 8314 8315 if test "$lt_use_gnu_ld_interface" = yes; then 8316 # If archive_cmds runs LD, not CC, wlarc should be empty 8317 wlarc='${wl}' 8318 8319 # Set some defaults for GNU ld with shared library support. These 8320 # are reset later if shared libraries are not supported. Putting them 8321 # here allows them to be overridden if necessary. 8322 runpath_var=LD_RUN_PATH 8323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8324 export_dynamic_flag_spec='${wl}--export-dynamic' 8325 # ancient GNU ld didn't support --whole-archive et. al. 8326 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8327 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8328 else 8329 whole_archive_flag_spec= 8330 fi 8331 supports_anon_versioning=no 8332 case `$LD -v 2>&1` in 8333 *GNU\ gold*) supports_anon_versioning=yes ;; 8334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8337 *\ 2.11.*) ;; # other 2.11 versions 8338 *) supports_anon_versioning=yes ;; 8339 esac 8340 8341 # See if GNU ld supports shared libraries. 8342 case $host_os in 8343 aix[3-9]*) 8344 # On AIX/PPC, the GNU linker is very broken 8345 if test "$host_cpu" != ia64; then 8346 ld_shlibs=no 8347 cat <<_LT_EOF 1>&2 8348 8349*** Warning: the GNU linker, at least up to release 2.19, is reported 8350*** to be unable to reliably create shared libraries on AIX. 8351*** Therefore, libtool is disabling shared libraries support. If you 8352*** really care for shared libraries, you may want to install binutils 8353*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8354*** You will then need to restart the configuration process. 8355 8356_LT_EOF 8357 fi 8358 ;; 8359 8360 amigaos*) 8361 case $host_cpu in 8362 powerpc) 8363 # see comment about AmigaOS4 .so support 8364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8365 archive_expsym_cmds='' 8366 ;; 8367 m68k) 8368 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)' 8369 hardcode_libdir_flag_spec='-L$libdir' 8370 hardcode_minus_L=yes 8371 ;; 8372 esac 8373 ;; 8374 8375 beos*) 8376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8377 allow_undefined_flag=unsupported 8378 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8379 # support --undefined. This deserves some investigation. FIXME 8380 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8381 else 8382 ld_shlibs=no 8383 fi 8384 ;; 8385 8386 cygwin* | mingw* | pw32* | cegcc*) 8387 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8388 # as there is no search path for DLLs. 8389 hardcode_libdir_flag_spec='-L$libdir' 8390 export_dynamic_flag_spec='${wl}--export-all-symbols' 8391 allow_undefined_flag=unsupported 8392 always_export_symbols=no 8393 enable_shared_with_static_runtimes=yes 8394 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' 8395 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8396 8397 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8399 # If the export-symbols file already is a .def file (1st line 8400 # is EXPORTS), use it as is; otherwise, prepend... 8401 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8402 cp $export_symbols $output_objdir/$soname.def; 8403 else 8404 echo EXPORTS > $output_objdir/$soname.def; 8405 cat $export_symbols >> $output_objdir/$soname.def; 8406 fi~ 8407 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8408 else 8409 ld_shlibs=no 8410 fi 8411 ;; 8412 8413 haiku*) 8414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8415 link_all_deplibs=yes 8416 ;; 8417 8418 interix[3-9]*) 8419 hardcode_direct=no 8420 hardcode_shlibpath_var=no 8421 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8422 export_dynamic_flag_spec='${wl}-E' 8423 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8424 # Instead, shared libraries are loaded at an image base (0x10000000 by 8425 # default) and relocated if they conflict, which is a slow very memory 8426 # consuming and fragmenting process. To avoid this, we pick a random, 8427 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8428 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8429 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8430 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' 8431 ;; 8432 8433 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8434 tmp_diet=no 8435 if test "$host_os" = linux-dietlibc; then 8436 case $cc_basename in 8437 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8438 esac 8439 fi 8440 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8441 && test "$tmp_diet" = no 8442 then 8443 tmp_addflag=' $pic_flag' 8444 tmp_sharedflag='-shared' 8445 case $cc_basename,$host_cpu in 8446 pgcc*) # Portland Group C compiler 8447 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' 8448 tmp_addflag=' $pic_flag' 8449 ;; 8450 pgf77* | pgf90* | pgf95* | pgfortran*) 8451 # Portland Group f77 and f90 compilers 8452 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' 8453 tmp_addflag=' $pic_flag -Mnomain' ;; 8454 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8455 tmp_addflag=' -i_dynamic' ;; 8456 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8457 tmp_addflag=' -i_dynamic -nofor_main' ;; 8458 ifc* | ifort*) # Intel Fortran compiler 8459 tmp_addflag=' -nofor_main' ;; 8460 lf95*) # Lahey Fortran 8.1 8461 whole_archive_flag_spec= 8462 tmp_sharedflag='--shared' ;; 8463 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8464 tmp_sharedflag='-qmkshrobj' 8465 tmp_addflag= ;; 8466 nvcc*) # Cuda Compiler Driver 2.2 8467 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' 8468 compiler_needs_object=yes 8469 ;; 8470 esac 8471 case `$CC -V 2>&1 | sed 5q` in 8472 *Sun\ C*) # Sun C 5.9 8473 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' 8474 compiler_needs_object=yes 8475 tmp_sharedflag='-G' ;; 8476 *Sun\ F*) # Sun Fortran 8.3 8477 tmp_sharedflag='-G' ;; 8478 esac 8479 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8480 8481 if test "x$supports_anon_versioning" = xyes; then 8482 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8484 echo "local: *; };" >> $output_objdir/$libname.ver~ 8485 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8486 fi 8487 8488 case $cc_basename in 8489 xlf* | bgf* | bgxlf* | mpixlf*) 8490 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8491 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8493 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8494 if test "x$supports_anon_versioning" = xyes; then 8495 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8496 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8497 echo "local: *; };" >> $output_objdir/$libname.ver~ 8498 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8499 fi 8500 ;; 8501 esac 8502 else 8503 ld_shlibs=no 8504 fi 8505 ;; 8506 8507 netbsd* | netbsdelf*-gnu) 8508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8509 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8510 wlarc= 8511 else 8512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8513 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8514 fi 8515 ;; 8516 8517 solaris*) 8518 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8519 ld_shlibs=no 8520 cat <<_LT_EOF 1>&2 8521 8522*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8523*** create shared libraries on Solaris systems. Therefore, libtool 8524*** is disabling shared libraries support. We urge you to upgrade GNU 8525*** binutils to release 2.9.1 or newer. Another option is to modify 8526*** your PATH or compiler configuration so that the native linker is 8527*** used, and then restart. 8528 8529_LT_EOF 8530 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8532 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8533 else 8534 ld_shlibs=no 8535 fi 8536 ;; 8537 8538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8539 case `$LD -v 2>&1` in 8540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8541 ld_shlibs=no 8542 cat <<_LT_EOF 1>&2 8543 8544*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8545*** reliably create shared libraries on SCO systems. Therefore, libtool 8546*** is disabling shared libraries support. We urge you to upgrade GNU 8547*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8548*** your PATH or compiler configuration so that the native linker is 8549*** used, and then restart. 8550 8551_LT_EOF 8552 ;; 8553 *) 8554 # For security reasons, it is highly recommended that you always 8555 # use absolute paths for naming shared libraries, and exclude the 8556 # DT_RUNPATH tag from executables and libraries. But doing so 8557 # requires that you compile everything twice, which is a pain. 8558 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8562 else 8563 ld_shlibs=no 8564 fi 8565 ;; 8566 esac 8567 ;; 8568 8569 sunos4*) 8570 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8571 wlarc= 8572 hardcode_direct=yes 8573 hardcode_shlibpath_var=no 8574 ;; 8575 8576 *) 8577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8580 else 8581 ld_shlibs=no 8582 fi 8583 ;; 8584 esac 8585 8586 if test "$ld_shlibs" = no; then 8587 runpath_var= 8588 hardcode_libdir_flag_spec= 8589 export_dynamic_flag_spec= 8590 whole_archive_flag_spec= 8591 fi 8592 else 8593 # PORTME fill in a description of your system's linker (not GNU ld) 8594 case $host_os in 8595 aix3*) 8596 allow_undefined_flag=unsupported 8597 always_export_symbols=yes 8598 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' 8599 # Note: this linker hardcodes the directories in LIBPATH if there 8600 # are no directories specified by -L. 8601 hardcode_minus_L=yes 8602 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8603 # Neither direct hardcoding nor static linking is supported with a 8604 # broken collect2. 8605 hardcode_direct=unsupported 8606 fi 8607 ;; 8608 8609 aix[4-9]*) 8610 if test "$host_cpu" = ia64; then 8611 # On IA64, the linker does run time linking by default, so we don't 8612 # have to do anything special. 8613 aix_use_runtimelinking=no 8614 exp_sym_flag='-Bexport' 8615 no_entry_flag="" 8616 else 8617 # If we're using GNU nm, then we don't want the "-C" option. 8618 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8619 # Also, AIX nm treats weak defined symbols like other global 8620 # defined symbols, whereas GNU nm marks them as "W". 8621 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8622 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8623 else 8624 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8625 fi 8626 aix_use_runtimelinking=no 8627 8628 # Test if we are trying to use run time linking or normal 8629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8630 # need to do runtime linking. 8631 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8632 for ld_flag in $LDFLAGS; do 8633 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8634 aix_use_runtimelinking=yes 8635 break 8636 fi 8637 done 8638 ;; 8639 esac 8640 8641 exp_sym_flag='-bexport' 8642 no_entry_flag='-bnoentry' 8643 fi 8644 8645 # When large executables or shared objects are built, AIX ld can 8646 # have problems creating the table of contents. If linking a library 8647 # or program results in "error TOC overflow" add -mminimal-toc to 8648 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8649 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8650 8651 archive_cmds='' 8652 hardcode_direct=yes 8653 hardcode_direct_absolute=yes 8654 hardcode_libdir_separator=':' 8655 link_all_deplibs=yes 8656 file_list_spec='${wl}-f,' 8657 8658 if test "$GCC" = yes; then 8659 case $host_os in aix4.[012]|aix4.[012].*) 8660 # We only want to do this on AIX 4.2 and lower, the check 8661 # below for broken collect2 doesn't work under 4.3+ 8662 collect2name=`${CC} -print-prog-name=collect2` 8663 if test -f "$collect2name" && 8664 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8665 then 8666 # We have reworked collect2 8667 : 8668 else 8669 # We have old collect2 8670 hardcode_direct=unsupported 8671 # It fails to find uninstalled libraries when the uninstalled 8672 # path is not listed in the libpath. Setting hardcode_minus_L 8673 # to unsupported forces relinking 8674 hardcode_minus_L=yes 8675 hardcode_libdir_flag_spec='-L$libdir' 8676 hardcode_libdir_separator= 8677 fi 8678 ;; 8679 esac 8680 shared_flag='-shared' 8681 if test "$aix_use_runtimelinking" = yes; then 8682 shared_flag="$shared_flag "'${wl}-G' 8683 fi 8684 link_all_deplibs=no 8685 else 8686 # not using gcc 8687 if test "$host_cpu" = ia64; then 8688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8689 # chokes on -Wl,-G. The following line is correct: 8690 shared_flag='-G' 8691 else 8692 if test "$aix_use_runtimelinking" = yes; then 8693 shared_flag='${wl}-G' 8694 else 8695 shared_flag='${wl}-bM:SRE' 8696 fi 8697 fi 8698 fi 8699 8700 export_dynamic_flag_spec='${wl}-bexpall' 8701 # It seems that -bexpall does not export symbols beginning with 8702 # underscore (_), so it is better to generate a list of symbols to export. 8703 always_export_symbols=yes 8704 if test "$aix_use_runtimelinking" = yes; then 8705 # Warning - without using the other runtime loading flags (-brtl), 8706 # -berok will link without error, but may produce a broken library. 8707 allow_undefined_flag='-berok' 8708 # Determine the default libpath from the value encoded in an 8709 # empty executable. 8710 if test "${lt_cv_aix_libpath+set}" = set; then 8711 aix_libpath=$lt_cv_aix_libpath 8712else 8713 if ${lt_cv_aix_libpath_+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8717/* end confdefs.h. */ 8718 8719int 8720main () 8721{ 8722 8723 ; 8724 return 0; 8725} 8726_ACEOF 8727if ac_fn_c_try_link "$LINENO"; then : 8728 8729 lt_aix_libpath_sed=' 8730 /Import File Strings/,/^$/ { 8731 /^0/ { 8732 s/^0 *\([^ ]*\) *$/\1/ 8733 p 8734 } 8735 }' 8736 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8737 # Check for a 64-bit object if we didn't find anything. 8738 if test -z "$lt_cv_aix_libpath_"; then 8739 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8740 fi 8741fi 8742rm -f core conftest.err conftest.$ac_objext \ 8743 conftest$ac_exeext conftest.$ac_ext 8744 if test -z "$lt_cv_aix_libpath_"; then 8745 lt_cv_aix_libpath_="/usr/lib:/lib" 8746 fi 8747 8748fi 8749 8750 aix_libpath=$lt_cv_aix_libpath_ 8751fi 8752 8753 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8754 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8755 else 8756 if test "$host_cpu" = ia64; then 8757 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8758 allow_undefined_flag="-z nodefs" 8759 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" 8760 else 8761 # Determine the default libpath from the value encoded in an 8762 # empty executable. 8763 if test "${lt_cv_aix_libpath+set}" = set; then 8764 aix_libpath=$lt_cv_aix_libpath 8765else 8766 if ${lt_cv_aix_libpath_+:} false; then : 8767 $as_echo_n "(cached) " >&6 8768else 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771 8772int 8773main () 8774{ 8775 8776 ; 8777 return 0; 8778} 8779_ACEOF 8780if ac_fn_c_try_link "$LINENO"; then : 8781 8782 lt_aix_libpath_sed=' 8783 /Import File Strings/,/^$/ { 8784 /^0/ { 8785 s/^0 *\([^ ]*\) *$/\1/ 8786 p 8787 } 8788 }' 8789 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8790 # Check for a 64-bit object if we didn't find anything. 8791 if test -z "$lt_cv_aix_libpath_"; then 8792 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8793 fi 8794fi 8795rm -f core conftest.err conftest.$ac_objext \ 8796 conftest$ac_exeext conftest.$ac_ext 8797 if test -z "$lt_cv_aix_libpath_"; then 8798 lt_cv_aix_libpath_="/usr/lib:/lib" 8799 fi 8800 8801fi 8802 8803 aix_libpath=$lt_cv_aix_libpath_ 8804fi 8805 8806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8807 # Warning - without using the other run time loading flags, 8808 # -berok will link without error, but may produce a broken library. 8809 no_undefined_flag=' ${wl}-bernotok' 8810 allow_undefined_flag=' ${wl}-berok' 8811 if test "$with_gnu_ld" = yes; then 8812 # We only use this code for GNU lds that support --whole-archive. 8813 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8814 else 8815 # Exported symbols can be pulled into shared objects from archives 8816 whole_archive_flag_spec='$convenience' 8817 fi 8818 archive_cmds_need_lc=yes 8819 # This is similar to how AIX traditionally builds its shared libraries. 8820 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8821 fi 8822 fi 8823 ;; 8824 8825 amigaos*) 8826 case $host_cpu in 8827 powerpc) 8828 # see comment about AmigaOS4 .so support 8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8830 archive_expsym_cmds='' 8831 ;; 8832 m68k) 8833 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)' 8834 hardcode_libdir_flag_spec='-L$libdir' 8835 hardcode_minus_L=yes 8836 ;; 8837 esac 8838 ;; 8839 8840 bsdi[45]*) 8841 export_dynamic_flag_spec=-rdynamic 8842 ;; 8843 8844 cygwin* | mingw* | pw32* | cegcc*) 8845 # When not using gcc, we currently assume that we are using 8846 # Microsoft Visual C++. 8847 # hardcode_libdir_flag_spec is actually meaningless, as there is 8848 # no search path for DLLs. 8849 case $cc_basename in 8850 cl*) 8851 # Native MSVC 8852 hardcode_libdir_flag_spec=' ' 8853 allow_undefined_flag=unsupported 8854 always_export_symbols=yes 8855 file_list_spec='@' 8856 # Tell ltmain to make .lib files, not .a files. 8857 libext=lib 8858 # Tell ltmain to make .dll files, not .so files. 8859 shrext_cmds=".dll" 8860 # FIXME: Setting linknames here is a bad hack. 8861 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 8862 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8863 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 8864 else 8865 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 8866 fi~ 8867 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8868 linknames=' 8869 # The linker will not automatically build a static lib if we build a DLL. 8870 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 8871 enable_shared_with_static_runtimes=yes 8872 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 8873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8874 # Don't use ranlib 8875 old_postinstall_cmds='chmod 644 $oldlib' 8876 postlink_cmds='lt_outputfile="@OUTPUT@"~ 8877 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8878 case $lt_outputfile in 8879 *.exe|*.EXE) ;; 8880 *) 8881 lt_outputfile="$lt_outputfile.exe" 8882 lt_tool_outputfile="$lt_tool_outputfile.exe" 8883 ;; 8884 esac~ 8885 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 8886 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8887 $RM "$lt_outputfile.manifest"; 8888 fi' 8889 ;; 8890 *) 8891 # Assume MSVC wrapper 8892 hardcode_libdir_flag_spec=' ' 8893 allow_undefined_flag=unsupported 8894 # Tell ltmain to make .lib files, not .a files. 8895 libext=lib 8896 # Tell ltmain to make .dll files, not .so files. 8897 shrext_cmds=".dll" 8898 # FIXME: Setting linknames here is a bad hack. 8899 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8900 # The linker will automatically build a .lib file if we build a DLL. 8901 old_archive_from_new_cmds='true' 8902 # FIXME: Should let the user specify the lib program. 8903 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8904 enable_shared_with_static_runtimes=yes 8905 ;; 8906 esac 8907 ;; 8908 8909 darwin* | rhapsody*) 8910 8911 8912 archive_cmds_need_lc=no 8913 hardcode_direct=no 8914 hardcode_automatic=yes 8915 hardcode_shlibpath_var=unsupported 8916 if test "$lt_cv_ld_force_load" = "yes"; then 8917 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\"`' 8918 8919 else 8920 whole_archive_flag_spec='' 8921 fi 8922 link_all_deplibs=yes 8923 allow_undefined_flag="$_lt_dar_allow_undefined" 8924 case $cc_basename in 8925 ifort*) _lt_dar_can_shared=yes ;; 8926 *) _lt_dar_can_shared=$GCC ;; 8927 esac 8928 if test "$_lt_dar_can_shared" = "yes"; then 8929 output_verbose_link_cmd=func_echo_all 8930 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8931 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8932 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}" 8933 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}" 8934 8935 else 8936 ld_shlibs=no 8937 fi 8938 8939 ;; 8940 8941 dgux*) 8942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8943 hardcode_libdir_flag_spec='-L$libdir' 8944 hardcode_shlibpath_var=no 8945 ;; 8946 8947 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8948 # support. Future versions do this automatically, but an explicit c++rt0.o 8949 # does not break anything, and helps significantly (at the cost of a little 8950 # extra space). 8951 freebsd2.2*) 8952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8953 hardcode_libdir_flag_spec='-R$libdir' 8954 hardcode_direct=yes 8955 hardcode_shlibpath_var=no 8956 ;; 8957 8958 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8959 freebsd2.*) 8960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8961 hardcode_direct=yes 8962 hardcode_minus_L=yes 8963 hardcode_shlibpath_var=no 8964 ;; 8965 8966 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8967 freebsd* | dragonfly*) 8968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8969 hardcode_libdir_flag_spec='-R$libdir' 8970 hardcode_direct=yes 8971 hardcode_shlibpath_var=no 8972 ;; 8973 8974 hpux9*) 8975 if test "$GCC" = yes; then 8976 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8977 else 8978 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8979 fi 8980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8981 hardcode_libdir_separator=: 8982 hardcode_direct=yes 8983 8984 # hardcode_minus_L: Not really in the search PATH, 8985 # but as the default location of the library. 8986 hardcode_minus_L=yes 8987 export_dynamic_flag_spec='${wl}-E' 8988 ;; 8989 8990 hpux10*) 8991 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8992 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8993 else 8994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8995 fi 8996 if test "$with_gnu_ld" = no; then 8997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8998 hardcode_libdir_separator=: 8999 hardcode_direct=yes 9000 hardcode_direct_absolute=yes 9001 export_dynamic_flag_spec='${wl}-E' 9002 # hardcode_minus_L: Not really in the search PATH, 9003 # but as the default location of the library. 9004 hardcode_minus_L=yes 9005 fi 9006 ;; 9007 9008 hpux11*) 9009 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9010 case $host_cpu in 9011 hppa*64*) 9012 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9013 ;; 9014 ia64*) 9015 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9016 ;; 9017 *) 9018 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9019 ;; 9020 esac 9021 else 9022 case $host_cpu in 9023 hppa*64*) 9024 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9025 ;; 9026 ia64*) 9027 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9028 ;; 9029 *) 9030 9031 # Older versions of the 11.00 compiler do not understand -b yet 9032 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9034$as_echo_n "checking if $CC understands -b... " >&6; } 9035if ${lt_cv_prog_compiler__b+:} false; then : 9036 $as_echo_n "(cached) " >&6 9037else 9038 lt_cv_prog_compiler__b=no 9039 save_LDFLAGS="$LDFLAGS" 9040 LDFLAGS="$LDFLAGS -b" 9041 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9043 # The linker can only warn and ignore the option if not recognized 9044 # So say no if there are warnings 9045 if test -s conftest.err; then 9046 # Append any errors to the config.log. 9047 cat conftest.err 1>&5 9048 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9050 if diff conftest.exp conftest.er2 >/dev/null; then 9051 lt_cv_prog_compiler__b=yes 9052 fi 9053 else 9054 lt_cv_prog_compiler__b=yes 9055 fi 9056 fi 9057 $RM -r conftest* 9058 LDFLAGS="$save_LDFLAGS" 9059 9060fi 9061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9062$as_echo "$lt_cv_prog_compiler__b" >&6; } 9063 9064if test x"$lt_cv_prog_compiler__b" = xyes; then 9065 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9066else 9067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9068fi 9069 9070 ;; 9071 esac 9072 fi 9073 if test "$with_gnu_ld" = no; then 9074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9075 hardcode_libdir_separator=: 9076 9077 case $host_cpu in 9078 hppa*64*|ia64*) 9079 hardcode_direct=no 9080 hardcode_shlibpath_var=no 9081 ;; 9082 *) 9083 hardcode_direct=yes 9084 hardcode_direct_absolute=yes 9085 export_dynamic_flag_spec='${wl}-E' 9086 9087 # hardcode_minus_L: Not really in the search PATH, 9088 # but as the default location of the library. 9089 hardcode_minus_L=yes 9090 ;; 9091 esac 9092 fi 9093 ;; 9094 9095 irix5* | irix6* | nonstopux*) 9096 if test "$GCC" = yes; then 9097 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' 9098 # Try to use the -exported_symbol ld option, if it does not 9099 # work, assume that -exports_file does not work either and 9100 # implicitly export all symbols. 9101 # This should be the same for all languages, so no per-tag cache variable. 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9103$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9104if ${lt_cv_irix_exported_symbol+:} false; then : 9105 $as_echo_n "(cached) " >&6 9106else 9107 save_LDFLAGS="$LDFLAGS" 9108 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110/* end confdefs.h. */ 9111int foo (void) { return 0; } 9112_ACEOF 9113if ac_fn_c_try_link "$LINENO"; then : 9114 lt_cv_irix_exported_symbol=yes 9115else 9116 lt_cv_irix_exported_symbol=no 9117fi 9118rm -f core conftest.err conftest.$ac_objext \ 9119 conftest$ac_exeext conftest.$ac_ext 9120 LDFLAGS="$save_LDFLAGS" 9121fi 9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9123$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9124 if test "$lt_cv_irix_exported_symbol" = yes; then 9125 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' 9126 fi 9127 else 9128 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' 9129 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' 9130 fi 9131 archive_cmds_need_lc='no' 9132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9133 hardcode_libdir_separator=: 9134 inherit_rpath=yes 9135 link_all_deplibs=yes 9136 ;; 9137 9138 netbsd* | netbsdelf*-gnu) 9139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9141 else 9142 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9143 fi 9144 hardcode_libdir_flag_spec='-R$libdir' 9145 hardcode_direct=yes 9146 hardcode_shlibpath_var=no 9147 ;; 9148 9149 newsos6) 9150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9151 hardcode_direct=yes 9152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9153 hardcode_libdir_separator=: 9154 hardcode_shlibpath_var=no 9155 ;; 9156 9157 *nto* | *qnx*) 9158 ;; 9159 9160 openbsd*) 9161 if test -f /usr/libexec/ld.so; then 9162 hardcode_direct=yes 9163 hardcode_shlibpath_var=no 9164 hardcode_direct_absolute=yes 9165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9167 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9169 export_dynamic_flag_spec='${wl}-E' 9170 else 9171 case $host_os in 9172 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9174 hardcode_libdir_flag_spec='-R$libdir' 9175 ;; 9176 *) 9177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9179 ;; 9180 esac 9181 fi 9182 else 9183 ld_shlibs=no 9184 fi 9185 ;; 9186 9187 os2*) 9188 hardcode_libdir_flag_spec='-L$libdir' 9189 hardcode_minus_L=yes 9190 allow_undefined_flag=unsupported 9191 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9192 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9193 ;; 9194 9195 osf3*) 9196 if test "$GCC" = yes; then 9197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9198 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' 9199 else 9200 allow_undefined_flag=' -expect_unresolved \*' 9201 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' 9202 fi 9203 archive_cmds_need_lc='no' 9204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9205 hardcode_libdir_separator=: 9206 ;; 9207 9208 osf4* | osf5*) # as osf3* with the addition of -msym flag 9209 if test "$GCC" = yes; then 9210 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9211 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' 9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9213 else 9214 allow_undefined_flag=' -expect_unresolved \*' 9215 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' 9216 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~ 9217 $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' 9218 9219 # Both c and cxx compiler support -rpath directly 9220 hardcode_libdir_flag_spec='-rpath $libdir' 9221 fi 9222 archive_cmds_need_lc='no' 9223 hardcode_libdir_separator=: 9224 ;; 9225 9226 solaris*) 9227 no_undefined_flag=' -z defs' 9228 if test "$GCC" = yes; then 9229 wlarc='${wl}' 9230 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9232 $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' 9233 else 9234 case `$CC -V 2>&1` in 9235 *"Compilers 5.0"*) 9236 wlarc='' 9237 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9240 ;; 9241 *) 9242 wlarc='${wl}' 9243 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9244 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9245 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9246 ;; 9247 esac 9248 fi 9249 hardcode_libdir_flag_spec='-R$libdir' 9250 hardcode_shlibpath_var=no 9251 case $host_os in 9252 solaris2.[0-5] | solaris2.[0-5].*) ;; 9253 *) 9254 # The compiler driver will combine and reorder linker options, 9255 # but understands `-z linker_flag'. GCC discards it without `$wl', 9256 # but is careful enough not to reorder. 9257 # Supported since Solaris 2.6 (maybe 2.5.1?) 9258 if test "$GCC" = yes; then 9259 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9260 else 9261 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9262 fi 9263 ;; 9264 esac 9265 link_all_deplibs=yes 9266 ;; 9267 9268 sunos4*) 9269 if test "x$host_vendor" = xsequent; then 9270 # Use $CC to link under sequent, because it throws in some extra .o 9271 # files that make .init and .fini sections work. 9272 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9273 else 9274 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9275 fi 9276 hardcode_libdir_flag_spec='-L$libdir' 9277 hardcode_direct=yes 9278 hardcode_minus_L=yes 9279 hardcode_shlibpath_var=no 9280 ;; 9281 9282 sysv4) 9283 case $host_vendor in 9284 sni) 9285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9286 hardcode_direct=yes # is this really true??? 9287 ;; 9288 siemens) 9289 ## LD is ld it makes a PLAMLIB 9290 ## CC just makes a GrossModule. 9291 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9292 reload_cmds='$CC -r -o $output$reload_objs' 9293 hardcode_direct=no 9294 ;; 9295 motorola) 9296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9297 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9298 ;; 9299 esac 9300 runpath_var='LD_RUN_PATH' 9301 hardcode_shlibpath_var=no 9302 ;; 9303 9304 sysv4.3*) 9305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9306 hardcode_shlibpath_var=no 9307 export_dynamic_flag_spec='-Bexport' 9308 ;; 9309 9310 sysv4*MP*) 9311 if test -d /usr/nec; then 9312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9313 hardcode_shlibpath_var=no 9314 runpath_var=LD_RUN_PATH 9315 hardcode_runpath_var=yes 9316 ld_shlibs=yes 9317 fi 9318 ;; 9319 9320 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9321 no_undefined_flag='${wl}-z,text' 9322 archive_cmds_need_lc=no 9323 hardcode_shlibpath_var=no 9324 runpath_var='LD_RUN_PATH' 9325 9326 if test "$GCC" = yes; then 9327 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9328 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9329 else 9330 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9331 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9332 fi 9333 ;; 9334 9335 sysv5* | sco3.2v5* | sco5v6*) 9336 # Note: We can NOT use -z defs as we might desire, because we do not 9337 # link with -lc, and that would cause any symbols used from libc to 9338 # always be unresolved, which means just about no library would 9339 # ever link correctly. If we're not using GNU ld we use -z text 9340 # though, which does catch some bad symbols but isn't as heavy-handed 9341 # as -z defs. 9342 no_undefined_flag='${wl}-z,text' 9343 allow_undefined_flag='${wl}-z,nodefs' 9344 archive_cmds_need_lc=no 9345 hardcode_shlibpath_var=no 9346 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9347 hardcode_libdir_separator=':' 9348 link_all_deplibs=yes 9349 export_dynamic_flag_spec='${wl}-Bexport' 9350 runpath_var='LD_RUN_PATH' 9351 9352 if test "$GCC" = yes; then 9353 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9354 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9355 else 9356 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9357 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9358 fi 9359 ;; 9360 9361 uts4*) 9362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9363 hardcode_libdir_flag_spec='-L$libdir' 9364 hardcode_shlibpath_var=no 9365 ;; 9366 9367 *) 9368 ld_shlibs=no 9369 ;; 9370 esac 9371 9372 if test x$host_vendor = xsni; then 9373 case $host in 9374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9375 export_dynamic_flag_spec='${wl}-Blargedynsym' 9376 ;; 9377 esac 9378 fi 9379 fi 9380 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9382$as_echo "$ld_shlibs" >&6; } 9383test "$ld_shlibs" = no && can_build_shared=no 9384 9385with_gnu_ld=$with_gnu_ld 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401# 9402# Do we need to explicitly link libc? 9403# 9404case "x$archive_cmds_need_lc" in 9405x|xyes) 9406 # Assume -lc should be added 9407 archive_cmds_need_lc=yes 9408 9409 if test "$enable_shared" = yes && test "$GCC" = yes; then 9410 case $archive_cmds in 9411 *'~'*) 9412 # FIXME: we may have to deal with multi-command sequences. 9413 ;; 9414 '$CC '*) 9415 # Test whether the compiler implicitly links with -lc since on some 9416 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9417 # to ld, don't add -lc before -lgcc. 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9419$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9420if ${lt_cv_archive_cmds_need_lc+:} false; then : 9421 $as_echo_n "(cached) " >&6 9422else 9423 $RM conftest* 9424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9425 9426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9427 (eval $ac_compile) 2>&5 9428 ac_status=$? 9429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9430 test $ac_status = 0; } 2>conftest.err; then 9431 soname=conftest 9432 lib=conftest 9433 libobjs=conftest.$ac_objext 9434 deplibs= 9435 wl=$lt_prog_compiler_wl 9436 pic_flag=$lt_prog_compiler_pic 9437 compiler_flags=-v 9438 linker_flags=-v 9439 verstring= 9440 output_objdir=. 9441 libname=conftest 9442 lt_save_allow_undefined_flag=$allow_undefined_flag 9443 allow_undefined_flag= 9444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9445 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9446 ac_status=$? 9447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9448 test $ac_status = 0; } 9449 then 9450 lt_cv_archive_cmds_need_lc=no 9451 else 9452 lt_cv_archive_cmds_need_lc=yes 9453 fi 9454 allow_undefined_flag=$lt_save_allow_undefined_flag 9455 else 9456 cat conftest.err 1>&5 9457 fi 9458 $RM conftest* 9459 9460fi 9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9462$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9463 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9464 ;; 9465 esac 9466 fi 9467 ;; 9468esac 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9622$as_echo_n "checking dynamic linker characteristics... " >&6; } 9623 9624if test "$GCC" = yes; then 9625 case $host_os in 9626 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9627 *) lt_awk_arg="/^libraries:/" ;; 9628 esac 9629 case $host_os in 9630 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9631 *) lt_sed_strip_eq="s,=/,/,g" ;; 9632 esac 9633 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9634 case $lt_search_path_spec in 9635 *\;*) 9636 # if the path contains ";" then we assume it to be the separator 9637 # otherwise default to the standard path separator (i.e. ":") - it is 9638 # assumed that no part of a normal pathname contains ";" but that should 9639 # okay in the real world where ";" in dirpaths is itself problematic. 9640 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9641 ;; 9642 *) 9643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9644 ;; 9645 esac 9646 # Ok, now we have the path, separated by spaces, we can step through it 9647 # and add multilib dir if necessary. 9648 lt_tmp_lt_search_path_spec= 9649 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9650 for lt_sys_path in $lt_search_path_spec; do 9651 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9652 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9653 else 9654 test -d "$lt_sys_path" && \ 9655 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9656 fi 9657 done 9658 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9659BEGIN {RS=" "; FS="/|\n";} { 9660 lt_foo=""; 9661 lt_count=0; 9662 for (lt_i = NF; lt_i > 0; lt_i--) { 9663 if ($lt_i != "" && $lt_i != ".") { 9664 if ($lt_i == "..") { 9665 lt_count++; 9666 } else { 9667 if (lt_count == 0) { 9668 lt_foo="/" $lt_i lt_foo; 9669 } else { 9670 lt_count--; 9671 } 9672 } 9673 } 9674 } 9675 if (lt_foo != "") { lt_freq[lt_foo]++; } 9676 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9677}'` 9678 # AWK program above erroneously prepends '/' to C:/dos/paths 9679 # for these hosts. 9680 case $host_os in 9681 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9682 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9683 esac 9684 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9685else 9686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9687fi 9688library_names_spec= 9689libname_spec='lib$name' 9690soname_spec= 9691shrext_cmds=".so" 9692postinstall_cmds= 9693postuninstall_cmds= 9694finish_cmds= 9695finish_eval= 9696shlibpath_var= 9697shlibpath_overrides_runpath=unknown 9698version_type=none 9699dynamic_linker="$host_os ld.so" 9700sys_lib_dlsearch_path_spec="/lib /usr/lib" 9701need_lib_prefix=unknown 9702hardcode_into_libs=no 9703 9704# when you set need_version to no, make sure it does not cause -set_version 9705# flags to be left without arguments 9706need_version=unknown 9707 9708case $host_os in 9709aix3*) 9710 version_type=linux # correct to gnu/linux during the next big refactor 9711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9712 shlibpath_var=LIBPATH 9713 9714 # AIX 3 has no versioning support, so we append a major version to the name. 9715 soname_spec='${libname}${release}${shared_ext}$major' 9716 ;; 9717 9718aix[4-9]*) 9719 version_type=linux # correct to gnu/linux during the next big refactor 9720 need_lib_prefix=no 9721 need_version=no 9722 hardcode_into_libs=yes 9723 if test "$host_cpu" = ia64; then 9724 # AIX 5 supports IA64 9725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9726 shlibpath_var=LD_LIBRARY_PATH 9727 else 9728 # With GCC up to 2.95.x, collect2 would create an import file 9729 # for dependence libraries. The import file would start with 9730 # the line `#! .'. This would cause the generated library to 9731 # depend on `.', always an invalid library. This was fixed in 9732 # development snapshots of GCC prior to 3.0. 9733 case $host_os in 9734 aix4 | aix4.[01] | aix4.[01].*) 9735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9736 echo ' yes ' 9737 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9738 : 9739 else 9740 can_build_shared=no 9741 fi 9742 ;; 9743 esac 9744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9745 # soname into executable. Probably we can add versioning support to 9746 # collect2, so additional links can be useful in future. 9747 if test "$aix_use_runtimelinking" = yes; then 9748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9749 # instead of lib<name>.a to let people know that these are not 9750 # typical AIX shared libraries. 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9752 else 9753 # We preserve .a as extension for shared libraries through AIX4.2 9754 # and later when we are not doing run time linking. 9755 library_names_spec='${libname}${release}.a $libname.a' 9756 soname_spec='${libname}${release}${shared_ext}$major' 9757 fi 9758 shlibpath_var=LIBPATH 9759 fi 9760 ;; 9761 9762amigaos*) 9763 case $host_cpu in 9764 powerpc) 9765 # Since July 2007 AmigaOS4 officially supports .so libraries. 9766 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9768 ;; 9769 m68k) 9770 library_names_spec='$libname.ixlibrary $libname.a' 9771 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9772 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 9773 ;; 9774 esac 9775 ;; 9776 9777beos*) 9778 library_names_spec='${libname}${shared_ext}' 9779 dynamic_linker="$host_os ld.so" 9780 shlibpath_var=LIBRARY_PATH 9781 ;; 9782 9783bsdi[45]*) 9784 version_type=linux # correct to gnu/linux during the next big refactor 9785 need_version=no 9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9787 soname_spec='${libname}${release}${shared_ext}$major' 9788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9789 shlibpath_var=LD_LIBRARY_PATH 9790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9792 # the default ld.so.conf also contains /usr/contrib/lib and 9793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9794 # libtool to hard-code these into programs 9795 ;; 9796 9797cygwin* | mingw* | pw32* | cegcc*) 9798 version_type=windows 9799 shrext_cmds=".dll" 9800 need_version=no 9801 need_lib_prefix=no 9802 9803 case $GCC,$cc_basename in 9804 yes,*) 9805 # gcc 9806 library_names_spec='$libname.dll.a' 9807 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9808 postinstall_cmds='base_file=`basename \${file}`~ 9809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9810 dldir=$destdir/`dirname \$dlpath`~ 9811 test -d \$dldir || mkdir -p \$dldir~ 9812 $install_prog $dir/$dlname \$dldir/$dlname~ 9813 chmod a+x \$dldir/$dlname~ 9814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9816 fi' 9817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9818 dlpath=$dir/\$dldll~ 9819 $RM \$dlpath' 9820 shlibpath_overrides_runpath=yes 9821 9822 case $host_os in 9823 cygwin*) 9824 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9825 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9826 9827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9828 ;; 9829 mingw* | cegcc*) 9830 # MinGW DLLs use traditional 'lib' prefix 9831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9832 ;; 9833 pw32*) 9834 # pw32 DLLs use 'pw' prefix rather than 'lib' 9835 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9836 ;; 9837 esac 9838 dynamic_linker='Win32 ld.exe' 9839 ;; 9840 9841 *,cl*) 9842 # Native MSVC 9843 libname_spec='$name' 9844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9845 library_names_spec='${libname}.dll.lib' 9846 9847 case $build_os in 9848 mingw*) 9849 sys_lib_search_path_spec= 9850 lt_save_ifs=$IFS 9851 IFS=';' 9852 for lt_path in $LIB 9853 do 9854 IFS=$lt_save_ifs 9855 # Let DOS variable expansion print the short 8.3 style file name. 9856 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 9857 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 9858 done 9859 IFS=$lt_save_ifs 9860 # Convert to MSYS style. 9861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 9862 ;; 9863 cygwin*) 9864 # Convert to unix form, then to dos form, then back to unix form 9865 # but this time dos style (no spaces!) so that the unix form looks 9866 # like /cygdrive/c/PROGRA~1:/cygdr... 9867 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 9868 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 9869 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9870 ;; 9871 *) 9872 sys_lib_search_path_spec="$LIB" 9873 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9874 # It is most probably a Windows format PATH. 9875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9876 else 9877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9878 fi 9879 # FIXME: find the short name or the path components, as spaces are 9880 # common. (e.g. "Program Files" -> "PROGRA~1") 9881 ;; 9882 esac 9883 9884 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9885 postinstall_cmds='base_file=`basename \${file}`~ 9886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9887 dldir=$destdir/`dirname \$dlpath`~ 9888 test -d \$dldir || mkdir -p \$dldir~ 9889 $install_prog $dir/$dlname \$dldir/$dlname' 9890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9891 dlpath=$dir/\$dldll~ 9892 $RM \$dlpath' 9893 shlibpath_overrides_runpath=yes 9894 dynamic_linker='Win32 link.exe' 9895 ;; 9896 9897 *) 9898 # Assume MSVC wrapper 9899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9900 dynamic_linker='Win32 ld.exe' 9901 ;; 9902 esac 9903 # FIXME: first we should search . and the directory the executable is in 9904 shlibpath_var=PATH 9905 ;; 9906 9907darwin* | rhapsody*) 9908 dynamic_linker="$host_os dyld" 9909 version_type=darwin 9910 need_lib_prefix=no 9911 need_version=no 9912 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9913 soname_spec='${libname}${release}${major}$shared_ext' 9914 shlibpath_overrides_runpath=yes 9915 shlibpath_var=DYLD_LIBRARY_PATH 9916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9917 9918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9920 ;; 9921 9922dgux*) 9923 version_type=linux # correct to gnu/linux during the next big refactor 9924 need_lib_prefix=no 9925 need_version=no 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9927 soname_spec='${libname}${release}${shared_ext}$major' 9928 shlibpath_var=LD_LIBRARY_PATH 9929 ;; 9930 9931freebsd* | dragonfly*) 9932 # DragonFly does not have aout. When/if they implement a new 9933 # versioning mechanism, adjust this. 9934 if test -x /usr/bin/objformat; then 9935 objformat=`/usr/bin/objformat` 9936 else 9937 case $host_os in 9938 freebsd[23].*) objformat=aout ;; 9939 *) objformat=elf ;; 9940 esac 9941 fi 9942 version_type=freebsd-$objformat 9943 case $version_type in 9944 freebsd-elf*) 9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9946 need_version=no 9947 need_lib_prefix=no 9948 ;; 9949 freebsd-*) 9950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9951 need_version=yes 9952 ;; 9953 esac 9954 shlibpath_var=LD_LIBRARY_PATH 9955 case $host_os in 9956 freebsd2.*) 9957 shlibpath_overrides_runpath=yes 9958 ;; 9959 freebsd3.[01]* | freebsdelf3.[01]*) 9960 shlibpath_overrides_runpath=yes 9961 hardcode_into_libs=yes 9962 ;; 9963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9965 shlibpath_overrides_runpath=no 9966 hardcode_into_libs=yes 9967 ;; 9968 *) # from 4.6 on, and DragonFly 9969 shlibpath_overrides_runpath=yes 9970 hardcode_into_libs=yes 9971 ;; 9972 esac 9973 ;; 9974 9975gnu*) 9976 version_type=linux # correct to gnu/linux during the next big refactor 9977 need_lib_prefix=no 9978 need_version=no 9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9980 soname_spec='${libname}${release}${shared_ext}$major' 9981 shlibpath_var=LD_LIBRARY_PATH 9982 shlibpath_overrides_runpath=no 9983 hardcode_into_libs=yes 9984 ;; 9985 9986haiku*) 9987 version_type=linux # correct to gnu/linux during the next big refactor 9988 need_lib_prefix=no 9989 need_version=no 9990 dynamic_linker="$host_os runtime_loader" 9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9992 soname_spec='${libname}${release}${shared_ext}$major' 9993 shlibpath_var=LIBRARY_PATH 9994 shlibpath_overrides_runpath=yes 9995 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9996 hardcode_into_libs=yes 9997 ;; 9998 9999hpux9* | hpux10* | hpux11*) 10000 # Give a soname corresponding to the major version so that dld.sl refuses to 10001 # link against other versions. 10002 version_type=sunos 10003 need_lib_prefix=no 10004 need_version=no 10005 case $host_cpu in 10006 ia64*) 10007 shrext_cmds='.so' 10008 hardcode_into_libs=yes 10009 dynamic_linker="$host_os dld.so" 10010 shlibpath_var=LD_LIBRARY_PATH 10011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10013 soname_spec='${libname}${release}${shared_ext}$major' 10014 if test "X$HPUX_IA64_MODE" = X32; then 10015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10016 else 10017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10018 fi 10019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10020 ;; 10021 hppa*64*) 10022 shrext_cmds='.sl' 10023 hardcode_into_libs=yes 10024 dynamic_linker="$host_os dld.sl" 10025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10028 soname_spec='${libname}${release}${shared_ext}$major' 10029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10031 ;; 10032 *) 10033 shrext_cmds='.sl' 10034 dynamic_linker="$host_os dld.sl" 10035 shlibpath_var=SHLIB_PATH 10036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10038 soname_spec='${libname}${release}${shared_ext}$major' 10039 ;; 10040 esac 10041 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10042 postinstall_cmds='chmod 555 $lib' 10043 # or fails outright, so override atomically: 10044 install_override_mode=555 10045 ;; 10046 10047interix[3-9]*) 10048 version_type=linux # correct to gnu/linux during the next big refactor 10049 need_lib_prefix=no 10050 need_version=no 10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10052 soname_spec='${libname}${release}${shared_ext}$major' 10053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10054 shlibpath_var=LD_LIBRARY_PATH 10055 shlibpath_overrides_runpath=no 10056 hardcode_into_libs=yes 10057 ;; 10058 10059irix5* | irix6* | nonstopux*) 10060 case $host_os in 10061 nonstopux*) version_type=nonstopux ;; 10062 *) 10063 if test "$lt_cv_prog_gnu_ld" = yes; then 10064 version_type=linux # correct to gnu/linux during the next big refactor 10065 else 10066 version_type=irix 10067 fi ;; 10068 esac 10069 need_lib_prefix=no 10070 need_version=no 10071 soname_spec='${libname}${release}${shared_ext}$major' 10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10073 case $host_os in 10074 irix5* | nonstopux*) 10075 libsuff= shlibsuff= 10076 ;; 10077 *) 10078 case $LD in # libtool.m4 will add one of these switches to LD 10079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10080 libsuff= shlibsuff= libmagic=32-bit;; 10081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10082 libsuff=32 shlibsuff=N32 libmagic=N32;; 10083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10084 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10085 *) libsuff= shlibsuff= libmagic=never-match;; 10086 esac 10087 ;; 10088 esac 10089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10090 shlibpath_overrides_runpath=no 10091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10093 hardcode_into_libs=yes 10094 ;; 10095 10096# No shared lib support for Linux oldld, aout, or coff. 10097linux*oldld* | linux*aout* | linux*coff*) 10098 dynamic_linker=no 10099 ;; 10100 10101# This must be glibc/ELF. 10102linux* | k*bsd*-gnu | kopensolaris*-gnu) 10103 version_type=linux # correct to gnu/linux during the next big refactor 10104 need_lib_prefix=no 10105 need_version=no 10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10107 soname_spec='${libname}${release}${shared_ext}$major' 10108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10109 shlibpath_var=LD_LIBRARY_PATH 10110 shlibpath_overrides_runpath=no 10111 10112 # Some binutils ld are patched to set DT_RUNPATH 10113 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115else 10116 lt_cv_shlibpath_overrides_runpath=no 10117 save_LDFLAGS=$LDFLAGS 10118 save_libdir=$libdir 10119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10122/* end confdefs.h. */ 10123 10124int 10125main () 10126{ 10127 10128 ; 10129 return 0; 10130} 10131_ACEOF 10132if ac_fn_c_try_link "$LINENO"; then : 10133 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10134 lt_cv_shlibpath_overrides_runpath=yes 10135fi 10136fi 10137rm -f core conftest.err conftest.$ac_objext \ 10138 conftest$ac_exeext conftest.$ac_ext 10139 LDFLAGS=$save_LDFLAGS 10140 libdir=$save_libdir 10141 10142fi 10143 10144 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10145 10146 # This implies no fast_install, which is unacceptable. 10147 # Some rework will be needed to allow for fast_install 10148 # before this can be enabled. 10149 hardcode_into_libs=yes 10150 10151 # Append ld.so.conf contents to the search path 10152 if test -f /etc/ld.so.conf; then 10153 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' ' '` 10154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10155 fi 10156 10157 # We used to test for /lib/ld.so.1 and disable shared libraries on 10158 # powerpc, because MkLinux only supported shared libraries with the 10159 # GNU dynamic linker. Since this was broken with cross compilers, 10160 # most powerpc-linux boxes support dynamic linking these days and 10161 # people can always --disable-shared, the test was removed, and we 10162 # assume the GNU/Linux dynamic linker is in use. 10163 dynamic_linker='GNU/Linux ld.so' 10164 ;; 10165 10166netbsdelf*-gnu) 10167 version_type=linux 10168 need_lib_prefix=no 10169 need_version=no 10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10171 soname_spec='${libname}${release}${shared_ext}$major' 10172 shlibpath_var=LD_LIBRARY_PATH 10173 shlibpath_overrides_runpath=no 10174 hardcode_into_libs=yes 10175 dynamic_linker='NetBSD ld.elf_so' 10176 ;; 10177 10178netbsd*) 10179 version_type=sunos 10180 need_lib_prefix=no 10181 need_version=no 10182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10185 dynamic_linker='NetBSD (a.out) ld.so' 10186 else 10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10188 soname_spec='${libname}${release}${shared_ext}$major' 10189 dynamic_linker='NetBSD ld.elf_so' 10190 fi 10191 shlibpath_var=LD_LIBRARY_PATH 10192 shlibpath_overrides_runpath=yes 10193 hardcode_into_libs=yes 10194 ;; 10195 10196newsos6) 10197 version_type=linux # correct to gnu/linux during the next big refactor 10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10199 shlibpath_var=LD_LIBRARY_PATH 10200 shlibpath_overrides_runpath=yes 10201 ;; 10202 10203*nto* | *qnx*) 10204 version_type=qnx 10205 need_lib_prefix=no 10206 need_version=no 10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10208 soname_spec='${libname}${release}${shared_ext}$major' 10209 shlibpath_var=LD_LIBRARY_PATH 10210 shlibpath_overrides_runpath=no 10211 hardcode_into_libs=yes 10212 dynamic_linker='ldqnx.so' 10213 ;; 10214 10215openbsd*) 10216 version_type=sunos 10217 sys_lib_dlsearch_path_spec="/usr/lib" 10218 need_lib_prefix=no 10219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10220 case $host_os in 10221 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10222 *) need_version=no ;; 10223 esac 10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10226 shlibpath_var=LD_LIBRARY_PATH 10227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10228 case $host_os in 10229 openbsd2.[89] | openbsd2.[89].*) 10230 shlibpath_overrides_runpath=no 10231 ;; 10232 *) 10233 shlibpath_overrides_runpath=yes 10234 ;; 10235 esac 10236 else 10237 shlibpath_overrides_runpath=yes 10238 fi 10239 ;; 10240 10241os2*) 10242 libname_spec='$name' 10243 shrext_cmds=".dll" 10244 need_lib_prefix=no 10245 library_names_spec='$libname${shared_ext} $libname.a' 10246 dynamic_linker='OS/2 ld.exe' 10247 shlibpath_var=LIBPATH 10248 ;; 10249 10250osf3* | osf4* | osf5*) 10251 version_type=osf 10252 need_lib_prefix=no 10253 need_version=no 10254 soname_spec='${libname}${release}${shared_ext}$major' 10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10256 shlibpath_var=LD_LIBRARY_PATH 10257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10259 ;; 10260 10261rdos*) 10262 dynamic_linker=no 10263 ;; 10264 10265solaris*) 10266 version_type=linux # correct to gnu/linux during the next big refactor 10267 need_lib_prefix=no 10268 need_version=no 10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10270 soname_spec='${libname}${release}${shared_ext}$major' 10271 shlibpath_var=LD_LIBRARY_PATH 10272 shlibpath_overrides_runpath=yes 10273 hardcode_into_libs=yes 10274 # ldd complains unless libraries are executable 10275 postinstall_cmds='chmod +x $lib' 10276 ;; 10277 10278sunos4*) 10279 version_type=sunos 10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10282 shlibpath_var=LD_LIBRARY_PATH 10283 shlibpath_overrides_runpath=yes 10284 if test "$with_gnu_ld" = yes; then 10285 need_lib_prefix=no 10286 fi 10287 need_version=yes 10288 ;; 10289 10290sysv4 | sysv4.3*) 10291 version_type=linux # correct to gnu/linux during the next big refactor 10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10293 soname_spec='${libname}${release}${shared_ext}$major' 10294 shlibpath_var=LD_LIBRARY_PATH 10295 case $host_vendor in 10296 sni) 10297 shlibpath_overrides_runpath=no 10298 need_lib_prefix=no 10299 runpath_var=LD_RUN_PATH 10300 ;; 10301 siemens) 10302 need_lib_prefix=no 10303 ;; 10304 motorola) 10305 need_lib_prefix=no 10306 need_version=no 10307 shlibpath_overrides_runpath=no 10308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10309 ;; 10310 esac 10311 ;; 10312 10313sysv4*MP*) 10314 if test -d /usr/nec ;then 10315 version_type=linux # correct to gnu/linux during the next big refactor 10316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10317 soname_spec='$libname${shared_ext}.$major' 10318 shlibpath_var=LD_LIBRARY_PATH 10319 fi 10320 ;; 10321 10322sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10323 version_type=freebsd-elf 10324 need_lib_prefix=no 10325 need_version=no 10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10327 soname_spec='${libname}${release}${shared_ext}$major' 10328 shlibpath_var=LD_LIBRARY_PATH 10329 shlibpath_overrides_runpath=yes 10330 hardcode_into_libs=yes 10331 if test "$with_gnu_ld" = yes; then 10332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10333 else 10334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10335 case $host_os in 10336 sco3.2v5*) 10337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10338 ;; 10339 esac 10340 fi 10341 sys_lib_dlsearch_path_spec='/usr/lib' 10342 ;; 10343 10344tpf*) 10345 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10346 version_type=linux # correct to gnu/linux during the next big refactor 10347 need_lib_prefix=no 10348 need_version=no 10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10350 shlibpath_var=LD_LIBRARY_PATH 10351 shlibpath_overrides_runpath=no 10352 hardcode_into_libs=yes 10353 ;; 10354 10355uts4*) 10356 version_type=linux # correct to gnu/linux during the next big refactor 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10358 soname_spec='${libname}${release}${shared_ext}$major' 10359 shlibpath_var=LD_LIBRARY_PATH 10360 ;; 10361 10362*) 10363 dynamic_linker=no 10364 ;; 10365esac 10366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10367$as_echo "$dynamic_linker" >&6; } 10368test "$dynamic_linker" = no && can_build_shared=no 10369 10370variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10371if test "$GCC" = yes; then 10372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10373fi 10374 10375if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10376 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10377fi 10378if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10379 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10380fi 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10474$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10475hardcode_action= 10476if test -n "$hardcode_libdir_flag_spec" || 10477 test -n "$runpath_var" || 10478 test "X$hardcode_automatic" = "Xyes" ; then 10479 10480 # We can hardcode non-existent directories. 10481 if test "$hardcode_direct" != no && 10482 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10483 # have to relink, otherwise we might link with an installed library 10484 # when we should be linking with a yet-to-be-installed one 10485 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10486 test "$hardcode_minus_L" != no; then 10487 # Linking always hardcodes the temporary library directory. 10488 hardcode_action=relink 10489 else 10490 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10491 hardcode_action=immediate 10492 fi 10493else 10494 # We cannot hardcode anything, or else we can only hardcode existing 10495 # directories. 10496 hardcode_action=unsupported 10497fi 10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10499$as_echo "$hardcode_action" >&6; } 10500 10501if test "$hardcode_action" = relink || 10502 test "$inherit_rpath" = yes; then 10503 # Fast installation is not supported 10504 enable_fast_install=no 10505elif test "$shlibpath_overrides_runpath" = yes || 10506 test "$enable_shared" = no; then 10507 # Fast installation is not necessary 10508 enable_fast_install=needless 10509fi 10510 10511 10512 10513 10514 10515 10516 if test "x$enable_dlopen" != xyes; then 10517 enable_dlopen=unknown 10518 enable_dlopen_self=unknown 10519 enable_dlopen_self_static=unknown 10520else 10521 lt_cv_dlopen=no 10522 lt_cv_dlopen_libs= 10523 10524 case $host_os in 10525 beos*) 10526 lt_cv_dlopen="load_add_on" 10527 lt_cv_dlopen_libs= 10528 lt_cv_dlopen_self=yes 10529 ;; 10530 10531 mingw* | pw32* | cegcc*) 10532 lt_cv_dlopen="LoadLibrary" 10533 lt_cv_dlopen_libs= 10534 ;; 10535 10536 cygwin*) 10537 lt_cv_dlopen="dlopen" 10538 lt_cv_dlopen_libs= 10539 ;; 10540 10541 darwin*) 10542 # if libdl is installed we need to link against it 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10544$as_echo_n "checking for dlopen in -ldl... " >&6; } 10545if ${ac_cv_lib_dl_dlopen+:} false; then : 10546 $as_echo_n "(cached) " >&6 10547else 10548 ac_check_lib_save_LIBS=$LIBS 10549LIBS="-ldl $LIBS" 10550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10551/* end confdefs.h. */ 10552 10553/* Override any GCC internal prototype to avoid an error. 10554 Use char because int might match the return type of a GCC 10555 builtin and then its argument prototype would still apply. */ 10556#ifdef __cplusplus 10557extern "C" 10558#endif 10559char dlopen (); 10560int 10561main () 10562{ 10563return dlopen (); 10564 ; 10565 return 0; 10566} 10567_ACEOF 10568if ac_fn_c_try_link "$LINENO"; then : 10569 ac_cv_lib_dl_dlopen=yes 10570else 10571 ac_cv_lib_dl_dlopen=no 10572fi 10573rm -f core conftest.err conftest.$ac_objext \ 10574 conftest$ac_exeext conftest.$ac_ext 10575LIBS=$ac_check_lib_save_LIBS 10576fi 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10578$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10579if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10581else 10582 10583 lt_cv_dlopen="dyld" 10584 lt_cv_dlopen_libs= 10585 lt_cv_dlopen_self=yes 10586 10587fi 10588 10589 ;; 10590 10591 *) 10592 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10593if test "x$ac_cv_func_shl_load" = xyes; then : 10594 lt_cv_dlopen="shl_load" 10595else 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10597$as_echo_n "checking for shl_load in -ldld... " >&6; } 10598if ${ac_cv_lib_dld_shl_load+:} false; then : 10599 $as_echo_n "(cached) " >&6 10600else 10601 ac_check_lib_save_LIBS=$LIBS 10602LIBS="-ldld $LIBS" 10603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10604/* end confdefs.h. */ 10605 10606/* Override any GCC internal prototype to avoid an error. 10607 Use char because int might match the return type of a GCC 10608 builtin and then its argument prototype would still apply. */ 10609#ifdef __cplusplus 10610extern "C" 10611#endif 10612char shl_load (); 10613int 10614main () 10615{ 10616return shl_load (); 10617 ; 10618 return 0; 10619} 10620_ACEOF 10621if ac_fn_c_try_link "$LINENO"; then : 10622 ac_cv_lib_dld_shl_load=yes 10623else 10624 ac_cv_lib_dld_shl_load=no 10625fi 10626rm -f core conftest.err conftest.$ac_objext \ 10627 conftest$ac_exeext conftest.$ac_ext 10628LIBS=$ac_check_lib_save_LIBS 10629fi 10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10631$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10632if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10633 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10634else 10635 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10636if test "x$ac_cv_func_dlopen" = xyes; then : 10637 lt_cv_dlopen="dlopen" 10638else 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10640$as_echo_n "checking for dlopen in -ldl... " >&6; } 10641if ${ac_cv_lib_dl_dlopen+:} false; then : 10642 $as_echo_n "(cached) " >&6 10643else 10644 ac_check_lib_save_LIBS=$LIBS 10645LIBS="-ldl $LIBS" 10646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10647/* end confdefs.h. */ 10648 10649/* Override any GCC internal prototype to avoid an error. 10650 Use char because int might match the return type of a GCC 10651 builtin and then its argument prototype would still apply. */ 10652#ifdef __cplusplus 10653extern "C" 10654#endif 10655char dlopen (); 10656int 10657main () 10658{ 10659return dlopen (); 10660 ; 10661 return 0; 10662} 10663_ACEOF 10664if ac_fn_c_try_link "$LINENO"; then : 10665 ac_cv_lib_dl_dlopen=yes 10666else 10667 ac_cv_lib_dl_dlopen=no 10668fi 10669rm -f core conftest.err conftest.$ac_objext \ 10670 conftest$ac_exeext conftest.$ac_ext 10671LIBS=$ac_check_lib_save_LIBS 10672fi 10673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10674$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10675if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10676 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10677else 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10679$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10680if ${ac_cv_lib_svld_dlopen+:} false; then : 10681 $as_echo_n "(cached) " >&6 10682else 10683 ac_check_lib_save_LIBS=$LIBS 10684LIBS="-lsvld $LIBS" 10685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10686/* end confdefs.h. */ 10687 10688/* Override any GCC internal prototype to avoid an error. 10689 Use char because int might match the return type of a GCC 10690 builtin and then its argument prototype would still apply. */ 10691#ifdef __cplusplus 10692extern "C" 10693#endif 10694char dlopen (); 10695int 10696main () 10697{ 10698return dlopen (); 10699 ; 10700 return 0; 10701} 10702_ACEOF 10703if ac_fn_c_try_link "$LINENO"; then : 10704 ac_cv_lib_svld_dlopen=yes 10705else 10706 ac_cv_lib_svld_dlopen=no 10707fi 10708rm -f core conftest.err conftest.$ac_objext \ 10709 conftest$ac_exeext conftest.$ac_ext 10710LIBS=$ac_check_lib_save_LIBS 10711fi 10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10713$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10714if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10715 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10716else 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10718$as_echo_n "checking for dld_link in -ldld... " >&6; } 10719if ${ac_cv_lib_dld_dld_link+:} false; then : 10720 $as_echo_n "(cached) " >&6 10721else 10722 ac_check_lib_save_LIBS=$LIBS 10723LIBS="-ldld $LIBS" 10724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10725/* end confdefs.h. */ 10726 10727/* Override any GCC internal prototype to avoid an error. 10728 Use char because int might match the return type of a GCC 10729 builtin and then its argument prototype would still apply. */ 10730#ifdef __cplusplus 10731extern "C" 10732#endif 10733char dld_link (); 10734int 10735main () 10736{ 10737return dld_link (); 10738 ; 10739 return 0; 10740} 10741_ACEOF 10742if ac_fn_c_try_link "$LINENO"; then : 10743 ac_cv_lib_dld_dld_link=yes 10744else 10745 ac_cv_lib_dld_dld_link=no 10746fi 10747rm -f core conftest.err conftest.$ac_objext \ 10748 conftest$ac_exeext conftest.$ac_ext 10749LIBS=$ac_check_lib_save_LIBS 10750fi 10751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10752$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10753if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10754 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10755fi 10756 10757 10758fi 10759 10760 10761fi 10762 10763 10764fi 10765 10766 10767fi 10768 10769 10770fi 10771 10772 ;; 10773 esac 10774 10775 if test "x$lt_cv_dlopen" != xno; then 10776 enable_dlopen=yes 10777 else 10778 enable_dlopen=no 10779 fi 10780 10781 case $lt_cv_dlopen in 10782 dlopen) 10783 save_CPPFLAGS="$CPPFLAGS" 10784 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10785 10786 save_LDFLAGS="$LDFLAGS" 10787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10788 10789 save_LIBS="$LIBS" 10790 LIBS="$lt_cv_dlopen_libs $LIBS" 10791 10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10793$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10794if ${lt_cv_dlopen_self+:} false; then : 10795 $as_echo_n "(cached) " >&6 10796else 10797 if test "$cross_compiling" = yes; then : 10798 lt_cv_dlopen_self=cross 10799else 10800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10801 lt_status=$lt_dlunknown 10802 cat > conftest.$ac_ext <<_LT_EOF 10803#line $LINENO "configure" 10804#include "confdefs.h" 10805 10806#if HAVE_DLFCN_H 10807#include <dlfcn.h> 10808#endif 10809 10810#include <stdio.h> 10811 10812#ifdef RTLD_GLOBAL 10813# define LT_DLGLOBAL RTLD_GLOBAL 10814#else 10815# ifdef DL_GLOBAL 10816# define LT_DLGLOBAL DL_GLOBAL 10817# else 10818# define LT_DLGLOBAL 0 10819# endif 10820#endif 10821 10822/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10823 find out it does not work in some platform. */ 10824#ifndef LT_DLLAZY_OR_NOW 10825# ifdef RTLD_LAZY 10826# define LT_DLLAZY_OR_NOW RTLD_LAZY 10827# else 10828# ifdef DL_LAZY 10829# define LT_DLLAZY_OR_NOW DL_LAZY 10830# else 10831# ifdef RTLD_NOW 10832# define LT_DLLAZY_OR_NOW RTLD_NOW 10833# else 10834# ifdef DL_NOW 10835# define LT_DLLAZY_OR_NOW DL_NOW 10836# else 10837# define LT_DLLAZY_OR_NOW 0 10838# endif 10839# endif 10840# endif 10841# endif 10842#endif 10843 10844/* When -fvisbility=hidden is used, assume the code has been annotated 10845 correspondingly for the symbols needed. */ 10846#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10847int fnord () __attribute__((visibility("default"))); 10848#endif 10849 10850int fnord () { return 42; } 10851int main () 10852{ 10853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10854 int status = $lt_dlunknown; 10855 10856 if (self) 10857 { 10858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10859 else 10860 { 10861 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10862 else puts (dlerror ()); 10863 } 10864 /* dlclose (self); */ 10865 } 10866 else 10867 puts (dlerror ()); 10868 10869 return status; 10870} 10871_LT_EOF 10872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10873 (eval $ac_link) 2>&5 10874 ac_status=$? 10875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10876 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10877 (./conftest; exit; ) >&5 2>/dev/null 10878 lt_status=$? 10879 case x$lt_status in 10880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10882 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10883 esac 10884 else : 10885 # compilation failed 10886 lt_cv_dlopen_self=no 10887 fi 10888fi 10889rm -fr conftest* 10890 10891 10892fi 10893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10894$as_echo "$lt_cv_dlopen_self" >&6; } 10895 10896 if test "x$lt_cv_dlopen_self" = xyes; then 10897 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10899$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10900if ${lt_cv_dlopen_self_static+:} false; then : 10901 $as_echo_n "(cached) " >&6 10902else 10903 if test "$cross_compiling" = yes; then : 10904 lt_cv_dlopen_self_static=cross 10905else 10906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10907 lt_status=$lt_dlunknown 10908 cat > conftest.$ac_ext <<_LT_EOF 10909#line $LINENO "configure" 10910#include "confdefs.h" 10911 10912#if HAVE_DLFCN_H 10913#include <dlfcn.h> 10914#endif 10915 10916#include <stdio.h> 10917 10918#ifdef RTLD_GLOBAL 10919# define LT_DLGLOBAL RTLD_GLOBAL 10920#else 10921# ifdef DL_GLOBAL 10922# define LT_DLGLOBAL DL_GLOBAL 10923# else 10924# define LT_DLGLOBAL 0 10925# endif 10926#endif 10927 10928/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10929 find out it does not work in some platform. */ 10930#ifndef LT_DLLAZY_OR_NOW 10931# ifdef RTLD_LAZY 10932# define LT_DLLAZY_OR_NOW RTLD_LAZY 10933# else 10934# ifdef DL_LAZY 10935# define LT_DLLAZY_OR_NOW DL_LAZY 10936# else 10937# ifdef RTLD_NOW 10938# define LT_DLLAZY_OR_NOW RTLD_NOW 10939# else 10940# ifdef DL_NOW 10941# define LT_DLLAZY_OR_NOW DL_NOW 10942# else 10943# define LT_DLLAZY_OR_NOW 0 10944# endif 10945# endif 10946# endif 10947# endif 10948#endif 10949 10950/* When -fvisbility=hidden is used, assume the code has been annotated 10951 correspondingly for the symbols needed. */ 10952#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10953int fnord () __attribute__((visibility("default"))); 10954#endif 10955 10956int fnord () { return 42; } 10957int main () 10958{ 10959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10960 int status = $lt_dlunknown; 10961 10962 if (self) 10963 { 10964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10965 else 10966 { 10967 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10968 else puts (dlerror ()); 10969 } 10970 /* dlclose (self); */ 10971 } 10972 else 10973 puts (dlerror ()); 10974 10975 return status; 10976} 10977_LT_EOF 10978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10979 (eval $ac_link) 2>&5 10980 ac_status=$? 10981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10982 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10983 (./conftest; exit; ) >&5 2>/dev/null 10984 lt_status=$? 10985 case x$lt_status in 10986 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10987 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10988 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10989 esac 10990 else : 10991 # compilation failed 10992 lt_cv_dlopen_self_static=no 10993 fi 10994fi 10995rm -fr conftest* 10996 10997 10998fi 10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11000$as_echo "$lt_cv_dlopen_self_static" >&6; } 11001 fi 11002 11003 CPPFLAGS="$save_CPPFLAGS" 11004 LDFLAGS="$save_LDFLAGS" 11005 LIBS="$save_LIBS" 11006 ;; 11007 esac 11008 11009 case $lt_cv_dlopen_self in 11010 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11011 *) enable_dlopen_self=unknown ;; 11012 esac 11013 11014 case $lt_cv_dlopen_self_static in 11015 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11016 *) enable_dlopen_self_static=unknown ;; 11017 esac 11018fi 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036striplib= 11037old_striplib= 11038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11039$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11040if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11041 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11042 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11044$as_echo "yes" >&6; } 11045else 11046# FIXME - insert some real tests, host_os isn't really good enough 11047 case $host_os in 11048 darwin*) 11049 if test -n "$STRIP" ; then 11050 striplib="$STRIP -x" 11051 old_striplib="$STRIP -S" 11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11053$as_echo "yes" >&6; } 11054 else 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11056$as_echo "no" >&6; } 11057 fi 11058 ;; 11059 *) 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11061$as_echo "no" >&6; } 11062 ;; 11063 esac 11064fi 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 # Report which library types will actually be built 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11079$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11081$as_echo "$can_build_shared" >&6; } 11082 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11084$as_echo_n "checking whether to build shared libraries... " >&6; } 11085 test "$can_build_shared" = "no" && enable_shared=no 11086 11087 # On AIX, shared libraries and static libraries use the same namespace, and 11088 # are all built from PIC. 11089 case $host_os in 11090 aix3*) 11091 test "$enable_shared" = yes && enable_static=no 11092 if test -n "$RANLIB"; then 11093 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11094 postinstall_cmds='$RANLIB $lib' 11095 fi 11096 ;; 11097 11098 aix[4-9]*) 11099 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11100 test "$enable_shared" = yes && enable_static=no 11101 fi 11102 ;; 11103 esac 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11105$as_echo "$enable_shared" >&6; } 11106 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11108$as_echo_n "checking whether to build static libraries... " >&6; } 11109 # Make sure either enable_shared or enable_static is yes. 11110 test "$enable_shared" = yes || enable_static=yes 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11112$as_echo "$enable_static" >&6; } 11113 11114 11115 11116 11117fi 11118ac_ext=c 11119ac_cpp='$CPP $CPPFLAGS' 11120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11122ac_compiler_gnu=$ac_cv_c_compiler_gnu 11123 11124CC="$lt_save_CC" 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 ac_config_commands="$ac_config_commands libtool" 11141 11142 11143 11144 11145# Only expand once: 11146 11147 11148 11149 11150OURCPPFLAGS='' 11151CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}} 11152CFLAGS="$CFLAGS" 11153 11154# Checks for programs. 11155ac_ext=c 11156ac_cpp='$CPP $CPPFLAGS' 11157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11159ac_compiler_gnu=$ac_cv_c_compiler_gnu 11160if test -n "$ac_tool_prefix"; then 11161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11162set dummy ${ac_tool_prefix}gcc; ac_word=$2 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11164$as_echo_n "checking for $ac_word... " >&6; } 11165if ${ac_cv_prog_CC+:} false; then : 11166 $as_echo_n "(cached) " >&6 11167else 11168 if test -n "$CC"; then 11169 ac_cv_prog_CC="$CC" # Let the user override the test. 11170else 11171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11172for as_dir in $PATH 11173do 11174 IFS=$as_save_IFS 11175 test -z "$as_dir" && as_dir=. 11176 for ac_exec_ext in '' $ac_executable_extensions; do 11177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11178 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11180 break 2 11181 fi 11182done 11183 done 11184IFS=$as_save_IFS 11185 11186fi 11187fi 11188CC=$ac_cv_prog_CC 11189if test -n "$CC"; then 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11191$as_echo "$CC" >&6; } 11192else 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11194$as_echo "no" >&6; } 11195fi 11196 11197 11198fi 11199if test -z "$ac_cv_prog_CC"; then 11200 ac_ct_CC=$CC 11201 # Extract the first word of "gcc", so it can be a program name with args. 11202set dummy gcc; ac_word=$2 11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11204$as_echo_n "checking for $ac_word... " >&6; } 11205if ${ac_cv_prog_ac_ct_CC+:} false; then : 11206 $as_echo_n "(cached) " >&6 11207else 11208 if test -n "$ac_ct_CC"; then 11209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11210else 11211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11212for as_dir in $PATH 11213do 11214 IFS=$as_save_IFS 11215 test -z "$as_dir" && as_dir=. 11216 for ac_exec_ext in '' $ac_executable_extensions; do 11217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11218 ac_cv_prog_ac_ct_CC="gcc" 11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11220 break 2 11221 fi 11222done 11223 done 11224IFS=$as_save_IFS 11225 11226fi 11227fi 11228ac_ct_CC=$ac_cv_prog_ac_ct_CC 11229if test -n "$ac_ct_CC"; then 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11231$as_echo "$ac_ct_CC" >&6; } 11232else 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11234$as_echo "no" >&6; } 11235fi 11236 11237 if test "x$ac_ct_CC" = x; then 11238 CC="" 11239 else 11240 case $cross_compiling:$ac_tool_warned in 11241yes:) 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11244ac_tool_warned=yes ;; 11245esac 11246 CC=$ac_ct_CC 11247 fi 11248else 11249 CC="$ac_cv_prog_CC" 11250fi 11251 11252if test -z "$CC"; then 11253 if test -n "$ac_tool_prefix"; then 11254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11255set dummy ${ac_tool_prefix}cc; ac_word=$2 11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11257$as_echo_n "checking for $ac_word... " >&6; } 11258if ${ac_cv_prog_CC+:} false; then : 11259 $as_echo_n "(cached) " >&6 11260else 11261 if test -n "$CC"; then 11262 ac_cv_prog_CC="$CC" # Let the user override the test. 11263else 11264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11265for as_dir in $PATH 11266do 11267 IFS=$as_save_IFS 11268 test -z "$as_dir" && as_dir=. 11269 for ac_exec_ext in '' $ac_executable_extensions; do 11270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11271 ac_cv_prog_CC="${ac_tool_prefix}cc" 11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11273 break 2 11274 fi 11275done 11276 done 11277IFS=$as_save_IFS 11278 11279fi 11280fi 11281CC=$ac_cv_prog_CC 11282if test -n "$CC"; then 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11284$as_echo "$CC" >&6; } 11285else 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11287$as_echo "no" >&6; } 11288fi 11289 11290 11291 fi 11292fi 11293if test -z "$CC"; then 11294 # Extract the first word of "cc", so it can be a program name with args. 11295set dummy cc; ac_word=$2 11296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11297$as_echo_n "checking for $ac_word... " >&6; } 11298if ${ac_cv_prog_CC+:} false; then : 11299 $as_echo_n "(cached) " >&6 11300else 11301 if test -n "$CC"; then 11302 ac_cv_prog_CC="$CC" # Let the user override the test. 11303else 11304 ac_prog_rejected=no 11305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11306for as_dir in $PATH 11307do 11308 IFS=$as_save_IFS 11309 test -z "$as_dir" && as_dir=. 11310 for ac_exec_ext in '' $ac_executable_extensions; do 11311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11313 ac_prog_rejected=yes 11314 continue 11315 fi 11316 ac_cv_prog_CC="cc" 11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11318 break 2 11319 fi 11320done 11321 done 11322IFS=$as_save_IFS 11323 11324if test $ac_prog_rejected = yes; then 11325 # We found a bogon in the path, so make sure we never use it. 11326 set dummy $ac_cv_prog_CC 11327 shift 11328 if test $# != 0; then 11329 # We chose a different compiler from the bogus one. 11330 # However, it has the same basename, so the bogon will be chosen 11331 # first if we set CC to just the basename; use the full file name. 11332 shift 11333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11334 fi 11335fi 11336fi 11337fi 11338CC=$ac_cv_prog_CC 11339if test -n "$CC"; then 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11341$as_echo "$CC" >&6; } 11342else 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11344$as_echo "no" >&6; } 11345fi 11346 11347 11348fi 11349if test -z "$CC"; then 11350 if test -n "$ac_tool_prefix"; then 11351 for ac_prog in cl.exe 11352 do 11353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11354set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11356$as_echo_n "checking for $ac_word... " >&6; } 11357if ${ac_cv_prog_CC+:} false; then : 11358 $as_echo_n "(cached) " >&6 11359else 11360 if test -n "$CC"; then 11361 ac_cv_prog_CC="$CC" # Let the user override the test. 11362else 11363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11364for as_dir in $PATH 11365do 11366 IFS=$as_save_IFS 11367 test -z "$as_dir" && as_dir=. 11368 for ac_exec_ext in '' $ac_executable_extensions; do 11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11372 break 2 11373 fi 11374done 11375 done 11376IFS=$as_save_IFS 11377 11378fi 11379fi 11380CC=$ac_cv_prog_CC 11381if test -n "$CC"; then 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11383$as_echo "$CC" >&6; } 11384else 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11386$as_echo "no" >&6; } 11387fi 11388 11389 11390 test -n "$CC" && break 11391 done 11392fi 11393if test -z "$CC"; then 11394 ac_ct_CC=$CC 11395 for ac_prog in cl.exe 11396do 11397 # Extract the first word of "$ac_prog", so it can be a program name with args. 11398set dummy $ac_prog; ac_word=$2 11399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11400$as_echo_n "checking for $ac_word... " >&6; } 11401if ${ac_cv_prog_ac_ct_CC+:} false; then : 11402 $as_echo_n "(cached) " >&6 11403else 11404 if test -n "$ac_ct_CC"; then 11405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11406else 11407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11408for as_dir in $PATH 11409do 11410 IFS=$as_save_IFS 11411 test -z "$as_dir" && as_dir=. 11412 for ac_exec_ext in '' $ac_executable_extensions; do 11413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11414 ac_cv_prog_ac_ct_CC="$ac_prog" 11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11416 break 2 11417 fi 11418done 11419 done 11420IFS=$as_save_IFS 11421 11422fi 11423fi 11424ac_ct_CC=$ac_cv_prog_ac_ct_CC 11425if test -n "$ac_ct_CC"; then 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11427$as_echo "$ac_ct_CC" >&6; } 11428else 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11430$as_echo "no" >&6; } 11431fi 11432 11433 11434 test -n "$ac_ct_CC" && break 11435done 11436 11437 if test "x$ac_ct_CC" = x; then 11438 CC="" 11439 else 11440 case $cross_compiling:$ac_tool_warned in 11441yes:) 11442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11444ac_tool_warned=yes ;; 11445esac 11446 CC=$ac_ct_CC 11447 fi 11448fi 11449 11450fi 11451 11452 11453test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11455as_fn_error $? "no acceptable C compiler found in \$PATH 11456See \`config.log' for more details" "$LINENO" 5; } 11457 11458# Provide some information about the compiler. 11459$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11460set X $ac_compile 11461ac_compiler=$2 11462for ac_option in --version -v -V -qversion; do 11463 { { ac_try="$ac_compiler $ac_option >&5" 11464case "(($ac_try" in 11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11466 *) ac_try_echo=$ac_try;; 11467esac 11468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11469$as_echo "$ac_try_echo"; } >&5 11470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11471 ac_status=$? 11472 if test -s conftest.err; then 11473 sed '10a\ 11474... rest of stderr output deleted ... 11475 10q' conftest.err >conftest.er1 11476 cat conftest.er1 >&5 11477 fi 11478 rm -f conftest.er1 conftest.err 11479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11480 test $ac_status = 0; } 11481done 11482 11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11484$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11485if ${ac_cv_c_compiler_gnu+:} false; then : 11486 $as_echo_n "(cached) " >&6 11487else 11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11489/* end confdefs.h. */ 11490 11491int 11492main () 11493{ 11494#ifndef __GNUC__ 11495 choke me 11496#endif 11497 11498 ; 11499 return 0; 11500} 11501_ACEOF 11502if ac_fn_c_try_compile "$LINENO"; then : 11503 ac_compiler_gnu=yes 11504else 11505 ac_compiler_gnu=no 11506fi 11507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11508ac_cv_c_compiler_gnu=$ac_compiler_gnu 11509 11510fi 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11512$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11513if test $ac_compiler_gnu = yes; then 11514 GCC=yes 11515else 11516 GCC= 11517fi 11518ac_test_CFLAGS=${CFLAGS+set} 11519ac_save_CFLAGS=$CFLAGS 11520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11521$as_echo_n "checking whether $CC accepts -g... " >&6; } 11522if ${ac_cv_prog_cc_g+:} false; then : 11523 $as_echo_n "(cached) " >&6 11524else 11525 ac_save_c_werror_flag=$ac_c_werror_flag 11526 ac_c_werror_flag=yes 11527 ac_cv_prog_cc_g=no 11528 CFLAGS="-g" 11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11530/* end confdefs.h. */ 11531 11532int 11533main () 11534{ 11535 11536 ; 11537 return 0; 11538} 11539_ACEOF 11540if ac_fn_c_try_compile "$LINENO"; then : 11541 ac_cv_prog_cc_g=yes 11542else 11543 CFLAGS="" 11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11545/* end confdefs.h. */ 11546 11547int 11548main () 11549{ 11550 11551 ; 11552 return 0; 11553} 11554_ACEOF 11555if ac_fn_c_try_compile "$LINENO"; then : 11556 11557else 11558 ac_c_werror_flag=$ac_save_c_werror_flag 11559 CFLAGS="-g" 11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11561/* end confdefs.h. */ 11562 11563int 11564main () 11565{ 11566 11567 ; 11568 return 0; 11569} 11570_ACEOF 11571if ac_fn_c_try_compile "$LINENO"; then : 11572 ac_cv_prog_cc_g=yes 11573fi 11574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11575fi 11576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11577fi 11578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11579 ac_c_werror_flag=$ac_save_c_werror_flag 11580fi 11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11582$as_echo "$ac_cv_prog_cc_g" >&6; } 11583if test "$ac_test_CFLAGS" = set; then 11584 CFLAGS=$ac_save_CFLAGS 11585elif test $ac_cv_prog_cc_g = yes; then 11586 if test "$GCC" = yes; then 11587 CFLAGS="-g -O2" 11588 else 11589 CFLAGS="-g" 11590 fi 11591else 11592 if test "$GCC" = yes; then 11593 CFLAGS="-O2" 11594 else 11595 CFLAGS= 11596 fi 11597fi 11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11599$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11600if ${ac_cv_prog_cc_c89+:} false; then : 11601 $as_echo_n "(cached) " >&6 11602else 11603 ac_cv_prog_cc_c89=no 11604ac_save_CC=$CC 11605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11606/* end confdefs.h. */ 11607#include <stdarg.h> 11608#include <stdio.h> 11609struct stat; 11610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11611struct buf { int x; }; 11612FILE * (*rcsopen) (struct buf *, struct stat *, int); 11613static char *e (p, i) 11614 char **p; 11615 int i; 11616{ 11617 return p[i]; 11618} 11619static char *f (char * (*g) (char **, int), char **p, ...) 11620{ 11621 char *s; 11622 va_list v; 11623 va_start (v,p); 11624 s = g (p, va_arg (v,int)); 11625 va_end (v); 11626 return s; 11627} 11628 11629/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11630 function prototypes and stuff, but not '\xHH' hex character constants. 11631 These don't provoke an error unfortunately, instead are silently treated 11632 as 'x'. The following induces an error, until -std is added to get 11633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11634 array size at least. It's necessary to write '\x00'==0 to get something 11635 that's true only with -std. */ 11636int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11637 11638/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11639 inside strings and character constants. */ 11640#define FOO(x) 'x' 11641int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11642 11643int test (int i, double x); 11644struct s1 {int (*f) (int a);}; 11645struct s2 {int (*f) (double a);}; 11646int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11647int argc; 11648char **argv; 11649int 11650main () 11651{ 11652return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11653 ; 11654 return 0; 11655} 11656_ACEOF 11657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11659do 11660 CC="$ac_save_CC $ac_arg" 11661 if ac_fn_c_try_compile "$LINENO"; then : 11662 ac_cv_prog_cc_c89=$ac_arg 11663fi 11664rm -f core conftest.err conftest.$ac_objext 11665 test "x$ac_cv_prog_cc_c89" != "xno" && break 11666done 11667rm -f conftest.$ac_ext 11668CC=$ac_save_CC 11669 11670fi 11671# AC_CACHE_VAL 11672case "x$ac_cv_prog_cc_c89" in 11673 x) 11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11675$as_echo "none needed" >&6; } ;; 11676 xno) 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11678$as_echo "unsupported" >&6; } ;; 11679 *) 11680 CC="$CC $ac_cv_prog_cc_c89" 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11682$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11683esac 11684if test "x$ac_cv_prog_cc_c89" != xno; then : 11685 11686fi 11687 11688ac_ext=c 11689ac_cpp='$CPP $CPPFLAGS' 11690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11692ac_compiler_gnu=$ac_cv_c_compiler_gnu 11693 11694 11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 11696$as_echo_n "checking $CC dependency flag... " >&6; } 11697echo 'void f(){}' >conftest.c 11698if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 11699 DEPFLAG="-MM" 11700else 11701 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 11702 DEPFLAG="-xM1" 11703 else 11704 DEPFLAG="-MM" # dunno do something 11705 fi 11706fi 11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 11708$as_echo "$DEPFLAG" >&6; } 11709rm -f conftest.c 11710 11711 11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11713$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11714set x ${MAKE-make} 11715ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11716if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 11717 $as_echo_n "(cached) " >&6 11718else 11719 cat >conftest.make <<\_ACEOF 11720SHELL = /bin/sh 11721all: 11722 @echo '@@@%%%=$(MAKE)=@@@%%%' 11723_ACEOF 11724# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 11725case `${MAKE-make} -f conftest.make 2>/dev/null` in 11726 *@@@%%%=?*=@@@%%%*) 11727 eval ac_cv_prog_make_${ac_make}_set=yes;; 11728 *) 11729 eval ac_cv_prog_make_${ac_make}_set=no;; 11730esac 11731rm -f conftest.make 11732fi 11733if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11735$as_echo "yes" >&6; } 11736 SET_MAKE= 11737else 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11739$as_echo "no" >&6; } 11740 SET_MAKE="MAKE=${MAKE-make}" 11741fi 11742 11743 11744# Extra (sp)lint flags for NetBSD 11745 11746case "$host_os" in 11747 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS" 11748 ;; 11749 *) LINTFLAGS="$LINTFLAGS" 11750 ;; 11751esac 11752 11753 11754 11755$as_echo "#define WINVER 0x0502" >>confdefs.h 11756 11757 11758 11759 11760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 11761$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 11762cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 11763if eval \${cv_prog_cc_flag_$cache+:} false; then : 11764 $as_echo_n "(cached) " >&6 11765else 11766 11767echo 'void f(void){}' >conftest.c 11768if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 11769eval "cv_prog_cc_flag_$cache=yes" 11770else 11771eval "cv_prog_cc_flag_$cache=no" 11772fi 11773rm -f conftest conftest.o conftest.c 11774 11775fi 11776 11777if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11779$as_echo "yes" >&6; } 11780: 11781C99FLAG="-std=c99" 11782else 11783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11784$as_echo "no" >&6; } 11785: 11786 11787fi 11788 11789 11790 11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 11792$as_echo_n "checking whether $CC supports -xc99... " >&6; } 11793cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 11794if eval \${cv_prog_cc_flag_$cache+:} false; then : 11795 $as_echo_n "(cached) " >&6 11796else 11797 11798echo 'void f(void){}' >conftest.c 11799if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 11800eval "cv_prog_cc_flag_$cache=yes" 11801else 11802eval "cv_prog_cc_flag_$cache=no" 11803fi 11804rm -f conftest conftest.o conftest.c 11805 11806fi 11807 11808if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11810$as_echo "yes" >&6; } 11811: 11812C99FLAG="-xc99" 11813else 11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11815$as_echo "no" >&6; } 11816: 11817 11818fi 11819 11820 11821# routine to copy files 11822# argument 1 is a list of files (relative to the source dir) 11823# argument 2 is a destination directory (relative to the current 11824# working directory 11825 11826 11827# copy all .h files in the dir at argument 1 11828# (relative to source) to the dir at argument 2 11829# (relative to current dir) 11830 11831 11832# Checks for typedefs, structures, and compiler characteristics. 11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11834$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11835if ${ac_cv_c_const+:} false; then : 11836 $as_echo_n "(cached) " >&6 11837else 11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11839/* end confdefs.h. */ 11840 11841int 11842main () 11843{ 11844 11845#ifndef __cplusplus 11846 /* Ultrix mips cc rejects this sort of thing. */ 11847 typedef int charset[2]; 11848 const charset cs = { 0, 0 }; 11849 /* SunOS 4.1.1 cc rejects this. */ 11850 char const *const *pcpcc; 11851 char **ppc; 11852 /* NEC SVR4.0.2 mips cc rejects this. */ 11853 struct point {int x, y;}; 11854 static struct point const zero = {0,0}; 11855 /* AIX XL C 1.02.0.0 rejects this. 11856 It does not let you subtract one const X* pointer from another in 11857 an arm of an if-expression whose if-part is not a constant 11858 expression */ 11859 const char *g = "string"; 11860 pcpcc = &g + (g ? g-g : 0); 11861 /* HPUX 7.0 cc rejects these. */ 11862 ++pcpcc; 11863 ppc = (char**) pcpcc; 11864 pcpcc = (char const *const *) ppc; 11865 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11866 char tx; 11867 char *t = &tx; 11868 char const *s = 0 ? (char *) 0 : (char const *) 0; 11869 11870 *t++ = 0; 11871 if (s) return 0; 11872 } 11873 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11874 int x[] = {25, 17}; 11875 const int *foo = &x[0]; 11876 ++foo; 11877 } 11878 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11879 typedef const int *iptr; 11880 iptr p = 0; 11881 ++p; 11882 } 11883 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11884 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11885 struct s { int j; const int *ap[3]; } bx; 11886 struct s *b = &bx; b->j = 5; 11887 } 11888 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11889 const int foo = 10; 11890 if (!foo) return 0; 11891 } 11892 return !cs[0] && !zero.x; 11893#endif 11894 11895 ; 11896 return 0; 11897} 11898_ACEOF 11899if ac_fn_c_try_compile "$LINENO"; then : 11900 ac_cv_c_const=yes 11901else 11902 ac_cv_c_const=no 11903fi 11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11905fi 11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11907$as_echo "$ac_cv_c_const" >&6; } 11908if test $ac_cv_c_const = no; then 11909 11910$as_echo "#define const /**/" >>confdefs.h 11911 11912fi 11913 11914ac_ext=c 11915ac_cpp='$CPP $CPPFLAGS' 11916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11918ac_compiler_gnu=$ac_cv_c_compiler_gnu 11919 11920if test "x$CFLAGS" = "x" ; then 11921 11922 11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 11924$as_echo_n "checking whether $CC supports -g... " >&6; } 11925cache=`echo g | sed 'y%.=/+-%___p_%'` 11926if eval \${cv_prog_cc_flag_$cache+:} false; then : 11927 $as_echo_n "(cached) " >&6 11928else 11929 11930echo 'void f(void){}' >conftest.c 11931if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 11932eval "cv_prog_cc_flag_$cache=yes" 11933else 11934eval "cv_prog_cc_flag_$cache=no" 11935fi 11936rm -f conftest conftest.o conftest.c 11937 11938fi 11939 11940if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 11941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11942$as_echo "yes" >&6; } 11943: 11944CFLAGS="-g" 11945else 11946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11947$as_echo "no" >&6; } 11948: 11949 11950fi 11951 11952 11953 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 11955$as_echo_n "checking whether $CC supports -O2... " >&6; } 11956cache=`echo O2 | sed 'y%.=/+-%___p_%'` 11957if eval \${cv_prog_cc_flag_$cache+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 11961echo 'void f(void){}' >conftest.c 11962if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 11963eval "cv_prog_cc_flag_$cache=yes" 11964else 11965eval "cv_prog_cc_flag_$cache=no" 11966fi 11967rm -f conftest conftest.o conftest.c 11968 11969fi 11970 11971if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11973$as_echo "yes" >&6; } 11974: 11975CFLAGS="-O2 $CFLAGS" 11976else 11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11978$as_echo "no" >&6; } 11979: 11980 11981fi 11982 11983fi 11984 11985 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 11987$as_echo_n "checking whether $CC supports -Wall... " >&6; } 11988cache=`echo Wall | sed 'y%.=/+-%___p_%'` 11989if eval \${cv_prog_cc_flag_$cache+:} false; then : 11990 $as_echo_n "(cached) " >&6 11991else 11992 11993echo 'void f(void){}' >conftest.c 11994if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 11995eval "cv_prog_cc_flag_$cache=yes" 11996else 11997eval "cv_prog_cc_flag_$cache=no" 11998fi 11999rm -f conftest conftest.o conftest.c 12000 12001fi 12002 12003if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12005$as_echo "yes" >&6; } 12006: 12007CFLAGS="-Wall $CFLAGS" 12008else 12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12010$as_echo "no" >&6; } 12011: 12012 12013fi 12014 12015 12016 12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 12018$as_echo_n "checking whether $CC supports -W... " >&6; } 12019cache=`echo W | sed 'y%.=/+-%___p_%'` 12020if eval \${cv_prog_cc_flag_$cache+:} false; then : 12021 $as_echo_n "(cached) " >&6 12022else 12023 12024echo 'void f(void){}' >conftest.c 12025if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 12026eval "cv_prog_cc_flag_$cache=yes" 12027else 12028eval "cv_prog_cc_flag_$cache=no" 12029fi 12030rm -f conftest conftest.o conftest.c 12031 12032fi 12033 12034if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 12035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12036$as_echo "yes" >&6; } 12037: 12038CFLAGS="-W $CFLAGS" 12039else 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12041$as_echo "no" >&6; } 12042: 12043 12044fi 12045 12046 12047 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5 12049$as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; } 12050cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'` 12051if eval \${cv_prog_cc_flag_$cache+:} false; then : 12052 $as_echo_n "(cached) " >&6 12053else 12054 12055echo 'void f(void){}' >conftest.c 12056if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then 12057eval "cv_prog_cc_flag_$cache=yes" 12058else 12059eval "cv_prog_cc_flag_$cache=no" 12060fi 12061rm -f conftest conftest.o conftest.c 12062 12063fi 12064 12065if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12067$as_echo "yes" >&6; } 12068: 12069CFLAGS="-Wwrite-strings $CFLAGS" 12070else 12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12072$as_echo "no" >&6; } 12073: 12074 12075fi 12076 12077 12078 12079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5 12080$as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; } 12081cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'` 12082if eval \${cv_prog_cc_flag_$cache+:} false; then : 12083 $as_echo_n "(cached) " >&6 12084else 12085 12086echo 'void f(void){}' >conftest.c 12087if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then 12088eval "cv_prog_cc_flag_$cache=yes" 12089else 12090eval "cv_prog_cc_flag_$cache=no" 12091fi 12092rm -f conftest conftest.o conftest.c 12093 12094fi 12095 12096if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12098$as_echo "yes" >&6; } 12099: 12100CFLAGS="-Wstrict-prototypes $CFLAGS" 12101else 12102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12103$as_echo "no" >&6; } 12104: 12105 12106fi 12107 12108 12109 12110for ac_header in getopt.h time.h 12111do : 12112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12113ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12114" 12115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12116 cat >>confdefs.h <<_ACEOF 12117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12118_ACEOF 12119 12120fi 12121 12122done 12123 12124 12125# MinGW32 tests 12126for ac_header in winsock2.h ws2tcpip.h 12127do : 12128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12129ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12130" 12131if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12132 cat >>confdefs.h <<_ACEOF 12133#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12134_ACEOF 12135 12136fi 12137 12138done 12139 12140# end mingw32 tests 12141 12142 12143 12144 12145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 12146$as_echo_n "checking whether $CC supports -Werror... " >&6; } 12147cache=`echo Werror | sed 'y%.=/+-%___p_%'` 12148if eval \${cv_prog_cc_flag_$cache+:} false; then : 12149 $as_echo_n "(cached) " >&6 12150else 12151 12152echo 'void f(void){}' >conftest.c 12153if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 12154eval "cv_prog_cc_flag_$cache=yes" 12155else 12156eval "cv_prog_cc_flag_$cache=no" 12157fi 12158rm -f conftest conftest.o conftest.c 12159 12160fi 12161 12162if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 12163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12164$as_echo "yes" >&6; } 12165: 12166ERRFLAG="-Werror" 12167else 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12169$as_echo "no" >&6; } 12170: 12171ERRFLAG="-errwarn" 12172fi 12173 12174 12175 12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 12177$as_echo_n "checking whether $CC supports -Wall... " >&6; } 12178cache=`echo Wall | sed 'y%.=/+-%___p_%'` 12179if eval \${cv_prog_cc_flag_$cache+:} false; then : 12180 $as_echo_n "(cached) " >&6 12181else 12182 12183echo 'void f(void){}' >conftest.c 12184if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 12185eval "cv_prog_cc_flag_$cache=yes" 12186else 12187eval "cv_prog_cc_flag_$cache=no" 12188fi 12189rm -f conftest conftest.o conftest.c 12190 12191fi 12192 12193if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12195$as_echo "yes" >&6; } 12196: 12197ERRFLAG="$ERRFLAG -Wall" 12198else 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12200$as_echo "no" >&6; } 12201: 12202ERRFLAG="$ERRFLAG -errfmt" 12203fi 12204 12205 12206 12207 12208 12209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 12210$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 12211cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 12212if eval \${cv_prog_cc_flag_$cache+:} false; then : 12213 $as_echo_n "(cached) " >&6 12214else 12215 12216echo 'void f(void){}' >conftest.c 12217if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 12218eval "cv_prog_cc_flag_$cache=yes" 12219else 12220eval "cv_prog_cc_flag_$cache=no" 12221fi 12222rm -f conftest conftest.o conftest.c 12223 12224fi 12225 12226if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12228$as_echo "yes" >&6; } 12229: 12230C99FLAG="-std=c99" 12231else 12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12233$as_echo "no" >&6; } 12234: 12235 12236fi 12237 12238 12239 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 12241$as_echo_n "checking whether $CC supports -xc99... " >&6; } 12242cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 12243if eval \${cv_prog_cc_flag_$cache+:} false; then : 12244 $as_echo_n "(cached) " >&6 12245else 12246 12247echo 'void f(void){}' >conftest.c 12248if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 12249eval "cv_prog_cc_flag_$cache=yes" 12250else 12251eval "cv_prog_cc_flag_$cache=no" 12252fi 12253rm -f conftest conftest.o conftest.c 12254 12255fi 12256 12257if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 12258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12259$as_echo "yes" >&6; } 12260: 12261C99FLAG="-xc99" 12262else 12263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12264$as_echo "no" >&6; } 12265: 12266 12267fi 12268 12269 12270for ac_header in getopt.h time.h 12271do : 12272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12273ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12274" 12275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12276 cat >>confdefs.h <<_ACEOF 12277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12278_ACEOF 12279 12280fi 12281 12282done 12283 12284 12285 12286 12287 12288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 12289$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 12290cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 12291if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 12292 $as_echo_n "(cached) " >&6 12293else 12294 12295echo ' 12296#include "confdefs.h" 12297#include <stdlib.h> 12298#include <ctype.h> 12299#include <sys/time.h> 12300#ifdef HAVE_TIME_H 12301#include <time.h> 12302#endif 12303#include <unistd.h> 12304#include <netdb.h> 12305#ifdef HAVE_GETOPT_H 12306#include <getopt.h> 12307#endif 12308 12309int test() { 12310 int a; 12311 char **opts = NULL; 12312 struct timeval tv; 12313 char *t; 12314 time_t time = 0; 12315 char *buf = NULL; 12316 const char* str = NULL; 12317 struct msghdr msg; 12318 msg.msg_control = 0; 12319 t = ctime_r(&time, buf); 12320 tv.tv_usec = 10; 12321 srandom(32); 12322 a = getopt(2, opts, "a"); 12323 a = isascii(32); 12324 str = gai_strerror(0); 12325 if(str && t && tv.tv_usec && msg.msg_control) 12326 a = 0; 12327 return a; 12328} 12329' > conftest.c 12330echo 'void f(){}' >>conftest.c 12331if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 12332eval "cv_prog_cc_flag_needed_$cache=no" 12333else 12334 12335if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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 12336eval "cv_prog_cc_flag_needed_$cache=yes" 12337else 12338eval "cv_prog_cc_flag_needed_$cache=fail" 12339#echo 'Test with flag fails too!' 12340#cat conftest.c 12341#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 12342#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 12343#exit 1 12344fi 12345 12346fi 12347rm -f conftest conftest.c conftest.o 12348 12349fi 12350 12351if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12353$as_echo "yes" >&6; } 12354: 12355CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 12356else 12357if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 12358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12359$as_echo "no" >&6; } 12360#echo 'Test with flag is no!' 12361#cat conftest.c 12362#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 12363#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 12364#exit 1 12365: 12366 12367else 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12369$as_echo "failed" >&6; } 12370: 12371 12372fi 12373fi 12374 12375 12376 12377 12378 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 12380$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 12381cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 12382if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384else 12385 12386echo ' 12387#include "confdefs.h" 12388#include <stdlib.h> 12389#include <ctype.h> 12390#include <sys/time.h> 12391#ifdef HAVE_TIME_H 12392#include <time.h> 12393#endif 12394#include <unistd.h> 12395#include <netdb.h> 12396#ifdef HAVE_GETOPT_H 12397#include <getopt.h> 12398#endif 12399 12400int test() { 12401 int a; 12402 char **opts = NULL; 12403 struct timeval tv; 12404 char *t; 12405 time_t time = 0; 12406 char *buf = NULL; 12407 const char* str = NULL; 12408 struct msghdr msg; 12409 msg.msg_control = 0; 12410 t = ctime_r(&time, buf); 12411 tv.tv_usec = 10; 12412 srandom(32); 12413 a = getopt(2, opts, "a"); 12414 a = isascii(32); 12415 str = gai_strerror(0); 12416 if(str && t && tv.tv_usec && msg.msg_control) 12417 a = 0; 12418 return a; 12419} 12420' > conftest.c 12421echo 'void f(){}' >>conftest.c 12422if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 12423eval "cv_prog_cc_flag_needed_$cache=no" 12424else 12425 12426if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 12427eval "cv_prog_cc_flag_needed_$cache=yes" 12428else 12429eval "cv_prog_cc_flag_needed_$cache=fail" 12430#echo 'Test with flag fails too!' 12431#cat conftest.c 12432#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 12433#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 12434#exit 1 12435fi 12436 12437fi 12438rm -f conftest conftest.c conftest.o 12439 12440fi 12441 12442if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 12443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12444$as_echo "yes" >&6; } 12445: 12446CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 12447else 12448if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12450$as_echo "no" >&6; } 12451#echo 'Test with flag is no!' 12452#cat conftest.c 12453#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 12454#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 12455#exit 1 12456: 12457 12458else 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12460$as_echo "failed" >&6; } 12461: 12462 12463fi 12464fi 12465 12466 12467 12468 12469 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 12471$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 12472cache=`$as_echo "$C99FLAG" | $as_tr_sh` 12473if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 12474 $as_echo_n "(cached) " >&6 12475else 12476 12477echo ' 12478#include <stdbool.h> 12479#include <ctype.h> 12480int test() { 12481 int a = 0; 12482 return a; 12483} 12484' > conftest.c 12485echo 'void f(){}' >>conftest.c 12486if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 12487eval "cv_prog_cc_flag_needed_$cache=no" 12488else 12489 12490if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 12491eval "cv_prog_cc_flag_needed_$cache=yes" 12492else 12493eval "cv_prog_cc_flag_needed_$cache=fail" 12494#echo 'Test with flag fails too!' 12495#cat conftest.c 12496#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 12497#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 12498#exit 1 12499fi 12500 12501fi 12502rm -f conftest conftest.c conftest.o 12503 12504fi 12505 12506if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12508$as_echo "yes" >&6; } 12509: 12510CFLAGS="$CFLAGS $C99FLAG" 12511else 12512if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12514$as_echo "no" >&6; } 12515#echo 'Test with flag is no!' 12516#cat conftest.c 12517#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 12518#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 12519#exit 1 12520: 12521 12522else 12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12524$as_echo "failed" >&6; } 12525: 12526 12527fi 12528fi 12529 12530 12531 12532 12533 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 12535$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 12536cache=_D_BSD_SOURCE 12537if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 12538 $as_echo_n "(cached) " >&6 12539else 12540 12541echo ' 12542#include <ctype.h> 12543 12544int test() { 12545 int a; 12546 a = isascii(32); 12547 return a; 12548} 12549' > conftest.c 12550echo 'void f(){}' >>conftest.c 12551if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 12552eval "cv_prog_cc_flag_needed_$cache=no" 12553else 12554 12555if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 12556eval "cv_prog_cc_flag_needed_$cache=yes" 12557else 12558eval "cv_prog_cc_flag_needed_$cache=fail" 12559#echo 'Test with flag fails too!' 12560#cat conftest.c 12561#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 12562#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 12563#exit 1 12564fi 12565 12566fi 12567rm -f conftest conftest.c conftest.o 12568 12569fi 12570 12571if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 12572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12573$as_echo "yes" >&6; } 12574: 12575CFLAGS="$CFLAGS -D_BSD_SOURCE" 12576else 12577if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12579$as_echo "no" >&6; } 12580#echo 'Test with flag is no!' 12581#cat conftest.c 12582#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 12583#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 12584#exit 1 12585: 12586 12587else 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12589$as_echo "failed" >&6; } 12590: 12591 12592fi 12593fi 12594 12595 12596 12597 12598 12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 12600$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 12601cache=_D_GNU_SOURCE 12602if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 12603 $as_echo_n "(cached) " >&6 12604else 12605 12606echo ' 12607#include <netinet/in.h> 12608 12609int test() { 12610 struct in6_pktinfo inf; 12611 int a = (int)sizeof(inf); 12612 return a; 12613} 12614' > conftest.c 12615echo 'void f(){}' >>conftest.c 12616if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 12617eval "cv_prog_cc_flag_needed_$cache=no" 12618else 12619 12620if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 12621eval "cv_prog_cc_flag_needed_$cache=yes" 12622else 12623eval "cv_prog_cc_flag_needed_$cache=fail" 12624#echo 'Test with flag fails too!' 12625#cat conftest.c 12626#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 12627#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 12628#exit 1 12629fi 12630 12631fi 12632rm -f conftest conftest.c conftest.o 12633 12634fi 12635 12636if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12638$as_echo "yes" >&6; } 12639: 12640CFLAGS="$CFLAGS -D_GNU_SOURCE" 12641else 12642if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12644$as_echo "no" >&6; } 12645#echo 'Test with flag is no!' 12646#cat conftest.c 12647#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 12648#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 12649#exit 1 12650: 12651 12652else 12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12654$as_echo "failed" >&6; } 12655: 12656 12657fi 12658fi 12659 12660 12661# check again for GNU_SOURCE for setresgid. May fail if setresgid 12662# is not available at all. -D_FRSRESGID is to make this check unique. 12663# otherwise we would get the previous cached result. 12664 12665 12666 12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 12668$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 12669cache=_D_GNU_SOURCE__D_FRSRESGID 12670if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 12671 $as_echo_n "(cached) " >&6 12672else 12673 12674echo ' 12675#include <unistd.h> 12676 12677int test() { 12678 int a = setresgid(0,0,0); 12679 a = setresuid(0,0,0); 12680 return a; 12681} 12682' > conftest.c 12683echo 'void f(){}' >>conftest.c 12684if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 12685eval "cv_prog_cc_flag_needed_$cache=no" 12686else 12687 12688if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 12689eval "cv_prog_cc_flag_needed_$cache=yes" 12690else 12691eval "cv_prog_cc_flag_needed_$cache=fail" 12692#echo 'Test with flag fails too!' 12693#cat conftest.c 12694#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 12695#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 12696#exit 1 12697fi 12698 12699fi 12700rm -f conftest conftest.c conftest.o 12701 12702fi 12703 12704if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 12705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12706$as_echo "yes" >&6; } 12707: 12708CFLAGS="$CFLAGS -D_GNU_SOURCE" 12709else 12710if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12712$as_echo "no" >&6; } 12713#echo 'Test with flag is no!' 12714#cat conftest.c 12715#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 12716#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 12717#exit 1 12718: 12719 12720else 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12722$as_echo "failed" >&6; } 12723: 12724 12725fi 12726fi 12727 12728 12729 12730 12731 12732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 12733$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 12734cache=_D_POSIX_C_SOURCE_200112 12735if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 12736 $as_echo_n "(cached) " >&6 12737else 12738 12739echo ' 12740#include "confdefs.h" 12741#ifdef HAVE_TIME_H 12742#include <time.h> 12743#endif 12744#include <netdb.h> 12745 12746int test() { 12747 int a = 0; 12748 char *t; 12749 time_t time = 0; 12750 char *buf = NULL; 12751 const char* str = NULL; 12752 t = ctime_r(&time, buf); 12753 str = gai_strerror(0); 12754 if(t && str) 12755 a = 0; 12756 return a; 12757} 12758' > conftest.c 12759echo 'void f(){}' >>conftest.c 12760if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 12761eval "cv_prog_cc_flag_needed_$cache=no" 12762else 12763 12764if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 12765eval "cv_prog_cc_flag_needed_$cache=yes" 12766else 12767eval "cv_prog_cc_flag_needed_$cache=fail" 12768#echo 'Test with flag fails too!' 12769#cat conftest.c 12770#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 12771#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 12772#exit 1 12773fi 12774 12775fi 12776rm -f conftest conftest.c conftest.o 12777 12778fi 12779 12780if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 12781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12782$as_echo "yes" >&6; } 12783: 12784CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 12785else 12786if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12788$as_echo "no" >&6; } 12789#echo 'Test with flag is no!' 12790#cat conftest.c 12791#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 12792#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 12793#exit 1 12794: 12795 12796else 12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12798$as_echo "failed" >&6; } 12799: 12800 12801fi 12802fi 12803 12804 12805 12806 12807 12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 12809$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 12810cache=_D__EXTENSIONS__ 12811if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 12812 $as_echo_n "(cached) " >&6 12813else 12814 12815echo ' 12816#include "confdefs.h" 12817#include <stdlib.h> 12818#include <ctype.h> 12819#include <sys/time.h> 12820#ifdef HAVE_TIME_H 12821#include <time.h> 12822#endif 12823#include <unistd.h> 12824#ifdef HAVE_GETOPT_H 12825#include <getopt.h> 12826#endif 12827 12828int test() { 12829 int a; 12830 char **opts = NULL; 12831 struct timeval tv; 12832 tv.tv_usec = 10; 12833 srandom(32); 12834 a = getopt(2, opts, "a"); 12835 a = isascii(32); 12836 if(tv.tv_usec) 12837 a = 0; 12838 return a; 12839} 12840' > conftest.c 12841echo 'void f(){}' >>conftest.c 12842if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 12843eval "cv_prog_cc_flag_needed_$cache=no" 12844else 12845 12846if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 12847eval "cv_prog_cc_flag_needed_$cache=yes" 12848else 12849eval "cv_prog_cc_flag_needed_$cache=fail" 12850#echo 'Test with flag fails too!' 12851#cat conftest.c 12852#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 12853#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 12854#exit 1 12855fi 12856 12857fi 12858rm -f conftest conftest.c conftest.o 12859 12860fi 12861 12862if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 12863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12864$as_echo "yes" >&6; } 12865: 12866CFLAGS="$CFLAGS -D__EXTENSIONS__" 12867else 12868if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 12869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12870$as_echo "no" >&6; } 12871#echo 'Test with flag is no!' 12872#cat conftest.c 12873#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 12874#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 12875#exit 1 12876: 12877 12878else 12879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12880$as_echo "failed" >&6; } 12881: 12882 12883fi 12884fi 12885 12886 12887 12888 12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12890$as_echo_n "checking for inline... " >&6; } 12891if ${ac_cv_c_inline+:} false; then : 12892 $as_echo_n "(cached) " >&6 12893else 12894 ac_cv_c_inline=no 12895for ac_kw in inline __inline__ __inline; do 12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12897/* end confdefs.h. */ 12898#ifndef __cplusplus 12899typedef int foo_t; 12900static $ac_kw foo_t static_foo () {return 0; } 12901$ac_kw foo_t foo () {return 0; } 12902#endif 12903 12904_ACEOF 12905if ac_fn_c_try_compile "$LINENO"; then : 12906 ac_cv_c_inline=$ac_kw 12907fi 12908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12909 test "$ac_cv_c_inline" != no && break 12910done 12911 12912fi 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12914$as_echo "$ac_cv_c_inline" >&6; } 12915 12916case $ac_cv_c_inline in 12917 inline | yes) ;; 12918 *) 12919 case $ac_cv_c_inline in 12920 no) ac_val=;; 12921 *) ac_val=$ac_cv_c_inline;; 12922 esac 12923 cat >>confdefs.h <<_ACEOF 12924#ifndef __cplusplus 12925#define inline $ac_val 12926#endif 12927_ACEOF 12928 ;; 12929esac 12930 12931ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 12932if test "x$ac_cv_type_int8_t" = xyes; then : 12933 12934else 12935 12936cat >>confdefs.h <<_ACEOF 12937#define int8_t char 12938_ACEOF 12939 12940fi 12941 12942ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 12943if test "x$ac_cv_type_int16_t" = xyes; then : 12944 12945else 12946 12947cat >>confdefs.h <<_ACEOF 12948#define int16_t short 12949_ACEOF 12950 12951fi 12952 12953ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 12954if test "x$ac_cv_type_int32_t" = xyes; then : 12955 12956else 12957 12958cat >>confdefs.h <<_ACEOF 12959#define int32_t int 12960_ACEOF 12961 12962fi 12963 12964ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 12965if test "x$ac_cv_type_int64_t" = xyes; then : 12966 12967else 12968 12969cat >>confdefs.h <<_ACEOF 12970#define int64_t long long 12971_ACEOF 12972 12973fi 12974 12975ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 12976if test "x$ac_cv_type_uint8_t" = xyes; then : 12977 12978else 12979 12980cat >>confdefs.h <<_ACEOF 12981#define uint8_t unsigned char 12982_ACEOF 12983 12984fi 12985 12986ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 12987if test "x$ac_cv_type_uint16_t" = xyes; then : 12988 12989else 12990 12991cat >>confdefs.h <<_ACEOF 12992#define uint16_t unsigned short 12993_ACEOF 12994 12995fi 12996 12997ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 12998if test "x$ac_cv_type_uint32_t" = xyes; then : 12999 13000else 13001 13002cat >>confdefs.h <<_ACEOF 13003#define uint32_t unsigned int 13004_ACEOF 13005 13006fi 13007 13008ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 13009if test "x$ac_cv_type_uint64_t" = xyes; then : 13010 13011else 13012 13013cat >>confdefs.h <<_ACEOF 13014#define uint64_t unsigned long long 13015_ACEOF 13016 13017fi 13018 13019 13020# my own checks 13021# Extract the first word of "doxygen", so it can be a program name with args. 13022set dummy doxygen; ac_word=$2 13023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13024$as_echo_n "checking for $ac_word... " >&6; } 13025if ${ac_cv_prog_doxygen+:} false; then : 13026 $as_echo_n "(cached) " >&6 13027else 13028 if test -n "$doxygen"; then 13029 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 13030else 13031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13032for as_dir in $PATH 13033do 13034 IFS=$as_save_IFS 13035 test -z "$as_dir" && as_dir=. 13036 for ac_exec_ext in '' $ac_executable_extensions; do 13037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13038 ac_cv_prog_doxygen="doxygen" 13039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13040 break 2 13041 fi 13042done 13043 done 13044IFS=$as_save_IFS 13045 13046fi 13047fi 13048doxygen=$ac_cv_prog_doxygen 13049if test -n "$doxygen"; then 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 13051$as_echo "$doxygen" >&6; } 13052else 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13054$as_echo "no" >&6; } 13055fi 13056 13057 13058 13059# check to see if libraries are needed for these functions. 13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13061$as_echo_n "checking for library containing socket... " >&6; } 13062if ${ac_cv_search_socket+:} false; then : 13063 $as_echo_n "(cached) " >&6 13064else 13065 ac_func_search_save_LIBS=$LIBS 13066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13067/* end confdefs.h. */ 13068 13069/* Override any GCC internal prototype to avoid an error. 13070 Use char because int might match the return type of a GCC 13071 builtin and then its argument prototype would still apply. */ 13072#ifdef __cplusplus 13073extern "C" 13074#endif 13075char socket (); 13076int 13077main () 13078{ 13079return socket (); 13080 ; 13081 return 0; 13082} 13083_ACEOF 13084for ac_lib in '' socket; do 13085 if test -z "$ac_lib"; then 13086 ac_res="none required" 13087 else 13088 ac_res=-l$ac_lib 13089 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13090 fi 13091 if ac_fn_c_try_link "$LINENO"; then : 13092 ac_cv_search_socket=$ac_res 13093fi 13094rm -f core conftest.err conftest.$ac_objext \ 13095 conftest$ac_exeext 13096 if ${ac_cv_search_socket+:} false; then : 13097 break 13098fi 13099done 13100if ${ac_cv_search_socket+:} false; then : 13101 13102else 13103 ac_cv_search_socket=no 13104fi 13105rm conftest.$ac_ext 13106LIBS=$ac_func_search_save_LIBS 13107fi 13108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13109$as_echo "$ac_cv_search_socket" >&6; } 13110ac_res=$ac_cv_search_socket 13111if test "$ac_res" != no; then : 13112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13113 13114fi 13115 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 13117$as_echo_n "checking for library containing inet_pton... " >&6; } 13118if ${ac_cv_search_inet_pton+:} false; then : 13119 $as_echo_n "(cached) " >&6 13120else 13121 ac_func_search_save_LIBS=$LIBS 13122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13123/* end confdefs.h. */ 13124 13125/* Override any GCC internal prototype to avoid an error. 13126 Use char because int might match the return type of a GCC 13127 builtin and then its argument prototype would still apply. */ 13128#ifdef __cplusplus 13129extern "C" 13130#endif 13131char inet_pton (); 13132int 13133main () 13134{ 13135return inet_pton (); 13136 ; 13137 return 0; 13138} 13139_ACEOF 13140for ac_lib in '' nsl; do 13141 if test -z "$ac_lib"; then 13142 ac_res="none required" 13143 else 13144 ac_res=-l$ac_lib 13145 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13146 fi 13147 if ac_fn_c_try_link "$LINENO"; then : 13148 ac_cv_search_inet_pton=$ac_res 13149fi 13150rm -f core conftest.err conftest.$ac_objext \ 13151 conftest$ac_exeext 13152 if ${ac_cv_search_inet_pton+:} false; then : 13153 break 13154fi 13155done 13156if ${ac_cv_search_inet_pton+:} false; then : 13157 13158else 13159 ac_cv_search_inet_pton=no 13160fi 13161rm conftest.$ac_ext 13162LIBS=$ac_func_search_save_LIBS 13163fi 13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 13165$as_echo "$ac_cv_search_inet_pton" >&6; } 13166ac_res=$ac_cv_search_inet_pton 13167if test "$ac_res" != no; then : 13168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13169 13170fi 13171 13172 13173 13174 13175# Check whether --with-drill was given. 13176if test "${with_drill+set}" = set; then : 13177 withval=$with_drill; 13178else 13179 with_drill="no" 13180fi 13181 13182if test x_$with_drill != x_no ; then 13183 DRILL=drill 13184 13185 INSTALL_DRILL=install-drill 13186 13187 UNINSTALL_DRILL=uninstall-drill 13188 13189 CLEAN_DRILL=clean-drill 13190 13191 LINT_DRILL=lint-drill 13192 13193 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then 13194 as_fn_error $? " 13195A config.h was detected in the drill subdirectory. 13196This does not work with the --with-drill option. 13197Please remove the config.h from the drill subdirectory 13198or do not use the --with-drill option." "$LINENO" 5 13199 fi 13200 DRILL_CONFIG=" drill/drill.1" 13201else 13202 DRILL="" 13203 13204 INSTALL_DRILL="" 13205 13206 UNINSTALL_DRILL="" 13207 13208 CLEAN_DRILL="" 13209 13210 LINT_DRILL="" 13211 13212 DRILL_CONFIG="" 13213fi 13214 13215 13216 13217# Check whether --with-examples was given. 13218if test "${with_examples+set}" = set; then : 13219 withval=$with_examples; 13220else 13221 with_examples="no" 13222fi 13223 13224if test x_$with_examples != x_no ; then 13225 EXAMPLES=examples 13226 13227 INSTALL_EXAMPLES=install-examples 13228 13229 UNINSTALL_EXAMPLES=uninstall-examples 13230 13231 CLEAN_EXAMPLES=clean-examples 13232 13233 LINT_EXAMPLES=lint-examples 13234 13235 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then 13236 as_fn_error $? " 13237A config.h was detected in the examples subdirectory. 13238This does not work with the --with-examples option. 13239Please remove the config.h from the examples subdirectory 13240or do not use the --with-examples option." "$LINENO" 5 13241 fi 13242 EXAMPLES_CONFIG=" examples/ldns-dane.1 examples/ldns-verify-zone.1" 13243else 13244 EXAMPLES="" 13245 13246 INSTALL_EXAMPLES="" 13247 13248 UNINSTALL_EXAMPLES="" 13249 13250 CLEAN_EXAMPLES="" 13251 13252 LINT_EXAMPLES="" 13253 13254 EXAMPLES_CONFIG="" 13255fi 13256 13257# add option to disable installation of ldns-config script 13258# Check whether --enable-ldns-config was given. 13259if test "${enable_ldns_config+set}" = set; then : 13260 enableval=$enable_ldns_config; enable_ldns_config=$enableval 13261else 13262 enable_ldns_config=yes 13263fi 13264 13265if test "x$enable_ldns_config" = xyes; then 13266 INSTALL_CONFIG=install-config 13267 13268 INSTALL_CONFIG_MANPAGE=install-config-manpage 13269 13270 UNINSTALL_CONFIG=uninstall-config 13271 13272 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage 13273 13274else 13275 INSTALL_CONFIG="" 13276 13277 INSTALL_CONFIG_MANPAGE="" 13278 13279 UNINSTALL_CONFIG="" 13280 13281 UNINSTALL_CONFIG_MANPAGE="" 13282 13283fi 13284 13285# add option to disable library printing to stderr 13286# Check whether --enable-stderr-msgs was given. 13287if test "${enable_stderr_msgs+set}" = set; then : 13288 enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval 13289else 13290 enable_stderr_msgs=no 13291fi 13292 13293case "$enable_stderr_msgs" in 13294 no) ;; 13295 *) 13296 13297cat >>confdefs.h <<_ACEOF 13298#define STDERR_MSGS 1 13299_ACEOF 13300 13301 ;; 13302esac 13303 13304# check for python 13305PYTHON_X_CFLAGS="" 13306ldns_with_pyldns=no 13307ldns_with_pyldnsx=no 13308 13309# Check whether --with-pyldns was given. 13310if test "${with_pyldns+set}" = set; then : 13311 withval=$with_pyldns; 13312else 13313 withval="no" 13314fi 13315 13316ldns_have_python=no 13317if test x_$withval != x_no; then 13318 # =========================================================================== 13319# http://www.gnu.org/software/autoconf-archive/ax_python_devel.html 13320# =========================================================================== 13321# 13322# SYNOPSIS 13323# 13324# AX_PYTHON_DEVEL([version]) 13325# 13326# DESCRIPTION 13327# 13328# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it 13329# in your configure.ac. 13330# 13331# This macro checks for Python and tries to get the include path to 13332# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS) 13333# output variables. It also exports $(PYTHON_EXTRA_LIBS) and 13334# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code. 13335# 13336# You can search for some particular version of Python by passing a 13337# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please 13338# note that you *have* to pass also an operator along with the version to 13339# match, and pay special attention to the single quotes surrounding the 13340# version number. Don't use "PYTHON_VERSION" for this: that environment 13341# variable is declared as precious and thus reserved for the end-user. 13342# 13343# This macro should work for all versions of Python >= 2.1.0. As an end 13344# user, you can disable the check for the python version by setting the 13345# PYTHON_NOVERSIONCHECK environment variable to something else than the 13346# empty string. 13347# 13348# If you need to use this macro for an older Python version, please 13349# contact the authors. We're always open for feedback. 13350# 13351# LICENSE 13352# 13353# Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de> 13354# Copyright (c) 2009 Alan W. Irwin 13355# Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net> 13356# Copyright (c) 2009 Andrew Collier 13357# Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org> 13358# Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org> 13359# Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu> 13360# 13361# This program is free software: you can redistribute it and/or modify it 13362# under the terms of the GNU General Public License as published by the 13363# Free Software Foundation, either version 3 of the License, or (at your 13364# option) any later version. 13365# 13366# This program is distributed in the hope that it will be useful, but 13367# WITHOUT ANY WARRANTY; without even the implied warranty of 13368# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 13369# Public License for more details. 13370# 13371# You should have received a copy of the GNU General Public License along 13372# with this program. If not, see <http://www.gnu.org/licenses/>. 13373# 13374# As a special exception, the respective Autoconf Macro's copyright owner 13375# gives unlimited permission to copy, distribute and modify the configure 13376# scripts that are the output of Autoconf when processing the Macro. You 13377# need not follow the terms of the GNU General Public License when using 13378# or distributing such scripts, even though portions of the text of the 13379# Macro appear in them. The GNU General Public License (GPL) does govern 13380# all other use of the material that constitutes the Autoconf Macro. 13381# 13382# This special exception to the GPL applies to versions of the Autoconf 13383# Macro released by the Autoconf Archive. When you make and distribute a 13384# modified version of the Autoconf Macro, you may extend this special 13385# exception to the GPL to apply to your modified version as well. 13386 13387#serial 16 13388 13389# This is what autoupdate's m4 run will expand. It fires 13390# the warning (with _au_warn_XXX), outputs it into the 13391# updated configure.ac (with AC_DIAGNOSE), and then outputs 13392# the replacement expansion. 13393 13394 13395# This is an auxiliary macro that is also run when 13396# autoupdate runs m4. It simply calls m4_warning, but 13397# we need a wrapper so that each warning is emitted only 13398# once. We break the quoting in m4_warning's argument in 13399# order to expand this macro's arguments, not AU_DEFUN's. 13400 13401 13402# Finally, this is the expansion that is picked up by 13403# autoconf. It tells the user to run autoupdate, and 13404# then outputs the replacement expansion. We do not care 13405# about autoupdate's warning because that contains 13406# information on what to do *after* running autoupdate. 13407 13408 13409 13410 ac_save_LIBS="$LIBS" 13411 13412 # 13413 # Allow the use of a (user set) custom python version 13414 # 13415 13416 13417 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 13418set dummy python$PYTHON_VERSION; ac_word=$2 13419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13420$as_echo_n "checking for $ac_word... " >&6; } 13421if ${ac_cv_path_PYTHON+:} false; then : 13422 $as_echo_n "(cached) " >&6 13423else 13424 case $PYTHON in 13425 [\\/]* | ?:[\\/]*) 13426 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 13427 ;; 13428 *) 13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13430for as_dir in $PATH 13431do 13432 IFS=$as_save_IFS 13433 test -z "$as_dir" && as_dir=. 13434 for ac_exec_ext in '' $ac_executable_extensions; do 13435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13436 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 13437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13438 break 2 13439 fi 13440done 13441 done 13442IFS=$as_save_IFS 13443 13444 ;; 13445esac 13446fi 13447PYTHON=$ac_cv_path_PYTHON 13448if test -n "$PYTHON"; then 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 13450$as_echo "$PYTHON" >&6; } 13451else 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13453$as_echo "no" >&6; } 13454fi 13455 13456 13457 if test -z "$PYTHON"; then 13458 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 13459 PYTHON_VERSION="" 13460 fi 13461 13462 # 13463 # Check for a version of Python >= 2.1.0 13464 # 13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 13466$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 13467 ac_supports_python_ver=`$PYTHON -c "import sys; \ 13468 ver = sys.version.split ()[0]; \ 13469 print (ver >= '2.1.0')"` 13470 if test "$ac_supports_python_ver" != "True"; then 13471 if test -z "$PYTHON_NOVERSIONCHECK"; then 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13473$as_echo "no" >&6; } 13474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13476as_fn_error $? " 13477This version of the AC_PYTHON_DEVEL macro 13478doesn't work properly with versions of Python before 134792.1.0. You may need to re-run configure, setting the 13480variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 13481PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 13482Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 13483to something else than an empty string. 13484 13485See \`config.log' for more details" "$LINENO" 5; } 13486 else 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 13488$as_echo "skip at user request" >&6; } 13489 fi 13490 else 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13492$as_echo "yes" >&6; } 13493 fi 13494 13495 # 13496 # if the macro parameter ``version'' is set, honour it 13497 # 13498 if test -n ">= '2.4.0'"; then 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5 13500$as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; } 13501 ac_supports_python_ver=`$PYTHON -c "import sys; \ 13502 ver = sys.version.split ()[0]; \ 13503 print (ver >= '2.4.0')"` 13504 if test "$ac_supports_python_ver" = "True"; then 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13506$as_echo "yes" >&6; } 13507 else 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13509$as_echo "no" >&6; } 13510 as_fn_error $? "this package requires Python >= '2.4.0'. 13511If you have it installed, but it isn't the default Python 13512interpreter in your system path, please pass the PYTHON_VERSION 13513variable to configure. See \`\`configure --help'' for reference. 13514" "$LINENO" 5 13515 PYTHON_VERSION="" 13516 fi 13517 fi 13518 13519 # 13520 # Check if you have distutils, else fail 13521 # 13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 13523$as_echo_n "checking for the distutils Python package... " >&6; } 13524 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 13525 if test -z "$ac_distutils_result"; then 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13527$as_echo "yes" >&6; } 13528 else 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13530$as_echo "no" >&6; } 13531 as_fn_error $? "cannot import Python module \"distutils\". 13532Please check your Python installation. The error was: 13533$ac_distutils_result" "$LINENO" 5 13534 PYTHON_VERSION="" 13535 fi 13536 13537 # 13538 # Check for Python include path 13539 # 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 13541$as_echo_n "checking for Python include path... " >&6; } 13542 if test -z "$PYTHON_CPPFLAGS"; then 13543 python_path=`$PYTHON -c "import distutils.sysconfig; \ 13544 print (distutils.sysconfig.get_python_inc ());"` 13545 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ 13546 print (distutils.sysconfig.get_python_inc (plat_specific=1));"` 13547 if test -n "${python_path}"; then 13548 if test "${plat_python_path}" != "${python_path}"; then 13549 python_path="-I$python_path -I$plat_python_path" 13550 else 13551 python_path="-I$python_path" 13552 fi 13553 fi 13554 PYTHON_CPPFLAGS=$python_path 13555 fi 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 13557$as_echo "$PYTHON_CPPFLAGS" >&6; } 13558 13559 13560 # 13561 # Check for Python library path 13562 # 13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 13564$as_echo_n "checking for Python library path... " >&6; } 13565 if test -z "$PYTHON_LDFLAGS"; then 13566 # (makes two attempts to ensure we've got a version number 13567 # from the interpreter) 13568 ac_python_version=`cat<<EOD | $PYTHON - 13569 13570# join all versioning strings, on some systems 13571# major/minor numbers could be in different list elements 13572from distutils.sysconfig import * 13573e = get_config_var('VERSION') 13574if e is not None: 13575 print(e) 13576EOD` 13577 13578 if test -z "$ac_python_version"; then 13579 if test -n "$PYTHON_VERSION"; then 13580 ac_python_version=$PYTHON_VERSION 13581 else 13582 ac_python_version=`$PYTHON -c "import sys; \ 13583 print (sys.version[:3])"` 13584 fi 13585 fi 13586 13587 # Make the versioning information available to the compiler 13588 13589cat >>confdefs.h <<_ACEOF 13590#define HAVE_PYTHON "$ac_python_version" 13591_ACEOF 13592 13593 13594 # First, the library directory: 13595 ac_python_libdir=`cat<<EOD | $PYTHON - 13596 13597# There should be only one 13598import distutils.sysconfig 13599e = distutils.sysconfig.get_config_var('LIBDIR') 13600if e is not None: 13601 print (e) 13602EOD` 13603 13604 # Now, for the library: 13605 ac_python_library=`cat<<EOD | $PYTHON - 13606 13607import distutils.sysconfig 13608c = distutils.sysconfig.get_config_vars() 13609if 'LDVERSION' in c: 13610 print ('python'+c['LDVERSION']) 13611else: 13612 print ('python'+c['VERSION']) 13613EOD` 13614 13615 # This small piece shamelessly adapted from PostgreSQL python macro; 13616 # credits goes to momjian, I think. I'd like to put the right name 13617 # in the credits, if someone can point me in the right direction... ? 13618 # 13619 if test -n "$ac_python_libdir" -a -n "$ac_python_library" 13620 then 13621 # use the official shared library 13622 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 13623 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library" 13624 else 13625 # old way: use libpython from python_configdir 13626 ac_python_libdir=`$PYTHON -c \ 13627 "from distutils.sysconfig import get_python_lib as f; \ 13628 import os; \ 13629 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 13630 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 13631 fi 13632 13633 if test -z "PYTHON_LDFLAGS"; then 13634 as_fn_error $? " 13635 Cannot determine location of your Python DSO. Please check it was installed with 13636 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand. 13637 " "$LINENO" 5 13638 fi 13639 fi 13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 13641$as_echo "$PYTHON_LDFLAGS" >&6; } 13642 13643 13644 # 13645 # Check for site packages 13646 # 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 13648$as_echo_n "checking for Python site-packages path... " >&6; } 13649 if test -z "$PYTHON_SITE_PKG"; then 13650 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 13651 print (distutils.sysconfig.get_python_lib(1,0));"` 13652 fi 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 13654$as_echo "$PYTHON_SITE_PKG" >&6; } 13655 13656 13657 # 13658 # libraries which must be linked in when embedding 13659 # 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 13661$as_echo_n "checking python extra libraries... " >&6; } 13662 if test -z "$PYTHON_EXTRA_LIBS"; then 13663 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 13664 conf = distutils.sysconfig.get_config_var; \ 13665 print (conf('LIBS'))"` 13666 fi 13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 13668$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 13669 13670 13671 # 13672 # linking flags needed when embedding 13673 # 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 13675$as_echo_n "checking python extra linking flags... " >&6; } 13676 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 13677 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 13678 conf = distutils.sysconfig.get_config_var; \ 13679 print (conf('LINKFORSHARED'))"` 13680 fi 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 13682$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 13683 13684 13685 # 13686 # final check to see if everything compiles alright 13687 # 13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 13689$as_echo_n "checking consistency of all components of python development environment... " >&6; } 13690 # save current global flags 13691 ac_save_LIBS="$LIBS" 13692 ac_save_CPPFLAGS="$CPPFLAGS" 13693 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS" 13694 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 13695 ac_ext=c 13696ac_cpp='$CPP $CPPFLAGS' 13697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13699ac_compiler_gnu=$ac_cv_c_compiler_gnu 13700 13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13702/* end confdefs.h. */ 13703 13704 #include <Python.h> 13705int 13706main () 13707{ 13708Py_Initialize(); 13709 ; 13710 return 0; 13711} 13712 13713_ACEOF 13714if ac_fn_c_try_link "$LINENO"; then : 13715 pythonexists=yes 13716else 13717 pythonexists=no 13718fi 13719rm -f core conftest.err conftest.$ac_objext \ 13720 conftest$ac_exeext conftest.$ac_ext 13721 ac_ext=c 13722ac_cpp='$CPP $CPPFLAGS' 13723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13725ac_compiler_gnu=$ac_cv_c_compiler_gnu 13726 13727 # turn back to default flags 13728 CPPFLAGS="$ac_save_CPPFLAGS" 13729 LIBS="$ac_save_LIBS" 13730 13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 13732$as_echo "$pythonexists" >&6; } 13733 13734 if test ! "x$pythonexists" = "xyes"; then 13735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13737as_fn_error $? " 13738 Could not link test program to Python. Maybe the main Python library has been 13739 installed in some non-standard library path. If so, pass it to configure, 13740 via the LDFLAGS environment variable. 13741 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 13742 ============================================================================ 13743 ERROR! 13744 You probably have to install the development version of the Python package 13745 for your distribution. The exact name of this package varies among them. 13746 ============================================================================ 13747 13748See \`config.log' for more details" "$LINENO" 5; } 13749 PYTHON_VERSION="" 13750 fi 13751 13752 # 13753 # all done! 13754 # 13755 13756 if test ! -z "$ac_python_version"; then 13757 ldns_have_python=yes 13758 fi 13759 13760 # pass additional Python 3 option to SWIG 13761 if test `$PYTHON -c "import sys; \ 13762 ver = sys.version.split()[0]; \ 13763 print(ver >= '3')"` = "True"; then 13764 SWIGPY3="-py3 -DPY3" 13765 13766 fi 13767 13768 # check for SWIG 13769 if test x_$ldns_have_python != x_no; then 13770 # =========================================================================== 13771# http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html 13772# =========================================================================== 13773# 13774# SYNOPSIS 13775# 13776# AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) 13777# 13778# DESCRIPTION 13779# 13780# This macro searches for a SWIG installation on your system. If found, 13781# then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is 13782# found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. 13783# 13784# You can use the optional first argument to check if the version of the 13785# available SWIG is greater than or equal to the value of the argument. It 13786# should have the format: N[.N[.N]] (N is a number between 0 and 999. Only 13787# the first N is mandatory.) If the version argument is given (e.g. 13788# 1.3.17), AX_PKG_SWIG checks that the swig package is this version number 13789# or higher. 13790# 13791# As usual, action-if-found is executed if SWIG is found, otherwise 13792# action-if-not-found is executed. 13793# 13794# In configure.in, use as: 13795# 13796# AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) 13797# AX_SWIG_ENABLE_CXX 13798# AX_SWIG_MULTI_MODULE_SUPPORT 13799# AX_SWIG_PYTHON 13800# 13801# LICENSE 13802# 13803# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de> 13804# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca> 13805# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net> 13806# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za> 13807# Copyright (c) 2011 Murray Cumming <murrayc@openismus.com> 13808# 13809# This program is free software; you can redistribute it and/or modify it 13810# under the terms of the GNU General Public License as published by the 13811# Free Software Foundation; either version 2 of the License, or (at your 13812# option) any later version. 13813# 13814# This program is distributed in the hope that it will be useful, but 13815# WITHOUT ANY WARRANTY; without even the implied warranty of 13816# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 13817# Public License for more details. 13818# 13819# You should have received a copy of the GNU General Public License along 13820# with this program. If not, see <http://www.gnu.org/licenses/>. 13821# 13822# As a special exception, the respective Autoconf Macro's copyright owner 13823# gives unlimited permission to copy, distribute and modify the configure 13824# scripts that are the output of Autoconf when processing the Macro. You 13825# need not follow the terms of the GNU General Public License when using 13826# or distributing such scripts, even though portions of the text of the 13827# Macro appear in them. The GNU General Public License (GPL) does govern 13828# all other use of the material that constitutes the Autoconf Macro. 13829# 13830# This special exception to the GPL applies to versions of the Autoconf 13831# Macro released by the Autoconf Archive. When you make and distribute a 13832# modified version of the Autoconf Macro, you may extend this special 13833# exception to the GPL to apply to your modified version as well. 13834 13835#serial 8 13836 13837 13838 13839 13840 # check for >=SWIG-2.0.4 if Python 3.2 used 13841 if test `$PYTHON -c "import sys; \ 13842 ver = sys.version.split()[0]; \ 13843 print(ver >= '3.2')"` = "True"; then 13844 13845 # Ubuntu has swig 2.0 as /usr/bin/swig2.0 13846 for ac_prog in swig2.0 swig 13847do 13848 # Extract the first word of "$ac_prog", so it can be a program name with args. 13849set dummy $ac_prog; ac_word=$2 13850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13851$as_echo_n "checking for $ac_word... " >&6; } 13852if ${ac_cv_path_SWIG+:} false; then : 13853 $as_echo_n "(cached) " >&6 13854else 13855 case $SWIG in 13856 [\\/]* | ?:[\\/]*) 13857 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 13858 ;; 13859 *) 13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13861for as_dir in $PATH 13862do 13863 IFS=$as_save_IFS 13864 test -z "$as_dir" && as_dir=. 13865 for ac_exec_ext in '' $ac_executable_extensions; do 13866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13867 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13869 break 2 13870 fi 13871done 13872 done 13873IFS=$as_save_IFS 13874 13875 ;; 13876esac 13877fi 13878SWIG=$ac_cv_path_SWIG 13879if test -n "$SWIG"; then 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 13881$as_echo "$SWIG" >&6; } 13882else 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13884$as_echo "no" >&6; } 13885fi 13886 13887 13888 test -n "$SWIG" && break 13889done 13890 13891 if test -z "$SWIG" ; then 13892 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 13893 elif test -n "2.0.4" ; then 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 13895$as_echo_n "checking SWIG version... " >&6; } 13896 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'` 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 13898$as_echo "$swig_version" >&6; } 13899 if test -n "$swig_version" ; then 13900 # Calculate the required version number components 13901 required=2.0.4 13902 required_major=`echo $required | sed 's/[^0-9].*//'` 13903 if test -z "$required_major" ; then 13904 required_major=0 13905 fi 13906 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 13907 required_minor=`echo $required | sed 's/[^0-9].*//'` 13908 if test -z "$required_minor" ; then 13909 required_minor=0 13910 fi 13911 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 13912 required_patch=`echo $required | sed 's/[^0-9].*//'` 13913 if test -z "$required_patch" ; then 13914 required_patch=0 13915 fi 13916 # Calculate the available version number components 13917 available=$swig_version 13918 available_major=`echo $available | sed 's/[^0-9].*//'` 13919 if test -z "$available_major" ; then 13920 available_major=0 13921 fi 13922 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 13923 available_minor=`echo $available | sed 's/[^0-9].*//'` 13924 if test -z "$available_minor" ; then 13925 available_minor=0 13926 fi 13927 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 13928 available_patch=`echo $available | sed 's/[^0-9].*//'` 13929 if test -z "$available_patch" ; then 13930 available_patch=0 13931 fi 13932 # Convert the version tuple into a single number for easier comparison. 13933 # Using base 100 should be safe since SWIG internally uses BCD values 13934 # to encode its version number. 13935 required_swig_vernum=`expr $required_major \* 10000 \ 13936 \+ $required_minor \* 100 \+ $required_patch` 13937 available_swig_vernum=`expr $available_major \* 10000 \ 13938 \+ $available_minor \* 100 \+ $available_patch` 13939 13940 if test $available_swig_vernum -lt $required_swig_vernum; then 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5 13942$as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;} 13943 SWIG='' 13944 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 13945 else 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 13947$as_echo_n "checking for SWIG library... " >&6; } 13948 SWIG_LIB=`$SWIG -swiglib` 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 13950$as_echo "$SWIG_LIB" >&6; } 13951 13952 fi 13953 else 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 13955$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 13956 SWIG='' 13957 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5 13958 fi 13959 fi 13960 13961 13962 else 13963 13964 # Ubuntu has swig 2.0 as /usr/bin/swig2.0 13965 for ac_prog in swig2.0 swig 13966do 13967 # Extract the first word of "$ac_prog", so it can be a program name with args. 13968set dummy $ac_prog; ac_word=$2 13969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13970$as_echo_n "checking for $ac_word... " >&6; } 13971if ${ac_cv_path_SWIG+:} false; then : 13972 $as_echo_n "(cached) " >&6 13973else 13974 case $SWIG in 13975 [\\/]* | ?:[\\/]*) 13976 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 13977 ;; 13978 *) 13979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13980for as_dir in $PATH 13981do 13982 IFS=$as_save_IFS 13983 test -z "$as_dir" && as_dir=. 13984 for ac_exec_ext in '' $ac_executable_extensions; do 13985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13986 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 13987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13988 break 2 13989 fi 13990done 13991 done 13992IFS=$as_save_IFS 13993 13994 ;; 13995esac 13996fi 13997SWIG=$ac_cv_path_SWIG 13998if test -n "$SWIG"; then 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 14000$as_echo "$SWIG" >&6; } 14001else 14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14003$as_echo "no" >&6; } 14004fi 14005 14006 14007 test -n "$SWIG" && break 14008done 14009 14010 if test -z "$SWIG" ; then 14011 : 14012 elif test -n "" ; then 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 14014$as_echo_n "checking SWIG version... " >&6; } 14015 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'` 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 14017$as_echo "$swig_version" >&6; } 14018 if test -n "$swig_version" ; then 14019 # Calculate the required version number components 14020 required= 14021 required_major=`echo $required | sed 's/[^0-9].*//'` 14022 if test -z "$required_major" ; then 14023 required_major=0 14024 fi 14025 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 14026 required_minor=`echo $required | sed 's/[^0-9].*//'` 14027 if test -z "$required_minor" ; then 14028 required_minor=0 14029 fi 14030 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 14031 required_patch=`echo $required | sed 's/[^0-9].*//'` 14032 if test -z "$required_patch" ; then 14033 required_patch=0 14034 fi 14035 # Calculate the available version number components 14036 available=$swig_version 14037 available_major=`echo $available | sed 's/[^0-9].*//'` 14038 if test -z "$available_major" ; then 14039 available_major=0 14040 fi 14041 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 14042 available_minor=`echo $available | sed 's/[^0-9].*//'` 14043 if test -z "$available_minor" ; then 14044 available_minor=0 14045 fi 14046 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 14047 available_patch=`echo $available | sed 's/[^0-9].*//'` 14048 if test -z "$available_patch" ; then 14049 available_patch=0 14050 fi 14051 # Convert the version tuple into a single number for easier comparison. 14052 # Using base 100 should be safe since SWIG internally uses BCD values 14053 # to encode its version number. 14054 required_swig_vernum=`expr $required_major \* 10000 \ 14055 \+ $required_minor \* 100 \+ $required_patch` 14056 available_swig_vernum=`expr $available_major \* 10000 \ 14057 \+ $available_minor \* 100 \+ $available_patch` 14058 14059 if test $available_swig_vernum -lt $required_swig_vernum; then 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5 14061$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;} 14062 SWIG='' 14063 14064 else 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 14066$as_echo_n "checking for SWIG library... " >&6; } 14067 SWIG_LIB=`$SWIG -swiglib` 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 14069$as_echo "$SWIG_LIB" >&6; } 14070 14071 fi 14072 else 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 14074$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 14075 SWIG='' 14076 14077 fi 14078 fi 14079 14080 14081 fi 14082 14083 if test ! -x "$SWIG"; then 14084 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5 14085 else 14086 14087$as_echo "#define HAVE_SWIG 1" >>confdefs.h 14088 14089 PYLDNS="pyldns" 14090 14091 swig="$SWIG" 14092 14093 ldns_with_pyldns=yes 14094 fi 14095 else 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5 14097$as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # ' 14098 fi 14099 14100 # xtra cflags for pyldns 14101 if test x_$ldns_have_python != x_no; then 14102 14103 14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5 14105$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; } 14106cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'` 14107if eval \${cv_prog_cc_flag_$cache+:} false; then : 14108 $as_echo_n "(cached) " >&6 14109else 14110 14111echo 'void f(void){}' >conftest.c 14112if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then 14113eval "cv_prog_cc_flag_$cache=yes" 14114else 14115eval "cv_prog_cc_flag_$cache=no" 14116fi 14117rm -f conftest conftest.o conftest.c 14118 14119fi 14120 14121if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 14122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14123$as_echo "yes" >&6; } 14124: 14125PYTHON_X_CFLAGS="-fno-strict-aliasing" 14126else 14127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14128$as_echo "no" >&6; } 14129: 14130 14131fi 14132 14133 14134 14135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5 14136$as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; } 14137cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'` 14138if eval \${cv_prog_cc_flag_$cache+:} false; then : 14139 $as_echo_n "(cached) " >&6 14140else 14141 14142echo 'void f(void){}' >conftest.c 14143if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then 14144eval "cv_prog_cc_flag_$cache=yes" 14145else 14146eval "cv_prog_cc_flag_$cache=no" 14147fi 14148rm -f conftest conftest.o conftest.c 14149 14150fi 14151 14152if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 14153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14154$as_echo "yes" >&6; } 14155: 14156PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS" 14157else 14158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14159$as_echo "no" >&6; } 14160: 14161 14162fi 14163 14164 14165 14166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5 14167$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; } 14168cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'` 14169if eval \${cv_prog_cc_flag_$cache+:} false; then : 14170 $as_echo_n "(cached) " >&6 14171else 14172 14173echo 'void f(void){}' >conftest.c 14174if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then 14175eval "cv_prog_cc_flag_$cache=yes" 14176else 14177eval "cv_prog_cc_flag_$cache=no" 14178fi 14179rm -f conftest conftest.o conftest.c 14180 14181fi 14182 14183if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 14184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14185$as_echo "yes" >&6; } 14186: 14187PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS" 14188else 14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14190$as_echo "no" >&6; } 14191: 14192 14193fi 14194 14195 14196 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5 14198$as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; } 14199cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'` 14200if eval \${cv_prog_cc_flag_$cache+:} false; then : 14201 $as_echo_n "(cached) " >&6 14202else 14203 14204echo 'void f(void){}' >conftest.c 14205if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then 14206eval "cv_prog_cc_flag_$cache=yes" 14207else 14208eval "cv_prog_cc_flag_$cache=no" 14209fi 14210rm -f conftest conftest.o conftest.c 14211 14212fi 14213 14214if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14216$as_echo "yes" >&6; } 14217: 14218PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS" 14219else 14220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14221$as_echo "no" >&6; } 14222: 14223 14224fi 14225 14226 fi 14227fi 14228 14229 14230# Check for pyldnsx 14231 14232# Check whether --with-pyldnsx was given. 14233if test "${with_pyldnsx+set}" = set; then : 14234 withval=$with_pyldnsx; 14235else 14236 withval="with_pyldns" 14237fi 14238 14239if test x_$withval != x_no; then 14240 if test x_$ldns_with_pyldns != x_no; then 14241 PYLDNSX="pyldnsx" 14242 14243 ldns_with_pyldnsx=yes 14244 else 14245 if test x_$withval != x_with_pyldns; then 14246 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5 14247 fi 14248 fi 14249fi 14250 14251if test x_$ldns_with_pyldns != x_no; then 14252 PYLDNSINST="install-pyldns" 14253 PYLDNSUNINST="uninstall-pyldns" 14254 14255else 14256 PYLDNSINST="" 14257 PYLDNSUNINST="" 14258 14259fi 14260if test x_$ldns_with_pyldnsx != x_no; then 14261 PYLDNSXINST="install-pyldnsx" 14262 PYLDNSXUNINST="uninstall-pyldnsx" 14263 14264else 14265 PYLDNSXINST="" 14266 PYLDNSXUNINST="" 14267 14268fi 14269 14270# check for perl 14271ldns_with_p5_dns_ldns=no 14272 14273# Check whether --with-p5-dns-ldns was given. 14274if test "${with_p5_dns_ldns+set}" = set; then : 14275 withval=$with_p5_dns_ldns; 14276else 14277 withval="no" 14278fi 14279 14280ldns_have_perl=no 14281if test x_$withval != x_no; then 14282 # Extract the first word of "perl", so it can be a program name with args. 14283set dummy perl; ac_word=$2 14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14285$as_echo_n "checking for $ac_word... " >&6; } 14286if ${ac_cv_path_PERL+:} false; then : 14287 $as_echo_n "(cached) " >&6 14288else 14289 case $PERL in 14290 [\\/]* | ?:[\\/]*) 14291 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 14292 ;; 14293 *) 14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14295for as_dir in $PATH 14296do 14297 IFS=$as_save_IFS 14298 test -z "$as_dir" && as_dir=. 14299 for ac_exec_ext in '' $ac_executable_extensions; do 14300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14301 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 14302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14303 break 2 14304 fi 14305done 14306 done 14307IFS=$as_save_IFS 14308 14309 ;; 14310esac 14311fi 14312PERL=$ac_cv_path_PERL 14313if test -n "$PERL"; then 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 14315$as_echo "$PERL" >&6; } 14316else 14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14318$as_echo "no" >&6; } 14319fi 14320 14321 14322 if test -z "$PERL"; then 14323 as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5 14324 fi 14325 P5_DNS_LDNS="p5-dns-ldns" 14326 TEST_P5_DNS_LDNS="test-p5-dns-ldns" 14327 INSTALL_P5_DNS_LDNS="install-p5-dns-ldns" 14328 UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns" 14329 CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns" 14330 14331else 14332 P5_DNS_LDNS="" 14333 TEST_P5_DNS_LDNS="" 14334 INSTALL_P5_DNS_LDNS="" 14335 UNINSTALL_P5_DNS_LDNS="" 14336 CLEAN_P5_DNS_LDNS="" 14337 14338fi 14339 14340# Use libtool 14341 14342# skip these tests, we do not need them. 14343 14344 14345 14346 14347 14348 14349 14350 14351# always use ./libtool unless override from commandline (libtool=mylibtool) 14352if test -z "$libtool"; then 14353 libtool="./libtool" 14354fi 14355 14356# avoid libtool max commandline length test on systems that fork slowly. 14357 14358if echo "$host_os" | grep "sunos4" >/dev/null; then 14359 lt_cv_sys_max_cmd_len=32750; 14360fi 14361if test -n "$ac_tool_prefix"; then 14362 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 14363set dummy ${ac_tool_prefix}ar; ac_word=$2 14364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14365$as_echo_n "checking for $ac_word... " >&6; } 14366if ${ac_cv_path_AR+:} false; then : 14367 $as_echo_n "(cached) " >&6 14368else 14369 case $AR in 14370 [\\/]* | ?:[\\/]*) 14371 ac_cv_path_AR="$AR" # Let the user override the test with a path. 14372 ;; 14373 *) 14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14375for as_dir in $PATH 14376do 14377 IFS=$as_save_IFS 14378 test -z "$as_dir" && as_dir=. 14379 for ac_exec_ext in '' $ac_executable_extensions; do 14380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14381 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 14382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14383 break 2 14384 fi 14385done 14386 done 14387IFS=$as_save_IFS 14388 14389 ;; 14390esac 14391fi 14392AR=$ac_cv_path_AR 14393if test -n "$AR"; then 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 14395$as_echo "$AR" >&6; } 14396else 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14398$as_echo "no" >&6; } 14399fi 14400 14401 14402fi 14403if test -z "$ac_cv_path_AR"; then 14404 ac_pt_AR=$AR 14405 # Extract the first word of "ar", so it can be a program name with args. 14406set dummy ar; ac_word=$2 14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14408$as_echo_n "checking for $ac_word... " >&6; } 14409if ${ac_cv_path_ac_pt_AR+:} false; then : 14410 $as_echo_n "(cached) " >&6 14411else 14412 case $ac_pt_AR in 14413 [\\/]* | ?:[\\/]*) 14414 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 14415 ;; 14416 *) 14417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14418for as_dir in $PATH 14419do 14420 IFS=$as_save_IFS 14421 test -z "$as_dir" && as_dir=. 14422 for ac_exec_ext in '' $ac_executable_extensions; do 14423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14424 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 14425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14426 break 2 14427 fi 14428done 14429 done 14430IFS=$as_save_IFS 14431 14432 ;; 14433esac 14434fi 14435ac_pt_AR=$ac_cv_path_ac_pt_AR 14436if test -n "$ac_pt_AR"; then 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 14438$as_echo "$ac_pt_AR" >&6; } 14439else 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14441$as_echo "no" >&6; } 14442fi 14443 14444 if test "x$ac_pt_AR" = x; then 14445 AR="false" 14446 else 14447 case $cross_compiling:$ac_tool_warned in 14448yes:) 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14451ac_tool_warned=yes ;; 14452esac 14453 AR=$ac_pt_AR 14454 fi 14455else 14456 AR="$ac_cv_path_AR" 14457fi 14458 14459if test $AR = false; then 14460 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 14461fi 14462 14463 14464 14465 14466 14467 14468tmp_CPPFLAGS=$CPPFLAGS 14469tmp_LDFLAGS=$LDFLAGS 14470tmp_LIBS=$LIBS 14471 14472 14473 14474# Check whether --with-ssl was given. 14475if test "${with_ssl+set}" = set; then : 14476 withval=$with_ssl; 14477 14478else 14479 14480 withval="yes" 14481 14482fi 14483 14484 14485 withval=$withval 14486 if test x_$withval != x_no; then 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 14488$as_echo_n "checking for SSL... " >&6; } 14489 if test x_$withval = x_ -o x_$withval = x_yes; then 14490 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 14491 fi 14492 for dir in $withval; do 14493 ssldir="$dir" 14494 if test -f "$dir/include/openssl/ssl.h"; then 14495 found_ssl="yes" 14496 14497cat >>confdefs.h <<_ACEOF 14498#define HAVE_SSL /**/ 14499_ACEOF 14500 14501 if test "$ssldir" != "/usr"; then 14502 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 14503 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 14504 fi 14505 break; 14506 fi 14507 done 14508 if test x_$found_ssl != x_yes; then 14509 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 14510 else 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 14512$as_echo "found in $ssldir" >&6; } 14513 HAVE_SSL=yes 14514 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 14515 LDFLAGS="$LDFLAGS -L$ssldir/lib" 14516 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 14517 14518 if test "x$enable_rpath" = xyes; then 14519 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 14520 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 14521 fi 14522 fi 14523 14524 fi 14525 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 14527$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 14528 LIBS="$LIBS -lcrypto" 14529 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14531/* end confdefs.h. */ 14532 14533int 14534main () 14535{ 14536 14537 int HMAC_CTX_init(void); 14538 (void)HMAC_CTX_init(); 14539 14540 ; 14541 return 0; 14542} 14543_ACEOF 14544if ac_fn_c_try_link "$LINENO"; then : 14545 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14547$as_echo "yes" >&6; } 14548 14549$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14550 14551 14552else 14553 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14555$as_echo "no" >&6; } 14556 # check if -lwsock32 or -lgdi32 are needed. 14557 BAKLIBS="$LIBS" 14558 BAKSSLLIBS="$LIBSSL_LIBS" 14559 LIBS="$LIBS -lgdi32" 14560 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 14562$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14564/* end confdefs.h. */ 14565 14566int 14567main () 14568{ 14569 14570 int HMAC_CTX_init(void); 14571 (void)HMAC_CTX_init(); 14572 14573 ; 14574 return 0; 14575} 14576_ACEOF 14577if ac_fn_c_try_link "$LINENO"; then : 14578 14579 14580$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14581 14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14583$as_echo "yes" >&6; } 14584 14585else 14586 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14588$as_echo "no" >&6; } 14589 LIBS="$BAKLIBS" 14590 LIBSSL_LIBS="$BAKSSLLIBS" 14591 LIBS="$LIBS -ldl" 14592 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 14594$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14596/* end confdefs.h. */ 14597 14598int 14599main () 14600{ 14601 14602 int HMAC_CTX_init(void); 14603 (void)HMAC_CTX_init(); 14604 14605 ; 14606 return 0; 14607} 14608_ACEOF 14609if ac_fn_c_try_link "$LINENO"; then : 14610 14611 14612$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 14613 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14615$as_echo "yes" >&6; } 14616 14617else 14618 14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14620$as_echo "no" >&6; } 14621 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 14622 14623fi 14624rm -f core conftest.err conftest.$ac_objext \ 14625 conftest$ac_exeext conftest.$ac_ext 14626 14627fi 14628rm -f core conftest.err conftest.$ac_objext \ 14629 conftest$ac_exeext conftest.$ac_ext 14630 14631fi 14632rm -f core conftest.err conftest.$ac_objext \ 14633 conftest$ac_exeext conftest.$ac_ext 14634 fi 14635 14636 14637 # openssl engine functionality needs dlopen(). 14638 BAKLIBS="$LIBS" 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 14640$as_echo_n "checking for library containing dlopen... " >&6; } 14641if ${ac_cv_search_dlopen+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 ac_func_search_save_LIBS=$LIBS 14645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14646/* end confdefs.h. */ 14647 14648/* Override any GCC internal prototype to avoid an error. 14649 Use char because int might match the return type of a GCC 14650 builtin and then its argument prototype would still apply. */ 14651#ifdef __cplusplus 14652extern "C" 14653#endif 14654char dlopen (); 14655int 14656main () 14657{ 14658return dlopen (); 14659 ; 14660 return 0; 14661} 14662_ACEOF 14663for ac_lib in '' dl; do 14664 if test -z "$ac_lib"; then 14665 ac_res="none required" 14666 else 14667 ac_res=-l$ac_lib 14668 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14669 fi 14670 if ac_fn_c_try_link "$LINENO"; then : 14671 ac_cv_search_dlopen=$ac_res 14672fi 14673rm -f core conftest.err conftest.$ac_objext \ 14674 conftest$ac_exeext 14675 if ${ac_cv_search_dlopen+:} false; then : 14676 break 14677fi 14678done 14679if ${ac_cv_search_dlopen+:} false; then : 14680 14681else 14682 ac_cv_search_dlopen=no 14683fi 14684rm conftest.$ac_ext 14685LIBS=$ac_func_search_save_LIBS 14686fi 14687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14688$as_echo "$ac_cv_search_dlopen" >&6; } 14689ac_res=$ac_cv_search_dlopen 14690if test "$ac_res" != no; then : 14691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14692 14693fi 14694 14695 if test "$LIBS" != "$BAKLIBS"; then 14696 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 14697 fi 14698 fi 14699for ac_header in openssl/ssl.h 14700do : 14701 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 14702" 14703if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 14704 cat >>confdefs.h <<_ACEOF 14705#define HAVE_OPENSSL_SSL_H 1 14706_ACEOF 14707 14708fi 14709 14710done 14711 14712for ac_header in openssl/err.h 14713do : 14714 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 14715" 14716if test "x$ac_cv_header_openssl_err_h" = xyes; then : 14717 cat >>confdefs.h <<_ACEOF 14718#define HAVE_OPENSSL_ERR_H 1 14719_ACEOF 14720 14721fi 14722 14723done 14724 14725for ac_header in openssl/rand.h 14726do : 14727 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 14728" 14729if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 14730 cat >>confdefs.h <<_ACEOF 14731#define HAVE_OPENSSL_RAND_H 1 14732_ACEOF 14733 14734fi 14735 14736done 14737 14738 14739 14740 14741for ac_func in EVP_sha256 14742do : 14743 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256" 14744if test "x$ac_cv_func_EVP_sha256" = xyes; then : 14745 cat >>confdefs.h <<_ACEOF 14746#define HAVE_EVP_SHA256 1 14747_ACEOF 14748 14749fi 14750done 14751 14752 14753# for macosx, see if glibtool exists and use that 14754# BSD's need to know the version... 14755#AC_CHECK_PROG(glibtool, glibtool, [glibtool], ) 14756#AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool]) 14757 14758# Check whether --enable-sha2 was given. 14759if test "${enable_sha2+set}" = set; then : 14760 enableval=$enable_sha2; 14761fi 14762 14763case "$enable_sha2" in 14764 no) 14765 ;; 14766 yes|*) 14767 if test "x$HAVE_SSL" != "xyes"; then 14768 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5 14769 fi 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5 14771$as_echo_n "checking for SHA256 and SHA512... " >&6; } 14772 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init" 14773if test "x$ac_cv_func_SHA256_Init" = xyes; then : 14774 14775else 14776 14777 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5 14778 14779fi 14780 14781 14782cat >>confdefs.h <<_ACEOF 14783#define USE_SHA2 1 14784_ACEOF 14785 14786 ;; 14787esac 14788 14789# Check whether --enable-gost was given. 14790if test "${enable_gost+set}" = set; then : 14791 enableval=$enable_gost; 14792fi 14793 14794case "$enable_gost" in 14795 no) 14796 ;; 14797 *) if test "x$HAVE_SSL" != "xyes"; then 14798 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5 14799 fi 14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5 14801$as_echo_n "checking for GOST... " >&6; } 14802 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 14803if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 14804 14805else 14806 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5 14807fi 14808 14809 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 14810if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 14811 14812else 14813 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5 14814fi 14815 14816 14817cat >>confdefs.h <<_ACEOF 14818#define USE_GOST 1 14819_ACEOF 14820 14821 ;; 14822esac 14823 14824# Check whether --enable-ecdsa was given. 14825if test "${enable_ecdsa+set}" = set; then : 14826 enableval=$enable_ecdsa; 14827fi 14828 14829case "$enable_ecdsa" in 14830 no) 14831 ;; 14832 *) if test "x$HAVE_SSL" != "xyes"; then 14833 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5 14834 fi 14835 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 14836if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 14837 14838else 14839 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14840fi 14841 14842 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 14843if test "x$ac_cv_func_SHA384_Init" = xyes; then : 14844 14845else 14846 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14847fi 14848 14849 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 14850#include <openssl/evp.h> 14851 14852" 14853if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 14854 ac_have_decl=1 14855else 14856 ac_have_decl=0 14857fi 14858 14859cat >>confdefs.h <<_ACEOF 14860#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 14861_ACEOF 14862if test $ac_have_decl = 1; then : 14863 14864else 14865 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14866fi 14867ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 14868#include <openssl/evp.h> 14869 14870" 14871if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 14872 ac_have_decl=1 14873else 14874 ac_have_decl=0 14875fi 14876 14877cat >>confdefs.h <<_ACEOF 14878#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 14879_ACEOF 14880if test $ac_have_decl = 1; then : 14881 14882else 14883 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5 14884fi 14885 14886 # we now know we have ECDSA and the required curves. 14887 14888cat >>confdefs.h <<_ACEOF 14889#define USE_ECDSA 1 14890_ACEOF 14891 14892 ;; 14893esac 14894 14895# Check whether --enable-dane was given. 14896if test "${enable_dane+set}" = set; then : 14897 enableval=$enable_dane; 14898fi 14899 14900case "$enable_dane" in 14901 no) 14902 ldns_build_config_use_dane=0 14903 14904 ;; 14905 *) if test "x$HAVE_SSL" != "xyes"; then 14906 as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5 14907 fi 14908 ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca" 14909if test "x$ac_cv_func_X509_check_ca" = xyes; then : 14910 14911else 14912 as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5 14913fi 14914 14915 14916cat >>confdefs.h <<_ACEOF 14917#define USE_DANE 1 14918_ACEOF 14919 14920 ldns_build_config_use_dane=1 14921 14922 ;; 14923esac 14924 14925# Check whether --enable-rrtype-ninfo was given. 14926if test "${enable_rrtype_ninfo+set}" = set; then : 14927 enableval=$enable_rrtype_ninfo; 14928fi 14929 14930case "$enable_rrtype_ninfo" in 14931 yes) 14932 14933cat >>confdefs.h <<_ACEOF 14934#define RRTYPE_NINFO /**/ 14935_ACEOF 14936 14937 ;; 14938 no|*) 14939 ;; 14940esac 14941# Check whether --enable-rrtype-rkey was given. 14942if test "${enable_rrtype_rkey+set}" = set; then : 14943 enableval=$enable_rrtype_rkey; 14944fi 14945 14946case "$enable_rrtype_rkey" in 14947 yes) 14948 14949cat >>confdefs.h <<_ACEOF 14950#define RRTYPE_RKEY /**/ 14951_ACEOF 14952 14953 ;; 14954 no|*) 14955 ;; 14956esac 14957# Check whether --enable-rrtype-cds was given. 14958if test "${enable_rrtype_cds+set}" = set; then : 14959 enableval=$enable_rrtype_cds; 14960fi 14961 14962case "$enable_rrtype_cds" in 14963 yes) 14964 14965cat >>confdefs.h <<_ACEOF 14966#define RRTYPE_CDS /**/ 14967_ACEOF 14968 14969 ;; 14970 no|*) 14971 ;; 14972esac 14973# Check whether --enable-rrtype-uri was given. 14974if test "${enable_rrtype_uri+set}" = set; then : 14975 enableval=$enable_rrtype_uri; 14976fi 14977 14978case "$enable_rrtype_uri" in 14979 yes) 14980 14981cat >>confdefs.h <<_ACEOF 14982#define RRTYPE_URI /**/ 14983_ACEOF 14984 14985 ;; 14986 no|*) 14987 ;; 14988esac 14989# Check whether --enable-rrtype-ta was given. 14990if test "${enable_rrtype_ta+set}" = set; then : 14991 enableval=$enable_rrtype_ta; 14992fi 14993 14994case "$enable_rrtype_ta" in 14995 yes) 14996 14997cat >>confdefs.h <<_ACEOF 14998#define RRTYPE_TA /**/ 14999_ACEOF 15000 15001 ;; 15002 no|*) 15003 ;; 15004esac 15005 15006 15007 15008 15009if test "x$HAVE_SSL" = "xyes"; then 15010LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS" 15011 15012fi 15013CPPFLAGS=$tmp_CPPFLAGS 15014LDFLAGS=$tmp_LDFLAGS 15015LIBS=$tmp_LIBS 15016 15017 15018# add option to disable the evil rpath 15019 15020# Check whether --enable-rpath was given. 15021if test "${enable_rpath+set}" = set; then : 15022 enableval=$enable_rpath; enable_rpath=$enableval 15023else 15024 enable_rpath=yes 15025fi 15026 15027if test "x$enable_rpath" = xno; then 15028 ac_config_commands="$ac_config_commands disable-rpath" 15029 15030fi 15031 15032 15033#AC_RUN_IFELSE([AC_LANG_SOURCE( 15034#[ 15035#int main() 15036#{ 15037#short one = 1; 15038#char *cp = (char*)&one; 15039#if ( *cp == 0 ) 15040#return(0); 15041#else 15042#return(1); 15043#} 15044#])], [],[ 15045#AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian]) 15046#],[]) 15047 15048# should define WORDS_BIGENDIAN if the system is big-endian 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15050$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15051if ${ac_cv_c_bigendian+:} false; then : 15052 $as_echo_n "(cached) " >&6 15053else 15054 ac_cv_c_bigendian=unknown 15055 # See if we're dealing with a universal compiler. 15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15057/* end confdefs.h. */ 15058#ifndef __APPLE_CC__ 15059 not a universal capable compiler 15060 #endif 15061 typedef int dummy; 15062 15063_ACEOF 15064if ac_fn_c_try_compile "$LINENO"; then : 15065 15066 # Check for potential -arch flags. It is not universal unless 15067 # there are at least two -arch flags with different values. 15068 ac_arch= 15069 ac_prev= 15070 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15071 if test -n "$ac_prev"; then 15072 case $ac_word in 15073 i?86 | x86_64 | ppc | ppc64) 15074 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15075 ac_arch=$ac_word 15076 else 15077 ac_cv_c_bigendian=universal 15078 break 15079 fi 15080 ;; 15081 esac 15082 ac_prev= 15083 elif test "x$ac_word" = "x-arch"; then 15084 ac_prev=arch 15085 fi 15086 done 15087fi 15088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15089 if test $ac_cv_c_bigendian = unknown; then 15090 # See if sys/param.h defines the BYTE_ORDER macro. 15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15092/* end confdefs.h. */ 15093#include <sys/types.h> 15094 #include <sys/param.h> 15095 15096int 15097main () 15098{ 15099#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15100 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15101 && LITTLE_ENDIAN) 15102 bogus endian macros 15103 #endif 15104 15105 ; 15106 return 0; 15107} 15108_ACEOF 15109if ac_fn_c_try_compile "$LINENO"; then : 15110 # It does; now see whether it defined to BIG_ENDIAN or not. 15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15112/* end confdefs.h. */ 15113#include <sys/types.h> 15114 #include <sys/param.h> 15115 15116int 15117main () 15118{ 15119#if BYTE_ORDER != BIG_ENDIAN 15120 not big endian 15121 #endif 15122 15123 ; 15124 return 0; 15125} 15126_ACEOF 15127if ac_fn_c_try_compile "$LINENO"; then : 15128 ac_cv_c_bigendian=yes 15129else 15130 ac_cv_c_bigendian=no 15131fi 15132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15133fi 15134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15135 fi 15136 if test $ac_cv_c_bigendian = unknown; then 15137 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140#include <limits.h> 15141 15142int 15143main () 15144{ 15145#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15146 bogus endian macros 15147 #endif 15148 15149 ; 15150 return 0; 15151} 15152_ACEOF 15153if ac_fn_c_try_compile "$LINENO"; then : 15154 # It does; now see whether it defined to _BIG_ENDIAN or not. 15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15156/* end confdefs.h. */ 15157#include <limits.h> 15158 15159int 15160main () 15161{ 15162#ifndef _BIG_ENDIAN 15163 not big endian 15164 #endif 15165 15166 ; 15167 return 0; 15168} 15169_ACEOF 15170if ac_fn_c_try_compile "$LINENO"; then : 15171 ac_cv_c_bigendian=yes 15172else 15173 ac_cv_c_bigendian=no 15174fi 15175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15176fi 15177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15178 fi 15179 if test $ac_cv_c_bigendian = unknown; then 15180 # Compile a test program. 15181 if test "$cross_compiling" = yes; then : 15182 # Try to guess by grepping values from an object file. 15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15184/* end confdefs.h. */ 15185short int ascii_mm[] = 15186 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15187 short int ascii_ii[] = 15188 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15189 int use_ascii (int i) { 15190 return ascii_mm[i] + ascii_ii[i]; 15191 } 15192 short int ebcdic_ii[] = 15193 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15194 short int ebcdic_mm[] = 15195 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15196 int use_ebcdic (int i) { 15197 return ebcdic_mm[i] + ebcdic_ii[i]; 15198 } 15199 extern int foo; 15200 15201int 15202main () 15203{ 15204return use_ascii (foo) == use_ebcdic (foo); 15205 ; 15206 return 0; 15207} 15208_ACEOF 15209if ac_fn_c_try_compile "$LINENO"; then : 15210 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15211 ac_cv_c_bigendian=yes 15212 fi 15213 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15214 if test "$ac_cv_c_bigendian" = unknown; then 15215 ac_cv_c_bigendian=no 15216 else 15217 # finding both strings is unlikely to happen, but who knows? 15218 ac_cv_c_bigendian=unknown 15219 fi 15220 fi 15221fi 15222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15223else 15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15225/* end confdefs.h. */ 15226$ac_includes_default 15227int 15228main () 15229{ 15230 15231 /* Are we little or big endian? From Harbison&Steele. */ 15232 union 15233 { 15234 long int l; 15235 char c[sizeof (long int)]; 15236 } u; 15237 u.l = 1; 15238 return u.c[sizeof (long int) - 1] == 1; 15239 15240 ; 15241 return 0; 15242} 15243_ACEOF 15244if ac_fn_c_try_run "$LINENO"; then : 15245 ac_cv_c_bigendian=no 15246else 15247 ac_cv_c_bigendian=yes 15248fi 15249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15250 conftest.$ac_objext conftest.beam conftest.$ac_ext 15251fi 15252 15253 fi 15254fi 15255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15256$as_echo "$ac_cv_c_bigendian" >&6; } 15257 case $ac_cv_c_bigendian in #( 15258 yes) 15259 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15260;; #( 15261 no) 15262 ;; #( 15263 universal) 15264 15265$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15266 15267 ;; #( 15268 *) 15269 as_fn_error $? "unknown endianness 15270 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15271 esac 15272 15273 15274# Checks for header files. 15275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15276$as_echo_n "checking for ANSI C header files... " >&6; } 15277if ${ac_cv_header_stdc+:} false; then : 15278 $as_echo_n "(cached) " >&6 15279else 15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15281/* end confdefs.h. */ 15282#include <stdlib.h> 15283#include <stdarg.h> 15284#include <string.h> 15285#include <float.h> 15286 15287int 15288main () 15289{ 15290 15291 ; 15292 return 0; 15293} 15294_ACEOF 15295if ac_fn_c_try_compile "$LINENO"; then : 15296 ac_cv_header_stdc=yes 15297else 15298 ac_cv_header_stdc=no 15299fi 15300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15301 15302if test $ac_cv_header_stdc = yes; then 15303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15305/* end confdefs.h. */ 15306#include <string.h> 15307 15308_ACEOF 15309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15310 $EGREP "memchr" >/dev/null 2>&1; then : 15311 15312else 15313 ac_cv_header_stdc=no 15314fi 15315rm -f conftest* 15316 15317fi 15318 15319if test $ac_cv_header_stdc = yes; then 15320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15322/* end confdefs.h. */ 15323#include <stdlib.h> 15324 15325_ACEOF 15326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15327 $EGREP "free" >/dev/null 2>&1; then : 15328 15329else 15330 ac_cv_header_stdc=no 15331fi 15332rm -f conftest* 15333 15334fi 15335 15336if test $ac_cv_header_stdc = yes; then 15337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15338 if test "$cross_compiling" = yes; then : 15339 : 15340else 15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15342/* end confdefs.h. */ 15343#include <ctype.h> 15344#include <stdlib.h> 15345#if ((' ' & 0x0FF) == 0x020) 15346# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15347# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15348#else 15349# define ISLOWER(c) \ 15350 (('a' <= (c) && (c) <= 'i') \ 15351 || ('j' <= (c) && (c) <= 'r') \ 15352 || ('s' <= (c) && (c) <= 'z')) 15353# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15354#endif 15355 15356#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15357int 15358main () 15359{ 15360 int i; 15361 for (i = 0; i < 256; i++) 15362 if (XOR (islower (i), ISLOWER (i)) 15363 || toupper (i) != TOUPPER (i)) 15364 return 2; 15365 return 0; 15366} 15367_ACEOF 15368if ac_fn_c_try_run "$LINENO"; then : 15369 15370else 15371 ac_cv_header_stdc=no 15372fi 15373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15374 conftest.$ac_objext conftest.beam conftest.$ac_ext 15375fi 15376 15377fi 15378fi 15379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15380$as_echo "$ac_cv_header_stdc" >&6; } 15381if test $ac_cv_header_stdc = yes; then 15382 15383$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15384 15385fi 15386 15387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 15388$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 15389if ${ac_cv_header_stdbool_h+:} false; then : 15390 $as_echo_n "(cached) " >&6 15391else 15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15393/* end confdefs.h. */ 15394 15395 #include <stdbool.h> 15396 #ifndef bool 15397 "error: bool is not defined" 15398 #endif 15399 #ifndef false 15400 "error: false is not defined" 15401 #endif 15402 #if false 15403 "error: false is not 0" 15404 #endif 15405 #ifndef true 15406 "error: true is not defined" 15407 #endif 15408 #if true != 1 15409 "error: true is not 1" 15410 #endif 15411 #ifndef __bool_true_false_are_defined 15412 "error: __bool_true_false_are_defined is not defined" 15413 #endif 15414 15415 struct s { _Bool s: 1; _Bool t; } s; 15416 15417 char a[true == 1 ? 1 : -1]; 15418 char b[false == 0 ? 1 : -1]; 15419 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 15420 char d[(bool) 0.5 == true ? 1 : -1]; 15421 /* See body of main program for 'e'. */ 15422 char f[(_Bool) 0.0 == false ? 1 : -1]; 15423 char g[true]; 15424 char h[sizeof (_Bool)]; 15425 char i[sizeof s.t]; 15426 enum { j = false, k = true, l = false * true, m = true * 256 }; 15427 /* The following fails for 15428 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 15429 _Bool n[m]; 15430 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 15431 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 15432 /* Catch a bug in an HP-UX C compiler. See 15433 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 15434 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 15435 */ 15436 _Bool q = true; 15437 _Bool *pq = &q; 15438 15439int 15440main () 15441{ 15442 15443 bool e = &s; 15444 *pq |= q; 15445 *pq |= ! q; 15446 /* Refer to every declared value, to avoid compiler optimizations. */ 15447 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 15448 + !m + !n + !o + !p + !q + !pq); 15449 15450 ; 15451 return 0; 15452} 15453_ACEOF 15454if ac_fn_c_try_compile "$LINENO"; then : 15455 ac_cv_header_stdbool_h=yes 15456else 15457 ac_cv_header_stdbool_h=no 15458fi 15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15460fi 15461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 15462$as_echo "$ac_cv_header_stdbool_h" >&6; } 15463 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 15464if test "x$ac_cv_type__Bool" = xyes; then : 15465 15466cat >>confdefs.h <<_ACEOF 15467#define HAVE__BOOL 1 15468_ACEOF 15469 15470 15471fi 15472 15473 15474if test $ac_cv_header_stdbool_h = yes; then 15475 15476$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 15477 15478fi 15479 15480#AC_HEADER_SYS_WAIT 15481#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h]) 15482# do the very minimum - we can always extend this 15483for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h 15484do : 15485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15486ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15487" 15488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15489 cat >>confdefs.h <<_ACEOF 15490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15491_ACEOF 15492 15493fi 15494 15495done 15496 15497for ac_header in sys/param.h sys/mount.h 15498do : 15499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15500ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15501 15502 #if HAVE_SYS_PARAM_H 15503 # include <sys/param.h> 15504 #endif 15505 15506 15507" 15508if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15509 cat >>confdefs.h <<_ACEOF 15510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15511_ACEOF 15512 15513fi 15514 15515done 15516 15517ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 15518 15519 #if HAVE_SYS_PARAM_H 15520 # include <sys/param.h> 15521 #endif 15522 15523 15524" 15525if test "x$ac_cv_header_sys_socket_h" = xyes; then : 15526 15527include_sys_socket_h='#include <sys/socket.h>' 15528 15529$as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 15530 15531 15532else 15533 15534include_sys_socket_h='' 15535 15536fi 15537 15538 15539 15540ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default 15541 15542" 15543if test "x$ac_cv_header_inttypes_h" = xyes; then : 15544 15545include_inttypes_h='#include <inttypes.h>' 15546 15547$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h 15548 15549ldns_build_config_have_inttypes_h=1 15550 15551 15552else 15553 15554include_inttypes_h='' 15555ldns_build_config_have_inttypes_h=0 15556 15557 15558fi 15559 15560 15561 15562ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default 15563 15564" 15565if test "x$ac_cv_header_sys_types_h" = xyes; then : 15566 15567include_systypes_h='#include <sys/types.h>' 15568 15569$as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 15570 15571 15572else 15573 15574include_systypes_h='' 15575 15576fi 15577 15578 15579 15580ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 15581 15582" 15583if test "x$ac_cv_header_unistd_h" = xyes; then : 15584 15585include_unistd_h='#include <unistd.h>' 15586 15587$as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h 15588 15589 15590else 15591 15592include_unistd_h='' 15593 15594fi 15595 15596 15597 15598 15599# The cast to long int works around a bug in the HP C Compiler 15600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15602# This bug is HP SR number 8606223364. 15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 15604$as_echo_n "checking size of time_t... " >&6; } 15605if ${ac_cv_sizeof_time_t+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607else 15608 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 15609$ac_includes_default 15610#ifdef TIME_WITH_SYS_TIME 15611# include <sys/time.h> 15612# include <time.h> 15613#else 15614# ifdef HAVE_SYS_TIME_H 15615# include <sys/time.h> 15616# else 15617# include <time.h> 15618# endif 15619#endif 15620 15621"; then : 15622 15623else 15624 if test "$ac_cv_type_time_t" = yes; then 15625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15627as_fn_error 77 "cannot compute sizeof (time_t) 15628See \`config.log' for more details" "$LINENO" 5; } 15629 else 15630 ac_cv_sizeof_time_t=0 15631 fi 15632fi 15633 15634fi 15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 15636$as_echo "$ac_cv_sizeof_time_t" >&6; } 15637 15638 15639 15640cat >>confdefs.h <<_ACEOF 15641#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 15642_ACEOF 15643 15644 15645 15646if test x_$with_examples != x_no; then 15647for ac_header in pcap.h 15648do : 15649 ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default 15650" 15651if test "x$ac_cv_header_pcap_h" = xyes; then : 15652 cat >>confdefs.h <<_ACEOF 15653#define HAVE_PCAP_H 1 15654_ACEOF 15655 15656fi 15657 15658done 15659 15660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5 15661$as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; } 15662if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then : 15663 $as_echo_n "(cached) " >&6 15664else 15665 ac_check_lib_save_LIBS=$LIBS 15666LIBS="-lpcap $LIBS" 15667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15668/* end confdefs.h. */ 15669 15670/* Override any GCC internal prototype to avoid an error. 15671 Use char because int might match the return type of a GCC 15672 builtin and then its argument prototype would still apply. */ 15673#ifdef __cplusplus 15674extern "C" 15675#endif 15676char pcap_open_offline (); 15677int 15678main () 15679{ 15680return pcap_open_offline (); 15681 ; 15682 return 0; 15683} 15684_ACEOF 15685if ac_fn_c_try_link "$LINENO"; then : 15686 ac_cv_lib_pcap_pcap_open_offline=yes 15687else 15688 ac_cv_lib_pcap_pcap_open_offline=no 15689fi 15690rm -f core conftest.err conftest.$ac_objext \ 15691 conftest$ac_exeext conftest.$ac_ext 15692LIBS=$ac_check_lib_save_LIBS 15693fi 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5 15695$as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; } 15696if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then : 15697 15698 15699$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h 15700 LIBPCAP_LIBS=-lpcap 15701 15702 15703else 15704 15705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5 15706$as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;} 15707 15708 15709fi 15710 15711for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/igmp.h netinet/if_ether.h netinet/ip6.h net/ethernet.h netinet/ip_compat.h 15712do : 15713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15714ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 15715$ac_includes_default 15716#ifdef HAVE_NETINET_IN_SYSTM_H 15717#include <netinet/in_systm.h> 15718#endif 15719#ifdef HAVE_NETINET_IN_H 15720#include <netinet/in.h> 15721#endif 15722#ifdef HAVE_SYS_SOCKET_H 15723#include <sys/socket.h> 15724#endif 15725#ifdef HAVE_NET_IF_H 15726#include <net/if.h> 15727#endif 15728" 15729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15730 cat >>confdefs.h <<_ACEOF 15731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15732_ACEOF 15733 15734fi 15735 15736done 15737 15738fi 15739 15740 15741ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 15742$ac_includes_default 15743#ifdef HAVE_SYS_SOCKET_H 15744# include <sys/socket.h> 15745#endif 15746#ifdef HAVE_WS2TCPIP_H 15747# include <ws2tcpip.h> 15748#endif 15749 15750" 15751if test "x$ac_cv_type_socklen_t" = xyes; then : 15752 15753else 15754 15755$as_echo "#define socklen_t int" >>confdefs.h 15756 15757fi 15758 15759if test "x$ac_cv_type_socklen_t" = xyes; then 15760 ldns_build_config_have_socklen_t=1 15761 15762else 15763 ldns_build_config_have_socklen_t=0 15764 15765fi 15766ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15767if test "x$ac_cv_type_size_t" = xyes; then : 15768 15769else 15770 15771cat >>confdefs.h <<_ACEOF 15772#define size_t unsigned int 15773_ACEOF 15774 15775fi 15776 15777ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 15778if test "x$ac_cv_type_ssize_t" = xyes; then : 15779 15780else 15781 15782cat >>confdefs.h <<_ACEOF 15783#define ssize_t int 15784_ACEOF 15785 15786fi 15787 15788ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 15789if test "x$ac_cv_type_intptr_t" = xyes; then : 15790 15791else 15792 15793cat >>confdefs.h <<_ACEOF 15794#define intptr_t size_t 15795_ACEOF 15796 15797fi 15798 15799ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 15800#if HAVE_SYS_TYPES_H 15801# include <sys/types.h> 15802#endif 15803#if HAVE_NETINET_IN_H 15804# include <netinet/in.h> 15805#endif 15806" 15807if test "x$ac_cv_type_in_addr_t" = xyes; then : 15808 15809else 15810 15811$as_echo "#define in_addr_t uint32_t" >>confdefs.h 15812 15813fi 15814 15815ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 15816#if HAVE_SYS_TYPES_H 15817# include <sys/types.h> 15818#endif 15819#if HAVE_NETINET_IN_H 15820# include <netinet/in.h> 15821#endif 15822" 15823if test "x$ac_cv_type_in_port_t" = xyes; then : 15824 15825else 15826 15827$as_echo "#define in_port_t uint16_t" >>confdefs.h 15828 15829fi 15830 15831ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 15832#ifdef HAVE_NETINET_IN_H 15833#include <netinet/in.h> 15834#endif 15835#ifdef HAVE_SYS_SOCKET_H 15836#include <sys/socket.h> 15837#endif 15838#ifdef HAVE_NETDB_H 15839#include <netdb.h> 15840#endif 15841#ifdef HAVE_ARPA_INET_H 15842#include <arpa/inet.h> 15843#endif 15844 15845" 15846if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 15847 15848else 15849 15850 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 15851#ifdef HAVE_NETINET_IN_H 15852#include <netinet/in.h> 15853#endif 15854#ifdef HAVE_SYS_SOCKET_H 15855#include <sys/socket.h> 15856#endif 15857#ifdef HAVE_NETDB_H 15858#include <netdb.h> 15859#endif 15860#ifdef HAVE_ARPA_INET_H 15861#include <arpa/inet.h> 15862#endif 15863 15864" 15865if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 15866 15867 15868$as_echo "#define ss_family __ss_family" >>confdefs.h 15869 15870 15871fi 15872 15873 15874fi 15875 15876 15877for ac_header in stdlib.h 15878do : 15879 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 15880if test "x$ac_cv_header_stdlib_h" = xyes; then : 15881 cat >>confdefs.h <<_ACEOF 15882#define HAVE_STDLIB_H 1 15883_ACEOF 15884 15885fi 15886 15887done 15888 15889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15890$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15891if ${ac_cv_func_malloc_0_nonnull+:} false; then : 15892 $as_echo_n "(cached) " >&6 15893else 15894 if test "$cross_compiling" = yes; then : 15895 ac_cv_func_malloc_0_nonnull=no 15896else 15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15898/* end confdefs.h. */ 15899#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15900# include <stdlib.h> 15901#else 15902char *malloc (); 15903#endif 15904 15905int 15906main () 15907{ 15908return ! malloc (0); 15909 ; 15910 return 0; 15911} 15912_ACEOF 15913if ac_fn_c_try_run "$LINENO"; then : 15914 ac_cv_func_malloc_0_nonnull=yes 15915else 15916 ac_cv_func_malloc_0_nonnull=no 15917fi 15918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15919 conftest.$ac_objext conftest.beam conftest.$ac_ext 15920fi 15921 15922fi 15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 15924$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 15925if test $ac_cv_func_malloc_0_nonnull = yes; then : 15926 15927$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15928 15929else 15930 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 15931 15932 case " $LIBOBJS " in 15933 *" malloc.$ac_objext "* ) ;; 15934 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15935 ;; 15936esac 15937 15938 15939$as_echo "#define malloc rpl_malloc" >>confdefs.h 15940 15941fi 15942 15943 15944for ac_header in stdlib.h 15945do : 15946 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 15947if test "x$ac_cv_header_stdlib_h" = xyes; then : 15948 cat >>confdefs.h <<_ACEOF 15949#define HAVE_STDLIB_H 1 15950_ACEOF 15951 15952fi 15953 15954done 15955 15956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 15957$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 15958if ${ac_cv_func_realloc_0_nonnull+:} false; then : 15959 $as_echo_n "(cached) " >&6 15960else 15961 if test "$cross_compiling" = yes; then : 15962 ac_cv_func_realloc_0_nonnull=no 15963else 15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15965/* end confdefs.h. */ 15966#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15967# include <stdlib.h> 15968#else 15969char *realloc (); 15970#endif 15971 15972int 15973main () 15974{ 15975return ! realloc (0, 0); 15976 ; 15977 return 0; 15978} 15979_ACEOF 15980if ac_fn_c_try_run "$LINENO"; then : 15981 ac_cv_func_realloc_0_nonnull=yes 15982else 15983 ac_cv_func_realloc_0_nonnull=no 15984fi 15985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15986 conftest.$ac_objext conftest.beam conftest.$ac_ext 15987fi 15988 15989fi 15990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 15991$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 15992if test $ac_cv_func_realloc_0_nonnull = yes; then : 15993 15994$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 15995 15996else 15997 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 15998 15999 case " $LIBOBJS " in 16000 *" realloc.$ac_objext "* ) ;; 16001 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 16002 ;; 16003esac 16004 16005 16006$as_echo "#define realloc rpl_realloc" >>confdefs.h 16007 16008fi 16009 16010 16011 16012ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton" 16013if test "x$ac_cv_func_b64_pton" = xyes; then : 16014 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h 16015 16016else 16017 case " $LIBOBJS " in 16018 *" b64_pton.$ac_objext "* ) ;; 16019 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 16020 ;; 16021esac 16022 16023fi 16024 16025 16026ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop" 16027if test "x$ac_cv_func_b64_ntop" = xyes; then : 16028 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h 16029 16030else 16031 case " $LIBOBJS " in 16032 *" b64_ntop.$ac_objext "* ) ;; 16033 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 16034 ;; 16035esac 16036 16037fi 16038 16039 16040ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" 16041if test "x$ac_cv_func_calloc" = xyes; then : 16042 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h 16043 16044else 16045 case " $LIBOBJS " in 16046 *" calloc.$ac_objext "* ) ;; 16047 *) LIBOBJS="$LIBOBJS calloc.$ac_objext" 16048 ;; 16049esac 16050 16051fi 16052 16053 16054ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 16055if test "x$ac_cv_func_timegm" = xyes; then : 16056 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h 16057 16058else 16059 case " $LIBOBJS " in 16060 *" timegm.$ac_objext "* ) ;; 16061 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 16062 ;; 16063esac 16064 16065fi 16066 16067 16068ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 16069if test "x$ac_cv_func_gmtime_r" = xyes; then : 16070 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 16071 16072else 16073 case " $LIBOBJS " in 16074 *" gmtime_r.$ac_objext "* ) ;; 16075 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 16076 ;; 16077esac 16078 16079fi 16080 16081 16082ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 16083if test "x$ac_cv_func_ctime_r" = xyes; then : 16084 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 16085 16086else 16087 case " $LIBOBJS " in 16088 *" ctime_r.$ac_objext "* ) ;; 16089 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 16090 ;; 16091esac 16092 16093fi 16094 16095 16096ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 16097if test "x$ac_cv_func_localtime_r" = xyes; then : 16098 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 16099 16100else 16101 case " $LIBOBJS " in 16102 *" localtime_r.$ac_objext "* ) ;; 16103 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 16104 ;; 16105esac 16106 16107fi 16108 16109 16110ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 16111if test "x$ac_cv_func_isblank" = xyes; then : 16112 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 16113 16114else 16115 case " $LIBOBJS " in 16116 *" isblank.$ac_objext "* ) ;; 16117 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 16118 ;; 16119esac 16120 16121fi 16122 16123 16124ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii" 16125if test "x$ac_cv_func_isascii" = xyes; then : 16126 $as_echo "#define HAVE_ISASCII 1" >>confdefs.h 16127 16128else 16129 case " $LIBOBJS " in 16130 *" isascii.$ac_objext "* ) ;; 16131 *) LIBOBJS="$LIBOBJS isascii.$ac_objext" 16132 ;; 16133esac 16134 16135fi 16136 16137 16138ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 16139if test "x$ac_cv_func_inet_aton" = xyes; then : 16140 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 16141 16142else 16143 case " $LIBOBJS " in 16144 *" inet_aton.$ac_objext "* ) ;; 16145 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 16146 ;; 16147esac 16148 16149fi 16150 16151 16152ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 16153if test "x$ac_cv_func_inet_pton" = xyes; then : 16154 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 16155 16156else 16157 case " $LIBOBJS " in 16158 *" inet_pton.$ac_objext "* ) ;; 16159 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 16160 ;; 16161esac 16162 16163fi 16164 16165 16166ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 16167if test "x$ac_cv_func_inet_ntop" = xyes; then : 16168 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 16169 16170else 16171 case " $LIBOBJS " in 16172 *" inet_ntop.$ac_objext "* ) ;; 16173 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 16174 ;; 16175esac 16176 16177fi 16178 16179 16180ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 16181if test "x$ac_cv_func_snprintf" = xyes; then : 16182 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 16183 16184else 16185 case " $LIBOBJS " in 16186 *" snprintf.$ac_objext "* ) ;; 16187 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 16188 ;; 16189esac 16190 16191fi 16192 16193 16194ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 16195if test "x$ac_cv_func_strlcpy" = xyes; then : 16196 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 16197 16198else 16199 case " $LIBOBJS " in 16200 *" strlcpy.$ac_objext "* ) ;; 16201 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 16202 ;; 16203esac 16204 16205fi 16206 16207 16208ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 16209if test "x$ac_cv_func_memmove" = xyes; then : 16210 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 16211 16212else 16213 case " $LIBOBJS " in 16214 *" memmove.$ac_objext "* ) ;; 16215 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 16216 ;; 16217esac 16218 16219fi 16220 16221 16222ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 16223if test "x$ac_cv_type_pid_t" = xyes; then : 16224 16225else 16226 16227cat >>confdefs.h <<_ACEOF 16228#define pid_t int 16229_ACEOF 16230 16231fi 16232 16233for ac_header in vfork.h 16234do : 16235 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 16236if test "x$ac_cv_header_vfork_h" = xyes; then : 16237 cat >>confdefs.h <<_ACEOF 16238#define HAVE_VFORK_H 1 16239_ACEOF 16240 16241fi 16242 16243done 16244 16245for ac_func in fork vfork 16246do : 16247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16249if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16250 cat >>confdefs.h <<_ACEOF 16251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16252_ACEOF 16253 16254fi 16255done 16256 16257if test "x$ac_cv_func_fork" = xyes; then 16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 16259$as_echo_n "checking for working fork... " >&6; } 16260if ${ac_cv_func_fork_works+:} false; then : 16261 $as_echo_n "(cached) " >&6 16262else 16263 if test "$cross_compiling" = yes; then : 16264 ac_cv_func_fork_works=cross 16265else 16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268$ac_includes_default 16269int 16270main () 16271{ 16272 16273 /* By Ruediger Kuhlmann. */ 16274 return fork () < 0; 16275 16276 ; 16277 return 0; 16278} 16279_ACEOF 16280if ac_fn_c_try_run "$LINENO"; then : 16281 ac_cv_func_fork_works=yes 16282else 16283 ac_cv_func_fork_works=no 16284fi 16285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16286 conftest.$ac_objext conftest.beam conftest.$ac_ext 16287fi 16288 16289fi 16290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 16291$as_echo "$ac_cv_func_fork_works" >&6; } 16292 16293else 16294 ac_cv_func_fork_works=$ac_cv_func_fork 16295fi 16296if test "x$ac_cv_func_fork_works" = xcross; then 16297 case $host in 16298 *-*-amigaos* | *-*-msdosdjgpp*) 16299 # Override, as these systems have only a dummy fork() stub 16300 ac_cv_func_fork_works=no 16301 ;; 16302 *) 16303 ac_cv_func_fork_works=yes 16304 ;; 16305 esac 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 16307$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 16308fi 16309ac_cv_func_vfork_works=$ac_cv_func_vfork 16310if test "x$ac_cv_func_vfork" = xyes; then 16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 16312$as_echo_n "checking for working vfork... " >&6; } 16313if ${ac_cv_func_vfork_works+:} false; then : 16314 $as_echo_n "(cached) " >&6 16315else 16316 if test "$cross_compiling" = yes; then : 16317 ac_cv_func_vfork_works=cross 16318else 16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16320/* end confdefs.h. */ 16321/* Thanks to Paul Eggert for this test. */ 16322$ac_includes_default 16323#include <sys/wait.h> 16324#ifdef HAVE_VFORK_H 16325# include <vfork.h> 16326#endif 16327/* On some sparc systems, changes by the child to local and incoming 16328 argument registers are propagated back to the parent. The compiler 16329 is told about this with #include <vfork.h>, but some compilers 16330 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 16331 static variable whose address is put into a register that is 16332 clobbered by the vfork. */ 16333static void 16334#ifdef __cplusplus 16335sparc_address_test (int arg) 16336# else 16337sparc_address_test (arg) int arg; 16338#endif 16339{ 16340 static pid_t child; 16341 if (!child) { 16342 child = vfork (); 16343 if (child < 0) { 16344 perror ("vfork"); 16345 _exit(2); 16346 } 16347 if (!child) { 16348 arg = getpid(); 16349 write(-1, "", 0); 16350 _exit (arg); 16351 } 16352 } 16353} 16354 16355int 16356main () 16357{ 16358 pid_t parent = getpid (); 16359 pid_t child; 16360 16361 sparc_address_test (0); 16362 16363 child = vfork (); 16364 16365 if (child == 0) { 16366 /* Here is another test for sparc vfork register problems. This 16367 test uses lots of local variables, at least as many local 16368 variables as main has allocated so far including compiler 16369 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 16370 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 16371 reuse the register of parent for one of the local variables, 16372 since it will think that parent can't possibly be used any more 16373 in this routine. Assigning to the local variable will thus 16374 munge parent in the parent process. */ 16375 pid_t 16376 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 16377 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 16378 /* Convince the compiler that p..p7 are live; otherwise, it might 16379 use the same hardware register for all 8 local variables. */ 16380 if (p != p1 || p != p2 || p != p3 || p != p4 16381 || p != p5 || p != p6 || p != p7) 16382 _exit(1); 16383 16384 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 16385 from child file descriptors. If the child closes a descriptor 16386 before it execs or exits, this munges the parent's descriptor 16387 as well. Test for this by closing stdout in the child. */ 16388 _exit(close(fileno(stdout)) != 0); 16389 } else { 16390 int status; 16391 struct stat st; 16392 16393 while (wait(&status) != child) 16394 ; 16395 return ( 16396 /* Was there some problem with vforking? */ 16397 child < 0 16398 16399 /* Did the child fail? (This shouldn't happen.) */ 16400 || status 16401 16402 /* Did the vfork/compiler bug occur? */ 16403 || parent != getpid() 16404 16405 /* Did the file descriptor bug occur? */ 16406 || fstat(fileno(stdout), &st) != 0 16407 ); 16408 } 16409} 16410_ACEOF 16411if ac_fn_c_try_run "$LINENO"; then : 16412 ac_cv_func_vfork_works=yes 16413else 16414 ac_cv_func_vfork_works=no 16415fi 16416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16417 conftest.$ac_objext conftest.beam conftest.$ac_ext 16418fi 16419 16420fi 16421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 16422$as_echo "$ac_cv_func_vfork_works" >&6; } 16423 16424fi; 16425if test "x$ac_cv_func_fork_works" = xcross; then 16426 ac_cv_func_vfork_works=$ac_cv_func_vfork 16427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 16428$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 16429fi 16430 16431if test "x$ac_cv_func_vfork_works" = xyes; then 16432 16433$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 16434 16435else 16436 16437$as_echo "#define vfork fork" >>confdefs.h 16438 16439fi 16440if test "x$ac_cv_func_fork_works" = xyes; then 16441 16442$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 16443 16444fi 16445 16446for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset b32_ntop b32_pton 16447do : 16448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16449ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16450if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16451 cat >>confdefs.h <<_ACEOF 16452#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16453_ACEOF 16454 16455fi 16456done 16457 16458if test "x$HAVE_B32_NTOP" = "xyes"; then 16459 ldns_build_config_have_b32_ntop=1 16460 16461else 16462 ldns_build_config_have_b32_ntop=0 16463 16464fi 16465if test "x$HAVE_B32_PTON" = "xyes"; then 16466 ldns_build_config_have_b32_pton=1 16467 16468else 16469 ldns_build_config_have_b32_pton=0 16470 16471fi 16472 16473 16474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 16475$as_echo_n "checking for getaddrinfo... " >&6; } 16476ac_cv_func_getaddrinfo=no 16477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16478/* end confdefs.h. */ 16479 16480#ifdef __cplusplus 16481extern "C" 16482{ 16483#endif 16484char* getaddrinfo(); 16485char* (*f) () = getaddrinfo; 16486#ifdef __cplusplus 16487} 16488#endif 16489int main() { 16490 ; 16491 return 0; 16492} 16493 16494_ACEOF 16495if ac_fn_c_try_link "$LINENO"; then : 16496 ac_cv_func_getaddrinfo="yes" 16497if test "$ac_cv_header_windows_h" = "yes"; then 16498 16499$as_echo "#define USE_WINSOCK 1" >>confdefs.h 16500 16501 USE_WINSOCK="1" 16502 LIBS="$LIBS -lws2_32" 16503fi 16504 16505else 16506 ORIGLIBS="$LIBS" 16507LIBS="$LIBS -lws2_32" 16508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16509/* end confdefs.h. */ 16510 16511#ifdef HAVE_WS2TCPIP_H 16512#include <ws2tcpip.h> 16513#endif 16514 16515int 16516main () 16517{ 16518 16519 (void)getaddrinfo(NULL, NULL, NULL, NULL); 16520 16521 16522 ; 16523 return 0; 16524} 16525_ACEOF 16526if ac_fn_c_try_link "$LINENO"; then : 16527 16528ac_cv_func_getaddrinfo="yes" 16529 16530$as_echo "#define USE_WINSOCK 1" >>confdefs.h 16531 16532USE_WINSOCK="1" 16533 16534else 16535 16536ac_cv_func_getaddrinfo="no" 16537LIBS="$ORIGLIBS" 16538 16539fi 16540rm -f core conftest.err conftest.$ac_objext \ 16541 conftest$ac_exeext conftest.$ac_ext 16542 16543fi 16544rm -f core conftest.err conftest.$ac_objext \ 16545 conftest$ac_exeext conftest.$ac_ext 16546 16547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 16548$as_echo "$ac_cv_func_getaddrinfo" >&6; } 16549if test $ac_cv_func_getaddrinfo = yes; then 16550 16551$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 16552 16553fi 16554 16555if test $ac_cv_func_getaddrinfo = no; then 16556 case " $LIBOBJS " in 16557 *" fake-rfc2553.$ac_objext "* ) ;; 16558 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 16559 ;; 16560esac 16561 16562fi 16563if test "$USE_WINSOCK" = 1; then 16564 if test -n "$ac_tool_prefix"; then 16565 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 16566set dummy ${ac_tool_prefix}windres; ac_word=$2 16567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16568$as_echo_n "checking for $ac_word... " >&6; } 16569if ${ac_cv_prog_WINDRES+:} false; then : 16570 $as_echo_n "(cached) " >&6 16571else 16572 if test -n "$WINDRES"; then 16573 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 16574else 16575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16576for as_dir in $PATH 16577do 16578 IFS=$as_save_IFS 16579 test -z "$as_dir" && as_dir=. 16580 for ac_exec_ext in '' $ac_executable_extensions; do 16581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16582 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 16583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16584 break 2 16585 fi 16586done 16587 done 16588IFS=$as_save_IFS 16589 16590fi 16591fi 16592WINDRES=$ac_cv_prog_WINDRES 16593if test -n "$WINDRES"; then 16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 16595$as_echo "$WINDRES" >&6; } 16596else 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16598$as_echo "no" >&6; } 16599fi 16600 16601 16602fi 16603if test -z "$ac_cv_prog_WINDRES"; then 16604 ac_ct_WINDRES=$WINDRES 16605 # Extract the first word of "windres", so it can be a program name with args. 16606set dummy windres; ac_word=$2 16607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16608$as_echo_n "checking for $ac_word... " >&6; } 16609if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 16610 $as_echo_n "(cached) " >&6 16611else 16612 if test -n "$ac_ct_WINDRES"; then 16613 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 16614else 16615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16616for as_dir in $PATH 16617do 16618 IFS=$as_save_IFS 16619 test -z "$as_dir" && as_dir=. 16620 for ac_exec_ext in '' $ac_executable_extensions; do 16621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16622 ac_cv_prog_ac_ct_WINDRES="windres" 16623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16624 break 2 16625 fi 16626done 16627 done 16628IFS=$as_save_IFS 16629 16630fi 16631fi 16632ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 16633if test -n "$ac_ct_WINDRES"; then 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 16635$as_echo "$ac_ct_WINDRES" >&6; } 16636else 16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16638$as_echo "no" >&6; } 16639fi 16640 16641 if test "x$ac_ct_WINDRES" = x; then 16642 WINDRES="" 16643 else 16644 case $cross_compiling:$ac_tool_warned in 16645yes:) 16646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16648ac_tool_warned=yes ;; 16649esac 16650 WINDRES=$ac_ct_WINDRES 16651 fi 16652else 16653 WINDRES="$ac_cv_prog_WINDRES" 16654fi 16655 16656fi 16657 16658# check ioctlsocket 16659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 16660$as_echo_n "checking for ioctlsocket... " >&6; } 16661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16662/* end confdefs.h. */ 16663 16664#ifdef HAVE_WINSOCK2_H 16665#include <winsock2.h> 16666#endif 16667 16668int 16669main () 16670{ 16671 16672 (void)ioctlsocket(0, 0, NULL); 16673 16674 ; 16675 return 0; 16676} 16677_ACEOF 16678if ac_fn_c_try_link "$LINENO"; then : 16679 16680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16681$as_echo "yes" >&6; } 16682 16683$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 16684 16685 16686else 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16688$as_echo "no" >&6; } 16689fi 16690rm -f core conftest.err conftest.$ac_objext \ 16691 conftest$ac_exeext conftest.$ac_ext 16692 16693 16694#AC_SEARCH_LIBS(RSA_new, [crypto]) 16695 16696 16697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 16698$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 16699if ${ac_cv_c_format_attribute+:} false; then : 16700 $as_echo_n "(cached) " >&6 16701else 16702 ac_cv_c_format_attribute=no 16703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16704/* end confdefs.h. */ 16705#include <stdio.h> 16706void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 16707void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 16708 16709int 16710main () 16711{ 16712 16713 f ("%s", "str"); 16714 16715 ; 16716 return 0; 16717} 16718_ACEOF 16719if ac_fn_c_try_compile "$LINENO"; then : 16720 ac_cv_c_format_attribute="yes" 16721else 16722 ac_cv_c_format_attribute="no" 16723fi 16724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16725 16726fi 16727 16728 16729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 16730$as_echo "$ac_cv_c_format_attribute" >&6; } 16731if test $ac_cv_c_format_attribute = yes; then 16732 16733$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 16734 16735fi 16736 16737 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 16739$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 16740if ${ac_cv_c_unused_attribute+:} false; then : 16741 $as_echo_n "(cached) " >&6 16742else 16743 ac_cv_c_unused_attribute=no 16744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16745/* end confdefs.h. */ 16746#include <stdio.h> 16747void f (char *u __attribute__((unused))); 16748 16749int 16750main () 16751{ 16752 16753 f ("x"); 16754 16755 ; 16756 return 0; 16757} 16758_ACEOF 16759if ac_fn_c_try_compile "$LINENO"; then : 16760 ac_cv_c_unused_attribute="yes" 16761else 16762 ac_cv_c_unused_attribute="no" 16763fi 16764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16765 16766fi 16767 16768 16769 16770 16771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 16772$as_echo "$ac_cv_c_unused_attribute" >&6; } 16773if test $ac_cv_c_unused_attribute = yes; then 16774 16775$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 16776 16777fi 16778 16779 16780# check OSX deployment target which is needed 16781if echo $build_os | grep darwin > /dev/null; then 16782 export MACOSX_DEPLOYMENT_TARGET="10.4" 16783fi 16784 16785 16786$as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h 16787 16788 16789 16790# Check whether --with-trust-anchor was given. 16791if test "${with_trust_anchor+set}" = set; then : 16792 withval=$with_trust_anchor; 16793 LDNS_TRUST_ANCHOR_FILE="$withval" 16794 16795else 16796 16797 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then 16798 if test "x$sysconfdir" = 'x${prefix}/etc' ; then 16799 if test "x$prefix" = 'xNONE' ; then 16800 LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key" 16801 else 16802 LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key" 16803 fi 16804 else 16805 LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key" 16806 fi 16807 fi 16808 16809fi 16810 16811 16812cat >>confdefs.h <<_ACEOF 16813#define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE" 16814_ACEOF 16815 16816 16817{ $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5 16818$as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;} 16819 16820 16821# Check whether --with-ca-file was given. 16822if test "${with_ca_file+set}" = set; then : 16823 withval=$with_ca_file; 16824 16825$as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h 16826 16827 16828cat >>confdefs.h <<_ACEOF 16829#define LDNS_DANE_CA_FILE "$withval" 16830_ACEOF 16831 16832 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5 16833$as_echo "$as_me: Using CAfile: $withval" >&6;} 16834 DEFAULT_CAFILE="Default is $withval" 16835 16836 16837else 16838 16839 16840$as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h 16841 16842 16843 16844fi 16845 16846 16847 16848# Check whether --with-ca-path was given. 16849if test "${with_ca_path+set}" = set; then : 16850 withval=$with_ca_path; 16851 16852$as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h 16853 16854 16855cat >>confdefs.h <<_ACEOF 16856#define LDNS_DANE_CA_PATH "$withval" 16857_ACEOF 16858 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5 16860$as_echo "$as_me: Using CApath: $withval" >&6;} 16861 DEFAULT_CAPATH="Default is $withval" 16862 16863 16864else 16865 16866 16867$as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h 16868 16869 16870 16871fi 16872 16873 16874 16875 16876 16877 16878if test "x$HAVE_SSL" = "xyes"; then 16879 ldns_build_config_have_ssl=1 16880 16881else 16882 ldns_build_config_have_ssl=0 16883 16884fi 16885if test "x$ac_cv_c_format_attribute" = "xyes"; then 16886 ldns_build_config_have_attr_format=1 16887 16888else 16889 ldns_build_config_have_attr_format=0 16890 16891fi 16892if test "x$ac_cv_c_unused_attribute" = "xyes"; then 16893 ldns_build_config_have_attr_unused=1 16894 16895else 16896 ldns_build_config_have_attr_unused=0 16897 16898fi 16899 16900CONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config $DRILL_CONFIG $EXAMPLES_CONFIG" 16901 16902ac_config_files="$ac_config_files $CONFIG_FILES" 16903 16904 16905ac_config_headers="$ac_config_headers ldns/config.h" 16906 16907cat >confcache <<\_ACEOF 16908# This file is a shell script that caches the results of configure 16909# tests run on this system so they can be shared between configure 16910# scripts and configure runs, see configure's option --config-cache. 16911# It is not useful on other systems. If it contains results you don't 16912# want to keep, you may remove or edit it. 16913# 16914# config.status only pays attention to the cache file if you give it 16915# the --recheck option to rerun configure. 16916# 16917# `ac_cv_env_foo' variables (set or unset) will be overridden when 16918# loading this file, other *unset* `ac_cv_foo' will be assigned the 16919# following values. 16920 16921_ACEOF 16922 16923# The following way of writing the cache mishandles newlines in values, 16924# but we know of no workaround that is simple, portable, and efficient. 16925# So, we kill variables containing newlines. 16926# Ultrix sh set writes to stderr and can't be redirected directly, 16927# and sets the high bit in the cache file unless we assign to the vars. 16928( 16929 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16930 eval ac_val=\$$ac_var 16931 case $ac_val in #( 16932 *${as_nl}*) 16933 case $ac_var in #( 16934 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16935$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16936 esac 16937 case $ac_var in #( 16938 _ | IFS | as_nl) ;; #( 16939 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16940 *) { eval $ac_var=; unset $ac_var;} ;; 16941 esac ;; 16942 esac 16943 done 16944 16945 (set) 2>&1 | 16946 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16947 *${as_nl}ac_space=\ *) 16948 # `set' does not quote correctly, so add quotes: double-quote 16949 # substitution turns \\\\ into \\, and sed turns \\ into \. 16950 sed -n \ 16951 "s/'/'\\\\''/g; 16952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16953 ;; #( 16954 *) 16955 # `set' quotes correctly as required by POSIX, so do not add quotes. 16956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16957 ;; 16958 esac | 16959 sort 16960) | 16961 sed ' 16962 /^ac_cv_env_/b end 16963 t clear 16964 :clear 16965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16966 t end 16967 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16968 :end' >>confcache 16969if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16970 if test -w "$cache_file"; then 16971 if test "x$cache_file" != "x/dev/null"; then 16972 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16973$as_echo "$as_me: updating cache $cache_file" >&6;} 16974 if test ! -f "$cache_file" || test -h "$cache_file"; then 16975 cat confcache >"$cache_file" 16976 else 16977 case $cache_file in #( 16978 */* | ?:*) 16979 mv -f confcache "$cache_file"$$ && 16980 mv -f "$cache_file"$$ "$cache_file" ;; #( 16981 *) 16982 mv -f confcache "$cache_file" ;; 16983 esac 16984 fi 16985 fi 16986 else 16987 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16988$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16989 fi 16990fi 16991rm -f confcache 16992 16993test "x$prefix" = xNONE && prefix=$ac_default_prefix 16994# Let make expand exec_prefix. 16995test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16996 16997DEFS=-DHAVE_CONFIG_H 16998 16999ac_libobjs= 17000ac_ltlibobjs= 17001U= 17002for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17003 # 1. Remove the extension, and $U if already installed. 17004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17005 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17007 # will be set to the directory where LIBOBJS objects are built. 17008 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17009 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17010done 17011LIBOBJS=$ac_libobjs 17012 17013LTLIBOBJS=$ac_ltlibobjs 17014 17015 17016 17017 17018: "${CONFIG_STATUS=./config.status}" 17019ac_write_fail=0 17020ac_clean_files_save=$ac_clean_files 17021ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17022{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17023$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17024as_write_fail=0 17025cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17026#! $SHELL 17027# Generated by $as_me. 17028# Run this file to recreate the current configuration. 17029# Compiler output produced by configure, useful for debugging 17030# configure, is in config.log if it exists. 17031 17032debug=false 17033ac_cs_recheck=false 17034ac_cs_silent=false 17035 17036SHELL=\${CONFIG_SHELL-$SHELL} 17037export SHELL 17038_ASEOF 17039cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17040## -------------------- ## 17041## M4sh Initialization. ## 17042## -------------------- ## 17043 17044# Be more Bourne compatible 17045DUALCASE=1; export DUALCASE # for MKS sh 17046if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17047 emulate sh 17048 NULLCMD=: 17049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17050 # is contrary to our usage. Disable this feature. 17051 alias -g '${1+"$@"}'='"$@"' 17052 setopt NO_GLOB_SUBST 17053else 17054 case `(set -o) 2>/dev/null` in #( 17055 *posix*) : 17056 set -o posix ;; #( 17057 *) : 17058 ;; 17059esac 17060fi 17061 17062 17063as_nl=' 17064' 17065export as_nl 17066# Printing a long string crashes Solaris 7 /usr/bin/printf. 17067as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17068as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17069as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17070# Prefer a ksh shell builtin over an external printf program on Solaris, 17071# but without wasting forks for bash or zsh. 17072if test -z "$BASH_VERSION$ZSH_VERSION" \ 17073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17074 as_echo='print -r --' 17075 as_echo_n='print -rn --' 17076elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17077 as_echo='printf %s\n' 17078 as_echo_n='printf %s' 17079else 17080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17081 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17082 as_echo_n='/usr/ucb/echo -n' 17083 else 17084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17085 as_echo_n_body='eval 17086 arg=$1; 17087 case $arg in #( 17088 *"$as_nl"*) 17089 expr "X$arg" : "X\\(.*\\)$as_nl"; 17090 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17091 esac; 17092 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17093 ' 17094 export as_echo_n_body 17095 as_echo_n='sh -c $as_echo_n_body as_echo' 17096 fi 17097 export as_echo_body 17098 as_echo='sh -c $as_echo_body as_echo' 17099fi 17100 17101# The user is always right. 17102if test "${PATH_SEPARATOR+set}" != set; then 17103 PATH_SEPARATOR=: 17104 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17105 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17106 PATH_SEPARATOR=';' 17107 } 17108fi 17109 17110 17111# IFS 17112# We need space, tab and new line, in precisely that order. Quoting is 17113# there to prevent editors from complaining about space-tab. 17114# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17115# splitting by setting IFS to empty value.) 17116IFS=" "" $as_nl" 17117 17118# Find who we are. Look in the path if we contain no directory separator. 17119as_myself= 17120case $0 in #(( 17121 *[\\/]* ) as_myself=$0 ;; 17122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17123for as_dir in $PATH 17124do 17125 IFS=$as_save_IFS 17126 test -z "$as_dir" && as_dir=. 17127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17128 done 17129IFS=$as_save_IFS 17130 17131 ;; 17132esac 17133# We did not find ourselves, most probably we were run as `sh COMMAND' 17134# in which case we are not to be found in the path. 17135if test "x$as_myself" = x; then 17136 as_myself=$0 17137fi 17138if test ! -f "$as_myself"; then 17139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17140 exit 1 17141fi 17142 17143# Unset variables that we do not need and which cause bugs (e.g. in 17144# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17145# suppresses any "Segmentation fault" message there. '((' could 17146# trigger a bug in pdksh 5.2.14. 17147for as_var in BASH_ENV ENV MAIL MAILPATH 17148do eval test x\${$as_var+set} = xset \ 17149 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17150done 17151PS1='$ ' 17152PS2='> ' 17153PS4='+ ' 17154 17155# NLS nuisances. 17156LC_ALL=C 17157export LC_ALL 17158LANGUAGE=C 17159export LANGUAGE 17160 17161# CDPATH. 17162(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17163 17164 17165# as_fn_error STATUS ERROR [LINENO LOG_FD] 17166# ---------------------------------------- 17167# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17168# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17169# script with STATUS, using 1 if that was 0. 17170as_fn_error () 17171{ 17172 as_status=$1; test $as_status -eq 0 && as_status=1 17173 if test "$4"; then 17174 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17175 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17176 fi 17177 $as_echo "$as_me: error: $2" >&2 17178 as_fn_exit $as_status 17179} # as_fn_error 17180 17181 17182# as_fn_set_status STATUS 17183# ----------------------- 17184# Set $? to STATUS, without forking. 17185as_fn_set_status () 17186{ 17187 return $1 17188} # as_fn_set_status 17189 17190# as_fn_exit STATUS 17191# ----------------- 17192# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17193as_fn_exit () 17194{ 17195 set +e 17196 as_fn_set_status $1 17197 exit $1 17198} # as_fn_exit 17199 17200# as_fn_unset VAR 17201# --------------- 17202# Portably unset VAR. 17203as_fn_unset () 17204{ 17205 { eval $1=; unset $1;} 17206} 17207as_unset=as_fn_unset 17208# as_fn_append VAR VALUE 17209# ---------------------- 17210# Append the text in VALUE to the end of the definition contained in VAR. Take 17211# advantage of any shell optimizations that allow amortized linear growth over 17212# repeated appends, instead of the typical quadratic growth present in naive 17213# implementations. 17214if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17215 eval 'as_fn_append () 17216 { 17217 eval $1+=\$2 17218 }' 17219else 17220 as_fn_append () 17221 { 17222 eval $1=\$$1\$2 17223 } 17224fi # as_fn_append 17225 17226# as_fn_arith ARG... 17227# ------------------ 17228# Perform arithmetic evaluation on the ARGs, and store the result in the 17229# global $as_val. Take advantage of shells that can avoid forks. The arguments 17230# must be portable across $(()) and expr. 17231if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17232 eval 'as_fn_arith () 17233 { 17234 as_val=$(( $* )) 17235 }' 17236else 17237 as_fn_arith () 17238 { 17239 as_val=`expr "$@" || test $? -eq 1` 17240 } 17241fi # as_fn_arith 17242 17243 17244if expr a : '\(a\)' >/dev/null 2>&1 && 17245 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17246 as_expr=expr 17247else 17248 as_expr=false 17249fi 17250 17251if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17252 as_basename=basename 17253else 17254 as_basename=false 17255fi 17256 17257if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17258 as_dirname=dirname 17259else 17260 as_dirname=false 17261fi 17262 17263as_me=`$as_basename -- "$0" || 17264$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17265 X"$0" : 'X\(//\)$' \| \ 17266 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17267$as_echo X/"$0" | 17268 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17269 s//\1/ 17270 q 17271 } 17272 /^X\/\(\/\/\)$/{ 17273 s//\1/ 17274 q 17275 } 17276 /^X\/\(\/\).*/{ 17277 s//\1/ 17278 q 17279 } 17280 s/.*/./; q'` 17281 17282# Avoid depending upon Character Ranges. 17283as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17284as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17285as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17286as_cr_digits='0123456789' 17287as_cr_alnum=$as_cr_Letters$as_cr_digits 17288 17289ECHO_C= ECHO_N= ECHO_T= 17290case `echo -n x` in #((((( 17291-n*) 17292 case `echo 'xy\c'` in 17293 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17294 xy) ECHO_C='\c';; 17295 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17296 ECHO_T=' ';; 17297 esac;; 17298*) 17299 ECHO_N='-n';; 17300esac 17301 17302rm -f conf$$ conf$$.exe conf$$.file 17303if test -d conf$$.dir; then 17304 rm -f conf$$.dir/conf$$.file 17305else 17306 rm -f conf$$.dir 17307 mkdir conf$$.dir 2>/dev/null 17308fi 17309if (echo >conf$$.file) 2>/dev/null; then 17310 if ln -s conf$$.file conf$$ 2>/dev/null; then 17311 as_ln_s='ln -s' 17312 # ... but there are two gotchas: 17313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17315 # In both cases, we have to default to `cp -pR'. 17316 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17317 as_ln_s='cp -pR' 17318 elif ln conf$$.file conf$$ 2>/dev/null; then 17319 as_ln_s=ln 17320 else 17321 as_ln_s='cp -pR' 17322 fi 17323else 17324 as_ln_s='cp -pR' 17325fi 17326rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17327rmdir conf$$.dir 2>/dev/null 17328 17329 17330# as_fn_mkdir_p 17331# ------------- 17332# Create "$as_dir" as a directory, including parents if necessary. 17333as_fn_mkdir_p () 17334{ 17335 17336 case $as_dir in #( 17337 -*) as_dir=./$as_dir;; 17338 esac 17339 test -d "$as_dir" || eval $as_mkdir_p || { 17340 as_dirs= 17341 while :; do 17342 case $as_dir in #( 17343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17344 *) as_qdir=$as_dir;; 17345 esac 17346 as_dirs="'$as_qdir' $as_dirs" 17347 as_dir=`$as_dirname -- "$as_dir" || 17348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17349 X"$as_dir" : 'X\(//\)[^/]' \| \ 17350 X"$as_dir" : 'X\(//\)$' \| \ 17351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17352$as_echo X"$as_dir" | 17353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17354 s//\1/ 17355 q 17356 } 17357 /^X\(\/\/\)[^/].*/{ 17358 s//\1/ 17359 q 17360 } 17361 /^X\(\/\/\)$/{ 17362 s//\1/ 17363 q 17364 } 17365 /^X\(\/\).*/{ 17366 s//\1/ 17367 q 17368 } 17369 s/.*/./; q'` 17370 test -d "$as_dir" && break 17371 done 17372 test -z "$as_dirs" || eval "mkdir $as_dirs" 17373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17374 17375 17376} # as_fn_mkdir_p 17377if mkdir -p . 2>/dev/null; then 17378 as_mkdir_p='mkdir -p "$as_dir"' 17379else 17380 test -d ./-p && rmdir ./-p 17381 as_mkdir_p=false 17382fi 17383 17384 17385# as_fn_executable_p FILE 17386# ----------------------- 17387# Test if FILE is an executable regular file. 17388as_fn_executable_p () 17389{ 17390 test -f "$1" && test -x "$1" 17391} # as_fn_executable_p 17392as_test_x='test -x' 17393as_executable_p=as_fn_executable_p 17394 17395# Sed expression to map a string onto a valid CPP name. 17396as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17397 17398# Sed expression to map a string onto a valid variable name. 17399as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17400 17401 17402exec 6>&1 17403## ----------------------------------- ## 17404## Main body of $CONFIG_STATUS script. ## 17405## ----------------------------------- ## 17406_ASEOF 17407test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17408 17409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17410# Save the log message, to keep $0 and so on meaningful, and to 17411# report actual input values of CONFIG_FILES etc. instead of their 17412# values after options handling. 17413ac_log=" 17414This file was extended by ldns $as_me 1.6.17, which was 17415generated by GNU Autoconf 2.69. Invocation command line was 17416 17417 CONFIG_FILES = $CONFIG_FILES 17418 CONFIG_HEADERS = $CONFIG_HEADERS 17419 CONFIG_LINKS = $CONFIG_LINKS 17420 CONFIG_COMMANDS = $CONFIG_COMMANDS 17421 $ $0 $@ 17422 17423on `(hostname || uname -n) 2>/dev/null | sed 1q` 17424" 17425 17426_ACEOF 17427 17428case $ac_config_files in *" 17429"*) set x $ac_config_files; shift; ac_config_files=$*;; 17430esac 17431 17432case $ac_config_headers in *" 17433"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17434esac 17435 17436 17437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17438# Files that config.status was made for. 17439config_files="$ac_config_files" 17440config_headers="$ac_config_headers" 17441config_commands="$ac_config_commands" 17442 17443_ACEOF 17444 17445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17446ac_cs_usage="\ 17447\`$as_me' instantiates files and other configuration actions 17448from templates according to the current configuration. Unless the files 17449and actions are specified as TAGs, all are instantiated by default. 17450 17451Usage: $0 [OPTION]... [TAG]... 17452 17453 -h, --help print this help, then exit 17454 -V, --version print version number and configuration settings, then exit 17455 --config print configuration, then exit 17456 -q, --quiet, --silent 17457 do not print progress messages 17458 -d, --debug don't remove temporary files 17459 --recheck update $as_me by reconfiguring in the same conditions 17460 --file=FILE[:TEMPLATE] 17461 instantiate the configuration file FILE 17462 --header=FILE[:TEMPLATE] 17463 instantiate the configuration header FILE 17464 17465Configuration files: 17466$config_files 17467 17468Configuration headers: 17469$config_headers 17470 17471Configuration commands: 17472$config_commands 17473 17474Report bugs to <libdns@nlnetlabs.nl>." 17475 17476_ACEOF 17477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17478ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17479ac_cs_version="\\ 17480ldns config.status 1.6.17 17481configured by $0, generated by GNU Autoconf 2.69, 17482 with options \\"\$ac_cs_config\\" 17483 17484Copyright (C) 2012 Free Software Foundation, Inc. 17485This config.status script is free software; the Free Software Foundation 17486gives unlimited permission to copy, distribute and modify it." 17487 17488ac_pwd='$ac_pwd' 17489srcdir='$srcdir' 17490AWK='$AWK' 17491test -n "\$AWK" || AWK=awk 17492_ACEOF 17493 17494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17495# The default lists apply if the user does not specify any file. 17496ac_need_defaults=: 17497while test $# != 0 17498do 17499 case $1 in 17500 --*=?*) 17501 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17502 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17503 ac_shift=: 17504 ;; 17505 --*=) 17506 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17507 ac_optarg= 17508 ac_shift=: 17509 ;; 17510 *) 17511 ac_option=$1 17512 ac_optarg=$2 17513 ac_shift=shift 17514 ;; 17515 esac 17516 17517 case $ac_option in 17518 # Handling of the options. 17519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17520 ac_cs_recheck=: ;; 17521 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17522 $as_echo "$ac_cs_version"; exit ;; 17523 --config | --confi | --conf | --con | --co | --c ) 17524 $as_echo "$ac_cs_config"; exit ;; 17525 --debug | --debu | --deb | --de | --d | -d ) 17526 debug=: ;; 17527 --file | --fil | --fi | --f ) 17528 $ac_shift 17529 case $ac_optarg in 17530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17531 '') as_fn_error $? "missing file argument" ;; 17532 esac 17533 as_fn_append CONFIG_FILES " '$ac_optarg'" 17534 ac_need_defaults=false;; 17535 --header | --heade | --head | --hea ) 17536 $ac_shift 17537 case $ac_optarg in 17538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17539 esac 17540 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17541 ac_need_defaults=false;; 17542 --he | --h) 17543 # Conflict between --help and --header 17544 as_fn_error $? "ambiguous option: \`$1' 17545Try \`$0 --help' for more information.";; 17546 --help | --hel | -h ) 17547 $as_echo "$ac_cs_usage"; exit ;; 17548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17549 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17550 ac_cs_silent=: ;; 17551 17552 # This is an error. 17553 -*) as_fn_error $? "unrecognized option: \`$1' 17554Try \`$0 --help' for more information." ;; 17555 17556 *) as_fn_append ac_config_targets " $1" 17557 ac_need_defaults=false ;; 17558 17559 esac 17560 shift 17561done 17562 17563ac_configure_extra_args= 17564 17565if $ac_cs_silent; then 17566 exec 6>/dev/null 17567 ac_configure_extra_args="$ac_configure_extra_args --silent" 17568fi 17569 17570_ACEOF 17571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17572if \$ac_cs_recheck; then 17573 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17574 shift 17575 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17576 CONFIG_SHELL='$SHELL' 17577 export CONFIG_SHELL 17578 exec "\$@" 17579fi 17580 17581_ACEOF 17582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17583exec 5>>config.log 17584{ 17585 echo 17586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17587## Running $as_me. ## 17588_ASBOX 17589 $as_echo "$ac_log" 17590} >&5 17591 17592_ACEOF 17593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17594# 17595# INIT-COMMANDS 17596# 17597 17598 17599# The HP-UX ksh and POSIX shell print the target directory to stdout 17600# if CDPATH is set. 17601(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17602 17603sed_quote_subst='$sed_quote_subst' 17604double_quote_subst='$double_quote_subst' 17605delay_variable_subst='$delay_variable_subst' 17606macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17607macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17608enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17609enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17610pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17611enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17612SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17613ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17614PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17615host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17616host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17617host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17618build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17619build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17620build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17621SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17622Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17623GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17624EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17625FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17626LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17627NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17628LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17629max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17630ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17631exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17632lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17633lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17634lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17635lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17636lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17637reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17638reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17639OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17640deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17641file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17642file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17643want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17644DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17645sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17646AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17647AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17648archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17649STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17650RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17651old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17652old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17653old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17654lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17655CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17656CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17657compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17658GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17659lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17660lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17661lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17662lt_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"`' 17663nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17664lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17665objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17666MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17667lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17668lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17669lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17670lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17671lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17672need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17673MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17674DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17675NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17676LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17677OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17678OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17679libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17680shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17681extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17682archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17683enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17684export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17685whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17686compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17687old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17688old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17689archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17690archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17691module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17692module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17693with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17694allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17695no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17696hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17697hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17698hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17699hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17700hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17701hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17702hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17703inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17704link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17705always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17706export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17707exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17708include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17709prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17710postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17711file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17712variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17713need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17714need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17715version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17716runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17717shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17718shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17719libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17720library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17721soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17722install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17723postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17724postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17725finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17726finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17727hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17728sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17729sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17730hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17731enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17732enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17733enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17734old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17735striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17736 17737LTCC='$LTCC' 17738LTCFLAGS='$LTCFLAGS' 17739compiler='$compiler_DEFAULT' 17740 17741# A function that is used when there is no print builtin or printf. 17742func_fallback_echo () 17743{ 17744 eval 'cat <<_LTECHO_EOF 17745\$1 17746_LTECHO_EOF' 17747} 17748 17749# Quote evaled strings. 17750for var in SHELL \ 17751ECHO \ 17752PATH_SEPARATOR \ 17753SED \ 17754GREP \ 17755EGREP \ 17756FGREP \ 17757LD \ 17758NM \ 17759LN_S \ 17760lt_SP2NL \ 17761lt_NL2SP \ 17762reload_flag \ 17763OBJDUMP \ 17764deplibs_check_method \ 17765file_magic_cmd \ 17766file_magic_glob \ 17767want_nocaseglob \ 17768DLLTOOL \ 17769sharedlib_from_linklib_cmd \ 17770AR \ 17771AR_FLAGS \ 17772archiver_list_spec \ 17773STRIP \ 17774RANLIB \ 17775CC \ 17776CFLAGS \ 17777compiler \ 17778lt_cv_sys_global_symbol_pipe \ 17779lt_cv_sys_global_symbol_to_cdecl \ 17780lt_cv_sys_global_symbol_to_c_name_address \ 17781lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17782nm_file_list_spec \ 17783lt_prog_compiler_no_builtin_flag \ 17784lt_prog_compiler_pic \ 17785lt_prog_compiler_wl \ 17786lt_prog_compiler_static \ 17787lt_cv_prog_compiler_c_o \ 17788need_locks \ 17789MANIFEST_TOOL \ 17790DSYMUTIL \ 17791NMEDIT \ 17792LIPO \ 17793OTOOL \ 17794OTOOL64 \ 17795shrext_cmds \ 17796export_dynamic_flag_spec \ 17797whole_archive_flag_spec \ 17798compiler_needs_object \ 17799with_gnu_ld \ 17800allow_undefined_flag \ 17801no_undefined_flag \ 17802hardcode_libdir_flag_spec \ 17803hardcode_libdir_separator \ 17804exclude_expsyms \ 17805include_expsyms \ 17806file_list_spec \ 17807variables_saved_for_relink \ 17808libname_spec \ 17809library_names_spec \ 17810soname_spec \ 17811install_override_mode \ 17812finish_eval \ 17813old_striplib \ 17814striplib; do 17815 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17816 *[\\\\\\\`\\"\\\$]*) 17817 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17818 ;; 17819 *) 17820 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17821 ;; 17822 esac 17823done 17824 17825# Double-quote double-evaled strings. 17826for var in reload_cmds \ 17827old_postinstall_cmds \ 17828old_postuninstall_cmds \ 17829old_archive_cmds \ 17830extract_expsyms_cmds \ 17831old_archive_from_new_cmds \ 17832old_archive_from_expsyms_cmds \ 17833archive_cmds \ 17834archive_expsym_cmds \ 17835module_cmds \ 17836module_expsym_cmds \ 17837export_symbols_cmds \ 17838prelink_cmds \ 17839postlink_cmds \ 17840postinstall_cmds \ 17841postuninstall_cmds \ 17842finish_cmds \ 17843sys_lib_search_path_spec \ 17844sys_lib_dlsearch_path_spec; do 17845 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17846 *[\\\\\\\`\\"\\\$]*) 17847 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17848 ;; 17849 *) 17850 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17851 ;; 17852 esac 17853done 17854 17855ac_aux_dir='$ac_aux_dir' 17856xsi_shell='$xsi_shell' 17857lt_shell_append='$lt_shell_append' 17858 17859# See if we are running on zsh, and set the options which allow our 17860# commands through without removal of \ escapes INIT. 17861if test -n "\${ZSH_VERSION+set}" ; then 17862 setopt NO_GLOB_SUBST 17863fi 17864 17865 17866 PACKAGE='$PACKAGE' 17867 VERSION='$VERSION' 17868 TIMESTAMP='$TIMESTAMP' 17869 RM='$RM' 17870 ofile='$ofile' 17871 17872 17873 17874 17875_ACEOF 17876 17877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17878 17879# Handling of arguments. 17880for ac_config_target in $ac_config_targets 17881do 17882 case $ac_config_target in 17883 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17884 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 17885 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;; 17886 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;; 17887 17888 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17889 esac 17890done 17891 17892 17893# If the user did not use the arguments to specify the items to instantiate, 17894# then the envvar interface is used. Set only those that are not. 17895# We use the long form for the default assignment because of an extremely 17896# bizarre bug on SunOS 4.1.3. 17897if $ac_need_defaults; then 17898 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17899 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17900 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17901fi 17902 17903# Have a temporary directory for convenience. Make it in the build tree 17904# simply because there is no reason against having it here, and in addition, 17905# creating and moving files from /tmp can sometimes cause problems. 17906# Hook for its removal unless debugging. 17907# Note that there is a small window in which the directory will not be cleaned: 17908# after its creation but before its name has been assigned to `$tmp'. 17909$debug || 17910{ 17911 tmp= ac_tmp= 17912 trap 'exit_status=$? 17913 : "${ac_tmp:=$tmp}" 17914 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17915' 0 17916 trap 'as_fn_exit 1' 1 2 13 15 17917} 17918# Create a (secure) tmp directory for tmp files. 17919 17920{ 17921 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17922 test -d "$tmp" 17923} || 17924{ 17925 tmp=./conf$$-$RANDOM 17926 (umask 077 && mkdir "$tmp") 17927} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17928ac_tmp=$tmp 17929 17930# Set up the scripts for CONFIG_FILES section. 17931# No need to generate them if there are no CONFIG_FILES. 17932# This happens for instance with `./config.status config.h'. 17933if test -n "$CONFIG_FILES"; then 17934 17935 17936ac_cr=`echo X | tr X '\015'` 17937# On cygwin, bash can eat \r inside `` if the user requested igncr. 17938# But we know of no other shell where ac_cr would be empty at this 17939# point, so we can use a bashism as a fallback. 17940if test "x$ac_cr" = x; then 17941 eval ac_cr=\$\'\\r\' 17942fi 17943ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17944if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17945 ac_cs_awk_cr='\\r' 17946else 17947 ac_cs_awk_cr=$ac_cr 17948fi 17949 17950echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17951_ACEOF 17952 17953 17954{ 17955 echo "cat >conf$$subs.awk <<_ACEOF" && 17956 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17957 echo "_ACEOF" 17958} >conf$$subs.sh || 17959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17960ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17961ac_delim='%!_!# ' 17962for ac_last_try in false false false false false :; do 17963 . ./conf$$subs.sh || 17964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17965 17966 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17967 if test $ac_delim_n = $ac_delim_num; then 17968 break 17969 elif $ac_last_try; then 17970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17971 else 17972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17973 fi 17974done 17975rm -f conf$$subs.sh 17976 17977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17978cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17979_ACEOF 17980sed -n ' 17981h 17982s/^/S["/; s/!.*/"]=/ 17983p 17984g 17985s/^[^!]*!// 17986:repl 17987t repl 17988s/'"$ac_delim"'$// 17989t delim 17990:nl 17991h 17992s/\(.\{148\}\)..*/\1/ 17993t more1 17994s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17995p 17996n 17997b repl 17998:more1 17999s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18000p 18001g 18002s/.\{148\}// 18003t nl 18004:delim 18005h 18006s/\(.\{148\}\)..*/\1/ 18007t more2 18008s/["\\]/\\&/g; s/^/"/; s/$/"/ 18009p 18010b 18011:more2 18012s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18013p 18014g 18015s/.\{148\}// 18016t delim 18017' <conf$$subs.awk | sed ' 18018/^[^""]/{ 18019 N 18020 s/\n// 18021} 18022' >>$CONFIG_STATUS || ac_write_fail=1 18023rm -f conf$$subs.awk 18024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18025_ACAWK 18026cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18027 for (key in S) S_is_set[key] = 1 18028 FS = "" 18029 18030} 18031{ 18032 line = $ 0 18033 nfields = split(line, field, "@") 18034 substed = 0 18035 len = length(field[1]) 18036 for (i = 2; i < nfields; i++) { 18037 key = field[i] 18038 keylen = length(key) 18039 if (S_is_set[key]) { 18040 value = S[key] 18041 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18042 len += length(value) + length(field[++i]) 18043 substed = 1 18044 } else 18045 len += 1 + keylen 18046 } 18047 18048 print line 18049} 18050 18051_ACAWK 18052_ACEOF 18053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18054if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18055 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18056else 18057 cat 18058fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18059 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18060_ACEOF 18061 18062# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18063# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18064# trailing colons and then remove the whole line if VPATH becomes empty 18065# (actually we leave an empty line to preserve line numbers). 18066if test "x$srcdir" = x.; then 18067 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18068h 18069s/// 18070s/^/:/ 18071s/[ ]*$/:/ 18072s/:\$(srcdir):/:/g 18073s/:\${srcdir}:/:/g 18074s/:@srcdir@:/:/g 18075s/^:*// 18076s/:*$// 18077x 18078s/\(=[ ]*\).*/\1/ 18079G 18080s/\n// 18081s/^[^=]*=[ ]*$// 18082}' 18083fi 18084 18085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18086fi # test -n "$CONFIG_FILES" 18087 18088# Set up the scripts for CONFIG_HEADERS section. 18089# No need to generate them if there are no CONFIG_HEADERS. 18090# This happens for instance with `./config.status Makefile'. 18091if test -n "$CONFIG_HEADERS"; then 18092cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18093BEGIN { 18094_ACEOF 18095 18096# Transform confdefs.h into an awk script `defines.awk', embedded as 18097# here-document in config.status, that substitutes the proper values into 18098# config.h.in to produce config.h. 18099 18100# Create a delimiter string that does not exist in confdefs.h, to ease 18101# handling of long lines. 18102ac_delim='%!_!# ' 18103for ac_last_try in false false :; do 18104 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18105 if test -z "$ac_tt"; then 18106 break 18107 elif $ac_last_try; then 18108 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18109 else 18110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18111 fi 18112done 18113 18114# For the awk script, D is an array of macro values keyed by name, 18115# likewise P contains macro parameters if any. Preserve backslash 18116# newline sequences. 18117 18118ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18119sed -n ' 18120s/.\{148\}/&'"$ac_delim"'/g 18121t rset 18122:rset 18123s/^[ ]*#[ ]*define[ ][ ]*/ / 18124t def 18125d 18126:def 18127s/\\$// 18128t bsnl 18129s/["\\]/\\&/g 18130s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18131D["\1"]=" \3"/p 18132s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18133d 18134:bsnl 18135s/["\\]/\\&/g 18136s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18137D["\1"]=" \3\\\\\\n"\\/p 18138t cont 18139s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18140t cont 18141d 18142:cont 18143n 18144s/.\{148\}/&'"$ac_delim"'/g 18145t clear 18146:clear 18147s/\\$// 18148t bsnlc 18149s/["\\]/\\&/g; s/^/"/; s/$/"/p 18150d 18151:bsnlc 18152s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18153b cont 18154' <confdefs.h | sed ' 18155s/'"$ac_delim"'/"\\\ 18156"/g' >>$CONFIG_STATUS || ac_write_fail=1 18157 18158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18159 for (key in D) D_is_set[key] = 1 18160 FS = "" 18161} 18162/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18163 line = \$ 0 18164 split(line, arg, " ") 18165 if (arg[1] == "#") { 18166 defundef = arg[2] 18167 mac1 = arg[3] 18168 } else { 18169 defundef = substr(arg[1], 2) 18170 mac1 = arg[2] 18171 } 18172 split(mac1, mac2, "(") #) 18173 macro = mac2[1] 18174 prefix = substr(line, 1, index(line, defundef) - 1) 18175 if (D_is_set[macro]) { 18176 # Preserve the white space surrounding the "#". 18177 print prefix "define", macro P[macro] D[macro] 18178 next 18179 } else { 18180 # Replace #undef with comments. This is necessary, for example, 18181 # in the case of _POSIX_SOURCE, which is predefined and required 18182 # on some systems where configure will not decide to define it. 18183 if (defundef == "undef") { 18184 print "/*", prefix defundef, macro, "*/" 18185 next 18186 } 18187 } 18188} 18189{ print } 18190_ACAWK 18191_ACEOF 18192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18193 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18194fi # test -n "$CONFIG_HEADERS" 18195 18196 18197eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18198shift 18199for ac_tag 18200do 18201 case $ac_tag in 18202 :[FHLC]) ac_mode=$ac_tag; continue;; 18203 esac 18204 case $ac_mode$ac_tag in 18205 :[FHL]*:*);; 18206 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18207 :[FH]-) ac_tag=-:-;; 18208 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18209 esac 18210 ac_save_IFS=$IFS 18211 IFS=: 18212 set x $ac_tag 18213 IFS=$ac_save_IFS 18214 shift 18215 ac_file=$1 18216 shift 18217 18218 case $ac_mode in 18219 :L) ac_source=$1;; 18220 :[FH]) 18221 ac_file_inputs= 18222 for ac_f 18223 do 18224 case $ac_f in 18225 -) ac_f="$ac_tmp/stdin";; 18226 *) # Look for the file first in the build tree, then in the source tree 18227 # (if the path is not absolute). The absolute path cannot be DOS-style, 18228 # because $ac_f cannot contain `:'. 18229 test -f "$ac_f" || 18230 case $ac_f in 18231 [\\/$]*) false;; 18232 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18233 esac || 18234 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18235 esac 18236 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18237 as_fn_append ac_file_inputs " '$ac_f'" 18238 done 18239 18240 # Let's still pretend it is `configure' which instantiates (i.e., don't 18241 # use $as_me), people would be surprised to read: 18242 # /* config.h. Generated by config.status. */ 18243 configure_input='Generated from '` 18244 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18245 `' by configure.' 18246 if test x"$ac_file" != x-; then 18247 configure_input="$ac_file. $configure_input" 18248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18249$as_echo "$as_me: creating $ac_file" >&6;} 18250 fi 18251 # Neutralize special characters interpreted by sed in replacement strings. 18252 case $configure_input in #( 18253 *\&* | *\|* | *\\* ) 18254 ac_sed_conf_input=`$as_echo "$configure_input" | 18255 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18256 *) ac_sed_conf_input=$configure_input;; 18257 esac 18258 18259 case $ac_tag in 18260 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18262 esac 18263 ;; 18264 esac 18265 18266 ac_dir=`$as_dirname -- "$ac_file" || 18267$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18268 X"$ac_file" : 'X\(//\)[^/]' \| \ 18269 X"$ac_file" : 'X\(//\)$' \| \ 18270 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18271$as_echo X"$ac_file" | 18272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18273 s//\1/ 18274 q 18275 } 18276 /^X\(\/\/\)[^/].*/{ 18277 s//\1/ 18278 q 18279 } 18280 /^X\(\/\/\)$/{ 18281 s//\1/ 18282 q 18283 } 18284 /^X\(\/\).*/{ 18285 s//\1/ 18286 q 18287 } 18288 s/.*/./; q'` 18289 as_dir="$ac_dir"; as_fn_mkdir_p 18290 ac_builddir=. 18291 18292case "$ac_dir" in 18293.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18294*) 18295 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18296 # A ".." for each directory in $ac_dir_suffix. 18297 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18298 case $ac_top_builddir_sub in 18299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18301 esac ;; 18302esac 18303ac_abs_top_builddir=$ac_pwd 18304ac_abs_builddir=$ac_pwd$ac_dir_suffix 18305# for backward compatibility: 18306ac_top_builddir=$ac_top_build_prefix 18307 18308case $srcdir in 18309 .) # We are building in place. 18310 ac_srcdir=. 18311 ac_top_srcdir=$ac_top_builddir_sub 18312 ac_abs_top_srcdir=$ac_pwd ;; 18313 [\\/]* | ?:[\\/]* ) # Absolute name. 18314 ac_srcdir=$srcdir$ac_dir_suffix; 18315 ac_top_srcdir=$srcdir 18316 ac_abs_top_srcdir=$srcdir ;; 18317 *) # Relative name. 18318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18319 ac_top_srcdir=$ac_top_build_prefix$srcdir 18320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18321esac 18322ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18323 18324 18325 case $ac_mode in 18326 :F) 18327 # 18328 # CONFIG_FILE 18329 # 18330 18331_ACEOF 18332 18333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18334# If the template does not know about datarootdir, expand it. 18335# FIXME: This hack should be removed a few years after 2.60. 18336ac_datarootdir_hack=; ac_datarootdir_seen= 18337ac_sed_dataroot=' 18338/datarootdir/ { 18339 p 18340 q 18341} 18342/@datadir@/p 18343/@docdir@/p 18344/@infodir@/p 18345/@localedir@/p 18346/@mandir@/p' 18347case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18348*datarootdir*) ac_datarootdir_seen=yes;; 18349*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18351$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18352_ACEOF 18353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18354 ac_datarootdir_hack=' 18355 s&@datadir@&$datadir&g 18356 s&@docdir@&$docdir&g 18357 s&@infodir@&$infodir&g 18358 s&@localedir@&$localedir&g 18359 s&@mandir@&$mandir&g 18360 s&\\\${datarootdir}&$datarootdir&g' ;; 18361esac 18362_ACEOF 18363 18364# Neutralize VPATH when `$srcdir' = `.'. 18365# Shell code in configure.ac might set extrasub. 18366# FIXME: do we really want to maintain this feature? 18367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18368ac_sed_extra="$ac_vpsub 18369$extrasub 18370_ACEOF 18371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18372:t 18373/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18374s|@configure_input@|$ac_sed_conf_input|;t t 18375s&@top_builddir@&$ac_top_builddir_sub&;t t 18376s&@top_build_prefix@&$ac_top_build_prefix&;t t 18377s&@srcdir@&$ac_srcdir&;t t 18378s&@abs_srcdir@&$ac_abs_srcdir&;t t 18379s&@top_srcdir@&$ac_top_srcdir&;t t 18380s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18381s&@builddir@&$ac_builddir&;t t 18382s&@abs_builddir@&$ac_abs_builddir&;t t 18383s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18384$ac_datarootdir_hack 18385" 18386eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18387 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18388 18389test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18390 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18392 "$ac_tmp/out"`; test -z "$ac_out"; } && 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18394which seems to be undefined. Please make sure it is defined" >&5 18395$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18396which seems to be undefined. Please make sure it is defined" >&2;} 18397 18398 rm -f "$ac_tmp/stdin" 18399 case $ac_file in 18400 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18401 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18402 esac \ 18403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18404 ;; 18405 :H) 18406 # 18407 # CONFIG_HEADER 18408 # 18409 if test x"$ac_file" != x-; then 18410 { 18411 $as_echo "/* $configure_input */" \ 18412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18413 } >"$ac_tmp/config.h" \ 18414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18415 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18416 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18417$as_echo "$as_me: $ac_file is unchanged" >&6;} 18418 else 18419 rm -f "$ac_file" 18420 mv "$ac_tmp/config.h" "$ac_file" \ 18421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18422 fi 18423 else 18424 $as_echo "/* $configure_input */" \ 18425 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18426 || as_fn_error $? "could not create -" "$LINENO" 5 18427 fi 18428 ;; 18429 18430 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18431$as_echo "$as_me: executing $ac_file commands" >&6;} 18432 ;; 18433 esac 18434 18435 18436 case $ac_file$ac_mode in 18437 "libtool":C) 18438 18439 # See if we are running on zsh, and set the options which allow our 18440 # commands through without removal of \ escapes. 18441 if test -n "${ZSH_VERSION+set}" ; then 18442 setopt NO_GLOB_SUBST 18443 fi 18444 18445 cfgfile="${ofile}T" 18446 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18447 $RM "$cfgfile" 18448 18449 cat <<_LT_EOF >> "$cfgfile" 18450#! $SHELL 18451 18452# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18453# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18454# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18455# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18456# 18457# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18458# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18459# Foundation, Inc. 18460# Written by Gordon Matzigkeit, 1996 18461# 18462# This file is part of GNU Libtool. 18463# 18464# GNU Libtool is free software; you can redistribute it and/or 18465# modify it under the terms of the GNU General Public License as 18466# published by the Free Software Foundation; either version 2 of 18467# the License, or (at your option) any later version. 18468# 18469# As a special exception to the GNU General Public License, 18470# if you distribute this file as part of a program or library that 18471# is built using GNU Libtool, you may include this file under the 18472# same distribution terms that you use for the rest of that program. 18473# 18474# GNU Libtool is distributed in the hope that it will be useful, 18475# but WITHOUT ANY WARRANTY; without even the implied warranty of 18476# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18477# GNU General Public License for more details. 18478# 18479# You should have received a copy of the GNU General Public License 18480# along with GNU Libtool; see the file COPYING. If not, a copy 18481# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18482# obtained by writing to the Free Software Foundation, Inc., 18483# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18484 18485 18486# The names of the tagged configurations supported by this script. 18487available_tags="" 18488 18489# ### BEGIN LIBTOOL CONFIG 18490 18491# Which release of libtool.m4 was used? 18492macro_version=$macro_version 18493macro_revision=$macro_revision 18494 18495# Whether or not to build shared libraries. 18496build_libtool_libs=$enable_shared 18497 18498# Whether or not to build static libraries. 18499build_old_libs=$enable_static 18500 18501# What type of objects to build. 18502pic_mode=$pic_mode 18503 18504# Whether or not to optimize for fast installation. 18505fast_install=$enable_fast_install 18506 18507# Shell to use when invoking shell scripts. 18508SHELL=$lt_SHELL 18509 18510# An echo program that protects backslashes. 18511ECHO=$lt_ECHO 18512 18513# The PATH separator for the build system. 18514PATH_SEPARATOR=$lt_PATH_SEPARATOR 18515 18516# The host system. 18517host_alias=$host_alias 18518host=$host 18519host_os=$host_os 18520 18521# The build system. 18522build_alias=$build_alias 18523build=$build 18524build_os=$build_os 18525 18526# A sed program that does not truncate output. 18527SED=$lt_SED 18528 18529# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18530Xsed="\$SED -e 1s/^X//" 18531 18532# A grep program that handles long lines. 18533GREP=$lt_GREP 18534 18535# An ERE matcher. 18536EGREP=$lt_EGREP 18537 18538# A literal string matcher. 18539FGREP=$lt_FGREP 18540 18541# A BSD- or MS-compatible name lister. 18542NM=$lt_NM 18543 18544# Whether we need soft or hard links. 18545LN_S=$lt_LN_S 18546 18547# What is the maximum length of a command? 18548max_cmd_len=$max_cmd_len 18549 18550# Object file suffix (normally "o"). 18551objext=$ac_objext 18552 18553# Executable file suffix (normally ""). 18554exeext=$exeext 18555 18556# whether the shell understands "unset". 18557lt_unset=$lt_unset 18558 18559# turn spaces into newlines. 18560SP2NL=$lt_lt_SP2NL 18561 18562# turn newlines into spaces. 18563NL2SP=$lt_lt_NL2SP 18564 18565# convert \$build file names to \$host format. 18566to_host_file_cmd=$lt_cv_to_host_file_cmd 18567 18568# convert \$build files to toolchain format. 18569to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18570 18571# An object symbol dumper. 18572OBJDUMP=$lt_OBJDUMP 18573 18574# Method to check whether dependent libraries are shared objects. 18575deplibs_check_method=$lt_deplibs_check_method 18576 18577# Command to use when deplibs_check_method = "file_magic". 18578file_magic_cmd=$lt_file_magic_cmd 18579 18580# How to find potential files when deplibs_check_method = "file_magic". 18581file_magic_glob=$lt_file_magic_glob 18582 18583# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18584want_nocaseglob=$lt_want_nocaseglob 18585 18586# DLL creation program. 18587DLLTOOL=$lt_DLLTOOL 18588 18589# Command to associate shared and link libraries. 18590sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18591 18592# The archiver. 18593AR=$lt_AR 18594 18595# Flags to create an archive. 18596AR_FLAGS=$lt_AR_FLAGS 18597 18598# How to feed a file listing to the archiver. 18599archiver_list_spec=$lt_archiver_list_spec 18600 18601# A symbol stripping program. 18602STRIP=$lt_STRIP 18603 18604# Commands used to install an old-style archive. 18605RANLIB=$lt_RANLIB 18606old_postinstall_cmds=$lt_old_postinstall_cmds 18607old_postuninstall_cmds=$lt_old_postuninstall_cmds 18608 18609# Whether to use a lock for old archive extraction. 18610lock_old_archive_extraction=$lock_old_archive_extraction 18611 18612# A C compiler. 18613LTCC=$lt_CC 18614 18615# LTCC compiler flags. 18616LTCFLAGS=$lt_CFLAGS 18617 18618# Take the output of nm and produce a listing of raw symbols and C names. 18619global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18620 18621# Transform the output of nm in a proper C declaration. 18622global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18623 18624# Transform the output of nm in a C name address pair. 18625global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18626 18627# Transform the output of nm in a C name address pair when lib prefix is needed. 18628global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18629 18630# Specify filename containing input files for \$NM. 18631nm_file_list_spec=$lt_nm_file_list_spec 18632 18633# The root where to search for dependent libraries,and in which our libraries should be installed. 18634lt_sysroot=$lt_sysroot 18635 18636# The name of the directory that contains temporary libtool files. 18637objdir=$objdir 18638 18639# Used to examine libraries when file_magic_cmd begins with "file". 18640MAGIC_CMD=$MAGIC_CMD 18641 18642# Must we lock files when doing compilation? 18643need_locks=$lt_need_locks 18644 18645# Manifest tool. 18646MANIFEST_TOOL=$lt_MANIFEST_TOOL 18647 18648# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18649DSYMUTIL=$lt_DSYMUTIL 18650 18651# Tool to change global to local symbols on Mac OS X. 18652NMEDIT=$lt_NMEDIT 18653 18654# Tool to manipulate fat objects and archives on Mac OS X. 18655LIPO=$lt_LIPO 18656 18657# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18658OTOOL=$lt_OTOOL 18659 18660# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18661OTOOL64=$lt_OTOOL64 18662 18663# Old archive suffix (normally "a"). 18664libext=$libext 18665 18666# Shared library suffix (normally ".so"). 18667shrext_cmds=$lt_shrext_cmds 18668 18669# The commands to extract the exported symbol list from a shared archive. 18670extract_expsyms_cmds=$lt_extract_expsyms_cmds 18671 18672# Variables whose values should be saved in libtool wrapper scripts and 18673# restored at link time. 18674variables_saved_for_relink=$lt_variables_saved_for_relink 18675 18676# Do we need the "lib" prefix for modules? 18677need_lib_prefix=$need_lib_prefix 18678 18679# Do we need a version for libraries? 18680need_version=$need_version 18681 18682# Library versioning type. 18683version_type=$version_type 18684 18685# Shared library runtime path variable. 18686runpath_var=$runpath_var 18687 18688# Shared library path variable. 18689shlibpath_var=$shlibpath_var 18690 18691# Is shlibpath searched before the hard-coded library search path? 18692shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18693 18694# Format of library name prefix. 18695libname_spec=$lt_libname_spec 18696 18697# List of archive names. First name is the real one, the rest are links. 18698# The last name is the one that the linker finds with -lNAME 18699library_names_spec=$lt_library_names_spec 18700 18701# The coded name of the library, if different from the real name. 18702soname_spec=$lt_soname_spec 18703 18704# Permission mode override for installation of shared libraries. 18705install_override_mode=$lt_install_override_mode 18706 18707# Command to use after installation of a shared archive. 18708postinstall_cmds=$lt_postinstall_cmds 18709 18710# Command to use after uninstallation of a shared archive. 18711postuninstall_cmds=$lt_postuninstall_cmds 18712 18713# Commands used to finish a libtool library installation in a directory. 18714finish_cmds=$lt_finish_cmds 18715 18716# As "finish_cmds", except a single script fragment to be evaled but 18717# not shown. 18718finish_eval=$lt_finish_eval 18719 18720# Whether we should hardcode library paths into libraries. 18721hardcode_into_libs=$hardcode_into_libs 18722 18723# Compile-time system search path for libraries. 18724sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18725 18726# Run-time system search path for libraries. 18727sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18728 18729# Whether dlopen is supported. 18730dlopen_support=$enable_dlopen 18731 18732# Whether dlopen of programs is supported. 18733dlopen_self=$enable_dlopen_self 18734 18735# Whether dlopen of statically linked programs is supported. 18736dlopen_self_static=$enable_dlopen_self_static 18737 18738# Commands to strip libraries. 18739old_striplib=$lt_old_striplib 18740striplib=$lt_striplib 18741 18742 18743# The linker used to build libraries. 18744LD=$lt_LD 18745 18746# How to create reloadable object files. 18747reload_flag=$lt_reload_flag 18748reload_cmds=$lt_reload_cmds 18749 18750# Commands used to build an old-style archive. 18751old_archive_cmds=$lt_old_archive_cmds 18752 18753# A language specific compiler. 18754CC=$lt_compiler 18755 18756# Is the compiler the GNU compiler? 18757with_gcc=$GCC 18758 18759# Compiler flag to turn off builtin functions. 18760no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18761 18762# Additional compiler flags for building library objects. 18763pic_flag=$lt_lt_prog_compiler_pic 18764 18765# How to pass a linker flag through the compiler. 18766wl=$lt_lt_prog_compiler_wl 18767 18768# Compiler flag to prevent dynamic linking. 18769link_static_flag=$lt_lt_prog_compiler_static 18770 18771# Does compiler simultaneously support -c and -o options? 18772compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18773 18774# Whether or not to add -lc for building shared libraries. 18775build_libtool_need_lc=$archive_cmds_need_lc 18776 18777# Whether or not to disallow shared libs when runtime libs are static. 18778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18779 18780# Compiler flag to allow reflexive dlopens. 18781export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18782 18783# Compiler flag to generate shared objects directly from archives. 18784whole_archive_flag_spec=$lt_whole_archive_flag_spec 18785 18786# Whether the compiler copes with passing no objects directly. 18787compiler_needs_object=$lt_compiler_needs_object 18788 18789# Create an old-style archive from a shared archive. 18790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18791 18792# Create a temporary old-style archive to link instead of a shared archive. 18793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18794 18795# Commands used to build a shared archive. 18796archive_cmds=$lt_archive_cmds 18797archive_expsym_cmds=$lt_archive_expsym_cmds 18798 18799# Commands used to build a loadable module if different from building 18800# a shared archive. 18801module_cmds=$lt_module_cmds 18802module_expsym_cmds=$lt_module_expsym_cmds 18803 18804# Whether we are building with GNU ld or not. 18805with_gnu_ld=$lt_with_gnu_ld 18806 18807# Flag that allows shared libraries with undefined symbols to be built. 18808allow_undefined_flag=$lt_allow_undefined_flag 18809 18810# Flag that enforces no undefined symbols. 18811no_undefined_flag=$lt_no_undefined_flag 18812 18813# Flag to hardcode \$libdir into a binary during linking. 18814# This must work even if \$libdir does not exist 18815hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18816 18817# Whether we need a single "-rpath" flag with a separated argument. 18818hardcode_libdir_separator=$lt_hardcode_libdir_separator 18819 18820# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18821# DIR into the resulting binary. 18822hardcode_direct=$hardcode_direct 18823 18824# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18825# DIR into the resulting binary and the resulting library dependency is 18826# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18827# library is relocated. 18828hardcode_direct_absolute=$hardcode_direct_absolute 18829 18830# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18831# into the resulting binary. 18832hardcode_minus_L=$hardcode_minus_L 18833 18834# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18835# into the resulting binary. 18836hardcode_shlibpath_var=$hardcode_shlibpath_var 18837 18838# Set to "yes" if building a shared library automatically hardcodes DIR 18839# into the library and all subsequent libraries and executables linked 18840# against it. 18841hardcode_automatic=$hardcode_automatic 18842 18843# Set to yes if linker adds runtime paths of dependent libraries 18844# to runtime path list. 18845inherit_rpath=$inherit_rpath 18846 18847# Whether libtool must link a program against all its dependency libraries. 18848link_all_deplibs=$link_all_deplibs 18849 18850# Set to "yes" if exported symbols are required. 18851always_export_symbols=$always_export_symbols 18852 18853# The commands to list exported symbols. 18854export_symbols_cmds=$lt_export_symbols_cmds 18855 18856# Symbols that should not be listed in the preloaded symbols. 18857exclude_expsyms=$lt_exclude_expsyms 18858 18859# Symbols that must always be exported. 18860include_expsyms=$lt_include_expsyms 18861 18862# Commands necessary for linking programs (against libraries) with templates. 18863prelink_cmds=$lt_prelink_cmds 18864 18865# Commands necessary for finishing linking programs. 18866postlink_cmds=$lt_postlink_cmds 18867 18868# Specify filename containing input files. 18869file_list_spec=$lt_file_list_spec 18870 18871# How to hardcode a shared library path into an executable. 18872hardcode_action=$hardcode_action 18873 18874# ### END LIBTOOL CONFIG 18875 18876_LT_EOF 18877 18878 case $host_os in 18879 aix3*) 18880 cat <<\_LT_EOF >> "$cfgfile" 18881# AIX sometimes has problems with the GCC collect2 program. For some 18882# reason, if we set the COLLECT_NAMES environment variable, the problems 18883# vanish in a puff of smoke. 18884if test "X${COLLECT_NAMES+set}" != Xset; then 18885 COLLECT_NAMES= 18886 export COLLECT_NAMES 18887fi 18888_LT_EOF 18889 ;; 18890 esac 18891 18892 18893ltmain="$ac_aux_dir/ltmain.sh" 18894 18895 18896 # We use sed instead of cat because bash on DJGPP gets confused if 18897 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18898 # text mode, it properly converts lines to CR/LF. This bash problem 18899 # is reportedly fixed, but why not run on old versions too? 18900 sed '$q' "$ltmain" >> "$cfgfile" \ 18901 || (rm -f "$cfgfile"; exit 1) 18902 18903 if test x"$xsi_shell" = xyes; then 18904 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18905func_dirname ()\ 18906{\ 18907\ case ${1} in\ 18908\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18909\ * ) func_dirname_result="${3}" ;;\ 18910\ esac\ 18911} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18912 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18914test 0 -eq $? || _lt_function_replace_fail=: 18915 18916 18917 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18918func_basename ()\ 18919{\ 18920\ func_basename_result="${1##*/}"\ 18921} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18922 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18924test 0 -eq $? || _lt_function_replace_fail=: 18925 18926 18927 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18928func_dirname_and_basename ()\ 18929{\ 18930\ case ${1} in\ 18931\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18932\ * ) func_dirname_result="${3}" ;;\ 18933\ esac\ 18934\ func_basename_result="${1##*/}"\ 18935} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18938test 0 -eq $? || _lt_function_replace_fail=: 18939 18940 18941 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18942func_stripname ()\ 18943{\ 18944\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18945\ # positional parameters, so assign one to ordinary parameter first.\ 18946\ func_stripname_result=${3}\ 18947\ func_stripname_result=${func_stripname_result#"${1}"}\ 18948\ func_stripname_result=${func_stripname_result%"${2}"}\ 18949} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18950 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18952test 0 -eq $? || _lt_function_replace_fail=: 18953 18954 18955 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18956func_split_long_opt ()\ 18957{\ 18958\ func_split_long_opt_name=${1%%=*}\ 18959\ func_split_long_opt_arg=${1#*=}\ 18960} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18961 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18963test 0 -eq $? || _lt_function_replace_fail=: 18964 18965 18966 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18967func_split_short_opt ()\ 18968{\ 18969\ func_split_short_opt_arg=${1#??}\ 18970\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18971} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18972 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18974test 0 -eq $? || _lt_function_replace_fail=: 18975 18976 18977 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18978func_lo2o ()\ 18979{\ 18980\ case ${1} in\ 18981\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18982\ *) func_lo2o_result=${1} ;;\ 18983\ esac\ 18984} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18985 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18987test 0 -eq $? || _lt_function_replace_fail=: 18988 18989 18990 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18991func_xform ()\ 18992{\ 18993 func_xform_result=${1%.*}.lo\ 18994} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18995 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18996 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18997test 0 -eq $? || _lt_function_replace_fail=: 18998 18999 19000 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19001func_arith ()\ 19002{\ 19003 func_arith_result=$(( $* ))\ 19004} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19005 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19007test 0 -eq $? || _lt_function_replace_fail=: 19008 19009 19010 sed -e '/^func_len ()$/,/^} # func_len /c\ 19011func_len ()\ 19012{\ 19013 func_len_result=${#1}\ 19014} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19015 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19017test 0 -eq $? || _lt_function_replace_fail=: 19018 19019fi 19020 19021if test x"$lt_shell_append" = xyes; then 19022 sed -e '/^func_append ()$/,/^} # func_append /c\ 19023func_append ()\ 19024{\ 19025 eval "${1}+=\\${2}"\ 19026} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19027 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19029test 0 -eq $? || _lt_function_replace_fail=: 19030 19031 19032 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19033func_append_quoted ()\ 19034{\ 19035\ func_quote_for_eval "${2}"\ 19036\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19037} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19038 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19040test 0 -eq $? || _lt_function_replace_fail=: 19041 19042 19043 # Save a `func_append' function call where possible by direct use of '+=' 19044 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19045 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19047 test 0 -eq $? || _lt_function_replace_fail=: 19048else 19049 # Save a `func_append' function call even when '+=' is not available 19050 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19051 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19053 test 0 -eq $? || _lt_function_replace_fail=: 19054fi 19055 19056if test x"$_lt_function_replace_fail" = x":"; then 19057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19058$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19059fi 19060 19061 19062 mv -f "$cfgfile" "$ofile" || 19063 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19064 chmod +x "$ofile" 19065 19066 ;; 19067 "disable-rpath":C) 19068 sed < libtool > libtool-2 \ 19069 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 19070 mv libtool-2 libtool 19071 chmod 755 libtool 19072 libtool="./libtool" 19073 ;; 19074 19075 esac 19076done # for ac_tag 19077 19078 19079as_fn_exit 0 19080_ACEOF 19081ac_clean_files=$ac_clean_files_save 19082 19083test $ac_write_fail = 0 || 19084 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19085 19086 19087# configure is writing to config.log, and then calls config.status. 19088# config.status does its own redirection, appending to config.log. 19089# Unfortunately, on DOS this fails, as config.log is still kept open 19090# by configure, so config.status won't be able to write to it; its 19091# output is simply discarded. So we exec the FD to /dev/null, 19092# effectively closing config.log, so it can be properly (re)opened and 19093# appended to by config.status. When coming back to configure, we 19094# need to make the FD available again. 19095if test "$no_create" != yes; then 19096 ac_cs_success=: 19097 ac_config_status_args= 19098 test "$silent" = yes && 19099 ac_config_status_args="$ac_config_status_args --quiet" 19100 exec 5>/dev/null 19101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19102 exec 5>>config.log 19103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19104 # would make configure fail if this is the last instruction. 19105 $ac_cs_success || as_fn_exit 1 19106fi 19107if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19109$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19110fi 19111 19112 19113echo "copying header files" 19114 19115for file in $srcdir/ldns//*.h; do 19116 sh $srcdir/install-sh -m 644 $file ldns/ 19117done 19118 19119 19120 19121 19122 19123