1#! /bin/sh 2# From configure.ac Revision. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.71 for Heimdal 7.8.0. 5# 6# Report bugs to <https://github.com/heimdal/heimdal/issues>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21as_nop=: 22if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 23then : 24 emulate sh 25 NULLCMD=: 26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27 # is contrary to our usage. Disable this feature. 28 alias -g '${1+"$@"}'='"$@"' 29 setopt NO_GLOB_SUBST 30else $as_nop 31 case `(set -o) 2>/dev/null` in #( 32 *posix*) : 33 set -o posix ;; #( 34 *) : 35 ;; 36esac 37fi 38 39 40 41# Reset variables that may have inherited troublesome values from 42# the environment. 43 44# IFS needs to be set, to space, tab, and newline, in precisely that order. 45# (If _AS_PATH_WALK were called with IFS unset, it would have the 46# side effect of setting IFS to empty, thus disabling word splitting.) 47# Quoting is to prevent editors from complaining about space-tab. 48as_nl=' 49' 50export as_nl 51IFS=" "" $as_nl" 52 53PS1='$ ' 54PS2='> ' 55PS4='+ ' 56 57# Ensure predictable behavior from utilities with locale-dependent output. 58LC_ALL=C 59export LC_ALL 60LANGUAGE=C 61export LANGUAGE 62 63# We cannot yet rely on "unset" to work, but we need these variables 64# to be unset--not just set to an empty or harmless value--now, to 65# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 66# also avoids known problems related to "unset" and subshell syntax 67# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 68for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 69do eval test \${$as_var+y} \ 70 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 71done 72 73# Ensure that fds 0, 1, and 2 are open. 74if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 75if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 76if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 77 78# The user is always right. 79if ${PATH_SEPARATOR+false} :; then 80 PATH_SEPARATOR=: 81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 83 PATH_SEPARATOR=';' 84 } 85fi 86 87 88# Find who we are. Look in the path if we contain no directory separator. 89as_myself= 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 case $as_dir in #((( 97 '') as_dir=./ ;; 98 */) ;; 99 *) as_dir=$as_dir/ ;; 100 esac 101 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117 118# Use a proper internal environment variable to ensure we don't fall 119 # into an infinite loop, continuously re-executing ourselves. 120 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 121 _as_can_reexec=no; export _as_can_reexec; 122 # We cannot yet assume a decent shell, so we have to provide a 123# neutralization value for shells without unset; and this also 124# works around shells that cannot unset nonexistent variables. 125# Preserve -v and -x to the replacement shell. 126BASH_ENV=/dev/null 127ENV=/dev/null 128(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 129case $- in # (((( 130 *v*x* | *x*v* ) as_opts=-vx ;; 131 *v* ) as_opts=-v ;; 132 *x* ) as_opts=-x ;; 133 * ) as_opts= ;; 134esac 135exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 136# Admittedly, this is quite paranoid, since all the known shells bail 137# out after a failed `exec'. 138printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 139exit 255 140 fi 141 # We don't want this to propagate to other subprocesses. 142 { _as_can_reexec=; unset _as_can_reexec;} 143if test "x$CONFIG_SHELL" = x; then 144 as_bourne_compatible="as_nop=: 145if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 146then : 147 emulate sh 148 NULLCMD=: 149 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 150 # is contrary to our usage. Disable this feature. 151 alias -g '\${1+\"\$@\"}'='\"\$@\"' 152 setopt NO_GLOB_SUBST 153else \$as_nop 154 case \`(set -o) 2>/dev/null\` in #( 155 *posix*) : 156 set -o posix ;; #( 157 *) : 158 ;; 159esac 160fi 161" 162 as_required="as_fn_return () { (exit \$1); } 163as_fn_success () { as_fn_return 0; } 164as_fn_failure () { as_fn_return 1; } 165as_fn_ret_success () { return 0; } 166as_fn_ret_failure () { return 1; } 167 168exitcode=0 169as_fn_success || { exitcode=1; echo as_fn_success failed.; } 170as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 171as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 172as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 173if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 174then : 175 176else \$as_nop 177 exitcode=1; echo positional parameters were not saved. 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else $as_nop 200 as_have_required=no 201fi 202 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 203then : 204 205else $as_nop 206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 207as_found=false 208for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 209do 210 IFS=$as_save_IFS 211 case $as_dir in #((( 212 '') as_dir=./ ;; 213 */) ;; 214 *) as_dir=$as_dir/ ;; 215 esac 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 224then : 225 CONFIG_SHELL=$as_shell as_have_required=yes 226 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 227then : 228 break 2 229fi 230fi 231 done;; 232 esac 233 as_found=false 234done 235IFS=$as_save_IFS 236if $as_found 237then : 238 239else $as_nop 240 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 241 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 242then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi 245fi 246 247 248 if test "x$CONFIG_SHELL" != x 249then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno 272then : 273 printf "%s\n" "$0: This script requires a shell more modern than all" 274 printf "%s\n" "$0: the shells that I found on your system." 275 if test ${ZSH_VERSION+y} ; then 276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 278 else 279 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 280$0: https://github.com/heimdal/heimdal/issues about your 281$0: system, including any error possibly output before this 282$0: message. Then install a modern shell, or manually run 283$0: the script under such a shell if you do have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='Heimdal' 624PACKAGE_TARNAME='heimdal' 625PACKAGE_VERSION='7.8.0' 626PACKAGE_STRING='Heimdal 7.8.0' 627PACKAGE_BUGREPORT='https://github.com/heimdal/heimdal/issues' 628PACKAGE_URL='' 629 630ac_unique_file="kuser/kinit.c" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_default_prefix=/usr/heimdal 664ac_func_c_list= 665enable_option_checking=no 666ac_subst_vars='am__EXEEXT_FALSE 667am__EXEEXT_TRUE 668LTLIBOBJS 669HEIMDAL_DOCUMENTATION_FALSE 670HEIMDAL_DOCUMENTATION_TRUE 671LIB_AUTH_SUBDIRS 672LIB_com_err_so 673LIB_com_err_a 674LIB_com_err 675DIR_com_err 676COM_ERR_FALSE 677COM_ERR_TRUE 678COMPILE_ET 679LIBEDIT_FALSE 680LIBEDIT_TRUE 681FRAMEWORK_SECURITY_FALSE 682FRAMEWORK_SECURITY_TRUE 683KCM_FALSE 684KCM_TRUE 685LIB_door_create 686LIB_getpwnam_r 687HAVE_DLADDR_FALSE 688HAVE_DLADDR_TRUE 689LIB_dladdr 690LIB_tgetent 691LIB_openpty 692LIB_logout 693LIB_logwtmp 694subdirs 695LIB_libedit 696INCLUDE_libedit 697LIB_readline 698INCLUDE_readline 699CATMANEXT 700CATMAN_FALSE 701CATMAN_TRUE 702CATMAN 703GROFF 704NROFF 705ENABLE_AFS_STRING_TO_KEY 706LIB_security 707have_gcd_FALSE 708have_gcd_TRUE 709LIB_dispatch_async_f 710GCD_MIG 711OTP_FALSE 712OTP_TRUE 713LIB_otp 714LIBADD_roken 715INCLUDES_roken 716LIB_roken 717DIR_roken 718have_socket_wrapper_FALSE 719have_socket_wrapper_TRUE 720LIB_crypt 721have_fnmatch_h_FALSE 722have_fnmatch_h_TRUE 723LIB_gai_strerror 724LIB_freeaddrinfo 725LIB_getnameinfo 726LIB_getaddrinfo 727LIB_pidfile 728LIB_bswap64 729LIB_bswap32 730LIB_bswap16 731LIB_hstrerror 732LIB_setsockopt 733LIB_getsockopt 734have_cgetent_FALSE 735have_cgetent_TRUE 736have_glob_h_FALSE 737have_glob_h_TRUE 738LIBOBJS 739LIB_dn_expand 740LIB_dns_search 741LIB_res_ndestroy 742LIB_res_nsearch 743LIB_res_search 744LIB_gethostbyname2 745LIB_syslog 746LIB_gethostbyname 747LIB_socket 748have_vis_h_FALSE 749have_vis_h_TRUE 750have_search_h_FALSE 751have_search_h_TRUE 752have_ifaddrs_h_FALSE 753have_ifaddrs_h_TRUE 754have_err_h_FALSE 755have_err_h_TRUE 756WFLAGS_LITE 757WFLAGS 758DEVELOPER_MODE_FALSE 759DEVELOPER_MODE_TRUE 760db_type_preference 761db_type 762NDBMLIB 763LMDBLIB 764DB1LIB 765DB3LIB 766HAVE_DBHEADER_FALSE 767HAVE_DBHEADER_TRUE 768HAVE_NDBM_FALSE 769HAVE_NDBM_TRUE 770HAVE_LMDB_FALSE 771HAVE_LMDB_TRUE 772HAVE_DB3_FALSE 773HAVE_DB3_TRUE 774HAVE_DB1_FALSE 775HAVE_DB1_TRUE 776LIB_dbm_firstkey 777LIB_dbopen 778LIB_db_create 779DBHEADER 780NO_AFS_FALSE 781NO_AFS_TRUE 782NO_AFS 783dpagaix_ldflags 784dpagaix_ldadd 785dpagaix_cflags 786DCE_FALSE 787DCE_TRUE 788PTHREAD_LIBADD 789PTHREAD_LDADD 790PTHREAD_CFLAGS 791ENABLE_PTHREAD_SUPPORT_FALSE 792ENABLE_PTHREAD_SUPPORT_TRUE 793LIB_hcrypto_appl 794LIB_hcrypto_so 795LIB_hcrypto_a 796LIB_hcrypto 797LIB_openssl_crypto 798INCLUDE_openssl_crypto 799HAVE_HCRYPTO_W_OPENSSL_FALSE 800HAVE_HCRYPTO_W_OPENSSL_TRUE 801LIB_kdb 802do_roken_rename_FALSE 803do_roken_rename_TRUE 804KRB5_FALSE 805KRB5_TRUE 806DIR_hdbdir 807LIB_libintl 808INCLUDE_libintl 809have_scc_FALSE 810have_scc_TRUE 811SQLITE3_FALSE 812SQLITE3_TRUE 813LIB_sqlite3 814INCLUDE_sqlite3 815HAVE_CAPNG_FALSE 816HAVE_CAPNG_TRUE 817CAPNG_LIBS 818CAPNG_CFLAGS 819PKG_CONFIG 820PKINIT_FALSE 821PKINIT_TRUE 822OPENLDAP_MODULE_FALSE 823OPENLDAP_MODULE_TRUE 824LIB_openldap 825INCLUDE_openldap 826SLC_DEP 827SLC 828ASN1_COMPILE_DEP 829ASN1_COMPILE 830CROSS_COMPILE_FALSE 831CROSS_COMPILE_TRUE 832LDFLAGS_VERSION_SCRIPT 833versionscript_FALSE 834versionscript_TRUE 835VERSIONING 836ENABLE_SHARED_FALSE 837ENABLE_SHARED_TRUE 838LEXLIB 839LEX_OUTPUT_ROOT 840LEX 841YFLAGS 842YACC 843PERL 844IRIX_FALSE 845IRIX_TRUE 846AIX_EXTRA_KAFS 847AIX_DYNAMIC_AFS_FALSE 848AIX_DYNAMIC_AFS_TRUE 849LIB_loadquery 850HAVE_DLOPEN_FALSE 851HAVE_DLOPEN_TRUE 852LIB_dlopen 853AIX4_FALSE 854AIX4_TRUE 855AIX_FALSE 856AIX_TRUE 857CANONICAL_HOST 858CLANG_FORMAT 859pkgpyexecdir 860pyexecdir 861pkgpythondir 862pythondir 863PYTHON_EXEC_PREFIX 864PYTHON_PREFIX 865PYTHON_PLATFORM 866PYTHON_VERSION 867PYTHON 868CPP 869LT_SYS_LIBRARY_PATH 870OTOOL64 871OTOOL 872LIPO 873NMEDIT 874DSYMUTIL 875MANIFEST_TOOL 876RANLIB 877ac_ct_AR 878AR 879FILECMD 880LN_S 881NM 882ac_ct_DUMPBIN 883DUMPBIN 884LD 885FGREP 886EGREP 887GREP 888SED 889am__fastdepCC_FALSE 890am__fastdepCC_TRUE 891CCDEPMODE 892am__nodep 893AMDEPBACKSLASH 894AMDEP_FALSE 895AMDEP_TRUE 896am__include 897DEPDIR 898OBJEXT 899EXEEXT 900ac_ct_CC 901CPPFLAGS 902LDFLAGS 903CFLAGS 904CC 905host_os 906host_vendor 907host_cpu 908host 909build_os 910build_vendor 911build_cpu 912build 913LIBTOOL 914OBJDUMP 915DLLTOOL 916AS 917MAINT 918MAINTAINER_MODE_FALSE 919MAINTAINER_MODE_TRUE 920AM_BACKSLASH 921AM_DEFAULT_VERBOSITY 922AM_DEFAULT_V 923AM_V 924CSCOPE 925ETAGS 926CTAGS 927am__untar 928am__tar 929AMTAR 930am__leading_dot 931SET_MAKE 932AWK 933mkdir_p 934MKDIR_P 935INSTALL_STRIP_PROGRAM 936STRIP 937install_sh 938MAKEINFO 939AUTOHEADER 940AUTOMAKE 941AUTOCONF 942ACLOCAL 943VERSION 944PACKAGE 945CYGPATH_W 946am__isrc 947INSTALL_DATA 948INSTALL_SCRIPT 949INSTALL_PROGRAM 950target_alias 951host_alias 952build_alias 953LIBS 954ECHO_T 955ECHO_N 956ECHO_C 957DEFS 958mandir 959localedir 960libdir 961psdir 962pdfdir 963dvidir 964htmldir 965infodir 966docdir 967oldincludedir 968includedir 969runstatedir 970localstatedir 971sharedstatedir 972sysconfdir 973datadir 974datarootdir 975libexecdir 976sbindir 977bindir 978program_transform_name 979prefix 980exec_prefix 981PACKAGE_URL 982PACKAGE_BUGREPORT 983PACKAGE_STRING 984PACKAGE_VERSION 985PACKAGE_TARNAME 986PACKAGE_NAME 987PATH_SEPARATOR 988SHELL 989am__quote' 990ac_subst_files='' 991ac_user_opts=' 992enable_option_checking 993enable_silent_rules 994enable_maintainer_mode 995enable_shared 996enable_static 997with_pic 998enable_fast_install 999with_aix_soname 1000enable_dependency_tracking 1001with_gnu_ld 1002with_sysroot 1003enable_libtool_lock 1004with_python_sys_prefix 1005with_python_prefix 1006with_python_exec_prefix 1007enable_largefile 1008enable_dynamic_afs 1009with_mips_abi 1010with_cross_tools 1011with_openldap 1012with_openldap_lib 1013with_openldap_include 1014with_openldap_config 1015enable_hdb_openldap_module 1016enable_pk_init 1017enable_digest 1018enable_kx509 1019with_capng 1020with_sqlite3 1021with_sqlite3_lib 1022with_sqlite3_include 1023with_sqlite3_config 1024enable_sqlite_cache 1025with_libintl 1026with_libintl_lib 1027with_libintl_include 1028with_libintl_config 1029with_hdbdir 1030with_hcrypto_default_backend 1031with_hcrypto_fallback 1032with_openssl 1033with_openssl_lib 1034with_openssl_include 1035with_pkcs11_module 1036enable_pthread_support 1037enable_dce 1038enable_afs_support 1039with_db_type_preference 1040with_berkeley_db 1041with_berkeley_db_include 1042enable_ndbm_db 1043enable_mdb_db 1044enable_developer 1045with_ipv6 1046enable_socket_wrapper 1047enable_otp 1048enable_osfc2 1049enable_mmap 1050enable_afs_string_to_key 1051with_readline 1052with_readline_lib 1053with_readline_include 1054with_readline_config 1055with_libedit 1056with_libedit_lib 1057with_libedit_include 1058with_libedit_config 1059enable_bigendian 1060enable_littleendian 1061enable_kcm 1062enable_heimdal_documentation 1063' 1064 ac_precious_vars='build_alias 1065host_alias 1066target_alias 1067CC 1068CFLAGS 1069LDFLAGS 1070LIBS 1071CPPFLAGS 1072LT_SYS_LIBRARY_PATH 1073CPP 1074PYTHON 1075YACC 1076YFLAGS 1077PKG_CONFIG 1078CAPNG_CFLAGS 1079CAPNG_LIBS' 1080ac_subdirs_all='lib/libedit' 1081 1082# Initialize some variables set by options. 1083ac_init_help= 1084ac_init_version=false 1085ac_unrecognized_opts= 1086ac_unrecognized_sep= 1087# The variables have the same names as the options, with 1088# dashes changed to underlines. 1089cache_file=/dev/null 1090exec_prefix=NONE 1091no_create= 1092no_recursion= 1093prefix=NONE 1094program_prefix=NONE 1095program_suffix=NONE 1096program_transform_name=s,x,x, 1097silent= 1098site= 1099srcdir= 1100verbose= 1101x_includes=NONE 1102x_libraries=NONE 1103 1104# Installation directory options. 1105# These are left unexpanded so users can "make install exec_prefix=/foo" 1106# and all the variables that are supposed to be based on exec_prefix 1107# by default will actually change. 1108# Use braces instead of parens because sh, perl, etc. also accept them. 1109# (The list follows the same order as the GNU Coding Standards.) 1110bindir='${exec_prefix}/bin' 1111sbindir='${exec_prefix}/sbin' 1112libexecdir='${exec_prefix}/libexec' 1113datarootdir='${prefix}/share' 1114datadir='${datarootdir}' 1115sysconfdir='${prefix}/etc' 1116sharedstatedir='${prefix}/com' 1117localstatedir='${prefix}/var' 1118runstatedir='${localstatedir}/run' 1119includedir='${prefix}/include' 1120oldincludedir='/usr/include' 1121docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1122infodir='${datarootdir}/info' 1123htmldir='${docdir}' 1124dvidir='${docdir}' 1125pdfdir='${docdir}' 1126psdir='${docdir}' 1127libdir='${exec_prefix}/lib' 1128localedir='${datarootdir}/locale' 1129mandir='${datarootdir}/man' 1130 1131ac_prev= 1132ac_dashdash= 1133for ac_option 1134do 1135 # If the previous option needs an argument, assign it. 1136 if test -n "$ac_prev"; then 1137 eval $ac_prev=\$ac_option 1138 ac_prev= 1139 continue 1140 fi 1141 1142 case $ac_option in 1143 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1144 *=) ac_optarg= ;; 1145 *) ac_optarg=yes ;; 1146 esac 1147 1148 case $ac_dashdash$ac_option in 1149 --) 1150 ac_dashdash=yes ;; 1151 1152 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1153 ac_prev=bindir ;; 1154 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1155 bindir=$ac_optarg ;; 1156 1157 -build | --build | --buil | --bui | --bu) 1158 ac_prev=build_alias ;; 1159 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1160 build_alias=$ac_optarg ;; 1161 1162 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1163 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1164 ac_prev=cache_file ;; 1165 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1166 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1167 cache_file=$ac_optarg ;; 1168 1169 --config-cache | -C) 1170 cache_file=config.cache ;; 1171 1172 -datadir | --datadir | --datadi | --datad) 1173 ac_prev=datadir ;; 1174 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1175 datadir=$ac_optarg ;; 1176 1177 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1178 | --dataroo | --dataro | --datar) 1179 ac_prev=datarootdir ;; 1180 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1181 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1182 datarootdir=$ac_optarg ;; 1183 1184 -disable-* | --disable-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"enable_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval enable_$ac_useropt=no ;; 1199 1200 -docdir | --docdir | --docdi | --doc | --do) 1201 ac_prev=docdir ;; 1202 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1203 docdir=$ac_optarg ;; 1204 1205 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1206 ac_prev=dvidir ;; 1207 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1208 dvidir=$ac_optarg ;; 1209 1210 -enable-* | --enable-*) 1211 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1214 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1215 ac_useropt_orig=$ac_useropt 1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1217 case $ac_user_opts in 1218 *" 1219"enable_$ac_useropt" 1220"*) ;; 1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1222 ac_unrecognized_sep=', ';; 1223 esac 1224 eval enable_$ac_useropt=\$ac_optarg ;; 1225 1226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1228 | --exec | --exe | --ex) 1229 ac_prev=exec_prefix ;; 1230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1232 | --exec=* | --exe=* | --ex=*) 1233 exec_prefix=$ac_optarg ;; 1234 1235 -gas | --gas | --ga | --g) 1236 # Obsolete; use --with-gas. 1237 with_gas=yes ;; 1238 1239 -help | --help | --hel | --he | -h) 1240 ac_init_help=long ;; 1241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1242 ac_init_help=recursive ;; 1243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1244 ac_init_help=short ;; 1245 1246 -host | --host | --hos | --ho) 1247 ac_prev=host_alias ;; 1248 -host=* | --host=* | --hos=* | --ho=*) 1249 host_alias=$ac_optarg ;; 1250 1251 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1252 ac_prev=htmldir ;; 1253 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1254 | --ht=*) 1255 htmldir=$ac_optarg ;; 1256 1257 -includedir | --includedir | --includedi | --included | --include \ 1258 | --includ | --inclu | --incl | --inc) 1259 ac_prev=includedir ;; 1260 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1261 | --includ=* | --inclu=* | --incl=* | --inc=*) 1262 includedir=$ac_optarg ;; 1263 1264 -infodir | --infodir | --infodi | --infod | --info | --inf) 1265 ac_prev=infodir ;; 1266 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1267 infodir=$ac_optarg ;; 1268 1269 -libdir | --libdir | --libdi | --libd) 1270 ac_prev=libdir ;; 1271 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1272 libdir=$ac_optarg ;; 1273 1274 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1275 | --libexe | --libex | --libe) 1276 ac_prev=libexecdir ;; 1277 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1278 | --libexe=* | --libex=* | --libe=*) 1279 libexecdir=$ac_optarg ;; 1280 1281 -localedir | --localedir | --localedi | --localed | --locale) 1282 ac_prev=localedir ;; 1283 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1284 localedir=$ac_optarg ;; 1285 1286 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1287 | --localstate | --localstat | --localsta | --localst | --locals) 1288 ac_prev=localstatedir ;; 1289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1290 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1291 localstatedir=$ac_optarg ;; 1292 1293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1294 ac_prev=mandir ;; 1295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1296 mandir=$ac_optarg ;; 1297 1298 -nfp | --nfp | --nf) 1299 # Obsolete; use --without-fp. 1300 with_fp=no ;; 1301 1302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1303 | --no-cr | --no-c | -n) 1304 no_create=yes ;; 1305 1306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1308 no_recursion=yes ;; 1309 1310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1312 | --oldin | --oldi | --old | --ol | --o) 1313 ac_prev=oldincludedir ;; 1314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1317 oldincludedir=$ac_optarg ;; 1318 1319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1320 ac_prev=prefix ;; 1321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1322 prefix=$ac_optarg ;; 1323 1324 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1325 | --program-pre | --program-pr | --program-p) 1326 ac_prev=program_prefix ;; 1327 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1329 program_prefix=$ac_optarg ;; 1330 1331 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1332 | --program-suf | --program-su | --program-s) 1333 ac_prev=program_suffix ;; 1334 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1336 program_suffix=$ac_optarg ;; 1337 1338 -program-transform-name | --program-transform-name \ 1339 | --program-transform-nam | --program-transform-na \ 1340 | --program-transform-n | --program-transform- \ 1341 | --program-transform | --program-transfor \ 1342 | --program-transfo | --program-transf \ 1343 | --program-trans | --program-tran \ 1344 | --progr-tra | --program-tr | --program-t) 1345 ac_prev=program_transform_name ;; 1346 -program-transform-name=* | --program-transform-name=* \ 1347 | --program-transform-nam=* | --program-transform-na=* \ 1348 | --program-transform-n=* | --program-transform-=* \ 1349 | --program-transform=* | --program-transfor=* \ 1350 | --program-transfo=* | --program-transf=* \ 1351 | --program-trans=* | --program-tran=* \ 1352 | --progr-tra=* | --program-tr=* | --program-t=*) 1353 program_transform_name=$ac_optarg ;; 1354 1355 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1356 ac_prev=pdfdir ;; 1357 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1358 pdfdir=$ac_optarg ;; 1359 1360 -psdir | --psdir | --psdi | --psd | --ps) 1361 ac_prev=psdir ;; 1362 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1363 psdir=$ac_optarg ;; 1364 1365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1366 | -silent | --silent | --silen | --sile | --sil) 1367 silent=yes ;; 1368 1369 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1370 | --runstate | --runstat | --runsta | --runst | --runs \ 1371 | --run | --ru | --r) 1372 ac_prev=runstatedir ;; 1373 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1374 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1375 | --run=* | --ru=* | --r=*) 1376 runstatedir=$ac_optarg ;; 1377 1378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1379 ac_prev=sbindir ;; 1380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1381 | --sbi=* | --sb=*) 1382 sbindir=$ac_optarg ;; 1383 1384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1386 | --sharedst | --shareds | --shared | --share | --shar \ 1387 | --sha | --sh) 1388 ac_prev=sharedstatedir ;; 1389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1392 | --sha=* | --sh=*) 1393 sharedstatedir=$ac_optarg ;; 1394 1395 -site | --site | --sit) 1396 ac_prev=site ;; 1397 -site=* | --site=* | --sit=*) 1398 site=$ac_optarg ;; 1399 1400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1401 ac_prev=srcdir ;; 1402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1403 srcdir=$ac_optarg ;; 1404 1405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1406 | --syscon | --sysco | --sysc | --sys | --sy) 1407 ac_prev=sysconfdir ;; 1408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1410 sysconfdir=$ac_optarg ;; 1411 1412 -target | --target | --targe | --targ | --tar | --ta | --t) 1413 ac_prev=target_alias ;; 1414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1415 target_alias=$ac_optarg ;; 1416 1417 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1418 verbose=yes ;; 1419 1420 -version | --version | --versio | --versi | --vers | -V) 1421 ac_init_version=: ;; 1422 1423 -with-* | --with-*) 1424 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1425 # Reject names that are not valid shell variable names. 1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1427 as_fn_error $? "invalid package name: \`$ac_useropt'" 1428 ac_useropt_orig=$ac_useropt 1429 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1430 case $ac_user_opts in 1431 *" 1432"with_$ac_useropt" 1433"*) ;; 1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1435 ac_unrecognized_sep=', ';; 1436 esac 1437 eval with_$ac_useropt=\$ac_optarg ;; 1438 1439 -without-* | --without-*) 1440 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1441 # Reject names that are not valid shell variable names. 1442 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1443 as_fn_error $? "invalid package name: \`$ac_useropt'" 1444 ac_useropt_orig=$ac_useropt 1445 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1446 case $ac_user_opts in 1447 *" 1448"with_$ac_useropt" 1449"*) ;; 1450 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1451 ac_unrecognized_sep=', ';; 1452 esac 1453 eval with_$ac_useropt=no ;; 1454 1455 --x) 1456 # Obsolete; use --with-x. 1457 with_x=yes ;; 1458 1459 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1460 | --x-incl | --x-inc | --x-in | --x-i) 1461 ac_prev=x_includes ;; 1462 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1463 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1464 x_includes=$ac_optarg ;; 1465 1466 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1467 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1468 ac_prev=x_libraries ;; 1469 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1470 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1471 x_libraries=$ac_optarg ;; 1472 1473 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1474Try \`$0 --help' for more information" 1475 ;; 1476 1477 *=*) 1478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1479 # Reject names that are not valid shell variable names. 1480 case $ac_envvar in #( 1481 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1482 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1483 esac 1484 eval $ac_envvar=\$ac_optarg 1485 export $ac_envvar ;; 1486 1487 *) 1488 # FIXME: should be removed in autoconf 3.0. 1489 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1491 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1492 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1493 ;; 1494 1495 esac 1496done 1497 1498if test -n "$ac_prev"; then 1499 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1500 as_fn_error $? "missing argument to $ac_option" 1501fi 1502 1503if test -n "$ac_unrecognized_opts"; then 1504 case $enable_option_checking in 1505 no) ;; 1506 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1507 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1508 esac 1509fi 1510 1511# Check all directory arguments for consistency. 1512for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1513 datadir sysconfdir sharedstatedir localstatedir includedir \ 1514 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1515 libdir localedir mandir runstatedir 1516do 1517 eval ac_val=\$$ac_var 1518 # Remove trailing slashes. 1519 case $ac_val in 1520 */ ) 1521 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1522 eval $ac_var=\$ac_val;; 1523 esac 1524 # Be sure to have absolute directory names. 1525 case $ac_val in 1526 [\\/$]* | ?:[\\/]* ) continue;; 1527 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1528 esac 1529 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1530done 1531 1532# There might be people who depend on the old broken behavior: `$host' 1533# used to hold the argument of --host etc. 1534# FIXME: To remove some day. 1535build=$build_alias 1536host=$host_alias 1537target=$target_alias 1538 1539# FIXME: To remove some day. 1540if test "x$host_alias" != x; then 1541 if test "x$build_alias" = x; then 1542 cross_compiling=maybe 1543 elif test "x$build_alias" != "x$host_alias"; then 1544 cross_compiling=yes 1545 fi 1546fi 1547 1548ac_tool_prefix= 1549test -n "$host_alias" && ac_tool_prefix=$host_alias- 1550 1551test "$silent" = yes && exec 6>/dev/null 1552 1553 1554ac_pwd=`pwd` && test -n "$ac_pwd" && 1555ac_ls_di=`ls -di .` && 1556ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1557 as_fn_error $? "working directory cannot be determined" 1558test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1559 as_fn_error $? "pwd does not report name of working directory" 1560 1561 1562# Find the source files, if location was not specified. 1563if test -z "$srcdir"; then 1564 ac_srcdir_defaulted=yes 1565 # Try the directory containing this script, then the parent directory. 1566 ac_confdir=`$as_dirname -- "$as_myself" || 1567$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1568 X"$as_myself" : 'X\(//\)[^/]' \| \ 1569 X"$as_myself" : 'X\(//\)$' \| \ 1570 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1571printf "%s\n" X"$as_myself" | 1572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1573 s//\1/ 1574 q 1575 } 1576 /^X\(\/\/\)[^/].*/{ 1577 s//\1/ 1578 q 1579 } 1580 /^X\(\/\/\)$/{ 1581 s//\1/ 1582 q 1583 } 1584 /^X\(\/\).*/{ 1585 s//\1/ 1586 q 1587 } 1588 s/.*/./; q'` 1589 srcdir=$ac_confdir 1590 if test ! -r "$srcdir/$ac_unique_file"; then 1591 srcdir=.. 1592 fi 1593else 1594 ac_srcdir_defaulted=no 1595fi 1596if test ! -r "$srcdir/$ac_unique_file"; then 1597 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1598 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1599fi 1600ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1601ac_abs_confdir=`( 1602 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1603 pwd)` 1604# When building in place, set srcdir=. 1605if test "$ac_abs_confdir" = "$ac_pwd"; then 1606 srcdir=. 1607fi 1608# Remove unnecessary trailing slashes from srcdir. 1609# Double slashes in file names in object file debugging info 1610# mess up M-x gdb in Emacs. 1611case $srcdir in 1612*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1613esac 1614for ac_var in $ac_precious_vars; do 1615 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1616 eval ac_env_${ac_var}_value=\$${ac_var} 1617 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1618 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1619done 1620 1621# 1622# Report the --help message. 1623# 1624if test "$ac_init_help" = "long"; then 1625 # Omit some internal or obsolete options to make the list less imposing. 1626 # This message is too long to be a string in the A/UX 3.1 sh. 1627 cat <<_ACEOF 1628\`configure' configures Heimdal 7.8.0 to adapt to many kinds of systems. 1629 1630Usage: $0 [OPTION]... [VAR=VALUE]... 1631 1632To assign environment variables (e.g., CC, CFLAGS...), specify them as 1633VAR=VALUE. See below for descriptions of some of the useful variables. 1634 1635Defaults for the options are specified in brackets. 1636 1637Configuration: 1638 -h, --help display this help and exit 1639 --help=short display options specific to this package 1640 --help=recursive display the short help of all the included packages 1641 -V, --version display version information and exit 1642 -q, --quiet, --silent do not print \`checking ...' messages 1643 --cache-file=FILE cache test results in FILE [disabled] 1644 -C, --config-cache alias for \`--cache-file=config.cache' 1645 -n, --no-create do not create output files 1646 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1647 1648Installation directories: 1649 --prefix=PREFIX install architecture-independent files in PREFIX 1650 [$ac_default_prefix] 1651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1652 [PREFIX] 1653 1654By default, \`make install' will install all the files in 1655\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1656an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1657for instance \`--prefix=\$HOME'. 1658 1659For better control, use the options below. 1660 1661Fine tuning of the installation directories: 1662 --bindir=DIR user executables [EPREFIX/bin] 1663 --sbindir=DIR system admin executables [EPREFIX/sbin] 1664 --libexecdir=DIR program executables [EPREFIX/libexec] 1665 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1666 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1667 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1668 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1669 --libdir=DIR object code libraries [EPREFIX/lib] 1670 --includedir=DIR C header files [PREFIX/include] 1671 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1672 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1673 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1674 --infodir=DIR info documentation [DATAROOTDIR/info] 1675 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1676 --mandir=DIR man documentation [DATAROOTDIR/man] 1677 --docdir=DIR documentation root [DATAROOTDIR/doc/heimdal] 1678 --htmldir=DIR html documentation [DOCDIR] 1679 --dvidir=DIR dvi documentation [DOCDIR] 1680 --pdfdir=DIR pdf documentation [DOCDIR] 1681 --psdir=DIR ps documentation [DOCDIR] 1682_ACEOF 1683 1684 cat <<\_ACEOF 1685 1686Program names: 1687 --program-prefix=PREFIX prepend PREFIX to installed program names 1688 --program-suffix=SUFFIX append SUFFIX to installed program names 1689 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1690 1691System types: 1692 --build=BUILD configure for building on BUILD [guessed] 1693 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1694_ACEOF 1695fi 1696 1697if test -n "$ac_init_help"; then 1698 case $ac_init_help in 1699 short | recursive ) echo "Configuration of Heimdal 7.8.0:";; 1700 esac 1701 cat <<\_ACEOF 1702 1703Optional Features: 1704 --disable-option-checking ignore unrecognized --enable/--with options 1705 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1706 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1707 --enable-silent-rules less verbose build output (undo: "make V=1") 1708 --disable-silent-rules verbose build output (undo: "make V=0") 1709 --enable-maintainer-mode 1710 enable make rules and dependencies not useful (and 1711 sometimes confusing) to the casual installer 1712 --enable-shared[=PKGS] build shared libraries [default=yes] 1713 --enable-static[=PKGS] build static libraries [default=yes] 1714 --enable-fast-install[=PKGS] 1715 optimize for fast installation [default=yes] 1716 --enable-dependency-tracking 1717 do not reject slow dependency extractors 1718 --disable-dependency-tracking 1719 speeds up one-time build 1720 --disable-libtool-lock avoid locking (might break parallel builds) 1721 --disable-largefile omit support for large files 1722 --disable-dynamic-afs do not use loaded AFS library with AIX 1723 --enable-hdb-openldap-module 1724 if you want support to build openldap hdb as shared 1725 object 1726 --disable-pk-init if you want disable to PK-INIT support 1727 --disable-digest if you want disable to DIGEST support 1728 --disable-kx509 if you want disable to kx509 support 1729 --disable-sqlite-cache if you want support for cache in sqlite 1730 --enable-pthread-support 1731 if you want thread safe libraries 1732 --enable-dce if you want support for DCE/DFS PAG's 1733 --disable-afs-support if you don't want support for AFS 1734 --disable-ndbm-db if you don't want ndbm db 1735 --disable-mdb-db if you don't want LMDB 1736 --enable-developer enable developer warnings 1737 --enable-socket-wrapper use sambas socket-wrapper for testing 1738 --disable-otp if you don't want OTP support 1739 --enable-osfc2 enable some OSF C2 support 1740 --disable-mmap disable use of mmap 1741 --disable-afs-string-to-key 1742 disable use of weak AFS string-to-key functions 1743 --enable-bigendian the target is big endian 1744 --enable-littleendian the target is little endian 1745 --enable-kcm enable Kerberos Credentials Manager 1746 --disable-heimdal-documentation 1747 if you want disable to heimdal documentation 1748 1749Optional Packages: 1750 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1751 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1752 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1753 both] 1754 --with-aix-soname=aix|svr4|both 1755 shared library versioning (aka "SONAME") variant to 1756 provide on AIX, [default=aix]. 1757 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1758 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1759 compiler's sysroot if not specified). 1760 --with-python-sys-prefix 1761 use Python's sys.prefix and sys.exec_prefix values 1762 --with-python_prefix override the default PYTHON_PREFIX 1763 --with-python_exec_prefix 1764 override the default PYTHON_EXEC_PREFIX 1765 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 1766 --with-cross-tools=dir use cross tools in dir 1767 --with-openldap=dir use openldap in dir 1768 --with-openldap-lib=dir use openldap libraries in dir 1769 --with-openldap-include=dir 1770 use openldap headers in dir 1771 --with-openldap-config=path 1772 config program for openldap 1773 --with-capng use libcap-ng to drop KDC privileges [default=check] 1774 --with-sqlite3=dir use sqlite3 in dir 1775 --with-sqlite3-lib=dir use sqlite3 libraries in dir 1776 --with-sqlite3-include=dir 1777 use sqlite3 headers in dir 1778 --with-sqlite3-config=path 1779 config program for sqlite3 1780 --with-libintl=dir use libintl in dir 1781 --with-libintl-lib=dir use libintl libraries in dir 1782 --with-libintl-include=dir 1783 use libintl headers in dir 1784 --with-libintl-config=path 1785 config program for libintl 1786 --with-hdbdir Default location for KDC database 1787 [default=/var/heimdal] 1788 --with-hcrypto-default-backend=cc|pkcs11_hcrypto|ossl|w32crypto|hcrypto 1789 specify the default hcrypto backend 1790 --without-hcrypto-fallback 1791 disable fallback on hcrypto for unavailable 1792 algorithms 1793 --with-openssl=dir use openssl in dir 1794 --with-openssl-lib=dir use openssl libraries in dir 1795 --with-openssl-include=dir 1796 use openssl headers in dir 1797 --with-pkcs11-module=path 1798 use PKCS11 module in path 1799 --with-db-type-preference=list 1800 specify HDB backend DB type preference as 1801 whitespace-separated list of db1, db3, lmdb, and/or 1802 sqlite 1803 --with-berkeley-db enable support for berkeley db [default=check] 1804 --with-berkeley-db-include=dir 1805 use berkeley-db headers in dir 1806 --without-ipv6 do not enable IPv6 support 1807 --with-readline=dir use readline in dir 1808 --with-readline-lib=dir use readline libraries in dir 1809 --with-readline-include=dir 1810 use readline headers in dir 1811 --with-readline-config=path 1812 config program for readline 1813 --with-libedit=dir use libedit in dir 1814 --with-libedit-lib=dir use libedit libraries in dir 1815 --with-libedit-include=dir 1816 use libedit headers in dir 1817 --with-libedit-config=path 1818 config program for libedit 1819 1820Some influential environment variables: 1821 CC C compiler command 1822 CFLAGS C compiler flags 1823 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1824 nonstandard directory <lib dir> 1825 LIBS libraries to pass to the linker, e.g. -l<library> 1826 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1827 you have headers in a nonstandard directory <include dir> 1828 LT_SYS_LIBRARY_PATH 1829 User-defined run-time library search path. 1830 CPP C preprocessor 1831 PYTHON the Python interpreter 1832 YACC The `Yet Another Compiler Compiler' implementation to use. 1833 Defaults to the first program found out of: `bison -y', `byacc', 1834 `yacc'. 1835 YFLAGS The list of arguments that will be passed by default to $YACC. 1836 This script will default YFLAGS to the empty string to avoid a 1837 default value of `-d' given by some make applications. 1838 PKG_CONFIG path to pkg-config utility 1839 CAPNG_CFLAGS 1840 C compiler flags for CAPNG, overriding pkg-config 1841 CAPNG_LIBS linker flags for CAPNG, overriding pkg-config 1842 1843Use these variables to override the choices made by `configure' or to help 1844it to find libraries and programs with nonstandard names/locations. 1845 1846Report bugs to <https://github.com/heimdal/heimdal/issues>. 1847_ACEOF 1848ac_status=$? 1849fi 1850 1851if test "$ac_init_help" = "recursive"; then 1852 # If there are subdirs, report their specific --help. 1853 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1854 test -d "$ac_dir" || 1855 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1856 continue 1857 ac_builddir=. 1858 1859case "$ac_dir" in 1860.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1861*) 1862 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1863 # A ".." for each directory in $ac_dir_suffix. 1864 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1865 case $ac_top_builddir_sub in 1866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1868 esac ;; 1869esac 1870ac_abs_top_builddir=$ac_pwd 1871ac_abs_builddir=$ac_pwd$ac_dir_suffix 1872# for backward compatibility: 1873ac_top_builddir=$ac_top_build_prefix 1874 1875case $srcdir in 1876 .) # We are building in place. 1877 ac_srcdir=. 1878 ac_top_srcdir=$ac_top_builddir_sub 1879 ac_abs_top_srcdir=$ac_pwd ;; 1880 [\\/]* | ?:[\\/]* ) # Absolute name. 1881 ac_srcdir=$srcdir$ac_dir_suffix; 1882 ac_top_srcdir=$srcdir 1883 ac_abs_top_srcdir=$srcdir ;; 1884 *) # Relative name. 1885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1886 ac_top_srcdir=$ac_top_build_prefix$srcdir 1887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1888esac 1889ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1890 1891 cd "$ac_dir" || { ac_status=$?; continue; } 1892 # Check for configure.gnu first; this name is used for a wrapper for 1893 # Metaconfig's "Configure" on case-insensitive file systems. 1894 if test -f "$ac_srcdir/configure.gnu"; then 1895 echo && 1896 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1897 elif test -f "$ac_srcdir/configure"; then 1898 echo && 1899 $SHELL "$ac_srcdir/configure" --help=recursive 1900 else 1901 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1902 fi || ac_status=$? 1903 cd "$ac_pwd" || { ac_status=$?; break; } 1904 done 1905fi 1906 1907test -n "$ac_init_help" && exit $ac_status 1908if $ac_init_version; then 1909 cat <<\_ACEOF 1910Heimdal configure 7.8.0 1911generated by GNU Autoconf 2.71 1912 1913Copyright (C) 2021 Free Software Foundation, Inc. 1914This configure script is free software; the Free Software Foundation 1915gives unlimited permission to copy, distribute and modify it. 1916_ACEOF 1917 exit 1918fi 1919 1920## ------------------------ ## 1921## Autoconf initialization. ## 1922## ------------------------ ## 1923 1924# ac_fn_c_try_compile LINENO 1925# -------------------------- 1926# Try to compile conftest.$ac_ext, and return whether this succeeded. 1927ac_fn_c_try_compile () 1928{ 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 rm -f conftest.$ac_objext conftest.beam 1931 if { { ac_try="$ac_compile" 1932case "(($ac_try" in 1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1934 *) ac_try_echo=$ac_try;; 1935esac 1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1937printf "%s\n" "$ac_try_echo"; } >&5 1938 (eval "$ac_compile") 2>conftest.err 1939 ac_status=$? 1940 if test -s conftest.err; then 1941 grep -v '^ *+' conftest.err >conftest.er1 1942 cat conftest.er1 >&5 1943 mv -f conftest.er1 conftest.err 1944 fi 1945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1946 test $ac_status = 0; } && { 1947 test -z "$ac_c_werror_flag" || 1948 test ! -s conftest.err 1949 } && test -s conftest.$ac_objext 1950then : 1951 ac_retval=0 1952else $as_nop 1953 printf "%s\n" "$as_me: failed program was:" >&5 1954sed 's/^/| /' conftest.$ac_ext >&5 1955 1956 ac_retval=1 1957fi 1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1959 as_fn_set_status $ac_retval 1960 1961} # ac_fn_c_try_compile 1962 1963# ac_fn_c_try_link LINENO 1964# ----------------------- 1965# Try to link conftest.$ac_ext, and return whether this succeeded. 1966ac_fn_c_try_link () 1967{ 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1970 if { { ac_try="$ac_link" 1971case "(($ac_try" in 1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1973 *) ac_try_echo=$ac_try;; 1974esac 1975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1976printf "%s\n" "$ac_try_echo"; } >&5 1977 (eval "$ac_link") 2>conftest.err 1978 ac_status=$? 1979 if test -s conftest.err; then 1980 grep -v '^ *+' conftest.err >conftest.er1 1981 cat conftest.er1 >&5 1982 mv -f conftest.er1 conftest.err 1983 fi 1984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1985 test $ac_status = 0; } && { 1986 test -z "$ac_c_werror_flag" || 1987 test ! -s conftest.err 1988 } && test -s conftest$ac_exeext && { 1989 test "$cross_compiling" = yes || 1990 test -x conftest$ac_exeext 1991 } 1992then : 1993 ac_retval=0 1994else $as_nop 1995 printf "%s\n" "$as_me: failed program was:" >&5 1996sed 's/^/| /' conftest.$ac_ext >&5 1997 1998 ac_retval=1 1999fi 2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2002 # interfere with the next link command; also delete a directory that is 2003 # left behind by Apple's compiler. We do this before executing the actions. 2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_c_try_link 2009 2010# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2011# ------------------------------------------------------- 2012# Tests whether HEADER exists and can be compiled using the include files in 2013# INCLUDES, setting the cache variable VAR accordingly. 2014ac_fn_c_check_header_compile () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2018printf %s "checking for $2... " >&6; } 2019if eval test \${$3+y} 2020then : 2021 printf %s "(cached) " >&6 2022else $as_nop 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026#include <$2> 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO" 2029then : 2030 eval "$3=yes" 2031else $as_nop 2032 eval "$3=no" 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2035fi 2036eval ac_res=\$$3 2037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038printf "%s\n" "$ac_res" >&6; } 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040 2041} # ac_fn_c_check_header_compile 2042 2043# ac_fn_c_check_func LINENO FUNC VAR 2044# ---------------------------------- 2045# Tests whether FUNC exists, setting the cache variable VAR accordingly 2046ac_fn_c_check_func () 2047{ 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2050printf %s "checking for $2... " >&6; } 2051if eval test \${$3+y} 2052then : 2053 printf %s "(cached) " >&6 2054else $as_nop 2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056/* end confdefs.h. */ 2057/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2058 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2059#define $2 innocuous_$2 2060 2061/* System header to define __stub macros and hopefully few prototypes, 2062 which can conflict with char $2 (); below. */ 2063 2064#include <limits.h> 2065#undef $2 2066 2067/* Override any GCC internal prototype to avoid an error. 2068 Use char because int might match the return type of a GCC 2069 builtin and then its argument prototype would still apply. */ 2070#ifdef __cplusplus 2071extern "C" 2072#endif 2073char $2 (); 2074/* The GNU C library defines this for functions which it implements 2075 to always fail with ENOSYS. Some functions are actually named 2076 something starting with __ and the normal name is an alias. */ 2077#if defined __stub_$2 || defined __stub___$2 2078choke me 2079#endif 2080 2081int 2082main (void) 2083{ 2084return $2 (); 2085 ; 2086 return 0; 2087} 2088_ACEOF 2089if ac_fn_c_try_link "$LINENO" 2090then : 2091 eval "$3=yes" 2092else $as_nop 2093 eval "$3=no" 2094fi 2095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2096 conftest$ac_exeext conftest.$ac_ext 2097fi 2098eval ac_res=\$$3 2099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2100printf "%s\n" "$ac_res" >&6; } 2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2102 2103} # ac_fn_c_check_func 2104 2105# ac_fn_c_try_cpp LINENO 2106# ---------------------- 2107# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2108ac_fn_c_try_cpp () 2109{ 2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2111 if { { ac_try="$ac_cpp conftest.$ac_ext" 2112case "(($ac_try" in 2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2114 *) ac_try_echo=$ac_try;; 2115esac 2116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2117printf "%s\n" "$ac_try_echo"; } >&5 2118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2119 ac_status=$? 2120 if test -s conftest.err; then 2121 grep -v '^ *+' conftest.err >conftest.er1 2122 cat conftest.er1 >&5 2123 mv -f conftest.er1 conftest.err 2124 fi 2125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2126 test $ac_status = 0; } > conftest.i && { 2127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2128 test ! -s conftest.err 2129 } 2130then : 2131 ac_retval=0 2132else $as_nop 2133 printf "%s\n" "$as_me: failed program was:" >&5 2134sed 's/^/| /' conftest.$ac_ext >&5 2135 2136 ac_retval=1 2137fi 2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2139 as_fn_set_status $ac_retval 2140 2141} # ac_fn_c_try_cpp 2142 2143# ac_fn_c_try_run LINENO 2144# ---------------------- 2145# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2146# executables *can* be run. 2147ac_fn_c_try_run () 2148{ 2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2150 if { { ac_try="$ac_link" 2151case "(($ac_try" in 2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2153 *) ac_try_echo=$ac_try;; 2154esac 2155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2156printf "%s\n" "$ac_try_echo"; } >&5 2157 (eval "$ac_link") 2>&5 2158 ac_status=$? 2159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2160 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2161 { { case "(($ac_try" in 2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2163 *) ac_try_echo=$ac_try;; 2164esac 2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2166printf "%s\n" "$ac_try_echo"; } >&5 2167 (eval "$ac_try") 2>&5 2168 ac_status=$? 2169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2170 test $ac_status = 0; }; } 2171then : 2172 ac_retval=0 2173else $as_nop 2174 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2175 printf "%s\n" "$as_me: failed program was:" >&5 2176sed 's/^/| /' conftest.$ac_ext >&5 2177 2178 ac_retval=$ac_status 2179fi 2180 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182 as_fn_set_status $ac_retval 2183 2184} # ac_fn_c_try_run 2185 2186# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2187# ------------------------------------------- 2188# Tests whether TYPE exists after having included INCLUDES, setting cache 2189# variable VAR accordingly. 2190ac_fn_c_check_type () 2191{ 2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2194printf %s "checking for $2... " >&6; } 2195if eval test \${$3+y} 2196then : 2197 printf %s "(cached) " >&6 2198else $as_nop 2199 eval "$3=no" 2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2201/* end confdefs.h. */ 2202$4 2203int 2204main (void) 2205{ 2206if (sizeof ($2)) 2207 return 0; 2208 ; 2209 return 0; 2210} 2211_ACEOF 2212if ac_fn_c_try_compile "$LINENO" 2213then : 2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2215/* end confdefs.h. */ 2216$4 2217int 2218main (void) 2219{ 2220if (sizeof (($2))) 2221 return 0; 2222 ; 2223 return 0; 2224} 2225_ACEOF 2226if ac_fn_c_try_compile "$LINENO" 2227then : 2228 2229else $as_nop 2230 eval "$3=yes" 2231fi 2232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2233fi 2234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2235fi 2236eval ac_res=\$$3 2237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2238printf "%s\n" "$ac_res" >&6; } 2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2240 2241} # ac_fn_c_check_type 2242 2243# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2244# ------------------------------------------------------------------ 2245# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2246# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2247ac_fn_check_decl () 2248{ 2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2250 as_decl_name=`echo $2|sed 's/ *(.*//'` 2251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2252printf %s "checking whether $as_decl_name is declared... " >&6; } 2253if eval test \${$3+y} 2254then : 2255 printf %s "(cached) " >&6 2256else $as_nop 2257 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2258 eval ac_save_FLAGS=\$$6 2259 as_fn_append $6 " $5" 2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2261/* end confdefs.h. */ 2262$4 2263int 2264main (void) 2265{ 2266#ifndef $as_decl_name 2267#ifdef __cplusplus 2268 (void) $as_decl_use; 2269#else 2270 (void) $as_decl_name; 2271#endif 2272#endif 2273 2274 ; 2275 return 0; 2276} 2277_ACEOF 2278if ac_fn_c_try_compile "$LINENO" 2279then : 2280 eval "$3=yes" 2281else $as_nop 2282 eval "$3=no" 2283fi 2284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2285 eval $6=\$ac_save_FLAGS 2286 2287fi 2288eval ac_res=\$$3 2289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2290printf "%s\n" "$ac_res" >&6; } 2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2292 2293} # ac_fn_check_decl 2294 2295# ac_fn_c_check_header_preproc LINENO HEADER VAR 2296# ---------------------------------------------- 2297# Tests whether HEADER exists and can be preprocessed (in isolation), setting 2298# the cache variable VAR accordingly. 2299ac_fn_c_check_header_preproc () 2300{ 2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2303printf %s "checking for $2... " >&6; } 2304if eval test \${$3+y} 2305then : 2306 printf %s "(cached) " >&6 2307else $as_nop 2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2309/* end confdefs.h. */ 2310#include <$2> 2311_ACEOF 2312if ac_fn_c_try_cpp "$LINENO" 2313then : 2314 eval "$3=yes" 2315else $as_nop 2316 eval "$3=no" 2317fi 2318rm -f conftest.err conftest.i conftest.$ac_ext 2319fi 2320eval ac_res=\$$3 2321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2322printf "%s\n" "$ac_res" >&6; } 2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2324 2325} # ac_fn_c_check_header_preproc 2326ac_configure_args_raw= 2327for ac_arg 2328do 2329 case $ac_arg in 2330 *\'*) 2331 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2332 esac 2333 as_fn_append ac_configure_args_raw " '$ac_arg'" 2334done 2335 2336case $ac_configure_args_raw in 2337 *$as_nl*) 2338 ac_safe_unquote= ;; 2339 *) 2340 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2341 ac_unsafe_a="$ac_unsafe_z#~" 2342 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2343 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2344esac 2345 2346cat >config.log <<_ACEOF 2347This file contains any messages produced by compilers while 2348running configure, to aid debugging if configure makes a mistake. 2349 2350It was created by Heimdal $as_me 7.8.0, which was 2351generated by GNU Autoconf 2.71. Invocation command line was 2352 2353 $ $0$ac_configure_args_raw 2354 2355_ACEOF 2356exec 5>>config.log 2357{ 2358cat <<_ASUNAME 2359## --------- ## 2360## Platform. ## 2361## --------- ## 2362 2363hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2364uname -m = `(uname -m) 2>/dev/null || echo unknown` 2365uname -r = `(uname -r) 2>/dev/null || echo unknown` 2366uname -s = `(uname -s) 2>/dev/null || echo unknown` 2367uname -v = `(uname -v) 2>/dev/null || echo unknown` 2368 2369/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2370/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2371 2372/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2373/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2374/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2375/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2376/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2377/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2378/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2379 2380_ASUNAME 2381 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 case $as_dir in #((( 2387 '') as_dir=./ ;; 2388 */) ;; 2389 *) as_dir=$as_dir/ ;; 2390 esac 2391 printf "%s\n" "PATH: $as_dir" 2392 done 2393IFS=$as_save_IFS 2394 2395} >&5 2396 2397cat >&5 <<_ACEOF 2398 2399 2400## ----------- ## 2401## Core tests. ## 2402## ----------- ## 2403 2404_ACEOF 2405 2406 2407# Keep a trace of the command line. 2408# Strip out --no-create and --no-recursion so they do not pile up. 2409# Strip out --silent because we don't want to record it for future runs. 2410# Also quote any args containing shell meta-characters. 2411# Make two passes to allow for proper duplicate-argument suppression. 2412ac_configure_args= 2413ac_configure_args0= 2414ac_configure_args1= 2415ac_must_keep_next=false 2416for ac_pass in 1 2 2417do 2418 for ac_arg 2419 do 2420 case $ac_arg in 2421 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2423 | -silent | --silent | --silen | --sile | --sil) 2424 continue ;; 2425 *\'*) 2426 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2427 esac 2428 case $ac_pass in 2429 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2430 2) 2431 as_fn_append ac_configure_args1 " '$ac_arg'" 2432 if test $ac_must_keep_next = true; then 2433 ac_must_keep_next=false # Got value, back to normal. 2434 else 2435 case $ac_arg in 2436 *=* | --config-cache | -C | -disable-* | --disable-* \ 2437 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2438 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2439 | -with-* | --with-* | -without-* | --without-* | --x) 2440 case "$ac_configure_args0 " in 2441 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2442 esac 2443 ;; 2444 -* ) ac_must_keep_next=true ;; 2445 esac 2446 fi 2447 as_fn_append ac_configure_args " '$ac_arg'" 2448 ;; 2449 esac 2450 done 2451done 2452{ ac_configure_args0=; unset ac_configure_args0;} 2453{ ac_configure_args1=; unset ac_configure_args1;} 2454 2455# When interrupted or exit'd, cleanup temporary files, and complete 2456# config.log. We remove comments because anyway the quotes in there 2457# would cause problems or look ugly. 2458# WARNING: Use '\'' to represent an apostrophe within the trap. 2459# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2460trap 'exit_status=$? 2461 # Sanitize IFS. 2462 IFS=" "" $as_nl" 2463 # Save into config.log some information that might help in debugging. 2464 { 2465 echo 2466 2467 printf "%s\n" "## ---------------- ## 2468## Cache variables. ## 2469## ---------------- ##" 2470 echo 2471 # The following way of writing the cache mishandles newlines in values, 2472( 2473 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2474 eval ac_val=\$$ac_var 2475 case $ac_val in #( 2476 *${as_nl}*) 2477 case $ac_var in #( 2478 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2479printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2480 esac 2481 case $ac_var in #( 2482 _ | IFS | as_nl) ;; #( 2483 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2484 *) { eval $ac_var=; unset $ac_var;} ;; 2485 esac ;; 2486 esac 2487 done 2488 (set) 2>&1 | 2489 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2490 *${as_nl}ac_space=\ *) 2491 sed -n \ 2492 "s/'\''/'\''\\\\'\'''\''/g; 2493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2494 ;; #( 2495 *) 2496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2497 ;; 2498 esac | 2499 sort 2500) 2501 echo 2502 2503 printf "%s\n" "## ----------------- ## 2504## Output variables. ## 2505## ----------------- ##" 2506 echo 2507 for ac_var in $ac_subst_vars 2508 do 2509 eval ac_val=\$$ac_var 2510 case $ac_val in 2511 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2512 esac 2513 printf "%s\n" "$ac_var='\''$ac_val'\''" 2514 done | sort 2515 echo 2516 2517 if test -n "$ac_subst_files"; then 2518 printf "%s\n" "## ------------------- ## 2519## File substitutions. ## 2520## ------------------- ##" 2521 echo 2522 for ac_var in $ac_subst_files 2523 do 2524 eval ac_val=\$$ac_var 2525 case $ac_val in 2526 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2527 esac 2528 printf "%s\n" "$ac_var='\''$ac_val'\''" 2529 done | sort 2530 echo 2531 fi 2532 2533 if test -s confdefs.h; then 2534 printf "%s\n" "## ----------- ## 2535## confdefs.h. ## 2536## ----------- ##" 2537 echo 2538 cat confdefs.h 2539 echo 2540 fi 2541 test "$ac_signal" != 0 && 2542 printf "%s\n" "$as_me: caught signal $ac_signal" 2543 printf "%s\n" "$as_me: exit $exit_status" 2544 } >&5 2545 rm -f core *.core core.conftest.* && 2546 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2547 exit $exit_status 2548' 0 2549for ac_signal in 1 2 13 15; do 2550 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2551done 2552ac_signal=0 2553 2554# confdefs.h avoids OS command line length limits that DEFS can exceed. 2555rm -f -r conftest* confdefs.h 2556 2557printf "%s\n" "/* confdefs.h */" > confdefs.h 2558 2559# Predefined preprocessor variables. 2560 2561printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2562 2563printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2564 2565printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2566 2567printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2568 2569printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2570 2571printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2572 2573 2574# Let the site file select an alternate cache file if it wants to. 2575# Prefer an explicitly selected file to automatically selected ones. 2576if test -n "$CONFIG_SITE"; then 2577 ac_site_files="$CONFIG_SITE" 2578elif test "x$prefix" != xNONE; then 2579 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2580else 2581 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2582fi 2583 2584for ac_site_file in $ac_site_files 2585do 2586 case $ac_site_file in #( 2587 */*) : 2588 ;; #( 2589 *) : 2590 ac_site_file=./$ac_site_file ;; 2591esac 2592 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2594printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2595 sed 's/^/| /' "$ac_site_file" >&5 2596 . "$ac_site_file" \ 2597 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2598printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2599as_fn_error $? "failed to load site script $ac_site_file 2600See \`config.log' for more details" "$LINENO" 5; } 2601 fi 2602done 2603 2604if test -r "$cache_file"; then 2605 # Some versions of bash will fail to source /dev/null (special files 2606 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2607 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2609printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2610 case $cache_file in 2611 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2612 *) . "./$cache_file";; 2613 esac 2614 fi 2615else 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2617printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2618 >$cache_file 2619fi 2620 2621# Test code for whether the C compiler supports C89 (global declarations) 2622ac_c_conftest_c89_globals=' 2623/* Does the compiler advertise C89 conformance? 2624 Do not test the value of __STDC__, because some compilers set it to 0 2625 while being otherwise adequately conformant. */ 2626#if !defined __STDC__ 2627# error "Compiler does not advertise C89 conformance" 2628#endif 2629 2630#include <stddef.h> 2631#include <stdarg.h> 2632struct stat; 2633/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2634struct buf { int x; }; 2635struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2636static char *e (p, i) 2637 char **p; 2638 int i; 2639{ 2640 return p[i]; 2641} 2642static char *f (char * (*g) (char **, int), char **p, ...) 2643{ 2644 char *s; 2645 va_list v; 2646 va_start (v,p); 2647 s = g (p, va_arg (v,int)); 2648 va_end (v); 2649 return s; 2650} 2651 2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2653 function prototypes and stuff, but not \xHH hex character constants. 2654 These do not provoke an error unfortunately, instead are silently treated 2655 as an "x". The following induces an error, until -std is added to get 2656 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2657 array size at least. It is necessary to write \x00 == 0 to get something 2658 that is true only with -std. */ 2659int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2660 2661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2662 inside strings and character constants. */ 2663#define FOO(x) '\''x'\'' 2664int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2665 2666int test (int i, double x); 2667struct s1 {int (*f) (int a);}; 2668struct s2 {int (*f) (double a);}; 2669int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2670 int, int);' 2671 2672# Test code for whether the C compiler supports C89 (body of main). 2673ac_c_conftest_c89_main=' 2674ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2675' 2676 2677# Test code for whether the C compiler supports C99 (global declarations) 2678ac_c_conftest_c99_globals=' 2679// Does the compiler advertise C99 conformance? 2680#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2681# error "Compiler does not advertise C99 conformance" 2682#endif 2683 2684#include <stdbool.h> 2685extern int puts (const char *); 2686extern int printf (const char *, ...); 2687extern int dprintf (int, const char *, ...); 2688extern void *malloc (size_t); 2689 2690// Check varargs macros. These examples are taken from C99 6.10.3.5. 2691// dprintf is used instead of fprintf to avoid needing to declare 2692// FILE and stderr. 2693#define debug(...) dprintf (2, __VA_ARGS__) 2694#define showlist(...) puts (#__VA_ARGS__) 2695#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2696static void 2697test_varargs_macros (void) 2698{ 2699 int x = 1234; 2700 int y = 5678; 2701 debug ("Flag"); 2702 debug ("X = %d\n", x); 2703 showlist (The first, second, and third items.); 2704 report (x>y, "x is %d but y is %d", x, y); 2705} 2706 2707// Check long long types. 2708#define BIG64 18446744073709551615ull 2709#define BIG32 4294967295ul 2710#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2711#if !BIG_OK 2712 #error "your preprocessor is broken" 2713#endif 2714#if BIG_OK 2715#else 2716 #error "your preprocessor is broken" 2717#endif 2718static long long int bignum = -9223372036854775807LL; 2719static unsigned long long int ubignum = BIG64; 2720 2721struct incomplete_array 2722{ 2723 int datasize; 2724 double data[]; 2725}; 2726 2727struct named_init { 2728 int number; 2729 const wchar_t *name; 2730 double average; 2731}; 2732 2733typedef const char *ccp; 2734 2735static inline int 2736test_restrict (ccp restrict text) 2737{ 2738 // See if C++-style comments work. 2739 // Iterate through items via the restricted pointer. 2740 // Also check for declarations in for loops. 2741 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2742 continue; 2743 return 0; 2744} 2745 2746// Check varargs and va_copy. 2747static bool 2748test_varargs (const char *format, ...) 2749{ 2750 va_list args; 2751 va_start (args, format); 2752 va_list args_copy; 2753 va_copy (args_copy, args); 2754 2755 const char *str = ""; 2756 int number = 0; 2757 float fnumber = 0; 2758 2759 while (*format) 2760 { 2761 switch (*format++) 2762 { 2763 case '\''s'\'': // string 2764 str = va_arg (args_copy, const char *); 2765 break; 2766 case '\''d'\'': // int 2767 number = va_arg (args_copy, int); 2768 break; 2769 case '\''f'\'': // float 2770 fnumber = va_arg (args_copy, double); 2771 break; 2772 default: 2773 break; 2774 } 2775 } 2776 va_end (args_copy); 2777 va_end (args); 2778 2779 return *str && number && fnumber; 2780} 2781' 2782 2783# Test code for whether the C compiler supports C99 (body of main). 2784ac_c_conftest_c99_main=' 2785 // Check bool. 2786 _Bool success = false; 2787 success |= (argc != 0); 2788 2789 // Check restrict. 2790 if (test_restrict ("String literal") == 0) 2791 success = true; 2792 char *restrict newvar = "Another string"; 2793 2794 // Check varargs. 2795 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2796 test_varargs_macros (); 2797 2798 // Check flexible array members. 2799 struct incomplete_array *ia = 2800 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2801 ia->datasize = 10; 2802 for (int i = 0; i < ia->datasize; ++i) 2803 ia->data[i] = i * 1.234; 2804 2805 // Check named initializers. 2806 struct named_init ni = { 2807 .number = 34, 2808 .name = L"Test wide string", 2809 .average = 543.34343, 2810 }; 2811 2812 ni.number = 58; 2813 2814 int dynamic_array[ni.number]; 2815 dynamic_array[0] = argv[0][0]; 2816 dynamic_array[ni.number - 1] = 543; 2817 2818 // work around unused variable warnings 2819 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2820 || dynamic_array[ni.number - 1] != 543); 2821' 2822 2823# Test code for whether the C compiler supports C11 (global declarations) 2824ac_c_conftest_c11_globals=' 2825// Does the compiler advertise C11 conformance? 2826#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2827# error "Compiler does not advertise C11 conformance" 2828#endif 2829 2830// Check _Alignas. 2831char _Alignas (double) aligned_as_double; 2832char _Alignas (0) no_special_alignment; 2833extern char aligned_as_int; 2834char _Alignas (0) _Alignas (int) aligned_as_int; 2835 2836// Check _Alignof. 2837enum 2838{ 2839 int_alignment = _Alignof (int), 2840 int_array_alignment = _Alignof (int[100]), 2841 char_alignment = _Alignof (char) 2842}; 2843_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2844 2845// Check _Noreturn. 2846int _Noreturn does_not_return (void) { for (;;) continue; } 2847 2848// Check _Static_assert. 2849struct test_static_assert 2850{ 2851 int x; 2852 _Static_assert (sizeof (int) <= sizeof (long int), 2853 "_Static_assert does not work in struct"); 2854 long int y; 2855}; 2856 2857// Check UTF-8 literals. 2858#define u8 syntax error! 2859char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2860 2861// Check duplicate typedefs. 2862typedef long *long_ptr; 2863typedef long int *long_ptr; 2864typedef long_ptr long_ptr; 2865 2866// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2867struct anonymous 2868{ 2869 union { 2870 struct { int i; int j; }; 2871 struct { int k; long int l; } w; 2872 }; 2873 int m; 2874} v1; 2875' 2876 2877# Test code for whether the C compiler supports C11 (body of main). 2878ac_c_conftest_c11_main=' 2879 _Static_assert ((offsetof (struct anonymous, i) 2880 == offsetof (struct anonymous, w.k)), 2881 "Anonymous union alignment botch"); 2882 v1.i = 2; 2883 v1.w.k = 5; 2884 ok |= v1.i != 5; 2885' 2886 2887# Test code for whether the C compiler supports C11 (complete). 2888ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2889${ac_c_conftest_c99_globals} 2890${ac_c_conftest_c11_globals} 2891 2892int 2893main (int argc, char **argv) 2894{ 2895 int ok = 0; 2896 ${ac_c_conftest_c89_main} 2897 ${ac_c_conftest_c99_main} 2898 ${ac_c_conftest_c11_main} 2899 return ok; 2900} 2901" 2902 2903# Test code for whether the C compiler supports C99 (complete). 2904ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2905${ac_c_conftest_c99_globals} 2906 2907int 2908main (int argc, char **argv) 2909{ 2910 int ok = 0; 2911 ${ac_c_conftest_c89_main} 2912 ${ac_c_conftest_c99_main} 2913 return ok; 2914} 2915" 2916 2917# Test code for whether the C compiler supports C89 (complete). 2918ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2919 2920int 2921main (int argc, char **argv) 2922{ 2923 int ok = 0; 2924 ${ac_c_conftest_c89_main} 2925 return ok; 2926} 2927" 2928 2929as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2930as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2931as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2932as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2933as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2934as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2935as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2936as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2937as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2938as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" 2939as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2940as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2941 2942# Auxiliary files required by this configure script. 2943ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2944 2945# Locations in which to look for auxiliary files. 2946ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2947 2948# Search for a directory containing all of the required auxiliary files, 2949# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2950# If we don't find one directory that contains all the files we need, 2951# we report the set of missing files from the *first* directory in 2952# $ac_aux_dir_candidates and give up. 2953ac_missing_aux_files="" 2954ac_first_candidate=: 2955printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957as_found=false 2958for as_dir in $ac_aux_dir_candidates 2959do 2960 IFS=$as_save_IFS 2961 case $as_dir in #((( 2962 '') as_dir=./ ;; 2963 */) ;; 2964 *) as_dir=$as_dir/ ;; 2965 esac 2966 as_found=: 2967 2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2969 ac_aux_dir_found=yes 2970 ac_install_sh= 2971 for ac_aux in $ac_aux_files 2972 do 2973 # As a special case, if "install-sh" is required, that requirement 2974 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2975 # and $ac_install_sh is set appropriately for whichever one is found. 2976 if test x"$ac_aux" = x"install-sh" 2977 then 2978 if test -f "${as_dir}install-sh"; then 2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2980 ac_install_sh="${as_dir}install-sh -c" 2981 elif test -f "${as_dir}install.sh"; then 2982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2983 ac_install_sh="${as_dir}install.sh -c" 2984 elif test -f "${as_dir}shtool"; then 2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2986 ac_install_sh="${as_dir}shtool install -c" 2987 else 2988 ac_aux_dir_found=no 2989 if $ac_first_candidate; then 2990 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2991 else 2992 break 2993 fi 2994 fi 2995 else 2996 if test -f "${as_dir}${ac_aux}"; then 2997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2998 else 2999 ac_aux_dir_found=no 3000 if $ac_first_candidate; then 3001 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3002 else 3003 break 3004 fi 3005 fi 3006 fi 3007 done 3008 if test "$ac_aux_dir_found" = yes; then 3009 ac_aux_dir="$as_dir" 3010 break 3011 fi 3012 ac_first_candidate=false 3013 3014 as_found=false 3015done 3016IFS=$as_save_IFS 3017if $as_found 3018then : 3019 3020else $as_nop 3021 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3022fi 3023 3024 3025# These three variables are undocumented and unsupported, 3026# and are intended to be withdrawn in a future Autoconf release. 3027# They can cause serious problems if a builder's source tree is in a directory 3028# whose full name contains unusual characters. 3029if test -f "${ac_aux_dir}config.guess"; then 3030 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3031fi 3032if test -f "${ac_aux_dir}config.sub"; then 3033 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3034fi 3035if test -f "$ac_aux_dir/configure"; then 3036 ac_configure="$SHELL ${ac_aux_dir}configure" 3037fi 3038 3039# Check that the precious variables saved in the cache have kept the same 3040# value. 3041ac_cache_corrupted=false 3042for ac_var in $ac_precious_vars; do 3043 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3044 eval ac_new_set=\$ac_env_${ac_var}_set 3045 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3046 eval ac_new_val=\$ac_env_${ac_var}_value 3047 case $ac_old_set,$ac_new_set in 3048 set,) 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3050printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3051 ac_cache_corrupted=: ;; 3052 ,set) 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3054printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3055 ac_cache_corrupted=: ;; 3056 ,);; 3057 *) 3058 if test "x$ac_old_val" != "x$ac_new_val"; then 3059 # differences in whitespace do not lead to failure. 3060 ac_old_val_w=`echo x $ac_old_val` 3061 ac_new_val_w=`echo x $ac_new_val` 3062 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3064printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3065 ac_cache_corrupted=: 3066 else 3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3068printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3069 eval $ac_var=\$ac_old_val 3070 fi 3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3072printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3074printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3075 fi;; 3076 esac 3077 # Pass precious variables to config.status. 3078 if test "$ac_new_set" = set; then 3079 case $ac_new_val in 3080 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3081 *) ac_arg=$ac_var=$ac_new_val ;; 3082 esac 3083 case " $ac_configure_args " in 3084 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3085 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3086 esac 3087 fi 3088done 3089if $ac_cache_corrupted; then 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3091printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3093printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3094 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3095 and start over" "$LINENO" 5 3096fi 3097## -------------------- ## 3098## Main body of script. ## 3099## -------------------- ## 3100 3101ac_ext=c 3102ac_cpp='$CPP $CPPFLAGS' 3103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3105ac_compiler_gnu=$ac_cv_c_compiler_gnu 3106 3107 3108 3109ac_config_headers="$ac_config_headers include/config.h" 3110 3111 3112 3113am__api_version='1.16' 3114 3115 3116 3117 # Find a good install program. We prefer a C program (faster), 3118# so one script is as good as another. But avoid the broken or 3119# incompatible versions: 3120# SysV /etc/install, /usr/sbin/install 3121# SunOS /usr/etc/install 3122# IRIX /sbin/install 3123# AIX /bin/install 3124# AmigaOS /C/install, which installs bootblocks on floppy discs 3125# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3126# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3127# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3128# OS/2's system install, which has a completely different semantic 3129# ./install, which can be erroneously created by make from ./install.sh. 3130# Reject install programs that cannot install multiple files. 3131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3132printf %s "checking for a BSD-compatible install... " >&6; } 3133if test -z "$INSTALL"; then 3134if test ${ac_cv_path_install+y} 3135then : 3136 printf %s "(cached) " >&6 3137else $as_nop 3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3139for as_dir in $PATH 3140do 3141 IFS=$as_save_IFS 3142 case $as_dir in #((( 3143 '') as_dir=./ ;; 3144 */) ;; 3145 *) as_dir=$as_dir/ ;; 3146 esac 3147 # Account for fact that we put trailing slashes in our PATH walk. 3148case $as_dir in #(( 3149 ./ | /[cC]/* | \ 3150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3151 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3152 /usr/ucb/* ) ;; 3153 *) 3154 # OSF1 and SCO ODT 3.0 have their own names for install. 3155 # Don't use installbsd from OSF since it installs stuff as root 3156 # by default. 3157 for ac_prog in ginstall scoinst install; do 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3160 if test $ac_prog = install && 3161 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3162 # AIX install. It has an incompatible calling convention. 3163 : 3164 elif test $ac_prog = install && 3165 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3166 # program-specific install script used by HP pwplus--don't use. 3167 : 3168 else 3169 rm -rf conftest.one conftest.two conftest.dir 3170 echo one > conftest.one 3171 echo two > conftest.two 3172 mkdir conftest.dir 3173 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3174 test -s conftest.one && test -s conftest.two && 3175 test -s conftest.dir/conftest.one && 3176 test -s conftest.dir/conftest.two 3177 then 3178 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3179 break 3 3180 fi 3181 fi 3182 fi 3183 done 3184 done 3185 ;; 3186esac 3187 3188 done 3189IFS=$as_save_IFS 3190 3191rm -rf conftest.one conftest.two conftest.dir 3192 3193fi 3194 if test ${ac_cv_path_install+y}; then 3195 INSTALL=$ac_cv_path_install 3196 else 3197 # As a last resort, use the slow shell script. Don't cache a 3198 # value for INSTALL within a source directory, because that will 3199 # break other packages using the cache if that directory is 3200 # removed, or if the value is a relative name. 3201 INSTALL=$ac_install_sh 3202 fi 3203fi 3204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3205printf "%s\n" "$INSTALL" >&6; } 3206 3207# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3208# It thinks the first close brace ends the variable substitution. 3209test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3210 3211test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3212 3213test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3214 3215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3216printf %s "checking whether build environment is sane... " >&6; } 3217# Reject unsafe characters in $srcdir or the absolute working directory 3218# name. Accept space and tab only in the latter. 3219am_lf=' 3220' 3221case `pwd` in 3222 *[\\\"\#\$\&\'\`$am_lf]*) 3223 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3224esac 3225case $srcdir in 3226 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3227 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3228esac 3229 3230# Do 'set' in a subshell so we don't clobber the current shell's 3231# arguments. Must try -L first in case configure is actually a 3232# symlink; some systems play weird games with the mod time of symlinks 3233# (eg FreeBSD returns the mod time of the symlink's containing 3234# directory). 3235if ( 3236 am_has_slept=no 3237 for am_try in 1 2; do 3238 echo "timestamp, slept: $am_has_slept" > conftest.file 3239 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3240 if test "$*" = "X"; then 3241 # -L didn't work. 3242 set X `ls -t "$srcdir/configure" conftest.file` 3243 fi 3244 if test "$*" != "X $srcdir/configure conftest.file" \ 3245 && test "$*" != "X conftest.file $srcdir/configure"; then 3246 3247 # If neither matched, then we have a broken ls. This can happen 3248 # if, for instance, CONFIG_SHELL is bash and it inherits a 3249 # broken ls alias from the environment. This has actually 3250 # happened. Such a system could not be considered "sane". 3251 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3252 alias in your environment" "$LINENO" 5 3253 fi 3254 if test "$2" = conftest.file || test $am_try -eq 2; then 3255 break 3256 fi 3257 # Just in case. 3258 sleep 1 3259 am_has_slept=yes 3260 done 3261 test "$2" = conftest.file 3262 ) 3263then 3264 # Ok. 3265 : 3266else 3267 as_fn_error $? "newly created file is older than distributed files! 3268Check your system clock" "$LINENO" 5 3269fi 3270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3271printf "%s\n" "yes" >&6; } 3272# If we didn't sleep, we still need to ensure time stamps of config.status and 3273# generated files are strictly newer. 3274am_sleep_pid= 3275if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3276 ( sleep 1 ) & 3277 am_sleep_pid=$! 3278fi 3279 3280rm -f conftest.file 3281 3282test "$program_prefix" != NONE && 3283 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3284# Use a double $ so make ignores it. 3285test "$program_suffix" != NONE && 3286 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3287# Double any \ or $. 3288# By default was `s,x,x', remove it if useless. 3289ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3290program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3291 3292 3293# Expand $ac_aux_dir to an absolute path. 3294am_aux_dir=`cd "$ac_aux_dir" && pwd` 3295 3296 3297 if test x"${MISSING+set}" != xset; then 3298 MISSING="\${SHELL} '$am_aux_dir/missing'" 3299fi 3300# Use eval to expand $SHELL 3301if eval "$MISSING --is-lightweight"; then 3302 am_missing_run="$MISSING " 3303else 3304 am_missing_run= 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3306printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3307fi 3308 3309if test x"${install_sh+set}" != xset; then 3310 case $am_aux_dir in 3311 *\ * | *\ *) 3312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3313 *) 3314 install_sh="\${SHELL} $am_aux_dir/install-sh" 3315 esac 3316fi 3317 3318# Installed binaries are usually stripped using 'strip' when the user 3319# run "make install-strip". However 'strip' might not be the right 3320# tool to use in cross-compilation environments, therefore Automake 3321# will honor the 'STRIP' environment variable to overrule this program. 3322if test "$cross_compiling" != no; then 3323 if test -n "$ac_tool_prefix"; then 3324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3325set dummy ${ac_tool_prefix}strip; ac_word=$2 3326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327printf %s "checking for $ac_word... " >&6; } 3328if test ${ac_cv_prog_STRIP+y} 3329then : 3330 printf %s "(cached) " >&6 3331else $as_nop 3332 if test -n "$STRIP"; then 3333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3334else 3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3336for as_dir in $PATH 3337do 3338 IFS=$as_save_IFS 3339 case $as_dir in #((( 3340 '') as_dir=./ ;; 3341 */) ;; 3342 *) as_dir=$as_dir/ ;; 3343 esac 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3346 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3348 break 2 3349 fi 3350done 3351 done 3352IFS=$as_save_IFS 3353 3354fi 3355fi 3356STRIP=$ac_cv_prog_STRIP 3357if test -n "$STRIP"; then 3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3359printf "%s\n" "$STRIP" >&6; } 3360else 3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3362printf "%s\n" "no" >&6; } 3363fi 3364 3365 3366fi 3367if test -z "$ac_cv_prog_STRIP"; then 3368 ac_ct_STRIP=$STRIP 3369 # Extract the first word of "strip", so it can be a program name with args. 3370set dummy strip; ac_word=$2 3371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3372printf %s "checking for $ac_word... " >&6; } 3373if test ${ac_cv_prog_ac_ct_STRIP+y} 3374then : 3375 printf %s "(cached) " >&6 3376else $as_nop 3377 if test -n "$ac_ct_STRIP"; then 3378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3379else 3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3381for as_dir in $PATH 3382do 3383 IFS=$as_save_IFS 3384 case $as_dir in #((( 3385 '') as_dir=./ ;; 3386 */) ;; 3387 *) as_dir=$as_dir/ ;; 3388 esac 3389 for ac_exec_ext in '' $ac_executable_extensions; do 3390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3391 ac_cv_prog_ac_ct_STRIP="strip" 3392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3393 break 2 3394 fi 3395done 3396 done 3397IFS=$as_save_IFS 3398 3399fi 3400fi 3401ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3402if test -n "$ac_ct_STRIP"; then 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3404printf "%s\n" "$ac_ct_STRIP" >&6; } 3405else 3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3407printf "%s\n" "no" >&6; } 3408fi 3409 3410 if test "x$ac_ct_STRIP" = x; then 3411 STRIP=":" 3412 else 3413 case $cross_compiling:$ac_tool_warned in 3414yes:) 3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3416printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3417ac_tool_warned=yes ;; 3418esac 3419 STRIP=$ac_ct_STRIP 3420 fi 3421else 3422 STRIP="$ac_cv_prog_STRIP" 3423fi 3424 3425fi 3426INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3427 3428 3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3430printf %s "checking for a race-free mkdir -p... " >&6; } 3431if test -z "$MKDIR_P"; then 3432 if test ${ac_cv_path_mkdir+y} 3433then : 3434 printf %s "(cached) " >&6 3435else $as_nop 3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3437for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3438do 3439 IFS=$as_save_IFS 3440 case $as_dir in #((( 3441 '') as_dir=./ ;; 3442 */) ;; 3443 *) as_dir=$as_dir/ ;; 3444 esac 3445 for ac_prog in mkdir gmkdir; do 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3448 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3449 'mkdir ('*'coreutils) '* | \ 3450 'BusyBox '* | \ 3451 'mkdir (fileutils) '4.1*) 3452 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3453 break 3;; 3454 esac 3455 done 3456 done 3457 done 3458IFS=$as_save_IFS 3459 3460fi 3461 3462 test -d ./--version && rmdir ./--version 3463 if test ${ac_cv_path_mkdir+y}; then 3464 MKDIR_P="$ac_cv_path_mkdir -p" 3465 else 3466 # As a last resort, use the slow shell script. Don't cache a 3467 # value for MKDIR_P within a source directory, because that will 3468 # break other packages using the cache if that directory is 3469 # removed, or if the value is a relative name. 3470 MKDIR_P="$ac_install_sh -d" 3471 fi 3472fi 3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3474printf "%s\n" "$MKDIR_P" >&6; } 3475 3476for ac_prog in gawk mawk nawk awk 3477do 3478 # Extract the first word of "$ac_prog", so it can be a program name with args. 3479set dummy $ac_prog; ac_word=$2 3480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481printf %s "checking for $ac_word... " >&6; } 3482if test ${ac_cv_prog_AWK+y} 3483then : 3484 printf %s "(cached) " >&6 3485else $as_nop 3486 if test -n "$AWK"; then 3487 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3488else 3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3490for as_dir in $PATH 3491do 3492 IFS=$as_save_IFS 3493 case $as_dir in #((( 3494 '') as_dir=./ ;; 3495 */) ;; 3496 *) as_dir=$as_dir/ ;; 3497 esac 3498 for ac_exec_ext in '' $ac_executable_extensions; do 3499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3500 ac_cv_prog_AWK="$ac_prog" 3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3502 break 2 3503 fi 3504done 3505 done 3506IFS=$as_save_IFS 3507 3508fi 3509fi 3510AWK=$ac_cv_prog_AWK 3511if test -n "$AWK"; then 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3513printf "%s\n" "$AWK" >&6; } 3514else 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3516printf "%s\n" "no" >&6; } 3517fi 3518 3519 3520 test -n "$AWK" && break 3521done 3522 3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3524printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3525set x ${MAKE-make} 3526ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3527if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3528then : 3529 printf %s "(cached) " >&6 3530else $as_nop 3531 cat >conftest.make <<\_ACEOF 3532SHELL = /bin/sh 3533all: 3534 @echo '@@@%%%=$(MAKE)=@@@%%%' 3535_ACEOF 3536# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3537case `${MAKE-make} -f conftest.make 2>/dev/null` in 3538 *@@@%%%=?*=@@@%%%*) 3539 eval ac_cv_prog_make_${ac_make}_set=yes;; 3540 *) 3541 eval ac_cv_prog_make_${ac_make}_set=no;; 3542esac 3543rm -f conftest.make 3544fi 3545if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3547printf "%s\n" "yes" >&6; } 3548 SET_MAKE= 3549else 3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3551printf "%s\n" "no" >&6; } 3552 SET_MAKE="MAKE=${MAKE-make}" 3553fi 3554 3555rm -rf .tst 2>/dev/null 3556mkdir .tst 2>/dev/null 3557if test -d .tst; then 3558 am__leading_dot=. 3559else 3560 am__leading_dot=_ 3561fi 3562rmdir .tst 2>/dev/null 3563 3564# Check whether --enable-silent-rules was given. 3565if test ${enable_silent_rules+y} 3566then : 3567 enableval=$enable_silent_rules; 3568fi 3569 3570case $enable_silent_rules in # ((( 3571 yes) AM_DEFAULT_VERBOSITY=0;; 3572 no) AM_DEFAULT_VERBOSITY=1;; 3573 *) AM_DEFAULT_VERBOSITY=1;; 3574esac 3575am_make=${MAKE-make} 3576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3577printf %s "checking whether $am_make supports nested variables... " >&6; } 3578if test ${am_cv_make_support_nested_variables+y} 3579then : 3580 printf %s "(cached) " >&6 3581else $as_nop 3582 if printf "%s\n" 'TRUE=$(BAR$(V)) 3583BAR0=false 3584BAR1=true 3585V=1 3586am__doit: 3587 @$(TRUE) 3588.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3589 am_cv_make_support_nested_variables=yes 3590else 3591 am_cv_make_support_nested_variables=no 3592fi 3593fi 3594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3595printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3596if test $am_cv_make_support_nested_variables = yes; then 3597 AM_V='$(V)' 3598 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3599else 3600 AM_V=$AM_DEFAULT_VERBOSITY 3601 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3602fi 3603AM_BACKSLASH='\' 3604 3605if test "`cd $srcdir && pwd`" != "`pwd`"; then 3606 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3607 # is not polluted with repeated "-I." 3608 am__isrc=' -I$(srcdir)' 3609 # test to see if srcdir already configured 3610 if test -f $srcdir/config.status; then 3611 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3612 fi 3613fi 3614 3615# test whether we have cygpath 3616if test -z "$CYGPATH_W"; then 3617 if (cygpath --version) >/dev/null 2>/dev/null; then 3618 CYGPATH_W='cygpath -w' 3619 else 3620 CYGPATH_W=echo 3621 fi 3622fi 3623 3624 3625# Define the identity of the package. 3626 PACKAGE='heimdal' 3627 VERSION='7.8.0' 3628 3629 3630printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3631 3632 3633printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3634 3635# Some tools Automake needs. 3636 3637ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3638 3639 3640AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3641 3642 3643AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3644 3645 3646AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3647 3648 3649MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3650 3651# For better backward compatibility. To be removed once Automake 1.9.x 3652# dies out for good. For more background, see: 3653# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3654# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3655mkdir_p='$(MKDIR_P)' 3656 3657# We need awk for the "check" target (and possibly the TAP driver). The 3658# system "awk" is bad on some platforms. 3659# Always define AMTAR for backward compatibility. Yes, it's still used 3660# in the wild :-( We should find a proper way to deprecate it ... 3661AMTAR='$${TAR-tar}' 3662 3663 3664# We'll loop over all known methods to create a tar archive until one works. 3665_am_tools='gnutar pax cpio none' 3666 3667am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3668 3669 3670 3671 3672 3673# Variables for tags utilities; see am/tags.am 3674if test -z "$CTAGS"; then 3675 CTAGS=ctags 3676fi 3677 3678if test -z "$ETAGS"; then 3679 ETAGS=etags 3680fi 3681 3682if test -z "$CSCOPE"; then 3683 CSCOPE=cscope 3684fi 3685 3686 3687 3688# POSIX will say in a future version that running "rm -f" with no argument 3689# is OK; and we want to be able to make that assumption in our Makefile 3690# recipes. So use an aggressive probe to check that the usage we want is 3691# actually supported "in the wild" to an acceptable degree. 3692# See automake bug#10828. 3693# To make any issue more visible, cause the running configure to be aborted 3694# by default if the 'rm' program in use doesn't match our expectations; the 3695# user can still override this though. 3696if rm -f && rm -fr && rm -rf; then : OK; else 3697 cat >&2 <<'END' 3698Oops! 3699 3700Your 'rm' program seems unable to run without file operands specified 3701on the command line, even when the '-f' option is present. This is contrary 3702to the behaviour of most rm programs out there, and not conforming with 3703the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3704 3705Please tell bug-automake@gnu.org about your system, including the value 3706of your $PATH and any error possibly output before this message. This 3707can help us improve future automake versions. 3708 3709END 3710 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3711 echo 'Configuration will proceed anyway, since you have set the' >&2 3712 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3713 echo >&2 3714 else 3715 cat >&2 <<'END' 3716Aborting the configuration process, to ensure you take notice of the issue. 3717 3718You can download and install GNU coreutils to get an 'rm' implementation 3719that behaves properly: <https://www.gnu.org/software/coreutils/>. 3720 3721If you want to complete the configuration process using your problematic 3722'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3723to "yes", and re-run configure. 3724 3725END 3726 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3727 fi 3728fi 3729 3730 3731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3732printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3733 # Check whether --enable-maintainer-mode was given. 3734if test ${enable_maintainer_mode+y} 3735then : 3736 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3737else $as_nop 3738 USE_MAINTAINER_MODE=no 3739fi 3740 3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3742printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3743 if test $USE_MAINTAINER_MODE = yes; then 3744 MAINTAINER_MODE_TRUE= 3745 MAINTAINER_MODE_FALSE='#' 3746else 3747 MAINTAINER_MODE_TRUE='#' 3748 MAINTAINER_MODE_FALSE= 3749fi 3750 3751 MAINT=$MAINTAINER_MODE_TRUE 3752 3753 3754 3755 3756case `pwd` in 3757 *\ * | *\ *) 3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3759printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3760esac 3761 3762 3763 3764macro_version='2.4.7' 3765macro_revision='2.4.7' 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780ltmain=$ac_aux_dir/ltmain.sh 3781 3782 3783 3784 # Make sure we can run config.sub. 3785$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3786 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3787 3788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3789printf %s "checking build system type... " >&6; } 3790if test ${ac_cv_build+y} 3791then : 3792 printf %s "(cached) " >&6 3793else $as_nop 3794 ac_build_alias=$build_alias 3795test "x$ac_build_alias" = x && 3796 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3797test "x$ac_build_alias" = x && 3798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3799ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3800 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3801 3802fi 3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3804printf "%s\n" "$ac_cv_build" >&6; } 3805case $ac_cv_build in 3806*-*-*) ;; 3807*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3808esac 3809build=$ac_cv_build 3810ac_save_IFS=$IFS; IFS='-' 3811set x $ac_cv_build 3812shift 3813build_cpu=$1 3814build_vendor=$2 3815shift; shift 3816# Remember, the first character of IFS is used to create $*, 3817# except with old shells: 3818build_os=$* 3819IFS=$ac_save_IFS 3820case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3821 3822 3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3824printf %s "checking host system type... " >&6; } 3825if test ${ac_cv_host+y} 3826then : 3827 printf %s "(cached) " >&6 3828else $as_nop 3829 if test "x$host_alias" = x; then 3830 ac_cv_host=$ac_cv_build 3831else 3832 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3833 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3834fi 3835 3836fi 3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3838printf "%s\n" "$ac_cv_host" >&6; } 3839case $ac_cv_host in 3840*-*-*) ;; 3841*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3842esac 3843host=$ac_cv_host 3844ac_save_IFS=$IFS; IFS='-' 3845set x $ac_cv_host 3846shift 3847host_cpu=$1 3848host_vendor=$2 3849shift; shift 3850# Remember, the first character of IFS is used to create $*, 3851# except with old shells: 3852host_os=$* 3853IFS=$ac_save_IFS 3854case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3855 3856 3857# Backslashify metacharacters that are still active within 3858# double-quoted strings. 3859sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3860 3861# Same as above, but do not quote variable references. 3862double_quote_subst='s/\(["`\\]\)/\\\1/g' 3863 3864# Sed substitution to delay expansion of an escaped shell variable in a 3865# double_quote_subst'ed string. 3866delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3867 3868# Sed substitution to delay expansion of an escaped single quote. 3869delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3870 3871# Sed substitution to avoid accidental globbing in evaled expressions 3872no_glob_subst='s/\*/\\\*/g' 3873 3874ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3875ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3876ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3877 3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3879printf %s "checking how to print strings... " >&6; } 3880# Test print first, because it will be a builtin if present. 3881if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3882 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3883 ECHO='print -r --' 3884elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3885 ECHO='printf %s\n' 3886else 3887 # Use this function as a fallback that always works. 3888 func_fallback_echo () 3889 { 3890 eval 'cat <<_LTECHO_EOF 3891$1 3892_LTECHO_EOF' 3893 } 3894 ECHO='func_fallback_echo' 3895fi 3896 3897# func_echo_all arg... 3898# Invoke $ECHO with all args, space-separated. 3899func_echo_all () 3900{ 3901 $ECHO "" 3902} 3903 3904case $ECHO in 3905 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3906printf "%s\n" "printf" >&6; } ;; 3907 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3908printf "%s\n" "print -r" >&6; } ;; 3909 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3910printf "%s\n" "cat" >&6; } ;; 3911esac 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935DEPDIR="${am__leading_dot}deps" 3936 3937ac_config_commands="$ac_config_commands depfiles" 3938 3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3940printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3941cat > confinc.mk << 'END' 3942am__doit: 3943 @echo this is the am__doit target >confinc.out 3944.PHONY: am__doit 3945END 3946am__include="#" 3947am__quote= 3948# BSD make does it like this. 3949echo '.include "confinc.mk" # ignored' > confmf.BSD 3950# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3951echo 'include confinc.mk # ignored' > confmf.GNU 3952_am_result=no 3953for s in GNU BSD; do 3954 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3955 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3956 ac_status=$? 3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3958 (exit $ac_status); } 3959 case $?:`cat confinc.out 2>/dev/null` in #( 3960 '0:this is the am__doit target') : 3961 case $s in #( 3962 BSD) : 3963 am__include='.include' am__quote='"' ;; #( 3964 *) : 3965 am__include='include' am__quote='' ;; 3966esac ;; #( 3967 *) : 3968 ;; 3969esac 3970 if test "$am__include" != "#"; then 3971 _am_result="yes ($s style)" 3972 break 3973 fi 3974done 3975rm -f confinc.* confmf.* 3976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3977printf "%s\n" "${_am_result}" >&6; } 3978 3979# Check whether --enable-dependency-tracking was given. 3980if test ${enable_dependency_tracking+y} 3981then : 3982 enableval=$enable_dependency_tracking; 3983fi 3984 3985if test "x$enable_dependency_tracking" != xno; then 3986 am_depcomp="$ac_aux_dir/depcomp" 3987 AMDEPBACKSLASH='\' 3988 am__nodep='_no' 3989fi 3990 if test "x$enable_dependency_tracking" != xno; then 3991 AMDEP_TRUE= 3992 AMDEP_FALSE='#' 3993else 3994 AMDEP_TRUE='#' 3995 AMDEP_FALSE= 3996fi 3997 3998 3999ac_ext=c 4000ac_cpp='$CPP $CPPFLAGS' 4001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4003ac_compiler_gnu=$ac_cv_c_compiler_gnu 4004if test -n "$ac_tool_prefix"; then 4005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4006set dummy ${ac_tool_prefix}gcc; ac_word=$2 4007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4008printf %s "checking for $ac_word... " >&6; } 4009if test ${ac_cv_prog_CC+y} 4010then : 4011 printf %s "(cached) " >&6 4012else $as_nop 4013 if test -n "$CC"; then 4014 ac_cv_prog_CC="$CC" # Let the user override the test. 4015else 4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017for as_dir in $PATH 4018do 4019 IFS=$as_save_IFS 4020 case $as_dir in #((( 4021 '') as_dir=./ ;; 4022 */) ;; 4023 *) as_dir=$as_dir/ ;; 4024 esac 4025 for ac_exec_ext in '' $ac_executable_extensions; do 4026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4027 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4029 break 2 4030 fi 4031done 4032 done 4033IFS=$as_save_IFS 4034 4035fi 4036fi 4037CC=$ac_cv_prog_CC 4038if test -n "$CC"; then 4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4040printf "%s\n" "$CC" >&6; } 4041else 4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4043printf "%s\n" "no" >&6; } 4044fi 4045 4046 4047fi 4048if test -z "$ac_cv_prog_CC"; then 4049 ac_ct_CC=$CC 4050 # Extract the first word of "gcc", so it can be a program name with args. 4051set dummy gcc; ac_word=$2 4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4053printf %s "checking for $ac_word... " >&6; } 4054if test ${ac_cv_prog_ac_ct_CC+y} 4055then : 4056 printf %s "(cached) " >&6 4057else $as_nop 4058 if test -n "$ac_ct_CC"; then 4059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4060else 4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4062for as_dir in $PATH 4063do 4064 IFS=$as_save_IFS 4065 case $as_dir in #((( 4066 '') as_dir=./ ;; 4067 */) ;; 4068 *) as_dir=$as_dir/ ;; 4069 esac 4070 for ac_exec_ext in '' $ac_executable_extensions; do 4071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4072 ac_cv_prog_ac_ct_CC="gcc" 4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4074 break 2 4075 fi 4076done 4077 done 4078IFS=$as_save_IFS 4079 4080fi 4081fi 4082ac_ct_CC=$ac_cv_prog_ac_ct_CC 4083if test -n "$ac_ct_CC"; then 4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4085printf "%s\n" "$ac_ct_CC" >&6; } 4086else 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4088printf "%s\n" "no" >&6; } 4089fi 4090 4091 if test "x$ac_ct_CC" = x; then 4092 CC="" 4093 else 4094 case $cross_compiling:$ac_tool_warned in 4095yes:) 4096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4097printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4098ac_tool_warned=yes ;; 4099esac 4100 CC=$ac_ct_CC 4101 fi 4102else 4103 CC="$ac_cv_prog_CC" 4104fi 4105 4106if test -z "$CC"; then 4107 if test -n "$ac_tool_prefix"; then 4108 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4109set dummy ${ac_tool_prefix}cc; ac_word=$2 4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4111printf %s "checking for $ac_word... " >&6; } 4112if test ${ac_cv_prog_CC+y} 4113then : 4114 printf %s "(cached) " >&6 4115else $as_nop 4116 if test -n "$CC"; then 4117 ac_cv_prog_CC="$CC" # Let the user override the test. 4118else 4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4120for as_dir in $PATH 4121do 4122 IFS=$as_save_IFS 4123 case $as_dir in #((( 4124 '') as_dir=./ ;; 4125 */) ;; 4126 *) as_dir=$as_dir/ ;; 4127 esac 4128 for ac_exec_ext in '' $ac_executable_extensions; do 4129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4130 ac_cv_prog_CC="${ac_tool_prefix}cc" 4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4132 break 2 4133 fi 4134done 4135 done 4136IFS=$as_save_IFS 4137 4138fi 4139fi 4140CC=$ac_cv_prog_CC 4141if test -n "$CC"; then 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4143printf "%s\n" "$CC" >&6; } 4144else 4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4146printf "%s\n" "no" >&6; } 4147fi 4148 4149 4150 fi 4151fi 4152if test -z "$CC"; then 4153 # Extract the first word of "cc", so it can be a program name with args. 4154set dummy cc; ac_word=$2 4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4156printf %s "checking for $ac_word... " >&6; } 4157if test ${ac_cv_prog_CC+y} 4158then : 4159 printf %s "(cached) " >&6 4160else $as_nop 4161 if test -n "$CC"; then 4162 ac_cv_prog_CC="$CC" # Let the user override the test. 4163else 4164 ac_prog_rejected=no 4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4166for as_dir in $PATH 4167do 4168 IFS=$as_save_IFS 4169 case $as_dir in #((( 4170 '') as_dir=./ ;; 4171 */) ;; 4172 *) as_dir=$as_dir/ ;; 4173 esac 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4176 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4177 ac_prog_rejected=yes 4178 continue 4179 fi 4180 ac_cv_prog_CC="cc" 4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4182 break 2 4183 fi 4184done 4185 done 4186IFS=$as_save_IFS 4187 4188if test $ac_prog_rejected = yes; then 4189 # We found a bogon in the path, so make sure we never use it. 4190 set dummy $ac_cv_prog_CC 4191 shift 4192 if test $# != 0; then 4193 # We chose a different compiler from the bogus one. 4194 # However, it has the same basename, so the bogon will be chosen 4195 # first if we set CC to just the basename; use the full file name. 4196 shift 4197 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4198 fi 4199fi 4200fi 4201fi 4202CC=$ac_cv_prog_CC 4203if test -n "$CC"; then 4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4205printf "%s\n" "$CC" >&6; } 4206else 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208printf "%s\n" "no" >&6; } 4209fi 4210 4211 4212fi 4213if test -z "$CC"; then 4214 if test -n "$ac_tool_prefix"; then 4215 for ac_prog in cl.exe 4216 do 4217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4218set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4220printf %s "checking for $ac_word... " >&6; } 4221if test ${ac_cv_prog_CC+y} 4222then : 4223 printf %s "(cached) " >&6 4224else $as_nop 4225 if test -n "$CC"; then 4226 ac_cv_prog_CC="$CC" # Let the user override the test. 4227else 4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4229for as_dir in $PATH 4230do 4231 IFS=$as_save_IFS 4232 case $as_dir in #((( 4233 '') as_dir=./ ;; 4234 */) ;; 4235 *) as_dir=$as_dir/ ;; 4236 esac 4237 for ac_exec_ext in '' $ac_executable_extensions; do 4238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4239 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4241 break 2 4242 fi 4243done 4244 done 4245IFS=$as_save_IFS 4246 4247fi 4248fi 4249CC=$ac_cv_prog_CC 4250if test -n "$CC"; then 4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4252printf "%s\n" "$CC" >&6; } 4253else 4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4255printf "%s\n" "no" >&6; } 4256fi 4257 4258 4259 test -n "$CC" && break 4260 done 4261fi 4262if test -z "$CC"; then 4263 ac_ct_CC=$CC 4264 for ac_prog in cl.exe 4265do 4266 # Extract the first word of "$ac_prog", so it can be a program name with args. 4267set dummy $ac_prog; ac_word=$2 4268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4269printf %s "checking for $ac_word... " >&6; } 4270if test ${ac_cv_prog_ac_ct_CC+y} 4271then : 4272 printf %s "(cached) " >&6 4273else $as_nop 4274 if test -n "$ac_ct_CC"; then 4275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4276else 4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4278for as_dir in $PATH 4279do 4280 IFS=$as_save_IFS 4281 case $as_dir in #((( 4282 '') as_dir=./ ;; 4283 */) ;; 4284 *) as_dir=$as_dir/ ;; 4285 esac 4286 for ac_exec_ext in '' $ac_executable_extensions; do 4287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4288 ac_cv_prog_ac_ct_CC="$ac_prog" 4289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4290 break 2 4291 fi 4292done 4293 done 4294IFS=$as_save_IFS 4295 4296fi 4297fi 4298ac_ct_CC=$ac_cv_prog_ac_ct_CC 4299if test -n "$ac_ct_CC"; then 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4301printf "%s\n" "$ac_ct_CC" >&6; } 4302else 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4304printf "%s\n" "no" >&6; } 4305fi 4306 4307 4308 test -n "$ac_ct_CC" && break 4309done 4310 4311 if test "x$ac_ct_CC" = x; then 4312 CC="" 4313 else 4314 case $cross_compiling:$ac_tool_warned in 4315yes:) 4316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4317printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4318ac_tool_warned=yes ;; 4319esac 4320 CC=$ac_ct_CC 4321 fi 4322fi 4323 4324fi 4325if test -z "$CC"; then 4326 if test -n "$ac_tool_prefix"; then 4327 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4328set dummy ${ac_tool_prefix}clang; ac_word=$2 4329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4330printf %s "checking for $ac_word... " >&6; } 4331if test ${ac_cv_prog_CC+y} 4332then : 4333 printf %s "(cached) " >&6 4334else $as_nop 4335 if test -n "$CC"; then 4336 ac_cv_prog_CC="$CC" # Let the user override the test. 4337else 4338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4339for as_dir in $PATH 4340do 4341 IFS=$as_save_IFS 4342 case $as_dir in #((( 4343 '') as_dir=./ ;; 4344 */) ;; 4345 *) as_dir=$as_dir/ ;; 4346 esac 4347 for ac_exec_ext in '' $ac_executable_extensions; do 4348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4349 ac_cv_prog_CC="${ac_tool_prefix}clang" 4350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4351 break 2 4352 fi 4353done 4354 done 4355IFS=$as_save_IFS 4356 4357fi 4358fi 4359CC=$ac_cv_prog_CC 4360if test -n "$CC"; then 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4362printf "%s\n" "$CC" >&6; } 4363else 4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4365printf "%s\n" "no" >&6; } 4366fi 4367 4368 4369fi 4370if test -z "$ac_cv_prog_CC"; then 4371 ac_ct_CC=$CC 4372 # Extract the first word of "clang", so it can be a program name with args. 4373set dummy clang; ac_word=$2 4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4375printf %s "checking for $ac_word... " >&6; } 4376if test ${ac_cv_prog_ac_ct_CC+y} 4377then : 4378 printf %s "(cached) " >&6 4379else $as_nop 4380 if test -n "$ac_ct_CC"; then 4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4382else 4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4384for as_dir in $PATH 4385do 4386 IFS=$as_save_IFS 4387 case $as_dir in #((( 4388 '') as_dir=./ ;; 4389 */) ;; 4390 *) as_dir=$as_dir/ ;; 4391 esac 4392 for ac_exec_ext in '' $ac_executable_extensions; do 4393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4394 ac_cv_prog_ac_ct_CC="clang" 4395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4396 break 2 4397 fi 4398done 4399 done 4400IFS=$as_save_IFS 4401 4402fi 4403fi 4404ac_ct_CC=$ac_cv_prog_ac_ct_CC 4405if test -n "$ac_ct_CC"; then 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4407printf "%s\n" "$ac_ct_CC" >&6; } 4408else 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4410printf "%s\n" "no" >&6; } 4411fi 4412 4413 if test "x$ac_ct_CC" = x; then 4414 CC="" 4415 else 4416 case $cross_compiling:$ac_tool_warned in 4417yes:) 4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4419printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4420ac_tool_warned=yes ;; 4421esac 4422 CC=$ac_ct_CC 4423 fi 4424else 4425 CC="$ac_cv_prog_CC" 4426fi 4427 4428fi 4429 4430 4431test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4432printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4433as_fn_error $? "no acceptable C compiler found in \$PATH 4434See \`config.log' for more details" "$LINENO" 5; } 4435 4436# Provide some information about the compiler. 4437printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4438set X $ac_compile 4439ac_compiler=$2 4440for ac_option in --version -v -V -qversion -version; do 4441 { { ac_try="$ac_compiler $ac_option >&5" 4442case "(($ac_try" in 4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4444 *) ac_try_echo=$ac_try;; 4445esac 4446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4447printf "%s\n" "$ac_try_echo"; } >&5 4448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4449 ac_status=$? 4450 if test -s conftest.err; then 4451 sed '10a\ 4452... rest of stderr output deleted ... 4453 10q' conftest.err >conftest.er1 4454 cat conftest.er1 >&5 4455 fi 4456 rm -f conftest.er1 conftest.err 4457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4458 test $ac_status = 0; } 4459done 4460 4461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462/* end confdefs.h. */ 4463 4464int 4465main (void) 4466{ 4467 4468 ; 4469 return 0; 4470} 4471_ACEOF 4472ac_clean_files_save=$ac_clean_files 4473ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4474# Try to create an executable without -o first, disregard a.out. 4475# It will help us diagnose broken compilers, and finding out an intuition 4476# of exeext. 4477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4478printf %s "checking whether the C compiler works... " >&6; } 4479ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4480 4481# The possible output files: 4482ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4483 4484ac_rmfiles= 4485for ac_file in $ac_files 4486do 4487 case $ac_file in 4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4489 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4490 esac 4491done 4492rm -f $ac_rmfiles 4493 4494if { { ac_try="$ac_link_default" 4495case "(($ac_try" in 4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4497 *) ac_try_echo=$ac_try;; 4498esac 4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4500printf "%s\n" "$ac_try_echo"; } >&5 4501 (eval "$ac_link_default") 2>&5 4502 ac_status=$? 4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4504 test $ac_status = 0; } 4505then : 4506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4507# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4508# in a Makefile. We should not override ac_cv_exeext if it was cached, 4509# so that the user can short-circuit this test for compilers unknown to 4510# Autoconf. 4511for ac_file in $ac_files '' 4512do 4513 test -f "$ac_file" || continue 4514 case $ac_file in 4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4516 ;; 4517 [ab].out ) 4518 # We found the default executable, but exeext='' is most 4519 # certainly right. 4520 break;; 4521 *.* ) 4522 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4523 then :; else 4524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4525 fi 4526 # We set ac_cv_exeext here because the later test for it is not 4527 # safe: cross compilers may not add the suffix if given an `-o' 4528 # argument, so we may need to know it at that point already. 4529 # Even if this section looks crufty: it has the advantage of 4530 # actually working. 4531 break;; 4532 * ) 4533 break;; 4534 esac 4535done 4536test "$ac_cv_exeext" = no && ac_cv_exeext= 4537 4538else $as_nop 4539 ac_file='' 4540fi 4541if test -z "$ac_file" 4542then : 4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544printf "%s\n" "no" >&6; } 4545printf "%s\n" "$as_me: failed program was:" >&5 4546sed 's/^/| /' conftest.$ac_ext >&5 4547 4548{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4549printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4550as_fn_error 77 "C compiler cannot create executables 4551See \`config.log' for more details" "$LINENO" 5; } 4552else $as_nop 4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4554printf "%s\n" "yes" >&6; } 4555fi 4556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4557printf %s "checking for C compiler default output file name... " >&6; } 4558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4559printf "%s\n" "$ac_file" >&6; } 4560ac_exeext=$ac_cv_exeext 4561 4562rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4563ac_clean_files=$ac_clean_files_save 4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4565printf %s "checking for suffix of executables... " >&6; } 4566if { { ac_try="$ac_link" 4567case "(($ac_try" in 4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4569 *) ac_try_echo=$ac_try;; 4570esac 4571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4572printf "%s\n" "$ac_try_echo"; } >&5 4573 (eval "$ac_link") 2>&5 4574 ac_status=$? 4575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4576 test $ac_status = 0; } 4577then : 4578 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4579# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4580# work properly (i.e., refer to `conftest.exe'), while it won't with 4581# `rm'. 4582for ac_file in conftest.exe conftest conftest.*; do 4583 test -f "$ac_file" || continue 4584 case $ac_file in 4585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4586 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4587 break;; 4588 * ) break;; 4589 esac 4590done 4591else $as_nop 4592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4593printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4594as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4595See \`config.log' for more details" "$LINENO" 5; } 4596fi 4597rm -f conftest conftest$ac_cv_exeext 4598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4599printf "%s\n" "$ac_cv_exeext" >&6; } 4600 4601rm -f conftest.$ac_ext 4602EXEEXT=$ac_cv_exeext 4603ac_exeext=$EXEEXT 4604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4605/* end confdefs.h. */ 4606#include <stdio.h> 4607int 4608main (void) 4609{ 4610FILE *f = fopen ("conftest.out", "w"); 4611 return ferror (f) || fclose (f) != 0; 4612 4613 ; 4614 return 0; 4615} 4616_ACEOF 4617ac_clean_files="$ac_clean_files conftest.out" 4618# Check that the compiler produces executables we can run. If not, either 4619# the compiler is broken, or we cross compile. 4620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4621printf %s "checking whether we are cross compiling... " >&6; } 4622if test "$cross_compiling" != yes; then 4623 { { ac_try="$ac_link" 4624case "(($ac_try" in 4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4626 *) ac_try_echo=$ac_try;; 4627esac 4628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4629printf "%s\n" "$ac_try_echo"; } >&5 4630 (eval "$ac_link") 2>&5 4631 ac_status=$? 4632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4633 test $ac_status = 0; } 4634 if { ac_try='./conftest$ac_cv_exeext' 4635 { { case "(($ac_try" in 4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4637 *) ac_try_echo=$ac_try;; 4638esac 4639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4640printf "%s\n" "$ac_try_echo"; } >&5 4641 (eval "$ac_try") 2>&5 4642 ac_status=$? 4643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4644 test $ac_status = 0; }; }; then 4645 cross_compiling=no 4646 else 4647 if test "$cross_compiling" = maybe; then 4648 cross_compiling=yes 4649 else 4650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4651printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4652as_fn_error 77 "cannot run C compiled programs. 4653If you meant to cross compile, use \`--host'. 4654See \`config.log' for more details" "$LINENO" 5; } 4655 fi 4656 fi 4657fi 4658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4659printf "%s\n" "$cross_compiling" >&6; } 4660 4661rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4662ac_clean_files=$ac_clean_files_save 4663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4664printf %s "checking for suffix of object files... " >&6; } 4665if test ${ac_cv_objext+y} 4666then : 4667 printf %s "(cached) " >&6 4668else $as_nop 4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4670/* end confdefs.h. */ 4671 4672int 4673main (void) 4674{ 4675 4676 ; 4677 return 0; 4678} 4679_ACEOF 4680rm -f conftest.o conftest.obj 4681if { { ac_try="$ac_compile" 4682case "(($ac_try" in 4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4684 *) ac_try_echo=$ac_try;; 4685esac 4686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4687printf "%s\n" "$ac_try_echo"; } >&5 4688 (eval "$ac_compile") 2>&5 4689 ac_status=$? 4690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4691 test $ac_status = 0; } 4692then : 4693 for ac_file in conftest.o conftest.obj conftest.*; do 4694 test -f "$ac_file" || continue; 4695 case $ac_file in 4696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4698 break;; 4699 esac 4700done 4701else $as_nop 4702 printf "%s\n" "$as_me: failed program was:" >&5 4703sed 's/^/| /' conftest.$ac_ext >&5 4704 4705{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4706printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4707as_fn_error $? "cannot compute suffix of object files: cannot compile 4708See \`config.log' for more details" "$LINENO" 5; } 4709fi 4710rm -f conftest.$ac_cv_objext conftest.$ac_ext 4711fi 4712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4713printf "%s\n" "$ac_cv_objext" >&6; } 4714OBJEXT=$ac_cv_objext 4715ac_objext=$OBJEXT 4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4717printf %s "checking whether the compiler supports GNU C... " >&6; } 4718if test ${ac_cv_c_compiler_gnu+y} 4719then : 4720 printf %s "(cached) " >&6 4721else $as_nop 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723/* end confdefs.h. */ 4724 4725int 4726main (void) 4727{ 4728#ifndef __GNUC__ 4729 choke me 4730#endif 4731 4732 ; 4733 return 0; 4734} 4735_ACEOF 4736if ac_fn_c_try_compile "$LINENO" 4737then : 4738 ac_compiler_gnu=yes 4739else $as_nop 4740 ac_compiler_gnu=no 4741fi 4742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4743ac_cv_c_compiler_gnu=$ac_compiler_gnu 4744 4745fi 4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4747printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4748ac_compiler_gnu=$ac_cv_c_compiler_gnu 4749 4750if test $ac_compiler_gnu = yes; then 4751 GCC=yes 4752else 4753 GCC= 4754fi 4755ac_test_CFLAGS=${CFLAGS+y} 4756ac_save_CFLAGS=$CFLAGS 4757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4758printf %s "checking whether $CC accepts -g... " >&6; } 4759if test ${ac_cv_prog_cc_g+y} 4760then : 4761 printf %s "(cached) " >&6 4762else $as_nop 4763 ac_save_c_werror_flag=$ac_c_werror_flag 4764 ac_c_werror_flag=yes 4765 ac_cv_prog_cc_g=no 4766 CFLAGS="-g" 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768/* end confdefs.h. */ 4769 4770int 4771main (void) 4772{ 4773 4774 ; 4775 return 0; 4776} 4777_ACEOF 4778if ac_fn_c_try_compile "$LINENO" 4779then : 4780 ac_cv_prog_cc_g=yes 4781else $as_nop 4782 CFLAGS="" 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784/* end confdefs.h. */ 4785 4786int 4787main (void) 4788{ 4789 4790 ; 4791 return 0; 4792} 4793_ACEOF 4794if ac_fn_c_try_compile "$LINENO" 4795then : 4796 4797else $as_nop 4798 ac_c_werror_flag=$ac_save_c_werror_flag 4799 CFLAGS="-g" 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802 4803int 4804main (void) 4805{ 4806 4807 ; 4808 return 0; 4809} 4810_ACEOF 4811if ac_fn_c_try_compile "$LINENO" 4812then : 4813 ac_cv_prog_cc_g=yes 4814fi 4815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4816fi 4817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4818fi 4819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4820 ac_c_werror_flag=$ac_save_c_werror_flag 4821fi 4822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4823printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4824if test $ac_test_CFLAGS; then 4825 CFLAGS=$ac_save_CFLAGS 4826elif test $ac_cv_prog_cc_g = yes; then 4827 if test "$GCC" = yes; then 4828 CFLAGS="-g -O2" 4829 else 4830 CFLAGS="-g" 4831 fi 4832else 4833 if test "$GCC" = yes; then 4834 CFLAGS="-O2" 4835 else 4836 CFLAGS= 4837 fi 4838fi 4839ac_prog_cc_stdc=no 4840if test x$ac_prog_cc_stdc = xno 4841then : 4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4843printf %s "checking for $CC option to enable C11 features... " >&6; } 4844if test ${ac_cv_prog_cc_c11+y} 4845then : 4846 printf %s "(cached) " >&6 4847else $as_nop 4848 ac_cv_prog_cc_c11=no 4849ac_save_CC=$CC 4850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851/* end confdefs.h. */ 4852$ac_c_conftest_c11_program 4853_ACEOF 4854for ac_arg in '' -std=gnu11 4855do 4856 CC="$ac_save_CC $ac_arg" 4857 if ac_fn_c_try_compile "$LINENO" 4858then : 4859 ac_cv_prog_cc_c11=$ac_arg 4860fi 4861rm -f core conftest.err conftest.$ac_objext conftest.beam 4862 test "x$ac_cv_prog_cc_c11" != "xno" && break 4863done 4864rm -f conftest.$ac_ext 4865CC=$ac_save_CC 4866fi 4867 4868if test "x$ac_cv_prog_cc_c11" = xno 4869then : 4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4871printf "%s\n" "unsupported" >&6; } 4872else $as_nop 4873 if test "x$ac_cv_prog_cc_c11" = x 4874then : 4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4876printf "%s\n" "none needed" >&6; } 4877else $as_nop 4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4879printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4880 CC="$CC $ac_cv_prog_cc_c11" 4881fi 4882 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4883 ac_prog_cc_stdc=c11 4884fi 4885fi 4886if test x$ac_prog_cc_stdc = xno 4887then : 4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4889printf %s "checking for $CC option to enable C99 features... " >&6; } 4890if test ${ac_cv_prog_cc_c99+y} 4891then : 4892 printf %s "(cached) " >&6 4893else $as_nop 4894 ac_cv_prog_cc_c99=no 4895ac_save_CC=$CC 4896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4897/* end confdefs.h. */ 4898$ac_c_conftest_c99_program 4899_ACEOF 4900for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4901do 4902 CC="$ac_save_CC $ac_arg" 4903 if ac_fn_c_try_compile "$LINENO" 4904then : 4905 ac_cv_prog_cc_c99=$ac_arg 4906fi 4907rm -f core conftest.err conftest.$ac_objext conftest.beam 4908 test "x$ac_cv_prog_cc_c99" != "xno" && break 4909done 4910rm -f conftest.$ac_ext 4911CC=$ac_save_CC 4912fi 4913 4914if test "x$ac_cv_prog_cc_c99" = xno 4915then : 4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4917printf "%s\n" "unsupported" >&6; } 4918else $as_nop 4919 if test "x$ac_cv_prog_cc_c99" = x 4920then : 4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4922printf "%s\n" "none needed" >&6; } 4923else $as_nop 4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4925printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4926 CC="$CC $ac_cv_prog_cc_c99" 4927fi 4928 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4929 ac_prog_cc_stdc=c99 4930fi 4931fi 4932if test x$ac_prog_cc_stdc = xno 4933then : 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4935printf %s "checking for $CC option to enable C89 features... " >&6; } 4936if test ${ac_cv_prog_cc_c89+y} 4937then : 4938 printf %s "(cached) " >&6 4939else $as_nop 4940 ac_cv_prog_cc_c89=no 4941ac_save_CC=$CC 4942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943/* end confdefs.h. */ 4944$ac_c_conftest_c89_program 4945_ACEOF 4946for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4947do 4948 CC="$ac_save_CC $ac_arg" 4949 if ac_fn_c_try_compile "$LINENO" 4950then : 4951 ac_cv_prog_cc_c89=$ac_arg 4952fi 4953rm -f core conftest.err conftest.$ac_objext conftest.beam 4954 test "x$ac_cv_prog_cc_c89" != "xno" && break 4955done 4956rm -f conftest.$ac_ext 4957CC=$ac_save_CC 4958fi 4959 4960if test "x$ac_cv_prog_cc_c89" = xno 4961then : 4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4963printf "%s\n" "unsupported" >&6; } 4964else $as_nop 4965 if test "x$ac_cv_prog_cc_c89" = x 4966then : 4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4968printf "%s\n" "none needed" >&6; } 4969else $as_nop 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4971printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4972 CC="$CC $ac_cv_prog_cc_c89" 4973fi 4974 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4975 ac_prog_cc_stdc=c89 4976fi 4977fi 4978 4979ac_ext=c 4980ac_cpp='$CPP $CPPFLAGS' 4981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4983ac_compiler_gnu=$ac_cv_c_compiler_gnu 4984 4985 4986 ac_ext=c 4987ac_cpp='$CPP $CPPFLAGS' 4988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4990ac_compiler_gnu=$ac_cv_c_compiler_gnu 4991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4992printf %s "checking whether $CC understands -c and -o together... " >&6; } 4993if test ${am_cv_prog_cc_c_o+y} 4994then : 4995 printf %s "(cached) " >&6 4996else $as_nop 4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998/* end confdefs.h. */ 4999 5000int 5001main (void) 5002{ 5003 5004 ; 5005 return 0; 5006} 5007_ACEOF 5008 # Make sure it works both with $CC and with simple cc. 5009 # Following AC_PROG_CC_C_O, we do the test twice because some 5010 # compilers refuse to overwrite an existing .o file with -o, 5011 # though they will create one. 5012 am_cv_prog_cc_c_o=yes 5013 for am_i in 1 2; do 5014 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5015 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5016 ac_status=$? 5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5018 (exit $ac_status); } \ 5019 && test -f conftest2.$ac_objext; then 5020 : OK 5021 else 5022 am_cv_prog_cc_c_o=no 5023 break 5024 fi 5025 done 5026 rm -f core conftest* 5027 unset am_i 5028fi 5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5030printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5031if test "$am_cv_prog_cc_c_o" != yes; then 5032 # Losing compiler, so override with the script. 5033 # FIXME: It is wrong to rewrite CC. 5034 # But if we don't then we get into trouble of one sort or another. 5035 # A longer-term fix would be to have automake use am__CC in this case, 5036 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5037 CC="$am_aux_dir/compile $CC" 5038fi 5039ac_ext=c 5040ac_cpp='$CPP $CPPFLAGS' 5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5043ac_compiler_gnu=$ac_cv_c_compiler_gnu 5044 5045 5046depcc="$CC" am_compiler_list= 5047 5048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5049printf %s "checking dependency style of $depcc... " >&6; } 5050if test ${am_cv_CC_dependencies_compiler_type+y} 5051then : 5052 printf %s "(cached) " >&6 5053else $as_nop 5054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5055 # We make a subdir and do the tests there. Otherwise we can end up 5056 # making bogus files that we don't know about and never remove. For 5057 # instance it was reported that on HP-UX the gcc test will end up 5058 # making a dummy file named 'D' -- because '-MD' means "put the output 5059 # in D". 5060 rm -rf conftest.dir 5061 mkdir conftest.dir 5062 # Copy depcomp to subdir because otherwise we won't find it if we're 5063 # using a relative directory. 5064 cp "$am_depcomp" conftest.dir 5065 cd conftest.dir 5066 # We will build objects and dependencies in a subdirectory because 5067 # it helps to detect inapplicable dependency modes. For instance 5068 # both Tru64's cc and ICC support -MD to output dependencies as a 5069 # side effect of compilation, but ICC will put the dependencies in 5070 # the current directory while Tru64 will put them in the object 5071 # directory. 5072 mkdir sub 5073 5074 am_cv_CC_dependencies_compiler_type=none 5075 if test "$am_compiler_list" = ""; then 5076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5077 fi 5078 am__universal=false 5079 case " $depcc " in #( 5080 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5081 esac 5082 5083 for depmode in $am_compiler_list; do 5084 # Setup a source with many dependencies, because some compilers 5085 # like to wrap large dependency lists on column 80 (with \), and 5086 # we should not choose a depcomp mode which is confused by this. 5087 # 5088 # We need to recreate these files for each test, as the compiler may 5089 # overwrite some of them when testing with obscure command lines. 5090 # This happens at least with the AIX C compiler. 5091 : > sub/conftest.c 5092 for i in 1 2 3 4 5 6; do 5093 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5094 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5095 # Solaris 10 /bin/sh. 5096 echo '/* dummy */' > sub/conftst$i.h 5097 done 5098 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5099 5100 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5101 # mode. It turns out that the SunPro C++ compiler does not properly 5102 # handle '-M -o', and we need to detect this. Also, some Intel 5103 # versions had trouble with output in subdirs. 5104 am__obj=sub/conftest.${OBJEXT-o} 5105 am__minus_obj="-o $am__obj" 5106 case $depmode in 5107 gcc) 5108 # This depmode causes a compiler race in universal mode. 5109 test "$am__universal" = false || continue 5110 ;; 5111 nosideeffect) 5112 # After this tag, mechanisms are not by side-effect, so they'll 5113 # only be used when explicitly requested. 5114 if test "x$enable_dependency_tracking" = xyes; then 5115 continue 5116 else 5117 break 5118 fi 5119 ;; 5120 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5121 # This compiler won't grok '-c -o', but also, the minuso test has 5122 # not run yet. These depmodes are late enough in the game, and 5123 # so weak that their functioning should not be impacted. 5124 am__obj=conftest.${OBJEXT-o} 5125 am__minus_obj= 5126 ;; 5127 none) break ;; 5128 esac 5129 if depmode=$depmode \ 5130 source=sub/conftest.c object=$am__obj \ 5131 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5132 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5133 >/dev/null 2>conftest.err && 5134 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5135 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5136 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5137 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5138 # icc doesn't choke on unknown options, it will just issue warnings 5139 # or remarks (even with -Werror). So we grep stderr for any message 5140 # that says an option was ignored or not supported. 5141 # When given -MP, icc 7.0 and 7.1 complain thusly: 5142 # icc: Command line warning: ignoring option '-M'; no argument required 5143 # The diagnosis changed in icc 8.0: 5144 # icc: Command line remark: option '-MP' not supported 5145 if (grep 'ignoring option' conftest.err || 5146 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5147 am_cv_CC_dependencies_compiler_type=$depmode 5148 break 5149 fi 5150 fi 5151 done 5152 5153 cd .. 5154 rm -rf conftest.dir 5155else 5156 am_cv_CC_dependencies_compiler_type=none 5157fi 5158 5159fi 5160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5161printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5162CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5163 5164 if 5165 test "x$enable_dependency_tracking" != xno \ 5166 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5167 am__fastdepCC_TRUE= 5168 am__fastdepCC_FALSE='#' 5169else 5170 am__fastdepCC_TRUE='#' 5171 am__fastdepCC_FALSE= 5172fi 5173 5174 5175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5176printf %s "checking for a sed that does not truncate output... " >&6; } 5177if test ${ac_cv_path_SED+y} 5178then : 5179 printf %s "(cached) " >&6 5180else $as_nop 5181 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5182 for ac_i in 1 2 3 4 5 6 7; do 5183 ac_script="$ac_script$as_nl$ac_script" 5184 done 5185 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5186 { ac_script=; unset ac_script;} 5187 if test -z "$SED"; then 5188 ac_path_SED_found=false 5189 # Loop through the user's path and test for each of PROGNAME-LIST 5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5191for as_dir in $PATH 5192do 5193 IFS=$as_save_IFS 5194 case $as_dir in #((( 5195 '') as_dir=./ ;; 5196 */) ;; 5197 *) as_dir=$as_dir/ ;; 5198 esac 5199 for ac_prog in sed gsed 5200 do 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5203 as_fn_executable_p "$ac_path_SED" || continue 5204# Check for GNU ac_path_SED and select it if it is found. 5205 # Check for GNU $ac_path_SED 5206case `"$ac_path_SED" --version 2>&1` in 5207*GNU*) 5208 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5209*) 5210 ac_count=0 5211 printf %s 0123456789 >"conftest.in" 5212 while : 5213 do 5214 cat "conftest.in" "conftest.in" >"conftest.tmp" 5215 mv "conftest.tmp" "conftest.in" 5216 cp "conftest.in" "conftest.nl" 5217 printf "%s\n" '' >> "conftest.nl" 5218 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5220 as_fn_arith $ac_count + 1 && ac_count=$as_val 5221 if test $ac_count -gt ${ac_path_SED_max-0}; then 5222 # Best one so far, save it but keep looking for a better one 5223 ac_cv_path_SED="$ac_path_SED" 5224 ac_path_SED_max=$ac_count 5225 fi 5226 # 10*(2^10) chars as input seems more than enough 5227 test $ac_count -gt 10 && break 5228 done 5229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5230esac 5231 5232 $ac_path_SED_found && break 3 5233 done 5234 done 5235 done 5236IFS=$as_save_IFS 5237 if test -z "$ac_cv_path_SED"; then 5238 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5239 fi 5240else 5241 ac_cv_path_SED=$SED 5242fi 5243 5244fi 5245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5246printf "%s\n" "$ac_cv_path_SED" >&6; } 5247 SED="$ac_cv_path_SED" 5248 rm -f conftest.sed 5249 5250test -z "$SED" && SED=sed 5251Xsed="$SED -e 1s/^X//" 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5264printf %s "checking for grep that handles long lines and -e... " >&6; } 5265if test ${ac_cv_path_GREP+y} 5266then : 5267 printf %s "(cached) " >&6 5268else $as_nop 5269 if test -z "$GREP"; then 5270 ac_path_GREP_found=false 5271 # Loop through the user's path and test for each of PROGNAME-LIST 5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5274do 5275 IFS=$as_save_IFS 5276 case $as_dir in #((( 5277 '') as_dir=./ ;; 5278 */) ;; 5279 *) as_dir=$as_dir/ ;; 5280 esac 5281 for ac_prog in grep ggrep 5282 do 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5285 as_fn_executable_p "$ac_path_GREP" || continue 5286# Check for GNU ac_path_GREP and select it if it is found. 5287 # Check for GNU $ac_path_GREP 5288case `"$ac_path_GREP" --version 2>&1` in 5289*GNU*) 5290 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5291*) 5292 ac_count=0 5293 printf %s 0123456789 >"conftest.in" 5294 while : 5295 do 5296 cat "conftest.in" "conftest.in" >"conftest.tmp" 5297 mv "conftest.tmp" "conftest.in" 5298 cp "conftest.in" "conftest.nl" 5299 printf "%s\n" 'GREP' >> "conftest.nl" 5300 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5302 as_fn_arith $ac_count + 1 && ac_count=$as_val 5303 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5304 # Best one so far, save it but keep looking for a better one 5305 ac_cv_path_GREP="$ac_path_GREP" 5306 ac_path_GREP_max=$ac_count 5307 fi 5308 # 10*(2^10) chars as input seems more than enough 5309 test $ac_count -gt 10 && break 5310 done 5311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5312esac 5313 5314 $ac_path_GREP_found && break 3 5315 done 5316 done 5317 done 5318IFS=$as_save_IFS 5319 if test -z "$ac_cv_path_GREP"; then 5320 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5321 fi 5322else 5323 ac_cv_path_GREP=$GREP 5324fi 5325 5326fi 5327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5328printf "%s\n" "$ac_cv_path_GREP" >&6; } 5329 GREP="$ac_cv_path_GREP" 5330 5331 5332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5333printf %s "checking for egrep... " >&6; } 5334if test ${ac_cv_path_EGREP+y} 5335then : 5336 printf %s "(cached) " >&6 5337else $as_nop 5338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5339 then ac_cv_path_EGREP="$GREP -E" 5340 else 5341 if test -z "$EGREP"; then 5342 ac_path_EGREP_found=false 5343 # Loop through the user's path and test for each of PROGNAME-LIST 5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5346do 5347 IFS=$as_save_IFS 5348 case $as_dir in #((( 5349 '') as_dir=./ ;; 5350 */) ;; 5351 *) as_dir=$as_dir/ ;; 5352 esac 5353 for ac_prog in egrep 5354 do 5355 for ac_exec_ext in '' $ac_executable_extensions; do 5356 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5357 as_fn_executable_p "$ac_path_EGREP" || continue 5358# Check for GNU ac_path_EGREP and select it if it is found. 5359 # Check for GNU $ac_path_EGREP 5360case `"$ac_path_EGREP" --version 2>&1` in 5361*GNU*) 5362 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5363*) 5364 ac_count=0 5365 printf %s 0123456789 >"conftest.in" 5366 while : 5367 do 5368 cat "conftest.in" "conftest.in" >"conftest.tmp" 5369 mv "conftest.tmp" "conftest.in" 5370 cp "conftest.in" "conftest.nl" 5371 printf "%s\n" 'EGREP' >> "conftest.nl" 5372 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5374 as_fn_arith $ac_count + 1 && ac_count=$as_val 5375 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5376 # Best one so far, save it but keep looking for a better one 5377 ac_cv_path_EGREP="$ac_path_EGREP" 5378 ac_path_EGREP_max=$ac_count 5379 fi 5380 # 10*(2^10) chars as input seems more than enough 5381 test $ac_count -gt 10 && break 5382 done 5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5384esac 5385 5386 $ac_path_EGREP_found && break 3 5387 done 5388 done 5389 done 5390IFS=$as_save_IFS 5391 if test -z "$ac_cv_path_EGREP"; then 5392 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5393 fi 5394else 5395 ac_cv_path_EGREP=$EGREP 5396fi 5397 5398 fi 5399fi 5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5401printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5402 EGREP="$ac_cv_path_EGREP" 5403 5404 5405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5406printf %s "checking for fgrep... " >&6; } 5407if test ${ac_cv_path_FGREP+y} 5408then : 5409 printf %s "(cached) " >&6 5410else $as_nop 5411 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5412 then ac_cv_path_FGREP="$GREP -F" 5413 else 5414 if test -z "$FGREP"; then 5415 ac_path_FGREP_found=false 5416 # Loop through the user's path and test for each of PROGNAME-LIST 5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5418for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5419do 5420 IFS=$as_save_IFS 5421 case $as_dir in #((( 5422 '') as_dir=./ ;; 5423 */) ;; 5424 *) as_dir=$as_dir/ ;; 5425 esac 5426 for ac_prog in fgrep 5427 do 5428 for ac_exec_ext in '' $ac_executable_extensions; do 5429 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5430 as_fn_executable_p "$ac_path_FGREP" || continue 5431# Check for GNU ac_path_FGREP and select it if it is found. 5432 # Check for GNU $ac_path_FGREP 5433case `"$ac_path_FGREP" --version 2>&1` in 5434*GNU*) 5435 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5436*) 5437 ac_count=0 5438 printf %s 0123456789 >"conftest.in" 5439 while : 5440 do 5441 cat "conftest.in" "conftest.in" >"conftest.tmp" 5442 mv "conftest.tmp" "conftest.in" 5443 cp "conftest.in" "conftest.nl" 5444 printf "%s\n" 'FGREP' >> "conftest.nl" 5445 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5447 as_fn_arith $ac_count + 1 && ac_count=$as_val 5448 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5449 # Best one so far, save it but keep looking for a better one 5450 ac_cv_path_FGREP="$ac_path_FGREP" 5451 ac_path_FGREP_max=$ac_count 5452 fi 5453 # 10*(2^10) chars as input seems more than enough 5454 test $ac_count -gt 10 && break 5455 done 5456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5457esac 5458 5459 $ac_path_FGREP_found && break 3 5460 done 5461 done 5462 done 5463IFS=$as_save_IFS 5464 if test -z "$ac_cv_path_FGREP"; then 5465 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5466 fi 5467else 5468 ac_cv_path_FGREP=$FGREP 5469fi 5470 5471 fi 5472fi 5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5474printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5475 FGREP="$ac_cv_path_FGREP" 5476 5477 5478test -z "$GREP" && GREP=grep 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498# Check whether --with-gnu-ld was given. 5499if test ${with_gnu_ld+y} 5500then : 5501 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5502else $as_nop 5503 with_gnu_ld=no 5504fi 5505 5506ac_prog=ld 5507if test yes = "$GCC"; then 5508 # Check if gcc -print-prog-name=ld gives a path. 5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5510printf %s "checking for ld used by $CC... " >&6; } 5511 case $host in 5512 *-*-mingw*) 5513 # gcc leaves a trailing carriage return, which upsets mingw 5514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5515 *) 5516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5517 esac 5518 case $ac_prog in 5519 # Accept absolute paths. 5520 [\\/]* | ?:[\\/]*) 5521 re_direlt='/[^/][^/]*/\.\./' 5522 # Canonicalize the pathname of ld 5523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5526 done 5527 test -z "$LD" && LD=$ac_prog 5528 ;; 5529 "") 5530 # If it fails, then pretend we aren't using GCC. 5531 ac_prog=ld 5532 ;; 5533 *) 5534 # If it is relative, then search for the first ld in PATH. 5535 with_gnu_ld=unknown 5536 ;; 5537 esac 5538elif test yes = "$with_gnu_ld"; then 5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5540printf %s "checking for GNU ld... " >&6; } 5541else 5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5543printf %s "checking for non-GNU ld... " >&6; } 5544fi 5545if test ${lt_cv_path_LD+y} 5546then : 5547 printf %s "(cached) " >&6 5548else $as_nop 5549 if test -z "$LD"; then 5550 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5551 for ac_dir in $PATH; do 5552 IFS=$lt_save_ifs 5553 test -z "$ac_dir" && ac_dir=. 5554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5555 lt_cv_path_LD=$ac_dir/$ac_prog 5556 # Check to see if the program is GNU ld. I'd rather use --version, 5557 # but apparently some variants of GNU ld only accept -v. 5558 # Break only if it was the GNU/non-GNU ld that we prefer. 5559 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5560 *GNU* | *'with BFD'*) 5561 test no != "$with_gnu_ld" && break 5562 ;; 5563 *) 5564 test yes != "$with_gnu_ld" && break 5565 ;; 5566 esac 5567 fi 5568 done 5569 IFS=$lt_save_ifs 5570else 5571 lt_cv_path_LD=$LD # Let the user override the test with a path. 5572fi 5573fi 5574 5575LD=$lt_cv_path_LD 5576if test -n "$LD"; then 5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5578printf "%s\n" "$LD" >&6; } 5579else 5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5581printf "%s\n" "no" >&6; } 5582fi 5583test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5585printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5586if test ${lt_cv_prog_gnu_ld+y} 5587then : 5588 printf %s "(cached) " >&6 5589else $as_nop 5590 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5591case `$LD -v 2>&1 </dev/null` in 5592*GNU* | *'with BFD'*) 5593 lt_cv_prog_gnu_ld=yes 5594 ;; 5595*) 5596 lt_cv_prog_gnu_ld=no 5597 ;; 5598esac 5599fi 5600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5601printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5602with_gnu_ld=$lt_cv_prog_gnu_ld 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5613printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5614if test ${lt_cv_path_NM+y} 5615then : 5616 printf %s "(cached) " >&6 5617else $as_nop 5618 if test -n "$NM"; then 5619 # Let the user override the test. 5620 lt_cv_path_NM=$NM 5621else 5622 lt_nm_to_check=${ac_tool_prefix}nm 5623 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5624 lt_nm_to_check="$lt_nm_to_check nm" 5625 fi 5626 for lt_tmp_nm in $lt_nm_to_check; do 5627 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5628 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5629 IFS=$lt_save_ifs 5630 test -z "$ac_dir" && ac_dir=. 5631 tmp_nm=$ac_dir/$lt_tmp_nm 5632 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5633 # Check to see if the nm accepts a BSD-compat flag. 5634 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5635 # nm: unknown option "B" ignored 5636 # Tru64's nm complains that /dev/null is an invalid object file 5637 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5638 case $build_os in 5639 mingw*) lt_bad_file=conftest.nm/nofile ;; 5640 *) lt_bad_file=/dev/null ;; 5641 esac 5642 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5643 *$lt_bad_file* | *'Invalid file or object type'*) 5644 lt_cv_path_NM="$tmp_nm -B" 5645 break 2 5646 ;; 5647 *) 5648 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5649 */dev/null*) 5650 lt_cv_path_NM="$tmp_nm -p" 5651 break 2 5652 ;; 5653 *) 5654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5655 continue # so that we can try to find one that supports BSD flags 5656 ;; 5657 esac 5658 ;; 5659 esac 5660 fi 5661 done 5662 IFS=$lt_save_ifs 5663 done 5664 : ${lt_cv_path_NM=no} 5665fi 5666fi 5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5668printf "%s\n" "$lt_cv_path_NM" >&6; } 5669if test no != "$lt_cv_path_NM"; then 5670 NM=$lt_cv_path_NM 5671else 5672 # Didn't find any BSD compatible name lister, look for dumpbin. 5673 if test -n "$DUMPBIN"; then : 5674 # Let the user override the test. 5675 else 5676 if test -n "$ac_tool_prefix"; then 5677 for ac_prog in dumpbin "link -dump" 5678 do 5679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5680set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5682printf %s "checking for $ac_word... " >&6; } 5683if test ${ac_cv_prog_DUMPBIN+y} 5684then : 5685 printf %s "(cached) " >&6 5686else $as_nop 5687 if test -n "$DUMPBIN"; then 5688 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5689else 5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691for as_dir in $PATH 5692do 5693 IFS=$as_save_IFS 5694 case $as_dir in #((( 5695 '') as_dir=./ ;; 5696 */) ;; 5697 *) as_dir=$as_dir/ ;; 5698 esac 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705done 5706 done 5707IFS=$as_save_IFS 5708 5709fi 5710fi 5711DUMPBIN=$ac_cv_prog_DUMPBIN 5712if test -n "$DUMPBIN"; then 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5714printf "%s\n" "$DUMPBIN" >&6; } 5715else 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717printf "%s\n" "no" >&6; } 5718fi 5719 5720 5721 test -n "$DUMPBIN" && break 5722 done 5723fi 5724if test -z "$DUMPBIN"; then 5725 ac_ct_DUMPBIN=$DUMPBIN 5726 for ac_prog in dumpbin "link -dump" 5727do 5728 # Extract the first word of "$ac_prog", so it can be a program name with args. 5729set dummy $ac_prog; ac_word=$2 5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731printf %s "checking for $ac_word... " >&6; } 5732if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5733then : 5734 printf %s "(cached) " >&6 5735else $as_nop 5736 if test -n "$ac_ct_DUMPBIN"; then 5737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5738else 5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5740for as_dir in $PATH 5741do 5742 IFS=$as_save_IFS 5743 case $as_dir in #((( 5744 '') as_dir=./ ;; 5745 */) ;; 5746 *) as_dir=$as_dir/ ;; 5747 esac 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5750 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754done 5755 done 5756IFS=$as_save_IFS 5757 5758fi 5759fi 5760ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5761if test -n "$ac_ct_DUMPBIN"; then 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5763printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5764else 5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766printf "%s\n" "no" >&6; } 5767fi 5768 5769 5770 test -n "$ac_ct_DUMPBIN" && break 5771done 5772 5773 if test "x$ac_ct_DUMPBIN" = x; then 5774 DUMPBIN=":" 5775 else 5776 case $cross_compiling:$ac_tool_warned in 5777yes:) 5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5779printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5780ac_tool_warned=yes ;; 5781esac 5782 DUMPBIN=$ac_ct_DUMPBIN 5783 fi 5784fi 5785 5786 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5787 *COFF*) 5788 DUMPBIN="$DUMPBIN -symbols -headers" 5789 ;; 5790 *) 5791 DUMPBIN=: 5792 ;; 5793 esac 5794 fi 5795 5796 if test : != "$DUMPBIN"; then 5797 NM=$DUMPBIN 5798 fi 5799fi 5800test -z "$NM" && NM=nm 5801 5802 5803 5804 5805 5806 5807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5808printf %s "checking the name lister ($NM) interface... " >&6; } 5809if test ${lt_cv_nm_interface+y} 5810then : 5811 printf %s "(cached) " >&6 5812else $as_nop 5813 lt_cv_nm_interface="BSD nm" 5814 echo "int some_variable = 0;" > conftest.$ac_ext 5815 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5816 (eval "$ac_compile" 2>conftest.err) 5817 cat conftest.err >&5 5818 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5819 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5820 cat conftest.err >&5 5821 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5822 cat conftest.out >&5 5823 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5824 lt_cv_nm_interface="MS dumpbin" 5825 fi 5826 rm -f conftest* 5827fi 5828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5829printf "%s\n" "$lt_cv_nm_interface" >&6; } 5830 5831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5832printf %s "checking whether ln -s works... " >&6; } 5833LN_S=$as_ln_s 5834if test "$LN_S" = "ln -s"; then 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5836printf "%s\n" "yes" >&6; } 5837else 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5839printf "%s\n" "no, using $LN_S" >&6; } 5840fi 5841 5842# find the maximum length of command line arguments 5843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5844printf %s "checking the maximum length of command line arguments... " >&6; } 5845if test ${lt_cv_sys_max_cmd_len+y} 5846then : 5847 printf %s "(cached) " >&6 5848else $as_nop 5849 i=0 5850 teststring=ABCD 5851 5852 case $build_os in 5853 msdosdjgpp*) 5854 # On DJGPP, this test can blow up pretty badly due to problems in libc 5855 # (any single argument exceeding 2000 bytes causes a buffer overrun 5856 # during glob expansion). Even if it were fixed, the result of this 5857 # check would be larger than it should be. 5858 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5859 ;; 5860 5861 gnu*) 5862 # Under GNU Hurd, this test is not required because there is 5863 # no limit to the length of command line arguments. 5864 # Libtool will interpret -1 as no limit whatsoever 5865 lt_cv_sys_max_cmd_len=-1; 5866 ;; 5867 5868 cygwin* | mingw* | cegcc*) 5869 # On Win9x/ME, this test blows up -- it succeeds, but takes 5870 # about 5 minutes as the teststring grows exponentially. 5871 # Worse, since 9x/ME are not pre-emptively multitasking, 5872 # you end up with a "frozen" computer, even though with patience 5873 # the test eventually succeeds (with a max line length of 256k). 5874 # Instead, let's just punt: use the minimum linelength reported by 5875 # all of the supported platforms: 8192 (on NT/2K/XP). 5876 lt_cv_sys_max_cmd_len=8192; 5877 ;; 5878 5879 mint*) 5880 # On MiNT this can take a long time and run out of memory. 5881 lt_cv_sys_max_cmd_len=8192; 5882 ;; 5883 5884 amigaos*) 5885 # On AmigaOS with pdksh, this test takes hours, literally. 5886 # So we just punt and use a minimum line length of 8192. 5887 lt_cv_sys_max_cmd_len=8192; 5888 ;; 5889 5890 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5891 # This has been around since 386BSD, at least. Likely further. 5892 if test -x /sbin/sysctl; then 5893 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5894 elif test -x /usr/sbin/sysctl; then 5895 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5896 else 5897 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5898 fi 5899 # And add a safety zone 5900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5902 ;; 5903 5904 interix*) 5905 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5906 lt_cv_sys_max_cmd_len=196608 5907 ;; 5908 5909 os2*) 5910 # The test takes a long time on OS/2. 5911 lt_cv_sys_max_cmd_len=8192 5912 ;; 5913 5914 osf*) 5915 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5916 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5917 # nice to cause kernel panics so lets avoid the loop below. 5918 # First set a reasonable default. 5919 lt_cv_sys_max_cmd_len=16384 5920 # 5921 if test -x /sbin/sysconfig; then 5922 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5923 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5924 esac 5925 fi 5926 ;; 5927 sco3.2v5*) 5928 lt_cv_sys_max_cmd_len=102400 5929 ;; 5930 sysv5* | sco5v6* | sysv4.2uw2*) 5931 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5932 if test -n "$kargmax"; then 5933 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5934 else 5935 lt_cv_sys_max_cmd_len=32768 5936 fi 5937 ;; 5938 *) 5939 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5940 if test -n "$lt_cv_sys_max_cmd_len" && \ 5941 test undefined != "$lt_cv_sys_max_cmd_len"; then 5942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5944 else 5945 # Make teststring a little bigger before we do anything with it. 5946 # a 1K string should be a reasonable start. 5947 for i in 1 2 3 4 5 6 7 8; do 5948 teststring=$teststring$teststring 5949 done 5950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5951 # If test is not a shell built-in, we'll probably end up computing a 5952 # maximum length that is only half of the actual maximum length, but 5953 # we can't tell. 5954 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5955 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5956 test 17 != "$i" # 1/2 MB should be enough 5957 do 5958 i=`expr $i + 1` 5959 teststring=$teststring$teststring 5960 done 5961 # Only check the string length outside the loop. 5962 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5963 teststring= 5964 # Add a significant safety factor because C++ compilers can tack on 5965 # massive amounts of additional arguments before passing them to the 5966 # linker. It appears as though 1/2 is a usable value. 5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5968 fi 5969 ;; 5970 esac 5971 5972fi 5973 5974if test -n "$lt_cv_sys_max_cmd_len"; then 5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5976printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5977else 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5979printf "%s\n" "none" >&6; } 5980fi 5981max_cmd_len=$lt_cv_sys_max_cmd_len 5982 5983 5984 5985 5986 5987 5988: ${CP="cp -f"} 5989: ${MV="mv -f"} 5990: ${RM="rm -f"} 5991 5992if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5993 lt_unset=unset 5994else 5995 lt_unset=false 5996fi 5997 5998 5999 6000 6001 6002# test EBCDIC or ASCII 6003case `echo X|tr X '\101'` in 6004 A) # ASCII based system 6005 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6006 lt_SP2NL='tr \040 \012' 6007 lt_NL2SP='tr \015\012 \040\040' 6008 ;; 6009 *) # EBCDIC based system 6010 lt_SP2NL='tr \100 \n' 6011 lt_NL2SP='tr \r\n \100\100' 6012 ;; 6013esac 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6024printf %s "checking how to convert $build file names to $host format... " >&6; } 6025if test ${lt_cv_to_host_file_cmd+y} 6026then : 6027 printf %s "(cached) " >&6 6028else $as_nop 6029 case $host in 6030 *-*-mingw* ) 6031 case $build in 6032 *-*-mingw* ) # actually msys 6033 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6034 ;; 6035 *-*-cygwin* ) 6036 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6037 ;; 6038 * ) # otherwise, assume *nix 6039 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6040 ;; 6041 esac 6042 ;; 6043 *-*-cygwin* ) 6044 case $build in 6045 *-*-mingw* ) # actually msys 6046 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6047 ;; 6048 *-*-cygwin* ) 6049 lt_cv_to_host_file_cmd=func_convert_file_noop 6050 ;; 6051 * ) # otherwise, assume *nix 6052 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6053 ;; 6054 esac 6055 ;; 6056 * ) # unhandled hosts (and "normal" native builds) 6057 lt_cv_to_host_file_cmd=func_convert_file_noop 6058 ;; 6059esac 6060 6061fi 6062 6063to_host_file_cmd=$lt_cv_to_host_file_cmd 6064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6065printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6066 6067 6068 6069 6070 6071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6072printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6073if test ${lt_cv_to_tool_file_cmd+y} 6074then : 6075 printf %s "(cached) " >&6 6076else $as_nop 6077 #assume ordinary cross tools, or native build. 6078lt_cv_to_tool_file_cmd=func_convert_file_noop 6079case $host in 6080 *-*-mingw* ) 6081 case $build in 6082 *-*-mingw* ) # actually msys 6083 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6084 ;; 6085 esac 6086 ;; 6087esac 6088 6089fi 6090 6091to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6093printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6094 6095 6096 6097 6098 6099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6100printf %s "checking for $LD option to reload object files... " >&6; } 6101if test ${lt_cv_ld_reload_flag+y} 6102then : 6103 printf %s "(cached) " >&6 6104else $as_nop 6105 lt_cv_ld_reload_flag='-r' 6106fi 6107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6108printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6109reload_flag=$lt_cv_ld_reload_flag 6110case $reload_flag in 6111"" | " "*) ;; 6112*) reload_flag=" $reload_flag" ;; 6113esac 6114reload_cmds='$LD$reload_flag -o $output$reload_objs' 6115case $host_os in 6116 cygwin* | mingw* | pw32* | cegcc*) 6117 if test yes != "$GCC"; then 6118 reload_cmds=false 6119 fi 6120 ;; 6121 darwin*) 6122 if test yes = "$GCC"; then 6123 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6124 else 6125 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6126 fi 6127 ;; 6128esac 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138if test -n "$ac_tool_prefix"; then 6139 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6140set dummy ${ac_tool_prefix}file; ac_word=$2 6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6142printf %s "checking for $ac_word... " >&6; } 6143if test ${ac_cv_prog_FILECMD+y} 6144then : 6145 printf %s "(cached) " >&6 6146else $as_nop 6147 if test -n "$FILECMD"; then 6148 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6149else 6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6151for as_dir in $PATH 6152do 6153 IFS=$as_save_IFS 6154 case $as_dir in #((( 6155 '') as_dir=./ ;; 6156 */) ;; 6157 *) as_dir=$as_dir/ ;; 6158 esac 6159 for ac_exec_ext in '' $ac_executable_extensions; do 6160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6161 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6163 break 2 6164 fi 6165done 6166 done 6167IFS=$as_save_IFS 6168 6169fi 6170fi 6171FILECMD=$ac_cv_prog_FILECMD 6172if test -n "$FILECMD"; then 6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6174printf "%s\n" "$FILECMD" >&6; } 6175else 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6177printf "%s\n" "no" >&6; } 6178fi 6179 6180 6181fi 6182if test -z "$ac_cv_prog_FILECMD"; then 6183 ac_ct_FILECMD=$FILECMD 6184 # Extract the first word of "file", so it can be a program name with args. 6185set dummy file; ac_word=$2 6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187printf %s "checking for $ac_word... " >&6; } 6188if test ${ac_cv_prog_ac_ct_FILECMD+y} 6189then : 6190 printf %s "(cached) " >&6 6191else $as_nop 6192 if test -n "$ac_ct_FILECMD"; then 6193 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 case $as_dir in #((( 6200 '') as_dir=./ ;; 6201 */) ;; 6202 *) as_dir=$as_dir/ ;; 6203 esac 6204 for ac_exec_ext in '' $ac_executable_extensions; do 6205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6206 ac_cv_prog_ac_ct_FILECMD="file" 6207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6208 break 2 6209 fi 6210done 6211 done 6212IFS=$as_save_IFS 6213 6214fi 6215fi 6216ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6217if test -n "$ac_ct_FILECMD"; then 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6219printf "%s\n" "$ac_ct_FILECMD" >&6; } 6220else 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6222printf "%s\n" "no" >&6; } 6223fi 6224 6225 if test "x$ac_ct_FILECMD" = x; then 6226 FILECMD=":" 6227 else 6228 case $cross_compiling:$ac_tool_warned in 6229yes:) 6230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6231printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6232ac_tool_warned=yes ;; 6233esac 6234 FILECMD=$ac_ct_FILECMD 6235 fi 6236else 6237 FILECMD="$ac_cv_prog_FILECMD" 6238fi 6239 6240 6241 6242 6243 6244 6245 6246if test -n "$ac_tool_prefix"; then 6247 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6248set dummy ${ac_tool_prefix}objdump; ac_word=$2 6249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6250printf %s "checking for $ac_word... " >&6; } 6251if test ${ac_cv_prog_OBJDUMP+y} 6252then : 6253 printf %s "(cached) " >&6 6254else $as_nop 6255 if test -n "$OBJDUMP"; then 6256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6257else 6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6259for as_dir in $PATH 6260do 6261 IFS=$as_save_IFS 6262 case $as_dir in #((( 6263 '') as_dir=./ ;; 6264 */) ;; 6265 *) as_dir=$as_dir/ ;; 6266 esac 6267 for ac_exec_ext in '' $ac_executable_extensions; do 6268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6269 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6271 break 2 6272 fi 6273done 6274 done 6275IFS=$as_save_IFS 6276 6277fi 6278fi 6279OBJDUMP=$ac_cv_prog_OBJDUMP 6280if test -n "$OBJDUMP"; then 6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6282printf "%s\n" "$OBJDUMP" >&6; } 6283else 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6285printf "%s\n" "no" >&6; } 6286fi 6287 6288 6289fi 6290if test -z "$ac_cv_prog_OBJDUMP"; then 6291 ac_ct_OBJDUMP=$OBJDUMP 6292 # Extract the first word of "objdump", so it can be a program name with args. 6293set dummy objdump; ac_word=$2 6294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6295printf %s "checking for $ac_word... " >&6; } 6296if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6297then : 6298 printf %s "(cached) " >&6 6299else $as_nop 6300 if test -n "$ac_ct_OBJDUMP"; then 6301 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6302else 6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304for as_dir in $PATH 6305do 6306 IFS=$as_save_IFS 6307 case $as_dir in #((( 6308 '') as_dir=./ ;; 6309 */) ;; 6310 *) as_dir=$as_dir/ ;; 6311 esac 6312 for ac_exec_ext in '' $ac_executable_extensions; do 6313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6314 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6316 break 2 6317 fi 6318done 6319 done 6320IFS=$as_save_IFS 6321 6322fi 6323fi 6324ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6325if test -n "$ac_ct_OBJDUMP"; then 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6327printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6328else 6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6330printf "%s\n" "no" >&6; } 6331fi 6332 6333 if test "x$ac_ct_OBJDUMP" = x; then 6334 OBJDUMP="false" 6335 else 6336 case $cross_compiling:$ac_tool_warned in 6337yes:) 6338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6339printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6340ac_tool_warned=yes ;; 6341esac 6342 OBJDUMP=$ac_ct_OBJDUMP 6343 fi 6344else 6345 OBJDUMP="$ac_cv_prog_OBJDUMP" 6346fi 6347 6348test -z "$OBJDUMP" && OBJDUMP=objdump 6349 6350 6351 6352 6353 6354 6355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6356printf %s "checking how to recognize dependent libraries... " >&6; } 6357if test ${lt_cv_deplibs_check_method+y} 6358then : 6359 printf %s "(cached) " >&6 6360else $as_nop 6361 lt_cv_file_magic_cmd='$MAGIC_CMD' 6362lt_cv_file_magic_test_file= 6363lt_cv_deplibs_check_method='unknown' 6364# Need to set the preceding variable on all platforms that support 6365# interlibrary dependencies. 6366# 'none' -- dependencies not supported. 6367# 'unknown' -- same as none, but documents that we really don't know. 6368# 'pass_all' -- all dependencies passed with no checks. 6369# 'test_compile' -- check by making test program. 6370# 'file_magic [[regex]]' -- check by looking for files in library path 6371# that responds to the $file_magic_cmd with a given extended regex. 6372# If you have 'file' or equivalent on your system and you're not sure 6373# whether 'pass_all' will *always* work, you probably want this one. 6374 6375case $host_os in 6376aix[4-9]*) 6377 lt_cv_deplibs_check_method=pass_all 6378 ;; 6379 6380beos*) 6381 lt_cv_deplibs_check_method=pass_all 6382 ;; 6383 6384bsdi[45]*) 6385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6386 lt_cv_file_magic_cmd='$FILECMD -L' 6387 lt_cv_file_magic_test_file=/shlib/libc.so 6388 ;; 6389 6390cygwin*) 6391 # func_win32_libid is a shell function defined in ltmain.sh 6392 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6393 lt_cv_file_magic_cmd='func_win32_libid' 6394 ;; 6395 6396mingw* | pw32*) 6397 # Base MSYS/MinGW do not provide the 'file' command needed by 6398 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6399 # unless we find 'file', for example because we are cross-compiling. 6400 if ( file / ) >/dev/null 2>&1; then 6401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6402 lt_cv_file_magic_cmd='func_win32_libid' 6403 else 6404 # Keep this pattern in sync with the one in func_win32_libid. 6405 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6406 lt_cv_file_magic_cmd='$OBJDUMP -f' 6407 fi 6408 ;; 6409 6410cegcc*) 6411 # use the weaker test based on 'objdump'. See mingw*. 6412 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6413 lt_cv_file_magic_cmd='$OBJDUMP -f' 6414 ;; 6415 6416darwin* | rhapsody*) 6417 lt_cv_deplibs_check_method=pass_all 6418 ;; 6419 6420freebsd* | dragonfly* | midnightbsd*) 6421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6422 case $host_cpu in 6423 i*86 ) 6424 # Not sure whether the presence of OpenBSD here was a mistake. 6425 # Let's accept both of them until this is cleared up. 6426 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6427 lt_cv_file_magic_cmd=$FILECMD 6428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6429 ;; 6430 esac 6431 else 6432 lt_cv_deplibs_check_method=pass_all 6433 fi 6434 ;; 6435 6436haiku*) 6437 lt_cv_deplibs_check_method=pass_all 6438 ;; 6439 6440hpux10.20* | hpux11*) 6441 lt_cv_file_magic_cmd=$FILECMD 6442 case $host_cpu in 6443 ia64*) 6444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6445 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6446 ;; 6447 hppa*64*) 6448 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]' 6449 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6450 ;; 6451 *) 6452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6453 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6454 ;; 6455 esac 6456 ;; 6457 6458interix[3-9]*) 6459 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6461 ;; 6462 6463irix5* | irix6* | nonstopux*) 6464 case $LD in 6465 *-32|*"-32 ") libmagic=32-bit;; 6466 *-n32|*"-n32 ") libmagic=N32;; 6467 *-64|*"-64 ") libmagic=64-bit;; 6468 *) libmagic=never-match;; 6469 esac 6470 lt_cv_deplibs_check_method=pass_all 6471 ;; 6472 6473# This must be glibc/ELF. 6474linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6475 lt_cv_deplibs_check_method=pass_all 6476 ;; 6477 6478netbsd*) 6479 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6481 else 6482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6483 fi 6484 ;; 6485 6486newos6*) 6487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6488 lt_cv_file_magic_cmd=$FILECMD 6489 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6490 ;; 6491 6492*nto* | *qnx*) 6493 lt_cv_deplibs_check_method=pass_all 6494 ;; 6495 6496openbsd* | bitrig*) 6497 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6499 else 6500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6501 fi 6502 ;; 6503 6504osf3* | osf4* | osf5*) 6505 lt_cv_deplibs_check_method=pass_all 6506 ;; 6507 6508rdos*) 6509 lt_cv_deplibs_check_method=pass_all 6510 ;; 6511 6512solaris*) 6513 lt_cv_deplibs_check_method=pass_all 6514 ;; 6515 6516sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6517 lt_cv_deplibs_check_method=pass_all 6518 ;; 6519 6520sysv4 | sysv4.3*) 6521 case $host_vendor in 6522 motorola) 6523 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]' 6524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6525 ;; 6526 ncr) 6527 lt_cv_deplibs_check_method=pass_all 6528 ;; 6529 sequent) 6530 lt_cv_file_magic_cmd='/bin/file' 6531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6532 ;; 6533 sni) 6534 lt_cv_file_magic_cmd='/bin/file' 6535 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6536 lt_cv_file_magic_test_file=/lib/libc.so 6537 ;; 6538 siemens) 6539 lt_cv_deplibs_check_method=pass_all 6540 ;; 6541 pc) 6542 lt_cv_deplibs_check_method=pass_all 6543 ;; 6544 esac 6545 ;; 6546 6547tpf*) 6548 lt_cv_deplibs_check_method=pass_all 6549 ;; 6550os2*) 6551 lt_cv_deplibs_check_method=pass_all 6552 ;; 6553esac 6554 6555fi 6556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6557printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6558 6559file_magic_glob= 6560want_nocaseglob=no 6561if test "$build" = "$host"; then 6562 case $host_os in 6563 mingw* | pw32*) 6564 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6565 want_nocaseglob=yes 6566 else 6567 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6568 fi 6569 ;; 6570 esac 6571fi 6572 6573file_magic_cmd=$lt_cv_file_magic_cmd 6574deplibs_check_method=$lt_cv_deplibs_check_method 6575test -z "$deplibs_check_method" && deplibs_check_method=unknown 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598if test -n "$ac_tool_prefix"; then 6599 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6600set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6602printf %s "checking for $ac_word... " >&6; } 6603if test ${ac_cv_prog_DLLTOOL+y} 6604then : 6605 printf %s "(cached) " >&6 6606else $as_nop 6607 if test -n "$DLLTOOL"; then 6608 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6609else 6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6611for as_dir in $PATH 6612do 6613 IFS=$as_save_IFS 6614 case $as_dir in #((( 6615 '') as_dir=./ ;; 6616 */) ;; 6617 *) as_dir=$as_dir/ ;; 6618 esac 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6621 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6623 break 2 6624 fi 6625done 6626 done 6627IFS=$as_save_IFS 6628 6629fi 6630fi 6631DLLTOOL=$ac_cv_prog_DLLTOOL 6632if test -n "$DLLTOOL"; then 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6634printf "%s\n" "$DLLTOOL" >&6; } 6635else 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6637printf "%s\n" "no" >&6; } 6638fi 6639 6640 6641fi 6642if test -z "$ac_cv_prog_DLLTOOL"; then 6643 ac_ct_DLLTOOL=$DLLTOOL 6644 # Extract the first word of "dlltool", so it can be a program name with args. 6645set dummy dlltool; ac_word=$2 6646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6647printf %s "checking for $ac_word... " >&6; } 6648if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6649then : 6650 printf %s "(cached) " >&6 6651else $as_nop 6652 if test -n "$ac_ct_DLLTOOL"; then 6653 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6654else 6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6656for as_dir in $PATH 6657do 6658 IFS=$as_save_IFS 6659 case $as_dir in #((( 6660 '') as_dir=./ ;; 6661 */) ;; 6662 *) as_dir=$as_dir/ ;; 6663 esac 6664 for ac_exec_ext in '' $ac_executable_extensions; do 6665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6666 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6668 break 2 6669 fi 6670done 6671 done 6672IFS=$as_save_IFS 6673 6674fi 6675fi 6676ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6677if test -n "$ac_ct_DLLTOOL"; then 6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6679printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6680else 6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6682printf "%s\n" "no" >&6; } 6683fi 6684 6685 if test "x$ac_ct_DLLTOOL" = x; then 6686 DLLTOOL="false" 6687 else 6688 case $cross_compiling:$ac_tool_warned in 6689yes:) 6690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6691printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6692ac_tool_warned=yes ;; 6693esac 6694 DLLTOOL=$ac_ct_DLLTOOL 6695 fi 6696else 6697 DLLTOOL="$ac_cv_prog_DLLTOOL" 6698fi 6699 6700test -z "$DLLTOOL" && DLLTOOL=dlltool 6701 6702 6703 6704 6705 6706 6707 6708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6709printf %s "checking how to associate runtime and link libraries... " >&6; } 6710if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6711then : 6712 printf %s "(cached) " >&6 6713else $as_nop 6714 lt_cv_sharedlib_from_linklib_cmd='unknown' 6715 6716case $host_os in 6717cygwin* | mingw* | pw32* | cegcc*) 6718 # two different shell functions defined in ltmain.sh; 6719 # decide which one to use based on capabilities of $DLLTOOL 6720 case `$DLLTOOL --help 2>&1` in 6721 *--identify-strict*) 6722 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6723 ;; 6724 *) 6725 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6726 ;; 6727 esac 6728 ;; 6729*) 6730 # fallback: assume linklib IS sharedlib 6731 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6732 ;; 6733esac 6734 6735fi 6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6737printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6738sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6739test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6740 6741 6742 6743 6744 6745 6746 6747 6748if test -n "$ac_tool_prefix"; then 6749 for ac_prog in ar 6750 do 6751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6752set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6754printf %s "checking for $ac_word... " >&6; } 6755if test ${ac_cv_prog_AR+y} 6756then : 6757 printf %s "(cached) " >&6 6758else $as_nop 6759 if test -n "$AR"; then 6760 ac_cv_prog_AR="$AR" # Let the user override the test. 6761else 6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6763for as_dir in $PATH 6764do 6765 IFS=$as_save_IFS 6766 case $as_dir in #((( 6767 '') as_dir=./ ;; 6768 */) ;; 6769 *) as_dir=$as_dir/ ;; 6770 esac 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6773 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777done 6778 done 6779IFS=$as_save_IFS 6780 6781fi 6782fi 6783AR=$ac_cv_prog_AR 6784if test -n "$AR"; then 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6786printf "%s\n" "$AR" >&6; } 6787else 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6789printf "%s\n" "no" >&6; } 6790fi 6791 6792 6793 test -n "$AR" && break 6794 done 6795fi 6796if test -z "$AR"; then 6797 ac_ct_AR=$AR 6798 for ac_prog in ar 6799do 6800 # Extract the first word of "$ac_prog", so it can be a program name with args. 6801set dummy $ac_prog; ac_word=$2 6802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6803printf %s "checking for $ac_word... " >&6; } 6804if test ${ac_cv_prog_ac_ct_AR+y} 6805then : 6806 printf %s "(cached) " >&6 6807else $as_nop 6808 if test -n "$ac_ct_AR"; then 6809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6810else 6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6812for as_dir in $PATH 6813do 6814 IFS=$as_save_IFS 6815 case $as_dir in #((( 6816 '') as_dir=./ ;; 6817 */) ;; 6818 *) as_dir=$as_dir/ ;; 6819 esac 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6822 ac_cv_prog_ac_ct_AR="$ac_prog" 6823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826done 6827 done 6828IFS=$as_save_IFS 6829 6830fi 6831fi 6832ac_ct_AR=$ac_cv_prog_ac_ct_AR 6833if test -n "$ac_ct_AR"; then 6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6835printf "%s\n" "$ac_ct_AR" >&6; } 6836else 6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6838printf "%s\n" "no" >&6; } 6839fi 6840 6841 6842 test -n "$ac_ct_AR" && break 6843done 6844 6845 if test "x$ac_ct_AR" = x; then 6846 AR="false" 6847 else 6848 case $cross_compiling:$ac_tool_warned in 6849yes:) 6850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6851printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6852ac_tool_warned=yes ;; 6853esac 6854 AR=$ac_ct_AR 6855 fi 6856fi 6857 6858: ${AR=ar} 6859 6860 6861 6862 6863 6864 6865# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6866# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6867# higher priority because thats what people were doing historically (setting 6868# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6869# variable obsoleted/removed. 6870 6871test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6872lt_ar_flags=$AR_FLAGS 6873 6874 6875 6876 6877 6878 6879# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6880# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6881 6882 6883 6884 6885 6886 6887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6888printf %s "checking for archiver @FILE support... " >&6; } 6889if test ${lt_cv_ar_at_file+y} 6890then : 6891 printf %s "(cached) " >&6 6892else $as_nop 6893 lt_cv_ar_at_file=no 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896 6897int 6898main (void) 6899{ 6900 6901 ; 6902 return 0; 6903} 6904_ACEOF 6905if ac_fn_c_try_compile "$LINENO" 6906then : 6907 echo conftest.$ac_objext > conftest.lst 6908 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6910 (eval $lt_ar_try) 2>&5 6911 ac_status=$? 6912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6913 test $ac_status = 0; } 6914 if test 0 -eq "$ac_status"; then 6915 # Ensure the archiver fails upon bogus file names. 6916 rm -f conftest.$ac_objext libconftest.a 6917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6918 (eval $lt_ar_try) 2>&5 6919 ac_status=$? 6920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6921 test $ac_status = 0; } 6922 if test 0 -ne "$ac_status"; then 6923 lt_cv_ar_at_file=@ 6924 fi 6925 fi 6926 rm -f conftest.* libconftest.a 6927 6928fi 6929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6930 6931fi 6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6933printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6934 6935if test no = "$lt_cv_ar_at_file"; then 6936 archiver_list_spec= 6937else 6938 archiver_list_spec=$lt_cv_ar_at_file 6939fi 6940 6941 6942 6943 6944 6945 6946 6947if test -n "$ac_tool_prefix"; then 6948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6949set dummy ${ac_tool_prefix}strip; ac_word=$2 6950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6951printf %s "checking for $ac_word... " >&6; } 6952if test ${ac_cv_prog_STRIP+y} 6953then : 6954 printf %s "(cached) " >&6 6955else $as_nop 6956 if test -n "$STRIP"; then 6957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 case $as_dir in #((( 6964 '') as_dir=./ ;; 6965 */) ;; 6966 *) as_dir=$as_dir/ ;; 6967 esac 6968 for ac_exec_ext in '' $ac_executable_extensions; do 6969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6970 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6972 break 2 6973 fi 6974done 6975 done 6976IFS=$as_save_IFS 6977 6978fi 6979fi 6980STRIP=$ac_cv_prog_STRIP 6981if test -n "$STRIP"; then 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6983printf "%s\n" "$STRIP" >&6; } 6984else 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6986printf "%s\n" "no" >&6; } 6987fi 6988 6989 6990fi 6991if test -z "$ac_cv_prog_STRIP"; then 6992 ac_ct_STRIP=$STRIP 6993 # Extract the first word of "strip", so it can be a program name with args. 6994set dummy strip; ac_word=$2 6995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6996printf %s "checking for $ac_word... " >&6; } 6997if test ${ac_cv_prog_ac_ct_STRIP+y} 6998then : 6999 printf %s "(cached) " >&6 7000else $as_nop 7001 if test -n "$ac_ct_STRIP"; then 7002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7003else 7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7005for as_dir in $PATH 7006do 7007 IFS=$as_save_IFS 7008 case $as_dir in #((( 7009 '') as_dir=./ ;; 7010 */) ;; 7011 *) as_dir=$as_dir/ ;; 7012 esac 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7015 ac_cv_prog_ac_ct_STRIP="strip" 7016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019done 7020 done 7021IFS=$as_save_IFS 7022 7023fi 7024fi 7025ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7026if test -n "$ac_ct_STRIP"; then 7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7028printf "%s\n" "$ac_ct_STRIP" >&6; } 7029else 7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031printf "%s\n" "no" >&6; } 7032fi 7033 7034 if test "x$ac_ct_STRIP" = x; then 7035 STRIP=":" 7036 else 7037 case $cross_compiling:$ac_tool_warned in 7038yes:) 7039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7041ac_tool_warned=yes ;; 7042esac 7043 STRIP=$ac_ct_STRIP 7044 fi 7045else 7046 STRIP="$ac_cv_prog_STRIP" 7047fi 7048 7049test -z "$STRIP" && STRIP=: 7050 7051 7052 7053 7054 7055 7056if test -n "$ac_tool_prefix"; then 7057 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7058set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7060printf %s "checking for $ac_word... " >&6; } 7061if test ${ac_cv_prog_RANLIB+y} 7062then : 7063 printf %s "(cached) " >&6 7064else $as_nop 7065 if test -n "$RANLIB"; then 7066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7067else 7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7069for as_dir in $PATH 7070do 7071 IFS=$as_save_IFS 7072 case $as_dir in #((( 7073 '') as_dir=./ ;; 7074 */) ;; 7075 *) as_dir=$as_dir/ ;; 7076 esac 7077 for ac_exec_ext in '' $ac_executable_extensions; do 7078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7081 break 2 7082 fi 7083done 7084 done 7085IFS=$as_save_IFS 7086 7087fi 7088fi 7089RANLIB=$ac_cv_prog_RANLIB 7090if test -n "$RANLIB"; then 7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7092printf "%s\n" "$RANLIB" >&6; } 7093else 7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7095printf "%s\n" "no" >&6; } 7096fi 7097 7098 7099fi 7100if test -z "$ac_cv_prog_RANLIB"; then 7101 ac_ct_RANLIB=$RANLIB 7102 # Extract the first word of "ranlib", so it can be a program name with args. 7103set dummy ranlib; ac_word=$2 7104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7105printf %s "checking for $ac_word... " >&6; } 7106if test ${ac_cv_prog_ac_ct_RANLIB+y} 7107then : 7108 printf %s "(cached) " >&6 7109else $as_nop 7110 if test -n "$ac_ct_RANLIB"; then 7111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7112else 7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7114for as_dir in $PATH 7115do 7116 IFS=$as_save_IFS 7117 case $as_dir in #((( 7118 '') as_dir=./ ;; 7119 */) ;; 7120 *) as_dir=$as_dir/ ;; 7121 esac 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7124 ac_cv_prog_ac_ct_RANLIB="ranlib" 7125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128done 7129 done 7130IFS=$as_save_IFS 7131 7132fi 7133fi 7134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7135if test -n "$ac_ct_RANLIB"; then 7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7137printf "%s\n" "$ac_ct_RANLIB" >&6; } 7138else 7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7140printf "%s\n" "no" >&6; } 7141fi 7142 7143 if test "x$ac_ct_RANLIB" = x; then 7144 RANLIB=":" 7145 else 7146 case $cross_compiling:$ac_tool_warned in 7147yes:) 7148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7149printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7150ac_tool_warned=yes ;; 7151esac 7152 RANLIB=$ac_ct_RANLIB 7153 fi 7154else 7155 RANLIB="$ac_cv_prog_RANLIB" 7156fi 7157 7158test -z "$RANLIB" && RANLIB=: 7159 7160 7161 7162 7163 7164 7165# Determine commands to create old-style static archives. 7166old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7167old_postinstall_cmds='chmod 644 $oldlib' 7168old_postuninstall_cmds= 7169 7170if test -n "$RANLIB"; then 7171 case $host_os in 7172 bitrig* | openbsd*) 7173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7174 ;; 7175 *) 7176 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7177 ;; 7178 esac 7179 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7180fi 7181 7182case $host_os in 7183 darwin*) 7184 lock_old_archive_extraction=yes ;; 7185 *) 7186 lock_old_archive_extraction=no ;; 7187esac 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227# If no C compiler was specified, use CC. 7228LTCC=${LTCC-"$CC"} 7229 7230# If no C compiler flags were specified, use CFLAGS. 7231LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7232 7233# Allow CC to be a program name with arguments. 7234compiler=$CC 7235 7236 7237# Check for command to grab the raw symbol name followed by C symbol from nm. 7238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7239printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7240if test ${lt_cv_sys_global_symbol_pipe+y} 7241then : 7242 printf %s "(cached) " >&6 7243else $as_nop 7244 7245# These are sane defaults that work on at least a few old systems. 7246# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7247 7248# Character class describing NM global symbol codes. 7249symcode='[BCDEGRST]' 7250 7251# Regexp to match symbols that can be accessed directly from C. 7252sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7253 7254# Define system-specific variables. 7255case $host_os in 7256aix*) 7257 symcode='[BCDT]' 7258 ;; 7259cygwin* | mingw* | pw32* | cegcc*) 7260 symcode='[ABCDGISTW]' 7261 ;; 7262hpux*) 7263 if test ia64 = "$host_cpu"; then 7264 symcode='[ABCDEGRST]' 7265 fi 7266 ;; 7267irix* | nonstopux*) 7268 symcode='[BCDEGRST]' 7269 ;; 7270osf*) 7271 symcode='[BCDEGQRST]' 7272 ;; 7273solaris*) 7274 symcode='[BDRT]' 7275 ;; 7276sco3.2v5*) 7277 symcode='[DT]' 7278 ;; 7279sysv4.2uw2*) 7280 symcode='[DT]' 7281 ;; 7282sysv5* | sco5v6* | unixware* | OpenUNIX*) 7283 symcode='[ABDT]' 7284 ;; 7285sysv4) 7286 symcode='[DFNSTU]' 7287 ;; 7288esac 7289 7290# If we're using GNU nm, then use its standard symbol codes. 7291case `$NM -V 2>&1` in 7292*GNU* | *'with BFD'*) 7293 symcode='[ABCDGIRSTW]' ;; 7294esac 7295 7296if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7297 # Gets list of data symbols to import. 7298 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7299 # Adjust the below global symbol transforms to fixup imported variables. 7300 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7301 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7302 lt_c_name_lib_hook="\ 7303 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7304 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7305else 7306 # Disable hooks by default. 7307 lt_cv_sys_global_symbol_to_import= 7308 lt_cdecl_hook= 7309 lt_c_name_hook= 7310 lt_c_name_lib_hook= 7311fi 7312 7313# Transform an extracted symbol line into a proper C declaration. 7314# Some systems (esp. on ia64) link data and code symbols differently, 7315# so use this general approach. 7316lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7317$lt_cdecl_hook\ 7318" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7319" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7320 7321# Transform an extracted symbol line into symbol name and symbol address 7322lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7323$lt_c_name_hook\ 7324" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7325" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7326 7327# Transform an extracted symbol line into symbol name with lib prefix and 7328# symbol address. 7329lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7330$lt_c_name_lib_hook\ 7331" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7332" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7333" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7334 7335# Handle CRLF in mingw tool chain 7336opt_cr= 7337case $build_os in 7338mingw*) 7339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7340 ;; 7341esac 7342 7343# Try without a prefix underscore, then with it. 7344for ac_symprfx in "" "_"; do 7345 7346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7347 symxfrm="\\1 $ac_symprfx\\2 \\2" 7348 7349 # Write the raw and C identifiers. 7350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7351 # Fake it for dumpbin and say T for any non-static function, 7352 # D for any global variable and I for any imported variable. 7353 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7354 # which start with @ or ?. 7355 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7356" {last_section=section; section=\$ 3};"\ 7357" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7358" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7359" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7360" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7361" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7362" \$ 0!~/External *\|/{next};"\ 7363" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7364" {if(hide[section]) next};"\ 7365" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7366" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7367" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7368" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7369" ' prfx=^$ac_symprfx" 7370 else 7371 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7372 fi 7373 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7374 7375 # Check to see that the pipe works correctly. 7376 pipe_works=no 7377 7378 rm -f conftest* 7379 cat > conftest.$ac_ext <<_LT_EOF 7380#ifdef __cplusplus 7381extern "C" { 7382#endif 7383char nm_test_var; 7384void nm_test_func(void); 7385void nm_test_func(void){} 7386#ifdef __cplusplus 7387} 7388#endif 7389int main(){nm_test_var='a';nm_test_func();return(0);} 7390_LT_EOF 7391 7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7393 (eval $ac_compile) 2>&5 7394 ac_status=$? 7395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7396 test $ac_status = 0; }; then 7397 # Now try to grab the symbols. 7398 nlist=conftest.nm 7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7400 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7401 ac_status=$? 7402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7403 test $ac_status = 0; } && test -s "$nlist"; then 7404 # Try sorting and uniquifying the output. 7405 if sort "$nlist" | uniq > "$nlist"T; then 7406 mv -f "$nlist"T "$nlist" 7407 else 7408 rm -f "$nlist"T 7409 fi 7410 7411 # Make sure that we snagged all the symbols we need. 7412 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7413 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7414 cat <<_LT_EOF > conftest.$ac_ext 7415/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7416#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7417/* DATA imports from DLLs on WIN32 can't be const, because runtime 7418 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7419# define LT_DLSYM_CONST 7420#elif defined __osf__ 7421/* This system does not cope well with relocations in const data. */ 7422# define LT_DLSYM_CONST 7423#else 7424# define LT_DLSYM_CONST const 7425#endif 7426 7427#ifdef __cplusplus 7428extern "C" { 7429#endif 7430 7431_LT_EOF 7432 # Now generate the symbol file. 7433 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7434 7435 cat <<_LT_EOF >> conftest.$ac_ext 7436 7437/* The mapping between symbol names and symbols. */ 7438LT_DLSYM_CONST struct { 7439 const char *name; 7440 void *address; 7441} 7442lt__PROGRAM__LTX_preloaded_symbols[] = 7443{ 7444 { "@PROGRAM@", (void *) 0 }, 7445_LT_EOF 7446 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7447 cat <<\_LT_EOF >> conftest.$ac_ext 7448 {0, (void *) 0} 7449}; 7450 7451/* This works around a problem in FreeBSD linker */ 7452#ifdef FREEBSD_WORKAROUND 7453static const void *lt_preloaded_setup() { 7454 return lt__PROGRAM__LTX_preloaded_symbols; 7455} 7456#endif 7457 7458#ifdef __cplusplus 7459} 7460#endif 7461_LT_EOF 7462 # Now try linking the two files. 7463 mv conftest.$ac_objext conftstm.$ac_objext 7464 lt_globsym_save_LIBS=$LIBS 7465 lt_globsym_save_CFLAGS=$CFLAGS 7466 LIBS=conftstm.$ac_objext 7467 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7469 (eval $ac_link) 2>&5 7470 ac_status=$? 7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7472 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7473 pipe_works=yes 7474 fi 7475 LIBS=$lt_globsym_save_LIBS 7476 CFLAGS=$lt_globsym_save_CFLAGS 7477 else 7478 echo "cannot find nm_test_func in $nlist" >&5 7479 fi 7480 else 7481 echo "cannot find nm_test_var in $nlist" >&5 7482 fi 7483 else 7484 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7485 fi 7486 else 7487 echo "$progname: failed program was:" >&5 7488 cat conftest.$ac_ext >&5 7489 fi 7490 rm -rf conftest* conftst* 7491 7492 # Do not use the global_symbol_pipe unless it works. 7493 if test yes = "$pipe_works"; then 7494 break 7495 else 7496 lt_cv_sys_global_symbol_pipe= 7497 fi 7498done 7499 7500fi 7501 7502if test -z "$lt_cv_sys_global_symbol_pipe"; then 7503 lt_cv_sys_global_symbol_to_cdecl= 7504fi 7505if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7507printf "%s\n" "failed" >&6; } 7508else 7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7510printf "%s\n" "ok" >&6; } 7511fi 7512 7513# Response file support. 7514if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7515 nm_file_list_spec='@' 7516elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7517 nm_file_list_spec='@' 7518fi 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7557printf %s "checking for sysroot... " >&6; } 7558 7559# Check whether --with-sysroot was given. 7560if test ${with_sysroot+y} 7561then : 7562 withval=$with_sysroot; 7563else $as_nop 7564 with_sysroot=no 7565fi 7566 7567 7568lt_sysroot= 7569case $with_sysroot in #( 7570 yes) 7571 if test yes = "$GCC"; then 7572 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7573 fi 7574 ;; #( 7575 /*) 7576 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7577 ;; #( 7578 no|'') 7579 ;; #( 7580 *) 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7582printf "%s\n" "$with_sysroot" >&6; } 7583 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7584 ;; 7585esac 7586 7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7588printf "%s\n" "${lt_sysroot:-no}" >&6; } 7589 7590 7591 7592 7593 7594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7595printf %s "checking for a working dd... " >&6; } 7596if test ${ac_cv_path_lt_DD+y} 7597then : 7598 printf %s "(cached) " >&6 7599else $as_nop 7600 printf 0123456789abcdef0123456789abcdef >conftest.i 7601cat conftest.i conftest.i >conftest2.i 7602: ${lt_DD:=$DD} 7603if test -z "$lt_DD"; then 7604 ac_path_lt_DD_found=false 7605 # Loop through the user's path and test for each of PROGNAME-LIST 7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7607for as_dir in $PATH 7608do 7609 IFS=$as_save_IFS 7610 case $as_dir in #((( 7611 '') as_dir=./ ;; 7612 */) ;; 7613 *) as_dir=$as_dir/ ;; 7614 esac 7615 for ac_prog in dd 7616 do 7617 for ac_exec_ext in '' $ac_executable_extensions; do 7618 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7619 as_fn_executable_p "$ac_path_lt_DD" || continue 7620if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7621 cmp -s conftest.i conftest.out \ 7622 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7623fi 7624 $ac_path_lt_DD_found && break 3 7625 done 7626 done 7627 done 7628IFS=$as_save_IFS 7629 if test -z "$ac_cv_path_lt_DD"; then 7630 : 7631 fi 7632else 7633 ac_cv_path_lt_DD=$lt_DD 7634fi 7635 7636rm -f conftest.i conftest2.i conftest.out 7637fi 7638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7639printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7640 7641 7642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7643printf %s "checking how to truncate binary pipes... " >&6; } 7644if test ${lt_cv_truncate_bin+y} 7645then : 7646 printf %s "(cached) " >&6 7647else $as_nop 7648 printf 0123456789abcdef0123456789abcdef >conftest.i 7649cat conftest.i conftest.i >conftest2.i 7650lt_cv_truncate_bin= 7651if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7652 cmp -s conftest.i conftest.out \ 7653 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7654fi 7655rm -f conftest.i conftest2.i conftest.out 7656test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7657fi 7658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7659printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7660 7661 7662 7663 7664 7665 7666 7667# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7668func_cc_basename () 7669{ 7670 for cc_temp in $*""; do 7671 case $cc_temp in 7672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7674 \-*) ;; 7675 *) break;; 7676 esac 7677 done 7678 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7679} 7680 7681# Check whether --enable-libtool-lock was given. 7682if test ${enable_libtool_lock+y} 7683then : 7684 enableval=$enable_libtool_lock; 7685fi 7686 7687test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7688 7689# Some flags need to be propagated to the compiler or linker for good 7690# libtool support. 7691case $host in 7692ia64-*-hpux*) 7693 # Find out what ABI is being produced by ac_compile, and set mode 7694 # options accordingly. 7695 echo 'int i;' > conftest.$ac_ext 7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7697 (eval $ac_compile) 2>&5 7698 ac_status=$? 7699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7700 test $ac_status = 0; }; then 7701 case `$FILECMD conftest.$ac_objext` in 7702 *ELF-32*) 7703 HPUX_IA64_MODE=32 7704 ;; 7705 *ELF-64*) 7706 HPUX_IA64_MODE=64 7707 ;; 7708 esac 7709 fi 7710 rm -rf conftest* 7711 ;; 7712*-*-irix6*) 7713 # Find out what ABI is being produced by ac_compile, and set linker 7714 # options accordingly. 7715 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7717 (eval $ac_compile) 2>&5 7718 ac_status=$? 7719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7720 test $ac_status = 0; }; then 7721 if test yes = "$lt_cv_prog_gnu_ld"; then 7722 case `$FILECMD conftest.$ac_objext` in 7723 *32-bit*) 7724 LD="${LD-ld} -melf32bsmip" 7725 ;; 7726 *N32*) 7727 LD="${LD-ld} -melf32bmipn32" 7728 ;; 7729 *64-bit*) 7730 LD="${LD-ld} -melf64bmip" 7731 ;; 7732 esac 7733 else 7734 case `$FILECMD conftest.$ac_objext` in 7735 *32-bit*) 7736 LD="${LD-ld} -32" 7737 ;; 7738 *N32*) 7739 LD="${LD-ld} -n32" 7740 ;; 7741 *64-bit*) 7742 LD="${LD-ld} -64" 7743 ;; 7744 esac 7745 fi 7746 fi 7747 rm -rf conftest* 7748 ;; 7749 7750mips64*-*linux*) 7751 # Find out what ABI is being produced by ac_compile, and set linker 7752 # options accordingly. 7753 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7755 (eval $ac_compile) 2>&5 7756 ac_status=$? 7757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7758 test $ac_status = 0; }; then 7759 emul=elf 7760 case `$FILECMD conftest.$ac_objext` in 7761 *32-bit*) 7762 emul="${emul}32" 7763 ;; 7764 *64-bit*) 7765 emul="${emul}64" 7766 ;; 7767 esac 7768 case `$FILECMD conftest.$ac_objext` in 7769 *MSB*) 7770 emul="${emul}btsmip" 7771 ;; 7772 *LSB*) 7773 emul="${emul}ltsmip" 7774 ;; 7775 esac 7776 case `$FILECMD conftest.$ac_objext` in 7777 *N32*) 7778 emul="${emul}n32" 7779 ;; 7780 esac 7781 LD="${LD-ld} -m $emul" 7782 fi 7783 rm -rf conftest* 7784 ;; 7785 7786x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7787s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7788 # Find out what ABI is being produced by ac_compile, and set linker 7789 # options accordingly. Note that the listed cases only cover the 7790 # situations where additional linker options are needed (such as when 7791 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7792 # vice versa); the common cases where no linker options are needed do 7793 # not appear in the list. 7794 echo 'int i;' > conftest.$ac_ext 7795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7796 (eval $ac_compile) 2>&5 7797 ac_status=$? 7798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7799 test $ac_status = 0; }; then 7800 case `$FILECMD conftest.o` in 7801 *32-bit*) 7802 case $host in 7803 x86_64-*kfreebsd*-gnu) 7804 LD="${LD-ld} -m elf_i386_fbsd" 7805 ;; 7806 x86_64-*linux*) 7807 case `$FILECMD conftest.o` in 7808 *x86-64*) 7809 LD="${LD-ld} -m elf32_x86_64" 7810 ;; 7811 *) 7812 LD="${LD-ld} -m elf_i386" 7813 ;; 7814 esac 7815 ;; 7816 powerpc64le-*linux*) 7817 LD="${LD-ld} -m elf32lppclinux" 7818 ;; 7819 powerpc64-*linux*) 7820 LD="${LD-ld} -m elf32ppclinux" 7821 ;; 7822 s390x-*linux*) 7823 LD="${LD-ld} -m elf_s390" 7824 ;; 7825 sparc64-*linux*) 7826 LD="${LD-ld} -m elf32_sparc" 7827 ;; 7828 esac 7829 ;; 7830 *64-bit*) 7831 case $host in 7832 x86_64-*kfreebsd*-gnu) 7833 LD="${LD-ld} -m elf_x86_64_fbsd" 7834 ;; 7835 x86_64-*linux*) 7836 LD="${LD-ld} -m elf_x86_64" 7837 ;; 7838 powerpcle-*linux*) 7839 LD="${LD-ld} -m elf64lppc" 7840 ;; 7841 powerpc-*linux*) 7842 LD="${LD-ld} -m elf64ppc" 7843 ;; 7844 s390*-*linux*|s390*-*tpf*) 7845 LD="${LD-ld} -m elf64_s390" 7846 ;; 7847 sparc*-*linux*) 7848 LD="${LD-ld} -m elf64_sparc" 7849 ;; 7850 esac 7851 ;; 7852 esac 7853 fi 7854 rm -rf conftest* 7855 ;; 7856 7857*-*-sco3.2v5*) 7858 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7859 SAVE_CFLAGS=$CFLAGS 7860 CFLAGS="$CFLAGS -belf" 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7862printf %s "checking whether the C compiler needs -belf... " >&6; } 7863if test ${lt_cv_cc_needs_belf+y} 7864then : 7865 printf %s "(cached) " >&6 7866else $as_nop 7867 ac_ext=c 7868ac_cpp='$CPP $CPPFLAGS' 7869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7871ac_compiler_gnu=$ac_cv_c_compiler_gnu 7872 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7874/* end confdefs.h. */ 7875 7876int 7877main (void) 7878{ 7879 7880 ; 7881 return 0; 7882} 7883_ACEOF 7884if ac_fn_c_try_link "$LINENO" 7885then : 7886 lt_cv_cc_needs_belf=yes 7887else $as_nop 7888 lt_cv_cc_needs_belf=no 7889fi 7890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7891 conftest$ac_exeext conftest.$ac_ext 7892 ac_ext=c 7893ac_cpp='$CPP $CPPFLAGS' 7894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7896ac_compiler_gnu=$ac_cv_c_compiler_gnu 7897 7898fi 7899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7900printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7901 if test yes != "$lt_cv_cc_needs_belf"; then 7902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7903 CFLAGS=$SAVE_CFLAGS 7904 fi 7905 ;; 7906*-*solaris*) 7907 # Find out what ABI is being produced by ac_compile, and set linker 7908 # options accordingly. 7909 echo 'int i;' > conftest.$ac_ext 7910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7911 (eval $ac_compile) 2>&5 7912 ac_status=$? 7913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7914 test $ac_status = 0; }; then 7915 case `$FILECMD conftest.o` in 7916 *64-bit*) 7917 case $lt_cv_prog_gnu_ld in 7918 yes*) 7919 case $host in 7920 i?86-*-solaris*|x86_64-*-solaris*) 7921 LD="${LD-ld} -m elf_x86_64" 7922 ;; 7923 sparc*-*-solaris*) 7924 LD="${LD-ld} -m elf64_sparc" 7925 ;; 7926 esac 7927 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7928 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7929 LD=${LD-ld}_sol2 7930 fi 7931 ;; 7932 *) 7933 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7934 LD="${LD-ld} -64" 7935 fi 7936 ;; 7937 esac 7938 ;; 7939 esac 7940 fi 7941 rm -rf conftest* 7942 ;; 7943esac 7944 7945need_locks=$enable_libtool_lock 7946 7947if test -n "$ac_tool_prefix"; then 7948 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7949set dummy ${ac_tool_prefix}mt; ac_word=$2 7950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7951printf %s "checking for $ac_word... " >&6; } 7952if test ${ac_cv_prog_MANIFEST_TOOL+y} 7953then : 7954 printf %s "(cached) " >&6 7955else $as_nop 7956 if test -n "$MANIFEST_TOOL"; then 7957 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7958else 7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7960for as_dir in $PATH 7961do 7962 IFS=$as_save_IFS 7963 case $as_dir in #((( 7964 '') as_dir=./ ;; 7965 */) ;; 7966 *) as_dir=$as_dir/ ;; 7967 esac 7968 for ac_exec_ext in '' $ac_executable_extensions; do 7969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7970 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7972 break 2 7973 fi 7974done 7975 done 7976IFS=$as_save_IFS 7977 7978fi 7979fi 7980MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7981if test -n "$MANIFEST_TOOL"; then 7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7983printf "%s\n" "$MANIFEST_TOOL" >&6; } 7984else 7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7986printf "%s\n" "no" >&6; } 7987fi 7988 7989 7990fi 7991if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7992 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7993 # Extract the first word of "mt", so it can be a program name with args. 7994set dummy mt; ac_word=$2 7995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7996printf %s "checking for $ac_word... " >&6; } 7997if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7998then : 7999 printf %s "(cached) " >&6 8000else $as_nop 8001 if test -n "$ac_ct_MANIFEST_TOOL"; then 8002 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8003else 8004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8005for as_dir in $PATH 8006do 8007 IFS=$as_save_IFS 8008 case $as_dir in #((( 8009 '') as_dir=./ ;; 8010 */) ;; 8011 *) as_dir=$as_dir/ ;; 8012 esac 8013 for ac_exec_ext in '' $ac_executable_extensions; do 8014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8015 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8017 break 2 8018 fi 8019done 8020 done 8021IFS=$as_save_IFS 8022 8023fi 8024fi 8025ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8026if test -n "$ac_ct_MANIFEST_TOOL"; then 8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8028printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8029else 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031printf "%s\n" "no" >&6; } 8032fi 8033 8034 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8035 MANIFEST_TOOL=":" 8036 else 8037 case $cross_compiling:$ac_tool_warned in 8038yes:) 8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8041ac_tool_warned=yes ;; 8042esac 8043 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8044 fi 8045else 8046 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8047fi 8048 8049test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8051printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8052if test ${lt_cv_path_mainfest_tool+y} 8053then : 8054 printf %s "(cached) " >&6 8055else $as_nop 8056 lt_cv_path_mainfest_tool=no 8057 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8058 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8059 cat conftest.err >&5 8060 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8061 lt_cv_path_mainfest_tool=yes 8062 fi 8063 rm -f conftest* 8064fi 8065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8066printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8067if test yes != "$lt_cv_path_mainfest_tool"; then 8068 MANIFEST_TOOL=: 8069fi 8070 8071 8072 8073 8074 8075 8076 case $host_os in 8077 rhapsody* | darwin*) 8078 if test -n "$ac_tool_prefix"; then 8079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8080set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8082printf %s "checking for $ac_word... " >&6; } 8083if test ${ac_cv_prog_DSYMUTIL+y} 8084then : 8085 printf %s "(cached) " >&6 8086else $as_nop 8087 if test -n "$DSYMUTIL"; then 8088 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8089else 8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8091for as_dir in $PATH 8092do 8093 IFS=$as_save_IFS 8094 case $as_dir in #((( 8095 '') as_dir=./ ;; 8096 */) ;; 8097 *) as_dir=$as_dir/ ;; 8098 esac 8099 for ac_exec_ext in '' $ac_executable_extensions; do 8100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8101 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8103 break 2 8104 fi 8105done 8106 done 8107IFS=$as_save_IFS 8108 8109fi 8110fi 8111DSYMUTIL=$ac_cv_prog_DSYMUTIL 8112if test -n "$DSYMUTIL"; then 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8114printf "%s\n" "$DSYMUTIL" >&6; } 8115else 8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8117printf "%s\n" "no" >&6; } 8118fi 8119 8120 8121fi 8122if test -z "$ac_cv_prog_DSYMUTIL"; then 8123 ac_ct_DSYMUTIL=$DSYMUTIL 8124 # Extract the first word of "dsymutil", so it can be a program name with args. 8125set dummy dsymutil; ac_word=$2 8126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8127printf %s "checking for $ac_word... " >&6; } 8128if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8129then : 8130 printf %s "(cached) " >&6 8131else $as_nop 8132 if test -n "$ac_ct_DSYMUTIL"; then 8133 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8134else 8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8136for as_dir in $PATH 8137do 8138 IFS=$as_save_IFS 8139 case $as_dir in #((( 8140 '') as_dir=./ ;; 8141 */) ;; 8142 *) as_dir=$as_dir/ ;; 8143 esac 8144 for ac_exec_ext in '' $ac_executable_extensions; do 8145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8146 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8148 break 2 8149 fi 8150done 8151 done 8152IFS=$as_save_IFS 8153 8154fi 8155fi 8156ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8157if test -n "$ac_ct_DSYMUTIL"; then 8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8159printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8160else 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8162printf "%s\n" "no" >&6; } 8163fi 8164 8165 if test "x$ac_ct_DSYMUTIL" = x; then 8166 DSYMUTIL=":" 8167 else 8168 case $cross_compiling:$ac_tool_warned in 8169yes:) 8170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8171printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8172ac_tool_warned=yes ;; 8173esac 8174 DSYMUTIL=$ac_ct_DSYMUTIL 8175 fi 8176else 8177 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8178fi 8179 8180 if test -n "$ac_tool_prefix"; then 8181 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8182set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8184printf %s "checking for $ac_word... " >&6; } 8185if test ${ac_cv_prog_NMEDIT+y} 8186then : 8187 printf %s "(cached) " >&6 8188else $as_nop 8189 if test -n "$NMEDIT"; then 8190 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8191else 8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8193for as_dir in $PATH 8194do 8195 IFS=$as_save_IFS 8196 case $as_dir in #((( 8197 '') as_dir=./ ;; 8198 */) ;; 8199 *) as_dir=$as_dir/ ;; 8200 esac 8201 for ac_exec_ext in '' $ac_executable_extensions; do 8202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8205 break 2 8206 fi 8207done 8208 done 8209IFS=$as_save_IFS 8210 8211fi 8212fi 8213NMEDIT=$ac_cv_prog_NMEDIT 8214if test -n "$NMEDIT"; then 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8216printf "%s\n" "$NMEDIT" >&6; } 8217else 8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8219printf "%s\n" "no" >&6; } 8220fi 8221 8222 8223fi 8224if test -z "$ac_cv_prog_NMEDIT"; then 8225 ac_ct_NMEDIT=$NMEDIT 8226 # Extract the first word of "nmedit", so it can be a program name with args. 8227set dummy nmedit; ac_word=$2 8228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8229printf %s "checking for $ac_word... " >&6; } 8230if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8231then : 8232 printf %s "(cached) " >&6 8233else $as_nop 8234 if test -n "$ac_ct_NMEDIT"; then 8235 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8236else 8237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8238for as_dir in $PATH 8239do 8240 IFS=$as_save_IFS 8241 case $as_dir in #((( 8242 '') as_dir=./ ;; 8243 */) ;; 8244 *) as_dir=$as_dir/ ;; 8245 esac 8246 for ac_exec_ext in '' $ac_executable_extensions; do 8247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8248 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8250 break 2 8251 fi 8252done 8253 done 8254IFS=$as_save_IFS 8255 8256fi 8257fi 8258ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8259if test -n "$ac_ct_NMEDIT"; then 8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8261printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8262else 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8264printf "%s\n" "no" >&6; } 8265fi 8266 8267 if test "x$ac_ct_NMEDIT" = x; then 8268 NMEDIT=":" 8269 else 8270 case $cross_compiling:$ac_tool_warned in 8271yes:) 8272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8273printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8274ac_tool_warned=yes ;; 8275esac 8276 NMEDIT=$ac_ct_NMEDIT 8277 fi 8278else 8279 NMEDIT="$ac_cv_prog_NMEDIT" 8280fi 8281 8282 if test -n "$ac_tool_prefix"; then 8283 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8284set dummy ${ac_tool_prefix}lipo; ac_word=$2 8285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8286printf %s "checking for $ac_word... " >&6; } 8287if test ${ac_cv_prog_LIPO+y} 8288then : 8289 printf %s "(cached) " >&6 8290else $as_nop 8291 if test -n "$LIPO"; then 8292 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8293else 8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8295for as_dir in $PATH 8296do 8297 IFS=$as_save_IFS 8298 case $as_dir in #((( 8299 '') as_dir=./ ;; 8300 */) ;; 8301 *) as_dir=$as_dir/ ;; 8302 esac 8303 for ac_exec_ext in '' $ac_executable_extensions; do 8304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8305 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8307 break 2 8308 fi 8309done 8310 done 8311IFS=$as_save_IFS 8312 8313fi 8314fi 8315LIPO=$ac_cv_prog_LIPO 8316if test -n "$LIPO"; then 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8318printf "%s\n" "$LIPO" >&6; } 8319else 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8321printf "%s\n" "no" >&6; } 8322fi 8323 8324 8325fi 8326if test -z "$ac_cv_prog_LIPO"; then 8327 ac_ct_LIPO=$LIPO 8328 # Extract the first word of "lipo", so it can be a program name with args. 8329set dummy lipo; ac_word=$2 8330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8331printf %s "checking for $ac_word... " >&6; } 8332if test ${ac_cv_prog_ac_ct_LIPO+y} 8333then : 8334 printf %s "(cached) " >&6 8335else $as_nop 8336 if test -n "$ac_ct_LIPO"; then 8337 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8338else 8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340for as_dir in $PATH 8341do 8342 IFS=$as_save_IFS 8343 case $as_dir in #((( 8344 '') as_dir=./ ;; 8345 */) ;; 8346 *) as_dir=$as_dir/ ;; 8347 esac 8348 for ac_exec_ext in '' $ac_executable_extensions; do 8349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8350 ac_cv_prog_ac_ct_LIPO="lipo" 8351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8352 break 2 8353 fi 8354done 8355 done 8356IFS=$as_save_IFS 8357 8358fi 8359fi 8360ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8361if test -n "$ac_ct_LIPO"; then 8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8363printf "%s\n" "$ac_ct_LIPO" >&6; } 8364else 8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8366printf "%s\n" "no" >&6; } 8367fi 8368 8369 if test "x$ac_ct_LIPO" = x; then 8370 LIPO=":" 8371 else 8372 case $cross_compiling:$ac_tool_warned in 8373yes:) 8374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8375printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8376ac_tool_warned=yes ;; 8377esac 8378 LIPO=$ac_ct_LIPO 8379 fi 8380else 8381 LIPO="$ac_cv_prog_LIPO" 8382fi 8383 8384 if test -n "$ac_tool_prefix"; then 8385 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8386set dummy ${ac_tool_prefix}otool; ac_word=$2 8387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8388printf %s "checking for $ac_word... " >&6; } 8389if test ${ac_cv_prog_OTOOL+y} 8390then : 8391 printf %s "(cached) " >&6 8392else $as_nop 8393 if test -n "$OTOOL"; then 8394 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8395else 8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8397for as_dir in $PATH 8398do 8399 IFS=$as_save_IFS 8400 case $as_dir in #((( 8401 '') as_dir=./ ;; 8402 */) ;; 8403 *) as_dir=$as_dir/ ;; 8404 esac 8405 for ac_exec_ext in '' $ac_executable_extensions; do 8406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8407 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8409 break 2 8410 fi 8411done 8412 done 8413IFS=$as_save_IFS 8414 8415fi 8416fi 8417OTOOL=$ac_cv_prog_OTOOL 8418if test -n "$OTOOL"; then 8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8420printf "%s\n" "$OTOOL" >&6; } 8421else 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8423printf "%s\n" "no" >&6; } 8424fi 8425 8426 8427fi 8428if test -z "$ac_cv_prog_OTOOL"; then 8429 ac_ct_OTOOL=$OTOOL 8430 # Extract the first word of "otool", so it can be a program name with args. 8431set dummy otool; ac_word=$2 8432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8433printf %s "checking for $ac_word... " >&6; } 8434if test ${ac_cv_prog_ac_ct_OTOOL+y} 8435then : 8436 printf %s "(cached) " >&6 8437else $as_nop 8438 if test -n "$ac_ct_OTOOL"; then 8439 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8440else 8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8442for as_dir in $PATH 8443do 8444 IFS=$as_save_IFS 8445 case $as_dir in #((( 8446 '') as_dir=./ ;; 8447 */) ;; 8448 *) as_dir=$as_dir/ ;; 8449 esac 8450 for ac_exec_ext in '' $ac_executable_extensions; do 8451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8452 ac_cv_prog_ac_ct_OTOOL="otool" 8453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8454 break 2 8455 fi 8456done 8457 done 8458IFS=$as_save_IFS 8459 8460fi 8461fi 8462ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8463if test -n "$ac_ct_OTOOL"; then 8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8465printf "%s\n" "$ac_ct_OTOOL" >&6; } 8466else 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8468printf "%s\n" "no" >&6; } 8469fi 8470 8471 if test "x$ac_ct_OTOOL" = x; then 8472 OTOOL=":" 8473 else 8474 case $cross_compiling:$ac_tool_warned in 8475yes:) 8476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8477printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8478ac_tool_warned=yes ;; 8479esac 8480 OTOOL=$ac_ct_OTOOL 8481 fi 8482else 8483 OTOOL="$ac_cv_prog_OTOOL" 8484fi 8485 8486 if test -n "$ac_tool_prefix"; then 8487 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8488set dummy ${ac_tool_prefix}otool64; ac_word=$2 8489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8490printf %s "checking for $ac_word... " >&6; } 8491if test ${ac_cv_prog_OTOOL64+y} 8492then : 8493 printf %s "(cached) " >&6 8494else $as_nop 8495 if test -n "$OTOOL64"; then 8496 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8497else 8498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8499for as_dir in $PATH 8500do 8501 IFS=$as_save_IFS 8502 case $as_dir in #((( 8503 '') as_dir=./ ;; 8504 */) ;; 8505 *) as_dir=$as_dir/ ;; 8506 esac 8507 for ac_exec_ext in '' $ac_executable_extensions; do 8508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8509 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8511 break 2 8512 fi 8513done 8514 done 8515IFS=$as_save_IFS 8516 8517fi 8518fi 8519OTOOL64=$ac_cv_prog_OTOOL64 8520if test -n "$OTOOL64"; then 8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8522printf "%s\n" "$OTOOL64" >&6; } 8523else 8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8525printf "%s\n" "no" >&6; } 8526fi 8527 8528 8529fi 8530if test -z "$ac_cv_prog_OTOOL64"; then 8531 ac_ct_OTOOL64=$OTOOL64 8532 # Extract the first word of "otool64", so it can be a program name with args. 8533set dummy otool64; ac_word=$2 8534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8535printf %s "checking for $ac_word... " >&6; } 8536if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8537then : 8538 printf %s "(cached) " >&6 8539else $as_nop 8540 if test -n "$ac_ct_OTOOL64"; then 8541 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8542else 8543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8544for as_dir in $PATH 8545do 8546 IFS=$as_save_IFS 8547 case $as_dir in #((( 8548 '') as_dir=./ ;; 8549 */) ;; 8550 *) as_dir=$as_dir/ ;; 8551 esac 8552 for ac_exec_ext in '' $ac_executable_extensions; do 8553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8554 ac_cv_prog_ac_ct_OTOOL64="otool64" 8555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8556 break 2 8557 fi 8558done 8559 done 8560IFS=$as_save_IFS 8561 8562fi 8563fi 8564ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8565if test -n "$ac_ct_OTOOL64"; then 8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8567printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8568else 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8570printf "%s\n" "no" >&6; } 8571fi 8572 8573 if test "x$ac_ct_OTOOL64" = x; then 8574 OTOOL64=":" 8575 else 8576 case $cross_compiling:$ac_tool_warned in 8577yes:) 8578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8579printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8580ac_tool_warned=yes ;; 8581esac 8582 OTOOL64=$ac_ct_OTOOL64 8583 fi 8584else 8585 OTOOL64="$ac_cv_prog_OTOOL64" 8586fi 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8615printf %s "checking for -single_module linker flag... " >&6; } 8616if test ${lt_cv_apple_cc_single_mod+y} 8617then : 8618 printf %s "(cached) " >&6 8619else $as_nop 8620 lt_cv_apple_cc_single_mod=no 8621 if test -z "$LT_MULTI_MODULE"; then 8622 # By default we will add the -single_module flag. You can override 8623 # by either setting the environment variable LT_MULTI_MODULE 8624 # non-empty at configure time, or by adding -multi_module to the 8625 # link flags. 8626 rm -rf libconftest.dylib* 8627 echo "int foo(void){return 1;}" > conftest.c 8628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8629-dynamiclib -Wl,-single_module conftest.c" >&5 8630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8632 _lt_result=$? 8633 # If there is a non-empty error log, and "single_module" 8634 # appears in it, assume the flag caused a linker warning 8635 if test -s conftest.err && $GREP single_module conftest.err; then 8636 cat conftest.err >&5 8637 # Otherwise, if the output was created with a 0 exit code from 8638 # the compiler, it worked. 8639 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8640 lt_cv_apple_cc_single_mod=yes 8641 else 8642 cat conftest.err >&5 8643 fi 8644 rm -rf libconftest.dylib* 8645 rm -f conftest.* 8646 fi 8647fi 8648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8649printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8650 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8652printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8653if test ${lt_cv_ld_exported_symbols_list+y} 8654then : 8655 printf %s "(cached) " >&6 8656else $as_nop 8657 lt_cv_ld_exported_symbols_list=no 8658 save_LDFLAGS=$LDFLAGS 8659 echo "_main" > conftest.sym 8660 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8662/* end confdefs.h. */ 8663 8664int 8665main (void) 8666{ 8667 8668 ; 8669 return 0; 8670} 8671_ACEOF 8672if ac_fn_c_try_link "$LINENO" 8673then : 8674 lt_cv_ld_exported_symbols_list=yes 8675else $as_nop 8676 lt_cv_ld_exported_symbols_list=no 8677fi 8678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8679 conftest$ac_exeext conftest.$ac_ext 8680 LDFLAGS=$save_LDFLAGS 8681 8682fi 8683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8684printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8685 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8687printf %s "checking for -force_load linker flag... " >&6; } 8688if test ${lt_cv_ld_force_load+y} 8689then : 8690 printf %s "(cached) " >&6 8691else $as_nop 8692 lt_cv_ld_force_load=no 8693 cat > conftest.c << _LT_EOF 8694int forced_loaded() { return 2;} 8695_LT_EOF 8696 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8697 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8698 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8699 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8700 echo "$RANLIB libconftest.a" >&5 8701 $RANLIB libconftest.a 2>&5 8702 cat > conftest.c << _LT_EOF 8703int main() { return 0;} 8704_LT_EOF 8705 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8706 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8707 _lt_result=$? 8708 if test -s conftest.err && $GREP force_load conftest.err; then 8709 cat conftest.err >&5 8710 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8711 lt_cv_ld_force_load=yes 8712 else 8713 cat conftest.err >&5 8714 fi 8715 rm -f conftest.err libconftest.a conftest conftest.c 8716 rm -rf conftest.dSYM 8717 8718fi 8719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8720printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8721 case $host_os in 8722 rhapsody* | darwin1.[012]) 8723 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8724 darwin1.*) 8725 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8726 darwin*) 8727 case $MACOSX_DEPLOYMENT_TARGET,$host in 8728 10.[012],*|,*powerpc*-darwin[5-8]*) 8729 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8730 *) 8731 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8732 esac 8733 ;; 8734 esac 8735 if test yes = "$lt_cv_apple_cc_single_mod"; then 8736 _lt_dar_single_mod='$single_module' 8737 fi 8738 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8739 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8740 else 8741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8742 fi 8743 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8744 _lt_dsymutil='~$DSYMUTIL $lib || :' 8745 else 8746 _lt_dsymutil= 8747 fi 8748 ;; 8749 esac 8750 8751# func_munge_path_list VARIABLE PATH 8752# ----------------------------------- 8753# VARIABLE is name of variable containing _space_ separated list of 8754# directories to be munged by the contents of PATH, which is string 8755# having a format: 8756# "DIR[:DIR]:" 8757# string "DIR[ DIR]" will be prepended to VARIABLE 8758# ":DIR[:DIR]" 8759# string "DIR[ DIR]" will be appended to VARIABLE 8760# "DIRP[:DIRP]::[DIRA:]DIRA" 8761# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8762# "DIRA[ DIRA]" will be appended to VARIABLE 8763# "DIR[:DIR]" 8764# VARIABLE will be replaced by "DIR[ DIR]" 8765func_munge_path_list () 8766{ 8767 case x$2 in 8768 x) 8769 ;; 8770 *:) 8771 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8772 ;; 8773 x:*) 8774 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8775 ;; 8776 *::*) 8777 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8778 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8779 ;; 8780 *) 8781 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8782 ;; 8783 esac 8784} 8785 8786ac_header= ac_cache= 8787for ac_item in $ac_header_c_list 8788do 8789 if test $ac_cache; then 8790 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8791 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8792 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8793 fi 8794 ac_header= ac_cache= 8795 elif test $ac_header; then 8796 ac_cache=$ac_item 8797 else 8798 ac_header=$ac_item 8799 fi 8800done 8801 8802 8803 8804 8805 8806 8807 8808 8809if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8810then : 8811 8812printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8813 8814fi 8815ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8816" 8817if test "x$ac_cv_header_dlfcn_h" = xyes 8818then : 8819 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8820 8821fi 8822 8823 8824 8825 8826 8827# Set options 8828# Check whether --enable-shared was given. 8829if test ${enable_shared+y} 8830then : 8831 enableval=$enable_shared; p=${PACKAGE-default} 8832 case $enableval in 8833 yes) enable_shared=yes ;; 8834 no) enable_shared=no ;; 8835 *) 8836 enable_shared=no 8837 # Look at the argument we got. We use all the common list separators. 8838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8839 for pkg in $enableval; do 8840 IFS=$lt_save_ifs 8841 if test "X$pkg" = "X$p"; then 8842 enable_shared=yes 8843 fi 8844 done 8845 IFS=$lt_save_ifs 8846 ;; 8847 esac 8848else $as_nop 8849 enable_shared=yes 8850fi 8851 8852 8853 8854 8855 8856 8857 8858# Check whether --enable-static was given. 8859if test ${enable_static+y} 8860then : 8861 enableval=$enable_static; p=${PACKAGE-default} 8862 case $enableval in 8863 yes) enable_static=yes ;; 8864 no) enable_static=no ;; 8865 *) 8866 enable_static=no 8867 # Look at the argument we got. We use all the common list separators. 8868 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8869 for pkg in $enableval; do 8870 IFS=$lt_save_ifs 8871 if test "X$pkg" = "X$p"; then 8872 enable_static=yes 8873 fi 8874 done 8875 IFS=$lt_save_ifs 8876 ;; 8877 esac 8878else $as_nop 8879 enable_static=yes 8880fi 8881 8882 8883 8884 8885 8886 8887 8888enable_win32_dll=yes 8889 8890case $host in 8891*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8892 if test -n "$ac_tool_prefix"; then 8893 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8894set dummy ${ac_tool_prefix}as; ac_word=$2 8895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8896printf %s "checking for $ac_word... " >&6; } 8897if test ${ac_cv_prog_AS+y} 8898then : 8899 printf %s "(cached) " >&6 8900else $as_nop 8901 if test -n "$AS"; then 8902 ac_cv_prog_AS="$AS" # Let the user override the test. 8903else 8904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8905for as_dir in $PATH 8906do 8907 IFS=$as_save_IFS 8908 case $as_dir in #((( 8909 '') as_dir=./ ;; 8910 */) ;; 8911 *) as_dir=$as_dir/ ;; 8912 esac 8913 for ac_exec_ext in '' $ac_executable_extensions; do 8914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8915 ac_cv_prog_AS="${ac_tool_prefix}as" 8916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8917 break 2 8918 fi 8919done 8920 done 8921IFS=$as_save_IFS 8922 8923fi 8924fi 8925AS=$ac_cv_prog_AS 8926if test -n "$AS"; then 8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8928printf "%s\n" "$AS" >&6; } 8929else 8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8931printf "%s\n" "no" >&6; } 8932fi 8933 8934 8935fi 8936if test -z "$ac_cv_prog_AS"; then 8937 ac_ct_AS=$AS 8938 # Extract the first word of "as", so it can be a program name with args. 8939set dummy as; ac_word=$2 8940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8941printf %s "checking for $ac_word... " >&6; } 8942if test ${ac_cv_prog_ac_ct_AS+y} 8943then : 8944 printf %s "(cached) " >&6 8945else $as_nop 8946 if test -n "$ac_ct_AS"; then 8947 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8948else 8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8950for as_dir in $PATH 8951do 8952 IFS=$as_save_IFS 8953 case $as_dir in #((( 8954 '') as_dir=./ ;; 8955 */) ;; 8956 *) as_dir=$as_dir/ ;; 8957 esac 8958 for ac_exec_ext in '' $ac_executable_extensions; do 8959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8960 ac_cv_prog_ac_ct_AS="as" 8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8962 break 2 8963 fi 8964done 8965 done 8966IFS=$as_save_IFS 8967 8968fi 8969fi 8970ac_ct_AS=$ac_cv_prog_ac_ct_AS 8971if test -n "$ac_ct_AS"; then 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8973printf "%s\n" "$ac_ct_AS" >&6; } 8974else 8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8976printf "%s\n" "no" >&6; } 8977fi 8978 8979 if test "x$ac_ct_AS" = x; then 8980 AS="false" 8981 else 8982 case $cross_compiling:$ac_tool_warned in 8983yes:) 8984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8985printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8986ac_tool_warned=yes ;; 8987esac 8988 AS=$ac_ct_AS 8989 fi 8990else 8991 AS="$ac_cv_prog_AS" 8992fi 8993 8994 if test -n "$ac_tool_prefix"; then 8995 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8996set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8998printf %s "checking for $ac_word... " >&6; } 8999if test ${ac_cv_prog_DLLTOOL+y} 9000then : 9001 printf %s "(cached) " >&6 9002else $as_nop 9003 if test -n "$DLLTOOL"; then 9004 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9005else 9006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9007for as_dir in $PATH 9008do 9009 IFS=$as_save_IFS 9010 case $as_dir in #((( 9011 '') as_dir=./ ;; 9012 */) ;; 9013 *) as_dir=$as_dir/ ;; 9014 esac 9015 for ac_exec_ext in '' $ac_executable_extensions; do 9016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9017 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9019 break 2 9020 fi 9021done 9022 done 9023IFS=$as_save_IFS 9024 9025fi 9026fi 9027DLLTOOL=$ac_cv_prog_DLLTOOL 9028if test -n "$DLLTOOL"; then 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9030printf "%s\n" "$DLLTOOL" >&6; } 9031else 9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9033printf "%s\n" "no" >&6; } 9034fi 9035 9036 9037fi 9038if test -z "$ac_cv_prog_DLLTOOL"; then 9039 ac_ct_DLLTOOL=$DLLTOOL 9040 # Extract the first word of "dlltool", so it can be a program name with args. 9041set dummy dlltool; ac_word=$2 9042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9043printf %s "checking for $ac_word... " >&6; } 9044if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9045then : 9046 printf %s "(cached) " >&6 9047else $as_nop 9048 if test -n "$ac_ct_DLLTOOL"; then 9049 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9050else 9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9052for as_dir in $PATH 9053do 9054 IFS=$as_save_IFS 9055 case $as_dir in #((( 9056 '') as_dir=./ ;; 9057 */) ;; 9058 *) as_dir=$as_dir/ ;; 9059 esac 9060 for ac_exec_ext in '' $ac_executable_extensions; do 9061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9062 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9064 break 2 9065 fi 9066done 9067 done 9068IFS=$as_save_IFS 9069 9070fi 9071fi 9072ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9073if test -n "$ac_ct_DLLTOOL"; then 9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9075printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9076else 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078printf "%s\n" "no" >&6; } 9079fi 9080 9081 if test "x$ac_ct_DLLTOOL" = x; then 9082 DLLTOOL="false" 9083 else 9084 case $cross_compiling:$ac_tool_warned in 9085yes:) 9086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9087printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9088ac_tool_warned=yes ;; 9089esac 9090 DLLTOOL=$ac_ct_DLLTOOL 9091 fi 9092else 9093 DLLTOOL="$ac_cv_prog_DLLTOOL" 9094fi 9095 9096 if test -n "$ac_tool_prefix"; then 9097 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9098set dummy ${ac_tool_prefix}objdump; ac_word=$2 9099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9100printf %s "checking for $ac_word... " >&6; } 9101if test ${ac_cv_prog_OBJDUMP+y} 9102then : 9103 printf %s "(cached) " >&6 9104else $as_nop 9105 if test -n "$OBJDUMP"; then 9106 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9107else 9108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9109for as_dir in $PATH 9110do 9111 IFS=$as_save_IFS 9112 case $as_dir in #((( 9113 '') as_dir=./ ;; 9114 */) ;; 9115 *) as_dir=$as_dir/ ;; 9116 esac 9117 for ac_exec_ext in '' $ac_executable_extensions; do 9118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9119 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9121 break 2 9122 fi 9123done 9124 done 9125IFS=$as_save_IFS 9126 9127fi 9128fi 9129OBJDUMP=$ac_cv_prog_OBJDUMP 9130if test -n "$OBJDUMP"; then 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9132printf "%s\n" "$OBJDUMP" >&6; } 9133else 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9135printf "%s\n" "no" >&6; } 9136fi 9137 9138 9139fi 9140if test -z "$ac_cv_prog_OBJDUMP"; then 9141 ac_ct_OBJDUMP=$OBJDUMP 9142 # Extract the first word of "objdump", so it can be a program name with args. 9143set dummy objdump; ac_word=$2 9144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9145printf %s "checking for $ac_word... " >&6; } 9146if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9147then : 9148 printf %s "(cached) " >&6 9149else $as_nop 9150 if test -n "$ac_ct_OBJDUMP"; then 9151 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9152else 9153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9154for as_dir in $PATH 9155do 9156 IFS=$as_save_IFS 9157 case $as_dir in #((( 9158 '') as_dir=./ ;; 9159 */) ;; 9160 *) as_dir=$as_dir/ ;; 9161 esac 9162 for ac_exec_ext in '' $ac_executable_extensions; do 9163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9164 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9166 break 2 9167 fi 9168done 9169 done 9170IFS=$as_save_IFS 9171 9172fi 9173fi 9174ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9175if test -n "$ac_ct_OBJDUMP"; then 9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9177printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9178else 9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9180printf "%s\n" "no" >&6; } 9181fi 9182 9183 if test "x$ac_ct_OBJDUMP" = x; then 9184 OBJDUMP="false" 9185 else 9186 case $cross_compiling:$ac_tool_warned in 9187yes:) 9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9189printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9190ac_tool_warned=yes ;; 9191esac 9192 OBJDUMP=$ac_ct_OBJDUMP 9193 fi 9194else 9195 OBJDUMP="$ac_cv_prog_OBJDUMP" 9196fi 9197 9198 ;; 9199esac 9200 9201test -z "$AS" && AS=as 9202 9203 9204 9205 9206 9207test -z "$DLLTOOL" && DLLTOOL=dlltool 9208 9209 9210 9211 9212 9213test -z "$OBJDUMP" && OBJDUMP=objdump 9214 9215 9216 9217 9218 9219 9220 9221 enable_dlopen=no 9222 9223 9224 9225 9226 9227 9228# Check whether --with-pic was given. 9229if test ${with_pic+y} 9230then : 9231 withval=$with_pic; lt_p=${PACKAGE-default} 9232 case $withval in 9233 yes|no) pic_mode=$withval ;; 9234 *) 9235 pic_mode=default 9236 # Look at the argument we got. We use all the common list separators. 9237 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9238 for lt_pkg in $withval; do 9239 IFS=$lt_save_ifs 9240 if test "X$lt_pkg" = "X$lt_p"; then 9241 pic_mode=yes 9242 fi 9243 done 9244 IFS=$lt_save_ifs 9245 ;; 9246 esac 9247else $as_nop 9248 pic_mode=default 9249fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 # Check whether --enable-fast-install was given. 9259if test ${enable_fast_install+y} 9260then : 9261 enableval=$enable_fast_install; p=${PACKAGE-default} 9262 case $enableval in 9263 yes) enable_fast_install=yes ;; 9264 no) enable_fast_install=no ;; 9265 *) 9266 enable_fast_install=no 9267 # Look at the argument we got. We use all the common list separators. 9268 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9269 for pkg in $enableval; do 9270 IFS=$lt_save_ifs 9271 if test "X$pkg" = "X$p"; then 9272 enable_fast_install=yes 9273 fi 9274 done 9275 IFS=$lt_save_ifs 9276 ;; 9277 esac 9278else $as_nop 9279 enable_fast_install=yes 9280fi 9281 9282 9283 9284 9285 9286 9287 9288 9289 shared_archive_member_spec= 9290case $host,$enable_shared in 9291power*-*-aix[5-9]*,yes) 9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9293printf %s "checking which variant of shared library versioning to provide... " >&6; } 9294 9295# Check whether --with-aix-soname was given. 9296if test ${with_aix_soname+y} 9297then : 9298 withval=$with_aix_soname; case $withval in 9299 aix|svr4|both) 9300 ;; 9301 *) 9302 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9303 ;; 9304 esac 9305 lt_cv_with_aix_soname=$with_aix_soname 9306else $as_nop 9307 if test ${lt_cv_with_aix_soname+y} 9308then : 9309 printf %s "(cached) " >&6 9310else $as_nop 9311 lt_cv_with_aix_soname=aix 9312fi 9313 9314 with_aix_soname=$lt_cv_with_aix_soname 9315fi 9316 9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9318printf "%s\n" "$with_aix_soname" >&6; } 9319 if test aix != "$with_aix_soname"; then 9320 # For the AIX way of multilib, we name the shared archive member 9321 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9322 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9323 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9324 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9325 if test 64 = "${OBJECT_MODE-32}"; then 9326 shared_archive_member_spec=shr_64 9327 else 9328 shared_archive_member_spec=shr 9329 fi 9330 fi 9331 ;; 9332*) 9333 with_aix_soname=aix 9334 ;; 9335esac 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346# This can be used to rebuild libtool when needed 9347LIBTOOL_DEPS=$ltmain 9348 9349# Always use our own libtool. 9350LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381test -z "$LN_S" && LN_S="ln -s" 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396if test -n "${ZSH_VERSION+set}"; then 9397 setopt NO_GLOB_SUBST 9398fi 9399 9400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9401printf %s "checking for objdir... " >&6; } 9402if test ${lt_cv_objdir+y} 9403then : 9404 printf %s "(cached) " >&6 9405else $as_nop 9406 rm -f .libs 2>/dev/null 9407mkdir .libs 2>/dev/null 9408if test -d .libs; then 9409 lt_cv_objdir=.libs 9410else 9411 # MS-DOS does not allow filenames that begin with a dot. 9412 lt_cv_objdir=_libs 9413fi 9414rmdir .libs 2>/dev/null 9415fi 9416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9417printf "%s\n" "$lt_cv_objdir" >&6; } 9418objdir=$lt_cv_objdir 9419 9420 9421 9422 9423 9424printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9425 9426 9427 9428 9429case $host_os in 9430aix3*) 9431 # AIX sometimes has problems with the GCC collect2 program. For some 9432 # reason, if we set the COLLECT_NAMES environment variable, the problems 9433 # vanish in a puff of smoke. 9434 if test set != "${COLLECT_NAMES+set}"; then 9435 COLLECT_NAMES= 9436 export COLLECT_NAMES 9437 fi 9438 ;; 9439esac 9440 9441# Global variables: 9442ofile=libtool 9443can_build_shared=yes 9444 9445# All known linkers require a '.a' archive for static linking (except MSVC and 9446# ICC, which need '.lib'). 9447libext=a 9448 9449with_gnu_ld=$lt_cv_prog_gnu_ld 9450 9451old_CC=$CC 9452old_CFLAGS=$CFLAGS 9453 9454# Set sane defaults for various variables 9455test -z "$CC" && CC=cc 9456test -z "$LTCC" && LTCC=$CC 9457test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9458test -z "$LD" && LD=ld 9459test -z "$ac_objext" && ac_objext=o 9460 9461func_cc_basename $compiler 9462cc_basename=$func_cc_basename_result 9463 9464 9465# Only perform the check for file, if the check method requires it 9466test -z "$MAGIC_CMD" && MAGIC_CMD=file 9467case $deplibs_check_method in 9468file_magic*) 9469 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9471printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9472if test ${lt_cv_path_MAGIC_CMD+y} 9473then : 9474 printf %s "(cached) " >&6 9475else $as_nop 9476 case $MAGIC_CMD in 9477[\\/*] | ?:[\\/]*) 9478 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9479 ;; 9480*) 9481 lt_save_MAGIC_CMD=$MAGIC_CMD 9482 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9484 for ac_dir in $ac_dummy; do 9485 IFS=$lt_save_ifs 9486 test -z "$ac_dir" && ac_dir=. 9487 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9488 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9489 if test -n "$file_magic_test_file"; then 9490 case $deplibs_check_method in 9491 "file_magic "*) 9492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9493 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9495 $EGREP "$file_magic_regex" > /dev/null; then 9496 : 9497 else 9498 cat <<_LT_EOF 1>&2 9499 9500*** Warning: the command libtool uses to detect shared libraries, 9501*** $file_magic_cmd, produces output that libtool cannot recognize. 9502*** The result is that libtool may fail to recognize shared libraries 9503*** as such. This will affect the creation of libtool libraries that 9504*** depend on shared libraries, but programs linked with such libtool 9505*** libraries will work regardless of this problem. Nevertheless, you 9506*** may want to report the problem to your system manager and/or to 9507*** bug-libtool@gnu.org 9508 9509_LT_EOF 9510 fi ;; 9511 esac 9512 fi 9513 break 9514 fi 9515 done 9516 IFS=$lt_save_ifs 9517 MAGIC_CMD=$lt_save_MAGIC_CMD 9518 ;; 9519esac 9520fi 9521 9522MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9523if test -n "$MAGIC_CMD"; then 9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9525printf "%s\n" "$MAGIC_CMD" >&6; } 9526else 9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9528printf "%s\n" "no" >&6; } 9529fi 9530 9531 9532 9533 9534 9535if test -z "$lt_cv_path_MAGIC_CMD"; then 9536 if test -n "$ac_tool_prefix"; then 9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9538printf %s "checking for file... " >&6; } 9539if test ${lt_cv_path_MAGIC_CMD+y} 9540then : 9541 printf %s "(cached) " >&6 9542else $as_nop 9543 case $MAGIC_CMD in 9544[\\/*] | ?:[\\/]*) 9545 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9546 ;; 9547*) 9548 lt_save_MAGIC_CMD=$MAGIC_CMD 9549 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9550 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9551 for ac_dir in $ac_dummy; do 9552 IFS=$lt_save_ifs 9553 test -z "$ac_dir" && ac_dir=. 9554 if test -f "$ac_dir/file"; then 9555 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9556 if test -n "$file_magic_test_file"; then 9557 case $deplibs_check_method in 9558 "file_magic "*) 9559 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9560 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9561 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9562 $EGREP "$file_magic_regex" > /dev/null; then 9563 : 9564 else 9565 cat <<_LT_EOF 1>&2 9566 9567*** Warning: the command libtool uses to detect shared libraries, 9568*** $file_magic_cmd, produces output that libtool cannot recognize. 9569*** The result is that libtool may fail to recognize shared libraries 9570*** as such. This will affect the creation of libtool libraries that 9571*** depend on shared libraries, but programs linked with such libtool 9572*** libraries will work regardless of this problem. Nevertheless, you 9573*** may want to report the problem to your system manager and/or to 9574*** bug-libtool@gnu.org 9575 9576_LT_EOF 9577 fi ;; 9578 esac 9579 fi 9580 break 9581 fi 9582 done 9583 IFS=$lt_save_ifs 9584 MAGIC_CMD=$lt_save_MAGIC_CMD 9585 ;; 9586esac 9587fi 9588 9589MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9590if test -n "$MAGIC_CMD"; then 9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9592printf "%s\n" "$MAGIC_CMD" >&6; } 9593else 9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9595printf "%s\n" "no" >&6; } 9596fi 9597 9598 9599 else 9600 MAGIC_CMD=: 9601 fi 9602fi 9603 9604 fi 9605 ;; 9606esac 9607 9608# Use C for the default configuration in the libtool script 9609 9610lt_save_CC=$CC 9611ac_ext=c 9612ac_cpp='$CPP $CPPFLAGS' 9613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9615ac_compiler_gnu=$ac_cv_c_compiler_gnu 9616 9617 9618# Source file extension for C test sources. 9619ac_ext=c 9620 9621# Object file extension for compiled C test sources. 9622objext=o 9623objext=$objext 9624 9625# Code to be used in simple compile tests 9626lt_simple_compile_test_code="int some_variable = 0;" 9627 9628# Code to be used in simple link tests 9629lt_simple_link_test_code='int main(){return(0);}' 9630 9631 9632 9633 9634 9635 9636 9637# If no C compiler was specified, use CC. 9638LTCC=${LTCC-"$CC"} 9639 9640# If no C compiler flags were specified, use CFLAGS. 9641LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9642 9643# Allow CC to be a program name with arguments. 9644compiler=$CC 9645 9646# Save the default compiler, since it gets overwritten when the other 9647# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9648compiler_DEFAULT=$CC 9649 9650# save warnings/boilerplate of simple test code 9651ac_outfile=conftest.$ac_objext 9652echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9653eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9654_lt_compiler_boilerplate=`cat conftest.err` 9655$RM conftest* 9656 9657ac_outfile=conftest.$ac_objext 9658echo "$lt_simple_link_test_code" >conftest.$ac_ext 9659eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9660_lt_linker_boilerplate=`cat conftest.err` 9661$RM -r conftest* 9662 9663 9664## CAVEAT EMPTOR: 9665## There is no encapsulation within the following macros, do not change 9666## the running order or otherwise move them around unless you know exactly 9667## what you are doing... 9668if test -n "$compiler"; then 9669 9670lt_prog_compiler_no_builtin_flag= 9671 9672if test yes = "$GCC"; then 9673 case $cc_basename in 9674 nvcc*) 9675 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9676 *) 9677 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9678 esac 9679 9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9681printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9682if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9683then : 9684 printf %s "(cached) " >&6 9685else $as_nop 9686 lt_cv_prog_compiler_rtti_exceptions=no 9687 ac_outfile=conftest.$ac_objext 9688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9689 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9690 # Insert the option either (1) after the last *FLAGS variable, or 9691 # (2) before a word containing "conftest.", or (3) at the end. 9692 # Note that $ac_compile itself does not contain backslashes and begins 9693 # with a dollar sign (not a hyphen), so the echo should work correctly. 9694 # The option is referenced via a variable to avoid confusing sed. 9695 lt_compile=`echo "$ac_compile" | $SED \ 9696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9698 -e 's:$: $lt_compiler_flag:'` 9699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9700 (eval "$lt_compile" 2>conftest.err) 9701 ac_status=$? 9702 cat conftest.err >&5 9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9704 if (exit $ac_status) && test -s "$ac_outfile"; then 9705 # The compiler can only warn and ignore the option if not recognized 9706 # So say no if there are warnings other than the usual output. 9707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9710 lt_cv_prog_compiler_rtti_exceptions=yes 9711 fi 9712 fi 9713 $RM conftest* 9714 9715fi 9716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9717printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9718 9719if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9720 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9721else 9722 : 9723fi 9724 9725fi 9726 9727 9728 9729 9730 9731 9732 lt_prog_compiler_wl= 9733lt_prog_compiler_pic= 9734lt_prog_compiler_static= 9735 9736 9737 if test yes = "$GCC"; then 9738 lt_prog_compiler_wl='-Wl,' 9739 lt_prog_compiler_static='-static' 9740 9741 case $host_os in 9742 aix*) 9743 # All AIX code is PIC. 9744 if test ia64 = "$host_cpu"; then 9745 # AIX 5 now supports IA64 processor 9746 lt_prog_compiler_static='-Bstatic' 9747 fi 9748 lt_prog_compiler_pic='-fPIC' 9749 ;; 9750 9751 amigaos*) 9752 case $host_cpu in 9753 powerpc) 9754 # see comment about AmigaOS4 .so support 9755 lt_prog_compiler_pic='-fPIC' 9756 ;; 9757 m68k) 9758 # FIXME: we need at least 68020 code to build shared libraries, but 9759 # adding the '-m68020' flag to GCC prevents building anything better, 9760 # like '-m68040'. 9761 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9762 ;; 9763 esac 9764 ;; 9765 9766 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9767 # PIC is the default for these OSes. 9768 ;; 9769 9770 mingw* | cygwin* | pw32* | os2* | cegcc*) 9771 # This hack is so that the source file can tell whether it is being 9772 # built for inclusion in a dll (and should export symbols for example). 9773 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9774 # (--disable-auto-import) libraries 9775 lt_prog_compiler_pic='-DDLL_EXPORT' 9776 case $host_os in 9777 os2*) 9778 lt_prog_compiler_static='$wl-static' 9779 ;; 9780 esac 9781 ;; 9782 9783 darwin* | rhapsody*) 9784 # PIC is the default on this platform 9785 # Common symbols not allowed in MH_DYLIB files 9786 lt_prog_compiler_pic='-fno-common' 9787 ;; 9788 9789 haiku*) 9790 # PIC is the default for Haiku. 9791 # The "-static" flag exists, but is broken. 9792 lt_prog_compiler_static= 9793 ;; 9794 9795 hpux*) 9796 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9797 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9798 # sets the default TLS model and affects inlining. 9799 case $host_cpu in 9800 hppa*64*) 9801 # +Z the default 9802 ;; 9803 *) 9804 lt_prog_compiler_pic='-fPIC' 9805 ;; 9806 esac 9807 ;; 9808 9809 interix[3-9]*) 9810 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9811 # Instead, we relocate shared libraries at runtime. 9812 ;; 9813 9814 msdosdjgpp*) 9815 # Just because we use GCC doesn't mean we suddenly get shared libraries 9816 # on systems that don't support them. 9817 lt_prog_compiler_can_build_shared=no 9818 enable_shared=no 9819 ;; 9820 9821 *nto* | *qnx*) 9822 # QNX uses GNU C++, but need to define -shared option too, otherwise 9823 # it will coredump. 9824 lt_prog_compiler_pic='-fPIC -shared' 9825 ;; 9826 9827 sysv4*MP*) 9828 if test -d /usr/nec; then 9829 lt_prog_compiler_pic=-Kconform_pic 9830 fi 9831 ;; 9832 9833 *) 9834 lt_prog_compiler_pic='-fPIC' 9835 ;; 9836 esac 9837 9838 case $cc_basename in 9839 nvcc*) # Cuda Compiler Driver 2.2 9840 lt_prog_compiler_wl='-Xlinker ' 9841 if test -n "$lt_prog_compiler_pic"; then 9842 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9843 fi 9844 ;; 9845 esac 9846 else 9847 # PORTME Check for flag to pass linker flags through the system compiler. 9848 case $host_os in 9849 aix*) 9850 lt_prog_compiler_wl='-Wl,' 9851 if test ia64 = "$host_cpu"; then 9852 # AIX 5 now supports IA64 processor 9853 lt_prog_compiler_static='-Bstatic' 9854 else 9855 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9856 fi 9857 ;; 9858 9859 darwin* | rhapsody*) 9860 # PIC is the default on this platform 9861 # Common symbols not allowed in MH_DYLIB files 9862 lt_prog_compiler_pic='-fno-common' 9863 case $cc_basename in 9864 nagfor*) 9865 # NAG Fortran compiler 9866 lt_prog_compiler_wl='-Wl,-Wl,,' 9867 lt_prog_compiler_pic='-PIC' 9868 lt_prog_compiler_static='-Bstatic' 9869 ;; 9870 esac 9871 ;; 9872 9873 mingw* | cygwin* | pw32* | os2* | cegcc*) 9874 # This hack is so that the source file can tell whether it is being 9875 # built for inclusion in a dll (and should export symbols for example). 9876 lt_prog_compiler_pic='-DDLL_EXPORT' 9877 case $host_os in 9878 os2*) 9879 lt_prog_compiler_static='$wl-static' 9880 ;; 9881 esac 9882 ;; 9883 9884 hpux9* | hpux10* | hpux11*) 9885 lt_prog_compiler_wl='-Wl,' 9886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9887 # not for PA HP-UX. 9888 case $host_cpu in 9889 hppa*64*|ia64*) 9890 # +Z the default 9891 ;; 9892 *) 9893 lt_prog_compiler_pic='+Z' 9894 ;; 9895 esac 9896 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9897 lt_prog_compiler_static='$wl-a ${wl}archive' 9898 ;; 9899 9900 irix5* | irix6* | nonstopux*) 9901 lt_prog_compiler_wl='-Wl,' 9902 # PIC (with -KPIC) is the default. 9903 lt_prog_compiler_static='-non_shared' 9904 ;; 9905 9906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9907 case $cc_basename in 9908 # old Intel for x86_64, which still supported -KPIC. 9909 ecc*) 9910 lt_prog_compiler_wl='-Wl,' 9911 lt_prog_compiler_pic='-KPIC' 9912 lt_prog_compiler_static='-static' 9913 ;; 9914 # icc used to be incompatible with GCC. 9915 # ICC 10 doesn't accept -KPIC any more. 9916 icc* | ifort*) 9917 lt_prog_compiler_wl='-Wl,' 9918 lt_prog_compiler_pic='-fPIC' 9919 lt_prog_compiler_static='-static' 9920 ;; 9921 # Lahey Fortran 8.1. 9922 lf95*) 9923 lt_prog_compiler_wl='-Wl,' 9924 lt_prog_compiler_pic='--shared' 9925 lt_prog_compiler_static='--static' 9926 ;; 9927 nagfor*) 9928 # NAG Fortran compiler 9929 lt_prog_compiler_wl='-Wl,-Wl,,' 9930 lt_prog_compiler_pic='-PIC' 9931 lt_prog_compiler_static='-Bstatic' 9932 ;; 9933 tcc*) 9934 # Fabrice Bellard et al's Tiny C Compiler 9935 lt_prog_compiler_wl='-Wl,' 9936 lt_prog_compiler_pic='-fPIC' 9937 lt_prog_compiler_static='-static' 9938 ;; 9939 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9940 # Portland Group compilers (*not* the Pentium gcc compiler, 9941 # which looks to be a dead project) 9942 lt_prog_compiler_wl='-Wl,' 9943 lt_prog_compiler_pic='-fpic' 9944 lt_prog_compiler_static='-Bstatic' 9945 ;; 9946 ccc*) 9947 lt_prog_compiler_wl='-Wl,' 9948 # All Alpha code is PIC. 9949 lt_prog_compiler_static='-non_shared' 9950 ;; 9951 xl* | bgxl* | bgf* | mpixl*) 9952 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9953 lt_prog_compiler_wl='-Wl,' 9954 lt_prog_compiler_pic='-qpic' 9955 lt_prog_compiler_static='-qstaticlink' 9956 ;; 9957 *) 9958 case `$CC -V 2>&1 | $SED 5q` in 9959 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9960 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9961 lt_prog_compiler_pic='-KPIC' 9962 lt_prog_compiler_static='-Bstatic' 9963 lt_prog_compiler_wl='' 9964 ;; 9965 *Sun\ F* | *Sun*Fortran*) 9966 lt_prog_compiler_pic='-KPIC' 9967 lt_prog_compiler_static='-Bstatic' 9968 lt_prog_compiler_wl='-Qoption ld ' 9969 ;; 9970 *Sun\ C*) 9971 # Sun C 5.9 9972 lt_prog_compiler_pic='-KPIC' 9973 lt_prog_compiler_static='-Bstatic' 9974 lt_prog_compiler_wl='-Wl,' 9975 ;; 9976 *Intel*\ [CF]*Compiler*) 9977 lt_prog_compiler_wl='-Wl,' 9978 lt_prog_compiler_pic='-fPIC' 9979 lt_prog_compiler_static='-static' 9980 ;; 9981 *Portland\ Group*) 9982 lt_prog_compiler_wl='-Wl,' 9983 lt_prog_compiler_pic='-fpic' 9984 lt_prog_compiler_static='-Bstatic' 9985 ;; 9986 esac 9987 ;; 9988 esac 9989 ;; 9990 9991 newsos6) 9992 lt_prog_compiler_pic='-KPIC' 9993 lt_prog_compiler_static='-Bstatic' 9994 ;; 9995 9996 *nto* | *qnx*) 9997 # QNX uses GNU C++, but need to define -shared option too, otherwise 9998 # it will coredump. 9999 lt_prog_compiler_pic='-fPIC -shared' 10000 ;; 10001 10002 osf3* | osf4* | osf5*) 10003 lt_prog_compiler_wl='-Wl,' 10004 # All OSF/1 code is PIC. 10005 lt_prog_compiler_static='-non_shared' 10006 ;; 10007 10008 rdos*) 10009 lt_prog_compiler_static='-non_shared' 10010 ;; 10011 10012 solaris*) 10013 lt_prog_compiler_pic='-KPIC' 10014 lt_prog_compiler_static='-Bstatic' 10015 case $cc_basename in 10016 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10017 lt_prog_compiler_wl='-Qoption ld ';; 10018 *) 10019 lt_prog_compiler_wl='-Wl,';; 10020 esac 10021 ;; 10022 10023 sunos4*) 10024 lt_prog_compiler_wl='-Qoption ld ' 10025 lt_prog_compiler_pic='-PIC' 10026 lt_prog_compiler_static='-Bstatic' 10027 ;; 10028 10029 sysv4 | sysv4.2uw2* | sysv4.3*) 10030 lt_prog_compiler_wl='-Wl,' 10031 lt_prog_compiler_pic='-KPIC' 10032 lt_prog_compiler_static='-Bstatic' 10033 ;; 10034 10035 sysv4*MP*) 10036 if test -d /usr/nec; then 10037 lt_prog_compiler_pic='-Kconform_pic' 10038 lt_prog_compiler_static='-Bstatic' 10039 fi 10040 ;; 10041 10042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10043 lt_prog_compiler_wl='-Wl,' 10044 lt_prog_compiler_pic='-KPIC' 10045 lt_prog_compiler_static='-Bstatic' 10046 ;; 10047 10048 unicos*) 10049 lt_prog_compiler_wl='-Wl,' 10050 lt_prog_compiler_can_build_shared=no 10051 ;; 10052 10053 uts4*) 10054 lt_prog_compiler_pic='-pic' 10055 lt_prog_compiler_static='-Bstatic' 10056 ;; 10057 10058 *) 10059 lt_prog_compiler_can_build_shared=no 10060 ;; 10061 esac 10062 fi 10063 10064case $host_os in 10065 # For platforms that do not support PIC, -DPIC is meaningless: 10066 *djgpp*) 10067 lt_prog_compiler_pic= 10068 ;; 10069 *) 10070 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10071 ;; 10072esac 10073 10074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10075printf %s "checking for $compiler option to produce PIC... " >&6; } 10076if test ${lt_cv_prog_compiler_pic+y} 10077then : 10078 printf %s "(cached) " >&6 10079else $as_nop 10080 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10081fi 10082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10083printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10084lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10085 10086# 10087# Check to make sure the PIC flag actually works. 10088# 10089if test -n "$lt_prog_compiler_pic"; then 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10091printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10092if test ${lt_cv_prog_compiler_pic_works+y} 10093then : 10094 printf %s "(cached) " >&6 10095else $as_nop 10096 lt_cv_prog_compiler_pic_works=no 10097 ac_outfile=conftest.$ac_objext 10098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10100 # Insert the option either (1) after the last *FLAGS variable, or 10101 # (2) before a word containing "conftest.", or (3) at the end. 10102 # Note that $ac_compile itself does not contain backslashes and begins 10103 # with a dollar sign (not a hyphen), so the echo should work correctly. 10104 # The option is referenced via a variable to avoid confusing sed. 10105 lt_compile=`echo "$ac_compile" | $SED \ 10106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10108 -e 's:$: $lt_compiler_flag:'` 10109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10110 (eval "$lt_compile" 2>conftest.err) 10111 ac_status=$? 10112 cat conftest.err >&5 10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10114 if (exit $ac_status) && test -s "$ac_outfile"; then 10115 # The compiler can only warn and ignore the option if not recognized 10116 # So say no if there are warnings other than the usual output. 10117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10120 lt_cv_prog_compiler_pic_works=yes 10121 fi 10122 fi 10123 $RM conftest* 10124 10125fi 10126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10127printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10128 10129if test yes = "$lt_cv_prog_compiler_pic_works"; then 10130 case $lt_prog_compiler_pic in 10131 "" | " "*) ;; 10132 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10133 esac 10134else 10135 lt_prog_compiler_pic= 10136 lt_prog_compiler_can_build_shared=no 10137fi 10138 10139fi 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151# 10152# Check to make sure the static flag actually works. 10153# 10154wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10156printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10157if test ${lt_cv_prog_compiler_static_works+y} 10158then : 10159 printf %s "(cached) " >&6 10160else $as_nop 10161 lt_cv_prog_compiler_static_works=no 10162 save_LDFLAGS=$LDFLAGS 10163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10164 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10166 # The linker can only warn and ignore the option if not recognized 10167 # So say no if there are warnings 10168 if test -s conftest.err; then 10169 # Append any errors to the config.log. 10170 cat conftest.err 1>&5 10171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10173 if diff conftest.exp conftest.er2 >/dev/null; then 10174 lt_cv_prog_compiler_static_works=yes 10175 fi 10176 else 10177 lt_cv_prog_compiler_static_works=yes 10178 fi 10179 fi 10180 $RM -r conftest* 10181 LDFLAGS=$save_LDFLAGS 10182 10183fi 10184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10185printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10186 10187if test yes = "$lt_cv_prog_compiler_static_works"; then 10188 : 10189else 10190 lt_prog_compiler_static= 10191fi 10192 10193 10194 10195 10196 10197 10198 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10200printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10201if test ${lt_cv_prog_compiler_c_o+y} 10202then : 10203 printf %s "(cached) " >&6 10204else $as_nop 10205 lt_cv_prog_compiler_c_o=no 10206 $RM -r conftest 2>/dev/null 10207 mkdir conftest 10208 cd conftest 10209 mkdir out 10210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10211 10212 lt_compiler_flag="-o out/conftest2.$ac_objext" 10213 # Insert the option either (1) after the last *FLAGS variable, or 10214 # (2) before a word containing "conftest.", or (3) at the end. 10215 # Note that $ac_compile itself does not contain backslashes and begins 10216 # with a dollar sign (not a hyphen), so the echo should work correctly. 10217 lt_compile=`echo "$ac_compile" | $SED \ 10218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10220 -e 's:$: $lt_compiler_flag:'` 10221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10222 (eval "$lt_compile" 2>out/conftest.err) 10223 ac_status=$? 10224 cat out/conftest.err >&5 10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10226 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10227 then 10228 # The compiler can only warn and ignore the option if not recognized 10229 # So say no if there are warnings 10230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10233 lt_cv_prog_compiler_c_o=yes 10234 fi 10235 fi 10236 chmod u+w . 2>&5 10237 $RM conftest* 10238 # SGI C++ compiler will create directory out/ii_files/ for 10239 # template instantiation 10240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10241 $RM out/* && rmdir out 10242 cd .. 10243 $RM -r conftest 10244 $RM conftest* 10245 10246fi 10247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10248printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10249 10250 10251 10252 10253 10254 10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10256printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10257if test ${lt_cv_prog_compiler_c_o+y} 10258then : 10259 printf %s "(cached) " >&6 10260else $as_nop 10261 lt_cv_prog_compiler_c_o=no 10262 $RM -r conftest 2>/dev/null 10263 mkdir conftest 10264 cd conftest 10265 mkdir out 10266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10267 10268 lt_compiler_flag="-o out/conftest2.$ac_objext" 10269 # Insert the option either (1) after the last *FLAGS variable, or 10270 # (2) before a word containing "conftest.", or (3) at the end. 10271 # Note that $ac_compile itself does not contain backslashes and begins 10272 # with a dollar sign (not a hyphen), so the echo should work correctly. 10273 lt_compile=`echo "$ac_compile" | $SED \ 10274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10276 -e 's:$: $lt_compiler_flag:'` 10277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10278 (eval "$lt_compile" 2>out/conftest.err) 10279 ac_status=$? 10280 cat out/conftest.err >&5 10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10283 then 10284 # The compiler can only warn and ignore the option if not recognized 10285 # So say no if there are warnings 10286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10289 lt_cv_prog_compiler_c_o=yes 10290 fi 10291 fi 10292 chmod u+w . 2>&5 10293 $RM conftest* 10294 # SGI C++ compiler will create directory out/ii_files/ for 10295 # template instantiation 10296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10297 $RM out/* && rmdir out 10298 cd .. 10299 $RM -r conftest 10300 $RM conftest* 10301 10302fi 10303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10304printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10305 10306 10307 10308 10309hard_links=nottested 10310if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10311 # do not overwrite the value of need_locks provided by the user 10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10313printf %s "checking if we can lock with hard links... " >&6; } 10314 hard_links=yes 10315 $RM conftest* 10316 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10317 touch conftest.a 10318 ln conftest.a conftest.b 2>&5 || hard_links=no 10319 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10321printf "%s\n" "$hard_links" >&6; } 10322 if test no = "$hard_links"; then 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10324printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10325 need_locks=warn 10326 fi 10327else 10328 need_locks=no 10329fi 10330 10331 10332 10333 10334 10335 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10337printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10338 10339 runpath_var= 10340 allow_undefined_flag= 10341 always_export_symbols=no 10342 archive_cmds= 10343 archive_expsym_cmds= 10344 compiler_needs_object=no 10345 enable_shared_with_static_runtimes=no 10346 export_dynamic_flag_spec= 10347 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10348 hardcode_automatic=no 10349 hardcode_direct=no 10350 hardcode_direct_absolute=no 10351 hardcode_libdir_flag_spec= 10352 hardcode_libdir_separator= 10353 hardcode_minus_L=no 10354 hardcode_shlibpath_var=unsupported 10355 inherit_rpath=no 10356 link_all_deplibs=unknown 10357 module_cmds= 10358 module_expsym_cmds= 10359 old_archive_from_new_cmds= 10360 old_archive_from_expsyms_cmds= 10361 thread_safe_flag_spec= 10362 whole_archive_flag_spec= 10363 # include_expsyms should be a list of space-separated symbols to be *always* 10364 # included in the symbol list 10365 include_expsyms= 10366 # exclude_expsyms can be an extended regexp of symbols to exclude 10367 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10368 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10369 # as well as any symbol that contains 'd'. 10370 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10372 # platforms (ab)use it in PIC code, but their linkers get confused if 10373 # the symbol is explicitly referenced. Since portable code cannot 10374 # rely on this symbol name, it's probably fine to never include it in 10375 # preloaded symbol tables. 10376 # Exclude shared library initialization/finalization symbols. 10377 extract_expsyms_cmds= 10378 10379 case $host_os in 10380 cygwin* | mingw* | pw32* | cegcc*) 10381 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10382 # When not using gcc, we currently assume that we are using 10383 # Microsoft Visual C++ or Intel C++ Compiler. 10384 if test yes != "$GCC"; then 10385 with_gnu_ld=no 10386 fi 10387 ;; 10388 interix*) 10389 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10390 with_gnu_ld=yes 10391 ;; 10392 openbsd* | bitrig*) 10393 with_gnu_ld=no 10394 ;; 10395 esac 10396 10397 ld_shlibs=yes 10398 10399 # On some targets, GNU ld is compatible enough with the native linker 10400 # that we're better off using the native interface for both. 10401 lt_use_gnu_ld_interface=no 10402 if test yes = "$with_gnu_ld"; then 10403 case $host_os in 10404 aix*) 10405 # The AIX port of GNU ld has always aspired to compatibility 10406 # with the native linker. However, as the warning in the GNU ld 10407 # block says, versions before 2.19.5* couldn't really create working 10408 # shared libraries, regardless of the interface used. 10409 case `$LD -v 2>&1` in 10410 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10411 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10412 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10413 *) 10414 lt_use_gnu_ld_interface=yes 10415 ;; 10416 esac 10417 ;; 10418 *) 10419 lt_use_gnu_ld_interface=yes 10420 ;; 10421 esac 10422 fi 10423 10424 if test yes = "$lt_use_gnu_ld_interface"; then 10425 # If archive_cmds runs LD, not CC, wlarc should be empty 10426 wlarc='$wl' 10427 10428 # Set some defaults for GNU ld with shared library support. These 10429 # are reset later if shared libraries are not supported. Putting them 10430 # here allows them to be overridden if necessary. 10431 runpath_var=LD_RUN_PATH 10432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10433 export_dynamic_flag_spec='$wl--export-dynamic' 10434 # ancient GNU ld didn't support --whole-archive et. al. 10435 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10436 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10437 else 10438 whole_archive_flag_spec= 10439 fi 10440 supports_anon_versioning=no 10441 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10442 *GNU\ gold*) supports_anon_versioning=yes ;; 10443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10446 *\ 2.11.*) ;; # other 2.11 versions 10447 *) supports_anon_versioning=yes ;; 10448 esac 10449 10450 # See if GNU ld supports shared libraries. 10451 case $host_os in 10452 aix[3-9]*) 10453 # On AIX/PPC, the GNU linker is very broken 10454 if test ia64 != "$host_cpu"; then 10455 ld_shlibs=no 10456 cat <<_LT_EOF 1>&2 10457 10458*** Warning: the GNU linker, at least up to release 2.19, is reported 10459*** to be unable to reliably create shared libraries on AIX. 10460*** Therefore, libtool is disabling shared libraries support. If you 10461*** really care for shared libraries, you may want to install binutils 10462*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10463*** You will then need to restart the configuration process. 10464 10465_LT_EOF 10466 fi 10467 ;; 10468 10469 amigaos*) 10470 case $host_cpu in 10471 powerpc) 10472 # see comment about AmigaOS4 .so support 10473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10474 archive_expsym_cmds='' 10475 ;; 10476 m68k) 10477 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)' 10478 hardcode_libdir_flag_spec='-L$libdir' 10479 hardcode_minus_L=yes 10480 ;; 10481 esac 10482 ;; 10483 10484 beos*) 10485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10486 allow_undefined_flag=unsupported 10487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10488 # support --undefined. This deserves some investigation. FIXME 10489 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10490 else 10491 ld_shlibs=no 10492 fi 10493 ;; 10494 10495 cygwin* | mingw* | pw32* | cegcc*) 10496 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10497 # as there is no search path for DLLs. 10498 hardcode_libdir_flag_spec='-L$libdir' 10499 export_dynamic_flag_spec='$wl--export-all-symbols' 10500 allow_undefined_flag=unsupported 10501 always_export_symbols=no 10502 enable_shared_with_static_runtimes=yes 10503 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' 10504 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10505 10506 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10508 # If the export-symbols file already is a .def file, use it as 10509 # is; otherwise, prepend EXPORTS... 10510 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10511 cp $export_symbols $output_objdir/$soname.def; 10512 else 10513 echo EXPORTS > $output_objdir/$soname.def; 10514 cat $export_symbols >> $output_objdir/$soname.def; 10515 fi~ 10516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10517 else 10518 ld_shlibs=no 10519 fi 10520 ;; 10521 10522 haiku*) 10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10524 link_all_deplibs=yes 10525 ;; 10526 10527 os2*) 10528 hardcode_libdir_flag_spec='-L$libdir' 10529 hardcode_minus_L=yes 10530 allow_undefined_flag=unsupported 10531 shrext_cmds=.dll 10532 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10533 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10534 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10535 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10536 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10537 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10538 emximp -o $lib $output_objdir/$libname.def' 10539 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10540 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10541 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10542 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10543 prefix_cmds="$SED"~ 10544 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10545 prefix_cmds="$prefix_cmds -e 1d"; 10546 fi~ 10547 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10548 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10549 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10550 emximp -o $lib $output_objdir/$libname.def' 10551 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10552 enable_shared_with_static_runtimes=yes 10553 file_list_spec='@' 10554 ;; 10555 10556 interix[3-9]*) 10557 hardcode_direct=no 10558 hardcode_shlibpath_var=no 10559 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10560 export_dynamic_flag_spec='$wl-E' 10561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10562 # Instead, shared libraries are loaded at an image base (0x10000000 by 10563 # default) and relocated if they conflict, which is a slow very memory 10564 # consuming and fragmenting process. To avoid this, we pick a random, 10565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10566 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10568 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' 10569 ;; 10570 10571 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10572 tmp_diet=no 10573 if test linux-dietlibc = "$host_os"; then 10574 case $cc_basename in 10575 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10576 esac 10577 fi 10578 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10579 && test no = "$tmp_diet" 10580 then 10581 tmp_addflag=' $pic_flag' 10582 tmp_sharedflag='-shared' 10583 case $cc_basename,$host_cpu in 10584 pgcc*) # Portland Group C compiler 10585 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' 10586 tmp_addflag=' $pic_flag' 10587 ;; 10588 pgf77* | pgf90* | pgf95* | pgfortran*) 10589 # Portland Group f77 and f90 compilers 10590 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' 10591 tmp_addflag=' $pic_flag -Mnomain' ;; 10592 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10593 tmp_addflag=' -i_dynamic' ;; 10594 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10595 tmp_addflag=' -i_dynamic -nofor_main' ;; 10596 ifc* | ifort*) # Intel Fortran compiler 10597 tmp_addflag=' -nofor_main' ;; 10598 lf95*) # Lahey Fortran 8.1 10599 whole_archive_flag_spec= 10600 tmp_sharedflag='--shared' ;; 10601 nagfor*) # NAGFOR 5.3 10602 tmp_sharedflag='-Wl,-shared' ;; 10603 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10604 tmp_sharedflag='-qmkshrobj' 10605 tmp_addflag= ;; 10606 nvcc*) # Cuda Compiler Driver 2.2 10607 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' 10608 compiler_needs_object=yes 10609 ;; 10610 esac 10611 case `$CC -V 2>&1 | $SED 5q` in 10612 *Sun\ C*) # Sun C 5.9 10613 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' 10614 compiler_needs_object=yes 10615 tmp_sharedflag='-G' ;; 10616 *Sun\ F*) # Sun Fortran 8.3 10617 tmp_sharedflag='-G' ;; 10618 esac 10619 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10620 10621 if test yes = "$supports_anon_versioning"; then 10622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10623 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10624 echo "local: *; };" >> $output_objdir/$libname.ver~ 10625 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10626 fi 10627 10628 case $cc_basename in 10629 tcc*) 10630 export_dynamic_flag_spec='-rdynamic' 10631 ;; 10632 xlf* | bgf* | bgxlf* | mpixlf*) 10633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10636 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10637 if test yes = "$supports_anon_versioning"; then 10638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10639 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10640 echo "local: *; };" >> $output_objdir/$libname.ver~ 10641 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10642 fi 10643 ;; 10644 esac 10645 else 10646 ld_shlibs=no 10647 fi 10648 ;; 10649 10650 netbsd*) 10651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10652 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10653 wlarc= 10654 else 10655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10657 fi 10658 ;; 10659 10660 solaris*) 10661 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10662 ld_shlibs=no 10663 cat <<_LT_EOF 1>&2 10664 10665*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10666*** create shared libraries on Solaris systems. Therefore, libtool 10667*** is disabling shared libraries support. We urge you to upgrade GNU 10668*** binutils to release 2.9.1 or newer. Another option is to modify 10669*** your PATH or compiler configuration so that the native linker is 10670*** used, and then restart. 10671 10672_LT_EOF 10673 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10675 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10676 else 10677 ld_shlibs=no 10678 fi 10679 ;; 10680 10681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10682 case `$LD -v 2>&1` in 10683 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10684 ld_shlibs=no 10685 cat <<_LT_EOF 1>&2 10686 10687*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10688*** reliably create shared libraries on SCO systems. Therefore, libtool 10689*** is disabling shared libraries support. We urge you to upgrade GNU 10690*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10691*** your PATH or compiler configuration so that the native linker is 10692*** used, and then restart. 10693 10694_LT_EOF 10695 ;; 10696 *) 10697 # For security reasons, it is highly recommended that you always 10698 # use absolute paths for naming shared libraries, and exclude the 10699 # DT_RUNPATH tag from executables and libraries. But doing so 10700 # requires that you compile everything twice, which is a pain. 10701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10705 else 10706 ld_shlibs=no 10707 fi 10708 ;; 10709 esac 10710 ;; 10711 10712 sunos4*) 10713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10714 wlarc= 10715 hardcode_direct=yes 10716 hardcode_shlibpath_var=no 10717 ;; 10718 10719 *) 10720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10723 else 10724 ld_shlibs=no 10725 fi 10726 ;; 10727 esac 10728 10729 if test no = "$ld_shlibs"; then 10730 runpath_var= 10731 hardcode_libdir_flag_spec= 10732 export_dynamic_flag_spec= 10733 whole_archive_flag_spec= 10734 fi 10735 else 10736 # PORTME fill in a description of your system's linker (not GNU ld) 10737 case $host_os in 10738 aix3*) 10739 allow_undefined_flag=unsupported 10740 always_export_symbols=yes 10741 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' 10742 # Note: this linker hardcodes the directories in LIBPATH if there 10743 # are no directories specified by -L. 10744 hardcode_minus_L=yes 10745 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10746 # Neither direct hardcoding nor static linking is supported with a 10747 # broken collect2. 10748 hardcode_direct=unsupported 10749 fi 10750 ;; 10751 10752 aix[4-9]*) 10753 if test ia64 = "$host_cpu"; then 10754 # On IA64, the linker does run time linking by default, so we don't 10755 # have to do anything special. 10756 aix_use_runtimelinking=no 10757 exp_sym_flag='-Bexport' 10758 no_entry_flag= 10759 else 10760 # If we're using GNU nm, then we don't want the "-C" option. 10761 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10762 # Without the "-l" option, or with the "-B" option, AIX nm treats 10763 # weak defined symbols like other global defined symbols, whereas 10764 # GNU nm marks them as "W". 10765 # While the 'weak' keyword is ignored in the Export File, we need 10766 # it in the Import File for the 'aix-soname' feature, so we have 10767 # to replace the "-B" option with "-P" for AIX nm. 10768 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10769 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10770 else 10771 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10772 fi 10773 aix_use_runtimelinking=no 10774 10775 # Test if we are trying to use run time linking or normal 10776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10777 # have runtime linking enabled, and use it for executables. 10778 # For shared libraries, we enable/disable runtime linking 10779 # depending on the kind of the shared library created - 10780 # when "with_aix_soname,aix_use_runtimelinking" is: 10781 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10782 # "aix,yes" lib.so shared, rtl:yes, for executables 10783 # lib.a static archive 10784 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10785 # lib.a(lib.so.V) shared, rtl:no, for executables 10786 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10787 # lib.a(lib.so.V) shared, rtl:no 10788 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10789 # lib.a static archive 10790 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10791 for ld_flag in $LDFLAGS; do 10792 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10793 aix_use_runtimelinking=yes 10794 break 10795 fi 10796 done 10797 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10798 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10799 # so we don't have lib.a shared libs to link our executables. 10800 # We have to force runtime linking in this case. 10801 aix_use_runtimelinking=yes 10802 LDFLAGS="$LDFLAGS -Wl,-brtl" 10803 fi 10804 ;; 10805 esac 10806 10807 exp_sym_flag='-bexport' 10808 no_entry_flag='-bnoentry' 10809 fi 10810 10811 # When large executables or shared objects are built, AIX ld can 10812 # have problems creating the table of contents. If linking a library 10813 # or program results in "error TOC overflow" add -mminimal-toc to 10814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10816 10817 archive_cmds='' 10818 hardcode_direct=yes 10819 hardcode_direct_absolute=yes 10820 hardcode_libdir_separator=':' 10821 link_all_deplibs=yes 10822 file_list_spec='$wl-f,' 10823 case $with_aix_soname,$aix_use_runtimelinking in 10824 aix,*) ;; # traditional, no import file 10825 svr4,* | *,yes) # use import file 10826 # The Import File defines what to hardcode. 10827 hardcode_direct=no 10828 hardcode_direct_absolute=no 10829 ;; 10830 esac 10831 10832 if test yes = "$GCC"; then 10833 case $host_os in aix4.[012]|aix4.[012].*) 10834 # We only want to do this on AIX 4.2 and lower, the check 10835 # below for broken collect2 doesn't work under 4.3+ 10836 collect2name=`$CC -print-prog-name=collect2` 10837 if test -f "$collect2name" && 10838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10839 then 10840 # We have reworked collect2 10841 : 10842 else 10843 # We have old collect2 10844 hardcode_direct=unsupported 10845 # It fails to find uninstalled libraries when the uninstalled 10846 # path is not listed in the libpath. Setting hardcode_minus_L 10847 # to unsupported forces relinking 10848 hardcode_minus_L=yes 10849 hardcode_libdir_flag_spec='-L$libdir' 10850 hardcode_libdir_separator= 10851 fi 10852 ;; 10853 esac 10854 shared_flag='-shared' 10855 if test yes = "$aix_use_runtimelinking"; then 10856 shared_flag="$shared_flag "'$wl-G' 10857 fi 10858 # Need to ensure runtime linking is disabled for the traditional 10859 # shared library, or the linker may eventually find shared libraries 10860 # /with/ Import File - we do not want to mix them. 10861 shared_flag_aix='-shared' 10862 shared_flag_svr4='-shared $wl-G' 10863 else 10864 # not using gcc 10865 if test ia64 = "$host_cpu"; then 10866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10867 # chokes on -Wl,-G. The following line is correct: 10868 shared_flag='-G' 10869 else 10870 if test yes = "$aix_use_runtimelinking"; then 10871 shared_flag='$wl-G' 10872 else 10873 shared_flag='$wl-bM:SRE' 10874 fi 10875 shared_flag_aix='$wl-bM:SRE' 10876 shared_flag_svr4='$wl-G' 10877 fi 10878 fi 10879 10880 export_dynamic_flag_spec='$wl-bexpall' 10881 # It seems that -bexpall does not export symbols beginning with 10882 # underscore (_), so it is better to generate a list of symbols to export. 10883 always_export_symbols=yes 10884 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10885 # Warning - without using the other runtime loading flags (-brtl), 10886 # -berok will link without error, but may produce a broken library. 10887 allow_undefined_flag='-berok' 10888 # Determine the default libpath from the value encoded in an 10889 # empty executable. 10890 if test set = "${lt_cv_aix_libpath+set}"; then 10891 aix_libpath=$lt_cv_aix_libpath 10892else 10893 if test ${lt_cv_aix_libpath_+y} 10894then : 10895 printf %s "(cached) " >&6 10896else $as_nop 10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899 10900int 10901main (void) 10902{ 10903 10904 ; 10905 return 0; 10906} 10907_ACEOF 10908if ac_fn_c_try_link "$LINENO" 10909then : 10910 10911 lt_aix_libpath_sed=' 10912 /Import File Strings/,/^$/ { 10913 /^0/ { 10914 s/^0 *\([^ ]*\) *$/\1/ 10915 p 10916 } 10917 }' 10918 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10919 # Check for a 64-bit object if we didn't find anything. 10920 if test -z "$lt_cv_aix_libpath_"; then 10921 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10922 fi 10923fi 10924rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10925 conftest$ac_exeext conftest.$ac_ext 10926 if test -z "$lt_cv_aix_libpath_"; then 10927 lt_cv_aix_libpath_=/usr/lib:/lib 10928 fi 10929 10930fi 10931 10932 aix_libpath=$lt_cv_aix_libpath_ 10933fi 10934 10935 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10936 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10937 else 10938 if test ia64 = "$host_cpu"; then 10939 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10940 allow_undefined_flag="-z nodefs" 10941 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" 10942 else 10943 # Determine the default libpath from the value encoded in an 10944 # empty executable. 10945 if test set = "${lt_cv_aix_libpath+set}"; then 10946 aix_libpath=$lt_cv_aix_libpath 10947else 10948 if test ${lt_cv_aix_libpath_+y} 10949then : 10950 printf %s "(cached) " >&6 10951else $as_nop 10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10953/* end confdefs.h. */ 10954 10955int 10956main (void) 10957{ 10958 10959 ; 10960 return 0; 10961} 10962_ACEOF 10963if ac_fn_c_try_link "$LINENO" 10964then : 10965 10966 lt_aix_libpath_sed=' 10967 /Import File Strings/,/^$/ { 10968 /^0/ { 10969 s/^0 *\([^ ]*\) *$/\1/ 10970 p 10971 } 10972 }' 10973 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10974 # Check for a 64-bit object if we didn't find anything. 10975 if test -z "$lt_cv_aix_libpath_"; then 10976 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10977 fi 10978fi 10979rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10980 conftest$ac_exeext conftest.$ac_ext 10981 if test -z "$lt_cv_aix_libpath_"; then 10982 lt_cv_aix_libpath_=/usr/lib:/lib 10983 fi 10984 10985fi 10986 10987 aix_libpath=$lt_cv_aix_libpath_ 10988fi 10989 10990 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10991 # Warning - without using the other run time loading flags, 10992 # -berok will link without error, but may produce a broken library. 10993 no_undefined_flag=' $wl-bernotok' 10994 allow_undefined_flag=' $wl-berok' 10995 if test yes = "$with_gnu_ld"; then 10996 # We only use this code for GNU lds that support --whole-archive. 10997 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10998 else 10999 # Exported symbols can be pulled into shared objects from archives 11000 whole_archive_flag_spec='$convenience' 11001 fi 11002 archive_cmds_need_lc=yes 11003 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11004 # -brtl affects multiple linker settings, -berok does not and is overridden later 11005 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11006 if test svr4 != "$with_aix_soname"; then 11007 # This is similar to how AIX traditionally builds its shared libraries. 11008 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11009 fi 11010 if test aix != "$with_aix_soname"; then 11011 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11012 else 11013 # used by -dlpreopen to get the symbols 11014 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11015 fi 11016 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11017 fi 11018 fi 11019 ;; 11020 11021 amigaos*) 11022 case $host_cpu in 11023 powerpc) 11024 # see comment about AmigaOS4 .so support 11025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11026 archive_expsym_cmds='' 11027 ;; 11028 m68k) 11029 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)' 11030 hardcode_libdir_flag_spec='-L$libdir' 11031 hardcode_minus_L=yes 11032 ;; 11033 esac 11034 ;; 11035 11036 bsdi[45]*) 11037 export_dynamic_flag_spec=-rdynamic 11038 ;; 11039 11040 cygwin* | mingw* | pw32* | cegcc*) 11041 # When not using gcc, we currently assume that we are using 11042 # Microsoft Visual C++ or Intel C++ Compiler. 11043 # hardcode_libdir_flag_spec is actually meaningless, as there is 11044 # no search path for DLLs. 11045 case $cc_basename in 11046 cl* | icl*) 11047 # Native MSVC or ICC 11048 hardcode_libdir_flag_spec=' ' 11049 allow_undefined_flag=unsupported 11050 always_export_symbols=yes 11051 file_list_spec='@' 11052 # Tell ltmain to make .lib files, not .a files. 11053 libext=lib 11054 # Tell ltmain to make .dll files, not .so files. 11055 shrext_cmds=.dll 11056 # FIXME: Setting linknames here is a bad hack. 11057 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11058 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11059 cp "$export_symbols" "$output_objdir/$soname.def"; 11060 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11061 else 11062 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11063 fi~ 11064 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11065 linknames=' 11066 # The linker will not automatically build a static lib if we build a DLL. 11067 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11068 enable_shared_with_static_runtimes=yes 11069 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11071 # Don't use ranlib 11072 old_postinstall_cmds='chmod 644 $oldlib' 11073 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11074 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11075 case $lt_outputfile in 11076 *.exe|*.EXE) ;; 11077 *) 11078 lt_outputfile=$lt_outputfile.exe 11079 lt_tool_outputfile=$lt_tool_outputfile.exe 11080 ;; 11081 esac~ 11082 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11084 $RM "$lt_outputfile.manifest"; 11085 fi' 11086 ;; 11087 *) 11088 # Assume MSVC and ICC wrapper 11089 hardcode_libdir_flag_spec=' ' 11090 allow_undefined_flag=unsupported 11091 # Tell ltmain to make .lib files, not .a files. 11092 libext=lib 11093 # Tell ltmain to make .dll files, not .so files. 11094 shrext_cmds=.dll 11095 # FIXME: Setting linknames here is a bad hack. 11096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11097 # The linker will automatically build a .lib file if we build a DLL. 11098 old_archive_from_new_cmds='true' 11099 # FIXME: Should let the user specify the lib program. 11100 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11101 enable_shared_with_static_runtimes=yes 11102 ;; 11103 esac 11104 ;; 11105 11106 darwin* | rhapsody*) 11107 11108 11109 archive_cmds_need_lc=no 11110 hardcode_direct=no 11111 hardcode_automatic=yes 11112 hardcode_shlibpath_var=unsupported 11113 if test yes = "$lt_cv_ld_force_load"; then 11114 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\"`' 11115 11116 else 11117 whole_archive_flag_spec='' 11118 fi 11119 link_all_deplibs=yes 11120 allow_undefined_flag=$_lt_dar_allow_undefined 11121 case $cc_basename in 11122 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11123 *) _lt_dar_can_shared=$GCC ;; 11124 esac 11125 if test yes = "$_lt_dar_can_shared"; then 11126 output_verbose_link_cmd=func_echo_all 11127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11129 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" 11130 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" 11131 11132 else 11133 ld_shlibs=no 11134 fi 11135 11136 ;; 11137 11138 dgux*) 11139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11140 hardcode_libdir_flag_spec='-L$libdir' 11141 hardcode_shlibpath_var=no 11142 ;; 11143 11144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11145 # support. Future versions do this automatically, but an explicit c++rt0.o 11146 # does not break anything, and helps significantly (at the cost of a little 11147 # extra space). 11148 freebsd2.2*) 11149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11150 hardcode_libdir_flag_spec='-R$libdir' 11151 hardcode_direct=yes 11152 hardcode_shlibpath_var=no 11153 ;; 11154 11155 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11156 freebsd2.*) 11157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11158 hardcode_direct=yes 11159 hardcode_minus_L=yes 11160 hardcode_shlibpath_var=no 11161 ;; 11162 11163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11164 freebsd* | dragonfly* | midnightbsd*) 11165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11166 hardcode_libdir_flag_spec='-R$libdir' 11167 hardcode_direct=yes 11168 hardcode_shlibpath_var=no 11169 ;; 11170 11171 hpux9*) 11172 if test yes = "$GCC"; then 11173 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11174 else 11175 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11176 fi 11177 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11178 hardcode_libdir_separator=: 11179 hardcode_direct=yes 11180 11181 # hardcode_minus_L: Not really in the search PATH, 11182 # but as the default location of the library. 11183 hardcode_minus_L=yes 11184 export_dynamic_flag_spec='$wl-E' 11185 ;; 11186 11187 hpux10*) 11188 if test yes,no = "$GCC,$with_gnu_ld"; then 11189 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11190 else 11191 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11192 fi 11193 if test no = "$with_gnu_ld"; then 11194 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11195 hardcode_libdir_separator=: 11196 hardcode_direct=yes 11197 hardcode_direct_absolute=yes 11198 export_dynamic_flag_spec='$wl-E' 11199 # hardcode_minus_L: Not really in the search PATH, 11200 # but as the default location of the library. 11201 hardcode_minus_L=yes 11202 fi 11203 ;; 11204 11205 hpux11*) 11206 if test yes,no = "$GCC,$with_gnu_ld"; then 11207 case $host_cpu in 11208 hppa*64*) 11209 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11210 ;; 11211 ia64*) 11212 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11213 ;; 11214 *) 11215 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11216 ;; 11217 esac 11218 else 11219 case $host_cpu in 11220 hppa*64*) 11221 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11222 ;; 11223 ia64*) 11224 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11225 ;; 11226 *) 11227 11228 # Older versions of the 11.00 compiler do not understand -b yet 11229 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11231printf %s "checking if $CC understands -b... " >&6; } 11232if test ${lt_cv_prog_compiler__b+y} 11233then : 11234 printf %s "(cached) " >&6 11235else $as_nop 11236 lt_cv_prog_compiler__b=no 11237 save_LDFLAGS=$LDFLAGS 11238 LDFLAGS="$LDFLAGS -b" 11239 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11241 # The linker can only warn and ignore the option if not recognized 11242 # So say no if there are warnings 11243 if test -s conftest.err; then 11244 # Append any errors to the config.log. 11245 cat conftest.err 1>&5 11246 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11248 if diff conftest.exp conftest.er2 >/dev/null; then 11249 lt_cv_prog_compiler__b=yes 11250 fi 11251 else 11252 lt_cv_prog_compiler__b=yes 11253 fi 11254 fi 11255 $RM -r conftest* 11256 LDFLAGS=$save_LDFLAGS 11257 11258fi 11259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11260printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11261 11262if test yes = "$lt_cv_prog_compiler__b"; then 11263 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11264else 11265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11266fi 11267 11268 ;; 11269 esac 11270 fi 11271 if test no = "$with_gnu_ld"; then 11272 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11273 hardcode_libdir_separator=: 11274 11275 case $host_cpu in 11276 hppa*64*|ia64*) 11277 hardcode_direct=no 11278 hardcode_shlibpath_var=no 11279 ;; 11280 *) 11281 hardcode_direct=yes 11282 hardcode_direct_absolute=yes 11283 export_dynamic_flag_spec='$wl-E' 11284 11285 # hardcode_minus_L: Not really in the search PATH, 11286 # but as the default location of the library. 11287 hardcode_minus_L=yes 11288 ;; 11289 esac 11290 fi 11291 ;; 11292 11293 irix5* | irix6* | nonstopux*) 11294 if test yes = "$GCC"; then 11295 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' 11296 # Try to use the -exported_symbol ld option, if it does not 11297 # work, assume that -exports_file does not work either and 11298 # implicitly export all symbols. 11299 # This should be the same for all languages, so no per-tag cache variable. 11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11301printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11302if test ${lt_cv_irix_exported_symbol+y} 11303then : 11304 printf %s "(cached) " >&6 11305else $as_nop 11306 save_LDFLAGS=$LDFLAGS 11307 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11309/* end confdefs.h. */ 11310int foo (void) { return 0; } 11311_ACEOF 11312if ac_fn_c_try_link "$LINENO" 11313then : 11314 lt_cv_irix_exported_symbol=yes 11315else $as_nop 11316 lt_cv_irix_exported_symbol=no 11317fi 11318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11319 conftest$ac_exeext conftest.$ac_ext 11320 LDFLAGS=$save_LDFLAGS 11321fi 11322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11323printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11324 if test yes = "$lt_cv_irix_exported_symbol"; then 11325 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' 11326 fi 11327 else 11328 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' 11329 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' 11330 fi 11331 archive_cmds_need_lc='no' 11332 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11333 hardcode_libdir_separator=: 11334 inherit_rpath=yes 11335 link_all_deplibs=yes 11336 ;; 11337 11338 linux*) 11339 case $cc_basename in 11340 tcc*) 11341 # Fabrice Bellard et al's Tiny C Compiler 11342 ld_shlibs=yes 11343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11344 ;; 11345 esac 11346 ;; 11347 11348 netbsd*) 11349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11351 else 11352 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11353 fi 11354 hardcode_libdir_flag_spec='-R$libdir' 11355 hardcode_direct=yes 11356 hardcode_shlibpath_var=no 11357 ;; 11358 11359 newsos6) 11360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11361 hardcode_direct=yes 11362 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11363 hardcode_libdir_separator=: 11364 hardcode_shlibpath_var=no 11365 ;; 11366 11367 *nto* | *qnx*) 11368 ;; 11369 11370 openbsd* | bitrig*) 11371 if test -f /usr/libexec/ld.so; then 11372 hardcode_direct=yes 11373 hardcode_shlibpath_var=no 11374 hardcode_direct_absolute=yes 11375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11377 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11378 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11379 export_dynamic_flag_spec='$wl-E' 11380 else 11381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11382 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11383 fi 11384 else 11385 ld_shlibs=no 11386 fi 11387 ;; 11388 11389 os2*) 11390 hardcode_libdir_flag_spec='-L$libdir' 11391 hardcode_minus_L=yes 11392 allow_undefined_flag=unsupported 11393 shrext_cmds=.dll 11394 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11395 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11396 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11397 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11398 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11399 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11400 emximp -o $lib $output_objdir/$libname.def' 11401 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11402 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11403 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11404 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11405 prefix_cmds="$SED"~ 11406 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11407 prefix_cmds="$prefix_cmds -e 1d"; 11408 fi~ 11409 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11410 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11411 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11412 emximp -o $lib $output_objdir/$libname.def' 11413 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11414 enable_shared_with_static_runtimes=yes 11415 file_list_spec='@' 11416 ;; 11417 11418 osf3*) 11419 if test yes = "$GCC"; then 11420 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11421 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' 11422 else 11423 allow_undefined_flag=' -expect_unresolved \*' 11424 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' 11425 fi 11426 archive_cmds_need_lc='no' 11427 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11428 hardcode_libdir_separator=: 11429 ;; 11430 11431 osf4* | osf5*) # as osf3* with the addition of -msym flag 11432 if test yes = "$GCC"; then 11433 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11434 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' 11435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11436 else 11437 allow_undefined_flag=' -expect_unresolved \*' 11438 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' 11439 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~ 11440 $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' 11441 11442 # Both c and cxx compiler support -rpath directly 11443 hardcode_libdir_flag_spec='-rpath $libdir' 11444 fi 11445 archive_cmds_need_lc='no' 11446 hardcode_libdir_separator=: 11447 ;; 11448 11449 solaris*) 11450 no_undefined_flag=' -z defs' 11451 if test yes = "$GCC"; then 11452 wlarc='$wl' 11453 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11454 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11455 $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' 11456 else 11457 case `$CC -V 2>&1` in 11458 *"Compilers 5.0"*) 11459 wlarc='' 11460 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11462 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11463 ;; 11464 *) 11465 wlarc='$wl' 11466 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11468 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11469 ;; 11470 esac 11471 fi 11472 hardcode_libdir_flag_spec='-R$libdir' 11473 hardcode_shlibpath_var=no 11474 case $host_os in 11475 solaris2.[0-5] | solaris2.[0-5].*) ;; 11476 *) 11477 # The compiler driver will combine and reorder linker options, 11478 # but understands '-z linker_flag'. GCC discards it without '$wl', 11479 # but is careful enough not to reorder. 11480 # Supported since Solaris 2.6 (maybe 2.5.1?) 11481 if test yes = "$GCC"; then 11482 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11483 else 11484 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11485 fi 11486 ;; 11487 esac 11488 link_all_deplibs=yes 11489 ;; 11490 11491 sunos4*) 11492 if test sequent = "$host_vendor"; then 11493 # Use $CC to link under sequent, because it throws in some extra .o 11494 # files that make .init and .fini sections work. 11495 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11496 else 11497 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11498 fi 11499 hardcode_libdir_flag_spec='-L$libdir' 11500 hardcode_direct=yes 11501 hardcode_minus_L=yes 11502 hardcode_shlibpath_var=no 11503 ;; 11504 11505 sysv4) 11506 case $host_vendor in 11507 sni) 11508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11509 hardcode_direct=yes # is this really true??? 11510 ;; 11511 siemens) 11512 ## LD is ld it makes a PLAMLIB 11513 ## CC just makes a GrossModule. 11514 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11515 reload_cmds='$CC -r -o $output$reload_objs' 11516 hardcode_direct=no 11517 ;; 11518 motorola) 11519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11520 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11521 ;; 11522 esac 11523 runpath_var='LD_RUN_PATH' 11524 hardcode_shlibpath_var=no 11525 ;; 11526 11527 sysv4.3*) 11528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11529 hardcode_shlibpath_var=no 11530 export_dynamic_flag_spec='-Bexport' 11531 ;; 11532 11533 sysv4*MP*) 11534 if test -d /usr/nec; then 11535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11536 hardcode_shlibpath_var=no 11537 runpath_var=LD_RUN_PATH 11538 hardcode_runpath_var=yes 11539 ld_shlibs=yes 11540 fi 11541 ;; 11542 11543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11544 no_undefined_flag='$wl-z,text' 11545 archive_cmds_need_lc=no 11546 hardcode_shlibpath_var=no 11547 runpath_var='LD_RUN_PATH' 11548 11549 if test yes = "$GCC"; then 11550 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11551 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11552 else 11553 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11554 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11555 fi 11556 ;; 11557 11558 sysv5* | sco3.2v5* | sco5v6*) 11559 # Note: We CANNOT use -z defs as we might desire, because we do not 11560 # link with -lc, and that would cause any symbols used from libc to 11561 # always be unresolved, which means just about no library would 11562 # ever link correctly. If we're not using GNU ld we use -z text 11563 # though, which does catch some bad symbols but isn't as heavy-handed 11564 # as -z defs. 11565 no_undefined_flag='$wl-z,text' 11566 allow_undefined_flag='$wl-z,nodefs' 11567 archive_cmds_need_lc=no 11568 hardcode_shlibpath_var=no 11569 hardcode_libdir_flag_spec='$wl-R,$libdir' 11570 hardcode_libdir_separator=':' 11571 link_all_deplibs=yes 11572 export_dynamic_flag_spec='$wl-Bexport' 11573 runpath_var='LD_RUN_PATH' 11574 11575 if test yes = "$GCC"; then 11576 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11577 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11578 else 11579 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11580 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11581 fi 11582 ;; 11583 11584 uts4*) 11585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11586 hardcode_libdir_flag_spec='-L$libdir' 11587 hardcode_shlibpath_var=no 11588 ;; 11589 11590 *) 11591 ld_shlibs=no 11592 ;; 11593 esac 11594 11595 if test sni = "$host_vendor"; then 11596 case $host in 11597 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11598 export_dynamic_flag_spec='$wl-Blargedynsym' 11599 ;; 11600 esac 11601 fi 11602 fi 11603 11604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11605printf "%s\n" "$ld_shlibs" >&6; } 11606test no = "$ld_shlibs" && can_build_shared=no 11607 11608with_gnu_ld=$with_gnu_ld 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624# 11625# Do we need to explicitly link libc? 11626# 11627case "x$archive_cmds_need_lc" in 11628x|xyes) 11629 # Assume -lc should be added 11630 archive_cmds_need_lc=yes 11631 11632 if test yes,yes = "$GCC,$enable_shared"; then 11633 case $archive_cmds in 11634 *'~'*) 11635 # FIXME: we may have to deal with multi-command sequences. 11636 ;; 11637 '$CC '*) 11638 # Test whether the compiler implicitly links with -lc since on some 11639 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11640 # to ld, don't add -lc before -lgcc. 11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11642printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11643if test ${lt_cv_archive_cmds_need_lc+y} 11644then : 11645 printf %s "(cached) " >&6 11646else $as_nop 11647 $RM conftest* 11648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11649 11650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11651 (eval $ac_compile) 2>&5 11652 ac_status=$? 11653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11654 test $ac_status = 0; } 2>conftest.err; then 11655 soname=conftest 11656 lib=conftest 11657 libobjs=conftest.$ac_objext 11658 deplibs= 11659 wl=$lt_prog_compiler_wl 11660 pic_flag=$lt_prog_compiler_pic 11661 compiler_flags=-v 11662 linker_flags=-v 11663 verstring= 11664 output_objdir=. 11665 libname=conftest 11666 lt_save_allow_undefined_flag=$allow_undefined_flag 11667 allow_undefined_flag= 11668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11669 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11670 ac_status=$? 11671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11672 test $ac_status = 0; } 11673 then 11674 lt_cv_archive_cmds_need_lc=no 11675 else 11676 lt_cv_archive_cmds_need_lc=yes 11677 fi 11678 allow_undefined_flag=$lt_save_allow_undefined_flag 11679 else 11680 cat conftest.err 1>&5 11681 fi 11682 $RM conftest* 11683 11684fi 11685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11686printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11687 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11688 ;; 11689 esac 11690 fi 11691 ;; 11692esac 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11846printf %s "checking dynamic linker characteristics... " >&6; } 11847 11848if test yes = "$GCC"; then 11849 case $host_os in 11850 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11851 *) lt_awk_arg='/^libraries:/' ;; 11852 esac 11853 case $host_os in 11854 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11855 *) lt_sed_strip_eq='s|=/|/|g' ;; 11856 esac 11857 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11858 case $lt_search_path_spec in 11859 *\;*) 11860 # if the path contains ";" then we assume it to be the separator 11861 # otherwise default to the standard path separator (i.e. ":") - it is 11862 # assumed that no part of a normal pathname contains ";" but that should 11863 # okay in the real world where ";" in dirpaths is itself problematic. 11864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11865 ;; 11866 *) 11867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11868 ;; 11869 esac 11870 # Ok, now we have the path, separated by spaces, we can step through it 11871 # and add multilib dir if necessary... 11872 lt_tmp_lt_search_path_spec= 11873 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11874 # ...but if some path component already ends with the multilib dir we assume 11875 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11876 case "$lt_multi_os_dir; $lt_search_path_spec " in 11877 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11878 lt_multi_os_dir= 11879 ;; 11880 esac 11881 for lt_sys_path in $lt_search_path_spec; do 11882 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11883 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11884 elif test -n "$lt_multi_os_dir"; then 11885 test -d "$lt_sys_path" && \ 11886 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11887 fi 11888 done 11889 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11890BEGIN {RS = " "; FS = "/|\n";} { 11891 lt_foo = ""; 11892 lt_count = 0; 11893 for (lt_i = NF; lt_i > 0; lt_i--) { 11894 if ($lt_i != "" && $lt_i != ".") { 11895 if ($lt_i == "..") { 11896 lt_count++; 11897 } else { 11898 if (lt_count == 0) { 11899 lt_foo = "/" $lt_i lt_foo; 11900 } else { 11901 lt_count--; 11902 } 11903 } 11904 } 11905 } 11906 if (lt_foo != "") { lt_freq[lt_foo]++; } 11907 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11908}'` 11909 # AWK program above erroneously prepends '/' to C:/dos/paths 11910 # for these hosts. 11911 case $host_os in 11912 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11913 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11914 esac 11915 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11916else 11917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11918fi 11919library_names_spec= 11920libname_spec='lib$name' 11921soname_spec= 11922shrext_cmds=.so 11923postinstall_cmds= 11924postuninstall_cmds= 11925finish_cmds= 11926finish_eval= 11927shlibpath_var= 11928shlibpath_overrides_runpath=unknown 11929version_type=none 11930dynamic_linker="$host_os ld.so" 11931sys_lib_dlsearch_path_spec="/lib /usr/lib" 11932need_lib_prefix=unknown 11933hardcode_into_libs=no 11934 11935# when you set need_version to no, make sure it does not cause -set_version 11936# flags to be left without arguments 11937need_version=unknown 11938 11939 11940 11941case $host_os in 11942aix3*) 11943 version_type=linux # correct to gnu/linux during the next big refactor 11944 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11945 shlibpath_var=LIBPATH 11946 11947 # AIX 3 has no versioning support, so we append a major version to the name. 11948 soname_spec='$libname$release$shared_ext$major' 11949 ;; 11950 11951aix[4-9]*) 11952 version_type=linux # correct to gnu/linux during the next big refactor 11953 need_lib_prefix=no 11954 need_version=no 11955 hardcode_into_libs=yes 11956 if test ia64 = "$host_cpu"; then 11957 # AIX 5 supports IA64 11958 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11959 shlibpath_var=LD_LIBRARY_PATH 11960 else 11961 # With GCC up to 2.95.x, collect2 would create an import file 11962 # for dependence libraries. The import file would start with 11963 # the line '#! .'. This would cause the generated library to 11964 # depend on '.', always an invalid library. This was fixed in 11965 # development snapshots of GCC prior to 3.0. 11966 case $host_os in 11967 aix4 | aix4.[01] | aix4.[01].*) 11968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11969 echo ' yes ' 11970 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11971 : 11972 else 11973 can_build_shared=no 11974 fi 11975 ;; 11976 esac 11977 # Using Import Files as archive members, it is possible to support 11978 # filename-based versioning of shared library archives on AIX. While 11979 # this would work for both with and without runtime linking, it will 11980 # prevent static linking of such archives. So we do filename-based 11981 # shared library versioning with .so extension only, which is used 11982 # when both runtime linking and shared linking is enabled. 11983 # Unfortunately, runtime linking may impact performance, so we do 11984 # not want this to be the default eventually. Also, we use the 11985 # versioned .so libs for executables only if there is the -brtl 11986 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11987 # To allow for filename-based versioning support, we need to create 11988 # libNAME.so.V as an archive file, containing: 11989 # *) an Import File, referring to the versioned filename of the 11990 # archive as well as the shared archive member, telling the 11991 # bitwidth (32 or 64) of that shared object, and providing the 11992 # list of exported symbols of that shared object, eventually 11993 # decorated with the 'weak' keyword 11994 # *) the shared object with the F_LOADONLY flag set, to really avoid 11995 # it being seen by the linker. 11996 # At run time we better use the real file rather than another symlink, 11997 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11998 11999 case $with_aix_soname,$aix_use_runtimelinking in 12000 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12001 # soname into executable. Probably we can add versioning support to 12002 # collect2, so additional links can be useful in future. 12003 aix,yes) # traditional libtool 12004 dynamic_linker='AIX unversionable lib.so' 12005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12006 # instead of lib<name>.a to let people know that these are not 12007 # typical AIX shared libraries. 12008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12009 ;; 12010 aix,no) # traditional AIX only 12011 dynamic_linker='AIX lib.a(lib.so.V)' 12012 # We preserve .a as extension for shared libraries through AIX4.2 12013 # and later when we are not doing run time linking. 12014 library_names_spec='$libname$release.a $libname.a' 12015 soname_spec='$libname$release$shared_ext$major' 12016 ;; 12017 svr4,*) # full svr4 only 12018 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12019 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12020 # We do not specify a path in Import Files, so LIBPATH fires. 12021 shlibpath_overrides_runpath=yes 12022 ;; 12023 *,yes) # both, prefer svr4 12024 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12025 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12026 # unpreferred sharedlib libNAME.a needs extra handling 12027 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12028 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12029 # We do not specify a path in Import Files, so LIBPATH fires. 12030 shlibpath_overrides_runpath=yes 12031 ;; 12032 *,no) # both, prefer aix 12033 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12034 library_names_spec='$libname$release.a $libname.a' 12035 soname_spec='$libname$release$shared_ext$major' 12036 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12037 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12038 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12039 ;; 12040 esac 12041 shlibpath_var=LIBPATH 12042 fi 12043 ;; 12044 12045amigaos*) 12046 case $host_cpu in 12047 powerpc) 12048 # Since July 2007 AmigaOS4 officially supports .so libraries. 12049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12051 ;; 12052 m68k) 12053 library_names_spec='$libname.ixlibrary $libname.a' 12054 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12055 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12056 ;; 12057 esac 12058 ;; 12059 12060beos*) 12061 library_names_spec='$libname$shared_ext' 12062 dynamic_linker="$host_os ld.so" 12063 shlibpath_var=LIBRARY_PATH 12064 ;; 12065 12066bsdi[45]*) 12067 version_type=linux # correct to gnu/linux during the next big refactor 12068 need_version=no 12069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12070 soname_spec='$libname$release$shared_ext$major' 12071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12072 shlibpath_var=LD_LIBRARY_PATH 12073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12075 # the default ld.so.conf also contains /usr/contrib/lib and 12076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12077 # libtool to hard-code these into programs 12078 ;; 12079 12080cygwin* | mingw* | pw32* | cegcc*) 12081 version_type=windows 12082 shrext_cmds=.dll 12083 need_version=no 12084 need_lib_prefix=no 12085 12086 case $GCC,$cc_basename in 12087 yes,*) 12088 # gcc 12089 library_names_spec='$libname.dll.a' 12090 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12091 postinstall_cmds='base_file=`basename \$file`~ 12092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12093 dldir=$destdir/`dirname \$dlpath`~ 12094 test -d \$dldir || mkdir -p \$dldir~ 12095 $install_prog $dir/$dlname \$dldir/$dlname~ 12096 chmod a+x \$dldir/$dlname~ 12097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12099 fi' 12100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12101 dlpath=$dir/\$dldll~ 12102 $RM \$dlpath' 12103 shlibpath_overrides_runpath=yes 12104 12105 case $host_os in 12106 cygwin*) 12107 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12108 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12109 12110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12111 ;; 12112 mingw* | cegcc*) 12113 # MinGW DLLs use traditional 'lib' prefix 12114 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12115 ;; 12116 pw32*) 12117 # pw32 DLLs use 'pw' prefix rather than 'lib' 12118 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12119 ;; 12120 esac 12121 dynamic_linker='Win32 ld.exe' 12122 ;; 12123 12124 *,cl* | *,icl*) 12125 # Native MSVC or ICC 12126 libname_spec='$name' 12127 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12128 library_names_spec='$libname.dll.lib' 12129 12130 case $build_os in 12131 mingw*) 12132 sys_lib_search_path_spec= 12133 lt_save_ifs=$IFS 12134 IFS=';' 12135 for lt_path in $LIB 12136 do 12137 IFS=$lt_save_ifs 12138 # Let DOS variable expansion print the short 8.3 style file name. 12139 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12140 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12141 done 12142 IFS=$lt_save_ifs 12143 # Convert to MSYS style. 12144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12145 ;; 12146 cygwin*) 12147 # Convert to unix form, then to dos form, then back to unix form 12148 # but this time dos style (no spaces!) so that the unix form looks 12149 # like /cygdrive/c/PROGRA~1:/cygdr... 12150 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12151 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12152 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12153 ;; 12154 *) 12155 sys_lib_search_path_spec=$LIB 12156 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12157 # It is most probably a Windows format PATH. 12158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12159 else 12160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12161 fi 12162 # FIXME: find the short name or the path components, as spaces are 12163 # common. (e.g. "Program Files" -> "PROGRA~1") 12164 ;; 12165 esac 12166 12167 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12168 postinstall_cmds='base_file=`basename \$file`~ 12169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12170 dldir=$destdir/`dirname \$dlpath`~ 12171 test -d \$dldir || mkdir -p \$dldir~ 12172 $install_prog $dir/$dlname \$dldir/$dlname' 12173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12174 dlpath=$dir/\$dldll~ 12175 $RM \$dlpath' 12176 shlibpath_overrides_runpath=yes 12177 dynamic_linker='Win32 link.exe' 12178 ;; 12179 12180 *) 12181 # Assume MSVC and ICC wrapper 12182 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12183 dynamic_linker='Win32 ld.exe' 12184 ;; 12185 esac 12186 # FIXME: first we should search . and the directory the executable is in 12187 shlibpath_var=PATH 12188 ;; 12189 12190darwin* | rhapsody*) 12191 dynamic_linker="$host_os dyld" 12192 version_type=darwin 12193 need_lib_prefix=no 12194 need_version=no 12195 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12196 soname_spec='$libname$release$major$shared_ext' 12197 shlibpath_overrides_runpath=yes 12198 shlibpath_var=DYLD_LIBRARY_PATH 12199 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12200 12201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12203 ;; 12204 12205dgux*) 12206 version_type=linux # correct to gnu/linux during the next big refactor 12207 need_lib_prefix=no 12208 need_version=no 12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12210 soname_spec='$libname$release$shared_ext$major' 12211 shlibpath_var=LD_LIBRARY_PATH 12212 ;; 12213 12214freebsd* | dragonfly* | midnightbsd*) 12215 # DragonFly does not have aout. When/if they implement a new 12216 # versioning mechanism, adjust this. 12217 if test -x /usr/bin/objformat; then 12218 objformat=`/usr/bin/objformat` 12219 else 12220 case $host_os in 12221 freebsd[23].*) objformat=aout ;; 12222 *) objformat=elf ;; 12223 esac 12224 fi 12225 version_type=freebsd-$objformat 12226 case $version_type in 12227 freebsd-elf*) 12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12229 soname_spec='$libname$release$shared_ext$major' 12230 need_version=no 12231 need_lib_prefix=no 12232 ;; 12233 freebsd-*) 12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12235 need_version=yes 12236 ;; 12237 esac 12238 shlibpath_var=LD_LIBRARY_PATH 12239 case $host_os in 12240 freebsd2.*) 12241 shlibpath_overrides_runpath=yes 12242 ;; 12243 freebsd3.[01]* | freebsdelf3.[01]*) 12244 shlibpath_overrides_runpath=yes 12245 hardcode_into_libs=yes 12246 ;; 12247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12249 shlibpath_overrides_runpath=no 12250 hardcode_into_libs=yes 12251 ;; 12252 *) # from 4.6 on, and DragonFly 12253 shlibpath_overrides_runpath=yes 12254 hardcode_into_libs=yes 12255 ;; 12256 esac 12257 ;; 12258 12259haiku*) 12260 version_type=linux # correct to gnu/linux during the next big refactor 12261 need_lib_prefix=no 12262 need_version=no 12263 dynamic_linker="$host_os runtime_loader" 12264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12265 soname_spec='$libname$release$shared_ext$major' 12266 shlibpath_var=LIBRARY_PATH 12267 shlibpath_overrides_runpath=no 12268 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12269 hardcode_into_libs=yes 12270 ;; 12271 12272hpux9* | hpux10* | hpux11*) 12273 # Give a soname corresponding to the major version so that dld.sl refuses to 12274 # link against other versions. 12275 version_type=sunos 12276 need_lib_prefix=no 12277 need_version=no 12278 case $host_cpu in 12279 ia64*) 12280 shrext_cmds='.so' 12281 hardcode_into_libs=yes 12282 dynamic_linker="$host_os dld.so" 12283 shlibpath_var=LD_LIBRARY_PATH 12284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12286 soname_spec='$libname$release$shared_ext$major' 12287 if test 32 = "$HPUX_IA64_MODE"; then 12288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12289 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12290 else 12291 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12292 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12293 fi 12294 ;; 12295 hppa*64*) 12296 shrext_cmds='.sl' 12297 hardcode_into_libs=yes 12298 dynamic_linker="$host_os dld.sl" 12299 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12302 soname_spec='$libname$release$shared_ext$major' 12303 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12305 ;; 12306 *) 12307 shrext_cmds='.sl' 12308 dynamic_linker="$host_os dld.sl" 12309 shlibpath_var=SHLIB_PATH 12310 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12312 soname_spec='$libname$release$shared_ext$major' 12313 ;; 12314 esac 12315 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12316 postinstall_cmds='chmod 555 $lib' 12317 # or fails outright, so override atomically: 12318 install_override_mode=555 12319 ;; 12320 12321interix[3-9]*) 12322 version_type=linux # correct to gnu/linux during the next big refactor 12323 need_lib_prefix=no 12324 need_version=no 12325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12326 soname_spec='$libname$release$shared_ext$major' 12327 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12328 shlibpath_var=LD_LIBRARY_PATH 12329 shlibpath_overrides_runpath=no 12330 hardcode_into_libs=yes 12331 ;; 12332 12333irix5* | irix6* | nonstopux*) 12334 case $host_os in 12335 nonstopux*) version_type=nonstopux ;; 12336 *) 12337 if test yes = "$lt_cv_prog_gnu_ld"; then 12338 version_type=linux # correct to gnu/linux during the next big refactor 12339 else 12340 version_type=irix 12341 fi ;; 12342 esac 12343 need_lib_prefix=no 12344 need_version=no 12345 soname_spec='$libname$release$shared_ext$major' 12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12347 case $host_os in 12348 irix5* | nonstopux*) 12349 libsuff= shlibsuff= 12350 ;; 12351 *) 12352 case $LD in # libtool.m4 will add one of these switches to LD 12353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12354 libsuff= shlibsuff= libmagic=32-bit;; 12355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12356 libsuff=32 shlibsuff=N32 libmagic=N32;; 12357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12358 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12359 *) libsuff= shlibsuff= libmagic=never-match;; 12360 esac 12361 ;; 12362 esac 12363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12364 shlibpath_overrides_runpath=no 12365 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12366 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12367 hardcode_into_libs=yes 12368 ;; 12369 12370# No shared lib support for Linux oldld, aout, or coff. 12371linux*oldld* | linux*aout* | linux*coff*) 12372 dynamic_linker=no 12373 ;; 12374 12375linux*android*) 12376 version_type=none # Android doesn't support versioned libraries. 12377 need_lib_prefix=no 12378 need_version=no 12379 library_names_spec='$libname$release$shared_ext' 12380 soname_spec='$libname$release$shared_ext' 12381 finish_cmds= 12382 shlibpath_var=LD_LIBRARY_PATH 12383 shlibpath_overrides_runpath=yes 12384 12385 # This implies no fast_install, which is unacceptable. 12386 # Some rework will be needed to allow for fast_install 12387 # before this can be enabled. 12388 hardcode_into_libs=yes 12389 12390 dynamic_linker='Android linker' 12391 # Don't embed -rpath directories since the linker doesn't support them. 12392 hardcode_libdir_flag_spec='-L$libdir' 12393 ;; 12394 12395# This must be glibc/ELF. 12396linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12397 version_type=linux # correct to gnu/linux during the next big refactor 12398 need_lib_prefix=no 12399 need_version=no 12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12401 soname_spec='$libname$release$shared_ext$major' 12402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12403 shlibpath_var=LD_LIBRARY_PATH 12404 shlibpath_overrides_runpath=no 12405 12406 # Some binutils ld are patched to set DT_RUNPATH 12407 if test ${lt_cv_shlibpath_overrides_runpath+y} 12408then : 12409 printf %s "(cached) " >&6 12410else $as_nop 12411 lt_cv_shlibpath_overrides_runpath=no 12412 save_LDFLAGS=$LDFLAGS 12413 save_libdir=$libdir 12414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12417/* end confdefs.h. */ 12418 12419int 12420main (void) 12421{ 12422 12423 ; 12424 return 0; 12425} 12426_ACEOF 12427if ac_fn_c_try_link "$LINENO" 12428then : 12429 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12430then : 12431 lt_cv_shlibpath_overrides_runpath=yes 12432fi 12433fi 12434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12435 conftest$ac_exeext conftest.$ac_ext 12436 LDFLAGS=$save_LDFLAGS 12437 libdir=$save_libdir 12438 12439fi 12440 12441 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12442 12443 # This implies no fast_install, which is unacceptable. 12444 # Some rework will be needed to allow for fast_install 12445 # before this can be enabled. 12446 hardcode_into_libs=yes 12447 12448 # Add ABI-specific directories to the system library path. 12449 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12450 12451 # Ideally, we could use ldconfig to report *all* directores which are 12452 # searched for libraries, however this is still not possible. Aside from not 12453 # being certain /sbin/ldconfig is available, command 12454 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12455 # even though it is searched at run-time. Try to do the best guess by 12456 # appending ld.so.conf contents (and includes) to the search path. 12457 if test -f /etc/ld.so.conf; then 12458 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' ' '` 12459 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12460 fi 12461 12462 # We used to test for /lib/ld.so.1 and disable shared libraries on 12463 # powerpc, because MkLinux only supported shared libraries with the 12464 # GNU dynamic linker. Since this was broken with cross compilers, 12465 # most powerpc-linux boxes support dynamic linking these days and 12466 # people can always --disable-shared, the test was removed, and we 12467 # assume the GNU/Linux dynamic linker is in use. 12468 dynamic_linker='GNU/Linux ld.so' 12469 ;; 12470 12471netbsd*) 12472 version_type=sunos 12473 need_lib_prefix=no 12474 need_version=no 12475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12478 dynamic_linker='NetBSD (a.out) ld.so' 12479 else 12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12481 soname_spec='$libname$release$shared_ext$major' 12482 dynamic_linker='NetBSD ld.elf_so' 12483 fi 12484 shlibpath_var=LD_LIBRARY_PATH 12485 shlibpath_overrides_runpath=yes 12486 hardcode_into_libs=yes 12487 ;; 12488 12489newsos6) 12490 version_type=linux # correct to gnu/linux during the next big refactor 12491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12492 shlibpath_var=LD_LIBRARY_PATH 12493 shlibpath_overrides_runpath=yes 12494 ;; 12495 12496*nto* | *qnx*) 12497 version_type=qnx 12498 need_lib_prefix=no 12499 need_version=no 12500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12501 soname_spec='$libname$release$shared_ext$major' 12502 shlibpath_var=LD_LIBRARY_PATH 12503 shlibpath_overrides_runpath=no 12504 hardcode_into_libs=yes 12505 dynamic_linker='ldqnx.so' 12506 ;; 12507 12508openbsd* | bitrig*) 12509 version_type=sunos 12510 sys_lib_dlsearch_path_spec=/usr/lib 12511 need_lib_prefix=no 12512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12513 need_version=no 12514 else 12515 need_version=yes 12516 fi 12517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12519 shlibpath_var=LD_LIBRARY_PATH 12520 shlibpath_overrides_runpath=yes 12521 ;; 12522 12523os2*) 12524 libname_spec='$name' 12525 version_type=windows 12526 shrext_cmds=.dll 12527 need_version=no 12528 need_lib_prefix=no 12529 # OS/2 can only load a DLL with a base name of 8 characters or less. 12530 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12531 v=$($ECHO $release$versuffix | tr -d .-); 12532 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12533 $ECHO $n$v`$shared_ext' 12534 library_names_spec='${libname}_dll.$libext' 12535 dynamic_linker='OS/2 ld.exe' 12536 shlibpath_var=BEGINLIBPATH 12537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12539 postinstall_cmds='base_file=`basename \$file`~ 12540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12541 dldir=$destdir/`dirname \$dlpath`~ 12542 test -d \$dldir || mkdir -p \$dldir~ 12543 $install_prog $dir/$dlname \$dldir/$dlname~ 12544 chmod a+x \$dldir/$dlname~ 12545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12547 fi' 12548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12549 dlpath=$dir/\$dldll~ 12550 $RM \$dlpath' 12551 ;; 12552 12553osf3* | osf4* | osf5*) 12554 version_type=osf 12555 need_lib_prefix=no 12556 need_version=no 12557 soname_spec='$libname$release$shared_ext$major' 12558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12559 shlibpath_var=LD_LIBRARY_PATH 12560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12562 ;; 12563 12564rdos*) 12565 dynamic_linker=no 12566 ;; 12567 12568solaris*) 12569 version_type=linux # correct to gnu/linux during the next big refactor 12570 need_lib_prefix=no 12571 need_version=no 12572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12573 soname_spec='$libname$release$shared_ext$major' 12574 shlibpath_var=LD_LIBRARY_PATH 12575 shlibpath_overrides_runpath=yes 12576 hardcode_into_libs=yes 12577 # ldd complains unless libraries are executable 12578 postinstall_cmds='chmod +x $lib' 12579 ;; 12580 12581sunos4*) 12582 version_type=sunos 12583 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12585 shlibpath_var=LD_LIBRARY_PATH 12586 shlibpath_overrides_runpath=yes 12587 if test yes = "$with_gnu_ld"; then 12588 need_lib_prefix=no 12589 fi 12590 need_version=yes 12591 ;; 12592 12593sysv4 | sysv4.3*) 12594 version_type=linux # correct to gnu/linux during the next big refactor 12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12596 soname_spec='$libname$release$shared_ext$major' 12597 shlibpath_var=LD_LIBRARY_PATH 12598 case $host_vendor in 12599 sni) 12600 shlibpath_overrides_runpath=no 12601 need_lib_prefix=no 12602 runpath_var=LD_RUN_PATH 12603 ;; 12604 siemens) 12605 need_lib_prefix=no 12606 ;; 12607 motorola) 12608 need_lib_prefix=no 12609 need_version=no 12610 shlibpath_overrides_runpath=no 12611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12612 ;; 12613 esac 12614 ;; 12615 12616sysv4*MP*) 12617 if test -d /usr/nec; then 12618 version_type=linux # correct to gnu/linux during the next big refactor 12619 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12620 soname_spec='$libname$shared_ext.$major' 12621 shlibpath_var=LD_LIBRARY_PATH 12622 fi 12623 ;; 12624 12625sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12626 version_type=sco 12627 need_lib_prefix=no 12628 need_version=no 12629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12630 soname_spec='$libname$release$shared_ext$major' 12631 shlibpath_var=LD_LIBRARY_PATH 12632 shlibpath_overrides_runpath=yes 12633 hardcode_into_libs=yes 12634 if test yes = "$with_gnu_ld"; then 12635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12636 else 12637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12638 case $host_os in 12639 sco3.2v5*) 12640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12641 ;; 12642 esac 12643 fi 12644 sys_lib_dlsearch_path_spec='/usr/lib' 12645 ;; 12646 12647tpf*) 12648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12649 version_type=linux # correct to gnu/linux during the next big refactor 12650 need_lib_prefix=no 12651 need_version=no 12652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12653 shlibpath_var=LD_LIBRARY_PATH 12654 shlibpath_overrides_runpath=no 12655 hardcode_into_libs=yes 12656 ;; 12657 12658uts4*) 12659 version_type=linux # correct to gnu/linux during the next big refactor 12660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12661 soname_spec='$libname$release$shared_ext$major' 12662 shlibpath_var=LD_LIBRARY_PATH 12663 ;; 12664 12665*) 12666 dynamic_linker=no 12667 ;; 12668esac 12669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12670printf "%s\n" "$dynamic_linker" >&6; } 12671test no = "$dynamic_linker" && can_build_shared=no 12672 12673variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12674if test yes = "$GCC"; then 12675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12676fi 12677 12678if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12679 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12680fi 12681 12682if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12683 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12684fi 12685 12686# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12687configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12688 12689# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12690func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12691 12692# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12693configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12792printf %s "checking how to hardcode library paths into programs... " >&6; } 12793hardcode_action= 12794if test -n "$hardcode_libdir_flag_spec" || 12795 test -n "$runpath_var" || 12796 test yes = "$hardcode_automatic"; then 12797 12798 # We can hardcode non-existent directories. 12799 if test no != "$hardcode_direct" && 12800 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12801 # have to relink, otherwise we might link with an installed library 12802 # when we should be linking with a yet-to-be-installed one 12803 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12804 test no != "$hardcode_minus_L"; then 12805 # Linking always hardcodes the temporary library directory. 12806 hardcode_action=relink 12807 else 12808 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12809 hardcode_action=immediate 12810 fi 12811else 12812 # We cannot hardcode anything, or else we can only hardcode existing 12813 # directories. 12814 hardcode_action=unsupported 12815fi 12816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12817printf "%s\n" "$hardcode_action" >&6; } 12818 12819if test relink = "$hardcode_action" || 12820 test yes = "$inherit_rpath"; then 12821 # Fast installation is not supported 12822 enable_fast_install=no 12823elif test yes = "$shlibpath_overrides_runpath" || 12824 test no = "$enable_shared"; then 12825 # Fast installation is not necessary 12826 enable_fast_install=needless 12827fi 12828 12829 12830 12831 12832 12833 12834 if test yes != "$enable_dlopen"; then 12835 enable_dlopen=unknown 12836 enable_dlopen_self=unknown 12837 enable_dlopen_self_static=unknown 12838else 12839 lt_cv_dlopen=no 12840 lt_cv_dlopen_libs= 12841 12842 case $host_os in 12843 beos*) 12844 lt_cv_dlopen=load_add_on 12845 lt_cv_dlopen_libs= 12846 lt_cv_dlopen_self=yes 12847 ;; 12848 12849 mingw* | pw32* | cegcc*) 12850 lt_cv_dlopen=LoadLibrary 12851 lt_cv_dlopen_libs= 12852 ;; 12853 12854 cygwin*) 12855 lt_cv_dlopen=dlopen 12856 lt_cv_dlopen_libs= 12857 ;; 12858 12859 darwin*) 12860 # if libdl is installed we need to link against it 12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12862printf %s "checking for dlopen in -ldl... " >&6; } 12863if test ${ac_cv_lib_dl_dlopen+y} 12864then : 12865 printf %s "(cached) " >&6 12866else $as_nop 12867 ac_check_lib_save_LIBS=$LIBS 12868LIBS="-ldl $LIBS" 12869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12870/* end confdefs.h. */ 12871 12872/* Override any GCC internal prototype to avoid an error. 12873 Use char because int might match the return type of a GCC 12874 builtin and then its argument prototype would still apply. */ 12875char dlopen (); 12876int 12877main (void) 12878{ 12879return dlopen (); 12880 ; 12881 return 0; 12882} 12883_ACEOF 12884if ac_fn_c_try_link "$LINENO" 12885then : 12886 ac_cv_lib_dl_dlopen=yes 12887else $as_nop 12888 ac_cv_lib_dl_dlopen=no 12889fi 12890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12891 conftest$ac_exeext conftest.$ac_ext 12892LIBS=$ac_check_lib_save_LIBS 12893fi 12894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12895printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12896if test "x$ac_cv_lib_dl_dlopen" = xyes 12897then : 12898 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12899else $as_nop 12900 12901 lt_cv_dlopen=dyld 12902 lt_cv_dlopen_libs= 12903 lt_cv_dlopen_self=yes 12904 12905fi 12906 12907 ;; 12908 12909 tpf*) 12910 # Don't try to run any link tests for TPF. We know it's impossible 12911 # because TPF is a cross-compiler, and we know how we open DSOs. 12912 lt_cv_dlopen=dlopen 12913 lt_cv_dlopen_libs= 12914 lt_cv_dlopen_self=no 12915 ;; 12916 12917 *) 12918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12919if test "x$ac_cv_func_shl_load" = xyes 12920then : 12921 lt_cv_dlopen=shl_load 12922else $as_nop 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12924printf %s "checking for shl_load in -ldld... " >&6; } 12925if test ${ac_cv_lib_dld_shl_load+y} 12926then : 12927 printf %s "(cached) " >&6 12928else $as_nop 12929 ac_check_lib_save_LIBS=$LIBS 12930LIBS="-ldld $LIBS" 12931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12932/* end confdefs.h. */ 12933 12934/* Override any GCC internal prototype to avoid an error. 12935 Use char because int might match the return type of a GCC 12936 builtin and then its argument prototype would still apply. */ 12937char shl_load (); 12938int 12939main (void) 12940{ 12941return shl_load (); 12942 ; 12943 return 0; 12944} 12945_ACEOF 12946if ac_fn_c_try_link "$LINENO" 12947then : 12948 ac_cv_lib_dld_shl_load=yes 12949else $as_nop 12950 ac_cv_lib_dld_shl_load=no 12951fi 12952rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12953 conftest$ac_exeext conftest.$ac_ext 12954LIBS=$ac_check_lib_save_LIBS 12955fi 12956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12957printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12958if test "x$ac_cv_lib_dld_shl_load" = xyes 12959then : 12960 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12961else $as_nop 12962 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12963if test "x$ac_cv_func_dlopen" = xyes 12964then : 12965 lt_cv_dlopen=dlopen 12966else $as_nop 12967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12968printf %s "checking for dlopen in -ldl... " >&6; } 12969if test ${ac_cv_lib_dl_dlopen+y} 12970then : 12971 printf %s "(cached) " >&6 12972else $as_nop 12973 ac_check_lib_save_LIBS=$LIBS 12974LIBS="-ldl $LIBS" 12975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12976/* end confdefs.h. */ 12977 12978/* Override any GCC internal prototype to avoid an error. 12979 Use char because int might match the return type of a GCC 12980 builtin and then its argument prototype would still apply. */ 12981char dlopen (); 12982int 12983main (void) 12984{ 12985return dlopen (); 12986 ; 12987 return 0; 12988} 12989_ACEOF 12990if ac_fn_c_try_link "$LINENO" 12991then : 12992 ac_cv_lib_dl_dlopen=yes 12993else $as_nop 12994 ac_cv_lib_dl_dlopen=no 12995fi 12996rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12997 conftest$ac_exeext conftest.$ac_ext 12998LIBS=$ac_check_lib_save_LIBS 12999fi 13000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13001printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13002if test "x$ac_cv_lib_dl_dlopen" = xyes 13003then : 13004 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13005else $as_nop 13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13007printf %s "checking for dlopen in -lsvld... " >&6; } 13008if test ${ac_cv_lib_svld_dlopen+y} 13009then : 13010 printf %s "(cached) " >&6 13011else $as_nop 13012 ac_check_lib_save_LIBS=$LIBS 13013LIBS="-lsvld $LIBS" 13014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13015/* end confdefs.h. */ 13016 13017/* Override any GCC internal prototype to avoid an error. 13018 Use char because int might match the return type of a GCC 13019 builtin and then its argument prototype would still apply. */ 13020char dlopen (); 13021int 13022main (void) 13023{ 13024return dlopen (); 13025 ; 13026 return 0; 13027} 13028_ACEOF 13029if ac_fn_c_try_link "$LINENO" 13030then : 13031 ac_cv_lib_svld_dlopen=yes 13032else $as_nop 13033 ac_cv_lib_svld_dlopen=no 13034fi 13035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13036 conftest$ac_exeext conftest.$ac_ext 13037LIBS=$ac_check_lib_save_LIBS 13038fi 13039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13040printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13041if test "x$ac_cv_lib_svld_dlopen" = xyes 13042then : 13043 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13044else $as_nop 13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13046printf %s "checking for dld_link in -ldld... " >&6; } 13047if test ${ac_cv_lib_dld_dld_link+y} 13048then : 13049 printf %s "(cached) " >&6 13050else $as_nop 13051 ac_check_lib_save_LIBS=$LIBS 13052LIBS="-ldld $LIBS" 13053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13054/* end confdefs.h. */ 13055 13056/* Override any GCC internal prototype to avoid an error. 13057 Use char because int might match the return type of a GCC 13058 builtin and then its argument prototype would still apply. */ 13059char dld_link (); 13060int 13061main (void) 13062{ 13063return dld_link (); 13064 ; 13065 return 0; 13066} 13067_ACEOF 13068if ac_fn_c_try_link "$LINENO" 13069then : 13070 ac_cv_lib_dld_dld_link=yes 13071else $as_nop 13072 ac_cv_lib_dld_dld_link=no 13073fi 13074rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13075 conftest$ac_exeext conftest.$ac_ext 13076LIBS=$ac_check_lib_save_LIBS 13077fi 13078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13079printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13080if test "x$ac_cv_lib_dld_dld_link" = xyes 13081then : 13082 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13083fi 13084 13085 13086fi 13087 13088 13089fi 13090 13091 13092fi 13093 13094 13095fi 13096 13097 13098fi 13099 13100 ;; 13101 esac 13102 13103 if test no = "$lt_cv_dlopen"; then 13104 enable_dlopen=no 13105 else 13106 enable_dlopen=yes 13107 fi 13108 13109 case $lt_cv_dlopen in 13110 dlopen) 13111 save_CPPFLAGS=$CPPFLAGS 13112 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13113 13114 save_LDFLAGS=$LDFLAGS 13115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13116 13117 save_LIBS=$LIBS 13118 LIBS="$lt_cv_dlopen_libs $LIBS" 13119 13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13121printf %s "checking whether a program can dlopen itself... " >&6; } 13122if test ${lt_cv_dlopen_self+y} 13123then : 13124 printf %s "(cached) " >&6 13125else $as_nop 13126 if test yes = "$cross_compiling"; then : 13127 lt_cv_dlopen_self=cross 13128else 13129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13130 lt_status=$lt_dlunknown 13131 cat > conftest.$ac_ext <<_LT_EOF 13132#line $LINENO "configure" 13133#include "confdefs.h" 13134 13135#if HAVE_DLFCN_H 13136#include <dlfcn.h> 13137#endif 13138 13139#include <stdio.h> 13140 13141#ifdef RTLD_GLOBAL 13142# define LT_DLGLOBAL RTLD_GLOBAL 13143#else 13144# ifdef DL_GLOBAL 13145# define LT_DLGLOBAL DL_GLOBAL 13146# else 13147# define LT_DLGLOBAL 0 13148# endif 13149#endif 13150 13151/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13152 find out it does not work in some platform. */ 13153#ifndef LT_DLLAZY_OR_NOW 13154# ifdef RTLD_LAZY 13155# define LT_DLLAZY_OR_NOW RTLD_LAZY 13156# else 13157# ifdef DL_LAZY 13158# define LT_DLLAZY_OR_NOW DL_LAZY 13159# else 13160# ifdef RTLD_NOW 13161# define LT_DLLAZY_OR_NOW RTLD_NOW 13162# else 13163# ifdef DL_NOW 13164# define LT_DLLAZY_OR_NOW DL_NOW 13165# else 13166# define LT_DLLAZY_OR_NOW 0 13167# endif 13168# endif 13169# endif 13170# endif 13171#endif 13172 13173/* When -fvisibility=hidden is used, assume the code has been annotated 13174 correspondingly for the symbols needed. */ 13175#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13176int fnord () __attribute__((visibility("default"))); 13177#endif 13178 13179int fnord () { return 42; } 13180int main () 13181{ 13182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13183 int status = $lt_dlunknown; 13184 13185 if (self) 13186 { 13187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13188 else 13189 { 13190 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13191 else puts (dlerror ()); 13192 } 13193 /* dlclose (self); */ 13194 } 13195 else 13196 puts (dlerror ()); 13197 13198 return status; 13199} 13200_LT_EOF 13201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13202 (eval $ac_link) 2>&5 13203 ac_status=$? 13204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13205 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13206 (./conftest; exit; ) >&5 2>/dev/null 13207 lt_status=$? 13208 case x$lt_status in 13209 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13210 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13211 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13212 esac 13213 else : 13214 # compilation failed 13215 lt_cv_dlopen_self=no 13216 fi 13217fi 13218rm -fr conftest* 13219 13220 13221fi 13222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13223printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13224 13225 if test yes = "$lt_cv_dlopen_self"; then 13226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13228printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13229if test ${lt_cv_dlopen_self_static+y} 13230then : 13231 printf %s "(cached) " >&6 13232else $as_nop 13233 if test yes = "$cross_compiling"; then : 13234 lt_cv_dlopen_self_static=cross 13235else 13236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13237 lt_status=$lt_dlunknown 13238 cat > conftest.$ac_ext <<_LT_EOF 13239#line $LINENO "configure" 13240#include "confdefs.h" 13241 13242#if HAVE_DLFCN_H 13243#include <dlfcn.h> 13244#endif 13245 13246#include <stdio.h> 13247 13248#ifdef RTLD_GLOBAL 13249# define LT_DLGLOBAL RTLD_GLOBAL 13250#else 13251# ifdef DL_GLOBAL 13252# define LT_DLGLOBAL DL_GLOBAL 13253# else 13254# define LT_DLGLOBAL 0 13255# endif 13256#endif 13257 13258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13259 find out it does not work in some platform. */ 13260#ifndef LT_DLLAZY_OR_NOW 13261# ifdef RTLD_LAZY 13262# define LT_DLLAZY_OR_NOW RTLD_LAZY 13263# else 13264# ifdef DL_LAZY 13265# define LT_DLLAZY_OR_NOW DL_LAZY 13266# else 13267# ifdef RTLD_NOW 13268# define LT_DLLAZY_OR_NOW RTLD_NOW 13269# else 13270# ifdef DL_NOW 13271# define LT_DLLAZY_OR_NOW DL_NOW 13272# else 13273# define LT_DLLAZY_OR_NOW 0 13274# endif 13275# endif 13276# endif 13277# endif 13278#endif 13279 13280/* When -fvisibility=hidden is used, assume the code has been annotated 13281 correspondingly for the symbols needed. */ 13282#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13283int fnord () __attribute__((visibility("default"))); 13284#endif 13285 13286int fnord () { return 42; } 13287int main () 13288{ 13289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13290 int status = $lt_dlunknown; 13291 13292 if (self) 13293 { 13294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13295 else 13296 { 13297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13298 else puts (dlerror ()); 13299 } 13300 /* dlclose (self); */ 13301 } 13302 else 13303 puts (dlerror ()); 13304 13305 return status; 13306} 13307_LT_EOF 13308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13309 (eval $ac_link) 2>&5 13310 ac_status=$? 13311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13312 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13313 (./conftest; exit; ) >&5 2>/dev/null 13314 lt_status=$? 13315 case x$lt_status in 13316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13319 esac 13320 else : 13321 # compilation failed 13322 lt_cv_dlopen_self_static=no 13323 fi 13324fi 13325rm -fr conftest* 13326 13327 13328fi 13329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13330printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13331 fi 13332 13333 CPPFLAGS=$save_CPPFLAGS 13334 LDFLAGS=$save_LDFLAGS 13335 LIBS=$save_LIBS 13336 ;; 13337 esac 13338 13339 case $lt_cv_dlopen_self in 13340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13341 *) enable_dlopen_self=unknown ;; 13342 esac 13343 13344 case $lt_cv_dlopen_self_static in 13345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13346 *) enable_dlopen_self_static=unknown ;; 13347 esac 13348fi 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366striplib= 13367old_striplib= 13368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13369printf %s "checking whether stripping libraries is possible... " >&6; } 13370if test -z "$STRIP"; then 13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13372printf "%s\n" "no" >&6; } 13373else 13374 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13375 old_striplib="$STRIP --strip-debug" 13376 striplib="$STRIP --strip-unneeded" 13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13378printf "%s\n" "yes" >&6; } 13379 else 13380 case $host_os in 13381 darwin*) 13382 # FIXME - insert some real tests, host_os isn't really good enough 13383 striplib="$STRIP -x" 13384 old_striplib="$STRIP -S" 13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13386printf "%s\n" "yes" >&6; } 13387 ;; 13388 freebsd*) 13389 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13390 old_striplib="$STRIP --strip-debug" 13391 striplib="$STRIP --strip-unneeded" 13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13393printf "%s\n" "yes" >&6; } 13394 else 13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13396printf "%s\n" "no" >&6; } 13397 fi 13398 ;; 13399 *) 13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13401printf "%s\n" "no" >&6; } 13402 ;; 13403 esac 13404 fi 13405fi 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 # Report what library types will actually be built 13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13420printf %s "checking if libtool supports shared libraries... " >&6; } 13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13422printf "%s\n" "$can_build_shared" >&6; } 13423 13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13425printf %s "checking whether to build shared libraries... " >&6; } 13426 test no = "$can_build_shared" && enable_shared=no 13427 13428 # On AIX, shared libraries and static libraries use the same namespace, and 13429 # are all built from PIC. 13430 case $host_os in 13431 aix3*) 13432 test yes = "$enable_shared" && enable_static=no 13433 if test -n "$RANLIB"; then 13434 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13435 postinstall_cmds='$RANLIB $lib' 13436 fi 13437 ;; 13438 13439 aix[4-9]*) 13440 if test ia64 != "$host_cpu"; then 13441 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13442 yes,aix,yes) ;; # shared object as lib.so file only 13443 yes,svr4,*) ;; # shared object as lib.so archive member only 13444 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13445 esac 13446 fi 13447 ;; 13448 esac 13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13450printf "%s\n" "$enable_shared" >&6; } 13451 13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13453printf %s "checking whether to build static libraries... " >&6; } 13454 # Make sure either enable_shared or enable_static is yes. 13455 test yes = "$enable_shared" || enable_static=yes 13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13457printf "%s\n" "$enable_static" >&6; } 13458 13459 13460 13461 13462fi 13463ac_ext=c 13464ac_cpp='$CPP $CPPFLAGS' 13465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13467ac_compiler_gnu=$ac_cv_c_compiler_gnu 13468 13469CC=$lt_save_CC 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 ac_config_commands="$ac_config_commands libtool" 13486 13487 13488 13489 13490# Only expand once: 13491 13492 13493 13494 13495ac_ext=c 13496ac_cpp='$CPP $CPPFLAGS' 13497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13499ac_compiler_gnu=$ac_cv_c_compiler_gnu 13500if test -n "$ac_tool_prefix"; then 13501 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 13502set dummy ${ac_tool_prefix}gcc; ac_word=$2 13503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13504printf %s "checking for $ac_word... " >&6; } 13505if test ${ac_cv_prog_CC+y} 13506then : 13507 printf %s "(cached) " >&6 13508else $as_nop 13509 if test -n "$CC"; then 13510 ac_cv_prog_CC="$CC" # Let the user override the test. 13511else 13512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13513for as_dir in $PATH 13514do 13515 IFS=$as_save_IFS 13516 case $as_dir in #((( 13517 '') as_dir=./ ;; 13518 */) ;; 13519 *) as_dir=$as_dir/ ;; 13520 esac 13521 for ac_exec_ext in '' $ac_executable_extensions; do 13522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13523 ac_cv_prog_CC="${ac_tool_prefix}gcc" 13524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13525 break 2 13526 fi 13527done 13528 done 13529IFS=$as_save_IFS 13530 13531fi 13532fi 13533CC=$ac_cv_prog_CC 13534if test -n "$CC"; then 13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13536printf "%s\n" "$CC" >&6; } 13537else 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13539printf "%s\n" "no" >&6; } 13540fi 13541 13542 13543fi 13544if test -z "$ac_cv_prog_CC"; then 13545 ac_ct_CC=$CC 13546 # Extract the first word of "gcc", so it can be a program name with args. 13547set dummy gcc; ac_word=$2 13548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13549printf %s "checking for $ac_word... " >&6; } 13550if test ${ac_cv_prog_ac_ct_CC+y} 13551then : 13552 printf %s "(cached) " >&6 13553else $as_nop 13554 if test -n "$ac_ct_CC"; then 13555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13556else 13557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13558for as_dir in $PATH 13559do 13560 IFS=$as_save_IFS 13561 case $as_dir in #((( 13562 '') as_dir=./ ;; 13563 */) ;; 13564 *) as_dir=$as_dir/ ;; 13565 esac 13566 for ac_exec_ext in '' $ac_executable_extensions; do 13567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13568 ac_cv_prog_ac_ct_CC="gcc" 13569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13570 break 2 13571 fi 13572done 13573 done 13574IFS=$as_save_IFS 13575 13576fi 13577fi 13578ac_ct_CC=$ac_cv_prog_ac_ct_CC 13579if test -n "$ac_ct_CC"; then 13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13581printf "%s\n" "$ac_ct_CC" >&6; } 13582else 13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13584printf "%s\n" "no" >&6; } 13585fi 13586 13587 if test "x$ac_ct_CC" = x; then 13588 CC="" 13589 else 13590 case $cross_compiling:$ac_tool_warned in 13591yes:) 13592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13593printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13594ac_tool_warned=yes ;; 13595esac 13596 CC=$ac_ct_CC 13597 fi 13598else 13599 CC="$ac_cv_prog_CC" 13600fi 13601 13602if test -z "$CC"; then 13603 if test -n "$ac_tool_prefix"; then 13604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 13605set dummy ${ac_tool_prefix}cc; ac_word=$2 13606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13607printf %s "checking for $ac_word... " >&6; } 13608if test ${ac_cv_prog_CC+y} 13609then : 13610 printf %s "(cached) " >&6 13611else $as_nop 13612 if test -n "$CC"; then 13613 ac_cv_prog_CC="$CC" # Let the user override the test. 13614else 13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13616for as_dir in $PATH 13617do 13618 IFS=$as_save_IFS 13619 case $as_dir in #((( 13620 '') as_dir=./ ;; 13621 */) ;; 13622 *) as_dir=$as_dir/ ;; 13623 esac 13624 for ac_exec_ext in '' $ac_executable_extensions; do 13625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13626 ac_cv_prog_CC="${ac_tool_prefix}cc" 13627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13628 break 2 13629 fi 13630done 13631 done 13632IFS=$as_save_IFS 13633 13634fi 13635fi 13636CC=$ac_cv_prog_CC 13637if test -n "$CC"; then 13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13639printf "%s\n" "$CC" >&6; } 13640else 13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13642printf "%s\n" "no" >&6; } 13643fi 13644 13645 13646 fi 13647fi 13648if test -z "$CC"; then 13649 # Extract the first word of "cc", so it can be a program name with args. 13650set dummy cc; ac_word=$2 13651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13652printf %s "checking for $ac_word... " >&6; } 13653if test ${ac_cv_prog_CC+y} 13654then : 13655 printf %s "(cached) " >&6 13656else $as_nop 13657 if test -n "$CC"; then 13658 ac_cv_prog_CC="$CC" # Let the user override the test. 13659else 13660 ac_prog_rejected=no 13661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13662for as_dir in $PATH 13663do 13664 IFS=$as_save_IFS 13665 case $as_dir in #((( 13666 '') as_dir=./ ;; 13667 */) ;; 13668 *) as_dir=$as_dir/ ;; 13669 esac 13670 for ac_exec_ext in '' $ac_executable_extensions; do 13671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13672 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 13673 ac_prog_rejected=yes 13674 continue 13675 fi 13676 ac_cv_prog_CC="cc" 13677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13678 break 2 13679 fi 13680done 13681 done 13682IFS=$as_save_IFS 13683 13684if test $ac_prog_rejected = yes; then 13685 # We found a bogon in the path, so make sure we never use it. 13686 set dummy $ac_cv_prog_CC 13687 shift 13688 if test $# != 0; then 13689 # We chose a different compiler from the bogus one. 13690 # However, it has the same basename, so the bogon will be chosen 13691 # first if we set CC to just the basename; use the full file name. 13692 shift 13693 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 13694 fi 13695fi 13696fi 13697fi 13698CC=$ac_cv_prog_CC 13699if test -n "$CC"; then 13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13701printf "%s\n" "$CC" >&6; } 13702else 13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13704printf "%s\n" "no" >&6; } 13705fi 13706 13707 13708fi 13709if test -z "$CC"; then 13710 if test -n "$ac_tool_prefix"; then 13711 for ac_prog in cl.exe 13712 do 13713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13714set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13716printf %s "checking for $ac_word... " >&6; } 13717if test ${ac_cv_prog_CC+y} 13718then : 13719 printf %s "(cached) " >&6 13720else $as_nop 13721 if test -n "$CC"; then 13722 ac_cv_prog_CC="$CC" # Let the user override the test. 13723else 13724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13725for as_dir in $PATH 13726do 13727 IFS=$as_save_IFS 13728 case $as_dir in #((( 13729 '') as_dir=./ ;; 13730 */) ;; 13731 *) as_dir=$as_dir/ ;; 13732 esac 13733 for ac_exec_ext in '' $ac_executable_extensions; do 13734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13737 break 2 13738 fi 13739done 13740 done 13741IFS=$as_save_IFS 13742 13743fi 13744fi 13745CC=$ac_cv_prog_CC 13746if test -n "$CC"; then 13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13748printf "%s\n" "$CC" >&6; } 13749else 13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13751printf "%s\n" "no" >&6; } 13752fi 13753 13754 13755 test -n "$CC" && break 13756 done 13757fi 13758if test -z "$CC"; then 13759 ac_ct_CC=$CC 13760 for ac_prog in cl.exe 13761do 13762 # Extract the first word of "$ac_prog", so it can be a program name with args. 13763set dummy $ac_prog; ac_word=$2 13764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13765printf %s "checking for $ac_word... " >&6; } 13766if test ${ac_cv_prog_ac_ct_CC+y} 13767then : 13768 printf %s "(cached) " >&6 13769else $as_nop 13770 if test -n "$ac_ct_CC"; then 13771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13772else 13773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13774for as_dir in $PATH 13775do 13776 IFS=$as_save_IFS 13777 case $as_dir in #((( 13778 '') as_dir=./ ;; 13779 */) ;; 13780 *) as_dir=$as_dir/ ;; 13781 esac 13782 for ac_exec_ext in '' $ac_executable_extensions; do 13783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13784 ac_cv_prog_ac_ct_CC="$ac_prog" 13785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13786 break 2 13787 fi 13788done 13789 done 13790IFS=$as_save_IFS 13791 13792fi 13793fi 13794ac_ct_CC=$ac_cv_prog_ac_ct_CC 13795if test -n "$ac_ct_CC"; then 13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13797printf "%s\n" "$ac_ct_CC" >&6; } 13798else 13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13800printf "%s\n" "no" >&6; } 13801fi 13802 13803 13804 test -n "$ac_ct_CC" && break 13805done 13806 13807 if test "x$ac_ct_CC" = x; then 13808 CC="" 13809 else 13810 case $cross_compiling:$ac_tool_warned in 13811yes:) 13812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13813printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13814ac_tool_warned=yes ;; 13815esac 13816 CC=$ac_ct_CC 13817 fi 13818fi 13819 13820fi 13821if test -z "$CC"; then 13822 if test -n "$ac_tool_prefix"; then 13823 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 13824set dummy ${ac_tool_prefix}clang; ac_word=$2 13825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13826printf %s "checking for $ac_word... " >&6; } 13827if test ${ac_cv_prog_CC+y} 13828then : 13829 printf %s "(cached) " >&6 13830else $as_nop 13831 if test -n "$CC"; then 13832 ac_cv_prog_CC="$CC" # Let the user override the test. 13833else 13834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13835for as_dir in $PATH 13836do 13837 IFS=$as_save_IFS 13838 case $as_dir in #((( 13839 '') as_dir=./ ;; 13840 */) ;; 13841 *) as_dir=$as_dir/ ;; 13842 esac 13843 for ac_exec_ext in '' $ac_executable_extensions; do 13844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13845 ac_cv_prog_CC="${ac_tool_prefix}clang" 13846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13847 break 2 13848 fi 13849done 13850 done 13851IFS=$as_save_IFS 13852 13853fi 13854fi 13855CC=$ac_cv_prog_CC 13856if test -n "$CC"; then 13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13858printf "%s\n" "$CC" >&6; } 13859else 13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13861printf "%s\n" "no" >&6; } 13862fi 13863 13864 13865fi 13866if test -z "$ac_cv_prog_CC"; then 13867 ac_ct_CC=$CC 13868 # Extract the first word of "clang", so it can be a program name with args. 13869set dummy clang; ac_word=$2 13870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13871printf %s "checking for $ac_word... " >&6; } 13872if test ${ac_cv_prog_ac_ct_CC+y} 13873then : 13874 printf %s "(cached) " >&6 13875else $as_nop 13876 if test -n "$ac_ct_CC"; then 13877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13878else 13879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13880for as_dir in $PATH 13881do 13882 IFS=$as_save_IFS 13883 case $as_dir in #((( 13884 '') as_dir=./ ;; 13885 */) ;; 13886 *) as_dir=$as_dir/ ;; 13887 esac 13888 for ac_exec_ext in '' $ac_executable_extensions; do 13889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13890 ac_cv_prog_ac_ct_CC="clang" 13891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13892 break 2 13893 fi 13894done 13895 done 13896IFS=$as_save_IFS 13897 13898fi 13899fi 13900ac_ct_CC=$ac_cv_prog_ac_ct_CC 13901if test -n "$ac_ct_CC"; then 13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13903printf "%s\n" "$ac_ct_CC" >&6; } 13904else 13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13906printf "%s\n" "no" >&6; } 13907fi 13908 13909 if test "x$ac_ct_CC" = x; then 13910 CC="" 13911 else 13912 case $cross_compiling:$ac_tool_warned in 13913yes:) 13914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13915printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13916ac_tool_warned=yes ;; 13917esac 13918 CC=$ac_ct_CC 13919 fi 13920else 13921 CC="$ac_cv_prog_CC" 13922fi 13923 13924fi 13925 13926 13927test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13928printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13929as_fn_error $? "no acceptable C compiler found in \$PATH 13930See \`config.log' for more details" "$LINENO" 5; } 13931 13932# Provide some information about the compiler. 13933printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13934set X $ac_compile 13935ac_compiler=$2 13936for ac_option in --version -v -V -qversion -version; do 13937 { { ac_try="$ac_compiler $ac_option >&5" 13938case "(($ac_try" in 13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13940 *) ac_try_echo=$ac_try;; 13941esac 13942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13943printf "%s\n" "$ac_try_echo"; } >&5 13944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13945 ac_status=$? 13946 if test -s conftest.err; then 13947 sed '10a\ 13948... rest of stderr output deleted ... 13949 10q' conftest.err >conftest.er1 13950 cat conftest.er1 >&5 13951 fi 13952 rm -f conftest.er1 conftest.err 13953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13954 test $ac_status = 0; } 13955done 13956 13957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 13958printf %s "checking whether the compiler supports GNU C... " >&6; } 13959if test ${ac_cv_c_compiler_gnu+y} 13960then : 13961 printf %s "(cached) " >&6 13962else $as_nop 13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13964/* end confdefs.h. */ 13965 13966int 13967main (void) 13968{ 13969#ifndef __GNUC__ 13970 choke me 13971#endif 13972 13973 ; 13974 return 0; 13975} 13976_ACEOF 13977if ac_fn_c_try_compile "$LINENO" 13978then : 13979 ac_compiler_gnu=yes 13980else $as_nop 13981 ac_compiler_gnu=no 13982fi 13983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13984ac_cv_c_compiler_gnu=$ac_compiler_gnu 13985 13986fi 13987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13988printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 13989ac_compiler_gnu=$ac_cv_c_compiler_gnu 13990 13991if test $ac_compiler_gnu = yes; then 13992 GCC=yes 13993else 13994 GCC= 13995fi 13996ac_test_CFLAGS=${CFLAGS+y} 13997ac_save_CFLAGS=$CFLAGS 13998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13999printf %s "checking whether $CC accepts -g... " >&6; } 14000if test ${ac_cv_prog_cc_g+y} 14001then : 14002 printf %s "(cached) " >&6 14003else $as_nop 14004 ac_save_c_werror_flag=$ac_c_werror_flag 14005 ac_c_werror_flag=yes 14006 ac_cv_prog_cc_g=no 14007 CFLAGS="-g" 14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14009/* end confdefs.h. */ 14010 14011int 14012main (void) 14013{ 14014 14015 ; 14016 return 0; 14017} 14018_ACEOF 14019if ac_fn_c_try_compile "$LINENO" 14020then : 14021 ac_cv_prog_cc_g=yes 14022else $as_nop 14023 CFLAGS="" 14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14025/* end confdefs.h. */ 14026 14027int 14028main (void) 14029{ 14030 14031 ; 14032 return 0; 14033} 14034_ACEOF 14035if ac_fn_c_try_compile "$LINENO" 14036then : 14037 14038else $as_nop 14039 ac_c_werror_flag=$ac_save_c_werror_flag 14040 CFLAGS="-g" 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14042/* end confdefs.h. */ 14043 14044int 14045main (void) 14046{ 14047 14048 ; 14049 return 0; 14050} 14051_ACEOF 14052if ac_fn_c_try_compile "$LINENO" 14053then : 14054 ac_cv_prog_cc_g=yes 14055fi 14056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14057fi 14058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14059fi 14060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14061 ac_c_werror_flag=$ac_save_c_werror_flag 14062fi 14063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 14064printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 14065if test $ac_test_CFLAGS; then 14066 CFLAGS=$ac_save_CFLAGS 14067elif test $ac_cv_prog_cc_g = yes; then 14068 if test "$GCC" = yes; then 14069 CFLAGS="-g -O2" 14070 else 14071 CFLAGS="-g" 14072 fi 14073else 14074 if test "$GCC" = yes; then 14075 CFLAGS="-O2" 14076 else 14077 CFLAGS= 14078 fi 14079fi 14080ac_prog_cc_stdc=no 14081if test x$ac_prog_cc_stdc = xno 14082then : 14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 14084printf %s "checking for $CC option to enable C11 features... " >&6; } 14085if test ${ac_cv_prog_cc_c11+y} 14086then : 14087 printf %s "(cached) " >&6 14088else $as_nop 14089 ac_cv_prog_cc_c11=no 14090ac_save_CC=$CC 14091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092/* end confdefs.h. */ 14093$ac_c_conftest_c11_program 14094_ACEOF 14095for ac_arg in '' -std=gnu11 14096do 14097 CC="$ac_save_CC $ac_arg" 14098 if ac_fn_c_try_compile "$LINENO" 14099then : 14100 ac_cv_prog_cc_c11=$ac_arg 14101fi 14102rm -f core conftest.err conftest.$ac_objext conftest.beam 14103 test "x$ac_cv_prog_cc_c11" != "xno" && break 14104done 14105rm -f conftest.$ac_ext 14106CC=$ac_save_CC 14107fi 14108 14109if test "x$ac_cv_prog_cc_c11" = xno 14110then : 14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14112printf "%s\n" "unsupported" >&6; } 14113else $as_nop 14114 if test "x$ac_cv_prog_cc_c11" = x 14115then : 14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14117printf "%s\n" "none needed" >&6; } 14118else $as_nop 14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 14120printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 14121 CC="$CC $ac_cv_prog_cc_c11" 14122fi 14123 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 14124 ac_prog_cc_stdc=c11 14125fi 14126fi 14127if test x$ac_prog_cc_stdc = xno 14128then : 14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 14130printf %s "checking for $CC option to enable C99 features... " >&6; } 14131if test ${ac_cv_prog_cc_c99+y} 14132then : 14133 printf %s "(cached) " >&6 14134else $as_nop 14135 ac_cv_prog_cc_c99=no 14136ac_save_CC=$CC 14137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14138/* end confdefs.h. */ 14139$ac_c_conftest_c99_program 14140_ACEOF 14141for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 14142do 14143 CC="$ac_save_CC $ac_arg" 14144 if ac_fn_c_try_compile "$LINENO" 14145then : 14146 ac_cv_prog_cc_c99=$ac_arg 14147fi 14148rm -f core conftest.err conftest.$ac_objext conftest.beam 14149 test "x$ac_cv_prog_cc_c99" != "xno" && break 14150done 14151rm -f conftest.$ac_ext 14152CC=$ac_save_CC 14153fi 14154 14155if test "x$ac_cv_prog_cc_c99" = xno 14156then : 14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14158printf "%s\n" "unsupported" >&6; } 14159else $as_nop 14160 if test "x$ac_cv_prog_cc_c99" = x 14161then : 14162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14163printf "%s\n" "none needed" >&6; } 14164else $as_nop 14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 14166printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 14167 CC="$CC $ac_cv_prog_cc_c99" 14168fi 14169 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 14170 ac_prog_cc_stdc=c99 14171fi 14172fi 14173if test x$ac_prog_cc_stdc = xno 14174then : 14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 14176printf %s "checking for $CC option to enable C89 features... " >&6; } 14177if test ${ac_cv_prog_cc_c89+y} 14178then : 14179 printf %s "(cached) " >&6 14180else $as_nop 14181 ac_cv_prog_cc_c89=no 14182ac_save_CC=$CC 14183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14184/* end confdefs.h. */ 14185$ac_c_conftest_c89_program 14186_ACEOF 14187for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 14188do 14189 CC="$ac_save_CC $ac_arg" 14190 if ac_fn_c_try_compile "$LINENO" 14191then : 14192 ac_cv_prog_cc_c89=$ac_arg 14193fi 14194rm -f core conftest.err conftest.$ac_objext conftest.beam 14195 test "x$ac_cv_prog_cc_c89" != "xno" && break 14196done 14197rm -f conftest.$ac_ext 14198CC=$ac_save_CC 14199fi 14200 14201if test "x$ac_cv_prog_cc_c89" = xno 14202then : 14203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14204printf "%s\n" "unsupported" >&6; } 14205else $as_nop 14206 if test "x$ac_cv_prog_cc_c89" = x 14207then : 14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14209printf "%s\n" "none needed" >&6; } 14210else $as_nop 14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 14212printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 14213 CC="$CC $ac_cv_prog_cc_c89" 14214fi 14215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 14216 ac_prog_cc_stdc=c89 14217fi 14218fi 14219 14220ac_ext=c 14221ac_cpp='$CPP $CPPFLAGS' 14222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14224ac_compiler_gnu=$ac_cv_c_compiler_gnu 14225 14226 14227 ac_ext=c 14228ac_cpp='$CPP $CPPFLAGS' 14229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14231ac_compiler_gnu=$ac_cv_c_compiler_gnu 14232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 14233printf %s "checking whether $CC understands -c and -o together... " >&6; } 14234if test ${am_cv_prog_cc_c_o+y} 14235then : 14236 printf %s "(cached) " >&6 14237else $as_nop 14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14239/* end confdefs.h. */ 14240 14241int 14242main (void) 14243{ 14244 14245 ; 14246 return 0; 14247} 14248_ACEOF 14249 # Make sure it works both with $CC and with simple cc. 14250 # Following AC_PROG_CC_C_O, we do the test twice because some 14251 # compilers refuse to overwrite an existing .o file with -o, 14252 # though they will create one. 14253 am_cv_prog_cc_c_o=yes 14254 for am_i in 1 2; do 14255 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 14256 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 14257 ac_status=$? 14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14259 (exit $ac_status); } \ 14260 && test -f conftest2.$ac_objext; then 14261 : OK 14262 else 14263 am_cv_prog_cc_c_o=no 14264 break 14265 fi 14266 done 14267 rm -f core conftest* 14268 unset am_i 14269fi 14270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 14271printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 14272if test "$am_cv_prog_cc_c_o" != yes; then 14273 # Losing compiler, so override with the script. 14274 # FIXME: It is wrong to rewrite CC. 14275 # But if we don't then we get into trouble of one sort or another. 14276 # A longer-term fix would be to have automake use am__CC in this case, 14277 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 14278 CC="$am_aux_dir/compile $CC" 14279fi 14280ac_ext=c 14281ac_cpp='$CPP $CPPFLAGS' 14282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14284ac_compiler_gnu=$ac_cv_c_compiler_gnu 14285 14286 14287depcc="$CC" am_compiler_list= 14288 14289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 14290printf %s "checking dependency style of $depcc... " >&6; } 14291if test ${am_cv_CC_dependencies_compiler_type+y} 14292then : 14293 printf %s "(cached) " >&6 14294else $as_nop 14295 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 14296 # We make a subdir and do the tests there. Otherwise we can end up 14297 # making bogus files that we don't know about and never remove. For 14298 # instance it was reported that on HP-UX the gcc test will end up 14299 # making a dummy file named 'D' -- because '-MD' means "put the output 14300 # in D". 14301 rm -rf conftest.dir 14302 mkdir conftest.dir 14303 # Copy depcomp to subdir because otherwise we won't find it if we're 14304 # using a relative directory. 14305 cp "$am_depcomp" conftest.dir 14306 cd conftest.dir 14307 # We will build objects and dependencies in a subdirectory because 14308 # it helps to detect inapplicable dependency modes. For instance 14309 # both Tru64's cc and ICC support -MD to output dependencies as a 14310 # side effect of compilation, but ICC will put the dependencies in 14311 # the current directory while Tru64 will put them in the object 14312 # directory. 14313 mkdir sub 14314 14315 am_cv_CC_dependencies_compiler_type=none 14316 if test "$am_compiler_list" = ""; then 14317 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 14318 fi 14319 am__universal=false 14320 case " $depcc " in #( 14321 *\ -arch\ *\ -arch\ *) am__universal=true ;; 14322 esac 14323 14324 for depmode in $am_compiler_list; do 14325 # Setup a source with many dependencies, because some compilers 14326 # like to wrap large dependency lists on column 80 (with \), and 14327 # we should not choose a depcomp mode which is confused by this. 14328 # 14329 # We need to recreate these files for each test, as the compiler may 14330 # overwrite some of them when testing with obscure command lines. 14331 # This happens at least with the AIX C compiler. 14332 : > sub/conftest.c 14333 for i in 1 2 3 4 5 6; do 14334 echo '#include "conftst'$i'.h"' >> sub/conftest.c 14335 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 14336 # Solaris 10 /bin/sh. 14337 echo '/* dummy */' > sub/conftst$i.h 14338 done 14339 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 14340 14341 # We check with '-c' and '-o' for the sake of the "dashmstdout" 14342 # mode. It turns out that the SunPro C++ compiler does not properly 14343 # handle '-M -o', and we need to detect this. Also, some Intel 14344 # versions had trouble with output in subdirs. 14345 am__obj=sub/conftest.${OBJEXT-o} 14346 am__minus_obj="-o $am__obj" 14347 case $depmode in 14348 gcc) 14349 # This depmode causes a compiler race in universal mode. 14350 test "$am__universal" = false || continue 14351 ;; 14352 nosideeffect) 14353 # After this tag, mechanisms are not by side-effect, so they'll 14354 # only be used when explicitly requested. 14355 if test "x$enable_dependency_tracking" = xyes; then 14356 continue 14357 else 14358 break 14359 fi 14360 ;; 14361 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 14362 # This compiler won't grok '-c -o', but also, the minuso test has 14363 # not run yet. These depmodes are late enough in the game, and 14364 # so weak that their functioning should not be impacted. 14365 am__obj=conftest.${OBJEXT-o} 14366 am__minus_obj= 14367 ;; 14368 none) break ;; 14369 esac 14370 if depmode=$depmode \ 14371 source=sub/conftest.c object=$am__obj \ 14372 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 14373 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 14374 >/dev/null 2>conftest.err && 14375 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 14376 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 14377 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 14378 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 14379 # icc doesn't choke on unknown options, it will just issue warnings 14380 # or remarks (even with -Werror). So we grep stderr for any message 14381 # that says an option was ignored or not supported. 14382 # When given -MP, icc 7.0 and 7.1 complain thusly: 14383 # icc: Command line warning: ignoring option '-M'; no argument required 14384 # The diagnosis changed in icc 8.0: 14385 # icc: Command line remark: option '-MP' not supported 14386 if (grep 'ignoring option' conftest.err || 14387 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 14388 am_cv_CC_dependencies_compiler_type=$depmode 14389 break 14390 fi 14391 fi 14392 done 14393 14394 cd .. 14395 rm -rf conftest.dir 14396else 14397 am_cv_CC_dependencies_compiler_type=none 14398fi 14399 14400fi 14401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 14402printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 14403CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 14404 14405 if 14406 test "x$enable_dependency_tracking" != xno \ 14407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 14408 am__fastdepCC_TRUE= 14409 am__fastdepCC_FALSE='#' 14410else 14411 am__fastdepCC_TRUE='#' 14412 am__fastdepCC_FALSE= 14413fi 14414 14415 14416 14417ac_ext=c 14418ac_cpp='$CPP $CPPFLAGS' 14419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14421ac_compiler_gnu=$ac_cv_c_compiler_gnu 14422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 14423printf %s "checking how to run the C preprocessor... " >&6; } 14424# On Suns, sometimes $CPP names a directory. 14425if test -n "$CPP" && test -d "$CPP"; then 14426 CPP= 14427fi 14428if test -z "$CPP"; then 14429 if test ${ac_cv_prog_CPP+y} 14430then : 14431 printf %s "(cached) " >&6 14432else $as_nop 14433 # Double quotes because $CC needs to be expanded 14434 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 14435 do 14436 ac_preproc_ok=false 14437for ac_c_preproc_warn_flag in '' yes 14438do 14439 # Use a header file that comes with gcc, so configuring glibc 14440 # with a fresh cross-compiler works. 14441 # On the NeXT, cc -E runs the code through the compiler's parser, 14442 # not just through cpp. "Syntax error" is here to catch this case. 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14444/* end confdefs.h. */ 14445#include <limits.h> 14446 Syntax error 14447_ACEOF 14448if ac_fn_c_try_cpp "$LINENO" 14449then : 14450 14451else $as_nop 14452 # Broken: fails on valid input. 14453continue 14454fi 14455rm -f conftest.err conftest.i conftest.$ac_ext 14456 14457 # OK, works on sane cases. Now check whether nonexistent headers 14458 # can be detected and how. 14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14460/* end confdefs.h. */ 14461#include <ac_nonexistent.h> 14462_ACEOF 14463if ac_fn_c_try_cpp "$LINENO" 14464then : 14465 # Broken: success on invalid input. 14466continue 14467else $as_nop 14468 # Passes both tests. 14469ac_preproc_ok=: 14470break 14471fi 14472rm -f conftest.err conftest.i conftest.$ac_ext 14473 14474done 14475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14476rm -f conftest.i conftest.err conftest.$ac_ext 14477if $ac_preproc_ok 14478then : 14479 break 14480fi 14481 14482 done 14483 ac_cv_prog_CPP=$CPP 14484 14485fi 14486 CPP=$ac_cv_prog_CPP 14487else 14488 ac_cv_prog_CPP=$CPP 14489fi 14490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 14491printf "%s\n" "$CPP" >&6; } 14492ac_preproc_ok=false 14493for ac_c_preproc_warn_flag in '' yes 14494do 14495 # Use a header file that comes with gcc, so configuring glibc 14496 # with a fresh cross-compiler works. 14497 # On the NeXT, cc -E runs the code through the compiler's parser, 14498 # not just through cpp. "Syntax error" is here to catch this case. 14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500/* end confdefs.h. */ 14501#include <limits.h> 14502 Syntax error 14503_ACEOF 14504if ac_fn_c_try_cpp "$LINENO" 14505then : 14506 14507else $as_nop 14508 # Broken: fails on valid input. 14509continue 14510fi 14511rm -f conftest.err conftest.i conftest.$ac_ext 14512 14513 # OK, works on sane cases. Now check whether nonexistent headers 14514 # can be detected and how. 14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14516/* end confdefs.h. */ 14517#include <ac_nonexistent.h> 14518_ACEOF 14519if ac_fn_c_try_cpp "$LINENO" 14520then : 14521 # Broken: success on invalid input. 14522continue 14523else $as_nop 14524 # Passes both tests. 14525ac_preproc_ok=: 14526break 14527fi 14528rm -f conftest.err conftest.i conftest.$ac_ext 14529 14530done 14531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14532rm -f conftest.i conftest.err conftest.$ac_ext 14533if $ac_preproc_ok 14534then : 14535 14536else $as_nop 14537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14538printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 14539as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 14540See \`config.log' for more details" "$LINENO" 5; } 14541fi 14542 14543ac_ext=c 14544ac_cpp='$CPP $CPPFLAGS' 14545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14547ac_compiler_gnu=$ac_cv_c_compiler_gnu 14548 14549 14550 14551 14552 14553 14554 14555 # Find any Python interpreter. 14556 if test -z "$PYTHON"; then 14557 for ac_prog in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 14558do 14559 # Extract the first word of "$ac_prog", so it can be a program name with args. 14560set dummy $ac_prog; ac_word=$2 14561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14562printf %s "checking for $ac_word... " >&6; } 14563if test ${ac_cv_path_PYTHON+y} 14564then : 14565 printf %s "(cached) " >&6 14566else $as_nop 14567 case $PYTHON in 14568 [\\/]* | ?:[\\/]*) 14569 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 14570 ;; 14571 *) 14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14573for as_dir in $PATH 14574do 14575 IFS=$as_save_IFS 14576 case $as_dir in #((( 14577 '') as_dir=./ ;; 14578 */) ;; 14579 *) as_dir=$as_dir/ ;; 14580 esac 14581 for ac_exec_ext in '' $ac_executable_extensions; do 14582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14583 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 14584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14585 break 2 14586 fi 14587done 14588 done 14589IFS=$as_save_IFS 14590 14591 ;; 14592esac 14593fi 14594PYTHON=$ac_cv_path_PYTHON 14595if test -n "$PYTHON"; then 14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 14597printf "%s\n" "$PYTHON" >&6; } 14598else 14599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14600printf "%s\n" "no" >&6; } 14601fi 14602 14603 14604 test -n "$PYTHON" && break 14605done 14606test -n "$PYTHON" || PYTHON=":" 14607 14608 fi 14609 am_display_PYTHON=python 14610 14611 14612 if test "$PYTHON" = :; then 14613 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 14614 else 14615 14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 14617printf %s "checking for $am_display_PYTHON version... " >&6; } 14618if test ${am_cv_python_version+y} 14619then : 14620 printf %s "(cached) " >&6 14621else $as_nop 14622 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 14623fi 14624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 14625printf "%s\n" "$am_cv_python_version" >&6; } 14626 PYTHON_VERSION=$am_cv_python_version 14627 14628 14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 14630printf %s "checking for $am_display_PYTHON platform... " >&6; } 14631if test ${am_cv_python_platform+y} 14632then : 14633 printf %s "(cached) " >&6 14634else $as_nop 14635 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 14636fi 14637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 14638printf "%s\n" "$am_cv_python_platform" >&6; } 14639 PYTHON_PLATFORM=$am_cv_python_platform 14640 14641 14642 if test "x$prefix" = xNONE; then 14643 am__usable_prefix=$ac_default_prefix 14644 else 14645 am__usable_prefix=$prefix 14646 fi 14647 14648 # Allow user to request using sys.* values from Python, 14649 # instead of the GNU $prefix values. 14650 14651# Check whether --with-python-sys-prefix was given. 14652if test ${with_python_sys_prefix+y} 14653then : 14654 withval=$with_python_sys_prefix; am_use_python_sys=: 14655else $as_nop 14656 am_use_python_sys=false 14657fi 14658 14659 14660 # Allow user to override whatever the default Python prefix is. 14661 14662# Check whether --with-python_prefix was given. 14663if test ${with_python_prefix+y} 14664then : 14665 withval=$with_python_prefix; am_python_prefix_subst=$withval 14666 am_cv_python_prefix=$withval 14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 14668printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 14670printf "%s\n" "$am_cv_python_prefix" >&6; } 14671else $as_nop 14672 14673 if $am_use_python_sys; then 14674 # using python sys.prefix value, not GNU 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 14676printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 14677if test ${am_cv_python_prefix+y} 14678then : 14679 printf %s "(cached) " >&6 14680else $as_nop 14681 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 14682fi 14683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 14684printf "%s\n" "$am_cv_python_prefix" >&6; } 14685 14686 case $am_cv_python_prefix in 14687 $am__usable_prefix*) 14688 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 14689 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 14690 ;; 14691 *) 14692 am_python_prefix_subst=$am_cv_python_prefix 14693 ;; 14694 esac 14695 else # using GNU prefix value, not python sys.prefix 14696 am_python_prefix_subst='${prefix}' 14697 am_python_prefix=$am_python_prefix_subst 14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 14699printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 14701printf "%s\n" "$am_python_prefix" >&6; } 14702 fi 14703fi 14704 14705 # Substituting python_prefix_subst value. 14706 PYTHON_PREFIX=$am_python_prefix_subst 14707 14708 14709 # emacs-page Now do it all over again for Python exec_prefix, but with yet 14710 # another conditional: fall back to regular prefix if that was specified. 14711 14712# Check whether --with-python_exec_prefix was given. 14713if test ${with_python_exec_prefix+y} 14714then : 14715 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 14716 am_cv_python_exec_prefix=$withval 14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 14718printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14720printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14721else $as_nop 14722 14723 # no explicit --with-python_exec_prefix, but if 14724 # --with-python_prefix was given, use its value for python_exec_prefix too. 14725 if test -n "$with_python_prefix" 14726then : 14727 am_python_exec_prefix_subst=$with_python_prefix 14728 am_cv_python_exec_prefix=$with_python_prefix 14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 14730printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14732printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14733else $as_nop 14734 14735 # Set am__usable_exec_prefix whether using GNU or Python values, 14736 # since we use that variable for pyexecdir. 14737 if test "x$exec_prefix" = xNONE; then 14738 am__usable_exec_prefix=$am__usable_prefix 14739 else 14740 am__usable_exec_prefix=$exec_prefix 14741 fi 14742 # 14743 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 14745printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 14746if test ${am_cv_python_exec_prefix+y} 14747then : 14748 printf %s "(cached) " >&6 14749else $as_nop 14750 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 14751fi 14752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14753printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14754 case $am_cv_python_exec_prefix in 14755 $am__usable_exec_prefix*) 14756 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 14757 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 14758 ;; 14759 *) 14760 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 14761 ;; 14762 esac 14763 else # using GNU $exec_prefix, not python sys.exec_prefix 14764 am_python_exec_prefix_subst='${exec_prefix}' 14765 am_python_exec_prefix=$am_python_exec_prefix_subst 14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 14767printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 14769printf "%s\n" "$am_python_exec_prefix" >&6; } 14770 fi 14771fi 14772fi 14773 14774 # Substituting python_exec_prefix_subst. 14775 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 14776 14777 14778 # Factor out some code duplication into this shell variable. 14779 am_python_setup_sysconfig="\ 14780import sys 14781# Prefer sysconfig over distutils.sysconfig, for better compatibility 14782# with python 3.x. See automake bug#10227. 14783try: 14784 import sysconfig 14785except ImportError: 14786 can_use_sysconfig = 0 14787else: 14788 can_use_sysconfig = 1 14789# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 14790# <https://github.com/pypa/virtualenv/issues/118> 14791try: 14792 from platform import python_implementation 14793 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 14794 can_use_sysconfig = 0 14795except ImportError: 14796 pass" 14797 14798 14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 14800printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 14801if test ${am_cv_python_pythondir+y} 14802then : 14803 printf %s "(cached) " >&6 14804else $as_nop 14805 if test "x$am_cv_python_prefix" = x; then 14806 am_py_prefix=$am__usable_prefix 14807 else 14808 am_py_prefix=$am_cv_python_prefix 14809 fi 14810 am_cv_python_pythondir=`$PYTHON -c " 14811$am_python_setup_sysconfig 14812if can_use_sysconfig: 14813 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 14814else: 14815 from distutils import sysconfig 14816 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 14817sys.stdout.write(sitedir)"` 14818 # 14819 case $am_cv_python_pythondir in 14820 $am_py_prefix*) 14821 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 14822 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 14823 ;; 14824 *) 14825 case $am_py_prefix in 14826 /usr|/System*) ;; 14827 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 14828 ;; 14829 esac 14830 ;; 14831 esac 14832 14833fi 14834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 14835printf "%s\n" "$am_cv_python_pythondir" >&6; } 14836 pythondir=$am_cv_python_pythondir 14837 14838 14839 pkgpythondir=\${pythondir}/$PACKAGE 14840 14841 14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 14843printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 14844if test ${am_cv_python_pyexecdir+y} 14845then : 14846 printf %s "(cached) " >&6 14847else $as_nop 14848 if test "x$am_cv_python_exec_prefix" = x; then 14849 am_py_exec_prefix=$am__usable_exec_prefix 14850 else 14851 am_py_exec_prefix=$am_cv_python_exec_prefix 14852 fi 14853 am_cv_python_pyexecdir=`$PYTHON -c " 14854$am_python_setup_sysconfig 14855if can_use_sysconfig: 14856 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 14857else: 14858 from distutils import sysconfig 14859 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 14860sys.stdout.write(sitedir)"` 14861 # 14862 case $am_cv_python_pyexecdir in 14863 $am_py_exec_prefix*) 14864 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 14865 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 14866 ;; 14867 *) 14868 case $am_py_exec_prefix in 14869 /usr|/System*) ;; 14870 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 14871 ;; 14872 esac 14873 ;; 14874 esac 14875 14876fi 14877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 14878printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 14879 pyexecdir=$am_cv_python_pyexecdir 14880 14881 14882 pkgpyexecdir=\${pyexecdir}/$PACKAGE 14883 14884 14885 14886 fi 14887 14888# Extract the first word of "clang-format", so it can be a program name with args. 14889set dummy clang-format; ac_word=$2 14890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14891printf %s "checking for $ac_word... " >&6; } 14892if test ${ac_cv_prog_CLANG_FORMAT+y} 14893then : 14894 printf %s "(cached) " >&6 14895else $as_nop 14896 if test -n "$CLANG_FORMAT"; then 14897 ac_cv_prog_CLANG_FORMAT="$CLANG_FORMAT" # Let the user override the test. 14898else 14899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14900for as_dir in $PATH 14901do 14902 IFS=$as_save_IFS 14903 case $as_dir in #((( 14904 '') as_dir=./ ;; 14905 */) ;; 14906 *) as_dir=$as_dir/ ;; 14907 esac 14908 for ac_exec_ext in '' $ac_executable_extensions; do 14909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14910 ac_cv_prog_CLANG_FORMAT="clang-format" 14911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14912 break 2 14913 fi 14914done 14915 done 14916IFS=$as_save_IFS 14917 14918 test -z "$ac_cv_prog_CLANG_FORMAT" && ac_cv_prog_CLANG_FORMAT="no" 14919fi 14920fi 14921CLANG_FORMAT=$ac_cv_prog_CLANG_FORMAT 14922if test -n "$CLANG_FORMAT"; then 14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG_FORMAT" >&5 14924printf "%s\n" "$CLANG_FORMAT" >&6; } 14925else 14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14927printf "%s\n" "no" >&6; } 14928fi 14929 14930 14931 14932# Check whether --enable-silent-rules was given. 14933if test ${enable_silent_rules+y} 14934then : 14935 enableval=$enable_silent_rules; 14936fi 14937 14938case $enable_silent_rules in # ((( 14939 yes) AM_DEFAULT_VERBOSITY=0;; 14940 no) AM_DEFAULT_VERBOSITY=1;; 14941 *) AM_DEFAULT_VERBOSITY=0;; 14942esac 14943am_make=${MAKE-make} 14944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 14945printf %s "checking whether $am_make supports nested variables... " >&6; } 14946if test ${am_cv_make_support_nested_variables+y} 14947then : 14948 printf %s "(cached) " >&6 14949else $as_nop 14950 if printf "%s\n" 'TRUE=$(BAR$(V)) 14951BAR0=false 14952BAR1=true 14953V=1 14954am__doit: 14955 @$(TRUE) 14956.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 14957 am_cv_make_support_nested_variables=yes 14958else 14959 am_cv_make_support_nested_variables=no 14960fi 14961fi 14962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 14963printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 14964if test $am_cv_make_support_nested_variables = yes; then 14965 AM_V='$(V)' 14966 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 14967else 14968 AM_V=$AM_DEFAULT_VERBOSITY 14969 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 14970fi 14971AM_BACKSLASH='\' 14972 14973 14974 14975 14976test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc' 14977test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal' 14978 14979 14980CANONICAL_HOST=$host 14981 14982 14983# Check whether --enable-largefile was given. 14984if test ${enable_largefile+y} 14985then : 14986 enableval=$enable_largefile; 14987fi 14988 14989if test "$enable_largefile" != no; then 14990 14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14992printf %s "checking for special C compiler options needed for large files... " >&6; } 14993if test ${ac_cv_sys_largefile_CC+y} 14994then : 14995 printf %s "(cached) " >&6 14996else $as_nop 14997 ac_cv_sys_largefile_CC=no 14998 if test "$GCC" != yes; then 14999 ac_save_CC=$CC 15000 while :; do 15001 # IRIX 6.2 and later do not support large files by default, 15002 # so use the C compiler's -n32 option if that helps. 15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15004/* end confdefs.h. */ 15005#include <sys/types.h> 15006 /* Check that off_t can represent 2**63 - 1 correctly. 15007 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15008 since some C++ compilers masquerading as C compilers 15009 incorrectly reject 9223372036854775807. */ 15010#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15012 && LARGE_OFF_T % 2147483647 == 1) 15013 ? 1 : -1]; 15014int 15015main (void) 15016{ 15017 15018 ; 15019 return 0; 15020} 15021_ACEOF 15022 if ac_fn_c_try_compile "$LINENO" 15023then : 15024 break 15025fi 15026rm -f core conftest.err conftest.$ac_objext conftest.beam 15027 CC="$CC -n32" 15028 if ac_fn_c_try_compile "$LINENO" 15029then : 15030 ac_cv_sys_largefile_CC=' -n32'; break 15031fi 15032rm -f core conftest.err conftest.$ac_objext conftest.beam 15033 break 15034 done 15035 CC=$ac_save_CC 15036 rm -f conftest.$ac_ext 15037 fi 15038fi 15039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15040printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 15041 if test "$ac_cv_sys_largefile_CC" != no; then 15042 CC=$CC$ac_cv_sys_largefile_CC 15043 fi 15044 15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15046printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15047if test ${ac_cv_sys_file_offset_bits+y} 15048then : 15049 printf %s "(cached) " >&6 15050else $as_nop 15051 while :; do 15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15053/* end confdefs.h. */ 15054#include <sys/types.h> 15055 /* Check that off_t can represent 2**63 - 1 correctly. 15056 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15057 since some C++ compilers masquerading as C compilers 15058 incorrectly reject 9223372036854775807. */ 15059#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15061 && LARGE_OFF_T % 2147483647 == 1) 15062 ? 1 : -1]; 15063int 15064main (void) 15065{ 15066 15067 ; 15068 return 0; 15069} 15070_ACEOF 15071if ac_fn_c_try_compile "$LINENO" 15072then : 15073 ac_cv_sys_file_offset_bits=no; break 15074fi 15075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15077/* end confdefs.h. */ 15078#define _FILE_OFFSET_BITS 64 15079#include <sys/types.h> 15080 /* Check that off_t can represent 2**63 - 1 correctly. 15081 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15082 since some C++ compilers masquerading as C compilers 15083 incorrectly reject 9223372036854775807. */ 15084#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15086 && LARGE_OFF_T % 2147483647 == 1) 15087 ? 1 : -1]; 15088int 15089main (void) 15090{ 15091 15092 ; 15093 return 0; 15094} 15095_ACEOF 15096if ac_fn_c_try_compile "$LINENO" 15097then : 15098 ac_cv_sys_file_offset_bits=64; break 15099fi 15100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15101 ac_cv_sys_file_offset_bits=unknown 15102 break 15103done 15104fi 15105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15106printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 15107case $ac_cv_sys_file_offset_bits in #( 15108 no | unknown) ;; 15109 *) 15110printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 15111;; 15112esac 15113rm -rf conftest* 15114 if test $ac_cv_sys_file_offset_bits = unknown; then 15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15116printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 15117if test ${ac_cv_sys_large_files+y} 15118then : 15119 printf %s "(cached) " >&6 15120else $as_nop 15121 while :; do 15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15123/* end confdefs.h. */ 15124#include <sys/types.h> 15125 /* Check that off_t can represent 2**63 - 1 correctly. 15126 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15127 since some C++ compilers masquerading as C compilers 15128 incorrectly reject 9223372036854775807. */ 15129#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15131 && LARGE_OFF_T % 2147483647 == 1) 15132 ? 1 : -1]; 15133int 15134main (void) 15135{ 15136 15137 ; 15138 return 0; 15139} 15140_ACEOF 15141if ac_fn_c_try_compile "$LINENO" 15142then : 15143 ac_cv_sys_large_files=no; break 15144fi 15145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15147/* end confdefs.h. */ 15148#define _LARGE_FILES 1 15149#include <sys/types.h> 15150 /* Check that off_t can represent 2**63 - 1 correctly. 15151 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15152 since some C++ compilers masquerading as C compilers 15153 incorrectly reject 9223372036854775807. */ 15154#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15156 && LARGE_OFF_T % 2147483647 == 1) 15157 ? 1 : -1]; 15158int 15159main (void) 15160{ 15161 15162 ; 15163 return 0; 15164} 15165_ACEOF 15166if ac_fn_c_try_compile "$LINENO" 15167then : 15168 ac_cv_sys_large_files=1; break 15169fi 15170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15171 ac_cv_sys_large_files=unknown 15172 break 15173done 15174fi 15175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15176printf "%s\n" "$ac_cv_sys_large_files" >&6; } 15177case $ac_cv_sys_large_files in #( 15178 no | unknown) ;; 15179 *) 15180printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 15181;; 15182esac 15183rm -rf conftest* 15184 fi 15185fi 15186 15187 15188if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then 15189 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files" 15190fi 15191if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then 15192 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 15193fi 15194 15195 15196 15197 15198 15199 15200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 15201printf %s "checking for dlopen... " >&6; } 15202if test ${ac_cv_funclib_dlopen+y} 15203then : 15204 printf %s "(cached) " >&6 15205else $as_nop 15206 15207if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 15208 ac_save_LIBS="$LIBS" 15209 for ac_lib in "" dl; do 15210 case "$ac_lib" in 15211 "") ;; 15212 yes) ac_lib="" ;; 15213 no) continue ;; 15214 -l*) ;; 15215 *) ac_lib="-l$ac_lib" ;; 15216 esac 15217 LIBS=" $ac_lib $ac_save_LIBS" 15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15219/* end confdefs.h. */ 15220 15221#ifdef HAVE_DLFCN_H 15222#include <dlfcn.h> 15223#endif 15224int 15225main (void) 15226{ 15227dlopen(0,0) 15228 ; 15229 return 0; 15230} 15231_ACEOF 15232if ac_fn_c_try_link "$LINENO" 15233then : 15234 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 15235fi 15236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15237 conftest$ac_exeext conftest.$ac_ext 15238 done 15239 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 15240 LIBS="$ac_save_LIBS" 15241fi 15242 15243fi 15244 15245 15246eval "ac_res=\$ac_cv_funclib_dlopen" 15247 15248if false; then 15249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15250if test "x$ac_cv_func_dlopen" = xyes 15251then : 15252 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 15253 15254fi 15255 15256fi 15257# dlopen 15258eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15259eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15260eval "LIB_dlopen=$ac_res" 15261 15262case "$ac_res" in 15263 yes) 15264 eval "ac_cv_func_dlopen=yes" 15265 eval "LIB_dlopen=" 15266 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 15267 15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15269printf "%s\n" "yes" >&6; } 15270 ;; 15271 no) 15272 eval "ac_cv_func_dlopen=no" 15273 eval "LIB_dlopen=" 15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15275printf "%s\n" "no" >&6; } 15276 ;; 15277 *) 15278 eval "ac_cv_func_dlopen=yes" 15279 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 15280 15281 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 15282 15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 15284printf "%s\n" "yes, in $ac_res" >&6; } 15285 ;; 15286esac 15287 15288 15289 if test "$ac_cv_funclib_dlopen" != no; then 15290 HAVE_DLOPEN_TRUE= 15291 HAVE_DLOPEN_FALSE='#' 15292else 15293 HAVE_DLOPEN_TRUE='#' 15294 HAVE_DLOPEN_FALSE= 15295fi 15296 15297 15298 15299 15300aix=no 15301case "$host" in 15302*-*-aix3*) 15303 aix=3 15304 ;; 15305*-*-aix[4-9]*) 15306 aix=4 15307 ;; 15308esac 15309 15310 if test "$aix" != no; then 15311 AIX_TRUE= 15312 AIX_FALSE='#' 15313else 15314 AIX_TRUE='#' 15315 AIX_FALSE= 15316fi 15317 if test "$aix" = 4; then 15318 AIX4_TRUE= 15319 AIX4_FALSE='#' 15320else 15321 AIX4_TRUE='#' 15322 AIX4_FALSE= 15323fi 15324 15325# Check whether --enable-dynamic-afs was given. 15326if test ${enable_dynamic_afs+y} 15327then : 15328 enableval=$enable_dynamic_afs; 15329fi 15330 15331 15332if test "$aix" != no; then 15333 15334 15335printf "%s\n" "#define NEED_QSORT 1" >>confdefs.h 15336 15337 15338 if test "$enable_dynamic_afs" != no; then 15339 15340 if test "$ac_cv_func_dlopen" = no; then 15341 15342 15343 15344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for loadquery" >&5 15345printf %s "checking for loadquery... " >&6; } 15346if test ${ac_cv_funclib_loadquery+y} 15347then : 15348 printf %s "(cached) " >&6 15349else $as_nop 15350 15351if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then 15352 ac_save_LIBS="$LIBS" 15353 for ac_lib in "" ld; do 15354 case "$ac_lib" in 15355 "") ;; 15356 yes) ac_lib="" ;; 15357 no) continue ;; 15358 -l*) ;; 15359 *) ac_lib="-l$ac_lib" ;; 15360 esac 15361 LIBS=" $ac_lib $ac_save_LIBS" 15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15363/* end confdefs.h. */ 15364 15365int 15366main (void) 15367{ 15368loadquery() 15369 ; 15370 return 0; 15371} 15372_ACEOF 15373if ac_fn_c_try_link "$LINENO" 15374then : 15375 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break 15376fi 15377rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15378 conftest$ac_exeext conftest.$ac_ext 15379 done 15380 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}" 15381 LIBS="$ac_save_LIBS" 15382fi 15383 15384fi 15385 15386 15387eval "ac_res=\$ac_cv_funclib_loadquery" 15388 15389if false; then 15390 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery" 15391if test "x$ac_cv_func_loadquery" = xyes 15392then : 15393 printf "%s\n" "#define HAVE_LOADQUERY 1" >>confdefs.h 15394 15395fi 15396 15397fi 15398# loadquery 15399eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15400eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15401eval "LIB_loadquery=$ac_res" 15402 15403case "$ac_res" in 15404 yes) 15405 eval "ac_cv_func_loadquery=yes" 15406 eval "LIB_loadquery=" 15407 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 15408 15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15410printf "%s\n" "yes" >&6; } 15411 ;; 15412 no) 15413 eval "ac_cv_func_loadquery=no" 15414 eval "LIB_loadquery=" 15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15416printf "%s\n" "no" >&6; } 15417 ;; 15418 *) 15419 eval "ac_cv_func_loadquery=yes" 15420 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 15421 15422 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 15423 15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 15425printf "%s\n" "yes, in $ac_res" >&6; } 15426 ;; 15427esac 15428 15429 15430 fi 15431 if test "$ac_cv_func_dlopen" != no; then 15432 AIX_EXTRA_KAFS='$(LIB_dlopen)' 15433 elif test "$ac_cv_func_loadquery" != no; then 15434 AIX_EXTRA_KAFS='$(LIB_loadquery)' 15435 else 15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not using dynloaded AFS library" >&5 15437printf "%s\n" "$as_me: not using dynloaded AFS library" >&6;} 15438 AIX_EXTRA_KAFS= 15439 enable_dynamic_afs=no 15440 fi 15441 else 15442 AIX_EXTRA_KAFS= 15443 fi 15444fi 15445 15446 if test "$enable_dynamic_afs" != no; then 15447 AIX_DYNAMIC_AFS_TRUE= 15448 AIX_DYNAMIC_AFS_FALSE='#' 15449else 15450 AIX_DYNAMIC_AFS_TRUE='#' 15451 AIX_DYNAMIC_AFS_FALSE= 15452fi 15453 15454if test "$aix" != no; then 15455 15456printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 15457 15458fi 15459 15460 15461 15462 15463 15464irix=no 15465case "$host" in 15466*-*-irix*) 15467 irix=yes 15468 ;; 15469esac 15470 if test "$irix" != no; then 15471 IRIX_TRUE= 15472 IRIX_FALSE='#' 15473else 15474 IRIX_TRUE='#' 15475 IRIX_FALSE= 15476fi 15477 15478 15479 15480sunos=no 15481case "$host" in 15482*-*-solaris2.7) 15483 sunos=57 15484 ;; 15485*-*-solaris2.1[1-9]) 15486 15487printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 15488 15489 15490printf "%s\n" "#define _STDC_C11_BCI 1" >>confdefs.h 15491 15492 sunos=511 15493 ;; 15494*-*-solaris2.[89] | *-*-solaris2.10) 15495 sunos=58 15496 ;; 15497*-*-solaris2*) 15498 sunos=50 15499 ;; 15500esac 15501if test "$sunos" != no; then 15502 15503printf "%s\n" "#define SunOS $sunos" >>confdefs.h 15504 15505fi 15506 15507 15508 15509printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 15510 15511 15512 15513 15514 15515if ! test -f "$srcdir/lib/asn1/der-protos.h" || 15516 ! test -f "$srcdir/lib/asn1/der-private.h"; then 15517 for ac_prog in perl 15518do 15519 # Extract the first word of "$ac_prog", so it can be a program name with args. 15520set dummy $ac_prog; ac_word=$2 15521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15522printf %s "checking for $ac_word... " >&6; } 15523if test ${ac_cv_prog_PERL+y} 15524then : 15525 printf %s "(cached) " >&6 15526else $as_nop 15527 if test -n "$PERL"; then 15528 ac_cv_prog_PERL="$PERL" # Let the user override the test. 15529else 15530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15531for as_dir in $PATH 15532do 15533 IFS=$as_save_IFS 15534 case $as_dir in #((( 15535 '') as_dir=./ ;; 15536 */) ;; 15537 *) as_dir=$as_dir/ ;; 15538 esac 15539 for ac_exec_ext in '' $ac_executable_extensions; do 15540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15541 ac_cv_prog_PERL="$ac_prog" 15542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15543 break 2 15544 fi 15545done 15546 done 15547IFS=$as_save_IFS 15548 15549fi 15550fi 15551PERL=$ac_cv_prog_PERL 15552if test -n "$PERL"; then 15553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 15554printf "%s\n" "$PERL" >&6; } 15555else 15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15557printf "%s\n" "no" >&6; } 15558fi 15559 15560 15561 test -n "$PERL" && break 15562done 15563test -n "$PERL" || PERL="perl" 15564 15565if test "$PERL" = ""; then 15566 as_fn_error $? "perl not found - Cannot build Heimdal without perl" "$LINENO" 5 15567fi 15568 15569 15570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl5 module Getopt::Std" >&5 15571printf %s "checking for Perl5 module Getopt::Std... " >&6; } 15572if ! $PERL -MGetopt::Std -e 'exit(0);' >/dev/null 2>&1; then 15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15574printf "%s\n" "no" >&6; } 15575 as_fn_error $? "perl module Getopt::Std not found - Cannot build Heimdal without perl module Getopt::Std" "$LINENO" 5 15576else 15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15578printf "%s\n" "yes" >&6; } 15579fi 15580 15581 15582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl5 module File::Compare" >&5 15583printf %s "checking for Perl5 module File::Compare... " >&6; } 15584if ! $PERL -MFile::Compare -e 'exit(0);' >/dev/null 2>&1; then 15585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15586printf "%s\n" "no" >&6; } 15587 as_fn_error $? "perl module File::Compare not found - Cannot build Heimdal without perl module File::Compare" "$LINENO" 5 15588else 15589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15590printf "%s\n" "yes" >&6; } 15591fi 15592 15593 15594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl5 module JSON" >&5 15595printf %s "checking for Perl5 module JSON... " >&6; } 15596if ! $PERL -MJSON -e 'exit(0);' >/dev/null 2>&1; then 15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15598printf "%s\n" "no" >&6; } 15599 as_fn_error $? "perl module JSON not found - Cannot build Heimdal without perl module JSON" "$LINENO" 5 15600else 15601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15602printf "%s\n" "yes" >&6; } 15603fi 15604 15605fi 15606 15607for ac_prog in 'bison -y' byacc 15608do 15609 # Extract the first word of "$ac_prog", so it can be a program name with args. 15610set dummy $ac_prog; ac_word=$2 15611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15612printf %s "checking for $ac_word... " >&6; } 15613if test ${ac_cv_prog_YACC+y} 15614then : 15615 printf %s "(cached) " >&6 15616else $as_nop 15617 if test -n "$YACC"; then 15618 ac_cv_prog_YACC="$YACC" # Let the user override the test. 15619else 15620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15621for as_dir in $PATH 15622do 15623 IFS=$as_save_IFS 15624 case $as_dir in #((( 15625 '') as_dir=./ ;; 15626 */) ;; 15627 *) as_dir=$as_dir/ ;; 15628 esac 15629 for ac_exec_ext in '' $ac_executable_extensions; do 15630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15631 ac_cv_prog_YACC="$ac_prog" 15632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15633 break 2 15634 fi 15635done 15636 done 15637IFS=$as_save_IFS 15638 15639fi 15640fi 15641YACC=$ac_cv_prog_YACC 15642if test -n "$YACC"; then 15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 15644printf "%s\n" "$YACC" >&6; } 15645else 15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15647printf "%s\n" "no" >&6; } 15648fi 15649 15650 15651 test -n "$YACC" && break 15652done 15653test -n "$YACC" || YACC="yacc" 15654 15655for ac_prog in flex lex 15656do 15657 # Extract the first word of "$ac_prog", so it can be a program name with args. 15658set dummy $ac_prog; ac_word=$2 15659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15660printf %s "checking for $ac_word... " >&6; } 15661if test ${ac_cv_prog_LEX+y} 15662then : 15663 printf %s "(cached) " >&6 15664else $as_nop 15665 if test -n "$LEX"; then 15666 ac_cv_prog_LEX="$LEX" # Let the user override the test. 15667else 15668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15669for as_dir in $PATH 15670do 15671 IFS=$as_save_IFS 15672 case $as_dir in #((( 15673 '') as_dir=./ ;; 15674 */) ;; 15675 *) as_dir=$as_dir/ ;; 15676 esac 15677 for ac_exec_ext in '' $ac_executable_extensions; do 15678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15679 ac_cv_prog_LEX="$ac_prog" 15680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15681 break 2 15682 fi 15683done 15684 done 15685IFS=$as_save_IFS 15686 15687fi 15688fi 15689LEX=$ac_cv_prog_LEX 15690if test -n "$LEX"; then 15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 15692printf "%s\n" "$LEX" >&6; } 15693else 15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15695printf "%s\n" "no" >&6; } 15696fi 15697 15698 15699 test -n "$LEX" && break 15700done 15701test -n "$LEX" || LEX=":" 15702 15703 if test "x$LEX" != "x:"; then 15704 cat >conftest.l <<_ACEOF 15705%{ 15706#ifdef __cplusplus 15707extern "C" 15708#endif 15709int yywrap(void); 15710%} 15711%% 15712a { ECHO; } 15713b { REJECT; } 15714c { yymore (); } 15715d { yyless (1); } 15716e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 15717#ifdef __cplusplus 15718 yyless ((yyinput () != 0)); 15719#else 15720 yyless ((input () != 0)); 15721#endif 15722 } 15723f { unput (yytext[0]); } 15724. { BEGIN INITIAL; } 15725%% 15726#ifdef YYTEXT_POINTER 15727extern char *yytext; 15728#endif 15729int 15730yywrap (void) 15731{ 15732 return 1; 15733} 15734int 15735main (void) 15736{ 15737 return ! yylex (); 15738} 15739_ACEOF 15740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 15741printf %s "checking for lex output file root... " >&6; } 15742if test ${ac_cv_prog_lex_root+y} 15743then : 15744 printf %s "(cached) " >&6 15745else $as_nop 15746 15747ac_cv_prog_lex_root=unknown 15748{ { ac_try="$LEX conftest.l" 15749case "(($ac_try" in 15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15751 *) ac_try_echo=$ac_try;; 15752esac 15753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15754printf "%s\n" "$ac_try_echo"; } >&5 15755 (eval "$LEX conftest.l") 2>&5 15756 ac_status=$? 15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15758 test $ac_status = 0; } && 15759if test -f lex.yy.c; then 15760 ac_cv_prog_lex_root=lex.yy 15761elif test -f lexyy.c; then 15762 ac_cv_prog_lex_root=lexyy 15763fi 15764fi 15765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 15766printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 15767if test "$ac_cv_prog_lex_root" = unknown 15768then : 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 15770printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 15771 LEX=: LEXLIB= 15772fi 15773LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 15774 15775if test ${LEXLIB+y} 15776then : 15777 15778else $as_nop 15779 15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 15781printf %s "checking for lex library... " >&6; } 15782if test ${ac_cv_lib_lex+y} 15783then : 15784 printf %s "(cached) " >&6 15785else $as_nop 15786 15787 ac_save_LIBS="$LIBS" 15788 ac_found=false 15789 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 15790 case $ac_cv_lib_lex in #( 15791 'none needed') : 15792 ;; #( 15793 'not found') : 15794 break ;; #( 15795 *) : 15796 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 15797 *) : 15798 ;; 15799esac 15800 15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15802/* end confdefs.h. */ 15803`cat $LEX_OUTPUT_ROOT.c` 15804_ACEOF 15805if ac_fn_c_try_link "$LINENO" 15806then : 15807 ac_found=: 15808fi 15809rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15810 conftest$ac_exeext conftest.$ac_ext 15811 if $ac_found; then 15812 break 15813 fi 15814 done 15815 LIBS="$ac_save_LIBS" 15816 15817fi 15818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 15819printf "%s\n" "$ac_cv_lib_lex" >&6; } 15820 if test "$ac_cv_lib_lex" = 'not found' 15821then : 15822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 15823printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 15824 LEX=: LEXLIB= 15825elif test "$ac_cv_lib_lex" = 'none needed' 15826then : 15827 LEXLIB='' 15828else $as_nop 15829 LEXLIB=$ac_cv_lib_lex 15830fi 15831 ac_save_LIBS="$LIBS" 15832 LIBS= 15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5 15834printf %s "checking for library containing yywrap... " >&6; } 15835if test ${ac_cv_search_yywrap+y} 15836then : 15837 printf %s "(cached) " >&6 15838else $as_nop 15839 ac_func_search_save_LIBS=$LIBS 15840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15841/* end confdefs.h. */ 15842 15843/* Override any GCC internal prototype to avoid an error. 15844 Use char because int might match the return type of a GCC 15845 builtin and then its argument prototype would still apply. */ 15846char yywrap (); 15847int 15848main (void) 15849{ 15850return yywrap (); 15851 ; 15852 return 0; 15853} 15854_ACEOF 15855for ac_lib in '' fl l 15856do 15857 if test -z "$ac_lib"; then 15858 ac_res="none required" 15859 else 15860 ac_res=-l$ac_lib 15861 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15862 fi 15863 if ac_fn_c_try_link "$LINENO" 15864then : 15865 ac_cv_search_yywrap=$ac_res 15866fi 15867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15868 conftest$ac_exeext 15869 if test ${ac_cv_search_yywrap+y} 15870then : 15871 break 15872fi 15873done 15874if test ${ac_cv_search_yywrap+y} 15875then : 15876 15877else $as_nop 15878 ac_cv_search_yywrap=no 15879fi 15880rm conftest.$ac_ext 15881LIBS=$ac_func_search_save_LIBS 15882fi 15883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5 15884printf "%s\n" "$ac_cv_search_yywrap" >&6; } 15885ac_res=$ac_cv_search_yywrap 15886if test "$ac_res" != no 15887then : 15888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15889 LEXLIB="$LIBS" 15890fi 15891 15892 LIBS="$ac_save_LIBS" 15893fi 15894 15895 15896if test "$LEX" != : 15897then : 15898 15899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 15900printf %s "checking whether yytext is a pointer... " >&6; } 15901if test ${ac_cv_prog_lex_yytext_pointer+y} 15902then : 15903 printf %s "(cached) " >&6 15904else $as_nop 15905 # POSIX says lex can declare yytext either as a pointer or an array; the 15906# default is implementation-dependent. Figure out which it is, since 15907# not all implementations provide the %pointer and %array declarations. 15908ac_cv_prog_lex_yytext_pointer=no 15909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15910/* end confdefs.h. */ 15911 15912 #define YYTEXT_POINTER 1 15913`cat $LEX_OUTPUT_ROOT.c` 15914_ACEOF 15915if ac_fn_c_try_compile "$LINENO" 15916then : 15917 ac_cv_prog_lex_yytext_pointer=yes 15918fi 15919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15920 15921fi 15922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 15923printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 15924if test $ac_cv_prog_lex_yytext_pointer = yes; then 15925 15926printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 15927 15928fi 15929 15930fi 15931rm -f conftest.l $LEX_OUTPUT_ROOT.c 15932 15933fi 15934if test "$LEX" = :; then 15935 LEX=${am_missing_run}flex 15936fi 15937for ac_prog in gawk mawk nawk awk 15938do 15939 # Extract the first word of "$ac_prog", so it can be a program name with args. 15940set dummy $ac_prog; ac_word=$2 15941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15942printf %s "checking for $ac_word... " >&6; } 15943if test ${ac_cv_prog_AWK+y} 15944then : 15945 printf %s "(cached) " >&6 15946else $as_nop 15947 if test -n "$AWK"; then 15948 ac_cv_prog_AWK="$AWK" # Let the user override the test. 15949else 15950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15951for as_dir in $PATH 15952do 15953 IFS=$as_save_IFS 15954 case $as_dir in #((( 15955 '') as_dir=./ ;; 15956 */) ;; 15957 *) as_dir=$as_dir/ ;; 15958 esac 15959 for ac_exec_ext in '' $ac_executable_extensions; do 15960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15961 ac_cv_prog_AWK="$ac_prog" 15962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15963 break 2 15964 fi 15965done 15966 done 15967IFS=$as_save_IFS 15968 15969fi 15970fi 15971AWK=$ac_cv_prog_AWK 15972if test -n "$AWK"; then 15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 15974printf "%s\n" "$AWK" >&6; } 15975else 15976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15977printf "%s\n" "no" >&6; } 15978fi 15979 15980 15981 test -n "$AWK" && break 15982done 15983 15984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ln -s or something else" >&5 15985printf %s "checking for ln -s or something else... " >&6; } 15986if test ${ac_cv_prog_LN_S+y} 15987then : 15988 printf %s "(cached) " >&6 15989else $as_nop 15990 rm -f conftestdata 15991if ln -s X conftestdata 2>/dev/null 15992then 15993 rm -f conftestdata 15994 ac_cv_prog_LN_S="ln -s" 15995else 15996 touch conftestdata1 15997 if ln conftestdata1 conftestdata2; then 15998 rm -f conftestdata* 15999 ac_cv_prog_LN_S=ln 16000 else 16001 ac_cv_prog_LN_S=cp 16002 fi 16003fi 16004fi 16005LN_S="$ac_cv_prog_LN_S" 16006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_LN_S" >&5 16007printf "%s\n" "$ac_cv_prog_LN_S" >&6; } 16008 16009 16010 16011 16012# Check whether --with-mips_abi was given. 16013if test ${with_mips_abi+y} 16014then : 16015 withval=$with_mips_abi; 16016fi 16017 16018 16019case "$host_os" in 16020irix*) 16021with_mips_abi="${with_mips_abi:-yes}" 16022if test -n "$GCC"; then 16023 16024# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 16025# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 16026# 16027# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 16028# GCC and revert back to O32. The same goes if O32 is asked for - old 16029# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 16030# 16031# Don't you just love *all* the different SGI ABIs? 16032 16033case "${with_mips_abi}" in 16034 32|o32) abi='-mabi=32'; abilibdirext='' ;; 16035 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 16036 64) abi='-mabi=64'; abilibdirext='64' ;; 16037 no) abi=''; abilibdirext='';; 16038 *) as_fn_error $? "\"Invalid ABI specified\"" "$LINENO" 5 ;; 16039esac 16040if test -n "$abi" ; then 16041ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 16042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports the $abi option" >&5 16043printf %s "checking if $CC supports the $abi option... " >&6; } 16044if eval test \${$ac_foo+y} 16045then : 16046 printf %s "(cached) " >&6 16047else $as_nop 16048 16049save_CFLAGS="$CFLAGS" 16050CFLAGS="$CFLAGS $abi" 16051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16052/* end confdefs.h. */ 16053 16054int 16055main (void) 16056{ 16057int x; 16058 ; 16059 return 0; 16060} 16061_ACEOF 16062if ac_fn_c_try_compile "$LINENO" 16063then : 16064 eval $ac_foo=yes 16065else $as_nop 16066 eval $ac_foo=no 16067fi 16068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_extCFLAGS="$save_CFLAGS" 16069 16070fi 16071 16072ac_res=`eval echo \\\$$ac_foo` 16073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16074printf "%s\n" "$ac_res" >&6; } 16075if test $ac_res = no; then 16076# Try to figure out why that failed... 16077case $abi in 16078 -mabi=32) 16079 save_CFLAGS="$CFLAGS" 16080 CFLAGS="$CFLAGS -mabi=n32" 16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16082/* end confdefs.h. */ 16083 16084int 16085main (void) 16086{ 16087int x; 16088 ; 16089 return 0; 16090} 16091_ACEOF 16092if ac_fn_c_try_compile "$LINENO" 16093then : 16094 ac_res=yes 16095else $as_nop 16096 ac_res=no 16097fi 16098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CLAGS="$save_CFLAGS" 16099 if test $ac_res = yes; then 16100 # New GCC 16101 as_fn_error $? "$CC does not support the $with_mips_abi ABI" "$LINENO" 5 16102 fi 16103 # Old GCC 16104 abi='' 16105 abilibdirext='' 16106 ;; 16107 -mabi=n32|-mabi=64) 16108 if test $with_mips_abi = yes; then 16109 # Old GCC, default to O32 16110 abi='' 16111 abilibdirext='' 16112 else 16113 # Some broken GCC 16114 as_fn_error $? "$CC does not support the $with_mips_abi ABI" "$LINENO" 5 16115 fi 16116 ;; 16117esac 16118fi #if test $ac_res = no; then 16119fi #if test -n "$abi" ; then 16120else 16121case "${with_mips_abi}" in 16122 32|o32) abi='-32'; abilibdirext='' ;; 16123 n32|yes) abi='-n32'; abilibdirext='32' ;; 16124 64) abi='-64'; abilibdirext='64' ;; 16125 no) abi=''; abilibdirext='';; 16126 *) as_fn_error $? "\"Invalid ABI specified\"" "$LINENO" 5 ;; 16127esac 16128fi #if test -n "$GCC"; then 16129;; 16130esac 16131 16132CC="$CC $abi" 16133libdir="$libdir$abilibdirext" 16134 16135 16136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 16137printf %s "checking for __attribute__... " >&6; } 16138if test ${ac_cv___attribute__+y} 16139then : 16140 printf %s "(cached) " >&6 16141else $as_nop 16142 16143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16144/* end confdefs.h. */ 16145#include <stdlib.h> 16146static void foo(void) __attribute__ ((noreturn)); 16147 16148static void 16149foo(void) 16150{ 16151 exit(1); 16152} 16153 16154_ACEOF 16155if ac_fn_c_try_compile "$LINENO" 16156then : 16157 ac_cv___attribute__=yes 16158else $as_nop 16159 ac_cv___attribute__=no 16160fi 16161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16162fi 16163 16164if test "$ac_cv___attribute__" = "yes"; then 16165 16166printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 16167 16168fi 16169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 16170printf "%s\n" "$ac_cv___attribute__" >&6; } 16171 16172 16173 if test "$enable_shared" = "yes"; then 16174 ENABLE_SHARED_TRUE= 16175 ENABLE_SHARED_FALSE='#' 16176else 16177 ENABLE_SHARED_TRUE='#' 16178 ENABLE_SHARED_FALSE= 16179fi 16180 16181 16182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5 16183printf %s "checking for ld --version-script... " >&6; } 16184if test ${rk_cv_version_script+y} 16185then : 16186 printf %s "(cached) " >&6 16187else $as_nop 16188 16189 rk_cv_version_script=no 16190 16191 cat > conftest.map <<EOF 16192HEIM_GSS_V1 { 16193 global: gss*; 16194}; 16195HEIM_GSS_V1_1 { 16196 global: gss_init_creds; 16197} HEIM_GSS_V1; 16198EOF 16199cat > conftest.c <<EOF 16200int gss_init_creds(int foo) { return 0; } 16201EOF 16202 16203 if { ac_try='${CC-cc} -c $CFLAGS -fPIC conftest.c' 16204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16205 (eval $ac_try) 2>&5 16206 ac_status=$? 16207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16208 test $ac_status = 0; }; } && 16209 { ac_try='${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o' 16210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16211 (eval $ac_try) 2>&5 16212 ac_status=$? 16213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16214 test $ac_status = 0; }; }; 16215 then 16216 rk_cv_version_script=yes 16217 fi 16218rm -rf conftest* libconftest* .libs 16219 16220fi 16221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rk_cv_version_script" >&5 16222printf "%s\n" "$rk_cv_version_script" >&6; } 16223 16224if test $rk_cv_version_script = yes ; then 16225 doversioning=yes 16226 LDFLAGS_VERSION_SCRIPT="-Wl,--version-script," 16227else 16228 doversioning=no 16229 LDFLAGS_VERSION_SCRIPT= 16230fi 16231 16232 16233 if test $doversioning = yes; then 16234 versionscript_TRUE= 16235 versionscript_FALSE='#' 16236else 16237 versionscript_TRUE='#' 16238 versionscript_FALSE= 16239fi 16240 16241 16242 16243 16244 16245 16246 16247 16248 if test "${cross_compiling}" = yes; then 16249 CROSS_COMPILE_TRUE= 16250 CROSS_COMPILE_FALSE='#' 16251else 16252 CROSS_COMPILE_TRUE='#' 16253 CROSS_COMPILE_FALSE= 16254fi 16255 16256 16257 16258# Check whether --with-cross-tools was given. 16259if test ${with_cross_tools+y} 16260then : 16261 withval=$with_cross_tools; if test "$withval" = "yes"; then 16262 as_fn_error $? "Need path to cross tools" "$LINENO" 5 16263 fi 16264 with_cross_tools="${with_cross_tools}/" 16265 16266fi 16267 16268 16269if test "${cross_compiling}" != yes ; then 16270 16271 ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)" 16272 SLC="\$(top_builddir)/lib/sl/slc" 16273 16274 ASN1_COMPILE_DEP="\$(ASN1_COMPILE)" 16275 SLC_DEP="\$(SLC)" 16276else 16277 ASN1_COMPILE="${with_cross_tools}asn1_compile" 16278 SLC="${with_cross_tools}slc" 16279 16280 ASN1_COMPILE_DEP= 16281 SLC_DEP= 16282 16283 ac_cv_prog_COMPILE_ET=${with_cross_tools}compile_et 16284 16285fi 16286 16287 16288 16289 16290 16291 16292 16293 16294printf "%s\n" "#define HEIM_WEAK_CRYPTO 1" >>confdefs.h 16295 16296 16297 16298 16299# Check whether --with-openldap was given. 16300if test ${with_openldap+y} 16301then : 16302 withval=$with_openldap; 16303fi 16304 16305 16306# Check whether --with-openldap-lib was given. 16307if test ${with_openldap_lib+y} 16308then : 16309 withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 16310 as_fn_error $? "No argument for --with-openldap-lib" "$LINENO" 5 16311elif test "X$with_openldap" = "X"; then 16312 with_openldap=yes 16313fi 16314fi 16315 16316 16317# Check whether --with-openldap-include was given. 16318if test ${with_openldap_include+y} 16319then : 16320 withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then 16321 as_fn_error $? "No argument for --with-openldap-include" "$LINENO" 5 16322elif test "X$with_openldap" = "X"; then 16323 with_openldap=yes 16324fi 16325fi 16326 16327 16328# Check whether --with-openldap-config was given. 16329if test ${with_openldap_config+y} 16330then : 16331 withval=$with_openldap_config; 16332fi 16333 16334 16335 16336 16337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openldap" >&5 16338printf %s "checking for openldap... " >&6; } 16339 16340case "$with_openldap" in 16341yes|"") d='' ;; 16342no) d= ;; 16343*) d="$with_openldap" ;; 16344esac 16345 16346header_dirs= 16347lib_dirs= 16348for i in $d; do 16349 if test "$with_openldap_include" = ""; then 16350 if test -d "$i/include/openldap"; then 16351 header_dirs="$header_dirs $i/include/openldap" 16352 fi 16353 if test -d "$i/include"; then 16354 header_dirs="$header_dirs $i/include" 16355 fi 16356 fi 16357 if test "$with_openldap_lib" = ""; then 16358 if test -d "$i/lib$abilibdirext"; then 16359 lib_dirs="$lib_dirs $i/lib$abilibdirext" 16360 fi 16361 fi 16362done 16363 16364if test "$with_openldap_include"; then 16365 header_dirs="$with_openldap_include $header_dirs" 16366fi 16367if test "$with_openldap_lib"; then 16368 lib_dirs="$with_openldap_lib $lib_dirs" 16369fi 16370 16371if test "$with_openldap_config" = ""; then 16372 with_openldap_config='' 16373fi 16374 16375openldap_cflags= 16376openldap_libs= 16377 16378case "$with_openldap_config" in 16379yes|no|""|"") 16380 if test -f $with_openldap/bin/ ; then 16381 with_openldap_config=$with_openldap/bin/ 16382 fi 16383 ;; 16384esac 16385 16386case "$with_openldap_config" in 16387yes|no|"") 16388 ;; 16389*) 16390 openldap_cflags="`$with_openldap_config --cflags 2>&1`" 16391 openldap_libs="`$with_openldap_config --libs 2>&1`" 16392 ;; 16393esac 16394 16395found=no 16396if test "$with_openldap" != no; then 16397 save_CFLAGS="$CFLAGS" 16398 save_LIBS="$LIBS" 16399 if test "$openldap_cflags" -a "$openldap_libs"; then 16400 CFLAGS="$openldap_cflags $save_CFLAGS" 16401 LIBS="$openldap_libs $save_LIBS" 16402 16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16404/* end confdefs.h. */ 16405#include <lber.h> 16406#include <ldap.h> 16407int 16408main (void) 16409{ 16410 16411 ; 16412 return 0; 16413} 16414_ACEOF 16415if ac_fn_c_try_link "$LINENO" 16416then : 16417 16418 INCLUDE_openldap="$openldap_cflags" 16419 LIB_openldap="$openldap_libs" 16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_openldap_config" >&5 16421printf "%s\n" "from $with_openldap_config" >&6; } 16422 found=yes 16423fi 16424rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16425 conftest$ac_exeext conftest.$ac_ext 16426 fi 16427 if test "$found" = no; then 16428 ires= lres= 16429 for i in $header_dirs; do 16430 CFLAGS="-I$i $save_CFLAGS" 16431 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433/* end confdefs.h. */ 16434#include <lber.h> 16435#include <ldap.h> 16436int 16437main (void) 16438{ 16439 16440 ; 16441 return 0; 16442} 16443_ACEOF 16444if ac_fn_c_try_compile "$LINENO" 16445then : 16446 ires=$i;break 16447fi 16448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16449 done 16450 for i in $lib_dirs; do 16451 LIBS="-L$i -lldap -llber $save_LIBS" 16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16453/* end confdefs.h. */ 16454#include <lber.h> 16455#include <ldap.h> 16456int 16457main (void) 16458{ 16459 16460 ; 16461 return 0; 16462} 16463_ACEOF 16464if ac_fn_c_try_link "$LINENO" 16465then : 16466 lres=$i;break 16467fi 16468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16469 conftest$ac_exeext conftest.$ac_ext 16470 done 16471 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 16472 INCLUDE_openldap="-I$ires" 16473 LIB_openldap="-L$lres -lldap -llber " 16474 found=yes 16475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 16476printf "%s\n" "headers $ires, libraries $lres" >&6; } 16477 fi 16478 fi 16479 CFLAGS="$save_CFLAGS" 16480 LIBS="$save_LIBS" 16481fi 16482 16483if test "$found" = yes; then 16484 16485printf "%s\n" "#define OPENLDAP 1" >>confdefs.h 16486 16487 with_openldap=yes 16488else 16489 with_openldap=no 16490 INCLUDE_openldap= 16491 LIB_openldap= 16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16493printf "%s\n" "no" >&6; } 16494fi 16495 16496 16497 16498 16499 16500# Check whether --enable-hdb-openldap-module was given. 16501if test ${enable_hdb_openldap_module+y} 16502then : 16503 enableval=$enable_hdb_openldap_module; 16504fi 16505 16506if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 16507 16508printf "%s\n" "#define OPENLDAP_MODULE 1" >>confdefs.h 16509 16510fi 16511 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 16512 OPENLDAP_MODULE_TRUE= 16513 OPENLDAP_MODULE_FALSE='#' 16514else 16515 OPENLDAP_MODULE_TRUE='#' 16516 OPENLDAP_MODULE_FALSE= 16517fi 16518 16519 16520 16521# Check whether --enable-pk-init was given. 16522if test ${enable_pk_init+y} 16523then : 16524 enableval=$enable_pk_init; 16525fi 16526 16527if test "$enable_pk_init" != no ;then 16528 16529printf "%s\n" "#define PKINIT 1" >>confdefs.h 16530 16531fi 16532 if test "$enable_pk_init" != no; then 16533 PKINIT_TRUE= 16534 PKINIT_FALSE='#' 16535else 16536 PKINIT_TRUE='#' 16537 PKINIT_FALSE= 16538fi 16539 16540 16541# Check whether --enable-digest was given. 16542if test ${enable_digest+y} 16543then : 16544 enableval=$enable_digest; 16545fi 16546 16547if test "$enable_digest" != no ;then 16548 16549printf "%s\n" "#define DIGEST 1" >>confdefs.h 16550 16551fi 16552 16553# Check whether --enable-kx509 was given. 16554if test ${enable_kx509+y} 16555then : 16556 enableval=$enable_kx509; 16557fi 16558 16559if test "$enable_kx509" != no ;then 16560 16561printf "%s\n" "#define KX509 1" >>confdefs.h 16562 16563fi 16564 16565 16566 16567if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16568 if test -n "$ac_tool_prefix"; then 16569 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16570set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16572printf %s "checking for $ac_word... " >&6; } 16573if test ${ac_cv_path_PKG_CONFIG+y} 16574then : 16575 printf %s "(cached) " >&6 16576else $as_nop 16577 case $PKG_CONFIG in 16578 [\\/]* | ?:[\\/]*) 16579 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16580 ;; 16581 *) 16582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16583for as_dir in $PATH 16584do 16585 IFS=$as_save_IFS 16586 case $as_dir in #((( 16587 '') as_dir=./ ;; 16588 */) ;; 16589 *) as_dir=$as_dir/ ;; 16590 esac 16591 for ac_exec_ext in '' $ac_executable_extensions; do 16592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16593 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 16594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16595 break 2 16596 fi 16597done 16598 done 16599IFS=$as_save_IFS 16600 16601 ;; 16602esac 16603fi 16604PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16605if test -n "$PKG_CONFIG"; then 16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16607printf "%s\n" "$PKG_CONFIG" >&6; } 16608else 16609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16610printf "%s\n" "no" >&6; } 16611fi 16612 16613 16614fi 16615if test -z "$ac_cv_path_PKG_CONFIG"; then 16616 ac_pt_PKG_CONFIG=$PKG_CONFIG 16617 # Extract the first word of "pkg-config", so it can be a program name with args. 16618set dummy pkg-config; ac_word=$2 16619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16620printf %s "checking for $ac_word... " >&6; } 16621if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 16622then : 16623 printf %s "(cached) " >&6 16624else $as_nop 16625 case $ac_pt_PKG_CONFIG in 16626 [\\/]* | ?:[\\/]*) 16627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16628 ;; 16629 *) 16630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16631for as_dir in $PATH 16632do 16633 IFS=$as_save_IFS 16634 case $as_dir in #((( 16635 '') as_dir=./ ;; 16636 */) ;; 16637 *) as_dir=$as_dir/ ;; 16638 esac 16639 for ac_exec_ext in '' $ac_executable_extensions; do 16640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16641 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 16642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16643 break 2 16644 fi 16645done 16646 done 16647IFS=$as_save_IFS 16648 16649 ;; 16650esac 16651fi 16652ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16653if test -n "$ac_pt_PKG_CONFIG"; then 16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16655printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 16656else 16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16658printf "%s\n" "no" >&6; } 16659fi 16660 16661 if test "x$ac_pt_PKG_CONFIG" = x; then 16662 PKG_CONFIG="" 16663 else 16664 case $cross_compiling:$ac_tool_warned in 16665yes:) 16666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16667printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16668ac_tool_warned=yes ;; 16669esac 16670 PKG_CONFIG=$ac_pt_PKG_CONFIG 16671 fi 16672else 16673 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16674fi 16675 16676fi 16677if test -n "$PKG_CONFIG"; then 16678 _pkg_min_version=0.9.0 16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16680printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16681 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16683printf "%s\n" "yes" >&6; } 16684 else 16685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16686printf "%s\n" "no" >&6; } 16687 PKG_CONFIG="" 16688 fi 16689 16690fi 16691 16692 16693# Check whether --with-capng was given. 16694if test ${with_capng+y} 16695then : 16696 withval=$with_capng; 16697else $as_nop 16698 with_capng=check 16699fi 16700 16701if test "$with_capng" != "no"; then 16702 16703pkg_failed=no 16704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5 16705printf %s "checking for CAPNG... " >&6; } 16706 16707if test -n "$PKG_CONFIG"; then 16708 if test -n "$CAPNG_CFLAGS"; then 16709 pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS" 16710 else 16711 if test -n "$PKG_CONFIG" && \ 16712 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5 16713 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5 16714 ac_status=$? 16715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16716 test $ac_status = 0; }; then 16717 pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng >= 0.4.0" 2>/dev/null` 16718else 16719 pkg_failed=yes 16720fi 16721 fi 16722else 16723 pkg_failed=untried 16724fi 16725if test -n "$PKG_CONFIG"; then 16726 if test -n "$CAPNG_LIBS"; then 16727 pkg_cv_CAPNG_LIBS="$CAPNG_LIBS" 16728 else 16729 if test -n "$PKG_CONFIG" && \ 16730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5 16731 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5 16732 ac_status=$? 16733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16734 test $ac_status = 0; }; then 16735 pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng >= 0.4.0" 2>/dev/null` 16736else 16737 pkg_failed=yes 16738fi 16739 fi 16740else 16741 pkg_failed=untried 16742fi 16743 16744 16745 16746if test $pkg_failed = yes; then 16747 16748if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16749 _pkg_short_errors_supported=yes 16750else 16751 _pkg_short_errors_supported=no 16752fi 16753 if test $_pkg_short_errors_supported = yes; then 16754 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"` 16755 else 16756 CAPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"` 16757 fi 16758 # Put the nasty error message in config.log where it belongs 16759 echo "$CAPNG_PKG_ERRORS" >&5 16760 16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16762printf "%s\n" "no" >&6; } 16763 with_capng=no 16764elif test $pkg_failed = untried; then 16765 with_capng=no 16766else 16767 CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS 16768 CAPNG_LIBS=$pkg_cv_CAPNG_LIBS 16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16770printf "%s\n" "yes" >&6; } 16771 with_capng=yes 16772fi 16773fi 16774if test "$with_capng" = "yes"; then 16775 16776printf "%s\n" "#define HAVE_CAPNG 1" >>confdefs.h 16777 16778fi 16779 if test "$with_capng" != "no"; then 16780 HAVE_CAPNG_TRUE= 16781 HAVE_CAPNG_FALSE='#' 16782else 16783 HAVE_CAPNG_TRUE='#' 16784 HAVE_CAPNG_FALSE= 16785fi 16786 16787 16788 16789 16790 16791 16792# Check whether --with-sqlite3 was given. 16793if test ${with_sqlite3+y} 16794then : 16795 withval=$with_sqlite3; 16796fi 16797 16798 16799# Check whether --with-sqlite3-lib was given. 16800if test ${with_sqlite3_lib+y} 16801then : 16802 withval=$with_sqlite3_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 16803 as_fn_error $? "No argument for --with-sqlite3-lib" "$LINENO" 5 16804elif test "X$with_sqlite3" = "X"; then 16805 with_sqlite3=yes 16806fi 16807fi 16808 16809 16810# Check whether --with-sqlite3-include was given. 16811if test ${with_sqlite3_include+y} 16812then : 16813 withval=$with_sqlite3_include; if test "$withval" = "yes" -o "$withval" = "no"; then 16814 as_fn_error $? "No argument for --with-sqlite3-include" "$LINENO" 5 16815elif test "X$with_sqlite3" = "X"; then 16816 with_sqlite3=yes 16817fi 16818fi 16819 16820 16821# Check whether --with-sqlite3-config was given. 16822if test ${with_sqlite3_config+y} 16823then : 16824 withval=$with_sqlite3_config; 16825fi 16826 16827 16828 16829 16830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5 16831printf %s "checking for sqlite3... " >&6; } 16832 16833case "$with_sqlite3" in 16834yes|"") d='' ;; 16835no) d= ;; 16836*) d="$with_sqlite3" ;; 16837esac 16838 16839header_dirs= 16840lib_dirs= 16841for i in $d; do 16842 if test "$with_sqlite3_include" = ""; then 16843 if test -d "$i/include/sqlite3"; then 16844 header_dirs="$header_dirs $i/include/sqlite3" 16845 fi 16846 if test -d "$i/include"; then 16847 header_dirs="$header_dirs $i/include" 16848 fi 16849 fi 16850 if test "$with_sqlite3_lib" = ""; then 16851 if test -d "$i/lib$abilibdirext"; then 16852 lib_dirs="$lib_dirs $i/lib$abilibdirext" 16853 fi 16854 fi 16855done 16856 16857if test "$with_sqlite3_include"; then 16858 header_dirs="$with_sqlite3_include $header_dirs" 16859fi 16860if test "$with_sqlite3_lib"; then 16861 lib_dirs="$with_sqlite3_lib $lib_dirs" 16862fi 16863 16864if test "$with_sqlite3_config" = ""; then 16865 with_sqlite3_config='' 16866fi 16867 16868sqlite3_cflags= 16869sqlite3_libs= 16870 16871case "$with_sqlite3_config" in 16872yes|no|""|"") 16873 if test -f $with_sqlite3/bin/ ; then 16874 with_sqlite3_config=$with_sqlite3/bin/ 16875 fi 16876 ;; 16877esac 16878 16879case "$with_sqlite3_config" in 16880yes|no|"") 16881 ;; 16882*) 16883 sqlite3_cflags="`$with_sqlite3_config --cflags 2>&1`" 16884 sqlite3_libs="`$with_sqlite3_config --libs 2>&1`" 16885 ;; 16886esac 16887 16888found=no 16889if test "$with_sqlite3" != no; then 16890 save_CFLAGS="$CFLAGS" 16891 save_LIBS="$LIBS" 16892 if test "$sqlite3_cflags" -a "$sqlite3_libs"; then 16893 CFLAGS="$sqlite3_cflags $save_CFLAGS" 16894 LIBS="$sqlite3_libs $save_LIBS" 16895 16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16897/* end confdefs.h. */ 16898#include <sqlite3.h> 16899#ifndef SQLITE_OPEN_CREATE 16900#error "old version" 16901#endif 16902int 16903main (void) 16904{ 16905 16906 ; 16907 return 0; 16908} 16909_ACEOF 16910if ac_fn_c_try_link "$LINENO" 16911then : 16912 16913 INCLUDE_sqlite3="$sqlite3_cflags" 16914 LIB_sqlite3="$sqlite3_libs" 16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_sqlite3_config" >&5 16916printf "%s\n" "from $with_sqlite3_config" >&6; } 16917 found=yes 16918fi 16919rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16920 conftest$ac_exeext conftest.$ac_ext 16921 fi 16922 if test "$found" = no; then 16923 ires= lres= 16924 for i in $header_dirs; do 16925 CFLAGS="-I$i $save_CFLAGS" 16926 16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16928/* end confdefs.h. */ 16929#include <sqlite3.h> 16930#ifndef SQLITE_OPEN_CREATE 16931#error "old version" 16932#endif 16933int 16934main (void) 16935{ 16936 16937 ; 16938 return 0; 16939} 16940_ACEOF 16941if ac_fn_c_try_compile "$LINENO" 16942then : 16943 ires=$i;break 16944fi 16945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16946 done 16947 for i in $lib_dirs; do 16948 LIBS="-L$i -lsqlite3 $save_LIBS" 16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16950/* end confdefs.h. */ 16951#include <sqlite3.h> 16952#ifndef SQLITE_OPEN_CREATE 16953#error "old version" 16954#endif 16955int 16956main (void) 16957{ 16958 16959 ; 16960 return 0; 16961} 16962_ACEOF 16963if ac_fn_c_try_link "$LINENO" 16964then : 16965 lres=$i;break 16966fi 16967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16968 conftest$ac_exeext conftest.$ac_ext 16969 done 16970 if test "$ires" -a "$lres" -a "$with_sqlite3" != "no"; then 16971 INCLUDE_sqlite3="-I$ires" 16972 LIB_sqlite3="-L$lres -lsqlite3 " 16973 found=yes 16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 16975printf "%s\n" "headers $ires, libraries $lres" >&6; } 16976 fi 16977 fi 16978 CFLAGS="$save_CFLAGS" 16979 LIBS="$save_LIBS" 16980fi 16981 16982if test "$found" = yes; then 16983 16984printf "%s\n" "#define SQLITE3 1" >>confdefs.h 16985 16986 with_sqlite3=yes 16987else 16988 with_sqlite3=no 16989 INCLUDE_sqlite3= 16990 LIB_sqlite3= 16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16992printf "%s\n" "no" >&6; } 16993fi 16994 16995 16996 16997 16998 16999if test "X$with_sqlite3" != Xyes ; then 17000 INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite" 17001 LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la" 17002fi 17003 if test "X$with_sqlite3" = Xyes; then 17004 SQLITE3_TRUE= 17005 SQLITE3_FALSE='#' 17006else 17007 SQLITE3_TRUE='#' 17008 SQLITE3_FALSE= 17009fi 17010 17011 17012 17013printf "%s\n" "#define HAVE_SQLITE3 1" >>confdefs.h 17014 17015 17016# Check whether --enable-sqlite-cache was given. 17017if test ${enable_sqlite_cache+y} 17018then : 17019 enableval=$enable_sqlite_cache; 17020fi 17021 17022if test "$enable_sqlite_cache" != no; then 17023 17024printf "%s\n" "#define HAVE_SCC 1" >>confdefs.h 17025 17026fi 17027 if test "$enable_sqlite_cache" != no; then 17028 have_scc_TRUE= 17029 have_scc_FALSE='#' 17030else 17031 have_scc_TRUE='#' 17032 have_scc_FALSE= 17033fi 17034 17035 17036 17037 17038 17039# Check whether --with-libintl was given. 17040if test ${with_libintl+y} 17041then : 17042 withval=$with_libintl; 17043fi 17044 17045 17046# Check whether --with-libintl-lib was given. 17047if test ${with_libintl_lib+y} 17048then : 17049 withval=$with_libintl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 17050 as_fn_error $? "No argument for --with-libintl-lib" "$LINENO" 5 17051elif test "X$with_libintl" = "X"; then 17052 with_libintl=yes 17053fi 17054fi 17055 17056 17057# Check whether --with-libintl-include was given. 17058if test ${with_libintl_include+y} 17059then : 17060 withval=$with_libintl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 17061 as_fn_error $? "No argument for --with-libintl-include" "$LINENO" 5 17062elif test "X$with_libintl" = "X"; then 17063 with_libintl=yes 17064fi 17065fi 17066 17067 17068# Check whether --with-libintl-config was given. 17069if test ${with_libintl_config+y} 17070then : 17071 withval=$with_libintl_config; 17072fi 17073 17074 17075 17076 17077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libintl" >&5 17078printf %s "checking for libintl... " >&6; } 17079 17080case "$with_libintl" in 17081yes|"") d='' ;; 17082no) d= ;; 17083*) d="$with_libintl" ;; 17084esac 17085 17086header_dirs= 17087lib_dirs= 17088for i in $d; do 17089 if test "$with_libintl_include" = ""; then 17090 if test -d "$i/include/libintl"; then 17091 header_dirs="$header_dirs $i/include/libintl" 17092 fi 17093 if test -d "$i/include"; then 17094 header_dirs="$header_dirs $i/include" 17095 fi 17096 fi 17097 if test "$with_libintl_lib" = ""; then 17098 if test -d "$i/lib$abilibdirext"; then 17099 lib_dirs="$lib_dirs $i/lib$abilibdirext" 17100 fi 17101 fi 17102done 17103 17104if test "$with_libintl_include"; then 17105 header_dirs="$with_libintl_include $header_dirs" 17106fi 17107if test "$with_libintl_lib"; then 17108 lib_dirs="$with_libintl_lib $lib_dirs" 17109fi 17110 17111if test "$with_libintl_config" = ""; then 17112 with_libintl_config='' 17113fi 17114 17115libintl_cflags= 17116libintl_libs= 17117 17118case "$with_libintl_config" in 17119yes|no|""|"") 17120 if test -f $with_libintl/bin/ ; then 17121 with_libintl_config=$with_libintl/bin/ 17122 fi 17123 ;; 17124esac 17125 17126case "$with_libintl_config" in 17127yes|no|"") 17128 ;; 17129*) 17130 libintl_cflags="`$with_libintl_config --cflags 2>&1`" 17131 libintl_libs="`$with_libintl_config --libs 2>&1`" 17132 ;; 17133esac 17134 17135found=no 17136if test "$with_libintl" != no; then 17137 save_CFLAGS="$CFLAGS" 17138 save_LIBS="$LIBS" 17139 if test "$libintl_cflags" -a "$libintl_libs"; then 17140 CFLAGS="$libintl_cflags $save_CFLAGS" 17141 LIBS="$libintl_libs $save_LIBS" 17142 17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17144/* end confdefs.h. */ 17145#include <libintl.h> 17146int 17147main (void) 17148{ 17149 17150 ; 17151 return 0; 17152} 17153_ACEOF 17154if ac_fn_c_try_link "$LINENO" 17155then : 17156 17157 INCLUDE_libintl="$libintl_cflags" 17158 LIB_libintl="$libintl_libs" 17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_libintl_config" >&5 17160printf "%s\n" "from $with_libintl_config" >&6; } 17161 found=yes 17162fi 17163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17164 conftest$ac_exeext conftest.$ac_ext 17165 fi 17166 if test "$found" = no; then 17167 ires= lres= 17168 for i in $header_dirs; do 17169 CFLAGS="-I$i $save_CFLAGS" 17170 17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17172/* end confdefs.h. */ 17173#include <libintl.h> 17174int 17175main (void) 17176{ 17177 17178 ; 17179 return 0; 17180} 17181_ACEOF 17182if ac_fn_c_try_compile "$LINENO" 17183then : 17184 ires=$i;break 17185fi 17186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17187 done 17188 for i in $lib_dirs; do 17189 LIBS="-L$i -lintl $save_LIBS" 17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17191/* end confdefs.h. */ 17192#include <libintl.h> 17193int 17194main (void) 17195{ 17196 17197 ; 17198 return 0; 17199} 17200_ACEOF 17201if ac_fn_c_try_link "$LINENO" 17202then : 17203 lres=$i;break 17204fi 17205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17206 conftest$ac_exeext conftest.$ac_ext 17207 done 17208 if test "$ires" -a "$lres" -a "$with_libintl" != "no"; then 17209 INCLUDE_libintl="-I$ires" 17210 LIB_libintl="-L$lres -lintl " 17211 found=yes 17212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 17213printf "%s\n" "headers $ires, libraries $lres" >&6; } 17214 fi 17215 fi 17216 CFLAGS="$save_CFLAGS" 17217 LIBS="$save_LIBS" 17218fi 17219 17220if test "$found" = yes; then 17221 17222printf "%s\n" "#define LIBINTL 1" >>confdefs.h 17223 17224 with_libintl=yes 17225else 17226 with_libintl=no 17227 INCLUDE_libintl= 17228 LIB_libintl= 17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17230printf "%s\n" "no" >&6; } 17231fi 17232 17233 17234 17235 17236 17237 17238# Check whether --with-hdbdir was given. 17239if test ${with_hdbdir+y} 17240then : 17241 withval=$with_hdbdir; 17242else $as_nop 17243 with_hdbdir=/var/heimdal 17244fi 17245 17246DIR_hdbdir="$with_hdbdir" 17247 17248 17249 17250 if true; then 17251 KRB5_TRUE= 17252 KRB5_FALSE='#' 17253else 17254 KRB5_TRUE='#' 17255 KRB5_FALSE= 17256fi 17257 17258 if true; then 17259 do_roken_rename_TRUE= 17260 do_roken_rename_FALSE='#' 17261else 17262 do_roken_rename_TRUE='#' 17263 do_roken_rename_FALSE= 17264fi 17265 17266 17267 17268printf "%s\n" "#define SUPPORT_INETD 1" >>confdefs.h 17269 17270 17271 17272printf "%s\n" "#define KRB5 1" >>confdefs.h 17273 17274 17275 17276# Check whether --with-hcrypto-default-backend was given. 17277if test ${with_hcrypto_default_backend+y} 17278then : 17279 withval=$with_hcrypto_default_backend; 17280 CFLAGS="${CFLAGS} -DHCRYPTO_DEF_PROVIDER=${withval}" 17281 case "$withval" in 17282 cc) 17283printf "%s\n" "#define HCRYPTO_DEF_PROVIDER cc" >>confdefs.h 17284;; 17285 pkcs11_hcrypto) 17286printf "%s\n" "#define HCRYPTO_DEF_PROVIDER pkcs11_hcrypto" >>confdefs.h 17287;; 17288 ossl) 17289printf "%s\n" "#define HCRYPTO_DEF_PROVIDER ossl" >>confdefs.h 17290;; 17291 w32crypto) 17292printf "%s\n" "#define HCRYPTO_DEF_PROVIDER w32crypto" >>confdefs.h 17293;; 17294 hcrypto) 17295printf "%s\n" "#define HCRYPTO_DEF_PROVIDER hcrypto" >>confdefs.h 17296;; 17297 *) echo "Invalid hcrypto provider name ($withval)"; exit 5;; 17298 esac 17299 17300fi 17301 17302 17303# Check whether --with-hcrypto-fallback was given. 17304if test ${with_hcrypto_fallback+y} 17305then : 17306 withval=$with_hcrypto_fallback; 17307printf "%s\n" "#define HCRYPTO_FALLBACK 0" >>confdefs.h 17308 17309else $as_nop 17310 17311printf "%s\n" "#define HCRYPTO_FALLBACK 1" >>confdefs.h 17312 17313fi 17314 17315 17316 17317# Check whether --with-openssl was given. 17318if test ${with_openssl+y} 17319then : 17320 withval=$with_openssl; 17321fi 17322 17323 17324 17325# Check whether --with-openssl-lib was given. 17326if test ${with_openssl_lib+y} 17327then : 17328 withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 17329 as_fn_error $? "No argument for --with-openssl-lib" "$LINENO" 5 17330elif test "X$with_openssl" = "X"; then 17331 with_openssl=yes 17332fi 17333fi 17334 17335 17336 17337# Check whether --with-openssl-include was given. 17338if test ${with_openssl_include+y} 17339then : 17340 withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 17341 as_fn_error $? "No argument for --with-openssl-include" "$LINENO" 5 17342elif test "X$with_openssl" = "X"; then 17343 with_openssl=yes 17344fi 17345fi 17346 17347 17348case "$with_openssl" in 17349yes) ;; 17350no) ;; 17351"") ;; 17352*) if test "$with_openssl_include" = ""; then 17353 with_openssl_include="$with_openssl/include" 17354 fi 17355 if test "$with_openssl_lib" = ""; then 17356 with_openssl_lib="$with_openssl/lib$abilibdirext" 17357 fi 17358 ;; 17359esac 17360 17361 17362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5 17363printf %s "checking for crypto library... " >&6; } 17364 17365openssl=no 17366 17367if test "$with_openssl" = "yes"; then 17368 with_openssl=/usr 17369fi 17370if test "$with_openssl" != "no"; then 17371 saved_CFLAGS="${CFLAGS}" 17372 saved_LDFLAGS="${LDFLAGS}" 17373 INCLUDE_openssl_crypto= 17374 LIB_openssl_crypto= 17375 if test "$with_openssl_include" != ""; then 17376 INCLUDE_openssl_crypto="-I${with_openssl_include}" 17377 else 17378 INCLUDE_openssl_crypto="-I${with_openssl}/include" 17379 fi 17380 if test "$with_openssl_lib" != ""; then 17381 LIB_openssl_crypto="-L${with_openssl_lib}" 17382 elif test "${with_openssl}" != "/usr" -a -d "${with_openssl}/lib"; then 17383 LIB_openssl_crypto="-L${with_openssl}/lib" 17384 fi 17385 CFLAGS="-DHAVE_HCRYPTO_W_OPENSSL ${INCLUDE_openssl_crypto} ${CFLAGS}" 17386 LDFLAGS="${LIB_openssl_crypto} ${LDFLAGS}" 17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 17388printf %s "checking for OPENSSL_init in -lcrypto... " >&6; } 17389if test ${ac_cv_lib_crypto_OPENSSL_init+y} 17390then : 17391 printf %s "(cached) " >&6 17392else $as_nop 17393 ac_check_lib_save_LIBS=$LIBS 17394LIBS="-lcrypto $LIBS" 17395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17396/* end confdefs.h. */ 17397 17398/* Override any GCC internal prototype to avoid an error. 17399 Use char because int might match the return type of a GCC 17400 builtin and then its argument prototype would still apply. */ 17401char OPENSSL_init (); 17402int 17403main (void) 17404{ 17405return OPENSSL_init (); 17406 ; 17407 return 0; 17408} 17409_ACEOF 17410if ac_fn_c_try_link "$LINENO" 17411then : 17412 ac_cv_lib_crypto_OPENSSL_init=yes 17413else $as_nop 17414 ac_cv_lib_crypto_OPENSSL_init=no 17415fi 17416rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17417 conftest$ac_exeext conftest.$ac_ext 17418LIBS=$ac_check_lib_save_LIBS 17419fi 17420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 17421printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 17422if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes 17423then : 17424 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto"; openssl=yes 17425else $as_nop 17426 openssl=no 17427fi 17428 17429 # These cases are just for static linking on older OSes, 17430 # presumably. 17431 if test "$openssl" = "no"; then 17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 17433printf %s "checking for OPENSSL_init in -lcrypto... " >&6; } 17434if test ${ac_cv_lib_crypto_OPENSSL_init+y} 17435then : 17436 printf %s "(cached) " >&6 17437else $as_nop 17438 ac_check_lib_save_LIBS=$LIBS 17439LIBS="-lcrypto -ldl $LIBS" 17440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17441/* end confdefs.h. */ 17442 17443/* Override any GCC internal prototype to avoid an error. 17444 Use char because int might match the return type of a GCC 17445 builtin and then its argument prototype would still apply. */ 17446char OPENSSL_init (); 17447int 17448main (void) 17449{ 17450return OPENSSL_init (); 17451 ; 17452 return 0; 17453} 17454_ACEOF 17455if ac_fn_c_try_link "$LINENO" 17456then : 17457 ac_cv_lib_crypto_OPENSSL_init=yes 17458else $as_nop 17459 ac_cv_lib_crypto_OPENSSL_init=no 17460fi 17461rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17462 conftest$ac_exeext conftest.$ac_ext 17463LIBS=$ac_check_lib_save_LIBS 17464fi 17465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 17466printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 17467if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes 17468then : 17469 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl"; openssl=yes 17470else $as_nop 17471 openssl=no 17472fi 17473 17474 fi 17475 if test "$openssl" = "no"; then 17476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 17477printf %s "checking for OPENSSL_init in -lcrypto... " >&6; } 17478if test ${ac_cv_lib_crypto_OPENSSL_init+y} 17479then : 17480 printf %s "(cached) " >&6 17481else $as_nop 17482 ac_check_lib_save_LIBS=$LIBS 17483LIBS="-lcrypto -ldl -lnsl $LIBS" 17484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17485/* end confdefs.h. */ 17486 17487/* Override any GCC internal prototype to avoid an error. 17488 Use char because int might match the return type of a GCC 17489 builtin and then its argument prototype would still apply. */ 17490char OPENSSL_init (); 17491int 17492main (void) 17493{ 17494return OPENSSL_init (); 17495 ; 17496 return 0; 17497} 17498_ACEOF 17499if ac_fn_c_try_link "$LINENO" 17500then : 17501 ac_cv_lib_crypto_OPENSSL_init=yes 17502else $as_nop 17503 ac_cv_lib_crypto_OPENSSL_init=no 17504fi 17505rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17506 conftest$ac_exeext conftest.$ac_ext 17507LIBS=$ac_check_lib_save_LIBS 17508fi 17509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 17510printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 17511if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes 17512then : 17513 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl -lnsl"; openssl=yes 17514else $as_nop 17515 openssl=no 17516fi 17517 17518 fi 17519 if test "$openssl" = "no"; then 17520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 17521printf %s "checking for OPENSSL_init in -lcrypto... " >&6; } 17522if test ${ac_cv_lib_crypto_OPENSSL_init+y} 17523then : 17524 printf %s "(cached) " >&6 17525else $as_nop 17526 ac_check_lib_save_LIBS=$LIBS 17527LIBS="-lcrypto -ldl -lnsl -lsocket $LIBS" 17528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530 17531/* Override any GCC internal prototype to avoid an error. 17532 Use char because int might match the return type of a GCC 17533 builtin and then its argument prototype would still apply. */ 17534char OPENSSL_init (); 17535int 17536main (void) 17537{ 17538return OPENSSL_init (); 17539 ; 17540 return 0; 17541} 17542_ACEOF 17543if ac_fn_c_try_link "$LINENO" 17544then : 17545 ac_cv_lib_crypto_OPENSSL_init=yes 17546else $as_nop 17547 ac_cv_lib_crypto_OPENSSL_init=no 17548fi 17549rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17550 conftest$ac_exeext conftest.$ac_ext 17551LIBS=$ac_check_lib_save_LIBS 17552fi 17553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 17554printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 17555if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes 17556then : 17557 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl -lnsl -lsocket"; openssl=yes 17558else $as_nop 17559 openssl=no 17560fi 17561 17562 fi 17563 if test "$openssl" = "no"; then 17564 INCLUDE_openssl_crypto= 17565 LIB_openssl_crypto= 17566 fi 17567 CFLAGS="${saved_CFLAGS}" 17568 LDFLAGS="${saved_LDFLAGS}" 17569fi 17570 17571LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la' 17572LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a' 17573LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so' 17574LIB_hcrypto_appl="-lhcrypto" 17575 17576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: included libhcrypto" >&5 17577printf "%s\n" "included libhcrypto" >&6; } 17578 17579 17580# Check whether --with-pkcs11-module was given. 17581if test ${with_pkcs11_module+y} 17582then : 17583 withval=$with_pkcs11_module; pkcs11_module="$withval" 17584fi 17585 17586 17587if test "$pkcs11_module" != ""; then 17588 17589printf "%s\n" "#define PKCS11_MODULE_PATH \"$pkcs11_module\"" >>confdefs.h 17590 17591 openssl=no 17592fi 17593 17594if test "$openssl" = "yes"; then 17595 17596printf "%s\n" "#define HAVE_HCRYPTO_W_OPENSSL 1" >>confdefs.h 17597 17598fi 17599 if test "$openssl" = yes; then 17600 HAVE_HCRYPTO_W_OPENSSL_TRUE= 17601 HAVE_HCRYPTO_W_OPENSSL_FALSE='#' 17602else 17603 HAVE_HCRYPTO_W_OPENSSL_TRUE='#' 17604 HAVE_HCRYPTO_W_OPENSSL_FALSE= 17605fi 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling threadsafe libraries" >&5 17617printf %s "checking if compiling threadsafe libraries... " >&6; } 17618 17619# Check whether --enable-pthread-support was given. 17620if test ${enable_pthread_support+y} 17621then : 17622 enableval=$enable_pthread_support; 17623else $as_nop 17624 enable_pthread_support=maybe 17625fi 17626 17627 17628case "$host" in 17629*-*-solaris2*) 17630 native_pthread_support=yes 17631 if test "$GCC" = yes; then 17632 PTHREAD_CFLAGS="-D_REENTRANT -D_TS_ERRNO" 17633 PTHREAD_LIBADD=-lpthread 17634 else 17635 PTHREAD_CFLAGS="-mt -D_REENTRANT -D_TS_ERRNO" 17636 PTHREAD_LDADD=-mt 17637 PTHREAD_LIBADD="-mt -lpthread" 17638 fi 17639 ;; 17640*-*-netbsd[12]*) 17641 native_pthread_support="if running netbsd 1.6T or newer" 17642 PTHREAD_LIBADD="-lpthread" 17643 ;; 17644*-*-netbsd[3456789]*) 17645 native_pthread_support="netbsd 3 uses explict pthread" 17646 PTHREAD_LIBADD="-lpthread" 17647 ;; 17648*-*-freebsd[1234]) 17649 ;; 17650*-*-freebsd*) 17651 native_pthread_support=yes 17652 PTHREAD_LIBADD="-pthread" 17653 ;; 17654*-*-openbsd*) 17655 native_pthread_support=yes 17656 PTHREAD_CFLAGS=-pthread 17657 PTHREAD_LIBADD=-pthread 17658 ;; 17659*-*-gnu*) 17660 native_pthread_support=yes 17661 PTHREADS_CFLAGS=-pthread 17662 PTHREAD_LIBADD="-pthread -lpthread" 17663 ;; 17664*-*-linux* | *-*-linux-gnu) 17665 case `uname -r` in 17666 2.*|3.*) 17667 native_pthread_support=yes 17668 PTHREAD_CFLAGS=-pthread 17669 PTHREAD_LIBADD=-pthread 17670 ;; 17671 esac 17672 ;; 17673*-*-kfreebsd*-gnu*) 17674 native_pthread_support=yes 17675 PTHREAD_CFLAGS=-pthread 17676 PTHREAD_LIBADD=-pthread 17677 ;; 17678*-*-aix*) 17679 native_pthread_support=no 17680 ;; 17681mips-sgi-irix6.[5-9]) # maybe works for earlier versions too 17682 native_pthread_support=yes 17683 PTHREAD_LIBADD="-lpthread" 17684 ;; 17685*-*-darwin*) 17686 native_pthread_support=yes 17687 ;; 17688*) 17689 native_pthread_support=no 17690 ;; 17691esac 17692 17693if test "$enable_pthread_support" = maybe ; then 17694 enable_pthread_support="$native_pthread_support" 17695fi 17696 17697if test "$enable_pthread_support" != no; then 17698 17699printf "%s\n" "#define ENABLE_PTHREAD_SUPPORT 1" >>confdefs.h 17700 17701 LIBS="$PTHREAD_LIBADD $LIBS" 17702else 17703 PTHREAD_CFLAGS="" 17704 PTHREAD_LIBADD="" 17705fi 17706 17707 if test "$enable_pthread_support" != no; then 17708 ENABLE_PTHREAD_SUPPORT_TRUE= 17709 ENABLE_PTHREAD_SUPPORT_FALSE='#' 17710else 17711 ENABLE_PTHREAD_SUPPORT_TRUE='#' 17712 ENABLE_PTHREAD_SUPPORT_FALSE= 17713fi 17714 17715 17716CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17717LDADD="$LDADD $PTHREAD_LDADD" 17718LIBADD="$LIBADD $PTHREAD_LIBADD" 17719 17720 17721 17722 17723 17724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pthread_support" >&5 17725printf "%s\n" "$enable_pthread_support" >&6; } 17726 17727 17728# Check whether --enable-dce was given. 17729if test ${enable_dce+y} 17730then : 17731 enableval=$enable_dce; 17732fi 17733 17734if test "$enable_dce" = yes; then 17735 17736printf "%s\n" "#define DCE 1" >>confdefs.h 17737 17738fi 17739 if test "$enable_dce" = yes; then 17740 DCE_TRUE= 17741 DCE_FALSE='#' 17742else 17743 DCE_TRUE='#' 17744 DCE_FALSE= 17745fi 17746 17747 17748## XXX quite horrible: 17749if test -f /etc/ibmcxx.cfg; then 17750 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 17751 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 17752 dpagaix_ldflags= 17753else 17754 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 17755 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 17756 dpagaix_ldflags="-Wl,-bI:dfspag.exp" 17757fi 17758 17759 17760 17761 17762# Check whether --enable-afs-support was given. 17763if test ${enable_afs_support+y} 17764then : 17765 enableval=$enable_afs_support; 17766fi 17767 17768if test "$enable_afs_support" = no; then 17769 17770printf "%s\n" "#define NO_AFS 1" >>confdefs.h 17771 17772 NO_AFS="1" 17773fi 17774 if test "$enable_afs_support" = no; then 17775 NO_AFS_TRUE= 17776 NO_AFS_FALSE='#' 17777else 17778 NO_AFS_TRUE='#' 17779 NO_AFS_FALSE= 17780fi 17781 17782 17783 17784 17785# Check whether --with-db-type-preference was given. 17786if test ${with_db_type_preference+y} 17787then : 17788 withval=$with_db_type_preference; db_type_preference="$withval" 17789else $as_nop 17790 db_type_preference="lmdb db3 db1 sqlite" 17791fi 17792 17793 17794# Check whether --with-berkeley-db was given. 17795if test ${with_berkeley_db+y} 17796then : 17797 withval=$with_berkeley_db; 17798else $as_nop 17799 with_berkeley_db=check 17800fi 17801 17802 17803dbheader="" 17804 17805# Check whether --with-berkeley-db-include was given. 17806if test ${with_berkeley_db_include+y} 17807then : 17808 withval=$with_berkeley_db_include; dbheader=$withval 17809else $as_nop 17810 with_berkeley_db_include=check 17811fi 17812 17813 17814# Check whether --enable-ndbm-db was given. 17815if test ${enable_ndbm_db+y} 17816then : 17817 enableval=$enable_ndbm_db; 17818 17819fi 17820 17821 17822# Check whether --enable-mdb-db was given. 17823if test ${enable_mdb_db+y} 17824then : 17825 enableval=$enable_mdb_db; 17826 17827fi 17828 17829 17830have_db1=no 17831have_db3=no 17832have_lmdb=no 17833db_type=unknown 17834 17835if test "x$with_berkeley_db" != xno 17836then : 17837 if test "x$with_berkeley_db_include" != xcheck 17838then : 17839 for ac_header in "$dbheader/db.h" 17840do : 17841 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 17842ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17843if eval test \"x\$"$as_ac_Header"\" = x"yes" 17844then : 17845 cat >>confdefs.h <<_ACEOF 17846#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 17847_ACEOF 17848 DBHEADER=$dbheader 17849 17850 17851printf "%s\n" "#define HAVE_DBHEADER 1" >>confdefs.h 17852 17853 17854else $as_nop 17855 if test "x$with_berkeley_db_include" != xcheck; then 17856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17857printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17858as_fn_error $? "--with-berkeley-db-include was given but include test failed 17859See \`config.log' for more details" "$LINENO" 5; } 17860 fi 17861 17862fi 17863 17864done 17865else $as_nop 17866 ac_fn_c_check_header_compile "$LINENO" "db6/db.h" "ac_cv_header_db6_db_h" "$ac_includes_default" 17867if test "x$ac_cv_header_db6_db_h" = xyes 17868then : 17869 printf "%s\n" "#define HAVE_DB6_DB_H 1" >>confdefs.h 17870 17871fi 17872ac_fn_c_check_header_compile "$LINENO" "db5/db.h" "ac_cv_header_db5_db_h" "$ac_includes_default" 17873if test "x$ac_cv_header_db5_db_h" = xyes 17874then : 17875 printf "%s\n" "#define HAVE_DB5_DB_H 1" >>confdefs.h 17876 17877fi 17878ac_fn_c_check_header_compile "$LINENO" "db4/db.h" "ac_cv_header_db4_db_h" "$ac_includes_default" 17879if test "x$ac_cv_header_db4_db_h" = xyes 17880then : 17881 printf "%s\n" "#define HAVE_DB4_DB_H 1" >>confdefs.h 17882 17883fi 17884ac_fn_c_check_header_compile "$LINENO" "db3/db.h" "ac_cv_header_db3_db_h" "$ac_includes_default" 17885if test "x$ac_cv_header_db3_db_h" = xyes 17886then : 17887 printf "%s\n" "#define HAVE_DB3_DB_H 1" >>confdefs.h 17888 17889fi 17890ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 17891if test "x$ac_cv_header_db_h" = xyes 17892then : 17893 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h 17894 17895fi 17896 17897fi 17898 17899 17900 17901 17902 17903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for db_create" >&5 17904printf %s "checking for db_create... " >&6; } 17905if test ${ac_cv_funclib_db_create+y} 17906then : 17907 printf %s "(cached) " >&6 17908else $as_nop 17909 17910if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 17911 ac_save_LIBS="$LIBS" 17912 for ac_lib in "" $dbheader db-6 db-5 db4 db3 db; do 17913 case "$ac_lib" in 17914 "") ;; 17915 yes) ac_lib="" ;; 17916 no) continue ;; 17917 -l*) ;; 17918 *) ac_lib="-l$ac_lib" ;; 17919 esac 17920 LIBS=" $ac_lib $ac_save_LIBS" 17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17922/* end confdefs.h. */ 17923 17924 #include <stdio.h> 17925 #ifdef HAVE_DBHEADER 17926 #include <$dbheader/db.h> 17927 #elif HAVE_DB6_DB_H 17928 #include <db6/db.h> 17929 #elif HAVE_DB5_DB_H 17930 #include <db5/db.h> 17931 #elif HAVE_DB4_DB_H 17932 #include <db4/db.h> 17933 #elif defined(HAVE_DB3_DB_H) 17934 #include <db3/db.h> 17935 #else 17936 #include <db.h> 17937 #endif 17938 17939int 17940main (void) 17941{ 17942db_create(NULL, NULL, 0) 17943 ; 17944 return 0; 17945} 17946_ACEOF 17947if ac_fn_c_try_link "$LINENO" 17948then : 17949 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 17950fi 17951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17952 conftest$ac_exeext conftest.$ac_ext 17953 done 17954 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 17955 LIBS="$ac_save_LIBS" 17956fi 17957 17958fi 17959 17960 17961eval "ac_res=\$ac_cv_funclib_db_create" 17962 17963if false; then 17964 ac_fn_c_check_func "$LINENO" "db_create" "ac_cv_func_db_create" 17965if test "x$ac_cv_func_db_create" = xyes 17966then : 17967 printf "%s\n" "#define HAVE_DB_CREATE 1" >>confdefs.h 17968 17969fi 17970 17971fi 17972# db_create 17973eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17974eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17975eval "LIB_db_create=$ac_res" 17976 17977case "$ac_res" in 17978 yes) 17979 eval "ac_cv_func_db_create=yes" 17980 eval "LIB_db_create=" 17981 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 17982 17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17984printf "%s\n" "yes" >&6; } 17985 ;; 17986 no) 17987 eval "ac_cv_func_db_create=no" 17988 eval "LIB_db_create=" 17989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17990printf "%s\n" "no" >&6; } 17991 ;; 17992 *) 17993 eval "ac_cv_func_db_create=yes" 17994 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 17995 17996 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 17997 17998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 17999printf "%s\n" "yes, in $ac_res" >&6; } 18000 ;; 18001esac 18002 18003 18004 18005 if test "$ac_cv_func_db_create" = "yes"; then 18006 have_db3=yes 18007 if test "$ac_cv_funclib_db_create" != "yes"; then 18008 DB3LIB="$ac_cv_funclib_db_create" 18009 else 18010 DB3LIB="" 18011 fi 18012 18013printf "%s\n" "#define HAVE_DB3 1" >>confdefs.h 18014 18015 fi 18016 18017 18018 18019 18020 18021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbopen" >&5 18022printf %s "checking for dbopen... " >&6; } 18023if test ${ac_cv_funclib_dbopen+y} 18024then : 18025 printf %s "(cached) " >&6 18026else $as_nop 18027 18028if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 18029 ac_save_LIBS="$LIBS" 18030 for ac_lib in "" db2 db; do 18031 case "$ac_lib" in 18032 "") ;; 18033 yes) ac_lib="" ;; 18034 no) continue ;; 18035 -l*) ;; 18036 *) ac_lib="-l$ac_lib" ;; 18037 esac 18038 LIBS=" $ac_lib $ac_save_LIBS" 18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18040/* end confdefs.h. */ 18041 18042 #include <stdio.h> 18043 #if defined(HAVE_DB2_DB_H) 18044 #include <db2/db.h> 18045 #elif defined(HAVE_DB_H) 18046 #include <db.h> 18047 #else 18048 #error no db.h 18049 #endif 18050 18051int 18052main (void) 18053{ 18054dbopen(NULL, 0, 0, 0, NULL) 18055 ; 18056 return 0; 18057} 18058_ACEOF 18059if ac_fn_c_try_link "$LINENO" 18060then : 18061 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 18062fi 18063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18064 conftest$ac_exeext conftest.$ac_ext 18065 done 18066 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 18067 LIBS="$ac_save_LIBS" 18068fi 18069 18070fi 18071 18072 18073eval "ac_res=\$ac_cv_funclib_dbopen" 18074 18075if false; then 18076 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen" 18077if test "x$ac_cv_func_dbopen" = xyes 18078then : 18079 printf "%s\n" "#define HAVE_DBOPEN 1" >>confdefs.h 18080 18081fi 18082 18083fi 18084# dbopen 18085eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18086eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18087eval "LIB_dbopen=$ac_res" 18088 18089case "$ac_res" in 18090 yes) 18091 eval "ac_cv_func_dbopen=yes" 18092 eval "LIB_dbopen=" 18093 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18094 18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18096printf "%s\n" "yes" >&6; } 18097 ;; 18098 no) 18099 eval "ac_cv_func_dbopen=no" 18100 eval "LIB_dbopen=" 18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18102printf "%s\n" "no" >&6; } 18103 ;; 18104 *) 18105 eval "ac_cv_func_dbopen=yes" 18106 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18107 18108 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 18109 18110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18111printf "%s\n" "yes, in $ac_res" >&6; } 18112 ;; 18113esac 18114 18115 18116 18117 if test "$ac_cv_func_dbopen" = "yes"; then 18118 have_db1=yes 18119 if test "$ac_cv_funclib_dbopen" != "yes"; then 18120 DB1LIB="$ac_cv_funclib_dbopen" 18121 else 18122 DB1LIB="" 18123 fi 18124 18125printf "%s\n" "#define HAVE_DB1 1" >>confdefs.h 18126 18127 fi 18128 18129 18130 if test "$ac_cv_func_dbm_firstkey" != yes; then 18131 18132 18133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 18134printf %s "checking for dbm_firstkey... " >&6; } 18135if test ${ac_cv_funclib_dbm_firstkey+y} 18136then : 18137 printf %s "(cached) " >&6 18138else $as_nop 18139 18140if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 18141 ac_save_LIBS="$LIBS" 18142 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do 18143 case "$ac_lib" in 18144 "") ;; 18145 yes) ac_lib="" ;; 18146 no) continue ;; 18147 -l*) ;; 18148 *) ac_lib="-l$ac_lib" ;; 18149 esac 18150 LIBS=" $ac_lib $ac_save_LIBS" 18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18152/* end confdefs.h. */ 18153 18154 #include <stdio.h> 18155 #define DB_DBM_HSEARCH 1 18156 #include <db.h> 18157 DBM *dbm; 18158 18159int 18160main (void) 18161{ 18162dbm_firstkey(NULL) 18163 ; 18164 return 0; 18165} 18166_ACEOF 18167if ac_fn_c_try_link "$LINENO" 18168then : 18169 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 18170fi 18171rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18172 conftest$ac_exeext conftest.$ac_ext 18173 done 18174 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 18175 LIBS="$ac_save_LIBS" 18176fi 18177 18178fi 18179 18180 18181eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 18182 18183if false; then 18184 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 18185if test "x$ac_cv_func_dbm_firstkey" = xyes 18186then : 18187 printf "%s\n" "#define HAVE_DBM_FIRSTKEY 1" >>confdefs.h 18188 18189fi 18190 18191fi 18192# dbm_firstkey 18193eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18194eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18195eval "LIB_dbm_firstkey=$ac_res" 18196 18197case "$ac_res" in 18198 yes) 18199 eval "ac_cv_func_dbm_firstkey=yes" 18200 eval "LIB_dbm_firstkey=" 18201 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18202 18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18204printf "%s\n" "yes" >&6; } 18205 ;; 18206 no) 18207 eval "ac_cv_func_dbm_firstkey=no" 18208 eval "LIB_dbm_firstkey=" 18209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18210printf "%s\n" "no" >&6; } 18211 ;; 18212 *) 18213 eval "ac_cv_func_dbm_firstkey=yes" 18214 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18215 18216 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 18217 18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18219printf "%s\n" "yes, in $ac_res" >&6; } 18220 ;; 18221esac 18222 18223 18224 18225 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 18226 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 18227 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 18228 else 18229 NDBMLIB="" 18230 fi 18231 18232printf "%s\n" "#define HAVE_DB_NDBM 1" >>confdefs.h 18233 18234 18235printf "%s\n" "#define HAVE_NEW_DB 1" >>confdefs.h 18236 18237 else 18238 $as_unset ac_cv_func_dbm_firstkey 18239 $as_unset ac_cv_funclib_dbm_firstkey 18240 fi 18241 fi 18242 18243 18244fi # fi berkeley db 18245 18246 18247if test "x$enable_mdb_db" != xno 18248then : 18249 ac_fn_c_check_header_compile "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default" 18250if test "x$ac_cv_header_lmdb_h" = xyes 18251then : 18252 18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5 18254printf %s "checking for mdb_env_create in -llmdb... " >&6; } 18255if test ${ac_cv_lib_lmdb_mdb_env_create+y} 18256then : 18257 printf %s "(cached) " >&6 18258else $as_nop 18259 ac_check_lib_save_LIBS=$LIBS 18260LIBS="-llmdb $LIBS" 18261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18262/* end confdefs.h. */ 18263 18264/* Override any GCC internal prototype to avoid an error. 18265 Use char because int might match the return type of a GCC 18266 builtin and then its argument prototype would still apply. */ 18267char mdb_env_create (); 18268int 18269main (void) 18270{ 18271return mdb_env_create (); 18272 ; 18273 return 0; 18274} 18275_ACEOF 18276if ac_fn_c_try_link "$LINENO" 18277then : 18278 ac_cv_lib_lmdb_mdb_env_create=yes 18279else $as_nop 18280 ac_cv_lib_lmdb_mdb_env_create=no 18281fi 18282rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18283 conftest$ac_exeext conftest.$ac_ext 18284LIBS=$ac_check_lib_save_LIBS 18285fi 18286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5 18287printf "%s\n" "$ac_cv_lib_lmdb_mdb_env_create" >&6; } 18288if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes 18289then : 18290 have_lmdb=yes; LMDBLIB="-llmdb" 18291 18292printf "%s\n" "#define HAVE_LMDB 1" >>confdefs.h 18293 18294fi 18295 18296fi 18297 18298fi 18299 18300for db_type in unknown $db_type_preference; do 18301 if eval test \"x\$have_${db_type}\" = xyes -o ${db_type} = sqlite; then 18302 break 18303 fi 18304 db_type=unknown 18305done 18306 18307if test "x$have_db3" = xyes -a "$db_type" = unknown 18308then : 18309 db_type=db3 18310else $as_nop 18311 db_type="$db_type" 18312fi 18313if test "x$have_db1" = xyes -a "$db_type" = unknown 18314then : 18315 db_type=db1 18316else $as_nop 18317 db_type="$db_type" 18318fi 18319if test "x$have_lmdb" = xyes -a "$db_type" = unknown 18320then : 18321 db_type=lmdb 18322else $as_nop 18323 db_type="$db_type" 18324fi 18325 18326if test "$enable_ndbm_db" != "no"; then 18327 18328 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then 18329 18330 ac_fn_c_check_header_compile "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default" 18331if test "x$ac_cv_header_dbm_h" = xyes 18332then : 18333 printf "%s\n" "#define HAVE_DBM_H 1" >>confdefs.h 18334 18335fi 18336ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 18337if test "x$ac_cv_header_ndbm_h" = xyes 18338then : 18339 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h 18340 18341fi 18342 18343 18344 18345 18346 18347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 18348printf %s "checking for dbm_firstkey... " >&6; } 18349if test ${ac_cv_funclib_dbm_firstkey+y} 18350then : 18351 printf %s "(cached) " >&6 18352else $as_nop 18353 18354if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 18355 ac_save_LIBS="$LIBS" 18356 for ac_lib in "" ndbm; do 18357 case "$ac_lib" in 18358 "") ;; 18359 yes) ac_lib="" ;; 18360 no) continue ;; 18361 -l*) ;; 18362 *) ac_lib="-l$ac_lib" ;; 18363 esac 18364 LIBS=" $ac_lib $ac_save_LIBS" 18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18366/* end confdefs.h. */ 18367 18368 #include <stdio.h> 18369 #if defined(HAVE_NDBM_H) 18370 #include <ndbm.h> 18371 #elif defined(HAVE_DBM_H) 18372 #include <dbm.h> 18373 #endif 18374 DBM *dbm; 18375 18376int 18377main (void) 18378{ 18379dbm_firstkey(NULL) 18380 ; 18381 return 0; 18382} 18383_ACEOF 18384if ac_fn_c_try_link "$LINENO" 18385then : 18386 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 18387fi 18388rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18389 conftest$ac_exeext conftest.$ac_ext 18390 done 18391 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 18392 LIBS="$ac_save_LIBS" 18393fi 18394 18395fi 18396 18397 18398eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 18399 18400if false; then 18401 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 18402if test "x$ac_cv_func_dbm_firstkey" = xyes 18403then : 18404 printf "%s\n" "#define HAVE_DBM_FIRSTKEY 1" >>confdefs.h 18405 18406fi 18407 18408fi 18409# dbm_firstkey 18410eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18411eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18412eval "LIB_dbm_firstkey=$ac_res" 18413 18414case "$ac_res" in 18415 yes) 18416 eval "ac_cv_func_dbm_firstkey=yes" 18417 eval "LIB_dbm_firstkey=" 18418 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18419 18420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18421printf "%s\n" "yes" >&6; } 18422 ;; 18423 no) 18424 eval "ac_cv_func_dbm_firstkey=no" 18425 eval "LIB_dbm_firstkey=" 18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18427printf "%s\n" "no" >&6; } 18428 ;; 18429 *) 18430 eval "ac_cv_func_dbm_firstkey=yes" 18431 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18432 18433 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 18434 18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18436printf "%s\n" "yes, in $ac_res" >&6; } 18437 ;; 18438esac 18439 18440 18441 18442 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 18443 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 18444 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 18445 else 18446 NDBMLIB="" 18447 fi 18448 18449printf "%s\n" "#define HAVE_NDBM 1" >>confdefs.h 18450 have_ndbm=yes 18451 else 18452 18453 $as_unset ac_cv_func_dbm_firstkey 18454 $as_unset ac_cv_funclib_dbm_firstkey 18455 18456 ac_fn_c_check_header_compile "$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default" 18457if test "x$ac_cv_header_gdbm_ndbm_h" = xyes 18458then : 18459 printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h 18460 18461fi 18462 18463 18464 18465 18466 18467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 18468printf %s "checking for dbm_firstkey... " >&6; } 18469if test ${ac_cv_funclib_dbm_firstkey+y} 18470then : 18471 printf %s "(cached) " >&6 18472else $as_nop 18473 18474if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 18475 ac_save_LIBS="$LIBS" 18476 for ac_lib in "" gdbm; do 18477 case "$ac_lib" in 18478 "") ;; 18479 yes) ac_lib="" ;; 18480 no) continue ;; 18481 -l*) ;; 18482 *) ac_lib="-l$ac_lib" ;; 18483 esac 18484 LIBS=" $ac_lib $ac_save_LIBS" 18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18486/* end confdefs.h. */ 18487 18488 #include <stdio.h> 18489 #include <gdbm/ndbm.h> 18490 DBM *dbm; 18491 18492int 18493main (void) 18494{ 18495dbm_firstkey(NULL) 18496 ; 18497 return 0; 18498} 18499_ACEOF 18500if ac_fn_c_try_link "$LINENO" 18501then : 18502 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 18503fi 18504rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18505 conftest$ac_exeext conftest.$ac_ext 18506 done 18507 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 18508 LIBS="$ac_save_LIBS" 18509fi 18510 18511fi 18512 18513 18514eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 18515 18516if false; then 18517 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 18518if test "x$ac_cv_func_dbm_firstkey" = xyes 18519then : 18520 printf "%s\n" "#define HAVE_DBM_FIRSTKEY 1" >>confdefs.h 18521 18522fi 18523 18524fi 18525# dbm_firstkey 18526eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18527eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18528eval "LIB_dbm_firstkey=$ac_res" 18529 18530case "$ac_res" in 18531 yes) 18532 eval "ac_cv_func_dbm_firstkey=yes" 18533 eval "LIB_dbm_firstkey=" 18534 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18535 18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18537printf "%s\n" "yes" >&6; } 18538 ;; 18539 no) 18540 eval "ac_cv_func_dbm_firstkey=no" 18541 eval "LIB_dbm_firstkey=" 18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18543printf "%s\n" "no" >&6; } 18544 ;; 18545 *) 18546 eval "ac_cv_func_dbm_firstkey=yes" 18547 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18548 18549 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 18550 18551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18552printf "%s\n" "yes, in $ac_res" >&6; } 18553 ;; 18554esac 18555 18556 18557 18558 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 18559 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 18560 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 18561 else 18562 NDBMLIB="" 18563 fi 18564 18565printf "%s\n" "#define HAVE_NDBM 1" >>confdefs.h 18566 have_ndbm=yes 18567 if test "$db_type" = "unknown"; then 18568 db_type=ndbm 18569 fi 18570 fi 18571 fi 18572 fi #enable_ndbm_db 18573fi # unknown 18574 18575if test "$have_ndbm" = "yes"; then 18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ndbm is implemented with db" >&5 18577printf %s "checking if ndbm is implemented with db... " >&6; } 18578 if test "$cross_compiling" = yes 18579then : 18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no-cross" >&5 18581printf "%s\n" "no-cross" >&6; } 18582else $as_nop 18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18584/* end confdefs.h. */ 18585 18586#include <unistd.h> 18587#include <fcntl.h> 18588#if defined(HAVE_GDBM_NDBM_H) 18589#include <gdbm/ndbm.h> 18590#elif defined(HAVE_NDBM_H) 18591#include <ndbm.h> 18592#elif defined(HAVE_DBM_H) 18593#include <dbm.h> 18594#endif 18595int main(int argc, char **argv) 18596{ 18597 DBM *d; 18598 18599 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666); 18600 if (d == NULL) 18601 return 1; 18602 dbm_close(d); 18603 return 0; 18604} 18605_ACEOF 18606if ac_fn_c_try_run "$LINENO" 18607then : 18608 18609 if test -f conftest.db; then 18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18611printf "%s\n" "yes" >&6; } 18612 18613printf "%s\n" "#define HAVE_NEW_DB 1" >>confdefs.h 18614 18615 else 18616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18617printf "%s\n" "no" >&6; } 18618 fi 18619else $as_nop 18620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18621printf "%s\n" "no" >&6; } 18622fi 18623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18624 conftest.$ac_objext conftest.beam conftest.$ac_ext 18625fi 18626 18627fi 18628 18629 if test "$have_db1" = yes; then 18630 HAVE_DB1_TRUE= 18631 HAVE_DB1_FALSE='#' 18632else 18633 HAVE_DB1_TRUE='#' 18634 HAVE_DB1_FALSE= 18635fi 18636 if test "$have_db3" = yes; then 18637 HAVE_DB3_TRUE= 18638 HAVE_DB3_FALSE='#' 18639else 18640 HAVE_DB3_TRUE='#' 18641 HAVE_DB3_FALSE= 18642fi 18643 if test "$have_lmdb" = yes; then 18644 HAVE_LMDB_TRUE= 18645 HAVE_LMDB_FALSE='#' 18646else 18647 HAVE_LMDB_TRUE='#' 18648 HAVE_LMDB_FALSE= 18649fi 18650 if test "$have_ndbm" = yes; then 18651 HAVE_NDBM_TRUE= 18652 HAVE_NDBM_FALSE='#' 18653else 18654 HAVE_NDBM_TRUE='#' 18655 HAVE_NDBM_FALSE= 18656fi 18657 if test "$dbheader" != ""; then 18658 HAVE_DBHEADER_TRUE= 18659 HAVE_DBHEADER_FALSE='#' 18660else 18661 HAVE_DBHEADER_TRUE='#' 18662 HAVE_DBHEADER_FALSE= 18663fi 18664 18665## it's probably not correct to include LDFLAGS here, but we might 18666## need it, for now just add any possible -L 18667z="" 18668for i in $LDFLAGS; do 18669 case "$i" in 18670 -L*) z="$z $i";; 18671 esac 18672done 18673DB3LIB="$z $DB3LIB" 18674DB1LIB="$z $DB1LIB" 18675LMDBLIB="$z $LMDBLIB" 18676NDMBLIB="$z $NDBMLIB" 18677 18678 18679 18680 18681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 18682printf %s "checking for inline... " >&6; } 18683if test ${ac_cv_c_inline+y} 18684then : 18685 printf %s "(cached) " >&6 18686else $as_nop 18687 ac_cv_c_inline=no 18688for ac_kw in inline __inline__ __inline; do 18689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18690/* end confdefs.h. */ 18691#ifndef __cplusplus 18692typedef int foo_t; 18693static $ac_kw foo_t static_foo (void) {return 0; } 18694$ac_kw foo_t foo (void) {return 0; } 18695#endif 18696 18697_ACEOF 18698if ac_fn_c_try_compile "$LINENO" 18699then : 18700 ac_cv_c_inline=$ac_kw 18701fi 18702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18703 test "$ac_cv_c_inline" != no && break 18704done 18705 18706fi 18707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 18708printf "%s\n" "$ac_cv_c_inline" >&6; } 18709 18710case $ac_cv_c_inline in 18711 inline | yes) ;; 18712 *) 18713 case $ac_cv_c_inline in 18714 no) ac_val=;; 18715 *) ac_val=$ac_cv_c_inline;; 18716 esac 18717 cat >>confdefs.h <<_ACEOF 18718#ifndef __cplusplus 18719#define inline $ac_val 18720#endif 18721_ACEOF 18722 ;; 18723esac 18724 18725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18726printf %s "checking for an ANSI C-conforming const... " >&6; } 18727if test ${ac_cv_c_const+y} 18728then : 18729 printf %s "(cached) " >&6 18730else $as_nop 18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18732/* end confdefs.h. */ 18733 18734int 18735main (void) 18736{ 18737 18738#ifndef __cplusplus 18739 /* Ultrix mips cc rejects this sort of thing. */ 18740 typedef int charset[2]; 18741 const charset cs = { 0, 0 }; 18742 /* SunOS 4.1.1 cc rejects this. */ 18743 char const *const *pcpcc; 18744 char **ppc; 18745 /* NEC SVR4.0.2 mips cc rejects this. */ 18746 struct point {int x, y;}; 18747 static struct point const zero = {0,0}; 18748 /* IBM XL C 1.02.0.0 rejects this. 18749 It does not let you subtract one const X* pointer from another in 18750 an arm of an if-expression whose if-part is not a constant 18751 expression */ 18752 const char *g = "string"; 18753 pcpcc = &g + (g ? g-g : 0); 18754 /* HPUX 7.0 cc rejects these. */ 18755 ++pcpcc; 18756 ppc = (char**) pcpcc; 18757 pcpcc = (char const *const *) ppc; 18758 { /* SCO 3.2v4 cc rejects this sort of thing. */ 18759 char tx; 18760 char *t = &tx; 18761 char const *s = 0 ? (char *) 0 : (char const *) 0; 18762 18763 *t++ = 0; 18764 if (s) return 0; 18765 } 18766 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18767 int x[] = {25, 17}; 18768 const int *foo = &x[0]; 18769 ++foo; 18770 } 18771 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18772 typedef const int *iptr; 18773 iptr p = 0; 18774 ++p; 18775 } 18776 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 18777 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18778 struct s { int j; const int *ap[3]; } bx; 18779 struct s *b = &bx; b->j = 5; 18780 } 18781 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18782 const int foo = 10; 18783 if (!foo) return 0; 18784 } 18785 return !cs[0] && !zero.x; 18786#endif 18787 18788 ; 18789 return 0; 18790} 18791_ACEOF 18792if ac_fn_c_try_compile "$LINENO" 18793then : 18794 ac_cv_c_const=yes 18795else $as_nop 18796 ac_cv_c_const=no 18797fi 18798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18799fi 18800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18801printf "%s\n" "$ac_cv_c_const" >&6; } 18802if test $ac_cv_c_const = no; then 18803 18804printf "%s\n" "#define const /**/" >>confdefs.h 18805 18806fi 18807 18808ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18809if test "x$ac_cv_type_size_t" = xyes 18810then : 18811 18812else $as_nop 18813 18814printf "%s\n" "#define size_t unsigned int" >>confdefs.h 18815 18816fi 18817 18818# Autoupdate added the next two lines to ensure that your configure 18819# script's behavior did not change. They are probably safe to remove. 18820 18821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 18822printf %s "checking for egrep... " >&6; } 18823if test ${ac_cv_path_EGREP+y} 18824then : 18825 printf %s "(cached) " >&6 18826else $as_nop 18827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 18828 then ac_cv_path_EGREP="$GREP -E" 18829 else 18830 if test -z "$EGREP"; then 18831 ac_path_EGREP_found=false 18832 # Loop through the user's path and test for each of PROGNAME-LIST 18833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 18835do 18836 IFS=$as_save_IFS 18837 case $as_dir in #((( 18838 '') as_dir=./ ;; 18839 */) ;; 18840 *) as_dir=$as_dir/ ;; 18841 esac 18842 for ac_prog in egrep 18843 do 18844 for ac_exec_ext in '' $ac_executable_extensions; do 18845 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 18846 as_fn_executable_p "$ac_path_EGREP" || continue 18847# Check for GNU ac_path_EGREP and select it if it is found. 18848 # Check for GNU $ac_path_EGREP 18849case `"$ac_path_EGREP" --version 2>&1` in 18850*GNU*) 18851 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 18852*) 18853 ac_count=0 18854 printf %s 0123456789 >"conftest.in" 18855 while : 18856 do 18857 cat "conftest.in" "conftest.in" >"conftest.tmp" 18858 mv "conftest.tmp" "conftest.in" 18859 cp "conftest.in" "conftest.nl" 18860 printf "%s\n" 'EGREP' >> "conftest.nl" 18861 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 18862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 18863 as_fn_arith $ac_count + 1 && ac_count=$as_val 18864 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 18865 # Best one so far, save it but keep looking for a better one 18866 ac_cv_path_EGREP="$ac_path_EGREP" 18867 ac_path_EGREP_max=$ac_count 18868 fi 18869 # 10*(2^10) chars as input seems more than enough 18870 test $ac_count -gt 10 && break 18871 done 18872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 18873esac 18874 18875 $ac_path_EGREP_found && break 3 18876 done 18877 done 18878 done 18879IFS=$as_save_IFS 18880 if test -z "$ac_cv_path_EGREP"; then 18881 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 18882 fi 18883else 18884 ac_cv_path_EGREP=$EGREP 18885fi 18886 18887 fi 18888fi 18889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 18890printf "%s\n" "$ac_cv_path_EGREP" >&6; } 18891 EGREP="$ac_cv_path_EGREP" 18892 18893 18894 18895 18896 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 18897" 18898if test "x$ac_cv_type_pid_t" = xyes 18899then : 18900 18901else $as_nop 18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18903/* end confdefs.h. */ 18904 18905 #if defined _WIN64 && !defined __CYGWIN__ 18906 LLP64 18907 #endif 18908 18909int 18910main (void) 18911{ 18912 18913 ; 18914 return 0; 18915} 18916 18917_ACEOF 18918if ac_fn_c_try_compile "$LINENO" 18919then : 18920 ac_pid_type='int' 18921else $as_nop 18922 ac_pid_type='__int64' 18923fi 18924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18925 18926printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 18927 18928 18929fi 18930 18931 18932 18933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 18934printf %s "checking for uid_t in sys/types.h... " >&6; } 18935if test ${ac_cv_type_uid_t+y} 18936then : 18937 printf %s "(cached) " >&6 18938else $as_nop 18939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18940/* end confdefs.h. */ 18941#include <sys/types.h> 18942 18943_ACEOF 18944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18945 $EGREP "uid_t" >/dev/null 2>&1 18946then : 18947 ac_cv_type_uid_t=yes 18948else $as_nop 18949 ac_cv_type_uid_t=no 18950fi 18951rm -rf conftest* 18952 18953fi 18954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 18955printf "%s\n" "$ac_cv_type_uid_t" >&6; } 18956if test $ac_cv_type_uid_t = no; then 18957 18958printf "%s\n" "#define uid_t int" >>confdefs.h 18959 18960 18961printf "%s\n" "#define gid_t int" >>confdefs.h 18962 18963fi 18964 18965 18966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 18967printf %s "checking return type of signal handlers... " >&6; } 18968if test ${ac_cv_type_signal+y} 18969then : 18970 printf %s "(cached) " >&6 18971else $as_nop 18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18973/* end confdefs.h. */ 18974#include <sys/types.h> 18975#include <signal.h> 18976 18977int 18978main (void) 18979{ 18980return *(signal (0, 0)) (0) == 1; 18981 ; 18982 return 0; 18983} 18984_ACEOF 18985if ac_fn_c_try_compile "$LINENO" 18986then : 18987 ac_cv_type_signal=int 18988else $as_nop 18989 ac_cv_type_signal=void 18990fi 18991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18992fi 18993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 18994printf "%s\n" "$ac_cv_type_signal" >&6; } 18995 18996printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h 18997 18998 18999if test "$ac_cv_type_signal" = "void" ; then 19000 19001printf "%s\n" "#define VOID_RETSIGTYPE 1" >>confdefs.h 19002 19003fi 19004 19005 19006 19007 19008 19009# Obsolete code to be removed. 19010if test $ac_cv_header_sys_time_h = yes; then 19011 19012printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 19013 19014fi 19015# End of obsolete code. 19016 19017 19018ac_fn_c_check_header_compile "$LINENO" "standards.h" "ac_cv_header_standards_h" "$ac_includes_default" 19019if test "x$ac_cv_header_standards_h" = xyes 19020then : 19021 printf "%s\n" "#define HAVE_STANDARDS_H 1" >>confdefs.h 19022 19023fi 19024 19025for i in netinet/ip.h netinet/tcp.h; do 19026 19027cv=`echo "$i" | sed 'y%./+-%__p_%'` 19028 19029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $i" >&5 19030printf %s "checking for $i... " >&6; } 19031if eval test \${ac_cv_header_$cv+y} 19032then : 19033 printf %s "(cached) " >&6 19034else $as_nop 19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19036/* end confdefs.h. */ 19037 19038#ifdef HAVE_STANDARDS_H 19039#include <standards.h> 19040#endif 19041#include <$i> 19042 19043_ACEOF 19044if ac_fn_c_try_cpp "$LINENO" 19045then : 19046 eval "ac_cv_header_$cv=yes" 19047else $as_nop 19048 eval "ac_cv_header_$cv=no" 19049fi 19050rm -f conftest.err conftest.i conftest.$ac_ext 19051fi 19052eval ac_res=\$ac_cv_header_$cv 19053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19054printf "%s\n" "$ac_res" >&6; } 19055ac_res=`eval echo \\$ac_cv_header_$cv` 19056if test "$ac_res" = yes; then 19057 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19058 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 19059 19060fi 19061done 19062if false;then 19063 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "$ac_includes_default" 19064if test "x$ac_cv_header_netinet_ip_h" = xyes 19065then : 19066 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h 19067 19068fi 19069ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 19070if test "x$ac_cv_header_netinet_tcp_h" = xyes 19071then : 19072 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 19073 19074fi 19075 19076fi 19077 19078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 19079printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 19080if test ${ac_cv_c_undeclared_builtin_options+y} 19081then : 19082 printf %s "(cached) " >&6 19083else $as_nop 19084 ac_save_CFLAGS=$CFLAGS 19085 ac_cv_c_undeclared_builtin_options='cannot detect' 19086 for ac_arg in '' -fno-builtin; do 19087 CFLAGS="$ac_save_CFLAGS $ac_arg" 19088 # This test program should *not* compile successfully. 19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19090/* end confdefs.h. */ 19091 19092int 19093main (void) 19094{ 19095(void) strchr; 19096 ; 19097 return 0; 19098} 19099_ACEOF 19100if ac_fn_c_try_compile "$LINENO" 19101then : 19102 19103else $as_nop 19104 # This test program should compile successfully. 19105 # No library function is consistently available on 19106 # freestanding implementations, so test against a dummy 19107 # declaration. Include always-available headers on the 19108 # off chance that they somehow elicit warnings. 19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19110/* end confdefs.h. */ 19111#include <float.h> 19112#include <limits.h> 19113#include <stdarg.h> 19114#include <stddef.h> 19115extern void ac_decl (int, char *); 19116 19117int 19118main (void) 19119{ 19120(void) ac_decl (0, (char *) 0); 19121 (void) ac_decl; 19122 19123 ; 19124 return 0; 19125} 19126_ACEOF 19127if ac_fn_c_try_compile "$LINENO" 19128then : 19129 if test x"$ac_arg" = x 19130then : 19131 ac_cv_c_undeclared_builtin_options='none needed' 19132else $as_nop 19133 ac_cv_c_undeclared_builtin_options=$ac_arg 19134fi 19135 break 19136fi 19137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19138fi 19139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19140 done 19141 CFLAGS=$ac_save_CFLAGS 19142 19143fi 19144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 19145printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 19146 case $ac_cv_c_undeclared_builtin_options in #( 19147 'cannot detect') : 19148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19149printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19150as_fn_error $? "cannot make $CC report undeclared builtins 19151See \`config.log' for more details" "$LINENO" 5; } ;; #( 19152 'none needed') : 19153 ac_c_undeclared_builtin_options='' ;; #( 19154 *) : 19155 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 19156esac 19157 19158 19159ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin" 19160if test "x$ac_cv_func_getlogin" = xyes 19161then : 19162 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h 19163 19164fi 19165ac_fn_c_check_func "$LINENO" "setlogin" "ac_cv_func_setlogin" 19166if test "x$ac_cv_func_setlogin" = xyes 19167then : 19168 printf "%s\n" "#define HAVE_SETLOGIN 1" >>confdefs.h 19169 19170fi 19171 19172if test "$ac_cv_func_getlogin" = yes; then 19173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getlogin is posix" >&5 19174printf %s "checking if getlogin is posix... " >&6; } 19175if test ${ac_cv_func_getlogin_posix+y} 19176then : 19177 printf %s "(cached) " >&6 19178else $as_nop 19179 19180if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 19181 ac_cv_func_getlogin_posix=no 19182else 19183 ac_cv_func_getlogin_posix=yes 19184fi 19185 19186fi 19187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getlogin_posix" >&5 19188printf "%s\n" "$ac_cv_func_getlogin_posix" >&6; } 19189if test "$ac_cv_func_getlogin_posix" = yes; then 19190 19191printf "%s\n" "#define POSIX_GETLOGIN 1" >>confdefs.h 19192 19193fi 19194fi 19195 19196 19197ac_func= 19198for ac_item in $ac_func_c_list 19199do 19200 if test $ac_func; then 19201 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 19202 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 19203 echo "#define $ac_item 1" >> confdefs.h 19204 fi 19205 ac_func= 19206 else 19207 ac_func=$ac_item 19208 fi 19209done 19210 19211 19212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 19213printf %s "checking for working mmap... " >&6; } 19214if test ${ac_cv_func_mmap_fixed_mapped+y} 19215then : 19216 printf %s "(cached) " >&6 19217else $as_nop 19218 if test "$cross_compiling" = yes 19219then : 19220 case "$host_os" in # (( 19221 # Guess yes on platforms where we know the result. 19222 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 19223 # If we don't know, assume the worst. 19224 *) ac_cv_func_mmap_fixed_mapped=no ;; 19225 esac 19226else $as_nop 19227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19228/* end confdefs.h. */ 19229$ac_includes_default 19230/* malloc might have been renamed as rpl_malloc. */ 19231#undef malloc 19232 19233/* Thanks to Mike Haertel and Jim Avera for this test. 19234 Here is a matrix of mmap possibilities: 19235 mmap private not fixed 19236 mmap private fixed at somewhere currently unmapped 19237 mmap private fixed at somewhere already mapped 19238 mmap shared not fixed 19239 mmap shared fixed at somewhere currently unmapped 19240 mmap shared fixed at somewhere already mapped 19241 For private mappings, we should verify that changes cannot be read() 19242 back from the file, nor mmap's back from the file at a different 19243 address. (There have been systems where private was not correctly 19244 implemented like the infamous i386 svr4.0, and systems where the 19245 VM page cache was not coherent with the file system buffer cache 19246 like early versions of FreeBSD and possibly contemporary NetBSD.) 19247 For shared mappings, we should conversely verify that changes get 19248 propagated back to all the places they're supposed to be. 19249 19250 Grep wants private fixed already mapped. 19251 The main things grep needs to know about mmap are: 19252 * does it exist and is it safe to write into the mmap'd area 19253 * how to use it (BSD variants) */ 19254 19255#include <fcntl.h> 19256#include <sys/mman.h> 19257 19258/* This mess was copied from the GNU getpagesize.h. */ 19259#ifndef HAVE_GETPAGESIZE 19260# ifdef _SC_PAGESIZE 19261# define getpagesize() sysconf(_SC_PAGESIZE) 19262# else /* no _SC_PAGESIZE */ 19263# ifdef HAVE_SYS_PARAM_H 19264# include <sys/param.h> 19265# ifdef EXEC_PAGESIZE 19266# define getpagesize() EXEC_PAGESIZE 19267# else /* no EXEC_PAGESIZE */ 19268# ifdef NBPG 19269# define getpagesize() NBPG * CLSIZE 19270# ifndef CLSIZE 19271# define CLSIZE 1 19272# endif /* no CLSIZE */ 19273# else /* no NBPG */ 19274# ifdef NBPC 19275# define getpagesize() NBPC 19276# else /* no NBPC */ 19277# ifdef PAGESIZE 19278# define getpagesize() PAGESIZE 19279# endif /* PAGESIZE */ 19280# endif /* no NBPC */ 19281# endif /* no NBPG */ 19282# endif /* no EXEC_PAGESIZE */ 19283# else /* no HAVE_SYS_PARAM_H */ 19284# define getpagesize() 8192 /* punt totally */ 19285# endif /* no HAVE_SYS_PARAM_H */ 19286# endif /* no _SC_PAGESIZE */ 19287 19288#endif /* no HAVE_GETPAGESIZE */ 19289 19290int 19291main (void) 19292{ 19293 char *data, *data2, *data3; 19294 const char *cdata2; 19295 int i, pagesize; 19296 int fd, fd2; 19297 19298 pagesize = getpagesize (); 19299 19300 /* First, make a file with some known garbage in it. */ 19301 data = (char *) malloc (pagesize); 19302 if (!data) 19303 return 1; 19304 for (i = 0; i < pagesize; ++i) 19305 *(data + i) = rand (); 19306 umask (0); 19307 fd = creat ("conftest.mmap", 0600); 19308 if (fd < 0) 19309 return 2; 19310 if (write (fd, data, pagesize) != pagesize) 19311 return 3; 19312 close (fd); 19313 19314 /* Next, check that the tail of a page is zero-filled. File must have 19315 non-zero length, otherwise we risk SIGBUS for entire page. */ 19316 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 19317 if (fd2 < 0) 19318 return 4; 19319 cdata2 = ""; 19320 if (write (fd2, cdata2, 1) != 1) 19321 return 5; 19322 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 19323 if (data2 == MAP_FAILED) 19324 return 6; 19325 for (i = 0; i < pagesize; ++i) 19326 if (*(data2 + i)) 19327 return 7; 19328 close (fd2); 19329 if (munmap (data2, pagesize)) 19330 return 8; 19331 19332 /* Next, try to mmap the file at a fixed address which already has 19333 something else allocated at it. If we can, also make sure that 19334 we see the same garbage. */ 19335 fd = open ("conftest.mmap", O_RDWR); 19336 if (fd < 0) 19337 return 9; 19338 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 19339 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 19340 return 10; 19341 for (i = 0; i < pagesize; ++i) 19342 if (*(data + i) != *(data2 + i)) 19343 return 11; 19344 19345 /* Finally, make sure that changes to the mapped area do not 19346 percolate back to the file as seen by read(). (This is a bug on 19347 some variants of i386 svr4.0.) */ 19348 for (i = 0; i < pagesize; ++i) 19349 *(data2 + i) = *(data2 + i) + 1; 19350 data3 = (char *) malloc (pagesize); 19351 if (!data3) 19352 return 12; 19353 if (read (fd, data3, pagesize) != pagesize) 19354 return 13; 19355 for (i = 0; i < pagesize; ++i) 19356 if (*(data + i) != *(data3 + i)) 19357 return 14; 19358 close (fd); 19359 free (data); 19360 free (data3); 19361 return 0; 19362} 19363_ACEOF 19364if ac_fn_c_try_run "$LINENO" 19365then : 19366 ac_cv_func_mmap_fixed_mapped=yes 19367else $as_nop 19368 ac_cv_func_mmap_fixed_mapped=no 19369fi 19370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19371 conftest.$ac_objext conftest.beam conftest.$ac_ext 19372fi 19373 19374fi 19375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 19376printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 19377if test $ac_cv_func_mmap_fixed_mapped = yes; then 19378 19379printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 19380 19381fi 19382rm -f conftest.mmap conftest.txt 19383 19384 19385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if realloc if broken" >&5 19386printf %s "checking if realloc if broken... " >&6; } 19387if test ${ac_cv_func_realloc_broken+y} 19388then : 19389 printf %s "(cached) " >&6 19390else $as_nop 19391 19392ac_cv_func_realloc_broken=no 19393if test "$cross_compiling" = yes 19394then : 19395 : 19396else $as_nop 19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19398/* end confdefs.h. */ 19399 19400#include <stddef.h> 19401#include <stdlib.h> 19402 19403int main(int argc, char **argv) 19404{ 19405 return realloc(NULL, 17) == NULL; 19406} 19407 19408_ACEOF 19409if ac_fn_c_try_run "$LINENO" 19410then : 19411 : 19412else $as_nop 19413 ac_cv_func_realloc_broken=yes 19414fi 19415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19416 conftest.$ac_objext conftest.beam conftest.$ac_ext 19417fi 19418 19419 19420fi 19421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_broken" >&5 19422printf "%s\n" "$ac_cv_func_realloc_broken" >&6; } 19423if test "$ac_cv_func_realloc_broken" = yes ; then 19424 19425printf "%s\n" "#define BROKEN_REALLOC 1" >>confdefs.h 19426 19427fi 19428 19429 19430 19431 19432 19433DIR_roken=roken 19434LIB_roken='$(top_builddir)/lib/roken/libroken.la' 19435INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446printf "%s\n" "#define rk_PATH_DELIM '/'" >>confdefs.h 19447 19448 19449 19450 19451 19452 19453 19454 19455# Check whether --enable-developer was given. 19456if test ${enable_developer+y} 19457then : 19458 enableval=$enable_developer; 19459fi 19460 19461if test "X$enable_developer" = Xyes; then 19462 dwflags="-Werror" 19463fi 19464 if test "X$enable_developer" = Xyes; then 19465 DEVELOPER_MODE_TRUE= 19466 DEVELOPER_MODE_FALSE='#' 19467else 19468 DEVELOPER_MODE_TRUE='#' 19469 DEVELOPER_MODE_FALSE= 19470fi 19471 19472 19473WFLAGS_NOUNUSED="" 19474if test -z "$WFLAGS" -a "$GCC" = "yes"; then 19475 # leave these out for now: 19476 # -Wcast-align doesn't work well on alpha osf/1 19477 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 19478 # -Wmissing-declarations -Wnested-externs 19479 # -Wstrict-overflow=5 19480 WFLAGS="-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow $dwflags" 19481 19482 # 19483 # WFLAGS_LITE can be appended to WFLAGS to turn off a host of warnings 19484 # that fail for various bits of older code in appl/. Let's not use it 19485 # for the main libraries, though. 19486 WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-shadow" 19487 # -Wno-unused-result (not supported on gcc-4.2) 19488 19489fi 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499cv=`echo "ssize_t" | sed 'y%./+- %__p__%'` 19500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 19501printf %s "checking for ssize_t... " >&6; } 19502if eval test \${ac_cv_type_$cv+y} 19503then : 19504 printf %s "(cached) " >&6 19505else $as_nop 19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19507/* end confdefs.h. */ 19508 19509#include <sys/types.h> 19510#if STDC_HEADERS 19511#include <stdlib.h> 19512#include <stddef.h> 19513#endif 19514#include <unistd.h> 19515int 19516main (void) 19517{ 19518ssize_t foo; 19519 ; 19520 return 0; 19521} 19522_ACEOF 19523if ac_fn_c_try_compile "$LINENO" 19524then : 19525 eval "ac_cv_type_$cv=yes" 19526else $as_nop 19527 eval "ac_cv_type_$cv=no" 19528fi 19529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19530fi 19531ac_foo=`eval echo \\$ac_cv_type_$cv` 19532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 19533printf "%s\n" "$ac_foo" >&6; } 19534if test "$ac_foo" = yes; then 19535 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19536if false; then 19537 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 19538if test "x$ac_cv_type_ssize_t" = xyes 19539then : 19540 19541printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h 19542 19543 19544fi 19545 19546fi 19547 19548printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 19549 19550fi 19551 19552 19553 19554 19555 19556cv=`echo "long long" | sed 'y%./+- %__p__%'` 19557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 19558printf %s "checking for long long... " >&6; } 19559if eval test \${ac_cv_type_$cv+y} 19560then : 19561 printf %s "(cached) " >&6 19562else $as_nop 19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19564/* end confdefs.h. */ 19565 19566#include <sys/types.h> 19567#if STDC_HEADERS 19568#include <stdlib.h> 19569#include <stddef.h> 19570#endif 19571 19572int 19573main (void) 19574{ 19575long long foo; 19576 ; 19577 return 0; 19578} 19579_ACEOF 19580if ac_fn_c_try_compile "$LINENO" 19581then : 19582 eval "ac_cv_type_$cv=yes" 19583else $as_nop 19584 eval "ac_cv_type_$cv=no" 19585fi 19586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19587fi 19588ac_foo=`eval echo \\$ac_cv_type_$cv` 19589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 19590printf "%s\n" "$ac_foo" >&6; } 19591if test "$ac_foo" = yes; then 19592 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19593if false; then 19594 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 19595if test "x$ac_cv_type_long_long" = xyes 19596then : 19597 19598printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h 19599 19600 19601fi 19602 19603fi 19604 19605printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 19606 19607fi 19608 19609 19610 19611 19612 19613 19614 19615ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 19616if test "x$ac_cv_header_arpa_inet_h" = xyes 19617then : 19618 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 19619 19620fi 19621ac_fn_c_check_header_compile "$LINENO" "config.h" "ac_cv_header_config_h" "$ac_includes_default" 19622if test "x$ac_cv_header_config_h" = xyes 19623then : 19624 printf "%s\n" "#define HAVE_CONFIG_H 1" >>confdefs.h 19625 19626fi 19627ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 19628if test "x$ac_cv_header_crypt_h" = xyes 19629then : 19630 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h 19631 19632fi 19633ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 19634if test "x$ac_cv_header_dirent_h" = xyes 19635then : 19636 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h 19637 19638fi 19639ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 19640if test "x$ac_cv_header_errno_h" = xyes 19641then : 19642 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 19643 19644fi 19645ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 19646if test "x$ac_cv_header_err_h" = xyes 19647then : 19648 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 19649 19650fi 19651ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 19652if test "x$ac_cv_header_fcntl_h" = xyes 19653then : 19654 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 19655 19656fi 19657ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 19658if test "x$ac_cv_header_fnmatch_h" = xyes 19659then : 19660 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 19661 19662fi 19663ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 19664if test "x$ac_cv_header_grp_h" = xyes 19665then : 19666 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 19667 19668fi 19669ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 19670if test "x$ac_cv_header_ifaddrs_h" = xyes 19671then : 19672 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 19673 19674fi 19675ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 19676if test "x$ac_cv_header_netinet_in_h" = xyes 19677then : 19678 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 19679 19680fi 19681ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "$ac_includes_default" 19682if test "x$ac_cv_header_netinet_in6_h" = xyes 19683then : 19684 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h 19685 19686fi 19687ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" 19688if test "x$ac_cv_header_netinet_in_systm_h" = xyes 19689then : 19690 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h 19691 19692fi 19693ac_fn_c_check_header_compile "$LINENO" "netinet6/in6.h" "ac_cv_header_netinet6_in6_h" "$ac_includes_default" 19694if test "x$ac_cv_header_netinet6_in6_h" = xyes 19695then : 19696 printf "%s\n" "#define HAVE_NETINET6_IN6_H 1" >>confdefs.h 19697 19698fi 19699ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" 19700if test "x$ac_cv_header_paths_h" = xyes 19701then : 19702 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h 19703 19704fi 19705ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 19706if test "x$ac_cv_header_poll_h" = xyes 19707then : 19708 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 19709 19710fi 19711ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 19712if test "x$ac_cv_header_pwd_h" = xyes 19713then : 19714 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 19715 19716fi 19717ac_fn_c_check_header_compile "$LINENO" "rpcsvc/ypclnt.h" "ac_cv_header_rpcsvc_ypclnt_h" "$ac_includes_default" 19718if test "x$ac_cv_header_rpcsvc_ypclnt_h" = xyes 19719then : 19720 printf "%s\n" "#define HAVE_RPCSVC_YPCLNT_H 1" >>confdefs.h 19721 19722fi 19723ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" 19724if test "x$ac_cv_header_search_h" = xyes 19725then : 19726 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h 19727 19728fi 19729ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" 19730if test "x$ac_cv_header_shadow_h" = xyes 19731then : 19732 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h 19733 19734fi 19735ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 19736if test "x$ac_cv_header_stdint_h" = xyes 19737then : 19738 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 19739 19740fi 19741ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default" 19742if test "x$ac_cv_header_sys_auxv_h" = xyes 19743then : 19744 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h 19745 19746fi 19747ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default" 19748if test "x$ac_cv_header_sys_bswap_h" = xyes 19749then : 19750 printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h 19751 19752fi 19753ac_fn_c_check_header_compile "$LINENO" "sys/errno.h" "ac_cv_header_sys_errno_h" "$ac_includes_default" 19754if test "x$ac_cv_header_sys_errno_h" = xyes 19755then : 19756 printf "%s\n" "#define HAVE_SYS_ERRNO_H 1" >>confdefs.h 19757 19758fi 19759ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 19760if test "x$ac_cv_header_sys_ioctl_h" = xyes 19761then : 19762 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 19763 19764fi 19765ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 19766if test "x$ac_cv_header_sys_mman_h" = xyes 19767then : 19768 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 19769 19770fi 19771ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 19772if test "x$ac_cv_header_sys_param_h" = xyes 19773then : 19774 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 19775 19776fi 19777ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 19778if test "x$ac_cv_header_sys_resource_h" = xyes 19779then : 19780 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 19781 19782fi 19783ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 19784if test "x$ac_cv_header_sys_sockio_h" = xyes 19785then : 19786 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h 19787 19788fi 19789ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 19790if test "x$ac_cv_header_sys_stat_h" = xyes 19791then : 19792 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 19793 19794fi 19795ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 19796if test "x$ac_cv_header_sys_time_h" = xyes 19797then : 19798 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 19799 19800fi 19801ac_fn_c_check_header_compile "$LINENO" "sys/tty.h" "ac_cv_header_sys_tty_h" "$ac_includes_default" 19802if test "x$ac_cv_header_sys_tty_h" = xyes 19803then : 19804 printf "%s\n" "#define HAVE_SYS_TTY_H 1" >>confdefs.h 19805 19806fi 19807ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 19808if test "x$ac_cv_header_sys_types_h" = xyes 19809then : 19810 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 19811 19812fi 19813ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 19814if test "x$ac_cv_header_sys_uio_h" = xyes 19815then : 19816 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 19817 19818fi 19819ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 19820if test "x$ac_cv_header_sys_utsname_h" = xyes 19821then : 19822 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 19823 19824fi 19825ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 19826if test "x$ac_cv_header_sys_wait_h" = xyes 19827then : 19828 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 19829 19830fi 19831ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 19832if test "x$ac_cv_header_syslog_h" = xyes 19833then : 19834 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 19835 19836fi 19837ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 19838if test "x$ac_cv_header_termios_h" = xyes 19839then : 19840 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 19841 19842fi 19843ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 19844if test "x$ac_cv_header_winsock2_h" = xyes 19845then : 19846 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 19847 19848fi 19849ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 19850if test "x$ac_cv_header_ws2tcpip_h" = xyes 19851then : 19852 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 19853 19854fi 19855ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 19856if test "x$ac_cv_header_unistd_h" = xyes 19857then : 19858 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 19859 19860fi 19861ac_fn_c_check_header_compile "$LINENO" "userconf.h" "ac_cv_header_userconf_h" "$ac_includes_default" 19862if test "x$ac_cv_header_userconf_h" = xyes 19863then : 19864 printf "%s\n" "#define HAVE_USERCONF_H 1" >>confdefs.h 19865 19866fi 19867ac_fn_c_check_header_compile "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default" 19868if test "x$ac_cv_header_usersec_h" = xyes 19869then : 19870 printf "%s\n" "#define HAVE_USERSEC_H 1" >>confdefs.h 19871 19872fi 19873ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" 19874if test "x$ac_cv_header_util_h" = xyes 19875then : 19876 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h 19877 19878fi 19879 19880 19881 19882 19883cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'` 19884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 19885printf %s "checking for uintptr_t... " >&6; } 19886if eval test \${ac_cv_type_$cv+y} 19887then : 19888 printf %s "(cached) " >&6 19889else $as_nop 19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19891/* end confdefs.h. */ 19892 19893#include <sys/types.h> 19894#if STDC_HEADERS 19895#include <stdlib.h> 19896#include <stddef.h> 19897#endif 19898#ifdef HAVE_STDINT_H 19899#include <stdint.h> 19900#endif 19901int 19902main (void) 19903{ 19904uintptr_t foo; 19905 ; 19906 return 0; 19907} 19908_ACEOF 19909if ac_fn_c_try_compile "$LINENO" 19910then : 19911 eval "ac_cv_type_$cv=yes" 19912else $as_nop 19913 eval "ac_cv_type_$cv=no" 19914fi 19915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19916fi 19917ac_foo=`eval echo \\$ac_cv_type_$cv` 19918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 19919printf "%s\n" "$ac_foo" >&6; } 19920if test "$ac_foo" = yes; then 19921 ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19922if false; then 19923 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 19924if test "x$ac_cv_type_uintptr_t" = xyes 19925then : 19926 19927printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 19928 19929 19930fi 19931 19932fi 19933 19934printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 19935 19936fi 19937 19938 19939ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" " 19940#include <vis.h> 19941#ifndef VIS_SP 19942#error invis 19943#endif 19944" 19945if test "x$ac_cv_header_vis_h" = xyes 19946then : 19947 printf "%s\n" "#define HAVE_VIS_H 1" >>confdefs.h 19948 19949fi 19950 19951 19952ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 19953#ifdef HAVE_SYS_TYPES_H 19954#include <sys/types.h> 19955#endif 19956 19957" 19958if test "x$ac_cv_header_netdb_h" = xyes 19959then : 19960 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 19961 19962fi 19963 19964 19965ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 19966#ifdef HAVE_SYS_TYPES_H 19967#include <sys/types.h> 19968#endif 19969 19970" 19971if test "x$ac_cv_header_sys_socket_h" = xyes 19972then : 19973 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 19974 19975fi 19976 19977 19978ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 19979#ifdef HAVE_SYS_TYPES_H 19980#include <sys/types.h> 19981#endif 19982#if HAVE_SYS_SOCKET_H 19983#include <sys/socket.h> 19984#endif 19985" 19986if test "x$ac_cv_header_net_if_h" = xyes 19987then : 19988 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 19989 19990fi 19991 19992 19993ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "$ac_includes_default 19994#ifdef HAVE_SYS_TYPES_H 19995#include <sys/types.h> 19996#endif 19997#if HAVE_SYS_SOCKET_H 19998#include <sys/socket.h> 19999#endif 20000#ifdef HAVE_NETINET6_IN6_H 20001#include <netinet6/in6.h> 20002#endif 20003 20004" 20005if test "x$ac_cv_header_netinet6_in6_var_h" = xyes 20006then : 20007 printf "%s\n" "#define HAVE_NETINET6_IN6_VAR_H 1" >>confdefs.h 20008 20009fi 20010 20011 20012ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 20013#ifdef HAVE_SYS_PARAM_H 20014#include <sys/param.h> 20015#endif 20016 20017" 20018if test "x$ac_cv_header_sys_sysctl_h" = xyes 20019then : 20020 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 20021 20022fi 20023 20024 20025ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "$ac_includes_default 20026#ifdef HAVE_SYS_PARAM_H 20027#include <sys/param.h> 20028#endif 20029 20030" 20031if test "x$ac_cv_header_sys_proc_h" = xyes 20032then : 20033 printf "%s\n" "#define HAVE_SYS_PROC_H 1" >>confdefs.h 20034 20035fi 20036 20037 20038 20039 20040 if test "$ac_cv_header_err_h" = yes; then 20041 have_err_h_TRUE= 20042 have_err_h_FALSE='#' 20043else 20044 have_err_h_TRUE='#' 20045 have_err_h_FALSE= 20046fi 20047 20048 if test "$ac_cv_header_ifaddrs_h" = yes; then 20049 have_ifaddrs_h_TRUE= 20050 have_ifaddrs_h_FALSE='#' 20051else 20052 have_ifaddrs_h_TRUE='#' 20053 have_ifaddrs_h_FALSE= 20054fi 20055 20056 if test "$ac_cv_header_search_h" = yes; then 20057 have_search_h_TRUE= 20058 have_search_h_FALSE='#' 20059else 20060 have_search_h_TRUE='#' 20061 have_search_h_FALSE= 20062fi 20063 20064 if test "$ac_cv_header_vis_h" = yes; then 20065 have_vis_h_TRUE= 20066 have_vis_h_FALSE='#' 20067else 20068 have_vis_h_TRUE='#' 20069 have_vis_h_FALSE= 20070fi 20071 20072 20073 20074 20075 20076 20077 20078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5 20079printf %s "checking for socket... " >&6; } 20080if test ${ac_cv_funclib_socket+y} 20081then : 20082 printf %s "(cached) " >&6 20083else $as_nop 20084 20085if eval "test \"\$ac_cv_func_socket\" != yes" ; then 20086 ac_save_LIBS="$LIBS" 20087 for ac_lib in "" socket; do 20088 case "$ac_lib" in 20089 "") ;; 20090 yes) ac_lib="" ;; 20091 no) continue ;; 20092 -l*) ;; 20093 *) ac_lib="-l$ac_lib" ;; 20094 esac 20095 LIBS=" $ac_lib $ac_save_LIBS" 20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20097/* end confdefs.h. */ 20098 20099int 20100main (void) 20101{ 20102socket() 20103 ; 20104 return 0; 20105} 20106_ACEOF 20107if ac_fn_c_try_link "$LINENO" 20108then : 20109 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 20110fi 20111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20112 conftest$ac_exeext conftest.$ac_ext 20113 done 20114 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 20115 LIBS="$ac_save_LIBS" 20116fi 20117 20118fi 20119 20120 20121eval "ac_res=\$ac_cv_funclib_socket" 20122 20123if false; then 20124 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 20125if test "x$ac_cv_func_socket" = xyes 20126then : 20127 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 20128 20129fi 20130 20131fi 20132# socket 20133eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20134eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20135eval "LIB_socket=$ac_res" 20136 20137case "$ac_res" in 20138 yes) 20139 eval "ac_cv_func_socket=yes" 20140 eval "LIB_socket=" 20141 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20142 20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20144printf "%s\n" "yes" >&6; } 20145 ;; 20146 no) 20147 eval "ac_cv_func_socket=no" 20148 eval "LIB_socket=" 20149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20150printf "%s\n" "no" >&6; } 20151 ;; 20152 *) 20153 eval "ac_cv_func_socket=yes" 20154 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20155 20156 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20157 20158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20159printf "%s\n" "yes, in $ac_res" >&6; } 20160 ;; 20161esac 20162 20163 20164if test -n "$LIB_socket"; then 20165 LIBS="$LIB_socket $LIBS" 20166fi 20167 20168 20169 20170 20171 20172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5 20173printf %s "checking for gethostbyname... " >&6; } 20174if test ${ac_cv_funclib_gethostbyname+y} 20175then : 20176 printf %s "(cached) " >&6 20177else $as_nop 20178 20179if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 20180 ac_save_LIBS="$LIBS" 20181 for ac_lib in "" nsl; do 20182 case "$ac_lib" in 20183 "") ;; 20184 yes) ac_lib="" ;; 20185 no) continue ;; 20186 -l*) ;; 20187 *) ac_lib="-l$ac_lib" ;; 20188 esac 20189 LIBS=" $ac_lib $ac_save_LIBS" 20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20191/* end confdefs.h. */ 20192 20193int 20194main (void) 20195{ 20196gethostbyname() 20197 ; 20198 return 0; 20199} 20200_ACEOF 20201if ac_fn_c_try_link "$LINENO" 20202then : 20203 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 20204fi 20205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20206 conftest$ac_exeext conftest.$ac_ext 20207 done 20208 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 20209 LIBS="$ac_save_LIBS" 20210fi 20211 20212fi 20213 20214 20215eval "ac_res=\$ac_cv_funclib_gethostbyname" 20216 20217if false; then 20218 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 20219if test "x$ac_cv_func_gethostbyname" = xyes 20220then : 20221 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 20222 20223fi 20224 20225fi 20226# gethostbyname 20227eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20228eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20229eval "LIB_gethostbyname=$ac_res" 20230 20231case "$ac_res" in 20232 yes) 20233 eval "ac_cv_func_gethostbyname=yes" 20234 eval "LIB_gethostbyname=" 20235 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20236 20237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20238printf "%s\n" "yes" >&6; } 20239 ;; 20240 no) 20241 eval "ac_cv_func_gethostbyname=no" 20242 eval "LIB_gethostbyname=" 20243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20244printf "%s\n" "no" >&6; } 20245 ;; 20246 *) 20247 eval "ac_cv_func_gethostbyname=yes" 20248 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20249 20250 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20251 20252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20253printf "%s\n" "yes, in $ac_res" >&6; } 20254 ;; 20255esac 20256 20257 20258if test -n "$LIB_gethostbyname"; then 20259 LIBS="$LIB_gethostbyname $LIBS" 20260fi 20261 20262 20263 20264 20265 20266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syslog" >&5 20267printf %s "checking for syslog... " >&6; } 20268if test ${ac_cv_funclib_syslog+y} 20269then : 20270 printf %s "(cached) " >&6 20271else $as_nop 20272 20273if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 20274 ac_save_LIBS="$LIBS" 20275 for ac_lib in "" syslog; do 20276 case "$ac_lib" in 20277 "") ;; 20278 yes) ac_lib="" ;; 20279 no) continue ;; 20280 -l*) ;; 20281 *) ac_lib="-l$ac_lib" ;; 20282 esac 20283 LIBS=" $ac_lib $ac_save_LIBS" 20284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20285/* end confdefs.h. */ 20286 20287int 20288main (void) 20289{ 20290syslog() 20291 ; 20292 return 0; 20293} 20294_ACEOF 20295if ac_fn_c_try_link "$LINENO" 20296then : 20297 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 20298fi 20299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20300 conftest$ac_exeext conftest.$ac_ext 20301 done 20302 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 20303 LIBS="$ac_save_LIBS" 20304fi 20305 20306fi 20307 20308 20309eval "ac_res=\$ac_cv_funclib_syslog" 20310 20311if false; then 20312 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" 20313if test "x$ac_cv_func_syslog" = xyes 20314then : 20315 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h 20316 20317fi 20318 20319fi 20320# syslog 20321eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20322eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20323eval "LIB_syslog=$ac_res" 20324 20325case "$ac_res" in 20326 yes) 20327 eval "ac_cv_func_syslog=yes" 20328 eval "LIB_syslog=" 20329 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20330 20331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20332printf "%s\n" "yes" >&6; } 20333 ;; 20334 no) 20335 eval "ac_cv_func_syslog=no" 20336 eval "LIB_syslog=" 20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20338printf "%s\n" "no" >&6; } 20339 ;; 20340 *) 20341 eval "ac_cv_func_syslog=yes" 20342 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20343 20344 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20345 20346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20347printf "%s\n" "yes, in $ac_res" >&6; } 20348 ;; 20349esac 20350 20351 20352if test -n "$LIB_syslog"; then 20353 LIBS="$LIB_syslog $LIBS" 20354fi 20355 20356 20357 20358 20359# Check whether --with-ipv6 was given. 20360if test ${with_ipv6+y} 20361then : 20362 withval=$with_ipv6; 20363 ac_cv_lib_ipv6="$withval" 20364 20365fi 20366 20367save_CFLAGS="${CFLAGS}" 20368 20369if test "X$ac_cv_lib_ipv6" != "Xno"; then 20370 20371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 stack type" >&5 20372printf %s "checking for IPv6 stack type... " >&6; } 20373if test ${rk_cv_v6type+y} 20374then : 20375 printf %s "(cached) " >&6 20376else $as_nop 20377 v6type=unknown 20378 v6lib=none 20379 20380 for i in v6d toshiba kame inria zeta linux; do 20381 case $i in 20382 v6d) 20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20384/* end confdefs.h. */ 20385 20386#include </usr/local/v6/include/sys/types.h> 20387#ifdef __V6D__ 20388yes 20389#endif 20390_ACEOF 20391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20392 $EGREP "yes" >/dev/null 2>&1 20393then : 20394 v6type=$i; v6lib=v6; 20395 v6libdir=/usr/local/v6/lib; 20396 CFLAGS="-I/usr/local/v6/include $CFLAGS" 20397fi 20398rm -rf conftest* 20399 20400 ;; 20401 toshiba) 20402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20403/* end confdefs.h. */ 20404 20405#include <sys/param.h> 20406#ifdef _TOSHIBA_INET6 20407yes 20408#endif 20409_ACEOF 20410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20411 $EGREP "yes" >/dev/null 2>&1 20412then : 20413 v6type=$i; v6lib=inet6; 20414 v6libdir=/usr/local/v6/lib; 20415 CFLAGS="-DINET6 $CFLAGS" 20416fi 20417rm -rf conftest* 20418 20419 ;; 20420 kame) 20421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20422/* end confdefs.h. */ 20423 20424#include <netinet/in.h> 20425#ifdef __KAME__ 20426yes 20427#endif 20428_ACEOF 20429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20430 $EGREP "yes" >/dev/null 2>&1 20431then : 20432 v6type=$i; v6lib=inet6; 20433 v6libdir=/usr/local/v6/lib; 20434 CFLAGS="-DINET6 $CFLAGS" 20435fi 20436rm -rf conftest* 20437 20438 ;; 20439 inria) 20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20441/* end confdefs.h. */ 20442 20443#include <netinet/in.h> 20444#ifdef IPV6_INRIA_VERSION 20445yes 20446#endif 20447_ACEOF 20448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20449 $EGREP "yes" >/dev/null 2>&1 20450then : 20451 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 20452fi 20453rm -rf conftest* 20454 20455 ;; 20456 zeta) 20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20458/* end confdefs.h. */ 20459 20460#include <sys/param.h> 20461#ifdef _ZETA_MINAMI_INET6 20462yes 20463#endif 20464_ACEOF 20465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20466 $EGREP "yes" >/dev/null 2>&1 20467then : 20468 v6type=$i; v6lib=inet6; 20469 v6libdir=/usr/local/v6/lib; 20470 CFLAGS="-DINET6 $CFLAGS" 20471fi 20472rm -rf conftest* 20473 20474 ;; 20475 linux) 20476 if test -d /usr/inet6; then 20477 v6type=$i 20478 v6lib=inet6 20479 v6libdir=/usr/inet6 20480 CFLAGS="-DINET6 $CFLAGS" 20481 fi 20482 ;; 20483 esac 20484 if test "$v6type" != "unknown"; then 20485 break 20486 fi 20487 done 20488 20489 if test "$v6lib" != "none"; then 20490 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 20491 if test -d $dir -a -f $dir/lib$v6lib.a; then 20492 LIBS="-L$dir -l$v6lib $LIBS" 20493 break 20494 fi 20495 done 20496 fi 20497fi 20498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rk_cv_v6type" >&5 20499printf "%s\n" "$rk_cv_v6type" >&6; } 20500 20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5 20502printf %s "checking for IPv6... " >&6; } 20503if test ${rk_cv_lib_ipv6+y} 20504then : 20505 printf %s "(cached) " >&6 20506else $as_nop 20507 20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20509/* end confdefs.h. */ 20510 20511#ifdef HAVE_SYS_TYPES_H 20512#include <sys/types.h> 20513#endif 20514#ifdef HAVE_SYS_SOCKET_H 20515#include <sys/socket.h> 20516#endif 20517#ifdef HAVE_NETINET_IN_H 20518#include <netinet/in.h> 20519#endif 20520#ifdef HAVE_NETINET_IN6_H 20521#include <netinet/in6.h> 20522#endif 20523 20524int 20525main (void) 20526{ 20527 20528 struct sockaddr_in6 sin6; 20529 int s; 20530 20531 s = socket(AF_INET6, SOCK_DGRAM, 0); 20532 20533 sin6.sin6_family = AF_INET6; 20534 sin6.sin6_port = htons(17); 20535 sin6.sin6_addr = in6addr_any; 20536 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 20537 20538 ; 20539 return 0; 20540} 20541_ACEOF 20542if ac_fn_c_try_link "$LINENO" 20543then : 20544 ac_cv_lib_ipv6=yes 20545else $as_nop 20546 ac_cv_lib_ipv6=no 20547fi 20548rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20549 conftest$ac_exeext conftest.$ac_ext 20550fi 20551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rk_cv_lib_ipv6" >&5 20552printf "%s\n" "$rk_cv_lib_ipv6" >&6; } 20553fi 20554 20555if test "$ac_cv_lib_ipv6" = yes; then 20556 20557printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h 20558 20559else 20560 CFLAGS="${save_CFLAGS}" 20561fi 20562 20563## test for AIX missing in6addr_loopback 20564if test "$ac_cv_lib_ipv6" = yes; then 20565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5 20566printf %s "checking for in6addr_loopback... " >&6; } 20567if test ${rk_cv_var_in6addr_loopback+y} 20568then : 20569 printf %s "(cached) " >&6 20570else $as_nop 20571 20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20573/* end confdefs.h. */ 20574 20575#ifdef HAVE_SYS_TYPES_H 20576#include <sys/types.h> 20577#endif 20578#ifdef HAVE_SYS_SOCKET_H 20579#include <sys/socket.h> 20580#endif 20581#ifdef HAVE_NETINET_IN_H 20582#include <netinet/in.h> 20583#endif 20584#ifdef HAVE_NETINET_IN6_H 20585#include <netinet/in6.h> 20586#endif 20587int 20588main (void) 20589{ 20590 20591struct sockaddr_in6 sin6; 20592sin6.sin6_addr = in6addr_loopback; 20593 20594 ; 20595 return 0; 20596} 20597_ACEOF 20598if ac_fn_c_try_link "$LINENO" 20599then : 20600 ac_cv_var_in6addr_loopback=yes 20601else $as_nop 20602 ac_cv_var_in6addr_loopback=no 20603fi 20604rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20605 conftest$ac_exeext conftest.$ac_ext 20606fi 20607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rk_cv_var_in6addr_loopback" >&5 20608printf "%s\n" "$rk_cv_var_in6addr_loopback" >&6; } 20609 if test "$ac_cv_var_in6addr_loopback" = yes; then 20610 20611printf "%s\n" "#define HAVE_IN6ADDR_LOOPBACK 1" >>confdefs.h 20612 20613 fi 20614fi 20615 20616 20617 20618 20619 20620 20621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2" >&5 20622printf %s "checking for gethostbyname2... " >&6; } 20623if test ${ac_cv_funclib_gethostbyname2+y} 20624then : 20625 printf %s "(cached) " >&6 20626else $as_nop 20627 20628if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 20629 ac_save_LIBS="$LIBS" 20630 for ac_lib in "" inet6 ip6; do 20631 case "$ac_lib" in 20632 "") ;; 20633 yes) ac_lib="" ;; 20634 no) continue ;; 20635 -l*) ;; 20636 *) ac_lib="-l$ac_lib" ;; 20637 esac 20638 LIBS=" $ac_lib $ac_save_LIBS" 20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20640/* end confdefs.h. */ 20641 20642int 20643main (void) 20644{ 20645gethostbyname2() 20646 ; 20647 return 0; 20648} 20649_ACEOF 20650if ac_fn_c_try_link "$LINENO" 20651then : 20652 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 20653fi 20654rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20655 conftest$ac_exeext conftest.$ac_ext 20656 done 20657 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 20658 LIBS="$ac_save_LIBS" 20659fi 20660 20661fi 20662 20663 20664eval "ac_res=\$ac_cv_funclib_gethostbyname2" 20665 20666if false; then 20667 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2" 20668if test "x$ac_cv_func_gethostbyname2" = xyes 20669then : 20670 printf "%s\n" "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h 20671 20672fi 20673 20674fi 20675# gethostbyname2 20676eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20677eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20678eval "LIB_gethostbyname2=$ac_res" 20679 20680case "$ac_res" in 20681 yes) 20682 eval "ac_cv_func_gethostbyname2=yes" 20683 eval "LIB_gethostbyname2=" 20684 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20685 20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20687printf "%s\n" "yes" >&6; } 20688 ;; 20689 no) 20690 eval "ac_cv_func_gethostbyname2=no" 20691 eval "LIB_gethostbyname2=" 20692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20693printf "%s\n" "no" >&6; } 20694 ;; 20695 *) 20696 eval "ac_cv_func_gethostbyname2=yes" 20697 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20698 20699 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20700 20701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20702printf "%s\n" "yes, in $ac_res" >&6; } 20703 ;; 20704esac 20705 20706 20707if test -n "$LIB_gethostbyname2"; then 20708 LIBS="$LIB_gethostbyname2 $LIBS" 20709fi 20710 20711 20712 20713 20714ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default" 20715if test "x$ac_cv_header_arpa_nameser_h" = xyes 20716then : 20717 printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h 20718 20719fi 20720ac_fn_c_check_header_compile "$LINENO" "dns.h" "ac_cv_header_dns_h" "$ac_includes_default" 20721if test "x$ac_cv_header_dns_h" = xyes 20722then : 20723 printf "%s\n" "#define HAVE_DNS_H 1" >>confdefs.h 20724 20725fi 20726 20727 20728ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default 20729#ifdef HAVE_SYS_TYPES_H 20730#include <sys/types.h> 20731#endif 20732#ifdef HAVE_NETINET_IN_H 20733#include <netinet/in.h> 20734#endif 20735#ifdef HAVE_ARPA_NAMESER_H 20736#include <arpa/nameser.h> 20737#endif 20738 20739" 20740if test "x$ac_cv_header_resolv_h" = xyes 20741then : 20742 printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h 20743 20744fi 20745 20746 20747 20748 20749 20750 20751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_search" >&5 20752printf %s "checking for res_search... " >&6; } 20753if test ${ac_cv_funclib_res_search+y} 20754then : 20755 printf %s "(cached) " >&6 20756else $as_nop 20757 20758if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 20759 ac_save_LIBS="$LIBS" 20760 for ac_lib in "" resolv; do 20761 case "$ac_lib" in 20762 "") ;; 20763 yes) ac_lib="" ;; 20764 no) continue ;; 20765 -l*) ;; 20766 *) ac_lib="-l$ac_lib" ;; 20767 esac 20768 LIBS=" $ac_lib $ac_save_LIBS" 20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20770/* end confdefs.h. */ 20771 20772#include <stdio.h> 20773#ifdef HAVE_SYS_TYPES_H 20774#include <sys/types.h> 20775#endif 20776#ifdef HAVE_NETINET_IN_H 20777#include <netinet/in.h> 20778#endif 20779#ifdef HAVE_ARPA_NAMESER_H 20780#include <arpa/nameser.h> 20781#endif 20782#ifdef HAVE_RESOLV_H 20783#include <resolv.h> 20784#endif 20785 20786int 20787main (void) 20788{ 20789res_search(0,0,0,0,0) 20790 ; 20791 return 0; 20792} 20793_ACEOF 20794if ac_fn_c_try_link "$LINENO" 20795then : 20796 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 20797fi 20798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20799 conftest$ac_exeext conftest.$ac_ext 20800 done 20801 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 20802 LIBS="$ac_save_LIBS" 20803fi 20804 20805fi 20806 20807 20808eval "ac_res=\$ac_cv_funclib_res_search" 20809 20810if false; then 20811 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" 20812if test "x$ac_cv_func_res_search" = xyes 20813then : 20814 printf "%s\n" "#define HAVE_RES_SEARCH 1" >>confdefs.h 20815 20816fi 20817 20818fi 20819# res_search 20820eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20821eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20822eval "LIB_res_search=$ac_res" 20823 20824case "$ac_res" in 20825 yes) 20826 eval "ac_cv_func_res_search=yes" 20827 eval "LIB_res_search=" 20828 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20829 20830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20831printf "%s\n" "yes" >&6; } 20832 ;; 20833 no) 20834 eval "ac_cv_func_res_search=no" 20835 eval "LIB_res_search=" 20836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20837printf "%s\n" "no" >&6; } 20838 ;; 20839 *) 20840 eval "ac_cv_func_res_search=yes" 20841 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20842 20843 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20844 20845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20846printf "%s\n" "yes, in $ac_res" >&6; } 20847 ;; 20848esac 20849 20850 20851if test -n "$LIB_res_search"; then 20852 LIBS="$LIB_res_search $LIBS" 20853fi 20854 20855 20856 20857 20858 20859 20860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_nsearch" >&5 20861printf %s "checking for res_nsearch... " >&6; } 20862if test ${ac_cv_funclib_res_nsearch+y} 20863then : 20864 printf %s "(cached) " >&6 20865else $as_nop 20866 20867if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then 20868 ac_save_LIBS="$LIBS" 20869 for ac_lib in "" resolv; do 20870 case "$ac_lib" in 20871 "") ;; 20872 yes) ac_lib="" ;; 20873 no) continue ;; 20874 -l*) ;; 20875 *) ac_lib="-l$ac_lib" ;; 20876 esac 20877 LIBS=" $ac_lib $ac_save_LIBS" 20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20879/* end confdefs.h. */ 20880 20881#include <stdio.h> 20882#ifdef HAVE_SYS_TYPES_H 20883#include <sys/types.h> 20884#endif 20885#ifdef HAVE_NETINET_IN_H 20886#include <netinet/in.h> 20887#endif 20888#ifdef HAVE_ARPA_NAMESER_H 20889#include <arpa/nameser.h> 20890#endif 20891#ifdef HAVE_RESOLV_H 20892#include <resolv.h> 20893#endif 20894 20895int 20896main (void) 20897{ 20898res_nsearch(0,0,0,0,0,0) 20899 ; 20900 return 0; 20901} 20902_ACEOF 20903if ac_fn_c_try_link "$LINENO" 20904then : 20905 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break 20906fi 20907rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20908 conftest$ac_exeext conftest.$ac_ext 20909 done 20910 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}" 20911 LIBS="$ac_save_LIBS" 20912fi 20913 20914fi 20915 20916 20917eval "ac_res=\$ac_cv_funclib_res_nsearch" 20918 20919if false; then 20920 ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" 20921if test "x$ac_cv_func_res_nsearch" = xyes 20922then : 20923 printf "%s\n" "#define HAVE_RES_NSEARCH 1" >>confdefs.h 20924 20925fi 20926 20927fi 20928# res_nsearch 20929eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20930eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20931eval "LIB_res_nsearch=$ac_res" 20932 20933case "$ac_res" in 20934 yes) 20935 eval "ac_cv_func_res_nsearch=yes" 20936 eval "LIB_res_nsearch=" 20937 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20938 20939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20940printf "%s\n" "yes" >&6; } 20941 ;; 20942 no) 20943 eval "ac_cv_func_res_nsearch=no" 20944 eval "LIB_res_nsearch=" 20945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20946printf "%s\n" "no" >&6; } 20947 ;; 20948 *) 20949 eval "ac_cv_func_res_nsearch=yes" 20950 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20951 20952 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20953 20954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20955printf "%s\n" "yes, in $ac_res" >&6; } 20956 ;; 20957esac 20958 20959 20960if test -n "$LIB_res_nsearch"; then 20961 LIBS="$LIB_res_nsearch $LIBS" 20962fi 20963 20964 20965 20966 20967 20968 20969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5 20970printf %s "checking for res_ndestroy... " >&6; } 20971if test ${ac_cv_funclib_res_ndestroy+y} 20972then : 20973 printf %s "(cached) " >&6 20974else $as_nop 20975 20976if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then 20977 ac_save_LIBS="$LIBS" 20978 for ac_lib in "" resolv; do 20979 case "$ac_lib" in 20980 "") ;; 20981 yes) ac_lib="" ;; 20982 no) continue ;; 20983 -l*) ;; 20984 *) ac_lib="-l$ac_lib" ;; 20985 esac 20986 LIBS=" $ac_lib $ac_save_LIBS" 20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20988/* end confdefs.h. */ 20989 20990#include <stdio.h> 20991#ifdef HAVE_SYS_TYPES_H 20992#include <sys/types.h> 20993#endif 20994#ifdef HAVE_NETINET_IN_H 20995#include <netinet/in.h> 20996#endif 20997#ifdef HAVE_ARPA_NAMESER_H 20998#include <arpa/nameser.h> 20999#endif 21000#ifdef HAVE_RESOLV_H 21001#include <resolv.h> 21002#endif 21003 21004int 21005main (void) 21006{ 21007res_ndestroy(0) 21008 ; 21009 return 0; 21010} 21011_ACEOF 21012if ac_fn_c_try_link "$LINENO" 21013then : 21014 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break 21015fi 21016rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21017 conftest$ac_exeext conftest.$ac_ext 21018 done 21019 eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}" 21020 LIBS="$ac_save_LIBS" 21021fi 21022 21023fi 21024 21025 21026eval "ac_res=\$ac_cv_funclib_res_ndestroy" 21027 21028if false; then 21029 ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy" 21030if test "x$ac_cv_func_res_ndestroy" = xyes 21031then : 21032 printf "%s\n" "#define HAVE_RES_NDESTROY 1" >>confdefs.h 21033 21034fi 21035 21036fi 21037# res_ndestroy 21038eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21039eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21040eval "LIB_res_ndestroy=$ac_res" 21041 21042case "$ac_res" in 21043 yes) 21044 eval "ac_cv_func_res_ndestroy=yes" 21045 eval "LIB_res_ndestroy=" 21046 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21047 21048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21049printf "%s\n" "yes" >&6; } 21050 ;; 21051 no) 21052 eval "ac_cv_func_res_ndestroy=no" 21053 eval "LIB_res_ndestroy=" 21054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21055printf "%s\n" "no" >&6; } 21056 ;; 21057 *) 21058 eval "ac_cv_func_res_ndestroy=yes" 21059 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21060 21061 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 21062 21063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21064printf "%s\n" "yes, in $ac_res" >&6; } 21065 ;; 21066esac 21067 21068 21069if test -n "$LIB_res_ndestroy"; then 21070 LIBS="$LIB_res_ndestroy $LIBS" 21071fi 21072 21073 21074 21075 21076 21077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dns_search" >&5 21078printf %s "checking for dns_search... " >&6; } 21079if test ${ac_cv_funclib_dns_search+y} 21080then : 21081 printf %s "(cached) " >&6 21082else $as_nop 21083 21084if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then 21085 ac_save_LIBS="$LIBS" 21086 for ac_lib in "" ; do 21087 case "$ac_lib" in 21088 "") ;; 21089 yes) ac_lib="" ;; 21090 no) continue ;; 21091 -l*) ;; 21092 *) ac_lib="-l$ac_lib" ;; 21093 esac 21094 LIBS=" $ac_lib $ac_save_LIBS" 21095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21096/* end confdefs.h. */ 21097 21098#ifdef HAVE_DNS_H 21099#include <dns.h> 21100#endif 21101 21102int 21103main (void) 21104{ 21105dns_search(0,0,0,0,0,0,0,0) 21106 ; 21107 return 0; 21108} 21109_ACEOF 21110if ac_fn_c_try_link "$LINENO" 21111then : 21112 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break 21113fi 21114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21115 conftest$ac_exeext conftest.$ac_ext 21116 done 21117 eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}" 21118 LIBS="$ac_save_LIBS" 21119fi 21120 21121fi 21122 21123 21124eval "ac_res=\$ac_cv_funclib_dns_search" 21125 21126if false; then 21127 ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" 21128if test "x$ac_cv_func_dns_search" = xyes 21129then : 21130 printf "%s\n" "#define HAVE_DNS_SEARCH 1" >>confdefs.h 21131 21132fi 21133 21134fi 21135# dns_search 21136eval "ac_tr_func=HAVE_`echo dns_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21137eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21138eval "LIB_dns_search=$ac_res" 21139 21140case "$ac_res" in 21141 yes) 21142 eval "ac_cv_func_dns_search=yes" 21143 eval "LIB_dns_search=" 21144 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21145 21146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21147printf "%s\n" "yes" >&6; } 21148 ;; 21149 no) 21150 eval "ac_cv_func_dns_search=no" 21151 eval "LIB_dns_search=" 21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21153printf "%s\n" "no" >&6; } 21154 ;; 21155 *) 21156 eval "ac_cv_func_dns_search=yes" 21157 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21158 21159 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 21160 21161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21162printf "%s\n" "yes, in $ac_res" >&6; } 21163 ;; 21164esac 21165 21166 21167 21168 21169 21170 21171 21172 21173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dn_expand" >&5 21174printf %s "checking for dn_expand... " >&6; } 21175if test ${ac_cv_funclib_dn_expand+y} 21176then : 21177 printf %s "(cached) " >&6 21178else $as_nop 21179 21180if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 21181 ac_save_LIBS="$LIBS" 21182 for ac_lib in "" resolv; do 21183 case "$ac_lib" in 21184 "") ;; 21185 yes) ac_lib="" ;; 21186 no) continue ;; 21187 -l*) ;; 21188 *) ac_lib="-l$ac_lib" ;; 21189 esac 21190 LIBS=" $ac_lib $ac_save_LIBS" 21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21192/* end confdefs.h. */ 21193 21194#include <stdio.h> 21195#ifdef HAVE_SYS_TYPES_H 21196#include <sys/types.h> 21197#endif 21198#ifdef HAVE_NETINET_IN_H 21199#include <netinet/in.h> 21200#endif 21201#ifdef HAVE_ARPA_NAMESER_H 21202#include <arpa/nameser.h> 21203#endif 21204#ifdef HAVE_RESOLV_H 21205#include <resolv.h> 21206#endif 21207 21208int 21209main (void) 21210{ 21211dn_expand(0,0,0,0,0) 21212 ; 21213 return 0; 21214} 21215_ACEOF 21216if ac_fn_c_try_link "$LINENO" 21217then : 21218 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 21219fi 21220rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21221 conftest$ac_exeext conftest.$ac_ext 21222 done 21223 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 21224 LIBS="$ac_save_LIBS" 21225fi 21226 21227fi 21228 21229 21230eval "ac_res=\$ac_cv_funclib_dn_expand" 21231 21232if false; then 21233 ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" 21234if test "x$ac_cv_func_dn_expand" = xyes 21235then : 21236 printf "%s\n" "#define HAVE_DN_EXPAND 1" >>confdefs.h 21237 21238fi 21239 21240fi 21241# dn_expand 21242eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21243eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21244eval "LIB_dn_expand=$ac_res" 21245 21246case "$ac_res" in 21247 yes) 21248 eval "ac_cv_func_dn_expand=yes" 21249 eval "LIB_dn_expand=" 21250 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21251 21252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21253printf "%s\n" "yes" >&6; } 21254 ;; 21255 no) 21256 eval "ac_cv_func_dn_expand=no" 21257 eval "LIB_dn_expand=" 21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21259printf "%s\n" "no" >&6; } 21260 ;; 21261 *) 21262 eval "ac_cv_func_dn_expand=yes" 21263 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21264 21265 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 21266 21267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21268printf "%s\n" "yes, in $ac_res" >&6; } 21269 ;; 21270esac 21271 21272 21273if test -n "$LIB_dn_expand"; then 21274 LIBS="$LIB_dn_expand $LIBS" 21275fi 21276 21277 21278 21279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _res" >&5 21280printf %s "checking for _res... " >&6; } 21281if test ${ac_cv_var__res+y} 21282then : 21283 printf %s "(cached) " >&6 21284else $as_nop 21285 21286 21287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21288/* end confdefs.h. */ 21289#include <stdio.h> 21290#ifdef HAVE_SYS_TYPES_H 21291#include <sys/types.h> 21292#endif 21293#ifdef HAVE_NETINET_IN_H 21294#include <netinet/in.h> 21295#endif 21296#ifdef HAVE_ARPA_NAMESER_H 21297#include <arpa/nameser.h> 21298#endif 21299#ifdef HAVE_RESOLV_H 21300#include <resolv.h> 21301#endif 21302 void * foo(void) { return &_res; } 21303int 21304main (void) 21305{ 21306foo() 21307 ; 21308 return 0; 21309} 21310_ACEOF 21311if ac_fn_c_try_link "$LINENO" 21312then : 21313 ac_cv_var__res=yes 21314else $as_nop 21315 ac_cv_var__res=no 21316fi 21317rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21318 conftest$ac_exeext conftest.$ac_ext 21319if test "$ac_cv_var__res" != yes ; then 21320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21321/* end confdefs.h. */ 21322#include <stdio.h> 21323#ifdef HAVE_SYS_TYPES_H 21324#include <sys/types.h> 21325#endif 21326#ifdef HAVE_NETINET_IN_H 21327#include <netinet/in.h> 21328#endif 21329#ifdef HAVE_ARPA_NAMESER_H 21330#include <arpa/nameser.h> 21331#endif 21332#ifdef HAVE_RESOLV_H 21333#include <resolv.h> 21334#endif 21335extern int _res; 21336int foo(void) { return _res; } 21337int 21338main (void) 21339{ 21340foo() 21341 ; 21342 return 0; 21343} 21344_ACEOF 21345if ac_fn_c_try_link "$LINENO" 21346then : 21347 ac_cv_var__res=yes 21348else $as_nop 21349 ac_cv_var__res=no 21350fi 21351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21352 conftest$ac_exeext conftest.$ac_ext 21353fi 21354 21355fi 21356 21357ac_foo=`eval echo \\$ac_cv_var__res` 21358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 21359printf "%s\n" "$ac_foo" >&6; } 21360if test "$ac_foo" = yes; then 21361 21362printf "%s\n" "#define HAVE__RES 1" >>confdefs.h 21363 21364 ac_fn_check_decl "$LINENO" "_res" "ac_cv_have_decl__res" "#include <stdio.h> 21365#ifdef HAVE_SYS_TYPES_H 21366#include <sys/types.h> 21367#endif 21368#ifdef HAVE_NETINET_IN_H 21369#include <netinet/in.h> 21370#endif 21371#ifdef HAVE_ARPA_NAMESER_H 21372#include <arpa/nameser.h> 21373#endif 21374#ifdef HAVE_RESOLV_H 21375#include <resolv.h> 21376#endif 21377" "$ac_c_undeclared_builtin_options" "CFLAGS" 21378if test "x$ac_cv_have_decl__res" = xyes 21379then : 21380 ac_have_decl=1 21381else $as_nop 21382 ac_have_decl=0 21383fi 21384printf "%s\n" "#define HAVE_DECL__RES $ac_have_decl" >>confdefs.h 21385 21386fi 21387 21388 21389 21390 21391 21392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5 21393printf %s "checking for working snprintf... " >&6; } 21394if test ${ac_cv_func_snprintf_working+y} 21395then : 21396 printf %s "(cached) " >&6 21397else $as_nop 21398 ac_cv_func_snprintf_working=yes 21399if test "$cross_compiling" = yes 21400then : 21401 : 21402else $as_nop 21403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21404/* end confdefs.h. */ 21405 21406#include <stdio.h> 21407#include <string.h> 21408int main(int argc, char **argv) 21409{ 21410 char foo[3]; 21411 snprintf(foo, 2, "12"); 21412 return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2; 21413} 21414_ACEOF 21415if ac_fn_c_try_run "$LINENO" 21416then : 21417 : 21418else $as_nop 21419 ac_cv_func_snprintf_working=no 21420fi 21421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21422 conftest.$ac_objext conftest.beam conftest.$ac_ext 21423fi 21424 21425fi 21426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_working" >&5 21427printf "%s\n" "$ac_cv_func_snprintf_working" >&6; } 21428 21429if test "$ac_cv_func_snprintf_working" = yes; then 21430 21431printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 21432 21433fi 21434if test "$ac_cv_func_snprintf_working" = yes; then 21435 21436if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 21437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if snprintf needs a prototype" >&5 21438printf %s "checking if snprintf needs a prototype... " >&6; } 21439if test ${ac_cv_func_snprintf_noproto+y} 21440then : 21441 printf %s "(cached) " >&6 21442else $as_nop 21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21444/* end confdefs.h. */ 21445#include <stdio.h> 21446struct foo { int foo; } xx; 21447extern int snprintf (struct foo*); 21448int 21449main (void) 21450{ 21451snprintf(&xx) 21452 ; 21453 return 0; 21454} 21455_ACEOF 21456if ac_fn_c_try_compile "$LINENO" 21457then : 21458 eval "ac_cv_func_snprintf_noproto=yes" 21459else $as_nop 21460 eval "ac_cv_func_snprintf_noproto=no" 21461fi 21462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21463fi 21464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noproto" >&5 21465printf "%s\n" "$ac_cv_func_snprintf_noproto" >&6; } 21466if test "$ac_cv_func_snprintf_noproto" = yes; then 21467 21468printf "%s\n" "#define NEED_SNPRINTF_PROTO 1" >>confdefs.h 21469 21470fi 21471fi 21472 21473fi 21474 21475 21476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5 21477printf %s "checking for working vsnprintf... " >&6; } 21478if test ${ac_cv_func_vsnprintf_working+y} 21479then : 21480 printf %s "(cached) " >&6 21481else $as_nop 21482 ac_cv_func_vsnprintf_working=yes 21483if test "$cross_compiling" = yes 21484then : 21485 : 21486else $as_nop 21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21488/* end confdefs.h. */ 21489 21490#include <stdio.h> 21491#include <string.h> 21492#include <stdarg.h> 21493 21494int foo(int num, ...) 21495{ 21496 char bar[3]; 21497 va_list arg; 21498 va_start(arg, num); 21499 vsnprintf(bar, 2, "%s", arg); 21500 va_end(arg); 21501 return strcmp(bar, "1"); 21502} 21503 21504int bar(int num, int len, ...) 21505{ 21506 int r; 21507 va_list arg; 21508 va_start(arg, len); 21509 r = vsnprintf(NULL, 0, "%s", arg); 21510 va_end(arg); 21511 return r != len; 21512} 21513 21514int main(int argc, char **argv) 21515{ 21516 return foo(0, "12") || bar(0, 2, "12"); 21517} 21518_ACEOF 21519if ac_fn_c_try_run "$LINENO" 21520then : 21521 : 21522else $as_nop 21523 ac_cv_func_vsnprintf_working=no 21524fi 21525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21526 conftest.$ac_objext conftest.beam conftest.$ac_ext 21527fi 21528 21529fi 21530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_working" >&5 21531printf "%s\n" "$ac_cv_func_vsnprintf_working" >&6; } 21532 21533if test "$ac_cv_func_vsnprintf_working" = yes; then 21534 21535printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h 21536 21537fi 21538if test "$ac_cv_func_vsnprintf_working" = yes; then 21539 21540if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 21541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vsnprintf needs a prototype" >&5 21542printf %s "checking if vsnprintf needs a prototype... " >&6; } 21543if test ${ac_cv_func_vsnprintf_noproto+y} 21544then : 21545 printf %s "(cached) " >&6 21546else $as_nop 21547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21548/* end confdefs.h. */ 21549#include <stdio.h> 21550struct foo { int foo; } xx; 21551extern int vsnprintf (struct foo*); 21552int 21553main (void) 21554{ 21555vsnprintf(&xx) 21556 ; 21557 return 0; 21558} 21559_ACEOF 21560if ac_fn_c_try_compile "$LINENO" 21561then : 21562 eval "ac_cv_func_vsnprintf_noproto=yes" 21563else $as_nop 21564 eval "ac_cv_func_vsnprintf_noproto=no" 21565fi 21566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21567fi 21568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_noproto" >&5 21569printf "%s\n" "$ac_cv_func_vsnprintf_noproto" >&6; } 21570if test "$ac_cv_func_vsnprintf_noproto" = yes; then 21571 21572printf "%s\n" "#define NEED_VSNPRINTF_PROTO 1" >>confdefs.h 21573 21574fi 21575fi 21576 21577fi 21578 21579 21580 21581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working glob" >&5 21582printf %s "checking for working glob... " >&6; } 21583if test ${ac_cv_func_glob_working+y} 21584then : 21585 printf %s "(cached) " >&6 21586else $as_nop 21587 ac_cv_func_glob_working=yes 21588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21589/* end confdefs.h. */ 21590 21591#include <stdio.h> 21592#include <glob.h> 21593int 21594main (void) 21595{ 21596 21597glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| 21598#ifdef GLOB_MAXPATH 21599GLOB_MAXPATH 21600#else 21601GLOB_LIMIT 21602#endif 21603, 21604NULL, NULL); 21605 21606 ; 21607 return 0; 21608} 21609_ACEOF 21610if ac_fn_c_try_link "$LINENO" 21611then : 21612 : 21613else $as_nop 21614 ac_cv_func_glob_working=no 21615fi 21616rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21617 conftest$ac_exeext conftest.$ac_ext 21618fi 21619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_working" >&5 21620printf "%s\n" "$ac_cv_func_glob_working" >&6; } 21621 21622if test "$ac_cv_func_glob_working" = yes; then 21623 21624printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h 21625 21626fi 21627if test "$ac_cv_func_glob_working" = yes; then 21628 21629if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 21630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if glob needs a prototype" >&5 21631printf %s "checking if glob needs a prototype... " >&6; } 21632if test ${ac_cv_func_glob_noproto+y} 21633then : 21634 printf %s "(cached) " >&6 21635else $as_nop 21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21637/* end confdefs.h. */ 21638#include <stdio.h> 21639#include <glob.h> 21640struct foo { int foo; } xx; 21641extern int glob (struct foo*); 21642int 21643main (void) 21644{ 21645glob(&xx) 21646 ; 21647 return 0; 21648} 21649_ACEOF 21650if ac_fn_c_try_compile "$LINENO" 21651then : 21652 eval "ac_cv_func_glob_noproto=yes" 21653else $as_nop 21654 eval "ac_cv_func_glob_noproto=no" 21655fi 21656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21657fi 21658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_noproto" >&5 21659printf "%s\n" "$ac_cv_func_glob_noproto" >&6; } 21660if test "$ac_cv_func_glob_noproto" = yes; then 21661 21662printf "%s\n" "#define NEED_GLOB_PROTO 1" >>confdefs.h 21663 21664fi 21665fi 21666 21667fi 21668 21669if test "$ac_cv_func_glob_working" != yes; then 21670 case " $LIBOBJS " in 21671 *" glob.$ac_objext "* ) ;; 21672 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 21673 ;; 21674esac 21675 21676fi 21677 if test "$ac_cv_func_glob_working" = yes; then 21678 have_glob_h_TRUE= 21679 have_glob_h_FALSE='#' 21680else 21681 have_glob_h_TRUE='#' 21682 have_glob_h_FALSE= 21683fi 21684 21685 21686 21687ac_fn_c_check_func "$LINENO" "asnprintf" "ac_cv_func_asnprintf" 21688if test "x$ac_cv_func_asnprintf" = xyes 21689then : 21690 printf "%s\n" "#define HAVE_ASNPRINTF 1" >>confdefs.h 21691 21692fi 21693ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 21694if test "x$ac_cv_func_asprintf" = xyes 21695then : 21696 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 21697 21698fi 21699ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 21700if test "x$ac_cv_func_atexit" = xyes 21701then : 21702 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h 21703 21704fi 21705ac_fn_c_check_func "$LINENO" "cgetent" "ac_cv_func_cgetent" 21706if test "x$ac_cv_func_cgetent" = xyes 21707then : 21708 printf "%s\n" "#define HAVE_CGETENT 1" >>confdefs.h 21709 21710fi 21711ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 21712if test "x$ac_cv_func_getauxval" = xyes 21713then : 21714 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h 21715 21716fi 21717ac_fn_c_check_func "$LINENO" "getconfattr" "ac_cv_func_getconfattr" 21718if test "x$ac_cv_func_getconfattr" = xyes 21719then : 21720 printf "%s\n" "#define HAVE_GETCONFATTR 1" >>confdefs.h 21721 21722fi 21723ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname" 21724if test "x$ac_cv_func_getprogname" = xyes 21725then : 21726 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h 21727 21728fi 21729ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 21730if test "x$ac_cv_func_getrlimit" = xyes 21731then : 21732 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h 21733 21734fi 21735ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 21736if test "x$ac_cv_func_getspnam" = xyes 21737then : 21738 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h 21739 21740fi 21741ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 21742if test "x$ac_cv_func_issetugid" = xyes 21743then : 21744 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h 21745 21746fi 21747ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit" 21748if test "x$ac_cv_func_on_exit" = xyes 21749then : 21750 printf "%s\n" "#define HAVE_ON_EXIT 1" >>confdefs.h 21751 21752fi 21753ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 21754if test "x$ac_cv_func_poll" = xyes 21755then : 21756 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 21757 21758fi 21759ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 21760if test "x$ac_cv_func_random" = xyes 21761then : 21762 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h 21763 21764fi 21765ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname" 21766if test "x$ac_cv_func_setprogname" = xyes 21767then : 21768 printf "%s\n" "#define HAVE_SETPROGNAME 1" >>confdefs.h 21769 21770fi 21771ac_fn_c_check_func "$LINENO" "strsvis" "ac_cv_func_strsvis" 21772if test "x$ac_cv_func_strsvis" = xyes 21773then : 21774 printf "%s\n" "#define HAVE_STRSVIS 1" >>confdefs.h 21775 21776fi 21777ac_fn_c_check_func "$LINENO" "strsvisx" "ac_cv_func_strsvisx" 21778if test "x$ac_cv_func_strsvisx" = xyes 21779then : 21780 printf "%s\n" "#define HAVE_STRSVISX 1" >>confdefs.h 21781 21782fi 21783ac_fn_c_check_func "$LINENO" "strunvis" "ac_cv_func_strunvis" 21784if test "x$ac_cv_func_strunvis" = xyes 21785then : 21786 printf "%s\n" "#define HAVE_STRUNVIS 1" >>confdefs.h 21787 21788fi 21789ac_fn_c_check_func "$LINENO" "strvis" "ac_cv_func_strvis" 21790if test "x$ac_cv_func_strvis" = xyes 21791then : 21792 printf "%s\n" "#define HAVE_STRVIS 1" >>confdefs.h 21793 21794fi 21795ac_fn_c_check_func "$LINENO" "strvisx" "ac_cv_func_strvisx" 21796if test "x$ac_cv_func_strvisx" = xyes 21797then : 21798 printf "%s\n" "#define HAVE_STRVISX 1" >>confdefs.h 21799 21800fi 21801ac_fn_c_check_func "$LINENO" "svis" "ac_cv_func_svis" 21802if test "x$ac_cv_func_svis" = xyes 21803then : 21804 printf "%s\n" "#define HAVE_SVIS 1" >>confdefs.h 21805 21806fi 21807ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 21808if test "x$ac_cv_func_sysconf" = xyes 21809then : 21810 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 21811 21812fi 21813ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" 21814if test "x$ac_cv_func_sysctl" = xyes 21815then : 21816 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h 21817 21818fi 21819ac_fn_c_check_func "$LINENO" "tdelete" "ac_cv_func_tdelete" 21820if test "x$ac_cv_func_tdelete" = xyes 21821then : 21822 printf "%s\n" "#define HAVE_TDELETE 1" >>confdefs.h 21823 21824fi 21825ac_fn_c_check_func "$LINENO" "tfind" "ac_cv_func_tfind" 21826if test "x$ac_cv_func_tfind" = xyes 21827then : 21828 printf "%s\n" "#define HAVE_TFIND 1" >>confdefs.h 21829 21830fi 21831ac_fn_c_check_func "$LINENO" "twalk" "ac_cv_func_twalk" 21832if test "x$ac_cv_func_twalk" = xyes 21833then : 21834 printf "%s\n" "#define HAVE_TWALK 1" >>confdefs.h 21835 21836fi 21837ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 21838if test "x$ac_cv_func_uname" = xyes 21839then : 21840 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h 21841 21842fi 21843ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis" 21844if test "x$ac_cv_func_unvis" = xyes 21845then : 21846 printf "%s\n" "#define HAVE_UNVIS 1" >>confdefs.h 21847 21848fi 21849ac_fn_c_check_func "$LINENO" "vasnprintf" "ac_cv_func_vasnprintf" 21850if test "x$ac_cv_func_vasnprintf" = xyes 21851then : 21852 printf "%s\n" "#define HAVE_VASNPRINTF 1" >>confdefs.h 21853 21854fi 21855ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 21856if test "x$ac_cv_func_vasprintf" = xyes 21857then : 21858 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 21859 21860fi 21861ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis" 21862if test "x$ac_cv_func_vis" = xyes 21863then : 21864 printf "%s\n" "#define HAVE_VIS 1" >>confdefs.h 21865 21866fi 21867 21868 21869if test "$ac_cv_func_cgetent" = no; then 21870 case " $LIBOBJS " in 21871 *" getcap.$ac_objext "* ) ;; 21872 *) LIBOBJS="$LIBOBJS getcap.$ac_objext" 21873 ;; 21874esac 21875 21876fi 21877 if test "$ac_cv_func_cgetent" = yes; then 21878 have_cgetent_TRUE= 21879 have_cgetent_FALSE='#' 21880else 21881 have_cgetent_TRUE='#' 21882 have_cgetent_FALSE= 21883fi 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockopt" >&5 21894printf %s "checking for getsockopt... " >&6; } 21895if test ${ac_cv_funclib_getsockopt+y} 21896then : 21897 printf %s "(cached) " >&6 21898else $as_nop 21899 21900if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 21901 ac_save_LIBS="$LIBS" 21902 for ac_lib in "" ; do 21903 case "$ac_lib" in 21904 "") ;; 21905 yes) ac_lib="" ;; 21906 no) continue ;; 21907 -l*) ;; 21908 *) ac_lib="-l$ac_lib" ;; 21909 esac 21910 LIBS=" $ac_lib $ac_save_LIBS" 21911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21912/* end confdefs.h. */ 21913#ifdef HAVE_SYS_TYPES_H 21914#include <sys/types.h> 21915#endif 21916#ifdef HAVE_SYS_SOCKET_H 21917#include <sys/socket.h> 21918#endif 21919int 21920main (void) 21921{ 21922getsockopt(0,0,0,0,0) 21923 ; 21924 return 0; 21925} 21926_ACEOF 21927if ac_fn_c_try_link "$LINENO" 21928then : 21929 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 21930fi 21931rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21932 conftest$ac_exeext conftest.$ac_ext 21933 done 21934 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 21935 LIBS="$ac_save_LIBS" 21936fi 21937 21938fi 21939 21940 21941eval "ac_res=\$ac_cv_funclib_getsockopt" 21942 21943if false; then 21944 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt" 21945if test "x$ac_cv_func_getsockopt" = xyes 21946then : 21947 printf "%s\n" "#define HAVE_GETSOCKOPT 1" >>confdefs.h 21948 21949fi 21950 21951fi 21952# getsockopt 21953eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21954eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21955eval "LIB_getsockopt=$ac_res" 21956 21957case "$ac_res" in 21958 yes) 21959 eval "ac_cv_func_getsockopt=yes" 21960 eval "LIB_getsockopt=" 21961 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21962 21963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21964printf "%s\n" "yes" >&6; } 21965 ;; 21966 no) 21967 eval "ac_cv_func_getsockopt=no" 21968 eval "LIB_getsockopt=" 21969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21970printf "%s\n" "no" >&6; } 21971 ;; 21972 *) 21973 eval "ac_cv_func_getsockopt=yes" 21974 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21975 21976 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 21977 21978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21979printf "%s\n" "yes, in $ac_res" >&6; } 21980 ;; 21981esac 21982 21983 21984 21985 21986 21987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5 21988printf %s "checking for setsockopt... " >&6; } 21989if test ${ac_cv_funclib_setsockopt+y} 21990then : 21991 printf %s "(cached) " >&6 21992else $as_nop 21993 21994if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 21995 ac_save_LIBS="$LIBS" 21996 for ac_lib in "" ; do 21997 case "$ac_lib" in 21998 "") ;; 21999 yes) ac_lib="" ;; 22000 no) continue ;; 22001 -l*) ;; 22002 *) ac_lib="-l$ac_lib" ;; 22003 esac 22004 LIBS=" $ac_lib $ac_save_LIBS" 22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22006/* end confdefs.h. */ 22007#ifdef HAVE_SYS_TYPES_H 22008#include <sys/types.h> 22009#endif 22010#ifdef HAVE_SYS_SOCKET_H 22011#include <sys/socket.h> 22012#endif 22013int 22014main (void) 22015{ 22016setsockopt(0,0,0,0,0) 22017 ; 22018 return 0; 22019} 22020_ACEOF 22021if ac_fn_c_try_link "$LINENO" 22022then : 22023 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 22024fi 22025rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22026 conftest$ac_exeext conftest.$ac_ext 22027 done 22028 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 22029 LIBS="$ac_save_LIBS" 22030fi 22031 22032fi 22033 22034 22035eval "ac_res=\$ac_cv_funclib_setsockopt" 22036 22037if false; then 22038 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 22039if test "x$ac_cv_func_setsockopt" = xyes 22040then : 22041 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h 22042 22043fi 22044 22045fi 22046# setsockopt 22047eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22048eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22049eval "LIB_setsockopt=$ac_res" 22050 22051case "$ac_res" in 22052 yes) 22053 eval "ac_cv_func_setsockopt=yes" 22054 eval "LIB_setsockopt=" 22055 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22056 22057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22058printf "%s\n" "yes" >&6; } 22059 ;; 22060 no) 22061 eval "ac_cv_func_setsockopt=no" 22062 eval "LIB_setsockopt=" 22063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22064printf "%s\n" "no" >&6; } 22065 ;; 22066 *) 22067 eval "ac_cv_func_setsockopt=yes" 22068 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22069 22070 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22071 22072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22073printf "%s\n" "yes, in $ac_res" >&6; } 22074 ;; 22075esac 22076 22077 22078 22079 22080 22081 22082 22083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 22084printf %s "checking for hstrerror... " >&6; } 22085if test ${ac_cv_funclib_hstrerror+y} 22086then : 22087 printf %s "(cached) " >&6 22088else $as_nop 22089 22090if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 22091 ac_save_LIBS="$LIBS" 22092 for ac_lib in "" resolv; do 22093 case "$ac_lib" in 22094 "") ;; 22095 yes) ac_lib="" ;; 22096 no) continue ;; 22097 -l*) ;; 22098 *) ac_lib="-l$ac_lib" ;; 22099 esac 22100 LIBS=" $ac_lib $ac_save_LIBS" 22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22102/* end confdefs.h. */ 22103#ifdef HAVE_NETDB_H 22104#include <netdb.h> 22105#endif 22106int 22107main (void) 22108{ 22109hstrerror(17) 22110 ; 22111 return 0; 22112} 22113_ACEOF 22114if ac_fn_c_try_link "$LINENO" 22115then : 22116 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 22117fi 22118rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22119 conftest$ac_exeext conftest.$ac_ext 22120 done 22121 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 22122 LIBS="$ac_save_LIBS" 22123fi 22124 22125fi 22126 22127 22128eval "ac_res=\$ac_cv_funclib_hstrerror" 22129 22130if false; then 22131 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" 22132if test "x$ac_cv_func_hstrerror" = xyes 22133then : 22134 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h 22135 22136fi 22137 22138fi 22139# hstrerror 22140eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22141eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22142eval "LIB_hstrerror=$ac_res" 22143 22144case "$ac_res" in 22145 yes) 22146 eval "ac_cv_func_hstrerror=yes" 22147 eval "LIB_hstrerror=" 22148 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22149 22150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22151printf "%s\n" "yes" >&6; } 22152 ;; 22153 no) 22154 eval "ac_cv_func_hstrerror=no" 22155 eval "LIB_hstrerror=" 22156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22157printf "%s\n" "no" >&6; } 22158 ;; 22159 *) 22160 eval "ac_cv_func_hstrerror=yes" 22161 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22162 22163 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22164 22165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22166printf "%s\n" "yes, in $ac_res" >&6; } 22167 ;; 22168esac 22169 22170 22171if test -n "$LIB_hstrerror"; then 22172 LIBS="$LIB_hstrerror $LIBS" 22173fi 22174 22175if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 22176 case " $LIBOBJS " in 22177 *" hstrerror.$ac_objext "* ) ;; 22178 *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" 22179 ;; 22180esac 22181 22182fi 22183 22184 22185if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 22186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if hstrerror needs a prototype" >&5 22187printf %s "checking if hstrerror needs a prototype... " >&6; } 22188if test ${ac_cv_func_hstrerror_noproto+y} 22189then : 22190 printf %s "(cached) " >&6 22191else $as_nop 22192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22193/* end confdefs.h. */ 22194 22195#ifdef HAVE_NETDB_H 22196#include <netdb.h> 22197#endif 22198struct foo { int foo; } xx; 22199extern int hstrerror (struct foo*); 22200int 22201main (void) 22202{ 22203hstrerror(&xx) 22204 ; 22205 return 0; 22206} 22207_ACEOF 22208if ac_fn_c_try_compile "$LINENO" 22209then : 22210 eval "ac_cv_func_hstrerror_noproto=yes" 22211else $as_nop 22212 eval "ac_cv_func_hstrerror_noproto=no" 22213fi 22214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22215fi 22216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror_noproto" >&5 22217printf "%s\n" "$ac_cv_func_hstrerror_noproto" >&6; } 22218if test "$ac_cv_func_hstrerror_noproto" = yes; then 22219 22220printf "%s\n" "#define NEED_HSTRERROR_PROTO 1" >>confdefs.h 22221 22222fi 22223fi 22224 22225 22226 22227if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 22228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if asprintf needs a prototype" >&5 22229printf %s "checking if asprintf needs a prototype... " >&6; } 22230if test ${ac_cv_func_asprintf_noproto+y} 22231then : 22232 printf %s "(cached) " >&6 22233else $as_nop 22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22235/* end confdefs.h. */ 22236 22237 #include <stdio.h> 22238 #include <string.h> 22239struct foo { int foo; } xx; 22240extern int asprintf (struct foo*); 22241int 22242main (void) 22243{ 22244asprintf(&xx) 22245 ; 22246 return 0; 22247} 22248_ACEOF 22249if ac_fn_c_try_compile "$LINENO" 22250then : 22251 eval "ac_cv_func_asprintf_noproto=yes" 22252else $as_nop 22253 eval "ac_cv_func_asprintf_noproto=no" 22254fi 22255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22256fi 22257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asprintf_noproto" >&5 22258printf "%s\n" "$ac_cv_func_asprintf_noproto" >&6; } 22259if test "$ac_cv_func_asprintf_noproto" = yes; then 22260 22261printf "%s\n" "#define NEED_ASPRINTF_PROTO 1" >>confdefs.h 22262 22263fi 22264fi 22265 22266if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 22267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype" >&5 22268printf %s "checking if vasprintf needs a prototype... " >&6; } 22269if test ${ac_cv_func_vasprintf_noproto+y} 22270then : 22271 printf %s "(cached) " >&6 22272else $as_nop 22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22274/* end confdefs.h. */ 22275 22276 #include <stdio.h> 22277 #include <string.h> 22278struct foo { int foo; } xx; 22279extern int vasprintf (struct foo*); 22280int 22281main (void) 22282{ 22283vasprintf(&xx) 22284 ; 22285 return 0; 22286} 22287_ACEOF 22288if ac_fn_c_try_compile "$LINENO" 22289then : 22290 eval "ac_cv_func_vasprintf_noproto=yes" 22291else $as_nop 22292 eval "ac_cv_func_vasprintf_noproto=no" 22293fi 22294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22295fi 22296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasprintf_noproto" >&5 22297printf "%s\n" "$ac_cv_func_vasprintf_noproto" >&6; } 22298if test "$ac_cv_func_vasprintf_noproto" = yes; then 22299 22300printf "%s\n" "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h 22301 22302fi 22303fi 22304 22305if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 22306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if asnprintf needs a prototype" >&5 22307printf %s "checking if asnprintf needs a prototype... " >&6; } 22308if test ${ac_cv_func_asnprintf_noproto+y} 22309then : 22310 printf %s "(cached) " >&6 22311else $as_nop 22312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22313/* end confdefs.h. */ 22314 22315 #include <stdio.h> 22316 #include <string.h> 22317struct foo { int foo; } xx; 22318extern int asnprintf (struct foo*); 22319int 22320main (void) 22321{ 22322asnprintf(&xx) 22323 ; 22324 return 0; 22325} 22326_ACEOF 22327if ac_fn_c_try_compile "$LINENO" 22328then : 22329 eval "ac_cv_func_asnprintf_noproto=yes" 22330else $as_nop 22331 eval "ac_cv_func_asnprintf_noproto=no" 22332fi 22333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22334fi 22335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asnprintf_noproto" >&5 22336printf "%s\n" "$ac_cv_func_asnprintf_noproto" >&6; } 22337if test "$ac_cv_func_asnprintf_noproto" = yes; then 22338 22339printf "%s\n" "#define NEED_ASNPRINTF_PROTO 1" >>confdefs.h 22340 22341fi 22342fi 22343 22344if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 22345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vasnprintf needs a prototype" >&5 22346printf %s "checking if vasnprintf needs a prototype... " >&6; } 22347if test ${ac_cv_func_vasnprintf_noproto+y} 22348then : 22349 printf %s "(cached) " >&6 22350else $as_nop 22351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22352/* end confdefs.h. */ 22353 22354 #include <stdio.h> 22355 #include <string.h> 22356struct foo { int foo; } xx; 22357extern int vasnprintf (struct foo*); 22358int 22359main (void) 22360{ 22361vasnprintf(&xx) 22362 ; 22363 return 0; 22364} 22365_ACEOF 22366if ac_fn_c_try_compile "$LINENO" 22367then : 22368 eval "ac_cv_func_vasnprintf_noproto=yes" 22369else $as_nop 22370 eval "ac_cv_func_vasnprintf_noproto=no" 22371fi 22372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22373fi 22374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasnprintf_noproto" >&5 22375printf "%s\n" "$ac_cv_func_vasnprintf_noproto" >&6; } 22376if test "$ac_cv_func_vasnprintf_noproto" = yes; then 22377 22378printf "%s\n" "#define NEED_VASNPRINTF_PROTO 1" >>confdefs.h 22379 22380fi 22381fi 22382 22383 22384 22385 22386 22387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5 22388printf %s "checking for bswap16... " >&6; } 22389if test ${ac_cv_funclib_bswap16+y} 22390then : 22391 printf %s "(cached) " >&6 22392else $as_nop 22393 22394if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 22395 ac_save_LIBS="$LIBS" 22396 for ac_lib in "" ; do 22397 case "$ac_lib" in 22398 "") ;; 22399 yes) ac_lib="" ;; 22400 no) continue ;; 22401 -l*) ;; 22402 *) ac_lib="-l$ac_lib" ;; 22403 esac 22404 LIBS=" $ac_lib $ac_save_LIBS" 22405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22406/* end confdefs.h. */ 22407#ifdef HAVE_SYS_TYPES_H 22408#include <sys/types.h> 22409#endif 22410#ifdef HAVE_SYS_BSWAP_H 22411#include <sys/bswap.h> 22412#endif 22413int 22414main (void) 22415{ 22416bswap16(0) 22417 ; 22418 return 0; 22419} 22420_ACEOF 22421if ac_fn_c_try_link "$LINENO" 22422then : 22423 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 22424fi 22425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22426 conftest$ac_exeext conftest.$ac_ext 22427 done 22428 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 22429 LIBS="$ac_save_LIBS" 22430fi 22431 22432fi 22433 22434 22435eval "ac_res=\$ac_cv_funclib_bswap16" 22436 22437if false; then 22438 ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16" 22439if test "x$ac_cv_func_bswap16" = xyes 22440then : 22441 printf "%s\n" "#define HAVE_BSWAP16 1" >>confdefs.h 22442 22443fi 22444 22445fi 22446# bswap16 22447eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22448eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22449eval "LIB_bswap16=$ac_res" 22450 22451case "$ac_res" in 22452 yes) 22453 eval "ac_cv_func_bswap16=yes" 22454 eval "LIB_bswap16=" 22455 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22456 22457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22458printf "%s\n" "yes" >&6; } 22459 ;; 22460 no) 22461 eval "ac_cv_func_bswap16=no" 22462 eval "LIB_bswap16=" 22463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22464printf "%s\n" "no" >&6; } 22465 ;; 22466 *) 22467 eval "ac_cv_func_bswap16=yes" 22468 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22469 22470 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22471 22472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22473printf "%s\n" "yes, in $ac_res" >&6; } 22474 ;; 22475esac 22476 22477 22478 22479 22480 22481 22482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5 22483printf %s "checking for bswap32... " >&6; } 22484if test ${ac_cv_funclib_bswap32+y} 22485then : 22486 printf %s "(cached) " >&6 22487else $as_nop 22488 22489if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 22490 ac_save_LIBS="$LIBS" 22491 for ac_lib in "" ; do 22492 case "$ac_lib" in 22493 "") ;; 22494 yes) ac_lib="" ;; 22495 no) continue ;; 22496 -l*) ;; 22497 *) ac_lib="-l$ac_lib" ;; 22498 esac 22499 LIBS=" $ac_lib $ac_save_LIBS" 22500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22501/* end confdefs.h. */ 22502#ifdef HAVE_SYS_TYPES_H 22503#include <sys/types.h> 22504#endif 22505#ifdef HAVE_SYS_BSWAP_H 22506#include <sys/bswap.h> 22507#endif 22508int 22509main (void) 22510{ 22511bswap32(0) 22512 ; 22513 return 0; 22514} 22515_ACEOF 22516if ac_fn_c_try_link "$LINENO" 22517then : 22518 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 22519fi 22520rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22521 conftest$ac_exeext conftest.$ac_ext 22522 done 22523 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 22524 LIBS="$ac_save_LIBS" 22525fi 22526 22527fi 22528 22529 22530eval "ac_res=\$ac_cv_funclib_bswap32" 22531 22532if false; then 22533 ac_fn_c_check_func "$LINENO" "bswap32" "ac_cv_func_bswap32" 22534if test "x$ac_cv_func_bswap32" = xyes 22535then : 22536 printf "%s\n" "#define HAVE_BSWAP32 1" >>confdefs.h 22537 22538fi 22539 22540fi 22541# bswap32 22542eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22543eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22544eval "LIB_bswap32=$ac_res" 22545 22546case "$ac_res" in 22547 yes) 22548 eval "ac_cv_func_bswap32=yes" 22549 eval "LIB_bswap32=" 22550 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22551 22552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22553printf "%s\n" "yes" >&6; } 22554 ;; 22555 no) 22556 eval "ac_cv_func_bswap32=no" 22557 eval "LIB_bswap32=" 22558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22559printf "%s\n" "no" >&6; } 22560 ;; 22561 *) 22562 eval "ac_cv_func_bswap32=yes" 22563 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22564 22565 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22566 22567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22568printf "%s\n" "yes, in $ac_res" >&6; } 22569 ;; 22570esac 22571 22572 22573 22574 22575 22576 22577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap64" >&5 22578printf %s "checking for bswap64... " >&6; } 22579if test ${ac_cv_funclib_bswap64+y} 22580then : 22581 printf %s "(cached) " >&6 22582else $as_nop 22583 22584if eval "test \"\$ac_cv_func_bswap64\" != yes" ; then 22585 ac_save_LIBS="$LIBS" 22586 for ac_lib in "" ; do 22587 case "$ac_lib" in 22588 "") ;; 22589 yes) ac_lib="" ;; 22590 no) continue ;; 22591 -l*) ;; 22592 *) ac_lib="-l$ac_lib" ;; 22593 esac 22594 LIBS=" $ac_lib $ac_save_LIBS" 22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22596/* end confdefs.h. */ 22597#ifdef HAVE_SYS_TYPES_H 22598#include <sys/types.h> 22599#endif 22600#ifdef HAVE_SYS_BSWAP_H 22601#include <sys/bswap.h> 22602#endif 22603int 22604main (void) 22605{ 22606bswap64(0) 22607 ; 22608 return 0; 22609} 22610_ACEOF 22611if ac_fn_c_try_link "$LINENO" 22612then : 22613 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap64=$ac_lib; else ac_cv_funclib_bswap64=yes; fi";break 22614fi 22615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22616 conftest$ac_exeext conftest.$ac_ext 22617 done 22618 eval "ac_cv_funclib_bswap64=\${ac_cv_funclib_bswap64-no}" 22619 LIBS="$ac_save_LIBS" 22620fi 22621 22622fi 22623 22624 22625eval "ac_res=\$ac_cv_funclib_bswap64" 22626 22627if false; then 22628 ac_fn_c_check_func "$LINENO" "bswap64" "ac_cv_func_bswap64" 22629if test "x$ac_cv_func_bswap64" = xyes 22630then : 22631 printf "%s\n" "#define HAVE_BSWAP64 1" >>confdefs.h 22632 22633fi 22634 22635fi 22636# bswap64 22637eval "ac_tr_func=HAVE_`echo bswap64 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22638eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22639eval "LIB_bswap64=$ac_res" 22640 22641case "$ac_res" in 22642 yes) 22643 eval "ac_cv_func_bswap64=yes" 22644 eval "LIB_bswap64=" 22645 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22646 22647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22648printf "%s\n" "yes" >&6; } 22649 ;; 22650 no) 22651 eval "ac_cv_func_bswap64=no" 22652 eval "LIB_bswap64=" 22653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22654printf "%s\n" "no" >&6; } 22655 ;; 22656 *) 22657 eval "ac_cv_func_bswap64=yes" 22658 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22659 22660 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22661 22662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22663printf "%s\n" "yes, in $ac_res" >&6; } 22664 ;; 22665esac 22666 22667 22668 22669 22670 22671 22672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pidfile" >&5 22673printf %s "checking for pidfile... " >&6; } 22674if test ${ac_cv_funclib_pidfile+y} 22675then : 22676 printf %s "(cached) " >&6 22677else $as_nop 22678 22679if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 22680 ac_save_LIBS="$LIBS" 22681 for ac_lib in "" util; do 22682 case "$ac_lib" in 22683 "") ;; 22684 yes) ac_lib="" ;; 22685 no) continue ;; 22686 -l*) ;; 22687 *) ac_lib="-l$ac_lib" ;; 22688 esac 22689 LIBS=" $ac_lib $ac_save_LIBS" 22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22691/* end confdefs.h. */ 22692#ifdef HAVE_UTIL_H 22693#include <util.h> 22694#endif 22695int 22696main (void) 22697{ 22698pidfile(0) 22699 ; 22700 return 0; 22701} 22702_ACEOF 22703if ac_fn_c_try_link "$LINENO" 22704then : 22705 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 22706fi 22707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22708 conftest$ac_exeext conftest.$ac_ext 22709 done 22710 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 22711 LIBS="$ac_save_LIBS" 22712fi 22713 22714fi 22715 22716 22717eval "ac_res=\$ac_cv_funclib_pidfile" 22718 22719if false; then 22720 ac_fn_c_check_func "$LINENO" "pidfile" "ac_cv_func_pidfile" 22721if test "x$ac_cv_func_pidfile" = xyes 22722then : 22723 printf "%s\n" "#define HAVE_PIDFILE 1" >>confdefs.h 22724 22725fi 22726 22727fi 22728# pidfile 22729eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22730eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22731eval "LIB_pidfile=$ac_res" 22732 22733case "$ac_res" in 22734 yes) 22735 eval "ac_cv_func_pidfile=yes" 22736 eval "LIB_pidfile=" 22737 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22738 22739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22740printf "%s\n" "yes" >&6; } 22741 ;; 22742 no) 22743 eval "ac_cv_func_pidfile=no" 22744 eval "LIB_pidfile=" 22745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22746printf "%s\n" "no" >&6; } 22747 ;; 22748 *) 22749 eval "ac_cv_func_pidfile=yes" 22750 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22751 22752 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22753 22754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22755printf "%s\n" "yes, in $ac_res" >&6; } 22756 ;; 22757esac 22758 22759 22760 22761 22762 22763 22764 22765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 22766printf %s "checking for getaddrinfo... " >&6; } 22767if test ${ac_cv_funclib_getaddrinfo+y} 22768then : 22769 printf %s "(cached) " >&6 22770else $as_nop 22771 22772if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then 22773 ac_save_LIBS="$LIBS" 22774 for ac_lib in "" ; do 22775 case "$ac_lib" in 22776 "") ;; 22777 yes) ac_lib="" ;; 22778 no) continue ;; 22779 -l*) ;; 22780 *) ac_lib="-l$ac_lib" ;; 22781 esac 22782 LIBS=" $ac_lib $ac_save_LIBS" 22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22784/* end confdefs.h. */ 22785#ifdef HAVE_NETDB_H 22786#include <netdb.h> 22787#endif 22788#ifdef HAVE_WS2TCPIP_H 22789#include <ws2tcpip.h> 22790#endif 22791int 22792main (void) 22793{ 22794getaddrinfo(0,0,0,0) 22795 ; 22796 return 0; 22797} 22798_ACEOF 22799if ac_fn_c_try_link "$LINENO" 22800then : 22801 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break 22802fi 22803rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22804 conftest$ac_exeext conftest.$ac_ext 22805 done 22806 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}" 22807 LIBS="$ac_save_LIBS" 22808fi 22809 22810fi 22811 22812 22813eval "ac_res=\$ac_cv_funclib_getaddrinfo" 22814 22815if false; then 22816 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 22817if test "x$ac_cv_func_getaddrinfo" = xyes 22818then : 22819 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 22820 22821fi 22822 22823fi 22824# getaddrinfo 22825eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22826eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22827eval "LIB_getaddrinfo=$ac_res" 22828 22829case "$ac_res" in 22830 yes) 22831 eval "ac_cv_func_getaddrinfo=yes" 22832 eval "LIB_getaddrinfo=" 22833 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22834 22835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22836printf "%s\n" "yes" >&6; } 22837 ;; 22838 no) 22839 eval "ac_cv_func_getaddrinfo=no" 22840 eval "LIB_getaddrinfo=" 22841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22842printf "%s\n" "no" >&6; } 22843 ;; 22844 *) 22845 eval "ac_cv_func_getaddrinfo=yes" 22846 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22847 22848 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22849 22850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22851printf "%s\n" "yes, in $ac_res" >&6; } 22852 ;; 22853esac 22854 22855 22856if test -n "$LIB_getaddrinfo"; then 22857 LIBS="$LIB_getaddrinfo $LIBS" 22858fi 22859 22860if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then 22861 case " $LIBOBJS " in 22862 *" getaddrinfo.$ac_objext "* ) ;; 22863 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 22864 ;; 22865esac 22866 22867fi 22868 22869 22870 22871 22872 22873 22874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5 22875printf %s "checking for getnameinfo... " >&6; } 22876if test ${ac_cv_funclib_getnameinfo+y} 22877then : 22878 printf %s "(cached) " >&6 22879else $as_nop 22880 22881if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then 22882 ac_save_LIBS="$LIBS" 22883 for ac_lib in "" ; do 22884 case "$ac_lib" in 22885 "") ;; 22886 yes) ac_lib="" ;; 22887 no) continue ;; 22888 -l*) ;; 22889 *) ac_lib="-l$ac_lib" ;; 22890 esac 22891 LIBS=" $ac_lib $ac_save_LIBS" 22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22893/* end confdefs.h. */ 22894#ifdef HAVE_NETDB_H 22895#include <netdb.h> 22896#endif 22897#ifdef HAVE_WS2TCPIP_H 22898#include <ws2tcpip.h> 22899#endif 22900int 22901main (void) 22902{ 22903getnameinfo(0,0,0,0,0,0,0) 22904 ; 22905 return 0; 22906} 22907_ACEOF 22908if ac_fn_c_try_link "$LINENO" 22909then : 22910 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break 22911fi 22912rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22913 conftest$ac_exeext conftest.$ac_ext 22914 done 22915 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}" 22916 LIBS="$ac_save_LIBS" 22917fi 22918 22919fi 22920 22921 22922eval "ac_res=\$ac_cv_funclib_getnameinfo" 22923 22924if false; then 22925 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 22926if test "x$ac_cv_func_getnameinfo" = xyes 22927then : 22928 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 22929 22930fi 22931 22932fi 22933# getnameinfo 22934eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22935eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22936eval "LIB_getnameinfo=$ac_res" 22937 22938case "$ac_res" in 22939 yes) 22940 eval "ac_cv_func_getnameinfo=yes" 22941 eval "LIB_getnameinfo=" 22942 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22943 22944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22945printf "%s\n" "yes" >&6; } 22946 ;; 22947 no) 22948 eval "ac_cv_func_getnameinfo=no" 22949 eval "LIB_getnameinfo=" 22950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22951printf "%s\n" "no" >&6; } 22952 ;; 22953 *) 22954 eval "ac_cv_func_getnameinfo=yes" 22955 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22956 22957 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22958 22959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22960printf "%s\n" "yes, in $ac_res" >&6; } 22961 ;; 22962esac 22963 22964 22965if test -n "$LIB_getnameinfo"; then 22966 LIBS="$LIB_getnameinfo $LIBS" 22967fi 22968 22969if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then 22970 case " $LIBOBJS " in 22971 *" getnameinfo.$ac_objext "* ) ;; 22972 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 22973 ;; 22974esac 22975 22976fi 22977 22978 22979 22980 22981 22982 22983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freeaddrinfo" >&5 22984printf %s "checking for freeaddrinfo... " >&6; } 22985if test ${ac_cv_funclib_freeaddrinfo+y} 22986then : 22987 printf %s "(cached) " >&6 22988else $as_nop 22989 22990if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then 22991 ac_save_LIBS="$LIBS" 22992 for ac_lib in "" ; do 22993 case "$ac_lib" in 22994 "") ;; 22995 yes) ac_lib="" ;; 22996 no) continue ;; 22997 -l*) ;; 22998 *) ac_lib="-l$ac_lib" ;; 22999 esac 23000 LIBS=" $ac_lib $ac_save_LIBS" 23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23002/* end confdefs.h. */ 23003#ifdef HAVE_NETDB_H 23004#include <netdb.h> 23005#endif 23006#ifdef HAVE_WS2TCPIP_H 23007#include <ws2tcpip.h> 23008#endif 23009int 23010main (void) 23011{ 23012freeaddrinfo(0) 23013 ; 23014 return 0; 23015} 23016_ACEOF 23017if ac_fn_c_try_link "$LINENO" 23018then : 23019 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break 23020fi 23021rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23022 conftest$ac_exeext conftest.$ac_ext 23023 done 23024 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}" 23025 LIBS="$ac_save_LIBS" 23026fi 23027 23028fi 23029 23030 23031eval "ac_res=\$ac_cv_funclib_freeaddrinfo" 23032 23033if false; then 23034 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo" 23035if test "x$ac_cv_func_freeaddrinfo" = xyes 23036then : 23037 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h 23038 23039fi 23040 23041fi 23042# freeaddrinfo 23043eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23044eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23045eval "LIB_freeaddrinfo=$ac_res" 23046 23047case "$ac_res" in 23048 yes) 23049 eval "ac_cv_func_freeaddrinfo=yes" 23050 eval "LIB_freeaddrinfo=" 23051 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 23052 23053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23054printf "%s\n" "yes" >&6; } 23055 ;; 23056 no) 23057 eval "ac_cv_func_freeaddrinfo=no" 23058 eval "LIB_freeaddrinfo=" 23059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23060printf "%s\n" "no" >&6; } 23061 ;; 23062 *) 23063 eval "ac_cv_func_freeaddrinfo=yes" 23064 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 23065 23066 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 23067 23068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 23069printf "%s\n" "yes, in $ac_res" >&6; } 23070 ;; 23071esac 23072 23073 23074if test -n "$LIB_freeaddrinfo"; then 23075 LIBS="$LIB_freeaddrinfo $LIBS" 23076fi 23077 23078if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then 23079 case " $LIBOBJS " in 23080 *" freeaddrinfo.$ac_objext "* ) ;; 23081 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 23082 ;; 23083esac 23084 23085fi 23086 23087 23088 23089 23090 23091 23092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gai_strerror" >&5 23093printf %s "checking for gai_strerror... " >&6; } 23094if test ${ac_cv_funclib_gai_strerror+y} 23095then : 23096 printf %s "(cached) " >&6 23097else $as_nop 23098 23099if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then 23100 ac_save_LIBS="$LIBS" 23101 for ac_lib in "" ; do 23102 case "$ac_lib" in 23103 "") ;; 23104 yes) ac_lib="" ;; 23105 no) continue ;; 23106 -l*) ;; 23107 *) ac_lib="-l$ac_lib" ;; 23108 esac 23109 LIBS=" $ac_lib $ac_save_LIBS" 23110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23111/* end confdefs.h. */ 23112#ifdef HAVE_NETDB_H 23113#include <netdb.h> 23114#endif 23115#ifdef HAVE_WS2TCPIP_H 23116#include <ws2tcpip.h> 23117#endif 23118int 23119main (void) 23120{ 23121gai_strerror(0) 23122 ; 23123 return 0; 23124} 23125_ACEOF 23126if ac_fn_c_try_link "$LINENO" 23127then : 23128 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break 23129fi 23130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23131 conftest$ac_exeext conftest.$ac_ext 23132 done 23133 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}" 23134 LIBS="$ac_save_LIBS" 23135fi 23136 23137fi 23138 23139 23140eval "ac_res=\$ac_cv_funclib_gai_strerror" 23141 23142if false; then 23143 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 23144if test "x$ac_cv_func_gai_strerror" = xyes 23145then : 23146 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h 23147 23148fi 23149 23150fi 23151# gai_strerror 23152eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23153eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23154eval "LIB_gai_strerror=$ac_res" 23155 23156case "$ac_res" in 23157 yes) 23158 eval "ac_cv_func_gai_strerror=yes" 23159 eval "LIB_gai_strerror=" 23160 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 23161 23162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23163printf "%s\n" "yes" >&6; } 23164 ;; 23165 no) 23166 eval "ac_cv_func_gai_strerror=no" 23167 eval "LIB_gai_strerror=" 23168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23169printf "%s\n" "no" >&6; } 23170 ;; 23171 *) 23172 eval "ac_cv_func_gai_strerror=yes" 23173 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 23174 23175 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 23176 23177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 23178printf "%s\n" "yes, in $ac_res" >&6; } 23179 ;; 23180esac 23181 23182 23183if test -n "$LIB_gai_strerror"; then 23184 LIBS="$LIB_gai_strerror $LIBS" 23185fi 23186 23187if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then 23188 case " $LIBOBJS " in 23189 *" gai_strerror.$ac_objext "* ) ;; 23190 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" 23191 ;; 23192esac 23193 23194fi 23195 23196 23197case "$host_os" in 23198 darwin*) 23199 ;; 23200 *) 23201 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 23202if test "x$ac_cv_func_daemon" = xyes 23203then : 23204 23205printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 23206 23207else $as_nop 23208 case " $LIBOBJS " in 23209 *" daemon.$ac_objext "* ) ;; 23210 *) LIBOBJS="$LIBOBJS daemon.$ac_objext" 23211 ;; 23212esac 23213 23214fi 23215 ;; 23216esac 23217 23218ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 23219if test "x$ac_cv_func_chown" = xyes 23220then : 23221 23222printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 23223 23224else $as_nop 23225 case " $LIBOBJS " in 23226 *" chown.$ac_objext "* ) ;; 23227 *) LIBOBJS="$LIBOBJS chown.$ac_objext" 23228 ;; 23229esac 23230 23231fi 23232ac_fn_c_check_func "$LINENO" "copyhostent" "ac_cv_func_copyhostent" 23233if test "x$ac_cv_func_copyhostent" = xyes 23234then : 23235 23236printf "%s\n" "#define HAVE_COPYHOSTENT 1" >>confdefs.h 23237 23238else $as_nop 23239 case " $LIBOBJS " in 23240 *" copyhostent.$ac_objext "* ) ;; 23241 *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" 23242 ;; 23243esac 23244 23245fi 23246ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" 23247if test "x$ac_cv_func_closefrom" = xyes 23248then : 23249 23250printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h 23251 23252else $as_nop 23253 case " $LIBOBJS " in 23254 *" closefrom.$ac_objext "* ) ;; 23255 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" 23256 ;; 23257esac 23258 23259fi 23260ac_fn_c_check_func "$LINENO" "ecalloc" "ac_cv_func_ecalloc" 23261if test "x$ac_cv_func_ecalloc" = xyes 23262then : 23263 23264printf "%s\n" "#define HAVE_ECALLOC 1" >>confdefs.h 23265 23266else $as_nop 23267 case " $LIBOBJS " in 23268 *" ecalloc.$ac_objext "* ) ;; 23269 *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" 23270 ;; 23271esac 23272 23273fi 23274ac_fn_c_check_func "$LINENO" "emalloc" "ac_cv_func_emalloc" 23275if test "x$ac_cv_func_emalloc" = xyes 23276then : 23277 23278printf "%s\n" "#define HAVE_EMALLOC 1" >>confdefs.h 23279 23280else $as_nop 23281 case " $LIBOBJS " in 23282 *" emalloc.$ac_objext "* ) ;; 23283 *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" 23284 ;; 23285esac 23286 23287fi 23288ac_fn_c_check_func "$LINENO" "erealloc" "ac_cv_func_erealloc" 23289if test "x$ac_cv_func_erealloc" = xyes 23290then : 23291 23292printf "%s\n" "#define HAVE_EREALLOC 1" >>confdefs.h 23293 23294else $as_nop 23295 case " $LIBOBJS " in 23296 *" erealloc.$ac_objext "* ) ;; 23297 *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" 23298 ;; 23299esac 23300 23301fi 23302ac_fn_c_check_func "$LINENO" "estrdup" "ac_cv_func_estrdup" 23303if test "x$ac_cv_func_estrdup" = xyes 23304then : 23305 23306printf "%s\n" "#define HAVE_ESTRDUP 1" >>confdefs.h 23307 23308else $as_nop 23309 case " $LIBOBJS " in 23310 *" estrdup.$ac_objext "* ) ;; 23311 *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" 23312 ;; 23313esac 23314 23315fi 23316ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err" 23317if test "x$ac_cv_func_err" = xyes 23318then : 23319 23320printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h 23321 23322else $as_nop 23323 case " $LIBOBJS " in 23324 *" err.$ac_objext "* ) ;; 23325 *) LIBOBJS="$LIBOBJS err.$ac_objext" 23326 ;; 23327esac 23328 23329fi 23330ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx" 23331if test "x$ac_cv_func_errx" = xyes 23332then : 23333 23334printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h 23335 23336else $as_nop 23337 case " $LIBOBJS " in 23338 *" errx.$ac_objext "* ) ;; 23339 *) LIBOBJS="$LIBOBJS errx.$ac_objext" 23340 ;; 23341esac 23342 23343fi 23344ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 23345if test "x$ac_cv_func_fchown" = xyes 23346then : 23347 23348printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h 23349 23350else $as_nop 23351 case " $LIBOBJS " in 23352 *" fchown.$ac_objext "* ) ;; 23353 *) LIBOBJS="$LIBOBJS fchown.$ac_objext" 23354 ;; 23355esac 23356 23357fi 23358ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 23359if test "x$ac_cv_func_flock" = xyes 23360then : 23361 23362printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h 23363 23364else $as_nop 23365 case " $LIBOBJS " in 23366 *" flock.$ac_objext "* ) ;; 23367 *) LIBOBJS="$LIBOBJS flock.$ac_objext" 23368 ;; 23369esac 23370 23371fi 23372ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 23373if test "x$ac_cv_func_fnmatch" = xyes 23374then : 23375 23376printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h 23377 23378else $as_nop 23379 case " $LIBOBJS " in 23380 *" fnmatch.$ac_objext "* ) ;; 23381 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 23382 ;; 23383esac 23384 23385fi 23386ac_fn_c_check_func "$LINENO" "freehostent" "ac_cv_func_freehostent" 23387if test "x$ac_cv_func_freehostent" = xyes 23388then : 23389 23390printf "%s\n" "#define HAVE_FREEHOSTENT 1" >>confdefs.h 23391 23392else $as_nop 23393 case " $LIBOBJS " in 23394 *" freehostent.$ac_objext "* ) ;; 23395 *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" 23396 ;; 23397esac 23398 23399fi 23400ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 23401if test "x$ac_cv_func_getcwd" = xyes 23402then : 23403 23404printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h 23405 23406else $as_nop 23407 case " $LIBOBJS " in 23408 *" getcwd.$ac_objext "* ) ;; 23409 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 23410 ;; 23411esac 23412 23413fi 23414ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 23415if test "x$ac_cv_func_getdtablesize" = xyes 23416then : 23417 23418printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h 23419 23420else $as_nop 23421 case " $LIBOBJS " in 23422 *" getdtablesize.$ac_objext "* ) ;; 23423 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" 23424 ;; 23425esac 23426 23427fi 23428ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" 23429if test "x$ac_cv_func_getegid" = xyes 23430then : 23431 23432printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h 23433 23434else $as_nop 23435 case " $LIBOBJS " in 23436 *" getegid.$ac_objext "* ) ;; 23437 *) LIBOBJS="$LIBOBJS getegid.$ac_objext" 23438 ;; 23439esac 23440 23441fi 23442ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 23443if test "x$ac_cv_func_geteuid" = xyes 23444then : 23445 23446printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 23447 23448else $as_nop 23449 case " $LIBOBJS " in 23450 *" geteuid.$ac_objext "* ) ;; 23451 *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" 23452 ;; 23453esac 23454 23455fi 23456ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid" 23457if test "x$ac_cv_func_getgid" = xyes 23458then : 23459 23460printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h 23461 23462else $as_nop 23463 case " $LIBOBJS " in 23464 *" getgid.$ac_objext "* ) ;; 23465 *) LIBOBJS="$LIBOBJS getgid.$ac_objext" 23466 ;; 23467esac 23468 23469fi 23470ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 23471if test "x$ac_cv_func_gethostname" = xyes 23472then : 23473 23474printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 23475 23476else $as_nop 23477 case " $LIBOBJS " in 23478 *" gethostname.$ac_objext "* ) ;; 23479 *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" 23480 ;; 23481esac 23482 23483fi 23484ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 23485if test "x$ac_cv_func_getifaddrs" = xyes 23486then : 23487 23488printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 23489 23490else $as_nop 23491 case " $LIBOBJS " in 23492 *" getifaddrs.$ac_objext "* ) ;; 23493 *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" 23494 ;; 23495esac 23496 23497fi 23498ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr" 23499if test "x$ac_cv_func_getipnodebyaddr" = xyes 23500then : 23501 23502printf "%s\n" "#define HAVE_GETIPNODEBYADDR 1" >>confdefs.h 23503 23504else $as_nop 23505 case " $LIBOBJS " in 23506 *" getipnodebyaddr.$ac_objext "* ) ;; 23507 *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" 23508 ;; 23509esac 23510 23511fi 23512ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname" 23513if test "x$ac_cv_func_getipnodebyname" = xyes 23514then : 23515 23516printf "%s\n" "#define HAVE_GETIPNODEBYNAME 1" >>confdefs.h 23517 23518else $as_nop 23519 case " $LIBOBJS " in 23520 *" getipnodebyname.$ac_objext "* ) ;; 23521 *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" 23522 ;; 23523esac 23524 23525fi 23526ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 23527if test "x$ac_cv_func_getopt" = xyes 23528then : 23529 23530printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h 23531 23532else $as_nop 23533 case " $LIBOBJS " in 23534 *" getopt.$ac_objext "* ) ;; 23535 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 23536 ;; 23537esac 23538 23539fi 23540ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 23541if test "x$ac_cv_func_gettimeofday" = xyes 23542then : 23543 23544printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 23545 23546else $as_nop 23547 case " $LIBOBJS " in 23548 *" gettimeofday.$ac_objext "* ) ;; 23549 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 23550 ;; 23551esac 23552 23553fi 23554ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 23555if test "x$ac_cv_func_getuid" = xyes 23556then : 23557 23558printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 23559 23560else $as_nop 23561 case " $LIBOBJS " in 23562 *" getuid.$ac_objext "* ) ;; 23563 *) LIBOBJS="$LIBOBJS getuid.$ac_objext" 23564 ;; 23565esac 23566 23567fi 23568ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell" 23569if test "x$ac_cv_func_getusershell" = xyes 23570then : 23571 23572printf "%s\n" "#define HAVE_GETUSERSHELL 1" >>confdefs.h 23573 23574else $as_nop 23575 case " $LIBOBJS " in 23576 *" getusershell.$ac_objext "* ) ;; 23577 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" 23578 ;; 23579esac 23580 23581fi 23582ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 23583if test "x$ac_cv_func_initgroups" = xyes 23584then : 23585 23586printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 23587 23588else $as_nop 23589 case " $LIBOBJS " in 23590 *" initgroups.$ac_objext "* ) ;; 23591 *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" 23592 ;; 23593esac 23594 23595fi 23596ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr" 23597if test "x$ac_cv_func_innetgr" = xyes 23598then : 23599 23600printf "%s\n" "#define HAVE_INNETGR 1" >>confdefs.h 23601 23602else $as_nop 23603 case " $LIBOBJS " in 23604 *" innetgr.$ac_objext "* ) ;; 23605 *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" 23606 ;; 23607esac 23608 23609fi 23610ac_fn_c_check_func "$LINENO" "iruserok" "ac_cv_func_iruserok" 23611if test "x$ac_cv_func_iruserok" = xyes 23612then : 23613 23614printf "%s\n" "#define HAVE_IRUSEROK 1" >>confdefs.h 23615 23616else $as_nop 23617 case " $LIBOBJS " in 23618 *" iruserok.$ac_objext "* ) ;; 23619 *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" 23620 ;; 23621esac 23622 23623fi 23624ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 23625if test "x$ac_cv_func_localtime_r" = xyes 23626then : 23627 23628printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 23629 23630else $as_nop 23631 case " $LIBOBJS " in 23632 *" localtime_r.$ac_objext "* ) ;; 23633 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 23634 ;; 23635esac 23636 23637fi 23638ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" 23639if test "x$ac_cv_func_lstat" = xyes 23640then : 23641 23642printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h 23643 23644else $as_nop 23645 case " $LIBOBJS " in 23646 *" lstat.$ac_objext "* ) ;; 23647 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 23648 ;; 23649esac 23650 23651fi 23652ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 23653if test "x$ac_cv_func_memmove" = xyes 23654then : 23655 23656printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 23657 23658else $as_nop 23659 case " $LIBOBJS " in 23660 *" memmove.$ac_objext "* ) ;; 23661 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 23662 ;; 23663esac 23664 23665fi 23666ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s" 23667if test "x$ac_cv_func_memset_s" = xyes 23668then : 23669 23670printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h 23671 23672else $as_nop 23673 case " $LIBOBJS " in 23674 *" memset_s.$ac_objext "* ) ;; 23675 *) LIBOBJS="$LIBOBJS memset_s.$ac_objext" 23676 ;; 23677esac 23678 23679fi 23680ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 23681if test "x$ac_cv_func_mkstemp" = xyes 23682then : 23683 23684printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 23685 23686else $as_nop 23687 case " $LIBOBJS " in 23688 *" mkstemp.$ac_objext "* ) ;; 23689 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 23690 ;; 23691esac 23692 23693fi 23694ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 23695if test "x$ac_cv_func_putenv" = xyes 23696then : 23697 23698printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h 23699 23700else $as_nop 23701 case " $LIBOBJS " in 23702 *" putenv.$ac_objext "* ) ;; 23703 *) LIBOBJS="$LIBOBJS putenv.$ac_objext" 23704 ;; 23705esac 23706 23707fi 23708ac_fn_c_check_func "$LINENO" "rcmd" "ac_cv_func_rcmd" 23709if test "x$ac_cv_func_rcmd" = xyes 23710then : 23711 23712printf "%s\n" "#define HAVE_RCMD 1" >>confdefs.h 23713 23714else $as_nop 23715 case " $LIBOBJS " in 23716 *" rcmd.$ac_objext "* ) ;; 23717 *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" 23718 ;; 23719esac 23720 23721fi 23722ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv" 23723if test "x$ac_cv_func_readv" = xyes 23724then : 23725 23726printf "%s\n" "#define HAVE_READV 1" >>confdefs.h 23727 23728else $as_nop 23729 case " $LIBOBJS " in 23730 *" readv.$ac_objext "* ) ;; 23731 *) LIBOBJS="$LIBOBJS readv.$ac_objext" 23732 ;; 23733esac 23734 23735fi 23736ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 23737if test "x$ac_cv_func_recvmsg" = xyes 23738then : 23739 23740printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h 23741 23742else $as_nop 23743 case " $LIBOBJS " in 23744 *" recvmsg.$ac_objext "* ) ;; 23745 *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" 23746 ;; 23747esac 23748 23749fi 23750ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 23751if test "x$ac_cv_func_sendmsg" = xyes 23752then : 23753 23754printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 23755 23756else $as_nop 23757 case " $LIBOBJS " in 23758 *" sendmsg.$ac_objext "* ) ;; 23759 *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" 23760 ;; 23761esac 23762 23763fi 23764ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" 23765if test "x$ac_cv_func_setegid" = xyes 23766then : 23767 23768printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h 23769 23770else $as_nop 23771 case " $LIBOBJS " in 23772 *" setegid.$ac_objext "* ) ;; 23773 *) LIBOBJS="$LIBOBJS setegid.$ac_objext" 23774 ;; 23775esac 23776 23777fi 23778ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 23779if test "x$ac_cv_func_setenv" = xyes 23780then : 23781 23782printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h 23783 23784else $as_nop 23785 case " $LIBOBJS " in 23786 *" setenv.$ac_objext "* ) ;; 23787 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 23788 ;; 23789esac 23790 23791fi 23792ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 23793if test "x$ac_cv_func_seteuid" = xyes 23794then : 23795 23796printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 23797 23798else $as_nop 23799 case " $LIBOBJS " in 23800 *" seteuid.$ac_objext "* ) ;; 23801 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" 23802 ;; 23803esac 23804 23805fi 23806ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 23807if test "x$ac_cv_func_strcasecmp" = xyes 23808then : 23809 23810printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 23811 23812else $as_nop 23813 case " $LIBOBJS " in 23814 *" strcasecmp.$ac_objext "* ) ;; 23815 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 23816 ;; 23817esac 23818 23819fi 23820ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 23821if test "x$ac_cv_func_strdup" = xyes 23822then : 23823 23824printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 23825 23826else $as_nop 23827 case " $LIBOBJS " in 23828 *" strdup.$ac_objext "* ) ;; 23829 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 23830 ;; 23831esac 23832 23833fi 23834ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 23835if test "x$ac_cv_func_strerror" = xyes 23836then : 23837 23838printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h 23839 23840else $as_nop 23841 case " $LIBOBJS " in 23842 *" strerror.$ac_objext "* ) ;; 23843 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 23844 ;; 23845esac 23846 23847fi 23848ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 23849if test "x$ac_cv_func_strftime" = xyes 23850then : 23851 23852printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 23853 23854else $as_nop 23855 case " $LIBOBJS " in 23856 *" strftime.$ac_objext "* ) ;; 23857 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" 23858 ;; 23859esac 23860 23861fi 23862ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 23863if test "x$ac_cv_func_strlcat" = xyes 23864then : 23865 23866printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 23867 23868else $as_nop 23869 case " $LIBOBJS " in 23870 *" strlcat.$ac_objext "* ) ;; 23871 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 23872 ;; 23873esac 23874 23875fi 23876ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 23877if test "x$ac_cv_func_strlcpy" = xyes 23878then : 23879 23880printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 23881 23882else $as_nop 23883 case " $LIBOBJS " in 23884 *" strlcpy.$ac_objext "* ) ;; 23885 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 23886 ;; 23887esac 23888 23889fi 23890ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr" 23891if test "x$ac_cv_func_strlwr" = xyes 23892then : 23893 23894printf "%s\n" "#define HAVE_STRLWR 1" >>confdefs.h 23895 23896else $as_nop 23897 case " $LIBOBJS " in 23898 *" strlwr.$ac_objext "* ) ;; 23899 *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" 23900 ;; 23901esac 23902 23903fi 23904ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 23905if test "x$ac_cv_func_strncasecmp" = xyes 23906then : 23907 23908printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 23909 23910else $as_nop 23911 case " $LIBOBJS " in 23912 *" strncasecmp.$ac_objext "* ) ;; 23913 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 23914 ;; 23915esac 23916 23917fi 23918ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 23919if test "x$ac_cv_func_strndup" = xyes 23920then : 23921 23922printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 23923 23924else $as_nop 23925 case " $LIBOBJS " in 23926 *" strndup.$ac_objext "* ) ;; 23927 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 23928 ;; 23929esac 23930 23931fi 23932ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 23933if test "x$ac_cv_func_strnlen" = xyes 23934then : 23935 23936printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 23937 23938else $as_nop 23939 case " $LIBOBJS " in 23940 *" strnlen.$ac_objext "* ) ;; 23941 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 23942 ;; 23943esac 23944 23945fi 23946ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 23947if test "x$ac_cv_func_strptime" = xyes 23948then : 23949 23950printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 23951 23952else $as_nop 23953 case " $LIBOBJS " in 23954 *" strptime.$ac_objext "* ) ;; 23955 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 23956 ;; 23957esac 23958 23959fi 23960ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 23961if test "x$ac_cv_func_strsep" = xyes 23962then : 23963 23964printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 23965 23966else $as_nop 23967 case " $LIBOBJS " in 23968 *" strsep.$ac_objext "* ) ;; 23969 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 23970 ;; 23971esac 23972 23973fi 23974ac_fn_c_check_func "$LINENO" "strsep_copy" "ac_cv_func_strsep_copy" 23975if test "x$ac_cv_func_strsep_copy" = xyes 23976then : 23977 23978printf "%s\n" "#define HAVE_STRSEP_COPY 1" >>confdefs.h 23979 23980else $as_nop 23981 case " $LIBOBJS " in 23982 *" strsep_copy.$ac_objext "* ) ;; 23983 *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" 23984 ;; 23985esac 23986 23987fi 23988ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 23989if test "x$ac_cv_func_strtok_r" = xyes 23990then : 23991 23992printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h 23993 23994else $as_nop 23995 case " $LIBOBJS " in 23996 *" strtok_r.$ac_objext "* ) ;; 23997 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 23998 ;; 23999esac 24000 24001fi 24002ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 24003if test "x$ac_cv_func_strtoll" = xyes 24004then : 24005 24006printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 24007 24008else $as_nop 24009 case " $LIBOBJS " in 24010 *" strtoll.$ac_objext "* ) ;; 24011 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" 24012 ;; 24013esac 24014 24015fi 24016ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 24017if test "x$ac_cv_func_strtoull" = xyes 24018then : 24019 24020printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h 24021 24022else $as_nop 24023 case " $LIBOBJS " in 24024 *" strtoull.$ac_objext "* ) ;; 24025 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 24026 ;; 24027esac 24028 24029fi 24030ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr" 24031if test "x$ac_cv_func_strupr" = xyes 24032then : 24033 24034printf "%s\n" "#define HAVE_STRUPR 1" >>confdefs.h 24035 24036else $as_nop 24037 case " $LIBOBJS " in 24038 *" strupr.$ac_objext "* ) ;; 24039 *) LIBOBJS="$LIBOBJS strupr.$ac_objext" 24040 ;; 24041esac 24042 24043fi 24044ac_fn_c_check_func "$LINENO" "swab" "ac_cv_func_swab" 24045if test "x$ac_cv_func_swab" = xyes 24046then : 24047 24048printf "%s\n" "#define HAVE_SWAB 1" >>confdefs.h 24049 24050else $as_nop 24051 case " $LIBOBJS " in 24052 *" swab.$ac_objext "* ) ;; 24053 *) LIBOBJS="$LIBOBJS swab.$ac_objext" 24054 ;; 24055esac 24056 24057fi 24058ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 24059if test "x$ac_cv_func_tsearch" = xyes 24060then : 24061 24062printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h 24063 24064else $as_nop 24065 case " $LIBOBJS " in 24066 *" tsearch.$ac_objext "* ) ;; 24067 *) LIBOBJS="$LIBOBJS tsearch.$ac_objext" 24068 ;; 24069esac 24070 24071fi 24072ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 24073if test "x$ac_cv_func_timegm" = xyes 24074then : 24075 24076printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h 24077 24078else $as_nop 24079 case " $LIBOBJS " in 24080 *" timegm.$ac_objext "* ) ;; 24081 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 24082 ;; 24083esac 24084 24085fi 24086ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 24087if test "x$ac_cv_func_unsetenv" = xyes 24088then : 24089 24090printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h 24091 24092else $as_nop 24093 case " $LIBOBJS " in 24094 *" unsetenv.$ac_objext "* ) ;; 24095 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 24096 ;; 24097esac 24098 24099fi 24100ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr" 24101if test "x$ac_cv_func_verr" = xyes 24102then : 24103 24104printf "%s\n" "#define HAVE_VERR 1" >>confdefs.h 24105 24106else $as_nop 24107 case " $LIBOBJS " in 24108 *" verr.$ac_objext "* ) ;; 24109 *) LIBOBJS="$LIBOBJS verr.$ac_objext" 24110 ;; 24111esac 24112 24113fi 24114ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx" 24115if test "x$ac_cv_func_verrx" = xyes 24116then : 24117 24118printf "%s\n" "#define HAVE_VERRX 1" >>confdefs.h 24119 24120else $as_nop 24121 case " $LIBOBJS " in 24122 *" verrx.$ac_objext "* ) ;; 24123 *) LIBOBJS="$LIBOBJS verrx.$ac_objext" 24124 ;; 24125esac 24126 24127fi 24128ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" 24129if test "x$ac_cv_func_vsyslog" = xyes 24130then : 24131 24132printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h 24133 24134else $as_nop 24135 case " $LIBOBJS " in 24136 *" vsyslog.$ac_objext "* ) ;; 24137 *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" 24138 ;; 24139esac 24140 24141fi 24142ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn" 24143if test "x$ac_cv_func_vwarn" = xyes 24144then : 24145 24146printf "%s\n" "#define HAVE_VWARN 1" >>confdefs.h 24147 24148else $as_nop 24149 case " $LIBOBJS " in 24150 *" vwarn.$ac_objext "* ) ;; 24151 *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" 24152 ;; 24153esac 24154 24155fi 24156ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx" 24157if test "x$ac_cv_func_vwarnx" = xyes 24158then : 24159 24160printf "%s\n" "#define HAVE_VWARNX 1" >>confdefs.h 24161 24162else $as_nop 24163 case " $LIBOBJS " in 24164 *" vwarnx.$ac_objext "* ) ;; 24165 *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" 24166 ;; 24167esac 24168 24169fi 24170ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn" 24171if test "x$ac_cv_func_warn" = xyes 24172then : 24173 24174printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h 24175 24176else $as_nop 24177 case " $LIBOBJS " in 24178 *" warn.$ac_objext "* ) ;; 24179 *) LIBOBJS="$LIBOBJS warn.$ac_objext" 24180 ;; 24181esac 24182 24183fi 24184ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx" 24185if test "x$ac_cv_func_warnx" = xyes 24186then : 24187 24188printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h 24189 24190else $as_nop 24191 case " $LIBOBJS " in 24192 *" warnx.$ac_objext "* ) ;; 24193 *) LIBOBJS="$LIBOBJS warnx.$ac_objext" 24194 ;; 24195esac 24196 24197fi 24198ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 24199if test "x$ac_cv_func_writev" = xyes 24200then : 24201 24202printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 24203 24204else $as_nop 24205 case " $LIBOBJS " in 24206 *" writev.$ac_objext "* ) ;; 24207 *) LIBOBJS="$LIBOBJS writev.$ac_objext" 24208 ;; 24209esac 24210 24211fi 24212 24213 24214 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then 24215 have_fnmatch_h_TRUE= 24216 have_fnmatch_h_FALSE='#' 24217else 24218 have_fnmatch_h_TRUE='#' 24219 have_fnmatch_h_FALSE= 24220fi 24221 24222 24223 24224if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then 24225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strndup needs a prototype" >&5 24226printf %s "checking if strndup needs a prototype... " >&6; } 24227if test ${ac_cv_func_strndup_noproto+y} 24228then : 24229 printf %s "(cached) " >&6 24230else $as_nop 24231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24232/* end confdefs.h. */ 24233#include <string.h> 24234struct foo { int foo; } xx; 24235extern int strndup (struct foo*); 24236int 24237main (void) 24238{ 24239strndup(&xx) 24240 ; 24241 return 0; 24242} 24243_ACEOF 24244if ac_fn_c_try_compile "$LINENO" 24245then : 24246 eval "ac_cv_func_strndup_noproto=yes" 24247else $as_nop 24248 eval "ac_cv_func_strndup_noproto=no" 24249fi 24250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24251fi 24252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strndup_noproto" >&5 24253printf "%s\n" "$ac_cv_func_strndup_noproto" >&6; } 24254if test "$ac_cv_func_strndup_noproto" = yes; then 24255 24256printf "%s\n" "#define NEED_STRNDUP_PROTO 1" >>confdefs.h 24257 24258fi 24259fi 24260 24261if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 24262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strsep needs a prototype" >&5 24263printf %s "checking if strsep needs a prototype... " >&6; } 24264if test ${ac_cv_func_strsep_noproto+y} 24265then : 24266 printf %s "(cached) " >&6 24267else $as_nop 24268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24269/* end confdefs.h. */ 24270#include <string.h> 24271struct foo { int foo; } xx; 24272extern int strsep (struct foo*); 24273int 24274main (void) 24275{ 24276strsep(&xx) 24277 ; 24278 return 0; 24279} 24280_ACEOF 24281if ac_fn_c_try_compile "$LINENO" 24282then : 24283 eval "ac_cv_func_strsep_noproto=yes" 24284else $as_nop 24285 eval "ac_cv_func_strsep_noproto=no" 24286fi 24287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24288fi 24289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsep_noproto" >&5 24290printf "%s\n" "$ac_cv_func_strsep_noproto" >&6; } 24291if test "$ac_cv_func_strsep_noproto" = yes; then 24292 24293printf "%s\n" "#define NEED_STRSEP_PROTO 1" >>confdefs.h 24294 24295fi 24296fi 24297 24298if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 24299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs a prototype" >&5 24300printf %s "checking if strtok_r needs a prototype... " >&6; } 24301if test ${ac_cv_func_strtok_r_noproto+y} 24302then : 24303 printf %s "(cached) " >&6 24304else $as_nop 24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24306/* end confdefs.h. */ 24307#include <string.h> 24308struct foo { int foo; } xx; 24309extern int strtok_r (struct foo*); 24310int 24311main (void) 24312{ 24313strtok_r(&xx) 24314 ; 24315 return 0; 24316} 24317_ACEOF 24318if ac_fn_c_try_compile "$LINENO" 24319then : 24320 eval "ac_cv_func_strtok_r_noproto=yes" 24321else $as_nop 24322 eval "ac_cv_func_strtok_r_noproto=no" 24323fi 24324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24325fi 24326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtok_r_noproto" >&5 24327printf "%s\n" "$ac_cv_func_strtok_r_noproto" >&6; } 24328if test "$ac_cv_func_strtok_r_noproto" = yes; then 24329 24330printf "%s\n" "#define NEED_STRTOK_R_PROTO 1" >>confdefs.h 24331 24332fi 24333fi 24334 24335 24336ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 24337if test "x$ac_cv_func_strtoll" = xyes 24338then : 24339 24340printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 24341 24342fi 24343 24344 24345ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 24346if test "x$ac_cv_func_strtoull" = xyes 24347then : 24348 24349printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h 24350 24351fi 24352 24353 24354 24355if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then 24356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strsvis needs a prototype" >&5 24357printf %s "checking if strsvis needs a prototype... " >&6; } 24358if test ${ac_cv_func_strsvis_noproto+y} 24359then : 24360 printf %s "(cached) " >&6 24361else $as_nop 24362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24363/* end confdefs.h. */ 24364#ifdef HAVE_VIS_H 24365#include <vis.h> 24366#endif 24367struct foo { int foo; } xx; 24368extern int strsvis (struct foo*); 24369int 24370main (void) 24371{ 24372strsvis(&xx) 24373 ; 24374 return 0; 24375} 24376_ACEOF 24377if ac_fn_c_try_compile "$LINENO" 24378then : 24379 eval "ac_cv_func_strsvis_noproto=yes" 24380else $as_nop 24381 eval "ac_cv_func_strsvis_noproto=no" 24382fi 24383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24384fi 24385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvis_noproto" >&5 24386printf "%s\n" "$ac_cv_func_strsvis_noproto" >&6; } 24387if test "$ac_cv_func_strsvis_noproto" = yes; then 24388 24389printf "%s\n" "#define NEED_STRSVIS_PROTO 1" >>confdefs.h 24390 24391fi 24392fi 24393 24394if test "$ac_cv_func_strsvisx+set" != set -o "$ac_cv_func_strsvisx" = yes; then 24395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strsvisx needs a prototype" >&5 24396printf %s "checking if strsvisx needs a prototype... " >&6; } 24397if test ${ac_cv_func_strsvisx_noproto+y} 24398then : 24399 printf %s "(cached) " >&6 24400else $as_nop 24401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24402/* end confdefs.h. */ 24403#ifdef HAVE_VIS_H 24404#include <vis.h> 24405#endif 24406struct foo { int foo; } xx; 24407extern int strsvisx (struct foo*); 24408int 24409main (void) 24410{ 24411strsvisx(&xx) 24412 ; 24413 return 0; 24414} 24415_ACEOF 24416if ac_fn_c_try_compile "$LINENO" 24417then : 24418 eval "ac_cv_func_strsvisx_noproto=yes" 24419else $as_nop 24420 eval "ac_cv_func_strsvisx_noproto=no" 24421fi 24422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24423fi 24424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvisx_noproto" >&5 24425printf "%s\n" "$ac_cv_func_strsvisx_noproto" >&6; } 24426if test "$ac_cv_func_strsvisx_noproto" = yes; then 24427 24428printf "%s\n" "#define NEED_STRSVISX_PROTO 1" >>confdefs.h 24429 24430fi 24431fi 24432 24433if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then 24434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strunvis needs a prototype" >&5 24435printf %s "checking if strunvis needs a prototype... " >&6; } 24436if test ${ac_cv_func_strunvis_noproto+y} 24437then : 24438 printf %s "(cached) " >&6 24439else $as_nop 24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24441/* end confdefs.h. */ 24442#ifdef HAVE_VIS_H 24443#include <vis.h> 24444#endif 24445struct foo { int foo; } xx; 24446extern int strunvis (struct foo*); 24447int 24448main (void) 24449{ 24450strunvis(&xx) 24451 ; 24452 return 0; 24453} 24454_ACEOF 24455if ac_fn_c_try_compile "$LINENO" 24456then : 24457 eval "ac_cv_func_strunvis_noproto=yes" 24458else $as_nop 24459 eval "ac_cv_func_strunvis_noproto=no" 24460fi 24461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24462fi 24463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strunvis_noproto" >&5 24464printf "%s\n" "$ac_cv_func_strunvis_noproto" >&6; } 24465if test "$ac_cv_func_strunvis_noproto" = yes; then 24466 24467printf "%s\n" "#define NEED_STRUNVIS_PROTO 1" >>confdefs.h 24468 24469fi 24470fi 24471 24472if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then 24473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strvis needs a prototype" >&5 24474printf %s "checking if strvis needs a prototype... " >&6; } 24475if test ${ac_cv_func_strvis_noproto+y} 24476then : 24477 printf %s "(cached) " >&6 24478else $as_nop 24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24480/* end confdefs.h. */ 24481#ifdef HAVE_VIS_H 24482#include <vis.h> 24483#endif 24484struct foo { int foo; } xx; 24485extern int strvis (struct foo*); 24486int 24487main (void) 24488{ 24489strvis(&xx) 24490 ; 24491 return 0; 24492} 24493_ACEOF 24494if ac_fn_c_try_compile "$LINENO" 24495then : 24496 eval "ac_cv_func_strvis_noproto=yes" 24497else $as_nop 24498 eval "ac_cv_func_strvis_noproto=no" 24499fi 24500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24501fi 24502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvis_noproto" >&5 24503printf "%s\n" "$ac_cv_func_strvis_noproto" >&6; } 24504if test "$ac_cv_func_strvis_noproto" = yes; then 24505 24506printf "%s\n" "#define NEED_STRVIS_PROTO 1" >>confdefs.h 24507 24508fi 24509fi 24510 24511if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then 24512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strvisx needs a prototype" >&5 24513printf %s "checking if strvisx needs a prototype... " >&6; } 24514if test ${ac_cv_func_strvisx_noproto+y} 24515then : 24516 printf %s "(cached) " >&6 24517else $as_nop 24518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24519/* end confdefs.h. */ 24520#ifdef HAVE_VIS_H 24521#include <vis.h> 24522#endif 24523struct foo { int foo; } xx; 24524extern int strvisx (struct foo*); 24525int 24526main (void) 24527{ 24528strvisx(&xx) 24529 ; 24530 return 0; 24531} 24532_ACEOF 24533if ac_fn_c_try_compile "$LINENO" 24534then : 24535 eval "ac_cv_func_strvisx_noproto=yes" 24536else $as_nop 24537 eval "ac_cv_func_strvisx_noproto=no" 24538fi 24539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24540fi 24541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvisx_noproto" >&5 24542printf "%s\n" "$ac_cv_func_strvisx_noproto" >&6; } 24543if test "$ac_cv_func_strvisx_noproto" = yes; then 24544 24545printf "%s\n" "#define NEED_STRVISX_PROTO 1" >>confdefs.h 24546 24547fi 24548fi 24549 24550if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then 24551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if svis needs a prototype" >&5 24552printf %s "checking if svis needs a prototype... " >&6; } 24553if test ${ac_cv_func_svis_noproto+y} 24554then : 24555 printf %s "(cached) " >&6 24556else $as_nop 24557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24558/* end confdefs.h. */ 24559#ifdef HAVE_VIS_H 24560#include <vis.h> 24561#endif 24562struct foo { int foo; } xx; 24563extern int svis (struct foo*); 24564int 24565main (void) 24566{ 24567svis(&xx) 24568 ; 24569 return 0; 24570} 24571_ACEOF 24572if ac_fn_c_try_compile "$LINENO" 24573then : 24574 eval "ac_cv_func_svis_noproto=yes" 24575else $as_nop 24576 eval "ac_cv_func_svis_noproto=no" 24577fi 24578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24579fi 24580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_svis_noproto" >&5 24581printf "%s\n" "$ac_cv_func_svis_noproto" >&6; } 24582if test "$ac_cv_func_svis_noproto" = yes; then 24583 24584printf "%s\n" "#define NEED_SVIS_PROTO 1" >>confdefs.h 24585 24586fi 24587fi 24588 24589if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then 24590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if unvis needs a prototype" >&5 24591printf %s "checking if unvis needs a prototype... " >&6; } 24592if test ${ac_cv_func_unvis_noproto+y} 24593then : 24594 printf %s "(cached) " >&6 24595else $as_nop 24596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24597/* end confdefs.h. */ 24598#ifdef HAVE_VIS_H 24599#include <vis.h> 24600#endif 24601struct foo { int foo; } xx; 24602extern int unvis (struct foo*); 24603int 24604main (void) 24605{ 24606unvis(&xx) 24607 ; 24608 return 0; 24609} 24610_ACEOF 24611if ac_fn_c_try_compile "$LINENO" 24612then : 24613 eval "ac_cv_func_unvis_noproto=yes" 24614else $as_nop 24615 eval "ac_cv_func_unvis_noproto=no" 24616fi 24617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24618fi 24619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unvis_noproto" >&5 24620printf "%s\n" "$ac_cv_func_unvis_noproto" >&6; } 24621if test "$ac_cv_func_unvis_noproto" = yes; then 24622 24623printf "%s\n" "#define NEED_UNVIS_PROTO 1" >>confdefs.h 24624 24625fi 24626fi 24627 24628if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then 24629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vis needs a prototype" >&5 24630printf %s "checking if vis needs a prototype... " >&6; } 24631if test ${ac_cv_func_vis_noproto+y} 24632then : 24633 printf %s "(cached) " >&6 24634else $as_nop 24635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24636/* end confdefs.h. */ 24637#ifdef HAVE_VIS_H 24638#include <vis.h> 24639#endif 24640struct foo { int foo; } xx; 24641extern int vis (struct foo*); 24642int 24643main (void) 24644{ 24645vis(&xx) 24646 ; 24647 return 0; 24648} 24649_ACEOF 24650if ac_fn_c_try_compile "$LINENO" 24651then : 24652 eval "ac_cv_func_vis_noproto=yes" 24653else $as_nop 24654 eval "ac_cv_func_vis_noproto=no" 24655fi 24656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24657fi 24658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vis_noproto" >&5 24659printf "%s\n" "$ac_cv_func_vis_noproto" >&6; } 24660if test "$ac_cv_func_vis_noproto" = yes; then 24661 24662printf "%s\n" "#define NEED_VIS_PROTO 1" >>confdefs.h 24663 24664fi 24665fi 24666 24667 24668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking for dirfd" >&5 24669printf %s "checking checking for dirfd... " >&6; } 24670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24671/* end confdefs.h. */ 24672#include <sys/types.h> 24673#ifdef HAVE_DIRENT_H 24674#include <dirent.h> 24675#endif 24676 24677int 24678main (void) 24679{ 24680DIR *d = 0; dirfd(d); 24681 ; 24682 return 0; 24683} 24684_ACEOF 24685if ac_fn_c_try_link "$LINENO" 24686then : 24687 ac_rk_have_dirfd=yes 24688else $as_nop 24689 ac_rk_have_dirfd=no 24690fi 24691rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24692 conftest$ac_exeext conftest.$ac_ext 24693if test "$ac_rk_have_dirfd" = "yes" ; then 24694 24695printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h 24696 24697fi 24698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have_dirfd" >&5 24699printf "%s\n" "$ac_rk_have_dirfd" >&6; } 24700 24701 24702 24703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dd_fd in DIR" >&5 24704printf %s "checking for dd_fd in DIR... " >&6; } 24705if test ${ac_cv_type_dir_dd_fd+y} 24706then : 24707 printf %s "(cached) " >&6 24708else $as_nop 24709 24710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24711/* end confdefs.h. */ 24712#include <sys/types.h> 24713#ifdef HAVE_DIRENT_H 24714#include <dirent.h> 24715#endif 24716int 24717main (void) 24718{ 24719DIR x; memset(&x, 0, sizeof(x)); x.dd_fd 24720 ; 24721 return 0; 24722} 24723_ACEOF 24724if ac_fn_c_try_compile "$LINENO" 24725then : 24726 ac_cv_type_dir_dd_fd=yes 24727else $as_nop 24728 ac_cv_type_dir_dd_fd=no 24729fi 24730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24731 24732fi 24733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_dir_dd_fd" >&5 24734printf "%s\n" "$ac_cv_type_dir_dd_fd" >&6; } 24735if test "$ac_cv_type_dir_dd_fd" = yes; then 24736 24737 24738printf "%s\n" "#define HAVE_DIR_DD_FD 1" >>confdefs.h 24739 24740 24741fi 24742 24743 24744 24745 24746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 24747printf %s "checking for inet_aton... " >&6; } 24748if test ${ac_cv_func_inet_aton+y} 24749then : 24750 printf %s "(cached) " >&6 24751else $as_nop 24752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24753/* end confdefs.h. */ 24754#ifdef HAVE_SYS_TYPES_H 24755#include <sys/types.h> 24756#endif 24757#ifdef HAVE_SYS_SOCKET_H 24758#include <sys/socket.h> 24759#endif 24760#ifdef HAVE_NETINET_IN_H 24761#include <netinet/in.h> 24762#endif 24763#ifdef HAVE_ARPA_INET_H 24764#include <arpa/inet.h> 24765#endif 24766int 24767main (void) 24768{ 24769 24770/* The GNU C library defines this for functions which it implements 24771 to always fail with ENOSYS. Some functions are actually named 24772 something starting with __ and the normal name is an alias. */ 24773#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 24774choke me 24775#else 24776inet_aton(0,0); 24777#endif 24778 24779 ; 24780 return 0; 24781} 24782_ACEOF 24783if ac_fn_c_try_link "$LINENO" 24784then : 24785 eval "ac_cv_func_inet_aton=yes" 24786else $as_nop 24787 eval "ac_cv_func_inet_aton=no" 24788fi 24789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24790 conftest$ac_exeext conftest.$ac_ext 24791fi 24792 24793if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then 24794 24795printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 24796 24797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24798printf "%s\n" "yes" >&6; } 24799else 24800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24801printf "%s\n" "no" >&6; } 24802 case " $LIBOBJS " in 24803 *" inet_aton.$ac_objext "* ) ;; 24804 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 24805 ;; 24806esac 24807 24808fi 24809 24810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5 24811printf %s "checking for inet_ntop... " >&6; } 24812if test ${ac_cv_func_inet_ntop+y} 24813then : 24814 printf %s "(cached) " >&6 24815else $as_nop 24816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24817/* end confdefs.h. */ 24818#ifdef HAVE_SYS_TYPES_H 24819#include <sys/types.h> 24820#endif 24821#ifdef HAVE_SYS_SOCKET_H 24822#include <sys/socket.h> 24823#endif 24824#ifdef HAVE_NETINET_IN_H 24825#include <netinet/in.h> 24826#endif 24827#ifdef HAVE_ARPA_INET_H 24828#include <arpa/inet.h> 24829#endif 24830int 24831main (void) 24832{ 24833 24834/* The GNU C library defines this for functions which it implements 24835 to always fail with ENOSYS. Some functions are actually named 24836 something starting with __ and the normal name is an alias. */ 24837#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 24838choke me 24839#else 24840inet_ntop(0, 0, 0, 0); 24841#endif 24842 24843 ; 24844 return 0; 24845} 24846_ACEOF 24847if ac_fn_c_try_link "$LINENO" 24848then : 24849 eval "ac_cv_func_inet_ntop=yes" 24850else $as_nop 24851 eval "ac_cv_func_inet_ntop=no" 24852fi 24853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24854 conftest$ac_exeext conftest.$ac_ext 24855fi 24856 24857if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then 24858 24859printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 24860 24861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24862printf "%s\n" "yes" >&6; } 24863else 24864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24865printf "%s\n" "no" >&6; } 24866 case " $LIBOBJS " in 24867 *" inet_ntop.$ac_objext "* ) ;; 24868 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 24869 ;; 24870esac 24871 24872fi 24873 24874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 24875printf %s "checking for inet_pton... " >&6; } 24876if test ${ac_cv_func_inet_pton+y} 24877then : 24878 printf %s "(cached) " >&6 24879else $as_nop 24880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24881/* end confdefs.h. */ 24882#ifdef HAVE_SYS_TYPES_H 24883#include <sys/types.h> 24884#endif 24885#ifdef HAVE_SYS_SOCKET_H 24886#include <sys/socket.h> 24887#endif 24888#ifdef HAVE_NETINET_IN_H 24889#include <netinet/in.h> 24890#endif 24891#ifdef HAVE_ARPA_INET_H 24892#include <arpa/inet.h> 24893#endif 24894int 24895main (void) 24896{ 24897 24898/* The GNU C library defines this for functions which it implements 24899 to always fail with ENOSYS. Some functions are actually named 24900 something starting with __ and the normal name is an alias. */ 24901#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 24902choke me 24903#else 24904inet_pton(0,0,0); 24905#endif 24906 24907 ; 24908 return 0; 24909} 24910_ACEOF 24911if ac_fn_c_try_link "$LINENO" 24912then : 24913 eval "ac_cv_func_inet_pton=yes" 24914else $as_nop 24915 eval "ac_cv_func_inet_pton=no" 24916fi 24917rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24918 conftest$ac_exeext conftest.$ac_ext 24919fi 24920 24921if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then 24922 24923printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 24924 24925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24926printf "%s\n" "yes" >&6; } 24927else 24928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24929printf "%s\n" "no" >&6; } 24930 case " $LIBOBJS " in 24931 *" inet_pton.$ac_objext "* ) ;; 24932 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 24933 ;; 24934esac 24935 24936fi 24937 24938 24939 24940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5 24941printf %s "checking for sa_len in struct sockaddr... " >&6; } 24942if test ${ac_cv_type_struct_sockaddr_sa_len+y} 24943then : 24944 printf %s "(cached) " >&6 24945else $as_nop 24946 24947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24948/* end confdefs.h. */ 24949#include <sys/types.h> 24950#include <sys/socket.h> 24951int 24952main (void) 24953{ 24954struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len 24955 ; 24956 return 0; 24957} 24958_ACEOF 24959if ac_fn_c_try_compile "$LINENO" 24960then : 24961 ac_cv_type_struct_sockaddr_sa_len=yes 24962else $as_nop 24963 ac_cv_type_struct_sockaddr_sa_len=no 24964fi 24965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24966 24967fi 24968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 24969printf "%s\n" "$ac_cv_type_struct_sockaddr_sa_len" >&6; } 24970if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 24971 24972 24973printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h 24974 24975 24976fi 24977 24978 24979 24980#if test "$ac_cv_func_getaddrinfo" = "yes"; then 24981# rk_BROKEN_GETADDRINFO 24982# if test "$ac_cv_func_getaddrinfo_numserv" = no; then 24983# AC_LIBOBJ(getaddrinfo) 24984# AC_LIBOBJ(freeaddrinfo) 24985# fi 24986#fi 24987 24988 24989if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 24990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setenv needs a prototype" >&5 24991printf %s "checking if setenv needs a prototype... " >&6; } 24992if test ${ac_cv_func_setenv_noproto+y} 24993then : 24994 printf %s "(cached) " >&6 24995else $as_nop 24996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24997/* end confdefs.h. */ 24998#include <stdlib.h> 24999struct foo { int foo; } xx; 25000extern int setenv (struct foo*); 25001int 25002main (void) 25003{ 25004setenv(&xx) 25005 ; 25006 return 0; 25007} 25008_ACEOF 25009if ac_fn_c_try_compile "$LINENO" 25010then : 25011 eval "ac_cv_func_setenv_noproto=yes" 25012else $as_nop 25013 eval "ac_cv_func_setenv_noproto=no" 25014fi 25015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25016fi 25017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setenv_noproto" >&5 25018printf "%s\n" "$ac_cv_func_setenv_noproto" >&6; } 25019if test "$ac_cv_func_setenv_noproto" = yes; then 25020 25021printf "%s\n" "#define NEED_SETENV_PROTO 1" >>confdefs.h 25022 25023fi 25024fi 25025 25026 25027if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 25028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if unsetenv needs a prototype" >&5 25029printf %s "checking if unsetenv needs a prototype... " >&6; } 25030if test ${ac_cv_func_unsetenv_noproto+y} 25031then : 25032 printf %s "(cached) " >&6 25033else $as_nop 25034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25035/* end confdefs.h. */ 25036#include <stdlib.h> 25037struct foo { int foo; } xx; 25038extern int unsetenv (struct foo*); 25039int 25040main (void) 25041{ 25042unsetenv(&xx) 25043 ; 25044 return 0; 25045} 25046_ACEOF 25047if ac_fn_c_try_compile "$LINENO" 25048then : 25049 eval "ac_cv_func_unsetenv_noproto=yes" 25050else $as_nop 25051 eval "ac_cv_func_unsetenv_noproto=no" 25052fi 25053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25054fi 25055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unsetenv_noproto" >&5 25056printf "%s\n" "$ac_cv_func_unsetenv_noproto" >&6; } 25057if test "$ac_cv_func_unsetenv_noproto" = yes; then 25058 25059printf "%s\n" "#define NEED_UNSETENV_PROTO 1" >>confdefs.h 25060 25061fi 25062fi 25063 25064 25065if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 25066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname needs a prototype" >&5 25067printf %s "checking if gethostname needs a prototype... " >&6; } 25068if test ${ac_cv_func_gethostname_noproto+y} 25069then : 25070 printf %s "(cached) " >&6 25071else $as_nop 25072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25073/* end confdefs.h. */ 25074#include <unistd.h> 25075struct foo { int foo; } xx; 25076extern int gethostname (struct foo*); 25077int 25078main (void) 25079{ 25080gethostname(&xx) 25081 ; 25082 return 0; 25083} 25084_ACEOF 25085if ac_fn_c_try_compile "$LINENO" 25086then : 25087 eval "ac_cv_func_gethostname_noproto=yes" 25088else $as_nop 25089 eval "ac_cv_func_gethostname_noproto=no" 25090fi 25091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25092fi 25093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostname_noproto" >&5 25094printf "%s\n" "$ac_cv_func_gethostname_noproto" >&6; } 25095if test "$ac_cv_func_gethostname_noproto" = yes; then 25096 25097printf "%s\n" "#define NEED_GETHOSTNAME_PROTO 1" >>confdefs.h 25098 25099fi 25100fi 25101 25102 25103if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 25104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mkstemp needs a prototype" >&5 25105printf %s "checking if mkstemp needs a prototype... " >&6; } 25106if test ${ac_cv_func_mkstemp_noproto+y} 25107then : 25108 printf %s "(cached) " >&6 25109else $as_nop 25110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25111/* end confdefs.h. */ 25112#include <unistd.h> 25113struct foo { int foo; } xx; 25114extern int mkstemp (struct foo*); 25115int 25116main (void) 25117{ 25118mkstemp(&xx) 25119 ; 25120 return 0; 25121} 25122_ACEOF 25123if ac_fn_c_try_compile "$LINENO" 25124then : 25125 eval "ac_cv_func_mkstemp_noproto=yes" 25126else $as_nop 25127 eval "ac_cv_func_mkstemp_noproto=no" 25128fi 25129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25130fi 25131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mkstemp_noproto" >&5 25132printf "%s\n" "$ac_cv_func_mkstemp_noproto" >&6; } 25133if test "$ac_cv_func_mkstemp_noproto" = yes; then 25134 25135printf "%s\n" "#define NEED_MKSTEMP_PROTO 1" >>confdefs.h 25136 25137fi 25138fi 25139 25140 25141if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 25142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getusershell needs a prototype" >&5 25143printf %s "checking if getusershell needs a prototype... " >&6; } 25144if test ${ac_cv_func_getusershell_noproto+y} 25145then : 25146 printf %s "(cached) " >&6 25147else $as_nop 25148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25149/* end confdefs.h. */ 25150#include <unistd.h> 25151struct foo { int foo; } xx; 25152extern int getusershell (struct foo*); 25153int 25154main (void) 25155{ 25156getusershell(&xx) 25157 ; 25158 return 0; 25159} 25160_ACEOF 25161if ac_fn_c_try_compile "$LINENO" 25162then : 25163 eval "ac_cv_func_getusershell_noproto=yes" 25164else $as_nop 25165 eval "ac_cv_func_getusershell_noproto=no" 25166fi 25167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25168fi 25169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getusershell_noproto" >&5 25170printf "%s\n" "$ac_cv_func_getusershell_noproto" >&6; } 25171if test "$ac_cv_func_getusershell_noproto" = yes; then 25172 25173printf "%s\n" "#define NEED_GETUSERSHELL_PROTO 1" >>confdefs.h 25174 25175fi 25176fi 25177 25178 25179if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then 25180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype" >&5 25181printf %s "checking if daemon needs a prototype... " >&6; } 25182if test ${ac_cv_func_daemon_noproto+y} 25183then : 25184 printf %s "(cached) " >&6 25185else $as_nop 25186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25187/* end confdefs.h. */ 25188#include <unistd.h> 25189struct foo { int foo; } xx; 25190extern int daemon (struct foo*); 25191int 25192main (void) 25193{ 25194daemon(&xx) 25195 ; 25196 return 0; 25197} 25198_ACEOF 25199if ac_fn_c_try_compile "$LINENO" 25200then : 25201 eval "ac_cv_func_daemon_noproto=yes" 25202else $as_nop 25203 eval "ac_cv_func_daemon_noproto=no" 25204fi 25205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25206fi 25207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_daemon_noproto" >&5 25208printf "%s\n" "$ac_cv_func_daemon_noproto" >&6; } 25209if test "$ac_cv_func_daemon_noproto" = yes; then 25210 25211printf "%s\n" "#define NEED_DAEMON_PROTO 1" >>confdefs.h 25212 25213fi 25214fi 25215 25216 25217if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then 25218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if iruserok needs a prototype" >&5 25219printf %s "checking if iruserok needs a prototype... " >&6; } 25220if test ${ac_cv_func_iruserok_noproto+y} 25221then : 25222 printf %s "(cached) " >&6 25223else $as_nop 25224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25225/* end confdefs.h. */ 25226 25227#ifdef HAVE_SYS_TYPES_H 25228#include <sys/types.h> 25229#endif 25230#ifdef HAVE_SYS_SOCKET_H 25231#include <sys/socket.h> 25232#endif 25233#ifdef HAVE_NETINET_IN_H 25234#include <netinet/in.h> 25235#endif 25236#ifdef HAVE_ARPA_INET_H 25237#include <arpa/inet.h> 25238#endif 25239#ifdef HAVE_NETDB_H 25240#include <netdb.h> 25241#endif 25242#ifdef HAVE_UNISTD_H 25243#include <unistd.h> 25244#endif 25245struct foo { int foo; } xx; 25246extern int iruserok (struct foo*); 25247int 25248main (void) 25249{ 25250iruserok(&xx) 25251 ; 25252 return 0; 25253} 25254_ACEOF 25255if ac_fn_c_try_compile "$LINENO" 25256then : 25257 eval "ac_cv_func_iruserok_noproto=yes" 25258else $as_nop 25259 eval "ac_cv_func_iruserok_noproto=no" 25260fi 25261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25262fi 25263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iruserok_noproto" >&5 25264printf "%s\n" "$ac_cv_func_iruserok_noproto" >&6; } 25265if test "$ac_cv_func_iruserok_noproto" = yes; then 25266 25267printf "%s\n" "#define NEED_IRUSEROK_PROTO 1" >>confdefs.h 25268 25269fi 25270fi 25271 25272 25273 25274if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 25275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_aton needs a prototype" >&5 25276printf %s "checking if inet_aton needs a prototype... " >&6; } 25277if test ${ac_cv_func_inet_aton_noproto+y} 25278then : 25279 printf %s "(cached) " >&6 25280else $as_nop 25281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25282/* end confdefs.h. */ 25283 25284#ifdef HAVE_SYS_TYPES_H 25285#include <sys/types.h> 25286#endif 25287#ifdef HAVE_SYS_SOCKET_H 25288#include <sys/socket.h> 25289#endif 25290#ifdef HAVE_NETINET_IN_H 25291#include <netinet/in.h> 25292#endif 25293#ifdef HAVE_ARPA_INET_H 25294#include <arpa/inet.h> 25295#endif 25296struct foo { int foo; } xx; 25297extern int inet_aton (struct foo*); 25298int 25299main (void) 25300{ 25301inet_aton(&xx) 25302 ; 25303 return 0; 25304} 25305_ACEOF 25306if ac_fn_c_try_compile "$LINENO" 25307then : 25308 eval "ac_cv_func_inet_aton_noproto=yes" 25309else $as_nop 25310 eval "ac_cv_func_inet_aton_noproto=no" 25311fi 25312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25313fi 25314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton_noproto" >&5 25315printf "%s\n" "$ac_cv_func_inet_aton_noproto" >&6; } 25316if test "$ac_cv_func_inet_aton_noproto" = yes; then 25317 25318printf "%s\n" "#define NEED_INET_ATON_PROTO 1" >>confdefs.h 25319 25320fi 25321fi 25322 25323 25324 25325 25326 25327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5 25328printf %s "checking for crypt... " >&6; } 25329if test ${ac_cv_funclib_crypt+y} 25330then : 25331 printf %s "(cached) " >&6 25332else $as_nop 25333 25334if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 25335 ac_save_LIBS="$LIBS" 25336 for ac_lib in "" crypt; do 25337 case "$ac_lib" in 25338 "") ;; 25339 yes) ac_lib="" ;; 25340 no) continue ;; 25341 -l*) ;; 25342 *) ac_lib="-l$ac_lib" ;; 25343 esac 25344 LIBS=" $ac_lib $ac_save_LIBS" 25345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25346/* end confdefs.h. */ 25347 25348int 25349main (void) 25350{ 25351crypt() 25352 ; 25353 return 0; 25354} 25355_ACEOF 25356if ac_fn_c_try_link "$LINENO" 25357then : 25358 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 25359fi 25360rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25361 conftest$ac_exeext conftest.$ac_ext 25362 done 25363 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 25364 LIBS="$ac_save_LIBS" 25365fi 25366 25367fi 25368 25369 25370eval "ac_res=\$ac_cv_funclib_crypt" 25371 25372if false; then 25373 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 25374if test "x$ac_cv_func_crypt" = xyes 25375then : 25376 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h 25377 25378fi 25379 25380fi 25381# crypt 25382eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25383eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25384eval "LIB_crypt=$ac_res" 25385 25386case "$ac_res" in 25387 yes) 25388 eval "ac_cv_func_crypt=yes" 25389 eval "LIB_crypt=" 25390 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 25391 25392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25393printf "%s\n" "yes" >&6; } 25394 ;; 25395 no) 25396 eval "ac_cv_func_crypt=no" 25397 eval "LIB_crypt=" 25398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25399printf "%s\n" "no" >&6; } 25400 ;; 25401 *) 25402 eval "ac_cv_func_crypt=yes" 25403 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 25404 25405 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 25406 25407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 25408printf "%s\n" "yes, in $ac_res" >&6; } 25409 ;; 25410esac 25411 25412 25413 25414 25415 25416 25417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compatible with system prototype" >&5 25418printf %s "checking if strerror_r is compatible with system prototype... " >&6; } 25419if test ${ac_cv_func_strerror_r_proto_compat+y} 25420then : 25421 printf %s "(cached) " >&6 25422else $as_nop 25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25424/* end confdefs.h. */ 25425 25426#include <stdio.h> 25427#include <string.h> 25428 25429int 25430main (void) 25431{ 25432int strerror_r(int, char *, size_t) 25433 ; 25434 return 0; 25435} 25436_ACEOF 25437if ac_fn_c_try_compile "$LINENO" 25438then : 25439 eval "ac_cv_func_strerror_r_proto_compat=yes" 25440else $as_nop 25441 eval "ac_cv_func_strerror_r_proto_compat=no" 25442fi 25443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25444fi 25445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_proto_compat" >&5 25446printf "%s\n" "$ac_cv_func_strerror_r_proto_compat" >&6; } 25447 25448if test "$ac_cv_func_strerror_r_proto_compat" = yes; then 25449 25450printf "%s\n" "#define STRERROR_R_PROTO_COMPATIBLE 1" >>confdefs.h 25451 25452fi 25453 25454 25455 25456ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 25457if test "x$ac_cv_func_strerror_r" = xyes 25458then : 25459 25460printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 25461 25462fi 25463 25464 25465 25466 25467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compatible with system prototype" >&5 25468printf %s "checking if gethostbyname is compatible with system prototype... " >&6; } 25469if test ${ac_cv_func_gethostbyname_proto_compat+y} 25470then : 25471 printf %s "(cached) " >&6 25472else $as_nop 25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25474/* end confdefs.h. */ 25475 25476#ifdef HAVE_SYS_TYPES_H 25477#include <sys/types.h> 25478#endif 25479#ifdef HAVE_SYS_SOCKET_H 25480#include <sys/socket.h> 25481#endif 25482#ifdef HAVE_NETINET_IN_H 25483#include <netinet/in.h> 25484#endif 25485#ifdef HAVE_ARPA_INET_H 25486#include <arpa/inet.h> 25487#endif 25488#ifdef HAVE_NETDB_H 25489#include <netdb.h> 25490#endif 25491 25492int 25493main (void) 25494{ 25495struct hostent *gethostbyname(const char *) 25496 ; 25497 return 0; 25498} 25499_ACEOF 25500if ac_fn_c_try_compile "$LINENO" 25501then : 25502 eval "ac_cv_func_gethostbyname_proto_compat=yes" 25503else $as_nop 25504 eval "ac_cv_func_gethostbyname_proto_compat=no" 25505fi 25506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25507fi 25508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_proto_compat" >&5 25509printf "%s\n" "$ac_cv_func_gethostbyname_proto_compat" >&6; } 25510 25511if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 25512 25513printf "%s\n" "#define GETHOSTBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h 25514 25515fi 25516 25517 25518 25519 25520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compatible with system prototype" >&5 25521printf %s "checking if gethostbyaddr is compatible with system prototype... " >&6; } 25522if test ${ac_cv_func_gethostbyaddr_proto_compat+y} 25523then : 25524 printf %s "(cached) " >&6 25525else $as_nop 25526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25527/* end confdefs.h. */ 25528 25529#ifdef HAVE_SYS_TYPES_H 25530#include <sys/types.h> 25531#endif 25532#ifdef HAVE_SYS_SOCKET_H 25533#include <sys/socket.h> 25534#endif 25535#ifdef HAVE_NETINET_IN_H 25536#include <netinet/in.h> 25537#endif 25538#ifdef HAVE_ARPA_INET_H 25539#include <arpa/inet.h> 25540#endif 25541#ifdef HAVE_NETDB_H 25542#include <netdb.h> 25543#endif 25544 25545int 25546main (void) 25547{ 25548struct hostent *gethostbyaddr(const void *, size_t, int) 25549 ; 25550 return 0; 25551} 25552_ACEOF 25553if ac_fn_c_try_compile "$LINENO" 25554then : 25555 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 25556else $as_nop 25557 eval "ac_cv_func_gethostbyaddr_proto_compat=no" 25558fi 25559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25560fi 25561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 25562printf "%s\n" "$ac_cv_func_gethostbyaddr_proto_compat" >&6; } 25563 25564if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 25565 25566printf "%s\n" "#define GETHOSTBYADDR_PROTO_COMPATIBLE 1" >>confdefs.h 25567 25568fi 25569 25570 25571 25572 25573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyname is compatible with system prototype" >&5 25574printf %s "checking if getservbyname is compatible with system prototype... " >&6; } 25575if test ${ac_cv_func_getservbyname_proto_compat+y} 25576then : 25577 printf %s "(cached) " >&6 25578else $as_nop 25579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25580/* end confdefs.h. */ 25581 25582#ifdef HAVE_SYS_TYPES_H 25583#include <sys/types.h> 25584#endif 25585#ifdef HAVE_SYS_SOCKET_H 25586#include <sys/socket.h> 25587#endif 25588#ifdef HAVE_NETINET_IN_H 25589#include <netinet/in.h> 25590#endif 25591#ifdef HAVE_ARPA_INET_H 25592#include <arpa/inet.h> 25593#endif 25594#ifdef HAVE_NETDB_H 25595#include <netdb.h> 25596#endif 25597 25598int 25599main (void) 25600{ 25601struct servent *getservbyname(const char *, const char *) 25602 ; 25603 return 0; 25604} 25605_ACEOF 25606if ac_fn_c_try_compile "$LINENO" 25607then : 25608 eval "ac_cv_func_getservbyname_proto_compat=yes" 25609else $as_nop 25610 eval "ac_cv_func_getservbyname_proto_compat=no" 25611fi 25612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25613fi 25614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_proto_compat" >&5 25615printf "%s\n" "$ac_cv_func_getservbyname_proto_compat" >&6; } 25616 25617if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 25618 25619printf "%s\n" "#define GETSERVBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h 25620 25621fi 25622 25623 25624 25625 25626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compatible with system prototype" >&5 25627printf %s "checking if getsockname is compatible with system prototype... " >&6; } 25628if test ${ac_cv_func_getsockname_proto_compat+y} 25629then : 25630 printf %s "(cached) " >&6 25631else $as_nop 25632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25633/* end confdefs.h. */ 25634 25635#ifdef HAVE_SYS_TYPES_H 25636#include <sys/types.h> 25637#endif 25638#ifdef HAVE_SYS_SOCKET_H 25639#include <sys/socket.h> 25640#endif 25641 25642int 25643main (void) 25644{ 25645int getsockname(int, struct sockaddr*, socklen_t*) 25646 ; 25647 return 0; 25648} 25649_ACEOF 25650if ac_fn_c_try_compile "$LINENO" 25651then : 25652 eval "ac_cv_func_getsockname_proto_compat=yes" 25653else $as_nop 25654 eval "ac_cv_func_getsockname_proto_compat=no" 25655fi 25656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25657fi 25658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_proto_compat" >&5 25659printf "%s\n" "$ac_cv_func_getsockname_proto_compat" >&6; } 25660 25661if test "$ac_cv_func_getsockname_proto_compat" = yes; then 25662 25663printf "%s\n" "#define GETSOCKNAME_PROTO_COMPATIBLE 1" >>confdefs.h 25664 25665fi 25666 25667 25668 25669 25670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openlog is compatible with system prototype" >&5 25671printf %s "checking if openlog is compatible with system prototype... " >&6; } 25672if test ${ac_cv_func_openlog_proto_compat+y} 25673then : 25674 printf %s "(cached) " >&6 25675else $as_nop 25676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25677/* end confdefs.h. */ 25678 25679#ifdef HAVE_SYSLOG_H 25680#include <syslog.h> 25681#endif 25682 25683int 25684main (void) 25685{ 25686void openlog(const char *, int, int) 25687 ; 25688 return 0; 25689} 25690_ACEOF 25691if ac_fn_c_try_compile "$LINENO" 25692then : 25693 eval "ac_cv_func_openlog_proto_compat=yes" 25694else $as_nop 25695 eval "ac_cv_func_openlog_proto_compat=no" 25696fi 25697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25698fi 25699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_openlog_proto_compat" >&5 25700printf "%s\n" "$ac_cv_func_openlog_proto_compat" >&6; } 25701 25702if test "$ac_cv_func_openlog_proto_compat" = yes; then 25703 25704printf "%s\n" "#define OPENLOG_PROTO_COMPATIBLE 1" >>confdefs.h 25705 25706fi 25707 25708 25709 25710 25711if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 25712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if crypt needs a prototype" >&5 25713printf %s "checking if crypt needs a prototype... " >&6; } 25714if test ${ac_cv_func_crypt_noproto+y} 25715then : 25716 printf %s "(cached) " >&6 25717else $as_nop 25718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25719/* end confdefs.h. */ 25720 25721#ifdef HAVE_CRYPT_H 25722#include <crypt.h> 25723#endif 25724#ifdef HAVE_UNISTD_H 25725#include <unistd.h> 25726#endif 25727 25728struct foo { int foo; } xx; 25729extern int crypt (struct foo*); 25730int 25731main (void) 25732{ 25733crypt(&xx) 25734 ; 25735 return 0; 25736} 25737_ACEOF 25738if ac_fn_c_try_compile "$LINENO" 25739then : 25740 eval "ac_cv_func_crypt_noproto=yes" 25741else $as_nop 25742 eval "ac_cv_func_crypt_noproto=no" 25743fi 25744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25745fi 25746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_crypt_noproto" >&5 25747printf "%s\n" "$ac_cv_func_crypt_noproto" >&6; } 25748if test "$ac_cv_func_crypt_noproto" = yes; then 25749 25750printf "%s\n" "#define NEED_CRYPT_PROTO 1" >>confdefs.h 25751 25752fi 25753fi 25754 25755 25756 25757 25758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5 25759printf %s "checking for h_errno... " >&6; } 25760if test ${ac_cv_var_h_errno+y} 25761then : 25762 printf %s "(cached) " >&6 25763else $as_nop 25764 25765 25766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25767/* end confdefs.h. */ 25768#ifdef HAVE_SYS_TYPES_H 25769#include <sys/types.h> 25770#endif 25771#ifdef HAVE_NETDB_H 25772#include <netdb.h> 25773#endif 25774#ifdef HAVE_WS2TCPIP_H 25775#include <ws2tcpip.h> 25776#endif 25777 25778 void * foo(void) { return &h_errno; } 25779int 25780main (void) 25781{ 25782foo() 25783 ; 25784 return 0; 25785} 25786_ACEOF 25787if ac_fn_c_try_link "$LINENO" 25788then : 25789 ac_cv_var_h_errno=yes 25790else $as_nop 25791 ac_cv_var_h_errno=no 25792fi 25793rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25794 conftest$ac_exeext conftest.$ac_ext 25795if test "$ac_cv_var_h_errno" != yes ; then 25796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25797/* end confdefs.h. */ 25798#ifdef HAVE_SYS_TYPES_H 25799#include <sys/types.h> 25800#endif 25801#ifdef HAVE_NETDB_H 25802#include <netdb.h> 25803#endif 25804#ifdef HAVE_WS2TCPIP_H 25805#include <ws2tcpip.h> 25806#endif 25807 25808extern int h_errno; 25809int foo(void) { return h_errno; } 25810int 25811main (void) 25812{ 25813foo() 25814 ; 25815 return 0; 25816} 25817_ACEOF 25818if ac_fn_c_try_link "$LINENO" 25819then : 25820 ac_cv_var_h_errno=yes 25821else $as_nop 25822 ac_cv_var_h_errno=no 25823fi 25824rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25825 conftest$ac_exeext conftest.$ac_ext 25826fi 25827 25828fi 25829 25830ac_foo=`eval echo \\$ac_cv_var_h_errno` 25831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25832printf "%s\n" "$ac_foo" >&6; } 25833if test "$ac_foo" = yes; then 25834 25835printf "%s\n" "#define HAVE_H_ERRNO 1" >>confdefs.h 25836 25837 ac_fn_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#ifdef HAVE_SYS_TYPES_H 25838#include <sys/types.h> 25839#endif 25840#ifdef HAVE_NETDB_H 25841#include <netdb.h> 25842#endif 25843#ifdef HAVE_WS2TCPIP_H 25844#include <ws2tcpip.h> 25845#endif 25846 25847" "$ac_c_undeclared_builtin_options" "CFLAGS" 25848if test "x$ac_cv_have_decl_h_errno" = xyes 25849then : 25850 ac_have_decl=1 25851else $as_nop 25852 ac_have_decl=0 25853fi 25854printf "%s\n" "#define HAVE_DECL_H_ERRNO $ac_have_decl" >>confdefs.h 25855 25856fi 25857 25858 25859 25860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for h_errlist" >&5 25861printf %s "checking for h_errlist... " >&6; } 25862if test ${ac_cv_var_h_errlist+y} 25863then : 25864 printf %s "(cached) " >&6 25865else $as_nop 25866 25867 25868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25869/* end confdefs.h. */ 25870#ifdef HAVE_NETDB_H 25871#include <netdb.h> 25872#endif 25873#ifdef HAVE_WS2TCPIP_H 25874#include <ws2tcpip.h> 25875#endif 25876 void * foo(void) { return &h_errlist; } 25877int 25878main (void) 25879{ 25880foo() 25881 ; 25882 return 0; 25883} 25884_ACEOF 25885if ac_fn_c_try_link "$LINENO" 25886then : 25887 ac_cv_var_h_errlist=yes 25888else $as_nop 25889 ac_cv_var_h_errlist=no 25890fi 25891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25892 conftest$ac_exeext conftest.$ac_ext 25893if test "$ac_cv_var_h_errlist" != yes ; then 25894cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25895/* end confdefs.h. */ 25896#ifdef HAVE_NETDB_H 25897#include <netdb.h> 25898#endif 25899#ifdef HAVE_WS2TCPIP_H 25900#include <ws2tcpip.h> 25901#endif 25902extern int h_errlist; 25903int foo(void) { return h_errlist; } 25904int 25905main (void) 25906{ 25907foo() 25908 ; 25909 return 0; 25910} 25911_ACEOF 25912if ac_fn_c_try_link "$LINENO" 25913then : 25914 ac_cv_var_h_errlist=yes 25915else $as_nop 25916 ac_cv_var_h_errlist=no 25917fi 25918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25919 conftest$ac_exeext conftest.$ac_ext 25920fi 25921 25922fi 25923 25924ac_foo=`eval echo \\$ac_cv_var_h_errlist` 25925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25926printf "%s\n" "$ac_foo" >&6; } 25927if test "$ac_foo" = yes; then 25928 25929printf "%s\n" "#define HAVE_H_ERRLIST 1" >>confdefs.h 25930 25931 ac_fn_check_decl "$LINENO" "h_errlist" "ac_cv_have_decl_h_errlist" "#ifdef HAVE_NETDB_H 25932#include <netdb.h> 25933#endif 25934#ifdef HAVE_WS2TCPIP_H 25935#include <ws2tcpip.h> 25936#endif 25937" "$ac_c_undeclared_builtin_options" "CFLAGS" 25938if test "x$ac_cv_have_decl_h_errlist" = xyes 25939then : 25940 ac_have_decl=1 25941else $as_nop 25942 ac_have_decl=0 25943fi 25944printf "%s\n" "#define HAVE_DECL_H_ERRLIST $ac_have_decl" >>confdefs.h 25945 25946fi 25947 25948 25949 25950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for h_nerr" >&5 25951printf %s "checking for h_nerr... " >&6; } 25952if test ${ac_cv_var_h_nerr+y} 25953then : 25954 printf %s "(cached) " >&6 25955else $as_nop 25956 25957 25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25959/* end confdefs.h. */ 25960#ifdef HAVE_NETDB_H 25961#include <netdb.h> 25962#endif 25963#ifdef HAVE_WS2TCPIP_H 25964#include <ws2tcpip.h> 25965#endif 25966 void * foo(void) { return &h_nerr; } 25967int 25968main (void) 25969{ 25970foo() 25971 ; 25972 return 0; 25973} 25974_ACEOF 25975if ac_fn_c_try_link "$LINENO" 25976then : 25977 ac_cv_var_h_nerr=yes 25978else $as_nop 25979 ac_cv_var_h_nerr=no 25980fi 25981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25982 conftest$ac_exeext conftest.$ac_ext 25983if test "$ac_cv_var_h_nerr" != yes ; then 25984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25985/* end confdefs.h. */ 25986#ifdef HAVE_NETDB_H 25987#include <netdb.h> 25988#endif 25989#ifdef HAVE_WS2TCPIP_H 25990#include <ws2tcpip.h> 25991#endif 25992extern int h_nerr; 25993int foo(void) { return h_nerr; } 25994int 25995main (void) 25996{ 25997foo() 25998 ; 25999 return 0; 26000} 26001_ACEOF 26002if ac_fn_c_try_link "$LINENO" 26003then : 26004 ac_cv_var_h_nerr=yes 26005else $as_nop 26006 ac_cv_var_h_nerr=no 26007fi 26008rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26009 conftest$ac_exeext conftest.$ac_ext 26010fi 26011 26012fi 26013 26014ac_foo=`eval echo \\$ac_cv_var_h_nerr` 26015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26016printf "%s\n" "$ac_foo" >&6; } 26017if test "$ac_foo" = yes; then 26018 26019printf "%s\n" "#define HAVE_H_NERR 1" >>confdefs.h 26020 26021 ac_fn_check_decl "$LINENO" "h_nerr" "ac_cv_have_decl_h_nerr" "#ifdef HAVE_NETDB_H 26022#include <netdb.h> 26023#endif 26024#ifdef HAVE_WS2TCPIP_H 26025#include <ws2tcpip.h> 26026#endif 26027" "$ac_c_undeclared_builtin_options" "CFLAGS" 26028if test "x$ac_cv_have_decl_h_nerr" = xyes 26029then : 26030 ac_have_decl=1 26031else $as_nop 26032 ac_have_decl=0 26033fi 26034printf "%s\n" "#define HAVE_DECL_H_NERR $ac_have_decl" >>confdefs.h 26035 26036fi 26037 26038 26039 26040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 26041printf %s "checking for __progname... " >&6; } 26042if test ${ac_cv_var___progname+y} 26043then : 26044 printf %s "(cached) " >&6 26045else $as_nop 26046 26047 26048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26049/* end confdefs.h. */ 26050#ifdef HAVE_ERR_H 26051#include <err.h> 26052#endif 26053 void * foo(void) { return &__progname; } 26054int 26055main (void) 26056{ 26057foo() 26058 ; 26059 return 0; 26060} 26061_ACEOF 26062if ac_fn_c_try_link "$LINENO" 26063then : 26064 ac_cv_var___progname=yes 26065else $as_nop 26066 ac_cv_var___progname=no 26067fi 26068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26069 conftest$ac_exeext conftest.$ac_ext 26070if test "$ac_cv_var___progname" != yes ; then 26071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26072/* end confdefs.h. */ 26073#ifdef HAVE_ERR_H 26074#include <err.h> 26075#endif 26076extern int __progname; 26077int foo(void) { return __progname; } 26078int 26079main (void) 26080{ 26081foo() 26082 ; 26083 return 0; 26084} 26085_ACEOF 26086if ac_fn_c_try_link "$LINENO" 26087then : 26088 ac_cv_var___progname=yes 26089else $as_nop 26090 ac_cv_var___progname=no 26091fi 26092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26093 conftest$ac_exeext conftest.$ac_ext 26094fi 26095 26096fi 26097 26098ac_foo=`eval echo \\$ac_cv_var___progname` 26099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26100printf "%s\n" "$ac_foo" >&6; } 26101if test "$ac_foo" = yes; then 26102 26103printf "%s\n" "#define HAVE___PROGNAME 1" >>confdefs.h 26104 26105 ac_fn_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "#ifdef HAVE_ERR_H 26106#include <err.h> 26107#endif 26108" "$ac_c_undeclared_builtin_options" "CFLAGS" 26109if test "x$ac_cv_have_decl___progname" = xyes 26110then : 26111 ac_have_decl=1 26112else $as_nop 26113 ac_have_decl=0 26114fi 26115printf "%s\n" "#define HAVE_DECL___PROGNAME $ac_have_decl" >>confdefs.h 26116 26117fi 26118 26119 26120ac_fn_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" " 26121#include <stdlib.h> 26122#ifdef HAVE_UNISTD_H 26123#include <unistd.h> 26124#endif 26125" "$ac_c_undeclared_builtin_options" "CFLAGS" 26126if test "x$ac_cv_have_decl_optarg" = xyes 26127then : 26128 ac_have_decl=1 26129else $as_nop 26130 ac_have_decl=0 26131fi 26132printf "%s\n" "#define HAVE_DECL_OPTARG $ac_have_decl" >>confdefs.h 26133ac_fn_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" " 26134#include <stdlib.h> 26135#ifdef HAVE_UNISTD_H 26136#include <unistd.h> 26137#endif 26138" "$ac_c_undeclared_builtin_options" "CFLAGS" 26139if test "x$ac_cv_have_decl_optind" = xyes 26140then : 26141 ac_have_decl=1 26142else $as_nop 26143 ac_have_decl=0 26144fi 26145printf "%s\n" "#define HAVE_DECL_OPTIND $ac_have_decl" >>confdefs.h 26146ac_fn_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" " 26147#include <stdlib.h> 26148#ifdef HAVE_UNISTD_H 26149#include <unistd.h> 26150#endif 26151" "$ac_c_undeclared_builtin_options" "CFLAGS" 26152if test "x$ac_cv_have_decl_opterr" = xyes 26153then : 26154 ac_have_decl=1 26155else $as_nop 26156 ac_have_decl=0 26157fi 26158printf "%s\n" "#define HAVE_DECL_OPTERR $ac_have_decl" >>confdefs.h 26159ac_fn_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" " 26160#include <stdlib.h> 26161#ifdef HAVE_UNISTD_H 26162#include <unistd.h> 26163#endif 26164" "$ac_c_undeclared_builtin_options" "CFLAGS" 26165if test "x$ac_cv_have_decl_optopt" = xyes 26166then : 26167 ac_have_decl=1 26168else $as_nop 26169 ac_have_decl=0 26170fi 26171printf "%s\n" "#define HAVE_DECL_OPTOPT $ac_have_decl" >>confdefs.h 26172ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" " 26173#include <stdlib.h> 26174#ifdef HAVE_UNISTD_H 26175#include <unistd.h> 26176#endif 26177" "$ac_c_undeclared_builtin_options" "CFLAGS" 26178if test "x$ac_cv_have_decl_environ" = xyes 26179then : 26180 ac_have_decl=1 26181else $as_nop 26182 ac_have_decl=0 26183fi 26184printf "%s\n" "#define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h 26185 26186 26187 26188 26189 26190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 26191printf %s "checking for tm_gmtoff in struct tm... " >&6; } 26192if test ${ac_cv_type_struct_tm_tm_gmtoff+y} 26193then : 26194 printf %s "(cached) " >&6 26195else $as_nop 26196 26197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26198/* end confdefs.h. */ 26199#include <time.h> 26200int 26201main (void) 26202{ 26203struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff 26204 ; 26205 return 0; 26206} 26207_ACEOF 26208if ac_fn_c_try_compile "$LINENO" 26209then : 26210 ac_cv_type_struct_tm_tm_gmtoff=yes 26211else $as_nop 26212 ac_cv_type_struct_tm_tm_gmtoff=no 26213fi 26214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26215 26216fi 26217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 26218printf "%s\n" "$ac_cv_type_struct_tm_tm_gmtoff" >&6; } 26219if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 26220 26221 26222printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 26223 26224 26225fi 26226 26227 26228 26229 26230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 26231printf %s "checking for tm_zone in struct tm... " >&6; } 26232if test ${ac_cv_type_struct_tm_tm_zone+y} 26233then : 26234 printf %s "(cached) " >&6 26235else $as_nop 26236 26237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26238/* end confdefs.h. */ 26239#include <time.h> 26240int 26241main (void) 26242{ 26243struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone 26244 ; 26245 return 0; 26246} 26247_ACEOF 26248if ac_fn_c_try_compile "$LINENO" 26249then : 26250 ac_cv_type_struct_tm_tm_zone=yes 26251else $as_nop 26252 ac_cv_type_struct_tm_tm_zone=no 26253fi 26254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26255 26256fi 26257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_zone" >&5 26258printf "%s\n" "$ac_cv_type_struct_tm_tm_zone" >&6; } 26259if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 26260 26261 26262printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 26263 26264 26265fi 26266 26267 26268 26269 26270 26271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 26272printf %s "checking for timezone... " >&6; } 26273if test ${ac_cv_var_timezone+y} 26274then : 26275 printf %s "(cached) " >&6 26276else $as_nop 26277 26278 26279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26280/* end confdefs.h. */ 26281#include <time.h> 26282 void * foo(void) { return &timezone; } 26283int 26284main (void) 26285{ 26286foo() 26287 ; 26288 return 0; 26289} 26290_ACEOF 26291if ac_fn_c_try_link "$LINENO" 26292then : 26293 ac_cv_var_timezone=yes 26294else $as_nop 26295 ac_cv_var_timezone=no 26296fi 26297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26298 conftest$ac_exeext conftest.$ac_ext 26299if test "$ac_cv_var_timezone" != yes ; then 26300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26301/* end confdefs.h. */ 26302#include <time.h> 26303extern int timezone; 26304int foo(void) { return timezone; } 26305int 26306main (void) 26307{ 26308foo() 26309 ; 26310 return 0; 26311} 26312_ACEOF 26313if ac_fn_c_try_link "$LINENO" 26314then : 26315 ac_cv_var_timezone=yes 26316else $as_nop 26317 ac_cv_var_timezone=no 26318fi 26319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26320 conftest$ac_exeext conftest.$ac_ext 26321fi 26322 26323fi 26324 26325ac_foo=`eval echo \\$ac_cv_var_timezone` 26326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26327printf "%s\n" "$ac_foo" >&6; } 26328if test "$ac_foo" = yes; then 26329 26330printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h 26331 26332 ac_fn_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h> 26333" "$ac_c_undeclared_builtin_options" "CFLAGS" 26334if test "x$ac_cv_have_decl_timezone" = xyes 26335then : 26336 ac_have_decl=1 26337else $as_nop 26338 ac_have_decl=0 26339fi 26340printf "%s\n" "#define HAVE_DECL_TIMEZONE $ac_have_decl" >>confdefs.h 26341 26342fi 26343 26344 26345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for altzone" >&5 26346printf %s "checking for altzone... " >&6; } 26347if test ${ac_cv_var_altzone+y} 26348then : 26349 printf %s "(cached) " >&6 26350else $as_nop 26351 26352 26353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26354/* end confdefs.h. */ 26355#include <time.h> 26356 void * foo(void) { return &altzone; } 26357int 26358main (void) 26359{ 26360foo() 26361 ; 26362 return 0; 26363} 26364_ACEOF 26365if ac_fn_c_try_link "$LINENO" 26366then : 26367 ac_cv_var_altzone=yes 26368else $as_nop 26369 ac_cv_var_altzone=no 26370fi 26371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26372 conftest$ac_exeext conftest.$ac_ext 26373if test "$ac_cv_var_altzone" != yes ; then 26374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26375/* end confdefs.h. */ 26376#include <time.h> 26377extern int altzone; 26378int foo(void) { return altzone; } 26379int 26380main (void) 26381{ 26382foo() 26383 ; 26384 return 0; 26385} 26386_ACEOF 26387if ac_fn_c_try_link "$LINENO" 26388then : 26389 ac_cv_var_altzone=yes 26390else $as_nop 26391 ac_cv_var_altzone=no 26392fi 26393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26394 conftest$ac_exeext conftest.$ac_ext 26395fi 26396 26397fi 26398 26399ac_foo=`eval echo \\$ac_cv_var_altzone` 26400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26401printf "%s\n" "$ac_foo" >&6; } 26402if test "$ac_foo" = yes; then 26403 26404printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h 26405 26406 ac_fn_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" "#include <time.h> 26407" "$ac_c_undeclared_builtin_options" "CFLAGS" 26408if test "x$ac_cv_have_decl_altzone" = xyes 26409then : 26410 ac_have_decl=1 26411else $as_nop 26412 ac_have_decl=0 26413fi 26414printf "%s\n" "#define HAVE_DECL_ALTZONE $ac_have_decl" >>confdefs.h 26415 26416fi 26417 26418 26419 26420 26421cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 26422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 26423printf %s "checking for sa_family_t... " >&6; } 26424if eval test \${ac_cv_type_$cv+y} 26425then : 26426 printf %s "(cached) " >&6 26427else $as_nop 26428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26429/* end confdefs.h. */ 26430 26431#include <sys/types.h> 26432#if STDC_HEADERS 26433#include <stdlib.h> 26434#include <stddef.h> 26435#endif 26436 26437#include <sys/types.h> 26438#ifdef HAVE_SYS_SOCKET_H 26439#include <sys/socket.h> 26440#endif 26441#ifdef HAVE_WS2TCPIP_H 26442#include <ws2tcpip.h> 26443#endif 26444int 26445main (void) 26446{ 26447sa_family_t foo; 26448 ; 26449 return 0; 26450} 26451_ACEOF 26452if ac_fn_c_try_compile "$LINENO" 26453then : 26454 eval "ac_cv_type_$cv=yes" 26455else $as_nop 26456 eval "ac_cv_type_$cv=no" 26457fi 26458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26459fi 26460ac_foo=`eval echo \\$ac_cv_type_$cv` 26461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26462printf "%s\n" "$ac_foo" >&6; } 26463if test "$ac_foo" = yes; then 26464 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26465if false; then 26466 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "$ac_includes_default" 26467if test "x$ac_cv_type_sa_family_t" = xyes 26468then : 26469 26470printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 26471 26472 26473fi 26474 26475fi 26476 26477printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26478 26479fi 26480 26481 26482 26483cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 26484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 26485printf %s "checking for socklen_t... " >&6; } 26486if eval test \${ac_cv_type_$cv+y} 26487then : 26488 printf %s "(cached) " >&6 26489else $as_nop 26490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26491/* end confdefs.h. */ 26492 26493#include <sys/types.h> 26494#if STDC_HEADERS 26495#include <stdlib.h> 26496#include <stddef.h> 26497#endif 26498 26499#include <sys/types.h> 26500#ifdef HAVE_SYS_SOCKET_H 26501#include <sys/socket.h> 26502#endif 26503#ifdef HAVE_WS2TCPIP_H 26504#include <ws2tcpip.h> 26505#endif 26506int 26507main (void) 26508{ 26509socklen_t foo; 26510 ; 26511 return 0; 26512} 26513_ACEOF 26514if ac_fn_c_try_compile "$LINENO" 26515then : 26516 eval "ac_cv_type_$cv=yes" 26517else $as_nop 26518 eval "ac_cv_type_$cv=no" 26519fi 26520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26521fi 26522ac_foo=`eval echo \\$ac_cv_type_$cv` 26523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26524printf "%s\n" "$ac_foo" >&6; } 26525if test "$ac_foo" = yes; then 26526 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26527if false; then 26528 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default" 26529if test "x$ac_cv_type_socklen_t" = xyes 26530then : 26531 26532printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 26533 26534 26535fi 26536 26537fi 26538 26539printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26540 26541fi 26542 26543 26544 26545cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 26546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr" >&5 26547printf %s "checking for struct sockaddr... " >&6; } 26548if eval test \${ac_cv_type_$cv+y} 26549then : 26550 printf %s "(cached) " >&6 26551else $as_nop 26552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26553/* end confdefs.h. */ 26554 26555#include <sys/types.h> 26556#if STDC_HEADERS 26557#include <stdlib.h> 26558#include <stddef.h> 26559#endif 26560 26561#include <sys/types.h> 26562#ifdef HAVE_SYS_SOCKET_H 26563#include <sys/socket.h> 26564#endif 26565#ifdef HAVE_WS2TCPIP_H 26566#include <ws2tcpip.h> 26567#endif 26568int 26569main (void) 26570{ 26571struct sockaddr foo; 26572 ; 26573 return 0; 26574} 26575_ACEOF 26576if ac_fn_c_try_compile "$LINENO" 26577then : 26578 eval "ac_cv_type_$cv=yes" 26579else $as_nop 26580 eval "ac_cv_type_$cv=no" 26581fi 26582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26583fi 26584ac_foo=`eval echo \\$ac_cv_type_$cv` 26585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26586printf "%s\n" "$ac_foo" >&6; } 26587if test "$ac_foo" = yes; then 26588 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26589if false; then 26590 ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "$ac_includes_default" 26591if test "x$ac_cv_type_struct_sockaddr" = xyes 26592then : 26593 26594printf "%s\n" "#define HAVE_STRUCT_SOCKADDR 1" >>confdefs.h 26595 26596 26597fi 26598 26599fi 26600 26601printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26602 26603fi 26604 26605 26606 26607cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 26608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 26609printf %s "checking for struct sockaddr_storage... " >&6; } 26610if eval test \${ac_cv_type_$cv+y} 26611then : 26612 printf %s "(cached) " >&6 26613else $as_nop 26614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26615/* end confdefs.h. */ 26616 26617#include <sys/types.h> 26618#if STDC_HEADERS 26619#include <stdlib.h> 26620#include <stddef.h> 26621#endif 26622 26623#include <sys/types.h> 26624#ifdef HAVE_SYS_SOCKET_H 26625#include <sys/socket.h> 26626#endif 26627#ifdef HAVE_WS2TCPIP_H 26628#include <ws2tcpip.h> 26629#endif 26630int 26631main (void) 26632{ 26633struct sockaddr_storage foo; 26634 ; 26635 return 0; 26636} 26637_ACEOF 26638if ac_fn_c_try_compile "$LINENO" 26639then : 26640 eval "ac_cv_type_$cv=yes" 26641else $as_nop 26642 eval "ac_cv_type_$cv=no" 26643fi 26644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26645fi 26646ac_foo=`eval echo \\$ac_cv_type_$cv` 26647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26648printf "%s\n" "$ac_foo" >&6; } 26649if test "$ac_foo" = yes; then 26650 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26651if false; then 26652 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default" 26653if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 26654then : 26655 26656printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 26657 26658 26659fi 26660 26661fi 26662 26663printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26664 26665fi 26666 26667 26668 26669cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 26670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 26671printf %s "checking for struct addrinfo... " >&6; } 26672if eval test \${ac_cv_type_$cv+y} 26673then : 26674 printf %s "(cached) " >&6 26675else $as_nop 26676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26677/* end confdefs.h. */ 26678 26679#include <sys/types.h> 26680#if STDC_HEADERS 26681#include <stdlib.h> 26682#include <stddef.h> 26683#endif 26684 26685#include <sys/types.h> 26686#ifdef HAVE_NETDB_H 26687#include <netdb.h> 26688#endif 26689#ifdef HAVE_WS2TCPIP_H 26690#include <ws2tcpip.h> 26691#endif 26692int 26693main (void) 26694{ 26695struct addrinfo foo; 26696 ; 26697 return 0; 26698} 26699_ACEOF 26700if ac_fn_c_try_compile "$LINENO" 26701then : 26702 eval "ac_cv_type_$cv=yes" 26703else $as_nop 26704 eval "ac_cv_type_$cv=no" 26705fi 26706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26707fi 26708ac_foo=`eval echo \\$ac_cv_type_$cv` 26709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26710printf "%s\n" "$ac_foo" >&6; } 26711if test "$ac_foo" = yes; then 26712 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26713if false; then 26714 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default" 26715if test "x$ac_cv_type_struct_addrinfo" = xyes 26716then : 26717 26718printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 26719 26720 26721fi 26722 26723fi 26724 26725printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26726 26727fi 26728 26729 26730 26731cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 26732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ifaddrs" >&5 26733printf %s "checking for struct ifaddrs... " >&6; } 26734if eval test \${ac_cv_type_$cv+y} 26735then : 26736 printf %s "(cached) " >&6 26737else $as_nop 26738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26739/* end confdefs.h. */ 26740 26741#include <sys/types.h> 26742#if STDC_HEADERS 26743#include <stdlib.h> 26744#include <stddef.h> 26745#endif 26746#include <ifaddrs.h> 26747int 26748main (void) 26749{ 26750struct ifaddrs foo; 26751 ; 26752 return 0; 26753} 26754_ACEOF 26755if ac_fn_c_try_compile "$LINENO" 26756then : 26757 eval "ac_cv_type_$cv=yes" 26758else $as_nop 26759 eval "ac_cv_type_$cv=no" 26760fi 26761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26762fi 26763ac_foo=`eval echo \\$ac_cv_type_$cv` 26764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26765printf "%s\n" "$ac_foo" >&6; } 26766if test "$ac_foo" = yes; then 26767 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26768if false; then 26769 ac_fn_c_check_type "$LINENO" "struct ifaddrs" "ac_cv_type_struct_ifaddrs" "$ac_includes_default" 26770if test "x$ac_cv_type_struct_ifaddrs" = xyes 26771then : 26772 26773printf "%s\n" "#define HAVE_STRUCT_IFADDRS 1" >>confdefs.h 26774 26775 26776fi 26777 26778fi 26779 26780printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26781 26782fi 26783 26784 26785 26786cv=`echo "struct iovec" | sed 'y%./+- %__p__%'` 26787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5 26788printf %s "checking for struct iovec... " >&6; } 26789if eval test \${ac_cv_type_$cv+y} 26790then : 26791 printf %s "(cached) " >&6 26792else $as_nop 26793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26794/* end confdefs.h. */ 26795 26796#include <sys/types.h> 26797#if STDC_HEADERS 26798#include <stdlib.h> 26799#include <stddef.h> 26800#endif 26801 26802#include <sys/types.h> 26803#include <sys/uio.h> 26804 26805int 26806main (void) 26807{ 26808struct iovec foo; 26809 ; 26810 return 0; 26811} 26812_ACEOF 26813if ac_fn_c_try_compile "$LINENO" 26814then : 26815 eval "ac_cv_type_$cv=yes" 26816else $as_nop 26817 eval "ac_cv_type_$cv=no" 26818fi 26819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26820fi 26821ac_foo=`eval echo \\$ac_cv_type_$cv` 26822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26823printf "%s\n" "$ac_foo" >&6; } 26824if test "$ac_foo" = yes; then 26825 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26826if false; then 26827 ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "$ac_includes_default" 26828if test "x$ac_cv_type_struct_iovec" = xyes 26829then : 26830 26831printf "%s\n" "#define HAVE_STRUCT_IOVEC 1" >>confdefs.h 26832 26833 26834fi 26835 26836fi 26837 26838printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26839 26840fi 26841 26842 26843 26844cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'` 26845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct msghdr" >&5 26846printf %s "checking for struct msghdr... " >&6; } 26847if eval test \${ac_cv_type_$cv+y} 26848then : 26849 printf %s "(cached) " >&6 26850else $as_nop 26851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26852/* end confdefs.h. */ 26853 26854#include <sys/types.h> 26855#if STDC_HEADERS 26856#include <stdlib.h> 26857#include <stddef.h> 26858#endif 26859 26860#include <sys/types.h> 26861#ifdef HAVE_SYS_SOCKET_H 26862#include <sys/socket.h> 26863#endif 26864#ifdef HAVE_WS2TCPIP_H 26865#include <ws2tcpip.h> 26866#endif 26867int 26868main (void) 26869{ 26870struct msghdr foo; 26871 ; 26872 return 0; 26873} 26874_ACEOF 26875if ac_fn_c_try_compile "$LINENO" 26876then : 26877 eval "ac_cv_type_$cv=yes" 26878else $as_nop 26879 eval "ac_cv_type_$cv=no" 26880fi 26881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26882fi 26883ac_foo=`eval echo \\$ac_cv_type_$cv` 26884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26885printf "%s\n" "$ac_foo" >&6; } 26886if test "$ac_foo" = yes; then 26887 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26888if false; then 26889 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "$ac_includes_default" 26890if test "x$ac_cv_type_struct_msghdr" = xyes 26891then : 26892 26893printf "%s\n" "#define HAVE_STRUCT_MSGHDR 1" >>confdefs.h 26894 26895 26896fi 26897 26898fi 26899 26900printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26901 26902fi 26903 26904 26905 26906 26907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct winsize" >&5 26908printf %s "checking for struct winsize... " >&6; } 26909if test ${ac_cv_struct_winsize+y} 26910then : 26911 printf %s "(cached) " >&6 26912else $as_nop 26913 26914ac_cv_struct_winsize=no 26915for i in sys/termios.h sys/ioctl.h; do 26916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26917/* end confdefs.h. */ 26918#include <$i> 26919 26920_ACEOF 26921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26922 $EGREP "struct[ ]*winsize" >/dev/null 2>&1 26923then : 26924 ac_cv_struct_winsize=yes; break 26925fi 26926rm -rf conftest* 26927done 26928 26929fi 26930 26931if test "$ac_cv_struct_winsize" = "yes"; then 26932 26933printf "%s\n" "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h 26934 26935fi 26936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_winsize" >&5 26937printf "%s\n" "$ac_cv_struct_winsize" >&6; } 26938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26939/* end confdefs.h. */ 26940#include <termios.h> 26941 26942_ACEOF 26943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26944 $EGREP "ws_xpixel" >/dev/null 2>&1 26945then : 26946 26947printf "%s\n" "#define HAVE_WS_XPIXEL 1" >>confdefs.h 26948 26949fi 26950rm -rf conftest* 26951 26952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26953/* end confdefs.h. */ 26954#include <termios.h> 26955 26956_ACEOF 26957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26958 $EGREP "ws_ypixel" >/dev/null 2>&1 26959then : 26960 26961printf "%s\n" "#define HAVE_WS_YPIXEL 1" >>confdefs.h 26962 26963fi 26964rm -rf conftest* 26965 26966 26967 26968 26969 26970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct spwd" >&5 26971printf %s "checking for struct spwd... " >&6; } 26972if test ${ac_cv_struct_spwd+y} 26973then : 26974 printf %s "(cached) " >&6 26975else $as_nop 26976 26977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26978/* end confdefs.h. */ 26979 26980#include <pwd.h> 26981#ifdef HAVE_SHADOW_H 26982#include <shadow.h> 26983#endif 26984int 26985main (void) 26986{ 26987struct spwd foo; 26988 ; 26989 return 0; 26990} 26991_ACEOF 26992if ac_fn_c_try_compile "$LINENO" 26993then : 26994 ac_cv_struct_spwd=yes 26995else $as_nop 26996 ac_cv_struct_spwd=no 26997fi 26998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26999 27000fi 27001 27002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_spwd" >&5 27003printf "%s\n" "$ac_cv_struct_spwd" >&6; } 27004 27005if test "$ac_cv_struct_spwd" = "yes"; then 27006 27007printf "%s\n" "#define HAVE_STRUCT_SPWD 1" >>confdefs.h 27008 27009fi 27010 27011 27012# 27013# Check if we want samba's socket wrapper 27014# 27015 27016 27017 27018# Check whether --enable-socket-wrapper was given. 27019if test ${enable_socket_wrapper+y} 27020then : 27021 enableval=$enable_socket_wrapper; 27022fi 27023 27024 27025 if test "x$enable_socket_wrapper" = xyes; then 27026 have_socket_wrapper_TRUE= 27027 have_socket_wrapper_FALSE='#' 27028else 27029 have_socket_wrapper_TRUE='#' 27030 have_socket_wrapper_FALSE= 27031fi 27032 27033if test "x$enable_socket_wrapper" = xyes ; then 27034 27035printf "%s\n" "#define SOCKET_WRAPPER_REPLACE 1" >>confdefs.h 27036 27037fi 27038 27039 27040 27041 27042LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 27043 27044 27045LIBADD_roken="$LIB_roken" 27046LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 27047 27048 27049# Check whether --enable-otp was given. 27050if test ${enable_otp+y} 27051then : 27052 enableval=$enable_otp; 27053fi 27054 27055if test "$enable_otp" = yes -a "$db_type" = unknown; then 27056 as_fn_error $? "OTP requires a NDBM/DB compatible library" "$LINENO" 5 27057fi 27058if test "$enable_otp" != no; then 27059 if test "$db_type" != unknown; then 27060 enable_otp=yes 27061 else 27062 enable_otp=no 27063 fi 27064fi 27065if test "$enable_otp" = yes; then 27066 27067printf "%s\n" "#define OTP 1" >>confdefs.h 27068 27069 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 27070 27071fi 27072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OTP library" >&5 27073printf %s "checking whether to enable OTP library... " >&6; } 27074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_otp" >&5 27075printf "%s\n" "$enable_otp" >&6; } 27076 if test "$enable_otp" = yes; then 27077 OTP_TRUE= 27078 OTP_FALSE='#' 27079else 27080 OTP_TRUE='#' 27081 OTP_FALSE= 27082fi 27083 27084 27085 27086 27087for ac_prog in mig 27088do 27089 # Extract the first word of "$ac_prog", so it can be a program name with args. 27090set dummy $ac_prog; ac_word=$2 27091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27092printf %s "checking for $ac_word... " >&6; } 27093if test ${ac_cv_prog_GCD_MIG+y} 27094then : 27095 printf %s "(cached) " >&6 27096else $as_nop 27097 if test -n "$GCD_MIG"; then 27098 ac_cv_prog_GCD_MIG="$GCD_MIG" # Let the user override the test. 27099else 27100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27101for as_dir in $PATH 27102do 27103 IFS=$as_save_IFS 27104 case $as_dir in #((( 27105 '') as_dir=./ ;; 27106 */) ;; 27107 *) as_dir=$as_dir/ ;; 27108 esac 27109 for ac_exec_ext in '' $ac_executable_extensions; do 27110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27111 ac_cv_prog_GCD_MIG="$ac_prog" 27112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27113 break 2 27114 fi 27115done 27116 done 27117IFS=$as_save_IFS 27118 27119fi 27120fi 27121GCD_MIG=$ac_cv_prog_GCD_MIG 27122if test -n "$GCD_MIG"; then 27123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCD_MIG" >&5 27124printf "%s\n" "$GCD_MIG" >&6; } 27125else 27126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27127printf "%s\n" "no" >&6; } 27128fi 27129 27130 27131 test -n "$GCD_MIG" && break 27132done 27133test -n "$GCD_MIG" || GCD_MIG="no" 27134 27135 27136if test "$GCD_MIG" != no; then 27137 ac_fn_c_check_header_compile "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default" 27138if test "x$ac_cv_header_dispatch_dispatch_h" = xyes 27139then : 27140 printf "%s\n" "#define HAVE_DISPATCH_DISPATCH_H 1" >>confdefs.h 27141 27142fi 27143 27144 27145 27146 27147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dispatch_async_f" >&5 27148printf %s "checking for dispatch_async_f... " >&6; } 27149if test ${ac_cv_funclib_dispatch_async_f+y} 27150then : 27151 printf %s "(cached) " >&6 27152else $as_nop 27153 27154if eval "test \"\$ac_cv_func_dispatch_async_f\" != yes" ; then 27155 ac_save_LIBS="$LIBS" 27156 for ac_lib in "" dispatch; do 27157 case "$ac_lib" in 27158 "") ;; 27159 yes) ac_lib="" ;; 27160 no) continue ;; 27161 -l*) ;; 27162 *) ac_lib="-l$ac_lib" ;; 27163 esac 27164 LIBS=" $ac_lib $ac_save_LIBS" 27165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27166/* end confdefs.h. */ 27167#ifdef HAVE_DISPATCH_DISPATCH_H 27168 #include <dispatch/dispatch.h> 27169 #endif 27170int 27171main (void) 27172{ 27173dispatch_async_f(0,0,0) 27174 ; 27175 return 0; 27176} 27177_ACEOF 27178if ac_fn_c_try_link "$LINENO" 27179then : 27180 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dispatch_async_f=$ac_lib; else ac_cv_funclib_dispatch_async_f=yes; fi";break 27181fi 27182rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27183 conftest$ac_exeext conftest.$ac_ext 27184 done 27185 eval "ac_cv_funclib_dispatch_async_f=\${ac_cv_funclib_dispatch_async_f-no}" 27186 LIBS="$ac_save_LIBS" 27187fi 27188 27189fi 27190 27191 27192eval "ac_res=\$ac_cv_funclib_dispatch_async_f" 27193 27194if false; then 27195 ac_fn_c_check_func "$LINENO" "dispatch_async_f" "ac_cv_func_dispatch_async_f" 27196if test "x$ac_cv_func_dispatch_async_f" = xyes 27197then : 27198 printf "%s\n" "#define HAVE_DISPATCH_ASYNC_F 1" >>confdefs.h 27199 27200fi 27201 27202fi 27203# dispatch_async_f 27204eval "ac_tr_func=HAVE_`echo dispatch_async_f | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27205eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27206eval "LIB_dispatch_async_f=$ac_res" 27207 27208case "$ac_res" in 27209 yes) 27210 eval "ac_cv_func_dispatch_async_f=yes" 27211 eval "LIB_dispatch_async_f=" 27212 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 27213 27214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27215printf "%s\n" "yes" >&6; } 27216 ;; 27217 no) 27218 eval "ac_cv_func_dispatch_async_f=no" 27219 eval "LIB_dispatch_async_f=" 27220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27221printf "%s\n" "no" >&6; } 27222 ;; 27223 *) 27224 eval "ac_cv_func_dispatch_async_f=yes" 27225 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 27226 27227 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 27228 27229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27230printf "%s\n" "yes, in $ac_res" >&6; } 27231 ;; 27232esac 27233 27234 27235 27236 if test "$ac_cv_func_dispatch_async_f" = yes -a "$GCD_MIG" != no; then 27237 27238printf "%s\n" "#define HAVE_GCD 1" >>confdefs.h 27239 27240 libdispatch=yes 27241 else 27242 libdispatch=no 27243 fi 27244 27245fi 27246 if test "$libdispatch" = yes -a "$GCD_MIG" != no; then 27247 have_gcd_TRUE= 27248 have_gcd_FALSE='#' 27249else 27250 have_gcd_TRUE='#' 27251 have_gcd_FALSE= 27252fi 27253 27254 27255 27256 27257 27258# Check whether --enable-osfc2 was given. 27259if test ${enable_osfc2+y} 27260then : 27261 enableval=$enable_osfc2; 27262fi 27263 27264LIB_security= 27265if test "$enable_osfc2" = yes; then 27266 27267printf "%s\n" "#define HAVE_OSFC2 1" >>confdefs.h 27268 27269 LIB_security=-lsecurity 27270fi 27271 27272 27273 27274# Check whether --enable-mmap was given. 27275if test ${enable_mmap+y} 27276then : 27277 enableval=$enable_mmap; 27278fi 27279 27280if test "$enable_mmap" = "no"; then 27281 27282printf "%s\n" "#define NO_MMAP 1" >>confdefs.h 27283 27284fi 27285 27286# Check whether --enable-afs-string-to-key was given. 27287if test ${enable_afs_string_to_key+y} 27288then : 27289 enableval=$enable_afs_string_to_key; 27290else $as_nop 27291 enable_afs_string_to_key=yes 27292fi 27293 27294 27295if test "$enable_afs_string_to_key" = "yes"; then 27296 27297printf "%s\n" "#define ENABLE_AFS_STRING_TO_KEY 1" >>confdefs.h 27298 27299 ENABLE_AFS_STRING_TO_KEY=1 27300fi 27301 27302 27303# Extract the first word of "nroff", so it can be a program name with args. 27304set dummy nroff; ac_word=$2 27305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27306printf %s "checking for $ac_word... " >&6; } 27307if test ${ac_cv_path_NROFF+y} 27308then : 27309 printf %s "(cached) " >&6 27310else $as_nop 27311 case $NROFF in 27312 [\\/]* | ?:[\\/]*) 27313 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 27314 ;; 27315 *) 27316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27317for as_dir in $PATH 27318do 27319 IFS=$as_save_IFS 27320 case $as_dir in #((( 27321 '') as_dir=./ ;; 27322 */) ;; 27323 *) as_dir=$as_dir/ ;; 27324 esac 27325 for ac_exec_ext in '' $ac_executable_extensions; do 27326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27327 ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext" 27328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27329 break 2 27330 fi 27331done 27332 done 27333IFS=$as_save_IFS 27334 27335 ;; 27336esac 27337fi 27338NROFF=$ac_cv_path_NROFF 27339if test -n "$NROFF"; then 27340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 27341printf "%s\n" "$NROFF" >&6; } 27342else 27343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27344printf "%s\n" "no" >&6; } 27345fi 27346 27347 27348# Extract the first word of "groff", so it can be a program name with args. 27349set dummy groff; ac_word=$2 27350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27351printf %s "checking for $ac_word... " >&6; } 27352if test ${ac_cv_path_GROFF+y} 27353then : 27354 printf %s "(cached) " >&6 27355else $as_nop 27356 case $GROFF in 27357 [\\/]* | ?:[\\/]*) 27358 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 27359 ;; 27360 *) 27361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27362for as_dir in $PATH 27363do 27364 IFS=$as_save_IFS 27365 case $as_dir in #((( 27366 '') as_dir=./ ;; 27367 */) ;; 27368 *) as_dir=$as_dir/ ;; 27369 esac 27370 for ac_exec_ext in '' $ac_executable_extensions; do 27371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27372 ac_cv_path_GROFF="$as_dir$ac_word$ac_exec_ext" 27373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27374 break 2 27375 fi 27376done 27377 done 27378IFS=$as_save_IFS 27379 27380 ;; 27381esac 27382fi 27383GROFF=$ac_cv_path_GROFF 27384if test -n "$GROFF"; then 27385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 27386printf "%s\n" "$GROFF" >&6; } 27387else 27388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27389printf "%s\n" "no" >&6; } 27390fi 27391 27392 27393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to format man pages" >&5 27394printf %s "checking how to format man pages... " >&6; } 27395if test ${ac_cv_sys_man_format+y} 27396then : 27397 printf %s "(cached) " >&6 27398else $as_nop 27399 cat > conftest.1 << END 27400.Dd January 1, 1970 27401.Dt CONFTEST 1 27402.Sh NAME 27403.Nm conftest 27404.Nd foobar 27405END 27406 27407if test "$NROFF" ; then 27408 for i in "-mdoc" "-mandoc"; do 27409 if "$NROFF" $i conftest.1 2> /dev/null | \ 27410 grep Jan > /dev/null 2>&1 ; then 27411 ac_cv_sys_man_format="$NROFF $i" 27412 break 27413 fi 27414 done 27415fi 27416if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 27417 for i in "-mdoc" "-mandoc"; do 27418 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 27419 grep Jan > /dev/null 2>&1 ; then 27420 ac_cv_sys_man_format="$GROFF -Tascii $i" 27421 break 27422 fi 27423 done 27424fi 27425if test "$ac_cv_sys_man_format"; then 27426 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 27427fi 27428 27429fi 27430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_man_format" >&5 27431printf "%s\n" "$ac_cv_sys_man_format" >&6; } 27432if test "$ac_cv_sys_man_format"; then 27433 CATMAN="$ac_cv_sys_man_format" 27434 27435fi 27436 if test "$CATMAN"; then 27437 CATMAN_TRUE= 27438 CATMAN_FALSE='#' 27439else 27440 CATMAN_TRUE='#' 27441 CATMAN_FALSE= 27442fi 27443 27444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking extension of pre-formatted manual pages" >&5 27445printf %s "checking extension of pre-formatted manual pages... " >&6; } 27446if test ${ac_cv_sys_catman_ext+y} 27447then : 27448 printf %s "(cached) " >&6 27449else $as_nop 27450 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 27451 ac_cv_sys_catman_ext=0 27452else 27453 ac_cv_sys_catman_ext=number 27454fi 27455 27456fi 27457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_catman_ext" >&5 27458printf "%s\n" "$ac_cv_sys_catman_ext" >&6; } 27459if test "$ac_cv_sys_catman_ext" = number; then 27460 CATMANEXT='$$section' 27461else 27462 CATMANEXT=0 27463fi 27464 27465 27466 27467 27468 27469# Check whether --with-readline was given. 27470if test ${with_readline+y} 27471then : 27472 withval=$with_readline; 27473fi 27474 27475 27476# Check whether --with-readline-lib was given. 27477if test ${with_readline_lib+y} 27478then : 27479 withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 27480 as_fn_error $? "No argument for --with-readline-lib" "$LINENO" 5 27481elif test "X$with_readline" = "X"; then 27482 with_readline=yes 27483fi 27484fi 27485 27486 27487# Check whether --with-readline-include was given. 27488if test ${with_readline_include+y} 27489then : 27490 withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then 27491 as_fn_error $? "No argument for --with-readline-include" "$LINENO" 5 27492elif test "X$with_readline" = "X"; then 27493 with_readline=yes 27494fi 27495fi 27496 27497 27498# Check whether --with-readline-config was given. 27499if test ${with_readline_config+y} 27500then : 27501 withval=$with_readline_config; 27502fi 27503 27504 27505 27506 27507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 27508printf %s "checking for readline... " >&6; } 27509 27510case "$with_readline" in 27511yes|"") d='' ;; 27512no) d= ;; 27513*) d="$with_readline" ;; 27514esac 27515 27516header_dirs= 27517lib_dirs= 27518for i in $d; do 27519 if test "$with_readline_include" = ""; then 27520 if test -d "$i/include/readline"; then 27521 header_dirs="$header_dirs $i/include/readline" 27522 fi 27523 if test -d "$i/include"; then 27524 header_dirs="$header_dirs $i/include" 27525 fi 27526 fi 27527 if test "$with_readline_lib" = ""; then 27528 if test -d "$i/lib$abilibdirext"; then 27529 lib_dirs="$lib_dirs $i/lib$abilibdirext" 27530 fi 27531 fi 27532done 27533 27534if test "$with_readline_include"; then 27535 header_dirs="$with_readline_include $header_dirs" 27536fi 27537if test "$with_readline_lib"; then 27538 lib_dirs="$with_readline_lib $lib_dirs" 27539fi 27540 27541if test "$with_readline_config" = ""; then 27542 with_readline_config='' 27543fi 27544 27545readline_cflags= 27546readline_libs= 27547 27548case "$with_readline_config" in 27549yes|no|""|"") 27550 if test -f $with_readline/bin/ ; then 27551 with_readline_config=$with_readline/bin/ 27552 fi 27553 ;; 27554esac 27555 27556case "$with_readline_config" in 27557yes|no|"") 27558 ;; 27559*) 27560 readline_cflags="`$with_readline_config --cflags 2>&1`" 27561 readline_libs="`$with_readline_config --libs 2>&1`" 27562 ;; 27563esac 27564 27565found=no 27566if test "$with_readline" != no; then 27567 save_CFLAGS="$CFLAGS" 27568 save_LIBS="$LIBS" 27569 if test "$readline_cflags" -a "$readline_libs"; then 27570 CFLAGS="$readline_cflags $save_CFLAGS" 27571 LIBS="$readline_libs $save_LIBS" 27572 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 27573if test "x$ac_cv_header_readline_h" = xyes 27574then : 27575 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h 27576 27577fi 27578ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27579if test "x$ac_cv_header_readline_readline_h" = xyes 27580then : 27581 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 27582 27583fi 27584 27585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27586/* end confdefs.h. */ 27587#include <stdio.h> 27588#if defined(HAVE_READLINE_READLINE_H) 27589#include <readline/readline.h> 27590#elif defined(HAVE_READLINE_H) 27591#include <readline.h> 27592#endif 27593 27594int 27595main (void) 27596{ 27597 27598 ; 27599 return 0; 27600} 27601_ACEOF 27602if ac_fn_c_try_link "$LINENO" 27603then : 27604 27605 INCLUDE_readline="$readline_cflags" 27606 LIB_readline="$readline_libs" 27607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_readline_config" >&5 27608printf "%s\n" "from $with_readline_config" >&6; } 27609 found=yes 27610fi 27611rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27612 conftest$ac_exeext conftest.$ac_ext 27613 fi 27614 if test "$found" = no; then 27615 ires= lres= 27616 for i in $header_dirs; do 27617 CFLAGS="-I$i $save_CFLAGS" 27618 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 27619if test "x$ac_cv_header_readline_h" = xyes 27620then : 27621 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h 27622 27623fi 27624ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27625if test "x$ac_cv_header_readline_readline_h" = xyes 27626then : 27627 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 27628 27629fi 27630 27631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27632/* end confdefs.h. */ 27633#include <stdio.h> 27634#if defined(HAVE_READLINE_READLINE_H) 27635#include <readline/readline.h> 27636#elif defined(HAVE_READLINE_H) 27637#include <readline.h> 27638#endif 27639 27640int 27641main (void) 27642{ 27643 27644 ; 27645 return 0; 27646} 27647_ACEOF 27648if ac_fn_c_try_compile "$LINENO" 27649then : 27650 ires=$i;break 27651fi 27652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27653 done 27654 for i in $lib_dirs; do 27655 LIBS="-L$i -lreadline $save_LIBS" 27656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27657/* end confdefs.h. */ 27658#include <stdio.h> 27659#if defined(HAVE_READLINE_READLINE_H) 27660#include <readline/readline.h> 27661#elif defined(HAVE_READLINE_H) 27662#include <readline.h> 27663#endif 27664 27665int 27666main (void) 27667{ 27668 27669 ; 27670 return 0; 27671} 27672_ACEOF 27673if ac_fn_c_try_link "$LINENO" 27674then : 27675 lres=$i;break 27676fi 27677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27678 conftest$ac_exeext conftest.$ac_ext 27679 done 27680 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 27681 INCLUDE_readline="-I$ires" 27682 LIB_readline="-L$lres -lreadline " 27683 found=yes 27684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 27685printf "%s\n" "headers $ires, libraries $lres" >&6; } 27686 fi 27687 fi 27688 CFLAGS="$save_CFLAGS" 27689 LIBS="$save_LIBS" 27690fi 27691 27692if test "$found" = yes; then 27693 27694printf "%s\n" "#define READLINE 1" >>confdefs.h 27695 27696 with_readline=yes 27697else 27698 with_readline=no 27699 INCLUDE_readline= 27700 LIB_readline= 27701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27702printf "%s\n" "no" >&6; } 27703fi 27704 27705 27706 27707 27708 27709 27710 27711# Check whether --with-libedit was given. 27712if test ${with_libedit+y} 27713then : 27714 withval=$with_libedit; 27715fi 27716 27717 27718# Check whether --with-libedit-lib was given. 27719if test ${with_libedit_lib+y} 27720then : 27721 withval=$with_libedit_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 27722 as_fn_error $? "No argument for --with-libedit-lib" "$LINENO" 5 27723elif test "X$with_libedit" = "X"; then 27724 with_libedit=yes 27725fi 27726fi 27727 27728 27729# Check whether --with-libedit-include was given. 27730if test ${with_libedit_include+y} 27731then : 27732 withval=$with_libedit_include; if test "$withval" = "yes" -o "$withval" = "no"; then 27733 as_fn_error $? "No argument for --with-libedit-include" "$LINENO" 5 27734elif test "X$with_libedit" = "X"; then 27735 with_libedit=yes 27736fi 27737fi 27738 27739 27740# Check whether --with-libedit-config was given. 27741if test ${with_libedit_config+y} 27742then : 27743 withval=$with_libedit_config; 27744fi 27745 27746 27747 27748 27749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 27750printf %s "checking for libedit... " >&6; } 27751 27752case "$with_libedit" in 27753yes|"") d='' ;; 27754no) d= ;; 27755*) d="$with_libedit" ;; 27756esac 27757 27758header_dirs= 27759lib_dirs= 27760for i in $d; do 27761 if test "$with_libedit_include" = ""; then 27762 if test -d "$i/include/libedit"; then 27763 header_dirs="$header_dirs $i/include/libedit" 27764 fi 27765 if test -d "$i/include"; then 27766 header_dirs="$header_dirs $i/include" 27767 fi 27768 fi 27769 if test "$with_libedit_lib" = ""; then 27770 if test -d "$i/lib$abilibdirext"; then 27771 lib_dirs="$lib_dirs $i/lib$abilibdirext" 27772 fi 27773 fi 27774done 27775 27776if test "$with_libedit_include"; then 27777 header_dirs="$with_libedit_include $header_dirs" 27778fi 27779if test "$with_libedit_lib"; then 27780 lib_dirs="$with_libedit_lib $lib_dirs" 27781fi 27782 27783if test "$with_libedit_config" = ""; then 27784 with_libedit_config='' 27785fi 27786 27787libedit_cflags= 27788libedit_libs= 27789 27790case "$with_libedit_config" in 27791yes|no|""|"") 27792 if test -f $with_libedit/bin/ ; then 27793 with_libedit_config=$with_libedit/bin/ 27794 fi 27795 ;; 27796esac 27797 27798case "$with_libedit_config" in 27799yes|no|"") 27800 ;; 27801*) 27802 libedit_cflags="`$with_libedit_config --cflags 2>&1`" 27803 libedit_libs="`$with_libedit_config --libs 2>&1`" 27804 ;; 27805esac 27806 27807found=no 27808if test "$with_libedit" != no; then 27809 save_CFLAGS="$CFLAGS" 27810 save_LIBS="$LIBS" 27811 if test "$libedit_cflags" -a "$libedit_libs"; then 27812 CFLAGS="$libedit_cflags $save_CFLAGS" 27813 LIBS="$libedit_libs $save_LIBS" 27814 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 27815if test "x$ac_cv_header_readline_h" = xyes 27816then : 27817 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h 27818 27819fi 27820ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27821if test "x$ac_cv_header_readline_readline_h" = xyes 27822then : 27823 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 27824 27825fi 27826ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 27827if test "x$ac_cv_header_editline_readline_h" = xyes 27828then : 27829 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h 27830 27831fi 27832 27833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27834/* end confdefs.h. */ 27835#include <stdio.h> 27836#if defined(HAVE_READLINE_READLINE_H) 27837#include <readline/readline.h> 27838#elif defined(HAVE_READLINE_H) 27839#include <readline.h> 27840#elif defined(HAVE_EDITLINE_READLINE_H) 27841#include <editline/readline.h> 27842#endif 27843 27844int 27845main (void) 27846{ 27847 27848 ; 27849 return 0; 27850} 27851_ACEOF 27852if ac_fn_c_try_link "$LINENO" 27853then : 27854 27855 INCLUDE_libedit="$libedit_cflags" 27856 LIB_libedit="$libedit_libs" 27857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_libedit_config" >&5 27858printf "%s\n" "from $with_libedit_config" >&6; } 27859 found=yes 27860fi 27861rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27862 conftest$ac_exeext conftest.$ac_ext 27863 fi 27864 if test "$found" = no; then 27865 ires= lres= 27866 for i in $header_dirs; do 27867 CFLAGS="-I$i $save_CFLAGS" 27868 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 27869if test "x$ac_cv_header_readline_h" = xyes 27870then : 27871 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h 27872 27873fi 27874ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27875if test "x$ac_cv_header_readline_readline_h" = xyes 27876then : 27877 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 27878 27879fi 27880ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 27881if test "x$ac_cv_header_editline_readline_h" = xyes 27882then : 27883 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h 27884 27885fi 27886 27887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27888/* end confdefs.h. */ 27889#include <stdio.h> 27890#if defined(HAVE_READLINE_READLINE_H) 27891#include <readline/readline.h> 27892#elif defined(HAVE_READLINE_H) 27893#include <readline.h> 27894#elif defined(HAVE_EDITLINE_READLINE_H) 27895#include <editline/readline.h> 27896#endif 27897 27898int 27899main (void) 27900{ 27901 27902 ; 27903 return 0; 27904} 27905_ACEOF 27906if ac_fn_c_try_compile "$LINENO" 27907then : 27908 ires=$i;break 27909fi 27910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27911 done 27912 for i in $lib_dirs; do 27913 LIBS="-L$i -ledit $save_LIBS" 27914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27915/* end confdefs.h. */ 27916#include <stdio.h> 27917#if defined(HAVE_READLINE_READLINE_H) 27918#include <readline/readline.h> 27919#elif defined(HAVE_READLINE_H) 27920#include <readline.h> 27921#elif defined(HAVE_EDITLINE_READLINE_H) 27922#include <editline/readline.h> 27923#endif 27924 27925int 27926main (void) 27927{ 27928 27929 ; 27930 return 0; 27931} 27932_ACEOF 27933if ac_fn_c_try_link "$LINENO" 27934then : 27935 lres=$i;break 27936fi 27937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27938 conftest$ac_exeext conftest.$ac_ext 27939 done 27940 if test "$ires" -a "$lres" -a "$with_libedit" != "no"; then 27941 INCLUDE_libedit="-I$ires" 27942 LIB_libedit="-L$lres -ledit " 27943 found=yes 27944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 27945printf "%s\n" "headers $ires, libraries $lres" >&6; } 27946 fi 27947 fi 27948 CFLAGS="$save_CFLAGS" 27949 LIBS="$save_LIBS" 27950fi 27951 27952if test "$found" = yes; then 27953 27954printf "%s\n" "#define LIBEDIT 1" >>confdefs.h 27955 27956 with_libedit=yes 27957else 27958 with_libedit=no 27959 INCLUDE_libedit= 27960 LIB_libedit= 27961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27962printf "%s\n" "no" >&6; } 27963fi 27964 27965 27966 27967 27968 27969 27970 27971subdirs="$subdirs lib/libedit" 27972 27973 27974 27975# Check whether --enable-bigendian was given. 27976if test ${enable_bigendian+y} 27977then : 27978 enableval=$enable_bigendian; krb_cv_c_bigendian=yes 27979fi 27980 27981# Check whether --enable-littleendian was given. 27982if test ${enable_littleendian+y} 27983then : 27984 enableval=$enable_littleendian; krb_cv_c_bigendian=no 27985fi 27986 27987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte order is known at compile time" >&5 27988printf %s "checking whether byte order is known at compile time... " >&6; } 27989if test ${krb_cv_c_bigendian_compile+y} 27990then : 27991 printf %s "(cached) " >&6 27992else $as_nop 27993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27994/* end confdefs.h. */ 27995 27996#include <sys/types.h> 27997#include <sys/param.h> 27998#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 27999 bogus endian macros 28000#endif 28001_ACEOF 28002if ac_fn_c_try_compile "$LINENO" 28003then : 28004 krb_cv_c_bigendian_compile=yes 28005else $as_nop 28006 krb_cv_c_bigendian_compile=no 28007fi 28008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28009fi 28010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian_compile" >&5 28011printf "%s\n" "$krb_cv_c_bigendian_compile" >&6; } 28012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 28013printf %s "checking whether byte ordering is bigendian... " >&6; } 28014if test ${krb_cv_c_bigendian+y} 28015then : 28016 printf %s "(cached) " >&6 28017else $as_nop 28018 28019 if test "$krb_cv_c_bigendian_compile" = "yes"; then 28020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28021/* end confdefs.h. */ 28022 28023#include <sys/types.h> 28024#include <sys/param.h> 28025#if BYTE_ORDER != BIG_ENDIAN 28026 not big endian 28027#endif 28028_ACEOF 28029if ac_fn_c_try_compile "$LINENO" 28030then : 28031 krb_cv_c_bigendian=yes 28032else $as_nop 28033 krb_cv_c_bigendian=no 28034fi 28035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28036 else 28037 if test "$cross_compiling" = yes 28038then : 28039 as_fn_error $? "specify either --enable-bigendian or --enable-littleendian" "$LINENO" 5 28040else $as_nop 28041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28042/* end confdefs.h. */ 28043main (int argc, char **argv) { 28044 /* Are we little or big endian? From Harbison&Steele. */ 28045 union 28046 { 28047 long l; 28048 char c[sizeof (long)]; 28049 } u; 28050 u.l = 1; 28051 exit (u.c[sizeof (long) - 1] == 1); 28052 } 28053_ACEOF 28054if ac_fn_c_try_run "$LINENO" 28055then : 28056 krb_cv_c_bigendian=no 28057else $as_nop 28058 krb_cv_c_bigendian=yes 28059fi 28060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28061 conftest.$ac_objext conftest.beam conftest.$ac_ext 28062fi 28063 28064 fi 28065 28066fi 28067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian" >&5 28068printf "%s\n" "$krb_cv_c_bigendian" >&6; } 28069if test "$krb_cv_c_bigendian" = "yes"; then 28070 28071printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 28072fi 28073if test "$krb_cv_c_bigendian_compile" = "yes"; then 28074 28075printf "%s\n" "#define ENDIANESS_IN_SYS_PARAM_H 1" >>confdefs.h 28076fi 28077 28078 28079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 28080printf %s "checking for inline... " >&6; } 28081if test ${ac_cv_c_inline+y} 28082then : 28083 printf %s "(cached) " >&6 28084else $as_nop 28085 ac_cv_c_inline=no 28086for ac_kw in inline __inline__ __inline; do 28087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28088/* end confdefs.h. */ 28089#ifndef __cplusplus 28090typedef int foo_t; 28091static $ac_kw foo_t static_foo (void) {return 0; } 28092$ac_kw foo_t foo (void) {return 0; } 28093#endif 28094 28095_ACEOF 28096if ac_fn_c_try_compile "$LINENO" 28097then : 28098 ac_cv_c_inline=$ac_kw 28099fi 28100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28101 test "$ac_cv_c_inline" != no && break 28102done 28103 28104fi 28105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 28106printf "%s\n" "$ac_cv_c_inline" >&6; } 28107 28108case $ac_cv_c_inline in 28109 inline | yes) ;; 28110 *) 28111 case $ac_cv_c_inline in 28112 no) ac_val=;; 28113 *) ac_val=$ac_cv_c_inline;; 28114 esac 28115 cat >>confdefs.h <<_ACEOF 28116#ifndef __cplusplus 28117#define inline $ac_val 28118#endif 28119_ACEOF 28120 ;; 28121esac 28122 28123 28124 28125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 28126printf %s "checking for an ANSI C-conforming const... " >&6; } 28127if test ${ac_cv_c_const+y} 28128then : 28129 printf %s "(cached) " >&6 28130else $as_nop 28131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28132/* end confdefs.h. */ 28133 28134int 28135main (void) 28136{ 28137 28138#ifndef __cplusplus 28139 /* Ultrix mips cc rejects this sort of thing. */ 28140 typedef int charset[2]; 28141 const charset cs = { 0, 0 }; 28142 /* SunOS 4.1.1 cc rejects this. */ 28143 char const *const *pcpcc; 28144 char **ppc; 28145 /* NEC SVR4.0.2 mips cc rejects this. */ 28146 struct point {int x, y;}; 28147 static struct point const zero = {0,0}; 28148 /* IBM XL C 1.02.0.0 rejects this. 28149 It does not let you subtract one const X* pointer from another in 28150 an arm of an if-expression whose if-part is not a constant 28151 expression */ 28152 const char *g = "string"; 28153 pcpcc = &g + (g ? g-g : 0); 28154 /* HPUX 7.0 cc rejects these. */ 28155 ++pcpcc; 28156 ppc = (char**) pcpcc; 28157 pcpcc = (char const *const *) ppc; 28158 { /* SCO 3.2v4 cc rejects this sort of thing. */ 28159 char tx; 28160 char *t = &tx; 28161 char const *s = 0 ? (char *) 0 : (char const *) 0; 28162 28163 *t++ = 0; 28164 if (s) return 0; 28165 } 28166 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 28167 int x[] = {25, 17}; 28168 const int *foo = &x[0]; 28169 ++foo; 28170 } 28171 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 28172 typedef const int *iptr; 28173 iptr p = 0; 28174 ++p; 28175 } 28176 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 28177 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 28178 struct s { int j; const int *ap[3]; } bx; 28179 struct s *b = &bx; b->j = 5; 28180 } 28181 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 28182 const int foo = 10; 28183 if (!foo) return 0; 28184 } 28185 return !cs[0] && !zero.x; 28186#endif 28187 28188 ; 28189 return 0; 28190} 28191_ACEOF 28192if ac_fn_c_try_compile "$LINENO" 28193then : 28194 ac_cv_c_const=yes 28195else $as_nop 28196 ac_cv_c_const=no 28197fi 28198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28199fi 28200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 28201printf "%s\n" "$ac_cv_c_const" >&6; } 28202if test $ac_cv_c_const = no; then 28203 28204printf "%s\n" "#define const /**/" >>confdefs.h 28205 28206fi 28207 28208ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 28209if test "x$ac_cv_type_off_t" = xyes 28210then : 28211 28212else $as_nop 28213 28214printf "%s\n" "#define off_t long int" >>confdefs.h 28215 28216fi 28217 28218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 28219printf %s "checking for mode_t... " >&6; } 28220if test ${ac_cv_type_mode_t+y} 28221then : 28222 printf %s "(cached) " >&6 28223else $as_nop 28224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28225/* end confdefs.h. */ 28226#include <sys/types.h> 28227#if STDC_HEADERS 28228#include <stdlib.h> 28229#include <stddef.h> 28230#endif 28231 28232_ACEOF 28233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28234 $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1 28235then : 28236 ac_cv_type_mode_t=yes 28237else $as_nop 28238 ac_cv_type_mode_t=no 28239fi 28240rm -rf conftest* 28241 28242fi 28243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mode_t" >&5 28244printf "%s\n" "$ac_cv_type_mode_t" >&6; } 28245if test $ac_cv_type_mode_t = no; then 28246 28247printf "%s\n" "#define mode_t unsigned short" >>confdefs.h 28248 28249fi 28250 28251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 28252printf %s "checking for sig_atomic_t... " >&6; } 28253if test ${ac_cv_type_sig_atomic_t+y} 28254then : 28255 printf %s "(cached) " >&6 28256else $as_nop 28257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28258/* end confdefs.h. */ 28259#include <sys/types.h> 28260#if STDC_HEADERS 28261#include <stdlib.h> 28262#include <stddef.h> 28263#endif 28264#include <signal.h> 28265_ACEOF 28266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28267 $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1 28268then : 28269 ac_cv_type_sig_atomic_t=yes 28270else $as_nop 28271 ac_cv_type_sig_atomic_t=no 28272fi 28273rm -rf conftest* 28274 28275fi 28276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 28277printf "%s\n" "$ac_cv_type_sig_atomic_t" >&6; } 28278if test $ac_cv_type_sig_atomic_t = no; then 28279 28280printf "%s\n" "#define sig_atomic_t int" >>confdefs.h 28281 28282fi 28283 28284 28285 28286cv=`echo "long long" | sed 'y%./+- %__p__%'` 28287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 28288printf %s "checking for long long... " >&6; } 28289if eval test \${ac_cv_type_$cv+y} 28290then : 28291 printf %s "(cached) " >&6 28292else $as_nop 28293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28294/* end confdefs.h. */ 28295 28296#include <sys/types.h> 28297#if STDC_HEADERS 28298#include <stdlib.h> 28299#include <stddef.h> 28300#endif 28301 28302int 28303main (void) 28304{ 28305long long foo; 28306 ; 28307 return 0; 28308} 28309_ACEOF 28310if ac_fn_c_try_compile "$LINENO" 28311then : 28312 eval "ac_cv_type_$cv=yes" 28313else $as_nop 28314 eval "ac_cv_type_$cv=no" 28315fi 28316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28317fi 28318ac_foo=`eval echo \\$ac_cv_type_$cv` 28319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 28320printf "%s\n" "$ac_foo" >&6; } 28321if test "$ac_foo" = yes; then 28322 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 28323if false; then 28324 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 28325if test "x$ac_cv_type_long_long" = xyes 28326then : 28327 28328printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h 28329 28330 28331fi 28332 28333fi 28334 28335printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 28336 28337fi 28338 28339 28340# Obsolete code to be removed. 28341if test $ac_cv_header_sys_time_h = yes; then 28342 28343printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 28344 28345fi 28346# End of obsolete code. 28347 28348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 28349printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 28350if test ${ac_cv_struct_tm+y} 28351then : 28352 printf %s "(cached) " >&6 28353else $as_nop 28354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28355/* end confdefs.h. */ 28356#include <sys/types.h> 28357#include <time.h> 28358 28359int 28360main (void) 28361{ 28362struct tm tm; 28363 int *p = &tm.tm_sec; 28364 return !p; 28365 ; 28366 return 0; 28367} 28368_ACEOF 28369if ac_fn_c_try_compile "$LINENO" 28370then : 28371 ac_cv_struct_tm=time.h 28372else $as_nop 28373 ac_cv_struct_tm=sys/time.h 28374fi 28375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28376fi 28377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 28378printf "%s\n" "$ac_cv_struct_tm" >&6; } 28379if test $ac_cv_struct_tm = sys/time.h; then 28380 28381printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 28382 28383fi 28384 28385 28386# Autoupdate added the next two lines to ensure that your configure 28387# script's behavior did not change. They are probably safe to remove. 28388 28389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 28390printf %s "checking for egrep... " >&6; } 28391if test ${ac_cv_path_EGREP+y} 28392then : 28393 printf %s "(cached) " >&6 28394else $as_nop 28395 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 28396 then ac_cv_path_EGREP="$GREP -E" 28397 else 28398 if test -z "$EGREP"; then 28399 ac_path_EGREP_found=false 28400 # Loop through the user's path and test for each of PROGNAME-LIST 28401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 28403do 28404 IFS=$as_save_IFS 28405 case $as_dir in #((( 28406 '') as_dir=./ ;; 28407 */) ;; 28408 *) as_dir=$as_dir/ ;; 28409 esac 28410 for ac_prog in egrep 28411 do 28412 for ac_exec_ext in '' $ac_executable_extensions; do 28413 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 28414 as_fn_executable_p "$ac_path_EGREP" || continue 28415# Check for GNU ac_path_EGREP and select it if it is found. 28416 # Check for GNU $ac_path_EGREP 28417case `"$ac_path_EGREP" --version 2>&1` in 28418*GNU*) 28419 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 28420*) 28421 ac_count=0 28422 printf %s 0123456789 >"conftest.in" 28423 while : 28424 do 28425 cat "conftest.in" "conftest.in" >"conftest.tmp" 28426 mv "conftest.tmp" "conftest.in" 28427 cp "conftest.in" "conftest.nl" 28428 printf "%s\n" 'EGREP' >> "conftest.nl" 28429 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 28430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 28431 as_fn_arith $ac_count + 1 && ac_count=$as_val 28432 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 28433 # Best one so far, save it but keep looking for a better one 28434 ac_cv_path_EGREP="$ac_path_EGREP" 28435 ac_path_EGREP_max=$ac_count 28436 fi 28437 # 10*(2^10) chars as input seems more than enough 28438 test $ac_count -gt 10 && break 28439 done 28440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 28441esac 28442 28443 $ac_path_EGREP_found && break 3 28444 done 28445 done 28446 done 28447IFS=$as_save_IFS 28448 if test -z "$ac_cv_path_EGREP"; then 28449 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 28450 fi 28451else 28452 ac_cv_path_EGREP=$EGREP 28453fi 28454 28455 fi 28456fi 28457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 28458printf "%s\n" "$ac_cv_path_EGREP" >&6; } 28459 EGREP="$ac_cv_path_EGREP" 28460 28461 28462 28463 28464ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonDigest.h" "ac_cv_header_CommonCrypto_CommonDigest_h" "$ac_includes_default" 28465if test "x$ac_cv_header_CommonCrypto_CommonDigest_h" = xyes 28466then : 28467 printf "%s\n" "#define HAVE_COMMONCRYPTO_COMMONDIGEST_H 1" >>confdefs.h 28468 28469fi 28470ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonCryptor.h" "ac_cv_header_CommonCrypto_CommonCryptor_h" "$ac_includes_default" 28471if test "x$ac_cv_header_CommonCrypto_CommonCryptor_h" = xyes 28472then : 28473 printf "%s\n" "#define HAVE_COMMONCRYPTO_COMMONCRYPTOR_H 1" >>confdefs.h 28474 28475fi 28476ac_fn_c_check_header_compile "$LINENO" "arpa/telnet.h" "ac_cv_header_arpa_telnet_h" "$ac_includes_default" 28477if test "x$ac_cv_header_arpa_telnet_h" = xyes 28478then : 28479 printf "%s\n" "#define HAVE_ARPA_TELNET_H 1" >>confdefs.h 28480 28481fi 28482ac_fn_c_check_header_compile "$LINENO" "bind/bitypes.h" "ac_cv_header_bind_bitypes_h" "$ac_includes_default" 28483if test "x$ac_cv_header_bind_bitypes_h" = xyes 28484then : 28485 printf "%s\n" "#define HAVE_BIND_BITYPES_H 1" >>confdefs.h 28486 28487fi 28488ac_fn_c_check_header_compile "$LINENO" "bsdsetjmp.h" "ac_cv_header_bsdsetjmp_h" "$ac_includes_default" 28489if test "x$ac_cv_header_bsdsetjmp_h" = xyes 28490then : 28491 printf "%s\n" "#define HAVE_BSDSETJMP_H 1" >>confdefs.h 28492 28493fi 28494ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 28495if test "x$ac_cv_header_curses_h" = xyes 28496then : 28497 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h 28498 28499fi 28500ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 28501if test "x$ac_cv_header_dlfcn_h" = xyes 28502then : 28503 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 28504 28505fi 28506ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 28507if test "x$ac_cv_header_execinfo_h" = xyes 28508then : 28509 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 28510 28511fi 28512ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 28513if test "x$ac_cv_header_fnmatch_h" = xyes 28514then : 28515 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 28516 28517fi 28518ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 28519if test "x$ac_cv_header_inttypes_h" = xyes 28520then : 28521 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 28522 28523fi 28524ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" 28525if test "x$ac_cv_header_io_h" = xyes 28526then : 28527 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h 28528 28529fi 28530ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" 28531if test "x$ac_cv_header_libutil_h" = xyes 28532then : 28533 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h 28534 28535fi 28536ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 28537if test "x$ac_cv_header_limits_h" = xyes 28538then : 28539 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 28540 28541fi 28542ac_fn_c_check_header_compile "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 28543if test "x$ac_cv_header_maillock_h" = xyes 28544then : 28545 printf "%s\n" "#define HAVE_MAILLOCK_H 1" >>confdefs.h 28546 28547fi 28548ac_fn_c_check_header_compile "$LINENO" "netgroup.h" "ac_cv_header_netgroup_h" "$ac_includes_default" 28549if test "x$ac_cv_header_netgroup_h" = xyes 28550then : 28551 printf "%s\n" "#define HAVE_NETGROUP_H 1" >>confdefs.h 28552 28553fi 28554ac_fn_c_check_header_compile "$LINENO" "netinet/in6_machtypes.h" "ac_cv_header_netinet_in6_machtypes_h" "$ac_includes_default" 28555if test "x$ac_cv_header_netinet_in6_machtypes_h" = xyes 28556then : 28557 printf "%s\n" "#define HAVE_NETINET_IN6_MACHTYPES_H 1" >>confdefs.h 28558 28559fi 28560ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 28561if test "x$ac_cv_header_netinet_tcp_h" = xyes 28562then : 28563 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 28564 28565fi 28566ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 28567if test "x$ac_cv_header_pthread_h" = xyes 28568then : 28569 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 28570 28571fi 28572ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" 28573if test "x$ac_cv_header_pty_h" = xyes 28574then : 28575 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h 28576 28577fi 28578ac_fn_c_check_header_compile "$LINENO" "sac.h" "ac_cv_header_sac_h" "$ac_includes_default" 28579if test "x$ac_cv_header_sac_h" = xyes 28580then : 28581 printf "%s\n" "#define HAVE_SAC_H 1" >>confdefs.h 28582 28583fi 28584ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default" 28585if test "x$ac_cv_header_sgtty_h" = xyes 28586then : 28587 printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h 28588 28589fi 28590ac_fn_c_check_header_compile "$LINENO" "siad.h" "ac_cv_header_siad_h" "$ac_includes_default" 28591if test "x$ac_cv_header_siad_h" = xyes 28592then : 28593 printf "%s\n" "#define HAVE_SIAD_H 1" >>confdefs.h 28594 28595fi 28596ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 28597if test "x$ac_cv_header_signal_h" = xyes 28598then : 28599 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 28600 28601fi 28602ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 28603if test "x$ac_cv_header_strings_h" = xyes 28604then : 28605 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 28606 28607fi 28608ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 28609if test "x$ac_cv_header_stropts_h" = xyes 28610then : 28611 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 28612 28613fi 28614ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" 28615if test "x$ac_cv_header_sys_bitypes_h" = xyes 28616then : 28617 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h 28618 28619fi 28620ac_fn_c_check_header_compile "$LINENO" "sys/category.h" "ac_cv_header_sys_category_h" "$ac_includes_default" 28621if test "x$ac_cv_header_sys_category_h" = xyes 28622then : 28623 printf "%s\n" "#define HAVE_SYS_CATEGORY_H 1" >>confdefs.h 28624 28625fi 28626ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" 28627if test "x$ac_cv_header_sys_file_h" = xyes 28628then : 28629 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h 28630 28631fi 28632ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" 28633if test "x$ac_cv_header_sys_filio_h" = xyes 28634then : 28635 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h 28636 28637fi 28638ac_fn_c_check_header_compile "$LINENO" "sys/ioccom.h" "ac_cv_header_sys_ioccom_h" "$ac_includes_default" 28639if test "x$ac_cv_header_sys_ioccom_h" = xyes 28640then : 28641 printf "%s\n" "#define HAVE_SYS_IOCCOM_H 1" >>confdefs.h 28642 28643fi 28644ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 28645if test "x$ac_cv_header_sys_mman_h" = xyes 28646then : 28647 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 28648 28649fi 28650ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 28651if test "x$ac_cv_header_sys_param_h" = xyes 28652then : 28653 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 28654 28655fi 28656ac_fn_c_check_header_compile "$LINENO" "sys/pty.h" "ac_cv_header_sys_pty_h" "$ac_includes_default" 28657if test "x$ac_cv_header_sys_pty_h" = xyes 28658then : 28659 printf "%s\n" "#define HAVE_SYS_PTY_H 1" >>confdefs.h 28660 28661fi 28662ac_fn_c_check_header_compile "$LINENO" "sys/ptyio.h" "ac_cv_header_sys_ptyio_h" "$ac_includes_default" 28663if test "x$ac_cv_header_sys_ptyio_h" = xyes 28664then : 28665 printf "%s\n" "#define HAVE_SYS_PTYIO_H 1" >>confdefs.h 28666 28667fi 28668ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 28669if test "x$ac_cv_header_sys_select_h" = xyes 28670then : 28671 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 28672 28673fi 28674ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 28675if test "x$ac_cv_header_sys_socket_h" = xyes 28676then : 28677 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 28678 28679fi 28680ac_fn_c_check_header_compile "$LINENO" "sys/str_tty.h" "ac_cv_header_sys_str_tty_h" "$ac_includes_default" 28681if test "x$ac_cv_header_sys_str_tty_h" = xyes 28682then : 28683 printf "%s\n" "#define HAVE_SYS_STR_TTY_H 1" >>confdefs.h 28684 28685fi 28686ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default" 28687if test "x$ac_cv_header_sys_stream_h" = xyes 28688then : 28689 printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h 28690 28691fi 28692ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default" 28693if test "x$ac_cv_header_sys_stropts_h" = xyes 28694then : 28695 printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h 28696 28697fi 28698ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 28699if test "x$ac_cv_header_sys_syscall_h" = xyes 28700then : 28701 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h 28702 28703fi 28704ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default" 28705if test "x$ac_cv_header_sys_termio_h" = xyes 28706then : 28707 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h 28708 28709fi 28710ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" 28711if test "x$ac_cv_header_sys_timeb_h" = xyes 28712then : 28713 printf "%s\n" "#define HAVE_SYS_TIMEB_H 1" >>confdefs.h 28714 28715fi 28716ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" 28717if test "x$ac_cv_header_sys_times_h" = xyes 28718then : 28719 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h 28720 28721fi 28722ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 28723if test "x$ac_cv_header_sys_types_h" = xyes 28724then : 28725 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 28726 28727fi 28728ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 28729if test "x$ac_cv_header_sys_un_h" = xyes 28730then : 28731 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 28732 28733fi 28734ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 28735if test "x$ac_cv_header_locale_h" = xyes 28736then : 28737 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h 28738 28739fi 28740ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" 28741if test "x$ac_cv_header_termcap_h" = xyes 28742then : 28743 printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h 28744 28745fi 28746ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" 28747if test "x$ac_cv_header_termio_h" = xyes 28748then : 28749 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h 28750 28751fi 28752ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 28753if test "x$ac_cv_header_termios_h" = xyes 28754then : 28755 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 28756 28757fi 28758ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 28759if test "x$ac_cv_header_time_h" = xyes 28760then : 28761 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 28762 28763fi 28764ac_fn_c_check_header_compile "$LINENO" "tmpdir.h" "ac_cv_header_tmpdir_h" "$ac_includes_default" 28765if test "x$ac_cv_header_tmpdir_h" = xyes 28766then : 28767 printf "%s\n" "#define HAVE_TMPDIR_H 1" >>confdefs.h 28768 28769fi 28770ac_fn_c_check_header_compile "$LINENO" "udb.h" "ac_cv_header_udb_h" "$ac_includes_default" 28771if test "x$ac_cv_header_udb_h" = xyes 28772then : 28773 printf "%s\n" "#define HAVE_UDB_H 1" >>confdefs.h 28774 28775fi 28776ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" 28777if test "x$ac_cv_header_util_h" = xyes 28778then : 28779 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h 28780 28781fi 28782 28783 28784ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 28785if test "x$ac_cv_header_term_h" = xyes 28786then : 28787 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h 28788 28789fi 28790 28791 28792ac_fn_c_check_header_compile "$LINENO" "asl.h" "ac_cv_header_asl_h" " 28793#include <asl.h> 28794#ifndef ASL_STRING_EMERG 28795#error ASL_STRING_EMERG missing 28796#endif 28797" 28798if test "x$ac_cv_header_asl_h" = xyes 28799then : 28800 printf "%s\n" "#define HAVE_ASL_H 1" >>confdefs.h 28801 28802fi 28803 28804 28805ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 28806#if HAVE_SYS_SOCKET_H 28807#include <sys/socket.h> 28808#endif 28809" 28810if test "x$ac_cv_header_net_if_h" = xyes 28811then : 28812 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 28813 28814fi 28815 28816 28817ac_fn_c_check_header_compile "$LINENO" "sys/ptyvar.h" "ac_cv_header_sys_ptyvar_h" "$ac_includes_default 28818#if HAVE_SYS_TTY_H 28819#include <sys/tty.h> 28820#endif 28821" 28822if test "x$ac_cv_header_sys_ptyvar_h" = xyes 28823then : 28824 printf "%s\n" "#define HAVE_SYS_PTYVAR_H 1" >>confdefs.h 28825 28826fi 28827 28828 28829ac_fn_c_check_header_compile "$LINENO" "sys/strtty.h" "ac_cv_header_sys_strtty_h" "$ac_includes_default 28830#if HAVE_TERMIOS_H 28831#include <termios.h> 28832#endif 28833#if HAVE_SYS_STREAM_H 28834#include <sys/stream.h> 28835#endif 28836" 28837if test "x$ac_cv_header_sys_strtty_h" = xyes 28838then : 28839 printf "%s\n" "#define HAVE_SYS_STRTTY_H 1" >>confdefs.h 28840 28841fi 28842 28843 28844ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default 28845#if HAVE_SYS_TYPES_H 28846#include <sys/types.h> 28847#endif 28848#if HAVE_SYS_PARAM_H 28849#include <sys/param.h> 28850#endif 28851" 28852if test "x$ac_cv_header_sys_ucred_h" = xyes 28853then : 28854 printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h 28855 28856fi 28857 28858 28859ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default 28860#include <security/pam_appl.h> 28861 28862" 28863if test "x$ac_cv_header_security_pam_modules_h" = xyes 28864then : 28865 printf "%s\n" "#define HAVE_SECURITY_PAM_MODULES_H 1" >>confdefs.h 28866 28867fi 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for logwtmp" >&5 28879printf %s "checking for logwtmp... " >&6; } 28880if test ${ac_cv_funclib_logwtmp+y} 28881then : 28882 printf %s "(cached) " >&6 28883else $as_nop 28884 28885if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 28886 ac_save_LIBS="$LIBS" 28887 for ac_lib in "" util; do 28888 case "$ac_lib" in 28889 "") ;; 28890 yes) ac_lib="" ;; 28891 no) continue ;; 28892 -l*) ;; 28893 *) ac_lib="-l$ac_lib" ;; 28894 esac 28895 LIBS=" $ac_lib $ac_save_LIBS" 28896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28897/* end confdefs.h. */ 28898 28899#ifdef HAVE_UTIL_H 28900#include <util.h> 28901#endif 28902 28903int 28904main (void) 28905{ 28906logwtmp(0,0,0) 28907 ; 28908 return 0; 28909} 28910_ACEOF 28911if ac_fn_c_try_link "$LINENO" 28912then : 28913 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 28914fi 28915rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28916 conftest$ac_exeext conftest.$ac_ext 28917 done 28918 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 28919 LIBS="$ac_save_LIBS" 28920fi 28921 28922fi 28923 28924 28925eval "ac_res=\$ac_cv_funclib_logwtmp" 28926 28927if false; then 28928 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp" 28929if test "x$ac_cv_func_logwtmp" = xyes 28930then : 28931 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h 28932 28933fi 28934 28935fi 28936# logwtmp 28937eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28938eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28939eval "LIB_logwtmp=$ac_res" 28940 28941case "$ac_res" in 28942 yes) 28943 eval "ac_cv_func_logwtmp=yes" 28944 eval "LIB_logwtmp=" 28945 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 28946 28947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28948printf "%s\n" "yes" >&6; } 28949 ;; 28950 no) 28951 eval "ac_cv_func_logwtmp=no" 28952 eval "LIB_logwtmp=" 28953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28954printf "%s\n" "no" >&6; } 28955 ;; 28956 *) 28957 eval "ac_cv_func_logwtmp=yes" 28958 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 28959 28960 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 28961 28962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 28963printf "%s\n" "yes, in $ac_res" >&6; } 28964 ;; 28965esac 28966 28967 28968 28969 28970 28971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for logout" >&5 28972printf %s "checking for logout... " >&6; } 28973if test ${ac_cv_funclib_logout+y} 28974then : 28975 printf %s "(cached) " >&6 28976else $as_nop 28977 28978if eval "test \"\$ac_cv_func_logout\" != yes" ; then 28979 ac_save_LIBS="$LIBS" 28980 for ac_lib in "" util; do 28981 case "$ac_lib" in 28982 "") ;; 28983 yes) ac_lib="" ;; 28984 no) continue ;; 28985 -l*) ;; 28986 *) ac_lib="-l$ac_lib" ;; 28987 esac 28988 LIBS=" $ac_lib $ac_save_LIBS" 28989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28990/* end confdefs.h. */ 28991 28992#ifdef HAVE_UTIL_H 28993#include <util.h> 28994#endif 28995 28996int 28997main (void) 28998{ 28999logout(0) 29000 ; 29001 return 0; 29002} 29003_ACEOF 29004if ac_fn_c_try_link "$LINENO" 29005then : 29006 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break 29007fi 29008rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29009 conftest$ac_exeext conftest.$ac_ext 29010 done 29011 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}" 29012 LIBS="$ac_save_LIBS" 29013fi 29014 29015fi 29016 29017 29018eval "ac_res=\$ac_cv_funclib_logout" 29019 29020if false; then 29021 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout" 29022if test "x$ac_cv_func_logout" = xyes 29023then : 29024 printf "%s\n" "#define HAVE_LOGOUT 1" >>confdefs.h 29025 29026fi 29027 29028fi 29029# logout 29030eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29031eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29032eval "LIB_logout=$ac_res" 29033 29034case "$ac_res" in 29035 yes) 29036 eval "ac_cv_func_logout=yes" 29037 eval "LIB_logout=" 29038 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29039 29040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29041printf "%s\n" "yes" >&6; } 29042 ;; 29043 no) 29044 eval "ac_cv_func_logout=no" 29045 eval "LIB_logout=" 29046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29047printf "%s\n" "no" >&6; } 29048 ;; 29049 *) 29050 eval "ac_cv_func_logout=yes" 29051 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29052 29053 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29054 29055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29056printf "%s\n" "yes, in $ac_res" >&6; } 29057 ;; 29058esac 29059 29060 29061 29062 29063 29064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5 29065printf %s "checking for openpty... " >&6; } 29066if test ${ac_cv_funclib_openpty+y} 29067then : 29068 printf %s "(cached) " >&6 29069else $as_nop 29070 29071if eval "test \"\$ac_cv_func_openpty\" != yes" ; then 29072 ac_save_LIBS="$LIBS" 29073 for ac_lib in "" util; do 29074 case "$ac_lib" in 29075 "") ;; 29076 yes) ac_lib="" ;; 29077 no) continue ;; 29078 -l*) ;; 29079 *) ac_lib="-l$ac_lib" ;; 29080 esac 29081 LIBS=" $ac_lib $ac_save_LIBS" 29082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29083/* end confdefs.h. */ 29084 29085#ifdef HAVE_UTIL_H 29086#include <util.h> 29087#endif 29088 29089int 29090main (void) 29091{ 29092openpty(0,0,0,0,0) 29093 ; 29094 return 0; 29095} 29096_ACEOF 29097if ac_fn_c_try_link "$LINENO" 29098then : 29099 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break 29100fi 29101rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29102 conftest$ac_exeext conftest.$ac_ext 29103 done 29104 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}" 29105 LIBS="$ac_save_LIBS" 29106fi 29107 29108fi 29109 29110 29111eval "ac_res=\$ac_cv_funclib_openpty" 29112 29113if false; then 29114 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 29115if test "x$ac_cv_func_openpty" = xyes 29116then : 29117 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h 29118 29119fi 29120 29121fi 29122# openpty 29123eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29124eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29125eval "LIB_openpty=$ac_res" 29126 29127case "$ac_res" in 29128 yes) 29129 eval "ac_cv_func_openpty=yes" 29130 eval "LIB_openpty=" 29131 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29132 29133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29134printf "%s\n" "yes" >&6; } 29135 ;; 29136 no) 29137 eval "ac_cv_func_openpty=no" 29138 eval "LIB_openpty=" 29139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29140printf "%s\n" "no" >&6; } 29141 ;; 29142 *) 29143 eval "ac_cv_func_openpty=yes" 29144 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29145 29146 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29147 29148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29149printf "%s\n" "yes, in $ac_res" >&6; } 29150 ;; 29151esac 29152 29153 29154 29155 29156 29157 29158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5 29159printf %s "checking for tgetent... " >&6; } 29160if test ${ac_cv_funclib_tgetent+y} 29161then : 29162 printf %s "(cached) " >&6 29163else $as_nop 29164 29165if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 29166 ac_save_LIBS="$LIBS" 29167 for ac_lib in "" termcap ncurses curses; do 29168 case "$ac_lib" in 29169 "") ;; 29170 yes) ac_lib="" ;; 29171 no) continue ;; 29172 -l*) ;; 29173 *) ac_lib="-l$ac_lib" ;; 29174 esac 29175 LIBS=" $ac_lib $ac_save_LIBS" 29176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29177/* end confdefs.h. */ 29178 29179#ifdef HAVE_TERMCAP_H 29180#include <termcap.h> 29181#endif 29182#ifdef HAVE_CURSES_H 29183#include <curses.h> 29184#endif 29185 29186int 29187main (void) 29188{ 29189tgetent(0,0) 29190 ; 29191 return 0; 29192} 29193_ACEOF 29194if ac_fn_c_try_link "$LINENO" 29195then : 29196 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 29197fi 29198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29199 conftest$ac_exeext conftest.$ac_ext 29200 done 29201 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 29202 LIBS="$ac_save_LIBS" 29203fi 29204 29205fi 29206 29207 29208eval "ac_res=\$ac_cv_funclib_tgetent" 29209 29210if false; then 29211 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" 29212if test "x$ac_cv_func_tgetent" = xyes 29213then : 29214 printf "%s\n" "#define HAVE_TGETENT 1" >>confdefs.h 29215 29216fi 29217 29218fi 29219# tgetent 29220eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29221eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29222eval "LIB_tgetent=$ac_res" 29223 29224case "$ac_res" in 29225 yes) 29226 eval "ac_cv_func_tgetent=yes" 29227 eval "LIB_tgetent=" 29228 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29229 29230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29231printf "%s\n" "yes" >&6; } 29232 ;; 29233 no) 29234 eval "ac_cv_func_tgetent=no" 29235 eval "LIB_tgetent=" 29236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29237printf "%s\n" "no" >&6; } 29238 ;; 29239 *) 29240 eval "ac_cv_func_tgetent=yes" 29241 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29242 29243 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29244 29245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29246printf "%s\n" "yes, in $ac_res" >&6; } 29247 ;; 29248esac 29249 29250 29251 29252 29253ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" 29254if test "x$ac_cv_func__getpty" = xyes 29255then : 29256 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h 29257 29258fi 29259ac_fn_c_check_func "$LINENO" "_scrsize" "ac_cv_func__scrsize" 29260if test "x$ac_cv_func__scrsize" = xyes 29261then : 29262 printf "%s\n" "#define HAVE__SCRSIZE 1" >>confdefs.h 29263 29264fi 29265ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 29266if test "x$ac_cv_func_arc4random" = xyes 29267then : 29268 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 29269 29270fi 29271ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 29272if test "x$ac_cv_func_backtrace" = xyes 29273then : 29274 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 29275 29276fi 29277ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 29278if test "x$ac_cv_func_fcntl" = xyes 29279then : 29280 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 29281 29282fi 29283ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 29284if test "x$ac_cv_func_fork" = xyes 29285then : 29286 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h 29287 29288fi 29289ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" 29290if test "x$ac_cv_func_getpeereid" = xyes 29291then : 29292 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h 29293 29294fi 29295ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred" 29296if test "x$ac_cv_func_getpeerucred" = xyes 29297then : 29298 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h 29299 29300fi 29301ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 29302if test "x$ac_cv_func_grantpt" = xyes 29303then : 29304 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h 29305 29306fi 29307ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" 29308if test "x$ac_cv_func_kill" = xyes 29309then : 29310 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h 29311 29312fi 29313ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 29314if test "x$ac_cv_func_mktime" = xyes 29315then : 29316 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h 29317 29318fi 29319ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname" 29320if test "x$ac_cv_func_ptsname" = xyes 29321then : 29322 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h 29323 29324fi 29325ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand" 29326if test "x$ac_cv_func_rand" = xyes 29327then : 29328 printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h 29329 29330fi 29331ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke" 29332if test "x$ac_cv_func_revoke" = xyes 29333then : 29334 printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h 29335 29336fi 29337ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 29338if test "x$ac_cv_func_select" = xyes 29339then : 29340 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 29341 29342fi 29343ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 29344if test "x$ac_cv_func_setitimer" = xyes 29345then : 29346 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 29347 29348fi 29349ac_fn_c_check_func "$LINENO" "setpcred" "ac_cv_func_setpcred" 29350if test "x$ac_cv_func_setpcred" = xyes 29351then : 29352 printf "%s\n" "#define HAVE_SETPCRED 1" >>confdefs.h 29353 29354fi 29355ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" 29356if test "x$ac_cv_func_setpgid" = xyes 29357then : 29358 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h 29359 29360fi 29361ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 29362if test "x$ac_cv_func_setproctitle" = xyes 29363then : 29364 printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h 29365 29366fi 29367ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 29368if test "x$ac_cv_func_setregid" = xyes 29369then : 29370 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 29371 29372fi 29373ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 29374if test "x$ac_cv_func_setresgid" = xyes 29375then : 29376 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 29377 29378fi 29379ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 29380if test "x$ac_cv_func_setresuid" = xyes 29381then : 29382 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 29383 29384fi 29385ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 29386if test "x$ac_cv_func_setreuid" = xyes 29387then : 29388 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 29389 29390fi 29391ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" 29392if test "x$ac_cv_func_setsid" = xyes 29393then : 29394 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h 29395 29396fi 29397ac_fn_c_check_func "$LINENO" "setutent" "ac_cv_func_setutent" 29398if test "x$ac_cv_func_setutent" = xyes 29399then : 29400 printf "%s\n" "#define HAVE_SETUTENT 1" >>confdefs.h 29401 29402fi 29403ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 29404if test "x$ac_cv_func_sigaction" = xyes 29405then : 29406 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 29407 29408fi 29409ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 29410if test "x$ac_cv_func_strstr" = xyes 29411then : 29412 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h 29413 29414fi 29415ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname" 29416if test "x$ac_cv_func_ttyname" = xyes 29417then : 29418 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h 29419 29420fi 29421ac_fn_c_check_func "$LINENO" "ttyslot" "ac_cv_func_ttyslot" 29422if test "x$ac_cv_func_ttyslot" = xyes 29423then : 29424 printf "%s\n" "#define HAVE_TTYSLOT 1" >>confdefs.h 29425 29426fi 29427ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" 29428if test "x$ac_cv_func_umask" = xyes 29429then : 29430 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h 29431 29432fi 29433ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt" 29434if test "x$ac_cv_func_unlockpt" = xyes 29435then : 29436 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h 29437 29438fi 29439ac_fn_c_check_func "$LINENO" "vhangup" "ac_cv_func_vhangup" 29440if test "x$ac_cv_func_vhangup" = xyes 29441then : 29442 printf "%s\n" "#define HAVE_VHANGUP 1" >>confdefs.h 29443 29444fi 29445ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 29446if test "x$ac_cv_func_waitpid" = xyes 29447then : 29448 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h 29449 29450fi 29451ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain" 29452if test "x$ac_cv_func_yp_get_default_domain" = xyes 29453then : 29454 printf "%s\n" "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h 29455 29456fi 29457 29458 29459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking for __sync_add_and_fetch" >&5 29460printf %s "checking checking for __sync_add_and_fetch... " >&6; } 29461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29462/* end confdefs.h. */ 29463#include <sys/types.h> 29464int 29465main (void) 29466{ 29467unsigned int foo, bar; bar = __sync_add_and_fetch(&foo, 1); 29468 ; 29469 return 0; 29470} 29471_ACEOF 29472if ac_fn_c_try_link "$LINENO" 29473then : 29474 ac_rk_have___sync_add_and_fetch=yes 29475else $as_nop 29476 ac_rk_have___sync_add_and_fetch=no 29477fi 29478rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29479 conftest$ac_exeext conftest.$ac_ext 29480if test "$ac_rk_have___sync_add_and_fetch" = "yes" ; then 29481 29482printf "%s\n" "#define HAVE___SYNC_ADD_AND_FETCH 1" >>confdefs.h 29483 29484fi 29485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have___sync_add_and_fetch" >&5 29486printf "%s\n" "$ac_rk_have___sync_add_and_fetch" >&6; } 29487 29488 29489 29490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 29491printf %s "checking for working mmap... " >&6; } 29492if test ${ac_cv_func_mmap_fixed_mapped+y} 29493then : 29494 printf %s "(cached) " >&6 29495else $as_nop 29496 if test "$cross_compiling" = yes 29497then : 29498 case "$host_os" in # (( 29499 # Guess yes on platforms where we know the result. 29500 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 29501 # If we don't know, assume the worst. 29502 *) ac_cv_func_mmap_fixed_mapped=no ;; 29503 esac 29504else $as_nop 29505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29506/* end confdefs.h. */ 29507$ac_includes_default 29508/* malloc might have been renamed as rpl_malloc. */ 29509#undef malloc 29510 29511/* Thanks to Mike Haertel and Jim Avera for this test. 29512 Here is a matrix of mmap possibilities: 29513 mmap private not fixed 29514 mmap private fixed at somewhere currently unmapped 29515 mmap private fixed at somewhere already mapped 29516 mmap shared not fixed 29517 mmap shared fixed at somewhere currently unmapped 29518 mmap shared fixed at somewhere already mapped 29519 For private mappings, we should verify that changes cannot be read() 29520 back from the file, nor mmap's back from the file at a different 29521 address. (There have been systems where private was not correctly 29522 implemented like the infamous i386 svr4.0, and systems where the 29523 VM page cache was not coherent with the file system buffer cache 29524 like early versions of FreeBSD and possibly contemporary NetBSD.) 29525 For shared mappings, we should conversely verify that changes get 29526 propagated back to all the places they're supposed to be. 29527 29528 Grep wants private fixed already mapped. 29529 The main things grep needs to know about mmap are: 29530 * does it exist and is it safe to write into the mmap'd area 29531 * how to use it (BSD variants) */ 29532 29533#include <fcntl.h> 29534#include <sys/mman.h> 29535 29536/* This mess was copied from the GNU getpagesize.h. */ 29537#ifndef HAVE_GETPAGESIZE 29538# ifdef _SC_PAGESIZE 29539# define getpagesize() sysconf(_SC_PAGESIZE) 29540# else /* no _SC_PAGESIZE */ 29541# ifdef HAVE_SYS_PARAM_H 29542# include <sys/param.h> 29543# ifdef EXEC_PAGESIZE 29544# define getpagesize() EXEC_PAGESIZE 29545# else /* no EXEC_PAGESIZE */ 29546# ifdef NBPG 29547# define getpagesize() NBPG * CLSIZE 29548# ifndef CLSIZE 29549# define CLSIZE 1 29550# endif /* no CLSIZE */ 29551# else /* no NBPG */ 29552# ifdef NBPC 29553# define getpagesize() NBPC 29554# else /* no NBPC */ 29555# ifdef PAGESIZE 29556# define getpagesize() PAGESIZE 29557# endif /* PAGESIZE */ 29558# endif /* no NBPC */ 29559# endif /* no NBPG */ 29560# endif /* no EXEC_PAGESIZE */ 29561# else /* no HAVE_SYS_PARAM_H */ 29562# define getpagesize() 8192 /* punt totally */ 29563# endif /* no HAVE_SYS_PARAM_H */ 29564# endif /* no _SC_PAGESIZE */ 29565 29566#endif /* no HAVE_GETPAGESIZE */ 29567 29568int 29569main (void) 29570{ 29571 char *data, *data2, *data3; 29572 const char *cdata2; 29573 int i, pagesize; 29574 int fd, fd2; 29575 29576 pagesize = getpagesize (); 29577 29578 /* First, make a file with some known garbage in it. */ 29579 data = (char *) malloc (pagesize); 29580 if (!data) 29581 return 1; 29582 for (i = 0; i < pagesize; ++i) 29583 *(data + i) = rand (); 29584 umask (0); 29585 fd = creat ("conftest.mmap", 0600); 29586 if (fd < 0) 29587 return 2; 29588 if (write (fd, data, pagesize) != pagesize) 29589 return 3; 29590 close (fd); 29591 29592 /* Next, check that the tail of a page is zero-filled. File must have 29593 non-zero length, otherwise we risk SIGBUS for entire page. */ 29594 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 29595 if (fd2 < 0) 29596 return 4; 29597 cdata2 = ""; 29598 if (write (fd2, cdata2, 1) != 1) 29599 return 5; 29600 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 29601 if (data2 == MAP_FAILED) 29602 return 6; 29603 for (i = 0; i < pagesize; ++i) 29604 if (*(data2 + i)) 29605 return 7; 29606 close (fd2); 29607 if (munmap (data2, pagesize)) 29608 return 8; 29609 29610 /* Next, try to mmap the file at a fixed address which already has 29611 something else allocated at it. If we can, also make sure that 29612 we see the same garbage. */ 29613 fd = open ("conftest.mmap", O_RDWR); 29614 if (fd < 0) 29615 return 9; 29616 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 29617 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 29618 return 10; 29619 for (i = 0; i < pagesize; ++i) 29620 if (*(data + i) != *(data2 + i)) 29621 return 11; 29622 29623 /* Finally, make sure that changes to the mapped area do not 29624 percolate back to the file as seen by read(). (This is a bug on 29625 some variants of i386 svr4.0.) */ 29626 for (i = 0; i < pagesize; ++i) 29627 *(data2 + i) = *(data2 + i) + 1; 29628 data3 = (char *) malloc (pagesize); 29629 if (!data3) 29630 return 12; 29631 if (read (fd, data3, pagesize) != pagesize) 29632 return 13; 29633 for (i = 0; i < pagesize; ++i) 29634 if (*(data + i) != *(data3 + i)) 29635 return 14; 29636 close (fd); 29637 free (data); 29638 free (data3); 29639 return 0; 29640} 29641_ACEOF 29642if ac_fn_c_try_run "$LINENO" 29643then : 29644 ac_cv_func_mmap_fixed_mapped=yes 29645else $as_nop 29646 ac_cv_func_mmap_fixed_mapped=no 29647fi 29648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29649 conftest.$ac_objext conftest.beam conftest.$ac_ext 29650fi 29651 29652fi 29653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 29654printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 29655if test $ac_cv_func_mmap_fixed_mapped = yes; then 29656 29657printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 29658 29659fi 29660rm -f conftest.mmap conftest.txt 29661 29662 29663 29664 29665ac_fn_c_check_header_compile "$LINENO" "capability.h" "ac_cv_header_capability_h" "$ac_includes_default" 29666if test "x$ac_cv_header_capability_h" = xyes 29667then : 29668 printf "%s\n" "#define HAVE_CAPABILITY_H 1" >>confdefs.h 29669 29670fi 29671ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 29672if test "x$ac_cv_header_sys_capability_h" = xyes 29673then : 29674 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h 29675 29676fi 29677 29678 29679ac_fn_c_check_func "$LINENO" "sgi_getcapabilitybyname" "ac_cv_func_sgi_getcapabilitybyname" 29680if test "x$ac_cv_func_sgi_getcapabilitybyname" = xyes 29681then : 29682 printf "%s\n" "#define HAVE_SGI_GETCAPABILITYBYNAME 1" >>confdefs.h 29683 29684fi 29685ac_fn_c_check_func "$LINENO" "cap_set_proc" "ac_cv_func_cap_set_proc" 29686if test "x$ac_cv_func_cap_set_proc" = xyes 29687then : 29688 printf "%s\n" "#define HAVE_CAP_SET_PROC 1" >>confdefs.h 29689 29690fi 29691 29692 29693 29694 29695 29696 29697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dladdr" >&5 29698printf %s "checking for dladdr... " >&6; } 29699if test ${ac_cv_funclib_dladdr+y} 29700then : 29701 printf %s "(cached) " >&6 29702else $as_nop 29703 29704if eval "test \"\$ac_cv_func_dladdr\" != yes" ; then 29705 ac_save_LIBS="$LIBS" 29706 for ac_lib in "" dl; do 29707 case "$ac_lib" in 29708 "") ;; 29709 yes) ac_lib="" ;; 29710 no) continue ;; 29711 -l*) ;; 29712 *) ac_lib="-l$ac_lib" ;; 29713 esac 29714 LIBS=" $ac_lib $ac_save_LIBS" 29715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29716/* end confdefs.h. */ 29717 29718#ifdef HAVE_DLFCN_H 29719#include <dlfcn.h> 29720#endif 29721int 29722main (void) 29723{ 29724dladdr(0,0) 29725 ; 29726 return 0; 29727} 29728_ACEOF 29729if ac_fn_c_try_link "$LINENO" 29730then : 29731 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dladdr=$ac_lib; else ac_cv_funclib_dladdr=yes; fi";break 29732fi 29733rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29734 conftest$ac_exeext conftest.$ac_ext 29735 done 29736 eval "ac_cv_funclib_dladdr=\${ac_cv_funclib_dladdr-no}" 29737 LIBS="$ac_save_LIBS" 29738fi 29739 29740fi 29741 29742 29743eval "ac_res=\$ac_cv_funclib_dladdr" 29744 29745if false; then 29746 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" 29747if test "x$ac_cv_func_dladdr" = xyes 29748then : 29749 printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h 29750 29751fi 29752 29753fi 29754# dladdr 29755eval "ac_tr_func=HAVE_`echo dladdr | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29756eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29757eval "LIB_dladdr=$ac_res" 29758 29759case "$ac_res" in 29760 yes) 29761 eval "ac_cv_func_dladdr=yes" 29762 eval "LIB_dladdr=" 29763 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29764 29765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29766printf "%s\n" "yes" >&6; } 29767 ;; 29768 no) 29769 eval "ac_cv_func_dladdr=no" 29770 eval "LIB_dladdr=" 29771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29772printf "%s\n" "no" >&6; } 29773 ;; 29774 *) 29775 eval "ac_cv_func_dladdr=yes" 29776 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29777 29778 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29779 29780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29781printf "%s\n" "yes, in $ac_res" >&6; } 29782 ;; 29783esac 29784 29785 29786 if test "$ac_cv_funclib_dladdr" != no; then 29787 HAVE_DLADDR_TRUE= 29788 HAVE_DLADDR_FALSE='#' 29789else 29790 HAVE_DLADDR_TRUE='#' 29791 HAVE_DLADDR_FALSE= 29792fi 29793 29794 29795 29796 29797 29798 29799 29800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5 29801printf %s "checking for getpwnam_r... " >&6; } 29802if test ${ac_cv_funclib_getpwnam_r+y} 29803then : 29804 printf %s "(cached) " >&6 29805else $as_nop 29806 29807if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 29808 ac_save_LIBS="$LIBS" 29809 for ac_lib in "" c_r; do 29810 case "$ac_lib" in 29811 "") ;; 29812 yes) ac_lib="" ;; 29813 no) continue ;; 29814 -l*) ;; 29815 *) ac_lib="-l$ac_lib" ;; 29816 esac 29817 LIBS=" $ac_lib $ac_save_LIBS" 29818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29819/* end confdefs.h. */ 29820 29821int 29822main (void) 29823{ 29824getpwnam_r() 29825 ; 29826 return 0; 29827} 29828_ACEOF 29829if ac_fn_c_try_link "$LINENO" 29830then : 29831 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 29832fi 29833rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29834 conftest$ac_exeext conftest.$ac_ext 29835 done 29836 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 29837 LIBS="$ac_save_LIBS" 29838fi 29839 29840fi 29841 29842 29843eval "ac_res=\$ac_cv_funclib_getpwnam_r" 29844 29845if false; then 29846 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" 29847if test "x$ac_cv_func_getpwnam_r" = xyes 29848then : 29849 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h 29850 29851fi 29852 29853fi 29854# getpwnam_r 29855eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29856eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29857eval "LIB_getpwnam_r=$ac_res" 29858 29859case "$ac_res" in 29860 yes) 29861 eval "ac_cv_func_getpwnam_r=yes" 29862 eval "LIB_getpwnam_r=" 29863 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29864 29865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29866printf "%s\n" "yes" >&6; } 29867 ;; 29868 no) 29869 eval "ac_cv_func_getpwnam_r=no" 29870 eval "LIB_getpwnam_r=" 29871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29872printf "%s\n" "no" >&6; } 29873 ;; 29874 *) 29875 eval "ac_cv_func_getpwnam_r=yes" 29876 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29877 29878 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29879 29880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29881printf "%s\n" "yes, in $ac_res" >&6; } 29882 ;; 29883esac 29884 29885 29886if test "$ac_cv_func_getpwnam_r" = yes; then 29887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r is posix" >&5 29888printf %s "checking if getpwnam_r is posix... " >&6; } 29889if test ${ac_cv_func_getpwnam_r_posix+y} 29890then : 29891 printf %s "(cached) " >&6 29892else $as_nop 29893 ac_libs="$LIBS" 29894 LIBS="$LIBS $LIB_getpwnam_r" 29895 if test "$cross_compiling" = yes 29896then : 29897 : 29898else $as_nop 29899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29900/* end confdefs.h. */ 29901 29902#define _POSIX_PTHREAD_SEMANTICS 29903#include <pwd.h> 29904int main(int argc, char **argv) 29905{ 29906 struct passwd pw, *pwd; 29907 return getpwnam_r("", &pw, 0, 0, &pwd) < 0; 29908} 29909 29910_ACEOF 29911if ac_fn_c_try_run "$LINENO" 29912then : 29913 ac_cv_func_getpwnam_r_posix=yes 29914else $as_nop 29915 ac_cv_func_getpwnam_r_posix=no 29916fi 29917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29918 conftest.$ac_objext conftest.beam conftest.$ac_ext 29919fi 29920 29921LIBS="$ac_libs" 29922fi 29923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix" >&5 29924printf "%s\n" "$ac_cv_func_getpwnam_r_posix" >&6; } 29925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _POSIX_PTHREAD_SEMANTICS is needed" >&5 29926printf %s "checking if _POSIX_PTHREAD_SEMANTICS is needed... " >&6; } 29927if test ${ac_cv_func_getpwnam_r_posix_def+y} 29928then : 29929 printf %s "(cached) " >&6 29930else $as_nop 29931 ac_libs="$LIBS" 29932 LIBS="$LIBS $LIB_getpwnam_r" 29933 if test "$cross_compiling" = yes 29934then : 29935 : 29936else $as_nop 29937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29938/* end confdefs.h. */ 29939 29940#include <pwd.h> 29941int main(int argc, char **argv) 29942{ 29943 struct passwd pw, *pwd; 29944 return getpwnam_r("", &pw, 0, 0, &pwd) < 0; 29945} 29946 29947_ACEOF 29948if ac_fn_c_try_run "$LINENO" 29949then : 29950 ac_cv_func_getpwnam_r_posix_def=no 29951else $as_nop 29952 ac_cv_func_getpwnam_r_posix_def=yes 29953fi 29954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29955 conftest.$ac_objext conftest.beam conftest.$ac_ext 29956fi 29957 29958LIBS="$ac_libs" 29959fi 29960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix_def" >&5 29961printf "%s\n" "$ac_cv_func_getpwnam_r_posix_def" >&6; } 29962if test "$ac_cv_func_getpwnam_r_posix" = yes; then 29963 29964printf "%s\n" "#define POSIX_GETPWNAM_R 1" >>confdefs.h 29965 29966fi 29967if test "$ac_cv_func_getpwnam_r_posix" = yes -a "$ac_cv_func_getpwnam_r_posix_def" = yes; then 29968 29969printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 29970 29971fi 29972fi 29973 29974 29975if test "$enable_pthread_support" != no; then 29976 saved_LIBS="$LIBS" 29977 LIBS="$LIBS $PTHREADS_LIBS" 29978 29979 29980 29981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for door_create" >&5 29982printf %s "checking for door_create... " >&6; } 29983if test ${ac_cv_funclib_door_create+y} 29984then : 29985 printf %s "(cached) " >&6 29986else $as_nop 29987 29988if eval "test \"\$ac_cv_func_door_create\" != yes" ; then 29989 ac_save_LIBS="$LIBS" 29990 for ac_lib in "" door; do 29991 case "$ac_lib" in 29992 "") ;; 29993 yes) ac_lib="" ;; 29994 no) continue ;; 29995 -l*) ;; 29996 *) ac_lib="-l$ac_lib" ;; 29997 esac 29998 LIBS=" $ac_lib $ac_save_LIBS" 29999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30000/* end confdefs.h. */ 30001 30002int 30003main (void) 30004{ 30005door_create() 30006 ; 30007 return 0; 30008} 30009_ACEOF 30010if ac_fn_c_try_link "$LINENO" 30011then : 30012 eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break 30013fi 30014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30015 conftest$ac_exeext conftest.$ac_ext 30016 done 30017 eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}" 30018 LIBS="$ac_save_LIBS" 30019fi 30020 30021fi 30022 30023 30024eval "ac_res=\$ac_cv_funclib_door_create" 30025 30026if false; then 30027 ac_fn_c_check_func "$LINENO" "door_create" "ac_cv_func_door_create" 30028if test "x$ac_cv_func_door_create" = xyes 30029then : 30030 printf "%s\n" "#define HAVE_DOOR_CREATE 1" >>confdefs.h 30031 30032fi 30033 30034fi 30035# door_create 30036eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30037eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30038eval "LIB_door_create=$ac_res" 30039 30040case "$ac_res" in 30041 yes) 30042 eval "ac_cv_func_door_create=yes" 30043 eval "LIB_door_create=" 30044 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 30045 30046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30047printf "%s\n" "yes" >&6; } 30048 ;; 30049 no) 30050 eval "ac_cv_func_door_create=no" 30051 eval "LIB_door_create=" 30052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30053printf "%s\n" "no" >&6; } 30054 ;; 30055 *) 30056 eval "ac_cv_func_door_create=yes" 30057 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 30058 30059 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 30060 30061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 30062printf "%s\n" "yes, in $ac_res" >&6; } 30063 ;; 30064esac 30065 30066 30067 LIBS="$saved_LIBS" 30068fi 30069 30070# Check whether --enable-kcm was given. 30071if test ${enable_kcm+y} 30072then : 30073 enableval=$enable_kcm; 30074else $as_nop 30075 enable_kcm=yes 30076fi 30077 30078 30079if test "$enable_kcm" = yes ; then 30080 if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then 30081 enable_kcm=no 30082 fi 30083fi 30084if test "$enable_kcm" = yes; then 30085 30086printf "%s\n" "#define HAVE_KCM 1" >>confdefs.h 30087 30088fi 30089 if test "$enable_kcm" = yes; then 30090 KCM_TRUE= 30091 KCM_FALSE='#' 30092else 30093 KCM_TRUE='#' 30094 KCM_FALSE= 30095fi 30096 30097 30098 30099 30100ac_fn_c_check_func "$LINENO" "getudbnam" "ac_cv_func_getudbnam" 30101if test "x$ac_cv_func_getudbnam" = xyes 30102then : 30103 printf "%s\n" "#define HAVE_GETUDBNAM 1" >>confdefs.h 30104 30105fi 30106ac_fn_c_check_func "$LINENO" "setlim" "ac_cv_func_setlim" 30107if test "x$ac_cv_func_setlim" = xyes 30108then : 30109 printf "%s\n" "#define HAVE_SETLIM 1" >>confdefs.h 30110 30111fi 30112 30113 30114 30115ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" " 30116#ifdef HAVE_INTTYPES_H 30117#include <inttypes.h> 30118#endif 30119#ifdef HAVE_SYS_TYPES_H 30120#include <sys/types.h> 30121#endif 30122#ifdef HAVE_SYS_BITYPES_H 30123#include <sys/bitypes.h> 30124#endif 30125#ifdef HAVE_BIND_BITYPES_H 30126#include <bind/bitypes.h> 30127#endif 30128#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30129#include <netinet/in6_machtypes.h> 30130#endif 30131 30132" 30133if test "x$ac_cv_type_int8_t" = xyes 30134then : 30135 30136printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h 30137 30138 30139fi 30140ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" " 30141#ifdef HAVE_INTTYPES_H 30142#include <inttypes.h> 30143#endif 30144#ifdef HAVE_SYS_TYPES_H 30145#include <sys/types.h> 30146#endif 30147#ifdef HAVE_SYS_BITYPES_H 30148#include <sys/bitypes.h> 30149#endif 30150#ifdef HAVE_BIND_BITYPES_H 30151#include <bind/bitypes.h> 30152#endif 30153#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30154#include <netinet/in6_machtypes.h> 30155#endif 30156 30157" 30158if test "x$ac_cv_type_int16_t" = xyes 30159then : 30160 30161printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h 30162 30163 30164fi 30165ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" " 30166#ifdef HAVE_INTTYPES_H 30167#include <inttypes.h> 30168#endif 30169#ifdef HAVE_SYS_TYPES_H 30170#include <sys/types.h> 30171#endif 30172#ifdef HAVE_SYS_BITYPES_H 30173#include <sys/bitypes.h> 30174#endif 30175#ifdef HAVE_BIND_BITYPES_H 30176#include <bind/bitypes.h> 30177#endif 30178#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30179#include <netinet/in6_machtypes.h> 30180#endif 30181 30182" 30183if test "x$ac_cv_type_int32_t" = xyes 30184then : 30185 30186printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h 30187 30188 30189fi 30190ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" " 30191#ifdef HAVE_INTTYPES_H 30192#include <inttypes.h> 30193#endif 30194#ifdef HAVE_SYS_TYPES_H 30195#include <sys/types.h> 30196#endif 30197#ifdef HAVE_SYS_BITYPES_H 30198#include <sys/bitypes.h> 30199#endif 30200#ifdef HAVE_BIND_BITYPES_H 30201#include <bind/bitypes.h> 30202#endif 30203#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30204#include <netinet/in6_machtypes.h> 30205#endif 30206 30207" 30208if test "x$ac_cv_type_int64_t" = xyes 30209then : 30210 30211printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h 30212 30213 30214fi 30215ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" " 30216#ifdef HAVE_INTTYPES_H 30217#include <inttypes.h> 30218#endif 30219#ifdef HAVE_SYS_TYPES_H 30220#include <sys/types.h> 30221#endif 30222#ifdef HAVE_SYS_BITYPES_H 30223#include <sys/bitypes.h> 30224#endif 30225#ifdef HAVE_BIND_BITYPES_H 30226#include <bind/bitypes.h> 30227#endif 30228#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30229#include <netinet/in6_machtypes.h> 30230#endif 30231 30232" 30233if test "x$ac_cv_type_u_int8_t" = xyes 30234then : 30235 30236printf "%s\n" "#define HAVE_U_INT8_T 1" >>confdefs.h 30237 30238 30239fi 30240ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" " 30241#ifdef HAVE_INTTYPES_H 30242#include <inttypes.h> 30243#endif 30244#ifdef HAVE_SYS_TYPES_H 30245#include <sys/types.h> 30246#endif 30247#ifdef HAVE_SYS_BITYPES_H 30248#include <sys/bitypes.h> 30249#endif 30250#ifdef HAVE_BIND_BITYPES_H 30251#include <bind/bitypes.h> 30252#endif 30253#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30254#include <netinet/in6_machtypes.h> 30255#endif 30256 30257" 30258if test "x$ac_cv_type_u_int16_t" = xyes 30259then : 30260 30261printf "%s\n" "#define HAVE_U_INT16_T 1" >>confdefs.h 30262 30263 30264fi 30265ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" " 30266#ifdef HAVE_INTTYPES_H 30267#include <inttypes.h> 30268#endif 30269#ifdef HAVE_SYS_TYPES_H 30270#include <sys/types.h> 30271#endif 30272#ifdef HAVE_SYS_BITYPES_H 30273#include <sys/bitypes.h> 30274#endif 30275#ifdef HAVE_BIND_BITYPES_H 30276#include <bind/bitypes.h> 30277#endif 30278#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30279#include <netinet/in6_machtypes.h> 30280#endif 30281 30282" 30283if test "x$ac_cv_type_u_int32_t" = xyes 30284then : 30285 30286printf "%s\n" "#define HAVE_U_INT32_T 1" >>confdefs.h 30287 30288 30289fi 30290ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" " 30291#ifdef HAVE_INTTYPES_H 30292#include <inttypes.h> 30293#endif 30294#ifdef HAVE_SYS_TYPES_H 30295#include <sys/types.h> 30296#endif 30297#ifdef HAVE_SYS_BITYPES_H 30298#include <sys/bitypes.h> 30299#endif 30300#ifdef HAVE_BIND_BITYPES_H 30301#include <bind/bitypes.h> 30302#endif 30303#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30304#include <netinet/in6_machtypes.h> 30305#endif 30306 30307" 30308if test "x$ac_cv_type_u_int64_t" = xyes 30309then : 30310 30311printf "%s\n" "#define HAVE_U_INT64_T 1" >>confdefs.h 30312 30313 30314fi 30315ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" " 30316#ifdef HAVE_INTTYPES_H 30317#include <inttypes.h> 30318#endif 30319#ifdef HAVE_SYS_TYPES_H 30320#include <sys/types.h> 30321#endif 30322#ifdef HAVE_SYS_BITYPES_H 30323#include <sys/bitypes.h> 30324#endif 30325#ifdef HAVE_BIND_BITYPES_H 30326#include <bind/bitypes.h> 30327#endif 30328#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30329#include <netinet/in6_machtypes.h> 30330#endif 30331 30332" 30333if test "x$ac_cv_type_uint8_t" = xyes 30334then : 30335 30336printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h 30337 30338 30339fi 30340ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" " 30341#ifdef HAVE_INTTYPES_H 30342#include <inttypes.h> 30343#endif 30344#ifdef HAVE_SYS_TYPES_H 30345#include <sys/types.h> 30346#endif 30347#ifdef HAVE_SYS_BITYPES_H 30348#include <sys/bitypes.h> 30349#endif 30350#ifdef HAVE_BIND_BITYPES_H 30351#include <bind/bitypes.h> 30352#endif 30353#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30354#include <netinet/in6_machtypes.h> 30355#endif 30356 30357" 30358if test "x$ac_cv_type_uint16_t" = xyes 30359then : 30360 30361printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h 30362 30363 30364fi 30365ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" " 30366#ifdef HAVE_INTTYPES_H 30367#include <inttypes.h> 30368#endif 30369#ifdef HAVE_SYS_TYPES_H 30370#include <sys/types.h> 30371#endif 30372#ifdef HAVE_SYS_BITYPES_H 30373#include <sys/bitypes.h> 30374#endif 30375#ifdef HAVE_BIND_BITYPES_H 30376#include <bind/bitypes.h> 30377#endif 30378#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30379#include <netinet/in6_machtypes.h> 30380#endif 30381 30382" 30383if test "x$ac_cv_type_uint32_t" = xyes 30384then : 30385 30386printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h 30387 30388 30389fi 30390ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" " 30391#ifdef HAVE_INTTYPES_H 30392#include <inttypes.h> 30393#endif 30394#ifdef HAVE_SYS_TYPES_H 30395#include <sys/types.h> 30396#endif 30397#ifdef HAVE_SYS_BITYPES_H 30398#include <sys/bitypes.h> 30399#endif 30400#ifdef HAVE_BIND_BITYPES_H 30401#include <bind/bitypes.h> 30402#endif 30403#ifdef HAVE_NETINET_IN6_MACHTYPES_H 30404#include <netinet/in6_machtypes.h> 30405#endif 30406 30407" 30408if test "x$ac_cv_type_uint64_t" = xyes 30409then : 30410 30411printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h 30412 30413 30414fi 30415 30416 30417 30418 30419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for framework security" >&5 30420printf %s "checking for framework security... " >&6; } 30421if test ${rk_cv_framework_security+y} 30422then : 30423 printf %s "(cached) " >&6 30424else $as_nop 30425 30426if test "$rk_cv_framework_security" != yes; then 30427 ac_save_LIBS="$LIBS" 30428 LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation" 30429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30430/* end confdefs.h. */ 30431#include <Security/Security.h> 30432 30433int 30434main (void) 30435{ 30436SecKeychainSearchRef searchRef; 30437SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef); 30438CFRelease(&searchRef); 30439 30440 ; 30441 return 0; 30442} 30443_ACEOF 30444if ac_fn_c_try_link "$LINENO" 30445then : 30446 rk_cv_framework_security=yes 30447fi 30448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30449 conftest$ac_exeext conftest.$ac_ext 30450 LIBS="$ac_save_LIBS" 30451fi 30452 30453fi 30454 30455 30456if test "$rk_cv_framework_security" = yes; then 30457 30458printf "%s\n" "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h 30459 30460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30461printf "%s\n" "yes" >&6; } 30462else 30463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30464printf "%s\n" "no" >&6; } 30465fi 30466 if test "$rk_cv_framework_security" = yes; then 30467 FRAMEWORK_SECURITY_TRUE= 30468 FRAMEWORK_SECURITY_FALSE='#' 30469else 30470 FRAMEWORK_SECURITY_TRUE='#' 30471 FRAMEWORK_SECURITY_FALSE= 30472fi 30473 30474 30475if test "$rk_cv_framework_security" = yes; then 30476 30477if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then 30478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SecKeyGetCSPHandle needs a prototype" >&5 30479printf %s "checking if SecKeyGetCSPHandle needs a prototype... " >&6; } 30480if test ${ac_cv_func_SecKeyGetCSPHandle_noproto+y} 30481then : 30482 printf %s "(cached) " >&6 30483else $as_nop 30484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30485/* end confdefs.h. */ 30486#include <Security/Security.h> 30487struct foo { int foo; } xx; 30488extern int SecKeyGetCSPHandle (struct foo*); 30489int 30490main (void) 30491{ 30492SecKeyGetCSPHandle(&xx) 30493 ; 30494 return 0; 30495} 30496_ACEOF 30497if ac_fn_c_try_compile "$LINENO" 30498then : 30499 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes" 30500else $as_nop 30501 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no" 30502fi 30503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30504fi 30505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5 30506printf "%s\n" "$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; } 30507if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then 30508 30509printf "%s\n" "#define NEED_SECKEYGETCSPHANDLE_PROTO 1" >>confdefs.h 30510 30511fi 30512fi 30513 30514fi 30515 30516 30517 30518 30519 30520 30521ac_foo=no 30522build_editline=no 30523if test "$with_readline" = yes; then 30524 : 30525elif test "$with_libedit" = yes; then 30526 LIB_readline="${LIB_libedit}" 30527elif test "$ac_cv_func_readline" = yes; then 30528 : 30529else 30530 build_libedit=yes 30531 LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)" 30532fi 30533 if test "$build_libedit" = yes; then 30534 LIBEDIT_TRUE= 30535 LIBEDIT_FALSE='#' 30536else 30537 LIBEDIT_TRUE='#' 30538 LIBEDIT_FALSE= 30539fi 30540 30541 30542printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h 30543 30544 30545 30546 30547 30548printf "%s\n" "#define AUTHENTICATION 1" >>confdefs.h 30549 30550printf "%s\n" "#define ENCRYPTION 1" >>confdefs.h 30551 30552printf "%s\n" "#define DES_ENCRYPTION 1" >>confdefs.h 30553 30554printf "%s\n" "#define DIAGNOSTICS 1" >>confdefs.h 30555 30556printf "%s\n" "#define OLD_ENVIRON 1" >>confdefs.h 30557if false; then 30558 30559printf "%s\n" "#define ENV_HACK 1" >>confdefs.h 30560 30561fi 30562 30563# Simple test for streamspty, based on the existance of getmsg(), alas 30564# this breaks on SunOS4 which have streams but BSD-like ptys 30565# 30566# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 30567 30568case "$host" in 30569*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 30570 ;; 30571*) 30572 ac_fn_c_check_func "$LINENO" "getmsg" "ac_cv_func_getmsg" 30573if test "x$ac_cv_func_getmsg" = xyes 30574then : 30575 30576fi 30577 30578 if test "$ac_cv_func_getmsg" = "yes"; then 30579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getmsg works" >&5 30580printf %s "checking if getmsg works... " >&6; } 30581if test ${ac_cv_func_getmsg_works+y} 30582then : 30583 printf %s "(cached) " >&6 30584else $as_nop 30585 if test "$cross_compiling" = yes 30586then : 30587 ac_cv_func_getmsg_works=no 30588else $as_nop 30589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30590/* end confdefs.h. */ 30591 30592 #include <stdio.h> 30593 #include <errno.h> 30594 30595 int main(int argc, char **argv) 30596 { 30597 int ret; 30598 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 30599 if(ret < 0 && errno == ENOSYS) 30600 return 1; 30601 return 0; 30602 } 30603 30604_ACEOF 30605if ac_fn_c_try_run "$LINENO" 30606then : 30607 ac_cv_func_getmsg_works=yes 30608else $as_nop 30609 ac_cv_func_getmsg_works=no 30610fi 30611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30612 conftest.$ac_objext conftest.beam conftest.$ac_ext 30613fi 30614 30615fi 30616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getmsg_works" >&5 30617printf "%s\n" "$ac_cv_func_getmsg_works" >&6; } 30618 if test "$ac_cv_func_getmsg_works" = "yes"; then 30619 30620printf "%s\n" "#define HAVE_GETMSG 1" >>confdefs.h 30621 30622 30623printf "%s\n" "#define STREAMSPTY 1" >>confdefs.h 30624 30625 fi 30626 fi 30627 ;; 30628esac 30629 30630 30631 30632 30633 30634 30635# Extract the first word of "compile_et", so it can be a program name with args. 30636set dummy compile_et; ac_word=$2 30637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30638printf %s "checking for $ac_word... " >&6; } 30639if test ${ac_cv_prog_COMPILE_ET+y} 30640then : 30641 printf %s "(cached) " >&6 30642else $as_nop 30643 if test -n "$COMPILE_ET"; then 30644 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test. 30645else 30646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30647for as_dir in $PATH 30648do 30649 IFS=$as_save_IFS 30650 case $as_dir in #((( 30651 '') as_dir=./ ;; 30652 */) ;; 30653 *) as_dir=$as_dir/ ;; 30654 esac 30655 for ac_exec_ext in '' $ac_executable_extensions; do 30656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30657 ac_cv_prog_COMPILE_ET="compile_et" 30658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30659 break 2 30660 fi 30661done 30662 done 30663IFS=$as_save_IFS 30664 30665 test -z "$ac_cv_prog_COMPILE_ET" && ac_cv_prog_COMPILE_ET="no" 30666fi 30667fi 30668COMPILE_ET=$ac_cv_prog_COMPILE_ET 30669if test -n "$COMPILE_ET"; then 30670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5 30671printf "%s\n" "$COMPILE_ET" >&6; } 30672else 30673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30674printf "%s\n" "no" >&6; } 30675fi 30676 30677 30678 30679krb_cv_compile_et="no" 30680krb_cv_com_err_need_r="" 30681krb_cv_compile_et_cross=no 30682if test "${COMPILE_ET}" != "no"; then 30683 30684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compile_et has the features we need" >&5 30685printf %s "checking whether compile_et has the features we need... " >&6; } 30686cat > conftest_et.et <<'EOF' 30687error_table test conf 30688prefix CONFTEST 30689index 1 30690error_code CODE1, "CODE1" 30691index 128 30692error_code CODE2, "CODE2" 30693end 30694EOF 30695if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then 30696 save_CPPFLAGS="${CPPFLAGS}" 30697 if test -d "/usr/include/et"; then 30698 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" 30699 fi 30700 ac_ext=c 30701ac_cpp='$CPP $CPPFLAGS' 30702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30704ac_compiler_gnu=$ac_cv_c_compiler_gnu 30705 30706 if test "$cross_compiling" = yes 30707then : 30708 krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes 30709else $as_nop 30710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30711/* end confdefs.h. */ 30712 30713#include <com_err.h> 30714#include <string.h> 30715#include "conftest_et.h" 30716int main(int argc, char **argv){ 30717#ifndef ERROR_TABLE_BASE_conf 30718#error compile_et does not handle error_table N M 30719#endif 30720return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;} 30721 30722_ACEOF 30723if ac_fn_c_try_run "$LINENO" 30724then : 30725 krb_cv_compile_et="yes" 30726else $as_nop 30727 CPPFLAGS="${save_CPPFLAGS}" 30728fi 30729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30730 conftest.$ac_objext conftest.beam conftest.$ac_ext 30731fi 30732 30733fi 30734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_compile_et}" >&5 30735printf "%s\n" "${krb_cv_compile_et}" >&6; } 30736if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then 30737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for if com_err generates a initialize_conf_error_table_r" >&5 30738printf %s "checking for if com_err generates a initialize_conf_error_table_r... " >&6; } 30739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30740/* end confdefs.h. */ 30741#include "conftest_et.h" 30742_ACEOF 30743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30744 $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1 30745then : 30746 krb_cv_com_err_need_r="ok" 30747fi 30748rm -rf conftest* 30749 30750 if test X"$krb_cv_com_err_need_r" = X ; then 30751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30752printf "%s\n" "no" >&6; } 30753 krb_cv_compile_et=no 30754 else 30755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30756printf "%s\n" "yes" >&6; } 30757 fi 30758fi 30759rm -fr conftest* 30760fi 30761 30762if test "${krb_cv_compile_et_cross}" = yes ; then 30763 krb_cv_com_err="cross" 30764elif test "${krb_cv_compile_et}" = "yes"; then 30765 krb_cv_save_LIBS="${LIBS}" 30766 LIBS="${LIBS} -lcom_err" 30767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5 30768printf %s "checking for com_err... " >&6; } 30769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30770/* end confdefs.h. */ 30771#include <com_err.h> 30772int 30773main (void) 30774{ 30775 30776 const char *p; 30777 p = error_message(0); 30778 initialize_error_table_r(0,0,0,0); 30779 com_right_r(0, 0, 0, 0); 30780 30781 ; 30782 return 0; 30783} 30784_ACEOF 30785if ac_fn_c_try_link "$LINENO" 30786then : 30787 krb_cv_com_err="yes" 30788else $as_nop 30789 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}" 30790fi 30791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30792 conftest$ac_exeext conftest.$ac_ext 30793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_com_err}" >&5 30794printf "%s\n" "${krb_cv_com_err}" >&6; } 30795 LIBS="${krb_cv_save_LIBS}" 30796else 30797 krb_cv_com_err="no" 30798fi 30799 30800if test "${krb_cv_com_err}" = "yes"; then 30801 DIR_com_err="" 30802 LIB_com_err="-lcom_err" 30803 LIB_com_err_a="" 30804 LIB_com_err_so="" 30805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the already-installed com_err" >&5 30806printf "%s\n" "$as_me: Using the already-installed com_err" >&6;} 30807 COMPILE_ET="${ac_cv_prog_COMPILE_ET}" 30808 localcomerr=no 30809elif test "${krb_cv_com_err}" = "cross"; then 30810 DIR_com_err="com_err" 30811 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 30812 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 30813 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 30814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using our own com_err with toolchain compile_et" >&5 30815printf "%s\n" "$as_me: Using our own com_err with toolchain compile_et" >&6;} 30816 COMPILE_ET="${ac_cv_prog_COMPILE_ET}" 30817 localcomerr=yes 30818else 30819 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et" 30820 DIR_com_err="com_err" 30821 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 30822 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 30823 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 30824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using our own com_err" >&5 30825printf "%s\n" "$as_me: Using our own com_err" >&6;} 30826 localcomerr=yes 30827fi 30828 if test "$localcomerr" = yes; then 30829 COM_ERR_TRUE= 30830 COM_ERR_FALSE='#' 30831else 30832 COM_ERR_TRUE='#' 30833 COM_ERR_FALSE= 30834fi 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which authentication modules should be built" >&5 30845printf %s "checking which authentication modules should be built... " >&6; } 30846 30847z='sia afskauthlib' 30848LIB_AUTH_SUBDIRS= 30849for i in $z; do 30850case $i in 30851sia) 30852if test "$ac_cv_header_siad_h" = yes; then 30853 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 30854fi 30855;; 30856pam) 30857case "${host}" in 30858*-*-freebsd*) ac_cv_want_pam_krb4=no ;; 30859*) ac_cv_want_pam_krb4=yes ;; 30860esac 30861 30862if test "$ac_cv_want_pam_krb4" = yes -a \ 30863 "$ac_cv_header_security_pam_modules_h" = yes -a \ 30864 "$enable_shared" = yes; then 30865 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 30866fi 30867;; 30868afskauthlib) 30869case "${host}" in 30870*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 30871esac 30872;; 30873esac 30874done 30875if test "$LIB_AUTH_SUBDIRS"; then 30876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIB_AUTH_SUBDIRS" >&5 30877printf "%s\n" "$LIB_AUTH_SUBDIRS" >&6; } 30878else 30879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 30880printf "%s\n" "none" >&6; } 30881fi 30882 30883 30884 30885 30886# This is done by AC_OUTPUT but we need the result here. 30887test "x$prefix" = xNONE && prefix=$ac_default_prefix 30888test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30889 30890 30891 x="${bindir}" 30892 eval y="$x" 30893 while test "x$y" != "x$x"; do 30894 x="$y" 30895 eval y="$x" 30896 done 30897 30898printf "%s\n" "#define BINDIR \"$x\"" >>confdefs.h 30899 30900 x="${libdir}" 30901 eval y="$x" 30902 while test "x$y" != "x$x"; do 30903 x="$y" 30904 eval y="$x" 30905 done 30906 30907printf "%s\n" "#define LIBDIR \"$x\"" >>confdefs.h 30908 30909 x="${libexecdir}" 30910 eval y="$x" 30911 while test "x$y" != "x$x"; do 30912 x="$y" 30913 eval y="$x" 30914 done 30915 30916printf "%s\n" "#define LIBEXECDIR \"$x\"" >>confdefs.h 30917 30918 x="${localstatedir}" 30919 eval y="$x" 30920 while test "x$y" != "x$x"; do 30921 x="$y" 30922 eval y="$x" 30923 done 30924 30925printf "%s\n" "#define LOCALSTATEDIR \"$x\"" >>confdefs.h 30926 30927 x="${sbindir}" 30928 eval y="$x" 30929 while test "x$y" != "x$x"; do 30930 x="$y" 30931 eval y="$x" 30932 done 30933 30934printf "%s\n" "#define SBINDIR \"$x\"" >>confdefs.h 30935 30936 x="${sysconfdir}" 30937 eval y="$x" 30938 while test "x$y" != "x$x"; do 30939 x="$y" 30940 eval y="$x" 30941 done 30942 30943printf "%s\n" "#define SYSCONFDIR \"$x\"" >>confdefs.h 30944 30945 30946 30947 30948 30949# Check whether --enable-developer was given. 30950if test ${enable_developer+y} 30951then : 30952 enableval=$enable_developer; 30953fi 30954 30955if test "X$enable_developer" = Xyes; then 30956 dwflags="-Werror" 30957fi 30958 if test "X$enable_developer" = Xyes; then 30959 DEVELOPER_MODE_TRUE= 30960 DEVELOPER_MODE_FALSE='#' 30961else 30962 DEVELOPER_MODE_TRUE='#' 30963 DEVELOPER_MODE_FALSE= 30964fi 30965 30966 30967WFLAGS_NOUNUSED="" 30968if test -z "$WFLAGS" -a "$GCC" = "yes"; then 30969 # leave these out for now: 30970 # -Wcast-align doesn't work well on alpha osf/1 30971 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 30972 # -Wmissing-declarations -Wnested-externs 30973 # -Wstrict-overflow=5 30974 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags" 30975 30976 # 30977 # WFLAGS_LITE can be appended to WFLAGS to turn off a host of warnings 30978 # that fail for various bits of older code in appl/. Let's not use it 30979 # for the main libraries, though. 30980 WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-shadow" 30981 # -Wno-unused-result (not supported on gcc-4.2) 30982 30983fi 30984 30985 30986 30987 30988 30989 30990 30991# Check whether --enable-heimdal-documentation was given. 30992if test ${enable_heimdal_documentation+y} 30993then : 30994 enableval=$enable_heimdal_documentation; 30995fi 30996 30997 if test "$enable_heimdal_documentation" != no; then 30998 HEIMDAL_DOCUMENTATION_TRUE= 30999 HEIMDAL_DOCUMENTATION_FALSE='#' 31000else 31001 HEIMDAL_DOCUMENTATION_TRUE='#' 31002 HEIMDAL_DOCUMENTATION_FALSE= 31003fi 31004 31005 31006ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile lib/base/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/ipc/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/sqlite/Makefile lib/vers/Makefile lib/wind/Makefile po/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/dbutils/Makefile appl/gssmask/Makefile appl/otp/Makefile appl/su/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile tests/Makefile tests/bin/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile doc/Makefile tools/Makefile" 31007 31008 31009cat >confcache <<\_ACEOF 31010# This file is a shell script that caches the results of configure 31011# tests run on this system so they can be shared between configure 31012# scripts and configure runs, see configure's option --config-cache. 31013# It is not useful on other systems. If it contains results you don't 31014# want to keep, you may remove or edit it. 31015# 31016# config.status only pays attention to the cache file if you give it 31017# the --recheck option to rerun configure. 31018# 31019# `ac_cv_env_foo' variables (set or unset) will be overridden when 31020# loading this file, other *unset* `ac_cv_foo' will be assigned the 31021# following values. 31022 31023_ACEOF 31024 31025# The following way of writing the cache mishandles newlines in values, 31026# but we know of no workaround that is simple, portable, and efficient. 31027# So, we kill variables containing newlines. 31028# Ultrix sh set writes to stderr and can't be redirected directly, 31029# and sets the high bit in the cache file unless we assign to the vars. 31030( 31031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 31032 eval ac_val=\$$ac_var 31033 case $ac_val in #( 31034 *${as_nl}*) 31035 case $ac_var in #( 31036 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 31037printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 31038 esac 31039 case $ac_var in #( 31040 _ | IFS | as_nl) ;; #( 31041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 31042 *) { eval $ac_var=; unset $ac_var;} ;; 31043 esac ;; 31044 esac 31045 done 31046 31047 (set) 2>&1 | 31048 case $as_nl`(ac_space=' '; set) 2>&1` in #( 31049 *${as_nl}ac_space=\ *) 31050 # `set' does not quote correctly, so add quotes: double-quote 31051 # substitution turns \\\\ into \\, and sed turns \\ into \. 31052 sed -n \ 31053 "s/'/'\\\\''/g; 31054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 31055 ;; #( 31056 *) 31057 # `set' quotes correctly as required by POSIX, so do not add quotes. 31058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 31059 ;; 31060 esac | 31061 sort 31062) | 31063 sed ' 31064 /^ac_cv_env_/b end 31065 t clear 31066 :clear 31067 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 31068 t end 31069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 31070 :end' >>confcache 31071if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 31072 if test -w "$cache_file"; then 31073 if test "x$cache_file" != "x/dev/null"; then 31074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 31075printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 31076 if test ! -f "$cache_file" || test -h "$cache_file"; then 31077 cat confcache >"$cache_file" 31078 else 31079 case $cache_file in #( 31080 */* | ?:*) 31081 mv -f confcache "$cache_file"$$ && 31082 mv -f "$cache_file"$$ "$cache_file" ;; #( 31083 *) 31084 mv -f confcache "$cache_file" ;; 31085 esac 31086 fi 31087 fi 31088 else 31089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 31090printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 31091 fi 31092fi 31093rm -f confcache 31094 31095test "x$prefix" = xNONE && prefix=$ac_default_prefix 31096# Let make expand exec_prefix. 31097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 31098 31099DEFS=-DHAVE_CONFIG_H 31100 31101ac_libobjs= 31102ac_ltlibobjs= 31103U= 31104for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 31105 # 1. Remove the extension, and $U if already installed. 31106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 31107 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 31108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 31109 # will be set to the directory where LIBOBJS objects are built. 31110 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 31111 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 31112done 31113LIBOBJS=$ac_libobjs 31114 31115LTLIBOBJS=$ac_ltlibobjs 31116 31117 31118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 31119printf %s "checking that generated files are newer than configure... " >&6; } 31120 if test -n "$am_sleep_pid"; then 31121 # Hide warnings about reused PIDs. 31122 wait $am_sleep_pid 2>/dev/null 31123 fi 31124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 31125printf "%s\n" "done" >&6; } 31126 if test -n "$EXEEXT"; then 31127 am__EXEEXT_TRUE= 31128 am__EXEEXT_FALSE='#' 31129else 31130 am__EXEEXT_TRUE='#' 31131 am__EXEEXT_FALSE= 31132fi 31133 31134if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 31135 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 31136Usually this means the macro was only invoked conditionally." "$LINENO" 5 31137fi 31138if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 31139 as_fn_error $? "conditional \"AMDEP\" was never defined. 31140Usually this means the macro was only invoked conditionally." "$LINENO" 5 31141fi 31142if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 31143 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 31144Usually this means the macro was only invoked conditionally." "$LINENO" 5 31145fi 31146if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 31147 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 31148Usually this means the macro was only invoked conditionally." "$LINENO" 5 31149fi 31150if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 31151 as_fn_error $? "conditional \"AIX\" was never defined. 31152Usually this means the macro was only invoked conditionally." "$LINENO" 5 31153fi 31154if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then 31155 as_fn_error $? "conditional \"AIX4\" was never defined. 31156Usually this means the macro was only invoked conditionally." "$LINENO" 5 31157fi 31158if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then 31159 as_fn_error $? "conditional \"HAVE_DLOPEN\" was never defined. 31160Usually this means the macro was only invoked conditionally." "$LINENO" 5 31161fi 31162if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then 31163 as_fn_error $? "conditional \"AIX_DYNAMIC_AFS\" was never defined. 31164Usually this means the macro was only invoked conditionally." "$LINENO" 5 31165fi 31166if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then 31167 as_fn_error $? "conditional \"IRIX\" was never defined. 31168Usually this means the macro was only invoked conditionally." "$LINENO" 5 31169fi 31170if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then 31171 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined. 31172Usually this means the macro was only invoked conditionally." "$LINENO" 5 31173fi 31174if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then 31175 as_fn_error $? "conditional \"versionscript\" was never defined. 31176Usually this means the macro was only invoked conditionally." "$LINENO" 5 31177fi 31178if test -z "${CROSS_COMPILE_TRUE}" && test -z "${CROSS_COMPILE_FALSE}"; then 31179 as_fn_error $? "conditional \"CROSS_COMPILE\" was never defined. 31180Usually this means the macro was only invoked conditionally." "$LINENO" 5 31181fi 31182if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then 31183 as_fn_error $? "conditional \"OPENLDAP_MODULE\" was never defined. 31184Usually this means the macro was only invoked conditionally." "$LINENO" 5 31185fi 31186if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then 31187 as_fn_error $? "conditional \"PKINIT\" was never defined. 31188Usually this means the macro was only invoked conditionally." "$LINENO" 5 31189fi 31190if test -z "${HAVE_CAPNG_TRUE}" && test -z "${HAVE_CAPNG_FALSE}"; then 31191 as_fn_error $? "conditional \"HAVE_CAPNG\" was never defined. 31192Usually this means the macro was only invoked conditionally." "$LINENO" 5 31193fi 31194if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then 31195 as_fn_error $? "conditional \"SQLITE3\" was never defined. 31196Usually this means the macro was only invoked conditionally." "$LINENO" 5 31197fi 31198if test -z "${have_scc_TRUE}" && test -z "${have_scc_FALSE}"; then 31199 as_fn_error $? "conditional \"have_scc\" was never defined. 31200Usually this means the macro was only invoked conditionally." "$LINENO" 5 31201fi 31202if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then 31203 as_fn_error $? "conditional \"KRB5\" was never defined. 31204Usually this means the macro was only invoked conditionally." "$LINENO" 5 31205fi 31206if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then 31207 as_fn_error $? "conditional \"do_roken_rename\" was never defined. 31208Usually this means the macro was only invoked conditionally." "$LINENO" 5 31209fi 31210if test -z "${HAVE_HCRYPTO_W_OPENSSL_TRUE}" && test -z "${HAVE_HCRYPTO_W_OPENSSL_FALSE}"; then 31211 as_fn_error $? "conditional \"HAVE_HCRYPTO_W_OPENSSL\" was never defined. 31212Usually this means the macro was only invoked conditionally." "$LINENO" 5 31213fi 31214if test -z "${ENABLE_PTHREAD_SUPPORT_TRUE}" && test -z "${ENABLE_PTHREAD_SUPPORT_FALSE}"; then 31215 as_fn_error $? "conditional \"ENABLE_PTHREAD_SUPPORT\" was never defined. 31216Usually this means the macro was only invoked conditionally." "$LINENO" 5 31217fi 31218if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then 31219 as_fn_error $? "conditional \"DCE\" was never defined. 31220Usually this means the macro was only invoked conditionally." "$LINENO" 5 31221fi 31222if test -z "${NO_AFS_TRUE}" && test -z "${NO_AFS_FALSE}"; then 31223 as_fn_error $? "conditional \"NO_AFS\" was never defined. 31224Usually this means the macro was only invoked conditionally." "$LINENO" 5 31225fi 31226if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then 31227 as_fn_error $? "conditional \"HAVE_DB1\" was never defined. 31228Usually this means the macro was only invoked conditionally." "$LINENO" 5 31229fi 31230if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then 31231 as_fn_error $? "conditional \"HAVE_DB3\" was never defined. 31232Usually this means the macro was only invoked conditionally." "$LINENO" 5 31233fi 31234if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then 31235 as_fn_error $? "conditional \"HAVE_LMDB\" was never defined. 31236Usually this means the macro was only invoked conditionally." "$LINENO" 5 31237fi 31238if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then 31239 as_fn_error $? "conditional \"HAVE_NDBM\" was never defined. 31240Usually this means the macro was only invoked conditionally." "$LINENO" 5 31241fi 31242if test -z "${HAVE_DBHEADER_TRUE}" && test -z "${HAVE_DBHEADER_FALSE}"; then 31243 as_fn_error $? "conditional \"HAVE_DBHEADER\" was never defined. 31244Usually this means the macro was only invoked conditionally." "$LINENO" 5 31245fi 31246if test -z "${DEVELOPER_MODE_TRUE}" && test -z "${DEVELOPER_MODE_FALSE}"; then 31247 as_fn_error $? "conditional \"DEVELOPER_MODE\" was never defined. 31248Usually this means the macro was only invoked conditionally." "$LINENO" 5 31249fi 31250if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then 31251 as_fn_error $? "conditional \"have_err_h\" was never defined. 31252Usually this means the macro was only invoked conditionally." "$LINENO" 5 31253fi 31254if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then 31255 as_fn_error $? "conditional \"have_ifaddrs_h\" was never defined. 31256Usually this means the macro was only invoked conditionally." "$LINENO" 5 31257fi 31258if test -z "${have_search_h_TRUE}" && test -z "${have_search_h_FALSE}"; then 31259 as_fn_error $? "conditional \"have_search_h\" was never defined. 31260Usually this means the macro was only invoked conditionally." "$LINENO" 5 31261fi 31262if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then 31263 as_fn_error $? "conditional \"have_vis_h\" was never defined. 31264Usually this means the macro was only invoked conditionally." "$LINENO" 5 31265fi 31266if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then 31267 as_fn_error $? "conditional \"have_glob_h\" was never defined. 31268Usually this means the macro was only invoked conditionally." "$LINENO" 5 31269fi 31270if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then 31271 as_fn_error $? "conditional \"have_cgetent\" was never defined. 31272Usually this means the macro was only invoked conditionally." "$LINENO" 5 31273fi 31274if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then 31275 as_fn_error $? "conditional \"have_fnmatch_h\" was never defined. 31276Usually this means the macro was only invoked conditionally." "$LINENO" 5 31277fi 31278if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then 31279 as_fn_error $? "conditional \"have_socket_wrapper\" was never defined. 31280Usually this means the macro was only invoked conditionally." "$LINENO" 5 31281fi 31282if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then 31283 as_fn_error $? "conditional \"OTP\" was never defined. 31284Usually this means the macro was only invoked conditionally." "$LINENO" 5 31285fi 31286if test -z "${have_gcd_TRUE}" && test -z "${have_gcd_FALSE}"; then 31287 as_fn_error $? "conditional \"have_gcd\" was never defined. 31288Usually this means the macro was only invoked conditionally." "$LINENO" 5 31289fi 31290if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then 31291 as_fn_error $? "conditional \"CATMAN\" was never defined. 31292Usually this means the macro was only invoked conditionally." "$LINENO" 5 31293fi 31294if test -z "${HAVE_DLADDR_TRUE}" && test -z "${HAVE_DLADDR_FALSE}"; then 31295 as_fn_error $? "conditional \"HAVE_DLADDR\" was never defined. 31296Usually this means the macro was only invoked conditionally." "$LINENO" 5 31297fi 31298if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then 31299 as_fn_error $? "conditional \"KCM\" was never defined. 31300Usually this means the macro was only invoked conditionally." "$LINENO" 5 31301fi 31302if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then 31303 as_fn_error $? "conditional \"FRAMEWORK_SECURITY\" was never defined. 31304Usually this means the macro was only invoked conditionally." "$LINENO" 5 31305fi 31306if test -z "${LIBEDIT_TRUE}" && test -z "${LIBEDIT_FALSE}"; then 31307 as_fn_error $? "conditional \"LIBEDIT\" was never defined. 31308Usually this means the macro was only invoked conditionally." "$LINENO" 5 31309fi 31310if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then 31311 as_fn_error $? "conditional \"COM_ERR\" was never defined. 31312Usually this means the macro was only invoked conditionally." "$LINENO" 5 31313fi 31314if test -z "${DEVELOPER_MODE_TRUE}" && test -z "${DEVELOPER_MODE_FALSE}"; then 31315 as_fn_error $? "conditional \"DEVELOPER_MODE\" was never defined. 31316Usually this means the macro was only invoked conditionally." "$LINENO" 5 31317fi 31318if test -z "${HEIMDAL_DOCUMENTATION_TRUE}" && test -z "${HEIMDAL_DOCUMENTATION_FALSE}"; then 31319 as_fn_error $? "conditional \"HEIMDAL_DOCUMENTATION\" was never defined. 31320Usually this means the macro was only invoked conditionally." "$LINENO" 5 31321fi 31322 31323: "${CONFIG_STATUS=./config.status}" 31324ac_write_fail=0 31325ac_clean_files_save=$ac_clean_files 31326ac_clean_files="$ac_clean_files $CONFIG_STATUS" 31327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 31328printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 31329as_write_fail=0 31330cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 31331#! $SHELL 31332# Generated by $as_me. 31333# Run this file to recreate the current configuration. 31334# Compiler output produced by configure, useful for debugging 31335# configure, is in config.log if it exists. 31336 31337debug=false 31338ac_cs_recheck=false 31339ac_cs_silent=false 31340 31341SHELL=\${CONFIG_SHELL-$SHELL} 31342export SHELL 31343_ASEOF 31344cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 31345## -------------------- ## 31346## M4sh Initialization. ## 31347## -------------------- ## 31348 31349# Be more Bourne compatible 31350DUALCASE=1; export DUALCASE # for MKS sh 31351as_nop=: 31352if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 31353then : 31354 emulate sh 31355 NULLCMD=: 31356 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 31357 # is contrary to our usage. Disable this feature. 31358 alias -g '${1+"$@"}'='"$@"' 31359 setopt NO_GLOB_SUBST 31360else $as_nop 31361 case `(set -o) 2>/dev/null` in #( 31362 *posix*) : 31363 set -o posix ;; #( 31364 *) : 31365 ;; 31366esac 31367fi 31368 31369 31370 31371# Reset variables that may have inherited troublesome values from 31372# the environment. 31373 31374# IFS needs to be set, to space, tab, and newline, in precisely that order. 31375# (If _AS_PATH_WALK were called with IFS unset, it would have the 31376# side effect of setting IFS to empty, thus disabling word splitting.) 31377# Quoting is to prevent editors from complaining about space-tab. 31378as_nl=' 31379' 31380export as_nl 31381IFS=" "" $as_nl" 31382 31383PS1='$ ' 31384PS2='> ' 31385PS4='+ ' 31386 31387# Ensure predictable behavior from utilities with locale-dependent output. 31388LC_ALL=C 31389export LC_ALL 31390LANGUAGE=C 31391export LANGUAGE 31392 31393# We cannot yet rely on "unset" to work, but we need these variables 31394# to be unset--not just set to an empty or harmless value--now, to 31395# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 31396# also avoids known problems related to "unset" and subshell syntax 31397# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 31398for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 31399do eval test \${$as_var+y} \ 31400 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 31401done 31402 31403# Ensure that fds 0, 1, and 2 are open. 31404if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 31405if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 31406if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 31407 31408# The user is always right. 31409if ${PATH_SEPARATOR+false} :; then 31410 PATH_SEPARATOR=: 31411 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 31412 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 31413 PATH_SEPARATOR=';' 31414 } 31415fi 31416 31417 31418# Find who we are. Look in the path if we contain no directory separator. 31419as_myself= 31420case $0 in #(( 31421 *[\\/]* ) as_myself=$0 ;; 31422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31423for as_dir in $PATH 31424do 31425 IFS=$as_save_IFS 31426 case $as_dir in #((( 31427 '') as_dir=./ ;; 31428 */) ;; 31429 *) as_dir=$as_dir/ ;; 31430 esac 31431 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 31432 done 31433IFS=$as_save_IFS 31434 31435 ;; 31436esac 31437# We did not find ourselves, most probably we were run as `sh COMMAND' 31438# in which case we are not to be found in the path. 31439if test "x$as_myself" = x; then 31440 as_myself=$0 31441fi 31442if test ! -f "$as_myself"; then 31443 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 31444 exit 1 31445fi 31446 31447 31448 31449# as_fn_error STATUS ERROR [LINENO LOG_FD] 31450# ---------------------------------------- 31451# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 31452# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 31453# script with STATUS, using 1 if that was 0. 31454as_fn_error () 31455{ 31456 as_status=$1; test $as_status -eq 0 && as_status=1 31457 if test "$4"; then 31458 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 31459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 31460 fi 31461 printf "%s\n" "$as_me: error: $2" >&2 31462 as_fn_exit $as_status 31463} # as_fn_error 31464 31465 31466 31467# as_fn_set_status STATUS 31468# ----------------------- 31469# Set $? to STATUS, without forking. 31470as_fn_set_status () 31471{ 31472 return $1 31473} # as_fn_set_status 31474 31475# as_fn_exit STATUS 31476# ----------------- 31477# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31478as_fn_exit () 31479{ 31480 set +e 31481 as_fn_set_status $1 31482 exit $1 31483} # as_fn_exit 31484 31485# as_fn_unset VAR 31486# --------------- 31487# Portably unset VAR. 31488as_fn_unset () 31489{ 31490 { eval $1=; unset $1;} 31491} 31492as_unset=as_fn_unset 31493 31494# as_fn_append VAR VALUE 31495# ---------------------- 31496# Append the text in VALUE to the end of the definition contained in VAR. Take 31497# advantage of any shell optimizations that allow amortized linear growth over 31498# repeated appends, instead of the typical quadratic growth present in naive 31499# implementations. 31500if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 31501then : 31502 eval 'as_fn_append () 31503 { 31504 eval $1+=\$2 31505 }' 31506else $as_nop 31507 as_fn_append () 31508 { 31509 eval $1=\$$1\$2 31510 } 31511fi # as_fn_append 31512 31513# as_fn_arith ARG... 31514# ------------------ 31515# Perform arithmetic evaluation on the ARGs, and store the result in the 31516# global $as_val. Take advantage of shells that can avoid forks. The arguments 31517# must be portable across $(()) and expr. 31518if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 31519then : 31520 eval 'as_fn_arith () 31521 { 31522 as_val=$(( $* )) 31523 }' 31524else $as_nop 31525 as_fn_arith () 31526 { 31527 as_val=`expr "$@" || test $? -eq 1` 31528 } 31529fi # as_fn_arith 31530 31531 31532if expr a : '\(a\)' >/dev/null 2>&1 && 31533 test "X`expr 00001 : '.*\(...\)'`" = X001; then 31534 as_expr=expr 31535else 31536 as_expr=false 31537fi 31538 31539if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 31540 as_basename=basename 31541else 31542 as_basename=false 31543fi 31544 31545if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 31546 as_dirname=dirname 31547else 31548 as_dirname=false 31549fi 31550 31551as_me=`$as_basename -- "$0" || 31552$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 31553 X"$0" : 'X\(//\)$' \| \ 31554 X"$0" : 'X\(/\)' \| . 2>/dev/null || 31555printf "%s\n" X/"$0" | 31556 sed '/^.*\/\([^/][^/]*\)\/*$/{ 31557 s//\1/ 31558 q 31559 } 31560 /^X\/\(\/\/\)$/{ 31561 s//\1/ 31562 q 31563 } 31564 /^X\/\(\/\).*/{ 31565 s//\1/ 31566 q 31567 } 31568 s/.*/./; q'` 31569 31570# Avoid depending upon Character Ranges. 31571as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31572as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 31573as_cr_Letters=$as_cr_letters$as_cr_LETTERS 31574as_cr_digits='0123456789' 31575as_cr_alnum=$as_cr_Letters$as_cr_digits 31576 31577 31578# Determine whether it's possible to make 'echo' print without a newline. 31579# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 31580# for compatibility with existing Makefiles. 31581ECHO_C= ECHO_N= ECHO_T= 31582case `echo -n x` in #((((( 31583-n*) 31584 case `echo 'xy\c'` in 31585 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 31586 xy) ECHO_C='\c';; 31587 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 31588 ECHO_T=' ';; 31589 esac;; 31590*) 31591 ECHO_N='-n';; 31592esac 31593 31594# For backward compatibility with old third-party macros, we provide 31595# the shell variables $as_echo and $as_echo_n. New code should use 31596# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 31597as_echo='printf %s\n' 31598as_echo_n='printf %s' 31599 31600rm -f conf$$ conf$$.exe conf$$.file 31601if test -d conf$$.dir; then 31602 rm -f conf$$.dir/conf$$.file 31603else 31604 rm -f conf$$.dir 31605 mkdir conf$$.dir 2>/dev/null 31606fi 31607if (echo >conf$$.file) 2>/dev/null; then 31608 if ln -s conf$$.file conf$$ 2>/dev/null; then 31609 as_ln_s='ln -s' 31610 # ... but there are two gotchas: 31611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 31612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 31613 # In both cases, we have to default to `cp -pR'. 31614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 31615 as_ln_s='cp -pR' 31616 elif ln conf$$.file conf$$ 2>/dev/null; then 31617 as_ln_s=ln 31618 else 31619 as_ln_s='cp -pR' 31620 fi 31621else 31622 as_ln_s='cp -pR' 31623fi 31624rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 31625rmdir conf$$.dir 2>/dev/null 31626 31627 31628# as_fn_mkdir_p 31629# ------------- 31630# Create "$as_dir" as a directory, including parents if necessary. 31631as_fn_mkdir_p () 31632{ 31633 31634 case $as_dir in #( 31635 -*) as_dir=./$as_dir;; 31636 esac 31637 test -d "$as_dir" || eval $as_mkdir_p || { 31638 as_dirs= 31639 while :; do 31640 case $as_dir in #( 31641 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31642 *) as_qdir=$as_dir;; 31643 esac 31644 as_dirs="'$as_qdir' $as_dirs" 31645 as_dir=`$as_dirname -- "$as_dir" || 31646$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31647 X"$as_dir" : 'X\(//\)[^/]' \| \ 31648 X"$as_dir" : 'X\(//\)$' \| \ 31649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31650printf "%s\n" X"$as_dir" | 31651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31652 s//\1/ 31653 q 31654 } 31655 /^X\(\/\/\)[^/].*/{ 31656 s//\1/ 31657 q 31658 } 31659 /^X\(\/\/\)$/{ 31660 s//\1/ 31661 q 31662 } 31663 /^X\(\/\).*/{ 31664 s//\1/ 31665 q 31666 } 31667 s/.*/./; q'` 31668 test -d "$as_dir" && break 31669 done 31670 test -z "$as_dirs" || eval "mkdir $as_dirs" 31671 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 31672 31673 31674} # as_fn_mkdir_p 31675if mkdir -p . 2>/dev/null; then 31676 as_mkdir_p='mkdir -p "$as_dir"' 31677else 31678 test -d ./-p && rmdir ./-p 31679 as_mkdir_p=false 31680fi 31681 31682 31683# as_fn_executable_p FILE 31684# ----------------------- 31685# Test if FILE is an executable regular file. 31686as_fn_executable_p () 31687{ 31688 test -f "$1" && test -x "$1" 31689} # as_fn_executable_p 31690as_test_x='test -x' 31691as_executable_p=as_fn_executable_p 31692 31693# Sed expression to map a string onto a valid CPP name. 31694as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 31695 31696# Sed expression to map a string onto a valid variable name. 31697as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 31698 31699 31700exec 6>&1 31701## ----------------------------------- ## 31702## Main body of $CONFIG_STATUS script. ## 31703## ----------------------------------- ## 31704_ASEOF 31705test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 31706 31707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31708# Save the log message, to keep $0 and so on meaningful, and to 31709# report actual input values of CONFIG_FILES etc. instead of their 31710# values after options handling. 31711ac_log=" 31712This file was extended by Heimdal $as_me 7.8.0, which was 31713generated by GNU Autoconf 2.71. Invocation command line was 31714 31715 CONFIG_FILES = $CONFIG_FILES 31716 CONFIG_HEADERS = $CONFIG_HEADERS 31717 CONFIG_LINKS = $CONFIG_LINKS 31718 CONFIG_COMMANDS = $CONFIG_COMMANDS 31719 $ $0 $@ 31720 31721on `(hostname || uname -n) 2>/dev/null | sed 1q` 31722" 31723 31724_ACEOF 31725 31726case $ac_config_files in *" 31727"*) set x $ac_config_files; shift; ac_config_files=$*;; 31728esac 31729 31730case $ac_config_headers in *" 31731"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 31732esac 31733 31734 31735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31736# Files that config.status was made for. 31737config_files="$ac_config_files" 31738config_headers="$ac_config_headers" 31739config_commands="$ac_config_commands" 31740 31741_ACEOF 31742 31743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31744ac_cs_usage="\ 31745\`$as_me' instantiates files and other configuration actions 31746from templates according to the current configuration. Unless the files 31747and actions are specified as TAGs, all are instantiated by default. 31748 31749Usage: $0 [OPTION]... [TAG]... 31750 31751 -h, --help print this help, then exit 31752 -V, --version print version number and configuration settings, then exit 31753 --config print configuration, then exit 31754 -q, --quiet, --silent 31755 do not print progress messages 31756 -d, --debug don't remove temporary files 31757 --recheck update $as_me by reconfiguring in the same conditions 31758 --file=FILE[:TEMPLATE] 31759 instantiate the configuration file FILE 31760 --header=FILE[:TEMPLATE] 31761 instantiate the configuration header FILE 31762 31763Configuration files: 31764$config_files 31765 31766Configuration headers: 31767$config_headers 31768 31769Configuration commands: 31770$config_commands 31771 31772Report bugs to <https://github.com/heimdal/heimdal/issues>." 31773 31774_ACEOF 31775ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 31776ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 31777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31778ac_cs_config='$ac_cs_config_escaped' 31779ac_cs_version="\\ 31780Heimdal config.status 7.8.0 31781configured by $0, generated by GNU Autoconf 2.71, 31782 with options \\"\$ac_cs_config\\" 31783 31784Copyright (C) 2021 Free Software Foundation, Inc. 31785This config.status script is free software; the Free Software Foundation 31786gives unlimited permission to copy, distribute and modify it." 31787 31788ac_pwd='$ac_pwd' 31789srcdir='$srcdir' 31790INSTALL='$INSTALL' 31791MKDIR_P='$MKDIR_P' 31792AWK='$AWK' 31793test -n "\$AWK" || AWK=awk 31794_ACEOF 31795 31796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31797# The default lists apply if the user does not specify any file. 31798ac_need_defaults=: 31799while test $# != 0 31800do 31801 case $1 in 31802 --*=?*) 31803 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 31805 ac_shift=: 31806 ;; 31807 --*=) 31808 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31809 ac_optarg= 31810 ac_shift=: 31811 ;; 31812 *) 31813 ac_option=$1 31814 ac_optarg=$2 31815 ac_shift=shift 31816 ;; 31817 esac 31818 31819 case $ac_option in 31820 # Handling of the options. 31821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 31822 ac_cs_recheck=: ;; 31823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 31824 printf "%s\n" "$ac_cs_version"; exit ;; 31825 --config | --confi | --conf | --con | --co | --c ) 31826 printf "%s\n" "$ac_cs_config"; exit ;; 31827 --debug | --debu | --deb | --de | --d | -d ) 31828 debug=: ;; 31829 --file | --fil | --fi | --f ) 31830 $ac_shift 31831 case $ac_optarg in 31832 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31833 '') as_fn_error $? "missing file argument" ;; 31834 esac 31835 as_fn_append CONFIG_FILES " '$ac_optarg'" 31836 ac_need_defaults=false;; 31837 --header | --heade | --head | --hea ) 31838 $ac_shift 31839 case $ac_optarg in 31840 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31841 esac 31842 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 31843 ac_need_defaults=false;; 31844 --he | --h) 31845 # Conflict between --help and --header 31846 as_fn_error $? "ambiguous option: \`$1' 31847Try \`$0 --help' for more information.";; 31848 --help | --hel | -h ) 31849 printf "%s\n" "$ac_cs_usage"; exit ;; 31850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31851 | -silent | --silent | --silen | --sile | --sil | --si | --s) 31852 ac_cs_silent=: ;; 31853 31854 # This is an error. 31855 -*) as_fn_error $? "unrecognized option: \`$1' 31856Try \`$0 --help' for more information." ;; 31857 31858 *) as_fn_append ac_config_targets " $1" 31859 ac_need_defaults=false ;; 31860 31861 esac 31862 shift 31863done 31864 31865ac_configure_extra_args= 31866 31867if $ac_cs_silent; then 31868 exec 6>/dev/null 31869 ac_configure_extra_args="$ac_configure_extra_args --silent" 31870fi 31871 31872_ACEOF 31873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31874if \$ac_cs_recheck; then 31875 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 31876 shift 31877 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 31878 CONFIG_SHELL='$SHELL' 31879 export CONFIG_SHELL 31880 exec "\$@" 31881fi 31882 31883_ACEOF 31884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31885exec 5>>config.log 31886{ 31887 echo 31888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 31889## Running $as_me. ## 31890_ASBOX 31891 printf "%s\n" "$ac_log" 31892} >&5 31893 31894_ACEOF 31895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31896# 31897# INIT-COMMANDS 31898# 31899AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 31900 31901 31902# The HP-UX ksh and POSIX shell print the target directory to stdout 31903# if CDPATH is set. 31904(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31905 31906sed_quote_subst='$sed_quote_subst' 31907double_quote_subst='$double_quote_subst' 31908delay_variable_subst='$delay_variable_subst' 31909macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 31910macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 31911enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 31912enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 31913AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 31914DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 31915OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 31916pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 31917enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 31918shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 31919SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 31920ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 31921PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 31922host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 31923host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 31924host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 31925build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 31926build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 31927build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 31928SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 31929Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 31930GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 31931EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 31932FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 31933LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 31934NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 31935LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 31936max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 31937ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 31938exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 31939lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 31940lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 31941lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 31942lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 31943lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 31944reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 31945reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 31946FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 31947deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 31948file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 31949file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 31950want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 31951sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 31952AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 31953lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 31954AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 31955archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 31956STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 31957RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 31958old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 31959old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 31960old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 31961lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 31962CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 31963CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 31964compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 31965GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 31966lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 31967lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 31968lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 31969lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 31970lt_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"`' 31971lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 31972nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 31973lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 31974lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 31975objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 31976MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 31977lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 31978lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 31979lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 31980lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 31981lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 31982need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 31983MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 31984DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 31985NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 31986LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 31987OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 31988OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 31989libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 31990shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 31991extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31992archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 31993enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 31994export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 31995whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 31996compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 31997old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 31998old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31999archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 32000archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32001module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 32002module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32003with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 32004allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 32005no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 32006hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 32007hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 32008hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 32009hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 32010hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 32011hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 32012hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 32013inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 32014link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 32015always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 32016export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 32017exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 32018include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 32019prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 32020postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 32021file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 32022variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 32023need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 32024need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 32025version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 32026runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 32027shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 32028shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 32029libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 32030library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 32031soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 32032install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 32033postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 32034postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 32035finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 32036finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 32037hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 32038sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 32039configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 32040configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 32041hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 32042enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 32043enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 32044enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 32045old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 32046striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 32047 32048LTCC='$LTCC' 32049LTCFLAGS='$LTCFLAGS' 32050compiler='$compiler_DEFAULT' 32051 32052# A function that is used when there is no print builtin or printf. 32053func_fallback_echo () 32054{ 32055 eval 'cat <<_LTECHO_EOF 32056\$1 32057_LTECHO_EOF' 32058} 32059 32060# Quote evaled strings. 32061for var in AS \ 32062DLLTOOL \ 32063OBJDUMP \ 32064SHELL \ 32065ECHO \ 32066PATH_SEPARATOR \ 32067SED \ 32068GREP \ 32069EGREP \ 32070FGREP \ 32071LD \ 32072NM \ 32073LN_S \ 32074lt_SP2NL \ 32075lt_NL2SP \ 32076reload_flag \ 32077FILECMD \ 32078deplibs_check_method \ 32079file_magic_cmd \ 32080file_magic_glob \ 32081want_nocaseglob \ 32082sharedlib_from_linklib_cmd \ 32083AR \ 32084archiver_list_spec \ 32085STRIP \ 32086RANLIB \ 32087CC \ 32088CFLAGS \ 32089compiler \ 32090lt_cv_sys_global_symbol_pipe \ 32091lt_cv_sys_global_symbol_to_cdecl \ 32092lt_cv_sys_global_symbol_to_import \ 32093lt_cv_sys_global_symbol_to_c_name_address \ 32094lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 32095lt_cv_nm_interface \ 32096nm_file_list_spec \ 32097lt_cv_truncate_bin \ 32098lt_prog_compiler_no_builtin_flag \ 32099lt_prog_compiler_pic \ 32100lt_prog_compiler_wl \ 32101lt_prog_compiler_static \ 32102lt_cv_prog_compiler_c_o \ 32103need_locks \ 32104MANIFEST_TOOL \ 32105DSYMUTIL \ 32106NMEDIT \ 32107LIPO \ 32108OTOOL \ 32109OTOOL64 \ 32110shrext_cmds \ 32111export_dynamic_flag_spec \ 32112whole_archive_flag_spec \ 32113compiler_needs_object \ 32114with_gnu_ld \ 32115allow_undefined_flag \ 32116no_undefined_flag \ 32117hardcode_libdir_flag_spec \ 32118hardcode_libdir_separator \ 32119exclude_expsyms \ 32120include_expsyms \ 32121file_list_spec \ 32122variables_saved_for_relink \ 32123libname_spec \ 32124library_names_spec \ 32125soname_spec \ 32126install_override_mode \ 32127finish_eval \ 32128old_striplib \ 32129striplib; do 32130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32131 *[\\\\\\\`\\"\\\$]*) 32132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32133 ;; 32134 *) 32135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32136 ;; 32137 esac 32138done 32139 32140# Double-quote double-evaled strings. 32141for var in reload_cmds \ 32142old_postinstall_cmds \ 32143old_postuninstall_cmds \ 32144old_archive_cmds \ 32145extract_expsyms_cmds \ 32146old_archive_from_new_cmds \ 32147old_archive_from_expsyms_cmds \ 32148archive_cmds \ 32149archive_expsym_cmds \ 32150module_cmds \ 32151module_expsym_cmds \ 32152export_symbols_cmds \ 32153prelink_cmds \ 32154postlink_cmds \ 32155postinstall_cmds \ 32156postuninstall_cmds \ 32157finish_cmds \ 32158sys_lib_search_path_spec \ 32159configure_time_dlsearch_path \ 32160configure_time_lt_sys_library_path; do 32161 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32162 *[\\\\\\\`\\"\\\$]*) 32163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32164 ;; 32165 *) 32166 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32167 ;; 32168 esac 32169done 32170 32171ac_aux_dir='$ac_aux_dir' 32172 32173# See if we are running on zsh, and set the options that allow our 32174# commands through without removal of \ escapes INIT. 32175if test -n "\${ZSH_VERSION+set}"; then 32176 setopt NO_GLOB_SUBST 32177fi 32178 32179 32180 PACKAGE='$PACKAGE' 32181 VERSION='$VERSION' 32182 RM='$RM' 32183 ofile='$ofile' 32184 32185 32186 32187 32188_ACEOF 32189 32190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32191 32192# Handling of arguments. 32193for ac_config_target in $ac_config_targets 32194do 32195 case $ac_config_target in 32196 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 32197 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 32198 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 32199 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 32200 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 32201 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 32202 "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;; 32203 "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;; 32204 "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 32205 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 32206 "lib/base/Makefile") CONFIG_FILES="$CONFIG_FILES lib/base/Makefile" ;; 32207 "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 32208 "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 32209 "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;; 32210 "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;; 32211 "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 32212 "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;; 32213 "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 32214 "lib/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ipc/Makefile" ;; 32215 "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 32216 "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 32217 "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 32218 "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 32219 "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 32220 "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 32221 "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 32222 "lib/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sqlite/Makefile" ;; 32223 "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 32224 "lib/wind/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wind/Makefile" ;; 32225 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; 32226 "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 32227 "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 32228 "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 32229 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 32230 "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;; 32231 "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 32232 "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 32233 "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 32234 "appl/dbutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dbutils/Makefile" ;; 32235 "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;; 32236 "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 32237 "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 32238 "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 32239 "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 32240 "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 32241 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 32242 "tests/bin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/Makefile" ;; 32243 "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;; 32244 "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;; 32245 "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;; 32246 "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;; 32247 "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;; 32248 "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;; 32249 "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;; 32250 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 32251 "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;; 32252 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 32253 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 32254 32255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 32256 esac 32257done 32258 32259 32260# If the user did not use the arguments to specify the items to instantiate, 32261# then the envvar interface is used. Set only those that are not. 32262# We use the long form for the default assignment because of an extremely 32263# bizarre bug on SunOS 4.1.3. 32264if $ac_need_defaults; then 32265 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 32266 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 32267 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 32268fi 32269 32270# Have a temporary directory for convenience. Make it in the build tree 32271# simply because there is no reason against having it here, and in addition, 32272# creating and moving files from /tmp can sometimes cause problems. 32273# Hook for its removal unless debugging. 32274# Note that there is a small window in which the directory will not be cleaned: 32275# after its creation but before its name has been assigned to `$tmp'. 32276$debug || 32277{ 32278 tmp= ac_tmp= 32279 trap 'exit_status=$? 32280 : "${ac_tmp:=$tmp}" 32281 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 32282' 0 32283 trap 'as_fn_exit 1' 1 2 13 15 32284} 32285# Create a (secure) tmp directory for tmp files. 32286 32287{ 32288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 32289 test -d "$tmp" 32290} || 32291{ 32292 tmp=./conf$$-$RANDOM 32293 (umask 077 && mkdir "$tmp") 32294} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 32295ac_tmp=$tmp 32296 32297# Set up the scripts for CONFIG_FILES section. 32298# No need to generate them if there are no CONFIG_FILES. 32299# This happens for instance with `./config.status config.h'. 32300if test -n "$CONFIG_FILES"; then 32301 32302 32303ac_cr=`echo X | tr X '\015'` 32304# On cygwin, bash can eat \r inside `` if the user requested igncr. 32305# But we know of no other shell where ac_cr would be empty at this 32306# point, so we can use a bashism as a fallback. 32307if test "x$ac_cr" = x; then 32308 eval ac_cr=\$\'\\r\' 32309fi 32310ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 32311if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 32312 ac_cs_awk_cr='\\r' 32313else 32314 ac_cs_awk_cr=$ac_cr 32315fi 32316 32317echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 32318_ACEOF 32319 32320 32321{ 32322 echo "cat >conf$$subs.awk <<_ACEOF" && 32323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 32324 echo "_ACEOF" 32325} >conf$$subs.sh || 32326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32327ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 32328ac_delim='%!_!# ' 32329for ac_last_try in false false false false false :; do 32330 . ./conf$$subs.sh || 32331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32332 32333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 32334 if test $ac_delim_n = $ac_delim_num; then 32335 break 32336 elif $ac_last_try; then 32337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32338 else 32339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32340 fi 32341done 32342rm -f conf$$subs.sh 32343 32344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32345cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 32346_ACEOF 32347sed -n ' 32348h 32349s/^/S["/; s/!.*/"]=/ 32350p 32351g 32352s/^[^!]*!// 32353:repl 32354t repl 32355s/'"$ac_delim"'$// 32356t delim 32357:nl 32358h 32359s/\(.\{148\}\)..*/\1/ 32360t more1 32361s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 32362p 32363n 32364b repl 32365:more1 32366s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32367p 32368g 32369s/.\{148\}// 32370t nl 32371:delim 32372h 32373s/\(.\{148\}\)..*/\1/ 32374t more2 32375s/["\\]/\\&/g; s/^/"/; s/$/"/ 32376p 32377b 32378:more2 32379s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32380p 32381g 32382s/.\{148\}// 32383t delim 32384' <conf$$subs.awk | sed ' 32385/^[^""]/{ 32386 N 32387 s/\n// 32388} 32389' >>$CONFIG_STATUS || ac_write_fail=1 32390rm -f conf$$subs.awk 32391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32392_ACAWK 32393cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 32394 for (key in S) S_is_set[key] = 1 32395 FS = "" 32396 32397} 32398{ 32399 line = $ 0 32400 nfields = split(line, field, "@") 32401 substed = 0 32402 len = length(field[1]) 32403 for (i = 2; i < nfields; i++) { 32404 key = field[i] 32405 keylen = length(key) 32406 if (S_is_set[key]) { 32407 value = S[key] 32408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 32409 len += length(value) + length(field[++i]) 32410 substed = 1 32411 } else 32412 len += 1 + keylen 32413 } 32414 32415 print line 32416} 32417 32418_ACAWK 32419_ACEOF 32420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32421if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 32422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 32423else 32424 cat 32425fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 32426 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 32427_ACEOF 32428 32429# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 32430# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 32431# trailing colons and then remove the whole line if VPATH becomes empty 32432# (actually we leave an empty line to preserve line numbers). 32433if test "x$srcdir" = x.; then 32434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 32435h 32436s/// 32437s/^/:/ 32438s/[ ]*$/:/ 32439s/:\$(srcdir):/:/g 32440s/:\${srcdir}:/:/g 32441s/:@srcdir@:/:/g 32442s/^:*// 32443s/:*$// 32444x 32445s/\(=[ ]*\).*/\1/ 32446G 32447s/\n// 32448s/^[^=]*=[ ]*$// 32449}' 32450fi 32451 32452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32453fi # test -n "$CONFIG_FILES" 32454 32455# Set up the scripts for CONFIG_HEADERS section. 32456# No need to generate them if there are no CONFIG_HEADERS. 32457# This happens for instance with `./config.status Makefile'. 32458if test -n "$CONFIG_HEADERS"; then 32459cat >"$ac_tmp/defines.awk" <<\_ACAWK || 32460BEGIN { 32461_ACEOF 32462 32463# Transform confdefs.h into an awk script `defines.awk', embedded as 32464# here-document in config.status, that substitutes the proper values into 32465# config.h.in to produce config.h. 32466 32467# Create a delimiter string that does not exist in confdefs.h, to ease 32468# handling of long lines. 32469ac_delim='%!_!# ' 32470for ac_last_try in false false :; do 32471 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 32472 if test -z "$ac_tt"; then 32473 break 32474 elif $ac_last_try; then 32475 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 32476 else 32477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32478 fi 32479done 32480 32481# For the awk script, D is an array of macro values keyed by name, 32482# likewise P contains macro parameters if any. Preserve backslash 32483# newline sequences. 32484 32485ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 32486sed -n ' 32487s/.\{148\}/&'"$ac_delim"'/g 32488t rset 32489:rset 32490s/^[ ]*#[ ]*define[ ][ ]*/ / 32491t def 32492d 32493:def 32494s/\\$// 32495t bsnl 32496s/["\\]/\\&/g 32497s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32498D["\1"]=" \3"/p 32499s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 32500d 32501:bsnl 32502s/["\\]/\\&/g 32503s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32504D["\1"]=" \3\\\\\\n"\\/p 32505t cont 32506s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 32507t cont 32508d 32509:cont 32510n 32511s/.\{148\}/&'"$ac_delim"'/g 32512t clear 32513:clear 32514s/\\$// 32515t bsnlc 32516s/["\\]/\\&/g; s/^/"/; s/$/"/p 32517d 32518:bsnlc 32519s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 32520b cont 32521' <confdefs.h | sed ' 32522s/'"$ac_delim"'/"\\\ 32523"/g' >>$CONFIG_STATUS || ac_write_fail=1 32524 32525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32526 for (key in D) D_is_set[key] = 1 32527 FS = "" 32528} 32529/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 32530 line = \$ 0 32531 split(line, arg, " ") 32532 if (arg[1] == "#") { 32533 defundef = arg[2] 32534 mac1 = arg[3] 32535 } else { 32536 defundef = substr(arg[1], 2) 32537 mac1 = arg[2] 32538 } 32539 split(mac1, mac2, "(") #) 32540 macro = mac2[1] 32541 prefix = substr(line, 1, index(line, defundef) - 1) 32542 if (D_is_set[macro]) { 32543 # Preserve the white space surrounding the "#". 32544 print prefix "define", macro P[macro] D[macro] 32545 next 32546 } else { 32547 # Replace #undef with comments. This is necessary, for example, 32548 # in the case of _POSIX_SOURCE, which is predefined and required 32549 # on some systems where configure will not decide to define it. 32550 if (defundef == "undef") { 32551 print "/*", prefix defundef, macro, "*/" 32552 next 32553 } 32554 } 32555} 32556{ print } 32557_ACAWK 32558_ACEOF 32559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32560 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 32561fi # test -n "$CONFIG_HEADERS" 32562 32563 32564eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 32565shift 32566for ac_tag 32567do 32568 case $ac_tag in 32569 :[FHLC]) ac_mode=$ac_tag; continue;; 32570 esac 32571 case $ac_mode$ac_tag in 32572 :[FHL]*:*);; 32573 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 32574 :[FH]-) ac_tag=-:-;; 32575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 32576 esac 32577 ac_save_IFS=$IFS 32578 IFS=: 32579 set x $ac_tag 32580 IFS=$ac_save_IFS 32581 shift 32582 ac_file=$1 32583 shift 32584 32585 case $ac_mode in 32586 :L) ac_source=$1;; 32587 :[FH]) 32588 ac_file_inputs= 32589 for ac_f 32590 do 32591 case $ac_f in 32592 -) ac_f="$ac_tmp/stdin";; 32593 *) # Look for the file first in the build tree, then in the source tree 32594 # (if the path is not absolute). The absolute path cannot be DOS-style, 32595 # because $ac_f cannot contain `:'. 32596 test -f "$ac_f" || 32597 case $ac_f in 32598 [\\/$]*) false;; 32599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 32600 esac || 32601 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 32602 esac 32603 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 32604 as_fn_append ac_file_inputs " '$ac_f'" 32605 done 32606 32607 # Let's still pretend it is `configure' which instantiates (i.e., don't 32608 # use $as_me), people would be surprised to read: 32609 # /* config.h. Generated by config.status. */ 32610 configure_input='Generated from '` 32611 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 32612 `' by configure.' 32613 if test x"$ac_file" != x-; then 32614 configure_input="$ac_file. $configure_input" 32615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 32616printf "%s\n" "$as_me: creating $ac_file" >&6;} 32617 fi 32618 # Neutralize special characters interpreted by sed in replacement strings. 32619 case $configure_input in #( 32620 *\&* | *\|* | *\\* ) 32621 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 32622 sed 's/[\\\\&|]/\\\\&/g'`;; #( 32623 *) ac_sed_conf_input=$configure_input;; 32624 esac 32625 32626 case $ac_tag in 32627 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 32628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 32629 esac 32630 ;; 32631 esac 32632 32633 ac_dir=`$as_dirname -- "$ac_file" || 32634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32635 X"$ac_file" : 'X\(//\)[^/]' \| \ 32636 X"$ac_file" : 'X\(//\)$' \| \ 32637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 32638printf "%s\n" X"$ac_file" | 32639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32640 s//\1/ 32641 q 32642 } 32643 /^X\(\/\/\)[^/].*/{ 32644 s//\1/ 32645 q 32646 } 32647 /^X\(\/\/\)$/{ 32648 s//\1/ 32649 q 32650 } 32651 /^X\(\/\).*/{ 32652 s//\1/ 32653 q 32654 } 32655 s/.*/./; q'` 32656 as_dir="$ac_dir"; as_fn_mkdir_p 32657 ac_builddir=. 32658 32659case "$ac_dir" in 32660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32661*) 32662 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 32663 # A ".." for each directory in $ac_dir_suffix. 32664 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32665 case $ac_top_builddir_sub in 32666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32668 esac ;; 32669esac 32670ac_abs_top_builddir=$ac_pwd 32671ac_abs_builddir=$ac_pwd$ac_dir_suffix 32672# for backward compatibility: 32673ac_top_builddir=$ac_top_build_prefix 32674 32675case $srcdir in 32676 .) # We are building in place. 32677 ac_srcdir=. 32678 ac_top_srcdir=$ac_top_builddir_sub 32679 ac_abs_top_srcdir=$ac_pwd ;; 32680 [\\/]* | ?:[\\/]* ) # Absolute name. 32681 ac_srcdir=$srcdir$ac_dir_suffix; 32682 ac_top_srcdir=$srcdir 32683 ac_abs_top_srcdir=$srcdir ;; 32684 *) # Relative name. 32685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32686 ac_top_srcdir=$ac_top_build_prefix$srcdir 32687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32688esac 32689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32690 32691 32692 case $ac_mode in 32693 :F) 32694 # 32695 # CONFIG_FILE 32696 # 32697 32698 case $INSTALL in 32699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 32700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 32701 esac 32702 ac_MKDIR_P=$MKDIR_P 32703 case $MKDIR_P in 32704 [\\/$]* | ?:[\\/]* ) ;; 32705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 32706 esac 32707_ACEOF 32708 32709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32710# If the template does not know about datarootdir, expand it. 32711# FIXME: This hack should be removed a few years after 2.60. 32712ac_datarootdir_hack=; ac_datarootdir_seen= 32713ac_sed_dataroot=' 32714/datarootdir/ { 32715 p 32716 q 32717} 32718/@datadir@/p 32719/@docdir@/p 32720/@infodir@/p 32721/@localedir@/p 32722/@mandir@/p' 32723case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 32724*datarootdir*) ac_datarootdir_seen=yes;; 32725*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 32726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 32727printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 32728_ACEOF 32729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32730 ac_datarootdir_hack=' 32731 s&@datadir@&$datadir&g 32732 s&@docdir@&$docdir&g 32733 s&@infodir@&$infodir&g 32734 s&@localedir@&$localedir&g 32735 s&@mandir@&$mandir&g 32736 s&\\\${datarootdir}&$datarootdir&g' ;; 32737esac 32738_ACEOF 32739 32740# Neutralize VPATH when `$srcdir' = `.'. 32741# Shell code in configure.ac might set extrasub. 32742# FIXME: do we really want to maintain this feature? 32743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32744ac_sed_extra="$ac_vpsub 32745$extrasub 32746_ACEOF 32747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32748:t 32749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 32750s|@configure_input@|$ac_sed_conf_input|;t t 32751s&@top_builddir@&$ac_top_builddir_sub&;t t 32752s&@top_build_prefix@&$ac_top_build_prefix&;t t 32753s&@srcdir@&$ac_srcdir&;t t 32754s&@abs_srcdir@&$ac_abs_srcdir&;t t 32755s&@top_srcdir@&$ac_top_srcdir&;t t 32756s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 32757s&@builddir@&$ac_builddir&;t t 32758s&@abs_builddir@&$ac_abs_builddir&;t t 32759s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 32760s&@INSTALL@&$ac_INSTALL&;t t 32761s&@MKDIR_P@&$ac_MKDIR_P&;t t 32762$ac_datarootdir_hack 32763" 32764eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 32765 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32766 32767test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 32768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 32769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 32770 "$ac_tmp/out"`; test -z "$ac_out"; } && 32771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32772which seems to be undefined. Please make sure it is defined" >&5 32773printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32774which seems to be undefined. Please make sure it is defined" >&2;} 32775 32776 rm -f "$ac_tmp/stdin" 32777 case $ac_file in 32778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 32779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 32780 esac \ 32781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32782 ;; 32783 :H) 32784 # 32785 # CONFIG_HEADER 32786 # 32787 if test x"$ac_file" != x-; then 32788 { 32789 printf "%s\n" "/* $configure_input */" >&1 \ 32790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 32791 } >"$ac_tmp/config.h" \ 32792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 32794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 32795printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 32796 else 32797 rm -f "$ac_file" 32798 mv "$ac_tmp/config.h" "$ac_file" \ 32799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32800 fi 32801 else 32802 printf "%s\n" "/* $configure_input */" >&1 \ 32803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 32804 || as_fn_error $? "could not create -" "$LINENO" 5 32805 fi 32806# Compute "$ac_file"'s index in $config_headers. 32807_am_arg="$ac_file" 32808_am_stamp_count=1 32809for _am_header in $config_headers :; do 32810 case $_am_header in 32811 $_am_arg | $_am_arg:* ) 32812 break ;; 32813 * ) 32814 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 32815 esac 32816done 32817echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 32818$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32819 X"$_am_arg" : 'X\(//\)[^/]' \| \ 32820 X"$_am_arg" : 'X\(//\)$' \| \ 32821 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 32822printf "%s\n" X"$_am_arg" | 32823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32824 s//\1/ 32825 q 32826 } 32827 /^X\(\/\/\)[^/].*/{ 32828 s//\1/ 32829 q 32830 } 32831 /^X\(\/\/\)$/{ 32832 s//\1/ 32833 q 32834 } 32835 /^X\(\/\).*/{ 32836 s//\1/ 32837 q 32838 } 32839 s/.*/./; q'`/stamp-h$_am_stamp_count 32840 ;; 32841 32842 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 32843printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 32844 ;; 32845 esac 32846 32847 32848 case $ac_file$ac_mode in 32849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 32850 # Older Autoconf quotes --file arguments for eval, but not when files 32851 # are listed without --file. Let's play safe and only enable the eval 32852 # if we detect the quoting. 32853 # TODO: see whether this extra hack can be removed once we start 32854 # requiring Autoconf 2.70 or later. 32855 case $CONFIG_FILES in #( 32856 *\'*) : 32857 eval set x "$CONFIG_FILES" ;; #( 32858 *) : 32859 set x $CONFIG_FILES ;; #( 32860 *) : 32861 ;; 32862esac 32863 shift 32864 # Used to flag and report bootstrapping failures. 32865 am_rc=0 32866 for am_mf 32867 do 32868 # Strip MF so we end up with the name of the file. 32869 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 32870 # Check whether this is an Automake generated Makefile which includes 32871 # dependency-tracking related rules and includes. 32872 # Grep'ing the whole file directly is not great: AIX grep has a line 32873 # limit of 2048, but all sed's we know have understand at least 4000. 32874 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 32875 || continue 32876 am_dirpart=`$as_dirname -- "$am_mf" || 32877$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32878 X"$am_mf" : 'X\(//\)[^/]' \| \ 32879 X"$am_mf" : 'X\(//\)$' \| \ 32880 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 32881printf "%s\n" X"$am_mf" | 32882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32883 s//\1/ 32884 q 32885 } 32886 /^X\(\/\/\)[^/].*/{ 32887 s//\1/ 32888 q 32889 } 32890 /^X\(\/\/\)$/{ 32891 s//\1/ 32892 q 32893 } 32894 /^X\(\/\).*/{ 32895 s//\1/ 32896 q 32897 } 32898 s/.*/./; q'` 32899 am_filepart=`$as_basename -- "$am_mf" || 32900$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 32901 X"$am_mf" : 'X\(//\)$' \| \ 32902 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 32903printf "%s\n" X/"$am_mf" | 32904 sed '/^.*\/\([^/][^/]*\)\/*$/{ 32905 s//\1/ 32906 q 32907 } 32908 /^X\/\(\/\/\)$/{ 32909 s//\1/ 32910 q 32911 } 32912 /^X\/\(\/\).*/{ 32913 s//\1/ 32914 q 32915 } 32916 s/.*/./; q'` 32917 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 32918 && sed -e '/# am--include-marker/d' "$am_filepart" \ 32919 | $MAKE -f - am--depfiles" >&5 32920 (cd "$am_dirpart" \ 32921 && sed -e '/# am--include-marker/d' "$am_filepart" \ 32922 | $MAKE -f - am--depfiles) >&5 2>&5 32923 ac_status=$? 32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32925 (exit $ac_status); } || am_rc=$? 32926 done 32927 if test $am_rc -ne 0; then 32928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32929printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32930as_fn_error $? "Something went wrong bootstrapping makefile fragments 32931 for automatic dependency tracking. If GNU make was not used, consider 32932 re-running the configure script with MAKE=\"gmake\" (or whatever is 32933 necessary). You can also try re-running configure with the 32934 '--disable-dependency-tracking' option to at least be able to build 32935 the package (albeit without support for automatic dependency tracking). 32936See \`config.log' for more details" "$LINENO" 5; } 32937 fi 32938 { am_dirpart=; unset am_dirpart;} 32939 { am_filepart=; unset am_filepart;} 32940 { am_mf=; unset am_mf;} 32941 { am_rc=; unset am_rc;} 32942 rm -f conftest-deps.mk 32943} 32944 ;; 32945 "libtool":C) 32946 32947 # See if we are running on zsh, and set the options that allow our 32948 # commands through without removal of \ escapes. 32949 if test -n "${ZSH_VERSION+set}"; then 32950 setopt NO_GLOB_SUBST 32951 fi 32952 32953 cfgfile=${ofile}T 32954 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 32955 $RM "$cfgfile" 32956 32957 cat <<_LT_EOF >> "$cfgfile" 32958#! $SHELL 32959# Generated automatically by $as_me ($PACKAGE) $VERSION 32960# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 32961# NOTE: Changes made to this file will be lost: look at ltmain.sh. 32962 32963# Provide generalized library-building support services. 32964# Written by Gordon Matzigkeit, 1996 32965 32966# Copyright (C) 2014 Free Software Foundation, Inc. 32967# This is free software; see the source for copying conditions. There is NO 32968# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32969 32970# GNU Libtool is free software; you can redistribute it and/or modify 32971# it under the terms of the GNU General Public License as published by 32972# the Free Software Foundation; either version 2 of of the License, or 32973# (at your option) any later version. 32974# 32975# As a special exception to the GNU General Public License, if you 32976# distribute this file as part of a program or library that is built 32977# using GNU Libtool, you may include this file under the same 32978# distribution terms that you use for the rest of that program. 32979# 32980# GNU Libtool is distributed in the hope that it will be useful, but 32981# WITHOUT ANY WARRANTY; without even the implied warranty of 32982# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32983# GNU General Public License for more details. 32984# 32985# You should have received a copy of the GNU General Public License 32986# along with this program. If not, see <http://www.gnu.org/licenses/>. 32987 32988 32989# The names of the tagged configurations supported by this script. 32990available_tags='' 32991 32992# Configured defaults for sys_lib_dlsearch_path munging. 32993: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 32994 32995# ### BEGIN LIBTOOL CONFIG 32996 32997# Which release of libtool.m4 was used? 32998macro_version=$macro_version 32999macro_revision=$macro_revision 33000 33001# Whether or not to build shared libraries. 33002build_libtool_libs=$enable_shared 33003 33004# Whether or not to build static libraries. 33005build_old_libs=$enable_static 33006 33007# Assembler program. 33008AS=$lt_AS 33009 33010# DLL creation program. 33011DLLTOOL=$lt_DLLTOOL 33012 33013# Object dumper program. 33014OBJDUMP=$lt_OBJDUMP 33015 33016# What type of objects to build. 33017pic_mode=$pic_mode 33018 33019# Whether or not to optimize for fast installation. 33020fast_install=$enable_fast_install 33021 33022# Shared archive member basename,for filename based shared library versioning on AIX. 33023shared_archive_member_spec=$shared_archive_member_spec 33024 33025# Shell to use when invoking shell scripts. 33026SHELL=$lt_SHELL 33027 33028# An echo program that protects backslashes. 33029ECHO=$lt_ECHO 33030 33031# The PATH separator for the build system. 33032PATH_SEPARATOR=$lt_PATH_SEPARATOR 33033 33034# The host system. 33035host_alias=$host_alias 33036host=$host 33037host_os=$host_os 33038 33039# The build system. 33040build_alias=$build_alias 33041build=$build 33042build_os=$build_os 33043 33044# A sed program that does not truncate output. 33045SED=$lt_SED 33046 33047# Sed that helps us avoid accidentally triggering echo(1) options like -n. 33048Xsed="\$SED -e 1s/^X//" 33049 33050# A grep program that handles long lines. 33051GREP=$lt_GREP 33052 33053# An ERE matcher. 33054EGREP=$lt_EGREP 33055 33056# A literal string matcher. 33057FGREP=$lt_FGREP 33058 33059# A BSD- or MS-compatible name lister. 33060NM=$lt_NM 33061 33062# Whether we need soft or hard links. 33063LN_S=$lt_LN_S 33064 33065# What is the maximum length of a command? 33066max_cmd_len=$max_cmd_len 33067 33068# Object file suffix (normally "o"). 33069objext=$ac_objext 33070 33071# Executable file suffix (normally ""). 33072exeext=$exeext 33073 33074# whether the shell understands "unset". 33075lt_unset=$lt_unset 33076 33077# turn spaces into newlines. 33078SP2NL=$lt_lt_SP2NL 33079 33080# turn newlines into spaces. 33081NL2SP=$lt_lt_NL2SP 33082 33083# convert \$build file names to \$host format. 33084to_host_file_cmd=$lt_cv_to_host_file_cmd 33085 33086# convert \$build files to toolchain format. 33087to_tool_file_cmd=$lt_cv_to_tool_file_cmd 33088 33089# A file(cmd) program that detects file types. 33090FILECMD=$lt_FILECMD 33091 33092# Method to check whether dependent libraries are shared objects. 33093deplibs_check_method=$lt_deplibs_check_method 33094 33095# Command to use when deplibs_check_method = "file_magic". 33096file_magic_cmd=$lt_file_magic_cmd 33097 33098# How to find potential files when deplibs_check_method = "file_magic". 33099file_magic_glob=$lt_file_magic_glob 33100 33101# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 33102want_nocaseglob=$lt_want_nocaseglob 33103 33104# Command to associate shared and link libraries. 33105sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 33106 33107# The archiver. 33108AR=$lt_AR 33109 33110# Flags to create an archive (by configure). 33111lt_ar_flags=$lt_ar_flags 33112 33113# Flags to create an archive. 33114AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 33115 33116# How to feed a file listing to the archiver. 33117archiver_list_spec=$lt_archiver_list_spec 33118 33119# A symbol stripping program. 33120STRIP=$lt_STRIP 33121 33122# Commands used to install an old-style archive. 33123RANLIB=$lt_RANLIB 33124old_postinstall_cmds=$lt_old_postinstall_cmds 33125old_postuninstall_cmds=$lt_old_postuninstall_cmds 33126 33127# Whether to use a lock for old archive extraction. 33128lock_old_archive_extraction=$lock_old_archive_extraction 33129 33130# A C compiler. 33131LTCC=$lt_CC 33132 33133# LTCC compiler flags. 33134LTCFLAGS=$lt_CFLAGS 33135 33136# Take the output of nm and produce a listing of raw symbols and C names. 33137global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 33138 33139# Transform the output of nm in a proper C declaration. 33140global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 33141 33142# Transform the output of nm into a list of symbols to manually relocate. 33143global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 33144 33145# Transform the output of nm in a C name address pair. 33146global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 33147 33148# Transform the output of nm in a C name address pair when lib prefix is needed. 33149global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 33150 33151# The name lister interface. 33152nm_interface=$lt_lt_cv_nm_interface 33153 33154# Specify filename containing input files for \$NM. 33155nm_file_list_spec=$lt_nm_file_list_spec 33156 33157# The root where to search for dependent libraries,and where our libraries should be installed. 33158lt_sysroot=$lt_sysroot 33159 33160# Command to truncate a binary pipe. 33161lt_truncate_bin=$lt_lt_cv_truncate_bin 33162 33163# The name of the directory that contains temporary libtool files. 33164objdir=$objdir 33165 33166# Used to examine libraries when file_magic_cmd begins with "file". 33167MAGIC_CMD=$MAGIC_CMD 33168 33169# Must we lock files when doing compilation? 33170need_locks=$lt_need_locks 33171 33172# Manifest tool. 33173MANIFEST_TOOL=$lt_MANIFEST_TOOL 33174 33175# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 33176DSYMUTIL=$lt_DSYMUTIL 33177 33178# Tool to change global to local symbols on Mac OS X. 33179NMEDIT=$lt_NMEDIT 33180 33181# Tool to manipulate fat objects and archives on Mac OS X. 33182LIPO=$lt_LIPO 33183 33184# ldd/readelf like tool for Mach-O binaries on Mac OS X. 33185OTOOL=$lt_OTOOL 33186 33187# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 33188OTOOL64=$lt_OTOOL64 33189 33190# Old archive suffix (normally "a"). 33191libext=$libext 33192 33193# Shared library suffix (normally ".so"). 33194shrext_cmds=$lt_shrext_cmds 33195 33196# The commands to extract the exported symbol list from a shared archive. 33197extract_expsyms_cmds=$lt_extract_expsyms_cmds 33198 33199# Variables whose values should be saved in libtool wrapper scripts and 33200# restored at link time. 33201variables_saved_for_relink=$lt_variables_saved_for_relink 33202 33203# Do we need the "lib" prefix for modules? 33204need_lib_prefix=$need_lib_prefix 33205 33206# Do we need a version for libraries? 33207need_version=$need_version 33208 33209# Library versioning type. 33210version_type=$version_type 33211 33212# Shared library runtime path variable. 33213runpath_var=$runpath_var 33214 33215# Shared library path variable. 33216shlibpath_var=$shlibpath_var 33217 33218# Is shlibpath searched before the hard-coded library search path? 33219shlibpath_overrides_runpath=$shlibpath_overrides_runpath 33220 33221# Format of library name prefix. 33222libname_spec=$lt_libname_spec 33223 33224# List of archive names. First name is the real one, the rest are links. 33225# The last name is the one that the linker finds with -lNAME 33226library_names_spec=$lt_library_names_spec 33227 33228# The coded name of the library, if different from the real name. 33229soname_spec=$lt_soname_spec 33230 33231# Permission mode override for installation of shared libraries. 33232install_override_mode=$lt_install_override_mode 33233 33234# Command to use after installation of a shared archive. 33235postinstall_cmds=$lt_postinstall_cmds 33236 33237# Command to use after uninstallation of a shared archive. 33238postuninstall_cmds=$lt_postuninstall_cmds 33239 33240# Commands used to finish a libtool library installation in a directory. 33241finish_cmds=$lt_finish_cmds 33242 33243# As "finish_cmds", except a single script fragment to be evaled but 33244# not shown. 33245finish_eval=$lt_finish_eval 33246 33247# Whether we should hardcode library paths into libraries. 33248hardcode_into_libs=$hardcode_into_libs 33249 33250# Compile-time system search path for libraries. 33251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 33252 33253# Detected run-time system search path for libraries. 33254sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 33255 33256# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 33257configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 33258 33259# Whether dlopen is supported. 33260dlopen_support=$enable_dlopen 33261 33262# Whether dlopen of programs is supported. 33263dlopen_self=$enable_dlopen_self 33264 33265# Whether dlopen of statically linked programs is supported. 33266dlopen_self_static=$enable_dlopen_self_static 33267 33268# Commands to strip libraries. 33269old_striplib=$lt_old_striplib 33270striplib=$lt_striplib 33271 33272 33273# The linker used to build libraries. 33274LD=$lt_LD 33275 33276# How to create reloadable object files. 33277reload_flag=$lt_reload_flag 33278reload_cmds=$lt_reload_cmds 33279 33280# Commands used to build an old-style archive. 33281old_archive_cmds=$lt_old_archive_cmds 33282 33283# A language specific compiler. 33284CC=$lt_compiler 33285 33286# Is the compiler the GNU compiler? 33287with_gcc=$GCC 33288 33289# Compiler flag to turn off builtin functions. 33290no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 33291 33292# Additional compiler flags for building library objects. 33293pic_flag=$lt_lt_prog_compiler_pic 33294 33295# How to pass a linker flag through the compiler. 33296wl=$lt_lt_prog_compiler_wl 33297 33298# Compiler flag to prevent dynamic linking. 33299link_static_flag=$lt_lt_prog_compiler_static 33300 33301# Does compiler simultaneously support -c and -o options? 33302compiler_c_o=$lt_lt_cv_prog_compiler_c_o 33303 33304# Whether or not to add -lc for building shared libraries. 33305build_libtool_need_lc=$archive_cmds_need_lc 33306 33307# Whether or not to disallow shared libs when runtime libs are static. 33308allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 33309 33310# Compiler flag to allow reflexive dlopens. 33311export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 33312 33313# Compiler flag to generate shared objects directly from archives. 33314whole_archive_flag_spec=$lt_whole_archive_flag_spec 33315 33316# Whether the compiler copes with passing no objects directly. 33317compiler_needs_object=$lt_compiler_needs_object 33318 33319# Create an old-style archive from a shared archive. 33320old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 33321 33322# Create a temporary old-style archive to link instead of a shared archive. 33323old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 33324 33325# Commands used to build a shared archive. 33326archive_cmds=$lt_archive_cmds 33327archive_expsym_cmds=$lt_archive_expsym_cmds 33328 33329# Commands used to build a loadable module if different from building 33330# a shared archive. 33331module_cmds=$lt_module_cmds 33332module_expsym_cmds=$lt_module_expsym_cmds 33333 33334# Whether we are building with GNU ld or not. 33335with_gnu_ld=$lt_with_gnu_ld 33336 33337# Flag that allows shared libraries with undefined symbols to be built. 33338allow_undefined_flag=$lt_allow_undefined_flag 33339 33340# Flag that enforces no undefined symbols. 33341no_undefined_flag=$lt_no_undefined_flag 33342 33343# Flag to hardcode \$libdir into a binary during linking. 33344# This must work even if \$libdir does not exist 33345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 33346 33347# Whether we need a single "-rpath" flag with a separated argument. 33348hardcode_libdir_separator=$lt_hardcode_libdir_separator 33349 33350# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33351# DIR into the resulting binary. 33352hardcode_direct=$hardcode_direct 33353 33354# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33355# DIR into the resulting binary and the resulting library dependency is 33356# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33357# library is relocated. 33358hardcode_direct_absolute=$hardcode_direct_absolute 33359 33360# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33361# into the resulting binary. 33362hardcode_minus_L=$hardcode_minus_L 33363 33364# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33365# into the resulting binary. 33366hardcode_shlibpath_var=$hardcode_shlibpath_var 33367 33368# Set to "yes" if building a shared library automatically hardcodes DIR 33369# into the library and all subsequent libraries and executables linked 33370# against it. 33371hardcode_automatic=$hardcode_automatic 33372 33373# Set to yes if linker adds runtime paths of dependent libraries 33374# to runtime path list. 33375inherit_rpath=$inherit_rpath 33376 33377# Whether libtool must link a program against all its dependency libraries. 33378link_all_deplibs=$link_all_deplibs 33379 33380# Set to "yes" if exported symbols are required. 33381always_export_symbols=$always_export_symbols 33382 33383# The commands to list exported symbols. 33384export_symbols_cmds=$lt_export_symbols_cmds 33385 33386# Symbols that should not be listed in the preloaded symbols. 33387exclude_expsyms=$lt_exclude_expsyms 33388 33389# Symbols that must always be exported. 33390include_expsyms=$lt_include_expsyms 33391 33392# Commands necessary for linking programs (against libraries) with templates. 33393prelink_cmds=$lt_prelink_cmds 33394 33395# Commands necessary for finishing linking programs. 33396postlink_cmds=$lt_postlink_cmds 33397 33398# Specify filename containing input files. 33399file_list_spec=$lt_file_list_spec 33400 33401# How to hardcode a shared library path into an executable. 33402hardcode_action=$hardcode_action 33403 33404# ### END LIBTOOL CONFIG 33405 33406_LT_EOF 33407 33408 cat <<'_LT_EOF' >> "$cfgfile" 33409 33410# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 33411 33412# func_munge_path_list VARIABLE PATH 33413# ----------------------------------- 33414# VARIABLE is name of variable containing _space_ separated list of 33415# directories to be munged by the contents of PATH, which is string 33416# having a format: 33417# "DIR[:DIR]:" 33418# string "DIR[ DIR]" will be prepended to VARIABLE 33419# ":DIR[:DIR]" 33420# string "DIR[ DIR]" will be appended to VARIABLE 33421# "DIRP[:DIRP]::[DIRA:]DIRA" 33422# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 33423# "DIRA[ DIRA]" will be appended to VARIABLE 33424# "DIR[:DIR]" 33425# VARIABLE will be replaced by "DIR[ DIR]" 33426func_munge_path_list () 33427{ 33428 case x$2 in 33429 x) 33430 ;; 33431 *:) 33432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 33433 ;; 33434 x:*) 33435 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 33436 ;; 33437 *::*) 33438 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 33439 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 33440 ;; 33441 *) 33442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 33443 ;; 33444 esac 33445} 33446 33447 33448# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 33449func_cc_basename () 33450{ 33451 for cc_temp in $*""; do 33452 case $cc_temp in 33453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 33454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 33455 \-*) ;; 33456 *) break;; 33457 esac 33458 done 33459 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 33460} 33461 33462 33463# ### END FUNCTIONS SHARED WITH CONFIGURE 33464 33465_LT_EOF 33466 33467 case $host_os in 33468 aix3*) 33469 cat <<\_LT_EOF >> "$cfgfile" 33470# AIX sometimes has problems with the GCC collect2 program. For some 33471# reason, if we set the COLLECT_NAMES environment variable, the problems 33472# vanish in a puff of smoke. 33473if test set != "${COLLECT_NAMES+set}"; then 33474 COLLECT_NAMES= 33475 export COLLECT_NAMES 33476fi 33477_LT_EOF 33478 ;; 33479 esac 33480 33481 33482 33483ltmain=$ac_aux_dir/ltmain.sh 33484 33485 33486 # We use sed instead of cat because bash on DJGPP gets confused if 33487 # if finds mixed CR/LF and LF-only lines. Since sed operates in 33488 # text mode, it properly converts lines to CR/LF. This bash problem 33489 # is reportedly fixed, but why not run on old versions too? 33490 $SED '$q' "$ltmain" >> "$cfgfile" \ 33491 || (rm -f "$cfgfile"; exit 1) 33492 33493 mv -f "$cfgfile" "$ofile" || 33494 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 33495 chmod +x "$ofile" 33496 33497 ;; 33498 33499 esac 33500done # for ac_tag 33501 33502 33503as_fn_exit 0 33504_ACEOF 33505ac_clean_files=$ac_clean_files_save 33506 33507test $ac_write_fail = 0 || 33508 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 33509 33510 33511# configure is writing to config.log, and then calls config.status. 33512# config.status does its own redirection, appending to config.log. 33513# Unfortunately, on DOS this fails, as config.log is still kept open 33514# by configure, so config.status won't be able to write to it; its 33515# output is simply discarded. So we exec the FD to /dev/null, 33516# effectively closing config.log, so it can be properly (re)opened and 33517# appended to by config.status. When coming back to configure, we 33518# need to make the FD available again. 33519if test "$no_create" != yes; then 33520 ac_cs_success=: 33521 ac_config_status_args= 33522 test "$silent" = yes && 33523 ac_config_status_args="$ac_config_status_args --quiet" 33524 exec 5>/dev/null 33525 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 33526 exec 5>>config.log 33527 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 33528 # would make configure fail if this is the last instruction. 33529 $ac_cs_success || as_fn_exit 1 33530fi 33531 33532# 33533# CONFIG_SUBDIRS section. 33534# 33535if test "$no_recursion" != yes; then 33536 33537 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 33538 # so they do not pile up. 33539 ac_sub_configure_args= 33540 ac_prev= 33541 eval "set x $ac_configure_args" 33542 shift 33543 for ac_arg 33544 do 33545 if test -n "$ac_prev"; then 33546 ac_prev= 33547 continue 33548 fi 33549 case $ac_arg in 33550 -cache-file | --cache-file | --cache-fil | --cache-fi \ 33551 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 33552 ac_prev=cache_file ;; 33553 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 33554 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 33555 | --c=*) 33556 ;; 33557 --config-cache | -C) 33558 ;; 33559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 33560 ac_prev=srcdir ;; 33561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 33562 ;; 33563 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 33564 ac_prev=prefix ;; 33565 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 33566 ;; 33567 --disable-option-checking) 33568 ;; 33569 *) 33570 case $ac_arg in 33571 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 33572 esac 33573 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 33574 esac 33575 done 33576 33577 # Always prepend --prefix to ensure using the same prefix 33578 # in subdir configurations. 33579 ac_arg="--prefix=$prefix" 33580 case $ac_arg in 33581 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 33582 esac 33583 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 33584 33585 # Pass --silent 33586 if test "$silent" = yes; then 33587 ac_sub_configure_args="--silent $ac_sub_configure_args" 33588 fi 33589 33590 # Always prepend --disable-option-checking to silence warnings, since 33591 # different subdirs can have different --enable and --with options. 33592 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 33593 33594 ac_popdir=`pwd` 33595 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 33596 33597 # Do not complain, so a configure script can configure whichever 33598 # parts of a large source tree are present. 33599 test -d "$srcdir/$ac_dir" || continue 33600 33601 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 33602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 33603 printf "%s\n" "$ac_msg" >&6 33604 as_dir="$ac_dir"; as_fn_mkdir_p 33605 ac_builddir=. 33606 33607case "$ac_dir" in 33608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 33609*) 33610 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 33611 # A ".." for each directory in $ac_dir_suffix. 33612 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 33613 case $ac_top_builddir_sub in 33614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 33615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 33616 esac ;; 33617esac 33618ac_abs_top_builddir=$ac_pwd 33619ac_abs_builddir=$ac_pwd$ac_dir_suffix 33620# for backward compatibility: 33621ac_top_builddir=$ac_top_build_prefix 33622 33623case $srcdir in 33624 .) # We are building in place. 33625 ac_srcdir=. 33626 ac_top_srcdir=$ac_top_builddir_sub 33627 ac_abs_top_srcdir=$ac_pwd ;; 33628 [\\/]* | ?:[\\/]* ) # Absolute name. 33629 ac_srcdir=$srcdir$ac_dir_suffix; 33630 ac_top_srcdir=$srcdir 33631 ac_abs_top_srcdir=$srcdir ;; 33632 *) # Relative name. 33633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 33634 ac_top_srcdir=$ac_top_build_prefix$srcdir 33635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 33636esac 33637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 33638 33639 33640 cd "$ac_dir" 33641 33642 # Check for configure.gnu first; this name is used for a wrapper for 33643 # Metaconfig's "Configure" on case-insensitive file systems. 33644 if test -f "$ac_srcdir/configure.gnu"; then 33645 ac_sub_configure=$ac_srcdir/configure.gnu 33646 elif test -f "$ac_srcdir/configure"; then 33647 ac_sub_configure=$ac_srcdir/configure 33648 else 33649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 33650printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 33651 ac_sub_configure= 33652 fi 33653 33654 # The recursion is here. 33655 if test -n "$ac_sub_configure"; then 33656 # Make the cache file name correct relative to the subdirectory. 33657 case $cache_file in 33658 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 33659 *) # Relative name. 33660 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 33661 esac 33662 33663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 33664printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 33665 # The eval makes quoting arguments work. 33666 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 33667 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 33668 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 33669 fi 33670 33671 cd "$ac_popdir" 33672 done 33673fi 33674if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 33675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 33676printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 33677fi 33678 33679 33680 33681cat > include/newversion.h.in <<EOF 33682#ifndef VERSION_HIDDEN 33683#define VERSION_HIDDEN 33684#endif 33685VERSION_HIDDEN const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$"; 33686VERSION_HIDDEN const char *heimdal_version = "Heimdal 7.8.0"; 33687EOF 33688 33689if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 33690 echo "include/version.h is unchanged" 33691 rm -f include/newversion.h.in 33692else 33693 echo "creating include/version.h" 33694 User=${USER-${LOGNAME}} 33695 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 33696 Date=`date` 33697 mv -f include/newversion.h.in include/version.h.in 33698 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 33699fi 33700 33701