1#! /bin/sh 2# From configure.ac Revision. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for Heimdal 7.7.0. 5# 6# Report bugs to <https://github.com/heimdal/heimdal/issues>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 210test \$(( 1 + 1 )) = 2 || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 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'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and 279$0: https://github.com/heimdal/heimdal/issues about your 280$0: system, including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='Heimdal' 593PACKAGE_TARNAME='heimdal' 594PACKAGE_VERSION='7.7.0' 595PACKAGE_STRING='Heimdal 7.7.0' 596PACKAGE_BUGREPORT='https://github.com/heimdal/heimdal/issues' 597PACKAGE_URL='' 598 599ac_unique_file="kuser/kinit.c" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_default_prefix=/usr/heimdal 637ac_header_list= 638enable_option_checking=no 639ac_subst_vars='am__EXEEXT_FALSE 640am__EXEEXT_TRUE 641LTLIBOBJS 642HEIMDAL_DOCUMENTATION_FALSE 643HEIMDAL_DOCUMENTATION_TRUE 644LIB_AUTH_SUBDIRS 645LIB_com_err_so 646LIB_com_err_a 647LIB_com_err 648DIR_com_err 649COM_ERR_FALSE 650COM_ERR_TRUE 651COMPILE_ET 652LIBEDIT_FALSE 653LIBEDIT_TRUE 654FRAMEWORK_SECURITY_FALSE 655FRAMEWORK_SECURITY_TRUE 656KCM_FALSE 657KCM_TRUE 658LIB_door_create 659LIB_getpwnam_r 660HAVE_DLADDR_FALSE 661HAVE_DLADDR_TRUE 662LIB_dladdr 663LIB_tgetent 664LIB_openpty 665LIB_logout 666LIB_logwtmp 667subdirs 668LIB_libedit 669INCLUDE_libedit 670LIB_readline 671INCLUDE_readline 672CATMANEXT 673CATMAN_FALSE 674CATMAN_TRUE 675CATMAN 676GROFF 677NROFF 678ENABLE_AFS_STRING_TO_KEY 679LIB_security 680have_gcd_FALSE 681have_gcd_TRUE 682LIB_dispatch_async_f 683GCD_MIG 684OTP_FALSE 685OTP_TRUE 686LIB_otp 687LIBADD_roken 688INCLUDES_roken 689LIB_roken 690DIR_roken 691have_socket_wrapper_FALSE 692have_socket_wrapper_TRUE 693LIB_crypt 694have_fnmatch_h_FALSE 695have_fnmatch_h_TRUE 696LIB_gai_strerror 697LIB_freeaddrinfo 698LIB_getnameinfo 699LIB_getaddrinfo 700LIB_pidfile 701LIB_bswap64 702LIB_bswap32 703LIB_bswap16 704LIB_hstrerror 705LIB_setsockopt 706LIB_getsockopt 707have_cgetent_FALSE 708have_cgetent_TRUE 709have_glob_h_FALSE 710have_glob_h_TRUE 711LIBOBJS 712LIB_dn_expand 713LIB_dns_search 714LIB_res_ndestroy 715LIB_res_nsearch 716LIB_res_search 717LIB_gethostbyname2 718LIB_syslog 719LIB_gethostbyname 720LIB_socket 721have_vis_h_FALSE 722have_vis_h_TRUE 723have_search_h_FALSE 724have_search_h_TRUE 725have_ifaddrs_h_FALSE 726have_ifaddrs_h_TRUE 727have_err_h_FALSE 728have_err_h_TRUE 729WFLAGS_LITE 730WFLAGS 731DEVELOPER_MODE_FALSE 732DEVELOPER_MODE_TRUE 733db_type_preference 734db_type 735NDBMLIB 736LMDBLIB 737DB1LIB 738DB3LIB 739HAVE_DBHEADER_FALSE 740HAVE_DBHEADER_TRUE 741HAVE_NDBM_FALSE 742HAVE_NDBM_TRUE 743HAVE_LMDB_FALSE 744HAVE_LMDB_TRUE 745HAVE_DB3_FALSE 746HAVE_DB3_TRUE 747HAVE_DB1_FALSE 748HAVE_DB1_TRUE 749LIB_dbm_firstkey 750LIB_dbopen 751LIB_db_create 752DBHEADER 753NO_AFS_FALSE 754NO_AFS_TRUE 755NO_AFS 756dpagaix_ldflags 757dpagaix_ldadd 758dpagaix_cflags 759DCE_FALSE 760DCE_TRUE 761PTHREAD_LIBADD 762PTHREAD_LDADD 763PTHREAD_CFLAGS 764ENABLE_PTHREAD_SUPPORT_FALSE 765ENABLE_PTHREAD_SUPPORT_TRUE 766LIB_hcrypto_appl 767LIB_hcrypto_so 768LIB_hcrypto_a 769LIB_hcrypto 770LIB_openssl_crypto 771INCLUDE_openssl_crypto 772HAVE_HCRYPTO_W_OPENSSL_FALSE 773HAVE_HCRYPTO_W_OPENSSL_TRUE 774LIB_kdb 775do_roken_rename_FALSE 776do_roken_rename_TRUE 777KRB5_FALSE 778KRB5_TRUE 779DIR_hdbdir 780LIB_libintl 781INCLUDE_libintl 782have_scc_FALSE 783have_scc_TRUE 784SQLITE3_FALSE 785SQLITE3_TRUE 786LIB_sqlite3 787INCLUDE_sqlite3 788HAVE_CAPNG_FALSE 789HAVE_CAPNG_TRUE 790CAPNG_LIBS 791CAPNG_CFLAGS 792PKG_CONFIG 793PKINIT_FALSE 794PKINIT_TRUE 795OPENLDAP_MODULE_FALSE 796OPENLDAP_MODULE_TRUE 797LIB_openldap 798INCLUDE_openldap 799SLC_DEP 800SLC 801ASN1_COMPILE_DEP 802ASN1_COMPILE 803CROSS_COMPILE_FALSE 804CROSS_COMPILE_TRUE 805LDFLAGS_VERSION_SCRIPT 806versionscript_FALSE 807versionscript_TRUE 808VERSIONING 809ENABLE_SHARED_FALSE 810ENABLE_SHARED_TRUE 811LEXLIB 812LEX_OUTPUT_ROOT 813LEX 814YFLAGS 815YACC 816PERL 817IRIX_FALSE 818IRIX_TRUE 819AIX_EXTRA_KAFS 820AIX_DYNAMIC_AFS_FALSE 821AIX_DYNAMIC_AFS_TRUE 822LIB_loadquery 823HAVE_DLOPEN_FALSE 824HAVE_DLOPEN_TRUE 825LIB_dlopen 826AIX4_FALSE 827AIX4_TRUE 828AIX_FALSE 829AIX_TRUE 830CANONICAL_HOST 831CPP 832LT_SYS_LIBRARY_PATH 833OTOOL64 834OTOOL 835LIPO 836NMEDIT 837DSYMUTIL 838MANIFEST_TOOL 839RANLIB 840ac_ct_AR 841AR 842LN_S 843NM 844ac_ct_DUMPBIN 845DUMPBIN 846LD 847FGREP 848EGREP 849GREP 850SED 851am__fastdepCC_FALSE 852am__fastdepCC_TRUE 853CCDEPMODE 854am__nodep 855AMDEPBACKSLASH 856AMDEP_FALSE 857AMDEP_TRUE 858am__quote 859am__include 860DEPDIR 861OBJEXT 862EXEEXT 863ac_ct_CC 864CPPFLAGS 865LDFLAGS 866CFLAGS 867CC 868host_os 869host_vendor 870host_cpu 871host 872build_os 873build_vendor 874build_cpu 875build 876LIBTOOL 877OBJDUMP 878DLLTOOL 879AS 880MAINT 881MAINTAINER_MODE_FALSE 882MAINTAINER_MODE_TRUE 883AM_BACKSLASH 884AM_DEFAULT_VERBOSITY 885AM_DEFAULT_V 886AM_V 887am__untar 888am__tar 889AMTAR 890am__leading_dot 891SET_MAKE 892AWK 893mkdir_p 894MKDIR_P 895INSTALL_STRIP_PROGRAM 896STRIP 897install_sh 898MAKEINFO 899AUTOHEADER 900AUTOMAKE 901AUTOCONF 902ACLOCAL 903VERSION 904PACKAGE 905CYGPATH_W 906am__isrc 907INSTALL_DATA 908INSTALL_SCRIPT 909INSTALL_PROGRAM 910target_alias 911host_alias 912build_alias 913LIBS 914ECHO_T 915ECHO_N 916ECHO_C 917DEFS 918mandir 919localedir 920libdir 921psdir 922pdfdir 923dvidir 924htmldir 925infodir 926docdir 927oldincludedir 928includedir 929localstatedir 930sharedstatedir 931sysconfdir 932datadir 933datarootdir 934libexecdir 935sbindir 936bindir 937program_transform_name 938prefix 939exec_prefix 940PACKAGE_URL 941PACKAGE_BUGREPORT 942PACKAGE_STRING 943PACKAGE_VERSION 944PACKAGE_TARNAME 945PACKAGE_NAME 946PATH_SEPARATOR 947SHELL' 948ac_subst_files='' 949ac_user_opts=' 950enable_option_checking 951enable_silent_rules 952enable_maintainer_mode 953enable_shared 954enable_static 955with_pic 956enable_fast_install 957with_aix_soname 958enable_dependency_tracking 959with_gnu_ld 960with_sysroot 961enable_libtool_lock 962enable_largefile 963enable_dynamic_afs 964with_mips_abi 965with_cross_tools 966with_openldap 967with_openldap_lib 968with_openldap_include 969with_openldap_config 970enable_hdb_openldap_module 971enable_pk_init 972enable_digest 973enable_kx509 974with_capng 975with_sqlite3 976with_sqlite3_lib 977with_sqlite3_include 978with_sqlite3_config 979enable_sqlite_cache 980with_libintl 981with_libintl_lib 982with_libintl_include 983with_libintl_config 984with_hdbdir 985with_hcrypto_default_backend 986with_hcrypto_fallback 987with_openssl 988with_openssl_lib 989with_openssl_include 990with_pkcs11_module 991enable_pthread_support 992enable_dce 993enable_afs_support 994with_db_type_preference 995with_berkeley_db 996with_berkeley_db_include 997enable_ndbm_db 998enable_mdb_db 999enable_developer 1000with_ipv6 1001enable_socket_wrapper 1002enable_otp 1003enable_osfc2 1004enable_mmap 1005enable_afs_string_to_key 1006with_readline 1007with_readline_lib 1008with_readline_include 1009with_readline_config 1010with_libedit 1011with_libedit_lib 1012with_libedit_include 1013with_libedit_config 1014enable_bigendian 1015enable_littleendian 1016enable_kcm 1017enable_heimdal_documentation 1018' 1019 ac_precious_vars='build_alias 1020host_alias 1021target_alias 1022CC 1023CFLAGS 1024LDFLAGS 1025LIBS 1026CPPFLAGS 1027LT_SYS_LIBRARY_PATH 1028CPP 1029YACC 1030YFLAGS 1031PKG_CONFIG 1032CAPNG_CFLAGS 1033CAPNG_LIBS' 1034ac_subdirs_all='lib/libedit' 1035 1036# Initialize some variables set by options. 1037ac_init_help= 1038ac_init_version=false 1039ac_unrecognized_opts= 1040ac_unrecognized_sep= 1041# The variables have the same names as the options, with 1042# dashes changed to underlines. 1043cache_file=/dev/null 1044exec_prefix=NONE 1045no_create= 1046no_recursion= 1047prefix=NONE 1048program_prefix=NONE 1049program_suffix=NONE 1050program_transform_name=s,x,x, 1051silent= 1052site= 1053srcdir= 1054verbose= 1055x_includes=NONE 1056x_libraries=NONE 1057 1058# Installation directory options. 1059# These are left unexpanded so users can "make install exec_prefix=/foo" 1060# and all the variables that are supposed to be based on exec_prefix 1061# by default will actually change. 1062# Use braces instead of parens because sh, perl, etc. also accept them. 1063# (The list follows the same order as the GNU Coding Standards.) 1064bindir='${exec_prefix}/bin' 1065sbindir='${exec_prefix}/sbin' 1066libexecdir='${exec_prefix}/libexec' 1067datarootdir='${prefix}/share' 1068datadir='${datarootdir}' 1069sysconfdir='${prefix}/etc' 1070sharedstatedir='${prefix}/com' 1071localstatedir='${prefix}/var' 1072includedir='${prefix}/include' 1073oldincludedir='/usr/include' 1074docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1075infodir='${datarootdir}/info' 1076htmldir='${docdir}' 1077dvidir='${docdir}' 1078pdfdir='${docdir}' 1079psdir='${docdir}' 1080libdir='${exec_prefix}/lib' 1081localedir='${datarootdir}/locale' 1082mandir='${datarootdir}/man' 1083 1084ac_prev= 1085ac_dashdash= 1086for ac_option 1087do 1088 # If the previous option needs an argument, assign it. 1089 if test -n "$ac_prev"; then 1090 eval $ac_prev=\$ac_option 1091 ac_prev= 1092 continue 1093 fi 1094 1095 case $ac_option in 1096 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1097 *=) ac_optarg= ;; 1098 *) ac_optarg=yes ;; 1099 esac 1100 1101 # Accept the important Cygnus configure options, so we can diagnose typos. 1102 1103 case $ac_dashdash$ac_option in 1104 --) 1105 ac_dashdash=yes ;; 1106 1107 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1108 ac_prev=bindir ;; 1109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1110 bindir=$ac_optarg ;; 1111 1112 -build | --build | --buil | --bui | --bu) 1113 ac_prev=build_alias ;; 1114 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1115 build_alias=$ac_optarg ;; 1116 1117 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1119 ac_prev=cache_file ;; 1120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1122 cache_file=$ac_optarg ;; 1123 1124 --config-cache | -C) 1125 cache_file=config.cache ;; 1126 1127 -datadir | --datadir | --datadi | --datad) 1128 ac_prev=datadir ;; 1129 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1130 datadir=$ac_optarg ;; 1131 1132 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1133 | --dataroo | --dataro | --datar) 1134 ac_prev=datarootdir ;; 1135 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1136 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1137 datarootdir=$ac_optarg ;; 1138 1139 -disable-* | --disable-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid feature name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"enable_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval enable_$ac_useropt=no ;; 1154 1155 -docdir | --docdir | --docdi | --doc | --do) 1156 ac_prev=docdir ;; 1157 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1158 docdir=$ac_optarg ;; 1159 1160 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1161 ac_prev=dvidir ;; 1162 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1163 dvidir=$ac_optarg ;; 1164 1165 -enable-* | --enable-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid feature name: $ac_useropt" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174"enable_$ac_useropt" 1175"*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval enable_$ac_useropt=\$ac_optarg ;; 1180 1181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1183 | --exec | --exe | --ex) 1184 ac_prev=exec_prefix ;; 1185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1187 | --exec=* | --exe=* | --ex=*) 1188 exec_prefix=$ac_optarg ;; 1189 1190 -gas | --gas | --ga | --g) 1191 # Obsolete; use --with-gas. 1192 with_gas=yes ;; 1193 1194 -help | --help | --hel | --he | -h) 1195 ac_init_help=long ;; 1196 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1197 ac_init_help=recursive ;; 1198 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1199 ac_init_help=short ;; 1200 1201 -host | --host | --hos | --ho) 1202 ac_prev=host_alias ;; 1203 -host=* | --host=* | --hos=* | --ho=*) 1204 host_alias=$ac_optarg ;; 1205 1206 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1207 ac_prev=htmldir ;; 1208 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1209 | --ht=*) 1210 htmldir=$ac_optarg ;; 1211 1212 -includedir | --includedir | --includedi | --included | --include \ 1213 | --includ | --inclu | --incl | --inc) 1214 ac_prev=includedir ;; 1215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1216 | --includ=* | --inclu=* | --incl=* | --inc=*) 1217 includedir=$ac_optarg ;; 1218 1219 -infodir | --infodir | --infodi | --infod | --info | --inf) 1220 ac_prev=infodir ;; 1221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1222 infodir=$ac_optarg ;; 1223 1224 -libdir | --libdir | --libdi | --libd) 1225 ac_prev=libdir ;; 1226 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1227 libdir=$ac_optarg ;; 1228 1229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1230 | --libexe | --libex | --libe) 1231 ac_prev=libexecdir ;; 1232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1233 | --libexe=* | --libex=* | --libe=*) 1234 libexecdir=$ac_optarg ;; 1235 1236 -localedir | --localedir | --localedi | --localed | --locale) 1237 ac_prev=localedir ;; 1238 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1239 localedir=$ac_optarg ;; 1240 1241 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1242 | --localstate | --localstat | --localsta | --localst | --locals) 1243 ac_prev=localstatedir ;; 1244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1245 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1246 localstatedir=$ac_optarg ;; 1247 1248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1249 ac_prev=mandir ;; 1250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1251 mandir=$ac_optarg ;; 1252 1253 -nfp | --nfp | --nf) 1254 # Obsolete; use --without-fp. 1255 with_fp=no ;; 1256 1257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1258 | --no-cr | --no-c | -n) 1259 no_create=yes ;; 1260 1261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1263 no_recursion=yes ;; 1264 1265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1267 | --oldin | --oldi | --old | --ol | --o) 1268 ac_prev=oldincludedir ;; 1269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1272 oldincludedir=$ac_optarg ;; 1273 1274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1275 ac_prev=prefix ;; 1276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1277 prefix=$ac_optarg ;; 1278 1279 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1280 | --program-pre | --program-pr | --program-p) 1281 ac_prev=program_prefix ;; 1282 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1284 program_prefix=$ac_optarg ;; 1285 1286 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1287 | --program-suf | --program-su | --program-s) 1288 ac_prev=program_suffix ;; 1289 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1291 program_suffix=$ac_optarg ;; 1292 1293 -program-transform-name | --program-transform-name \ 1294 | --program-transform-nam | --program-transform-na \ 1295 | --program-transform-n | --program-transform- \ 1296 | --program-transform | --program-transfor \ 1297 | --program-transfo | --program-transf \ 1298 | --program-trans | --program-tran \ 1299 | --progr-tra | --program-tr | --program-t) 1300 ac_prev=program_transform_name ;; 1301 -program-transform-name=* | --program-transform-name=* \ 1302 | --program-transform-nam=* | --program-transform-na=* \ 1303 | --program-transform-n=* | --program-transform-=* \ 1304 | --program-transform=* | --program-transfor=* \ 1305 | --program-transfo=* | --program-transf=* \ 1306 | --program-trans=* | --program-tran=* \ 1307 | --progr-tra=* | --program-tr=* | --program-t=*) 1308 program_transform_name=$ac_optarg ;; 1309 1310 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1311 ac_prev=pdfdir ;; 1312 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1313 pdfdir=$ac_optarg ;; 1314 1315 -psdir | --psdir | --psdi | --psd | --ps) 1316 ac_prev=psdir ;; 1317 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1318 psdir=$ac_optarg ;; 1319 1320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1321 | -silent | --silent | --silen | --sile | --sil) 1322 silent=yes ;; 1323 1324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1325 ac_prev=sbindir ;; 1326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1327 | --sbi=* | --sb=*) 1328 sbindir=$ac_optarg ;; 1329 1330 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1332 | --sharedst | --shareds | --shared | --share | --shar \ 1333 | --sha | --sh) 1334 ac_prev=sharedstatedir ;; 1335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1338 | --sha=* | --sh=*) 1339 sharedstatedir=$ac_optarg ;; 1340 1341 -site | --site | --sit) 1342 ac_prev=site ;; 1343 -site=* | --site=* | --sit=*) 1344 site=$ac_optarg ;; 1345 1346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1347 ac_prev=srcdir ;; 1348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1349 srcdir=$ac_optarg ;; 1350 1351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1352 | --syscon | --sysco | --sysc | --sys | --sy) 1353 ac_prev=sysconfdir ;; 1354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1356 sysconfdir=$ac_optarg ;; 1357 1358 -target | --target | --targe | --targ | --tar | --ta | --t) 1359 ac_prev=target_alias ;; 1360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1361 target_alias=$ac_optarg ;; 1362 1363 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1364 verbose=yes ;; 1365 1366 -version | --version | --versio | --versi | --vers | -V) 1367 ac_init_version=: ;; 1368 1369 -with-* | --with-*) 1370 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1371 # Reject names that are not valid shell variable names. 1372 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1373 as_fn_error $? "invalid package name: $ac_useropt" 1374 ac_useropt_orig=$ac_useropt 1375 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1376 case $ac_user_opts in 1377 *" 1378"with_$ac_useropt" 1379"*) ;; 1380 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1381 ac_unrecognized_sep=', ';; 1382 esac 1383 eval with_$ac_useropt=\$ac_optarg ;; 1384 1385 -without-* | --without-*) 1386 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1387 # Reject names that are not valid shell variable names. 1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1389 as_fn_error $? "invalid package name: $ac_useropt" 1390 ac_useropt_orig=$ac_useropt 1391 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1392 case $ac_user_opts in 1393 *" 1394"with_$ac_useropt" 1395"*) ;; 1396 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1397 ac_unrecognized_sep=', ';; 1398 esac 1399 eval with_$ac_useropt=no ;; 1400 1401 --x) 1402 # Obsolete; use --with-x. 1403 with_x=yes ;; 1404 1405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1406 | --x-incl | --x-inc | --x-in | --x-i) 1407 ac_prev=x_includes ;; 1408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1410 x_includes=$ac_optarg ;; 1411 1412 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1414 ac_prev=x_libraries ;; 1415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1417 x_libraries=$ac_optarg ;; 1418 1419 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1420Try \`$0 --help' for more information" 1421 ;; 1422 1423 *=*) 1424 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1425 # Reject names that are not valid shell variable names. 1426 case $ac_envvar in #( 1427 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1428 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1429 esac 1430 eval $ac_envvar=\$ac_optarg 1431 export $ac_envvar ;; 1432 1433 *) 1434 # FIXME: should be removed in autoconf 3.0. 1435 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1437 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1438 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1439 ;; 1440 1441 esac 1442done 1443 1444if test -n "$ac_prev"; then 1445 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1446 as_fn_error $? "missing argument to $ac_option" 1447fi 1448 1449if test -n "$ac_unrecognized_opts"; then 1450 case $enable_option_checking in 1451 no) ;; 1452 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1453 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1454 esac 1455fi 1456 1457# Check all directory arguments for consistency. 1458for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1459 datadir sysconfdir sharedstatedir localstatedir includedir \ 1460 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1461 libdir localedir mandir 1462do 1463 eval ac_val=\$$ac_var 1464 # Remove trailing slashes. 1465 case $ac_val in 1466 */ ) 1467 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1468 eval $ac_var=\$ac_val;; 1469 esac 1470 # Be sure to have absolute directory names. 1471 case $ac_val in 1472 [\\/$]* | ?:[\\/]* ) continue;; 1473 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1474 esac 1475 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1476done 1477 1478# There might be people who depend on the old broken behavior: `$host' 1479# used to hold the argument of --host etc. 1480# FIXME: To remove some day. 1481build=$build_alias 1482host=$host_alias 1483target=$target_alias 1484 1485# FIXME: To remove some day. 1486if test "x$host_alias" != x; then 1487 if test "x$build_alias" = x; then 1488 cross_compiling=maybe 1489 elif test "x$build_alias" != "x$host_alias"; then 1490 cross_compiling=yes 1491 fi 1492fi 1493 1494ac_tool_prefix= 1495test -n "$host_alias" && ac_tool_prefix=$host_alias- 1496 1497test "$silent" = yes && exec 6>/dev/null 1498 1499 1500ac_pwd=`pwd` && test -n "$ac_pwd" && 1501ac_ls_di=`ls -di .` && 1502ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1503 as_fn_error $? "working directory cannot be determined" 1504test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1505 as_fn_error $? "pwd does not report name of working directory" 1506 1507 1508# Find the source files, if location was not specified. 1509if test -z "$srcdir"; then 1510 ac_srcdir_defaulted=yes 1511 # Try the directory containing this script, then the parent directory. 1512 ac_confdir=`$as_dirname -- "$as_myself" || 1513$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1514 X"$as_myself" : 'X\(//\)[^/]' \| \ 1515 X"$as_myself" : 'X\(//\)$' \| \ 1516 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1517$as_echo X"$as_myself" | 1518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1519 s//\1/ 1520 q 1521 } 1522 /^X\(\/\/\)[^/].*/{ 1523 s//\1/ 1524 q 1525 } 1526 /^X\(\/\/\)$/{ 1527 s//\1/ 1528 q 1529 } 1530 /^X\(\/\).*/{ 1531 s//\1/ 1532 q 1533 } 1534 s/.*/./; q'` 1535 srcdir=$ac_confdir 1536 if test ! -r "$srcdir/$ac_unique_file"; then 1537 srcdir=.. 1538 fi 1539else 1540 ac_srcdir_defaulted=no 1541fi 1542if test ! -r "$srcdir/$ac_unique_file"; then 1543 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1544 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1545fi 1546ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1547ac_abs_confdir=`( 1548 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1549 pwd)` 1550# When building in place, set srcdir=. 1551if test "$ac_abs_confdir" = "$ac_pwd"; then 1552 srcdir=. 1553fi 1554# Remove unnecessary trailing slashes from srcdir. 1555# Double slashes in file names in object file debugging info 1556# mess up M-x gdb in Emacs. 1557case $srcdir in 1558*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1559esac 1560for ac_var in $ac_precious_vars; do 1561 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1562 eval ac_env_${ac_var}_value=\$${ac_var} 1563 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1564 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1565done 1566 1567# 1568# Report the --help message. 1569# 1570if test "$ac_init_help" = "long"; then 1571 # Omit some internal or obsolete options to make the list less imposing. 1572 # This message is too long to be a string in the A/UX 3.1 sh. 1573 cat <<_ACEOF 1574\`configure' configures Heimdal 7.7.0 to adapt to many kinds of systems. 1575 1576Usage: $0 [OPTION]... [VAR=VALUE]... 1577 1578To assign environment variables (e.g., CC, CFLAGS...), specify them as 1579VAR=VALUE. See below for descriptions of some of the useful variables. 1580 1581Defaults for the options are specified in brackets. 1582 1583Configuration: 1584 -h, --help display this help and exit 1585 --help=short display options specific to this package 1586 --help=recursive display the short help of all the included packages 1587 -V, --version display version information and exit 1588 -q, --quiet, --silent do not print \`checking ...' messages 1589 --cache-file=FILE cache test results in FILE [disabled] 1590 -C, --config-cache alias for \`--cache-file=config.cache' 1591 -n, --no-create do not create output files 1592 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1593 1594Installation directories: 1595 --prefix=PREFIX install architecture-independent files in PREFIX 1596 [$ac_default_prefix] 1597 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1598 [PREFIX] 1599 1600By default, \`make install' will install all the files in 1601\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1602an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1603for instance \`--prefix=\$HOME'. 1604 1605For better control, use the options below. 1606 1607Fine tuning of the installation directories: 1608 --bindir=DIR user executables [EPREFIX/bin] 1609 --sbindir=DIR system admin executables [EPREFIX/sbin] 1610 --libexecdir=DIR program executables [EPREFIX/libexec] 1611 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1612 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1613 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1614 --libdir=DIR object code libraries [EPREFIX/lib] 1615 --includedir=DIR C header files [PREFIX/include] 1616 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1617 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1619 --infodir=DIR info documentation [DATAROOTDIR/info] 1620 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1621 --mandir=DIR man documentation [DATAROOTDIR/man] 1622 --docdir=DIR documentation root [DATAROOTDIR/doc/heimdal] 1623 --htmldir=DIR html documentation [DOCDIR] 1624 --dvidir=DIR dvi documentation [DOCDIR] 1625 --pdfdir=DIR pdf documentation [DOCDIR] 1626 --psdir=DIR ps documentation [DOCDIR] 1627_ACEOF 1628 1629 cat <<\_ACEOF 1630 1631Program names: 1632 --program-prefix=PREFIX prepend PREFIX to installed program names 1633 --program-suffix=SUFFIX append SUFFIX to installed program names 1634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1635 1636System types: 1637 --build=BUILD configure for building on BUILD [guessed] 1638 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1639_ACEOF 1640fi 1641 1642if test -n "$ac_init_help"; then 1643 case $ac_init_help in 1644 short | recursive ) echo "Configuration of Heimdal 7.7.0:";; 1645 esac 1646 cat <<\_ACEOF 1647 1648Optional Features: 1649 --disable-option-checking ignore unrecognized --enable/--with options 1650 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1652 --enable-silent-rules less verbose build output (undo: "make V=1") 1653 --disable-silent-rules verbose build output (undo: "make V=0") 1654 --enable-maintainer-mode 1655 enable make rules and dependencies not useful (and 1656 sometimes confusing) to the casual installer 1657 --enable-shared[=PKGS] build shared libraries [default=yes] 1658 --enable-static[=PKGS] build static libraries [default=yes] 1659 --enable-fast-install[=PKGS] 1660 optimize for fast installation [default=yes] 1661 --enable-dependency-tracking 1662 do not reject slow dependency extractors 1663 --disable-dependency-tracking 1664 speeds up one-time build 1665 --disable-libtool-lock avoid locking (might break parallel builds) 1666 --disable-largefile omit support for large files 1667 --disable-dynamic-afs do not use loaded AFS library with AIX 1668 --enable-hdb-openldap-module 1669 if you want support to build openldap hdb as shared 1670 object 1671 --disable-pk-init if you want disable to PK-INIT support 1672 --disable-digest if you want disable to DIGEST support 1673 --disable-kx509 if you want disable to kx509 support 1674 --disable-sqlite-cache if you want support for cache in sqlite 1675 --enable-pthread-support 1676 if you want thread safe libraries 1677 --enable-dce if you want support for DCE/DFS PAG's 1678 --disable-afs-support if you don't want support for AFS 1679 --disable-ndbm-db if you don't want ndbm db 1680 --disable-mdb-db if you don't want LMDB 1681 --enable-developer enable developer warnings 1682 --enable-socket-wrapper use sambas socket-wrapper for testing 1683 --disable-otp if you don't want OTP support 1684 --enable-osfc2 enable some OSF C2 support 1685 --disable-mmap disable use of mmap 1686 --disable-afs-string-to-key 1687 disable use of weak AFS string-to-key functions 1688 --enable-bigendian the target is big endian 1689 --enable-littleendian the target is little endian 1690 --enable-kcm enable Kerberos Credentials Manager 1691 --disable-heimdal-documentation 1692 if you want disable to heimdal documentation 1693 1694Optional Packages: 1695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1697 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1698 both] 1699 --with-aix-soname=aix|svr4|both 1700 shared library versioning (aka "SONAME") variant to 1701 provide on AIX, [default=aix]. 1702 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1703 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1704 compiler's sysroot if not specified). 1705 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 1706 --with-cross-tools=dir use cross tools in dir 1707 --with-openldap=dir use openldap in dir 1708 --with-openldap-lib=dir use openldap libraries in dir 1709 --with-openldap-include=dir 1710 use openldap headers in dir 1711 --with-openldap-config=path 1712 config program for openldap 1713 --with-capng use libcap-ng to drop KDC privileges [default=check] 1714 --with-sqlite3=dir use sqlite3 in dir 1715 --with-sqlite3-lib=dir use sqlite3 libraries in dir 1716 --with-sqlite3-include=dir 1717 use sqlite3 headers in dir 1718 --with-sqlite3-config=path 1719 config program for sqlite3 1720 --with-libintl=dir use libintl in dir 1721 --with-libintl-lib=dir use libintl libraries in dir 1722 --with-libintl-include=dir 1723 use libintl headers in dir 1724 --with-libintl-config=path 1725 config program for libintl 1726 --with-hdbdir Default location for KDC database 1727 [default=/var/heimdal] 1728 --with-hcrypto-default-backend=cc|pkcs11_hcrypto|ossl|w32crypto|hcrypto 1729 specify the default hcrypto backend 1730 --without-hcrypto-fallback 1731 disable fallback on hcrypto for unavailable 1732 algorithms 1733 --with-openssl=dir use openssl in dir 1734 --with-openssl-lib=dir use openssl libraries in dir 1735 --with-openssl-include=dir 1736 use openssl headers in dir 1737 --with-pkcs11-module=path 1738 use PKCS11 module in path 1739 --with-db-type-preference=list 1740 specify HDB backend DB type preference as 1741 whitespace-separated list of db1, db3, lmdb, and/or 1742 sqlite 1743 --with-berkeley-db enable support for berkeley db [default=check] 1744 --with-berkeley-db-include=dir 1745 use berkeley-db headers in dir 1746 --without-ipv6 do not enable IPv6 support 1747 --with-readline=dir use readline in dir 1748 --with-readline-lib=dir use readline libraries in dir 1749 --with-readline-include=dir 1750 use readline headers in dir 1751 --with-readline-config=path 1752 config program for readline 1753 --with-libedit=dir use libedit in dir 1754 --with-libedit-lib=dir use libedit libraries in dir 1755 --with-libedit-include=dir 1756 use libedit headers in dir 1757 --with-libedit-config=path 1758 config program for libedit 1759 1760Some influential environment variables: 1761 CC C compiler command 1762 CFLAGS C compiler flags 1763 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1764 nonstandard directory <lib dir> 1765 LIBS libraries to pass to the linker, e.g. -l<library> 1766 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1767 you have headers in a nonstandard directory <include dir> 1768 LT_SYS_LIBRARY_PATH 1769 User-defined run-time library search path. 1770 CPP C preprocessor 1771 YACC The `Yet Another Compiler Compiler' implementation to use. 1772 Defaults to the first program found out of: `bison -y', `byacc', 1773 `yacc'. 1774 YFLAGS The list of arguments that will be passed by default to $YACC. 1775 This script will default YFLAGS to the empty string to avoid a 1776 default value of `-d' given by some make applications. 1777 PKG_CONFIG path to pkg-config utility 1778 CAPNG_CFLAGS 1779 C compiler flags for CAPNG, overriding pkg-config 1780 CAPNG_LIBS linker flags for CAPNG, overriding pkg-config 1781 1782Use these variables to override the choices made by `configure' or to help 1783it to find libraries and programs with nonstandard names/locations. 1784 1785Report bugs to <https://github.com/heimdal/heimdal/issues>. 1786_ACEOF 1787ac_status=$? 1788fi 1789 1790if test "$ac_init_help" = "recursive"; then 1791 # If there are subdirs, report their specific --help. 1792 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1793 test -d "$ac_dir" || 1794 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1795 continue 1796 ac_builddir=. 1797 1798case "$ac_dir" in 1799.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1800*) 1801 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1802 # A ".." for each directory in $ac_dir_suffix. 1803 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1804 case $ac_top_builddir_sub in 1805 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1806 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1807 esac ;; 1808esac 1809ac_abs_top_builddir=$ac_pwd 1810ac_abs_builddir=$ac_pwd$ac_dir_suffix 1811# for backward compatibility: 1812ac_top_builddir=$ac_top_build_prefix 1813 1814case $srcdir in 1815 .) # We are building in place. 1816 ac_srcdir=. 1817 ac_top_srcdir=$ac_top_builddir_sub 1818 ac_abs_top_srcdir=$ac_pwd ;; 1819 [\\/]* | ?:[\\/]* ) # Absolute name. 1820 ac_srcdir=$srcdir$ac_dir_suffix; 1821 ac_top_srcdir=$srcdir 1822 ac_abs_top_srcdir=$srcdir ;; 1823 *) # Relative name. 1824 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1825 ac_top_srcdir=$ac_top_build_prefix$srcdir 1826 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1827esac 1828ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1829 1830 cd "$ac_dir" || { ac_status=$?; continue; } 1831 # Check for guested configure. 1832 if test -f "$ac_srcdir/configure.gnu"; then 1833 echo && 1834 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1835 elif test -f "$ac_srcdir/configure"; then 1836 echo && 1837 $SHELL "$ac_srcdir/configure" --help=recursive 1838 else 1839 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1840 fi || ac_status=$? 1841 cd "$ac_pwd" || { ac_status=$?; break; } 1842 done 1843fi 1844 1845test -n "$ac_init_help" && exit $ac_status 1846if $ac_init_version; then 1847 cat <<\_ACEOF 1848Heimdal configure 7.7.0 1849generated by GNU Autoconf 2.69 1850 1851Copyright (C) 2012 Free Software Foundation, Inc. 1852This configure script is free software; the Free Software Foundation 1853gives unlimited permission to copy, distribute and modify it. 1854_ACEOF 1855 exit 1856fi 1857 1858## ------------------------ ## 1859## Autoconf initialization. ## 1860## ------------------------ ## 1861 1862# ac_fn_c_try_compile LINENO 1863# -------------------------- 1864# Try to compile conftest.$ac_ext, and return whether this succeeded. 1865ac_fn_c_try_compile () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 rm -f conftest.$ac_objext 1869 if { { ac_try="$ac_compile" 1870case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873esac 1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875$as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_compile") 2>conftest.err 1877 ac_status=$? 1878 if test -s conftest.err; then 1879 grep -v '^ *+' conftest.err >conftest.er1 1880 cat conftest.er1 >&5 1881 mv -f conftest.er1 conftest.err 1882 fi 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } && { 1885 test -z "$ac_c_werror_flag" || 1886 test ! -s conftest.err 1887 } && test -s conftest.$ac_objext; then : 1888 ac_retval=0 1889else 1890 $as_echo "$as_me: failed program was:" >&5 1891sed 's/^/| /' conftest.$ac_ext >&5 1892 1893 ac_retval=1 1894fi 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 as_fn_set_status $ac_retval 1897 1898} # ac_fn_c_try_compile 1899 1900# ac_fn_c_try_link LINENO 1901# ----------------------- 1902# Try to link conftest.$ac_ext, and return whether this succeeded. 1903ac_fn_c_try_link () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 rm -f conftest.$ac_objext conftest$ac_exeext 1907 if { { ac_try="$ac_link" 1908case "(($ac_try" in 1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1910 *) ac_try_echo=$ac_try;; 1911esac 1912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1913$as_echo "$ac_try_echo"; } >&5 1914 (eval "$ac_link") 2>conftest.err 1915 ac_status=$? 1916 if test -s conftest.err; then 1917 grep -v '^ *+' conftest.err >conftest.er1 1918 cat conftest.er1 >&5 1919 mv -f conftest.er1 conftest.err 1920 fi 1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1922 test $ac_status = 0; } && { 1923 test -z "$ac_c_werror_flag" || 1924 test ! -s conftest.err 1925 } && test -s conftest$ac_exeext && { 1926 test "$cross_compiling" = yes || 1927 test -x conftest$ac_exeext 1928 }; then : 1929 ac_retval=0 1930else 1931 $as_echo "$as_me: failed program was:" >&5 1932sed 's/^/| /' conftest.$ac_ext >&5 1933 1934 ac_retval=1 1935fi 1936 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1937 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1938 # interfere with the next link command; also delete a directory that is 1939 # left behind by Apple's compiler. We do this before executing the actions. 1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 as_fn_set_status $ac_retval 1943 1944} # ac_fn_c_try_link 1945 1946# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1947# ------------------------------------------------------- 1948# Tests whether HEADER exists and can be compiled using the include files in 1949# INCLUDES, setting the cache variable VAR accordingly. 1950ac_fn_c_check_header_compile () 1951{ 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1954$as_echo_n "checking for $2... " >&6; } 1955if eval \${$3+:} false; then : 1956 $as_echo_n "(cached) " >&6 1957else 1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959/* end confdefs.h. */ 1960$4 1961#include <$2> 1962_ACEOF 1963if ac_fn_c_try_compile "$LINENO"; then : 1964 eval "$3=yes" 1965else 1966 eval "$3=no" 1967fi 1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1969fi 1970eval ac_res=\$$3 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972$as_echo "$ac_res" >&6; } 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 1975} # ac_fn_c_check_header_compile 1976 1977# ac_fn_c_try_cpp LINENO 1978# ---------------------- 1979# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1980ac_fn_c_try_cpp () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 if { { ac_try="$ac_cpp conftest.$ac_ext" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1991 ac_status=$? 1992 if test -s conftest.err; then 1993 grep -v '^ *+' conftest.err >conftest.er1 1994 cat conftest.er1 >&5 1995 mv -f conftest.er1 conftest.err 1996 fi 1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1998 test $ac_status = 0; } > conftest.i && { 1999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2000 test ! -s conftest.err 2001 }; then : 2002 ac_retval=0 2003else 2004 $as_echo "$as_me: failed program was:" >&5 2005sed 's/^/| /' conftest.$ac_ext >&5 2006 2007 ac_retval=1 2008fi 2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2010 as_fn_set_status $ac_retval 2011 2012} # ac_fn_c_try_cpp 2013 2014# ac_fn_c_try_run LINENO 2015# ---------------------- 2016# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2017# that executables *can* be run. 2018ac_fn_c_try_run () 2019{ 2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2021 if { { ac_try="$ac_link" 2022case "(($ac_try" in 2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2024 *) ac_try_echo=$ac_try;; 2025esac 2026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2027$as_echo "$ac_try_echo"; } >&5 2028 (eval "$ac_link") 2>&5 2029 ac_status=$? 2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2031 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2032 { { case "(($ac_try" in 2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2034 *) ac_try_echo=$ac_try;; 2035esac 2036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2037$as_echo "$ac_try_echo"; } >&5 2038 (eval "$ac_try") 2>&5 2039 ac_status=$? 2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2041 test $ac_status = 0; }; }; then : 2042 ac_retval=0 2043else 2044 $as_echo "$as_me: program exited with status $ac_status" >&5 2045 $as_echo "$as_me: failed program was:" >&5 2046sed 's/^/| /' conftest.$ac_ext >&5 2047 2048 ac_retval=$ac_status 2049fi 2050 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 as_fn_set_status $ac_retval 2053 2054} # ac_fn_c_try_run 2055 2056# ac_fn_c_check_func LINENO FUNC VAR 2057# ---------------------------------- 2058# Tests whether FUNC exists, setting the cache variable VAR accordingly 2059ac_fn_c_check_func () 2060{ 2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2063$as_echo_n "checking for $2... " >&6; } 2064if eval \${$3+:} false; then : 2065 $as_echo_n "(cached) " >&6 2066else 2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2068/* end confdefs.h. */ 2069/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2071#define $2 innocuous_$2 2072 2073/* System header to define __stub macros and hopefully few prototypes, 2074 which can conflict with char $2 (); below. 2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2076 <limits.h> exists even on freestanding compilers. */ 2077 2078#ifdef __STDC__ 2079# include <limits.h> 2080#else 2081# include <assert.h> 2082#endif 2083 2084#undef $2 2085 2086/* Override any GCC internal prototype to avoid an error. 2087 Use char because int might match the return type of a GCC 2088 builtin and then its argument prototype would still apply. */ 2089#ifdef __cplusplus 2090extern "C" 2091#endif 2092char $2 (); 2093/* The GNU C library defines this for functions which it implements 2094 to always fail with ENOSYS. Some functions are actually named 2095 something starting with __ and the normal name is an alias. */ 2096#if defined __stub_$2 || defined __stub___$2 2097choke me 2098#endif 2099 2100int 2101main () 2102{ 2103return $2 (); 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108if ac_fn_c_try_link "$LINENO"; then : 2109 eval "$3=yes" 2110else 2111 eval "$3=no" 2112fi 2113rm -f core conftest.err conftest.$ac_objext \ 2114 conftest$ac_exeext conftest.$ac_ext 2115fi 2116eval ac_res=\$$3 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2118$as_echo "$ac_res" >&6; } 2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2120 2121} # ac_fn_c_check_func 2122 2123# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2124# ------------------------------------------------------- 2125# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2126# the include files in INCLUDES and setting the cache variable VAR 2127# accordingly. 2128ac_fn_c_check_header_mongrel () 2129{ 2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2131 if eval \${$3+:} false; then : 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2133$as_echo_n "checking for $2... " >&6; } 2134if eval \${$3+:} false; then : 2135 $as_echo_n "(cached) " >&6 2136fi 2137eval ac_res=\$$3 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2139$as_echo "$ac_res" >&6; } 2140else 2141 # Is the header compilable? 2142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2143$as_echo_n "checking $2 usability... " >&6; } 2144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2145/* end confdefs.h. */ 2146$4 2147#include <$2> 2148_ACEOF 2149if ac_fn_c_try_compile "$LINENO"; then : 2150 ac_header_compiler=yes 2151else 2152 ac_header_compiler=no 2153fi 2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2156$as_echo "$ac_header_compiler" >&6; } 2157 2158# Is the header present? 2159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2160$as_echo_n "checking $2 presence... " >&6; } 2161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163#include <$2> 2164_ACEOF 2165if ac_fn_c_try_cpp "$LINENO"; then : 2166 ac_header_preproc=yes 2167else 2168 ac_header_preproc=no 2169fi 2170rm -f conftest.err conftest.i conftest.$ac_ext 2171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2172$as_echo "$ac_header_preproc" >&6; } 2173 2174# So? What about this header? 2175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2176 yes:no: ) 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2178$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2180$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2181 ;; 2182 no:yes:* ) 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2184$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2186$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2188$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2190$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2192$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2193( $as_echo "## -------------------------------------------------------- ## 2194## Report this to https://github.com/heimdal/heimdal/issues ## 2195## -------------------------------------------------------- ##" 2196 ) | sed "s/^/$as_me: WARNING: /" >&2 2197 ;; 2198esac 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2200$as_echo_n "checking for $2... " >&6; } 2201if eval \${$3+:} false; then : 2202 $as_echo_n "(cached) " >&6 2203else 2204 eval "$3=\$ac_header_compiler" 2205fi 2206eval ac_res=\$$3 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2208$as_echo "$ac_res" >&6; } 2209fi 2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2211 2212} # ac_fn_c_check_header_mongrel 2213 2214# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2215# ------------------------------------------- 2216# Tests whether TYPE exists after having included INCLUDES, setting cache 2217# variable VAR accordingly. 2218ac_fn_c_check_type () 2219{ 2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2222$as_echo_n "checking for $2... " >&6; } 2223if eval \${$3+:} false; then : 2224 $as_echo_n "(cached) " >&6 2225else 2226 eval "$3=no" 2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2228/* end confdefs.h. */ 2229$4 2230int 2231main () 2232{ 2233if (sizeof ($2)) 2234 return 0; 2235 ; 2236 return 0; 2237} 2238_ACEOF 2239if ac_fn_c_try_compile "$LINENO"; then : 2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2241/* end confdefs.h. */ 2242$4 2243int 2244main () 2245{ 2246if (sizeof (($2))) 2247 return 0; 2248 ; 2249 return 0; 2250} 2251_ACEOF 2252if ac_fn_c_try_compile "$LINENO"; then : 2253 2254else 2255 eval "$3=yes" 2256fi 2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2258fi 2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2260fi 2261eval ac_res=\$$3 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2263$as_echo "$ac_res" >&6; } 2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2265 2266} # ac_fn_c_check_type 2267 2268# ac_fn_c_check_header_preproc LINENO HEADER VAR 2269# ---------------------------------------------- 2270# Tests whether HEADER is present, setting the cache variable VAR accordingly. 2271ac_fn_c_check_header_preproc () 2272{ 2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2275$as_echo_n "checking for $2... " >&6; } 2276if eval \${$3+:} false; then : 2277 $as_echo_n "(cached) " >&6 2278else 2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2280/* end confdefs.h. */ 2281#include <$2> 2282_ACEOF 2283if ac_fn_c_try_cpp "$LINENO"; then : 2284 eval "$3=yes" 2285else 2286 eval "$3=no" 2287fi 2288rm -f conftest.err conftest.i conftest.$ac_ext 2289fi 2290eval ac_res=\$$3 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2292$as_echo "$ac_res" >&6; } 2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2294 2295} # ac_fn_c_check_header_preproc 2296cat >config.log <<_ACEOF 2297This file contains any messages produced by compilers while 2298running configure, to aid debugging if configure makes a mistake. 2299 2300It was created by Heimdal $as_me 7.7.0, which was 2301generated by GNU Autoconf 2.69. Invocation command line was 2302 2303 $ $0 $@ 2304 2305_ACEOF 2306exec 5>>config.log 2307{ 2308cat <<_ASUNAME 2309## --------- ## 2310## Platform. ## 2311## --------- ## 2312 2313hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2314uname -m = `(uname -m) 2>/dev/null || echo unknown` 2315uname -r = `(uname -r) 2>/dev/null || echo unknown` 2316uname -s = `(uname -s) 2>/dev/null || echo unknown` 2317uname -v = `(uname -v) 2>/dev/null || echo unknown` 2318 2319/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2320/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2321 2322/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2323/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2324/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2325/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2326/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2327/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2328/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2329 2330_ASUNAME 2331 2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2333for as_dir in $PATH 2334do 2335 IFS=$as_save_IFS 2336 test -z "$as_dir" && as_dir=. 2337 $as_echo "PATH: $as_dir" 2338 done 2339IFS=$as_save_IFS 2340 2341} >&5 2342 2343cat >&5 <<_ACEOF 2344 2345 2346## ----------- ## 2347## Core tests. ## 2348## ----------- ## 2349 2350_ACEOF 2351 2352 2353# Keep a trace of the command line. 2354# Strip out --no-create and --no-recursion so they do not pile up. 2355# Strip out --silent because we don't want to record it for future runs. 2356# Also quote any args containing shell meta-characters. 2357# Make two passes to allow for proper duplicate-argument suppression. 2358ac_configure_args= 2359ac_configure_args0= 2360ac_configure_args1= 2361ac_must_keep_next=false 2362for ac_pass in 1 2 2363do 2364 for ac_arg 2365 do 2366 case $ac_arg in 2367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2369 | -silent | --silent | --silen | --sile | --sil) 2370 continue ;; 2371 *\'*) 2372 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2373 esac 2374 case $ac_pass in 2375 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2376 2) 2377 as_fn_append ac_configure_args1 " '$ac_arg'" 2378 if test $ac_must_keep_next = true; then 2379 ac_must_keep_next=false # Got value, back to normal. 2380 else 2381 case $ac_arg in 2382 *=* | --config-cache | -C | -disable-* | --disable-* \ 2383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2385 | -with-* | --with-* | -without-* | --without-* | --x) 2386 case "$ac_configure_args0 " in 2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2388 esac 2389 ;; 2390 -* ) ac_must_keep_next=true ;; 2391 esac 2392 fi 2393 as_fn_append ac_configure_args " '$ac_arg'" 2394 ;; 2395 esac 2396 done 2397done 2398{ ac_configure_args0=; unset ac_configure_args0;} 2399{ ac_configure_args1=; unset ac_configure_args1;} 2400 2401# When interrupted or exit'd, cleanup temporary files, and complete 2402# config.log. We remove comments because anyway the quotes in there 2403# would cause problems or look ugly. 2404# WARNING: Use '\'' to represent an apostrophe within the trap. 2405# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2406trap 'exit_status=$? 2407 # Save into config.log some information that might help in debugging. 2408 { 2409 echo 2410 2411 $as_echo "## ---------------- ## 2412## Cache variables. ## 2413## ---------------- ##" 2414 echo 2415 # The following way of writing the cache mishandles newlines in values, 2416( 2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2418 eval ac_val=\$$ac_var 2419 case $ac_val in #( 2420 *${as_nl}*) 2421 case $ac_var in #( 2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2423$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2424 esac 2425 case $ac_var in #( 2426 _ | IFS | as_nl) ;; #( 2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2428 *) { eval $ac_var=; unset $ac_var;} ;; 2429 esac ;; 2430 esac 2431 done 2432 (set) 2>&1 | 2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2434 *${as_nl}ac_space=\ *) 2435 sed -n \ 2436 "s/'\''/'\''\\\\'\'''\''/g; 2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2438 ;; #( 2439 *) 2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2441 ;; 2442 esac | 2443 sort 2444) 2445 echo 2446 2447 $as_echo "## ----------------- ## 2448## Output variables. ## 2449## ----------------- ##" 2450 echo 2451 for ac_var in $ac_subst_vars 2452 do 2453 eval ac_val=\$$ac_var 2454 case $ac_val in 2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2456 esac 2457 $as_echo "$ac_var='\''$ac_val'\''" 2458 done | sort 2459 echo 2460 2461 if test -n "$ac_subst_files"; then 2462 $as_echo "## ------------------- ## 2463## File substitutions. ## 2464## ------------------- ##" 2465 echo 2466 for ac_var in $ac_subst_files 2467 do 2468 eval ac_val=\$$ac_var 2469 case $ac_val in 2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2471 esac 2472 $as_echo "$ac_var='\''$ac_val'\''" 2473 done | sort 2474 echo 2475 fi 2476 2477 if test -s confdefs.h; then 2478 $as_echo "## ----------- ## 2479## confdefs.h. ## 2480## ----------- ##" 2481 echo 2482 cat confdefs.h 2483 echo 2484 fi 2485 test "$ac_signal" != 0 && 2486 $as_echo "$as_me: caught signal $ac_signal" 2487 $as_echo "$as_me: exit $exit_status" 2488 } >&5 2489 rm -f core *.core core.conftest.* && 2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2491 exit $exit_status 2492' 0 2493for ac_signal in 1 2 13 15; do 2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2495done 2496ac_signal=0 2497 2498# confdefs.h avoids OS command line length limits that DEFS can exceed. 2499rm -f -r conftest* confdefs.h 2500 2501$as_echo "/* confdefs.h */" > confdefs.h 2502 2503# Predefined preprocessor variables. 2504 2505cat >>confdefs.h <<_ACEOF 2506#define PACKAGE_NAME "$PACKAGE_NAME" 2507_ACEOF 2508 2509cat >>confdefs.h <<_ACEOF 2510#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2511_ACEOF 2512 2513cat >>confdefs.h <<_ACEOF 2514#define PACKAGE_VERSION "$PACKAGE_VERSION" 2515_ACEOF 2516 2517cat >>confdefs.h <<_ACEOF 2518#define PACKAGE_STRING "$PACKAGE_STRING" 2519_ACEOF 2520 2521cat >>confdefs.h <<_ACEOF 2522#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2523_ACEOF 2524 2525cat >>confdefs.h <<_ACEOF 2526#define PACKAGE_URL "$PACKAGE_URL" 2527_ACEOF 2528 2529 2530# Let the site file select an alternate cache file if it wants to. 2531# Prefer an explicitly selected file to automatically selected ones. 2532ac_site_file1=NONE 2533ac_site_file2=NONE 2534if test -n "$CONFIG_SITE"; then 2535 # We do not want a PATH search for config.site. 2536 case $CONFIG_SITE in #(( 2537 -*) ac_site_file1=./$CONFIG_SITE;; 2538 */*) ac_site_file1=$CONFIG_SITE;; 2539 *) ac_site_file1=./$CONFIG_SITE;; 2540 esac 2541elif test "x$prefix" != xNONE; then 2542 ac_site_file1=$prefix/share/config.site 2543 ac_site_file2=$prefix/etc/config.site 2544else 2545 ac_site_file1=$ac_default_prefix/share/config.site 2546 ac_site_file2=$ac_default_prefix/etc/config.site 2547fi 2548for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2549do 2550 test "x$ac_site_file" = xNONE && continue 2551 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2553$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2554 sed 's/^/| /' "$ac_site_file" >&5 2555 . "$ac_site_file" \ 2556 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2558as_fn_error $? "failed to load site script $ac_site_file 2559See \`config.log' for more details" "$LINENO" 5; } 2560 fi 2561done 2562 2563if test -r "$cache_file"; then 2564 # Some versions of bash will fail to source /dev/null (special files 2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2568$as_echo "$as_me: loading cache $cache_file" >&6;} 2569 case $cache_file in 2570 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2571 *) . "./$cache_file";; 2572 esac 2573 fi 2574else 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2576$as_echo "$as_me: creating cache $cache_file" >&6;} 2577 >$cache_file 2578fi 2579 2580as_fn_append ac_header_list " stdlib.h" 2581as_fn_append ac_header_list " unistd.h" 2582as_fn_append ac_header_list " sys/param.h" 2583# Check that the precious variables saved in the cache have kept the same 2584# value. 2585ac_cache_corrupted=false 2586for ac_var in $ac_precious_vars; do 2587 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2588 eval ac_new_set=\$ac_env_${ac_var}_set 2589 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2590 eval ac_new_val=\$ac_env_${ac_var}_value 2591 case $ac_old_set,$ac_new_set in 2592 set,) 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2594$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2595 ac_cache_corrupted=: ;; 2596 ,set) 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2598$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2599 ac_cache_corrupted=: ;; 2600 ,);; 2601 *) 2602 if test "x$ac_old_val" != "x$ac_new_val"; then 2603 # differences in whitespace do not lead to failure. 2604 ac_old_val_w=`echo x $ac_old_val` 2605 ac_new_val_w=`echo x $ac_new_val` 2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2608$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2609 ac_cache_corrupted=: 2610 else 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2612$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2613 eval $ac_var=\$ac_old_val 2614 fi 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2616$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2618$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2619 fi;; 2620 esac 2621 # Pass precious variables to config.status. 2622 if test "$ac_new_set" = set; then 2623 case $ac_new_val in 2624 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2625 *) ac_arg=$ac_var=$ac_new_val ;; 2626 esac 2627 case " $ac_configure_args " in 2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2629 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2630 esac 2631 fi 2632done 2633if $ac_cache_corrupted; then 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2637$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2638 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2639fi 2640## -------------------- ## 2641## Main body of script. ## 2642## -------------------- ## 2643 2644ac_ext=c 2645ac_cpp='$CPP $CPPFLAGS' 2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2648ac_compiler_gnu=$ac_cv_c_compiler_gnu 2649 2650 2651 2652ac_config_headers="$ac_config_headers include/config.h" 2653 2654 2655 2656am__api_version='1.15' 2657 2658ac_aux_dir= 2659for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2660 if test -f "$ac_dir/install-sh"; then 2661 ac_aux_dir=$ac_dir 2662 ac_install_sh="$ac_aux_dir/install-sh -c" 2663 break 2664 elif test -f "$ac_dir/install.sh"; then 2665 ac_aux_dir=$ac_dir 2666 ac_install_sh="$ac_aux_dir/install.sh -c" 2667 break 2668 elif test -f "$ac_dir/shtool"; then 2669 ac_aux_dir=$ac_dir 2670 ac_install_sh="$ac_aux_dir/shtool install -c" 2671 break 2672 fi 2673done 2674if test -z "$ac_aux_dir"; then 2675 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2676fi 2677 2678# These three variables are undocumented and unsupported, 2679# and are intended to be withdrawn in a future Autoconf release. 2680# They can cause serious problems if a builder's source tree is in a directory 2681# whose full name contains unusual characters. 2682ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2683ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2684ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2685 2686 2687# Find a good install program. We prefer a C program (faster), 2688# so one script is as good as another. But avoid the broken or 2689# incompatible versions: 2690# SysV /etc/install, /usr/sbin/install 2691# SunOS /usr/etc/install 2692# IRIX /sbin/install 2693# AIX /bin/install 2694# AmigaOS /C/install, which installs bootblocks on floppy discs 2695# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2696# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2697# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2698# OS/2's system install, which has a completely different semantic 2699# ./install, which can be erroneously created by make from ./install.sh. 2700# Reject install programs that cannot install multiple files. 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2702$as_echo_n "checking for a BSD-compatible install... " >&6; } 2703if test -z "$INSTALL"; then 2704if ${ac_cv_path_install+:} false; then : 2705 $as_echo_n "(cached) " >&6 2706else 2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2708for as_dir in $PATH 2709do 2710 IFS=$as_save_IFS 2711 test -z "$as_dir" && as_dir=. 2712 # Account for people who put trailing slashes in PATH elements. 2713case $as_dir/ in #(( 2714 ./ | .// | /[cC]/* | \ 2715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2717 /usr/ucb/* ) ;; 2718 *) 2719 # OSF1 and SCO ODT 3.0 have their own names for install. 2720 # Don't use installbsd from OSF since it installs stuff as root 2721 # by default. 2722 for ac_prog in ginstall scoinst install; do 2723 for ac_exec_ext in '' $ac_executable_extensions; do 2724 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2725 if test $ac_prog = install && 2726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2727 # AIX install. It has an incompatible calling convention. 2728 : 2729 elif test $ac_prog = install && 2730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2731 # program-specific install script used by HP pwplus--don't use. 2732 : 2733 else 2734 rm -rf conftest.one conftest.two conftest.dir 2735 echo one > conftest.one 2736 echo two > conftest.two 2737 mkdir conftest.dir 2738 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2739 test -s conftest.one && test -s conftest.two && 2740 test -s conftest.dir/conftest.one && 2741 test -s conftest.dir/conftest.two 2742 then 2743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2744 break 3 2745 fi 2746 fi 2747 fi 2748 done 2749 done 2750 ;; 2751esac 2752 2753 done 2754IFS=$as_save_IFS 2755 2756rm -rf conftest.one conftest.two conftest.dir 2757 2758fi 2759 if test "${ac_cv_path_install+set}" = set; then 2760 INSTALL=$ac_cv_path_install 2761 else 2762 # As a last resort, use the slow shell script. Don't cache a 2763 # value for INSTALL within a source directory, because that will 2764 # break other packages using the cache if that directory is 2765 # removed, or if the value is a relative name. 2766 INSTALL=$ac_install_sh 2767 fi 2768fi 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2770$as_echo "$INSTALL" >&6; } 2771 2772# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2773# It thinks the first close brace ends the variable substitution. 2774test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2775 2776test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2777 2778test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2779 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2781$as_echo_n "checking whether build environment is sane... " >&6; } 2782# Reject unsafe characters in $srcdir or the absolute working directory 2783# name. Accept space and tab only in the latter. 2784am_lf=' 2785' 2786case `pwd` in 2787 *[\\\"\#\$\&\'\`$am_lf]*) 2788 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2789esac 2790case $srcdir in 2791 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2792 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2793esac 2794 2795# Do 'set' in a subshell so we don't clobber the current shell's 2796# arguments. Must try -L first in case configure is actually a 2797# symlink; some systems play weird games with the mod time of symlinks 2798# (eg FreeBSD returns the mod time of the symlink's containing 2799# directory). 2800if ( 2801 am_has_slept=no 2802 for am_try in 1 2; do 2803 echo "timestamp, slept: $am_has_slept" > conftest.file 2804 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2805 if test "$*" = "X"; then 2806 # -L didn't work. 2807 set X `ls -t "$srcdir/configure" conftest.file` 2808 fi 2809 if test "$*" != "X $srcdir/configure conftest.file" \ 2810 && test "$*" != "X conftest.file $srcdir/configure"; then 2811 2812 # If neither matched, then we have a broken ls. This can happen 2813 # if, for instance, CONFIG_SHELL is bash and it inherits a 2814 # broken ls alias from the environment. This has actually 2815 # happened. Such a system could not be considered "sane". 2816 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2817 alias in your environment" "$LINENO" 5 2818 fi 2819 if test "$2" = conftest.file || test $am_try -eq 2; then 2820 break 2821 fi 2822 # Just in case. 2823 sleep 1 2824 am_has_slept=yes 2825 done 2826 test "$2" = conftest.file 2827 ) 2828then 2829 # Ok. 2830 : 2831else 2832 as_fn_error $? "newly created file is older than distributed files! 2833Check your system clock" "$LINENO" 5 2834fi 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2836$as_echo "yes" >&6; } 2837# If we didn't sleep, we still need to ensure time stamps of config.status and 2838# generated files are strictly newer. 2839am_sleep_pid= 2840if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2841 ( sleep 1 ) & 2842 am_sleep_pid=$! 2843fi 2844 2845rm -f conftest.file 2846 2847test "$program_prefix" != NONE && 2848 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2849# Use a double $ so make ignores it. 2850test "$program_suffix" != NONE && 2851 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2852# Double any \ or $. 2853# By default was `s,x,x', remove it if useless. 2854ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2855program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2856 2857# Expand $ac_aux_dir to an absolute path. 2858am_aux_dir=`cd "$ac_aux_dir" && pwd` 2859 2860if test x"${MISSING+set}" != xset; then 2861 case $am_aux_dir in 2862 *\ * | *\ *) 2863 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2864 *) 2865 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2866 esac 2867fi 2868# Use eval to expand $SHELL 2869if eval "$MISSING --is-lightweight"; then 2870 am_missing_run="$MISSING " 2871else 2872 am_missing_run= 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2874$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2875fi 2876 2877if test x"${install_sh+set}" != xset; then 2878 case $am_aux_dir in 2879 *\ * | *\ *) 2880 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2881 *) 2882 install_sh="\${SHELL} $am_aux_dir/install-sh" 2883 esac 2884fi 2885 2886# Installed binaries are usually stripped using 'strip' when the user 2887# run "make install-strip". However 'strip' might not be the right 2888# tool to use in cross-compilation environments, therefore Automake 2889# will honor the 'STRIP' environment variable to overrule this program. 2890if test "$cross_compiling" != no; then 2891 if test -n "$ac_tool_prefix"; then 2892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2893set dummy ${ac_tool_prefix}strip; ac_word=$2 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895$as_echo_n "checking for $ac_word... " >&6; } 2896if ${ac_cv_prog_STRIP+:} false; then : 2897 $as_echo_n "(cached) " >&6 2898else 2899 if test -n "$STRIP"; then 2900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2901else 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2909 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913done 2914 done 2915IFS=$as_save_IFS 2916 2917fi 2918fi 2919STRIP=$ac_cv_prog_STRIP 2920if test -n "$STRIP"; then 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2922$as_echo "$STRIP" >&6; } 2923else 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2925$as_echo "no" >&6; } 2926fi 2927 2928 2929fi 2930if test -z "$ac_cv_prog_STRIP"; then 2931 ac_ct_STRIP=$STRIP 2932 # Extract the first word of "strip", so it can be a program name with args. 2933set dummy strip; ac_word=$2 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2935$as_echo_n "checking for $ac_word... " >&6; } 2936if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2937 $as_echo_n "(cached) " >&6 2938else 2939 if test -n "$ac_ct_STRIP"; then 2940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2941else 2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2943for as_dir in $PATH 2944do 2945 IFS=$as_save_IFS 2946 test -z "$as_dir" && as_dir=. 2947 for ac_exec_ext in '' $ac_executable_extensions; do 2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2949 ac_cv_prog_ac_ct_STRIP="strip" 2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2951 break 2 2952 fi 2953done 2954 done 2955IFS=$as_save_IFS 2956 2957fi 2958fi 2959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2960if test -n "$ac_ct_STRIP"; then 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2962$as_echo "$ac_ct_STRIP" >&6; } 2963else 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965$as_echo "no" >&6; } 2966fi 2967 2968 if test "x$ac_ct_STRIP" = x; then 2969 STRIP=":" 2970 else 2971 case $cross_compiling:$ac_tool_warned in 2972yes:) 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2975ac_tool_warned=yes ;; 2976esac 2977 STRIP=$ac_ct_STRIP 2978 fi 2979else 2980 STRIP="$ac_cv_prog_STRIP" 2981fi 2982 2983fi 2984INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2985 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2987$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2988if test -z "$MKDIR_P"; then 2989 if ${ac_cv_path_mkdir+:} false; then : 2990 $as_echo_n "(cached) " >&6 2991else 2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2993for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2994do 2995 IFS=$as_save_IFS 2996 test -z "$as_dir" && as_dir=. 2997 for ac_prog in mkdir gmkdir; do 2998 for ac_exec_ext in '' $ac_executable_extensions; do 2999 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3000 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3001 'mkdir (GNU coreutils) '* | \ 3002 'mkdir (coreutils) '* | \ 3003 'mkdir (fileutils) '4.1*) 3004 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3005 break 3;; 3006 esac 3007 done 3008 done 3009 done 3010IFS=$as_save_IFS 3011 3012fi 3013 3014 test -d ./--version && rmdir ./--version 3015 if test "${ac_cv_path_mkdir+set}" = set; then 3016 MKDIR_P="$ac_cv_path_mkdir -p" 3017 else 3018 # As a last resort, use the slow shell script. Don't cache a 3019 # value for MKDIR_P within a source directory, because that will 3020 # break other packages using the cache if that directory is 3021 # removed, or if the value is a relative name. 3022 MKDIR_P="$ac_install_sh -d" 3023 fi 3024fi 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3026$as_echo "$MKDIR_P" >&6; } 3027 3028for ac_prog in gawk mawk nawk awk 3029do 3030 # Extract the first word of "$ac_prog", so it can be a program name with args. 3031set dummy $ac_prog; ac_word=$2 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3033$as_echo_n "checking for $ac_word... " >&6; } 3034if ${ac_cv_prog_AWK+:} false; then : 3035 $as_echo_n "(cached) " >&6 3036else 3037 if test -n "$AWK"; then 3038 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3039else 3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3041for as_dir in $PATH 3042do 3043 IFS=$as_save_IFS 3044 test -z "$as_dir" && as_dir=. 3045 for ac_exec_ext in '' $ac_executable_extensions; do 3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3047 ac_cv_prog_AWK="$ac_prog" 3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3049 break 2 3050 fi 3051done 3052 done 3053IFS=$as_save_IFS 3054 3055fi 3056fi 3057AWK=$ac_cv_prog_AWK 3058if test -n "$AWK"; then 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3060$as_echo "$AWK" >&6; } 3061else 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3063$as_echo "no" >&6; } 3064fi 3065 3066 3067 test -n "$AWK" && break 3068done 3069 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3071$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3072set x ${MAKE-make} 3073ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3074if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3075 $as_echo_n "(cached) " >&6 3076else 3077 cat >conftest.make <<\_ACEOF 3078SHELL = /bin/sh 3079all: 3080 @echo '@@@%%%=$(MAKE)=@@@%%%' 3081_ACEOF 3082# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3083case `${MAKE-make} -f conftest.make 2>/dev/null` in 3084 *@@@%%%=?*=@@@%%%*) 3085 eval ac_cv_prog_make_${ac_make}_set=yes;; 3086 *) 3087 eval ac_cv_prog_make_${ac_make}_set=no;; 3088esac 3089rm -f conftest.make 3090fi 3091if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3093$as_echo "yes" >&6; } 3094 SET_MAKE= 3095else 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097$as_echo "no" >&6; } 3098 SET_MAKE="MAKE=${MAKE-make}" 3099fi 3100 3101rm -rf .tst 2>/dev/null 3102mkdir .tst 2>/dev/null 3103if test -d .tst; then 3104 am__leading_dot=. 3105else 3106 am__leading_dot=_ 3107fi 3108rmdir .tst 2>/dev/null 3109 3110# Check whether --enable-silent-rules was given. 3111if test "${enable_silent_rules+set}" = set; then : 3112 enableval=$enable_silent_rules; 3113fi 3114 3115case $enable_silent_rules in # ((( 3116 yes) AM_DEFAULT_VERBOSITY=0;; 3117 no) AM_DEFAULT_VERBOSITY=1;; 3118 *) AM_DEFAULT_VERBOSITY=1;; 3119esac 3120am_make=${MAKE-make} 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3122$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3123if ${am_cv_make_support_nested_variables+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if $as_echo 'TRUE=$(BAR$(V)) 3127BAR0=false 3128BAR1=true 3129V=1 3130am__doit: 3131 @$(TRUE) 3132.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3133 am_cv_make_support_nested_variables=yes 3134else 3135 am_cv_make_support_nested_variables=no 3136fi 3137fi 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3139$as_echo "$am_cv_make_support_nested_variables" >&6; } 3140if test $am_cv_make_support_nested_variables = yes; then 3141 AM_V='$(V)' 3142 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3143else 3144 AM_V=$AM_DEFAULT_VERBOSITY 3145 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3146fi 3147AM_BACKSLASH='\' 3148 3149if test "`cd $srcdir && pwd`" != "`pwd`"; then 3150 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3151 # is not polluted with repeated "-I." 3152 am__isrc=' -I$(srcdir)' 3153 # test to see if srcdir already configured 3154 if test -f $srcdir/config.status; then 3155 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3156 fi 3157fi 3158 3159# test whether we have cygpath 3160if test -z "$CYGPATH_W"; then 3161 if (cygpath --version) >/dev/null 2>/dev/null; then 3162 CYGPATH_W='cygpath -w' 3163 else 3164 CYGPATH_W=echo 3165 fi 3166fi 3167 3168 3169# Define the identity of the package. 3170 PACKAGE='heimdal' 3171 VERSION='7.7.0' 3172 3173 3174cat >>confdefs.h <<_ACEOF 3175#define PACKAGE "$PACKAGE" 3176_ACEOF 3177 3178 3179cat >>confdefs.h <<_ACEOF 3180#define VERSION "$VERSION" 3181_ACEOF 3182 3183# Some tools Automake needs. 3184 3185ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3186 3187 3188AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3189 3190 3191AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3192 3193 3194AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3195 3196 3197MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3198 3199# For better backward compatibility. To be removed once Automake 1.9.x 3200# dies out for good. For more background, see: 3201# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3202# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3203mkdir_p='$(MKDIR_P)' 3204 3205# We need awk for the "check" target (and possibly the TAP driver). The 3206# system "awk" is bad on some platforms. 3207# Always define AMTAR for backward compatibility. Yes, it's still used 3208# in the wild :-( We should find a proper way to deprecate it ... 3209AMTAR='$${TAR-tar}' 3210 3211 3212# We'll loop over all known methods to create a tar archive until one works. 3213_am_tools='gnutar pax cpio none' 3214 3215am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3216 3217 3218 3219 3220 3221 3222# POSIX will say in a future version that running "rm -f" with no argument 3223# is OK; and we want to be able to make that assumption in our Makefile 3224# recipes. So use an aggressive probe to check that the usage we want is 3225# actually supported "in the wild" to an acceptable degree. 3226# See automake bug#10828. 3227# To make any issue more visible, cause the running configure to be aborted 3228# by default if the 'rm' program in use doesn't match our expectations; the 3229# user can still override this though. 3230if rm -f && rm -fr && rm -rf; then : OK; else 3231 cat >&2 <<'END' 3232Oops! 3233 3234Your 'rm' program seems unable to run without file operands specified 3235on the command line, even when the '-f' option is present. This is contrary 3236to the behaviour of most rm programs out there, and not conforming with 3237the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3238 3239Please tell bug-automake@gnu.org about your system, including the value 3240of your $PATH and any error possibly output before this message. This 3241can help us improve future automake versions. 3242 3243END 3244 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3245 echo 'Configuration will proceed anyway, since you have set the' >&2 3246 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3247 echo >&2 3248 else 3249 cat >&2 <<'END' 3250Aborting the configuration process, to ensure you take notice of the issue. 3251 3252You can download and install GNU coreutils to get an 'rm' implementation 3253that behaves properly: <http://www.gnu.org/software/coreutils/>. 3254 3255If you want to complete the configuration process using your problematic 3256'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3257to "yes", and re-run configure. 3258 3259END 3260 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3261 fi 3262fi 3263 3264 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3266$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3267 # Check whether --enable-maintainer-mode was given. 3268if test "${enable_maintainer_mode+set}" = set; then : 3269 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3270else 3271 USE_MAINTAINER_MODE=no 3272fi 3273 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3275$as_echo "$USE_MAINTAINER_MODE" >&6; } 3276 if test $USE_MAINTAINER_MODE = yes; then 3277 MAINTAINER_MODE_TRUE= 3278 MAINTAINER_MODE_FALSE='#' 3279else 3280 MAINTAINER_MODE_TRUE='#' 3281 MAINTAINER_MODE_FALSE= 3282fi 3283 3284 MAINT=$MAINTAINER_MODE_TRUE 3285 3286 3287 3288 3289case `pwd` in 3290 *\ * | *\ *) 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3292$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3293esac 3294 3295 3296 3297macro_version='2.4.6' 3298macro_revision='2.4.6' 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312ltmain=$ac_aux_dir/ltmain.sh 3313 3314# Make sure we can run config.sub. 3315$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3316 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3317 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3319$as_echo_n "checking build system type... " >&6; } 3320if ${ac_cv_build+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 ac_build_alias=$build_alias 3324test "x$ac_build_alias" = x && 3325 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3326test "x$ac_build_alias" = x && 3327 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3328ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3329 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3330 3331fi 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3333$as_echo "$ac_cv_build" >&6; } 3334case $ac_cv_build in 3335*-*-*) ;; 3336*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3337esac 3338build=$ac_cv_build 3339ac_save_IFS=$IFS; IFS='-' 3340set x $ac_cv_build 3341shift 3342build_cpu=$1 3343build_vendor=$2 3344shift; shift 3345# Remember, the first character of IFS is used to create $*, 3346# except with old shells: 3347build_os=$* 3348IFS=$ac_save_IFS 3349case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3350 3351 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3353$as_echo_n "checking host system type... " >&6; } 3354if ${ac_cv_host+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 if test "x$host_alias" = x; then 3358 ac_cv_host=$ac_cv_build 3359else 3360 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3362fi 3363 3364fi 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3366$as_echo "$ac_cv_host" >&6; } 3367case $ac_cv_host in 3368*-*-*) ;; 3369*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3370esac 3371host=$ac_cv_host 3372ac_save_IFS=$IFS; IFS='-' 3373set x $ac_cv_host 3374shift 3375host_cpu=$1 3376host_vendor=$2 3377shift; shift 3378# Remember, the first character of IFS is used to create $*, 3379# except with old shells: 3380host_os=$* 3381IFS=$ac_save_IFS 3382case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3383 3384 3385# Backslashify metacharacters that are still active within 3386# double-quoted strings. 3387sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3388 3389# Same as above, but do not quote variable references. 3390double_quote_subst='s/\(["`\\]\)/\\\1/g' 3391 3392# Sed substitution to delay expansion of an escaped shell variable in a 3393# double_quote_subst'ed string. 3394delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3395 3396# Sed substitution to delay expansion of an escaped single quote. 3397delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3398 3399# Sed substitution to avoid accidental globbing in evaled expressions 3400no_glob_subst='s/\*/\\\*/g' 3401 3402ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3403ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3404ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3405 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3407$as_echo_n "checking how to print strings... " >&6; } 3408# Test print first, because it will be a builtin if present. 3409if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3410 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3411 ECHO='print -r --' 3412elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3413 ECHO='printf %s\n' 3414else 3415 # Use this function as a fallback that always works. 3416 func_fallback_echo () 3417 { 3418 eval 'cat <<_LTECHO_EOF 3419$1 3420_LTECHO_EOF' 3421 } 3422 ECHO='func_fallback_echo' 3423fi 3424 3425# func_echo_all arg... 3426# Invoke $ECHO with all args, space-separated. 3427func_echo_all () 3428{ 3429 $ECHO "" 3430} 3431 3432case $ECHO in 3433 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3434$as_echo "printf" >&6; } ;; 3435 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3436$as_echo "print -r" >&6; } ;; 3437 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3438$as_echo "cat" >&6; } ;; 3439esac 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454DEPDIR="${am__leading_dot}deps" 3455 3456ac_config_commands="$ac_config_commands depfiles" 3457 3458 3459am_make=${MAKE-make} 3460cat > confinc << 'END' 3461am__doit: 3462 @echo this is the am__doit target 3463.PHONY: am__doit 3464END 3465# If we don't find an include directive, just comment out the code. 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3467$as_echo_n "checking for style of include used by $am_make... " >&6; } 3468am__include="#" 3469am__quote= 3470_am_result=none 3471# First try GNU make style include. 3472echo "include confinc" > confmf 3473# Ignore all kinds of additional output from 'make'. 3474case `$am_make -s -f confmf 2> /dev/null` in #( 3475*the\ am__doit\ target*) 3476 am__include=include 3477 am__quote= 3478 _am_result=GNU 3479 ;; 3480esac 3481# Now try BSD make style include. 3482if test "$am__include" = "#"; then 3483 echo '.include "confinc"' > confmf 3484 case `$am_make -s -f confmf 2> /dev/null` in #( 3485 *the\ am__doit\ target*) 3486 am__include=.include 3487 am__quote="\"" 3488 _am_result=BSD 3489 ;; 3490 esac 3491fi 3492 3493 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3495$as_echo "$_am_result" >&6; } 3496rm -f confinc confmf 3497 3498# Check whether --enable-dependency-tracking was given. 3499if test "${enable_dependency_tracking+set}" = set; then : 3500 enableval=$enable_dependency_tracking; 3501fi 3502 3503if test "x$enable_dependency_tracking" != xno; then 3504 am_depcomp="$ac_aux_dir/depcomp" 3505 AMDEPBACKSLASH='\' 3506 am__nodep='_no' 3507fi 3508 if test "x$enable_dependency_tracking" != xno; then 3509 AMDEP_TRUE= 3510 AMDEP_FALSE='#' 3511else 3512 AMDEP_TRUE='#' 3513 AMDEP_FALSE= 3514fi 3515 3516 3517ac_ext=c 3518ac_cpp='$CPP $CPPFLAGS' 3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3521ac_compiler_gnu=$ac_cv_c_compiler_gnu 3522if test -n "$ac_tool_prefix"; then 3523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3524set dummy ${ac_tool_prefix}gcc; ac_word=$2 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3526$as_echo_n "checking for $ac_word... " >&6; } 3527if ${ac_cv_prog_CC+:} false; then : 3528 $as_echo_n "(cached) " >&6 3529else 3530 if test -n "$CC"; then 3531 ac_cv_prog_CC="$CC" # Let the user override the test. 3532else 3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3534for as_dir in $PATH 3535do 3536 IFS=$as_save_IFS 3537 test -z "$as_dir" && as_dir=. 3538 for ac_exec_ext in '' $ac_executable_extensions; do 3539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3540 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3542 break 2 3543 fi 3544done 3545 done 3546IFS=$as_save_IFS 3547 3548fi 3549fi 3550CC=$ac_cv_prog_CC 3551if test -n "$CC"; then 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3553$as_echo "$CC" >&6; } 3554else 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3556$as_echo "no" >&6; } 3557fi 3558 3559 3560fi 3561if test -z "$ac_cv_prog_CC"; then 3562 ac_ct_CC=$CC 3563 # Extract the first word of "gcc", so it can be a program name with args. 3564set dummy gcc; ac_word=$2 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3566$as_echo_n "checking for $ac_word... " >&6; } 3567if ${ac_cv_prog_ac_ct_CC+:} false; then : 3568 $as_echo_n "(cached) " >&6 3569else 3570 if test -n "$ac_ct_CC"; then 3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3572else 3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3574for as_dir in $PATH 3575do 3576 IFS=$as_save_IFS 3577 test -z "$as_dir" && as_dir=. 3578 for ac_exec_ext in '' $ac_executable_extensions; do 3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3580 ac_cv_prog_ac_ct_CC="gcc" 3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3582 break 2 3583 fi 3584done 3585 done 3586IFS=$as_save_IFS 3587 3588fi 3589fi 3590ac_ct_CC=$ac_cv_prog_ac_ct_CC 3591if test -n "$ac_ct_CC"; then 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3593$as_echo "$ac_ct_CC" >&6; } 3594else 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596$as_echo "no" >&6; } 3597fi 3598 3599 if test "x$ac_ct_CC" = x; then 3600 CC="" 3601 else 3602 case $cross_compiling:$ac_tool_warned in 3603yes:) 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3606ac_tool_warned=yes ;; 3607esac 3608 CC=$ac_ct_CC 3609 fi 3610else 3611 CC="$ac_cv_prog_CC" 3612fi 3613 3614if test -z "$CC"; then 3615 if test -n "$ac_tool_prefix"; then 3616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3617set dummy ${ac_tool_prefix}cc; ac_word=$2 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3619$as_echo_n "checking for $ac_word... " >&6; } 3620if ${ac_cv_prog_CC+:} false; then : 3621 $as_echo_n "(cached) " >&6 3622else 3623 if test -n "$CC"; then 3624 ac_cv_prog_CC="$CC" # Let the user override the test. 3625else 3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3627for as_dir in $PATH 3628do 3629 IFS=$as_save_IFS 3630 test -z "$as_dir" && as_dir=. 3631 for ac_exec_ext in '' $ac_executable_extensions; do 3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3633 ac_cv_prog_CC="${ac_tool_prefix}cc" 3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3635 break 2 3636 fi 3637done 3638 done 3639IFS=$as_save_IFS 3640 3641fi 3642fi 3643CC=$ac_cv_prog_CC 3644if test -n "$CC"; then 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3646$as_echo "$CC" >&6; } 3647else 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3649$as_echo "no" >&6; } 3650fi 3651 3652 3653 fi 3654fi 3655if test -z "$CC"; then 3656 # Extract the first word of "cc", so it can be a program name with args. 3657set dummy cc; ac_word=$2 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3659$as_echo_n "checking for $ac_word... " >&6; } 3660if ${ac_cv_prog_CC+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 if test -n "$CC"; then 3664 ac_cv_prog_CC="$CC" # Let the user override the test. 3665else 3666 ac_prog_rejected=no 3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 for ac_exec_ext in '' $ac_executable_extensions; do 3673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3675 ac_prog_rejected=yes 3676 continue 3677 fi 3678 ac_cv_prog_CC="cc" 3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3680 break 2 3681 fi 3682done 3683 done 3684IFS=$as_save_IFS 3685 3686if test $ac_prog_rejected = yes; then 3687 # We found a bogon in the path, so make sure we never use it. 3688 set dummy $ac_cv_prog_CC 3689 shift 3690 if test $# != 0; then 3691 # We chose a different compiler from the bogus one. 3692 # However, it has the same basename, so the bogon will be chosen 3693 # first if we set CC to just the basename; use the full file name. 3694 shift 3695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3696 fi 3697fi 3698fi 3699fi 3700CC=$ac_cv_prog_CC 3701if test -n "$CC"; then 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3703$as_echo "$CC" >&6; } 3704else 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3706$as_echo "no" >&6; } 3707fi 3708 3709 3710fi 3711if test -z "$CC"; then 3712 if test -n "$ac_tool_prefix"; then 3713 for ac_prog in cl.exe 3714 do 3715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3716set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3718$as_echo_n "checking for $ac_word... " >&6; } 3719if ${ac_cv_prog_CC+:} false; then : 3720 $as_echo_n "(cached) " >&6 3721else 3722 if test -n "$CC"; then 3723 ac_cv_prog_CC="$CC" # Let the user override the test. 3724else 3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726for as_dir in $PATH 3727do 3728 IFS=$as_save_IFS 3729 test -z "$as_dir" && as_dir=. 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736done 3737 done 3738IFS=$as_save_IFS 3739 3740fi 3741fi 3742CC=$ac_cv_prog_CC 3743if test -n "$CC"; then 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745$as_echo "$CC" >&6; } 3746else 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748$as_echo "no" >&6; } 3749fi 3750 3751 3752 test -n "$CC" && break 3753 done 3754fi 3755if test -z "$CC"; then 3756 ac_ct_CC=$CC 3757 for ac_prog in cl.exe 3758do 3759 # Extract the first word of "$ac_prog", so it can be a program name with args. 3760set dummy $ac_prog; ac_word=$2 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3762$as_echo_n "checking for $ac_word... " >&6; } 3763if ${ac_cv_prog_ac_ct_CC+:} false; then : 3764 $as_echo_n "(cached) " >&6 3765else 3766 if test -n "$ac_ct_CC"; then 3767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3768else 3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3770for as_dir in $PATH 3771do 3772 IFS=$as_save_IFS 3773 test -z "$as_dir" && as_dir=. 3774 for ac_exec_ext in '' $ac_executable_extensions; do 3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3776 ac_cv_prog_ac_ct_CC="$ac_prog" 3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3778 break 2 3779 fi 3780done 3781 done 3782IFS=$as_save_IFS 3783 3784fi 3785fi 3786ac_ct_CC=$ac_cv_prog_ac_ct_CC 3787if test -n "$ac_ct_CC"; then 3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3789$as_echo "$ac_ct_CC" >&6; } 3790else 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3792$as_echo "no" >&6; } 3793fi 3794 3795 3796 test -n "$ac_ct_CC" && break 3797done 3798 3799 if test "x$ac_ct_CC" = x; then 3800 CC="" 3801 else 3802 case $cross_compiling:$ac_tool_warned in 3803yes:) 3804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3806ac_tool_warned=yes ;; 3807esac 3808 CC=$ac_ct_CC 3809 fi 3810fi 3811 3812fi 3813 3814 3815test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3817as_fn_error $? "no acceptable C compiler found in \$PATH 3818See \`config.log' for more details" "$LINENO" 5; } 3819 3820# Provide some information about the compiler. 3821$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3822set X $ac_compile 3823ac_compiler=$2 3824for ac_option in --version -v -V -qversion; do 3825 { { ac_try="$ac_compiler $ac_option >&5" 3826case "(($ac_try" in 3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3828 *) ac_try_echo=$ac_try;; 3829esac 3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3831$as_echo "$ac_try_echo"; } >&5 3832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3833 ac_status=$? 3834 if test -s conftest.err; then 3835 sed '10a\ 3836... rest of stderr output deleted ... 3837 10q' conftest.err >conftest.er1 3838 cat conftest.er1 >&5 3839 fi 3840 rm -f conftest.er1 conftest.err 3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; } 3843done 3844 3845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846/* end confdefs.h. */ 3847 3848int 3849main () 3850{ 3851 3852 ; 3853 return 0; 3854} 3855_ACEOF 3856ac_clean_files_save=$ac_clean_files 3857ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3858# Try to create an executable without -o first, disregard a.out. 3859# It will help us diagnose broken compilers, and finding out an intuition 3860# of exeext. 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3862$as_echo_n "checking whether the C compiler works... " >&6; } 3863ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3864 3865# The possible output files: 3866ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3867 3868ac_rmfiles= 3869for ac_file in $ac_files 3870do 3871 case $ac_file in 3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3873 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3874 esac 3875done 3876rm -f $ac_rmfiles 3877 3878if { { ac_try="$ac_link_default" 3879case "(($ac_try" in 3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3881 *) ac_try_echo=$ac_try;; 3882esac 3883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3884$as_echo "$ac_try_echo"; } >&5 3885 (eval "$ac_link_default") 2>&5 3886 ac_status=$? 3887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3888 test $ac_status = 0; }; then : 3889 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3890# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3891# in a Makefile. We should not override ac_cv_exeext if it was cached, 3892# so that the user can short-circuit this test for compilers unknown to 3893# Autoconf. 3894for ac_file in $ac_files '' 3895do 3896 test -f "$ac_file" || continue 3897 case $ac_file in 3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3899 ;; 3900 [ab].out ) 3901 # We found the default executable, but exeext='' is most 3902 # certainly right. 3903 break;; 3904 *.* ) 3905 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3906 then :; else 3907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3908 fi 3909 # We set ac_cv_exeext here because the later test for it is not 3910 # safe: cross compilers may not add the suffix if given an `-o' 3911 # argument, so we may need to know it at that point already. 3912 # Even if this section looks crufty: it has the advantage of 3913 # actually working. 3914 break;; 3915 * ) 3916 break;; 3917 esac 3918done 3919test "$ac_cv_exeext" = no && ac_cv_exeext= 3920 3921else 3922 ac_file='' 3923fi 3924if test -z "$ac_file"; then : 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3926$as_echo "no" >&6; } 3927$as_echo "$as_me: failed program was:" >&5 3928sed 's/^/| /' conftest.$ac_ext >&5 3929 3930{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3932as_fn_error 77 "C compiler cannot create executables 3933See \`config.log' for more details" "$LINENO" 5; } 3934else 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3936$as_echo "yes" >&6; } 3937fi 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3939$as_echo_n "checking for C compiler default output file name... " >&6; } 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3941$as_echo "$ac_file" >&6; } 3942ac_exeext=$ac_cv_exeext 3943 3944rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3945ac_clean_files=$ac_clean_files_save 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3947$as_echo_n "checking for suffix of executables... " >&6; } 3948if { { ac_try="$ac_link" 3949case "(($ac_try" in 3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3951 *) ac_try_echo=$ac_try;; 3952esac 3953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3954$as_echo "$ac_try_echo"; } >&5 3955 (eval "$ac_link") 2>&5 3956 ac_status=$? 3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3958 test $ac_status = 0; }; then : 3959 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3960# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3961# work properly (i.e., refer to `conftest.exe'), while it won't with 3962# `rm'. 3963for ac_file in conftest.exe conftest conftest.*; do 3964 test -f "$ac_file" || continue 3965 case $ac_file in 3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3968 break;; 3969 * ) break;; 3970 esac 3971done 3972else 3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3975as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3976See \`config.log' for more details" "$LINENO" 5; } 3977fi 3978rm -f conftest conftest$ac_cv_exeext 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3980$as_echo "$ac_cv_exeext" >&6; } 3981 3982rm -f conftest.$ac_ext 3983EXEEXT=$ac_cv_exeext 3984ac_exeext=$EXEEXT 3985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3986/* end confdefs.h. */ 3987#include <stdio.h> 3988int 3989main () 3990{ 3991FILE *f = fopen ("conftest.out", "w"); 3992 return ferror (f) || fclose (f) != 0; 3993 3994 ; 3995 return 0; 3996} 3997_ACEOF 3998ac_clean_files="$ac_clean_files conftest.out" 3999# Check that the compiler produces executables we can run. If not, either 4000# the compiler is broken, or we cross compile. 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4002$as_echo_n "checking whether we are cross compiling... " >&6; } 4003if test "$cross_compiling" != yes; then 4004 { { ac_try="$ac_link" 4005case "(($ac_try" in 4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4007 *) ac_try_echo=$ac_try;; 4008esac 4009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4010$as_echo "$ac_try_echo"; } >&5 4011 (eval "$ac_link") 2>&5 4012 ac_status=$? 4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4014 test $ac_status = 0; } 4015 if { ac_try='./conftest$ac_cv_exeext' 4016 { { case "(($ac_try" in 4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4018 *) ac_try_echo=$ac_try;; 4019esac 4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4021$as_echo "$ac_try_echo"; } >&5 4022 (eval "$ac_try") 2>&5 4023 ac_status=$? 4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4025 test $ac_status = 0; }; }; then 4026 cross_compiling=no 4027 else 4028 if test "$cross_compiling" = maybe; then 4029 cross_compiling=yes 4030 else 4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4033as_fn_error $? "cannot run C compiled programs. 4034If you meant to cross compile, use \`--host'. 4035See \`config.log' for more details" "$LINENO" 5; } 4036 fi 4037 fi 4038fi 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4040$as_echo "$cross_compiling" >&6; } 4041 4042rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4043ac_clean_files=$ac_clean_files_save 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4045$as_echo_n "checking for suffix of object files... " >&6; } 4046if ${ac_cv_objext+:} false; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050/* end confdefs.h. */ 4051 4052int 4053main () 4054{ 4055 4056 ; 4057 return 0; 4058} 4059_ACEOF 4060rm -f conftest.o conftest.obj 4061if { { ac_try="$ac_compile" 4062case "(($ac_try" in 4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4064 *) ac_try_echo=$ac_try;; 4065esac 4066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4067$as_echo "$ac_try_echo"; } >&5 4068 (eval "$ac_compile") 2>&5 4069 ac_status=$? 4070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4071 test $ac_status = 0; }; then : 4072 for ac_file in conftest.o conftest.obj conftest.*; do 4073 test -f "$ac_file" || continue; 4074 case $ac_file in 4075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4077 break;; 4078 esac 4079done 4080else 4081 $as_echo "$as_me: failed program was:" >&5 4082sed 's/^/| /' conftest.$ac_ext >&5 4083 4084{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4086as_fn_error $? "cannot compute suffix of object files: cannot compile 4087See \`config.log' for more details" "$LINENO" 5; } 4088fi 4089rm -f conftest.$ac_cv_objext conftest.$ac_ext 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4092$as_echo "$ac_cv_objext" >&6; } 4093OBJEXT=$ac_cv_objext 4094ac_objext=$OBJEXT 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4096$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4097if ${ac_cv_c_compiler_gnu+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4101/* end confdefs.h. */ 4102 4103int 4104main () 4105{ 4106#ifndef __GNUC__ 4107 choke me 4108#endif 4109 4110 ; 4111 return 0; 4112} 4113_ACEOF 4114if ac_fn_c_try_compile "$LINENO"; then : 4115 ac_compiler_gnu=yes 4116else 4117 ac_compiler_gnu=no 4118fi 4119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4120ac_cv_c_compiler_gnu=$ac_compiler_gnu 4121 4122fi 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4124$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4125if test $ac_compiler_gnu = yes; then 4126 GCC=yes 4127else 4128 GCC= 4129fi 4130ac_test_CFLAGS=${CFLAGS+set} 4131ac_save_CFLAGS=$CFLAGS 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4133$as_echo_n "checking whether $CC accepts -g... " >&6; } 4134if ${ac_cv_prog_cc_g+:} false; then : 4135 $as_echo_n "(cached) " >&6 4136else 4137 ac_save_c_werror_flag=$ac_c_werror_flag 4138 ac_c_werror_flag=yes 4139 ac_cv_prog_cc_g=no 4140 CFLAGS="-g" 4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4142/* end confdefs.h. */ 4143 4144int 4145main () 4146{ 4147 4148 ; 4149 return 0; 4150} 4151_ACEOF 4152if ac_fn_c_try_compile "$LINENO"; then : 4153 ac_cv_prog_cc_g=yes 4154else 4155 CFLAGS="" 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158 4159int 4160main () 4161{ 4162 4163 ; 4164 return 0; 4165} 4166_ACEOF 4167if ac_fn_c_try_compile "$LINENO"; then : 4168 4169else 4170 ac_c_werror_flag=$ac_save_c_werror_flag 4171 CFLAGS="-g" 4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173/* end confdefs.h. */ 4174 4175int 4176main () 4177{ 4178 4179 ; 4180 return 0; 4181} 4182_ACEOF 4183if ac_fn_c_try_compile "$LINENO"; then : 4184 ac_cv_prog_cc_g=yes 4185fi 4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4187fi 4188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4189fi 4190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4191 ac_c_werror_flag=$ac_save_c_werror_flag 4192fi 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4194$as_echo "$ac_cv_prog_cc_g" >&6; } 4195if test "$ac_test_CFLAGS" = set; then 4196 CFLAGS=$ac_save_CFLAGS 4197elif test $ac_cv_prog_cc_g = yes; then 4198 if test "$GCC" = yes; then 4199 CFLAGS="-g -O2" 4200 else 4201 CFLAGS="-g" 4202 fi 4203else 4204 if test "$GCC" = yes; then 4205 CFLAGS="-O2" 4206 else 4207 CFLAGS= 4208 fi 4209fi 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4211$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4212if ${ac_cv_prog_cc_c89+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214else 4215 ac_cv_prog_cc_c89=no 4216ac_save_CC=$CC 4217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4218/* end confdefs.h. */ 4219#include <stdarg.h> 4220#include <stdio.h> 4221struct stat; 4222/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4223struct buf { int x; }; 4224FILE * (*rcsopen) (struct buf *, struct stat *, int); 4225static char *e (p, i) 4226 char **p; 4227 int i; 4228{ 4229 return p[i]; 4230} 4231static char *f (char * (*g) (char **, int), char **p, ...) 4232{ 4233 char *s; 4234 va_list v; 4235 va_start (v,p); 4236 s = g (p, va_arg (v,int)); 4237 va_end (v); 4238 return s; 4239} 4240 4241/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4242 function prototypes and stuff, but not '\xHH' hex character constants. 4243 These don't provoke an error unfortunately, instead are silently treated 4244 as 'x'. The following induces an error, until -std is added to get 4245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4246 array size at least. It's necessary to write '\x00'==0 to get something 4247 that's true only with -std. */ 4248int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4249 4250/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4251 inside strings and character constants. */ 4252#define FOO(x) 'x' 4253int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4254 4255int test (int i, double x); 4256struct s1 {int (*f) (int a);}; 4257struct s2 {int (*f) (double a);}; 4258int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4259int argc; 4260char **argv; 4261int 4262main () 4263{ 4264return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4265 ; 4266 return 0; 4267} 4268_ACEOF 4269for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4271do 4272 CC="$ac_save_CC $ac_arg" 4273 if ac_fn_c_try_compile "$LINENO"; then : 4274 ac_cv_prog_cc_c89=$ac_arg 4275fi 4276rm -f core conftest.err conftest.$ac_objext 4277 test "x$ac_cv_prog_cc_c89" != "xno" && break 4278done 4279rm -f conftest.$ac_ext 4280CC=$ac_save_CC 4281 4282fi 4283# AC_CACHE_VAL 4284case "x$ac_cv_prog_cc_c89" in 4285 x) 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4287$as_echo "none needed" >&6; } ;; 4288 xno) 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4290$as_echo "unsupported" >&6; } ;; 4291 *) 4292 CC="$CC $ac_cv_prog_cc_c89" 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4294$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4295esac 4296if test "x$ac_cv_prog_cc_c89" != xno; then : 4297 4298fi 4299 4300ac_ext=c 4301ac_cpp='$CPP $CPPFLAGS' 4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4304ac_compiler_gnu=$ac_cv_c_compiler_gnu 4305 4306ac_ext=c 4307ac_cpp='$CPP $CPPFLAGS' 4308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4310ac_compiler_gnu=$ac_cv_c_compiler_gnu 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4312$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4313if ${am_cv_prog_cc_c_o+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317/* end confdefs.h. */ 4318 4319int 4320main () 4321{ 4322 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327 # Make sure it works both with $CC and with simple cc. 4328 # Following AC_PROG_CC_C_O, we do the test twice because some 4329 # compilers refuse to overwrite an existing .o file with -o, 4330 # though they will create one. 4331 am_cv_prog_cc_c_o=yes 4332 for am_i in 1 2; do 4333 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4334 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4335 ac_status=$? 4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4337 (exit $ac_status); } \ 4338 && test -f conftest2.$ac_objext; then 4339 : OK 4340 else 4341 am_cv_prog_cc_c_o=no 4342 break 4343 fi 4344 done 4345 rm -f core conftest* 4346 unset am_i 4347fi 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4349$as_echo "$am_cv_prog_cc_c_o" >&6; } 4350if test "$am_cv_prog_cc_c_o" != yes; then 4351 # Losing compiler, so override with the script. 4352 # FIXME: It is wrong to rewrite CC. 4353 # But if we don't then we get into trouble of one sort or another. 4354 # A longer-term fix would be to have automake use am__CC in this case, 4355 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4356 CC="$am_aux_dir/compile $CC" 4357fi 4358ac_ext=c 4359ac_cpp='$CPP $CPPFLAGS' 4360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4362ac_compiler_gnu=$ac_cv_c_compiler_gnu 4363 4364 4365depcc="$CC" am_compiler_list= 4366 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4368$as_echo_n "checking dependency style of $depcc... " >&6; } 4369if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4373 # We make a subdir and do the tests there. Otherwise we can end up 4374 # making bogus files that we don't know about and never remove. For 4375 # instance it was reported that on HP-UX the gcc test will end up 4376 # making a dummy file named 'D' -- because '-MD' means "put the output 4377 # in D". 4378 rm -rf conftest.dir 4379 mkdir conftest.dir 4380 # Copy depcomp to subdir because otherwise we won't find it if we're 4381 # using a relative directory. 4382 cp "$am_depcomp" conftest.dir 4383 cd conftest.dir 4384 # We will build objects and dependencies in a subdirectory because 4385 # it helps to detect inapplicable dependency modes. For instance 4386 # both Tru64's cc and ICC support -MD to output dependencies as a 4387 # side effect of compilation, but ICC will put the dependencies in 4388 # the current directory while Tru64 will put them in the object 4389 # directory. 4390 mkdir sub 4391 4392 am_cv_CC_dependencies_compiler_type=none 4393 if test "$am_compiler_list" = ""; then 4394 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4395 fi 4396 am__universal=false 4397 case " $depcc " in #( 4398 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4399 esac 4400 4401 for depmode in $am_compiler_list; do 4402 # Setup a source with many dependencies, because some compilers 4403 # like to wrap large dependency lists on column 80 (with \), and 4404 # we should not choose a depcomp mode which is confused by this. 4405 # 4406 # We need to recreate these files for each test, as the compiler may 4407 # overwrite some of them when testing with obscure command lines. 4408 # This happens at least with the AIX C compiler. 4409 : > sub/conftest.c 4410 for i in 1 2 3 4 5 6; do 4411 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4412 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4413 # Solaris 10 /bin/sh. 4414 echo '/* dummy */' > sub/conftst$i.h 4415 done 4416 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4417 4418 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4419 # mode. It turns out that the SunPro C++ compiler does not properly 4420 # handle '-M -o', and we need to detect this. Also, some Intel 4421 # versions had trouble with output in subdirs. 4422 am__obj=sub/conftest.${OBJEXT-o} 4423 am__minus_obj="-o $am__obj" 4424 case $depmode in 4425 gcc) 4426 # This depmode causes a compiler race in universal mode. 4427 test "$am__universal" = false || continue 4428 ;; 4429 nosideeffect) 4430 # After this tag, mechanisms are not by side-effect, so they'll 4431 # only be used when explicitly requested. 4432 if test "x$enable_dependency_tracking" = xyes; then 4433 continue 4434 else 4435 break 4436 fi 4437 ;; 4438 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4439 # This compiler won't grok '-c -o', but also, the minuso test has 4440 # not run yet. These depmodes are late enough in the game, and 4441 # so weak that their functioning should not be impacted. 4442 am__obj=conftest.${OBJEXT-o} 4443 am__minus_obj= 4444 ;; 4445 none) break ;; 4446 esac 4447 if depmode=$depmode \ 4448 source=sub/conftest.c object=$am__obj \ 4449 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4450 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4451 >/dev/null 2>conftest.err && 4452 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4453 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4454 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4455 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4456 # icc doesn't choke on unknown options, it will just issue warnings 4457 # or remarks (even with -Werror). So we grep stderr for any message 4458 # that says an option was ignored or not supported. 4459 # When given -MP, icc 7.0 and 7.1 complain thusly: 4460 # icc: Command line warning: ignoring option '-M'; no argument required 4461 # The diagnosis changed in icc 8.0: 4462 # icc: Command line remark: option '-MP' not supported 4463 if (grep 'ignoring option' conftest.err || 4464 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4465 am_cv_CC_dependencies_compiler_type=$depmode 4466 break 4467 fi 4468 fi 4469 done 4470 4471 cd .. 4472 rm -rf conftest.dir 4473else 4474 am_cv_CC_dependencies_compiler_type=none 4475fi 4476 4477fi 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4479$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4480CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4481 4482 if 4483 test "x$enable_dependency_tracking" != xno \ 4484 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4485 am__fastdepCC_TRUE= 4486 am__fastdepCC_FALSE='#' 4487else 4488 am__fastdepCC_TRUE='#' 4489 am__fastdepCC_FALSE= 4490fi 4491 4492 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4494$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4495if ${ac_cv_path_SED+:} false; then : 4496 $as_echo_n "(cached) " >&6 4497else 4498 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4499 for ac_i in 1 2 3 4 5 6 7; do 4500 ac_script="$ac_script$as_nl$ac_script" 4501 done 4502 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4503 { ac_script=; unset ac_script;} 4504 if test -z "$SED"; then 4505 ac_path_SED_found=false 4506 # Loop through the user's path and test for each of PROGNAME-LIST 4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4508for as_dir in $PATH 4509do 4510 IFS=$as_save_IFS 4511 test -z "$as_dir" && as_dir=. 4512 for ac_prog in sed gsed; do 4513 for ac_exec_ext in '' $ac_executable_extensions; do 4514 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4515 as_fn_executable_p "$ac_path_SED" || continue 4516# Check for GNU ac_path_SED and select it if it is found. 4517 # Check for GNU $ac_path_SED 4518case `"$ac_path_SED" --version 2>&1` in 4519*GNU*) 4520 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4521*) 4522 ac_count=0 4523 $as_echo_n 0123456789 >"conftest.in" 4524 while : 4525 do 4526 cat "conftest.in" "conftest.in" >"conftest.tmp" 4527 mv "conftest.tmp" "conftest.in" 4528 cp "conftest.in" "conftest.nl" 4529 $as_echo '' >> "conftest.nl" 4530 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4532 as_fn_arith $ac_count + 1 && ac_count=$as_val 4533 if test $ac_count -gt ${ac_path_SED_max-0}; then 4534 # Best one so far, save it but keep looking for a better one 4535 ac_cv_path_SED="$ac_path_SED" 4536 ac_path_SED_max=$ac_count 4537 fi 4538 # 10*(2^10) chars as input seems more than enough 4539 test $ac_count -gt 10 && break 4540 done 4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4542esac 4543 4544 $ac_path_SED_found && break 3 4545 done 4546 done 4547 done 4548IFS=$as_save_IFS 4549 if test -z "$ac_cv_path_SED"; then 4550 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4551 fi 4552else 4553 ac_cv_path_SED=$SED 4554fi 4555 4556fi 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4558$as_echo "$ac_cv_path_SED" >&6; } 4559 SED="$ac_cv_path_SED" 4560 rm -f conftest.sed 4561 4562test -z "$SED" && SED=sed 4563Xsed="$SED -e 1s/^X//" 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4576$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4577if ${ac_cv_path_GREP+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 if test -z "$GREP"; then 4581 ac_path_GREP_found=false 4582 # Loop through the user's path and test for each of PROGNAME-LIST 4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4585do 4586 IFS=$as_save_IFS 4587 test -z "$as_dir" && as_dir=. 4588 for ac_prog in grep ggrep; do 4589 for ac_exec_ext in '' $ac_executable_extensions; do 4590 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4591 as_fn_executable_p "$ac_path_GREP" || continue 4592# Check for GNU ac_path_GREP and select it if it is found. 4593 # Check for GNU $ac_path_GREP 4594case `"$ac_path_GREP" --version 2>&1` in 4595*GNU*) 4596 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4597*) 4598 ac_count=0 4599 $as_echo_n 0123456789 >"conftest.in" 4600 while : 4601 do 4602 cat "conftest.in" "conftest.in" >"conftest.tmp" 4603 mv "conftest.tmp" "conftest.in" 4604 cp "conftest.in" "conftest.nl" 4605 $as_echo 'GREP' >> "conftest.nl" 4606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4608 as_fn_arith $ac_count + 1 && ac_count=$as_val 4609 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4610 # Best one so far, save it but keep looking for a better one 4611 ac_cv_path_GREP="$ac_path_GREP" 4612 ac_path_GREP_max=$ac_count 4613 fi 4614 # 10*(2^10) chars as input seems more than enough 4615 test $ac_count -gt 10 && break 4616 done 4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4618esac 4619 4620 $ac_path_GREP_found && break 3 4621 done 4622 done 4623 done 4624IFS=$as_save_IFS 4625 if test -z "$ac_cv_path_GREP"; then 4626 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4627 fi 4628else 4629 ac_cv_path_GREP=$GREP 4630fi 4631 4632fi 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4634$as_echo "$ac_cv_path_GREP" >&6; } 4635 GREP="$ac_cv_path_GREP" 4636 4637 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4639$as_echo_n "checking for egrep... " >&6; } 4640if ${ac_cv_path_EGREP+:} false; then : 4641 $as_echo_n "(cached) " >&6 4642else 4643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4644 then ac_cv_path_EGREP="$GREP -E" 4645 else 4646 if test -z "$EGREP"; then 4647 ac_path_EGREP_found=false 4648 # Loop through the user's path and test for each of PROGNAME-LIST 4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4650for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4651do 4652 IFS=$as_save_IFS 4653 test -z "$as_dir" && as_dir=. 4654 for ac_prog in egrep; do 4655 for ac_exec_ext in '' $ac_executable_extensions; do 4656 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4657 as_fn_executable_p "$ac_path_EGREP" || continue 4658# Check for GNU ac_path_EGREP and select it if it is found. 4659 # Check for GNU $ac_path_EGREP 4660case `"$ac_path_EGREP" --version 2>&1` in 4661*GNU*) 4662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4663*) 4664 ac_count=0 4665 $as_echo_n 0123456789 >"conftest.in" 4666 while : 4667 do 4668 cat "conftest.in" "conftest.in" >"conftest.tmp" 4669 mv "conftest.tmp" "conftest.in" 4670 cp "conftest.in" "conftest.nl" 4671 $as_echo 'EGREP' >> "conftest.nl" 4672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4674 as_fn_arith $ac_count + 1 && ac_count=$as_val 4675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4676 # Best one so far, save it but keep looking for a better one 4677 ac_cv_path_EGREP="$ac_path_EGREP" 4678 ac_path_EGREP_max=$ac_count 4679 fi 4680 # 10*(2^10) chars as input seems more than enough 4681 test $ac_count -gt 10 && break 4682 done 4683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4684esac 4685 4686 $ac_path_EGREP_found && break 3 4687 done 4688 done 4689 done 4690IFS=$as_save_IFS 4691 if test -z "$ac_cv_path_EGREP"; then 4692 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4693 fi 4694else 4695 ac_cv_path_EGREP=$EGREP 4696fi 4697 4698 fi 4699fi 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4701$as_echo "$ac_cv_path_EGREP" >&6; } 4702 EGREP="$ac_cv_path_EGREP" 4703 4704 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4706$as_echo_n "checking for fgrep... " >&6; } 4707if ${ac_cv_path_FGREP+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4711 then ac_cv_path_FGREP="$GREP -F" 4712 else 4713 if test -z "$FGREP"; then 4714 ac_path_FGREP_found=false 4715 # Loop through the user's path and test for each of PROGNAME-LIST 4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4717for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4718do 4719 IFS=$as_save_IFS 4720 test -z "$as_dir" && as_dir=. 4721 for ac_prog in fgrep; do 4722 for ac_exec_ext in '' $ac_executable_extensions; do 4723 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4724 as_fn_executable_p "$ac_path_FGREP" || continue 4725# Check for GNU ac_path_FGREP and select it if it is found. 4726 # Check for GNU $ac_path_FGREP 4727case `"$ac_path_FGREP" --version 2>&1` in 4728*GNU*) 4729 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4730*) 4731 ac_count=0 4732 $as_echo_n 0123456789 >"conftest.in" 4733 while : 4734 do 4735 cat "conftest.in" "conftest.in" >"conftest.tmp" 4736 mv "conftest.tmp" "conftest.in" 4737 cp "conftest.in" "conftest.nl" 4738 $as_echo 'FGREP' >> "conftest.nl" 4739 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4741 as_fn_arith $ac_count + 1 && ac_count=$as_val 4742 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4743 # Best one so far, save it but keep looking for a better one 4744 ac_cv_path_FGREP="$ac_path_FGREP" 4745 ac_path_FGREP_max=$ac_count 4746 fi 4747 # 10*(2^10) chars as input seems more than enough 4748 test $ac_count -gt 10 && break 4749 done 4750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4751esac 4752 4753 $ac_path_FGREP_found && break 3 4754 done 4755 done 4756 done 4757IFS=$as_save_IFS 4758 if test -z "$ac_cv_path_FGREP"; then 4759 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4760 fi 4761else 4762 ac_cv_path_FGREP=$FGREP 4763fi 4764 4765 fi 4766fi 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4768$as_echo "$ac_cv_path_FGREP" >&6; } 4769 FGREP="$ac_cv_path_FGREP" 4770 4771 4772test -z "$GREP" && GREP=grep 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792# Check whether --with-gnu-ld was given. 4793if test "${with_gnu_ld+set}" = set; then : 4794 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4795else 4796 with_gnu_ld=no 4797fi 4798 4799ac_prog=ld 4800if test yes = "$GCC"; then 4801 # Check if gcc -print-prog-name=ld gives a path. 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4803$as_echo_n "checking for ld used by $CC... " >&6; } 4804 case $host in 4805 *-*-mingw*) 4806 # gcc leaves a trailing carriage return, which upsets mingw 4807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4808 *) 4809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4810 esac 4811 case $ac_prog in 4812 # Accept absolute paths. 4813 [\\/]* | ?:[\\/]*) 4814 re_direlt='/[^/][^/]*/\.\./' 4815 # Canonicalize the pathname of ld 4816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4819 done 4820 test -z "$LD" && LD=$ac_prog 4821 ;; 4822 "") 4823 # If it fails, then pretend we aren't using GCC. 4824 ac_prog=ld 4825 ;; 4826 *) 4827 # If it is relative, then search for the first ld in PATH. 4828 with_gnu_ld=unknown 4829 ;; 4830 esac 4831elif test yes = "$with_gnu_ld"; then 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4833$as_echo_n "checking for GNU ld... " >&6; } 4834else 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4836$as_echo_n "checking for non-GNU ld... " >&6; } 4837fi 4838if ${lt_cv_path_LD+:} false; then : 4839 $as_echo_n "(cached) " >&6 4840else 4841 if test -z "$LD"; then 4842 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4843 for ac_dir in $PATH; do 4844 IFS=$lt_save_ifs 4845 test -z "$ac_dir" && ac_dir=. 4846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4847 lt_cv_path_LD=$ac_dir/$ac_prog 4848 # Check to see if the program is GNU ld. I'd rather use --version, 4849 # but apparently some variants of GNU ld only accept -v. 4850 # Break only if it was the GNU/non-GNU ld that we prefer. 4851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4852 *GNU* | *'with BFD'*) 4853 test no != "$with_gnu_ld" && break 4854 ;; 4855 *) 4856 test yes != "$with_gnu_ld" && break 4857 ;; 4858 esac 4859 fi 4860 done 4861 IFS=$lt_save_ifs 4862else 4863 lt_cv_path_LD=$LD # Let the user override the test with a path. 4864fi 4865fi 4866 4867LD=$lt_cv_path_LD 4868if test -n "$LD"; then 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4870$as_echo "$LD" >&6; } 4871else 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874fi 4875test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4877$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4878if ${lt_cv_prog_gnu_ld+:} false; then : 4879 $as_echo_n "(cached) " >&6 4880else 4881 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4882case `$LD -v 2>&1 </dev/null` in 4883*GNU* | *'with BFD'*) 4884 lt_cv_prog_gnu_ld=yes 4885 ;; 4886*) 4887 lt_cv_prog_gnu_ld=no 4888 ;; 4889esac 4890fi 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4892$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4893with_gnu_ld=$lt_cv_prog_gnu_ld 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4904$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4905if ${lt_cv_path_NM+:} false; then : 4906 $as_echo_n "(cached) " >&6 4907else 4908 if test -n "$NM"; then 4909 # Let the user override the test. 4910 lt_cv_path_NM=$NM 4911else 4912 lt_nm_to_check=${ac_tool_prefix}nm 4913 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4914 lt_nm_to_check="$lt_nm_to_check nm" 4915 fi 4916 for lt_tmp_nm in $lt_nm_to_check; do 4917 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4918 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4919 IFS=$lt_save_ifs 4920 test -z "$ac_dir" && ac_dir=. 4921 tmp_nm=$ac_dir/$lt_tmp_nm 4922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4923 # Check to see if the nm accepts a BSD-compat flag. 4924 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4925 # nm: unknown option "B" ignored 4926 # Tru64's nm complains that /dev/null is an invalid object file 4927 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4928 case $build_os in 4929 mingw*) lt_bad_file=conftest.nm/nofile ;; 4930 *) lt_bad_file=/dev/null ;; 4931 esac 4932 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4933 *$lt_bad_file* | *'Invalid file or object type'*) 4934 lt_cv_path_NM="$tmp_nm -B" 4935 break 2 4936 ;; 4937 *) 4938 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4939 */dev/null*) 4940 lt_cv_path_NM="$tmp_nm -p" 4941 break 2 4942 ;; 4943 *) 4944 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4945 continue # so that we can try to find one that supports BSD flags 4946 ;; 4947 esac 4948 ;; 4949 esac 4950 fi 4951 done 4952 IFS=$lt_save_ifs 4953 done 4954 : ${lt_cv_path_NM=no} 4955fi 4956fi 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4958$as_echo "$lt_cv_path_NM" >&6; } 4959if test no != "$lt_cv_path_NM"; then 4960 NM=$lt_cv_path_NM 4961else 4962 # Didn't find any BSD compatible name lister, look for dumpbin. 4963 if test -n "$DUMPBIN"; then : 4964 # Let the user override the test. 4965 else 4966 if test -n "$ac_tool_prefix"; then 4967 for ac_prog in dumpbin "link -dump" 4968 do 4969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4970set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4972$as_echo_n "checking for $ac_word... " >&6; } 4973if ${ac_cv_prog_DUMPBIN+:} false; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 if test -n "$DUMPBIN"; then 4977 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4978else 4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4980for as_dir in $PATH 4981do 4982 IFS=$as_save_IFS 4983 test -z "$as_dir" && as_dir=. 4984 for ac_exec_ext in '' $ac_executable_extensions; do 4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4986 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4988 break 2 4989 fi 4990done 4991 done 4992IFS=$as_save_IFS 4993 4994fi 4995fi 4996DUMPBIN=$ac_cv_prog_DUMPBIN 4997if test -n "$DUMPBIN"; then 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4999$as_echo "$DUMPBIN" >&6; } 5000else 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5002$as_echo "no" >&6; } 5003fi 5004 5005 5006 test -n "$DUMPBIN" && break 5007 done 5008fi 5009if test -z "$DUMPBIN"; then 5010 ac_ct_DUMPBIN=$DUMPBIN 5011 for ac_prog in dumpbin "link -dump" 5012do 5013 # Extract the first word of "$ac_prog", so it can be a program name with args. 5014set dummy $ac_prog; ac_word=$2 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5016$as_echo_n "checking for $ac_word... " >&6; } 5017if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 if test -n "$ac_ct_DUMPBIN"; then 5021 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5022else 5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5024for as_dir in $PATH 5025do 5026 IFS=$as_save_IFS 5027 test -z "$as_dir" && as_dir=. 5028 for ac_exec_ext in '' $ac_executable_extensions; do 5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5030 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5032 break 2 5033 fi 5034done 5035 done 5036IFS=$as_save_IFS 5037 5038fi 5039fi 5040ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5041if test -n "$ac_ct_DUMPBIN"; then 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5043$as_echo "$ac_ct_DUMPBIN" >&6; } 5044else 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5046$as_echo "no" >&6; } 5047fi 5048 5049 5050 test -n "$ac_ct_DUMPBIN" && break 5051done 5052 5053 if test "x$ac_ct_DUMPBIN" = x; then 5054 DUMPBIN=":" 5055 else 5056 case $cross_compiling:$ac_tool_warned in 5057yes:) 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5060ac_tool_warned=yes ;; 5061esac 5062 DUMPBIN=$ac_ct_DUMPBIN 5063 fi 5064fi 5065 5066 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5067 *COFF*) 5068 DUMPBIN="$DUMPBIN -symbols -headers" 5069 ;; 5070 *) 5071 DUMPBIN=: 5072 ;; 5073 esac 5074 fi 5075 5076 if test : != "$DUMPBIN"; then 5077 NM=$DUMPBIN 5078 fi 5079fi 5080test -z "$NM" && NM=nm 5081 5082 5083 5084 5085 5086 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5088$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5089if ${lt_cv_nm_interface+:} false; then : 5090 $as_echo_n "(cached) " >&6 5091else 5092 lt_cv_nm_interface="BSD nm" 5093 echo "int some_variable = 0;" > conftest.$ac_ext 5094 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5095 (eval "$ac_compile" 2>conftest.err) 5096 cat conftest.err >&5 5097 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5098 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5099 cat conftest.err >&5 5100 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5101 cat conftest.out >&5 5102 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5103 lt_cv_nm_interface="MS dumpbin" 5104 fi 5105 rm -f conftest* 5106fi 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5108$as_echo "$lt_cv_nm_interface" >&6; } 5109 5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5111$as_echo_n "checking whether ln -s works... " >&6; } 5112LN_S=$as_ln_s 5113if test "$LN_S" = "ln -s"; then 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5115$as_echo "yes" >&6; } 5116else 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5118$as_echo "no, using $LN_S" >&6; } 5119fi 5120 5121# find the maximum length of command line arguments 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5123$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5124if ${lt_cv_sys_max_cmd_len+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 i=0 5128 teststring=ABCD 5129 5130 case $build_os in 5131 msdosdjgpp*) 5132 # On DJGPP, this test can blow up pretty badly due to problems in libc 5133 # (any single argument exceeding 2000 bytes causes a buffer overrun 5134 # during glob expansion). Even if it were fixed, the result of this 5135 # check would be larger than it should be. 5136 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5137 ;; 5138 5139 gnu*) 5140 # Under GNU Hurd, this test is not required because there is 5141 # no limit to the length of command line arguments. 5142 # Libtool will interpret -1 as no limit whatsoever 5143 lt_cv_sys_max_cmd_len=-1; 5144 ;; 5145 5146 cygwin* | mingw* | cegcc*) 5147 # On Win9x/ME, this test blows up -- it succeeds, but takes 5148 # about 5 minutes as the teststring grows exponentially. 5149 # Worse, since 9x/ME are not pre-emptively multitasking, 5150 # you end up with a "frozen" computer, even though with patience 5151 # the test eventually succeeds (with a max line length of 256k). 5152 # Instead, let's just punt: use the minimum linelength reported by 5153 # all of the supported platforms: 8192 (on NT/2K/XP). 5154 lt_cv_sys_max_cmd_len=8192; 5155 ;; 5156 5157 mint*) 5158 # On MiNT this can take a long time and run out of memory. 5159 lt_cv_sys_max_cmd_len=8192; 5160 ;; 5161 5162 amigaos*) 5163 # On AmigaOS with pdksh, this test takes hours, literally. 5164 # So we just punt and use a minimum line length of 8192. 5165 lt_cv_sys_max_cmd_len=8192; 5166 ;; 5167 5168 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5169 # This has been around since 386BSD, at least. Likely further. 5170 if test -x /sbin/sysctl; then 5171 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5172 elif test -x /usr/sbin/sysctl; then 5173 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5174 else 5175 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5176 fi 5177 # And add a safety zone 5178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5180 ;; 5181 5182 interix*) 5183 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5184 lt_cv_sys_max_cmd_len=196608 5185 ;; 5186 5187 os2*) 5188 # The test takes a long time on OS/2. 5189 lt_cv_sys_max_cmd_len=8192 5190 ;; 5191 5192 osf*) 5193 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5194 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5195 # nice to cause kernel panics so lets avoid the loop below. 5196 # First set a reasonable default. 5197 lt_cv_sys_max_cmd_len=16384 5198 # 5199 if test -x /sbin/sysconfig; then 5200 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5201 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5202 esac 5203 fi 5204 ;; 5205 sco3.2v5*) 5206 lt_cv_sys_max_cmd_len=102400 5207 ;; 5208 sysv5* | sco5v6* | sysv4.2uw2*) 5209 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5210 if test -n "$kargmax"; then 5211 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5212 else 5213 lt_cv_sys_max_cmd_len=32768 5214 fi 5215 ;; 5216 *) 5217 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5218 if test -n "$lt_cv_sys_max_cmd_len" && \ 5219 test undefined != "$lt_cv_sys_max_cmd_len"; then 5220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5222 else 5223 # Make teststring a little bigger before we do anything with it. 5224 # a 1K string should be a reasonable start. 5225 for i in 1 2 3 4 5 6 7 8; do 5226 teststring=$teststring$teststring 5227 done 5228 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5229 # If test is not a shell built-in, we'll probably end up computing a 5230 # maximum length that is only half of the actual maximum length, but 5231 # we can't tell. 5232 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5233 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5234 test 17 != "$i" # 1/2 MB should be enough 5235 do 5236 i=`expr $i + 1` 5237 teststring=$teststring$teststring 5238 done 5239 # Only check the string length outside the loop. 5240 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5241 teststring= 5242 # Add a significant safety factor because C++ compilers can tack on 5243 # massive amounts of additional arguments before passing them to the 5244 # linker. It appears as though 1/2 is a usable value. 5245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5246 fi 5247 ;; 5248 esac 5249 5250fi 5251 5252if test -n "$lt_cv_sys_max_cmd_len"; then 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5254$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5255else 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5257$as_echo "none" >&6; } 5258fi 5259max_cmd_len=$lt_cv_sys_max_cmd_len 5260 5261 5262 5263 5264 5265 5266: ${CP="cp -f"} 5267: ${MV="mv -f"} 5268: ${RM="rm -f"} 5269 5270if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5271 lt_unset=unset 5272else 5273 lt_unset=false 5274fi 5275 5276 5277 5278 5279 5280# test EBCDIC or ASCII 5281case `echo X|tr X '\101'` in 5282 A) # ASCII based system 5283 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5284 lt_SP2NL='tr \040 \012' 5285 lt_NL2SP='tr \015\012 \040\040' 5286 ;; 5287 *) # EBCDIC based system 5288 lt_SP2NL='tr \100 \n' 5289 lt_NL2SP='tr \r\n \100\100' 5290 ;; 5291esac 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5302$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5303if ${lt_cv_to_host_file_cmd+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 case $host in 5307 *-*-mingw* ) 5308 case $build in 5309 *-*-mingw* ) # actually msys 5310 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5311 ;; 5312 *-*-cygwin* ) 5313 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5314 ;; 5315 * ) # otherwise, assume *nix 5316 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5317 ;; 5318 esac 5319 ;; 5320 *-*-cygwin* ) 5321 case $build in 5322 *-*-mingw* ) # actually msys 5323 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5324 ;; 5325 *-*-cygwin* ) 5326 lt_cv_to_host_file_cmd=func_convert_file_noop 5327 ;; 5328 * ) # otherwise, assume *nix 5329 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5330 ;; 5331 esac 5332 ;; 5333 * ) # unhandled hosts (and "normal" native builds) 5334 lt_cv_to_host_file_cmd=func_convert_file_noop 5335 ;; 5336esac 5337 5338fi 5339 5340to_host_file_cmd=$lt_cv_to_host_file_cmd 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5342$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5343 5344 5345 5346 5347 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5349$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5350if ${lt_cv_to_tool_file_cmd+:} false; then : 5351 $as_echo_n "(cached) " >&6 5352else 5353 #assume ordinary cross tools, or native build. 5354lt_cv_to_tool_file_cmd=func_convert_file_noop 5355case $host in 5356 *-*-mingw* ) 5357 case $build in 5358 *-*-mingw* ) # actually msys 5359 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5360 ;; 5361 esac 5362 ;; 5363esac 5364 5365fi 5366 5367to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5369$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5370 5371 5372 5373 5374 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5376$as_echo_n "checking for $LD option to reload object files... " >&6; } 5377if ${lt_cv_ld_reload_flag+:} false; then : 5378 $as_echo_n "(cached) " >&6 5379else 5380 lt_cv_ld_reload_flag='-r' 5381fi 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5383$as_echo "$lt_cv_ld_reload_flag" >&6; } 5384reload_flag=$lt_cv_ld_reload_flag 5385case $reload_flag in 5386"" | " "*) ;; 5387*) reload_flag=" $reload_flag" ;; 5388esac 5389reload_cmds='$LD$reload_flag -o $output$reload_objs' 5390case $host_os in 5391 cygwin* | mingw* | pw32* | cegcc*) 5392 if test yes != "$GCC"; then 5393 reload_cmds=false 5394 fi 5395 ;; 5396 darwin*) 5397 if test yes = "$GCC"; then 5398 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5399 else 5400 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5401 fi 5402 ;; 5403esac 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413if test -n "$ac_tool_prefix"; then 5414 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5415set dummy ${ac_tool_prefix}objdump; ac_word=$2 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5417$as_echo_n "checking for $ac_word... " >&6; } 5418if ${ac_cv_prog_OBJDUMP+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 if test -n "$OBJDUMP"; then 5422 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5423else 5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5425for as_dir in $PATH 5426do 5427 IFS=$as_save_IFS 5428 test -z "$as_dir" && as_dir=. 5429 for ac_exec_ext in '' $ac_executable_extensions; do 5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5431 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5433 break 2 5434 fi 5435done 5436 done 5437IFS=$as_save_IFS 5438 5439fi 5440fi 5441OBJDUMP=$ac_cv_prog_OBJDUMP 5442if test -n "$OBJDUMP"; then 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5444$as_echo "$OBJDUMP" >&6; } 5445else 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5447$as_echo "no" >&6; } 5448fi 5449 5450 5451fi 5452if test -z "$ac_cv_prog_OBJDUMP"; then 5453 ac_ct_OBJDUMP=$OBJDUMP 5454 # Extract the first word of "objdump", so it can be a program name with args. 5455set dummy objdump; ac_word=$2 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5457$as_echo_n "checking for $ac_word... " >&6; } 5458if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 if test -n "$ac_ct_OBJDUMP"; then 5462 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5463else 5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465for as_dir in $PATH 5466do 5467 IFS=$as_save_IFS 5468 test -z "$as_dir" && as_dir=. 5469 for ac_exec_ext in '' $ac_executable_extensions; do 5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5471 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5473 break 2 5474 fi 5475done 5476 done 5477IFS=$as_save_IFS 5478 5479fi 5480fi 5481ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5482if test -n "$ac_ct_OBJDUMP"; then 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5484$as_echo "$ac_ct_OBJDUMP" >&6; } 5485else 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5487$as_echo "no" >&6; } 5488fi 5489 5490 if test "x$ac_ct_OBJDUMP" = x; then 5491 OBJDUMP="false" 5492 else 5493 case $cross_compiling:$ac_tool_warned in 5494yes:) 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5497ac_tool_warned=yes ;; 5498esac 5499 OBJDUMP=$ac_ct_OBJDUMP 5500 fi 5501else 5502 OBJDUMP="$ac_cv_prog_OBJDUMP" 5503fi 5504 5505test -z "$OBJDUMP" && OBJDUMP=objdump 5506 5507 5508 5509 5510 5511 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5513$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5514if ${lt_cv_deplibs_check_method+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516else 5517 lt_cv_file_magic_cmd='$MAGIC_CMD' 5518lt_cv_file_magic_test_file= 5519lt_cv_deplibs_check_method='unknown' 5520# Need to set the preceding variable on all platforms that support 5521# interlibrary dependencies. 5522# 'none' -- dependencies not supported. 5523# 'unknown' -- same as none, but documents that we really don't know. 5524# 'pass_all' -- all dependencies passed with no checks. 5525# 'test_compile' -- check by making test program. 5526# 'file_magic [[regex]]' -- check by looking for files in library path 5527# that responds to the $file_magic_cmd with a given extended regex. 5528# If you have 'file' or equivalent on your system and you're not sure 5529# whether 'pass_all' will *always* work, you probably want this one. 5530 5531case $host_os in 5532aix[4-9]*) 5533 lt_cv_deplibs_check_method=pass_all 5534 ;; 5535 5536beos*) 5537 lt_cv_deplibs_check_method=pass_all 5538 ;; 5539 5540bsdi[45]*) 5541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5542 lt_cv_file_magic_cmd='/usr/bin/file -L' 5543 lt_cv_file_magic_test_file=/shlib/libc.so 5544 ;; 5545 5546cygwin*) 5547 # func_win32_libid is a shell function defined in ltmain.sh 5548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5549 lt_cv_file_magic_cmd='func_win32_libid' 5550 ;; 5551 5552mingw* | pw32*) 5553 # Base MSYS/MinGW do not provide the 'file' command needed by 5554 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5555 # unless we find 'file', for example because we are cross-compiling. 5556 if ( file / ) >/dev/null 2>&1; then 5557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5558 lt_cv_file_magic_cmd='func_win32_libid' 5559 else 5560 # Keep this pattern in sync with the one in func_win32_libid. 5561 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5562 lt_cv_file_magic_cmd='$OBJDUMP -f' 5563 fi 5564 ;; 5565 5566cegcc*) 5567 # use the weaker test based on 'objdump'. See mingw*. 5568 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5569 lt_cv_file_magic_cmd='$OBJDUMP -f' 5570 ;; 5571 5572darwin* | rhapsody*) 5573 lt_cv_deplibs_check_method=pass_all 5574 ;; 5575 5576freebsd* | dragonfly*) 5577 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5578 case $host_cpu in 5579 i*86 ) 5580 # Not sure whether the presence of OpenBSD here was a mistake. 5581 # Let's accept both of them until this is cleared up. 5582 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5583 lt_cv_file_magic_cmd=/usr/bin/file 5584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5585 ;; 5586 esac 5587 else 5588 lt_cv_deplibs_check_method=pass_all 5589 fi 5590 ;; 5591 5592haiku*) 5593 lt_cv_deplibs_check_method=pass_all 5594 ;; 5595 5596hpux10.20* | hpux11*) 5597 lt_cv_file_magic_cmd=/usr/bin/file 5598 case $host_cpu in 5599 ia64*) 5600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5601 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5602 ;; 5603 hppa*64*) 5604 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]' 5605 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5606 ;; 5607 *) 5608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5609 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5610 ;; 5611 esac 5612 ;; 5613 5614interix[3-9]*) 5615 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5617 ;; 5618 5619irix5* | irix6* | nonstopux*) 5620 case $LD in 5621 *-32|*"-32 ") libmagic=32-bit;; 5622 *-n32|*"-n32 ") libmagic=N32;; 5623 *-64|*"-64 ") libmagic=64-bit;; 5624 *) libmagic=never-match;; 5625 esac 5626 lt_cv_deplibs_check_method=pass_all 5627 ;; 5628 5629# This must be glibc/ELF. 5630linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5631 lt_cv_deplibs_check_method=pass_all 5632 ;; 5633 5634netbsd*) 5635 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5637 else 5638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5639 fi 5640 ;; 5641 5642newos6*) 5643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5644 lt_cv_file_magic_cmd=/usr/bin/file 5645 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5646 ;; 5647 5648*nto* | *qnx*) 5649 lt_cv_deplibs_check_method=pass_all 5650 ;; 5651 5652openbsd* | bitrig*) 5653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5655 else 5656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5657 fi 5658 ;; 5659 5660osf3* | osf4* | osf5*) 5661 lt_cv_deplibs_check_method=pass_all 5662 ;; 5663 5664rdos*) 5665 lt_cv_deplibs_check_method=pass_all 5666 ;; 5667 5668solaris*) 5669 lt_cv_deplibs_check_method=pass_all 5670 ;; 5671 5672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5673 lt_cv_deplibs_check_method=pass_all 5674 ;; 5675 5676sysv4 | sysv4.3*) 5677 case $host_vendor in 5678 motorola) 5679 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]' 5680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5681 ;; 5682 ncr) 5683 lt_cv_deplibs_check_method=pass_all 5684 ;; 5685 sequent) 5686 lt_cv_file_magic_cmd='/bin/file' 5687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5688 ;; 5689 sni) 5690 lt_cv_file_magic_cmd='/bin/file' 5691 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5692 lt_cv_file_magic_test_file=/lib/libc.so 5693 ;; 5694 siemens) 5695 lt_cv_deplibs_check_method=pass_all 5696 ;; 5697 pc) 5698 lt_cv_deplibs_check_method=pass_all 5699 ;; 5700 esac 5701 ;; 5702 5703tpf*) 5704 lt_cv_deplibs_check_method=pass_all 5705 ;; 5706os2*) 5707 lt_cv_deplibs_check_method=pass_all 5708 ;; 5709esac 5710 5711fi 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5713$as_echo "$lt_cv_deplibs_check_method" >&6; } 5714 5715file_magic_glob= 5716want_nocaseglob=no 5717if test "$build" = "$host"; then 5718 case $host_os in 5719 mingw* | pw32*) 5720 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5721 want_nocaseglob=yes 5722 else 5723 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5724 fi 5725 ;; 5726 esac 5727fi 5728 5729file_magic_cmd=$lt_cv_file_magic_cmd 5730deplibs_check_method=$lt_cv_deplibs_check_method 5731test -z "$deplibs_check_method" && deplibs_check_method=unknown 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754if test -n "$ac_tool_prefix"; then 5755 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5756set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_DLLTOOL+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$DLLTOOL"; then 5763 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782DLLTOOL=$ac_cv_prog_DLLTOOL 5783if test -n "$DLLTOOL"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5785$as_echo "$DLLTOOL" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 5792fi 5793if test -z "$ac_cv_prog_DLLTOOL"; then 5794 ac_ct_DLLTOOL=$DLLTOOL 5795 # Extract the first word of "dlltool", so it can be a program name with args. 5796set dummy dlltool; ac_word=$2 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5798$as_echo_n "checking for $ac_word... " >&6; } 5799if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 if test -n "$ac_ct_DLLTOOL"; then 5803 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5804else 5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5806for as_dir in $PATH 5807do 5808 IFS=$as_save_IFS 5809 test -z "$as_dir" && as_dir=. 5810 for ac_exec_ext in '' $ac_executable_extensions; do 5811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5812 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5814 break 2 5815 fi 5816done 5817 done 5818IFS=$as_save_IFS 5819 5820fi 5821fi 5822ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5823if test -n "$ac_ct_DLLTOOL"; then 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5825$as_echo "$ac_ct_DLLTOOL" >&6; } 5826else 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5828$as_echo "no" >&6; } 5829fi 5830 5831 if test "x$ac_ct_DLLTOOL" = x; then 5832 DLLTOOL="false" 5833 else 5834 case $cross_compiling:$ac_tool_warned in 5835yes:) 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5838ac_tool_warned=yes ;; 5839esac 5840 DLLTOOL=$ac_ct_DLLTOOL 5841 fi 5842else 5843 DLLTOOL="$ac_cv_prog_DLLTOOL" 5844fi 5845 5846test -z "$DLLTOOL" && DLLTOOL=dlltool 5847 5848 5849 5850 5851 5852 5853 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5855$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5856if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 lt_cv_sharedlib_from_linklib_cmd='unknown' 5860 5861case $host_os in 5862cygwin* | mingw* | pw32* | cegcc*) 5863 # two different shell functions defined in ltmain.sh; 5864 # decide which one to use based on capabilities of $DLLTOOL 5865 case `$DLLTOOL --help 2>&1` in 5866 *--identify-strict*) 5867 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5868 ;; 5869 *) 5870 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5871 ;; 5872 esac 5873 ;; 5874*) 5875 # fallback: assume linklib IS sharedlib 5876 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5877 ;; 5878esac 5879 5880fi 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5882$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5883sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5884test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5885 5886 5887 5888 5889 5890 5891 5892 5893if test -n "$ac_tool_prefix"; then 5894 for ac_prog in ar 5895 do 5896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5897set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5899$as_echo_n "checking for $ac_word... " >&6; } 5900if ${ac_cv_prog_AR+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902else 5903 if test -n "$AR"; then 5904 ac_cv_prog_AR="$AR" # Let the user override the test. 5905else 5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5907for as_dir in $PATH 5908do 5909 IFS=$as_save_IFS 5910 test -z "$as_dir" && as_dir=. 5911 for ac_exec_ext in '' $ac_executable_extensions; do 5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5913 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5915 break 2 5916 fi 5917done 5918 done 5919IFS=$as_save_IFS 5920 5921fi 5922fi 5923AR=$ac_cv_prog_AR 5924if test -n "$AR"; then 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5926$as_echo "$AR" >&6; } 5927else 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5929$as_echo "no" >&6; } 5930fi 5931 5932 5933 test -n "$AR" && break 5934 done 5935fi 5936if test -z "$AR"; then 5937 ac_ct_AR=$AR 5938 for ac_prog in ar 5939do 5940 # Extract the first word of "$ac_prog", so it can be a program name with args. 5941set dummy $ac_prog; ac_word=$2 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5943$as_echo_n "checking for $ac_word... " >&6; } 5944if ${ac_cv_prog_ac_ct_AR+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946else 5947 if test -n "$ac_ct_AR"; then 5948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5949else 5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5951for as_dir in $PATH 5952do 5953 IFS=$as_save_IFS 5954 test -z "$as_dir" && as_dir=. 5955 for ac_exec_ext in '' $ac_executable_extensions; do 5956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5957 ac_cv_prog_ac_ct_AR="$ac_prog" 5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5959 break 2 5960 fi 5961done 5962 done 5963IFS=$as_save_IFS 5964 5965fi 5966fi 5967ac_ct_AR=$ac_cv_prog_ac_ct_AR 5968if test -n "$ac_ct_AR"; then 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5970$as_echo "$ac_ct_AR" >&6; } 5971else 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5973$as_echo "no" >&6; } 5974fi 5975 5976 5977 test -n "$ac_ct_AR" && break 5978done 5979 5980 if test "x$ac_ct_AR" = x; then 5981 AR="false" 5982 else 5983 case $cross_compiling:$ac_tool_warned in 5984yes:) 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5987ac_tool_warned=yes ;; 5988esac 5989 AR=$ac_ct_AR 5990 fi 5991fi 5992 5993: ${AR=ar} 5994: ${AR_FLAGS=cru} 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6007$as_echo_n "checking for archiver @FILE support... " >&6; } 6008if ${lt_cv_ar_at_file+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 lt_cv_ar_at_file=no 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014 6015int 6016main () 6017{ 6018 6019 ; 6020 return 0; 6021} 6022_ACEOF 6023if ac_fn_c_try_compile "$LINENO"; then : 6024 echo conftest.$ac_objext > conftest.lst 6025 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6027 (eval $lt_ar_try) 2>&5 6028 ac_status=$? 6029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6030 test $ac_status = 0; } 6031 if test 0 -eq "$ac_status"; then 6032 # Ensure the archiver fails upon bogus file names. 6033 rm -f conftest.$ac_objext libconftest.a 6034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6035 (eval $lt_ar_try) 2>&5 6036 ac_status=$? 6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6038 test $ac_status = 0; } 6039 if test 0 -ne "$ac_status"; then 6040 lt_cv_ar_at_file=@ 6041 fi 6042 fi 6043 rm -f conftest.* libconftest.a 6044 6045fi 6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6047 6048fi 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6050$as_echo "$lt_cv_ar_at_file" >&6; } 6051 6052if test no = "$lt_cv_ar_at_file"; then 6053 archiver_list_spec= 6054else 6055 archiver_list_spec=$lt_cv_ar_at_file 6056fi 6057 6058 6059 6060 6061 6062 6063 6064if test -n "$ac_tool_prefix"; then 6065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6066set dummy ${ac_tool_prefix}strip; ac_word=$2 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6068$as_echo_n "checking for $ac_word... " >&6; } 6069if ${ac_cv_prog_STRIP+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 if test -n "$STRIP"; then 6073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6074else 6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076for as_dir in $PATH 6077do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_exec_ext in '' $ac_executable_extensions; do 6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6082 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6084 break 2 6085 fi 6086done 6087 done 6088IFS=$as_save_IFS 6089 6090fi 6091fi 6092STRIP=$ac_cv_prog_STRIP 6093if test -n "$STRIP"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6095$as_echo "$STRIP" >&6; } 6096else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098$as_echo "no" >&6; } 6099fi 6100 6101 6102fi 6103if test -z "$ac_cv_prog_STRIP"; then 6104 ac_ct_STRIP=$STRIP 6105 # Extract the first word of "strip", so it can be a program name with args. 6106set dummy strip; ac_word=$2 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6108$as_echo_n "checking for $ac_word... " >&6; } 6109if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 if test -n "$ac_ct_STRIP"; then 6113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6114else 6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6116for as_dir in $PATH 6117do 6118 IFS=$as_save_IFS 6119 test -z "$as_dir" && as_dir=. 6120 for ac_exec_ext in '' $ac_executable_extensions; do 6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6122 ac_cv_prog_ac_ct_STRIP="strip" 6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6124 break 2 6125 fi 6126done 6127 done 6128IFS=$as_save_IFS 6129 6130fi 6131fi 6132ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6133if test -n "$ac_ct_STRIP"; then 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6135$as_echo "$ac_ct_STRIP" >&6; } 6136else 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6138$as_echo "no" >&6; } 6139fi 6140 6141 if test "x$ac_ct_STRIP" = x; then 6142 STRIP=":" 6143 else 6144 case $cross_compiling:$ac_tool_warned in 6145yes:) 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6148ac_tool_warned=yes ;; 6149esac 6150 STRIP=$ac_ct_STRIP 6151 fi 6152else 6153 STRIP="$ac_cv_prog_STRIP" 6154fi 6155 6156test -z "$STRIP" && STRIP=: 6157 6158 6159 6160 6161 6162 6163if test -n "$ac_tool_prefix"; then 6164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6165set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6167$as_echo_n "checking for $ac_word... " >&6; } 6168if ${ac_cv_prog_RANLIB+:} false; then : 6169 $as_echo_n "(cached) " >&6 6170else 6171 if test -n "$RANLIB"; then 6172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6173else 6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6175for as_dir in $PATH 6176do 6177 IFS=$as_save_IFS 6178 test -z "$as_dir" && as_dir=. 6179 for ac_exec_ext in '' $ac_executable_extensions; do 6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6183 break 2 6184 fi 6185done 6186 done 6187IFS=$as_save_IFS 6188 6189fi 6190fi 6191RANLIB=$ac_cv_prog_RANLIB 6192if test -n "$RANLIB"; then 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6194$as_echo "$RANLIB" >&6; } 6195else 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6197$as_echo "no" >&6; } 6198fi 6199 6200 6201fi 6202if test -z "$ac_cv_prog_RANLIB"; then 6203 ac_ct_RANLIB=$RANLIB 6204 # Extract the first word of "ranlib", so it can be a program name with args. 6205set dummy ranlib; ac_word=$2 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6207$as_echo_n "checking for $ac_word... " >&6; } 6208if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 if test -n "$ac_ct_RANLIB"; then 6212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6213else 6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6215for as_dir in $PATH 6216do 6217 IFS=$as_save_IFS 6218 test -z "$as_dir" && as_dir=. 6219 for ac_exec_ext in '' $ac_executable_extensions; do 6220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6221 ac_cv_prog_ac_ct_RANLIB="ranlib" 6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6223 break 2 6224 fi 6225done 6226 done 6227IFS=$as_save_IFS 6228 6229fi 6230fi 6231ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6232if test -n "$ac_ct_RANLIB"; then 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6234$as_echo "$ac_ct_RANLIB" >&6; } 6235else 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6237$as_echo "no" >&6; } 6238fi 6239 6240 if test "x$ac_ct_RANLIB" = x; then 6241 RANLIB=":" 6242 else 6243 case $cross_compiling:$ac_tool_warned in 6244yes:) 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6247ac_tool_warned=yes ;; 6248esac 6249 RANLIB=$ac_ct_RANLIB 6250 fi 6251else 6252 RANLIB="$ac_cv_prog_RANLIB" 6253fi 6254 6255test -z "$RANLIB" && RANLIB=: 6256 6257 6258 6259 6260 6261 6262# Determine commands to create old-style static archives. 6263old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6264old_postinstall_cmds='chmod 644 $oldlib' 6265old_postuninstall_cmds= 6266 6267if test -n "$RANLIB"; then 6268 case $host_os in 6269 bitrig* | openbsd*) 6270 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6271 ;; 6272 *) 6273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6274 ;; 6275 esac 6276 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6277fi 6278 6279case $host_os in 6280 darwin*) 6281 lock_old_archive_extraction=yes ;; 6282 *) 6283 lock_old_archive_extraction=no ;; 6284esac 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324# If no C compiler was specified, use CC. 6325LTCC=${LTCC-"$CC"} 6326 6327# If no C compiler flags were specified, use CFLAGS. 6328LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6329 6330# Allow CC to be a program name with arguments. 6331compiler=$CC 6332 6333 6334# Check for command to grab the raw symbol name followed by C symbol from nm. 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6336$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6337if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6338 $as_echo_n "(cached) " >&6 6339else 6340 6341# These are sane defaults that work on at least a few old systems. 6342# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6343 6344# Character class describing NM global symbol codes. 6345symcode='[BCDEGRST]' 6346 6347# Regexp to match symbols that can be accessed directly from C. 6348sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6349 6350# Define system-specific variables. 6351case $host_os in 6352aix*) 6353 symcode='[BCDT]' 6354 ;; 6355cygwin* | mingw* | pw32* | cegcc*) 6356 symcode='[ABCDGISTW]' 6357 ;; 6358hpux*) 6359 if test ia64 = "$host_cpu"; then 6360 symcode='[ABCDEGRST]' 6361 fi 6362 ;; 6363irix* | nonstopux*) 6364 symcode='[BCDEGRST]' 6365 ;; 6366osf*) 6367 symcode='[BCDEGQRST]' 6368 ;; 6369solaris*) 6370 symcode='[BDRT]' 6371 ;; 6372sco3.2v5*) 6373 symcode='[DT]' 6374 ;; 6375sysv4.2uw2*) 6376 symcode='[DT]' 6377 ;; 6378sysv5* | sco5v6* | unixware* | OpenUNIX*) 6379 symcode='[ABDT]' 6380 ;; 6381sysv4) 6382 symcode='[DFNSTU]' 6383 ;; 6384esac 6385 6386# If we're using GNU nm, then use its standard symbol codes. 6387case `$NM -V 2>&1` in 6388*GNU* | *'with BFD'*) 6389 symcode='[ABCDGIRSTW]' ;; 6390esac 6391 6392if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6393 # Gets list of data symbols to import. 6394 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6395 # Adjust the below global symbol transforms to fixup imported variables. 6396 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6397 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6398 lt_c_name_lib_hook="\ 6399 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6400 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6401else 6402 # Disable hooks by default. 6403 lt_cv_sys_global_symbol_to_import= 6404 lt_cdecl_hook= 6405 lt_c_name_hook= 6406 lt_c_name_lib_hook= 6407fi 6408 6409# Transform an extracted symbol line into a proper C declaration. 6410# Some systems (esp. on ia64) link data and code symbols differently, 6411# so use this general approach. 6412lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6413$lt_cdecl_hook\ 6414" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6415" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6416 6417# Transform an extracted symbol line into symbol name and symbol address 6418lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6419$lt_c_name_hook\ 6420" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6421" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6422 6423# Transform an extracted symbol line into symbol name with lib prefix and 6424# symbol address. 6425lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6426$lt_c_name_lib_hook\ 6427" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6428" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6429" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6430 6431# Handle CRLF in mingw tool chain 6432opt_cr= 6433case $build_os in 6434mingw*) 6435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6436 ;; 6437esac 6438 6439# Try without a prefix underscore, then with it. 6440for ac_symprfx in "" "_"; do 6441 6442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6443 symxfrm="\\1 $ac_symprfx\\2 \\2" 6444 6445 # Write the raw and C identifiers. 6446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6447 # Fake it for dumpbin and say T for any non-static function, 6448 # D for any global variable and I for any imported variable. 6449 # Also find C++ and __fastcall symbols from MSVC++, 6450 # which start with @ or ?. 6451 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6452" {last_section=section; section=\$ 3};"\ 6453" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6454" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6455" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6456" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6457" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6458" \$ 0!~/External *\|/{next};"\ 6459" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6460" {if(hide[section]) next};"\ 6461" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6462" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6463" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6464" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6465" ' prfx=^$ac_symprfx" 6466 else 6467 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6468 fi 6469 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6470 6471 # Check to see that the pipe works correctly. 6472 pipe_works=no 6473 6474 rm -f conftest* 6475 cat > conftest.$ac_ext <<_LT_EOF 6476#ifdef __cplusplus 6477extern "C" { 6478#endif 6479char nm_test_var; 6480void nm_test_func(void); 6481void nm_test_func(void){} 6482#ifdef __cplusplus 6483} 6484#endif 6485int main(){nm_test_var='a';nm_test_func();return(0);} 6486_LT_EOF 6487 6488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6489 (eval $ac_compile) 2>&5 6490 ac_status=$? 6491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6492 test $ac_status = 0; }; then 6493 # Now try to grab the symbols. 6494 nlist=conftest.nm 6495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6496 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6497 ac_status=$? 6498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6499 test $ac_status = 0; } && test -s "$nlist"; then 6500 # Try sorting and uniquifying the output. 6501 if sort "$nlist" | uniq > "$nlist"T; then 6502 mv -f "$nlist"T "$nlist" 6503 else 6504 rm -f "$nlist"T 6505 fi 6506 6507 # Make sure that we snagged all the symbols we need. 6508 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6509 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6510 cat <<_LT_EOF > conftest.$ac_ext 6511/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6512#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6513/* DATA imports from DLLs on WIN32 can't be const, because runtime 6514 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6515# define LT_DLSYM_CONST 6516#elif defined __osf__ 6517/* This system does not cope well with relocations in const data. */ 6518# define LT_DLSYM_CONST 6519#else 6520# define LT_DLSYM_CONST const 6521#endif 6522 6523#ifdef __cplusplus 6524extern "C" { 6525#endif 6526 6527_LT_EOF 6528 # Now generate the symbol file. 6529 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6530 6531 cat <<_LT_EOF >> conftest.$ac_ext 6532 6533/* The mapping between symbol names and symbols. */ 6534LT_DLSYM_CONST struct { 6535 const char *name; 6536 void *address; 6537} 6538lt__PROGRAM__LTX_preloaded_symbols[] = 6539{ 6540 { "@PROGRAM@", (void *) 0 }, 6541_LT_EOF 6542 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6543 cat <<\_LT_EOF >> conftest.$ac_ext 6544 {0, (void *) 0} 6545}; 6546 6547/* This works around a problem in FreeBSD linker */ 6548#ifdef FREEBSD_WORKAROUND 6549static const void *lt_preloaded_setup() { 6550 return lt__PROGRAM__LTX_preloaded_symbols; 6551} 6552#endif 6553 6554#ifdef __cplusplus 6555} 6556#endif 6557_LT_EOF 6558 # Now try linking the two files. 6559 mv conftest.$ac_objext conftstm.$ac_objext 6560 lt_globsym_save_LIBS=$LIBS 6561 lt_globsym_save_CFLAGS=$CFLAGS 6562 LIBS=conftstm.$ac_objext 6563 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6565 (eval $ac_link) 2>&5 6566 ac_status=$? 6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6568 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6569 pipe_works=yes 6570 fi 6571 LIBS=$lt_globsym_save_LIBS 6572 CFLAGS=$lt_globsym_save_CFLAGS 6573 else 6574 echo "cannot find nm_test_func in $nlist" >&5 6575 fi 6576 else 6577 echo "cannot find nm_test_var in $nlist" >&5 6578 fi 6579 else 6580 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6581 fi 6582 else 6583 echo "$progname: failed program was:" >&5 6584 cat conftest.$ac_ext >&5 6585 fi 6586 rm -rf conftest* conftst* 6587 6588 # Do not use the global_symbol_pipe unless it works. 6589 if test yes = "$pipe_works"; then 6590 break 6591 else 6592 lt_cv_sys_global_symbol_pipe= 6593 fi 6594done 6595 6596fi 6597 6598if test -z "$lt_cv_sys_global_symbol_pipe"; then 6599 lt_cv_sys_global_symbol_to_cdecl= 6600fi 6601if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6603$as_echo "failed" >&6; } 6604else 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6606$as_echo "ok" >&6; } 6607fi 6608 6609# Response file support. 6610if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6611 nm_file_list_spec='@' 6612elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6613 nm_file_list_spec='@' 6614fi 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6653$as_echo_n "checking for sysroot... " >&6; } 6654 6655# Check whether --with-sysroot was given. 6656if test "${with_sysroot+set}" = set; then : 6657 withval=$with_sysroot; 6658else 6659 with_sysroot=no 6660fi 6661 6662 6663lt_sysroot= 6664case $with_sysroot in #( 6665 yes) 6666 if test yes = "$GCC"; then 6667 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6668 fi 6669 ;; #( 6670 /*) 6671 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6672 ;; #( 6673 no|'') 6674 ;; #( 6675 *) 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6677$as_echo "$with_sysroot" >&6; } 6678 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6679 ;; 6680esac 6681 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6683$as_echo "${lt_sysroot:-no}" >&6; } 6684 6685 6686 6687 6688 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6690$as_echo_n "checking for a working dd... " >&6; } 6691if ${ac_cv_path_lt_DD+:} false; then : 6692 $as_echo_n "(cached) " >&6 6693else 6694 printf 0123456789abcdef0123456789abcdef >conftest.i 6695cat conftest.i conftest.i >conftest2.i 6696: ${lt_DD:=$DD} 6697if test -z "$lt_DD"; then 6698 ac_path_lt_DD_found=false 6699 # Loop through the user's path and test for each of PROGNAME-LIST 6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6701for as_dir in $PATH 6702do 6703 IFS=$as_save_IFS 6704 test -z "$as_dir" && as_dir=. 6705 for ac_prog in dd; do 6706 for ac_exec_ext in '' $ac_executable_extensions; do 6707 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6708 as_fn_executable_p "$ac_path_lt_DD" || continue 6709if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6710 cmp -s conftest.i conftest.out \ 6711 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6712fi 6713 $ac_path_lt_DD_found && break 3 6714 done 6715 done 6716 done 6717IFS=$as_save_IFS 6718 if test -z "$ac_cv_path_lt_DD"; then 6719 : 6720 fi 6721else 6722 ac_cv_path_lt_DD=$lt_DD 6723fi 6724 6725rm -f conftest.i conftest2.i conftest.out 6726fi 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6728$as_echo "$ac_cv_path_lt_DD" >&6; } 6729 6730 6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6732$as_echo_n "checking how to truncate binary pipes... " >&6; } 6733if ${lt_cv_truncate_bin+:} false; then : 6734 $as_echo_n "(cached) " >&6 6735else 6736 printf 0123456789abcdef0123456789abcdef >conftest.i 6737cat conftest.i conftest.i >conftest2.i 6738lt_cv_truncate_bin= 6739if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6740 cmp -s conftest.i conftest.out \ 6741 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6742fi 6743rm -f conftest.i conftest2.i conftest.out 6744test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6745fi 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6747$as_echo "$lt_cv_truncate_bin" >&6; } 6748 6749 6750 6751 6752 6753 6754 6755# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6756func_cc_basename () 6757{ 6758 for cc_temp in $*""; do 6759 case $cc_temp in 6760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6762 \-*) ;; 6763 *) break;; 6764 esac 6765 done 6766 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6767} 6768 6769# Check whether --enable-libtool-lock was given. 6770if test "${enable_libtool_lock+set}" = set; then : 6771 enableval=$enable_libtool_lock; 6772fi 6773 6774test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6775 6776# Some flags need to be propagated to the compiler or linker for good 6777# libtool support. 6778case $host in 6779ia64-*-hpux*) 6780 # Find out what ABI is being produced by ac_compile, and set mode 6781 # options accordingly. 6782 echo 'int i;' > conftest.$ac_ext 6783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6784 (eval $ac_compile) 2>&5 6785 ac_status=$? 6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6787 test $ac_status = 0; }; then 6788 case `/usr/bin/file conftest.$ac_objext` in 6789 *ELF-32*) 6790 HPUX_IA64_MODE=32 6791 ;; 6792 *ELF-64*) 6793 HPUX_IA64_MODE=64 6794 ;; 6795 esac 6796 fi 6797 rm -rf conftest* 6798 ;; 6799*-*-irix6*) 6800 # Find out what ABI is being produced by ac_compile, and set linker 6801 # options accordingly. 6802 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6804 (eval $ac_compile) 2>&5 6805 ac_status=$? 6806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6807 test $ac_status = 0; }; then 6808 if test yes = "$lt_cv_prog_gnu_ld"; then 6809 case `/usr/bin/file conftest.$ac_objext` in 6810 *32-bit*) 6811 LD="${LD-ld} -melf32bsmip" 6812 ;; 6813 *N32*) 6814 LD="${LD-ld} -melf32bmipn32" 6815 ;; 6816 *64-bit*) 6817 LD="${LD-ld} -melf64bmip" 6818 ;; 6819 esac 6820 else 6821 case `/usr/bin/file conftest.$ac_objext` in 6822 *32-bit*) 6823 LD="${LD-ld} -32" 6824 ;; 6825 *N32*) 6826 LD="${LD-ld} -n32" 6827 ;; 6828 *64-bit*) 6829 LD="${LD-ld} -64" 6830 ;; 6831 esac 6832 fi 6833 fi 6834 rm -rf conftest* 6835 ;; 6836 6837mips64*-*linux*) 6838 # Find out what ABI is being produced by ac_compile, and set linker 6839 # options accordingly. 6840 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6842 (eval $ac_compile) 2>&5 6843 ac_status=$? 6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6845 test $ac_status = 0; }; then 6846 emul=elf 6847 case `/usr/bin/file conftest.$ac_objext` in 6848 *32-bit*) 6849 emul="${emul}32" 6850 ;; 6851 *64-bit*) 6852 emul="${emul}64" 6853 ;; 6854 esac 6855 case `/usr/bin/file conftest.$ac_objext` in 6856 *MSB*) 6857 emul="${emul}btsmip" 6858 ;; 6859 *LSB*) 6860 emul="${emul}ltsmip" 6861 ;; 6862 esac 6863 case `/usr/bin/file conftest.$ac_objext` in 6864 *N32*) 6865 emul="${emul}n32" 6866 ;; 6867 esac 6868 LD="${LD-ld} -m $emul" 6869 fi 6870 rm -rf conftest* 6871 ;; 6872 6873x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6874s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6875 # Find out what ABI is being produced by ac_compile, and set linker 6876 # options accordingly. Note that the listed cases only cover the 6877 # situations where additional linker options are needed (such as when 6878 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6879 # vice versa); the common cases where no linker options are needed do 6880 # not appear in the list. 6881 echo 'int i;' > conftest.$ac_ext 6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6883 (eval $ac_compile) 2>&5 6884 ac_status=$? 6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6886 test $ac_status = 0; }; then 6887 case `/usr/bin/file conftest.o` in 6888 *32-bit*) 6889 case $host in 6890 x86_64-*kfreebsd*-gnu) 6891 LD="${LD-ld} -m elf_i386_fbsd" 6892 ;; 6893 x86_64-*linux*) 6894 case `/usr/bin/file conftest.o` in 6895 *x86-64*) 6896 LD="${LD-ld} -m elf32_x86_64" 6897 ;; 6898 *) 6899 LD="${LD-ld} -m elf_i386" 6900 ;; 6901 esac 6902 ;; 6903 powerpc64le-*linux*) 6904 LD="${LD-ld} -m elf32lppclinux" 6905 ;; 6906 powerpc64-*linux*) 6907 LD="${LD-ld} -m elf32ppclinux" 6908 ;; 6909 s390x-*linux*) 6910 LD="${LD-ld} -m elf_s390" 6911 ;; 6912 sparc64-*linux*) 6913 LD="${LD-ld} -m elf32_sparc" 6914 ;; 6915 esac 6916 ;; 6917 *64-bit*) 6918 case $host in 6919 x86_64-*kfreebsd*-gnu) 6920 LD="${LD-ld} -m elf_x86_64_fbsd" 6921 ;; 6922 x86_64-*linux*) 6923 LD="${LD-ld} -m elf_x86_64" 6924 ;; 6925 powerpcle-*linux*) 6926 LD="${LD-ld} -m elf64lppc" 6927 ;; 6928 powerpc-*linux*) 6929 LD="${LD-ld} -m elf64ppc" 6930 ;; 6931 s390*-*linux*|s390*-*tpf*) 6932 LD="${LD-ld} -m elf64_s390" 6933 ;; 6934 sparc*-*linux*) 6935 LD="${LD-ld} -m elf64_sparc" 6936 ;; 6937 esac 6938 ;; 6939 esac 6940 fi 6941 rm -rf conftest* 6942 ;; 6943 6944*-*-sco3.2v5*) 6945 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6946 SAVE_CFLAGS=$CFLAGS 6947 CFLAGS="$CFLAGS -belf" 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6949$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6950if ${lt_cv_cc_needs_belf+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 ac_ext=c 6954ac_cpp='$CPP $CPPFLAGS' 6955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6957ac_compiler_gnu=$ac_cv_c_compiler_gnu 6958 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961 6962int 6963main () 6964{ 6965 6966 ; 6967 return 0; 6968} 6969_ACEOF 6970if ac_fn_c_try_link "$LINENO"; then : 6971 lt_cv_cc_needs_belf=yes 6972else 6973 lt_cv_cc_needs_belf=no 6974fi 6975rm -f core conftest.err conftest.$ac_objext \ 6976 conftest$ac_exeext conftest.$ac_ext 6977 ac_ext=c 6978ac_cpp='$CPP $CPPFLAGS' 6979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6981ac_compiler_gnu=$ac_cv_c_compiler_gnu 6982 6983fi 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6985$as_echo "$lt_cv_cc_needs_belf" >&6; } 6986 if test yes != "$lt_cv_cc_needs_belf"; then 6987 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6988 CFLAGS=$SAVE_CFLAGS 6989 fi 6990 ;; 6991*-*solaris*) 6992 # Find out what ABI is being produced by ac_compile, and set linker 6993 # options accordingly. 6994 echo 'int i;' > conftest.$ac_ext 6995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6996 (eval $ac_compile) 2>&5 6997 ac_status=$? 6998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6999 test $ac_status = 0; }; then 7000 case `/usr/bin/file conftest.o` in 7001 *64-bit*) 7002 case $lt_cv_prog_gnu_ld in 7003 yes*) 7004 case $host in 7005 i?86-*-solaris*|x86_64-*-solaris*) 7006 LD="${LD-ld} -m elf_x86_64" 7007 ;; 7008 sparc*-*-solaris*) 7009 LD="${LD-ld} -m elf64_sparc" 7010 ;; 7011 esac 7012 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7013 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7014 LD=${LD-ld}_sol2 7015 fi 7016 ;; 7017 *) 7018 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7019 LD="${LD-ld} -64" 7020 fi 7021 ;; 7022 esac 7023 ;; 7024 esac 7025 fi 7026 rm -rf conftest* 7027 ;; 7028esac 7029 7030need_locks=$enable_libtool_lock 7031 7032if test -n "$ac_tool_prefix"; then 7033 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7034set dummy ${ac_tool_prefix}mt; ac_word=$2 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7036$as_echo_n "checking for $ac_word... " >&6; } 7037if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7038 $as_echo_n "(cached) " >&6 7039else 7040 if test -n "$MANIFEST_TOOL"; then 7041 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7042else 7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7044for as_dir in $PATH 7045do 7046 IFS=$as_save_IFS 7047 test -z "$as_dir" && as_dir=. 7048 for ac_exec_ext in '' $ac_executable_extensions; do 7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7050 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7052 break 2 7053 fi 7054done 7055 done 7056IFS=$as_save_IFS 7057 7058fi 7059fi 7060MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7061if test -n "$MANIFEST_TOOL"; then 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7063$as_echo "$MANIFEST_TOOL" >&6; } 7064else 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7066$as_echo "no" >&6; } 7067fi 7068 7069 7070fi 7071if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7072 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7073 # Extract the first word of "mt", so it can be a program name with args. 7074set dummy mt; ac_word=$2 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7076$as_echo_n "checking for $ac_word... " >&6; } 7077if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7078 $as_echo_n "(cached) " >&6 7079else 7080 if test -n "$ac_ct_MANIFEST_TOOL"; then 7081 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7082else 7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7084for as_dir in $PATH 7085do 7086 IFS=$as_save_IFS 7087 test -z "$as_dir" && as_dir=. 7088 for ac_exec_ext in '' $ac_executable_extensions; do 7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7090 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7092 break 2 7093 fi 7094done 7095 done 7096IFS=$as_save_IFS 7097 7098fi 7099fi 7100ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7101if test -n "$ac_ct_MANIFEST_TOOL"; then 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7103$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7104else 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7106$as_echo "no" >&6; } 7107fi 7108 7109 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7110 MANIFEST_TOOL=":" 7111 else 7112 case $cross_compiling:$ac_tool_warned in 7113yes:) 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7116ac_tool_warned=yes ;; 7117esac 7118 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7119 fi 7120else 7121 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7122fi 7123 7124test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7126$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7127if ${lt_cv_path_mainfest_tool+:} false; then : 7128 $as_echo_n "(cached) " >&6 7129else 7130 lt_cv_path_mainfest_tool=no 7131 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7132 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7133 cat conftest.err >&5 7134 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7135 lt_cv_path_mainfest_tool=yes 7136 fi 7137 rm -f conftest* 7138fi 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7140$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7141if test yes != "$lt_cv_path_mainfest_tool"; then 7142 MANIFEST_TOOL=: 7143fi 7144 7145 7146 7147 7148 7149 7150 case $host_os in 7151 rhapsody* | darwin*) 7152 if test -n "$ac_tool_prefix"; then 7153 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7154set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156$as_echo_n "checking for $ac_word... " >&6; } 7157if ${ac_cv_prog_DSYMUTIL+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 if test -n "$DSYMUTIL"; then 7161 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7162else 7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7164for as_dir in $PATH 7165do 7166 IFS=$as_save_IFS 7167 test -z "$as_dir" && as_dir=. 7168 for ac_exec_ext in '' $ac_executable_extensions; do 7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7170 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7172 break 2 7173 fi 7174done 7175 done 7176IFS=$as_save_IFS 7177 7178fi 7179fi 7180DSYMUTIL=$ac_cv_prog_DSYMUTIL 7181if test -n "$DSYMUTIL"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7183$as_echo "$DSYMUTIL" >&6; } 7184else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186$as_echo "no" >&6; } 7187fi 7188 7189 7190fi 7191if test -z "$ac_cv_prog_DSYMUTIL"; then 7192 ac_ct_DSYMUTIL=$DSYMUTIL 7193 # Extract the first word of "dsymutil", so it can be a program name with args. 7194set dummy dsymutil; ac_word=$2 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7196$as_echo_n "checking for $ac_word... " >&6; } 7197if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 if test -n "$ac_ct_DSYMUTIL"; then 7201 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7202else 7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7204for as_dir in $PATH 7205do 7206 IFS=$as_save_IFS 7207 test -z "$as_dir" && as_dir=. 7208 for ac_exec_ext in '' $ac_executable_extensions; do 7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7210 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7212 break 2 7213 fi 7214done 7215 done 7216IFS=$as_save_IFS 7217 7218fi 7219fi 7220ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7221if test -n "$ac_ct_DSYMUTIL"; then 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7223$as_echo "$ac_ct_DSYMUTIL" >&6; } 7224else 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7226$as_echo "no" >&6; } 7227fi 7228 7229 if test "x$ac_ct_DSYMUTIL" = x; then 7230 DSYMUTIL=":" 7231 else 7232 case $cross_compiling:$ac_tool_warned in 7233yes:) 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7236ac_tool_warned=yes ;; 7237esac 7238 DSYMUTIL=$ac_ct_DSYMUTIL 7239 fi 7240else 7241 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7242fi 7243 7244 if test -n "$ac_tool_prefix"; then 7245 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7246set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7248$as_echo_n "checking for $ac_word... " >&6; } 7249if ${ac_cv_prog_NMEDIT+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 if test -n "$NMEDIT"; then 7253 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7254else 7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7256for as_dir in $PATH 7257do 7258 IFS=$as_save_IFS 7259 test -z "$as_dir" && as_dir=. 7260 for ac_exec_ext in '' $ac_executable_extensions; do 7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7262 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7264 break 2 7265 fi 7266done 7267 done 7268IFS=$as_save_IFS 7269 7270fi 7271fi 7272NMEDIT=$ac_cv_prog_NMEDIT 7273if test -n "$NMEDIT"; then 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7275$as_echo "$NMEDIT" >&6; } 7276else 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7278$as_echo "no" >&6; } 7279fi 7280 7281 7282fi 7283if test -z "$ac_cv_prog_NMEDIT"; then 7284 ac_ct_NMEDIT=$NMEDIT 7285 # Extract the first word of "nmedit", so it can be a program name with args. 7286set dummy nmedit; ac_word=$2 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7288$as_echo_n "checking for $ac_word... " >&6; } 7289if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 if test -n "$ac_ct_NMEDIT"; then 7293 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7294else 7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH 7297do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_exec_ext in '' $ac_executable_extensions; do 7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7302 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7304 break 2 7305 fi 7306done 7307 done 7308IFS=$as_save_IFS 7309 7310fi 7311fi 7312ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7313if test -n "$ac_ct_NMEDIT"; then 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7315$as_echo "$ac_ct_NMEDIT" >&6; } 7316else 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7318$as_echo "no" >&6; } 7319fi 7320 7321 if test "x$ac_ct_NMEDIT" = x; then 7322 NMEDIT=":" 7323 else 7324 case $cross_compiling:$ac_tool_warned in 7325yes:) 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7328ac_tool_warned=yes ;; 7329esac 7330 NMEDIT=$ac_ct_NMEDIT 7331 fi 7332else 7333 NMEDIT="$ac_cv_prog_NMEDIT" 7334fi 7335 7336 if test -n "$ac_tool_prefix"; then 7337 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7338set dummy ${ac_tool_prefix}lipo; ac_word=$2 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7340$as_echo_n "checking for $ac_word... " >&6; } 7341if ${ac_cv_prog_LIPO+:} false; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 if test -n "$LIPO"; then 7345 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7346else 7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7354 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7356 break 2 7357 fi 7358done 7359 done 7360IFS=$as_save_IFS 7361 7362fi 7363fi 7364LIPO=$ac_cv_prog_LIPO 7365if test -n "$LIPO"; then 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7367$as_echo "$LIPO" >&6; } 7368else 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7370$as_echo "no" >&6; } 7371fi 7372 7373 7374fi 7375if test -z "$ac_cv_prog_LIPO"; then 7376 ac_ct_LIPO=$LIPO 7377 # Extract the first word of "lipo", so it can be a program name with args. 7378set dummy lipo; ac_word=$2 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7380$as_echo_n "checking for $ac_word... " >&6; } 7381if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 if test -n "$ac_ct_LIPO"; then 7385 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7386else 7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7388for as_dir in $PATH 7389do 7390 IFS=$as_save_IFS 7391 test -z "$as_dir" && as_dir=. 7392 for ac_exec_ext in '' $ac_executable_extensions; do 7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7394 ac_cv_prog_ac_ct_LIPO="lipo" 7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7396 break 2 7397 fi 7398done 7399 done 7400IFS=$as_save_IFS 7401 7402fi 7403fi 7404ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7405if test -n "$ac_ct_LIPO"; then 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7407$as_echo "$ac_ct_LIPO" >&6; } 7408else 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410$as_echo "no" >&6; } 7411fi 7412 7413 if test "x$ac_ct_LIPO" = x; then 7414 LIPO=":" 7415 else 7416 case $cross_compiling:$ac_tool_warned in 7417yes:) 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7420ac_tool_warned=yes ;; 7421esac 7422 LIPO=$ac_ct_LIPO 7423 fi 7424else 7425 LIPO="$ac_cv_prog_LIPO" 7426fi 7427 7428 if test -n "$ac_tool_prefix"; then 7429 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7430set dummy ${ac_tool_prefix}otool; ac_word=$2 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7432$as_echo_n "checking for $ac_word... " >&6; } 7433if ${ac_cv_prog_OTOOL+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 if test -n "$OTOOL"; then 7437 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7438else 7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7440for as_dir in $PATH 7441do 7442 IFS=$as_save_IFS 7443 test -z "$as_dir" && as_dir=. 7444 for ac_exec_ext in '' $ac_executable_extensions; do 7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7446 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7448 break 2 7449 fi 7450done 7451 done 7452IFS=$as_save_IFS 7453 7454fi 7455fi 7456OTOOL=$ac_cv_prog_OTOOL 7457if test -n "$OTOOL"; then 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7459$as_echo "$OTOOL" >&6; } 7460else 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7462$as_echo "no" >&6; } 7463fi 7464 7465 7466fi 7467if test -z "$ac_cv_prog_OTOOL"; then 7468 ac_ct_OTOOL=$OTOOL 7469 # Extract the first word of "otool", so it can be a program name with args. 7470set dummy otool; ac_word=$2 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7472$as_echo_n "checking for $ac_word... " >&6; } 7473if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 if test -n "$ac_ct_OTOOL"; then 7477 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7478else 7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7486 ac_cv_prog_ac_ct_OTOOL="otool" 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491 done 7492IFS=$as_save_IFS 7493 7494fi 7495fi 7496ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7497if test -n "$ac_ct_OTOOL"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7499$as_echo "$ac_ct_OTOOL" >&6; } 7500else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502$as_echo "no" >&6; } 7503fi 7504 7505 if test "x$ac_ct_OTOOL" = x; then 7506 OTOOL=":" 7507 else 7508 case $cross_compiling:$ac_tool_warned in 7509yes:) 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7512ac_tool_warned=yes ;; 7513esac 7514 OTOOL=$ac_ct_OTOOL 7515 fi 7516else 7517 OTOOL="$ac_cv_prog_OTOOL" 7518fi 7519 7520 if test -n "$ac_tool_prefix"; then 7521 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7522set dummy ${ac_tool_prefix}otool64; ac_word=$2 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7524$as_echo_n "checking for $ac_word... " >&6; } 7525if ${ac_cv_prog_OTOOL64+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 if test -n "$OTOOL64"; then 7529 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7530else 7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7532for as_dir in $PATH 7533do 7534 IFS=$as_save_IFS 7535 test -z "$as_dir" && as_dir=. 7536 for ac_exec_ext in '' $ac_executable_extensions; do 7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7538 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7540 break 2 7541 fi 7542done 7543 done 7544IFS=$as_save_IFS 7545 7546fi 7547fi 7548OTOOL64=$ac_cv_prog_OTOOL64 7549if test -n "$OTOOL64"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7551$as_echo "$OTOOL64" >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7554$as_echo "no" >&6; } 7555fi 7556 7557 7558fi 7559if test -z "$ac_cv_prog_OTOOL64"; then 7560 ac_ct_OTOOL64=$OTOOL64 7561 # Extract the first word of "otool64", so it can be a program name with args. 7562set dummy otool64; ac_word=$2 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7564$as_echo_n "checking for $ac_word... " >&6; } 7565if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 if test -n "$ac_ct_OTOOL64"; then 7569 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7570else 7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7572for as_dir in $PATH 7573do 7574 IFS=$as_save_IFS 7575 test -z "$as_dir" && as_dir=. 7576 for ac_exec_ext in '' $ac_executable_extensions; do 7577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7578 ac_cv_prog_ac_ct_OTOOL64="otool64" 7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7580 break 2 7581 fi 7582done 7583 done 7584IFS=$as_save_IFS 7585 7586fi 7587fi 7588ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7589if test -n "$ac_ct_OTOOL64"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7591$as_echo "$ac_ct_OTOOL64" >&6; } 7592else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594$as_echo "no" >&6; } 7595fi 7596 7597 if test "x$ac_ct_OTOOL64" = x; then 7598 OTOOL64=":" 7599 else 7600 case $cross_compiling:$ac_tool_warned in 7601yes:) 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7604ac_tool_warned=yes ;; 7605esac 7606 OTOOL64=$ac_ct_OTOOL64 7607 fi 7608else 7609 OTOOL64="$ac_cv_prog_OTOOL64" 7610fi 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7639$as_echo_n "checking for -single_module linker flag... " >&6; } 7640if ${lt_cv_apple_cc_single_mod+:} false; then : 7641 $as_echo_n "(cached) " >&6 7642else 7643 lt_cv_apple_cc_single_mod=no 7644 if test -z "$LT_MULTI_MODULE"; then 7645 # By default we will add the -single_module flag. You can override 7646 # by either setting the environment variable LT_MULTI_MODULE 7647 # non-empty at configure time, or by adding -multi_module to the 7648 # link flags. 7649 rm -rf libconftest.dylib* 7650 echo "int foo(void){return 1;}" > conftest.c 7651 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7652-dynamiclib -Wl,-single_module conftest.c" >&5 7653 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7654 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7655 _lt_result=$? 7656 # If there is a non-empty error log, and "single_module" 7657 # appears in it, assume the flag caused a linker warning 7658 if test -s conftest.err && $GREP single_module conftest.err; then 7659 cat conftest.err >&5 7660 # Otherwise, if the output was created with a 0 exit code from 7661 # the compiler, it worked. 7662 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7663 lt_cv_apple_cc_single_mod=yes 7664 else 7665 cat conftest.err >&5 7666 fi 7667 rm -rf libconftest.dylib* 7668 rm -f conftest.* 7669 fi 7670fi 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7672$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7673 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7675$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7676if ${lt_cv_ld_exported_symbols_list+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 lt_cv_ld_exported_symbols_list=no 7680 save_LDFLAGS=$LDFLAGS 7681 echo "_main" > conftest.sym 7682 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7684/* end confdefs.h. */ 7685 7686int 7687main () 7688{ 7689 7690 ; 7691 return 0; 7692} 7693_ACEOF 7694if ac_fn_c_try_link "$LINENO"; then : 7695 lt_cv_ld_exported_symbols_list=yes 7696else 7697 lt_cv_ld_exported_symbols_list=no 7698fi 7699rm -f core conftest.err conftest.$ac_objext \ 7700 conftest$ac_exeext conftest.$ac_ext 7701 LDFLAGS=$save_LDFLAGS 7702 7703fi 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7705$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7706 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7708$as_echo_n "checking for -force_load linker flag... " >&6; } 7709if ${lt_cv_ld_force_load+:} false; then : 7710 $as_echo_n "(cached) " >&6 7711else 7712 lt_cv_ld_force_load=no 7713 cat > conftest.c << _LT_EOF 7714int forced_loaded() { return 2;} 7715_LT_EOF 7716 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7717 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7718 echo "$AR cru libconftest.a conftest.o" >&5 7719 $AR cru libconftest.a conftest.o 2>&5 7720 echo "$RANLIB libconftest.a" >&5 7721 $RANLIB libconftest.a 2>&5 7722 cat > conftest.c << _LT_EOF 7723int main() { return 0;} 7724_LT_EOF 7725 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7726 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7727 _lt_result=$? 7728 if test -s conftest.err && $GREP force_load conftest.err; then 7729 cat conftest.err >&5 7730 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7731 lt_cv_ld_force_load=yes 7732 else 7733 cat conftest.err >&5 7734 fi 7735 rm -f conftest.err libconftest.a conftest conftest.c 7736 rm -rf conftest.dSYM 7737 7738fi 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7740$as_echo "$lt_cv_ld_force_load" >&6; } 7741 case $host_os in 7742 rhapsody* | darwin1.[012]) 7743 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7744 darwin1.*) 7745 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7746 darwin*) # darwin 5.x on 7747 # if running on 10.5 or later, the deployment target defaults 7748 # to the OS version, if on x86, and 10.4, the deployment 7749 # target defaults to 10.4. Don't you love it? 7750 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7751 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7752 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7753 10.[012][,.]*) 7754 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7755 10.*) 7756 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7757 esac 7758 ;; 7759 esac 7760 if test yes = "$lt_cv_apple_cc_single_mod"; then 7761 _lt_dar_single_mod='$single_module' 7762 fi 7763 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7764 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7765 else 7766 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7767 fi 7768 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7769 _lt_dsymutil='~$DSYMUTIL $lib || :' 7770 else 7771 _lt_dsymutil= 7772 fi 7773 ;; 7774 esac 7775 7776# func_munge_path_list VARIABLE PATH 7777# ----------------------------------- 7778# VARIABLE is name of variable containing _space_ separated list of 7779# directories to be munged by the contents of PATH, which is string 7780# having a format: 7781# "DIR[:DIR]:" 7782# string "DIR[ DIR]" will be prepended to VARIABLE 7783# ":DIR[:DIR]" 7784# string "DIR[ DIR]" will be appended to VARIABLE 7785# "DIRP[:DIRP]::[DIRA:]DIRA" 7786# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7787# "DIRA[ DIRA]" will be appended to VARIABLE 7788# "DIR[:DIR]" 7789# VARIABLE will be replaced by "DIR[ DIR]" 7790func_munge_path_list () 7791{ 7792 case x$2 in 7793 x) 7794 ;; 7795 *:) 7796 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7797 ;; 7798 x:*) 7799 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7800 ;; 7801 *::*) 7802 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7803 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7804 ;; 7805 *) 7806 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7807 ;; 7808 esac 7809} 7810 7811ac_ext=c 7812ac_cpp='$CPP $CPPFLAGS' 7813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7815ac_compiler_gnu=$ac_cv_c_compiler_gnu 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7817$as_echo_n "checking how to run the C preprocessor... " >&6; } 7818# On Suns, sometimes $CPP names a directory. 7819if test -n "$CPP" && test -d "$CPP"; then 7820 CPP= 7821fi 7822if test -z "$CPP"; then 7823 if ${ac_cv_prog_CPP+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 # Double quotes because CPP needs to be expanded 7827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7828 do 7829 ac_preproc_ok=false 7830for ac_c_preproc_warn_flag in '' yes 7831do 7832 # Use a header file that comes with gcc, so configuring glibc 7833 # with a fresh cross-compiler works. 7834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7835 # <limits.h> exists even on freestanding compilers. 7836 # On the NeXT, cc -E runs the code through the compiler's parser, 7837 # not just through cpp. "Syntax error" is here to catch this case. 7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7839/* end confdefs.h. */ 7840#ifdef __STDC__ 7841# include <limits.h> 7842#else 7843# include <assert.h> 7844#endif 7845 Syntax error 7846_ACEOF 7847if ac_fn_c_try_cpp "$LINENO"; then : 7848 7849else 7850 # Broken: fails on valid input. 7851continue 7852fi 7853rm -f conftest.err conftest.i conftest.$ac_ext 7854 7855 # OK, works on sane cases. Now check whether nonexistent headers 7856 # can be detected and how. 7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7858/* end confdefs.h. */ 7859#include <ac_nonexistent.h> 7860_ACEOF 7861if ac_fn_c_try_cpp "$LINENO"; then : 7862 # Broken: success on invalid input. 7863continue 7864else 7865 # Passes both tests. 7866ac_preproc_ok=: 7867break 7868fi 7869rm -f conftest.err conftest.i conftest.$ac_ext 7870 7871done 7872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7873rm -f conftest.i conftest.err conftest.$ac_ext 7874if $ac_preproc_ok; then : 7875 break 7876fi 7877 7878 done 7879 ac_cv_prog_CPP=$CPP 7880 7881fi 7882 CPP=$ac_cv_prog_CPP 7883else 7884 ac_cv_prog_CPP=$CPP 7885fi 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7887$as_echo "$CPP" >&6; } 7888ac_preproc_ok=false 7889for ac_c_preproc_warn_flag in '' yes 7890do 7891 # Use a header file that comes with gcc, so configuring glibc 7892 # with a fresh cross-compiler works. 7893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7894 # <limits.h> exists even on freestanding compilers. 7895 # On the NeXT, cc -E runs the code through the compiler's parser, 7896 # not just through cpp. "Syntax error" is here to catch this case. 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899#ifdef __STDC__ 7900# include <limits.h> 7901#else 7902# include <assert.h> 7903#endif 7904 Syntax error 7905_ACEOF 7906if ac_fn_c_try_cpp "$LINENO"; then : 7907 7908else 7909 # Broken: fails on valid input. 7910continue 7911fi 7912rm -f conftest.err conftest.i conftest.$ac_ext 7913 7914 # OK, works on sane cases. Now check whether nonexistent headers 7915 # can be detected and how. 7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7917/* end confdefs.h. */ 7918#include <ac_nonexistent.h> 7919_ACEOF 7920if ac_fn_c_try_cpp "$LINENO"; then : 7921 # Broken: success on invalid input. 7922continue 7923else 7924 # Passes both tests. 7925ac_preproc_ok=: 7926break 7927fi 7928rm -f conftest.err conftest.i conftest.$ac_ext 7929 7930done 7931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7932rm -f conftest.i conftest.err conftest.$ac_ext 7933if $ac_preproc_ok; then : 7934 7935else 7936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7938as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7939See \`config.log' for more details" "$LINENO" 5; } 7940fi 7941 7942ac_ext=c 7943ac_cpp='$CPP $CPPFLAGS' 7944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7946ac_compiler_gnu=$ac_cv_c_compiler_gnu 7947 7948 7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7950$as_echo_n "checking for ANSI C header files... " >&6; } 7951if ${ac_cv_header_stdc+:} false; then : 7952 $as_echo_n "(cached) " >&6 7953else 7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7955/* end confdefs.h. */ 7956#include <stdlib.h> 7957#include <stdarg.h> 7958#include <string.h> 7959#include <float.h> 7960 7961int 7962main () 7963{ 7964 7965 ; 7966 return 0; 7967} 7968_ACEOF 7969if ac_fn_c_try_compile "$LINENO"; then : 7970 ac_cv_header_stdc=yes 7971else 7972 ac_cv_header_stdc=no 7973fi 7974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7975 7976if test $ac_cv_header_stdc = yes; then 7977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980#include <string.h> 7981 7982_ACEOF 7983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7984 $EGREP "memchr" >/dev/null 2>&1; then : 7985 7986else 7987 ac_cv_header_stdc=no 7988fi 7989rm -f conftest* 7990 7991fi 7992 7993if test $ac_cv_header_stdc = yes; then 7994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7996/* end confdefs.h. */ 7997#include <stdlib.h> 7998 7999_ACEOF 8000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8001 $EGREP "free" >/dev/null 2>&1; then : 8002 8003else 8004 ac_cv_header_stdc=no 8005fi 8006rm -f conftest* 8007 8008fi 8009 8010if test $ac_cv_header_stdc = yes; then 8011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8012 if test "$cross_compiling" = yes; then : 8013 : 8014else 8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8016/* end confdefs.h. */ 8017#include <ctype.h> 8018#include <stdlib.h> 8019#if ((' ' & 0x0FF) == 0x020) 8020# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8021# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8022#else 8023# define ISLOWER(c) \ 8024 (('a' <= (c) && (c) <= 'i') \ 8025 || ('j' <= (c) && (c) <= 'r') \ 8026 || ('s' <= (c) && (c) <= 'z')) 8027# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8028#endif 8029 8030#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8031int 8032main () 8033{ 8034 int i; 8035 for (i = 0; i < 256; i++) 8036 if (XOR (islower (i), ISLOWER (i)) 8037 || toupper (i) != TOUPPER (i)) 8038 return 2; 8039 return 0; 8040} 8041_ACEOF 8042if ac_fn_c_try_run "$LINENO"; then : 8043 8044else 8045 ac_cv_header_stdc=no 8046fi 8047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8048 conftest.$ac_objext conftest.beam conftest.$ac_ext 8049fi 8050 8051fi 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8054$as_echo "$ac_cv_header_stdc" >&6; } 8055if test $ac_cv_header_stdc = yes; then 8056 8057$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8058 8059fi 8060 8061# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8062for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8063 inttypes.h stdint.h unistd.h 8064do : 8065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8066ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8067" 8068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8069 cat >>confdefs.h <<_ACEOF 8070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8071_ACEOF 8072 8073fi 8074 8075done 8076 8077 8078for ac_header in dlfcn.h 8079do : 8080 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8081" 8082if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8083 cat >>confdefs.h <<_ACEOF 8084#define HAVE_DLFCN_H 1 8085_ACEOF 8086 8087fi 8088 8089done 8090 8091 8092 8093 8094 8095# Set options 8096# Check whether --enable-shared was given. 8097if test "${enable_shared+set}" = set; then : 8098 enableval=$enable_shared; p=${PACKAGE-default} 8099 case $enableval in 8100 yes) enable_shared=yes ;; 8101 no) enable_shared=no ;; 8102 *) 8103 enable_shared=no 8104 # Look at the argument we got. We use all the common list separators. 8105 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8106 for pkg in $enableval; do 8107 IFS=$lt_save_ifs 8108 if test "X$pkg" = "X$p"; then 8109 enable_shared=yes 8110 fi 8111 done 8112 IFS=$lt_save_ifs 8113 ;; 8114 esac 8115else 8116 enable_shared=yes 8117fi 8118 8119 8120 8121 8122 8123 8124 8125# Check whether --enable-static was given. 8126if test "${enable_static+set}" = set; then : 8127 enableval=$enable_static; p=${PACKAGE-default} 8128 case $enableval in 8129 yes) enable_static=yes ;; 8130 no) enable_static=no ;; 8131 *) 8132 enable_static=no 8133 # Look at the argument we got. We use all the common list separators. 8134 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8135 for pkg in $enableval; do 8136 IFS=$lt_save_ifs 8137 if test "X$pkg" = "X$p"; then 8138 enable_static=yes 8139 fi 8140 done 8141 IFS=$lt_save_ifs 8142 ;; 8143 esac 8144else 8145 enable_static=yes 8146fi 8147 8148 8149 8150 8151 8152 8153 8154enable_win32_dll=yes 8155 8156case $host in 8157*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8158 if test -n "$ac_tool_prefix"; then 8159 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8160set dummy ${ac_tool_prefix}as; ac_word=$2 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8162$as_echo_n "checking for $ac_word... " >&6; } 8163if ${ac_cv_prog_AS+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 if test -n "$AS"; then 8167 ac_cv_prog_AS="$AS" # Let the user override the test. 8168else 8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8170for as_dir in $PATH 8171do 8172 IFS=$as_save_IFS 8173 test -z "$as_dir" && as_dir=. 8174 for ac_exec_ext in '' $ac_executable_extensions; do 8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8176 ac_cv_prog_AS="${ac_tool_prefix}as" 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8178 break 2 8179 fi 8180done 8181 done 8182IFS=$as_save_IFS 8183 8184fi 8185fi 8186AS=$ac_cv_prog_AS 8187if test -n "$AS"; then 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8189$as_echo "$AS" >&6; } 8190else 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8192$as_echo "no" >&6; } 8193fi 8194 8195 8196fi 8197if test -z "$ac_cv_prog_AS"; then 8198 ac_ct_AS=$AS 8199 # Extract the first word of "as", so it can be a program name with args. 8200set dummy as; ac_word=$2 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8202$as_echo_n "checking for $ac_word... " >&6; } 8203if ${ac_cv_prog_ac_ct_AS+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 if test -n "$ac_ct_AS"; then 8207 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8208else 8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8210for as_dir in $PATH 8211do 8212 IFS=$as_save_IFS 8213 test -z "$as_dir" && as_dir=. 8214 for ac_exec_ext in '' $ac_executable_extensions; do 8215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8216 ac_cv_prog_ac_ct_AS="as" 8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8218 break 2 8219 fi 8220done 8221 done 8222IFS=$as_save_IFS 8223 8224fi 8225fi 8226ac_ct_AS=$ac_cv_prog_ac_ct_AS 8227if test -n "$ac_ct_AS"; then 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8229$as_echo "$ac_ct_AS" >&6; } 8230else 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8232$as_echo "no" >&6; } 8233fi 8234 8235 if test "x$ac_ct_AS" = x; then 8236 AS="false" 8237 else 8238 case $cross_compiling:$ac_tool_warned in 8239yes:) 8240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8242ac_tool_warned=yes ;; 8243esac 8244 AS=$ac_ct_AS 8245 fi 8246else 8247 AS="$ac_cv_prog_AS" 8248fi 8249 8250 if test -n "$ac_tool_prefix"; then 8251 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8252set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8254$as_echo_n "checking for $ac_word... " >&6; } 8255if ${ac_cv_prog_DLLTOOL+:} false; then : 8256 $as_echo_n "(cached) " >&6 8257else 8258 if test -n "$DLLTOOL"; then 8259 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8260else 8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8262for as_dir in $PATH 8263do 8264 IFS=$as_save_IFS 8265 test -z "$as_dir" && as_dir=. 8266 for ac_exec_ext in '' $ac_executable_extensions; do 8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8270 break 2 8271 fi 8272done 8273 done 8274IFS=$as_save_IFS 8275 8276fi 8277fi 8278DLLTOOL=$ac_cv_prog_DLLTOOL 8279if test -n "$DLLTOOL"; then 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8281$as_echo "$DLLTOOL" >&6; } 8282else 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8284$as_echo "no" >&6; } 8285fi 8286 8287 8288fi 8289if test -z "$ac_cv_prog_DLLTOOL"; then 8290 ac_ct_DLLTOOL=$DLLTOOL 8291 # Extract the first word of "dlltool", so it can be a program name with args. 8292set dummy dlltool; ac_word=$2 8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8294$as_echo_n "checking for $ac_word... " >&6; } 8295if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 if test -n "$ac_ct_DLLTOOL"; then 8299 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8300else 8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8302for as_dir in $PATH 8303do 8304 IFS=$as_save_IFS 8305 test -z "$as_dir" && as_dir=. 8306 for ac_exec_ext in '' $ac_executable_extensions; do 8307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8308 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8310 break 2 8311 fi 8312done 8313 done 8314IFS=$as_save_IFS 8315 8316fi 8317fi 8318ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8319if test -n "$ac_ct_DLLTOOL"; then 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8321$as_echo "$ac_ct_DLLTOOL" >&6; } 8322else 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8324$as_echo "no" >&6; } 8325fi 8326 8327 if test "x$ac_ct_DLLTOOL" = x; then 8328 DLLTOOL="false" 8329 else 8330 case $cross_compiling:$ac_tool_warned in 8331yes:) 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8334ac_tool_warned=yes ;; 8335esac 8336 DLLTOOL=$ac_ct_DLLTOOL 8337 fi 8338else 8339 DLLTOOL="$ac_cv_prog_DLLTOOL" 8340fi 8341 8342 if test -n "$ac_tool_prefix"; then 8343 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8344set dummy ${ac_tool_prefix}objdump; ac_word=$2 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8346$as_echo_n "checking for $ac_word... " >&6; } 8347if ${ac_cv_prog_OBJDUMP+:} false; then : 8348 $as_echo_n "(cached) " >&6 8349else 8350 if test -n "$OBJDUMP"; then 8351 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8352else 8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8354for as_dir in $PATH 8355do 8356 IFS=$as_save_IFS 8357 test -z "$as_dir" && as_dir=. 8358 for ac_exec_ext in '' $ac_executable_extensions; do 8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8360 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8362 break 2 8363 fi 8364done 8365 done 8366IFS=$as_save_IFS 8367 8368fi 8369fi 8370OBJDUMP=$ac_cv_prog_OBJDUMP 8371if test -n "$OBJDUMP"; then 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8373$as_echo "$OBJDUMP" >&6; } 8374else 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8376$as_echo "no" >&6; } 8377fi 8378 8379 8380fi 8381if test -z "$ac_cv_prog_OBJDUMP"; then 8382 ac_ct_OBJDUMP=$OBJDUMP 8383 # Extract the first word of "objdump", so it can be a program name with args. 8384set dummy objdump; ac_word=$2 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8386$as_echo_n "checking for $ac_word... " >&6; } 8387if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8388 $as_echo_n "(cached) " >&6 8389else 8390 if test -n "$ac_ct_OBJDUMP"; then 8391 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8392else 8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8394for as_dir in $PATH 8395do 8396 IFS=$as_save_IFS 8397 test -z "$as_dir" && as_dir=. 8398 for ac_exec_ext in '' $ac_executable_extensions; do 8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8400 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8402 break 2 8403 fi 8404done 8405 done 8406IFS=$as_save_IFS 8407 8408fi 8409fi 8410ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8411if test -n "$ac_ct_OBJDUMP"; then 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8413$as_echo "$ac_ct_OBJDUMP" >&6; } 8414else 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8416$as_echo "no" >&6; } 8417fi 8418 8419 if test "x$ac_ct_OBJDUMP" = x; then 8420 OBJDUMP="false" 8421 else 8422 case $cross_compiling:$ac_tool_warned in 8423yes:) 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8426ac_tool_warned=yes ;; 8427esac 8428 OBJDUMP=$ac_ct_OBJDUMP 8429 fi 8430else 8431 OBJDUMP="$ac_cv_prog_OBJDUMP" 8432fi 8433 8434 ;; 8435esac 8436 8437test -z "$AS" && AS=as 8438 8439 8440 8441 8442 8443test -z "$DLLTOOL" && DLLTOOL=dlltool 8444 8445 8446 8447 8448 8449test -z "$OBJDUMP" && OBJDUMP=objdump 8450 8451 8452 8453 8454 8455 8456 8457 enable_dlopen=no 8458 8459 8460 8461 8462 8463 8464# Check whether --with-pic was given. 8465if test "${with_pic+set}" = set; then : 8466 withval=$with_pic; lt_p=${PACKAGE-default} 8467 case $withval in 8468 yes|no) pic_mode=$withval ;; 8469 *) 8470 pic_mode=default 8471 # Look at the argument we got. We use all the common list separators. 8472 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8473 for lt_pkg in $withval; do 8474 IFS=$lt_save_ifs 8475 if test "X$lt_pkg" = "X$lt_p"; then 8476 pic_mode=yes 8477 fi 8478 done 8479 IFS=$lt_save_ifs 8480 ;; 8481 esac 8482else 8483 pic_mode=default 8484fi 8485 8486 8487 8488 8489 8490 8491 8492 8493 # Check whether --enable-fast-install was given. 8494if test "${enable_fast_install+set}" = set; then : 8495 enableval=$enable_fast_install; p=${PACKAGE-default} 8496 case $enableval in 8497 yes) enable_fast_install=yes ;; 8498 no) enable_fast_install=no ;; 8499 *) 8500 enable_fast_install=no 8501 # Look at the argument we got. We use all the common list separators. 8502 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8503 for pkg in $enableval; do 8504 IFS=$lt_save_ifs 8505 if test "X$pkg" = "X$p"; then 8506 enable_fast_install=yes 8507 fi 8508 done 8509 IFS=$lt_save_ifs 8510 ;; 8511 esac 8512else 8513 enable_fast_install=yes 8514fi 8515 8516 8517 8518 8519 8520 8521 8522 8523 shared_archive_member_spec= 8524case $host,$enable_shared in 8525power*-*-aix[5-9]*,yes) 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8527$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8528 8529# Check whether --with-aix-soname was given. 8530if test "${with_aix_soname+set}" = set; then : 8531 withval=$with_aix_soname; case $withval in 8532 aix|svr4|both) 8533 ;; 8534 *) 8535 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8536 ;; 8537 esac 8538 lt_cv_with_aix_soname=$with_aix_soname 8539else 8540 if ${lt_cv_with_aix_soname+:} false; then : 8541 $as_echo_n "(cached) " >&6 8542else 8543 lt_cv_with_aix_soname=aix 8544fi 8545 8546 with_aix_soname=$lt_cv_with_aix_soname 8547fi 8548 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8550$as_echo "$with_aix_soname" >&6; } 8551 if test aix != "$with_aix_soname"; then 8552 # For the AIX way of multilib, we name the shared archive member 8553 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8554 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8555 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8556 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8557 if test 64 = "${OBJECT_MODE-32}"; then 8558 shared_archive_member_spec=shr_64 8559 else 8560 shared_archive_member_spec=shr 8561 fi 8562 fi 8563 ;; 8564*) 8565 with_aix_soname=aix 8566 ;; 8567esac 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578# This can be used to rebuild libtool when needed 8579LIBTOOL_DEPS=$ltmain 8580 8581# Always use our own libtool. 8582LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8583 8584 8585 8586 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 8613test -z "$LN_S" && LN_S="ln -s" 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628if test -n "${ZSH_VERSION+set}"; then 8629 setopt NO_GLOB_SUBST 8630fi 8631 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8633$as_echo_n "checking for objdir... " >&6; } 8634if ${lt_cv_objdir+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 rm -f .libs 2>/dev/null 8638mkdir .libs 2>/dev/null 8639if test -d .libs; then 8640 lt_cv_objdir=.libs 8641else 8642 # MS-DOS does not allow filenames that begin with a dot. 8643 lt_cv_objdir=_libs 8644fi 8645rmdir .libs 2>/dev/null 8646fi 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8648$as_echo "$lt_cv_objdir" >&6; } 8649objdir=$lt_cv_objdir 8650 8651 8652 8653 8654 8655cat >>confdefs.h <<_ACEOF 8656#define LT_OBJDIR "$lt_cv_objdir/" 8657_ACEOF 8658 8659 8660 8661 8662case $host_os in 8663aix3*) 8664 # AIX sometimes has problems with the GCC collect2 program. For some 8665 # reason, if we set the COLLECT_NAMES environment variable, the problems 8666 # vanish in a puff of smoke. 8667 if test set != "${COLLECT_NAMES+set}"; then 8668 COLLECT_NAMES= 8669 export COLLECT_NAMES 8670 fi 8671 ;; 8672esac 8673 8674# Global variables: 8675ofile=libtool 8676can_build_shared=yes 8677 8678# All known linkers require a '.a' archive for static linking (except MSVC, 8679# which needs '.lib'). 8680libext=a 8681 8682with_gnu_ld=$lt_cv_prog_gnu_ld 8683 8684old_CC=$CC 8685old_CFLAGS=$CFLAGS 8686 8687# Set sane defaults for various variables 8688test -z "$CC" && CC=cc 8689test -z "$LTCC" && LTCC=$CC 8690test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8691test -z "$LD" && LD=ld 8692test -z "$ac_objext" && ac_objext=o 8693 8694func_cc_basename $compiler 8695cc_basename=$func_cc_basename_result 8696 8697 8698# Only perform the check for file, if the check method requires it 8699test -z "$MAGIC_CMD" && MAGIC_CMD=file 8700case $deplibs_check_method in 8701file_magic*) 8702 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8704$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8705if ${lt_cv_path_MAGIC_CMD+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 case $MAGIC_CMD in 8709[\\/*] | ?:[\\/]*) 8710 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8711 ;; 8712*) 8713 lt_save_MAGIC_CMD=$MAGIC_CMD 8714 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8716 for ac_dir in $ac_dummy; do 8717 IFS=$lt_save_ifs 8718 test -z "$ac_dir" && ac_dir=. 8719 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8720 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8721 if test -n "$file_magic_test_file"; then 8722 case $deplibs_check_method in 8723 "file_magic "*) 8724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8725 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8727 $EGREP "$file_magic_regex" > /dev/null; then 8728 : 8729 else 8730 cat <<_LT_EOF 1>&2 8731 8732*** Warning: the command libtool uses to detect shared libraries, 8733*** $file_magic_cmd, produces output that libtool cannot recognize. 8734*** The result is that libtool may fail to recognize shared libraries 8735*** as such. This will affect the creation of libtool libraries that 8736*** depend on shared libraries, but programs linked with such libtool 8737*** libraries will work regardless of this problem. Nevertheless, you 8738*** may want to report the problem to your system manager and/or to 8739*** bug-libtool@gnu.org 8740 8741_LT_EOF 8742 fi ;; 8743 esac 8744 fi 8745 break 8746 fi 8747 done 8748 IFS=$lt_save_ifs 8749 MAGIC_CMD=$lt_save_MAGIC_CMD 8750 ;; 8751esac 8752fi 8753 8754MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8755if test -n "$MAGIC_CMD"; then 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8757$as_echo "$MAGIC_CMD" >&6; } 8758else 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8760$as_echo "no" >&6; } 8761fi 8762 8763 8764 8765 8766 8767if test -z "$lt_cv_path_MAGIC_CMD"; then 8768 if test -n "$ac_tool_prefix"; then 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8770$as_echo_n "checking for file... " >&6; } 8771if ${lt_cv_path_MAGIC_CMD+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 case $MAGIC_CMD in 8775[\\/*] | ?:[\\/]*) 8776 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8777 ;; 8778*) 8779 lt_save_MAGIC_CMD=$MAGIC_CMD 8780 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8781 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8782 for ac_dir in $ac_dummy; do 8783 IFS=$lt_save_ifs 8784 test -z "$ac_dir" && ac_dir=. 8785 if test -f "$ac_dir/file"; then 8786 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8787 if test -n "$file_magic_test_file"; then 8788 case $deplibs_check_method in 8789 "file_magic "*) 8790 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8791 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8793 $EGREP "$file_magic_regex" > /dev/null; then 8794 : 8795 else 8796 cat <<_LT_EOF 1>&2 8797 8798*** Warning: the command libtool uses to detect shared libraries, 8799*** $file_magic_cmd, produces output that libtool cannot recognize. 8800*** The result is that libtool may fail to recognize shared libraries 8801*** as such. This will affect the creation of libtool libraries that 8802*** depend on shared libraries, but programs linked with such libtool 8803*** libraries will work regardless of this problem. Nevertheless, you 8804*** may want to report the problem to your system manager and/or to 8805*** bug-libtool@gnu.org 8806 8807_LT_EOF 8808 fi ;; 8809 esac 8810 fi 8811 break 8812 fi 8813 done 8814 IFS=$lt_save_ifs 8815 MAGIC_CMD=$lt_save_MAGIC_CMD 8816 ;; 8817esac 8818fi 8819 8820MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8821if test -n "$MAGIC_CMD"; then 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8823$as_echo "$MAGIC_CMD" >&6; } 8824else 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8826$as_echo "no" >&6; } 8827fi 8828 8829 8830 else 8831 MAGIC_CMD=: 8832 fi 8833fi 8834 8835 fi 8836 ;; 8837esac 8838 8839# Use C for the default configuration in the libtool script 8840 8841lt_save_CC=$CC 8842ac_ext=c 8843ac_cpp='$CPP $CPPFLAGS' 8844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8846ac_compiler_gnu=$ac_cv_c_compiler_gnu 8847 8848 8849# Source file extension for C test sources. 8850ac_ext=c 8851 8852# Object file extension for compiled C test sources. 8853objext=o 8854objext=$objext 8855 8856# Code to be used in simple compile tests 8857lt_simple_compile_test_code="int some_variable = 0;" 8858 8859# Code to be used in simple link tests 8860lt_simple_link_test_code='int main(){return(0);}' 8861 8862 8863 8864 8865 8866 8867 8868# If no C compiler was specified, use CC. 8869LTCC=${LTCC-"$CC"} 8870 8871# If no C compiler flags were specified, use CFLAGS. 8872LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8873 8874# Allow CC to be a program name with arguments. 8875compiler=$CC 8876 8877# Save the default compiler, since it gets overwritten when the other 8878# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8879compiler_DEFAULT=$CC 8880 8881# save warnings/boilerplate of simple test code 8882ac_outfile=conftest.$ac_objext 8883echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8884eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8885_lt_compiler_boilerplate=`cat conftest.err` 8886$RM conftest* 8887 8888ac_outfile=conftest.$ac_objext 8889echo "$lt_simple_link_test_code" >conftest.$ac_ext 8890eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8891_lt_linker_boilerplate=`cat conftest.err` 8892$RM -r conftest* 8893 8894 8895## CAVEAT EMPTOR: 8896## There is no encapsulation within the following macros, do not change 8897## the running order or otherwise move them around unless you know exactly 8898## what you are doing... 8899if test -n "$compiler"; then 8900 8901lt_prog_compiler_no_builtin_flag= 8902 8903if test yes = "$GCC"; then 8904 case $cc_basename in 8905 nvcc*) 8906 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8907 *) 8908 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8909 esac 8910 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8912$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8913if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8914 $as_echo_n "(cached) " >&6 8915else 8916 lt_cv_prog_compiler_rtti_exceptions=no 8917 ac_outfile=conftest.$ac_objext 8918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8919 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8920 # Insert the option either (1) after the last *FLAGS variable, or 8921 # (2) before a word containing "conftest.", or (3) at the end. 8922 # Note that $ac_compile itself does not contain backslashes and begins 8923 # with a dollar sign (not a hyphen), so the echo should work correctly. 8924 # The option is referenced via a variable to avoid confusing sed. 8925 lt_compile=`echo "$ac_compile" | $SED \ 8926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8928 -e 's:$: $lt_compiler_flag:'` 8929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8930 (eval "$lt_compile" 2>conftest.err) 8931 ac_status=$? 8932 cat conftest.err >&5 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8934 if (exit $ac_status) && test -s "$ac_outfile"; then 8935 # The compiler can only warn and ignore the option if not recognized 8936 # So say no if there are warnings other than the usual output. 8937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8940 lt_cv_prog_compiler_rtti_exceptions=yes 8941 fi 8942 fi 8943 $RM conftest* 8944 8945fi 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8947$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8948 8949if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8950 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8951else 8952 : 8953fi 8954 8955fi 8956 8957 8958 8959 8960 8961 8962 lt_prog_compiler_wl= 8963lt_prog_compiler_pic= 8964lt_prog_compiler_static= 8965 8966 8967 if test yes = "$GCC"; then 8968 lt_prog_compiler_wl='-Wl,' 8969 lt_prog_compiler_static='-static' 8970 8971 case $host_os in 8972 aix*) 8973 # All AIX code is PIC. 8974 if test ia64 = "$host_cpu"; then 8975 # AIX 5 now supports IA64 processor 8976 lt_prog_compiler_static='-Bstatic' 8977 fi 8978 lt_prog_compiler_pic='-fPIC' 8979 ;; 8980 8981 amigaos*) 8982 case $host_cpu in 8983 powerpc) 8984 # see comment about AmigaOS4 .so support 8985 lt_prog_compiler_pic='-fPIC' 8986 ;; 8987 m68k) 8988 # FIXME: we need at least 68020 code to build shared libraries, but 8989 # adding the '-m68020' flag to GCC prevents building anything better, 8990 # like '-m68040'. 8991 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8992 ;; 8993 esac 8994 ;; 8995 8996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8997 # PIC is the default for these OSes. 8998 ;; 8999 9000 mingw* | cygwin* | pw32* | os2* | cegcc*) 9001 # This hack is so that the source file can tell whether it is being 9002 # built for inclusion in a dll (and should export symbols for example). 9003 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9004 # (--disable-auto-import) libraries 9005 lt_prog_compiler_pic='-DDLL_EXPORT' 9006 case $host_os in 9007 os2*) 9008 lt_prog_compiler_static='$wl-static' 9009 ;; 9010 esac 9011 ;; 9012 9013 darwin* | rhapsody*) 9014 # PIC is the default on this platform 9015 # Common symbols not allowed in MH_DYLIB files 9016 lt_prog_compiler_pic='-fno-common' 9017 ;; 9018 9019 haiku*) 9020 # PIC is the default for Haiku. 9021 # The "-static" flag exists, but is broken. 9022 lt_prog_compiler_static= 9023 ;; 9024 9025 hpux*) 9026 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9027 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9028 # sets the default TLS model and affects inlining. 9029 case $host_cpu in 9030 hppa*64*) 9031 # +Z the default 9032 ;; 9033 *) 9034 lt_prog_compiler_pic='-fPIC' 9035 ;; 9036 esac 9037 ;; 9038 9039 interix[3-9]*) 9040 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9041 # Instead, we relocate shared libraries at runtime. 9042 ;; 9043 9044 msdosdjgpp*) 9045 # Just because we use GCC doesn't mean we suddenly get shared libraries 9046 # on systems that don't support them. 9047 lt_prog_compiler_can_build_shared=no 9048 enable_shared=no 9049 ;; 9050 9051 *nto* | *qnx*) 9052 # QNX uses GNU C++, but need to define -shared option too, otherwise 9053 # it will coredump. 9054 lt_prog_compiler_pic='-fPIC -shared' 9055 ;; 9056 9057 sysv4*MP*) 9058 if test -d /usr/nec; then 9059 lt_prog_compiler_pic=-Kconform_pic 9060 fi 9061 ;; 9062 9063 *) 9064 lt_prog_compiler_pic='-fPIC' 9065 ;; 9066 esac 9067 9068 case $cc_basename in 9069 nvcc*) # Cuda Compiler Driver 2.2 9070 lt_prog_compiler_wl='-Xlinker ' 9071 if test -n "$lt_prog_compiler_pic"; then 9072 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9073 fi 9074 ;; 9075 esac 9076 else 9077 # PORTME Check for flag to pass linker flags through the system compiler. 9078 case $host_os in 9079 aix*) 9080 lt_prog_compiler_wl='-Wl,' 9081 if test ia64 = "$host_cpu"; then 9082 # AIX 5 now supports IA64 processor 9083 lt_prog_compiler_static='-Bstatic' 9084 else 9085 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9086 fi 9087 ;; 9088 9089 darwin* | rhapsody*) 9090 # PIC is the default on this platform 9091 # Common symbols not allowed in MH_DYLIB files 9092 lt_prog_compiler_pic='-fno-common' 9093 case $cc_basename in 9094 nagfor*) 9095 # NAG Fortran compiler 9096 lt_prog_compiler_wl='-Wl,-Wl,,' 9097 lt_prog_compiler_pic='-PIC' 9098 lt_prog_compiler_static='-Bstatic' 9099 ;; 9100 esac 9101 ;; 9102 9103 mingw* | cygwin* | pw32* | os2* | cegcc*) 9104 # This hack is so that the source file can tell whether it is being 9105 # built for inclusion in a dll (and should export symbols for example). 9106 lt_prog_compiler_pic='-DDLL_EXPORT' 9107 case $host_os in 9108 os2*) 9109 lt_prog_compiler_static='$wl-static' 9110 ;; 9111 esac 9112 ;; 9113 9114 hpux9* | hpux10* | hpux11*) 9115 lt_prog_compiler_wl='-Wl,' 9116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9117 # not for PA HP-UX. 9118 case $host_cpu in 9119 hppa*64*|ia64*) 9120 # +Z the default 9121 ;; 9122 *) 9123 lt_prog_compiler_pic='+Z' 9124 ;; 9125 esac 9126 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9127 lt_prog_compiler_static='$wl-a ${wl}archive' 9128 ;; 9129 9130 irix5* | irix6* | nonstopux*) 9131 lt_prog_compiler_wl='-Wl,' 9132 # PIC (with -KPIC) is the default. 9133 lt_prog_compiler_static='-non_shared' 9134 ;; 9135 9136 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9137 case $cc_basename in 9138 # old Intel for x86_64, which still supported -KPIC. 9139 ecc*) 9140 lt_prog_compiler_wl='-Wl,' 9141 lt_prog_compiler_pic='-KPIC' 9142 lt_prog_compiler_static='-static' 9143 ;; 9144 # icc used to be incompatible with GCC. 9145 # ICC 10 doesn't accept -KPIC any more. 9146 icc* | ifort*) 9147 lt_prog_compiler_wl='-Wl,' 9148 lt_prog_compiler_pic='-fPIC' 9149 lt_prog_compiler_static='-static' 9150 ;; 9151 # Lahey Fortran 8.1. 9152 lf95*) 9153 lt_prog_compiler_wl='-Wl,' 9154 lt_prog_compiler_pic='--shared' 9155 lt_prog_compiler_static='--static' 9156 ;; 9157 nagfor*) 9158 # NAG Fortran compiler 9159 lt_prog_compiler_wl='-Wl,-Wl,,' 9160 lt_prog_compiler_pic='-PIC' 9161 lt_prog_compiler_static='-Bstatic' 9162 ;; 9163 tcc*) 9164 # Fabrice Bellard et al's Tiny C Compiler 9165 lt_prog_compiler_wl='-Wl,' 9166 lt_prog_compiler_pic='-fPIC' 9167 lt_prog_compiler_static='-static' 9168 ;; 9169 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9170 # Portland Group compilers (*not* the Pentium gcc compiler, 9171 # which looks to be a dead project) 9172 lt_prog_compiler_wl='-Wl,' 9173 lt_prog_compiler_pic='-fpic' 9174 lt_prog_compiler_static='-Bstatic' 9175 ;; 9176 ccc*) 9177 lt_prog_compiler_wl='-Wl,' 9178 # All Alpha code is PIC. 9179 lt_prog_compiler_static='-non_shared' 9180 ;; 9181 xl* | bgxl* | bgf* | mpixl*) 9182 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9183 lt_prog_compiler_wl='-Wl,' 9184 lt_prog_compiler_pic='-qpic' 9185 lt_prog_compiler_static='-qstaticlink' 9186 ;; 9187 *) 9188 case `$CC -V 2>&1 | sed 5q` in 9189 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9190 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9191 lt_prog_compiler_pic='-KPIC' 9192 lt_prog_compiler_static='-Bstatic' 9193 lt_prog_compiler_wl='' 9194 ;; 9195 *Sun\ F* | *Sun*Fortran*) 9196 lt_prog_compiler_pic='-KPIC' 9197 lt_prog_compiler_static='-Bstatic' 9198 lt_prog_compiler_wl='-Qoption ld ' 9199 ;; 9200 *Sun\ C*) 9201 # Sun C 5.9 9202 lt_prog_compiler_pic='-KPIC' 9203 lt_prog_compiler_static='-Bstatic' 9204 lt_prog_compiler_wl='-Wl,' 9205 ;; 9206 *Intel*\ [CF]*Compiler*) 9207 lt_prog_compiler_wl='-Wl,' 9208 lt_prog_compiler_pic='-fPIC' 9209 lt_prog_compiler_static='-static' 9210 ;; 9211 *Portland\ Group*) 9212 lt_prog_compiler_wl='-Wl,' 9213 lt_prog_compiler_pic='-fpic' 9214 lt_prog_compiler_static='-Bstatic' 9215 ;; 9216 esac 9217 ;; 9218 esac 9219 ;; 9220 9221 newsos6) 9222 lt_prog_compiler_pic='-KPIC' 9223 lt_prog_compiler_static='-Bstatic' 9224 ;; 9225 9226 *nto* | *qnx*) 9227 # QNX uses GNU C++, but need to define -shared option too, otherwise 9228 # it will coredump. 9229 lt_prog_compiler_pic='-fPIC -shared' 9230 ;; 9231 9232 osf3* | osf4* | osf5*) 9233 lt_prog_compiler_wl='-Wl,' 9234 # All OSF/1 code is PIC. 9235 lt_prog_compiler_static='-non_shared' 9236 ;; 9237 9238 rdos*) 9239 lt_prog_compiler_static='-non_shared' 9240 ;; 9241 9242 solaris*) 9243 lt_prog_compiler_pic='-KPIC' 9244 lt_prog_compiler_static='-Bstatic' 9245 case $cc_basename in 9246 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9247 lt_prog_compiler_wl='-Qoption ld ';; 9248 *) 9249 lt_prog_compiler_wl='-Wl,';; 9250 esac 9251 ;; 9252 9253 sunos4*) 9254 lt_prog_compiler_wl='-Qoption ld ' 9255 lt_prog_compiler_pic='-PIC' 9256 lt_prog_compiler_static='-Bstatic' 9257 ;; 9258 9259 sysv4 | sysv4.2uw2* | sysv4.3*) 9260 lt_prog_compiler_wl='-Wl,' 9261 lt_prog_compiler_pic='-KPIC' 9262 lt_prog_compiler_static='-Bstatic' 9263 ;; 9264 9265 sysv4*MP*) 9266 if test -d /usr/nec; then 9267 lt_prog_compiler_pic='-Kconform_pic' 9268 lt_prog_compiler_static='-Bstatic' 9269 fi 9270 ;; 9271 9272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9273 lt_prog_compiler_wl='-Wl,' 9274 lt_prog_compiler_pic='-KPIC' 9275 lt_prog_compiler_static='-Bstatic' 9276 ;; 9277 9278 unicos*) 9279 lt_prog_compiler_wl='-Wl,' 9280 lt_prog_compiler_can_build_shared=no 9281 ;; 9282 9283 uts4*) 9284 lt_prog_compiler_pic='-pic' 9285 lt_prog_compiler_static='-Bstatic' 9286 ;; 9287 9288 *) 9289 lt_prog_compiler_can_build_shared=no 9290 ;; 9291 esac 9292 fi 9293 9294case $host_os in 9295 # For platforms that do not support PIC, -DPIC is meaningless: 9296 *djgpp*) 9297 lt_prog_compiler_pic= 9298 ;; 9299 *) 9300 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9301 ;; 9302esac 9303 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9305$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9306if ${lt_cv_prog_compiler_pic+:} false; then : 9307 $as_echo_n "(cached) " >&6 9308else 9309 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9310fi 9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9312$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9313lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9314 9315# 9316# Check to make sure the PIC flag actually works. 9317# 9318if test -n "$lt_prog_compiler_pic"; then 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9320$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9321if ${lt_cv_prog_compiler_pic_works+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 lt_cv_prog_compiler_pic_works=no 9325 ac_outfile=conftest.$ac_objext 9326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9327 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9328 # Insert the option either (1) after the last *FLAGS variable, or 9329 # (2) before a word containing "conftest.", or (3) at the end. 9330 # Note that $ac_compile itself does not contain backslashes and begins 9331 # with a dollar sign (not a hyphen), so the echo should work correctly. 9332 # The option is referenced via a variable to avoid confusing sed. 9333 lt_compile=`echo "$ac_compile" | $SED \ 9334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9336 -e 's:$: $lt_compiler_flag:'` 9337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9338 (eval "$lt_compile" 2>conftest.err) 9339 ac_status=$? 9340 cat conftest.err >&5 9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9342 if (exit $ac_status) && test -s "$ac_outfile"; then 9343 # The compiler can only warn and ignore the option if not recognized 9344 # So say no if there are warnings other than the usual output. 9345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9348 lt_cv_prog_compiler_pic_works=yes 9349 fi 9350 fi 9351 $RM conftest* 9352 9353fi 9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9355$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9356 9357if test yes = "$lt_cv_prog_compiler_pic_works"; then 9358 case $lt_prog_compiler_pic in 9359 "" | " "*) ;; 9360 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9361 esac 9362else 9363 lt_prog_compiler_pic= 9364 lt_prog_compiler_can_build_shared=no 9365fi 9366 9367fi 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379# 9380# Check to make sure the static flag actually works. 9381# 9382wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9384$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9385if ${lt_cv_prog_compiler_static_works+:} false; then : 9386 $as_echo_n "(cached) " >&6 9387else 9388 lt_cv_prog_compiler_static_works=no 9389 save_LDFLAGS=$LDFLAGS 9390 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9391 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9393 # The linker can only warn and ignore the option if not recognized 9394 # So say no if there are warnings 9395 if test -s conftest.err; then 9396 # Append any errors to the config.log. 9397 cat conftest.err 1>&5 9398 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9400 if diff conftest.exp conftest.er2 >/dev/null; then 9401 lt_cv_prog_compiler_static_works=yes 9402 fi 9403 else 9404 lt_cv_prog_compiler_static_works=yes 9405 fi 9406 fi 9407 $RM -r conftest* 9408 LDFLAGS=$save_LDFLAGS 9409 9410fi 9411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9412$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9413 9414if test yes = "$lt_cv_prog_compiler_static_works"; then 9415 : 9416else 9417 lt_prog_compiler_static= 9418fi 9419 9420 9421 9422 9423 9424 9425 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9427$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9428if ${lt_cv_prog_compiler_c_o+:} false; then : 9429 $as_echo_n "(cached) " >&6 9430else 9431 lt_cv_prog_compiler_c_o=no 9432 $RM -r conftest 2>/dev/null 9433 mkdir conftest 9434 cd conftest 9435 mkdir out 9436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9437 9438 lt_compiler_flag="-o out/conftest2.$ac_objext" 9439 # Insert the option either (1) after the last *FLAGS variable, or 9440 # (2) before a word containing "conftest.", or (3) at the end. 9441 # Note that $ac_compile itself does not contain backslashes and begins 9442 # with a dollar sign (not a hyphen), so the echo should work correctly. 9443 lt_compile=`echo "$ac_compile" | $SED \ 9444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9446 -e 's:$: $lt_compiler_flag:'` 9447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9448 (eval "$lt_compile" 2>out/conftest.err) 9449 ac_status=$? 9450 cat out/conftest.err >&5 9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9452 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9453 then 9454 # The compiler can only warn and ignore the option if not recognized 9455 # So say no if there are warnings 9456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9457 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9458 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9459 lt_cv_prog_compiler_c_o=yes 9460 fi 9461 fi 9462 chmod u+w . 2>&5 9463 $RM conftest* 9464 # SGI C++ compiler will create directory out/ii_files/ for 9465 # template instantiation 9466 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9467 $RM out/* && rmdir out 9468 cd .. 9469 $RM -r conftest 9470 $RM conftest* 9471 9472fi 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9474$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9475 9476 9477 9478 9479 9480 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9482$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9483if ${lt_cv_prog_compiler_c_o+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485else 9486 lt_cv_prog_compiler_c_o=no 9487 $RM -r conftest 2>/dev/null 9488 mkdir conftest 9489 cd conftest 9490 mkdir out 9491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9492 9493 lt_compiler_flag="-o out/conftest2.$ac_objext" 9494 # Insert the option either (1) after the last *FLAGS variable, or 9495 # (2) before a word containing "conftest.", or (3) at the end. 9496 # Note that $ac_compile itself does not contain backslashes and begins 9497 # with a dollar sign (not a hyphen), so the echo should work correctly. 9498 lt_compile=`echo "$ac_compile" | $SED \ 9499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9501 -e 's:$: $lt_compiler_flag:'` 9502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9503 (eval "$lt_compile" 2>out/conftest.err) 9504 ac_status=$? 9505 cat out/conftest.err >&5 9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9507 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9508 then 9509 # The compiler can only warn and ignore the option if not recognized 9510 # So say no if there are warnings 9511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9514 lt_cv_prog_compiler_c_o=yes 9515 fi 9516 fi 9517 chmod u+w . 2>&5 9518 $RM conftest* 9519 # SGI C++ compiler will create directory out/ii_files/ for 9520 # template instantiation 9521 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9522 $RM out/* && rmdir out 9523 cd .. 9524 $RM -r conftest 9525 $RM conftest* 9526 9527fi 9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9529$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9530 9531 9532 9533 9534hard_links=nottested 9535if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9536 # do not overwrite the value of need_locks provided by the user 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9538$as_echo_n "checking if we can lock with hard links... " >&6; } 9539 hard_links=yes 9540 $RM conftest* 9541 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9542 touch conftest.a 9543 ln conftest.a conftest.b 2>&5 || hard_links=no 9544 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9546$as_echo "$hard_links" >&6; } 9547 if test no = "$hard_links"; then 9548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9549$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9550 need_locks=warn 9551 fi 9552else 9553 need_locks=no 9554fi 9555 9556 9557 9558 9559 9560 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9562$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9563 9564 runpath_var= 9565 allow_undefined_flag= 9566 always_export_symbols=no 9567 archive_cmds= 9568 archive_expsym_cmds= 9569 compiler_needs_object=no 9570 enable_shared_with_static_runtimes=no 9571 export_dynamic_flag_spec= 9572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9573 hardcode_automatic=no 9574 hardcode_direct=no 9575 hardcode_direct_absolute=no 9576 hardcode_libdir_flag_spec= 9577 hardcode_libdir_separator= 9578 hardcode_minus_L=no 9579 hardcode_shlibpath_var=unsupported 9580 inherit_rpath=no 9581 link_all_deplibs=unknown 9582 module_cmds= 9583 module_expsym_cmds= 9584 old_archive_from_new_cmds= 9585 old_archive_from_expsyms_cmds= 9586 thread_safe_flag_spec= 9587 whole_archive_flag_spec= 9588 # include_expsyms should be a list of space-separated symbols to be *always* 9589 # included in the symbol list 9590 include_expsyms= 9591 # exclude_expsyms can be an extended regexp of symbols to exclude 9592 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9593 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9594 # as well as any symbol that contains 'd'. 9595 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9596 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9597 # platforms (ab)use it in PIC code, but their linkers get confused if 9598 # the symbol is explicitly referenced. Since portable code cannot 9599 # rely on this symbol name, it's probably fine to never include it in 9600 # preloaded symbol tables. 9601 # Exclude shared library initialization/finalization symbols. 9602 extract_expsyms_cmds= 9603 9604 case $host_os in 9605 cygwin* | mingw* | pw32* | cegcc*) 9606 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9607 # When not using gcc, we currently assume that we are using 9608 # Microsoft Visual C++. 9609 if test yes != "$GCC"; then 9610 with_gnu_ld=no 9611 fi 9612 ;; 9613 interix*) 9614 # we just hope/assume this is gcc and not c89 (= MSVC++) 9615 with_gnu_ld=yes 9616 ;; 9617 openbsd* | bitrig*) 9618 with_gnu_ld=no 9619 ;; 9620 esac 9621 9622 ld_shlibs=yes 9623 9624 # On some targets, GNU ld is compatible enough with the native linker 9625 # that we're better off using the native interface for both. 9626 lt_use_gnu_ld_interface=no 9627 if test yes = "$with_gnu_ld"; then 9628 case $host_os in 9629 aix*) 9630 # The AIX port of GNU ld has always aspired to compatibility 9631 # with the native linker. However, as the warning in the GNU ld 9632 # block says, versions before 2.19.5* couldn't really create working 9633 # shared libraries, regardless of the interface used. 9634 case `$LD -v 2>&1` in 9635 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9636 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9637 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9638 *) 9639 lt_use_gnu_ld_interface=yes 9640 ;; 9641 esac 9642 ;; 9643 *) 9644 lt_use_gnu_ld_interface=yes 9645 ;; 9646 esac 9647 fi 9648 9649 if test yes = "$lt_use_gnu_ld_interface"; then 9650 # If archive_cmds runs LD, not CC, wlarc should be empty 9651 wlarc='$wl' 9652 9653 # Set some defaults for GNU ld with shared library support. These 9654 # are reset later if shared libraries are not supported. Putting them 9655 # here allows them to be overridden if necessary. 9656 runpath_var=LD_RUN_PATH 9657 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9658 export_dynamic_flag_spec='$wl--export-dynamic' 9659 # ancient GNU ld didn't support --whole-archive et. al. 9660 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9661 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9662 else 9663 whole_archive_flag_spec= 9664 fi 9665 supports_anon_versioning=no 9666 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9667 *GNU\ gold*) supports_anon_versioning=yes ;; 9668 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9669 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9670 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9671 *\ 2.11.*) ;; # other 2.11 versions 9672 *) supports_anon_versioning=yes ;; 9673 esac 9674 9675 # See if GNU ld supports shared libraries. 9676 case $host_os in 9677 aix[3-9]*) 9678 # On AIX/PPC, the GNU linker is very broken 9679 if test ia64 != "$host_cpu"; then 9680 ld_shlibs=no 9681 cat <<_LT_EOF 1>&2 9682 9683*** Warning: the GNU linker, at least up to release 2.19, is reported 9684*** to be unable to reliably create shared libraries on AIX. 9685*** Therefore, libtool is disabling shared libraries support. If you 9686*** really care for shared libraries, you may want to install binutils 9687*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9688*** You will then need to restart the configuration process. 9689 9690_LT_EOF 9691 fi 9692 ;; 9693 9694 amigaos*) 9695 case $host_cpu in 9696 powerpc) 9697 # see comment about AmigaOS4 .so support 9698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9699 archive_expsym_cmds='' 9700 ;; 9701 m68k) 9702 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)' 9703 hardcode_libdir_flag_spec='-L$libdir' 9704 hardcode_minus_L=yes 9705 ;; 9706 esac 9707 ;; 9708 9709 beos*) 9710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9711 allow_undefined_flag=unsupported 9712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9713 # support --undefined. This deserves some investigation. FIXME 9714 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9715 else 9716 ld_shlibs=no 9717 fi 9718 ;; 9719 9720 cygwin* | mingw* | pw32* | cegcc*) 9721 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9722 # as there is no search path for DLLs. 9723 hardcode_libdir_flag_spec='-L$libdir' 9724 export_dynamic_flag_spec='$wl--export-all-symbols' 9725 allow_undefined_flag=unsupported 9726 always_export_symbols=no 9727 enable_shared_with_static_runtimes=yes 9728 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' 9729 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9730 9731 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9733 # If the export-symbols file already is a .def file, use it as 9734 # is; otherwise, prepend EXPORTS... 9735 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9736 cp $export_symbols $output_objdir/$soname.def; 9737 else 9738 echo EXPORTS > $output_objdir/$soname.def; 9739 cat $export_symbols >> $output_objdir/$soname.def; 9740 fi~ 9741 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9742 else 9743 ld_shlibs=no 9744 fi 9745 ;; 9746 9747 haiku*) 9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9749 link_all_deplibs=yes 9750 ;; 9751 9752 os2*) 9753 hardcode_libdir_flag_spec='-L$libdir' 9754 hardcode_minus_L=yes 9755 allow_undefined_flag=unsupported 9756 shrext_cmds=.dll 9757 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9758 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9759 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9760 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9761 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9762 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9763 emximp -o $lib $output_objdir/$libname.def' 9764 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9765 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9766 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9767 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9768 prefix_cmds="$SED"~ 9769 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9770 prefix_cmds="$prefix_cmds -e 1d"; 9771 fi~ 9772 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9773 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9774 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9775 emximp -o $lib $output_objdir/$libname.def' 9776 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9777 enable_shared_with_static_runtimes=yes 9778 ;; 9779 9780 interix[3-9]*) 9781 hardcode_direct=no 9782 hardcode_shlibpath_var=no 9783 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9784 export_dynamic_flag_spec='$wl-E' 9785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9786 # Instead, shared libraries are loaded at an image base (0x10000000 by 9787 # default) and relocated if they conflict, which is a slow very memory 9788 # consuming and fragmenting process. To avoid this, we pick a random, 9789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9790 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9792 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' 9793 ;; 9794 9795 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9796 tmp_diet=no 9797 if test linux-dietlibc = "$host_os"; then 9798 case $cc_basename in 9799 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9800 esac 9801 fi 9802 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9803 && test no = "$tmp_diet" 9804 then 9805 tmp_addflag=' $pic_flag' 9806 tmp_sharedflag='-shared' 9807 case $cc_basename,$host_cpu in 9808 pgcc*) # Portland Group C compiler 9809 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' 9810 tmp_addflag=' $pic_flag' 9811 ;; 9812 pgf77* | pgf90* | pgf95* | pgfortran*) 9813 # Portland Group f77 and f90 compilers 9814 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' 9815 tmp_addflag=' $pic_flag -Mnomain' ;; 9816 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9817 tmp_addflag=' -i_dynamic' ;; 9818 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9819 tmp_addflag=' -i_dynamic -nofor_main' ;; 9820 ifc* | ifort*) # Intel Fortran compiler 9821 tmp_addflag=' -nofor_main' ;; 9822 lf95*) # Lahey Fortran 8.1 9823 whole_archive_flag_spec= 9824 tmp_sharedflag='--shared' ;; 9825 nagfor*) # NAGFOR 5.3 9826 tmp_sharedflag='-Wl,-shared' ;; 9827 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9828 tmp_sharedflag='-qmkshrobj' 9829 tmp_addflag= ;; 9830 nvcc*) # Cuda Compiler Driver 2.2 9831 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' 9832 compiler_needs_object=yes 9833 ;; 9834 esac 9835 case `$CC -V 2>&1 | sed 5q` in 9836 *Sun\ C*) # Sun C 5.9 9837 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' 9838 compiler_needs_object=yes 9839 tmp_sharedflag='-G' ;; 9840 *Sun\ F*) # Sun Fortran 8.3 9841 tmp_sharedflag='-G' ;; 9842 esac 9843 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9844 9845 if test yes = "$supports_anon_versioning"; then 9846 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9847 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9848 echo "local: *; };" >> $output_objdir/$libname.ver~ 9849 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9850 fi 9851 9852 case $cc_basename in 9853 tcc*) 9854 export_dynamic_flag_spec='-rdynamic' 9855 ;; 9856 xlf* | bgf* | bgxlf* | mpixlf*) 9857 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9858 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9860 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9861 if test yes = "$supports_anon_versioning"; then 9862 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9863 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9864 echo "local: *; };" >> $output_objdir/$libname.ver~ 9865 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9866 fi 9867 ;; 9868 esac 9869 else 9870 ld_shlibs=no 9871 fi 9872 ;; 9873 9874 netbsd*) 9875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9876 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9877 wlarc= 9878 else 9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9881 fi 9882 ;; 9883 9884 solaris*) 9885 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9886 ld_shlibs=no 9887 cat <<_LT_EOF 1>&2 9888 9889*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9890*** create shared libraries on Solaris systems. Therefore, libtool 9891*** is disabling shared libraries support. We urge you to upgrade GNU 9892*** binutils to release 2.9.1 or newer. Another option is to modify 9893*** your PATH or compiler configuration so that the native linker is 9894*** used, and then restart. 9895 9896_LT_EOF 9897 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9898 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9899 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9900 else 9901 ld_shlibs=no 9902 fi 9903 ;; 9904 9905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9906 case `$LD -v 2>&1` in 9907 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9908 ld_shlibs=no 9909 cat <<_LT_EOF 1>&2 9910 9911*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9912*** reliably create shared libraries on SCO systems. Therefore, libtool 9913*** is disabling shared libraries support. We urge you to upgrade GNU 9914*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9915*** your PATH or compiler configuration so that the native linker is 9916*** used, and then restart. 9917 9918_LT_EOF 9919 ;; 9920 *) 9921 # For security reasons, it is highly recommended that you always 9922 # use absolute paths for naming shared libraries, and exclude the 9923 # DT_RUNPATH tag from executables and libraries. But doing so 9924 # requires that you compile everything twice, which is a pain. 9925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9926 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9928 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9929 else 9930 ld_shlibs=no 9931 fi 9932 ;; 9933 esac 9934 ;; 9935 9936 sunos4*) 9937 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9938 wlarc= 9939 hardcode_direct=yes 9940 hardcode_shlibpath_var=no 9941 ;; 9942 9943 *) 9944 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9945 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9946 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9947 else 9948 ld_shlibs=no 9949 fi 9950 ;; 9951 esac 9952 9953 if test no = "$ld_shlibs"; then 9954 runpath_var= 9955 hardcode_libdir_flag_spec= 9956 export_dynamic_flag_spec= 9957 whole_archive_flag_spec= 9958 fi 9959 else 9960 # PORTME fill in a description of your system's linker (not GNU ld) 9961 case $host_os in 9962 aix3*) 9963 allow_undefined_flag=unsupported 9964 always_export_symbols=yes 9965 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' 9966 # Note: this linker hardcodes the directories in LIBPATH if there 9967 # are no directories specified by -L. 9968 hardcode_minus_L=yes 9969 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9970 # Neither direct hardcoding nor static linking is supported with a 9971 # broken collect2. 9972 hardcode_direct=unsupported 9973 fi 9974 ;; 9975 9976 aix[4-9]*) 9977 if test ia64 = "$host_cpu"; then 9978 # On IA64, the linker does run time linking by default, so we don't 9979 # have to do anything special. 9980 aix_use_runtimelinking=no 9981 exp_sym_flag='-Bexport' 9982 no_entry_flag= 9983 else 9984 # If we're using GNU nm, then we don't want the "-C" option. 9985 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9986 # Without the "-l" option, or with the "-B" option, AIX nm treats 9987 # weak defined symbols like other global defined symbols, whereas 9988 # GNU nm marks them as "W". 9989 # While the 'weak' keyword is ignored in the Export File, we need 9990 # it in the Import File for the 'aix-soname' feature, so we have 9991 # to replace the "-B" option with "-P" for AIX nm. 9992 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9993 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' 9994 else 9995 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9996 fi 9997 aix_use_runtimelinking=no 9998 9999 # Test if we are trying to use run time linking or normal 10000 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10001 # have runtime linking enabled, and use it for executables. 10002 # For shared libraries, we enable/disable runtime linking 10003 # depending on the kind of the shared library created - 10004 # when "with_aix_soname,aix_use_runtimelinking" is: 10005 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10006 # "aix,yes" lib.so shared, rtl:yes, for executables 10007 # lib.a static archive 10008 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10009 # lib.a(lib.so.V) shared, rtl:no, for executables 10010 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10011 # lib.a(lib.so.V) shared, rtl:no 10012 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10013 # lib.a static archive 10014 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10015 for ld_flag in $LDFLAGS; do 10016 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10017 aix_use_runtimelinking=yes 10018 break 10019 fi 10020 done 10021 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10022 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10023 # so we don't have lib.a shared libs to link our executables. 10024 # We have to force runtime linking in this case. 10025 aix_use_runtimelinking=yes 10026 LDFLAGS="$LDFLAGS -Wl,-brtl" 10027 fi 10028 ;; 10029 esac 10030 10031 exp_sym_flag='-bexport' 10032 no_entry_flag='-bnoentry' 10033 fi 10034 10035 # When large executables or shared objects are built, AIX ld can 10036 # have problems creating the table of contents. If linking a library 10037 # or program results in "error TOC overflow" add -mminimal-toc to 10038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10040 10041 archive_cmds='' 10042 hardcode_direct=yes 10043 hardcode_direct_absolute=yes 10044 hardcode_libdir_separator=':' 10045 link_all_deplibs=yes 10046 file_list_spec='$wl-f,' 10047 case $with_aix_soname,$aix_use_runtimelinking in 10048 aix,*) ;; # traditional, no import file 10049 svr4,* | *,yes) # use import file 10050 # The Import File defines what to hardcode. 10051 hardcode_direct=no 10052 hardcode_direct_absolute=no 10053 ;; 10054 esac 10055 10056 if test yes = "$GCC"; then 10057 case $host_os in aix4.[012]|aix4.[012].*) 10058 # We only want to do this on AIX 4.2 and lower, the check 10059 # below for broken collect2 doesn't work under 4.3+ 10060 collect2name=`$CC -print-prog-name=collect2` 10061 if test -f "$collect2name" && 10062 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10063 then 10064 # We have reworked collect2 10065 : 10066 else 10067 # We have old collect2 10068 hardcode_direct=unsupported 10069 # It fails to find uninstalled libraries when the uninstalled 10070 # path is not listed in the libpath. Setting hardcode_minus_L 10071 # to unsupported forces relinking 10072 hardcode_minus_L=yes 10073 hardcode_libdir_flag_spec='-L$libdir' 10074 hardcode_libdir_separator= 10075 fi 10076 ;; 10077 esac 10078 shared_flag='-shared' 10079 if test yes = "$aix_use_runtimelinking"; then 10080 shared_flag="$shared_flag "'$wl-G' 10081 fi 10082 # Need to ensure runtime linking is disabled for the traditional 10083 # shared library, or the linker may eventually find shared libraries 10084 # /with/ Import File - we do not want to mix them. 10085 shared_flag_aix='-shared' 10086 shared_flag_svr4='-shared $wl-G' 10087 else 10088 # not using gcc 10089 if test ia64 = "$host_cpu"; then 10090 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10091 # chokes on -Wl,-G. The following line is correct: 10092 shared_flag='-G' 10093 else 10094 if test yes = "$aix_use_runtimelinking"; then 10095 shared_flag='$wl-G' 10096 else 10097 shared_flag='$wl-bM:SRE' 10098 fi 10099 shared_flag_aix='$wl-bM:SRE' 10100 shared_flag_svr4='$wl-G' 10101 fi 10102 fi 10103 10104 export_dynamic_flag_spec='$wl-bexpall' 10105 # It seems that -bexpall does not export symbols beginning with 10106 # underscore (_), so it is better to generate a list of symbols to export. 10107 always_export_symbols=yes 10108 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10109 # Warning - without using the other runtime loading flags (-brtl), 10110 # -berok will link without error, but may produce a broken library. 10111 allow_undefined_flag='-berok' 10112 # Determine the default libpath from the value encoded in an 10113 # empty executable. 10114 if test set = "${lt_cv_aix_libpath+set}"; then 10115 aix_libpath=$lt_cv_aix_libpath 10116else 10117 if ${lt_cv_aix_libpath_+:} false; then : 10118 $as_echo_n "(cached) " >&6 10119else 10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10121/* end confdefs.h. */ 10122 10123int 10124main () 10125{ 10126 10127 ; 10128 return 0; 10129} 10130_ACEOF 10131if ac_fn_c_try_link "$LINENO"; then : 10132 10133 lt_aix_libpath_sed=' 10134 /Import File Strings/,/^$/ { 10135 /^0/ { 10136 s/^0 *\([^ ]*\) *$/\1/ 10137 p 10138 } 10139 }' 10140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10141 # Check for a 64-bit object if we didn't find anything. 10142 if test -z "$lt_cv_aix_libpath_"; then 10143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10144 fi 10145fi 10146rm -f core conftest.err conftest.$ac_objext \ 10147 conftest$ac_exeext conftest.$ac_ext 10148 if test -z "$lt_cv_aix_libpath_"; then 10149 lt_cv_aix_libpath_=/usr/lib:/lib 10150 fi 10151 10152fi 10153 10154 aix_libpath=$lt_cv_aix_libpath_ 10155fi 10156 10157 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10158 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 10159 else 10160 if test ia64 = "$host_cpu"; then 10161 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10162 allow_undefined_flag="-z nodefs" 10163 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" 10164 else 10165 # Determine the default libpath from the value encoded in an 10166 # empty executable. 10167 if test set = "${lt_cv_aix_libpath+set}"; then 10168 aix_libpath=$lt_cv_aix_libpath 10169else 10170 if ${lt_cv_aix_libpath_+:} false; then : 10171 $as_echo_n "(cached) " >&6 10172else 10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10174/* end confdefs.h. */ 10175 10176int 10177main () 10178{ 10179 10180 ; 10181 return 0; 10182} 10183_ACEOF 10184if ac_fn_c_try_link "$LINENO"; then : 10185 10186 lt_aix_libpath_sed=' 10187 /Import File Strings/,/^$/ { 10188 /^0/ { 10189 s/^0 *\([^ ]*\) *$/\1/ 10190 p 10191 } 10192 }' 10193 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10194 # Check for a 64-bit object if we didn't find anything. 10195 if test -z "$lt_cv_aix_libpath_"; then 10196 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10197 fi 10198fi 10199rm -f core conftest.err conftest.$ac_objext \ 10200 conftest$ac_exeext conftest.$ac_ext 10201 if test -z "$lt_cv_aix_libpath_"; then 10202 lt_cv_aix_libpath_=/usr/lib:/lib 10203 fi 10204 10205fi 10206 10207 aix_libpath=$lt_cv_aix_libpath_ 10208fi 10209 10210 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10211 # Warning - without using the other run time loading flags, 10212 # -berok will link without error, but may produce a broken library. 10213 no_undefined_flag=' $wl-bernotok' 10214 allow_undefined_flag=' $wl-berok' 10215 if test yes = "$with_gnu_ld"; then 10216 # We only use this code for GNU lds that support --whole-archive. 10217 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10218 else 10219 # Exported symbols can be pulled into shared objects from archives 10220 whole_archive_flag_spec='$convenience' 10221 fi 10222 archive_cmds_need_lc=yes 10223 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10224 # -brtl affects multiple linker settings, -berok does not and is overridden later 10225 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10226 if test svr4 != "$with_aix_soname"; then 10227 # This is similar to how AIX traditionally builds its shared libraries. 10228 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' 10229 fi 10230 if test aix != "$with_aix_soname"; then 10231 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' 10232 else 10233 # used by -dlpreopen to get the symbols 10234 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10235 fi 10236 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10237 fi 10238 fi 10239 ;; 10240 10241 amigaos*) 10242 case $host_cpu in 10243 powerpc) 10244 # see comment about AmigaOS4 .so support 10245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10246 archive_expsym_cmds='' 10247 ;; 10248 m68k) 10249 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)' 10250 hardcode_libdir_flag_spec='-L$libdir' 10251 hardcode_minus_L=yes 10252 ;; 10253 esac 10254 ;; 10255 10256 bsdi[45]*) 10257 export_dynamic_flag_spec=-rdynamic 10258 ;; 10259 10260 cygwin* | mingw* | pw32* | cegcc*) 10261 # When not using gcc, we currently assume that we are using 10262 # Microsoft Visual C++. 10263 # hardcode_libdir_flag_spec is actually meaningless, as there is 10264 # no search path for DLLs. 10265 case $cc_basename in 10266 cl*) 10267 # Native MSVC 10268 hardcode_libdir_flag_spec=' ' 10269 allow_undefined_flag=unsupported 10270 always_export_symbols=yes 10271 file_list_spec='@' 10272 # Tell ltmain to make .lib files, not .a files. 10273 libext=lib 10274 # Tell ltmain to make .dll files, not .so files. 10275 shrext_cmds=.dll 10276 # FIXME: Setting linknames here is a bad hack. 10277 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10278 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10279 cp "$export_symbols" "$output_objdir/$soname.def"; 10280 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10281 else 10282 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10283 fi~ 10284 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10285 linknames=' 10286 # The linker will not automatically build a static lib if we build a DLL. 10287 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10288 enable_shared_with_static_runtimes=yes 10289 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10291 # Don't use ranlib 10292 old_postinstall_cmds='chmod 644 $oldlib' 10293 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10294 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10295 case $lt_outputfile in 10296 *.exe|*.EXE) ;; 10297 *) 10298 lt_outputfile=$lt_outputfile.exe 10299 lt_tool_outputfile=$lt_tool_outputfile.exe 10300 ;; 10301 esac~ 10302 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10303 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10304 $RM "$lt_outputfile.manifest"; 10305 fi' 10306 ;; 10307 *) 10308 # Assume MSVC wrapper 10309 hardcode_libdir_flag_spec=' ' 10310 allow_undefined_flag=unsupported 10311 # Tell ltmain to make .lib files, not .a files. 10312 libext=lib 10313 # Tell ltmain to make .dll files, not .so files. 10314 shrext_cmds=.dll 10315 # FIXME: Setting linknames here is a bad hack. 10316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10317 # The linker will automatically build a .lib file if we build a DLL. 10318 old_archive_from_new_cmds='true' 10319 # FIXME: Should let the user specify the lib program. 10320 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10321 enable_shared_with_static_runtimes=yes 10322 ;; 10323 esac 10324 ;; 10325 10326 darwin* | rhapsody*) 10327 10328 10329 archive_cmds_need_lc=no 10330 hardcode_direct=no 10331 hardcode_automatic=yes 10332 hardcode_shlibpath_var=unsupported 10333 if test yes = "$lt_cv_ld_force_load"; then 10334 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\"`' 10335 10336 else 10337 whole_archive_flag_spec='' 10338 fi 10339 link_all_deplibs=yes 10340 allow_undefined_flag=$_lt_dar_allow_undefined 10341 case $cc_basename in 10342 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10343 *) _lt_dar_can_shared=$GCC ;; 10344 esac 10345 if test yes = "$_lt_dar_can_shared"; then 10346 output_verbose_link_cmd=func_echo_all 10347 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10348 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10349 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" 10350 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" 10351 10352 else 10353 ld_shlibs=no 10354 fi 10355 10356 ;; 10357 10358 dgux*) 10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10360 hardcode_libdir_flag_spec='-L$libdir' 10361 hardcode_shlibpath_var=no 10362 ;; 10363 10364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10365 # support. Future versions do this automatically, but an explicit c++rt0.o 10366 # does not break anything, and helps significantly (at the cost of a little 10367 # extra space). 10368 freebsd2.2*) 10369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10370 hardcode_libdir_flag_spec='-R$libdir' 10371 hardcode_direct=yes 10372 hardcode_shlibpath_var=no 10373 ;; 10374 10375 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10376 freebsd2.*) 10377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10378 hardcode_direct=yes 10379 hardcode_minus_L=yes 10380 hardcode_shlibpath_var=no 10381 ;; 10382 10383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10384 freebsd* | dragonfly*) 10385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10386 hardcode_libdir_flag_spec='-R$libdir' 10387 hardcode_direct=yes 10388 hardcode_shlibpath_var=no 10389 ;; 10390 10391 hpux9*) 10392 if test yes = "$GCC"; then 10393 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' 10394 else 10395 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' 10396 fi 10397 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10398 hardcode_libdir_separator=: 10399 hardcode_direct=yes 10400 10401 # hardcode_minus_L: Not really in the search PATH, 10402 # but as the default location of the library. 10403 hardcode_minus_L=yes 10404 export_dynamic_flag_spec='$wl-E' 10405 ;; 10406 10407 hpux10*) 10408 if test yes,no = "$GCC,$with_gnu_ld"; then 10409 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10410 else 10411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10412 fi 10413 if test no = "$with_gnu_ld"; then 10414 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10415 hardcode_libdir_separator=: 10416 hardcode_direct=yes 10417 hardcode_direct_absolute=yes 10418 export_dynamic_flag_spec='$wl-E' 10419 # hardcode_minus_L: Not really in the search PATH, 10420 # but as the default location of the library. 10421 hardcode_minus_L=yes 10422 fi 10423 ;; 10424 10425 hpux11*) 10426 if test yes,no = "$GCC,$with_gnu_ld"; then 10427 case $host_cpu in 10428 hppa*64*) 10429 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10430 ;; 10431 ia64*) 10432 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10433 ;; 10434 *) 10435 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10436 ;; 10437 esac 10438 else 10439 case $host_cpu in 10440 hppa*64*) 10441 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10442 ;; 10443 ia64*) 10444 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10445 ;; 10446 *) 10447 10448 # Older versions of the 11.00 compiler do not understand -b yet 10449 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10451$as_echo_n "checking if $CC understands -b... " >&6; } 10452if ${lt_cv_prog_compiler__b+:} false; then : 10453 $as_echo_n "(cached) " >&6 10454else 10455 lt_cv_prog_compiler__b=no 10456 save_LDFLAGS=$LDFLAGS 10457 LDFLAGS="$LDFLAGS -b" 10458 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10460 # The linker can only warn and ignore the option if not recognized 10461 # So say no if there are warnings 10462 if test -s conftest.err; then 10463 # Append any errors to the config.log. 10464 cat conftest.err 1>&5 10465 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10467 if diff conftest.exp conftest.er2 >/dev/null; then 10468 lt_cv_prog_compiler__b=yes 10469 fi 10470 else 10471 lt_cv_prog_compiler__b=yes 10472 fi 10473 fi 10474 $RM -r conftest* 10475 LDFLAGS=$save_LDFLAGS 10476 10477fi 10478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10479$as_echo "$lt_cv_prog_compiler__b" >&6; } 10480 10481if test yes = "$lt_cv_prog_compiler__b"; then 10482 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10483else 10484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10485fi 10486 10487 ;; 10488 esac 10489 fi 10490 if test no = "$with_gnu_ld"; then 10491 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10492 hardcode_libdir_separator=: 10493 10494 case $host_cpu in 10495 hppa*64*|ia64*) 10496 hardcode_direct=no 10497 hardcode_shlibpath_var=no 10498 ;; 10499 *) 10500 hardcode_direct=yes 10501 hardcode_direct_absolute=yes 10502 export_dynamic_flag_spec='$wl-E' 10503 10504 # hardcode_minus_L: Not really in the search PATH, 10505 # but as the default location of the library. 10506 hardcode_minus_L=yes 10507 ;; 10508 esac 10509 fi 10510 ;; 10511 10512 irix5* | irix6* | nonstopux*) 10513 if test yes = "$GCC"; then 10514 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' 10515 # Try to use the -exported_symbol ld option, if it does not 10516 # work, assume that -exports_file does not work either and 10517 # implicitly export all symbols. 10518 # This should be the same for all languages, so no per-tag cache variable. 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10520$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10521if ${lt_cv_irix_exported_symbol+:} false; then : 10522 $as_echo_n "(cached) " >&6 10523else 10524 save_LDFLAGS=$LDFLAGS 10525 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10527/* end confdefs.h. */ 10528int foo (void) { return 0; } 10529_ACEOF 10530if ac_fn_c_try_link "$LINENO"; then : 10531 lt_cv_irix_exported_symbol=yes 10532else 10533 lt_cv_irix_exported_symbol=no 10534fi 10535rm -f core conftest.err conftest.$ac_objext \ 10536 conftest$ac_exeext conftest.$ac_ext 10537 LDFLAGS=$save_LDFLAGS 10538fi 10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10540$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10541 if test yes = "$lt_cv_irix_exported_symbol"; then 10542 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' 10543 fi 10544 else 10545 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' 10546 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' 10547 fi 10548 archive_cmds_need_lc='no' 10549 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10550 hardcode_libdir_separator=: 10551 inherit_rpath=yes 10552 link_all_deplibs=yes 10553 ;; 10554 10555 linux*) 10556 case $cc_basename in 10557 tcc*) 10558 # Fabrice Bellard et al's Tiny C Compiler 10559 ld_shlibs=yes 10560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10561 ;; 10562 esac 10563 ;; 10564 10565 netbsd*) 10566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10568 else 10569 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10570 fi 10571 hardcode_libdir_flag_spec='-R$libdir' 10572 hardcode_direct=yes 10573 hardcode_shlibpath_var=no 10574 ;; 10575 10576 newsos6) 10577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10578 hardcode_direct=yes 10579 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10580 hardcode_libdir_separator=: 10581 hardcode_shlibpath_var=no 10582 ;; 10583 10584 *nto* | *qnx*) 10585 ;; 10586 10587 openbsd* | bitrig*) 10588 if test -f /usr/libexec/ld.so; then 10589 hardcode_direct=yes 10590 hardcode_shlibpath_var=no 10591 hardcode_direct_absolute=yes 10592 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10594 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10595 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10596 export_dynamic_flag_spec='$wl-E' 10597 else 10598 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10599 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10600 fi 10601 else 10602 ld_shlibs=no 10603 fi 10604 ;; 10605 10606 os2*) 10607 hardcode_libdir_flag_spec='-L$libdir' 10608 hardcode_minus_L=yes 10609 allow_undefined_flag=unsupported 10610 shrext_cmds=.dll 10611 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10612 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10613 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10614 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10615 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10616 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10617 emximp -o $lib $output_objdir/$libname.def' 10618 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10619 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10620 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10621 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10622 prefix_cmds="$SED"~ 10623 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10624 prefix_cmds="$prefix_cmds -e 1d"; 10625 fi~ 10626 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10627 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10628 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10629 emximp -o $lib $output_objdir/$libname.def' 10630 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10631 enable_shared_with_static_runtimes=yes 10632 ;; 10633 10634 osf3*) 10635 if test yes = "$GCC"; then 10636 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10637 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' 10638 else 10639 allow_undefined_flag=' -expect_unresolved \*' 10640 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' 10641 fi 10642 archive_cmds_need_lc='no' 10643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10644 hardcode_libdir_separator=: 10645 ;; 10646 10647 osf4* | osf5*) # as osf3* with the addition of -msym flag 10648 if test yes = "$GCC"; then 10649 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10650 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' 10651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10652 else 10653 allow_undefined_flag=' -expect_unresolved \*' 10654 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' 10655 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~ 10656 $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' 10657 10658 # Both c and cxx compiler support -rpath directly 10659 hardcode_libdir_flag_spec='-rpath $libdir' 10660 fi 10661 archive_cmds_need_lc='no' 10662 hardcode_libdir_separator=: 10663 ;; 10664 10665 solaris*) 10666 no_undefined_flag=' -z defs' 10667 if test yes = "$GCC"; then 10668 wlarc='$wl' 10669 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10671 $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' 10672 else 10673 case `$CC -V 2>&1` in 10674 *"Compilers 5.0"*) 10675 wlarc='' 10676 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10678 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10679 ;; 10680 *) 10681 wlarc='$wl' 10682 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10684 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10685 ;; 10686 esac 10687 fi 10688 hardcode_libdir_flag_spec='-R$libdir' 10689 hardcode_shlibpath_var=no 10690 case $host_os in 10691 solaris2.[0-5] | solaris2.[0-5].*) ;; 10692 *) 10693 # The compiler driver will combine and reorder linker options, 10694 # but understands '-z linker_flag'. GCC discards it without '$wl', 10695 # but is careful enough not to reorder. 10696 # Supported since Solaris 2.6 (maybe 2.5.1?) 10697 if test yes = "$GCC"; then 10698 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10699 else 10700 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10701 fi 10702 ;; 10703 esac 10704 link_all_deplibs=yes 10705 ;; 10706 10707 sunos4*) 10708 if test sequent = "$host_vendor"; then 10709 # Use $CC to link under sequent, because it throws in some extra .o 10710 # files that make .init and .fini sections work. 10711 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10712 else 10713 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10714 fi 10715 hardcode_libdir_flag_spec='-L$libdir' 10716 hardcode_direct=yes 10717 hardcode_minus_L=yes 10718 hardcode_shlibpath_var=no 10719 ;; 10720 10721 sysv4) 10722 case $host_vendor in 10723 sni) 10724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10725 hardcode_direct=yes # is this really true??? 10726 ;; 10727 siemens) 10728 ## LD is ld it makes a PLAMLIB 10729 ## CC just makes a GrossModule. 10730 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10731 reload_cmds='$CC -r -o $output$reload_objs' 10732 hardcode_direct=no 10733 ;; 10734 motorola) 10735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10736 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10737 ;; 10738 esac 10739 runpath_var='LD_RUN_PATH' 10740 hardcode_shlibpath_var=no 10741 ;; 10742 10743 sysv4.3*) 10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10745 hardcode_shlibpath_var=no 10746 export_dynamic_flag_spec='-Bexport' 10747 ;; 10748 10749 sysv4*MP*) 10750 if test -d /usr/nec; then 10751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10752 hardcode_shlibpath_var=no 10753 runpath_var=LD_RUN_PATH 10754 hardcode_runpath_var=yes 10755 ld_shlibs=yes 10756 fi 10757 ;; 10758 10759 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10760 no_undefined_flag='$wl-z,text' 10761 archive_cmds_need_lc=no 10762 hardcode_shlibpath_var=no 10763 runpath_var='LD_RUN_PATH' 10764 10765 if test yes = "$GCC"; then 10766 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10767 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10768 else 10769 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10770 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10771 fi 10772 ;; 10773 10774 sysv5* | sco3.2v5* | sco5v6*) 10775 # Note: We CANNOT use -z defs as we might desire, because we do not 10776 # link with -lc, and that would cause any symbols used from libc to 10777 # always be unresolved, which means just about no library would 10778 # ever link correctly. If we're not using GNU ld we use -z text 10779 # though, which does catch some bad symbols but isn't as heavy-handed 10780 # as -z defs. 10781 no_undefined_flag='$wl-z,text' 10782 allow_undefined_flag='$wl-z,nodefs' 10783 archive_cmds_need_lc=no 10784 hardcode_shlibpath_var=no 10785 hardcode_libdir_flag_spec='$wl-R,$libdir' 10786 hardcode_libdir_separator=':' 10787 link_all_deplibs=yes 10788 export_dynamic_flag_spec='$wl-Bexport' 10789 runpath_var='LD_RUN_PATH' 10790 10791 if test yes = "$GCC"; then 10792 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10793 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10794 else 10795 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10796 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10797 fi 10798 ;; 10799 10800 uts4*) 10801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10802 hardcode_libdir_flag_spec='-L$libdir' 10803 hardcode_shlibpath_var=no 10804 ;; 10805 10806 *) 10807 ld_shlibs=no 10808 ;; 10809 esac 10810 10811 if test sni = "$host_vendor"; then 10812 case $host in 10813 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10814 export_dynamic_flag_spec='$wl-Blargedynsym' 10815 ;; 10816 esac 10817 fi 10818 fi 10819 10820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10821$as_echo "$ld_shlibs" >&6; } 10822test no = "$ld_shlibs" && can_build_shared=no 10823 10824with_gnu_ld=$with_gnu_ld 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840# 10841# Do we need to explicitly link libc? 10842# 10843case "x$archive_cmds_need_lc" in 10844x|xyes) 10845 # Assume -lc should be added 10846 archive_cmds_need_lc=yes 10847 10848 if test yes,yes = "$GCC,$enable_shared"; then 10849 case $archive_cmds in 10850 *'~'*) 10851 # FIXME: we may have to deal with multi-command sequences. 10852 ;; 10853 '$CC '*) 10854 # Test whether the compiler implicitly links with -lc since on some 10855 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10856 # to ld, don't add -lc before -lgcc. 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10858$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10859if ${lt_cv_archive_cmds_need_lc+:} false; then : 10860 $as_echo_n "(cached) " >&6 10861else 10862 $RM conftest* 10863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10864 10865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10866 (eval $ac_compile) 2>&5 10867 ac_status=$? 10868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10869 test $ac_status = 0; } 2>conftest.err; then 10870 soname=conftest 10871 lib=conftest 10872 libobjs=conftest.$ac_objext 10873 deplibs= 10874 wl=$lt_prog_compiler_wl 10875 pic_flag=$lt_prog_compiler_pic 10876 compiler_flags=-v 10877 linker_flags=-v 10878 verstring= 10879 output_objdir=. 10880 libname=conftest 10881 lt_save_allow_undefined_flag=$allow_undefined_flag 10882 allow_undefined_flag= 10883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10884 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10885 ac_status=$? 10886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10887 test $ac_status = 0; } 10888 then 10889 lt_cv_archive_cmds_need_lc=no 10890 else 10891 lt_cv_archive_cmds_need_lc=yes 10892 fi 10893 allow_undefined_flag=$lt_save_allow_undefined_flag 10894 else 10895 cat conftest.err 1>&5 10896 fi 10897 $RM conftest* 10898 10899fi 10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10901$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10902 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10903 ;; 10904 esac 10905 fi 10906 ;; 10907esac 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11061$as_echo_n "checking dynamic linker characteristics... " >&6; } 11062 11063if test yes = "$GCC"; then 11064 case $host_os in 11065 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11066 *) lt_awk_arg='/^libraries:/' ;; 11067 esac 11068 case $host_os in 11069 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11070 *) lt_sed_strip_eq='s|=/|/|g' ;; 11071 esac 11072 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11073 case $lt_search_path_spec in 11074 *\;*) 11075 # if the path contains ";" then we assume it to be the separator 11076 # otherwise default to the standard path separator (i.e. ":") - it is 11077 # assumed that no part of a normal pathname contains ";" but that should 11078 # okay in the real world where ";" in dirpaths is itself problematic. 11079 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11080 ;; 11081 *) 11082 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11083 ;; 11084 esac 11085 # Ok, now we have the path, separated by spaces, we can step through it 11086 # and add multilib dir if necessary... 11087 lt_tmp_lt_search_path_spec= 11088 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11089 # ...but if some path component already ends with the multilib dir we assume 11090 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11091 case "$lt_multi_os_dir; $lt_search_path_spec " in 11092 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11093 lt_multi_os_dir= 11094 ;; 11095 esac 11096 for lt_sys_path in $lt_search_path_spec; do 11097 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11099 elif test -n "$lt_multi_os_dir"; then 11100 test -d "$lt_sys_path" && \ 11101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11102 fi 11103 done 11104 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11105BEGIN {RS = " "; FS = "/|\n";} { 11106 lt_foo = ""; 11107 lt_count = 0; 11108 for (lt_i = NF; lt_i > 0; lt_i--) { 11109 if ($lt_i != "" && $lt_i != ".") { 11110 if ($lt_i == "..") { 11111 lt_count++; 11112 } else { 11113 if (lt_count == 0) { 11114 lt_foo = "/" $lt_i lt_foo; 11115 } else { 11116 lt_count--; 11117 } 11118 } 11119 } 11120 } 11121 if (lt_foo != "") { lt_freq[lt_foo]++; } 11122 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11123}'` 11124 # AWK program above erroneously prepends '/' to C:/dos/paths 11125 # for these hosts. 11126 case $host_os in 11127 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11128 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11129 esac 11130 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11131else 11132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11133fi 11134library_names_spec= 11135libname_spec='lib$name' 11136soname_spec= 11137shrext_cmds=.so 11138postinstall_cmds= 11139postuninstall_cmds= 11140finish_cmds= 11141finish_eval= 11142shlibpath_var= 11143shlibpath_overrides_runpath=unknown 11144version_type=none 11145dynamic_linker="$host_os ld.so" 11146sys_lib_dlsearch_path_spec="/lib /usr/lib" 11147need_lib_prefix=unknown 11148hardcode_into_libs=no 11149 11150# when you set need_version to no, make sure it does not cause -set_version 11151# flags to be left without arguments 11152need_version=unknown 11153 11154 11155 11156case $host_os in 11157aix3*) 11158 version_type=linux # correct to gnu/linux during the next big refactor 11159 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11160 shlibpath_var=LIBPATH 11161 11162 # AIX 3 has no versioning support, so we append a major version to the name. 11163 soname_spec='$libname$release$shared_ext$major' 11164 ;; 11165 11166aix[4-9]*) 11167 version_type=linux # correct to gnu/linux during the next big refactor 11168 need_lib_prefix=no 11169 need_version=no 11170 hardcode_into_libs=yes 11171 if test ia64 = "$host_cpu"; then 11172 # AIX 5 supports IA64 11173 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11174 shlibpath_var=LD_LIBRARY_PATH 11175 else 11176 # With GCC up to 2.95.x, collect2 would create an import file 11177 # for dependence libraries. The import file would start with 11178 # the line '#! .'. This would cause the generated library to 11179 # depend on '.', always an invalid library. This was fixed in 11180 # development snapshots of GCC prior to 3.0. 11181 case $host_os in 11182 aix4 | aix4.[01] | aix4.[01].*) 11183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11184 echo ' yes ' 11185 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11186 : 11187 else 11188 can_build_shared=no 11189 fi 11190 ;; 11191 esac 11192 # Using Import Files as archive members, it is possible to support 11193 # filename-based versioning of shared library archives on AIX. While 11194 # this would work for both with and without runtime linking, it will 11195 # prevent static linking of such archives. So we do filename-based 11196 # shared library versioning with .so extension only, which is used 11197 # when both runtime linking and shared linking is enabled. 11198 # Unfortunately, runtime linking may impact performance, so we do 11199 # not want this to be the default eventually. Also, we use the 11200 # versioned .so libs for executables only if there is the -brtl 11201 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11202 # To allow for filename-based versioning support, we need to create 11203 # libNAME.so.V as an archive file, containing: 11204 # *) an Import File, referring to the versioned filename of the 11205 # archive as well as the shared archive member, telling the 11206 # bitwidth (32 or 64) of that shared object, and providing the 11207 # list of exported symbols of that shared object, eventually 11208 # decorated with the 'weak' keyword 11209 # *) the shared object with the F_LOADONLY flag set, to really avoid 11210 # it being seen by the linker. 11211 # At run time we better use the real file rather than another symlink, 11212 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11213 11214 case $with_aix_soname,$aix_use_runtimelinking in 11215 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11216 # soname into executable. Probably we can add versioning support to 11217 # collect2, so additional links can be useful in future. 11218 aix,yes) # traditional libtool 11219 dynamic_linker='AIX unversionable lib.so' 11220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11221 # instead of lib<name>.a to let people know that these are not 11222 # typical AIX shared libraries. 11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11224 ;; 11225 aix,no) # traditional AIX only 11226 dynamic_linker='AIX lib.a(lib.so.V)' 11227 # We preserve .a as extension for shared libraries through AIX4.2 11228 # and later when we are not doing run time linking. 11229 library_names_spec='$libname$release.a $libname.a' 11230 soname_spec='$libname$release$shared_ext$major' 11231 ;; 11232 svr4,*) # full svr4 only 11233 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11234 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11235 # We do not specify a path in Import Files, so LIBPATH fires. 11236 shlibpath_overrides_runpath=yes 11237 ;; 11238 *,yes) # both, prefer svr4 11239 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11240 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11241 # unpreferred sharedlib libNAME.a needs extra handling 11242 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"' 11243 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"' 11244 # We do not specify a path in Import Files, so LIBPATH fires. 11245 shlibpath_overrides_runpath=yes 11246 ;; 11247 *,no) # both, prefer aix 11248 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11249 library_names_spec='$libname$release.a $libname.a' 11250 soname_spec='$libname$release$shared_ext$major' 11251 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11252 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)' 11253 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"' 11254 ;; 11255 esac 11256 shlibpath_var=LIBPATH 11257 fi 11258 ;; 11259 11260amigaos*) 11261 case $host_cpu in 11262 powerpc) 11263 # Since July 2007 AmigaOS4 officially supports .so libraries. 11264 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11266 ;; 11267 m68k) 11268 library_names_spec='$libname.ixlibrary $libname.a' 11269 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11270 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' 11271 ;; 11272 esac 11273 ;; 11274 11275beos*) 11276 library_names_spec='$libname$shared_ext' 11277 dynamic_linker="$host_os ld.so" 11278 shlibpath_var=LIBRARY_PATH 11279 ;; 11280 11281bsdi[45]*) 11282 version_type=linux # correct to gnu/linux during the next big refactor 11283 need_version=no 11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11285 soname_spec='$libname$release$shared_ext$major' 11286 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11287 shlibpath_var=LD_LIBRARY_PATH 11288 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11289 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11290 # the default ld.so.conf also contains /usr/contrib/lib and 11291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11292 # libtool to hard-code these into programs 11293 ;; 11294 11295cygwin* | mingw* | pw32* | cegcc*) 11296 version_type=windows 11297 shrext_cmds=.dll 11298 need_version=no 11299 need_lib_prefix=no 11300 11301 case $GCC,$cc_basename in 11302 yes,*) 11303 # gcc 11304 library_names_spec='$libname.dll.a' 11305 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11306 postinstall_cmds='base_file=`basename \$file`~ 11307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11308 dldir=$destdir/`dirname \$dlpath`~ 11309 test -d \$dldir || mkdir -p \$dldir~ 11310 $install_prog $dir/$dlname \$dldir/$dlname~ 11311 chmod a+x \$dldir/$dlname~ 11312 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11313 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11314 fi' 11315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11316 dlpath=$dir/\$dldll~ 11317 $RM \$dlpath' 11318 shlibpath_overrides_runpath=yes 11319 11320 case $host_os in 11321 cygwin*) 11322 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11323 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11324 11325 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11326 ;; 11327 mingw* | cegcc*) 11328 # MinGW DLLs use traditional 'lib' prefix 11329 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11330 ;; 11331 pw32*) 11332 # pw32 DLLs use 'pw' prefix rather than 'lib' 11333 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11334 ;; 11335 esac 11336 dynamic_linker='Win32 ld.exe' 11337 ;; 11338 11339 *,cl*) 11340 # Native MSVC 11341 libname_spec='$name' 11342 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11343 library_names_spec='$libname.dll.lib' 11344 11345 case $build_os in 11346 mingw*) 11347 sys_lib_search_path_spec= 11348 lt_save_ifs=$IFS 11349 IFS=';' 11350 for lt_path in $LIB 11351 do 11352 IFS=$lt_save_ifs 11353 # Let DOS variable expansion print the short 8.3 style file name. 11354 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11355 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11356 done 11357 IFS=$lt_save_ifs 11358 # Convert to MSYS style. 11359 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11360 ;; 11361 cygwin*) 11362 # Convert to unix form, then to dos form, then back to unix form 11363 # but this time dos style (no spaces!) so that the unix form looks 11364 # like /cygdrive/c/PROGRA~1:/cygdr... 11365 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11366 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11367 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11368 ;; 11369 *) 11370 sys_lib_search_path_spec=$LIB 11371 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11372 # It is most probably a Windows format PATH. 11373 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11374 else 11375 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11376 fi 11377 # FIXME: find the short name or the path components, as spaces are 11378 # common. (e.g. "Program Files" -> "PROGRA~1") 11379 ;; 11380 esac 11381 11382 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11383 postinstall_cmds='base_file=`basename \$file`~ 11384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11385 dldir=$destdir/`dirname \$dlpath`~ 11386 test -d \$dldir || mkdir -p \$dldir~ 11387 $install_prog $dir/$dlname \$dldir/$dlname' 11388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11389 dlpath=$dir/\$dldll~ 11390 $RM \$dlpath' 11391 shlibpath_overrides_runpath=yes 11392 dynamic_linker='Win32 link.exe' 11393 ;; 11394 11395 *) 11396 # Assume MSVC wrapper 11397 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11398 dynamic_linker='Win32 ld.exe' 11399 ;; 11400 esac 11401 # FIXME: first we should search . and the directory the executable is in 11402 shlibpath_var=PATH 11403 ;; 11404 11405darwin* | rhapsody*) 11406 dynamic_linker="$host_os dyld" 11407 version_type=darwin 11408 need_lib_prefix=no 11409 need_version=no 11410 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11411 soname_spec='$libname$release$major$shared_ext' 11412 shlibpath_overrides_runpath=yes 11413 shlibpath_var=DYLD_LIBRARY_PATH 11414 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11415 11416 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11417 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11418 ;; 11419 11420dgux*) 11421 version_type=linux # correct to gnu/linux during the next big refactor 11422 need_lib_prefix=no 11423 need_version=no 11424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11425 soname_spec='$libname$release$shared_ext$major' 11426 shlibpath_var=LD_LIBRARY_PATH 11427 ;; 11428 11429freebsd* | dragonfly*) 11430 # DragonFly does not have aout. When/if they implement a new 11431 # versioning mechanism, adjust this. 11432 if test -x /usr/bin/objformat; then 11433 objformat=`/usr/bin/objformat` 11434 else 11435 case $host_os in 11436 freebsd[23].*) objformat=aout ;; 11437 *) objformat=elf ;; 11438 esac 11439 fi 11440 version_type=freebsd-$objformat 11441 case $version_type in 11442 freebsd-elf*) 11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11444 soname_spec='$libname$release$shared_ext$major' 11445 need_version=no 11446 need_lib_prefix=no 11447 ;; 11448 freebsd-*) 11449 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11450 need_version=yes 11451 ;; 11452 esac 11453 shlibpath_var=LD_LIBRARY_PATH 11454 case $host_os in 11455 freebsd2.*) 11456 shlibpath_overrides_runpath=yes 11457 ;; 11458 freebsd3.[01]* | freebsdelf3.[01]*) 11459 shlibpath_overrides_runpath=yes 11460 hardcode_into_libs=yes 11461 ;; 11462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11464 shlibpath_overrides_runpath=no 11465 hardcode_into_libs=yes 11466 ;; 11467 *) # from 4.6 on, and DragonFly 11468 shlibpath_overrides_runpath=yes 11469 hardcode_into_libs=yes 11470 ;; 11471 esac 11472 ;; 11473 11474haiku*) 11475 version_type=linux # correct to gnu/linux during the next big refactor 11476 need_lib_prefix=no 11477 need_version=no 11478 dynamic_linker="$host_os runtime_loader" 11479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11480 soname_spec='$libname$release$shared_ext$major' 11481 shlibpath_var=LIBRARY_PATH 11482 shlibpath_overrides_runpath=no 11483 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11484 hardcode_into_libs=yes 11485 ;; 11486 11487hpux9* | hpux10* | hpux11*) 11488 # Give a soname corresponding to the major version so that dld.sl refuses to 11489 # link against other versions. 11490 version_type=sunos 11491 need_lib_prefix=no 11492 need_version=no 11493 case $host_cpu in 11494 ia64*) 11495 shrext_cmds='.so' 11496 hardcode_into_libs=yes 11497 dynamic_linker="$host_os dld.so" 11498 shlibpath_var=LD_LIBRARY_PATH 11499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11501 soname_spec='$libname$release$shared_ext$major' 11502 if test 32 = "$HPUX_IA64_MODE"; then 11503 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11504 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11505 else 11506 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11507 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11508 fi 11509 ;; 11510 hppa*64*) 11511 shrext_cmds='.sl' 11512 hardcode_into_libs=yes 11513 dynamic_linker="$host_os dld.sl" 11514 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11517 soname_spec='$libname$release$shared_ext$major' 11518 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11520 ;; 11521 *) 11522 shrext_cmds='.sl' 11523 dynamic_linker="$host_os dld.sl" 11524 shlibpath_var=SHLIB_PATH 11525 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11527 soname_spec='$libname$release$shared_ext$major' 11528 ;; 11529 esac 11530 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11531 postinstall_cmds='chmod 555 $lib' 11532 # or fails outright, so override atomically: 11533 install_override_mode=555 11534 ;; 11535 11536interix[3-9]*) 11537 version_type=linux # correct to gnu/linux during the next big refactor 11538 need_lib_prefix=no 11539 need_version=no 11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11541 soname_spec='$libname$release$shared_ext$major' 11542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11543 shlibpath_var=LD_LIBRARY_PATH 11544 shlibpath_overrides_runpath=no 11545 hardcode_into_libs=yes 11546 ;; 11547 11548irix5* | irix6* | nonstopux*) 11549 case $host_os in 11550 nonstopux*) version_type=nonstopux ;; 11551 *) 11552 if test yes = "$lt_cv_prog_gnu_ld"; then 11553 version_type=linux # correct to gnu/linux during the next big refactor 11554 else 11555 version_type=irix 11556 fi ;; 11557 esac 11558 need_lib_prefix=no 11559 need_version=no 11560 soname_spec='$libname$release$shared_ext$major' 11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11562 case $host_os in 11563 irix5* | nonstopux*) 11564 libsuff= shlibsuff= 11565 ;; 11566 *) 11567 case $LD in # libtool.m4 will add one of these switches to LD 11568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11569 libsuff= shlibsuff= libmagic=32-bit;; 11570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11571 libsuff=32 shlibsuff=N32 libmagic=N32;; 11572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11573 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11574 *) libsuff= shlibsuff= libmagic=never-match;; 11575 esac 11576 ;; 11577 esac 11578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11579 shlibpath_overrides_runpath=no 11580 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11581 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11582 hardcode_into_libs=yes 11583 ;; 11584 11585# No shared lib support for Linux oldld, aout, or coff. 11586linux*oldld* | linux*aout* | linux*coff*) 11587 dynamic_linker=no 11588 ;; 11589 11590linux*android*) 11591 version_type=none # Android doesn't support versioned libraries. 11592 need_lib_prefix=no 11593 need_version=no 11594 library_names_spec='$libname$release$shared_ext' 11595 soname_spec='$libname$release$shared_ext' 11596 finish_cmds= 11597 shlibpath_var=LD_LIBRARY_PATH 11598 shlibpath_overrides_runpath=yes 11599 11600 # This implies no fast_install, which is unacceptable. 11601 # Some rework will be needed to allow for fast_install 11602 # before this can be enabled. 11603 hardcode_into_libs=yes 11604 11605 dynamic_linker='Android linker' 11606 # Don't embed -rpath directories since the linker doesn't support them. 11607 hardcode_libdir_flag_spec='-L$libdir' 11608 ;; 11609 11610# This must be glibc/ELF. 11611linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11612 version_type=linux # correct to gnu/linux during the next big refactor 11613 need_lib_prefix=no 11614 need_version=no 11615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11616 soname_spec='$libname$release$shared_ext$major' 11617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11618 shlibpath_var=LD_LIBRARY_PATH 11619 shlibpath_overrides_runpath=no 11620 11621 # Some binutils ld are patched to set DT_RUNPATH 11622 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11623 $as_echo_n "(cached) " >&6 11624else 11625 lt_cv_shlibpath_overrides_runpath=no 11626 save_LDFLAGS=$LDFLAGS 11627 save_libdir=$libdir 11628 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11629 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11631/* end confdefs.h. */ 11632 11633int 11634main () 11635{ 11636 11637 ; 11638 return 0; 11639} 11640_ACEOF 11641if ac_fn_c_try_link "$LINENO"; then : 11642 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11643 lt_cv_shlibpath_overrides_runpath=yes 11644fi 11645fi 11646rm -f core conftest.err conftest.$ac_objext \ 11647 conftest$ac_exeext conftest.$ac_ext 11648 LDFLAGS=$save_LDFLAGS 11649 libdir=$save_libdir 11650 11651fi 11652 11653 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11654 11655 # This implies no fast_install, which is unacceptable. 11656 # Some rework will be needed to allow for fast_install 11657 # before this can be enabled. 11658 hardcode_into_libs=yes 11659 11660 # Ideally, we could use ldconfig to report *all* directores which are 11661 # searched for libraries, however this is still not possible. Aside from not 11662 # being certain /sbin/ldconfig is available, command 11663 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11664 # even though it is searched at run-time. Try to do the best guess by 11665 # appending ld.so.conf contents (and includes) to the search path. 11666 if test -f /etc/ld.so.conf; then 11667 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' ' '` 11668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11669 fi 11670 11671 # We used to test for /lib/ld.so.1 and disable shared libraries on 11672 # powerpc, because MkLinux only supported shared libraries with the 11673 # GNU dynamic linker. Since this was broken with cross compilers, 11674 # most powerpc-linux boxes support dynamic linking these days and 11675 # people can always --disable-shared, the test was removed, and we 11676 # assume the GNU/Linux dynamic linker is in use. 11677 dynamic_linker='GNU/Linux ld.so' 11678 ;; 11679 11680netbsd*) 11681 version_type=sunos 11682 need_lib_prefix=no 11683 need_version=no 11684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11687 dynamic_linker='NetBSD (a.out) ld.so' 11688 else 11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11690 soname_spec='$libname$release$shared_ext$major' 11691 dynamic_linker='NetBSD ld.elf_so' 11692 fi 11693 shlibpath_var=LD_LIBRARY_PATH 11694 shlibpath_overrides_runpath=yes 11695 hardcode_into_libs=yes 11696 ;; 11697 11698newsos6) 11699 version_type=linux # correct to gnu/linux during the next big refactor 11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11701 shlibpath_var=LD_LIBRARY_PATH 11702 shlibpath_overrides_runpath=yes 11703 ;; 11704 11705*nto* | *qnx*) 11706 version_type=qnx 11707 need_lib_prefix=no 11708 need_version=no 11709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11710 soname_spec='$libname$release$shared_ext$major' 11711 shlibpath_var=LD_LIBRARY_PATH 11712 shlibpath_overrides_runpath=no 11713 hardcode_into_libs=yes 11714 dynamic_linker='ldqnx.so' 11715 ;; 11716 11717openbsd* | bitrig*) 11718 version_type=sunos 11719 sys_lib_dlsearch_path_spec=/usr/lib 11720 need_lib_prefix=no 11721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11722 need_version=no 11723 else 11724 need_version=yes 11725 fi 11726 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11728 shlibpath_var=LD_LIBRARY_PATH 11729 shlibpath_overrides_runpath=yes 11730 ;; 11731 11732os2*) 11733 libname_spec='$name' 11734 version_type=windows 11735 shrext_cmds=.dll 11736 need_version=no 11737 need_lib_prefix=no 11738 # OS/2 can only load a DLL with a base name of 8 characters or less. 11739 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11740 v=$($ECHO $release$versuffix | tr -d .-); 11741 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11742 $ECHO $n$v`$shared_ext' 11743 library_names_spec='${libname}_dll.$libext' 11744 dynamic_linker='OS/2 ld.exe' 11745 shlibpath_var=BEGINLIBPATH 11746 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11748 postinstall_cmds='base_file=`basename \$file`~ 11749 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11750 dldir=$destdir/`dirname \$dlpath`~ 11751 test -d \$dldir || mkdir -p \$dldir~ 11752 $install_prog $dir/$dlname \$dldir/$dlname~ 11753 chmod a+x \$dldir/$dlname~ 11754 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11755 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11756 fi' 11757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11758 dlpath=$dir/\$dldll~ 11759 $RM \$dlpath' 11760 ;; 11761 11762osf3* | osf4* | osf5*) 11763 version_type=osf 11764 need_lib_prefix=no 11765 need_version=no 11766 soname_spec='$libname$release$shared_ext$major' 11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11768 shlibpath_var=LD_LIBRARY_PATH 11769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11771 ;; 11772 11773rdos*) 11774 dynamic_linker=no 11775 ;; 11776 11777solaris*) 11778 version_type=linux # correct to gnu/linux during the next big refactor 11779 need_lib_prefix=no 11780 need_version=no 11781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11782 soname_spec='$libname$release$shared_ext$major' 11783 shlibpath_var=LD_LIBRARY_PATH 11784 shlibpath_overrides_runpath=yes 11785 hardcode_into_libs=yes 11786 # ldd complains unless libraries are executable 11787 postinstall_cmds='chmod +x $lib' 11788 ;; 11789 11790sunos4*) 11791 version_type=sunos 11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11793 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11794 shlibpath_var=LD_LIBRARY_PATH 11795 shlibpath_overrides_runpath=yes 11796 if test yes = "$with_gnu_ld"; then 11797 need_lib_prefix=no 11798 fi 11799 need_version=yes 11800 ;; 11801 11802sysv4 | sysv4.3*) 11803 version_type=linux # correct to gnu/linux during the next big refactor 11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11805 soname_spec='$libname$release$shared_ext$major' 11806 shlibpath_var=LD_LIBRARY_PATH 11807 case $host_vendor in 11808 sni) 11809 shlibpath_overrides_runpath=no 11810 need_lib_prefix=no 11811 runpath_var=LD_RUN_PATH 11812 ;; 11813 siemens) 11814 need_lib_prefix=no 11815 ;; 11816 motorola) 11817 need_lib_prefix=no 11818 need_version=no 11819 shlibpath_overrides_runpath=no 11820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11821 ;; 11822 esac 11823 ;; 11824 11825sysv4*MP*) 11826 if test -d /usr/nec; then 11827 version_type=linux # correct to gnu/linux during the next big refactor 11828 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11829 soname_spec='$libname$shared_ext.$major' 11830 shlibpath_var=LD_LIBRARY_PATH 11831 fi 11832 ;; 11833 11834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11835 version_type=sco 11836 need_lib_prefix=no 11837 need_version=no 11838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11839 soname_spec='$libname$release$shared_ext$major' 11840 shlibpath_var=LD_LIBRARY_PATH 11841 shlibpath_overrides_runpath=yes 11842 hardcode_into_libs=yes 11843 if test yes = "$with_gnu_ld"; then 11844 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11845 else 11846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11847 case $host_os in 11848 sco3.2v5*) 11849 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11850 ;; 11851 esac 11852 fi 11853 sys_lib_dlsearch_path_spec='/usr/lib' 11854 ;; 11855 11856tpf*) 11857 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11858 version_type=linux # correct to gnu/linux during the next big refactor 11859 need_lib_prefix=no 11860 need_version=no 11861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11862 shlibpath_var=LD_LIBRARY_PATH 11863 shlibpath_overrides_runpath=no 11864 hardcode_into_libs=yes 11865 ;; 11866 11867uts4*) 11868 version_type=linux # correct to gnu/linux during the next big refactor 11869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11870 soname_spec='$libname$release$shared_ext$major' 11871 shlibpath_var=LD_LIBRARY_PATH 11872 ;; 11873 11874*) 11875 dynamic_linker=no 11876 ;; 11877esac 11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11879$as_echo "$dynamic_linker" >&6; } 11880test no = "$dynamic_linker" && can_build_shared=no 11881 11882variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11883if test yes = "$GCC"; then 11884 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11885fi 11886 11887if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11888 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11889fi 11890 11891if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11892 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11893fi 11894 11895# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11896configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11897 11898# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11899func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11900 11901# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11902configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12001$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12002hardcode_action= 12003if test -n "$hardcode_libdir_flag_spec" || 12004 test -n "$runpath_var" || 12005 test yes = "$hardcode_automatic"; then 12006 12007 # We can hardcode non-existent directories. 12008 if test no != "$hardcode_direct" && 12009 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12010 # have to relink, otherwise we might link with an installed library 12011 # when we should be linking with a yet-to-be-installed one 12012 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12013 test no != "$hardcode_minus_L"; then 12014 # Linking always hardcodes the temporary library directory. 12015 hardcode_action=relink 12016 else 12017 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12018 hardcode_action=immediate 12019 fi 12020else 12021 # We cannot hardcode anything, or else we can only hardcode existing 12022 # directories. 12023 hardcode_action=unsupported 12024fi 12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12026$as_echo "$hardcode_action" >&6; } 12027 12028if test relink = "$hardcode_action" || 12029 test yes = "$inherit_rpath"; then 12030 # Fast installation is not supported 12031 enable_fast_install=no 12032elif test yes = "$shlibpath_overrides_runpath" || 12033 test no = "$enable_shared"; then 12034 # Fast installation is not necessary 12035 enable_fast_install=needless 12036fi 12037 12038 12039 12040 12041 12042 12043 if test yes != "$enable_dlopen"; then 12044 enable_dlopen=unknown 12045 enable_dlopen_self=unknown 12046 enable_dlopen_self_static=unknown 12047else 12048 lt_cv_dlopen=no 12049 lt_cv_dlopen_libs= 12050 12051 case $host_os in 12052 beos*) 12053 lt_cv_dlopen=load_add_on 12054 lt_cv_dlopen_libs= 12055 lt_cv_dlopen_self=yes 12056 ;; 12057 12058 mingw* | pw32* | cegcc*) 12059 lt_cv_dlopen=LoadLibrary 12060 lt_cv_dlopen_libs= 12061 ;; 12062 12063 cygwin*) 12064 lt_cv_dlopen=dlopen 12065 lt_cv_dlopen_libs= 12066 ;; 12067 12068 darwin*) 12069 # if libdl is installed we need to link against it 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12071$as_echo_n "checking for dlopen in -ldl... " >&6; } 12072if ${ac_cv_lib_dl_dlopen+:} false; then : 12073 $as_echo_n "(cached) " >&6 12074else 12075 ac_check_lib_save_LIBS=$LIBS 12076LIBS="-ldl $LIBS" 12077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12078/* end confdefs.h. */ 12079 12080/* Override any GCC internal prototype to avoid an error. 12081 Use char because int might match the return type of a GCC 12082 builtin and then its argument prototype would still apply. */ 12083#ifdef __cplusplus 12084extern "C" 12085#endif 12086char dlopen (); 12087int 12088main () 12089{ 12090return dlopen (); 12091 ; 12092 return 0; 12093} 12094_ACEOF 12095if ac_fn_c_try_link "$LINENO"; then : 12096 ac_cv_lib_dl_dlopen=yes 12097else 12098 ac_cv_lib_dl_dlopen=no 12099fi 12100rm -f core conftest.err conftest.$ac_objext \ 12101 conftest$ac_exeext conftest.$ac_ext 12102LIBS=$ac_check_lib_save_LIBS 12103fi 12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12105$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12106if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12107 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12108else 12109 12110 lt_cv_dlopen=dyld 12111 lt_cv_dlopen_libs= 12112 lt_cv_dlopen_self=yes 12113 12114fi 12115 12116 ;; 12117 12118 tpf*) 12119 # Don't try to run any link tests for TPF. We know it's impossible 12120 # because TPF is a cross-compiler, and we know how we open DSOs. 12121 lt_cv_dlopen=dlopen 12122 lt_cv_dlopen_libs= 12123 lt_cv_dlopen_self=no 12124 ;; 12125 12126 *) 12127 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12128if test "x$ac_cv_func_shl_load" = xyes; then : 12129 lt_cv_dlopen=shl_load 12130else 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12132$as_echo_n "checking for shl_load in -ldld... " >&6; } 12133if ${ac_cv_lib_dld_shl_load+:} false; then : 12134 $as_echo_n "(cached) " >&6 12135else 12136 ac_check_lib_save_LIBS=$LIBS 12137LIBS="-ldld $LIBS" 12138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12139/* end confdefs.h. */ 12140 12141/* Override any GCC internal prototype to avoid an error. 12142 Use char because int might match the return type of a GCC 12143 builtin and then its argument prototype would still apply. */ 12144#ifdef __cplusplus 12145extern "C" 12146#endif 12147char shl_load (); 12148int 12149main () 12150{ 12151return shl_load (); 12152 ; 12153 return 0; 12154} 12155_ACEOF 12156if ac_fn_c_try_link "$LINENO"; then : 12157 ac_cv_lib_dld_shl_load=yes 12158else 12159 ac_cv_lib_dld_shl_load=no 12160fi 12161rm -f core conftest.err conftest.$ac_objext \ 12162 conftest$ac_exeext conftest.$ac_ext 12163LIBS=$ac_check_lib_save_LIBS 12164fi 12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12166$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12167if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12168 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12169else 12170 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12171if test "x$ac_cv_func_dlopen" = xyes; then : 12172 lt_cv_dlopen=dlopen 12173else 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12175$as_echo_n "checking for dlopen in -ldl... " >&6; } 12176if ${ac_cv_lib_dl_dlopen+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 ac_check_lib_save_LIBS=$LIBS 12180LIBS="-ldl $LIBS" 12181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12182/* end confdefs.h. */ 12183 12184/* Override any GCC internal prototype to avoid an error. 12185 Use char because int might match the return type of a GCC 12186 builtin and then its argument prototype would still apply. */ 12187#ifdef __cplusplus 12188extern "C" 12189#endif 12190char dlopen (); 12191int 12192main () 12193{ 12194return dlopen (); 12195 ; 12196 return 0; 12197} 12198_ACEOF 12199if ac_fn_c_try_link "$LINENO"; then : 12200 ac_cv_lib_dl_dlopen=yes 12201else 12202 ac_cv_lib_dl_dlopen=no 12203fi 12204rm -f core conftest.err conftest.$ac_objext \ 12205 conftest$ac_exeext conftest.$ac_ext 12206LIBS=$ac_check_lib_save_LIBS 12207fi 12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12209$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12210if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12211 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12212else 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12214$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12215if ${ac_cv_lib_svld_dlopen+:} false; then : 12216 $as_echo_n "(cached) " >&6 12217else 12218 ac_check_lib_save_LIBS=$LIBS 12219LIBS="-lsvld $LIBS" 12220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12221/* end confdefs.h. */ 12222 12223/* Override any GCC internal prototype to avoid an error. 12224 Use char because int might match the return type of a GCC 12225 builtin and then its argument prototype would still apply. */ 12226#ifdef __cplusplus 12227extern "C" 12228#endif 12229char dlopen (); 12230int 12231main () 12232{ 12233return dlopen (); 12234 ; 12235 return 0; 12236} 12237_ACEOF 12238if ac_fn_c_try_link "$LINENO"; then : 12239 ac_cv_lib_svld_dlopen=yes 12240else 12241 ac_cv_lib_svld_dlopen=no 12242fi 12243rm -f core conftest.err conftest.$ac_objext \ 12244 conftest$ac_exeext conftest.$ac_ext 12245LIBS=$ac_check_lib_save_LIBS 12246fi 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12248$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12249if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12250 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12251else 12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12253$as_echo_n "checking for dld_link in -ldld... " >&6; } 12254if ${ac_cv_lib_dld_dld_link+:} false; then : 12255 $as_echo_n "(cached) " >&6 12256else 12257 ac_check_lib_save_LIBS=$LIBS 12258LIBS="-ldld $LIBS" 12259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12260/* end confdefs.h. */ 12261 12262/* Override any GCC internal prototype to avoid an error. 12263 Use char because int might match the return type of a GCC 12264 builtin and then its argument prototype would still apply. */ 12265#ifdef __cplusplus 12266extern "C" 12267#endif 12268char dld_link (); 12269int 12270main () 12271{ 12272return dld_link (); 12273 ; 12274 return 0; 12275} 12276_ACEOF 12277if ac_fn_c_try_link "$LINENO"; then : 12278 ac_cv_lib_dld_dld_link=yes 12279else 12280 ac_cv_lib_dld_dld_link=no 12281fi 12282rm -f core conftest.err conftest.$ac_objext \ 12283 conftest$ac_exeext conftest.$ac_ext 12284LIBS=$ac_check_lib_save_LIBS 12285fi 12286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12287$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12288if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12289 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12290fi 12291 12292 12293fi 12294 12295 12296fi 12297 12298 12299fi 12300 12301 12302fi 12303 12304 12305fi 12306 12307 ;; 12308 esac 12309 12310 if test no = "$lt_cv_dlopen"; then 12311 enable_dlopen=no 12312 else 12313 enable_dlopen=yes 12314 fi 12315 12316 case $lt_cv_dlopen in 12317 dlopen) 12318 save_CPPFLAGS=$CPPFLAGS 12319 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12320 12321 save_LDFLAGS=$LDFLAGS 12322 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12323 12324 save_LIBS=$LIBS 12325 LIBS="$lt_cv_dlopen_libs $LIBS" 12326 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12328$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12329if ${lt_cv_dlopen_self+:} false; then : 12330 $as_echo_n "(cached) " >&6 12331else 12332 if test yes = "$cross_compiling"; then : 12333 lt_cv_dlopen_self=cross 12334else 12335 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12336 lt_status=$lt_dlunknown 12337 cat > conftest.$ac_ext <<_LT_EOF 12338#line $LINENO "configure" 12339#include "confdefs.h" 12340 12341#if HAVE_DLFCN_H 12342#include <dlfcn.h> 12343#endif 12344 12345#include <stdio.h> 12346 12347#ifdef RTLD_GLOBAL 12348# define LT_DLGLOBAL RTLD_GLOBAL 12349#else 12350# ifdef DL_GLOBAL 12351# define LT_DLGLOBAL DL_GLOBAL 12352# else 12353# define LT_DLGLOBAL 0 12354# endif 12355#endif 12356 12357/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12358 find out it does not work in some platform. */ 12359#ifndef LT_DLLAZY_OR_NOW 12360# ifdef RTLD_LAZY 12361# define LT_DLLAZY_OR_NOW RTLD_LAZY 12362# else 12363# ifdef DL_LAZY 12364# define LT_DLLAZY_OR_NOW DL_LAZY 12365# else 12366# ifdef RTLD_NOW 12367# define LT_DLLAZY_OR_NOW RTLD_NOW 12368# else 12369# ifdef DL_NOW 12370# define LT_DLLAZY_OR_NOW DL_NOW 12371# else 12372# define LT_DLLAZY_OR_NOW 0 12373# endif 12374# endif 12375# endif 12376# endif 12377#endif 12378 12379/* When -fvisibility=hidden is used, assume the code has been annotated 12380 correspondingly for the symbols needed. */ 12381#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12382int fnord () __attribute__((visibility("default"))); 12383#endif 12384 12385int fnord () { return 42; } 12386int main () 12387{ 12388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12389 int status = $lt_dlunknown; 12390 12391 if (self) 12392 { 12393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12394 else 12395 { 12396 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12397 else puts (dlerror ()); 12398 } 12399 /* dlclose (self); */ 12400 } 12401 else 12402 puts (dlerror ()); 12403 12404 return status; 12405} 12406_LT_EOF 12407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12408 (eval $ac_link) 2>&5 12409 ac_status=$? 12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12411 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12412 (./conftest; exit; ) >&5 2>/dev/null 12413 lt_status=$? 12414 case x$lt_status in 12415 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12416 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12417 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12418 esac 12419 else : 12420 # compilation failed 12421 lt_cv_dlopen_self=no 12422 fi 12423fi 12424rm -fr conftest* 12425 12426 12427fi 12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12429$as_echo "$lt_cv_dlopen_self" >&6; } 12430 12431 if test yes = "$lt_cv_dlopen_self"; then 12432 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12434$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12435if ${lt_cv_dlopen_self_static+:} false; then : 12436 $as_echo_n "(cached) " >&6 12437else 12438 if test yes = "$cross_compiling"; then : 12439 lt_cv_dlopen_self_static=cross 12440else 12441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12442 lt_status=$lt_dlunknown 12443 cat > conftest.$ac_ext <<_LT_EOF 12444#line $LINENO "configure" 12445#include "confdefs.h" 12446 12447#if HAVE_DLFCN_H 12448#include <dlfcn.h> 12449#endif 12450 12451#include <stdio.h> 12452 12453#ifdef RTLD_GLOBAL 12454# define LT_DLGLOBAL RTLD_GLOBAL 12455#else 12456# ifdef DL_GLOBAL 12457# define LT_DLGLOBAL DL_GLOBAL 12458# else 12459# define LT_DLGLOBAL 0 12460# endif 12461#endif 12462 12463/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12464 find out it does not work in some platform. */ 12465#ifndef LT_DLLAZY_OR_NOW 12466# ifdef RTLD_LAZY 12467# define LT_DLLAZY_OR_NOW RTLD_LAZY 12468# else 12469# ifdef DL_LAZY 12470# define LT_DLLAZY_OR_NOW DL_LAZY 12471# else 12472# ifdef RTLD_NOW 12473# define LT_DLLAZY_OR_NOW RTLD_NOW 12474# else 12475# ifdef DL_NOW 12476# define LT_DLLAZY_OR_NOW DL_NOW 12477# else 12478# define LT_DLLAZY_OR_NOW 0 12479# endif 12480# endif 12481# endif 12482# endif 12483#endif 12484 12485/* When -fvisibility=hidden is used, assume the code has been annotated 12486 correspondingly for the symbols needed. */ 12487#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12488int fnord () __attribute__((visibility("default"))); 12489#endif 12490 12491int fnord () { return 42; } 12492int main () 12493{ 12494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12495 int status = $lt_dlunknown; 12496 12497 if (self) 12498 { 12499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12500 else 12501 { 12502 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12503 else puts (dlerror ()); 12504 } 12505 /* dlclose (self); */ 12506 } 12507 else 12508 puts (dlerror ()); 12509 12510 return status; 12511} 12512_LT_EOF 12513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12514 (eval $ac_link) 2>&5 12515 ac_status=$? 12516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12517 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12518 (./conftest; exit; ) >&5 2>/dev/null 12519 lt_status=$? 12520 case x$lt_status in 12521 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12522 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12523 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12524 esac 12525 else : 12526 # compilation failed 12527 lt_cv_dlopen_self_static=no 12528 fi 12529fi 12530rm -fr conftest* 12531 12532 12533fi 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12535$as_echo "$lt_cv_dlopen_self_static" >&6; } 12536 fi 12537 12538 CPPFLAGS=$save_CPPFLAGS 12539 LDFLAGS=$save_LDFLAGS 12540 LIBS=$save_LIBS 12541 ;; 12542 esac 12543 12544 case $lt_cv_dlopen_self in 12545 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12546 *) enable_dlopen_self=unknown ;; 12547 esac 12548 12549 case $lt_cv_dlopen_self_static in 12550 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12551 *) enable_dlopen_self_static=unknown ;; 12552 esac 12553fi 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571striplib= 12572old_striplib= 12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12574$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12575if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12576 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12577 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12579$as_echo "yes" >&6; } 12580else 12581# FIXME - insert some real tests, host_os isn't really good enough 12582 case $host_os in 12583 darwin*) 12584 if test -n "$STRIP"; then 12585 striplib="$STRIP -x" 12586 old_striplib="$STRIP -S" 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12588$as_echo "yes" >&6; } 12589 else 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12591$as_echo "no" >&6; } 12592 fi 12593 ;; 12594 *) 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12596$as_echo "no" >&6; } 12597 ;; 12598 esac 12599fi 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 # Report what library types will actually be built 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12614$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12616$as_echo "$can_build_shared" >&6; } 12617 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12619$as_echo_n "checking whether to build shared libraries... " >&6; } 12620 test no = "$can_build_shared" && enable_shared=no 12621 12622 # On AIX, shared libraries and static libraries use the same namespace, and 12623 # are all built from PIC. 12624 case $host_os in 12625 aix3*) 12626 test yes = "$enable_shared" && enable_static=no 12627 if test -n "$RANLIB"; then 12628 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12629 postinstall_cmds='$RANLIB $lib' 12630 fi 12631 ;; 12632 12633 aix[4-9]*) 12634 if test ia64 != "$host_cpu"; then 12635 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12636 yes,aix,yes) ;; # shared object as lib.so file only 12637 yes,svr4,*) ;; # shared object as lib.so archive member only 12638 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12639 esac 12640 fi 12641 ;; 12642 esac 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12644$as_echo "$enable_shared" >&6; } 12645 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12647$as_echo_n "checking whether to build static libraries... " >&6; } 12648 # Make sure either enable_shared or enable_static is yes. 12649 test yes = "$enable_shared" || enable_static=yes 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12651$as_echo "$enable_static" >&6; } 12652 12653 12654 12655 12656fi 12657ac_ext=c 12658ac_cpp='$CPP $CPPFLAGS' 12659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12661ac_compiler_gnu=$ac_cv_c_compiler_gnu 12662 12663CC=$lt_save_CC 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 ac_config_commands="$ac_config_commands libtool" 12680 12681 12682 12683 12684# Only expand once: 12685 12686 12687 12688 12689ac_ext=c 12690ac_cpp='$CPP $CPPFLAGS' 12691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12693ac_compiler_gnu=$ac_cv_c_compiler_gnu 12694if test -n "$ac_tool_prefix"; then 12695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12696set dummy ${ac_tool_prefix}gcc; ac_word=$2 12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12698$as_echo_n "checking for $ac_word... " >&6; } 12699if ${ac_cv_prog_CC+:} false; then : 12700 $as_echo_n "(cached) " >&6 12701else 12702 if test -n "$CC"; then 12703 ac_cv_prog_CC="$CC" # Let the user override the test. 12704else 12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12706for as_dir in $PATH 12707do 12708 IFS=$as_save_IFS 12709 test -z "$as_dir" && as_dir=. 12710 for ac_exec_ext in '' $ac_executable_extensions; do 12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12712 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12714 break 2 12715 fi 12716done 12717 done 12718IFS=$as_save_IFS 12719 12720fi 12721fi 12722CC=$ac_cv_prog_CC 12723if test -n "$CC"; then 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12725$as_echo "$CC" >&6; } 12726else 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12728$as_echo "no" >&6; } 12729fi 12730 12731 12732fi 12733if test -z "$ac_cv_prog_CC"; then 12734 ac_ct_CC=$CC 12735 # Extract the first word of "gcc", so it can be a program name with args. 12736set dummy gcc; ac_word=$2 12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12738$as_echo_n "checking for $ac_word... " >&6; } 12739if ${ac_cv_prog_ac_ct_CC+:} false; then : 12740 $as_echo_n "(cached) " >&6 12741else 12742 if test -n "$ac_ct_CC"; then 12743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12744else 12745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12746for as_dir in $PATH 12747do 12748 IFS=$as_save_IFS 12749 test -z "$as_dir" && as_dir=. 12750 for ac_exec_ext in '' $ac_executable_extensions; do 12751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12752 ac_cv_prog_ac_ct_CC="gcc" 12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12754 break 2 12755 fi 12756done 12757 done 12758IFS=$as_save_IFS 12759 12760fi 12761fi 12762ac_ct_CC=$ac_cv_prog_ac_ct_CC 12763if test -n "$ac_ct_CC"; then 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12765$as_echo "$ac_ct_CC" >&6; } 12766else 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12768$as_echo "no" >&6; } 12769fi 12770 12771 if test "x$ac_ct_CC" = x; then 12772 CC="" 12773 else 12774 case $cross_compiling:$ac_tool_warned in 12775yes:) 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12778ac_tool_warned=yes ;; 12779esac 12780 CC=$ac_ct_CC 12781 fi 12782else 12783 CC="$ac_cv_prog_CC" 12784fi 12785 12786if test -z "$CC"; then 12787 if test -n "$ac_tool_prefix"; then 12788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12789set dummy ${ac_tool_prefix}cc; ac_word=$2 12790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12791$as_echo_n "checking for $ac_word... " >&6; } 12792if ${ac_cv_prog_CC+:} false; then : 12793 $as_echo_n "(cached) " >&6 12794else 12795 if test -n "$CC"; then 12796 ac_cv_prog_CC="$CC" # Let the user override the test. 12797else 12798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12799for as_dir in $PATH 12800do 12801 IFS=$as_save_IFS 12802 test -z "$as_dir" && as_dir=. 12803 for ac_exec_ext in '' $ac_executable_extensions; do 12804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12805 ac_cv_prog_CC="${ac_tool_prefix}cc" 12806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12807 break 2 12808 fi 12809done 12810 done 12811IFS=$as_save_IFS 12812 12813fi 12814fi 12815CC=$ac_cv_prog_CC 12816if test -n "$CC"; then 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12818$as_echo "$CC" >&6; } 12819else 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12821$as_echo "no" >&6; } 12822fi 12823 12824 12825 fi 12826fi 12827if test -z "$CC"; then 12828 # Extract the first word of "cc", so it can be a program name with args. 12829set dummy cc; ac_word=$2 12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12831$as_echo_n "checking for $ac_word... " >&6; } 12832if ${ac_cv_prog_CC+:} false; then : 12833 $as_echo_n "(cached) " >&6 12834else 12835 if test -n "$CC"; then 12836 ac_cv_prog_CC="$CC" # Let the user override the test. 12837else 12838 ac_prog_rejected=no 12839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12840for as_dir in $PATH 12841do 12842 IFS=$as_save_IFS 12843 test -z "$as_dir" && as_dir=. 12844 for ac_exec_ext in '' $ac_executable_extensions; do 12845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12847 ac_prog_rejected=yes 12848 continue 12849 fi 12850 ac_cv_prog_CC="cc" 12851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12852 break 2 12853 fi 12854done 12855 done 12856IFS=$as_save_IFS 12857 12858if test $ac_prog_rejected = yes; then 12859 # We found a bogon in the path, so make sure we never use it. 12860 set dummy $ac_cv_prog_CC 12861 shift 12862 if test $# != 0; then 12863 # We chose a different compiler from the bogus one. 12864 # However, it has the same basename, so the bogon will be chosen 12865 # first if we set CC to just the basename; use the full file name. 12866 shift 12867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12868 fi 12869fi 12870fi 12871fi 12872CC=$ac_cv_prog_CC 12873if test -n "$CC"; then 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12875$as_echo "$CC" >&6; } 12876else 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12878$as_echo "no" >&6; } 12879fi 12880 12881 12882fi 12883if test -z "$CC"; then 12884 if test -n "$ac_tool_prefix"; then 12885 for ac_prog in cl.exe 12886 do 12887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12890$as_echo_n "checking for $ac_word... " >&6; } 12891if ${ac_cv_prog_CC+:} false; then : 12892 $as_echo_n "(cached) " >&6 12893else 12894 if test -n "$CC"; then 12895 ac_cv_prog_CC="$CC" # Let the user override the test. 12896else 12897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12898for as_dir in $PATH 12899do 12900 IFS=$as_save_IFS 12901 test -z "$as_dir" && as_dir=. 12902 for ac_exec_ext in '' $ac_executable_extensions; do 12903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12906 break 2 12907 fi 12908done 12909 done 12910IFS=$as_save_IFS 12911 12912fi 12913fi 12914CC=$ac_cv_prog_CC 12915if test -n "$CC"; then 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12917$as_echo "$CC" >&6; } 12918else 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12920$as_echo "no" >&6; } 12921fi 12922 12923 12924 test -n "$CC" && break 12925 done 12926fi 12927if test -z "$CC"; then 12928 ac_ct_CC=$CC 12929 for ac_prog in cl.exe 12930do 12931 # Extract the first word of "$ac_prog", so it can be a program name with args. 12932set dummy $ac_prog; ac_word=$2 12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12934$as_echo_n "checking for $ac_word... " >&6; } 12935if ${ac_cv_prog_ac_ct_CC+:} false; then : 12936 $as_echo_n "(cached) " >&6 12937else 12938 if test -n "$ac_ct_CC"; then 12939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12940else 12941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12942for as_dir in $PATH 12943do 12944 IFS=$as_save_IFS 12945 test -z "$as_dir" && as_dir=. 12946 for ac_exec_ext in '' $ac_executable_extensions; do 12947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12948 ac_cv_prog_ac_ct_CC="$ac_prog" 12949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12950 break 2 12951 fi 12952done 12953 done 12954IFS=$as_save_IFS 12955 12956fi 12957fi 12958ac_ct_CC=$ac_cv_prog_ac_ct_CC 12959if test -n "$ac_ct_CC"; then 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12961$as_echo "$ac_ct_CC" >&6; } 12962else 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12964$as_echo "no" >&6; } 12965fi 12966 12967 12968 test -n "$ac_ct_CC" && break 12969done 12970 12971 if test "x$ac_ct_CC" = x; then 12972 CC="" 12973 else 12974 case $cross_compiling:$ac_tool_warned in 12975yes:) 12976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12978ac_tool_warned=yes ;; 12979esac 12980 CC=$ac_ct_CC 12981 fi 12982fi 12983 12984fi 12985 12986 12987test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12989as_fn_error $? "no acceptable C compiler found in \$PATH 12990See \`config.log' for more details" "$LINENO" 5; } 12991 12992# Provide some information about the compiler. 12993$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12994set X $ac_compile 12995ac_compiler=$2 12996for ac_option in --version -v -V -qversion; do 12997 { { ac_try="$ac_compiler $ac_option >&5" 12998case "(($ac_try" in 12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13000 *) ac_try_echo=$ac_try;; 13001esac 13002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13003$as_echo "$ac_try_echo"; } >&5 13004 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13005 ac_status=$? 13006 if test -s conftest.err; then 13007 sed '10a\ 13008... rest of stderr output deleted ... 13009 10q' conftest.err >conftest.er1 13010 cat conftest.er1 >&5 13011 fi 13012 rm -f conftest.er1 conftest.err 13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13014 test $ac_status = 0; } 13015done 13016 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 13018$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 13019if ${ac_cv_c_compiler_gnu+:} false; then : 13020 $as_echo_n "(cached) " >&6 13021else 13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13023/* end confdefs.h. */ 13024 13025int 13026main () 13027{ 13028#ifndef __GNUC__ 13029 choke me 13030#endif 13031 13032 ; 13033 return 0; 13034} 13035_ACEOF 13036if ac_fn_c_try_compile "$LINENO"; then : 13037 ac_compiler_gnu=yes 13038else 13039 ac_compiler_gnu=no 13040fi 13041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13042ac_cv_c_compiler_gnu=$ac_compiler_gnu 13043 13044fi 13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13046$as_echo "$ac_cv_c_compiler_gnu" >&6; } 13047if test $ac_compiler_gnu = yes; then 13048 GCC=yes 13049else 13050 GCC= 13051fi 13052ac_test_CFLAGS=${CFLAGS+set} 13053ac_save_CFLAGS=$CFLAGS 13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13055$as_echo_n "checking whether $CC accepts -g... " >&6; } 13056if ${ac_cv_prog_cc_g+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 ac_save_c_werror_flag=$ac_c_werror_flag 13060 ac_c_werror_flag=yes 13061 ac_cv_prog_cc_g=no 13062 CFLAGS="-g" 13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13064/* end confdefs.h. */ 13065 13066int 13067main () 13068{ 13069 13070 ; 13071 return 0; 13072} 13073_ACEOF 13074if ac_fn_c_try_compile "$LINENO"; then : 13075 ac_cv_prog_cc_g=yes 13076else 13077 CFLAGS="" 13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13079/* end confdefs.h. */ 13080 13081int 13082main () 13083{ 13084 13085 ; 13086 return 0; 13087} 13088_ACEOF 13089if ac_fn_c_try_compile "$LINENO"; then : 13090 13091else 13092 ac_c_werror_flag=$ac_save_c_werror_flag 13093 CFLAGS="-g" 13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13095/* end confdefs.h. */ 13096 13097int 13098main () 13099{ 13100 13101 ; 13102 return 0; 13103} 13104_ACEOF 13105if ac_fn_c_try_compile "$LINENO"; then : 13106 ac_cv_prog_cc_g=yes 13107fi 13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13109fi 13110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13111fi 13112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13113 ac_c_werror_flag=$ac_save_c_werror_flag 13114fi 13115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13116$as_echo "$ac_cv_prog_cc_g" >&6; } 13117if test "$ac_test_CFLAGS" = set; then 13118 CFLAGS=$ac_save_CFLAGS 13119elif test $ac_cv_prog_cc_g = yes; then 13120 if test "$GCC" = yes; then 13121 CFLAGS="-g -O2" 13122 else 13123 CFLAGS="-g" 13124 fi 13125else 13126 if test "$GCC" = yes; then 13127 CFLAGS="-O2" 13128 else 13129 CFLAGS= 13130 fi 13131fi 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13133$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13134if ${ac_cv_prog_cc_c89+:} false; then : 13135 $as_echo_n "(cached) " >&6 13136else 13137 ac_cv_prog_cc_c89=no 13138ac_save_CC=$CC 13139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13140/* end confdefs.h. */ 13141#include <stdarg.h> 13142#include <stdio.h> 13143struct stat; 13144/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13145struct buf { int x; }; 13146FILE * (*rcsopen) (struct buf *, struct stat *, int); 13147static char *e (p, i) 13148 char **p; 13149 int i; 13150{ 13151 return p[i]; 13152} 13153static char *f (char * (*g) (char **, int), char **p, ...) 13154{ 13155 char *s; 13156 va_list v; 13157 va_start (v,p); 13158 s = g (p, va_arg (v,int)); 13159 va_end (v); 13160 return s; 13161} 13162 13163/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13164 function prototypes and stuff, but not '\xHH' hex character constants. 13165 These don't provoke an error unfortunately, instead are silently treated 13166 as 'x'. The following induces an error, until -std is added to get 13167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13168 array size at least. It's necessary to write '\x00'==0 to get something 13169 that's true only with -std. */ 13170int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13171 13172/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13173 inside strings and character constants. */ 13174#define FOO(x) 'x' 13175int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13176 13177int test (int i, double x); 13178struct s1 {int (*f) (int a);}; 13179struct s2 {int (*f) (double a);}; 13180int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13181int argc; 13182char **argv; 13183int 13184main () 13185{ 13186return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13187 ; 13188 return 0; 13189} 13190_ACEOF 13191for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13193do 13194 CC="$ac_save_CC $ac_arg" 13195 if ac_fn_c_try_compile "$LINENO"; then : 13196 ac_cv_prog_cc_c89=$ac_arg 13197fi 13198rm -f core conftest.err conftest.$ac_objext 13199 test "x$ac_cv_prog_cc_c89" != "xno" && break 13200done 13201rm -f conftest.$ac_ext 13202CC=$ac_save_CC 13203 13204fi 13205# AC_CACHE_VAL 13206case "x$ac_cv_prog_cc_c89" in 13207 x) 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13209$as_echo "none needed" >&6; } ;; 13210 xno) 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13212$as_echo "unsupported" >&6; } ;; 13213 *) 13214 CC="$CC $ac_cv_prog_cc_c89" 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13216$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13217esac 13218if test "x$ac_cv_prog_cc_c89" != xno; then : 13219 13220fi 13221 13222ac_ext=c 13223ac_cpp='$CPP $CPPFLAGS' 13224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13226ac_compiler_gnu=$ac_cv_c_compiler_gnu 13227 13228ac_ext=c 13229ac_cpp='$CPP $CPPFLAGS' 13230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13232ac_compiler_gnu=$ac_cv_c_compiler_gnu 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13234$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13235if ${am_cv_prog_cc_c_o+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13239/* end confdefs.h. */ 13240 13241int 13242main () 13243{ 13244 13245 ; 13246 return 0; 13247} 13248_ACEOF 13249 # Make sure it works both with $CC and with simple cc. 13250 # Following AC_PROG_CC_C_O, we do the test twice because some 13251 # compilers refuse to overwrite an existing .o file with -o, 13252 # though they will create one. 13253 am_cv_prog_cc_c_o=yes 13254 for am_i in 1 2; do 13255 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13256 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13257 ac_status=$? 13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13259 (exit $ac_status); } \ 13260 && test -f conftest2.$ac_objext; then 13261 : OK 13262 else 13263 am_cv_prog_cc_c_o=no 13264 break 13265 fi 13266 done 13267 rm -f core conftest* 13268 unset am_i 13269fi 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13271$as_echo "$am_cv_prog_cc_c_o" >&6; } 13272if test "$am_cv_prog_cc_c_o" != yes; then 13273 # Losing compiler, so override with the script. 13274 # FIXME: It is wrong to rewrite CC. 13275 # But if we don't then we get into trouble of one sort or another. 13276 # A longer-term fix would be to have automake use am__CC in this case, 13277 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13278 CC="$am_aux_dir/compile $CC" 13279fi 13280ac_ext=c 13281ac_cpp='$CPP $CPPFLAGS' 13282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13284ac_compiler_gnu=$ac_cv_c_compiler_gnu 13285 13286 13287depcc="$CC" am_compiler_list= 13288 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13290$as_echo_n "checking dependency style of $depcc... " >&6; } 13291if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13292 $as_echo_n "(cached) " >&6 13293else 13294 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13295 # We make a subdir and do the tests there. Otherwise we can end up 13296 # making bogus files that we don't know about and never remove. For 13297 # instance it was reported that on HP-UX the gcc test will end up 13298 # making a dummy file named 'D' -- because '-MD' means "put the output 13299 # in D". 13300 rm -rf conftest.dir 13301 mkdir conftest.dir 13302 # Copy depcomp to subdir because otherwise we won't find it if we're 13303 # using a relative directory. 13304 cp "$am_depcomp" conftest.dir 13305 cd conftest.dir 13306 # We will build objects and dependencies in a subdirectory because 13307 # it helps to detect inapplicable dependency modes. For instance 13308 # both Tru64's cc and ICC support -MD to output dependencies as a 13309 # side effect of compilation, but ICC will put the dependencies in 13310 # the current directory while Tru64 will put them in the object 13311 # directory. 13312 mkdir sub 13313 13314 am_cv_CC_dependencies_compiler_type=none 13315 if test "$am_compiler_list" = ""; then 13316 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13317 fi 13318 am__universal=false 13319 case " $depcc " in #( 13320 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13321 esac 13322 13323 for depmode in $am_compiler_list; do 13324 # Setup a source with many dependencies, because some compilers 13325 # like to wrap large dependency lists on column 80 (with \), and 13326 # we should not choose a depcomp mode which is confused by this. 13327 # 13328 # We need to recreate these files for each test, as the compiler may 13329 # overwrite some of them when testing with obscure command lines. 13330 # This happens at least with the AIX C compiler. 13331 : > sub/conftest.c 13332 for i in 1 2 3 4 5 6; do 13333 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13334 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13335 # Solaris 10 /bin/sh. 13336 echo '/* dummy */' > sub/conftst$i.h 13337 done 13338 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13339 13340 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13341 # mode. It turns out that the SunPro C++ compiler does not properly 13342 # handle '-M -o', and we need to detect this. Also, some Intel 13343 # versions had trouble with output in subdirs. 13344 am__obj=sub/conftest.${OBJEXT-o} 13345 am__minus_obj="-o $am__obj" 13346 case $depmode in 13347 gcc) 13348 # This depmode causes a compiler race in universal mode. 13349 test "$am__universal" = false || continue 13350 ;; 13351 nosideeffect) 13352 # After this tag, mechanisms are not by side-effect, so they'll 13353 # only be used when explicitly requested. 13354 if test "x$enable_dependency_tracking" = xyes; then 13355 continue 13356 else 13357 break 13358 fi 13359 ;; 13360 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13361 # This compiler won't grok '-c -o', but also, the minuso test has 13362 # not run yet. These depmodes are late enough in the game, and 13363 # so weak that their functioning should not be impacted. 13364 am__obj=conftest.${OBJEXT-o} 13365 am__minus_obj= 13366 ;; 13367 none) break ;; 13368 esac 13369 if depmode=$depmode \ 13370 source=sub/conftest.c object=$am__obj \ 13371 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13372 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13373 >/dev/null 2>conftest.err && 13374 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13375 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13376 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13377 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13378 # icc doesn't choke on unknown options, it will just issue warnings 13379 # or remarks (even with -Werror). So we grep stderr for any message 13380 # that says an option was ignored or not supported. 13381 # When given -MP, icc 7.0 and 7.1 complain thusly: 13382 # icc: Command line warning: ignoring option '-M'; no argument required 13383 # The diagnosis changed in icc 8.0: 13384 # icc: Command line remark: option '-MP' not supported 13385 if (grep 'ignoring option' conftest.err || 13386 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13387 am_cv_CC_dependencies_compiler_type=$depmode 13388 break 13389 fi 13390 fi 13391 done 13392 13393 cd .. 13394 rm -rf conftest.dir 13395else 13396 am_cv_CC_dependencies_compiler_type=none 13397fi 13398 13399fi 13400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13401$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13402CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13403 13404 if 13405 test "x$enable_dependency_tracking" != xno \ 13406 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13407 am__fastdepCC_TRUE= 13408 am__fastdepCC_FALSE='#' 13409else 13410 am__fastdepCC_TRUE='#' 13411 am__fastdepCC_FALSE= 13412fi 13413 13414 13415 13416ac_ext=c 13417ac_cpp='$CPP $CPPFLAGS' 13418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13420ac_compiler_gnu=$ac_cv_c_compiler_gnu 13421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 13422$as_echo_n "checking how to run the C preprocessor... " >&6; } 13423# On Suns, sometimes $CPP names a directory. 13424if test -n "$CPP" && test -d "$CPP"; then 13425 CPP= 13426fi 13427if test -z "$CPP"; then 13428 if ${ac_cv_prog_CPP+:} false; then : 13429 $as_echo_n "(cached) " >&6 13430else 13431 # Double quotes because CPP needs to be expanded 13432 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 13433 do 13434 ac_preproc_ok=false 13435for ac_c_preproc_warn_flag in '' yes 13436do 13437 # Use a header file that comes with gcc, so configuring glibc 13438 # with a fresh cross-compiler works. 13439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13440 # <limits.h> exists even on freestanding compilers. 13441 # On the NeXT, cc -E runs the code through the compiler's parser, 13442 # not just through cpp. "Syntax error" is here to catch this case. 13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13444/* end confdefs.h. */ 13445#ifdef __STDC__ 13446# include <limits.h> 13447#else 13448# include <assert.h> 13449#endif 13450 Syntax error 13451_ACEOF 13452if ac_fn_c_try_cpp "$LINENO"; then : 13453 13454else 13455 # Broken: fails on valid input. 13456continue 13457fi 13458rm -f conftest.err conftest.i conftest.$ac_ext 13459 13460 # OK, works on sane cases. Now check whether nonexistent headers 13461 # can be detected and how. 13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13463/* end confdefs.h. */ 13464#include <ac_nonexistent.h> 13465_ACEOF 13466if ac_fn_c_try_cpp "$LINENO"; then : 13467 # Broken: success on invalid input. 13468continue 13469else 13470 # Passes both tests. 13471ac_preproc_ok=: 13472break 13473fi 13474rm -f conftest.err conftest.i conftest.$ac_ext 13475 13476done 13477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13478rm -f conftest.i conftest.err conftest.$ac_ext 13479if $ac_preproc_ok; then : 13480 break 13481fi 13482 13483 done 13484 ac_cv_prog_CPP=$CPP 13485 13486fi 13487 CPP=$ac_cv_prog_CPP 13488else 13489 ac_cv_prog_CPP=$CPP 13490fi 13491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 13492$as_echo "$CPP" >&6; } 13493ac_preproc_ok=false 13494for ac_c_preproc_warn_flag in '' yes 13495do 13496 # Use a header file that comes with gcc, so configuring glibc 13497 # with a fresh cross-compiler works. 13498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13499 # <limits.h> exists even on freestanding compilers. 13500 # On the NeXT, cc -E runs the code through the compiler's parser, 13501 # not just through cpp. "Syntax error" is here to catch this case. 13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13503/* end confdefs.h. */ 13504#ifdef __STDC__ 13505# include <limits.h> 13506#else 13507# include <assert.h> 13508#endif 13509 Syntax error 13510_ACEOF 13511if ac_fn_c_try_cpp "$LINENO"; then : 13512 13513else 13514 # Broken: fails on valid input. 13515continue 13516fi 13517rm -f conftest.err conftest.i conftest.$ac_ext 13518 13519 # OK, works on sane cases. Now check whether nonexistent headers 13520 # can be detected and how. 13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13522/* end confdefs.h. */ 13523#include <ac_nonexistent.h> 13524_ACEOF 13525if ac_fn_c_try_cpp "$LINENO"; then : 13526 # Broken: success on invalid input. 13527continue 13528else 13529 # Passes both tests. 13530ac_preproc_ok=: 13531break 13532fi 13533rm -f conftest.err conftest.i conftest.$ac_ext 13534 13535done 13536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13537rm -f conftest.i conftest.err conftest.$ac_ext 13538if $ac_preproc_ok; then : 13539 13540else 13541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13543as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 13544See \`config.log' for more details" "$LINENO" 5; } 13545fi 13546 13547ac_ext=c 13548ac_cpp='$CPP $CPPFLAGS' 13549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13551ac_compiler_gnu=$ac_cv_c_compiler_gnu 13552 13553 13554# Check whether --enable-silent-rules was given. 13555if test "${enable_silent_rules+set}" = set; then : 13556 enableval=$enable_silent_rules; 13557fi 13558 13559case $enable_silent_rules in # ((( 13560 yes) AM_DEFAULT_VERBOSITY=0;; 13561 no) AM_DEFAULT_VERBOSITY=1;; 13562 *) AM_DEFAULT_VERBOSITY=0;; 13563esac 13564am_make=${MAKE-make} 13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 13566$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 13567if ${am_cv_make_support_nested_variables+:} false; then : 13568 $as_echo_n "(cached) " >&6 13569else 13570 if $as_echo 'TRUE=$(BAR$(V)) 13571BAR0=false 13572BAR1=true 13573V=1 13574am__doit: 13575 @$(TRUE) 13576.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 13577 am_cv_make_support_nested_variables=yes 13578else 13579 am_cv_make_support_nested_variables=no 13580fi 13581fi 13582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 13583$as_echo "$am_cv_make_support_nested_variables" >&6; } 13584if test $am_cv_make_support_nested_variables = yes; then 13585 AM_V='$(V)' 13586 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 13587else 13588 AM_V=$AM_DEFAULT_VERBOSITY 13589 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 13590fi 13591AM_BACKSLASH='\' 13592 13593 13594 13595 13596test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc' 13597test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal' 13598 13599 13600CANONICAL_HOST=$host 13601 13602 13603# Check whether --enable-largefile was given. 13604if test "${enable_largefile+set}" = set; then : 13605 enableval=$enable_largefile; 13606fi 13607 13608if test "$enable_largefile" != no; then 13609 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13611$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13612if ${ac_cv_sys_largefile_CC+:} false; then : 13613 $as_echo_n "(cached) " >&6 13614else 13615 ac_cv_sys_largefile_CC=no 13616 if test "$GCC" != yes; then 13617 ac_save_CC=$CC 13618 while :; do 13619 # IRIX 6.2 and later do not support large files by default, 13620 # so use the C compiler's -n32 option if that helps. 13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13622/* end confdefs.h. */ 13623#include <sys/types.h> 13624 /* Check that off_t can represent 2**63 - 1 correctly. 13625 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13626 since some C++ compilers masquerading as C compilers 13627 incorrectly reject 9223372036854775807. */ 13628#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13630 && LARGE_OFF_T % 2147483647 == 1) 13631 ? 1 : -1]; 13632int 13633main () 13634{ 13635 13636 ; 13637 return 0; 13638} 13639_ACEOF 13640 if ac_fn_c_try_compile "$LINENO"; then : 13641 break 13642fi 13643rm -f core conftest.err conftest.$ac_objext 13644 CC="$CC -n32" 13645 if ac_fn_c_try_compile "$LINENO"; then : 13646 ac_cv_sys_largefile_CC=' -n32'; break 13647fi 13648rm -f core conftest.err conftest.$ac_objext 13649 break 13650 done 13651 CC=$ac_save_CC 13652 rm -f conftest.$ac_ext 13653 fi 13654fi 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13656$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13657 if test "$ac_cv_sys_largefile_CC" != no; then 13658 CC=$CC$ac_cv_sys_largefile_CC 13659 fi 13660 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13662$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13663if ${ac_cv_sys_file_offset_bits+:} false; then : 13664 $as_echo_n "(cached) " >&6 13665else 13666 while :; do 13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13668/* end confdefs.h. */ 13669#include <sys/types.h> 13670 /* Check that off_t can represent 2**63 - 1 correctly. 13671 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13672 since some C++ compilers masquerading as C compilers 13673 incorrectly reject 9223372036854775807. */ 13674#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13676 && LARGE_OFF_T % 2147483647 == 1) 13677 ? 1 : -1]; 13678int 13679main () 13680{ 13681 13682 ; 13683 return 0; 13684} 13685_ACEOF 13686if ac_fn_c_try_compile "$LINENO"; then : 13687 ac_cv_sys_file_offset_bits=no; break 13688fi 13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13691/* end confdefs.h. */ 13692#define _FILE_OFFSET_BITS 64 13693#include <sys/types.h> 13694 /* Check that off_t can represent 2**63 - 1 correctly. 13695 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13696 since some C++ compilers masquerading as C compilers 13697 incorrectly reject 9223372036854775807. */ 13698#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13700 && LARGE_OFF_T % 2147483647 == 1) 13701 ? 1 : -1]; 13702int 13703main () 13704{ 13705 13706 ; 13707 return 0; 13708} 13709_ACEOF 13710if ac_fn_c_try_compile "$LINENO"; then : 13711 ac_cv_sys_file_offset_bits=64; break 13712fi 13713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13714 ac_cv_sys_file_offset_bits=unknown 13715 break 13716done 13717fi 13718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13719$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13720case $ac_cv_sys_file_offset_bits in #( 13721 no | unknown) ;; 13722 *) 13723cat >>confdefs.h <<_ACEOF 13724#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13725_ACEOF 13726;; 13727esac 13728rm -rf conftest* 13729 if test $ac_cv_sys_file_offset_bits = unknown; then 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13731$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13732if ${ac_cv_sys_large_files+:} false; then : 13733 $as_echo_n "(cached) " >&6 13734else 13735 while :; do 13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13737/* end confdefs.h. */ 13738#include <sys/types.h> 13739 /* Check that off_t can represent 2**63 - 1 correctly. 13740 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13741 since some C++ compilers masquerading as C compilers 13742 incorrectly reject 9223372036854775807. */ 13743#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13745 && LARGE_OFF_T % 2147483647 == 1) 13746 ? 1 : -1]; 13747int 13748main () 13749{ 13750 13751 ; 13752 return 0; 13753} 13754_ACEOF 13755if ac_fn_c_try_compile "$LINENO"; then : 13756 ac_cv_sys_large_files=no; break 13757fi 13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13760/* end confdefs.h. */ 13761#define _LARGE_FILES 1 13762#include <sys/types.h> 13763 /* Check that off_t can represent 2**63 - 1 correctly. 13764 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13765 since some C++ compilers masquerading as C compilers 13766 incorrectly reject 9223372036854775807. */ 13767#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13769 && LARGE_OFF_T % 2147483647 == 1) 13770 ? 1 : -1]; 13771int 13772main () 13773{ 13774 13775 ; 13776 return 0; 13777} 13778_ACEOF 13779if ac_fn_c_try_compile "$LINENO"; then : 13780 ac_cv_sys_large_files=1; break 13781fi 13782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13783 ac_cv_sys_large_files=unknown 13784 break 13785done 13786fi 13787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13788$as_echo "$ac_cv_sys_large_files" >&6; } 13789case $ac_cv_sys_large_files in #( 13790 no | unknown) ;; 13791 *) 13792cat >>confdefs.h <<_ACEOF 13793#define _LARGE_FILES $ac_cv_sys_large_files 13794_ACEOF 13795;; 13796esac 13797rm -rf conftest* 13798 fi 13799 13800 13801fi 13802 13803 13804if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then 13805 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files" 13806fi 13807if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then 13808 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 13809fi 13810 13811 13812 13813 13814 13815 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 13817$as_echo_n "checking for dlopen... " >&6; } 13818if ${ac_cv_funclib_dlopen+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820else 13821 13822if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 13823 ac_save_LIBS="$LIBS" 13824 for ac_lib in "" dl; do 13825 case "$ac_lib" in 13826 "") ;; 13827 yes) ac_lib="" ;; 13828 no) continue ;; 13829 -l*) ;; 13830 *) ac_lib="-l$ac_lib" ;; 13831 esac 13832 LIBS=" $ac_lib $ac_save_LIBS" 13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13834/* end confdefs.h. */ 13835 13836#ifdef HAVE_DLFCN_H 13837#include <dlfcn.h> 13838#endif 13839int 13840main () 13841{ 13842dlopen(0,0) 13843 ; 13844 return 0; 13845} 13846_ACEOF 13847if ac_fn_c_try_link "$LINENO"; then : 13848 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 13849fi 13850rm -f core conftest.err conftest.$ac_objext \ 13851 conftest$ac_exeext conftest.$ac_ext 13852 done 13853 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 13854 LIBS="$ac_save_LIBS" 13855fi 13856 13857fi 13858 13859 13860eval "ac_res=\$ac_cv_funclib_dlopen" 13861 13862if false; then 13863 for ac_func in dlopen 13864do : 13865 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13866if test "x$ac_cv_func_dlopen" = xyes; then : 13867 cat >>confdefs.h <<_ACEOF 13868#define HAVE_DLOPEN 1 13869_ACEOF 13870 13871fi 13872done 13873 13874fi 13875# dlopen 13876eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13877eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13878eval "LIB_dlopen=$ac_res" 13879 13880case "$ac_res" in 13881 yes) 13882 eval "ac_cv_func_dlopen=yes" 13883 eval "LIB_dlopen=" 13884 cat >>confdefs.h <<_ACEOF 13885#define $ac_tr_func 1 13886_ACEOF 13887 13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13889$as_echo "yes" >&6; } 13890 ;; 13891 no) 13892 eval "ac_cv_func_dlopen=no" 13893 eval "LIB_dlopen=" 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13895$as_echo "no" >&6; } 13896 ;; 13897 *) 13898 eval "ac_cv_func_dlopen=yes" 13899 cat >>confdefs.h <<_ACEOF 13900#define $ac_tr_func 1 13901_ACEOF 13902 13903 cat >>confdefs.h <<_ACEOF 13904#define $ac_tr_lib 1 13905_ACEOF 13906 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 13908$as_echo "yes, in $ac_res" >&6; } 13909 ;; 13910esac 13911 13912 13913 if test "$ac_cv_funclib_dlopen" != no; then 13914 HAVE_DLOPEN_TRUE= 13915 HAVE_DLOPEN_FALSE='#' 13916else 13917 HAVE_DLOPEN_TRUE='#' 13918 HAVE_DLOPEN_FALSE= 13919fi 13920 13921 13922 13923 13924aix=no 13925case "$host" in 13926*-*-aix3*) 13927 aix=3 13928 ;; 13929*-*-aix[4-9]*) 13930 aix=4 13931 ;; 13932esac 13933 13934 if test "$aix" != no; then 13935 AIX_TRUE= 13936 AIX_FALSE='#' 13937else 13938 AIX_TRUE='#' 13939 AIX_FALSE= 13940fi 13941 if test "$aix" = 4; then 13942 AIX4_TRUE= 13943 AIX4_FALSE='#' 13944else 13945 AIX4_TRUE='#' 13946 AIX4_FALSE= 13947fi 13948 13949# Check whether --enable-dynamic-afs was given. 13950if test "${enable_dynamic_afs+set}" = set; then : 13951 enableval=$enable_dynamic_afs; 13952fi 13953 13954 13955if test "$aix" != no; then 13956 13957 13958$as_echo "#define NEED_QSORT 1" >>confdefs.h 13959 13960 13961 if test "$enable_dynamic_afs" != no; then 13962 13963 if test "$ac_cv_func_dlopen" = no; then 13964 13965 13966 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for loadquery" >&5 13968$as_echo_n "checking for loadquery... " >&6; } 13969if ${ac_cv_funclib_loadquery+:} false; then : 13970 $as_echo_n "(cached) " >&6 13971else 13972 13973if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then 13974 ac_save_LIBS="$LIBS" 13975 for ac_lib in "" ld; do 13976 case "$ac_lib" in 13977 "") ;; 13978 yes) ac_lib="" ;; 13979 no) continue ;; 13980 -l*) ;; 13981 *) ac_lib="-l$ac_lib" ;; 13982 esac 13983 LIBS=" $ac_lib $ac_save_LIBS" 13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13985/* end confdefs.h. */ 13986 13987int 13988main () 13989{ 13990loadquery() 13991 ; 13992 return 0; 13993} 13994_ACEOF 13995if ac_fn_c_try_link "$LINENO"; then : 13996 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break 13997fi 13998rm -f core conftest.err conftest.$ac_objext \ 13999 conftest$ac_exeext conftest.$ac_ext 14000 done 14001 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}" 14002 LIBS="$ac_save_LIBS" 14003fi 14004 14005fi 14006 14007 14008eval "ac_res=\$ac_cv_funclib_loadquery" 14009 14010if false; then 14011 for ac_func in loadquery 14012do : 14013 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery" 14014if test "x$ac_cv_func_loadquery" = xyes; then : 14015 cat >>confdefs.h <<_ACEOF 14016#define HAVE_LOADQUERY 1 14017_ACEOF 14018 14019fi 14020done 14021 14022fi 14023# loadquery 14024eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14025eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14026eval "LIB_loadquery=$ac_res" 14027 14028case "$ac_res" in 14029 yes) 14030 eval "ac_cv_func_loadquery=yes" 14031 eval "LIB_loadquery=" 14032 cat >>confdefs.h <<_ACEOF 14033#define $ac_tr_func 1 14034_ACEOF 14035 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14037$as_echo "yes" >&6; } 14038 ;; 14039 no) 14040 eval "ac_cv_func_loadquery=no" 14041 eval "LIB_loadquery=" 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14043$as_echo "no" >&6; } 14044 ;; 14045 *) 14046 eval "ac_cv_func_loadquery=yes" 14047 cat >>confdefs.h <<_ACEOF 14048#define $ac_tr_func 1 14049_ACEOF 14050 14051 cat >>confdefs.h <<_ACEOF 14052#define $ac_tr_lib 1 14053_ACEOF 14054 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 14056$as_echo "yes, in $ac_res" >&6; } 14057 ;; 14058esac 14059 14060 14061 fi 14062 if test "$ac_cv_func_dlopen" != no; then 14063 AIX_EXTRA_KAFS='$(LIB_dlopen)' 14064 elif test "$ac_cv_func_loadquery" != no; then 14065 AIX_EXTRA_KAFS='$(LIB_loadquery)' 14066 else 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: not using dynloaded AFS library" >&5 14068$as_echo "$as_me: not using dynloaded AFS library" >&6;} 14069 AIX_EXTRA_KAFS= 14070 enable_dynamic_afs=no 14071 fi 14072 else 14073 AIX_EXTRA_KAFS= 14074 fi 14075fi 14076 14077 if test "$enable_dynamic_afs" != no; then 14078 AIX_DYNAMIC_AFS_TRUE= 14079 AIX_DYNAMIC_AFS_FALSE='#' 14080else 14081 AIX_DYNAMIC_AFS_TRUE='#' 14082 AIX_DYNAMIC_AFS_FALSE= 14083fi 14084 14085if test "$aix" != no; then 14086 14087$as_echo "#define _ALL_SOURCE 1" >>confdefs.h 14088 14089fi 14090 14091 14092 14093 14094 14095irix=no 14096case "$host" in 14097*-*-irix*) 14098 irix=yes 14099 ;; 14100esac 14101 if test "$irix" != no; then 14102 IRIX_TRUE= 14103 IRIX_FALSE='#' 14104else 14105 IRIX_TRUE='#' 14106 IRIX_FALSE= 14107fi 14108 14109 14110 14111sunos=no 14112case "$host" in 14113*-*-solaris2.7) 14114 sunos=57 14115 ;; 14116*-*-solaris2.1[1-9]) 14117 14118$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 14119 14120 14121$as_echo "#define _STDC_C11_BCI 1" >>confdefs.h 14122 14123 sunos=511 14124 ;; 14125*-*-solaris2.[89] | *-*-solaris2.10) 14126 sunos=58 14127 ;; 14128*-*-solaris2*) 14129 sunos=50 14130 ;; 14131esac 14132if test "$sunos" != no; then 14133 14134cat >>confdefs.h <<_ACEOF 14135#define SunOS $sunos 14136_ACEOF 14137 14138fi 14139 14140 14141 14142$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 14143 14144 14145 14146 14147 14148if ! test -f "$srcdir/lib/asn1/der-protos.h" || 14149 ! test -f "$srcdir/lib/asn1/der-private.h"; then 14150 for ac_prog in perl 14151do 14152 # Extract the first word of "$ac_prog", so it can be a program name with args. 14153set dummy $ac_prog; ac_word=$2 14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14155$as_echo_n "checking for $ac_word... " >&6; } 14156if ${ac_cv_prog_PERL+:} false; then : 14157 $as_echo_n "(cached) " >&6 14158else 14159 if test -n "$PERL"; then 14160 ac_cv_prog_PERL="$PERL" # Let the user override the test. 14161else 14162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14163for as_dir in $PATH 14164do 14165 IFS=$as_save_IFS 14166 test -z "$as_dir" && as_dir=. 14167 for ac_exec_ext in '' $ac_executable_extensions; do 14168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14169 ac_cv_prog_PERL="$ac_prog" 14170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14171 break 2 14172 fi 14173done 14174 done 14175IFS=$as_save_IFS 14176 14177fi 14178fi 14179PERL=$ac_cv_prog_PERL 14180if test -n "$PERL"; then 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 14182$as_echo "$PERL" >&6; } 14183else 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14185$as_echo "no" >&6; } 14186fi 14187 14188 14189 test -n "$PERL" && break 14190done 14191test -n "$PERL" || PERL="perl" 14192 14193if test "$PERL" = ""; then 14194 as_fn_error $? "perl not found - Cannot build Heimdal without perl" "$LINENO" 5 14195fi 14196 14197 14198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 module Getopt::Std" >&5 14199$as_echo_n "checking for Perl5 module Getopt::Std... " >&6; } 14200if ! $PERL -MGetopt::Std -e 'exit(0);' >/dev/null 2>&1; then 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14202$as_echo "no" >&6; } 14203 as_fn_error $? "perl module Getopt::Std not found - Cannot build Heimdal without perl module Getopt::Std" "$LINENO" 5 14204else 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14206$as_echo "yes" >&6; } 14207fi 14208 14209 14210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 module File::Compare" >&5 14211$as_echo_n "checking for Perl5 module File::Compare... " >&6; } 14212if ! $PERL -MFile::Compare -e 'exit(0);' >/dev/null 2>&1; then 14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14214$as_echo "no" >&6; } 14215 as_fn_error $? "perl module File::Compare not found - Cannot build Heimdal without perl module File::Compare" "$LINENO" 5 14216else 14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14218$as_echo "yes" >&6; } 14219fi 14220 14221 14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 module JSON" >&5 14223$as_echo_n "checking for Perl5 module JSON... " >&6; } 14224if ! $PERL -MJSON -e 'exit(0);' >/dev/null 2>&1; then 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14226$as_echo "no" >&6; } 14227 as_fn_error $? "perl module JSON not found - Cannot build Heimdal without perl module JSON" "$LINENO" 5 14228else 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14230$as_echo "yes" >&6; } 14231fi 14232 14233fi 14234 14235for ac_prog in 'bison -y' byacc 14236do 14237 # Extract the first word of "$ac_prog", so it can be a program name with args. 14238set dummy $ac_prog; ac_word=$2 14239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14240$as_echo_n "checking for $ac_word... " >&6; } 14241if ${ac_cv_prog_YACC+:} false; then : 14242 $as_echo_n "(cached) " >&6 14243else 14244 if test -n "$YACC"; then 14245 ac_cv_prog_YACC="$YACC" # Let the user override the test. 14246else 14247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14248for as_dir in $PATH 14249do 14250 IFS=$as_save_IFS 14251 test -z "$as_dir" && as_dir=. 14252 for ac_exec_ext in '' $ac_executable_extensions; do 14253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14254 ac_cv_prog_YACC="$ac_prog" 14255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14256 break 2 14257 fi 14258done 14259 done 14260IFS=$as_save_IFS 14261 14262fi 14263fi 14264YACC=$ac_cv_prog_YACC 14265if test -n "$YACC"; then 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 14267$as_echo "$YACC" >&6; } 14268else 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14270$as_echo "no" >&6; } 14271fi 14272 14273 14274 test -n "$YACC" && break 14275done 14276test -n "$YACC" || YACC="yacc" 14277 14278for ac_prog in flex lex 14279do 14280 # Extract the first word of "$ac_prog", so it can be a program name with args. 14281set dummy $ac_prog; ac_word=$2 14282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14283$as_echo_n "checking for $ac_word... " >&6; } 14284if ${ac_cv_prog_LEX+:} false; then : 14285 $as_echo_n "(cached) " >&6 14286else 14287 if test -n "$LEX"; then 14288 ac_cv_prog_LEX="$LEX" # Let the user override the test. 14289else 14290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14291for as_dir in $PATH 14292do 14293 IFS=$as_save_IFS 14294 test -z "$as_dir" && as_dir=. 14295 for ac_exec_ext in '' $ac_executable_extensions; do 14296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14297 ac_cv_prog_LEX="$ac_prog" 14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14299 break 2 14300 fi 14301done 14302 done 14303IFS=$as_save_IFS 14304 14305fi 14306fi 14307LEX=$ac_cv_prog_LEX 14308if test -n "$LEX"; then 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 14310$as_echo "$LEX" >&6; } 14311else 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14313$as_echo "no" >&6; } 14314fi 14315 14316 14317 test -n "$LEX" && break 14318done 14319test -n "$LEX" || LEX=":" 14320 14321if test "x$LEX" != "x:"; then 14322 cat >conftest.l <<_ACEOF 14323%% 14324a { ECHO; } 14325b { REJECT; } 14326c { yymore (); } 14327d { yyless (1); } 14328e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 14329 yyless ((input () != 0)); } 14330f { unput (yytext[0]); } 14331. { BEGIN INITIAL; } 14332%% 14333#ifdef YYTEXT_POINTER 14334extern char *yytext; 14335#endif 14336int 14337main (void) 14338{ 14339 return ! yylex () + ! yywrap (); 14340} 14341_ACEOF 14342{ { ac_try="$LEX conftest.l" 14343case "(($ac_try" in 14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14345 *) ac_try_echo=$ac_try;; 14346esac 14347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14348$as_echo "$ac_try_echo"; } >&5 14349 (eval "$LEX conftest.l") 2>&5 14350 ac_status=$? 14351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14352 test $ac_status = 0; } 14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 14354$as_echo_n "checking lex output file root... " >&6; } 14355if ${ac_cv_prog_lex_root+:} false; then : 14356 $as_echo_n "(cached) " >&6 14357else 14358 14359if test -f lex.yy.c; then 14360 ac_cv_prog_lex_root=lex.yy 14361elif test -f lexyy.c; then 14362 ac_cv_prog_lex_root=lexyy 14363else 14364 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 14365fi 14366fi 14367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 14368$as_echo "$ac_cv_prog_lex_root" >&6; } 14369LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 14370 14371if test -z "${LEXLIB+set}"; then 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 14373$as_echo_n "checking lex library... " >&6; } 14374if ${ac_cv_lib_lex+:} false; then : 14375 $as_echo_n "(cached) " >&6 14376else 14377 14378 ac_save_LIBS=$LIBS 14379 ac_cv_lib_lex='none needed' 14380 for ac_lib in '' -lfl -ll; do 14381 LIBS="$ac_lib $ac_save_LIBS" 14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14383/* end confdefs.h. */ 14384`cat $LEX_OUTPUT_ROOT.c` 14385_ACEOF 14386if ac_fn_c_try_link "$LINENO"; then : 14387 ac_cv_lib_lex=$ac_lib 14388fi 14389rm -f core conftest.err conftest.$ac_objext \ 14390 conftest$ac_exeext conftest.$ac_ext 14391 test "$ac_cv_lib_lex" != 'none needed' && break 14392 done 14393 LIBS=$ac_save_LIBS 14394 14395fi 14396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 14397$as_echo "$ac_cv_lib_lex" >&6; } 14398 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 14399fi 14400 14401 14402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 14403$as_echo_n "checking whether yytext is a pointer... " >&6; } 14404if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 14405 $as_echo_n "(cached) " >&6 14406else 14407 # POSIX says lex can declare yytext either as a pointer or an array; the 14408# default is implementation-dependent. Figure out which it is, since 14409# not all implementations provide the %pointer and %array declarations. 14410ac_cv_prog_lex_yytext_pointer=no 14411ac_save_LIBS=$LIBS 14412LIBS="$LEXLIB $ac_save_LIBS" 14413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14414/* end confdefs.h. */ 14415 14416 #define YYTEXT_POINTER 1 14417`cat $LEX_OUTPUT_ROOT.c` 14418_ACEOF 14419if ac_fn_c_try_link "$LINENO"; then : 14420 ac_cv_prog_lex_yytext_pointer=yes 14421fi 14422rm -f core conftest.err conftest.$ac_objext \ 14423 conftest$ac_exeext conftest.$ac_ext 14424LIBS=$ac_save_LIBS 14425 14426fi 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 14428$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 14429if test $ac_cv_prog_lex_yytext_pointer = yes; then 14430 14431$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 14432 14433fi 14434rm -f conftest.l $LEX_OUTPUT_ROOT.c 14435 14436fi 14437if test "$LEX" = :; then 14438 LEX=${am_missing_run}flex 14439fi 14440for ac_prog in gawk mawk nawk awk 14441do 14442 # Extract the first word of "$ac_prog", so it can be a program name with args. 14443set dummy $ac_prog; ac_word=$2 14444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14445$as_echo_n "checking for $ac_word... " >&6; } 14446if ${ac_cv_prog_AWK+:} false; then : 14447 $as_echo_n "(cached) " >&6 14448else 14449 if test -n "$AWK"; then 14450 ac_cv_prog_AWK="$AWK" # Let the user override the test. 14451else 14452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14453for as_dir in $PATH 14454do 14455 IFS=$as_save_IFS 14456 test -z "$as_dir" && as_dir=. 14457 for ac_exec_ext in '' $ac_executable_extensions; do 14458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14459 ac_cv_prog_AWK="$ac_prog" 14460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14461 break 2 14462 fi 14463done 14464 done 14465IFS=$as_save_IFS 14466 14467fi 14468fi 14469AWK=$ac_cv_prog_AWK 14470if test -n "$AWK"; then 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 14472$as_echo "$AWK" >&6; } 14473else 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14475$as_echo "no" >&6; } 14476fi 14477 14478 14479 test -n "$AWK" && break 14480done 14481 14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln -s or something else" >&5 14483$as_echo_n "checking for ln -s or something else... " >&6; } 14484if ${ac_cv_prog_LN_S+:} false; then : 14485 $as_echo_n "(cached) " >&6 14486else 14487 rm -f conftestdata 14488if ln -s X conftestdata 2>/dev/null 14489then 14490 rm -f conftestdata 14491 ac_cv_prog_LN_S="ln -s" 14492else 14493 touch conftestdata1 14494 if ln conftestdata1 conftestdata2; then 14495 rm -f conftestdata* 14496 ac_cv_prog_LN_S=ln 14497 else 14498 ac_cv_prog_LN_S=cp 14499 fi 14500fi 14501fi 14502LN_S="$ac_cv_prog_LN_S" 14503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_LN_S" >&5 14504$as_echo "$ac_cv_prog_LN_S" >&6; } 14505 14506 14507 14508 14509# Check whether --with-mips_abi was given. 14510if test "${with_mips_abi+set}" = set; then : 14511 withval=$with_mips_abi; 14512fi 14513 14514 14515case "$host_os" in 14516irix*) 14517with_mips_abi="${with_mips_abi:-yes}" 14518if test -n "$GCC"; then 14519 14520# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 14521# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 14522# 14523# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 14524# GCC and revert back to O32. The same goes if O32 is asked for - old 14525# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 14526# 14527# Don't you just love *all* the different SGI ABIs? 14528 14529case "${with_mips_abi}" in 14530 32|o32) abi='-mabi=32'; abilibdirext='' ;; 14531 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 14532 64) abi='-mabi=64'; abilibdirext='64' ;; 14533 no) abi=''; abilibdirext='';; 14534 *) as_fn_error $? "\"Invalid ABI specified\"" "$LINENO" 5 ;; 14535esac 14536if test -n "$abi" ; then 14537ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 14538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the $abi option" >&5 14539$as_echo_n "checking if $CC supports the $abi option... " >&6; } 14540if eval \${$ac_foo+:} false; then : 14541 $as_echo_n "(cached) " >&6 14542else 14543 14544save_CFLAGS="$CFLAGS" 14545CFLAGS="$CFLAGS $abi" 14546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548 14549int 14550main () 14551{ 14552int x; 14553 ; 14554 return 0; 14555} 14556_ACEOF 14557if ac_fn_c_try_compile "$LINENO"; then : 14558 eval $ac_foo=yes 14559else 14560 eval $ac_foo=no 14561fi 14562rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS" 14563 14564fi 14565 14566ac_res=`eval echo \\\$$ac_foo` 14567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14568$as_echo "$ac_res" >&6; } 14569if test $ac_res = no; then 14570# Try to figure out why that failed... 14571case $abi in 14572 -mabi=32) 14573 save_CFLAGS="$CFLAGS" 14574 CFLAGS="$CFLAGS -mabi=n32" 14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14576/* end confdefs.h. */ 14577 14578int 14579main () 14580{ 14581int x; 14582 ; 14583 return 0; 14584} 14585_ACEOF 14586if ac_fn_c_try_compile "$LINENO"; then : 14587 ac_res=yes 14588else 14589 ac_res=no 14590fi 14591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CLAGS="$save_CFLAGS" 14592 if test $ac_res = yes; then 14593 # New GCC 14594 as_fn_error $? "$CC does not support the $with_mips_abi ABI" "$LINENO" 5 14595 fi 14596 # Old GCC 14597 abi='' 14598 abilibdirext='' 14599 ;; 14600 -mabi=n32|-mabi=64) 14601 if test $with_mips_abi = yes; then 14602 # Old GCC, default to O32 14603 abi='' 14604 abilibdirext='' 14605 else 14606 # Some broken GCC 14607 as_fn_error $? "$CC does not support the $with_mips_abi ABI" "$LINENO" 5 14608 fi 14609 ;; 14610esac 14611fi #if test $ac_res = no; then 14612fi #if test -n "$abi" ; then 14613else 14614case "${with_mips_abi}" in 14615 32|o32) abi='-32'; abilibdirext='' ;; 14616 n32|yes) abi='-n32'; abilibdirext='32' ;; 14617 64) abi='-64'; abilibdirext='64' ;; 14618 no) abi=''; abilibdirext='';; 14619 *) as_fn_error $? "\"Invalid ABI specified\"" "$LINENO" 5 ;; 14620esac 14621fi #if test -n "$GCC"; then 14622;; 14623esac 14624 14625CC="$CC $abi" 14626libdir="$libdir$abilibdirext" 14627 14628 14629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 14630$as_echo_n "checking for __attribute__... " >&6; } 14631if ${ac_cv___attribute__+:} false; then : 14632 $as_echo_n "(cached) " >&6 14633else 14634 14635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14636/* end confdefs.h. */ 14637#include <stdlib.h> 14638static void foo(void) __attribute__ ((noreturn)); 14639 14640static void 14641foo(void) 14642{ 14643 exit(1); 14644} 14645 14646_ACEOF 14647if ac_fn_c_try_compile "$LINENO"; then : 14648 ac_cv___attribute__=yes 14649else 14650 ac_cv___attribute__=no 14651fi 14652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14653fi 14654 14655if test "$ac_cv___attribute__" = "yes"; then 14656 14657$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 14658 14659fi 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 14661$as_echo "$ac_cv___attribute__" >&6; } 14662 14663 14664 if test "$enable_shared" = "yes"; then 14665 ENABLE_SHARED_TRUE= 14666 ENABLE_SHARED_FALSE='#' 14667else 14668 ENABLE_SHARED_TRUE='#' 14669 ENABLE_SHARED_FALSE= 14670fi 14671 14672 14673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5 14674$as_echo_n "checking for ld --version-script... " >&6; } 14675if ${rk_cv_version_script+:} false; then : 14676 $as_echo_n "(cached) " >&6 14677else 14678 14679 rk_cv_version_script=no 14680 14681 cat > conftest.map <<EOF 14682HEIM_GSS_V1 { 14683 global: gss*; 14684}; 14685HEIM_GSS_V1_1 { 14686 global: gss_init_creds; 14687} HEIM_GSS_V1; 14688EOF 14689cat > conftest.c <<EOF 14690int gss_init_creds(int foo) { return 0; } 14691EOF 14692 14693 if { ac_try='${CC-cc} -c $CFLAGS -fPIC conftest.c' 14694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 14695 (eval $ac_try) 2>&5 14696 ac_status=$? 14697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14698 test $ac_status = 0; }; } && 14699 { ac_try='${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o' 14700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 14701 (eval $ac_try) 2>&5 14702 ac_status=$? 14703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14704 test $ac_status = 0; }; }; 14705 then 14706 rk_cv_version_script=yes 14707 fi 14708rm -rf conftest* libconftest* .libs 14709 14710fi 14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_version_script" >&5 14712$as_echo "$rk_cv_version_script" >&6; } 14713 14714if test $rk_cv_version_script = yes ; then 14715 doversioning=yes 14716 LDFLAGS_VERSION_SCRIPT="-Wl,--version-script," 14717else 14718 doversioning=no 14719 LDFLAGS_VERSION_SCRIPT= 14720fi 14721 14722 14723 if test $doversioning = yes; then 14724 versionscript_TRUE= 14725 versionscript_FALSE='#' 14726else 14727 versionscript_TRUE='#' 14728 versionscript_FALSE= 14729fi 14730 14731 14732 14733 14734 14735 14736 14737 14738 if test "${cross_compiling}" = yes; then 14739 CROSS_COMPILE_TRUE= 14740 CROSS_COMPILE_FALSE='#' 14741else 14742 CROSS_COMPILE_TRUE='#' 14743 CROSS_COMPILE_FALSE= 14744fi 14745 14746 14747 14748# Check whether --with-cross-tools was given. 14749if test "${with_cross_tools+set}" = set; then : 14750 withval=$with_cross_tools; if test "$withval" = "yes"; then 14751 as_fn_error $? "Need path to cross tools" "$LINENO" 5 14752 fi 14753 with_cross_tools="${with_cross_tools}/" 14754 14755fi 14756 14757 14758if test "${cross_compiling}" != yes ; then 14759 14760 ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)" 14761 SLC="\$(top_builddir)/lib/sl/slc" 14762 14763 ASN1_COMPILE_DEP="\$(ASN1_COMPILE)" 14764 SLC_DEP="\$(SLC)" 14765else 14766 ASN1_COMPILE="${with_cross_tools}asn1_compile" 14767 SLC="${with_cross_tools}slc" 14768 14769 ASN1_COMPILE_DEP= 14770 SLC_DEP= 14771 14772 ac_cv_prog_COMPILE_ET=${with_cross_tools}compile_et 14773 14774fi 14775 14776 14777 14778 14779 14780 14781 14782 14783$as_echo "#define HEIM_WEAK_CRYPTO 1" >>confdefs.h 14784 14785 14786 14787 14788# Check whether --with-openldap was given. 14789if test "${with_openldap+set}" = set; then : 14790 withval=$with_openldap; 14791fi 14792 14793 14794# Check whether --with-openldap-lib was given. 14795if test "${with_openldap_lib+set}" = set; then : 14796 withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 14797 as_fn_error $? "No argument for --with-openldap-lib" "$LINENO" 5 14798elif test "X$with_openldap" = "X"; then 14799 with_openldap=yes 14800fi 14801fi 14802 14803 14804# Check whether --with-openldap-include was given. 14805if test "${with_openldap_include+set}" = set; then : 14806 withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then 14807 as_fn_error $? "No argument for --with-openldap-include" "$LINENO" 5 14808elif test "X$with_openldap" = "X"; then 14809 with_openldap=yes 14810fi 14811fi 14812 14813 14814# Check whether --with-openldap-config was given. 14815if test "${with_openldap_config+set}" = set; then : 14816 withval=$with_openldap_config; 14817fi 14818 14819 14820 14821 14822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openldap" >&5 14823$as_echo_n "checking for openldap... " >&6; } 14824 14825case "$with_openldap" in 14826yes|"") d='' ;; 14827no) d= ;; 14828*) d="$with_openldap" ;; 14829esac 14830 14831header_dirs= 14832lib_dirs= 14833for i in $d; do 14834 if test "$with_openldap_include" = ""; then 14835 if test -d "$i/include/openldap"; then 14836 header_dirs="$header_dirs $i/include/openldap" 14837 fi 14838 if test -d "$i/include"; then 14839 header_dirs="$header_dirs $i/include" 14840 fi 14841 fi 14842 if test "$with_openldap_lib" = ""; then 14843 if test -d "$i/lib$abilibdirext"; then 14844 lib_dirs="$lib_dirs $i/lib$abilibdirext" 14845 fi 14846 fi 14847done 14848 14849if test "$with_openldap_include"; then 14850 header_dirs="$with_openldap_include $header_dirs" 14851fi 14852if test "$with_openldap_lib"; then 14853 lib_dirs="$with_openldap_lib $lib_dirs" 14854fi 14855 14856if test "$with_openldap_config" = ""; then 14857 with_openldap_config='' 14858fi 14859 14860openldap_cflags= 14861openldap_libs= 14862 14863case "$with_openldap_config" in 14864yes|no|""|"") 14865 if test -f $with_openldap/bin/ ; then 14866 with_openldap_config=$with_openldap/bin/ 14867 fi 14868 ;; 14869esac 14870 14871case "$with_openldap_config" in 14872yes|no|"") 14873 ;; 14874*) 14875 openldap_cflags="`$with_openldap_config --cflags 2>&1`" 14876 openldap_libs="`$with_openldap_config --libs 2>&1`" 14877 ;; 14878esac 14879 14880found=no 14881if test "$with_openldap" != no; then 14882 save_CFLAGS="$CFLAGS" 14883 save_LIBS="$LIBS" 14884 if test "$openldap_cflags" -a "$openldap_libs"; then 14885 CFLAGS="$openldap_cflags $save_CFLAGS" 14886 LIBS="$openldap_libs $save_LIBS" 14887 14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889/* end confdefs.h. */ 14890#include <lber.h> 14891#include <ldap.h> 14892int 14893main () 14894{ 14895 14896 ; 14897 return 0; 14898} 14899_ACEOF 14900if ac_fn_c_try_link "$LINENO"; then : 14901 14902 INCLUDE_openldap="$openldap_cflags" 14903 LIB_openldap="$openldap_libs" 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_openldap_config" >&5 14905$as_echo "from $with_openldap_config" >&6; } 14906 found=yes 14907fi 14908rm -f core conftest.err conftest.$ac_objext \ 14909 conftest$ac_exeext conftest.$ac_ext 14910 fi 14911 if test "$found" = no; then 14912 ires= lres= 14913 for i in $header_dirs; do 14914 CFLAGS="-I$i $save_CFLAGS" 14915 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917/* end confdefs.h. */ 14918#include <lber.h> 14919#include <ldap.h> 14920int 14921main () 14922{ 14923 14924 ; 14925 return 0; 14926} 14927_ACEOF 14928if ac_fn_c_try_compile "$LINENO"; then : 14929 ires=$i;break 14930fi 14931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14932 done 14933 for i in $lib_dirs; do 14934 LIBS="-L$i -lldap -llber $save_LIBS" 14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14936/* end confdefs.h. */ 14937#include <lber.h> 14938#include <ldap.h> 14939int 14940main () 14941{ 14942 14943 ; 14944 return 0; 14945} 14946_ACEOF 14947if ac_fn_c_try_link "$LINENO"; then : 14948 lres=$i;break 14949fi 14950rm -f core conftest.err conftest.$ac_objext \ 14951 conftest$ac_exeext conftest.$ac_ext 14952 done 14953 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 14954 INCLUDE_openldap="-I$ires" 14955 LIB_openldap="-L$lres -lldap -llber " 14956 found=yes 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 14958$as_echo "headers $ires, libraries $lres" >&6; } 14959 fi 14960 fi 14961 CFLAGS="$save_CFLAGS" 14962 LIBS="$save_LIBS" 14963fi 14964 14965if test "$found" = yes; then 14966 14967cat >>confdefs.h <<_ACEOF 14968#define OPENLDAP 1 14969_ACEOF 14970 14971 with_openldap=yes 14972else 14973 with_openldap=no 14974 INCLUDE_openldap= 14975 LIB_openldap= 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14977$as_echo "no" >&6; } 14978fi 14979 14980 14981 14982 14983 14984# Check whether --enable-hdb-openldap-module was given. 14985if test "${enable_hdb_openldap_module+set}" = set; then : 14986 enableval=$enable_hdb_openldap_module; 14987fi 14988 14989if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 14990 14991$as_echo "#define OPENLDAP_MODULE 1" >>confdefs.h 14992 14993fi 14994 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 14995 OPENLDAP_MODULE_TRUE= 14996 OPENLDAP_MODULE_FALSE='#' 14997else 14998 OPENLDAP_MODULE_TRUE='#' 14999 OPENLDAP_MODULE_FALSE= 15000fi 15001 15002 15003 15004# Check whether --enable-pk-init was given. 15005if test "${enable_pk_init+set}" = set; then : 15006 enableval=$enable_pk_init; 15007fi 15008 15009if test "$enable_pk_init" != no ;then 15010 15011$as_echo "#define PKINIT 1" >>confdefs.h 15012 15013fi 15014 if test "$enable_pk_init" != no; then 15015 PKINIT_TRUE= 15016 PKINIT_FALSE='#' 15017else 15018 PKINIT_TRUE='#' 15019 PKINIT_FALSE= 15020fi 15021 15022 15023# Check whether --enable-digest was given. 15024if test "${enable_digest+set}" = set; then : 15025 enableval=$enable_digest; 15026fi 15027 15028if test "$enable_digest" != no ;then 15029 15030$as_echo "#define DIGEST 1" >>confdefs.h 15031 15032fi 15033 15034# Check whether --enable-kx509 was given. 15035if test "${enable_kx509+set}" = set; then : 15036 enableval=$enable_kx509; 15037fi 15038 15039if test "$enable_kx509" != no ;then 15040 15041$as_echo "#define KX509 1" >>confdefs.h 15042 15043fi 15044 15045 15046 15047if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15048 if test -n "$ac_tool_prefix"; then 15049 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15050set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15052$as_echo_n "checking for $ac_word... " >&6; } 15053if ${ac_cv_path_PKG_CONFIG+:} false; then : 15054 $as_echo_n "(cached) " >&6 15055else 15056 case $PKG_CONFIG in 15057 [\\/]* | ?:[\\/]*) 15058 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15059 ;; 15060 *) 15061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15062for as_dir in $PATH 15063do 15064 IFS=$as_save_IFS 15065 test -z "$as_dir" && as_dir=. 15066 for ac_exec_ext in '' $ac_executable_extensions; do 15067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15068 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15070 break 2 15071 fi 15072done 15073 done 15074IFS=$as_save_IFS 15075 15076 ;; 15077esac 15078fi 15079PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15080if test -n "$PKG_CONFIG"; then 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15082$as_echo "$PKG_CONFIG" >&6; } 15083else 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15085$as_echo "no" >&6; } 15086fi 15087 15088 15089fi 15090if test -z "$ac_cv_path_PKG_CONFIG"; then 15091 ac_pt_PKG_CONFIG=$PKG_CONFIG 15092 # Extract the first word of "pkg-config", so it can be a program name with args. 15093set dummy pkg-config; ac_word=$2 15094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15095$as_echo_n "checking for $ac_word... " >&6; } 15096if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15097 $as_echo_n "(cached) " >&6 15098else 15099 case $ac_pt_PKG_CONFIG in 15100 [\\/]* | ?:[\\/]*) 15101 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15102 ;; 15103 *) 15104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15105for as_dir in $PATH 15106do 15107 IFS=$as_save_IFS 15108 test -z "$as_dir" && as_dir=. 15109 for ac_exec_ext in '' $ac_executable_extensions; do 15110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15111 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15113 break 2 15114 fi 15115done 15116 done 15117IFS=$as_save_IFS 15118 15119 ;; 15120esac 15121fi 15122ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15123if test -n "$ac_pt_PKG_CONFIG"; then 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15125$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15126else 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15128$as_echo "no" >&6; } 15129fi 15130 15131 if test "x$ac_pt_PKG_CONFIG" = x; then 15132 PKG_CONFIG="" 15133 else 15134 case $cross_compiling:$ac_tool_warned in 15135yes:) 15136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15138ac_tool_warned=yes ;; 15139esac 15140 PKG_CONFIG=$ac_pt_PKG_CONFIG 15141 fi 15142else 15143 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15144fi 15145 15146fi 15147if test -n "$PKG_CONFIG"; then 15148 _pkg_min_version=0.9.0 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15150$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15151 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15153$as_echo "yes" >&6; } 15154 else 15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15156$as_echo "no" >&6; } 15157 PKG_CONFIG="" 15158 fi 15159 15160fi 15161 15162 15163# Check whether --with-capng was given. 15164if test "${with_capng+set}" = set; then : 15165 withval=$with_capng; 15166else 15167 with_capng=check 15168fi 15169 15170if test "$with_capng" != "no"; then 15171 15172pkg_failed=no 15173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5 15174$as_echo_n "checking for CAPNG... " >&6; } 15175 15176if test -n "$PKG_CONFIG"; then 15177 if test -n "$CAPNG_CFLAGS"; then 15178 pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS" 15179 else 15180 if test -n "$PKG_CONFIG" && \ 15181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5 15182 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5 15183 ac_status=$? 15184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15185 test $ac_status = 0; }; then 15186 pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng >= 0.4.0" 2>/dev/null` 15187else 15188 pkg_failed=yes 15189fi 15190 fi 15191else 15192 pkg_failed=untried 15193fi 15194if test -n "$PKG_CONFIG"; then 15195 if test -n "$CAPNG_LIBS"; then 15196 pkg_cv_CAPNG_LIBS="$CAPNG_LIBS" 15197 else 15198 if test -n "$PKG_CONFIG" && \ 15199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5 15200 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5 15201 ac_status=$? 15202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15203 test $ac_status = 0; }; then 15204 pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng >= 0.4.0" 2>/dev/null` 15205else 15206 pkg_failed=yes 15207fi 15208 fi 15209else 15210 pkg_failed=untried 15211fi 15212 15213 15214 15215if test $pkg_failed = yes; then 15216 15217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15218 _pkg_short_errors_supported=yes 15219else 15220 _pkg_short_errors_supported=no 15221fi 15222 if test $_pkg_short_errors_supported = yes; then 15223 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"` 15224 else 15225 CAPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"` 15226 fi 15227 # Put the nasty error message in config.log where it belongs 15228 echo "$CAPNG_PKG_ERRORS" >&5 15229 15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15231$as_echo "no" >&6; } 15232 with_capng=no 15233elif test $pkg_failed = untried; then 15234 with_capng=no 15235else 15236 CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS 15237 CAPNG_LIBS=$pkg_cv_CAPNG_LIBS 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15239$as_echo "yes" >&6; } 15240 with_capng=yes 15241fi 15242fi 15243if test "$with_capng" = "yes"; then 15244 15245cat >>confdefs.h <<_ACEOF 15246#define HAVE_CAPNG 1 15247_ACEOF 15248 15249fi 15250 if test "$with_capng" != "no"; then 15251 HAVE_CAPNG_TRUE= 15252 HAVE_CAPNG_FALSE='#' 15253else 15254 HAVE_CAPNG_TRUE='#' 15255 HAVE_CAPNG_FALSE= 15256fi 15257 15258 15259 15260 15261 15262 15263# Check whether --with-sqlite3 was given. 15264if test "${with_sqlite3+set}" = set; then : 15265 withval=$with_sqlite3; 15266fi 15267 15268 15269# Check whether --with-sqlite3-lib was given. 15270if test "${with_sqlite3_lib+set}" = set; then : 15271 withval=$with_sqlite3_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 15272 as_fn_error $? "No argument for --with-sqlite3-lib" "$LINENO" 5 15273elif test "X$with_sqlite3" = "X"; then 15274 with_sqlite3=yes 15275fi 15276fi 15277 15278 15279# Check whether --with-sqlite3-include was given. 15280if test "${with_sqlite3_include+set}" = set; then : 15281 withval=$with_sqlite3_include; if test "$withval" = "yes" -o "$withval" = "no"; then 15282 as_fn_error $? "No argument for --with-sqlite3-include" "$LINENO" 5 15283elif test "X$with_sqlite3" = "X"; then 15284 with_sqlite3=yes 15285fi 15286fi 15287 15288 15289# Check whether --with-sqlite3-config was given. 15290if test "${with_sqlite3_config+set}" = set; then : 15291 withval=$with_sqlite3_config; 15292fi 15293 15294 15295 15296 15297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5 15298$as_echo_n "checking for sqlite3... " >&6; } 15299 15300case "$with_sqlite3" in 15301yes|"") d='' ;; 15302no) d= ;; 15303*) d="$with_sqlite3" ;; 15304esac 15305 15306header_dirs= 15307lib_dirs= 15308for i in $d; do 15309 if test "$with_sqlite3_include" = ""; then 15310 if test -d "$i/include/sqlite3"; then 15311 header_dirs="$header_dirs $i/include/sqlite3" 15312 fi 15313 if test -d "$i/include"; then 15314 header_dirs="$header_dirs $i/include" 15315 fi 15316 fi 15317 if test "$with_sqlite3_lib" = ""; then 15318 if test -d "$i/lib$abilibdirext"; then 15319 lib_dirs="$lib_dirs $i/lib$abilibdirext" 15320 fi 15321 fi 15322done 15323 15324if test "$with_sqlite3_include"; then 15325 header_dirs="$with_sqlite3_include $header_dirs" 15326fi 15327if test "$with_sqlite3_lib"; then 15328 lib_dirs="$with_sqlite3_lib $lib_dirs" 15329fi 15330 15331if test "$with_sqlite3_config" = ""; then 15332 with_sqlite3_config='' 15333fi 15334 15335sqlite3_cflags= 15336sqlite3_libs= 15337 15338case "$with_sqlite3_config" in 15339yes|no|""|"") 15340 if test -f $with_sqlite3/bin/ ; then 15341 with_sqlite3_config=$with_sqlite3/bin/ 15342 fi 15343 ;; 15344esac 15345 15346case "$with_sqlite3_config" in 15347yes|no|"") 15348 ;; 15349*) 15350 sqlite3_cflags="`$with_sqlite3_config --cflags 2>&1`" 15351 sqlite3_libs="`$with_sqlite3_config --libs 2>&1`" 15352 ;; 15353esac 15354 15355found=no 15356if test "$with_sqlite3" != no; then 15357 save_CFLAGS="$CFLAGS" 15358 save_LIBS="$LIBS" 15359 if test "$sqlite3_cflags" -a "$sqlite3_libs"; then 15360 CFLAGS="$sqlite3_cflags $save_CFLAGS" 15361 LIBS="$sqlite3_libs $save_LIBS" 15362 15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15364/* end confdefs.h. */ 15365#include <sqlite3.h> 15366#ifndef SQLITE_OPEN_CREATE 15367#error "old version" 15368#endif 15369int 15370main () 15371{ 15372 15373 ; 15374 return 0; 15375} 15376_ACEOF 15377if ac_fn_c_try_link "$LINENO"; then : 15378 15379 INCLUDE_sqlite3="$sqlite3_cflags" 15380 LIB_sqlite3="$sqlite3_libs" 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_sqlite3_config" >&5 15382$as_echo "from $with_sqlite3_config" >&6; } 15383 found=yes 15384fi 15385rm -f core conftest.err conftest.$ac_objext \ 15386 conftest$ac_exeext conftest.$ac_ext 15387 fi 15388 if test "$found" = no; then 15389 ires= lres= 15390 for i in $header_dirs; do 15391 CFLAGS="-I$i $save_CFLAGS" 15392 15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15394/* end confdefs.h. */ 15395#include <sqlite3.h> 15396#ifndef SQLITE_OPEN_CREATE 15397#error "old version" 15398#endif 15399int 15400main () 15401{ 15402 15403 ; 15404 return 0; 15405} 15406_ACEOF 15407if ac_fn_c_try_compile "$LINENO"; then : 15408 ires=$i;break 15409fi 15410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15411 done 15412 for i in $lib_dirs; do 15413 LIBS="-L$i -lsqlite3 $save_LIBS" 15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415/* end confdefs.h. */ 15416#include <sqlite3.h> 15417#ifndef SQLITE_OPEN_CREATE 15418#error "old version" 15419#endif 15420int 15421main () 15422{ 15423 15424 ; 15425 return 0; 15426} 15427_ACEOF 15428if ac_fn_c_try_link "$LINENO"; then : 15429 lres=$i;break 15430fi 15431rm -f core conftest.err conftest.$ac_objext \ 15432 conftest$ac_exeext conftest.$ac_ext 15433 done 15434 if test "$ires" -a "$lres" -a "$with_sqlite3" != "no"; then 15435 INCLUDE_sqlite3="-I$ires" 15436 LIB_sqlite3="-L$lres -lsqlite3 " 15437 found=yes 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 15439$as_echo "headers $ires, libraries $lres" >&6; } 15440 fi 15441 fi 15442 CFLAGS="$save_CFLAGS" 15443 LIBS="$save_LIBS" 15444fi 15445 15446if test "$found" = yes; then 15447 15448cat >>confdefs.h <<_ACEOF 15449#define SQLITE3 1 15450_ACEOF 15451 15452 with_sqlite3=yes 15453else 15454 with_sqlite3=no 15455 INCLUDE_sqlite3= 15456 LIB_sqlite3= 15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15458$as_echo "no" >&6; } 15459fi 15460 15461 15462 15463 15464 15465if test "X$with_sqlite3" != Xyes ; then 15466 INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite" 15467 LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la" 15468fi 15469 if test "X$with_sqlite3" = Xyes; then 15470 SQLITE3_TRUE= 15471 SQLITE3_FALSE='#' 15472else 15473 SQLITE3_TRUE='#' 15474 SQLITE3_FALSE= 15475fi 15476 15477 15478 15479$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h 15480 15481 15482# Check whether --enable-sqlite-cache was given. 15483if test "${enable_sqlite_cache+set}" = set; then : 15484 enableval=$enable_sqlite_cache; 15485fi 15486 15487if test "$enable_sqlite_cache" != no; then 15488 15489$as_echo "#define HAVE_SCC 1" >>confdefs.h 15490 15491fi 15492 if test "$enable_sqlite_cache" != no; then 15493 have_scc_TRUE= 15494 have_scc_FALSE='#' 15495else 15496 have_scc_TRUE='#' 15497 have_scc_FALSE= 15498fi 15499 15500 15501 15502 15503 15504# Check whether --with-libintl was given. 15505if test "${with_libintl+set}" = set; then : 15506 withval=$with_libintl; 15507fi 15508 15509 15510# Check whether --with-libintl-lib was given. 15511if test "${with_libintl_lib+set}" = set; then : 15512 withval=$with_libintl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 15513 as_fn_error $? "No argument for --with-libintl-lib" "$LINENO" 5 15514elif test "X$with_libintl" = "X"; then 15515 with_libintl=yes 15516fi 15517fi 15518 15519 15520# Check whether --with-libintl-include was given. 15521if test "${with_libintl_include+set}" = set; then : 15522 withval=$with_libintl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 15523 as_fn_error $? "No argument for --with-libintl-include" "$LINENO" 5 15524elif test "X$with_libintl" = "X"; then 15525 with_libintl=yes 15526fi 15527fi 15528 15529 15530# Check whether --with-libintl-config was given. 15531if test "${with_libintl_config+set}" = set; then : 15532 withval=$with_libintl_config; 15533fi 15534 15535 15536 15537 15538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl" >&5 15539$as_echo_n "checking for libintl... " >&6; } 15540 15541case "$with_libintl" in 15542yes|"") d='' ;; 15543no) d= ;; 15544*) d="$with_libintl" ;; 15545esac 15546 15547header_dirs= 15548lib_dirs= 15549for i in $d; do 15550 if test "$with_libintl_include" = ""; then 15551 if test -d "$i/include/libintl"; then 15552 header_dirs="$header_dirs $i/include/libintl" 15553 fi 15554 if test -d "$i/include"; then 15555 header_dirs="$header_dirs $i/include" 15556 fi 15557 fi 15558 if test "$with_libintl_lib" = ""; then 15559 if test -d "$i/lib$abilibdirext"; then 15560 lib_dirs="$lib_dirs $i/lib$abilibdirext" 15561 fi 15562 fi 15563done 15564 15565if test "$with_libintl_include"; then 15566 header_dirs="$with_libintl_include $header_dirs" 15567fi 15568if test "$with_libintl_lib"; then 15569 lib_dirs="$with_libintl_lib $lib_dirs" 15570fi 15571 15572if test "$with_libintl_config" = ""; then 15573 with_libintl_config='' 15574fi 15575 15576libintl_cflags= 15577libintl_libs= 15578 15579case "$with_libintl_config" in 15580yes|no|""|"") 15581 if test -f $with_libintl/bin/ ; then 15582 with_libintl_config=$with_libintl/bin/ 15583 fi 15584 ;; 15585esac 15586 15587case "$with_libintl_config" in 15588yes|no|"") 15589 ;; 15590*) 15591 libintl_cflags="`$with_libintl_config --cflags 2>&1`" 15592 libintl_libs="`$with_libintl_config --libs 2>&1`" 15593 ;; 15594esac 15595 15596found=no 15597if test "$with_libintl" != no; then 15598 save_CFLAGS="$CFLAGS" 15599 save_LIBS="$LIBS" 15600 if test "$libintl_cflags" -a "$libintl_libs"; then 15601 CFLAGS="$libintl_cflags $save_CFLAGS" 15602 LIBS="$libintl_libs $save_LIBS" 15603 15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605/* end confdefs.h. */ 15606#include <libintl.h> 15607int 15608main () 15609{ 15610 15611 ; 15612 return 0; 15613} 15614_ACEOF 15615if ac_fn_c_try_link "$LINENO"; then : 15616 15617 INCLUDE_libintl="$libintl_cflags" 15618 LIB_libintl="$libintl_libs" 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libintl_config" >&5 15620$as_echo "from $with_libintl_config" >&6; } 15621 found=yes 15622fi 15623rm -f core conftest.err conftest.$ac_objext \ 15624 conftest$ac_exeext conftest.$ac_ext 15625 fi 15626 if test "$found" = no; then 15627 ires= lres= 15628 for i in $header_dirs; do 15629 CFLAGS="-I$i $save_CFLAGS" 15630 15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15632/* end confdefs.h. */ 15633#include <libintl.h> 15634int 15635main () 15636{ 15637 15638 ; 15639 return 0; 15640} 15641_ACEOF 15642if ac_fn_c_try_compile "$LINENO"; then : 15643 ires=$i;break 15644fi 15645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15646 done 15647 for i in $lib_dirs; do 15648 LIBS="-L$i -lintl $save_LIBS" 15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15650/* end confdefs.h. */ 15651#include <libintl.h> 15652int 15653main () 15654{ 15655 15656 ; 15657 return 0; 15658} 15659_ACEOF 15660if ac_fn_c_try_link "$LINENO"; then : 15661 lres=$i;break 15662fi 15663rm -f core conftest.err conftest.$ac_objext \ 15664 conftest$ac_exeext conftest.$ac_ext 15665 done 15666 if test "$ires" -a "$lres" -a "$with_libintl" != "no"; then 15667 INCLUDE_libintl="-I$ires" 15668 LIB_libintl="-L$lres -lintl " 15669 found=yes 15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 15671$as_echo "headers $ires, libraries $lres" >&6; } 15672 fi 15673 fi 15674 CFLAGS="$save_CFLAGS" 15675 LIBS="$save_LIBS" 15676fi 15677 15678if test "$found" = yes; then 15679 15680cat >>confdefs.h <<_ACEOF 15681#define LIBINTL 1 15682_ACEOF 15683 15684 with_libintl=yes 15685else 15686 with_libintl=no 15687 INCLUDE_libintl= 15688 LIB_libintl= 15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15690$as_echo "no" >&6; } 15691fi 15692 15693 15694 15695 15696 15697 15698# Check whether --with-hdbdir was given. 15699if test "${with_hdbdir+set}" = set; then : 15700 withval=$with_hdbdir; 15701else 15702 with_hdbdir=/var/heimdal 15703fi 15704 15705DIR_hdbdir="$with_hdbdir" 15706 15707 15708 15709 if true; then 15710 KRB5_TRUE= 15711 KRB5_FALSE='#' 15712else 15713 KRB5_TRUE='#' 15714 KRB5_FALSE= 15715fi 15716 15717 if true; then 15718 do_roken_rename_TRUE= 15719 do_roken_rename_FALSE='#' 15720else 15721 do_roken_rename_TRUE='#' 15722 do_roken_rename_FALSE= 15723fi 15724 15725 15726 15727$as_echo "#define SUPPORT_INETD 1" >>confdefs.h 15728 15729 15730 15731$as_echo "#define KRB5 1" >>confdefs.h 15732 15733 15734 15735# Check whether --with-hcrypto-default-backend was given. 15736if test "${with_hcrypto_default_backend+set}" = set; then : 15737 withval=$with_hcrypto_default_backend; 15738 CFLAGS="${CFLAGS} -DHCRYPTO_DEF_PROVIDER=${withval}" 15739 case "$withval" in 15740 cc) 15741$as_echo "#define HCRYPTO_DEF_PROVIDER cc" >>confdefs.h 15742;; 15743 pkcs11_hcrypto) 15744$as_echo "#define HCRYPTO_DEF_PROVIDER pkcs11_hcrypto" >>confdefs.h 15745;; 15746 ossl) 15747$as_echo "#define HCRYPTO_DEF_PROVIDER ossl" >>confdefs.h 15748;; 15749 w32crypto) 15750$as_echo "#define HCRYPTO_DEF_PROVIDER w32crypto" >>confdefs.h 15751;; 15752 hcrypto) 15753$as_echo "#define HCRYPTO_DEF_PROVIDER hcrypto" >>confdefs.h 15754;; 15755 *) echo "Invalid hcrypto provider name ($withval)"; exit 5;; 15756 esac 15757 15758fi 15759 15760 15761# Check whether --with-hcrypto-fallback was given. 15762if test "${with_hcrypto_fallback+set}" = set; then : 15763 withval=$with_hcrypto_fallback; 15764$as_echo "#define HCRYPTO_FALLBACK 0" >>confdefs.h 15765 15766else 15767 15768$as_echo "#define HCRYPTO_FALLBACK 1" >>confdefs.h 15769 15770fi 15771 15772 15773 15774# Check whether --with-openssl was given. 15775if test "${with_openssl+set}" = set; then : 15776 withval=$with_openssl; 15777fi 15778 15779 15780 15781# Check whether --with-openssl-lib was given. 15782if test "${with_openssl_lib+set}" = set; then : 15783 withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 15784 as_fn_error $? "No argument for --with-openssl-lib" "$LINENO" 5 15785elif test "X$with_openssl" = "X"; then 15786 with_openssl=yes 15787fi 15788fi 15789 15790 15791 15792# Check whether --with-openssl-include was given. 15793if test "${with_openssl_include+set}" = set; then : 15794 withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 15795 as_fn_error $? "No argument for --with-openssl-include" "$LINENO" 5 15796elif test "X$with_openssl" = "X"; then 15797 with_openssl=yes 15798fi 15799fi 15800 15801 15802case "$with_openssl" in 15803yes) ;; 15804no) ;; 15805"") ;; 15806*) if test "$with_openssl_include" = ""; then 15807 with_openssl_include="$with_openssl/include" 15808 fi 15809 if test "$with_openssl_lib" = ""; then 15810 with_openssl_lib="$with_openssl/lib$abilibdirext" 15811 fi 15812 ;; 15813esac 15814 15815 15816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5 15817$as_echo_n "checking for crypto library... " >&6; } 15818 15819openssl=no 15820 15821if test "$with_openssl" = "yes"; then 15822 with_openssl=/usr 15823fi 15824if test "$with_openssl" != "no"; then 15825 saved_CFLAGS="${CFLAGS}" 15826 saved_LDFLAGS="${LDFLAGS}" 15827 INCLUDE_openssl_crypto= 15828 LIB_openssl_crypto= 15829 if test "$with_openssl_include" != ""; then 15830 INCLUDE_openssl_crypto="-I${with_openssl_include}" 15831 else 15832 INCLUDE_openssl_crypto="-I${with_openssl}/include" 15833 fi 15834 if test "$with_openssl_lib" != ""; then 15835 LIB_openssl_crypto="-L${with_openssl_lib}" 15836 elif test "${with_openssl}" != "/usr" -a -d "${with_openssl}/lib"; then 15837 LIB_openssl_crypto="-L${with_openssl}/lib" 15838 fi 15839 CFLAGS="-DHAVE_HCRYPTO_W_OPENSSL ${INCLUDE_openssl_crypto} ${CFLAGS}" 15840 LDFLAGS="${LIB_openssl_crypto} ${LDFLAGS}" 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 15842$as_echo_n "checking for OPENSSL_init in -lcrypto... " >&6; } 15843if ${ac_cv_lib_crypto_OPENSSL_init+:} false; then : 15844 $as_echo_n "(cached) " >&6 15845else 15846 ac_check_lib_save_LIBS=$LIBS 15847LIBS="-lcrypto $LIBS" 15848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15849/* end confdefs.h. */ 15850 15851/* Override any GCC internal prototype to avoid an error. 15852 Use char because int might match the return type of a GCC 15853 builtin and then its argument prototype would still apply. */ 15854#ifdef __cplusplus 15855extern "C" 15856#endif 15857char OPENSSL_init (); 15858int 15859main () 15860{ 15861return OPENSSL_init (); 15862 ; 15863 return 0; 15864} 15865_ACEOF 15866if ac_fn_c_try_link "$LINENO"; then : 15867 ac_cv_lib_crypto_OPENSSL_init=yes 15868else 15869 ac_cv_lib_crypto_OPENSSL_init=no 15870fi 15871rm -f core conftest.err conftest.$ac_objext \ 15872 conftest$ac_exeext conftest.$ac_ext 15873LIBS=$ac_check_lib_save_LIBS 15874fi 15875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 15876$as_echo "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 15877if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes; then : 15878 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto"; openssl=yes 15879else 15880 openssl=no 15881fi 15882 15883 # These cases are just for static linking on older OSes, 15884 # presumably. 15885 if test "$openssl" = "no"; then 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 15887$as_echo_n "checking for OPENSSL_init in -lcrypto... " >&6; } 15888if ${ac_cv_lib_crypto_OPENSSL_init+:} false; then : 15889 $as_echo_n "(cached) " >&6 15890else 15891 ac_check_lib_save_LIBS=$LIBS 15892LIBS="-lcrypto -ldl $LIBS" 15893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15894/* end confdefs.h. */ 15895 15896/* Override any GCC internal prototype to avoid an error. 15897 Use char because int might match the return type of a GCC 15898 builtin and then its argument prototype would still apply. */ 15899#ifdef __cplusplus 15900extern "C" 15901#endif 15902char OPENSSL_init (); 15903int 15904main () 15905{ 15906return OPENSSL_init (); 15907 ; 15908 return 0; 15909} 15910_ACEOF 15911if ac_fn_c_try_link "$LINENO"; then : 15912 ac_cv_lib_crypto_OPENSSL_init=yes 15913else 15914 ac_cv_lib_crypto_OPENSSL_init=no 15915fi 15916rm -f core conftest.err conftest.$ac_objext \ 15917 conftest$ac_exeext conftest.$ac_ext 15918LIBS=$ac_check_lib_save_LIBS 15919fi 15920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 15921$as_echo "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 15922if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes; then : 15923 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl"; openssl=yes 15924else 15925 openssl=no 15926fi 15927 15928 fi 15929 if test "$openssl" = "no"; then 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 15931$as_echo_n "checking for OPENSSL_init in -lcrypto... " >&6; } 15932if ${ac_cv_lib_crypto_OPENSSL_init+:} false; then : 15933 $as_echo_n "(cached) " >&6 15934else 15935 ac_check_lib_save_LIBS=$LIBS 15936LIBS="-lcrypto -ldl -lnsl $LIBS" 15937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15938/* end confdefs.h. */ 15939 15940/* Override any GCC internal prototype to avoid an error. 15941 Use char because int might match the return type of a GCC 15942 builtin and then its argument prototype would still apply. */ 15943#ifdef __cplusplus 15944extern "C" 15945#endif 15946char OPENSSL_init (); 15947int 15948main () 15949{ 15950return OPENSSL_init (); 15951 ; 15952 return 0; 15953} 15954_ACEOF 15955if ac_fn_c_try_link "$LINENO"; then : 15956 ac_cv_lib_crypto_OPENSSL_init=yes 15957else 15958 ac_cv_lib_crypto_OPENSSL_init=no 15959fi 15960rm -f core conftest.err conftest.$ac_objext \ 15961 conftest$ac_exeext conftest.$ac_ext 15962LIBS=$ac_check_lib_save_LIBS 15963fi 15964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 15965$as_echo "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 15966if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes; then : 15967 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl -lnsl"; openssl=yes 15968else 15969 openssl=no 15970fi 15971 15972 fi 15973 if test "$openssl" = "no"; then 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 15975$as_echo_n "checking for OPENSSL_init in -lcrypto... " >&6; } 15976if ${ac_cv_lib_crypto_OPENSSL_init+:} false; then : 15977 $as_echo_n "(cached) " >&6 15978else 15979 ac_check_lib_save_LIBS=$LIBS 15980LIBS="-lcrypto -ldl -lnsl -lsocket $LIBS" 15981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15982/* end confdefs.h. */ 15983 15984/* Override any GCC internal prototype to avoid an error. 15985 Use char because int might match the return type of a GCC 15986 builtin and then its argument prototype would still apply. */ 15987#ifdef __cplusplus 15988extern "C" 15989#endif 15990char OPENSSL_init (); 15991int 15992main () 15993{ 15994return OPENSSL_init (); 15995 ; 15996 return 0; 15997} 15998_ACEOF 15999if ac_fn_c_try_link "$LINENO"; then : 16000 ac_cv_lib_crypto_OPENSSL_init=yes 16001else 16002 ac_cv_lib_crypto_OPENSSL_init=no 16003fi 16004rm -f core conftest.err conftest.$ac_objext \ 16005 conftest$ac_exeext conftest.$ac_ext 16006LIBS=$ac_check_lib_save_LIBS 16007fi 16008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 16009$as_echo "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 16010if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes; then : 16011 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl -lnsl -lsocket"; openssl=yes 16012else 16013 openssl=no 16014fi 16015 16016 fi 16017 if test "$openssl" = "no"; then 16018 INCLUDE_openssl_crypto= 16019 LIB_openssl_crypto= 16020 fi 16021 CFLAGS="${saved_CFLAGS}" 16022 LDFLAGS="${saved_LDFLAGS}" 16023fi 16024 16025LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la' 16026LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a' 16027LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so' 16028LIB_hcrypto_appl="-lhcrypto" 16029 16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: included libhcrypto" >&5 16031$as_echo "included libhcrypto" >&6; } 16032 16033 16034# Check whether --with-pkcs11-module was given. 16035if test "${with_pkcs11_module+set}" = set; then : 16036 withval=$with_pkcs11_module; pkcs11_module="$withval" 16037fi 16038 16039 16040if test "$pkcs11_module" != ""; then 16041 16042cat >>confdefs.h <<_ACEOF 16043#define PKCS11_MODULE_PATH "$pkcs11_module" 16044_ACEOF 16045 16046 openssl=no 16047fi 16048 16049if test "$openssl" = "yes"; then 16050 16051$as_echo "#define HAVE_HCRYPTO_W_OPENSSL 1" >>confdefs.h 16052 16053fi 16054 if test "$openssl" = yes; then 16055 HAVE_HCRYPTO_W_OPENSSL_TRUE= 16056 HAVE_HCRYPTO_W_OPENSSL_FALSE='#' 16057else 16058 HAVE_HCRYPTO_W_OPENSSL_TRUE='#' 16059 HAVE_HCRYPTO_W_OPENSSL_FALSE= 16060fi 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling threadsafe libraries" >&5 16072$as_echo_n "checking if compiling threadsafe libraries... " >&6; } 16073 16074# Check whether --enable-pthread-support was given. 16075if test "${enable_pthread_support+set}" = set; then : 16076 enableval=$enable_pthread_support; 16077else 16078 enable_pthread_support=maybe 16079fi 16080 16081 16082case "$host" in 16083*-*-solaris2*) 16084 native_pthread_support=yes 16085 if test "$GCC" = yes; then 16086 PTHREAD_CFLAGS="-D_REENTRANT -D_TS_ERRNO" 16087 PTHREAD_LIBADD=-lpthread 16088 else 16089 PTHREAD_CFLAGS="-mt -D_REENTRANT -D_TS_ERRNO" 16090 PTHREAD_LDADD=-mt 16091 PTHREAD_LIBADD="-mt -lpthread" 16092 fi 16093 ;; 16094*-*-netbsd[12]*) 16095 native_pthread_support="if running netbsd 1.6T or newer" 16096 PTHREAD_LIBADD="-lpthread" 16097 ;; 16098*-*-netbsd[3456789]*) 16099 native_pthread_support="netbsd 3 uses explict pthread" 16100 PTHREAD_LIBADD="-lpthread" 16101 ;; 16102*-*-freebsd[1234]) 16103 ;; 16104*-*-freebsd*) 16105 native_pthread_support=yes 16106 PTHREAD_LIBADD="-pthread" 16107 ;; 16108*-*-openbsd*) 16109 native_pthread_support=yes 16110 PTHREAD_CFLAGS=-pthread 16111 PTHREAD_LIBADD=-pthread 16112 ;; 16113*-*-gnu*) 16114 native_pthread_support=yes 16115 PTHREADS_CFLAGS=-pthread 16116 PTHREAD_LIBADD="-pthread -lpthread" 16117 ;; 16118*-*-linux* | *-*-linux-gnu) 16119 case `uname -r` in 16120 2.*|3.*) 16121 native_pthread_support=yes 16122 PTHREAD_CFLAGS=-pthread 16123 PTHREAD_LIBADD=-pthread 16124 ;; 16125 esac 16126 ;; 16127*-*-kfreebsd*-gnu*) 16128 native_pthread_support=yes 16129 PTHREAD_CFLAGS=-pthread 16130 PTHREAD_LIBADD=-pthread 16131 ;; 16132*-*-aix*) 16133 native_pthread_support=no 16134 ;; 16135mips-sgi-irix6.[5-9]) # maybe works for earlier versions too 16136 native_pthread_support=yes 16137 PTHREAD_LIBADD="-lpthread" 16138 ;; 16139*-*-darwin*) 16140 native_pthread_support=yes 16141 ;; 16142*) 16143 native_pthread_support=no 16144 ;; 16145esac 16146 16147if test "$enable_pthread_support" = maybe ; then 16148 enable_pthread_support="$native_pthread_support" 16149fi 16150 16151if test "$enable_pthread_support" != no; then 16152 16153$as_echo "#define ENABLE_PTHREAD_SUPPORT 1" >>confdefs.h 16154 16155 LIBS="$PTHREAD_LIBADD $LIBS" 16156else 16157 PTHREAD_CFLAGS="" 16158 PTHREAD_LIBADD="" 16159fi 16160 16161 if test "$enable_pthread_support" != no; then 16162 ENABLE_PTHREAD_SUPPORT_TRUE= 16163 ENABLE_PTHREAD_SUPPORT_FALSE='#' 16164else 16165 ENABLE_PTHREAD_SUPPORT_TRUE='#' 16166 ENABLE_PTHREAD_SUPPORT_FALSE= 16167fi 16168 16169 16170CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16171LDADD="$LDADD $PTHREAD_LDADD" 16172LIBADD="$LIBADD $PTHREAD_LIBADD" 16173 16174 16175 16176 16177 16178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pthread_support" >&5 16179$as_echo "$enable_pthread_support" >&6; } 16180 16181 16182# Check whether --enable-dce was given. 16183if test "${enable_dce+set}" = set; then : 16184 enableval=$enable_dce; 16185fi 16186 16187if test "$enable_dce" = yes; then 16188 16189$as_echo "#define DCE 1" >>confdefs.h 16190 16191fi 16192 if test "$enable_dce" = yes; then 16193 DCE_TRUE= 16194 DCE_FALSE='#' 16195else 16196 DCE_TRUE='#' 16197 DCE_FALSE= 16198fi 16199 16200 16201## XXX quite horrible: 16202if test -f /etc/ibmcxx.cfg; then 16203 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 16204 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 16205 dpagaix_ldflags= 16206else 16207 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 16208 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 16209 dpagaix_ldflags="-Wl,-bI:dfspag.exp" 16210fi 16211 16212 16213 16214 16215# Check whether --enable-afs-support was given. 16216if test "${enable_afs_support+set}" = set; then : 16217 enableval=$enable_afs_support; 16218fi 16219 16220if test "$enable_afs_support" = no; then 16221 16222$as_echo "#define NO_AFS 1" >>confdefs.h 16223 16224 NO_AFS="1" 16225fi 16226 if test "$enable_afs_support" = no; then 16227 NO_AFS_TRUE= 16228 NO_AFS_FALSE='#' 16229else 16230 NO_AFS_TRUE='#' 16231 NO_AFS_FALSE= 16232fi 16233 16234 16235 16236 16237# Check whether --with-db-type-preference was given. 16238if test "${with_db_type_preference+set}" = set; then : 16239 withval=$with_db_type_preference; db_type_preference="$withval" 16240else 16241 db_type_preference="lmdb db3 db1 sqlite" 16242fi 16243 16244 16245# Check whether --with-berkeley-db was given. 16246if test "${with_berkeley_db+set}" = set; then : 16247 withval=$with_berkeley_db; 16248else 16249 with_berkeley_db=check 16250fi 16251 16252 16253dbheader="" 16254 16255# Check whether --with-berkeley-db-include was given. 16256if test "${with_berkeley_db_include+set}" = set; then : 16257 withval=$with_berkeley_db_include; dbheader=$withval 16258else 16259 with_berkeley_db_include=check 16260fi 16261 16262 16263# Check whether --enable-ndbm-db was given. 16264if test "${enable_ndbm_db+set}" = set; then : 16265 enableval=$enable_ndbm_db; 16266 16267fi 16268 16269 16270# Check whether --enable-mdb-db was given. 16271if test "${enable_mdb_db+set}" = set; then : 16272 enableval=$enable_mdb_db; 16273 16274fi 16275 16276 16277have_db1=no 16278have_db3=no 16279have_lmdb=no 16280db_type=unknown 16281 16282if test "x$with_berkeley_db" != xno; then : 16283 if test "x$with_berkeley_db_include" != xcheck; then : 16284 for ac_header in "$dbheader/db.h" 16285do : 16286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16287ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16288if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16289 cat >>confdefs.h <<_ACEOF 16290#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16291_ACEOF 16292 DBHEADER=$dbheader 16293 16294 16295$as_echo "#define HAVE_DBHEADER 1" >>confdefs.h 16296 16297 16298else 16299 if test "x$with_berkeley_db_include" != xcheck; then 16300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16302as_fn_error $? "--with-berkeley-db-include was given but include test failed 16303See \`config.log' for more details" "$LINENO" 5; } 16304 fi 16305 16306fi 16307 16308done 16309 16310else 16311 for ac_header in \ 16312 db6/db.h \ 16313 db5/db.h \ 16314 db4/db.h \ 16315 db3/db.h \ 16316 db.h \ 16317 16318do : 16319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16320ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16321if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16322 cat >>confdefs.h <<_ACEOF 16323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16324_ACEOF 16325 16326fi 16327 16328done 16329 16330fi 16331 16332 16333 16334 16335 16336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create" >&5 16337$as_echo_n "checking for db_create... " >&6; } 16338if ${ac_cv_funclib_db_create+:} false; then : 16339 $as_echo_n "(cached) " >&6 16340else 16341 16342if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 16343 ac_save_LIBS="$LIBS" 16344 for ac_lib in "" $dbheader db-5 db5 db4 db3 db; do 16345 case "$ac_lib" in 16346 "") ;; 16347 yes) ac_lib="" ;; 16348 no) continue ;; 16349 -l*) ;; 16350 *) ac_lib="-l$ac_lib" ;; 16351 esac 16352 LIBS=" $ac_lib $ac_save_LIBS" 16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16354/* end confdefs.h. */ 16355 16356 #include <stdio.h> 16357 #ifdef HAVE_DBHEADER 16358 #include <$dbheader/db.h> 16359 #elif HAVE_DB6_DB_H 16360 #include <db6/db.h> 16361 #elif HAVE_DB5_DB_H 16362 #include <db5/db.h> 16363 #elif HAVE_DB4_DB_H 16364 #include <db4/db.h> 16365 #elif defined(HAVE_DB3_DB_H) 16366 #include <db3/db.h> 16367 #else 16368 #include <db.h> 16369 #endif 16370 16371int 16372main () 16373{ 16374db_create(NULL, NULL, 0) 16375 ; 16376 return 0; 16377} 16378_ACEOF 16379if ac_fn_c_try_link "$LINENO"; then : 16380 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 16381fi 16382rm -f core conftest.err conftest.$ac_objext \ 16383 conftest$ac_exeext conftest.$ac_ext 16384 done 16385 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 16386 LIBS="$ac_save_LIBS" 16387fi 16388 16389fi 16390 16391 16392eval "ac_res=\$ac_cv_funclib_db_create" 16393 16394if false; then 16395 for ac_func in db_create 16396do : 16397 ac_fn_c_check_func "$LINENO" "db_create" "ac_cv_func_db_create" 16398if test "x$ac_cv_func_db_create" = xyes; then : 16399 cat >>confdefs.h <<_ACEOF 16400#define HAVE_DB_CREATE 1 16401_ACEOF 16402 16403fi 16404done 16405 16406fi 16407# db_create 16408eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16409eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16410eval "LIB_db_create=$ac_res" 16411 16412case "$ac_res" in 16413 yes) 16414 eval "ac_cv_func_db_create=yes" 16415 eval "LIB_db_create=" 16416 cat >>confdefs.h <<_ACEOF 16417#define $ac_tr_func 1 16418_ACEOF 16419 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16421$as_echo "yes" >&6; } 16422 ;; 16423 no) 16424 eval "ac_cv_func_db_create=no" 16425 eval "LIB_db_create=" 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16427$as_echo "no" >&6; } 16428 ;; 16429 *) 16430 eval "ac_cv_func_db_create=yes" 16431 cat >>confdefs.h <<_ACEOF 16432#define $ac_tr_func 1 16433_ACEOF 16434 16435 cat >>confdefs.h <<_ACEOF 16436#define $ac_tr_lib 1 16437_ACEOF 16438 16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 16440$as_echo "yes, in $ac_res" >&6; } 16441 ;; 16442esac 16443 16444 16445 16446 if test "$ac_cv_func_db_create" = "yes"; then 16447 have_db3=yes 16448 if test "$ac_cv_funclib_db_create" != "yes"; then 16449 DB3LIB="$ac_cv_funclib_db_create" 16450 else 16451 DB3LIB="" 16452 fi 16453 16454$as_echo "#define HAVE_DB3 1" >>confdefs.h 16455 16456 fi 16457 16458 16459 16460 16461 16462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen" >&5 16463$as_echo_n "checking for dbopen... " >&6; } 16464if ${ac_cv_funclib_dbopen+:} false; then : 16465 $as_echo_n "(cached) " >&6 16466else 16467 16468if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 16469 ac_save_LIBS="$LIBS" 16470 for ac_lib in "" db2 db; do 16471 case "$ac_lib" in 16472 "") ;; 16473 yes) ac_lib="" ;; 16474 no) continue ;; 16475 -l*) ;; 16476 *) ac_lib="-l$ac_lib" ;; 16477 esac 16478 LIBS=" $ac_lib $ac_save_LIBS" 16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16480/* end confdefs.h. */ 16481 16482 #include <stdio.h> 16483 #if defined(HAVE_DB2_DB_H) 16484 #include <db2/db.h> 16485 #elif defined(HAVE_DB_H) 16486 #include <db.h> 16487 #else 16488 #error no db.h 16489 #endif 16490 16491int 16492main () 16493{ 16494dbopen(NULL, 0, 0, 0, NULL) 16495 ; 16496 return 0; 16497} 16498_ACEOF 16499if ac_fn_c_try_link "$LINENO"; then : 16500 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 16501fi 16502rm -f core conftest.err conftest.$ac_objext \ 16503 conftest$ac_exeext conftest.$ac_ext 16504 done 16505 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 16506 LIBS="$ac_save_LIBS" 16507fi 16508 16509fi 16510 16511 16512eval "ac_res=\$ac_cv_funclib_dbopen" 16513 16514if false; then 16515 for ac_func in dbopen 16516do : 16517 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen" 16518if test "x$ac_cv_func_dbopen" = xyes; then : 16519 cat >>confdefs.h <<_ACEOF 16520#define HAVE_DBOPEN 1 16521_ACEOF 16522 16523fi 16524done 16525 16526fi 16527# dbopen 16528eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16529eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16530eval "LIB_dbopen=$ac_res" 16531 16532case "$ac_res" in 16533 yes) 16534 eval "ac_cv_func_dbopen=yes" 16535 eval "LIB_dbopen=" 16536 cat >>confdefs.h <<_ACEOF 16537#define $ac_tr_func 1 16538_ACEOF 16539 16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16541$as_echo "yes" >&6; } 16542 ;; 16543 no) 16544 eval "ac_cv_func_dbopen=no" 16545 eval "LIB_dbopen=" 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16547$as_echo "no" >&6; } 16548 ;; 16549 *) 16550 eval "ac_cv_func_dbopen=yes" 16551 cat >>confdefs.h <<_ACEOF 16552#define $ac_tr_func 1 16553_ACEOF 16554 16555 cat >>confdefs.h <<_ACEOF 16556#define $ac_tr_lib 1 16557_ACEOF 16558 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 16560$as_echo "yes, in $ac_res" >&6; } 16561 ;; 16562esac 16563 16564 16565 16566 if test "$ac_cv_func_dbopen" = "yes"; then 16567 have_db1=yes 16568 if test "$ac_cv_funclib_dbopen" != "yes"; then 16569 DB1LIB="$ac_cv_funclib_dbopen" 16570 else 16571 DB1LIB="" 16572 fi 16573 16574$as_echo "#define HAVE_DB1 1" >>confdefs.h 16575 16576 fi 16577 16578 16579 if test "$ac_cv_func_dbm_firstkey" != yes; then 16580 16581 16582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 16583$as_echo_n "checking for dbm_firstkey... " >&6; } 16584if ${ac_cv_funclib_dbm_firstkey+:} false; then : 16585 $as_echo_n "(cached) " >&6 16586else 16587 16588if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 16589 ac_save_LIBS="$LIBS" 16590 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do 16591 case "$ac_lib" in 16592 "") ;; 16593 yes) ac_lib="" ;; 16594 no) continue ;; 16595 -l*) ;; 16596 *) ac_lib="-l$ac_lib" ;; 16597 esac 16598 LIBS=" $ac_lib $ac_save_LIBS" 16599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16600/* end confdefs.h. */ 16601 16602 #include <stdio.h> 16603 #define DB_DBM_HSEARCH 1 16604 #include <db.h> 16605 DBM *dbm; 16606 16607int 16608main () 16609{ 16610dbm_firstkey(NULL) 16611 ; 16612 return 0; 16613} 16614_ACEOF 16615if ac_fn_c_try_link "$LINENO"; then : 16616 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 16617fi 16618rm -f core conftest.err conftest.$ac_objext \ 16619 conftest$ac_exeext conftest.$ac_ext 16620 done 16621 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 16622 LIBS="$ac_save_LIBS" 16623fi 16624 16625fi 16626 16627 16628eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 16629 16630if false; then 16631 for ac_func in dbm_firstkey 16632do : 16633 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 16634if test "x$ac_cv_func_dbm_firstkey" = xyes; then : 16635 cat >>confdefs.h <<_ACEOF 16636#define HAVE_DBM_FIRSTKEY 1 16637_ACEOF 16638 16639fi 16640done 16641 16642fi 16643# dbm_firstkey 16644eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16645eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16646eval "LIB_dbm_firstkey=$ac_res" 16647 16648case "$ac_res" in 16649 yes) 16650 eval "ac_cv_func_dbm_firstkey=yes" 16651 eval "LIB_dbm_firstkey=" 16652 cat >>confdefs.h <<_ACEOF 16653#define $ac_tr_func 1 16654_ACEOF 16655 16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16657$as_echo "yes" >&6; } 16658 ;; 16659 no) 16660 eval "ac_cv_func_dbm_firstkey=no" 16661 eval "LIB_dbm_firstkey=" 16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16663$as_echo "no" >&6; } 16664 ;; 16665 *) 16666 eval "ac_cv_func_dbm_firstkey=yes" 16667 cat >>confdefs.h <<_ACEOF 16668#define $ac_tr_func 1 16669_ACEOF 16670 16671 cat >>confdefs.h <<_ACEOF 16672#define $ac_tr_lib 1 16673_ACEOF 16674 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 16676$as_echo "yes, in $ac_res" >&6; } 16677 ;; 16678esac 16679 16680 16681 16682 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 16683 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 16684 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 16685 else 16686 NDBMLIB="" 16687 fi 16688 16689$as_echo "#define HAVE_DB_NDBM 1" >>confdefs.h 16690 16691 16692$as_echo "#define HAVE_NEW_DB 1" >>confdefs.h 16693 16694 else 16695 $as_unset ac_cv_func_dbm_firstkey 16696 $as_unset ac_cv_funclib_dbm_firstkey 16697 fi 16698 fi 16699 16700 16701fi # fi berkeley db 16702 16703 16704if test "x$enable_mdb_db" != xno; then : 16705 ac_fn_c_check_header_mongrel "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default" 16706if test "x$ac_cv_header_lmdb_h" = xyes; then : 16707 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5 16709$as_echo_n "checking for mdb_env_create in -llmdb... " >&6; } 16710if ${ac_cv_lib_lmdb_mdb_env_create+:} false; then : 16711 $as_echo_n "(cached) " >&6 16712else 16713 ac_check_lib_save_LIBS=$LIBS 16714LIBS="-llmdb $LIBS" 16715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16716/* end confdefs.h. */ 16717 16718/* Override any GCC internal prototype to avoid an error. 16719 Use char because int might match the return type of a GCC 16720 builtin and then its argument prototype would still apply. */ 16721#ifdef __cplusplus 16722extern "C" 16723#endif 16724char mdb_env_create (); 16725int 16726main () 16727{ 16728return mdb_env_create (); 16729 ; 16730 return 0; 16731} 16732_ACEOF 16733if ac_fn_c_try_link "$LINENO"; then : 16734 ac_cv_lib_lmdb_mdb_env_create=yes 16735else 16736 ac_cv_lib_lmdb_mdb_env_create=no 16737fi 16738rm -f core conftest.err conftest.$ac_objext \ 16739 conftest$ac_exeext conftest.$ac_ext 16740LIBS=$ac_check_lib_save_LIBS 16741fi 16742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5 16743$as_echo "$ac_cv_lib_lmdb_mdb_env_create" >&6; } 16744if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes; then : 16745 have_lmdb=yes; LMDBLIB="-llmdb" 16746 16747$as_echo "#define HAVE_LMDB 1" >>confdefs.h 16748 16749fi 16750 16751fi 16752 16753 16754fi 16755 16756for db_type in unknown $db_type_preference; do 16757 if eval test \"x\$have_${db_type}\" = xyes -o ${db_type} = sqlite; then 16758 break 16759 fi 16760 db_type=unknown 16761done 16762 16763if test "x$have_db3" = xyes -a "$db_type" = unknown; then : 16764 db_type=db3 16765else 16766 db_type="$db_type" 16767fi 16768if test "x$have_db1" = xyes -a "$db_type" = unknown; then : 16769 db_type=db1 16770else 16771 db_type="$db_type" 16772fi 16773if test "x$have_lmdb" = xyes -a "$db_type" = unknown; then : 16774 db_type=lmdb 16775else 16776 db_type="$db_type" 16777fi 16778 16779if test "$enable_ndbm_db" != "no"; then 16780 16781 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then 16782 16783 for ac_header in \ 16784 dbm.h \ 16785 ndbm.h \ 16786 16787do : 16788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16789ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16790if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16791 cat >>confdefs.h <<_ACEOF 16792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16793_ACEOF 16794 16795fi 16796 16797done 16798 16799 16800 16801 16802 16803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 16804$as_echo_n "checking for dbm_firstkey... " >&6; } 16805if ${ac_cv_funclib_dbm_firstkey+:} false; then : 16806 $as_echo_n "(cached) " >&6 16807else 16808 16809if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 16810 ac_save_LIBS="$LIBS" 16811 for ac_lib in "" ndbm; do 16812 case "$ac_lib" in 16813 "") ;; 16814 yes) ac_lib="" ;; 16815 no) continue ;; 16816 -l*) ;; 16817 *) ac_lib="-l$ac_lib" ;; 16818 esac 16819 LIBS=" $ac_lib $ac_save_LIBS" 16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16821/* end confdefs.h. */ 16822 16823 #include <stdio.h> 16824 #if defined(HAVE_NDBM_H) 16825 #include <ndbm.h> 16826 #elif defined(HAVE_DBM_H) 16827 #include <dbm.h> 16828 #endif 16829 DBM *dbm; 16830 16831int 16832main () 16833{ 16834dbm_firstkey(NULL) 16835 ; 16836 return 0; 16837} 16838_ACEOF 16839if ac_fn_c_try_link "$LINENO"; then : 16840 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 16841fi 16842rm -f core conftest.err conftest.$ac_objext \ 16843 conftest$ac_exeext conftest.$ac_ext 16844 done 16845 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 16846 LIBS="$ac_save_LIBS" 16847fi 16848 16849fi 16850 16851 16852eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 16853 16854if false; then 16855 for ac_func in dbm_firstkey 16856do : 16857 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 16858if test "x$ac_cv_func_dbm_firstkey" = xyes; then : 16859 cat >>confdefs.h <<_ACEOF 16860#define HAVE_DBM_FIRSTKEY 1 16861_ACEOF 16862 16863fi 16864done 16865 16866fi 16867# dbm_firstkey 16868eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16869eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16870eval "LIB_dbm_firstkey=$ac_res" 16871 16872case "$ac_res" in 16873 yes) 16874 eval "ac_cv_func_dbm_firstkey=yes" 16875 eval "LIB_dbm_firstkey=" 16876 cat >>confdefs.h <<_ACEOF 16877#define $ac_tr_func 1 16878_ACEOF 16879 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16881$as_echo "yes" >&6; } 16882 ;; 16883 no) 16884 eval "ac_cv_func_dbm_firstkey=no" 16885 eval "LIB_dbm_firstkey=" 16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16887$as_echo "no" >&6; } 16888 ;; 16889 *) 16890 eval "ac_cv_func_dbm_firstkey=yes" 16891 cat >>confdefs.h <<_ACEOF 16892#define $ac_tr_func 1 16893_ACEOF 16894 16895 cat >>confdefs.h <<_ACEOF 16896#define $ac_tr_lib 1 16897_ACEOF 16898 16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 16900$as_echo "yes, in $ac_res" >&6; } 16901 ;; 16902esac 16903 16904 16905 16906 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 16907 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 16908 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 16909 else 16910 NDBMLIB="" 16911 fi 16912 16913$as_echo "#define HAVE_NDBM 1" >>confdefs.h 16914 have_ndbm=yes 16915 else 16916 16917 $as_unset ac_cv_func_dbm_firstkey 16918 $as_unset ac_cv_funclib_dbm_firstkey 16919 16920 for ac_header in \ 16921 gdbm/ndbm.h \ 16922 16923do : 16924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16925ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16927 cat >>confdefs.h <<_ACEOF 16928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16929_ACEOF 16930 16931fi 16932 16933done 16934 16935 16936 16937 16938 16939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 16940$as_echo_n "checking for dbm_firstkey... " >&6; } 16941if ${ac_cv_funclib_dbm_firstkey+:} false; then : 16942 $as_echo_n "(cached) " >&6 16943else 16944 16945if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 16946 ac_save_LIBS="$LIBS" 16947 for ac_lib in "" gdbm; do 16948 case "$ac_lib" in 16949 "") ;; 16950 yes) ac_lib="" ;; 16951 no) continue ;; 16952 -l*) ;; 16953 *) ac_lib="-l$ac_lib" ;; 16954 esac 16955 LIBS=" $ac_lib $ac_save_LIBS" 16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16957/* end confdefs.h. */ 16958 16959 #include <stdio.h> 16960 #include <gdbm/ndbm.h> 16961 DBM *dbm; 16962 16963int 16964main () 16965{ 16966dbm_firstkey(NULL) 16967 ; 16968 return 0; 16969} 16970_ACEOF 16971if ac_fn_c_try_link "$LINENO"; then : 16972 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 16973fi 16974rm -f core conftest.err conftest.$ac_objext \ 16975 conftest$ac_exeext conftest.$ac_ext 16976 done 16977 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 16978 LIBS="$ac_save_LIBS" 16979fi 16980 16981fi 16982 16983 16984eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 16985 16986if false; then 16987 for ac_func in dbm_firstkey 16988do : 16989 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 16990if test "x$ac_cv_func_dbm_firstkey" = xyes; then : 16991 cat >>confdefs.h <<_ACEOF 16992#define HAVE_DBM_FIRSTKEY 1 16993_ACEOF 16994 16995fi 16996done 16997 16998fi 16999# dbm_firstkey 17000eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17001eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17002eval "LIB_dbm_firstkey=$ac_res" 17003 17004case "$ac_res" in 17005 yes) 17006 eval "ac_cv_func_dbm_firstkey=yes" 17007 eval "LIB_dbm_firstkey=" 17008 cat >>confdefs.h <<_ACEOF 17009#define $ac_tr_func 1 17010_ACEOF 17011 17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17013$as_echo "yes" >&6; } 17014 ;; 17015 no) 17016 eval "ac_cv_func_dbm_firstkey=no" 17017 eval "LIB_dbm_firstkey=" 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17019$as_echo "no" >&6; } 17020 ;; 17021 *) 17022 eval "ac_cv_func_dbm_firstkey=yes" 17023 cat >>confdefs.h <<_ACEOF 17024#define $ac_tr_func 1 17025_ACEOF 17026 17027 cat >>confdefs.h <<_ACEOF 17028#define $ac_tr_lib 1 17029_ACEOF 17030 17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 17032$as_echo "yes, in $ac_res" >&6; } 17033 ;; 17034esac 17035 17036 17037 17038 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 17039 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 17040 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 17041 else 17042 NDBMLIB="" 17043 fi 17044 17045$as_echo "#define HAVE_NDBM 1" >>confdefs.h 17046 have_ndbm=yes 17047 if test "$db_type" = "unknown"; then 17048 db_type=ndbm 17049 fi 17050 fi 17051 fi 17052 fi #enable_ndbm_db 17053fi # unknown 17054 17055if test "$have_ndbm" = "yes"; then 17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ndbm is implemented with db" >&5 17057$as_echo_n "checking if ndbm is implemented with db... " >&6; } 17058 if test "$cross_compiling" = yes; then : 17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no-cross" >&5 17060$as_echo "no-cross" >&6; } 17061else 17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17063/* end confdefs.h. */ 17064 17065#include <unistd.h> 17066#include <fcntl.h> 17067#if defined(HAVE_GDBM_NDBM_H) 17068#include <gdbm/ndbm.h> 17069#elif defined(HAVE_NDBM_H) 17070#include <ndbm.h> 17071#elif defined(HAVE_DBM_H) 17072#include <dbm.h> 17073#endif 17074int main(int argc, char **argv) 17075{ 17076 DBM *d; 17077 17078 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666); 17079 if (d == NULL) 17080 return 1; 17081 dbm_close(d); 17082 return 0; 17083} 17084_ACEOF 17085if ac_fn_c_try_run "$LINENO"; then : 17086 17087 if test -f conftest.db; then 17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17089$as_echo "yes" >&6; } 17090 17091$as_echo "#define HAVE_NEW_DB 1" >>confdefs.h 17092 17093 else 17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17095$as_echo "no" >&6; } 17096 fi 17097else 17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17099$as_echo "no" >&6; } 17100fi 17101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17102 conftest.$ac_objext conftest.beam conftest.$ac_ext 17103fi 17104 17105fi 17106 17107 if test "$have_db1" = yes; then 17108 HAVE_DB1_TRUE= 17109 HAVE_DB1_FALSE='#' 17110else 17111 HAVE_DB1_TRUE='#' 17112 HAVE_DB1_FALSE= 17113fi 17114 if test "$have_db3" = yes; then 17115 HAVE_DB3_TRUE= 17116 HAVE_DB3_FALSE='#' 17117else 17118 HAVE_DB3_TRUE='#' 17119 HAVE_DB3_FALSE= 17120fi 17121 if test "$have_lmdb" = yes; then 17122 HAVE_LMDB_TRUE= 17123 HAVE_LMDB_FALSE='#' 17124else 17125 HAVE_LMDB_TRUE='#' 17126 HAVE_LMDB_FALSE= 17127fi 17128 if test "$have_ndbm" = yes; then 17129 HAVE_NDBM_TRUE= 17130 HAVE_NDBM_FALSE='#' 17131else 17132 HAVE_NDBM_TRUE='#' 17133 HAVE_NDBM_FALSE= 17134fi 17135 if test "$dbheader" != ""; then 17136 HAVE_DBHEADER_TRUE= 17137 HAVE_DBHEADER_FALSE='#' 17138else 17139 HAVE_DBHEADER_TRUE='#' 17140 HAVE_DBHEADER_FALSE= 17141fi 17142 17143## it's probably not correct to include LDFLAGS here, but we might 17144## need it, for now just add any possible -L 17145z="" 17146for i in $LDFLAGS; do 17147 case "$i" in 17148 -L*) z="$z $i";; 17149 esac 17150done 17151DB3LIB="$z $DB3LIB" 17152DB1LIB="$z $DB1LIB" 17153LMDBLIB="$z $LMDBLIB" 17154NDMBLIB="$z $NDBMLIB" 17155 17156 17157 17158 17159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 17160$as_echo_n "checking for inline... " >&6; } 17161if ${ac_cv_c_inline+:} false; then : 17162 $as_echo_n "(cached) " >&6 17163else 17164 ac_cv_c_inline=no 17165for ac_kw in inline __inline__ __inline; do 17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17167/* end confdefs.h. */ 17168#ifndef __cplusplus 17169typedef int foo_t; 17170static $ac_kw foo_t static_foo () {return 0; } 17171$ac_kw foo_t foo () {return 0; } 17172#endif 17173 17174_ACEOF 17175if ac_fn_c_try_compile "$LINENO"; then : 17176 ac_cv_c_inline=$ac_kw 17177fi 17178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17179 test "$ac_cv_c_inline" != no && break 17180done 17181 17182fi 17183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 17184$as_echo "$ac_cv_c_inline" >&6; } 17185 17186case $ac_cv_c_inline in 17187 inline | yes) ;; 17188 *) 17189 case $ac_cv_c_inline in 17190 no) ac_val=;; 17191 *) ac_val=$ac_cv_c_inline;; 17192 esac 17193 cat >>confdefs.h <<_ACEOF 17194#ifndef __cplusplus 17195#define inline $ac_val 17196#endif 17197_ACEOF 17198 ;; 17199esac 17200 17201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 17202$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 17203if ${ac_cv_c_const+:} false; then : 17204 $as_echo_n "(cached) " >&6 17205else 17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17207/* end confdefs.h. */ 17208 17209int 17210main () 17211{ 17212 17213#ifndef __cplusplus 17214 /* Ultrix mips cc rejects this sort of thing. */ 17215 typedef int charset[2]; 17216 const charset cs = { 0, 0 }; 17217 /* SunOS 4.1.1 cc rejects this. */ 17218 char const *const *pcpcc; 17219 char **ppc; 17220 /* NEC SVR4.0.2 mips cc rejects this. */ 17221 struct point {int x, y;}; 17222 static struct point const zero = {0,0}; 17223 /* AIX XL C 1.02.0.0 rejects this. 17224 It does not let you subtract one const X* pointer from another in 17225 an arm of an if-expression whose if-part is not a constant 17226 expression */ 17227 const char *g = "string"; 17228 pcpcc = &g + (g ? g-g : 0); 17229 /* HPUX 7.0 cc rejects these. */ 17230 ++pcpcc; 17231 ppc = (char**) pcpcc; 17232 pcpcc = (char const *const *) ppc; 17233 { /* SCO 3.2v4 cc rejects this sort of thing. */ 17234 char tx; 17235 char *t = &tx; 17236 char const *s = 0 ? (char *) 0 : (char const *) 0; 17237 17238 *t++ = 0; 17239 if (s) return 0; 17240 } 17241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17242 int x[] = {25, 17}; 17243 const int *foo = &x[0]; 17244 ++foo; 17245 } 17246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17247 typedef const int *iptr; 17248 iptr p = 0; 17249 ++p; 17250 } 17251 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 17252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17253 struct s { int j; const int *ap[3]; } bx; 17254 struct s *b = &bx; b->j = 5; 17255 } 17256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17257 const int foo = 10; 17258 if (!foo) return 0; 17259 } 17260 return !cs[0] && !zero.x; 17261#endif 17262 17263 ; 17264 return 0; 17265} 17266_ACEOF 17267if ac_fn_c_try_compile "$LINENO"; then : 17268 ac_cv_c_const=yes 17269else 17270 ac_cv_c_const=no 17271fi 17272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17273fi 17274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17275$as_echo "$ac_cv_c_const" >&6; } 17276if test $ac_cv_c_const = no; then 17277 17278$as_echo "#define const /**/" >>confdefs.h 17279 17280fi 17281 17282ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17283if test "x$ac_cv_type_size_t" = xyes; then : 17284 17285else 17286 17287cat >>confdefs.h <<_ACEOF 17288#define size_t unsigned int 17289_ACEOF 17290 17291fi 17292 17293ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 17294if test "x$ac_cv_type_pid_t" = xyes; then : 17295 17296else 17297 17298cat >>confdefs.h <<_ACEOF 17299#define pid_t int 17300_ACEOF 17301 17302fi 17303 17304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17305$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 17306if ${ac_cv_type_uid_t+:} false; then : 17307 $as_echo_n "(cached) " >&6 17308else 17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17310/* end confdefs.h. */ 17311#include <sys/types.h> 17312 17313_ACEOF 17314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17315 $EGREP "uid_t" >/dev/null 2>&1; then : 17316 ac_cv_type_uid_t=yes 17317else 17318 ac_cv_type_uid_t=no 17319fi 17320rm -f conftest* 17321 17322fi 17323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17324$as_echo "$ac_cv_type_uid_t" >&6; } 17325if test $ac_cv_type_uid_t = no; then 17326 17327$as_echo "#define uid_t int" >>confdefs.h 17328 17329 17330$as_echo "#define gid_t int" >>confdefs.h 17331 17332fi 17333 17334 17335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 17336$as_echo_n "checking return type of signal handlers... " >&6; } 17337if ${ac_cv_type_signal+:} false; then : 17338 $as_echo_n "(cached) " >&6 17339else 17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17341/* end confdefs.h. */ 17342#include <sys/types.h> 17343#include <signal.h> 17344 17345int 17346main () 17347{ 17348return *(signal (0, 0)) (0) == 1; 17349 ; 17350 return 0; 17351} 17352_ACEOF 17353if ac_fn_c_try_compile "$LINENO"; then : 17354 ac_cv_type_signal=int 17355else 17356 ac_cv_type_signal=void 17357fi 17358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17359fi 17360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 17361$as_echo "$ac_cv_type_signal" >&6; } 17362 17363cat >>confdefs.h <<_ACEOF 17364#define RETSIGTYPE $ac_cv_type_signal 17365_ACEOF 17366 17367 17368if test "$ac_cv_type_signal" = "void" ; then 17369 17370$as_echo "#define VOID_RETSIGTYPE 1" >>confdefs.h 17371 17372fi 17373 17374 17375 17376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17377$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17378if ${ac_cv_header_time+:} false; then : 17379 $as_echo_n "(cached) " >&6 17380else 17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17382/* end confdefs.h. */ 17383#include <sys/types.h> 17384#include <sys/time.h> 17385#include <time.h> 17386 17387int 17388main () 17389{ 17390if ((struct tm *) 0) 17391return 0; 17392 ; 17393 return 0; 17394} 17395_ACEOF 17396if ac_fn_c_try_compile "$LINENO"; then : 17397 ac_cv_header_time=yes 17398else 17399 ac_cv_header_time=no 17400fi 17401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17402fi 17403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17404$as_echo "$ac_cv_header_time" >&6; } 17405if test $ac_cv_header_time = yes; then 17406 17407$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17408 17409fi 17410 17411 17412for ac_header in standards.h 17413do : 17414 ac_fn_c_check_header_mongrel "$LINENO" "standards.h" "ac_cv_header_standards_h" "$ac_includes_default" 17415if test "x$ac_cv_header_standards_h" = xyes; then : 17416 cat >>confdefs.h <<_ACEOF 17417#define HAVE_STANDARDS_H 1 17418_ACEOF 17419 17420fi 17421 17422done 17423 17424for i in netinet/ip.h netinet/tcp.h; do 17425 17426cv=`echo "$i" | sed 'y%./+-%__p_%'` 17427 17428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $i" >&5 17429$as_echo_n "checking for $i... " >&6; } 17430if eval \${ac_cv_header_$cv+:} false; then : 17431 $as_echo_n "(cached) " >&6 17432else 17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17434/* end confdefs.h. */ 17435 17436#ifdef HAVE_STANDARDS_H 17437#include <standards.h> 17438#endif 17439#include <$i> 17440 17441_ACEOF 17442if ac_fn_c_try_cpp "$LINENO"; then : 17443 eval "ac_cv_header_$cv=yes" 17444else 17445 eval "ac_cv_header_$cv=no" 17446fi 17447rm -f conftest.err conftest.i conftest.$ac_ext 17448fi 17449eval ac_res=\$ac_cv_header_$cv 17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17451$as_echo "$ac_res" >&6; } 17452ac_res=`eval echo \\$ac_cv_header_$cv` 17453if test "$ac_res" = yes; then 17454 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 17455 cat >>confdefs.h <<_ACEOF 17456#define $ac_tr_hdr 1 17457_ACEOF 17458 17459fi 17460done 17461if false;then 17462 for ac_header in netinet/ip.h netinet/tcp.h 17463do : 17464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17465ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17466if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17467 cat >>confdefs.h <<_ACEOF 17468#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17469_ACEOF 17470 17471fi 17472 17473done 17474 17475fi 17476 17477 17478for ac_func in getlogin setlogin 17479do : 17480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17481ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17482if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17483 cat >>confdefs.h <<_ACEOF 17484#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17485_ACEOF 17486 17487fi 17488done 17489 17490if test "$ac_cv_func_getlogin" = yes; then 17491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getlogin is posix" >&5 17492$as_echo_n "checking if getlogin is posix... " >&6; } 17493if ${ac_cv_func_getlogin_posix+:} false; then : 17494 $as_echo_n "(cached) " >&6 17495else 17496 17497if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 17498 ac_cv_func_getlogin_posix=no 17499else 17500 ac_cv_func_getlogin_posix=yes 17501fi 17502 17503fi 17504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getlogin_posix" >&5 17505$as_echo "$ac_cv_func_getlogin_posix" >&6; } 17506if test "$ac_cv_func_getlogin_posix" = yes; then 17507 17508$as_echo "#define POSIX_GETLOGIN 1" >>confdefs.h 17509 17510fi 17511fi 17512 17513 17514 17515 17516 for ac_header in $ac_header_list 17517do : 17518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17519ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 17520" 17521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17522 cat >>confdefs.h <<_ACEOF 17523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17524_ACEOF 17525 17526fi 17527 17528done 17529 17530 17531 17532 17533 17534 17535 17536 17537for ac_func in getpagesize 17538do : 17539 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 17540if test "x$ac_cv_func_getpagesize" = xyes; then : 17541 cat >>confdefs.h <<_ACEOF 17542#define HAVE_GETPAGESIZE 1 17543_ACEOF 17544 17545fi 17546done 17547 17548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 17549$as_echo_n "checking for working mmap... " >&6; } 17550if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 17551 $as_echo_n "(cached) " >&6 17552else 17553 if test "$cross_compiling" = yes; then : 17554 ac_cv_func_mmap_fixed_mapped=no 17555else 17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17557/* end confdefs.h. */ 17558$ac_includes_default 17559/* malloc might have been renamed as rpl_malloc. */ 17560#undef malloc 17561 17562/* Thanks to Mike Haertel and Jim Avera for this test. 17563 Here is a matrix of mmap possibilities: 17564 mmap private not fixed 17565 mmap private fixed at somewhere currently unmapped 17566 mmap private fixed at somewhere already mapped 17567 mmap shared not fixed 17568 mmap shared fixed at somewhere currently unmapped 17569 mmap shared fixed at somewhere already mapped 17570 For private mappings, we should verify that changes cannot be read() 17571 back from the file, nor mmap's back from the file at a different 17572 address. (There have been systems where private was not correctly 17573 implemented like the infamous i386 svr4.0, and systems where the 17574 VM page cache was not coherent with the file system buffer cache 17575 like early versions of FreeBSD and possibly contemporary NetBSD.) 17576 For shared mappings, we should conversely verify that changes get 17577 propagated back to all the places they're supposed to be. 17578 17579 Grep wants private fixed already mapped. 17580 The main things grep needs to know about mmap are: 17581 * does it exist and is it safe to write into the mmap'd area 17582 * how to use it (BSD variants) */ 17583 17584#include <fcntl.h> 17585#include <sys/mman.h> 17586 17587#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 17588char *malloc (); 17589#endif 17590 17591/* This mess was copied from the GNU getpagesize.h. */ 17592#ifndef HAVE_GETPAGESIZE 17593# ifdef _SC_PAGESIZE 17594# define getpagesize() sysconf(_SC_PAGESIZE) 17595# else /* no _SC_PAGESIZE */ 17596# ifdef HAVE_SYS_PARAM_H 17597# include <sys/param.h> 17598# ifdef EXEC_PAGESIZE 17599# define getpagesize() EXEC_PAGESIZE 17600# else /* no EXEC_PAGESIZE */ 17601# ifdef NBPG 17602# define getpagesize() NBPG * CLSIZE 17603# ifndef CLSIZE 17604# define CLSIZE 1 17605# endif /* no CLSIZE */ 17606# else /* no NBPG */ 17607# ifdef NBPC 17608# define getpagesize() NBPC 17609# else /* no NBPC */ 17610# ifdef PAGESIZE 17611# define getpagesize() PAGESIZE 17612# endif /* PAGESIZE */ 17613# endif /* no NBPC */ 17614# endif /* no NBPG */ 17615# endif /* no EXEC_PAGESIZE */ 17616# else /* no HAVE_SYS_PARAM_H */ 17617# define getpagesize() 8192 /* punt totally */ 17618# endif /* no HAVE_SYS_PARAM_H */ 17619# endif /* no _SC_PAGESIZE */ 17620 17621#endif /* no HAVE_GETPAGESIZE */ 17622 17623int 17624main () 17625{ 17626 char *data, *data2, *data3; 17627 const char *cdata2; 17628 int i, pagesize; 17629 int fd, fd2; 17630 17631 pagesize = getpagesize (); 17632 17633 /* First, make a file with some known garbage in it. */ 17634 data = (char *) malloc (pagesize); 17635 if (!data) 17636 return 1; 17637 for (i = 0; i < pagesize; ++i) 17638 *(data + i) = rand (); 17639 umask (0); 17640 fd = creat ("conftest.mmap", 0600); 17641 if (fd < 0) 17642 return 2; 17643 if (write (fd, data, pagesize) != pagesize) 17644 return 3; 17645 close (fd); 17646 17647 /* Next, check that the tail of a page is zero-filled. File must have 17648 non-zero length, otherwise we risk SIGBUS for entire page. */ 17649 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 17650 if (fd2 < 0) 17651 return 4; 17652 cdata2 = ""; 17653 if (write (fd2, cdata2, 1) != 1) 17654 return 5; 17655 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 17656 if (data2 == MAP_FAILED) 17657 return 6; 17658 for (i = 0; i < pagesize; ++i) 17659 if (*(data2 + i)) 17660 return 7; 17661 close (fd2); 17662 if (munmap (data2, pagesize)) 17663 return 8; 17664 17665 /* Next, try to mmap the file at a fixed address which already has 17666 something else allocated at it. If we can, also make sure that 17667 we see the same garbage. */ 17668 fd = open ("conftest.mmap", O_RDWR); 17669 if (fd < 0) 17670 return 9; 17671 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 17672 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 17673 return 10; 17674 for (i = 0; i < pagesize; ++i) 17675 if (*(data + i) != *(data2 + i)) 17676 return 11; 17677 17678 /* Finally, make sure that changes to the mapped area do not 17679 percolate back to the file as seen by read(). (This is a bug on 17680 some variants of i386 svr4.0.) */ 17681 for (i = 0; i < pagesize; ++i) 17682 *(data2 + i) = *(data2 + i) + 1; 17683 data3 = (char *) malloc (pagesize); 17684 if (!data3) 17685 return 12; 17686 if (read (fd, data3, pagesize) != pagesize) 17687 return 13; 17688 for (i = 0; i < pagesize; ++i) 17689 if (*(data + i) != *(data3 + i)) 17690 return 14; 17691 close (fd); 17692 return 0; 17693} 17694_ACEOF 17695if ac_fn_c_try_run "$LINENO"; then : 17696 ac_cv_func_mmap_fixed_mapped=yes 17697else 17698 ac_cv_func_mmap_fixed_mapped=no 17699fi 17700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17701 conftest.$ac_objext conftest.beam conftest.$ac_ext 17702fi 17703 17704fi 17705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 17706$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 17707if test $ac_cv_func_mmap_fixed_mapped = yes; then 17708 17709$as_echo "#define HAVE_MMAP 1" >>confdefs.h 17710 17711fi 17712rm -f conftest.mmap conftest.txt 17713 17714 17715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc if broken" >&5 17716$as_echo_n "checking if realloc if broken... " >&6; } 17717if ${ac_cv_func_realloc_broken+:} false; then : 17718 $as_echo_n "(cached) " >&6 17719else 17720 17721ac_cv_func_realloc_broken=no 17722if test "$cross_compiling" = yes; then : 17723 : 17724else 17725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17726/* end confdefs.h. */ 17727 17728#include <stddef.h> 17729#include <stdlib.h> 17730 17731int main(int argc, char **argv) 17732{ 17733 return realloc(NULL, 17) == NULL; 17734} 17735 17736_ACEOF 17737if ac_fn_c_try_run "$LINENO"; then : 17738 : 17739else 17740 ac_cv_func_realloc_broken=yes 17741fi 17742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17743 conftest.$ac_objext conftest.beam conftest.$ac_ext 17744fi 17745 17746 17747fi 17748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_broken" >&5 17749$as_echo "$ac_cv_func_realloc_broken" >&6; } 17750if test "$ac_cv_func_realloc_broken" = yes ; then 17751 17752$as_echo "#define BROKEN_REALLOC 1" >>confdefs.h 17753 17754fi 17755 17756 17757 17758 17759 17760 17761DIR_roken=roken 17762LIB_roken='$(top_builddir)/lib/roken/libroken.la' 17763INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774$as_echo "#define rk_PATH_DELIM '/'" >>confdefs.h 17775 17776 17777 17778 17779 17780 17781 17782 17783# Check whether --enable-developer was given. 17784if test "${enable_developer+set}" = set; then : 17785 enableval=$enable_developer; 17786fi 17787 17788if test "X$enable_developer" = Xyes; then 17789 dwflags="-Werror" 17790fi 17791 if test "X$enable_developer" = Xyes; then 17792 DEVELOPER_MODE_TRUE= 17793 DEVELOPER_MODE_FALSE='#' 17794else 17795 DEVELOPER_MODE_TRUE='#' 17796 DEVELOPER_MODE_FALSE= 17797fi 17798 17799 17800WFLAGS_NOUNUSED="" 17801if test -z "$WFLAGS" -a "$GCC" = "yes"; then 17802 # leave these out for now: 17803 # -Wcast-align doesn't work well on alpha osf/1 17804 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 17805 # -Wmissing-declarations -Wnested-externs 17806 # -Wstrict-overflow=5 17807 WFLAGS="-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow $dwflags" 17808 17809 # 17810 # WFLAGS_LITE can be appended to WFLAGS to turn off a host of warnings 17811 # that fail for various bits of older code in appl/. Let's not use it 17812 # for the main libraries, though. 17813 WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-shadow" 17814 # -Wno-unused-result (not supported on gcc-4.2) 17815 17816fi 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826cv=`echo "ssize_t" | sed 'y%./+- %__p__%'` 17827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 17828$as_echo_n "checking for ssize_t... " >&6; } 17829if eval \${ac_cv_type_$cv+:} false; then : 17830 $as_echo_n "(cached) " >&6 17831else 17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833/* end confdefs.h. */ 17834 17835#include <sys/types.h> 17836#if STDC_HEADERS 17837#include <stdlib.h> 17838#include <stddef.h> 17839#endif 17840#include <unistd.h> 17841int 17842main () 17843{ 17844ssize_t foo; 17845 ; 17846 return 0; 17847} 17848_ACEOF 17849if ac_fn_c_try_compile "$LINENO"; then : 17850 eval "ac_cv_type_$cv=yes" 17851else 17852 eval "ac_cv_type_$cv=no" 17853fi 17854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17855fi 17856ac_foo=`eval echo \\$ac_cv_type_$cv` 17857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 17858$as_echo "$ac_foo" >&6; } 17859if test "$ac_foo" = yes; then 17860 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 17861if false; then 17862 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 17863if test "x$ac_cv_type_ssize_t" = xyes; then : 17864 17865cat >>confdefs.h <<_ACEOF 17866#define HAVE_SSIZE_T 1 17867_ACEOF 17868 17869 17870fi 17871 17872fi 17873 17874cat >>confdefs.h <<_ACEOF 17875#define $ac_tr_hdr 1 17876_ACEOF 17877 17878fi 17879 17880 17881 17882 17883 17884cv=`echo "long long" | sed 'y%./+- %__p__%'` 17885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 17886$as_echo_n "checking for long long... " >&6; } 17887if eval \${ac_cv_type_$cv+:} false; then : 17888 $as_echo_n "(cached) " >&6 17889else 17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17891/* end confdefs.h. */ 17892 17893#include <sys/types.h> 17894#if STDC_HEADERS 17895#include <stdlib.h> 17896#include <stddef.h> 17897#endif 17898 17899int 17900main () 17901{ 17902long long foo; 17903 ; 17904 return 0; 17905} 17906_ACEOF 17907if ac_fn_c_try_compile "$LINENO"; then : 17908 eval "ac_cv_type_$cv=yes" 17909else 17910 eval "ac_cv_type_$cv=no" 17911fi 17912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17913fi 17914ac_foo=`eval echo \\$ac_cv_type_$cv` 17915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 17916$as_echo "$ac_foo" >&6; } 17917if test "$ac_foo" = yes; then 17918 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 17919if false; then 17920 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 17921if test "x$ac_cv_type_long_long" = xyes; then : 17922 17923cat >>confdefs.h <<_ACEOF 17924#define HAVE_LONG_LONG 1 17925_ACEOF 17926 17927 17928fi 17929 17930fi 17931 17932cat >>confdefs.h <<_ACEOF 17933#define $ac_tr_hdr 1 17934_ACEOF 17935 17936fi 17937 17938 17939 17940 17941 17942 17943 17944for ac_header in \ 17945 arpa/inet.h \ 17946 config.h \ 17947 crypt.h \ 17948 dirent.h \ 17949 errno.h \ 17950 err.h \ 17951 fcntl.h \ 17952 fnmatch.h \ 17953 grp.h \ 17954 ifaddrs.h \ 17955 netinet/in.h \ 17956 netinet/in6.h \ 17957 netinet/in_systm.h \ 17958 netinet6/in6.h \ 17959 paths.h \ 17960 poll.h \ 17961 pwd.h \ 17962 rpcsvc/ypclnt.h \ 17963 search.h \ 17964 shadow.h \ 17965 stdint.h \ 17966 sys/auxv.h \ 17967 sys/bswap.h \ 17968 sys/errno.h \ 17969 sys/ioctl.h \ 17970 sys/mman.h \ 17971 sys/param.h \ 17972 sys/resource.h \ 17973 sys/sockio.h \ 17974 sys/stat.h \ 17975 sys/time.h \ 17976 sys/tty.h \ 17977 sys/types.h \ 17978 sys/uio.h \ 17979 sys/utsname.h \ 17980 sys/wait.h \ 17981 syslog.h \ 17982 termios.h \ 17983 winsock2.h \ 17984 ws2tcpip.h \ 17985 unistd.h \ 17986 userconf.h \ 17987 usersec.h \ 17988 util.h \ 17989 17990do : 17991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17992ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17994 cat >>confdefs.h <<_ACEOF 17995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17996_ACEOF 17997 17998fi 17999 18000done 18001 18002 18003 18004 18005cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'` 18006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 18007$as_echo_n "checking for uintptr_t... " >&6; } 18008if eval \${ac_cv_type_$cv+:} false; then : 18009 $as_echo_n "(cached) " >&6 18010else 18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18012/* end confdefs.h. */ 18013 18014#include <sys/types.h> 18015#if STDC_HEADERS 18016#include <stdlib.h> 18017#include <stddef.h> 18018#endif 18019#ifdef HAVE_STDINT_H 18020#include <stdint.h> 18021#endif 18022int 18023main () 18024{ 18025uintptr_t foo; 18026 ; 18027 return 0; 18028} 18029_ACEOF 18030if ac_fn_c_try_compile "$LINENO"; then : 18031 eval "ac_cv_type_$cv=yes" 18032else 18033 eval "ac_cv_type_$cv=no" 18034fi 18035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18036fi 18037ac_foo=`eval echo \\$ac_cv_type_$cv` 18038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 18039$as_echo "$ac_foo" >&6; } 18040if test "$ac_foo" = yes; then 18041 ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 18042if false; then 18043 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 18044if test "x$ac_cv_type_uintptr_t" = xyes; then : 18045 18046cat >>confdefs.h <<_ACEOF 18047#define HAVE_UINTPTR_T 1 18048_ACEOF 18049 18050 18051fi 18052 18053fi 18054 18055cat >>confdefs.h <<_ACEOF 18056#define $ac_tr_hdr 1 18057_ACEOF 18058 18059fi 18060 18061 18062for ac_header in vis.h 18063do : 18064 ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" " 18065#include <vis.h> 18066#ifndef VIS_SP 18067#error invis 18068#endif 18069" 18070if test "x$ac_cv_header_vis_h" = xyes; then : 18071 cat >>confdefs.h <<_ACEOF 18072#define HAVE_VIS_H 1 18073_ACEOF 18074 18075fi 18076 18077done 18078 18079 18080for ac_header in netdb.h 18081do : 18082 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 18083#ifdef HAVE_SYS_TYPES_H 18084#include <sys/types.h> 18085#endif 18086 18087" 18088if test "x$ac_cv_header_netdb_h" = xyes; then : 18089 cat >>confdefs.h <<_ACEOF 18090#define HAVE_NETDB_H 1 18091_ACEOF 18092 18093fi 18094 18095done 18096 18097 18098for ac_header in sys/socket.h 18099do : 18100 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 18101#ifdef HAVE_SYS_TYPES_H 18102#include <sys/types.h> 18103#endif 18104 18105" 18106if test "x$ac_cv_header_sys_socket_h" = xyes; then : 18107 cat >>confdefs.h <<_ACEOF 18108#define HAVE_SYS_SOCKET_H 1 18109_ACEOF 18110 18111fi 18112 18113done 18114 18115 18116for ac_header in net/if.h 18117do : 18118 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 18119#ifdef HAVE_SYS_TYPES_H 18120#include <sys/types.h> 18121#endif 18122#if HAVE_SYS_SOCKET_H 18123#include <sys/socket.h> 18124#endif 18125" 18126if test "x$ac_cv_header_net_if_h" = xyes; then : 18127 cat >>confdefs.h <<_ACEOF 18128#define HAVE_NET_IF_H 1 18129_ACEOF 18130 18131fi 18132 18133done 18134 18135 18136for ac_header in netinet6/in6_var.h 18137do : 18138 ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "$ac_includes_default 18139#ifdef HAVE_SYS_TYPES_H 18140#include <sys/types.h> 18141#endif 18142#if HAVE_SYS_SOCKET_H 18143#include <sys/socket.h> 18144#endif 18145#ifdef HAVE_NETINET6_IN6_H 18146#include <netinet6/in6.h> 18147#endif 18148 18149" 18150if test "x$ac_cv_header_netinet6_in6_var_h" = xyes; then : 18151 cat >>confdefs.h <<_ACEOF 18152#define HAVE_NETINET6_IN6_VAR_H 1 18153_ACEOF 18154 18155fi 18156 18157done 18158 18159 18160for ac_header in sys/sysctl.h 18161do : 18162 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 18163#ifdef HAVE_SYS_PARAM_H 18164#include <sys/param.h> 18165#endif 18166 18167" 18168if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 18169 cat >>confdefs.h <<_ACEOF 18170#define HAVE_SYS_SYSCTL_H 1 18171_ACEOF 18172 18173fi 18174 18175done 18176 18177 18178for ac_header in sys/proc.h 18179do : 18180 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "$ac_includes_default 18181#ifdef HAVE_SYS_PARAM_H 18182#include <sys/param.h> 18183#endif 18184 18185" 18186if test "x$ac_cv_header_sys_proc_h" = xyes; then : 18187 cat >>confdefs.h <<_ACEOF 18188#define HAVE_SYS_PROC_H 1 18189_ACEOF 18190 18191fi 18192 18193done 18194 18195 18196 18197 18198 if test "$ac_cv_header_err_h" = yes; then 18199 have_err_h_TRUE= 18200 have_err_h_FALSE='#' 18201else 18202 have_err_h_TRUE='#' 18203 have_err_h_FALSE= 18204fi 18205 18206 if test "$ac_cv_header_ifaddrs_h" = yes; then 18207 have_ifaddrs_h_TRUE= 18208 have_ifaddrs_h_FALSE='#' 18209else 18210 have_ifaddrs_h_TRUE='#' 18211 have_ifaddrs_h_FALSE= 18212fi 18213 18214 if test "$ac_cv_header_search_h" = yes; then 18215 have_search_h_TRUE= 18216 have_search_h_FALSE='#' 18217else 18218 have_search_h_TRUE='#' 18219 have_search_h_FALSE= 18220fi 18221 18222 if test "$ac_cv_header_vis_h" = yes; then 18223 have_vis_h_TRUE= 18224 have_vis_h_FALSE='#' 18225else 18226 have_vis_h_TRUE='#' 18227 have_vis_h_FALSE= 18228fi 18229 18230 18231 18232 18233 18234 18235 18236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket" >&5 18237$as_echo_n "checking for socket... " >&6; } 18238if ${ac_cv_funclib_socket+:} false; then : 18239 $as_echo_n "(cached) " >&6 18240else 18241 18242if eval "test \"\$ac_cv_func_socket\" != yes" ; then 18243 ac_save_LIBS="$LIBS" 18244 for ac_lib in "" socket; do 18245 case "$ac_lib" in 18246 "") ;; 18247 yes) ac_lib="" ;; 18248 no) continue ;; 18249 -l*) ;; 18250 *) ac_lib="-l$ac_lib" ;; 18251 esac 18252 LIBS=" $ac_lib $ac_save_LIBS" 18253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18254/* end confdefs.h. */ 18255 18256int 18257main () 18258{ 18259socket() 18260 ; 18261 return 0; 18262} 18263_ACEOF 18264if ac_fn_c_try_link "$LINENO"; then : 18265 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 18266fi 18267rm -f core conftest.err conftest.$ac_objext \ 18268 conftest$ac_exeext conftest.$ac_ext 18269 done 18270 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 18271 LIBS="$ac_save_LIBS" 18272fi 18273 18274fi 18275 18276 18277eval "ac_res=\$ac_cv_funclib_socket" 18278 18279if false; then 18280 for ac_func in socket 18281do : 18282 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 18283if test "x$ac_cv_func_socket" = xyes; then : 18284 cat >>confdefs.h <<_ACEOF 18285#define HAVE_SOCKET 1 18286_ACEOF 18287 18288fi 18289done 18290 18291fi 18292# socket 18293eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18294eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18295eval "LIB_socket=$ac_res" 18296 18297case "$ac_res" in 18298 yes) 18299 eval "ac_cv_func_socket=yes" 18300 eval "LIB_socket=" 18301 cat >>confdefs.h <<_ACEOF 18302#define $ac_tr_func 1 18303_ACEOF 18304 18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18306$as_echo "yes" >&6; } 18307 ;; 18308 no) 18309 eval "ac_cv_func_socket=no" 18310 eval "LIB_socket=" 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18312$as_echo "no" >&6; } 18313 ;; 18314 *) 18315 eval "ac_cv_func_socket=yes" 18316 cat >>confdefs.h <<_ACEOF 18317#define $ac_tr_func 1 18318_ACEOF 18319 18320 cat >>confdefs.h <<_ACEOF 18321#define $ac_tr_lib 1 18322_ACEOF 18323 18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18325$as_echo "yes, in $ac_res" >&6; } 18326 ;; 18327esac 18328 18329 18330if test -n "$LIB_socket"; then 18331 LIBS="$LIB_socket $LIBS" 18332fi 18333 18334 18335 18336 18337 18338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5 18339$as_echo_n "checking for gethostbyname... " >&6; } 18340if ${ac_cv_funclib_gethostbyname+:} false; then : 18341 $as_echo_n "(cached) " >&6 18342else 18343 18344if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 18345 ac_save_LIBS="$LIBS" 18346 for ac_lib in "" nsl; do 18347 case "$ac_lib" in 18348 "") ;; 18349 yes) ac_lib="" ;; 18350 no) continue ;; 18351 -l*) ;; 18352 *) ac_lib="-l$ac_lib" ;; 18353 esac 18354 LIBS=" $ac_lib $ac_save_LIBS" 18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18356/* end confdefs.h. */ 18357 18358int 18359main () 18360{ 18361gethostbyname() 18362 ; 18363 return 0; 18364} 18365_ACEOF 18366if ac_fn_c_try_link "$LINENO"; then : 18367 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 18368fi 18369rm -f core conftest.err conftest.$ac_objext \ 18370 conftest$ac_exeext conftest.$ac_ext 18371 done 18372 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 18373 LIBS="$ac_save_LIBS" 18374fi 18375 18376fi 18377 18378 18379eval "ac_res=\$ac_cv_funclib_gethostbyname" 18380 18381if false; then 18382 for ac_func in gethostbyname 18383do : 18384 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18385if test "x$ac_cv_func_gethostbyname" = xyes; then : 18386 cat >>confdefs.h <<_ACEOF 18387#define HAVE_GETHOSTBYNAME 1 18388_ACEOF 18389 18390fi 18391done 18392 18393fi 18394# gethostbyname 18395eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18396eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18397eval "LIB_gethostbyname=$ac_res" 18398 18399case "$ac_res" in 18400 yes) 18401 eval "ac_cv_func_gethostbyname=yes" 18402 eval "LIB_gethostbyname=" 18403 cat >>confdefs.h <<_ACEOF 18404#define $ac_tr_func 1 18405_ACEOF 18406 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18408$as_echo "yes" >&6; } 18409 ;; 18410 no) 18411 eval "ac_cv_func_gethostbyname=no" 18412 eval "LIB_gethostbyname=" 18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18414$as_echo "no" >&6; } 18415 ;; 18416 *) 18417 eval "ac_cv_func_gethostbyname=yes" 18418 cat >>confdefs.h <<_ACEOF 18419#define $ac_tr_func 1 18420_ACEOF 18421 18422 cat >>confdefs.h <<_ACEOF 18423#define $ac_tr_lib 1 18424_ACEOF 18425 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18427$as_echo "yes, in $ac_res" >&6; } 18428 ;; 18429esac 18430 18431 18432if test -n "$LIB_gethostbyname"; then 18433 LIBS="$LIB_gethostbyname $LIBS" 18434fi 18435 18436 18437 18438 18439 18440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog" >&5 18441$as_echo_n "checking for syslog... " >&6; } 18442if ${ac_cv_funclib_syslog+:} false; then : 18443 $as_echo_n "(cached) " >&6 18444else 18445 18446if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 18447 ac_save_LIBS="$LIBS" 18448 for ac_lib in "" syslog; do 18449 case "$ac_lib" in 18450 "") ;; 18451 yes) ac_lib="" ;; 18452 no) continue ;; 18453 -l*) ;; 18454 *) ac_lib="-l$ac_lib" ;; 18455 esac 18456 LIBS=" $ac_lib $ac_save_LIBS" 18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18458/* end confdefs.h. */ 18459 18460int 18461main () 18462{ 18463syslog() 18464 ; 18465 return 0; 18466} 18467_ACEOF 18468if ac_fn_c_try_link "$LINENO"; then : 18469 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 18470fi 18471rm -f core conftest.err conftest.$ac_objext \ 18472 conftest$ac_exeext conftest.$ac_ext 18473 done 18474 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 18475 LIBS="$ac_save_LIBS" 18476fi 18477 18478fi 18479 18480 18481eval "ac_res=\$ac_cv_funclib_syslog" 18482 18483if false; then 18484 for ac_func in syslog 18485do : 18486 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" 18487if test "x$ac_cv_func_syslog" = xyes; then : 18488 cat >>confdefs.h <<_ACEOF 18489#define HAVE_SYSLOG 1 18490_ACEOF 18491 18492fi 18493done 18494 18495fi 18496# syslog 18497eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18498eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18499eval "LIB_syslog=$ac_res" 18500 18501case "$ac_res" in 18502 yes) 18503 eval "ac_cv_func_syslog=yes" 18504 eval "LIB_syslog=" 18505 cat >>confdefs.h <<_ACEOF 18506#define $ac_tr_func 1 18507_ACEOF 18508 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18510$as_echo "yes" >&6; } 18511 ;; 18512 no) 18513 eval "ac_cv_func_syslog=no" 18514 eval "LIB_syslog=" 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18516$as_echo "no" >&6; } 18517 ;; 18518 *) 18519 eval "ac_cv_func_syslog=yes" 18520 cat >>confdefs.h <<_ACEOF 18521#define $ac_tr_func 1 18522_ACEOF 18523 18524 cat >>confdefs.h <<_ACEOF 18525#define $ac_tr_lib 1 18526_ACEOF 18527 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18529$as_echo "yes, in $ac_res" >&6; } 18530 ;; 18531esac 18532 18533 18534if test -n "$LIB_syslog"; then 18535 LIBS="$LIB_syslog $LIBS" 18536fi 18537 18538 18539 18540 18541# Check whether --with-ipv6 was given. 18542if test "${with_ipv6+set}" = set; then : 18543 withval=$with_ipv6; 18544 ac_cv_lib_ipv6="$withval" 18545 18546fi 18547 18548save_CFLAGS="${CFLAGS}" 18549 18550if test "X$ac_cv_lib_ipv6" != "Xno"; then 18551 18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 stack type" >&5 18553$as_echo_n "checking for IPv6 stack type... " >&6; } 18554if ${rk_cv_v6type+:} false; then : 18555 $as_echo_n "(cached) " >&6 18556else 18557 v6type=unknown 18558 v6lib=none 18559 18560 for i in v6d toshiba kame inria zeta linux; do 18561 case $i in 18562 v6d) 18563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18564/* end confdefs.h. */ 18565 18566#include </usr/local/v6/include/sys/types.h> 18567#ifdef __V6D__ 18568yes 18569#endif 18570_ACEOF 18571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18572 $EGREP "yes" >/dev/null 2>&1; then : 18573 v6type=$i; v6lib=v6; 18574 v6libdir=/usr/local/v6/lib; 18575 CFLAGS="-I/usr/local/v6/include $CFLAGS" 18576fi 18577rm -f conftest* 18578 18579 ;; 18580 toshiba) 18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18582/* end confdefs.h. */ 18583 18584#include <sys/param.h> 18585#ifdef _TOSHIBA_INET6 18586yes 18587#endif 18588_ACEOF 18589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18590 $EGREP "yes" >/dev/null 2>&1; then : 18591 v6type=$i; v6lib=inet6; 18592 v6libdir=/usr/local/v6/lib; 18593 CFLAGS="-DINET6 $CFLAGS" 18594fi 18595rm -f conftest* 18596 18597 ;; 18598 kame) 18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18600/* end confdefs.h. */ 18601 18602#include <netinet/in.h> 18603#ifdef __KAME__ 18604yes 18605#endif 18606_ACEOF 18607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18608 $EGREP "yes" >/dev/null 2>&1; then : 18609 v6type=$i; v6lib=inet6; 18610 v6libdir=/usr/local/v6/lib; 18611 CFLAGS="-DINET6 $CFLAGS" 18612fi 18613rm -f conftest* 18614 18615 ;; 18616 inria) 18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18618/* end confdefs.h. */ 18619 18620#include <netinet/in.h> 18621#ifdef IPV6_INRIA_VERSION 18622yes 18623#endif 18624_ACEOF 18625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18626 $EGREP "yes" >/dev/null 2>&1; then : 18627 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 18628fi 18629rm -f conftest* 18630 18631 ;; 18632 zeta) 18633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18634/* end confdefs.h. */ 18635 18636#include <sys/param.h> 18637#ifdef _ZETA_MINAMI_INET6 18638yes 18639#endif 18640_ACEOF 18641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18642 $EGREP "yes" >/dev/null 2>&1; then : 18643 v6type=$i; v6lib=inet6; 18644 v6libdir=/usr/local/v6/lib; 18645 CFLAGS="-DINET6 $CFLAGS" 18646fi 18647rm -f conftest* 18648 18649 ;; 18650 linux) 18651 if test -d /usr/inet6; then 18652 v6type=$i 18653 v6lib=inet6 18654 v6libdir=/usr/inet6 18655 CFLAGS="-DINET6 $CFLAGS" 18656 fi 18657 ;; 18658 esac 18659 if test "$v6type" != "unknown"; then 18660 break 18661 fi 18662 done 18663 18664 if test "$v6lib" != "none"; then 18665 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 18666 if test -d $dir -a -f $dir/lib$v6lib.a; then 18667 LIBS="-L$dir -l$v6lib $LIBS" 18668 break 18669 fi 18670 done 18671 fi 18672fi 18673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_v6type" >&5 18674$as_echo "$rk_cv_v6type" >&6; } 18675 18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5 18677$as_echo_n "checking for IPv6... " >&6; } 18678if ${rk_cv_lib_ipv6+:} false; then : 18679 $as_echo_n "(cached) " >&6 18680else 18681 18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18683/* end confdefs.h. */ 18684 18685#ifdef HAVE_SYS_TYPES_H 18686#include <sys/types.h> 18687#endif 18688#ifdef HAVE_SYS_SOCKET_H 18689#include <sys/socket.h> 18690#endif 18691#ifdef HAVE_NETINET_IN_H 18692#include <netinet/in.h> 18693#endif 18694#ifdef HAVE_NETINET_IN6_H 18695#include <netinet/in6.h> 18696#endif 18697 18698int 18699main () 18700{ 18701 18702 struct sockaddr_in6 sin6; 18703 int s; 18704 18705 s = socket(AF_INET6, SOCK_DGRAM, 0); 18706 18707 sin6.sin6_family = AF_INET6; 18708 sin6.sin6_port = htons(17); 18709 sin6.sin6_addr = in6addr_any; 18710 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 18711 18712 ; 18713 return 0; 18714} 18715_ACEOF 18716if ac_fn_c_try_link "$LINENO"; then : 18717 ac_cv_lib_ipv6=yes 18718else 18719 ac_cv_lib_ipv6=no 18720fi 18721rm -f core conftest.err conftest.$ac_objext \ 18722 conftest$ac_exeext conftest.$ac_ext 18723fi 18724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_lib_ipv6" >&5 18725$as_echo "$rk_cv_lib_ipv6" >&6; } 18726fi 18727 18728if test "$ac_cv_lib_ipv6" = yes; then 18729 18730$as_echo "#define HAVE_IPV6 1" >>confdefs.h 18731 18732else 18733 CFLAGS="${save_CFLAGS}" 18734fi 18735 18736## test for AIX missing in6addr_loopback 18737if test "$ac_cv_lib_ipv6" = yes; then 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5 18739$as_echo_n "checking for in6addr_loopback... " >&6; } 18740if ${rk_cv_var_in6addr_loopback+:} false; then : 18741 $as_echo_n "(cached) " >&6 18742else 18743 18744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18745/* end confdefs.h. */ 18746 18747#ifdef HAVE_SYS_TYPES_H 18748#include <sys/types.h> 18749#endif 18750#ifdef HAVE_SYS_SOCKET_H 18751#include <sys/socket.h> 18752#endif 18753#ifdef HAVE_NETINET_IN_H 18754#include <netinet/in.h> 18755#endif 18756#ifdef HAVE_NETINET_IN6_H 18757#include <netinet/in6.h> 18758#endif 18759int 18760main () 18761{ 18762 18763struct sockaddr_in6 sin6; 18764sin6.sin6_addr = in6addr_loopback; 18765 18766 ; 18767 return 0; 18768} 18769_ACEOF 18770if ac_fn_c_try_link "$LINENO"; then : 18771 ac_cv_var_in6addr_loopback=yes 18772else 18773 ac_cv_var_in6addr_loopback=no 18774fi 18775rm -f core conftest.err conftest.$ac_objext \ 18776 conftest$ac_exeext conftest.$ac_ext 18777fi 18778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_var_in6addr_loopback" >&5 18779$as_echo "$rk_cv_var_in6addr_loopback" >&6; } 18780 if test "$ac_cv_var_in6addr_loopback" = yes; then 18781 18782$as_echo "#define HAVE_IN6ADDR_LOOPBACK 1" >>confdefs.h 18783 18784 fi 18785fi 18786 18787 18788 18789 18790 18791 18792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2" >&5 18793$as_echo_n "checking for gethostbyname2... " >&6; } 18794if ${ac_cv_funclib_gethostbyname2+:} false; then : 18795 $as_echo_n "(cached) " >&6 18796else 18797 18798if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 18799 ac_save_LIBS="$LIBS" 18800 for ac_lib in "" inet6 ip6; do 18801 case "$ac_lib" in 18802 "") ;; 18803 yes) ac_lib="" ;; 18804 no) continue ;; 18805 -l*) ;; 18806 *) ac_lib="-l$ac_lib" ;; 18807 esac 18808 LIBS=" $ac_lib $ac_save_LIBS" 18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18810/* end confdefs.h. */ 18811 18812int 18813main () 18814{ 18815gethostbyname2() 18816 ; 18817 return 0; 18818} 18819_ACEOF 18820if ac_fn_c_try_link "$LINENO"; then : 18821 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 18822fi 18823rm -f core conftest.err conftest.$ac_objext \ 18824 conftest$ac_exeext conftest.$ac_ext 18825 done 18826 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 18827 LIBS="$ac_save_LIBS" 18828fi 18829 18830fi 18831 18832 18833eval "ac_res=\$ac_cv_funclib_gethostbyname2" 18834 18835if false; then 18836 for ac_func in gethostbyname2 18837do : 18838 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2" 18839if test "x$ac_cv_func_gethostbyname2" = xyes; then : 18840 cat >>confdefs.h <<_ACEOF 18841#define HAVE_GETHOSTBYNAME2 1 18842_ACEOF 18843 18844fi 18845done 18846 18847fi 18848# gethostbyname2 18849eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18850eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18851eval "LIB_gethostbyname2=$ac_res" 18852 18853case "$ac_res" in 18854 yes) 18855 eval "ac_cv_func_gethostbyname2=yes" 18856 eval "LIB_gethostbyname2=" 18857 cat >>confdefs.h <<_ACEOF 18858#define $ac_tr_func 1 18859_ACEOF 18860 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18862$as_echo "yes" >&6; } 18863 ;; 18864 no) 18865 eval "ac_cv_func_gethostbyname2=no" 18866 eval "LIB_gethostbyname2=" 18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18868$as_echo "no" >&6; } 18869 ;; 18870 *) 18871 eval "ac_cv_func_gethostbyname2=yes" 18872 cat >>confdefs.h <<_ACEOF 18873#define $ac_tr_func 1 18874_ACEOF 18875 18876 cat >>confdefs.h <<_ACEOF 18877#define $ac_tr_lib 1 18878_ACEOF 18879 18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18881$as_echo "yes, in $ac_res" >&6; } 18882 ;; 18883esac 18884 18885 18886if test -n "$LIB_gethostbyname2"; then 18887 LIBS="$LIB_gethostbyname2 $LIBS" 18888fi 18889 18890 18891 18892 18893for ac_header in arpa/nameser.h dns.h 18894do : 18895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18896ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18897if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18898 cat >>confdefs.h <<_ACEOF 18899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18900_ACEOF 18901 18902fi 18903 18904done 18905 18906 18907for ac_header in resolv.h 18908do : 18909 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default 18910#ifdef HAVE_SYS_TYPES_H 18911#include <sys/types.h> 18912#endif 18913#ifdef HAVE_NETINET_IN_H 18914#include <netinet/in.h> 18915#endif 18916#ifdef HAVE_ARPA_NAMESER_H 18917#include <arpa/nameser.h> 18918#endif 18919 18920" 18921if test "x$ac_cv_header_resolv_h" = xyes; then : 18922 cat >>confdefs.h <<_ACEOF 18923#define HAVE_RESOLV_H 1 18924_ACEOF 18925 18926fi 18927 18928done 18929 18930 18931 18932 18933 18934 18935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search" >&5 18936$as_echo_n "checking for res_search... " >&6; } 18937if ${ac_cv_funclib_res_search+:} false; then : 18938 $as_echo_n "(cached) " >&6 18939else 18940 18941if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 18942 ac_save_LIBS="$LIBS" 18943 for ac_lib in "" resolv; do 18944 case "$ac_lib" in 18945 "") ;; 18946 yes) ac_lib="" ;; 18947 no) continue ;; 18948 -l*) ;; 18949 *) ac_lib="-l$ac_lib" ;; 18950 esac 18951 LIBS=" $ac_lib $ac_save_LIBS" 18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953/* end confdefs.h. */ 18954 18955#include <stdio.h> 18956#ifdef HAVE_SYS_TYPES_H 18957#include <sys/types.h> 18958#endif 18959#ifdef HAVE_NETINET_IN_H 18960#include <netinet/in.h> 18961#endif 18962#ifdef HAVE_ARPA_NAMESER_H 18963#include <arpa/nameser.h> 18964#endif 18965#ifdef HAVE_RESOLV_H 18966#include <resolv.h> 18967#endif 18968 18969int 18970main () 18971{ 18972res_search(0,0,0,0,0) 18973 ; 18974 return 0; 18975} 18976_ACEOF 18977if ac_fn_c_try_link "$LINENO"; then : 18978 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 18979fi 18980rm -f core conftest.err conftest.$ac_objext \ 18981 conftest$ac_exeext conftest.$ac_ext 18982 done 18983 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 18984 LIBS="$ac_save_LIBS" 18985fi 18986 18987fi 18988 18989 18990eval "ac_res=\$ac_cv_funclib_res_search" 18991 18992if false; then 18993 for ac_func in res_search 18994do : 18995 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" 18996if test "x$ac_cv_func_res_search" = xyes; then : 18997 cat >>confdefs.h <<_ACEOF 18998#define HAVE_RES_SEARCH 1 18999_ACEOF 19000 19001fi 19002done 19003 19004fi 19005# res_search 19006eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19007eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19008eval "LIB_res_search=$ac_res" 19009 19010case "$ac_res" in 19011 yes) 19012 eval "ac_cv_func_res_search=yes" 19013 eval "LIB_res_search=" 19014 cat >>confdefs.h <<_ACEOF 19015#define $ac_tr_func 1 19016_ACEOF 19017 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19019$as_echo "yes" >&6; } 19020 ;; 19021 no) 19022 eval "ac_cv_func_res_search=no" 19023 eval "LIB_res_search=" 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19025$as_echo "no" >&6; } 19026 ;; 19027 *) 19028 eval "ac_cv_func_res_search=yes" 19029 cat >>confdefs.h <<_ACEOF 19030#define $ac_tr_func 1 19031_ACEOF 19032 19033 cat >>confdefs.h <<_ACEOF 19034#define $ac_tr_lib 1 19035_ACEOF 19036 19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 19038$as_echo "yes, in $ac_res" >&6; } 19039 ;; 19040esac 19041 19042 19043if test -n "$LIB_res_search"; then 19044 LIBS="$LIB_res_search $LIBS" 19045fi 19046 19047 19048 19049 19050 19051 19052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch" >&5 19053$as_echo_n "checking for res_nsearch... " >&6; } 19054if ${ac_cv_funclib_res_nsearch+:} false; then : 19055 $as_echo_n "(cached) " >&6 19056else 19057 19058if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then 19059 ac_save_LIBS="$LIBS" 19060 for ac_lib in "" resolv; do 19061 case "$ac_lib" in 19062 "") ;; 19063 yes) ac_lib="" ;; 19064 no) continue ;; 19065 -l*) ;; 19066 *) ac_lib="-l$ac_lib" ;; 19067 esac 19068 LIBS=" $ac_lib $ac_save_LIBS" 19069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19070/* end confdefs.h. */ 19071 19072#include <stdio.h> 19073#ifdef HAVE_SYS_TYPES_H 19074#include <sys/types.h> 19075#endif 19076#ifdef HAVE_NETINET_IN_H 19077#include <netinet/in.h> 19078#endif 19079#ifdef HAVE_ARPA_NAMESER_H 19080#include <arpa/nameser.h> 19081#endif 19082#ifdef HAVE_RESOLV_H 19083#include <resolv.h> 19084#endif 19085 19086int 19087main () 19088{ 19089res_nsearch(0,0,0,0,0,0) 19090 ; 19091 return 0; 19092} 19093_ACEOF 19094if ac_fn_c_try_link "$LINENO"; then : 19095 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break 19096fi 19097rm -f core conftest.err conftest.$ac_objext \ 19098 conftest$ac_exeext conftest.$ac_ext 19099 done 19100 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}" 19101 LIBS="$ac_save_LIBS" 19102fi 19103 19104fi 19105 19106 19107eval "ac_res=\$ac_cv_funclib_res_nsearch" 19108 19109if false; then 19110 for ac_func in res_nsearch 19111do : 19112 ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" 19113if test "x$ac_cv_func_res_nsearch" = xyes; then : 19114 cat >>confdefs.h <<_ACEOF 19115#define HAVE_RES_NSEARCH 1 19116_ACEOF 19117 19118fi 19119done 19120 19121fi 19122# res_nsearch 19123eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19124eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19125eval "LIB_res_nsearch=$ac_res" 19126 19127case "$ac_res" in 19128 yes) 19129 eval "ac_cv_func_res_nsearch=yes" 19130 eval "LIB_res_nsearch=" 19131 cat >>confdefs.h <<_ACEOF 19132#define $ac_tr_func 1 19133_ACEOF 19134 19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19136$as_echo "yes" >&6; } 19137 ;; 19138 no) 19139 eval "ac_cv_func_res_nsearch=no" 19140 eval "LIB_res_nsearch=" 19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19142$as_echo "no" >&6; } 19143 ;; 19144 *) 19145 eval "ac_cv_func_res_nsearch=yes" 19146 cat >>confdefs.h <<_ACEOF 19147#define $ac_tr_func 1 19148_ACEOF 19149 19150 cat >>confdefs.h <<_ACEOF 19151#define $ac_tr_lib 1 19152_ACEOF 19153 19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 19155$as_echo "yes, in $ac_res" >&6; } 19156 ;; 19157esac 19158 19159 19160if test -n "$LIB_res_nsearch"; then 19161 LIBS="$LIB_res_nsearch $LIBS" 19162fi 19163 19164 19165 19166 19167 19168 19169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5 19170$as_echo_n "checking for res_ndestroy... " >&6; } 19171if ${ac_cv_funclib_res_ndestroy+:} false; then : 19172 $as_echo_n "(cached) " >&6 19173else 19174 19175if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then 19176 ac_save_LIBS="$LIBS" 19177 for ac_lib in "" resolv; do 19178 case "$ac_lib" in 19179 "") ;; 19180 yes) ac_lib="" ;; 19181 no) continue ;; 19182 -l*) ;; 19183 *) ac_lib="-l$ac_lib" ;; 19184 esac 19185 LIBS=" $ac_lib $ac_save_LIBS" 19186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19187/* end confdefs.h. */ 19188 19189#include <stdio.h> 19190#ifdef HAVE_SYS_TYPES_H 19191#include <sys/types.h> 19192#endif 19193#ifdef HAVE_NETINET_IN_H 19194#include <netinet/in.h> 19195#endif 19196#ifdef HAVE_ARPA_NAMESER_H 19197#include <arpa/nameser.h> 19198#endif 19199#ifdef HAVE_RESOLV_H 19200#include <resolv.h> 19201#endif 19202 19203int 19204main () 19205{ 19206res_ndestroy(0) 19207 ; 19208 return 0; 19209} 19210_ACEOF 19211if ac_fn_c_try_link "$LINENO"; then : 19212 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break 19213fi 19214rm -f core conftest.err conftest.$ac_objext \ 19215 conftest$ac_exeext conftest.$ac_ext 19216 done 19217 eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}" 19218 LIBS="$ac_save_LIBS" 19219fi 19220 19221fi 19222 19223 19224eval "ac_res=\$ac_cv_funclib_res_ndestroy" 19225 19226if false; then 19227 for ac_func in res_ndestroy 19228do : 19229 ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy" 19230if test "x$ac_cv_func_res_ndestroy" = xyes; then : 19231 cat >>confdefs.h <<_ACEOF 19232#define HAVE_RES_NDESTROY 1 19233_ACEOF 19234 19235fi 19236done 19237 19238fi 19239# res_ndestroy 19240eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19241eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19242eval "LIB_res_ndestroy=$ac_res" 19243 19244case "$ac_res" in 19245 yes) 19246 eval "ac_cv_func_res_ndestroy=yes" 19247 eval "LIB_res_ndestroy=" 19248 cat >>confdefs.h <<_ACEOF 19249#define $ac_tr_func 1 19250_ACEOF 19251 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19253$as_echo "yes" >&6; } 19254 ;; 19255 no) 19256 eval "ac_cv_func_res_ndestroy=no" 19257 eval "LIB_res_ndestroy=" 19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19259$as_echo "no" >&6; } 19260 ;; 19261 *) 19262 eval "ac_cv_func_res_ndestroy=yes" 19263 cat >>confdefs.h <<_ACEOF 19264#define $ac_tr_func 1 19265_ACEOF 19266 19267 cat >>confdefs.h <<_ACEOF 19268#define $ac_tr_lib 1 19269_ACEOF 19270 19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 19272$as_echo "yes, in $ac_res" >&6; } 19273 ;; 19274esac 19275 19276 19277if test -n "$LIB_res_ndestroy"; then 19278 LIBS="$LIB_res_ndestroy $LIBS" 19279fi 19280 19281 19282 19283 19284 19285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search" >&5 19286$as_echo_n "checking for dns_search... " >&6; } 19287if ${ac_cv_funclib_dns_search+:} false; then : 19288 $as_echo_n "(cached) " >&6 19289else 19290 19291if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then 19292 ac_save_LIBS="$LIBS" 19293 for ac_lib in "" ; do 19294 case "$ac_lib" in 19295 "") ;; 19296 yes) ac_lib="" ;; 19297 no) continue ;; 19298 -l*) ;; 19299 *) ac_lib="-l$ac_lib" ;; 19300 esac 19301 LIBS=" $ac_lib $ac_save_LIBS" 19302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19303/* end confdefs.h. */ 19304 19305#ifdef HAVE_DNS_H 19306#include <dns.h> 19307#endif 19308 19309int 19310main () 19311{ 19312dns_search(0,0,0,0,0,0,0,0) 19313 ; 19314 return 0; 19315} 19316_ACEOF 19317if ac_fn_c_try_link "$LINENO"; then : 19318 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break 19319fi 19320rm -f core conftest.err conftest.$ac_objext \ 19321 conftest$ac_exeext conftest.$ac_ext 19322 done 19323 eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}" 19324 LIBS="$ac_save_LIBS" 19325fi 19326 19327fi 19328 19329 19330eval "ac_res=\$ac_cv_funclib_dns_search" 19331 19332if false; then 19333 for ac_func in dns_search 19334do : 19335 ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" 19336if test "x$ac_cv_func_dns_search" = xyes; then : 19337 cat >>confdefs.h <<_ACEOF 19338#define HAVE_DNS_SEARCH 1 19339_ACEOF 19340 19341fi 19342done 19343 19344fi 19345# dns_search 19346eval "ac_tr_func=HAVE_`echo dns_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19347eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19348eval "LIB_dns_search=$ac_res" 19349 19350case "$ac_res" in 19351 yes) 19352 eval "ac_cv_func_dns_search=yes" 19353 eval "LIB_dns_search=" 19354 cat >>confdefs.h <<_ACEOF 19355#define $ac_tr_func 1 19356_ACEOF 19357 19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19359$as_echo "yes" >&6; } 19360 ;; 19361 no) 19362 eval "ac_cv_func_dns_search=no" 19363 eval "LIB_dns_search=" 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19365$as_echo "no" >&6; } 19366 ;; 19367 *) 19368 eval "ac_cv_func_dns_search=yes" 19369 cat >>confdefs.h <<_ACEOF 19370#define $ac_tr_func 1 19371_ACEOF 19372 19373 cat >>confdefs.h <<_ACEOF 19374#define $ac_tr_lib 1 19375_ACEOF 19376 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 19378$as_echo "yes, in $ac_res" >&6; } 19379 ;; 19380esac 19381 19382 19383 19384 19385 19386 19387 19388 19389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand" >&5 19390$as_echo_n "checking for dn_expand... " >&6; } 19391if ${ac_cv_funclib_dn_expand+:} false; then : 19392 $as_echo_n "(cached) " >&6 19393else 19394 19395if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 19396 ac_save_LIBS="$LIBS" 19397 for ac_lib in "" resolv; do 19398 case "$ac_lib" in 19399 "") ;; 19400 yes) ac_lib="" ;; 19401 no) continue ;; 19402 -l*) ;; 19403 *) ac_lib="-l$ac_lib" ;; 19404 esac 19405 LIBS=" $ac_lib $ac_save_LIBS" 19406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19407/* end confdefs.h. */ 19408 19409#include <stdio.h> 19410#ifdef HAVE_SYS_TYPES_H 19411#include <sys/types.h> 19412#endif 19413#ifdef HAVE_NETINET_IN_H 19414#include <netinet/in.h> 19415#endif 19416#ifdef HAVE_ARPA_NAMESER_H 19417#include <arpa/nameser.h> 19418#endif 19419#ifdef HAVE_RESOLV_H 19420#include <resolv.h> 19421#endif 19422 19423int 19424main () 19425{ 19426dn_expand(0,0,0,0,0) 19427 ; 19428 return 0; 19429} 19430_ACEOF 19431if ac_fn_c_try_link "$LINENO"; then : 19432 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 19433fi 19434rm -f core conftest.err conftest.$ac_objext \ 19435 conftest$ac_exeext conftest.$ac_ext 19436 done 19437 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 19438 LIBS="$ac_save_LIBS" 19439fi 19440 19441fi 19442 19443 19444eval "ac_res=\$ac_cv_funclib_dn_expand" 19445 19446if false; then 19447 for ac_func in dn_expand 19448do : 19449 ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" 19450if test "x$ac_cv_func_dn_expand" = xyes; then : 19451 cat >>confdefs.h <<_ACEOF 19452#define HAVE_DN_EXPAND 1 19453_ACEOF 19454 19455fi 19456done 19457 19458fi 19459# dn_expand 19460eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19461eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19462eval "LIB_dn_expand=$ac_res" 19463 19464case "$ac_res" in 19465 yes) 19466 eval "ac_cv_func_dn_expand=yes" 19467 eval "LIB_dn_expand=" 19468 cat >>confdefs.h <<_ACEOF 19469#define $ac_tr_func 1 19470_ACEOF 19471 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19473$as_echo "yes" >&6; } 19474 ;; 19475 no) 19476 eval "ac_cv_func_dn_expand=no" 19477 eval "LIB_dn_expand=" 19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19479$as_echo "no" >&6; } 19480 ;; 19481 *) 19482 eval "ac_cv_func_dn_expand=yes" 19483 cat >>confdefs.h <<_ACEOF 19484#define $ac_tr_func 1 19485_ACEOF 19486 19487 cat >>confdefs.h <<_ACEOF 19488#define $ac_tr_lib 1 19489_ACEOF 19490 19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 19492$as_echo "yes, in $ac_res" >&6; } 19493 ;; 19494esac 19495 19496 19497if test -n "$LIB_dn_expand"; then 19498 LIBS="$LIB_dn_expand $LIBS" 19499fi 19500 19501 19502 19503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _res" >&5 19504$as_echo_n "checking for _res... " >&6; } 19505if ${ac_cv_var__res+:} false; then : 19506 $as_echo_n "(cached) " >&6 19507else 19508 19509 19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19511/* end confdefs.h. */ 19512#include <stdio.h> 19513#ifdef HAVE_SYS_TYPES_H 19514#include <sys/types.h> 19515#endif 19516#ifdef HAVE_NETINET_IN_H 19517#include <netinet/in.h> 19518#endif 19519#ifdef HAVE_ARPA_NAMESER_H 19520#include <arpa/nameser.h> 19521#endif 19522#ifdef HAVE_RESOLV_H 19523#include <resolv.h> 19524#endif 19525 void * foo(void) { return &_res; } 19526int 19527main () 19528{ 19529foo() 19530 ; 19531 return 0; 19532} 19533_ACEOF 19534if ac_fn_c_try_link "$LINENO"; then : 19535 ac_cv_var__res=yes 19536else 19537 ac_cv_var__res=no 19538fi 19539rm -f core conftest.err conftest.$ac_objext \ 19540 conftest$ac_exeext conftest.$ac_ext 19541if test "$ac_cv_var__res" != yes ; then 19542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19543/* end confdefs.h. */ 19544#include <stdio.h> 19545#ifdef HAVE_SYS_TYPES_H 19546#include <sys/types.h> 19547#endif 19548#ifdef HAVE_NETINET_IN_H 19549#include <netinet/in.h> 19550#endif 19551#ifdef HAVE_ARPA_NAMESER_H 19552#include <arpa/nameser.h> 19553#endif 19554#ifdef HAVE_RESOLV_H 19555#include <resolv.h> 19556#endif 19557extern int _res; 19558int foo(void) { return _res; } 19559int 19560main () 19561{ 19562foo() 19563 ; 19564 return 0; 19565} 19566_ACEOF 19567if ac_fn_c_try_link "$LINENO"; then : 19568 ac_cv_var__res=yes 19569else 19570 ac_cv_var__res=no 19571fi 19572rm -f core conftest.err conftest.$ac_objext \ 19573 conftest$ac_exeext conftest.$ac_ext 19574fi 19575 19576fi 19577 19578ac_foo=`eval echo \\$ac_cv_var__res` 19579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 19580$as_echo "$ac_foo" >&6; } 19581if test "$ac_foo" = yes; then 19582 19583cat >>confdefs.h <<_ACEOF 19584#define HAVE__RES 1 19585_ACEOF 19586 19587 19588# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 19589# --------------------------------------------- 19590# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 19591# accordingly. 19592ac_fn_c_check_decl () 19593{ 19594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19595 as_decl_name=`echo $2|sed 's/ *(.*//'` 19596 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 19598$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 19599if eval \${$3+:} false; then : 19600 $as_echo_n "(cached) " >&6 19601else 19602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19603/* end confdefs.h. */ 19604$4 19605int 19606main () 19607{ 19608#ifndef $as_decl_name 19609#ifdef __cplusplus 19610 (void) $as_decl_use; 19611#else 19612 (void) $as_decl_name; 19613#endif 19614#endif 19615 19616 ; 19617 return 0; 19618} 19619_ACEOF 19620if ac_fn_c_try_compile "$LINENO"; then : 19621 eval "$3=yes" 19622else 19623 eval "$3=no" 19624fi 19625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19626fi 19627eval ac_res=\$$3 19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19629$as_echo "$ac_res" >&6; } 19630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 19631 19632} # ac_fn_c_check_decl 19633ac_fn_c_check_decl "$LINENO" "_res" "ac_cv_have_decl__res" "#include <stdio.h> 19634#ifdef HAVE_SYS_TYPES_H 19635#include <sys/types.h> 19636#endif 19637#ifdef HAVE_NETINET_IN_H 19638#include <netinet/in.h> 19639#endif 19640#ifdef HAVE_ARPA_NAMESER_H 19641#include <arpa/nameser.h> 19642#endif 19643#ifdef HAVE_RESOLV_H 19644#include <resolv.h> 19645#endif 19646" 19647if test "x$ac_cv_have_decl__res" = xyes; then : 19648 ac_have_decl=1 19649else 19650 ac_have_decl=0 19651fi 19652 19653cat >>confdefs.h <<_ACEOF 19654#define HAVE_DECL__RES $ac_have_decl 19655_ACEOF 19656 19657fi 19658 19659 19660 19661 19662 19663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5 19664$as_echo_n "checking for working snprintf... " >&6; } 19665if ${ac_cv_func_snprintf_working+:} false; then : 19666 $as_echo_n "(cached) " >&6 19667else 19668 ac_cv_func_snprintf_working=yes 19669if test "$cross_compiling" = yes; then : 19670 : 19671else 19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19673/* end confdefs.h. */ 19674 19675#include <stdio.h> 19676#include <string.h> 19677int main(int argc, char **argv) 19678{ 19679 char foo[3]; 19680 snprintf(foo, 2, "12"); 19681 return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2; 19682} 19683_ACEOF 19684if ac_fn_c_try_run "$LINENO"; then : 19685 : 19686else 19687 ac_cv_func_snprintf_working=no 19688fi 19689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19690 conftest.$ac_objext conftest.beam conftest.$ac_ext 19691fi 19692 19693fi 19694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_working" >&5 19695$as_echo "$ac_cv_func_snprintf_working" >&6; } 19696 19697if test "$ac_cv_func_snprintf_working" = yes; then 19698 19699cat >>confdefs.h <<_ACEOF 19700#define HAVE_SNPRINTF 1 19701_ACEOF 19702 19703fi 19704if test "$ac_cv_func_snprintf_working" = yes; then 19705 19706if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 19707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf needs a prototype" >&5 19708$as_echo_n "checking if snprintf needs a prototype... " >&6; } 19709if ${ac_cv_func_snprintf_noproto+:} false; then : 19710 $as_echo_n "(cached) " >&6 19711else 19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19713/* end confdefs.h. */ 19714#include <stdio.h> 19715struct foo { int foo; } xx; 19716extern int snprintf (struct foo*); 19717int 19718main () 19719{ 19720snprintf(&xx) 19721 ; 19722 return 0; 19723} 19724_ACEOF 19725if ac_fn_c_try_compile "$LINENO"; then : 19726 eval "ac_cv_func_snprintf_noproto=yes" 19727else 19728 eval "ac_cv_func_snprintf_noproto=no" 19729fi 19730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19731fi 19732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noproto" >&5 19733$as_echo "$ac_cv_func_snprintf_noproto" >&6; } 19734if test "$ac_cv_func_snprintf_noproto" = yes; then 19735 19736$as_echo "#define NEED_SNPRINTF_PROTO 1" >>confdefs.h 19737 19738fi 19739fi 19740 19741fi 19742 19743 19744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5 19745$as_echo_n "checking for working vsnprintf... " >&6; } 19746if ${ac_cv_func_vsnprintf_working+:} false; then : 19747 $as_echo_n "(cached) " >&6 19748else 19749 ac_cv_func_vsnprintf_working=yes 19750if test "$cross_compiling" = yes; then : 19751 : 19752else 19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19754/* end confdefs.h. */ 19755 19756#include <stdio.h> 19757#include <string.h> 19758#include <stdarg.h> 19759 19760int foo(int num, ...) 19761{ 19762 char bar[3]; 19763 va_list arg; 19764 va_start(arg, num); 19765 vsnprintf(bar, 2, "%s", arg); 19766 va_end(arg); 19767 return strcmp(bar, "1"); 19768} 19769 19770int bar(int num, int len, ...) 19771{ 19772 int r; 19773 va_list arg; 19774 va_start(arg, len); 19775 r = vsnprintf(NULL, 0, "%s", arg); 19776 va_end(arg); 19777 return r != len; 19778} 19779 19780int main(int argc, char **argv) 19781{ 19782 return foo(0, "12") || bar(0, 2, "12"); 19783} 19784_ACEOF 19785if ac_fn_c_try_run "$LINENO"; then : 19786 : 19787else 19788 ac_cv_func_vsnprintf_working=no 19789fi 19790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19791 conftest.$ac_objext conftest.beam conftest.$ac_ext 19792fi 19793 19794fi 19795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_working" >&5 19796$as_echo "$ac_cv_func_vsnprintf_working" >&6; } 19797 19798if test "$ac_cv_func_vsnprintf_working" = yes; then 19799 19800cat >>confdefs.h <<_ACEOF 19801#define HAVE_VSNPRINTF 1 19802_ACEOF 19803 19804fi 19805if test "$ac_cv_func_vsnprintf_working" = yes; then 19806 19807if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 19808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf needs a prototype" >&5 19809$as_echo_n "checking if vsnprintf needs a prototype... " >&6; } 19810if ${ac_cv_func_vsnprintf_noproto+:} false; then : 19811 $as_echo_n "(cached) " >&6 19812else 19813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19814/* end confdefs.h. */ 19815#include <stdio.h> 19816struct foo { int foo; } xx; 19817extern int vsnprintf (struct foo*); 19818int 19819main () 19820{ 19821vsnprintf(&xx) 19822 ; 19823 return 0; 19824} 19825_ACEOF 19826if ac_fn_c_try_compile "$LINENO"; then : 19827 eval "ac_cv_func_vsnprintf_noproto=yes" 19828else 19829 eval "ac_cv_func_vsnprintf_noproto=no" 19830fi 19831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19832fi 19833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_noproto" >&5 19834$as_echo "$ac_cv_func_vsnprintf_noproto" >&6; } 19835if test "$ac_cv_func_vsnprintf_noproto" = yes; then 19836 19837$as_echo "#define NEED_VSNPRINTF_PROTO 1" >>confdefs.h 19838 19839fi 19840fi 19841 19842fi 19843 19844 19845 19846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working glob" >&5 19847$as_echo_n "checking for working glob... " >&6; } 19848if ${ac_cv_func_glob_working+:} false; then : 19849 $as_echo_n "(cached) " >&6 19850else 19851 ac_cv_func_glob_working=yes 19852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19853/* end confdefs.h. */ 19854 19855#include <stdio.h> 19856#include <glob.h> 19857int 19858main () 19859{ 19860 19861glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| 19862#ifdef GLOB_MAXPATH 19863GLOB_MAXPATH 19864#else 19865GLOB_LIMIT 19866#endif 19867, 19868NULL, NULL); 19869 19870 ; 19871 return 0; 19872} 19873_ACEOF 19874if ac_fn_c_try_link "$LINENO"; then : 19875 : 19876else 19877 ac_cv_func_glob_working=no 19878fi 19879rm -f core conftest.err conftest.$ac_objext \ 19880 conftest$ac_exeext conftest.$ac_ext 19881fi 19882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_working" >&5 19883$as_echo "$ac_cv_func_glob_working" >&6; } 19884 19885if test "$ac_cv_func_glob_working" = yes; then 19886 19887$as_echo "#define HAVE_GLOB 1" >>confdefs.h 19888 19889fi 19890if test "$ac_cv_func_glob_working" = yes; then 19891 19892if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 19893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if glob needs a prototype" >&5 19894$as_echo_n "checking if glob needs a prototype... " >&6; } 19895if ${ac_cv_func_glob_noproto+:} false; then : 19896 $as_echo_n "(cached) " >&6 19897else 19898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19899/* end confdefs.h. */ 19900#include <stdio.h> 19901#include <glob.h> 19902struct foo { int foo; } xx; 19903extern int glob (struct foo*); 19904int 19905main () 19906{ 19907glob(&xx) 19908 ; 19909 return 0; 19910} 19911_ACEOF 19912if ac_fn_c_try_compile "$LINENO"; then : 19913 eval "ac_cv_func_glob_noproto=yes" 19914else 19915 eval "ac_cv_func_glob_noproto=no" 19916fi 19917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19918fi 19919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_noproto" >&5 19920$as_echo "$ac_cv_func_glob_noproto" >&6; } 19921if test "$ac_cv_func_glob_noproto" = yes; then 19922 19923$as_echo "#define NEED_GLOB_PROTO 1" >>confdefs.h 19924 19925fi 19926fi 19927 19928fi 19929 19930if test "$ac_cv_func_glob_working" != yes; then 19931 case " $LIBOBJS " in 19932 *" glob.$ac_objext "* ) ;; 19933 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 19934 ;; 19935esac 19936 19937fi 19938 if test "$ac_cv_func_glob_working" = yes; then 19939 have_glob_h_TRUE= 19940 have_glob_h_FALSE='#' 19941else 19942 have_glob_h_TRUE='#' 19943 have_glob_h_FALSE= 19944fi 19945 19946 19947 19948for ac_func in \ 19949 asnprintf \ 19950 asprintf \ 19951 atexit \ 19952 cgetent \ 19953 getauxval \ 19954 getconfattr \ 19955 getprogname \ 19956 getrlimit \ 19957 getspnam \ 19958 issetugid \ 19959 on_exit \ 19960 poll \ 19961 random \ 19962 setprogname \ 19963 strsvis \ 19964 strsvisx \ 19965 strunvis \ 19966 strvis \ 19967 strvisx \ 19968 svis \ 19969 sysconf \ 19970 sysctl \ 19971 tdelete \ 19972 tfind \ 19973 twalk \ 19974 uname \ 19975 unvis \ 19976 vasnprintf \ 19977 vasprintf \ 19978 vis \ 19979 19980do : 19981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19982ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19983if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19984 cat >>confdefs.h <<_ACEOF 19985#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19986_ACEOF 19987 19988fi 19989done 19990 19991 19992if test "$ac_cv_func_cgetent" = no; then 19993 case " $LIBOBJS " in 19994 *" getcap.$ac_objext "* ) ;; 19995 *) LIBOBJS="$LIBOBJS getcap.$ac_objext" 19996 ;; 19997esac 19998 19999fi 20000 if test "$ac_cv_func_cgetent" = yes; then 20001 have_cgetent_TRUE= 20002 have_cgetent_FALSE='#' 20003else 20004 have_cgetent_TRUE='#' 20005 have_cgetent_FALSE= 20006fi 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt" >&5 20017$as_echo_n "checking for getsockopt... " >&6; } 20018if ${ac_cv_funclib_getsockopt+:} false; then : 20019 $as_echo_n "(cached) " >&6 20020else 20021 20022if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 20023 ac_save_LIBS="$LIBS" 20024 for ac_lib in "" ; do 20025 case "$ac_lib" in 20026 "") ;; 20027 yes) ac_lib="" ;; 20028 no) continue ;; 20029 -l*) ;; 20030 *) ac_lib="-l$ac_lib" ;; 20031 esac 20032 LIBS=" $ac_lib $ac_save_LIBS" 20033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20034/* end confdefs.h. */ 20035#ifdef HAVE_SYS_TYPES_H 20036#include <sys/types.h> 20037#endif 20038#ifdef HAVE_SYS_SOCKET_H 20039#include <sys/socket.h> 20040#endif 20041int 20042main () 20043{ 20044getsockopt(0,0,0,0,0) 20045 ; 20046 return 0; 20047} 20048_ACEOF 20049if ac_fn_c_try_link "$LINENO"; then : 20050 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 20051fi 20052rm -f core conftest.err conftest.$ac_objext \ 20053 conftest$ac_exeext conftest.$ac_ext 20054 done 20055 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 20056 LIBS="$ac_save_LIBS" 20057fi 20058 20059fi 20060 20061 20062eval "ac_res=\$ac_cv_funclib_getsockopt" 20063 20064if false; then 20065 for ac_func in getsockopt 20066do : 20067 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt" 20068if test "x$ac_cv_func_getsockopt" = xyes; then : 20069 cat >>confdefs.h <<_ACEOF 20070#define HAVE_GETSOCKOPT 1 20071_ACEOF 20072 20073fi 20074done 20075 20076fi 20077# getsockopt 20078eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20079eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20080eval "LIB_getsockopt=$ac_res" 20081 20082case "$ac_res" in 20083 yes) 20084 eval "ac_cv_func_getsockopt=yes" 20085 eval "LIB_getsockopt=" 20086 cat >>confdefs.h <<_ACEOF 20087#define $ac_tr_func 1 20088_ACEOF 20089 20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20091$as_echo "yes" >&6; } 20092 ;; 20093 no) 20094 eval "ac_cv_func_getsockopt=no" 20095 eval "LIB_getsockopt=" 20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20097$as_echo "no" >&6; } 20098 ;; 20099 *) 20100 eval "ac_cv_func_getsockopt=yes" 20101 cat >>confdefs.h <<_ACEOF 20102#define $ac_tr_func 1 20103_ACEOF 20104 20105 cat >>confdefs.h <<_ACEOF 20106#define $ac_tr_lib 1 20107_ACEOF 20108 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20110$as_echo "yes, in $ac_res" >&6; } 20111 ;; 20112esac 20113 20114 20115 20116 20117 20118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5 20119$as_echo_n "checking for setsockopt... " >&6; } 20120if ${ac_cv_funclib_setsockopt+:} false; then : 20121 $as_echo_n "(cached) " >&6 20122else 20123 20124if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 20125 ac_save_LIBS="$LIBS" 20126 for ac_lib in "" ; do 20127 case "$ac_lib" in 20128 "") ;; 20129 yes) ac_lib="" ;; 20130 no) continue ;; 20131 -l*) ;; 20132 *) ac_lib="-l$ac_lib" ;; 20133 esac 20134 LIBS=" $ac_lib $ac_save_LIBS" 20135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20136/* end confdefs.h. */ 20137#ifdef HAVE_SYS_TYPES_H 20138#include <sys/types.h> 20139#endif 20140#ifdef HAVE_SYS_SOCKET_H 20141#include <sys/socket.h> 20142#endif 20143int 20144main () 20145{ 20146setsockopt(0,0,0,0,0) 20147 ; 20148 return 0; 20149} 20150_ACEOF 20151if ac_fn_c_try_link "$LINENO"; then : 20152 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 20153fi 20154rm -f core conftest.err conftest.$ac_objext \ 20155 conftest$ac_exeext conftest.$ac_ext 20156 done 20157 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 20158 LIBS="$ac_save_LIBS" 20159fi 20160 20161fi 20162 20163 20164eval "ac_res=\$ac_cv_funclib_setsockopt" 20165 20166if false; then 20167 for ac_func in setsockopt 20168do : 20169 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 20170if test "x$ac_cv_func_setsockopt" = xyes; then : 20171 cat >>confdefs.h <<_ACEOF 20172#define HAVE_SETSOCKOPT 1 20173_ACEOF 20174 20175fi 20176done 20177 20178fi 20179# setsockopt 20180eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20181eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20182eval "LIB_setsockopt=$ac_res" 20183 20184case "$ac_res" in 20185 yes) 20186 eval "ac_cv_func_setsockopt=yes" 20187 eval "LIB_setsockopt=" 20188 cat >>confdefs.h <<_ACEOF 20189#define $ac_tr_func 1 20190_ACEOF 20191 20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20193$as_echo "yes" >&6; } 20194 ;; 20195 no) 20196 eval "ac_cv_func_setsockopt=no" 20197 eval "LIB_setsockopt=" 20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20199$as_echo "no" >&6; } 20200 ;; 20201 *) 20202 eval "ac_cv_func_setsockopt=yes" 20203 cat >>confdefs.h <<_ACEOF 20204#define $ac_tr_func 1 20205_ACEOF 20206 20207 cat >>confdefs.h <<_ACEOF 20208#define $ac_tr_lib 1 20209_ACEOF 20210 20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20212$as_echo "yes, in $ac_res" >&6; } 20213 ;; 20214esac 20215 20216 20217 20218 20219 20220 20221 20222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 20223$as_echo_n "checking for hstrerror... " >&6; } 20224if ${ac_cv_funclib_hstrerror+:} false; then : 20225 $as_echo_n "(cached) " >&6 20226else 20227 20228if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 20229 ac_save_LIBS="$LIBS" 20230 for ac_lib in "" resolv; do 20231 case "$ac_lib" in 20232 "") ;; 20233 yes) ac_lib="" ;; 20234 no) continue ;; 20235 -l*) ;; 20236 *) ac_lib="-l$ac_lib" ;; 20237 esac 20238 LIBS=" $ac_lib $ac_save_LIBS" 20239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20240/* end confdefs.h. */ 20241#ifdef HAVE_NETDB_H 20242#include <netdb.h> 20243#endif 20244int 20245main () 20246{ 20247hstrerror(17) 20248 ; 20249 return 0; 20250} 20251_ACEOF 20252if ac_fn_c_try_link "$LINENO"; then : 20253 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 20254fi 20255rm -f core conftest.err conftest.$ac_objext \ 20256 conftest$ac_exeext conftest.$ac_ext 20257 done 20258 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 20259 LIBS="$ac_save_LIBS" 20260fi 20261 20262fi 20263 20264 20265eval "ac_res=\$ac_cv_funclib_hstrerror" 20266 20267if false; then 20268 for ac_func in hstrerror 20269do : 20270 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" 20271if test "x$ac_cv_func_hstrerror" = xyes; then : 20272 cat >>confdefs.h <<_ACEOF 20273#define HAVE_HSTRERROR 1 20274_ACEOF 20275 20276fi 20277done 20278 20279fi 20280# hstrerror 20281eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20282eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20283eval "LIB_hstrerror=$ac_res" 20284 20285case "$ac_res" in 20286 yes) 20287 eval "ac_cv_func_hstrerror=yes" 20288 eval "LIB_hstrerror=" 20289 cat >>confdefs.h <<_ACEOF 20290#define $ac_tr_func 1 20291_ACEOF 20292 20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20294$as_echo "yes" >&6; } 20295 ;; 20296 no) 20297 eval "ac_cv_func_hstrerror=no" 20298 eval "LIB_hstrerror=" 20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20300$as_echo "no" >&6; } 20301 ;; 20302 *) 20303 eval "ac_cv_func_hstrerror=yes" 20304 cat >>confdefs.h <<_ACEOF 20305#define $ac_tr_func 1 20306_ACEOF 20307 20308 cat >>confdefs.h <<_ACEOF 20309#define $ac_tr_lib 1 20310_ACEOF 20311 20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20313$as_echo "yes, in $ac_res" >&6; } 20314 ;; 20315esac 20316 20317 20318if test -n "$LIB_hstrerror"; then 20319 LIBS="$LIB_hstrerror $LIBS" 20320fi 20321 20322if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 20323 case " $LIBOBJS " in 20324 *" hstrerror.$ac_objext "* ) ;; 20325 *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" 20326 ;; 20327esac 20328 20329fi 20330 20331 20332if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 20333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if hstrerror needs a prototype" >&5 20334$as_echo_n "checking if hstrerror needs a prototype... " >&6; } 20335if ${ac_cv_func_hstrerror_noproto+:} false; then : 20336 $as_echo_n "(cached) " >&6 20337else 20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20339/* end confdefs.h. */ 20340 20341#ifdef HAVE_NETDB_H 20342#include <netdb.h> 20343#endif 20344struct foo { int foo; } xx; 20345extern int hstrerror (struct foo*); 20346int 20347main () 20348{ 20349hstrerror(&xx) 20350 ; 20351 return 0; 20352} 20353_ACEOF 20354if ac_fn_c_try_compile "$LINENO"; then : 20355 eval "ac_cv_func_hstrerror_noproto=yes" 20356else 20357 eval "ac_cv_func_hstrerror_noproto=no" 20358fi 20359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20360fi 20361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror_noproto" >&5 20362$as_echo "$ac_cv_func_hstrerror_noproto" >&6; } 20363if test "$ac_cv_func_hstrerror_noproto" = yes; then 20364 20365$as_echo "#define NEED_HSTRERROR_PROTO 1" >>confdefs.h 20366 20367fi 20368fi 20369 20370 20371 20372if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 20373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asprintf needs a prototype" >&5 20374$as_echo_n "checking if asprintf needs a prototype... " >&6; } 20375if ${ac_cv_func_asprintf_noproto+:} false; then : 20376 $as_echo_n "(cached) " >&6 20377else 20378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20379/* end confdefs.h. */ 20380 20381 #include <stdio.h> 20382 #include <string.h> 20383struct foo { int foo; } xx; 20384extern int asprintf (struct foo*); 20385int 20386main () 20387{ 20388asprintf(&xx) 20389 ; 20390 return 0; 20391} 20392_ACEOF 20393if ac_fn_c_try_compile "$LINENO"; then : 20394 eval "ac_cv_func_asprintf_noproto=yes" 20395else 20396 eval "ac_cv_func_asprintf_noproto=no" 20397fi 20398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20399fi 20400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asprintf_noproto" >&5 20401$as_echo "$ac_cv_func_asprintf_noproto" >&6; } 20402if test "$ac_cv_func_asprintf_noproto" = yes; then 20403 20404$as_echo "#define NEED_ASPRINTF_PROTO 1" >>confdefs.h 20405 20406fi 20407fi 20408 20409if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 20410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype" >&5 20411$as_echo_n "checking if vasprintf needs a prototype... " >&6; } 20412if ${ac_cv_func_vasprintf_noproto+:} false; then : 20413 $as_echo_n "(cached) " >&6 20414else 20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20416/* end confdefs.h. */ 20417 20418 #include <stdio.h> 20419 #include <string.h> 20420struct foo { int foo; } xx; 20421extern int vasprintf (struct foo*); 20422int 20423main () 20424{ 20425vasprintf(&xx) 20426 ; 20427 return 0; 20428} 20429_ACEOF 20430if ac_fn_c_try_compile "$LINENO"; then : 20431 eval "ac_cv_func_vasprintf_noproto=yes" 20432else 20433 eval "ac_cv_func_vasprintf_noproto=no" 20434fi 20435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20436fi 20437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasprintf_noproto" >&5 20438$as_echo "$ac_cv_func_vasprintf_noproto" >&6; } 20439if test "$ac_cv_func_vasprintf_noproto" = yes; then 20440 20441$as_echo "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h 20442 20443fi 20444fi 20445 20446if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 20447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asnprintf needs a prototype" >&5 20448$as_echo_n "checking if asnprintf needs a prototype... " >&6; } 20449if ${ac_cv_func_asnprintf_noproto+:} false; then : 20450 $as_echo_n "(cached) " >&6 20451else 20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20453/* end confdefs.h. */ 20454 20455 #include <stdio.h> 20456 #include <string.h> 20457struct foo { int foo; } xx; 20458extern int asnprintf (struct foo*); 20459int 20460main () 20461{ 20462asnprintf(&xx) 20463 ; 20464 return 0; 20465} 20466_ACEOF 20467if ac_fn_c_try_compile "$LINENO"; then : 20468 eval "ac_cv_func_asnprintf_noproto=yes" 20469else 20470 eval "ac_cv_func_asnprintf_noproto=no" 20471fi 20472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20473fi 20474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asnprintf_noproto" >&5 20475$as_echo "$ac_cv_func_asnprintf_noproto" >&6; } 20476if test "$ac_cv_func_asnprintf_noproto" = yes; then 20477 20478$as_echo "#define NEED_ASNPRINTF_PROTO 1" >>confdefs.h 20479 20480fi 20481fi 20482 20483if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 20484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasnprintf needs a prototype" >&5 20485$as_echo_n "checking if vasnprintf needs a prototype... " >&6; } 20486if ${ac_cv_func_vasnprintf_noproto+:} false; then : 20487 $as_echo_n "(cached) " >&6 20488else 20489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20490/* end confdefs.h. */ 20491 20492 #include <stdio.h> 20493 #include <string.h> 20494struct foo { int foo; } xx; 20495extern int vasnprintf (struct foo*); 20496int 20497main () 20498{ 20499vasnprintf(&xx) 20500 ; 20501 return 0; 20502} 20503_ACEOF 20504if ac_fn_c_try_compile "$LINENO"; then : 20505 eval "ac_cv_func_vasnprintf_noproto=yes" 20506else 20507 eval "ac_cv_func_vasnprintf_noproto=no" 20508fi 20509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20510fi 20511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasnprintf_noproto" >&5 20512$as_echo "$ac_cv_func_vasnprintf_noproto" >&6; } 20513if test "$ac_cv_func_vasnprintf_noproto" = yes; then 20514 20515$as_echo "#define NEED_VASNPRINTF_PROTO 1" >>confdefs.h 20516 20517fi 20518fi 20519 20520 20521 20522 20523 20524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5 20525$as_echo_n "checking for bswap16... " >&6; } 20526if ${ac_cv_funclib_bswap16+:} false; then : 20527 $as_echo_n "(cached) " >&6 20528else 20529 20530if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 20531 ac_save_LIBS="$LIBS" 20532 for ac_lib in "" ; do 20533 case "$ac_lib" in 20534 "") ;; 20535 yes) ac_lib="" ;; 20536 no) continue ;; 20537 -l*) ;; 20538 *) ac_lib="-l$ac_lib" ;; 20539 esac 20540 LIBS=" $ac_lib $ac_save_LIBS" 20541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20542/* end confdefs.h. */ 20543#ifdef HAVE_SYS_TYPES_H 20544#include <sys/types.h> 20545#endif 20546#ifdef HAVE_SYS_BSWAP_H 20547#include <sys/bswap.h> 20548#endif 20549int 20550main () 20551{ 20552bswap16(0) 20553 ; 20554 return 0; 20555} 20556_ACEOF 20557if ac_fn_c_try_link "$LINENO"; then : 20558 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 20559fi 20560rm -f core conftest.err conftest.$ac_objext \ 20561 conftest$ac_exeext conftest.$ac_ext 20562 done 20563 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 20564 LIBS="$ac_save_LIBS" 20565fi 20566 20567fi 20568 20569 20570eval "ac_res=\$ac_cv_funclib_bswap16" 20571 20572if false; then 20573 for ac_func in bswap16 20574do : 20575 ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16" 20576if test "x$ac_cv_func_bswap16" = xyes; then : 20577 cat >>confdefs.h <<_ACEOF 20578#define HAVE_BSWAP16 1 20579_ACEOF 20580 20581fi 20582done 20583 20584fi 20585# bswap16 20586eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20587eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20588eval "LIB_bswap16=$ac_res" 20589 20590case "$ac_res" in 20591 yes) 20592 eval "ac_cv_func_bswap16=yes" 20593 eval "LIB_bswap16=" 20594 cat >>confdefs.h <<_ACEOF 20595#define $ac_tr_func 1 20596_ACEOF 20597 20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20599$as_echo "yes" >&6; } 20600 ;; 20601 no) 20602 eval "ac_cv_func_bswap16=no" 20603 eval "LIB_bswap16=" 20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20605$as_echo "no" >&6; } 20606 ;; 20607 *) 20608 eval "ac_cv_func_bswap16=yes" 20609 cat >>confdefs.h <<_ACEOF 20610#define $ac_tr_func 1 20611_ACEOF 20612 20613 cat >>confdefs.h <<_ACEOF 20614#define $ac_tr_lib 1 20615_ACEOF 20616 20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20618$as_echo "yes, in $ac_res" >&6; } 20619 ;; 20620esac 20621 20622 20623 20624 20625 20626 20627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5 20628$as_echo_n "checking for bswap32... " >&6; } 20629if ${ac_cv_funclib_bswap32+:} false; then : 20630 $as_echo_n "(cached) " >&6 20631else 20632 20633if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 20634 ac_save_LIBS="$LIBS" 20635 for ac_lib in "" ; do 20636 case "$ac_lib" in 20637 "") ;; 20638 yes) ac_lib="" ;; 20639 no) continue ;; 20640 -l*) ;; 20641 *) ac_lib="-l$ac_lib" ;; 20642 esac 20643 LIBS=" $ac_lib $ac_save_LIBS" 20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20645/* end confdefs.h. */ 20646#ifdef HAVE_SYS_TYPES_H 20647#include <sys/types.h> 20648#endif 20649#ifdef HAVE_SYS_BSWAP_H 20650#include <sys/bswap.h> 20651#endif 20652int 20653main () 20654{ 20655bswap32(0) 20656 ; 20657 return 0; 20658} 20659_ACEOF 20660if ac_fn_c_try_link "$LINENO"; then : 20661 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 20662fi 20663rm -f core conftest.err conftest.$ac_objext \ 20664 conftest$ac_exeext conftest.$ac_ext 20665 done 20666 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 20667 LIBS="$ac_save_LIBS" 20668fi 20669 20670fi 20671 20672 20673eval "ac_res=\$ac_cv_funclib_bswap32" 20674 20675if false; then 20676 for ac_func in bswap32 20677do : 20678 ac_fn_c_check_func "$LINENO" "bswap32" "ac_cv_func_bswap32" 20679if test "x$ac_cv_func_bswap32" = xyes; then : 20680 cat >>confdefs.h <<_ACEOF 20681#define HAVE_BSWAP32 1 20682_ACEOF 20683 20684fi 20685done 20686 20687fi 20688# bswap32 20689eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20690eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20691eval "LIB_bswap32=$ac_res" 20692 20693case "$ac_res" in 20694 yes) 20695 eval "ac_cv_func_bswap32=yes" 20696 eval "LIB_bswap32=" 20697 cat >>confdefs.h <<_ACEOF 20698#define $ac_tr_func 1 20699_ACEOF 20700 20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20702$as_echo "yes" >&6; } 20703 ;; 20704 no) 20705 eval "ac_cv_func_bswap32=no" 20706 eval "LIB_bswap32=" 20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20708$as_echo "no" >&6; } 20709 ;; 20710 *) 20711 eval "ac_cv_func_bswap32=yes" 20712 cat >>confdefs.h <<_ACEOF 20713#define $ac_tr_func 1 20714_ACEOF 20715 20716 cat >>confdefs.h <<_ACEOF 20717#define $ac_tr_lib 1 20718_ACEOF 20719 20720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20721$as_echo "yes, in $ac_res" >&6; } 20722 ;; 20723esac 20724 20725 20726 20727 20728 20729 20730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap64" >&5 20731$as_echo_n "checking for bswap64... " >&6; } 20732if ${ac_cv_funclib_bswap64+:} false; then : 20733 $as_echo_n "(cached) " >&6 20734else 20735 20736if eval "test \"\$ac_cv_func_bswap64\" != yes" ; then 20737 ac_save_LIBS="$LIBS" 20738 for ac_lib in "" ; do 20739 case "$ac_lib" in 20740 "") ;; 20741 yes) ac_lib="" ;; 20742 no) continue ;; 20743 -l*) ;; 20744 *) ac_lib="-l$ac_lib" ;; 20745 esac 20746 LIBS=" $ac_lib $ac_save_LIBS" 20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20748/* end confdefs.h. */ 20749#ifdef HAVE_SYS_TYPES_H 20750#include <sys/types.h> 20751#endif 20752#ifdef HAVE_SYS_BSWAP_H 20753#include <sys/bswap.h> 20754#endif 20755int 20756main () 20757{ 20758bswap64(0) 20759 ; 20760 return 0; 20761} 20762_ACEOF 20763if ac_fn_c_try_link "$LINENO"; then : 20764 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap64=$ac_lib; else ac_cv_funclib_bswap64=yes; fi";break 20765fi 20766rm -f core conftest.err conftest.$ac_objext \ 20767 conftest$ac_exeext conftest.$ac_ext 20768 done 20769 eval "ac_cv_funclib_bswap64=\${ac_cv_funclib_bswap64-no}" 20770 LIBS="$ac_save_LIBS" 20771fi 20772 20773fi 20774 20775 20776eval "ac_res=\$ac_cv_funclib_bswap64" 20777 20778if false; then 20779 for ac_func in bswap64 20780do : 20781 ac_fn_c_check_func "$LINENO" "bswap64" "ac_cv_func_bswap64" 20782if test "x$ac_cv_func_bswap64" = xyes; then : 20783 cat >>confdefs.h <<_ACEOF 20784#define HAVE_BSWAP64 1 20785_ACEOF 20786 20787fi 20788done 20789 20790fi 20791# bswap64 20792eval "ac_tr_func=HAVE_`echo bswap64 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20793eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20794eval "LIB_bswap64=$ac_res" 20795 20796case "$ac_res" in 20797 yes) 20798 eval "ac_cv_func_bswap64=yes" 20799 eval "LIB_bswap64=" 20800 cat >>confdefs.h <<_ACEOF 20801#define $ac_tr_func 1 20802_ACEOF 20803 20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20805$as_echo "yes" >&6; } 20806 ;; 20807 no) 20808 eval "ac_cv_func_bswap64=no" 20809 eval "LIB_bswap64=" 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20811$as_echo "no" >&6; } 20812 ;; 20813 *) 20814 eval "ac_cv_func_bswap64=yes" 20815 cat >>confdefs.h <<_ACEOF 20816#define $ac_tr_func 1 20817_ACEOF 20818 20819 cat >>confdefs.h <<_ACEOF 20820#define $ac_tr_lib 1 20821_ACEOF 20822 20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20824$as_echo "yes, in $ac_res" >&6; } 20825 ;; 20826esac 20827 20828 20829 20830 20831 20832 20833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pidfile" >&5 20834$as_echo_n "checking for pidfile... " >&6; } 20835if ${ac_cv_funclib_pidfile+:} false; then : 20836 $as_echo_n "(cached) " >&6 20837else 20838 20839if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 20840 ac_save_LIBS="$LIBS" 20841 for ac_lib in "" util; do 20842 case "$ac_lib" in 20843 "") ;; 20844 yes) ac_lib="" ;; 20845 no) continue ;; 20846 -l*) ;; 20847 *) ac_lib="-l$ac_lib" ;; 20848 esac 20849 LIBS=" $ac_lib $ac_save_LIBS" 20850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20851/* end confdefs.h. */ 20852#ifdef HAVE_UTIL_H 20853#include <util.h> 20854#endif 20855int 20856main () 20857{ 20858pidfile(0) 20859 ; 20860 return 0; 20861} 20862_ACEOF 20863if ac_fn_c_try_link "$LINENO"; then : 20864 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 20865fi 20866rm -f core conftest.err conftest.$ac_objext \ 20867 conftest$ac_exeext conftest.$ac_ext 20868 done 20869 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 20870 LIBS="$ac_save_LIBS" 20871fi 20872 20873fi 20874 20875 20876eval "ac_res=\$ac_cv_funclib_pidfile" 20877 20878if false; then 20879 for ac_func in pidfile 20880do : 20881 ac_fn_c_check_func "$LINENO" "pidfile" "ac_cv_func_pidfile" 20882if test "x$ac_cv_func_pidfile" = xyes; then : 20883 cat >>confdefs.h <<_ACEOF 20884#define HAVE_PIDFILE 1 20885_ACEOF 20886 20887fi 20888done 20889 20890fi 20891# pidfile 20892eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20893eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20894eval "LIB_pidfile=$ac_res" 20895 20896case "$ac_res" in 20897 yes) 20898 eval "ac_cv_func_pidfile=yes" 20899 eval "LIB_pidfile=" 20900 cat >>confdefs.h <<_ACEOF 20901#define $ac_tr_func 1 20902_ACEOF 20903 20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20905$as_echo "yes" >&6; } 20906 ;; 20907 no) 20908 eval "ac_cv_func_pidfile=no" 20909 eval "LIB_pidfile=" 20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20911$as_echo "no" >&6; } 20912 ;; 20913 *) 20914 eval "ac_cv_func_pidfile=yes" 20915 cat >>confdefs.h <<_ACEOF 20916#define $ac_tr_func 1 20917_ACEOF 20918 20919 cat >>confdefs.h <<_ACEOF 20920#define $ac_tr_lib 1 20921_ACEOF 20922 20923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20924$as_echo "yes, in $ac_res" >&6; } 20925 ;; 20926esac 20927 20928 20929 20930 20931 20932 20933 20934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 20935$as_echo_n "checking for getaddrinfo... " >&6; } 20936if ${ac_cv_funclib_getaddrinfo+:} false; then : 20937 $as_echo_n "(cached) " >&6 20938else 20939 20940if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then 20941 ac_save_LIBS="$LIBS" 20942 for ac_lib in "" ; do 20943 case "$ac_lib" in 20944 "") ;; 20945 yes) ac_lib="" ;; 20946 no) continue ;; 20947 -l*) ;; 20948 *) ac_lib="-l$ac_lib" ;; 20949 esac 20950 LIBS=" $ac_lib $ac_save_LIBS" 20951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20952/* end confdefs.h. */ 20953#ifdef HAVE_NETDB_H 20954#include <netdb.h> 20955#endif 20956#ifdef HAVE_WS2TCPIP_H 20957#include <ws2tcpip.h> 20958#endif 20959int 20960main () 20961{ 20962getaddrinfo(0,0,0,0) 20963 ; 20964 return 0; 20965} 20966_ACEOF 20967if ac_fn_c_try_link "$LINENO"; then : 20968 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break 20969fi 20970rm -f core conftest.err conftest.$ac_objext \ 20971 conftest$ac_exeext conftest.$ac_ext 20972 done 20973 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}" 20974 LIBS="$ac_save_LIBS" 20975fi 20976 20977fi 20978 20979 20980eval "ac_res=\$ac_cv_funclib_getaddrinfo" 20981 20982if false; then 20983 for ac_func in getaddrinfo 20984do : 20985 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20986if test "x$ac_cv_func_getaddrinfo" = xyes; then : 20987 cat >>confdefs.h <<_ACEOF 20988#define HAVE_GETADDRINFO 1 20989_ACEOF 20990 20991fi 20992done 20993 20994fi 20995# getaddrinfo 20996eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20997eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20998eval "LIB_getaddrinfo=$ac_res" 20999 21000case "$ac_res" in 21001 yes) 21002 eval "ac_cv_func_getaddrinfo=yes" 21003 eval "LIB_getaddrinfo=" 21004 cat >>confdefs.h <<_ACEOF 21005#define $ac_tr_func 1 21006_ACEOF 21007 21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21009$as_echo "yes" >&6; } 21010 ;; 21011 no) 21012 eval "ac_cv_func_getaddrinfo=no" 21013 eval "LIB_getaddrinfo=" 21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21015$as_echo "no" >&6; } 21016 ;; 21017 *) 21018 eval "ac_cv_func_getaddrinfo=yes" 21019 cat >>confdefs.h <<_ACEOF 21020#define $ac_tr_func 1 21021_ACEOF 21022 21023 cat >>confdefs.h <<_ACEOF 21024#define $ac_tr_lib 1 21025_ACEOF 21026 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21028$as_echo "yes, in $ac_res" >&6; } 21029 ;; 21030esac 21031 21032 21033if test -n "$LIB_getaddrinfo"; then 21034 LIBS="$LIB_getaddrinfo $LIBS" 21035fi 21036 21037if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then 21038 case " $LIBOBJS " in 21039 *" getaddrinfo.$ac_objext "* ) ;; 21040 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 21041 ;; 21042esac 21043 21044fi 21045 21046 21047 21048 21049 21050 21051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5 21052$as_echo_n "checking for getnameinfo... " >&6; } 21053if ${ac_cv_funclib_getnameinfo+:} false; then : 21054 $as_echo_n "(cached) " >&6 21055else 21056 21057if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then 21058 ac_save_LIBS="$LIBS" 21059 for ac_lib in "" ; do 21060 case "$ac_lib" in 21061 "") ;; 21062 yes) ac_lib="" ;; 21063 no) continue ;; 21064 -l*) ;; 21065 *) ac_lib="-l$ac_lib" ;; 21066 esac 21067 LIBS=" $ac_lib $ac_save_LIBS" 21068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21069/* end confdefs.h. */ 21070#ifdef HAVE_NETDB_H 21071#include <netdb.h> 21072#endif 21073#ifdef HAVE_WS2TCPIP_H 21074#include <ws2tcpip.h> 21075#endif 21076int 21077main () 21078{ 21079getnameinfo(0,0,0,0,0,0,0) 21080 ; 21081 return 0; 21082} 21083_ACEOF 21084if ac_fn_c_try_link "$LINENO"; then : 21085 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break 21086fi 21087rm -f core conftest.err conftest.$ac_objext \ 21088 conftest$ac_exeext conftest.$ac_ext 21089 done 21090 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}" 21091 LIBS="$ac_save_LIBS" 21092fi 21093 21094fi 21095 21096 21097eval "ac_res=\$ac_cv_funclib_getnameinfo" 21098 21099if false; then 21100 for ac_func in getnameinfo 21101do : 21102 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 21103if test "x$ac_cv_func_getnameinfo" = xyes; then : 21104 cat >>confdefs.h <<_ACEOF 21105#define HAVE_GETNAMEINFO 1 21106_ACEOF 21107 21108fi 21109done 21110 21111fi 21112# getnameinfo 21113eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21114eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21115eval "LIB_getnameinfo=$ac_res" 21116 21117case "$ac_res" in 21118 yes) 21119 eval "ac_cv_func_getnameinfo=yes" 21120 eval "LIB_getnameinfo=" 21121 cat >>confdefs.h <<_ACEOF 21122#define $ac_tr_func 1 21123_ACEOF 21124 21125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21126$as_echo "yes" >&6; } 21127 ;; 21128 no) 21129 eval "ac_cv_func_getnameinfo=no" 21130 eval "LIB_getnameinfo=" 21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21132$as_echo "no" >&6; } 21133 ;; 21134 *) 21135 eval "ac_cv_func_getnameinfo=yes" 21136 cat >>confdefs.h <<_ACEOF 21137#define $ac_tr_func 1 21138_ACEOF 21139 21140 cat >>confdefs.h <<_ACEOF 21141#define $ac_tr_lib 1 21142_ACEOF 21143 21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21145$as_echo "yes, in $ac_res" >&6; } 21146 ;; 21147esac 21148 21149 21150if test -n "$LIB_getnameinfo"; then 21151 LIBS="$LIB_getnameinfo $LIBS" 21152fi 21153 21154if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then 21155 case " $LIBOBJS " in 21156 *" getnameinfo.$ac_objext "* ) ;; 21157 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 21158 ;; 21159esac 21160 21161fi 21162 21163 21164 21165 21166 21167 21168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freeaddrinfo" >&5 21169$as_echo_n "checking for freeaddrinfo... " >&6; } 21170if ${ac_cv_funclib_freeaddrinfo+:} false; then : 21171 $as_echo_n "(cached) " >&6 21172else 21173 21174if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then 21175 ac_save_LIBS="$LIBS" 21176 for ac_lib in "" ; do 21177 case "$ac_lib" in 21178 "") ;; 21179 yes) ac_lib="" ;; 21180 no) continue ;; 21181 -l*) ;; 21182 *) ac_lib="-l$ac_lib" ;; 21183 esac 21184 LIBS=" $ac_lib $ac_save_LIBS" 21185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21186/* end confdefs.h. */ 21187#ifdef HAVE_NETDB_H 21188#include <netdb.h> 21189#endif 21190#ifdef HAVE_WS2TCPIP_H 21191#include <ws2tcpip.h> 21192#endif 21193int 21194main () 21195{ 21196freeaddrinfo(0) 21197 ; 21198 return 0; 21199} 21200_ACEOF 21201if ac_fn_c_try_link "$LINENO"; then : 21202 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break 21203fi 21204rm -f core conftest.err conftest.$ac_objext \ 21205 conftest$ac_exeext conftest.$ac_ext 21206 done 21207 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}" 21208 LIBS="$ac_save_LIBS" 21209fi 21210 21211fi 21212 21213 21214eval "ac_res=\$ac_cv_funclib_freeaddrinfo" 21215 21216if false; then 21217 for ac_func in freeaddrinfo 21218do : 21219 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo" 21220if test "x$ac_cv_func_freeaddrinfo" = xyes; then : 21221 cat >>confdefs.h <<_ACEOF 21222#define HAVE_FREEADDRINFO 1 21223_ACEOF 21224 21225fi 21226done 21227 21228fi 21229# freeaddrinfo 21230eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21231eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21232eval "LIB_freeaddrinfo=$ac_res" 21233 21234case "$ac_res" in 21235 yes) 21236 eval "ac_cv_func_freeaddrinfo=yes" 21237 eval "LIB_freeaddrinfo=" 21238 cat >>confdefs.h <<_ACEOF 21239#define $ac_tr_func 1 21240_ACEOF 21241 21242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21243$as_echo "yes" >&6; } 21244 ;; 21245 no) 21246 eval "ac_cv_func_freeaddrinfo=no" 21247 eval "LIB_freeaddrinfo=" 21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21249$as_echo "no" >&6; } 21250 ;; 21251 *) 21252 eval "ac_cv_func_freeaddrinfo=yes" 21253 cat >>confdefs.h <<_ACEOF 21254#define $ac_tr_func 1 21255_ACEOF 21256 21257 cat >>confdefs.h <<_ACEOF 21258#define $ac_tr_lib 1 21259_ACEOF 21260 21261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21262$as_echo "yes, in $ac_res" >&6; } 21263 ;; 21264esac 21265 21266 21267if test -n "$LIB_freeaddrinfo"; then 21268 LIBS="$LIB_freeaddrinfo $LIBS" 21269fi 21270 21271if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then 21272 case " $LIBOBJS " in 21273 *" freeaddrinfo.$ac_objext "* ) ;; 21274 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 21275 ;; 21276esac 21277 21278fi 21279 21280 21281 21282 21283 21284 21285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror" >&5 21286$as_echo_n "checking for gai_strerror... " >&6; } 21287if ${ac_cv_funclib_gai_strerror+:} false; then : 21288 $as_echo_n "(cached) " >&6 21289else 21290 21291if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then 21292 ac_save_LIBS="$LIBS" 21293 for ac_lib in "" ; do 21294 case "$ac_lib" in 21295 "") ;; 21296 yes) ac_lib="" ;; 21297 no) continue ;; 21298 -l*) ;; 21299 *) ac_lib="-l$ac_lib" ;; 21300 esac 21301 LIBS=" $ac_lib $ac_save_LIBS" 21302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21303/* end confdefs.h. */ 21304#ifdef HAVE_NETDB_H 21305#include <netdb.h> 21306#endif 21307#ifdef HAVE_WS2TCPIP_H 21308#include <ws2tcpip.h> 21309#endif 21310int 21311main () 21312{ 21313gai_strerror(0) 21314 ; 21315 return 0; 21316} 21317_ACEOF 21318if ac_fn_c_try_link "$LINENO"; then : 21319 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break 21320fi 21321rm -f core conftest.err conftest.$ac_objext \ 21322 conftest$ac_exeext conftest.$ac_ext 21323 done 21324 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}" 21325 LIBS="$ac_save_LIBS" 21326fi 21327 21328fi 21329 21330 21331eval "ac_res=\$ac_cv_funclib_gai_strerror" 21332 21333if false; then 21334 for ac_func in gai_strerror 21335do : 21336 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 21337if test "x$ac_cv_func_gai_strerror" = xyes; then : 21338 cat >>confdefs.h <<_ACEOF 21339#define HAVE_GAI_STRERROR 1 21340_ACEOF 21341 21342fi 21343done 21344 21345fi 21346# gai_strerror 21347eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21348eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21349eval "LIB_gai_strerror=$ac_res" 21350 21351case "$ac_res" in 21352 yes) 21353 eval "ac_cv_func_gai_strerror=yes" 21354 eval "LIB_gai_strerror=" 21355 cat >>confdefs.h <<_ACEOF 21356#define $ac_tr_func 1 21357_ACEOF 21358 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21360$as_echo "yes" >&6; } 21361 ;; 21362 no) 21363 eval "ac_cv_func_gai_strerror=no" 21364 eval "LIB_gai_strerror=" 21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21366$as_echo "no" >&6; } 21367 ;; 21368 *) 21369 eval "ac_cv_func_gai_strerror=yes" 21370 cat >>confdefs.h <<_ACEOF 21371#define $ac_tr_func 1 21372_ACEOF 21373 21374 cat >>confdefs.h <<_ACEOF 21375#define $ac_tr_lib 1 21376_ACEOF 21377 21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21379$as_echo "yes, in $ac_res" >&6; } 21380 ;; 21381esac 21382 21383 21384if test -n "$LIB_gai_strerror"; then 21385 LIBS="$LIB_gai_strerror $LIBS" 21386fi 21387 21388if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then 21389 case " $LIBOBJS " in 21390 *" gai_strerror.$ac_objext "* ) ;; 21391 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" 21392 ;; 21393esac 21394 21395fi 21396 21397 21398case "$host_os" in 21399 darwin*) 21400 ;; 21401 *) 21402 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 21403if test "x$ac_cv_func_daemon" = xyes; then : 21404 21405cat >>confdefs.h <<_ACEOF 21406#define HAVE_DAEMON 1 21407_ACEOF 21408 21409else 21410 case " $LIBOBJS " in 21411 *" daemon.$ac_objext "* ) ;; 21412 *) LIBOBJS="$LIBOBJS daemon.$ac_objext" 21413 ;; 21414esac 21415 21416fi 21417 ;; 21418esac 21419 21420ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 21421if test "x$ac_cv_func_chown" = xyes; then : 21422 21423cat >>confdefs.h <<_ACEOF 21424#define HAVE_CHOWN 1 21425_ACEOF 21426 21427else 21428 case " $LIBOBJS " in 21429 *" chown.$ac_objext "* ) ;; 21430 *) LIBOBJS="$LIBOBJS chown.$ac_objext" 21431 ;; 21432esac 21433 21434fi 21435ac_fn_c_check_func "$LINENO" "copyhostent" "ac_cv_func_copyhostent" 21436if test "x$ac_cv_func_copyhostent" = xyes; then : 21437 21438cat >>confdefs.h <<_ACEOF 21439#define HAVE_COPYHOSTENT 1 21440_ACEOF 21441 21442else 21443 case " $LIBOBJS " in 21444 *" copyhostent.$ac_objext "* ) ;; 21445 *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" 21446 ;; 21447esac 21448 21449fi 21450ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" 21451if test "x$ac_cv_func_closefrom" = xyes; then : 21452 21453cat >>confdefs.h <<_ACEOF 21454#define HAVE_CLOSEFROM 1 21455_ACEOF 21456 21457else 21458 case " $LIBOBJS " in 21459 *" closefrom.$ac_objext "* ) ;; 21460 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" 21461 ;; 21462esac 21463 21464fi 21465ac_fn_c_check_func "$LINENO" "ecalloc" "ac_cv_func_ecalloc" 21466if test "x$ac_cv_func_ecalloc" = xyes; then : 21467 21468cat >>confdefs.h <<_ACEOF 21469#define HAVE_ECALLOC 1 21470_ACEOF 21471 21472else 21473 case " $LIBOBJS " in 21474 *" ecalloc.$ac_objext "* ) ;; 21475 *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" 21476 ;; 21477esac 21478 21479fi 21480ac_fn_c_check_func "$LINENO" "emalloc" "ac_cv_func_emalloc" 21481if test "x$ac_cv_func_emalloc" = xyes; then : 21482 21483cat >>confdefs.h <<_ACEOF 21484#define HAVE_EMALLOC 1 21485_ACEOF 21486 21487else 21488 case " $LIBOBJS " in 21489 *" emalloc.$ac_objext "* ) ;; 21490 *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" 21491 ;; 21492esac 21493 21494fi 21495ac_fn_c_check_func "$LINENO" "erealloc" "ac_cv_func_erealloc" 21496if test "x$ac_cv_func_erealloc" = xyes; then : 21497 21498cat >>confdefs.h <<_ACEOF 21499#define HAVE_EREALLOC 1 21500_ACEOF 21501 21502else 21503 case " $LIBOBJS " in 21504 *" erealloc.$ac_objext "* ) ;; 21505 *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" 21506 ;; 21507esac 21508 21509fi 21510ac_fn_c_check_func "$LINENO" "estrdup" "ac_cv_func_estrdup" 21511if test "x$ac_cv_func_estrdup" = xyes; then : 21512 21513cat >>confdefs.h <<_ACEOF 21514#define HAVE_ESTRDUP 1 21515_ACEOF 21516 21517else 21518 case " $LIBOBJS " in 21519 *" estrdup.$ac_objext "* ) ;; 21520 *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" 21521 ;; 21522esac 21523 21524fi 21525ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err" 21526if test "x$ac_cv_func_err" = xyes; then : 21527 21528cat >>confdefs.h <<_ACEOF 21529#define HAVE_ERR 1 21530_ACEOF 21531 21532else 21533 case " $LIBOBJS " in 21534 *" err.$ac_objext "* ) ;; 21535 *) LIBOBJS="$LIBOBJS err.$ac_objext" 21536 ;; 21537esac 21538 21539fi 21540ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx" 21541if test "x$ac_cv_func_errx" = xyes; then : 21542 21543cat >>confdefs.h <<_ACEOF 21544#define HAVE_ERRX 1 21545_ACEOF 21546 21547else 21548 case " $LIBOBJS " in 21549 *" errx.$ac_objext "* ) ;; 21550 *) LIBOBJS="$LIBOBJS errx.$ac_objext" 21551 ;; 21552esac 21553 21554fi 21555ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 21556if test "x$ac_cv_func_fchown" = xyes; then : 21557 21558cat >>confdefs.h <<_ACEOF 21559#define HAVE_FCHOWN 1 21560_ACEOF 21561 21562else 21563 case " $LIBOBJS " in 21564 *" fchown.$ac_objext "* ) ;; 21565 *) LIBOBJS="$LIBOBJS fchown.$ac_objext" 21566 ;; 21567esac 21568 21569fi 21570ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 21571if test "x$ac_cv_func_flock" = xyes; then : 21572 21573cat >>confdefs.h <<_ACEOF 21574#define HAVE_FLOCK 1 21575_ACEOF 21576 21577else 21578 case " $LIBOBJS " in 21579 *" flock.$ac_objext "* ) ;; 21580 *) LIBOBJS="$LIBOBJS flock.$ac_objext" 21581 ;; 21582esac 21583 21584fi 21585ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 21586if test "x$ac_cv_func_fnmatch" = xyes; then : 21587 21588cat >>confdefs.h <<_ACEOF 21589#define HAVE_FNMATCH 1 21590_ACEOF 21591 21592else 21593 case " $LIBOBJS " in 21594 *" fnmatch.$ac_objext "* ) ;; 21595 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 21596 ;; 21597esac 21598 21599fi 21600ac_fn_c_check_func "$LINENO" "freehostent" "ac_cv_func_freehostent" 21601if test "x$ac_cv_func_freehostent" = xyes; then : 21602 21603cat >>confdefs.h <<_ACEOF 21604#define HAVE_FREEHOSTENT 1 21605_ACEOF 21606 21607else 21608 case " $LIBOBJS " in 21609 *" freehostent.$ac_objext "* ) ;; 21610 *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" 21611 ;; 21612esac 21613 21614fi 21615ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 21616if test "x$ac_cv_func_getcwd" = xyes; then : 21617 21618cat >>confdefs.h <<_ACEOF 21619#define HAVE_GETCWD 1 21620_ACEOF 21621 21622else 21623 case " $LIBOBJS " in 21624 *" getcwd.$ac_objext "* ) ;; 21625 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 21626 ;; 21627esac 21628 21629fi 21630ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 21631if test "x$ac_cv_func_getdtablesize" = xyes; then : 21632 21633cat >>confdefs.h <<_ACEOF 21634#define HAVE_GETDTABLESIZE 1 21635_ACEOF 21636 21637else 21638 case " $LIBOBJS " in 21639 *" getdtablesize.$ac_objext "* ) ;; 21640 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" 21641 ;; 21642esac 21643 21644fi 21645ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" 21646if test "x$ac_cv_func_getegid" = xyes; then : 21647 21648cat >>confdefs.h <<_ACEOF 21649#define HAVE_GETEGID 1 21650_ACEOF 21651 21652else 21653 case " $LIBOBJS " in 21654 *" getegid.$ac_objext "* ) ;; 21655 *) LIBOBJS="$LIBOBJS getegid.$ac_objext" 21656 ;; 21657esac 21658 21659fi 21660ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 21661if test "x$ac_cv_func_geteuid" = xyes; then : 21662 21663cat >>confdefs.h <<_ACEOF 21664#define HAVE_GETEUID 1 21665_ACEOF 21666 21667else 21668 case " $LIBOBJS " in 21669 *" geteuid.$ac_objext "* ) ;; 21670 *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" 21671 ;; 21672esac 21673 21674fi 21675ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid" 21676if test "x$ac_cv_func_getgid" = xyes; then : 21677 21678cat >>confdefs.h <<_ACEOF 21679#define HAVE_GETGID 1 21680_ACEOF 21681 21682else 21683 case " $LIBOBJS " in 21684 *" getgid.$ac_objext "* ) ;; 21685 *) LIBOBJS="$LIBOBJS getgid.$ac_objext" 21686 ;; 21687esac 21688 21689fi 21690ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 21691if test "x$ac_cv_func_gethostname" = xyes; then : 21692 21693cat >>confdefs.h <<_ACEOF 21694#define HAVE_GETHOSTNAME 1 21695_ACEOF 21696 21697else 21698 case " $LIBOBJS " in 21699 *" gethostname.$ac_objext "* ) ;; 21700 *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" 21701 ;; 21702esac 21703 21704fi 21705ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 21706if test "x$ac_cv_func_getifaddrs" = xyes; then : 21707 21708cat >>confdefs.h <<_ACEOF 21709#define HAVE_GETIFADDRS 1 21710_ACEOF 21711 21712else 21713 case " $LIBOBJS " in 21714 *" getifaddrs.$ac_objext "* ) ;; 21715 *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" 21716 ;; 21717esac 21718 21719fi 21720ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr" 21721if test "x$ac_cv_func_getipnodebyaddr" = xyes; then : 21722 21723cat >>confdefs.h <<_ACEOF 21724#define HAVE_GETIPNODEBYADDR 1 21725_ACEOF 21726 21727else 21728 case " $LIBOBJS " in 21729 *" getipnodebyaddr.$ac_objext "* ) ;; 21730 *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" 21731 ;; 21732esac 21733 21734fi 21735ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname" 21736if test "x$ac_cv_func_getipnodebyname" = xyes; then : 21737 21738cat >>confdefs.h <<_ACEOF 21739#define HAVE_GETIPNODEBYNAME 1 21740_ACEOF 21741 21742else 21743 case " $LIBOBJS " in 21744 *" getipnodebyname.$ac_objext "* ) ;; 21745 *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" 21746 ;; 21747esac 21748 21749fi 21750ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 21751if test "x$ac_cv_func_getopt" = xyes; then : 21752 21753cat >>confdefs.h <<_ACEOF 21754#define HAVE_GETOPT 1 21755_ACEOF 21756 21757else 21758 case " $LIBOBJS " in 21759 *" getopt.$ac_objext "* ) ;; 21760 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 21761 ;; 21762esac 21763 21764fi 21765ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 21766if test "x$ac_cv_func_gettimeofday" = xyes; then : 21767 21768cat >>confdefs.h <<_ACEOF 21769#define HAVE_GETTIMEOFDAY 1 21770_ACEOF 21771 21772else 21773 case " $LIBOBJS " in 21774 *" gettimeofday.$ac_objext "* ) ;; 21775 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 21776 ;; 21777esac 21778 21779fi 21780ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 21781if test "x$ac_cv_func_getuid" = xyes; then : 21782 21783cat >>confdefs.h <<_ACEOF 21784#define HAVE_GETUID 1 21785_ACEOF 21786 21787else 21788 case " $LIBOBJS " in 21789 *" getuid.$ac_objext "* ) ;; 21790 *) LIBOBJS="$LIBOBJS getuid.$ac_objext" 21791 ;; 21792esac 21793 21794fi 21795ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell" 21796if test "x$ac_cv_func_getusershell" = xyes; then : 21797 21798cat >>confdefs.h <<_ACEOF 21799#define HAVE_GETUSERSHELL 1 21800_ACEOF 21801 21802else 21803 case " $LIBOBJS " in 21804 *" getusershell.$ac_objext "* ) ;; 21805 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" 21806 ;; 21807esac 21808 21809fi 21810ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 21811if test "x$ac_cv_func_initgroups" = xyes; then : 21812 21813cat >>confdefs.h <<_ACEOF 21814#define HAVE_INITGROUPS 1 21815_ACEOF 21816 21817else 21818 case " $LIBOBJS " in 21819 *" initgroups.$ac_objext "* ) ;; 21820 *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" 21821 ;; 21822esac 21823 21824fi 21825ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr" 21826if test "x$ac_cv_func_innetgr" = xyes; then : 21827 21828cat >>confdefs.h <<_ACEOF 21829#define HAVE_INNETGR 1 21830_ACEOF 21831 21832else 21833 case " $LIBOBJS " in 21834 *" innetgr.$ac_objext "* ) ;; 21835 *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" 21836 ;; 21837esac 21838 21839fi 21840ac_fn_c_check_func "$LINENO" "iruserok" "ac_cv_func_iruserok" 21841if test "x$ac_cv_func_iruserok" = xyes; then : 21842 21843cat >>confdefs.h <<_ACEOF 21844#define HAVE_IRUSEROK 1 21845_ACEOF 21846 21847else 21848 case " $LIBOBJS " in 21849 *" iruserok.$ac_objext "* ) ;; 21850 *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" 21851 ;; 21852esac 21853 21854fi 21855ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 21856if test "x$ac_cv_func_localtime_r" = xyes; then : 21857 21858cat >>confdefs.h <<_ACEOF 21859#define HAVE_LOCALTIME_R 1 21860_ACEOF 21861 21862else 21863 case " $LIBOBJS " in 21864 *" localtime_r.$ac_objext "* ) ;; 21865 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 21866 ;; 21867esac 21868 21869fi 21870ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" 21871if test "x$ac_cv_func_lstat" = xyes; then : 21872 21873cat >>confdefs.h <<_ACEOF 21874#define HAVE_LSTAT 1 21875_ACEOF 21876 21877else 21878 case " $LIBOBJS " in 21879 *" lstat.$ac_objext "* ) ;; 21880 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 21881 ;; 21882esac 21883 21884fi 21885ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 21886if test "x$ac_cv_func_memmove" = xyes; then : 21887 21888cat >>confdefs.h <<_ACEOF 21889#define HAVE_MEMMOVE 1 21890_ACEOF 21891 21892else 21893 case " $LIBOBJS " in 21894 *" memmove.$ac_objext "* ) ;; 21895 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 21896 ;; 21897esac 21898 21899fi 21900ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s" 21901if test "x$ac_cv_func_memset_s" = xyes; then : 21902 21903cat >>confdefs.h <<_ACEOF 21904#define HAVE_MEMSET_S 1 21905_ACEOF 21906 21907else 21908 case " $LIBOBJS " in 21909 *" memset_s.$ac_objext "* ) ;; 21910 *) LIBOBJS="$LIBOBJS memset_s.$ac_objext" 21911 ;; 21912esac 21913 21914fi 21915ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 21916if test "x$ac_cv_func_mkstemp" = xyes; then : 21917 21918cat >>confdefs.h <<_ACEOF 21919#define HAVE_MKSTEMP 1 21920_ACEOF 21921 21922else 21923 case " $LIBOBJS " in 21924 *" mkstemp.$ac_objext "* ) ;; 21925 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 21926 ;; 21927esac 21928 21929fi 21930ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 21931if test "x$ac_cv_func_putenv" = xyes; then : 21932 21933cat >>confdefs.h <<_ACEOF 21934#define HAVE_PUTENV 1 21935_ACEOF 21936 21937else 21938 case " $LIBOBJS " in 21939 *" putenv.$ac_objext "* ) ;; 21940 *) LIBOBJS="$LIBOBJS putenv.$ac_objext" 21941 ;; 21942esac 21943 21944fi 21945ac_fn_c_check_func "$LINENO" "rcmd" "ac_cv_func_rcmd" 21946if test "x$ac_cv_func_rcmd" = xyes; then : 21947 21948cat >>confdefs.h <<_ACEOF 21949#define HAVE_RCMD 1 21950_ACEOF 21951 21952else 21953 case " $LIBOBJS " in 21954 *" rcmd.$ac_objext "* ) ;; 21955 *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" 21956 ;; 21957esac 21958 21959fi 21960ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv" 21961if test "x$ac_cv_func_readv" = xyes; then : 21962 21963cat >>confdefs.h <<_ACEOF 21964#define HAVE_READV 1 21965_ACEOF 21966 21967else 21968 case " $LIBOBJS " in 21969 *" readv.$ac_objext "* ) ;; 21970 *) LIBOBJS="$LIBOBJS readv.$ac_objext" 21971 ;; 21972esac 21973 21974fi 21975ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 21976if test "x$ac_cv_func_recvmsg" = xyes; then : 21977 21978cat >>confdefs.h <<_ACEOF 21979#define HAVE_RECVMSG 1 21980_ACEOF 21981 21982else 21983 case " $LIBOBJS " in 21984 *" recvmsg.$ac_objext "* ) ;; 21985 *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" 21986 ;; 21987esac 21988 21989fi 21990ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 21991if test "x$ac_cv_func_sendmsg" = xyes; then : 21992 21993cat >>confdefs.h <<_ACEOF 21994#define HAVE_SENDMSG 1 21995_ACEOF 21996 21997else 21998 case " $LIBOBJS " in 21999 *" sendmsg.$ac_objext "* ) ;; 22000 *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" 22001 ;; 22002esac 22003 22004fi 22005ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" 22006if test "x$ac_cv_func_setegid" = xyes; then : 22007 22008cat >>confdefs.h <<_ACEOF 22009#define HAVE_SETEGID 1 22010_ACEOF 22011 22012else 22013 case " $LIBOBJS " in 22014 *" setegid.$ac_objext "* ) ;; 22015 *) LIBOBJS="$LIBOBJS setegid.$ac_objext" 22016 ;; 22017esac 22018 22019fi 22020ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 22021if test "x$ac_cv_func_setenv" = xyes; then : 22022 22023cat >>confdefs.h <<_ACEOF 22024#define HAVE_SETENV 1 22025_ACEOF 22026 22027else 22028 case " $LIBOBJS " in 22029 *" setenv.$ac_objext "* ) ;; 22030 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 22031 ;; 22032esac 22033 22034fi 22035ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 22036if test "x$ac_cv_func_seteuid" = xyes; then : 22037 22038cat >>confdefs.h <<_ACEOF 22039#define HAVE_SETEUID 1 22040_ACEOF 22041 22042else 22043 case " $LIBOBJS " in 22044 *" seteuid.$ac_objext "* ) ;; 22045 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" 22046 ;; 22047esac 22048 22049fi 22050ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22051if test "x$ac_cv_func_strcasecmp" = xyes; then : 22052 22053cat >>confdefs.h <<_ACEOF 22054#define HAVE_STRCASECMP 1 22055_ACEOF 22056 22057else 22058 case " $LIBOBJS " in 22059 *" strcasecmp.$ac_objext "* ) ;; 22060 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 22061 ;; 22062esac 22063 22064fi 22065ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 22066if test "x$ac_cv_func_strdup" = xyes; then : 22067 22068cat >>confdefs.h <<_ACEOF 22069#define HAVE_STRDUP 1 22070_ACEOF 22071 22072else 22073 case " $LIBOBJS " in 22074 *" strdup.$ac_objext "* ) ;; 22075 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 22076 ;; 22077esac 22078 22079fi 22080ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 22081if test "x$ac_cv_func_strerror" = xyes; then : 22082 22083cat >>confdefs.h <<_ACEOF 22084#define HAVE_STRERROR 1 22085_ACEOF 22086 22087else 22088 case " $LIBOBJS " in 22089 *" strerror.$ac_objext "* ) ;; 22090 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 22091 ;; 22092esac 22093 22094fi 22095ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 22096if test "x$ac_cv_func_strftime" = xyes; then : 22097 22098cat >>confdefs.h <<_ACEOF 22099#define HAVE_STRFTIME 1 22100_ACEOF 22101 22102else 22103 case " $LIBOBJS " in 22104 *" strftime.$ac_objext "* ) ;; 22105 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" 22106 ;; 22107esac 22108 22109fi 22110ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 22111if test "x$ac_cv_func_strlcat" = xyes; then : 22112 22113cat >>confdefs.h <<_ACEOF 22114#define HAVE_STRLCAT 1 22115_ACEOF 22116 22117else 22118 case " $LIBOBJS " in 22119 *" strlcat.$ac_objext "* ) ;; 22120 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 22121 ;; 22122esac 22123 22124fi 22125ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22126if test "x$ac_cv_func_strlcpy" = xyes; then : 22127 22128cat >>confdefs.h <<_ACEOF 22129#define HAVE_STRLCPY 1 22130_ACEOF 22131 22132else 22133 case " $LIBOBJS " in 22134 *" strlcpy.$ac_objext "* ) ;; 22135 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 22136 ;; 22137esac 22138 22139fi 22140ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr" 22141if test "x$ac_cv_func_strlwr" = xyes; then : 22142 22143cat >>confdefs.h <<_ACEOF 22144#define HAVE_STRLWR 1 22145_ACEOF 22146 22147else 22148 case " $LIBOBJS " in 22149 *" strlwr.$ac_objext "* ) ;; 22150 *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" 22151 ;; 22152esac 22153 22154fi 22155ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 22156if test "x$ac_cv_func_strncasecmp" = xyes; then : 22157 22158cat >>confdefs.h <<_ACEOF 22159#define HAVE_STRNCASECMP 1 22160_ACEOF 22161 22162else 22163 case " $LIBOBJS " in 22164 *" strncasecmp.$ac_objext "* ) ;; 22165 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 22166 ;; 22167esac 22168 22169fi 22170ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 22171if test "x$ac_cv_func_strndup" = xyes; then : 22172 22173cat >>confdefs.h <<_ACEOF 22174#define HAVE_STRNDUP 1 22175_ACEOF 22176 22177else 22178 case " $LIBOBJS " in 22179 *" strndup.$ac_objext "* ) ;; 22180 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 22181 ;; 22182esac 22183 22184fi 22185ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 22186if test "x$ac_cv_func_strnlen" = xyes; then : 22187 22188cat >>confdefs.h <<_ACEOF 22189#define HAVE_STRNLEN 1 22190_ACEOF 22191 22192else 22193 case " $LIBOBJS " in 22194 *" strnlen.$ac_objext "* ) ;; 22195 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 22196 ;; 22197esac 22198 22199fi 22200ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 22201if test "x$ac_cv_func_strptime" = xyes; then : 22202 22203cat >>confdefs.h <<_ACEOF 22204#define HAVE_STRPTIME 1 22205_ACEOF 22206 22207else 22208 case " $LIBOBJS " in 22209 *" strptime.$ac_objext "* ) ;; 22210 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 22211 ;; 22212esac 22213 22214fi 22215ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 22216if test "x$ac_cv_func_strsep" = xyes; then : 22217 22218cat >>confdefs.h <<_ACEOF 22219#define HAVE_STRSEP 1 22220_ACEOF 22221 22222else 22223 case " $LIBOBJS " in 22224 *" strsep.$ac_objext "* ) ;; 22225 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 22226 ;; 22227esac 22228 22229fi 22230ac_fn_c_check_func "$LINENO" "strsep_copy" "ac_cv_func_strsep_copy" 22231if test "x$ac_cv_func_strsep_copy" = xyes; then : 22232 22233cat >>confdefs.h <<_ACEOF 22234#define HAVE_STRSEP_COPY 1 22235_ACEOF 22236 22237else 22238 case " $LIBOBJS " in 22239 *" strsep_copy.$ac_objext "* ) ;; 22240 *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" 22241 ;; 22242esac 22243 22244fi 22245ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 22246if test "x$ac_cv_func_strtok_r" = xyes; then : 22247 22248cat >>confdefs.h <<_ACEOF 22249#define HAVE_STRTOK_R 1 22250_ACEOF 22251 22252else 22253 case " $LIBOBJS " in 22254 *" strtok_r.$ac_objext "* ) ;; 22255 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 22256 ;; 22257esac 22258 22259fi 22260ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 22261if test "x$ac_cv_func_strtoll" = xyes; then : 22262 22263cat >>confdefs.h <<_ACEOF 22264#define HAVE_STRTOLL 1 22265_ACEOF 22266 22267else 22268 case " $LIBOBJS " in 22269 *" strtoll.$ac_objext "* ) ;; 22270 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" 22271 ;; 22272esac 22273 22274fi 22275ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 22276if test "x$ac_cv_func_strtoull" = xyes; then : 22277 22278cat >>confdefs.h <<_ACEOF 22279#define HAVE_STRTOULL 1 22280_ACEOF 22281 22282else 22283 case " $LIBOBJS " in 22284 *" strtoull.$ac_objext "* ) ;; 22285 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 22286 ;; 22287esac 22288 22289fi 22290ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr" 22291if test "x$ac_cv_func_strupr" = xyes; then : 22292 22293cat >>confdefs.h <<_ACEOF 22294#define HAVE_STRUPR 1 22295_ACEOF 22296 22297else 22298 case " $LIBOBJS " in 22299 *" strupr.$ac_objext "* ) ;; 22300 *) LIBOBJS="$LIBOBJS strupr.$ac_objext" 22301 ;; 22302esac 22303 22304fi 22305ac_fn_c_check_func "$LINENO" "swab" "ac_cv_func_swab" 22306if test "x$ac_cv_func_swab" = xyes; then : 22307 22308cat >>confdefs.h <<_ACEOF 22309#define HAVE_SWAB 1 22310_ACEOF 22311 22312else 22313 case " $LIBOBJS " in 22314 *" swab.$ac_objext "* ) ;; 22315 *) LIBOBJS="$LIBOBJS swab.$ac_objext" 22316 ;; 22317esac 22318 22319fi 22320ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 22321if test "x$ac_cv_func_tsearch" = xyes; then : 22322 22323cat >>confdefs.h <<_ACEOF 22324#define HAVE_TSEARCH 1 22325_ACEOF 22326 22327else 22328 case " $LIBOBJS " in 22329 *" tsearch.$ac_objext "* ) ;; 22330 *) LIBOBJS="$LIBOBJS tsearch.$ac_objext" 22331 ;; 22332esac 22333 22334fi 22335ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 22336if test "x$ac_cv_func_timegm" = xyes; then : 22337 22338cat >>confdefs.h <<_ACEOF 22339#define HAVE_TIMEGM 1 22340_ACEOF 22341 22342else 22343 case " $LIBOBJS " in 22344 *" timegm.$ac_objext "* ) ;; 22345 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 22346 ;; 22347esac 22348 22349fi 22350ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 22351if test "x$ac_cv_func_unsetenv" = xyes; then : 22352 22353cat >>confdefs.h <<_ACEOF 22354#define HAVE_UNSETENV 1 22355_ACEOF 22356 22357else 22358 case " $LIBOBJS " in 22359 *" unsetenv.$ac_objext "* ) ;; 22360 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 22361 ;; 22362esac 22363 22364fi 22365ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr" 22366if test "x$ac_cv_func_verr" = xyes; then : 22367 22368cat >>confdefs.h <<_ACEOF 22369#define HAVE_VERR 1 22370_ACEOF 22371 22372else 22373 case " $LIBOBJS " in 22374 *" verr.$ac_objext "* ) ;; 22375 *) LIBOBJS="$LIBOBJS verr.$ac_objext" 22376 ;; 22377esac 22378 22379fi 22380ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx" 22381if test "x$ac_cv_func_verrx" = xyes; then : 22382 22383cat >>confdefs.h <<_ACEOF 22384#define HAVE_VERRX 1 22385_ACEOF 22386 22387else 22388 case " $LIBOBJS " in 22389 *" verrx.$ac_objext "* ) ;; 22390 *) LIBOBJS="$LIBOBJS verrx.$ac_objext" 22391 ;; 22392esac 22393 22394fi 22395ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" 22396if test "x$ac_cv_func_vsyslog" = xyes; then : 22397 22398cat >>confdefs.h <<_ACEOF 22399#define HAVE_VSYSLOG 1 22400_ACEOF 22401 22402else 22403 case " $LIBOBJS " in 22404 *" vsyslog.$ac_objext "* ) ;; 22405 *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" 22406 ;; 22407esac 22408 22409fi 22410ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn" 22411if test "x$ac_cv_func_vwarn" = xyes; then : 22412 22413cat >>confdefs.h <<_ACEOF 22414#define HAVE_VWARN 1 22415_ACEOF 22416 22417else 22418 case " $LIBOBJS " in 22419 *" vwarn.$ac_objext "* ) ;; 22420 *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" 22421 ;; 22422esac 22423 22424fi 22425ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx" 22426if test "x$ac_cv_func_vwarnx" = xyes; then : 22427 22428cat >>confdefs.h <<_ACEOF 22429#define HAVE_VWARNX 1 22430_ACEOF 22431 22432else 22433 case " $LIBOBJS " in 22434 *" vwarnx.$ac_objext "* ) ;; 22435 *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" 22436 ;; 22437esac 22438 22439fi 22440ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn" 22441if test "x$ac_cv_func_warn" = xyes; then : 22442 22443cat >>confdefs.h <<_ACEOF 22444#define HAVE_WARN 1 22445_ACEOF 22446 22447else 22448 case " $LIBOBJS " in 22449 *" warn.$ac_objext "* ) ;; 22450 *) LIBOBJS="$LIBOBJS warn.$ac_objext" 22451 ;; 22452esac 22453 22454fi 22455ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx" 22456if test "x$ac_cv_func_warnx" = xyes; then : 22457 22458cat >>confdefs.h <<_ACEOF 22459#define HAVE_WARNX 1 22460_ACEOF 22461 22462else 22463 case " $LIBOBJS " in 22464 *" warnx.$ac_objext "* ) ;; 22465 *) LIBOBJS="$LIBOBJS warnx.$ac_objext" 22466 ;; 22467esac 22468 22469fi 22470ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 22471if test "x$ac_cv_func_writev" = xyes; then : 22472 22473cat >>confdefs.h <<_ACEOF 22474#define HAVE_WRITEV 1 22475_ACEOF 22476 22477else 22478 case " $LIBOBJS " in 22479 *" writev.$ac_objext "* ) ;; 22480 *) LIBOBJS="$LIBOBJS writev.$ac_objext" 22481 ;; 22482esac 22483 22484fi 22485 22486 22487 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then 22488 have_fnmatch_h_TRUE= 22489 have_fnmatch_h_FALSE='#' 22490else 22491 have_fnmatch_h_TRUE='#' 22492 have_fnmatch_h_FALSE= 22493fi 22494 22495 22496 22497if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then 22498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strndup needs a prototype" >&5 22499$as_echo_n "checking if strndup needs a prototype... " >&6; } 22500if ${ac_cv_func_strndup_noproto+:} false; then : 22501 $as_echo_n "(cached) " >&6 22502else 22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22504/* end confdefs.h. */ 22505#include <string.h> 22506struct foo { int foo; } xx; 22507extern int strndup (struct foo*); 22508int 22509main () 22510{ 22511strndup(&xx) 22512 ; 22513 return 0; 22514} 22515_ACEOF 22516if ac_fn_c_try_compile "$LINENO"; then : 22517 eval "ac_cv_func_strndup_noproto=yes" 22518else 22519 eval "ac_cv_func_strndup_noproto=no" 22520fi 22521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22522fi 22523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strndup_noproto" >&5 22524$as_echo "$ac_cv_func_strndup_noproto" >&6; } 22525if test "$ac_cv_func_strndup_noproto" = yes; then 22526 22527$as_echo "#define NEED_STRNDUP_PROTO 1" >>confdefs.h 22528 22529fi 22530fi 22531 22532if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 22533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsep needs a prototype" >&5 22534$as_echo_n "checking if strsep needs a prototype... " >&6; } 22535if ${ac_cv_func_strsep_noproto+:} false; then : 22536 $as_echo_n "(cached) " >&6 22537else 22538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22539/* end confdefs.h. */ 22540#include <string.h> 22541struct foo { int foo; } xx; 22542extern int strsep (struct foo*); 22543int 22544main () 22545{ 22546strsep(&xx) 22547 ; 22548 return 0; 22549} 22550_ACEOF 22551if ac_fn_c_try_compile "$LINENO"; then : 22552 eval "ac_cv_func_strsep_noproto=yes" 22553else 22554 eval "ac_cv_func_strsep_noproto=no" 22555fi 22556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22557fi 22558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsep_noproto" >&5 22559$as_echo "$ac_cv_func_strsep_noproto" >&6; } 22560if test "$ac_cv_func_strsep_noproto" = yes; then 22561 22562$as_echo "#define NEED_STRSEP_PROTO 1" >>confdefs.h 22563 22564fi 22565fi 22566 22567if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 22568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs a prototype" >&5 22569$as_echo_n "checking if strtok_r needs a prototype... " >&6; } 22570if ${ac_cv_func_strtok_r_noproto+:} false; then : 22571 $as_echo_n "(cached) " >&6 22572else 22573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22574/* end confdefs.h. */ 22575#include <string.h> 22576struct foo { int foo; } xx; 22577extern int strtok_r (struct foo*); 22578int 22579main () 22580{ 22581strtok_r(&xx) 22582 ; 22583 return 0; 22584} 22585_ACEOF 22586if ac_fn_c_try_compile "$LINENO"; then : 22587 eval "ac_cv_func_strtok_r_noproto=yes" 22588else 22589 eval "ac_cv_func_strtok_r_noproto=no" 22590fi 22591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22592fi 22593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtok_r_noproto" >&5 22594$as_echo "$ac_cv_func_strtok_r_noproto" >&6; } 22595if test "$ac_cv_func_strtok_r_noproto" = yes; then 22596 22597$as_echo "#define NEED_STRTOK_R_PROTO 1" >>confdefs.h 22598 22599fi 22600fi 22601 22602 22603ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 22604if test "x$ac_cv_func_strtoll" = xyes; then : 22605 22606cat >>confdefs.h <<_ACEOF 22607#define HAVE_STRTOLL 1 22608_ACEOF 22609 22610fi 22611 22612 22613ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 22614if test "x$ac_cv_func_strtoull" = xyes; then : 22615 22616cat >>confdefs.h <<_ACEOF 22617#define HAVE_STRTOULL 1 22618_ACEOF 22619 22620fi 22621 22622 22623 22624if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then 22625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvis needs a prototype" >&5 22626$as_echo_n "checking if strsvis needs a prototype... " >&6; } 22627if ${ac_cv_func_strsvis_noproto+:} false; then : 22628 $as_echo_n "(cached) " >&6 22629else 22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22631/* end confdefs.h. */ 22632#ifdef HAVE_VIS_H 22633#include <vis.h> 22634#endif 22635struct foo { int foo; } xx; 22636extern int strsvis (struct foo*); 22637int 22638main () 22639{ 22640strsvis(&xx) 22641 ; 22642 return 0; 22643} 22644_ACEOF 22645if ac_fn_c_try_compile "$LINENO"; then : 22646 eval "ac_cv_func_strsvis_noproto=yes" 22647else 22648 eval "ac_cv_func_strsvis_noproto=no" 22649fi 22650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22651fi 22652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvis_noproto" >&5 22653$as_echo "$ac_cv_func_strsvis_noproto" >&6; } 22654if test "$ac_cv_func_strsvis_noproto" = yes; then 22655 22656$as_echo "#define NEED_STRSVIS_PROTO 1" >>confdefs.h 22657 22658fi 22659fi 22660 22661if test "$ac_cv_func_strsvisx+set" != set -o "$ac_cv_func_strsvisx" = yes; then 22662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvisx needs a prototype" >&5 22663$as_echo_n "checking if strsvisx needs a prototype... " >&6; } 22664if ${ac_cv_func_strsvisx_noproto+:} false; then : 22665 $as_echo_n "(cached) " >&6 22666else 22667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22668/* end confdefs.h. */ 22669#ifdef HAVE_VIS_H 22670#include <vis.h> 22671#endif 22672struct foo { int foo; } xx; 22673extern int strsvisx (struct foo*); 22674int 22675main () 22676{ 22677strsvisx(&xx) 22678 ; 22679 return 0; 22680} 22681_ACEOF 22682if ac_fn_c_try_compile "$LINENO"; then : 22683 eval "ac_cv_func_strsvisx_noproto=yes" 22684else 22685 eval "ac_cv_func_strsvisx_noproto=no" 22686fi 22687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22688fi 22689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvisx_noproto" >&5 22690$as_echo "$ac_cv_func_strsvisx_noproto" >&6; } 22691if test "$ac_cv_func_strsvisx_noproto" = yes; then 22692 22693$as_echo "#define NEED_STRSVISX_PROTO 1" >>confdefs.h 22694 22695fi 22696fi 22697 22698if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then 22699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strunvis needs a prototype" >&5 22700$as_echo_n "checking if strunvis needs a prototype... " >&6; } 22701if ${ac_cv_func_strunvis_noproto+:} false; then : 22702 $as_echo_n "(cached) " >&6 22703else 22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22705/* end confdefs.h. */ 22706#ifdef HAVE_VIS_H 22707#include <vis.h> 22708#endif 22709struct foo { int foo; } xx; 22710extern int strunvis (struct foo*); 22711int 22712main () 22713{ 22714strunvis(&xx) 22715 ; 22716 return 0; 22717} 22718_ACEOF 22719if ac_fn_c_try_compile "$LINENO"; then : 22720 eval "ac_cv_func_strunvis_noproto=yes" 22721else 22722 eval "ac_cv_func_strunvis_noproto=no" 22723fi 22724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22725fi 22726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strunvis_noproto" >&5 22727$as_echo "$ac_cv_func_strunvis_noproto" >&6; } 22728if test "$ac_cv_func_strunvis_noproto" = yes; then 22729 22730$as_echo "#define NEED_STRUNVIS_PROTO 1" >>confdefs.h 22731 22732fi 22733fi 22734 22735if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then 22736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvis needs a prototype" >&5 22737$as_echo_n "checking if strvis needs a prototype... " >&6; } 22738if ${ac_cv_func_strvis_noproto+:} false; then : 22739 $as_echo_n "(cached) " >&6 22740else 22741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22742/* end confdefs.h. */ 22743#ifdef HAVE_VIS_H 22744#include <vis.h> 22745#endif 22746struct foo { int foo; } xx; 22747extern int strvis (struct foo*); 22748int 22749main () 22750{ 22751strvis(&xx) 22752 ; 22753 return 0; 22754} 22755_ACEOF 22756if ac_fn_c_try_compile "$LINENO"; then : 22757 eval "ac_cv_func_strvis_noproto=yes" 22758else 22759 eval "ac_cv_func_strvis_noproto=no" 22760fi 22761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22762fi 22763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvis_noproto" >&5 22764$as_echo "$ac_cv_func_strvis_noproto" >&6; } 22765if test "$ac_cv_func_strvis_noproto" = yes; then 22766 22767$as_echo "#define NEED_STRVIS_PROTO 1" >>confdefs.h 22768 22769fi 22770fi 22771 22772if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then 22773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvisx needs a prototype" >&5 22774$as_echo_n "checking if strvisx needs a prototype... " >&6; } 22775if ${ac_cv_func_strvisx_noproto+:} false; then : 22776 $as_echo_n "(cached) " >&6 22777else 22778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22779/* end confdefs.h. */ 22780#ifdef HAVE_VIS_H 22781#include <vis.h> 22782#endif 22783struct foo { int foo; } xx; 22784extern int strvisx (struct foo*); 22785int 22786main () 22787{ 22788strvisx(&xx) 22789 ; 22790 return 0; 22791} 22792_ACEOF 22793if ac_fn_c_try_compile "$LINENO"; then : 22794 eval "ac_cv_func_strvisx_noproto=yes" 22795else 22796 eval "ac_cv_func_strvisx_noproto=no" 22797fi 22798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22799fi 22800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvisx_noproto" >&5 22801$as_echo "$ac_cv_func_strvisx_noproto" >&6; } 22802if test "$ac_cv_func_strvisx_noproto" = yes; then 22803 22804$as_echo "#define NEED_STRVISX_PROTO 1" >>confdefs.h 22805 22806fi 22807fi 22808 22809if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then 22810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if svis needs a prototype" >&5 22811$as_echo_n "checking if svis needs a prototype... " >&6; } 22812if ${ac_cv_func_svis_noproto+:} false; then : 22813 $as_echo_n "(cached) " >&6 22814else 22815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22816/* end confdefs.h. */ 22817#ifdef HAVE_VIS_H 22818#include <vis.h> 22819#endif 22820struct foo { int foo; } xx; 22821extern int svis (struct foo*); 22822int 22823main () 22824{ 22825svis(&xx) 22826 ; 22827 return 0; 22828} 22829_ACEOF 22830if ac_fn_c_try_compile "$LINENO"; then : 22831 eval "ac_cv_func_svis_noproto=yes" 22832else 22833 eval "ac_cv_func_svis_noproto=no" 22834fi 22835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22836fi 22837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_svis_noproto" >&5 22838$as_echo "$ac_cv_func_svis_noproto" >&6; } 22839if test "$ac_cv_func_svis_noproto" = yes; then 22840 22841$as_echo "#define NEED_SVIS_PROTO 1" >>confdefs.h 22842 22843fi 22844fi 22845 22846if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then 22847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unvis needs a prototype" >&5 22848$as_echo_n "checking if unvis needs a prototype... " >&6; } 22849if ${ac_cv_func_unvis_noproto+:} false; then : 22850 $as_echo_n "(cached) " >&6 22851else 22852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22853/* end confdefs.h. */ 22854#ifdef HAVE_VIS_H 22855#include <vis.h> 22856#endif 22857struct foo { int foo; } xx; 22858extern int unvis (struct foo*); 22859int 22860main () 22861{ 22862unvis(&xx) 22863 ; 22864 return 0; 22865} 22866_ACEOF 22867if ac_fn_c_try_compile "$LINENO"; then : 22868 eval "ac_cv_func_unvis_noproto=yes" 22869else 22870 eval "ac_cv_func_unvis_noproto=no" 22871fi 22872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22873fi 22874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unvis_noproto" >&5 22875$as_echo "$ac_cv_func_unvis_noproto" >&6; } 22876if test "$ac_cv_func_unvis_noproto" = yes; then 22877 22878$as_echo "#define NEED_UNVIS_PROTO 1" >>confdefs.h 22879 22880fi 22881fi 22882 22883if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then 22884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vis needs a prototype" >&5 22885$as_echo_n "checking if vis needs a prototype... " >&6; } 22886if ${ac_cv_func_vis_noproto+:} false; then : 22887 $as_echo_n "(cached) " >&6 22888else 22889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22890/* end confdefs.h. */ 22891#ifdef HAVE_VIS_H 22892#include <vis.h> 22893#endif 22894struct foo { int foo; } xx; 22895extern int vis (struct foo*); 22896int 22897main () 22898{ 22899vis(&xx) 22900 ; 22901 return 0; 22902} 22903_ACEOF 22904if ac_fn_c_try_compile "$LINENO"; then : 22905 eval "ac_cv_func_vis_noproto=yes" 22906else 22907 eval "ac_cv_func_vis_noproto=no" 22908fi 22909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22910fi 22911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vis_noproto" >&5 22912$as_echo "$ac_cv_func_vis_noproto" >&6; } 22913if test "$ac_cv_func_vis_noproto" = yes; then 22914 22915$as_echo "#define NEED_VIS_PROTO 1" >>confdefs.h 22916 22917fi 22918fi 22919 22920 22921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for dirfd" >&5 22922$as_echo_n "checking checking for dirfd... " >&6; } 22923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22924/* end confdefs.h. */ 22925#include <sys/types.h> 22926#ifdef HAVE_DIRENT_H 22927#include <dirent.h> 22928#endif 22929 22930int 22931main () 22932{ 22933DIR *d = 0; dirfd(d); 22934 ; 22935 return 0; 22936} 22937_ACEOF 22938if ac_fn_c_try_link "$LINENO"; then : 22939 ac_rk_have_dirfd=yes 22940else 22941 ac_rk_have_dirfd=no 22942fi 22943rm -f core conftest.err conftest.$ac_objext \ 22944 conftest$ac_exeext conftest.$ac_ext 22945if test "$ac_rk_have_dirfd" = "yes" ; then 22946 22947cat >>confdefs.h <<_ACEOF 22948#define HAVE_DIRFD 1 22949_ACEOF 22950 22951fi 22952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have_dirfd" >&5 22953$as_echo "$ac_rk_have_dirfd" >&6; } 22954 22955 22956 22957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dd_fd in DIR" >&5 22958$as_echo_n "checking for dd_fd in DIR... " >&6; } 22959if ${ac_cv_type_dir_dd_fd+:} false; then : 22960 $as_echo_n "(cached) " >&6 22961else 22962 22963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22964/* end confdefs.h. */ 22965#include <sys/types.h> 22966#ifdef HAVE_DIRENT_H 22967#include <dirent.h> 22968#endif 22969int 22970main () 22971{ 22972DIR x; memset(&x, 0, sizeof(x)); x.dd_fd 22973 ; 22974 return 0; 22975} 22976_ACEOF 22977if ac_fn_c_try_compile "$LINENO"; then : 22978 ac_cv_type_dir_dd_fd=yes 22979else 22980 ac_cv_type_dir_dd_fd=no 22981fi 22982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22983 22984fi 22985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_dir_dd_fd" >&5 22986$as_echo "$ac_cv_type_dir_dd_fd" >&6; } 22987if test "$ac_cv_type_dir_dd_fd" = yes; then 22988 22989 22990$as_echo "#define HAVE_DIR_DD_FD 1" >>confdefs.h 22991 22992 22993fi 22994 22995 22996 22997 22998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 22999$as_echo_n "checking for inet_aton... " >&6; } 23000if ${ac_cv_func_inet_aton+:} false; then : 23001 $as_echo_n "(cached) " >&6 23002else 23003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23004/* end confdefs.h. */ 23005#ifdef HAVE_SYS_TYPES_H 23006#include <sys/types.h> 23007#endif 23008#ifdef HAVE_SYS_SOCKET_H 23009#include <sys/socket.h> 23010#endif 23011#ifdef HAVE_NETINET_IN_H 23012#include <netinet/in.h> 23013#endif 23014#ifdef HAVE_ARPA_INET_H 23015#include <arpa/inet.h> 23016#endif 23017int 23018main () 23019{ 23020 23021/* The GNU C library defines this for functions which it implements 23022 to always fail with ENOSYS. Some functions are actually named 23023 something starting with __ and the normal name is an alias. */ 23024#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 23025choke me 23026#else 23027inet_aton(0,0); 23028#endif 23029 23030 ; 23031 return 0; 23032} 23033_ACEOF 23034if ac_fn_c_try_link "$LINENO"; then : 23035 eval "ac_cv_func_inet_aton=yes" 23036else 23037 eval "ac_cv_func_inet_aton=no" 23038fi 23039rm -f core conftest.err conftest.$ac_objext \ 23040 conftest$ac_exeext conftest.$ac_ext 23041fi 23042 23043if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then 23044 23045cat >>confdefs.h <<_ACEOF 23046#define HAVE_INET_ATON 1 23047_ACEOF 23048 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23050$as_echo "yes" >&6; } 23051else 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23053$as_echo "no" >&6; } 23054 case " $LIBOBJS " in 23055 *" inet_aton.$ac_objext "* ) ;; 23056 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 23057 ;; 23058esac 23059 23060fi 23061 23062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5 23063$as_echo_n "checking for inet_ntop... " >&6; } 23064if ${ac_cv_func_inet_ntop+:} false; then : 23065 $as_echo_n "(cached) " >&6 23066else 23067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23068/* end confdefs.h. */ 23069#ifdef HAVE_SYS_TYPES_H 23070#include <sys/types.h> 23071#endif 23072#ifdef HAVE_SYS_SOCKET_H 23073#include <sys/socket.h> 23074#endif 23075#ifdef HAVE_NETINET_IN_H 23076#include <netinet/in.h> 23077#endif 23078#ifdef HAVE_ARPA_INET_H 23079#include <arpa/inet.h> 23080#endif 23081int 23082main () 23083{ 23084 23085/* The GNU C library defines this for functions which it implements 23086 to always fail with ENOSYS. Some functions are actually named 23087 something starting with __ and the normal name is an alias. */ 23088#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 23089choke me 23090#else 23091inet_ntop(0, 0, 0, 0); 23092#endif 23093 23094 ; 23095 return 0; 23096} 23097_ACEOF 23098if ac_fn_c_try_link "$LINENO"; then : 23099 eval "ac_cv_func_inet_ntop=yes" 23100else 23101 eval "ac_cv_func_inet_ntop=no" 23102fi 23103rm -f core conftest.err conftest.$ac_objext \ 23104 conftest$ac_exeext conftest.$ac_ext 23105fi 23106 23107if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then 23108 23109cat >>confdefs.h <<_ACEOF 23110#define HAVE_INET_NTOP 1 23111_ACEOF 23112 23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23114$as_echo "yes" >&6; } 23115else 23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23117$as_echo "no" >&6; } 23118 case " $LIBOBJS " in 23119 *" inet_ntop.$ac_objext "* ) ;; 23120 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 23121 ;; 23122esac 23123 23124fi 23125 23126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 23127$as_echo_n "checking for inet_pton... " >&6; } 23128if ${ac_cv_func_inet_pton+:} false; then : 23129 $as_echo_n "(cached) " >&6 23130else 23131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23132/* end confdefs.h. */ 23133#ifdef HAVE_SYS_TYPES_H 23134#include <sys/types.h> 23135#endif 23136#ifdef HAVE_SYS_SOCKET_H 23137#include <sys/socket.h> 23138#endif 23139#ifdef HAVE_NETINET_IN_H 23140#include <netinet/in.h> 23141#endif 23142#ifdef HAVE_ARPA_INET_H 23143#include <arpa/inet.h> 23144#endif 23145int 23146main () 23147{ 23148 23149/* The GNU C library defines this for functions which it implements 23150 to always fail with ENOSYS. Some functions are actually named 23151 something starting with __ and the normal name is an alias. */ 23152#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 23153choke me 23154#else 23155inet_pton(0,0,0); 23156#endif 23157 23158 ; 23159 return 0; 23160} 23161_ACEOF 23162if ac_fn_c_try_link "$LINENO"; then : 23163 eval "ac_cv_func_inet_pton=yes" 23164else 23165 eval "ac_cv_func_inet_pton=no" 23166fi 23167rm -f core conftest.err conftest.$ac_objext \ 23168 conftest$ac_exeext conftest.$ac_ext 23169fi 23170 23171if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then 23172 23173cat >>confdefs.h <<_ACEOF 23174#define HAVE_INET_PTON 1 23175_ACEOF 23176 23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23178$as_echo "yes" >&6; } 23179else 23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23181$as_echo "no" >&6; } 23182 case " $LIBOBJS " in 23183 *" inet_pton.$ac_objext "* ) ;; 23184 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 23185 ;; 23186esac 23187 23188fi 23189 23190 23191 23192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5 23193$as_echo_n "checking for sa_len in struct sockaddr... " >&6; } 23194if ${ac_cv_type_struct_sockaddr_sa_len+:} false; then : 23195 $as_echo_n "(cached) " >&6 23196else 23197 23198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23199/* end confdefs.h. */ 23200#include <sys/types.h> 23201#include <sys/socket.h> 23202int 23203main () 23204{ 23205struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len 23206 ; 23207 return 0; 23208} 23209_ACEOF 23210if ac_fn_c_try_compile "$LINENO"; then : 23211 ac_cv_type_struct_sockaddr_sa_len=yes 23212else 23213 ac_cv_type_struct_sockaddr_sa_len=no 23214fi 23215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23216 23217fi 23218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 23219$as_echo "$ac_cv_type_struct_sockaddr_sa_len" >&6; } 23220if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 23221 23222 23223$as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h 23224 23225 23226fi 23227 23228 23229 23230if test "$ac_cv_func_getaddrinfo" = "yes"; then 23231 23232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo handles numeric services" >&5 23233$as_echo_n "checking if getaddrinfo handles numeric services... " >&6; } 23234if ${ac_cv_func_getaddrinfo_numserv+:} false; then : 23235 $as_echo_n "(cached) " >&6 23236else 23237 if test "$cross_compiling" = yes; then : 23238 ac_cv_func_getaddrinfo_numserv=yes 23239else 23240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23241/* end confdefs.h. */ 23242#include <stdio.h> 23243#include <sys/types.h> 23244#include <sys/socket.h> 23245#include <netdb.h> 23246 23247int 23248main(int argc, char **argv) 23249{ 23250 struct addrinfo hints, *ai; 23251 memset(&hints, 0, sizeof(hints)); 23252 hints.ai_flags = AI_PASSIVE; 23253 hints.ai_socktype = SOCK_STREAM; 23254 hints.ai_family = PF_UNSPEC; 23255 if(getaddrinfo(NULL, "17", &hints, &ai) != 0) 23256 return 1; 23257 if(getaddrinfo(NULL, "0", &hints, &ai) != 0) 23258 return 1; 23259 return 0; 23260} 23261 23262_ACEOF 23263if ac_fn_c_try_run "$LINENO"; then : 23264 ac_cv_func_getaddrinfo_numserv=yes 23265else 23266 ac_cv_func_getaddrinfo_numserv=no 23267fi 23268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23269 conftest.$ac_objext conftest.beam conftest.$ac_ext 23270fi 23271 23272fi 23273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo_numserv" >&5 23274$as_echo "$ac_cv_func_getaddrinfo_numserv" >&6; } 23275 if test "$ac_cv_func_getaddrinfo_numserv" = no; then 23276 case " $LIBOBJS " in 23277 *" getaddrinfo.$ac_objext "* ) ;; 23278 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 23279 ;; 23280esac 23281 23282 case " $LIBOBJS " in 23283 *" freeaddrinfo.$ac_objext "* ) ;; 23284 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 23285 ;; 23286esac 23287 23288 fi 23289fi 23290 23291 23292if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 23293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setenv needs a prototype" >&5 23294$as_echo_n "checking if setenv needs a prototype... " >&6; } 23295if ${ac_cv_func_setenv_noproto+:} false; then : 23296 $as_echo_n "(cached) " >&6 23297else 23298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23299/* end confdefs.h. */ 23300#include <stdlib.h> 23301struct foo { int foo; } xx; 23302extern int setenv (struct foo*); 23303int 23304main () 23305{ 23306setenv(&xx) 23307 ; 23308 return 0; 23309} 23310_ACEOF 23311if ac_fn_c_try_compile "$LINENO"; then : 23312 eval "ac_cv_func_setenv_noproto=yes" 23313else 23314 eval "ac_cv_func_setenv_noproto=no" 23315fi 23316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23317fi 23318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setenv_noproto" >&5 23319$as_echo "$ac_cv_func_setenv_noproto" >&6; } 23320if test "$ac_cv_func_setenv_noproto" = yes; then 23321 23322$as_echo "#define NEED_SETENV_PROTO 1" >>confdefs.h 23323 23324fi 23325fi 23326 23327 23328if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 23329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unsetenv needs a prototype" >&5 23330$as_echo_n "checking if unsetenv needs a prototype... " >&6; } 23331if ${ac_cv_func_unsetenv_noproto+:} false; then : 23332 $as_echo_n "(cached) " >&6 23333else 23334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23335/* end confdefs.h. */ 23336#include <stdlib.h> 23337struct foo { int foo; } xx; 23338extern int unsetenv (struct foo*); 23339int 23340main () 23341{ 23342unsetenv(&xx) 23343 ; 23344 return 0; 23345} 23346_ACEOF 23347if ac_fn_c_try_compile "$LINENO"; then : 23348 eval "ac_cv_func_unsetenv_noproto=yes" 23349else 23350 eval "ac_cv_func_unsetenv_noproto=no" 23351fi 23352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23353fi 23354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unsetenv_noproto" >&5 23355$as_echo "$ac_cv_func_unsetenv_noproto" >&6; } 23356if test "$ac_cv_func_unsetenv_noproto" = yes; then 23357 23358$as_echo "#define NEED_UNSETENV_PROTO 1" >>confdefs.h 23359 23360fi 23361fi 23362 23363 23364if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 23365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname needs a prototype" >&5 23366$as_echo_n "checking if gethostname needs a prototype... " >&6; } 23367if ${ac_cv_func_gethostname_noproto+:} false; then : 23368 $as_echo_n "(cached) " >&6 23369else 23370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23371/* end confdefs.h. */ 23372#include <unistd.h> 23373struct foo { int foo; } xx; 23374extern int gethostname (struct foo*); 23375int 23376main () 23377{ 23378gethostname(&xx) 23379 ; 23380 return 0; 23381} 23382_ACEOF 23383if ac_fn_c_try_compile "$LINENO"; then : 23384 eval "ac_cv_func_gethostname_noproto=yes" 23385else 23386 eval "ac_cv_func_gethostname_noproto=no" 23387fi 23388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23389fi 23390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostname_noproto" >&5 23391$as_echo "$ac_cv_func_gethostname_noproto" >&6; } 23392if test "$ac_cv_func_gethostname_noproto" = yes; then 23393 23394$as_echo "#define NEED_GETHOSTNAME_PROTO 1" >>confdefs.h 23395 23396fi 23397fi 23398 23399 23400if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 23401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkstemp needs a prototype" >&5 23402$as_echo_n "checking if mkstemp needs a prototype... " >&6; } 23403if ${ac_cv_func_mkstemp_noproto+:} false; then : 23404 $as_echo_n "(cached) " >&6 23405else 23406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23407/* end confdefs.h. */ 23408#include <unistd.h> 23409struct foo { int foo; } xx; 23410extern int mkstemp (struct foo*); 23411int 23412main () 23413{ 23414mkstemp(&xx) 23415 ; 23416 return 0; 23417} 23418_ACEOF 23419if ac_fn_c_try_compile "$LINENO"; then : 23420 eval "ac_cv_func_mkstemp_noproto=yes" 23421else 23422 eval "ac_cv_func_mkstemp_noproto=no" 23423fi 23424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23425fi 23426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mkstemp_noproto" >&5 23427$as_echo "$ac_cv_func_mkstemp_noproto" >&6; } 23428if test "$ac_cv_func_mkstemp_noproto" = yes; then 23429 23430$as_echo "#define NEED_MKSTEMP_PROTO 1" >>confdefs.h 23431 23432fi 23433fi 23434 23435 23436if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 23437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getusershell needs a prototype" >&5 23438$as_echo_n "checking if getusershell needs a prototype... " >&6; } 23439if ${ac_cv_func_getusershell_noproto+:} false; then : 23440 $as_echo_n "(cached) " >&6 23441else 23442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23443/* end confdefs.h. */ 23444#include <unistd.h> 23445struct foo { int foo; } xx; 23446extern int getusershell (struct foo*); 23447int 23448main () 23449{ 23450getusershell(&xx) 23451 ; 23452 return 0; 23453} 23454_ACEOF 23455if ac_fn_c_try_compile "$LINENO"; then : 23456 eval "ac_cv_func_getusershell_noproto=yes" 23457else 23458 eval "ac_cv_func_getusershell_noproto=no" 23459fi 23460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23461fi 23462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getusershell_noproto" >&5 23463$as_echo "$ac_cv_func_getusershell_noproto" >&6; } 23464if test "$ac_cv_func_getusershell_noproto" = yes; then 23465 23466$as_echo "#define NEED_GETUSERSHELL_PROTO 1" >>confdefs.h 23467 23468fi 23469fi 23470 23471 23472if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then 23473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype" >&5 23474$as_echo_n "checking if daemon needs a prototype... " >&6; } 23475if ${ac_cv_func_daemon_noproto+:} false; then : 23476 $as_echo_n "(cached) " >&6 23477else 23478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23479/* end confdefs.h. */ 23480#include <unistd.h> 23481struct foo { int foo; } xx; 23482extern int daemon (struct foo*); 23483int 23484main () 23485{ 23486daemon(&xx) 23487 ; 23488 return 0; 23489} 23490_ACEOF 23491if ac_fn_c_try_compile "$LINENO"; then : 23492 eval "ac_cv_func_daemon_noproto=yes" 23493else 23494 eval "ac_cv_func_daemon_noproto=no" 23495fi 23496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23497fi 23498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_daemon_noproto" >&5 23499$as_echo "$ac_cv_func_daemon_noproto" >&6; } 23500if test "$ac_cv_func_daemon_noproto" = yes; then 23501 23502$as_echo "#define NEED_DAEMON_PROTO 1" >>confdefs.h 23503 23504fi 23505fi 23506 23507 23508if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then 23509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if iruserok needs a prototype" >&5 23510$as_echo_n "checking if iruserok needs a prototype... " >&6; } 23511if ${ac_cv_func_iruserok_noproto+:} false; then : 23512 $as_echo_n "(cached) " >&6 23513else 23514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23515/* end confdefs.h. */ 23516 23517#ifdef HAVE_SYS_TYPES_H 23518#include <sys/types.h> 23519#endif 23520#ifdef HAVE_SYS_SOCKET_H 23521#include <sys/socket.h> 23522#endif 23523#ifdef HAVE_NETINET_IN_H 23524#include <netinet/in.h> 23525#endif 23526#ifdef HAVE_ARPA_INET_H 23527#include <arpa/inet.h> 23528#endif 23529#ifdef HAVE_NETDB_H 23530#include <netdb.h> 23531#endif 23532#ifdef HAVE_UNISTD_H 23533#include <unistd.h> 23534#endif 23535struct foo { int foo; } xx; 23536extern int iruserok (struct foo*); 23537int 23538main () 23539{ 23540iruserok(&xx) 23541 ; 23542 return 0; 23543} 23544_ACEOF 23545if ac_fn_c_try_compile "$LINENO"; then : 23546 eval "ac_cv_func_iruserok_noproto=yes" 23547else 23548 eval "ac_cv_func_iruserok_noproto=no" 23549fi 23550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23551fi 23552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iruserok_noproto" >&5 23553$as_echo "$ac_cv_func_iruserok_noproto" >&6; } 23554if test "$ac_cv_func_iruserok_noproto" = yes; then 23555 23556$as_echo "#define NEED_IRUSEROK_PROTO 1" >>confdefs.h 23557 23558fi 23559fi 23560 23561 23562 23563if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 23564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton needs a prototype" >&5 23565$as_echo_n "checking if inet_aton needs a prototype... " >&6; } 23566if ${ac_cv_func_inet_aton_noproto+:} false; then : 23567 $as_echo_n "(cached) " >&6 23568else 23569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23570/* end confdefs.h. */ 23571 23572#ifdef HAVE_SYS_TYPES_H 23573#include <sys/types.h> 23574#endif 23575#ifdef HAVE_SYS_SOCKET_H 23576#include <sys/socket.h> 23577#endif 23578#ifdef HAVE_NETINET_IN_H 23579#include <netinet/in.h> 23580#endif 23581#ifdef HAVE_ARPA_INET_H 23582#include <arpa/inet.h> 23583#endif 23584struct foo { int foo; } xx; 23585extern int inet_aton (struct foo*); 23586int 23587main () 23588{ 23589inet_aton(&xx) 23590 ; 23591 return 0; 23592} 23593_ACEOF 23594if ac_fn_c_try_compile "$LINENO"; then : 23595 eval "ac_cv_func_inet_aton_noproto=yes" 23596else 23597 eval "ac_cv_func_inet_aton_noproto=no" 23598fi 23599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23600fi 23601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton_noproto" >&5 23602$as_echo "$ac_cv_func_inet_aton_noproto" >&6; } 23603if test "$ac_cv_func_inet_aton_noproto" = yes; then 23604 23605$as_echo "#define NEED_INET_ATON_PROTO 1" >>confdefs.h 23606 23607fi 23608fi 23609 23610 23611 23612 23613 23614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5 23615$as_echo_n "checking for crypt... " >&6; } 23616if ${ac_cv_funclib_crypt+:} false; then : 23617 $as_echo_n "(cached) " >&6 23618else 23619 23620if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 23621 ac_save_LIBS="$LIBS" 23622 for ac_lib in "" crypt; do 23623 case "$ac_lib" in 23624 "") ;; 23625 yes) ac_lib="" ;; 23626 no) continue ;; 23627 -l*) ;; 23628 *) ac_lib="-l$ac_lib" ;; 23629 esac 23630 LIBS=" $ac_lib $ac_save_LIBS" 23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23632/* end confdefs.h. */ 23633 23634int 23635main () 23636{ 23637crypt() 23638 ; 23639 return 0; 23640} 23641_ACEOF 23642if ac_fn_c_try_link "$LINENO"; then : 23643 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 23644fi 23645rm -f core conftest.err conftest.$ac_objext \ 23646 conftest$ac_exeext conftest.$ac_ext 23647 done 23648 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 23649 LIBS="$ac_save_LIBS" 23650fi 23651 23652fi 23653 23654 23655eval "ac_res=\$ac_cv_funclib_crypt" 23656 23657if false; then 23658 for ac_func in crypt 23659do : 23660 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 23661if test "x$ac_cv_func_crypt" = xyes; then : 23662 cat >>confdefs.h <<_ACEOF 23663#define HAVE_CRYPT 1 23664_ACEOF 23665 23666fi 23667done 23668 23669fi 23670# crypt 23671eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23672eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23673eval "LIB_crypt=$ac_res" 23674 23675case "$ac_res" in 23676 yes) 23677 eval "ac_cv_func_crypt=yes" 23678 eval "LIB_crypt=" 23679 cat >>confdefs.h <<_ACEOF 23680#define $ac_tr_func 1 23681_ACEOF 23682 23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23684$as_echo "yes" >&6; } 23685 ;; 23686 no) 23687 eval "ac_cv_func_crypt=no" 23688 eval "LIB_crypt=" 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23690$as_echo "no" >&6; } 23691 ;; 23692 *) 23693 eval "ac_cv_func_crypt=yes" 23694 cat >>confdefs.h <<_ACEOF 23695#define $ac_tr_func 1 23696_ACEOF 23697 23698 cat >>confdefs.h <<_ACEOF 23699#define $ac_tr_lib 1 23700_ACEOF 23701 23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 23703$as_echo "yes, in $ac_res" >&6; } 23704 ;; 23705esac 23706 23707 23708 23709 23710 23711 23712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compatible with system prototype" >&5 23713$as_echo_n "checking if strerror_r is compatible with system prototype... " >&6; } 23714if ${ac_cv_func_strerror_r_proto_compat+:} false; then : 23715 $as_echo_n "(cached) " >&6 23716else 23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23718/* end confdefs.h. */ 23719 23720#include <stdio.h> 23721#include <string.h> 23722 23723int 23724main () 23725{ 23726int strerror_r(int, char *, size_t) 23727 ; 23728 return 0; 23729} 23730_ACEOF 23731if ac_fn_c_try_compile "$LINENO"; then : 23732 eval "ac_cv_func_strerror_r_proto_compat=yes" 23733else 23734 eval "ac_cv_func_strerror_r_proto_compat=no" 23735fi 23736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23737fi 23738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_proto_compat" >&5 23739$as_echo "$ac_cv_func_strerror_r_proto_compat" >&6; } 23740 23741if test "$ac_cv_func_strerror_r_proto_compat" = yes; then 23742 23743$as_echo "#define STRERROR_R_PROTO_COMPATIBLE 1" >>confdefs.h 23744 23745fi 23746 23747 23748 23749ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 23750if test "x$ac_cv_func_strerror_r" = xyes; then : 23751 23752cat >>confdefs.h <<_ACEOF 23753#define HAVE_STRERROR_R 1 23754_ACEOF 23755 23756fi 23757 23758 23759 23760 23761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compatible with system prototype" >&5 23762$as_echo_n "checking if gethostbyname is compatible with system prototype... " >&6; } 23763if ${ac_cv_func_gethostbyname_proto_compat+:} false; then : 23764 $as_echo_n "(cached) " >&6 23765else 23766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23767/* end confdefs.h. */ 23768 23769#ifdef HAVE_SYS_TYPES_H 23770#include <sys/types.h> 23771#endif 23772#ifdef HAVE_SYS_SOCKET_H 23773#include <sys/socket.h> 23774#endif 23775#ifdef HAVE_NETINET_IN_H 23776#include <netinet/in.h> 23777#endif 23778#ifdef HAVE_ARPA_INET_H 23779#include <arpa/inet.h> 23780#endif 23781#ifdef HAVE_NETDB_H 23782#include <netdb.h> 23783#endif 23784 23785int 23786main () 23787{ 23788struct hostent *gethostbyname(const char *) 23789 ; 23790 return 0; 23791} 23792_ACEOF 23793if ac_fn_c_try_compile "$LINENO"; then : 23794 eval "ac_cv_func_gethostbyname_proto_compat=yes" 23795else 23796 eval "ac_cv_func_gethostbyname_proto_compat=no" 23797fi 23798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23799fi 23800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_proto_compat" >&5 23801$as_echo "$ac_cv_func_gethostbyname_proto_compat" >&6; } 23802 23803if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 23804 23805$as_echo "#define GETHOSTBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h 23806 23807fi 23808 23809 23810 23811 23812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compatible with system prototype" >&5 23813$as_echo_n "checking if gethostbyaddr is compatible with system prototype... " >&6; } 23814if ${ac_cv_func_gethostbyaddr_proto_compat+:} false; then : 23815 $as_echo_n "(cached) " >&6 23816else 23817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23818/* end confdefs.h. */ 23819 23820#ifdef HAVE_SYS_TYPES_H 23821#include <sys/types.h> 23822#endif 23823#ifdef HAVE_SYS_SOCKET_H 23824#include <sys/socket.h> 23825#endif 23826#ifdef HAVE_NETINET_IN_H 23827#include <netinet/in.h> 23828#endif 23829#ifdef HAVE_ARPA_INET_H 23830#include <arpa/inet.h> 23831#endif 23832#ifdef HAVE_NETDB_H 23833#include <netdb.h> 23834#endif 23835 23836int 23837main () 23838{ 23839struct hostent *gethostbyaddr(const void *, size_t, int) 23840 ; 23841 return 0; 23842} 23843_ACEOF 23844if ac_fn_c_try_compile "$LINENO"; then : 23845 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 23846else 23847 eval "ac_cv_func_gethostbyaddr_proto_compat=no" 23848fi 23849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23850fi 23851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 23852$as_echo "$ac_cv_func_gethostbyaddr_proto_compat" >&6; } 23853 23854if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 23855 23856$as_echo "#define GETHOSTBYADDR_PROTO_COMPATIBLE 1" >>confdefs.h 23857 23858fi 23859 23860 23861 23862 23863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname is compatible with system prototype" >&5 23864$as_echo_n "checking if getservbyname is compatible with system prototype... " >&6; } 23865if ${ac_cv_func_getservbyname_proto_compat+:} false; then : 23866 $as_echo_n "(cached) " >&6 23867else 23868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23869/* end confdefs.h. */ 23870 23871#ifdef HAVE_SYS_TYPES_H 23872#include <sys/types.h> 23873#endif 23874#ifdef HAVE_SYS_SOCKET_H 23875#include <sys/socket.h> 23876#endif 23877#ifdef HAVE_NETINET_IN_H 23878#include <netinet/in.h> 23879#endif 23880#ifdef HAVE_ARPA_INET_H 23881#include <arpa/inet.h> 23882#endif 23883#ifdef HAVE_NETDB_H 23884#include <netdb.h> 23885#endif 23886 23887int 23888main () 23889{ 23890struct servent *getservbyname(const char *, const char *) 23891 ; 23892 return 0; 23893} 23894_ACEOF 23895if ac_fn_c_try_compile "$LINENO"; then : 23896 eval "ac_cv_func_getservbyname_proto_compat=yes" 23897else 23898 eval "ac_cv_func_getservbyname_proto_compat=no" 23899fi 23900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23901fi 23902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_proto_compat" >&5 23903$as_echo "$ac_cv_func_getservbyname_proto_compat" >&6; } 23904 23905if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 23906 23907$as_echo "#define GETSERVBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h 23908 23909fi 23910 23911 23912 23913 23914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compatible with system prototype" >&5 23915$as_echo_n "checking if getsockname is compatible with system prototype... " >&6; } 23916if ${ac_cv_func_getsockname_proto_compat+:} false; then : 23917 $as_echo_n "(cached) " >&6 23918else 23919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23920/* end confdefs.h. */ 23921 23922#ifdef HAVE_SYS_TYPES_H 23923#include <sys/types.h> 23924#endif 23925#ifdef HAVE_SYS_SOCKET_H 23926#include <sys/socket.h> 23927#endif 23928 23929int 23930main () 23931{ 23932int getsockname(int, struct sockaddr*, socklen_t*) 23933 ; 23934 return 0; 23935} 23936_ACEOF 23937if ac_fn_c_try_compile "$LINENO"; then : 23938 eval "ac_cv_func_getsockname_proto_compat=yes" 23939else 23940 eval "ac_cv_func_getsockname_proto_compat=no" 23941fi 23942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23943fi 23944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_proto_compat" >&5 23945$as_echo "$ac_cv_func_getsockname_proto_compat" >&6; } 23946 23947if test "$ac_cv_func_getsockname_proto_compat" = yes; then 23948 23949$as_echo "#define GETSOCKNAME_PROTO_COMPATIBLE 1" >>confdefs.h 23950 23951fi 23952 23953 23954 23955 23956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if openlog is compatible with system prototype" >&5 23957$as_echo_n "checking if openlog is compatible with system prototype... " >&6; } 23958if ${ac_cv_func_openlog_proto_compat+:} false; then : 23959 $as_echo_n "(cached) " >&6 23960else 23961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23962/* end confdefs.h. */ 23963 23964#ifdef HAVE_SYSLOG_H 23965#include <syslog.h> 23966#endif 23967 23968int 23969main () 23970{ 23971void openlog(const char *, int, int) 23972 ; 23973 return 0; 23974} 23975_ACEOF 23976if ac_fn_c_try_compile "$LINENO"; then : 23977 eval "ac_cv_func_openlog_proto_compat=yes" 23978else 23979 eval "ac_cv_func_openlog_proto_compat=no" 23980fi 23981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23982fi 23983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_openlog_proto_compat" >&5 23984$as_echo "$ac_cv_func_openlog_proto_compat" >&6; } 23985 23986if test "$ac_cv_func_openlog_proto_compat" = yes; then 23987 23988$as_echo "#define OPENLOG_PROTO_COMPATIBLE 1" >>confdefs.h 23989 23990fi 23991 23992 23993 23994 23995if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 23996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if crypt needs a prototype" >&5 23997$as_echo_n "checking if crypt needs a prototype... " >&6; } 23998if ${ac_cv_func_crypt_noproto+:} false; then : 23999 $as_echo_n "(cached) " >&6 24000else 24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24002/* end confdefs.h. */ 24003 24004#ifdef HAVE_CRYPT_H 24005#include <crypt.h> 24006#endif 24007#ifdef HAVE_UNISTD_H 24008#include <unistd.h> 24009#endif 24010 24011struct foo { int foo; } xx; 24012extern int crypt (struct foo*); 24013int 24014main () 24015{ 24016crypt(&xx) 24017 ; 24018 return 0; 24019} 24020_ACEOF 24021if ac_fn_c_try_compile "$LINENO"; then : 24022 eval "ac_cv_func_crypt_noproto=yes" 24023else 24024 eval "ac_cv_func_crypt_noproto=no" 24025fi 24026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24027fi 24028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_crypt_noproto" >&5 24029$as_echo "$ac_cv_func_crypt_noproto" >&6; } 24030if test "$ac_cv_func_crypt_noproto" = yes; then 24031 24032$as_echo "#define NEED_CRYPT_PROTO 1" >>confdefs.h 24033 24034fi 24035fi 24036 24037 24038 24039 24040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5 24041$as_echo_n "checking for h_errno... " >&6; } 24042if ${ac_cv_var_h_errno+:} false; then : 24043 $as_echo_n "(cached) " >&6 24044else 24045 24046 24047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24048/* end confdefs.h. */ 24049#ifdef HAVE_SYS_TYPES_H 24050#include <sys/types.h> 24051#endif 24052#ifdef HAVE_NETDB_H 24053#include <netdb.h> 24054#endif 24055#ifdef HAVE_WS2TCPIP_H 24056#include <ws2tcpip.h> 24057#endif 24058 24059 void * foo(void) { return &h_errno; } 24060int 24061main () 24062{ 24063foo() 24064 ; 24065 return 0; 24066} 24067_ACEOF 24068if ac_fn_c_try_link "$LINENO"; then : 24069 ac_cv_var_h_errno=yes 24070else 24071 ac_cv_var_h_errno=no 24072fi 24073rm -f core conftest.err conftest.$ac_objext \ 24074 conftest$ac_exeext conftest.$ac_ext 24075if test "$ac_cv_var_h_errno" != yes ; then 24076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24077/* end confdefs.h. */ 24078#ifdef HAVE_SYS_TYPES_H 24079#include <sys/types.h> 24080#endif 24081#ifdef HAVE_NETDB_H 24082#include <netdb.h> 24083#endif 24084#ifdef HAVE_WS2TCPIP_H 24085#include <ws2tcpip.h> 24086#endif 24087 24088extern int h_errno; 24089int foo(void) { return h_errno; } 24090int 24091main () 24092{ 24093foo() 24094 ; 24095 return 0; 24096} 24097_ACEOF 24098if ac_fn_c_try_link "$LINENO"; then : 24099 ac_cv_var_h_errno=yes 24100else 24101 ac_cv_var_h_errno=no 24102fi 24103rm -f core conftest.err conftest.$ac_objext \ 24104 conftest$ac_exeext conftest.$ac_ext 24105fi 24106 24107fi 24108 24109ac_foo=`eval echo \\$ac_cv_var_h_errno` 24110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24111$as_echo "$ac_foo" >&6; } 24112if test "$ac_foo" = yes; then 24113 24114cat >>confdefs.h <<_ACEOF 24115#define HAVE_H_ERRNO 1 24116_ACEOF 24117 24118 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#ifdef HAVE_SYS_TYPES_H 24119#include <sys/types.h> 24120#endif 24121#ifdef HAVE_NETDB_H 24122#include <netdb.h> 24123#endif 24124#ifdef HAVE_WS2TCPIP_H 24125#include <ws2tcpip.h> 24126#endif 24127 24128" 24129if test "x$ac_cv_have_decl_h_errno" = xyes; then : 24130 ac_have_decl=1 24131else 24132 ac_have_decl=0 24133fi 24134 24135cat >>confdefs.h <<_ACEOF 24136#define HAVE_DECL_H_ERRNO $ac_have_decl 24137_ACEOF 24138 24139fi 24140 24141 24142 24143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errlist" >&5 24144$as_echo_n "checking for h_errlist... " >&6; } 24145if ${ac_cv_var_h_errlist+:} false; then : 24146 $as_echo_n "(cached) " >&6 24147else 24148 24149 24150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24151/* end confdefs.h. */ 24152#ifdef HAVE_NETDB_H 24153#include <netdb.h> 24154#endif 24155#ifdef HAVE_WS2TCPIP_H 24156#include <ws2tcpip.h> 24157#endif 24158 void * foo(void) { return &h_errlist; } 24159int 24160main () 24161{ 24162foo() 24163 ; 24164 return 0; 24165} 24166_ACEOF 24167if ac_fn_c_try_link "$LINENO"; then : 24168 ac_cv_var_h_errlist=yes 24169else 24170 ac_cv_var_h_errlist=no 24171fi 24172rm -f core conftest.err conftest.$ac_objext \ 24173 conftest$ac_exeext conftest.$ac_ext 24174if test "$ac_cv_var_h_errlist" != yes ; then 24175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24176/* end confdefs.h. */ 24177#ifdef HAVE_NETDB_H 24178#include <netdb.h> 24179#endif 24180#ifdef HAVE_WS2TCPIP_H 24181#include <ws2tcpip.h> 24182#endif 24183extern int h_errlist; 24184int foo(void) { return h_errlist; } 24185int 24186main () 24187{ 24188foo() 24189 ; 24190 return 0; 24191} 24192_ACEOF 24193if ac_fn_c_try_link "$LINENO"; then : 24194 ac_cv_var_h_errlist=yes 24195else 24196 ac_cv_var_h_errlist=no 24197fi 24198rm -f core conftest.err conftest.$ac_objext \ 24199 conftest$ac_exeext conftest.$ac_ext 24200fi 24201 24202fi 24203 24204ac_foo=`eval echo \\$ac_cv_var_h_errlist` 24205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24206$as_echo "$ac_foo" >&6; } 24207if test "$ac_foo" = yes; then 24208 24209cat >>confdefs.h <<_ACEOF 24210#define HAVE_H_ERRLIST 1 24211_ACEOF 24212 24213 ac_fn_c_check_decl "$LINENO" "h_errlist" "ac_cv_have_decl_h_errlist" "#ifdef HAVE_NETDB_H 24214#include <netdb.h> 24215#endif 24216#ifdef HAVE_WS2TCPIP_H 24217#include <ws2tcpip.h> 24218#endif 24219" 24220if test "x$ac_cv_have_decl_h_errlist" = xyes; then : 24221 ac_have_decl=1 24222else 24223 ac_have_decl=0 24224fi 24225 24226cat >>confdefs.h <<_ACEOF 24227#define HAVE_DECL_H_ERRLIST $ac_have_decl 24228_ACEOF 24229 24230fi 24231 24232 24233 24234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_nerr" >&5 24235$as_echo_n "checking for h_nerr... " >&6; } 24236if ${ac_cv_var_h_nerr+:} false; then : 24237 $as_echo_n "(cached) " >&6 24238else 24239 24240 24241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24242/* end confdefs.h. */ 24243#ifdef HAVE_NETDB_H 24244#include <netdb.h> 24245#endif 24246#ifdef HAVE_WS2TCPIP_H 24247#include <ws2tcpip.h> 24248#endif 24249 void * foo(void) { return &h_nerr; } 24250int 24251main () 24252{ 24253foo() 24254 ; 24255 return 0; 24256} 24257_ACEOF 24258if ac_fn_c_try_link "$LINENO"; then : 24259 ac_cv_var_h_nerr=yes 24260else 24261 ac_cv_var_h_nerr=no 24262fi 24263rm -f core conftest.err conftest.$ac_objext \ 24264 conftest$ac_exeext conftest.$ac_ext 24265if test "$ac_cv_var_h_nerr" != yes ; then 24266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24267/* end confdefs.h. */ 24268#ifdef HAVE_NETDB_H 24269#include <netdb.h> 24270#endif 24271#ifdef HAVE_WS2TCPIP_H 24272#include <ws2tcpip.h> 24273#endif 24274extern int h_nerr; 24275int foo(void) { return h_nerr; } 24276int 24277main () 24278{ 24279foo() 24280 ; 24281 return 0; 24282} 24283_ACEOF 24284if ac_fn_c_try_link "$LINENO"; then : 24285 ac_cv_var_h_nerr=yes 24286else 24287 ac_cv_var_h_nerr=no 24288fi 24289rm -f core conftest.err conftest.$ac_objext \ 24290 conftest$ac_exeext conftest.$ac_ext 24291fi 24292 24293fi 24294 24295ac_foo=`eval echo \\$ac_cv_var_h_nerr` 24296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24297$as_echo "$ac_foo" >&6; } 24298if test "$ac_foo" = yes; then 24299 24300cat >>confdefs.h <<_ACEOF 24301#define HAVE_H_NERR 1 24302_ACEOF 24303 24304 ac_fn_c_check_decl "$LINENO" "h_nerr" "ac_cv_have_decl_h_nerr" "#ifdef HAVE_NETDB_H 24305#include <netdb.h> 24306#endif 24307#ifdef HAVE_WS2TCPIP_H 24308#include <ws2tcpip.h> 24309#endif 24310" 24311if test "x$ac_cv_have_decl_h_nerr" = xyes; then : 24312 ac_have_decl=1 24313else 24314 ac_have_decl=0 24315fi 24316 24317cat >>confdefs.h <<_ACEOF 24318#define HAVE_DECL_H_NERR $ac_have_decl 24319_ACEOF 24320 24321fi 24322 24323 24324 24325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 24326$as_echo_n "checking for __progname... " >&6; } 24327if ${ac_cv_var___progname+:} false; then : 24328 $as_echo_n "(cached) " >&6 24329else 24330 24331 24332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24333/* end confdefs.h. */ 24334#ifdef HAVE_ERR_H 24335#include <err.h> 24336#endif 24337 void * foo(void) { return &__progname; } 24338int 24339main () 24340{ 24341foo() 24342 ; 24343 return 0; 24344} 24345_ACEOF 24346if ac_fn_c_try_link "$LINENO"; then : 24347 ac_cv_var___progname=yes 24348else 24349 ac_cv_var___progname=no 24350fi 24351rm -f core conftest.err conftest.$ac_objext \ 24352 conftest$ac_exeext conftest.$ac_ext 24353if test "$ac_cv_var___progname" != yes ; then 24354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24355/* end confdefs.h. */ 24356#ifdef HAVE_ERR_H 24357#include <err.h> 24358#endif 24359extern int __progname; 24360int foo(void) { return __progname; } 24361int 24362main () 24363{ 24364foo() 24365 ; 24366 return 0; 24367} 24368_ACEOF 24369if ac_fn_c_try_link "$LINENO"; then : 24370 ac_cv_var___progname=yes 24371else 24372 ac_cv_var___progname=no 24373fi 24374rm -f core conftest.err conftest.$ac_objext \ 24375 conftest$ac_exeext conftest.$ac_ext 24376fi 24377 24378fi 24379 24380ac_foo=`eval echo \\$ac_cv_var___progname` 24381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24382$as_echo "$ac_foo" >&6; } 24383if test "$ac_foo" = yes; then 24384 24385cat >>confdefs.h <<_ACEOF 24386#define HAVE___PROGNAME 1 24387_ACEOF 24388 24389 ac_fn_c_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "#ifdef HAVE_ERR_H 24390#include <err.h> 24391#endif 24392" 24393if test "x$ac_cv_have_decl___progname" = xyes; then : 24394 ac_have_decl=1 24395else 24396 ac_have_decl=0 24397fi 24398 24399cat >>confdefs.h <<_ACEOF 24400#define HAVE_DECL___PROGNAME $ac_have_decl 24401_ACEOF 24402 24403fi 24404 24405 24406ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" " 24407#include <stdlib.h> 24408#ifdef HAVE_UNISTD_H 24409#include <unistd.h> 24410#endif 24411" 24412if test "x$ac_cv_have_decl_optarg" = xyes; then : 24413 ac_have_decl=1 24414else 24415 ac_have_decl=0 24416fi 24417 24418cat >>confdefs.h <<_ACEOF 24419#define HAVE_DECL_OPTARG $ac_have_decl 24420_ACEOF 24421ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" " 24422#include <stdlib.h> 24423#ifdef HAVE_UNISTD_H 24424#include <unistd.h> 24425#endif 24426" 24427if test "x$ac_cv_have_decl_optind" = xyes; then : 24428 ac_have_decl=1 24429else 24430 ac_have_decl=0 24431fi 24432 24433cat >>confdefs.h <<_ACEOF 24434#define HAVE_DECL_OPTIND $ac_have_decl 24435_ACEOF 24436ac_fn_c_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" " 24437#include <stdlib.h> 24438#ifdef HAVE_UNISTD_H 24439#include <unistd.h> 24440#endif 24441" 24442if test "x$ac_cv_have_decl_opterr" = xyes; then : 24443 ac_have_decl=1 24444else 24445 ac_have_decl=0 24446fi 24447 24448cat >>confdefs.h <<_ACEOF 24449#define HAVE_DECL_OPTERR $ac_have_decl 24450_ACEOF 24451ac_fn_c_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" " 24452#include <stdlib.h> 24453#ifdef HAVE_UNISTD_H 24454#include <unistd.h> 24455#endif 24456" 24457if test "x$ac_cv_have_decl_optopt" = xyes; then : 24458 ac_have_decl=1 24459else 24460 ac_have_decl=0 24461fi 24462 24463cat >>confdefs.h <<_ACEOF 24464#define HAVE_DECL_OPTOPT $ac_have_decl 24465_ACEOF 24466ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" " 24467#include <stdlib.h> 24468#ifdef HAVE_UNISTD_H 24469#include <unistd.h> 24470#endif 24471" 24472if test "x$ac_cv_have_decl_environ" = xyes; then : 24473 ac_have_decl=1 24474else 24475 ac_have_decl=0 24476fi 24477 24478cat >>confdefs.h <<_ACEOF 24479#define HAVE_DECL_ENVIRON $ac_have_decl 24480_ACEOF 24481 24482 24483 24484 24485 24486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 24487$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } 24488if ${ac_cv_type_struct_tm_tm_gmtoff+:} false; then : 24489 $as_echo_n "(cached) " >&6 24490else 24491 24492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24493/* end confdefs.h. */ 24494#include <time.h> 24495int 24496main () 24497{ 24498struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff 24499 ; 24500 return 0; 24501} 24502_ACEOF 24503if ac_fn_c_try_compile "$LINENO"; then : 24504 ac_cv_type_struct_tm_tm_gmtoff=yes 24505else 24506 ac_cv_type_struct_tm_tm_gmtoff=no 24507fi 24508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24509 24510fi 24511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 24512$as_echo "$ac_cv_type_struct_tm_tm_gmtoff" >&6; } 24513if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 24514 24515 24516$as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 24517 24518 24519fi 24520 24521 24522 24523 24524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 24525$as_echo_n "checking for tm_zone in struct tm... " >&6; } 24526if ${ac_cv_type_struct_tm_tm_zone+:} false; then : 24527 $as_echo_n "(cached) " >&6 24528else 24529 24530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24531/* end confdefs.h. */ 24532#include <time.h> 24533int 24534main () 24535{ 24536struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone 24537 ; 24538 return 0; 24539} 24540_ACEOF 24541if ac_fn_c_try_compile "$LINENO"; then : 24542 ac_cv_type_struct_tm_tm_zone=yes 24543else 24544 ac_cv_type_struct_tm_tm_zone=no 24545fi 24546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24547 24548fi 24549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_zone" >&5 24550$as_echo "$ac_cv_type_struct_tm_tm_zone" >&6; } 24551if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 24552 24553 24554$as_echo "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 24555 24556 24557fi 24558 24559 24560 24561 24562 24563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 24564$as_echo_n "checking for timezone... " >&6; } 24565if ${ac_cv_var_timezone+:} false; then : 24566 $as_echo_n "(cached) " >&6 24567else 24568 24569 24570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24571/* end confdefs.h. */ 24572#include <time.h> 24573 void * foo(void) { return &timezone; } 24574int 24575main () 24576{ 24577foo() 24578 ; 24579 return 0; 24580} 24581_ACEOF 24582if ac_fn_c_try_link "$LINENO"; then : 24583 ac_cv_var_timezone=yes 24584else 24585 ac_cv_var_timezone=no 24586fi 24587rm -f core conftest.err conftest.$ac_objext \ 24588 conftest$ac_exeext conftest.$ac_ext 24589if test "$ac_cv_var_timezone" != yes ; then 24590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24591/* end confdefs.h. */ 24592#include <time.h> 24593extern int timezone; 24594int foo(void) { return timezone; } 24595int 24596main () 24597{ 24598foo() 24599 ; 24600 return 0; 24601} 24602_ACEOF 24603if ac_fn_c_try_link "$LINENO"; then : 24604 ac_cv_var_timezone=yes 24605else 24606 ac_cv_var_timezone=no 24607fi 24608rm -f core conftest.err conftest.$ac_objext \ 24609 conftest$ac_exeext conftest.$ac_ext 24610fi 24611 24612fi 24613 24614ac_foo=`eval echo \\$ac_cv_var_timezone` 24615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24616$as_echo "$ac_foo" >&6; } 24617if test "$ac_foo" = yes; then 24618 24619cat >>confdefs.h <<_ACEOF 24620#define HAVE_TIMEZONE 1 24621_ACEOF 24622 24623 ac_fn_c_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h> 24624" 24625if test "x$ac_cv_have_decl_timezone" = xyes; then : 24626 ac_have_decl=1 24627else 24628 ac_have_decl=0 24629fi 24630 24631cat >>confdefs.h <<_ACEOF 24632#define HAVE_DECL_TIMEZONE $ac_have_decl 24633_ACEOF 24634 24635fi 24636 24637 24638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone" >&5 24639$as_echo_n "checking for altzone... " >&6; } 24640if ${ac_cv_var_altzone+:} false; then : 24641 $as_echo_n "(cached) " >&6 24642else 24643 24644 24645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24646/* end confdefs.h. */ 24647#include <time.h> 24648 void * foo(void) { return &altzone; } 24649int 24650main () 24651{ 24652foo() 24653 ; 24654 return 0; 24655} 24656_ACEOF 24657if ac_fn_c_try_link "$LINENO"; then : 24658 ac_cv_var_altzone=yes 24659else 24660 ac_cv_var_altzone=no 24661fi 24662rm -f core conftest.err conftest.$ac_objext \ 24663 conftest$ac_exeext conftest.$ac_ext 24664if test "$ac_cv_var_altzone" != yes ; then 24665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24666/* end confdefs.h. */ 24667#include <time.h> 24668extern int altzone; 24669int foo(void) { return altzone; } 24670int 24671main () 24672{ 24673foo() 24674 ; 24675 return 0; 24676} 24677_ACEOF 24678if ac_fn_c_try_link "$LINENO"; then : 24679 ac_cv_var_altzone=yes 24680else 24681 ac_cv_var_altzone=no 24682fi 24683rm -f core conftest.err conftest.$ac_objext \ 24684 conftest$ac_exeext conftest.$ac_ext 24685fi 24686 24687fi 24688 24689ac_foo=`eval echo \\$ac_cv_var_altzone` 24690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24691$as_echo "$ac_foo" >&6; } 24692if test "$ac_foo" = yes; then 24693 24694cat >>confdefs.h <<_ACEOF 24695#define HAVE_ALTZONE 1 24696_ACEOF 24697 24698 ac_fn_c_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" "#include <time.h> 24699" 24700if test "x$ac_cv_have_decl_altzone" = xyes; then : 24701 ac_have_decl=1 24702else 24703 ac_have_decl=0 24704fi 24705 24706cat >>confdefs.h <<_ACEOF 24707#define HAVE_DECL_ALTZONE $ac_have_decl 24708_ACEOF 24709 24710fi 24711 24712 24713 24714 24715cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 24716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 24717$as_echo_n "checking for sa_family_t... " >&6; } 24718if eval \${ac_cv_type_$cv+:} false; then : 24719 $as_echo_n "(cached) " >&6 24720else 24721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24722/* end confdefs.h. */ 24723 24724#include <sys/types.h> 24725#if STDC_HEADERS 24726#include <stdlib.h> 24727#include <stddef.h> 24728#endif 24729 24730#include <sys/types.h> 24731#ifdef HAVE_SYS_SOCKET_H 24732#include <sys/socket.h> 24733#endif 24734#ifdef HAVE_WS2TCPIP_H 24735#include <ws2tcpip.h> 24736#endif 24737int 24738main () 24739{ 24740sa_family_t foo; 24741 ; 24742 return 0; 24743} 24744_ACEOF 24745if ac_fn_c_try_compile "$LINENO"; then : 24746 eval "ac_cv_type_$cv=yes" 24747else 24748 eval "ac_cv_type_$cv=no" 24749fi 24750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24751fi 24752ac_foo=`eval echo \\$ac_cv_type_$cv` 24753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24754$as_echo "$ac_foo" >&6; } 24755if test "$ac_foo" = yes; then 24756 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 24757if false; then 24758 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "$ac_includes_default" 24759if test "x$ac_cv_type_sa_family_t" = xyes; then : 24760 24761cat >>confdefs.h <<_ACEOF 24762#define HAVE_SA_FAMILY_T 1 24763_ACEOF 24764 24765 24766fi 24767 24768fi 24769 24770cat >>confdefs.h <<_ACEOF 24771#define $ac_tr_hdr 1 24772_ACEOF 24773 24774fi 24775 24776 24777 24778cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 24779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 24780$as_echo_n "checking for socklen_t... " >&6; } 24781if eval \${ac_cv_type_$cv+:} false; then : 24782 $as_echo_n "(cached) " >&6 24783else 24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24785/* end confdefs.h. */ 24786 24787#include <sys/types.h> 24788#if STDC_HEADERS 24789#include <stdlib.h> 24790#include <stddef.h> 24791#endif 24792 24793#include <sys/types.h> 24794#ifdef HAVE_SYS_SOCKET_H 24795#include <sys/socket.h> 24796#endif 24797#ifdef HAVE_WS2TCPIP_H 24798#include <ws2tcpip.h> 24799#endif 24800int 24801main () 24802{ 24803socklen_t foo; 24804 ; 24805 return 0; 24806} 24807_ACEOF 24808if ac_fn_c_try_compile "$LINENO"; then : 24809 eval "ac_cv_type_$cv=yes" 24810else 24811 eval "ac_cv_type_$cv=no" 24812fi 24813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24814fi 24815ac_foo=`eval echo \\$ac_cv_type_$cv` 24816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24817$as_echo "$ac_foo" >&6; } 24818if test "$ac_foo" = yes; then 24819 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 24820if false; then 24821 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default" 24822if test "x$ac_cv_type_socklen_t" = xyes; then : 24823 24824cat >>confdefs.h <<_ACEOF 24825#define HAVE_SOCKLEN_T 1 24826_ACEOF 24827 24828 24829fi 24830 24831fi 24832 24833cat >>confdefs.h <<_ACEOF 24834#define $ac_tr_hdr 1 24835_ACEOF 24836 24837fi 24838 24839 24840 24841cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 24842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr" >&5 24843$as_echo_n "checking for struct sockaddr... " >&6; } 24844if eval \${ac_cv_type_$cv+:} false; then : 24845 $as_echo_n "(cached) " >&6 24846else 24847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24848/* end confdefs.h. */ 24849 24850#include <sys/types.h> 24851#if STDC_HEADERS 24852#include <stdlib.h> 24853#include <stddef.h> 24854#endif 24855 24856#include <sys/types.h> 24857#ifdef HAVE_SYS_SOCKET_H 24858#include <sys/socket.h> 24859#endif 24860#ifdef HAVE_WS2TCPIP_H 24861#include <ws2tcpip.h> 24862#endif 24863int 24864main () 24865{ 24866struct sockaddr foo; 24867 ; 24868 return 0; 24869} 24870_ACEOF 24871if ac_fn_c_try_compile "$LINENO"; then : 24872 eval "ac_cv_type_$cv=yes" 24873else 24874 eval "ac_cv_type_$cv=no" 24875fi 24876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24877fi 24878ac_foo=`eval echo \\$ac_cv_type_$cv` 24879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24880$as_echo "$ac_foo" >&6; } 24881if test "$ac_foo" = yes; then 24882 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 24883if false; then 24884 ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "$ac_includes_default" 24885if test "x$ac_cv_type_struct_sockaddr" = xyes; then : 24886 24887cat >>confdefs.h <<_ACEOF 24888#define HAVE_STRUCT_SOCKADDR 1 24889_ACEOF 24890 24891 24892fi 24893 24894fi 24895 24896cat >>confdefs.h <<_ACEOF 24897#define $ac_tr_hdr 1 24898_ACEOF 24899 24900fi 24901 24902 24903 24904cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 24905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 24906$as_echo_n "checking for struct sockaddr_storage... " >&6; } 24907if eval \${ac_cv_type_$cv+:} false; then : 24908 $as_echo_n "(cached) " >&6 24909else 24910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24911/* end confdefs.h. */ 24912 24913#include <sys/types.h> 24914#if STDC_HEADERS 24915#include <stdlib.h> 24916#include <stddef.h> 24917#endif 24918 24919#include <sys/types.h> 24920#ifdef HAVE_SYS_SOCKET_H 24921#include <sys/socket.h> 24922#endif 24923#ifdef HAVE_WS2TCPIP_H 24924#include <ws2tcpip.h> 24925#endif 24926int 24927main () 24928{ 24929struct sockaddr_storage foo; 24930 ; 24931 return 0; 24932} 24933_ACEOF 24934if ac_fn_c_try_compile "$LINENO"; then : 24935 eval "ac_cv_type_$cv=yes" 24936else 24937 eval "ac_cv_type_$cv=no" 24938fi 24939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24940fi 24941ac_foo=`eval echo \\$ac_cv_type_$cv` 24942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 24943$as_echo "$ac_foo" >&6; } 24944if test "$ac_foo" = yes; then 24945 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 24946if false; then 24947 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default" 24948if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 24949 24950cat >>confdefs.h <<_ACEOF 24951#define HAVE_STRUCT_SOCKADDR_STORAGE 1 24952_ACEOF 24953 24954 24955fi 24956 24957fi 24958 24959cat >>confdefs.h <<_ACEOF 24960#define $ac_tr_hdr 1 24961_ACEOF 24962 24963fi 24964 24965 24966 24967cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 24968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 24969$as_echo_n "checking for struct addrinfo... " >&6; } 24970if eval \${ac_cv_type_$cv+:} false; then : 24971 $as_echo_n "(cached) " >&6 24972else 24973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24974/* end confdefs.h. */ 24975 24976#include <sys/types.h> 24977#if STDC_HEADERS 24978#include <stdlib.h> 24979#include <stddef.h> 24980#endif 24981 24982#include <sys/types.h> 24983#ifdef HAVE_NETDB_H 24984#include <netdb.h> 24985#endif 24986#ifdef HAVE_WS2TCPIP_H 24987#include <ws2tcpip.h> 24988#endif 24989int 24990main () 24991{ 24992struct addrinfo foo; 24993 ; 24994 return 0; 24995} 24996_ACEOF 24997if ac_fn_c_try_compile "$LINENO"; then : 24998 eval "ac_cv_type_$cv=yes" 24999else 25000 eval "ac_cv_type_$cv=no" 25001fi 25002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25003fi 25004ac_foo=`eval echo \\$ac_cv_type_$cv` 25005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25006$as_echo "$ac_foo" >&6; } 25007if test "$ac_foo" = yes; then 25008 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 25009if false; then 25010 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default" 25011if test "x$ac_cv_type_struct_addrinfo" = xyes; then : 25012 25013cat >>confdefs.h <<_ACEOF 25014#define HAVE_STRUCT_ADDRINFO 1 25015_ACEOF 25016 25017 25018fi 25019 25020fi 25021 25022cat >>confdefs.h <<_ACEOF 25023#define $ac_tr_hdr 1 25024_ACEOF 25025 25026fi 25027 25028 25029 25030cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 25031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifaddrs" >&5 25032$as_echo_n "checking for struct ifaddrs... " >&6; } 25033if eval \${ac_cv_type_$cv+:} false; then : 25034 $as_echo_n "(cached) " >&6 25035else 25036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25037/* end confdefs.h. */ 25038 25039#include <sys/types.h> 25040#if STDC_HEADERS 25041#include <stdlib.h> 25042#include <stddef.h> 25043#endif 25044#include <ifaddrs.h> 25045int 25046main () 25047{ 25048struct ifaddrs foo; 25049 ; 25050 return 0; 25051} 25052_ACEOF 25053if ac_fn_c_try_compile "$LINENO"; then : 25054 eval "ac_cv_type_$cv=yes" 25055else 25056 eval "ac_cv_type_$cv=no" 25057fi 25058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25059fi 25060ac_foo=`eval echo \\$ac_cv_type_$cv` 25061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25062$as_echo "$ac_foo" >&6; } 25063if test "$ac_foo" = yes; then 25064 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 25065if false; then 25066 ac_fn_c_check_type "$LINENO" "struct ifaddrs" "ac_cv_type_struct_ifaddrs" "$ac_includes_default" 25067if test "x$ac_cv_type_struct_ifaddrs" = xyes; then : 25068 25069cat >>confdefs.h <<_ACEOF 25070#define HAVE_STRUCT_IFADDRS 1 25071_ACEOF 25072 25073 25074fi 25075 25076fi 25077 25078cat >>confdefs.h <<_ACEOF 25079#define $ac_tr_hdr 1 25080_ACEOF 25081 25082fi 25083 25084 25085 25086cv=`echo "struct iovec" | sed 'y%./+- %__p__%'` 25087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5 25088$as_echo_n "checking for struct iovec... " >&6; } 25089if eval \${ac_cv_type_$cv+:} false; then : 25090 $as_echo_n "(cached) " >&6 25091else 25092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25093/* end confdefs.h. */ 25094 25095#include <sys/types.h> 25096#if STDC_HEADERS 25097#include <stdlib.h> 25098#include <stddef.h> 25099#endif 25100 25101#include <sys/types.h> 25102#include <sys/uio.h> 25103 25104int 25105main () 25106{ 25107struct iovec foo; 25108 ; 25109 return 0; 25110} 25111_ACEOF 25112if ac_fn_c_try_compile "$LINENO"; then : 25113 eval "ac_cv_type_$cv=yes" 25114else 25115 eval "ac_cv_type_$cv=no" 25116fi 25117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25118fi 25119ac_foo=`eval echo \\$ac_cv_type_$cv` 25120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25121$as_echo "$ac_foo" >&6; } 25122if test "$ac_foo" = yes; then 25123 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 25124if false; then 25125 ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "$ac_includes_default" 25126if test "x$ac_cv_type_struct_iovec" = xyes; then : 25127 25128cat >>confdefs.h <<_ACEOF 25129#define HAVE_STRUCT_IOVEC 1 25130_ACEOF 25131 25132 25133fi 25134 25135fi 25136 25137cat >>confdefs.h <<_ACEOF 25138#define $ac_tr_hdr 1 25139_ACEOF 25140 25141fi 25142 25143 25144 25145cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'` 25146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr" >&5 25147$as_echo_n "checking for struct msghdr... " >&6; } 25148if eval \${ac_cv_type_$cv+:} false; then : 25149 $as_echo_n "(cached) " >&6 25150else 25151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25152/* end confdefs.h. */ 25153 25154#include <sys/types.h> 25155#if STDC_HEADERS 25156#include <stdlib.h> 25157#include <stddef.h> 25158#endif 25159 25160#include <sys/types.h> 25161#ifdef HAVE_SYS_SOCKET_H 25162#include <sys/socket.h> 25163#endif 25164#ifdef HAVE_WS2TCPIP_H 25165#include <ws2tcpip.h> 25166#endif 25167int 25168main () 25169{ 25170struct msghdr foo; 25171 ; 25172 return 0; 25173} 25174_ACEOF 25175if ac_fn_c_try_compile "$LINENO"; then : 25176 eval "ac_cv_type_$cv=yes" 25177else 25178 eval "ac_cv_type_$cv=no" 25179fi 25180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25181fi 25182ac_foo=`eval echo \\$ac_cv_type_$cv` 25183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25184$as_echo "$ac_foo" >&6; } 25185if test "$ac_foo" = yes; then 25186 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 25187if false; then 25188 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "$ac_includes_default" 25189if test "x$ac_cv_type_struct_msghdr" = xyes; then : 25190 25191cat >>confdefs.h <<_ACEOF 25192#define HAVE_STRUCT_MSGHDR 1 25193_ACEOF 25194 25195 25196fi 25197 25198fi 25199 25200cat >>confdefs.h <<_ACEOF 25201#define $ac_tr_hdr 1 25202_ACEOF 25203 25204fi 25205 25206 25207 25208 25209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize" >&5 25210$as_echo_n "checking for struct winsize... " >&6; } 25211if ${ac_cv_struct_winsize+:} false; then : 25212 $as_echo_n "(cached) " >&6 25213else 25214 25215ac_cv_struct_winsize=no 25216for i in sys/termios.h sys/ioctl.h; do 25217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25218/* end confdefs.h. */ 25219#include <$i> 25220 25221_ACEOF 25222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25223 $EGREP "struct[ ]*winsize" >/dev/null 2>&1; then : 25224 ac_cv_struct_winsize=yes; break 25225fi 25226rm -f conftest* 25227done 25228 25229fi 25230 25231if test "$ac_cv_struct_winsize" = "yes"; then 25232 25233$as_echo "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h 25234 25235fi 25236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_winsize" >&5 25237$as_echo "$ac_cv_struct_winsize" >&6; } 25238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25239/* end confdefs.h. */ 25240#include <termios.h> 25241 25242_ACEOF 25243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25244 $EGREP "ws_xpixel" >/dev/null 2>&1; then : 25245 25246$as_echo "#define HAVE_WS_XPIXEL 1" >>confdefs.h 25247 25248fi 25249rm -f conftest* 25250 25251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25252/* end confdefs.h. */ 25253#include <termios.h> 25254 25255_ACEOF 25256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25257 $EGREP "ws_ypixel" >/dev/null 2>&1; then : 25258 25259$as_echo "#define HAVE_WS_YPIXEL 1" >>confdefs.h 25260 25261fi 25262rm -f conftest* 25263 25264 25265 25266 25267 25268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct spwd" >&5 25269$as_echo_n "checking for struct spwd... " >&6; } 25270if ${ac_cv_struct_spwd+:} false; then : 25271 $as_echo_n "(cached) " >&6 25272else 25273 25274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25275/* end confdefs.h. */ 25276 25277#include <pwd.h> 25278#ifdef HAVE_SHADOW_H 25279#include <shadow.h> 25280#endif 25281int 25282main () 25283{ 25284struct spwd foo; 25285 ; 25286 return 0; 25287} 25288_ACEOF 25289if ac_fn_c_try_compile "$LINENO"; then : 25290 ac_cv_struct_spwd=yes 25291else 25292 ac_cv_struct_spwd=no 25293fi 25294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25295 25296fi 25297 25298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_spwd" >&5 25299$as_echo "$ac_cv_struct_spwd" >&6; } 25300 25301if test "$ac_cv_struct_spwd" = "yes"; then 25302 25303$as_echo "#define HAVE_STRUCT_SPWD 1" >>confdefs.h 25304 25305fi 25306 25307 25308# 25309# Check if we want samba's socket wrapper 25310# 25311 25312 25313 25314# Check whether --enable-socket-wrapper was given. 25315if test "${enable_socket_wrapper+set}" = set; then : 25316 enableval=$enable_socket_wrapper; 25317fi 25318 25319 25320 if test "x$enable_socket_wrapper" = xyes; then 25321 have_socket_wrapper_TRUE= 25322 have_socket_wrapper_FALSE='#' 25323else 25324 have_socket_wrapper_TRUE='#' 25325 have_socket_wrapper_FALSE= 25326fi 25327 25328if test "x$enable_socket_wrapper" = xyes ; then 25329 25330$as_echo "#define SOCKET_WRAPPER_REPLACE 1" >>confdefs.h 25331 25332fi 25333 25334 25335 25336 25337LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 25338 25339 25340LIBADD_roken="$LIB_roken" 25341LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 25342 25343 25344# Check whether --enable-otp was given. 25345if test "${enable_otp+set}" = set; then : 25346 enableval=$enable_otp; 25347fi 25348 25349if test "$enable_otp" = yes -a "$db_type" = unknown; then 25350 as_fn_error $? "OTP requires a NDBM/DB compatible library" "$LINENO" 5 25351fi 25352if test "$enable_otp" != no; then 25353 if test "$db_type" != unknown; then 25354 enable_otp=yes 25355 else 25356 enable_otp=no 25357 fi 25358fi 25359if test "$enable_otp" = yes; then 25360 25361$as_echo "#define OTP 1" >>confdefs.h 25362 25363 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 25364 25365fi 25366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OTP library" >&5 25367$as_echo_n "checking whether to enable OTP library... " >&6; } 25368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_otp" >&5 25369$as_echo "$enable_otp" >&6; } 25370 if test "$enable_otp" = yes; then 25371 OTP_TRUE= 25372 OTP_FALSE='#' 25373else 25374 OTP_TRUE='#' 25375 OTP_FALSE= 25376fi 25377 25378 25379 25380 25381for ac_prog in mig 25382do 25383 # Extract the first word of "$ac_prog", so it can be a program name with args. 25384set dummy $ac_prog; ac_word=$2 25385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25386$as_echo_n "checking for $ac_word... " >&6; } 25387if ${ac_cv_prog_GCD_MIG+:} false; then : 25388 $as_echo_n "(cached) " >&6 25389else 25390 if test -n "$GCD_MIG"; then 25391 ac_cv_prog_GCD_MIG="$GCD_MIG" # Let the user override the test. 25392else 25393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25394for as_dir in $PATH 25395do 25396 IFS=$as_save_IFS 25397 test -z "$as_dir" && as_dir=. 25398 for ac_exec_ext in '' $ac_executable_extensions; do 25399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25400 ac_cv_prog_GCD_MIG="$ac_prog" 25401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25402 break 2 25403 fi 25404done 25405 done 25406IFS=$as_save_IFS 25407 25408fi 25409fi 25410GCD_MIG=$ac_cv_prog_GCD_MIG 25411if test -n "$GCD_MIG"; then 25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCD_MIG" >&5 25413$as_echo "$GCD_MIG" >&6; } 25414else 25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25416$as_echo "no" >&6; } 25417fi 25418 25419 25420 test -n "$GCD_MIG" && break 25421done 25422test -n "$GCD_MIG" || GCD_MIG="no" 25423 25424 25425if test "$GCD_MIG" != no; then 25426 for ac_header in dispatch/dispatch.h 25427do : 25428 ac_fn_c_check_header_mongrel "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default" 25429if test "x$ac_cv_header_dispatch_dispatch_h" = xyes; then : 25430 cat >>confdefs.h <<_ACEOF 25431#define HAVE_DISPATCH_DISPATCH_H 1 25432_ACEOF 25433 25434fi 25435 25436done 25437 25438 25439 25440 25441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dispatch_async_f" >&5 25442$as_echo_n "checking for dispatch_async_f... " >&6; } 25443if ${ac_cv_funclib_dispatch_async_f+:} false; then : 25444 $as_echo_n "(cached) " >&6 25445else 25446 25447if eval "test \"\$ac_cv_func_dispatch_async_f\" != yes" ; then 25448 ac_save_LIBS="$LIBS" 25449 for ac_lib in "" dispatch; do 25450 case "$ac_lib" in 25451 "") ;; 25452 yes) ac_lib="" ;; 25453 no) continue ;; 25454 -l*) ;; 25455 *) ac_lib="-l$ac_lib" ;; 25456 esac 25457 LIBS=" $ac_lib $ac_save_LIBS" 25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25459/* end confdefs.h. */ 25460#ifdef HAVE_DISPATCH_DISPATCH_H 25461 #include <dispatch/dispatch.h> 25462 #endif 25463int 25464main () 25465{ 25466dispatch_async_f(0,0,0) 25467 ; 25468 return 0; 25469} 25470_ACEOF 25471if ac_fn_c_try_link "$LINENO"; then : 25472 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 25473fi 25474rm -f core conftest.err conftest.$ac_objext \ 25475 conftest$ac_exeext conftest.$ac_ext 25476 done 25477 eval "ac_cv_funclib_dispatch_async_f=\${ac_cv_funclib_dispatch_async_f-no}" 25478 LIBS="$ac_save_LIBS" 25479fi 25480 25481fi 25482 25483 25484eval "ac_res=\$ac_cv_funclib_dispatch_async_f" 25485 25486if false; then 25487 for ac_func in dispatch_async_f 25488do : 25489 ac_fn_c_check_func "$LINENO" "dispatch_async_f" "ac_cv_func_dispatch_async_f" 25490if test "x$ac_cv_func_dispatch_async_f" = xyes; then : 25491 cat >>confdefs.h <<_ACEOF 25492#define HAVE_DISPATCH_ASYNC_F 1 25493_ACEOF 25494 25495fi 25496done 25497 25498fi 25499# dispatch_async_f 25500eval "ac_tr_func=HAVE_`echo dispatch_async_f | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25501eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25502eval "LIB_dispatch_async_f=$ac_res" 25503 25504case "$ac_res" in 25505 yes) 25506 eval "ac_cv_func_dispatch_async_f=yes" 25507 eval "LIB_dispatch_async_f=" 25508 cat >>confdefs.h <<_ACEOF 25509#define $ac_tr_func 1 25510_ACEOF 25511 25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25513$as_echo "yes" >&6; } 25514 ;; 25515 no) 25516 eval "ac_cv_func_dispatch_async_f=no" 25517 eval "LIB_dispatch_async_f=" 25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25519$as_echo "no" >&6; } 25520 ;; 25521 *) 25522 eval "ac_cv_func_dispatch_async_f=yes" 25523 cat >>confdefs.h <<_ACEOF 25524#define $ac_tr_func 1 25525_ACEOF 25526 25527 cat >>confdefs.h <<_ACEOF 25528#define $ac_tr_lib 1 25529_ACEOF 25530 25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 25532$as_echo "yes, in $ac_res" >&6; } 25533 ;; 25534esac 25535 25536 25537 25538 if test "$ac_cv_func_dispatch_async_f" = yes -a "$GCD_MIG" != no; then 25539 25540$as_echo "#define HAVE_GCD 1" >>confdefs.h 25541 25542 libdispatch=yes 25543 else 25544 libdispatch=no 25545 fi 25546 25547fi 25548 if test "$libdispatch" = yes -a "$GCD_MIG" != no; then 25549 have_gcd_TRUE= 25550 have_gcd_FALSE='#' 25551else 25552 have_gcd_TRUE='#' 25553 have_gcd_FALSE= 25554fi 25555 25556 25557 25558 25559 25560# Check whether --enable-osfc2 was given. 25561if test "${enable_osfc2+set}" = set; then : 25562 enableval=$enable_osfc2; 25563fi 25564 25565LIB_security= 25566if test "$enable_osfc2" = yes; then 25567 25568$as_echo "#define HAVE_OSFC2 1" >>confdefs.h 25569 25570 LIB_security=-lsecurity 25571fi 25572 25573 25574 25575# Check whether --enable-mmap was given. 25576if test "${enable_mmap+set}" = set; then : 25577 enableval=$enable_mmap; 25578fi 25579 25580if test "$enable_mmap" = "no"; then 25581 25582$as_echo "#define NO_MMAP 1" >>confdefs.h 25583 25584fi 25585 25586# Check whether --enable-afs-string-to-key was given. 25587if test "${enable_afs_string_to_key+set}" = set; then : 25588 enableval=$enable_afs_string_to_key; 25589else 25590 enable_afs_string_to_key=yes 25591fi 25592 25593 25594if test "$enable_afs_string_to_key" = "yes"; then 25595 25596$as_echo "#define ENABLE_AFS_STRING_TO_KEY 1" >>confdefs.h 25597 25598 ENABLE_AFS_STRING_TO_KEY=1 25599fi 25600 25601 25602# Extract the first word of "nroff", so it can be a program name with args. 25603set dummy nroff; ac_word=$2 25604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25605$as_echo_n "checking for $ac_word... " >&6; } 25606if ${ac_cv_path_NROFF+:} false; then : 25607 $as_echo_n "(cached) " >&6 25608else 25609 case $NROFF in 25610 [\\/]* | ?:[\\/]*) 25611 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 25612 ;; 25613 *) 25614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25615for as_dir in $PATH 25616do 25617 IFS=$as_save_IFS 25618 test -z "$as_dir" && as_dir=. 25619 for ac_exec_ext in '' $ac_executable_extensions; do 25620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25621 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 25622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25623 break 2 25624 fi 25625done 25626 done 25627IFS=$as_save_IFS 25628 25629 ;; 25630esac 25631fi 25632NROFF=$ac_cv_path_NROFF 25633if test -n "$NROFF"; then 25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 25635$as_echo "$NROFF" >&6; } 25636else 25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25638$as_echo "no" >&6; } 25639fi 25640 25641 25642# Extract the first word of "groff", so it can be a program name with args. 25643set dummy groff; ac_word=$2 25644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25645$as_echo_n "checking for $ac_word... " >&6; } 25646if ${ac_cv_path_GROFF+:} false; then : 25647 $as_echo_n "(cached) " >&6 25648else 25649 case $GROFF in 25650 [\\/]* | ?:[\\/]*) 25651 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 25652 ;; 25653 *) 25654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25655for as_dir in $PATH 25656do 25657 IFS=$as_save_IFS 25658 test -z "$as_dir" && as_dir=. 25659 for ac_exec_ext in '' $ac_executable_extensions; do 25660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25661 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 25662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25663 break 2 25664 fi 25665done 25666 done 25667IFS=$as_save_IFS 25668 25669 ;; 25670esac 25671fi 25672GROFF=$ac_cv_path_GROFF 25673if test -n "$GROFF"; then 25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 25675$as_echo "$GROFF" >&6; } 25676else 25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25678$as_echo "no" >&6; } 25679fi 25680 25681 25682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to format man pages" >&5 25683$as_echo_n "checking how to format man pages... " >&6; } 25684if ${ac_cv_sys_man_format+:} false; then : 25685 $as_echo_n "(cached) " >&6 25686else 25687 cat > conftest.1 << END 25688.Dd January 1, 1970 25689.Dt CONFTEST 1 25690.Sh NAME 25691.Nm conftest 25692.Nd foobar 25693END 25694 25695if test "$NROFF" ; then 25696 for i in "-mdoc" "-mandoc"; do 25697 if "$NROFF" $i conftest.1 2> /dev/null | \ 25698 grep Jan > /dev/null 2>&1 ; then 25699 ac_cv_sys_man_format="$NROFF $i" 25700 break 25701 fi 25702 done 25703fi 25704if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 25705 for i in "-mdoc" "-mandoc"; do 25706 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 25707 grep Jan > /dev/null 2>&1 ; then 25708 ac_cv_sys_man_format="$GROFF -Tascii $i" 25709 break 25710 fi 25711 done 25712fi 25713if test "$ac_cv_sys_man_format"; then 25714 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 25715fi 25716 25717fi 25718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_man_format" >&5 25719$as_echo "$ac_cv_sys_man_format" >&6; } 25720if test "$ac_cv_sys_man_format"; then 25721 CATMAN="$ac_cv_sys_man_format" 25722 25723fi 25724 if test "$CATMAN"; then 25725 CATMAN_TRUE= 25726 CATMAN_FALSE='#' 25727else 25728 CATMAN_TRUE='#' 25729 CATMAN_FALSE= 25730fi 25731 25732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking extension of pre-formatted manual pages" >&5 25733$as_echo_n "checking extension of pre-formatted manual pages... " >&6; } 25734if ${ac_cv_sys_catman_ext+:} false; then : 25735 $as_echo_n "(cached) " >&6 25736else 25737 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 25738 ac_cv_sys_catman_ext=0 25739else 25740 ac_cv_sys_catman_ext=number 25741fi 25742 25743fi 25744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_catman_ext" >&5 25745$as_echo "$ac_cv_sys_catman_ext" >&6; } 25746if test "$ac_cv_sys_catman_ext" = number; then 25747 CATMANEXT='$$section' 25748else 25749 CATMANEXT=0 25750fi 25751 25752 25753 25754 25755 25756# Check whether --with-readline was given. 25757if test "${with_readline+set}" = set; then : 25758 withval=$with_readline; 25759fi 25760 25761 25762# Check whether --with-readline-lib was given. 25763if test "${with_readline_lib+set}" = set; then : 25764 withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 25765 as_fn_error $? "No argument for --with-readline-lib" "$LINENO" 5 25766elif test "X$with_readline" = "X"; then 25767 with_readline=yes 25768fi 25769fi 25770 25771 25772# Check whether --with-readline-include was given. 25773if test "${with_readline_include+set}" = set; then : 25774 withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then 25775 as_fn_error $? "No argument for --with-readline-include" "$LINENO" 5 25776elif test "X$with_readline" = "X"; then 25777 with_readline=yes 25778fi 25779fi 25780 25781 25782# Check whether --with-readline-config was given. 25783if test "${with_readline_config+set}" = set; then : 25784 withval=$with_readline_config; 25785fi 25786 25787 25788 25789 25790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 25791$as_echo_n "checking for readline... " >&6; } 25792 25793case "$with_readline" in 25794yes|"") d='' ;; 25795no) d= ;; 25796*) d="$with_readline" ;; 25797esac 25798 25799header_dirs= 25800lib_dirs= 25801for i in $d; do 25802 if test "$with_readline_include" = ""; then 25803 if test -d "$i/include/readline"; then 25804 header_dirs="$header_dirs $i/include/readline" 25805 fi 25806 if test -d "$i/include"; then 25807 header_dirs="$header_dirs $i/include" 25808 fi 25809 fi 25810 if test "$with_readline_lib" = ""; then 25811 if test -d "$i/lib$abilibdirext"; then 25812 lib_dirs="$lib_dirs $i/lib$abilibdirext" 25813 fi 25814 fi 25815done 25816 25817if test "$with_readline_include"; then 25818 header_dirs="$with_readline_include $header_dirs" 25819fi 25820if test "$with_readline_lib"; then 25821 lib_dirs="$with_readline_lib $lib_dirs" 25822fi 25823 25824if test "$with_readline_config" = ""; then 25825 with_readline_config='' 25826fi 25827 25828readline_cflags= 25829readline_libs= 25830 25831case "$with_readline_config" in 25832yes|no|""|"") 25833 if test -f $with_readline/bin/ ; then 25834 with_readline_config=$with_readline/bin/ 25835 fi 25836 ;; 25837esac 25838 25839case "$with_readline_config" in 25840yes|no|"") 25841 ;; 25842*) 25843 readline_cflags="`$with_readline_config --cflags 2>&1`" 25844 readline_libs="`$with_readline_config --libs 2>&1`" 25845 ;; 25846esac 25847 25848found=no 25849if test "$with_readline" != no; then 25850 save_CFLAGS="$CFLAGS" 25851 save_LIBS="$LIBS" 25852 if test "$readline_cflags" -a "$readline_libs"; then 25853 CFLAGS="$readline_cflags $save_CFLAGS" 25854 LIBS="$readline_libs $save_LIBS" 25855 for ac_header in readline.h readline/readline.h 25856do : 25857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25858ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25859if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25860 cat >>confdefs.h <<_ACEOF 25861#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25862_ACEOF 25863 25864fi 25865 25866done 25867 25868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25869/* end confdefs.h. */ 25870#include <stdio.h> 25871#if defined(HAVE_READLINE_READLINE_H) 25872#include <readline/readline.h> 25873#elif defined(HAVE_READLINE_H) 25874#include <readline.h> 25875#endif 25876 25877int 25878main () 25879{ 25880 25881 ; 25882 return 0; 25883} 25884_ACEOF 25885if ac_fn_c_try_link "$LINENO"; then : 25886 25887 INCLUDE_readline="$readline_cflags" 25888 LIB_readline="$readline_libs" 25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_readline_config" >&5 25890$as_echo "from $with_readline_config" >&6; } 25891 found=yes 25892fi 25893rm -f core conftest.err conftest.$ac_objext \ 25894 conftest$ac_exeext conftest.$ac_ext 25895 fi 25896 if test "$found" = no; then 25897 ires= lres= 25898 for i in $header_dirs; do 25899 CFLAGS="-I$i $save_CFLAGS" 25900 for ac_header in readline.h readline/readline.h 25901do : 25902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25903ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25905 cat >>confdefs.h <<_ACEOF 25906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25907_ACEOF 25908 25909fi 25910 25911done 25912 25913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25914/* end confdefs.h. */ 25915#include <stdio.h> 25916#if defined(HAVE_READLINE_READLINE_H) 25917#include <readline/readline.h> 25918#elif defined(HAVE_READLINE_H) 25919#include <readline.h> 25920#endif 25921 25922int 25923main () 25924{ 25925 25926 ; 25927 return 0; 25928} 25929_ACEOF 25930if ac_fn_c_try_compile "$LINENO"; then : 25931 ires=$i;break 25932fi 25933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25934 done 25935 for i in $lib_dirs; do 25936 LIBS="-L$i -lreadline $save_LIBS" 25937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25938/* end confdefs.h. */ 25939#include <stdio.h> 25940#if defined(HAVE_READLINE_READLINE_H) 25941#include <readline/readline.h> 25942#elif defined(HAVE_READLINE_H) 25943#include <readline.h> 25944#endif 25945 25946int 25947main () 25948{ 25949 25950 ; 25951 return 0; 25952} 25953_ACEOF 25954if ac_fn_c_try_link "$LINENO"; then : 25955 lres=$i;break 25956fi 25957rm -f core conftest.err conftest.$ac_objext \ 25958 conftest$ac_exeext conftest.$ac_ext 25959 done 25960 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 25961 INCLUDE_readline="-I$ires" 25962 LIB_readline="-L$lres -lreadline " 25963 found=yes 25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 25965$as_echo "headers $ires, libraries $lres" >&6; } 25966 fi 25967 fi 25968 CFLAGS="$save_CFLAGS" 25969 LIBS="$save_LIBS" 25970fi 25971 25972if test "$found" = yes; then 25973 25974cat >>confdefs.h <<_ACEOF 25975#define READLINE 1 25976_ACEOF 25977 25978 with_readline=yes 25979else 25980 with_readline=no 25981 INCLUDE_readline= 25982 LIB_readline= 25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25984$as_echo "no" >&6; } 25985fi 25986 25987 25988 25989 25990 25991 25992 25993# Check whether --with-libedit was given. 25994if test "${with_libedit+set}" = set; then : 25995 withval=$with_libedit; 25996fi 25997 25998 25999# Check whether --with-libedit-lib was given. 26000if test "${with_libedit_lib+set}" = set; then : 26001 withval=$with_libedit_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 26002 as_fn_error $? "No argument for --with-libedit-lib" "$LINENO" 5 26003elif test "X$with_libedit" = "X"; then 26004 with_libedit=yes 26005fi 26006fi 26007 26008 26009# Check whether --with-libedit-include was given. 26010if test "${with_libedit_include+set}" = set; then : 26011 withval=$with_libedit_include; if test "$withval" = "yes" -o "$withval" = "no"; then 26012 as_fn_error $? "No argument for --with-libedit-include" "$LINENO" 5 26013elif test "X$with_libedit" = "X"; then 26014 with_libedit=yes 26015fi 26016fi 26017 26018 26019# Check whether --with-libedit-config was given. 26020if test "${with_libedit_config+set}" = set; then : 26021 withval=$with_libedit_config; 26022fi 26023 26024 26025 26026 26027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 26028$as_echo_n "checking for libedit... " >&6; } 26029 26030case "$with_libedit" in 26031yes|"") d='' ;; 26032no) d= ;; 26033*) d="$with_libedit" ;; 26034esac 26035 26036header_dirs= 26037lib_dirs= 26038for i in $d; do 26039 if test "$with_libedit_include" = ""; then 26040 if test -d "$i/include/libedit"; then 26041 header_dirs="$header_dirs $i/include/libedit" 26042 fi 26043 if test -d "$i/include"; then 26044 header_dirs="$header_dirs $i/include" 26045 fi 26046 fi 26047 if test "$with_libedit_lib" = ""; then 26048 if test -d "$i/lib$abilibdirext"; then 26049 lib_dirs="$lib_dirs $i/lib$abilibdirext" 26050 fi 26051 fi 26052done 26053 26054if test "$with_libedit_include"; then 26055 header_dirs="$with_libedit_include $header_dirs" 26056fi 26057if test "$with_libedit_lib"; then 26058 lib_dirs="$with_libedit_lib $lib_dirs" 26059fi 26060 26061if test "$with_libedit_config" = ""; then 26062 with_libedit_config='' 26063fi 26064 26065libedit_cflags= 26066libedit_libs= 26067 26068case "$with_libedit_config" in 26069yes|no|""|"") 26070 if test -f $with_libedit/bin/ ; then 26071 with_libedit_config=$with_libedit/bin/ 26072 fi 26073 ;; 26074esac 26075 26076case "$with_libedit_config" in 26077yes|no|"") 26078 ;; 26079*) 26080 libedit_cflags="`$with_libedit_config --cflags 2>&1`" 26081 libedit_libs="`$with_libedit_config --libs 2>&1`" 26082 ;; 26083esac 26084 26085found=no 26086if test "$with_libedit" != no; then 26087 save_CFLAGS="$CFLAGS" 26088 save_LIBS="$LIBS" 26089 if test "$libedit_cflags" -a "$libedit_libs"; then 26090 CFLAGS="$libedit_cflags $save_CFLAGS" 26091 LIBS="$libedit_libs $save_LIBS" 26092 for ac_header in readline.h readline/readline.h editline/readline.h 26093do : 26094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26095ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26096if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26097 cat >>confdefs.h <<_ACEOF 26098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26099_ACEOF 26100 26101fi 26102 26103done 26104 26105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26106/* end confdefs.h. */ 26107#include <stdio.h> 26108#if defined(HAVE_READLINE_READLINE_H) 26109#include <readline/readline.h> 26110#elif defined(HAVE_READLINE_H) 26111#include <readline.h> 26112#elif defined(HAVE_EDITLINE_READLINE_H) 26113#include <editline/readline.h> 26114#endif 26115 26116int 26117main () 26118{ 26119 26120 ; 26121 return 0; 26122} 26123_ACEOF 26124if ac_fn_c_try_link "$LINENO"; then : 26125 26126 INCLUDE_libedit="$libedit_cflags" 26127 LIB_libedit="$libedit_libs" 26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libedit_config" >&5 26129$as_echo "from $with_libedit_config" >&6; } 26130 found=yes 26131fi 26132rm -f core conftest.err conftest.$ac_objext \ 26133 conftest$ac_exeext conftest.$ac_ext 26134 fi 26135 if test "$found" = no; then 26136 ires= lres= 26137 for i in $header_dirs; do 26138 CFLAGS="-I$i $save_CFLAGS" 26139 for ac_header in readline.h readline/readline.h editline/readline.h 26140do : 26141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26142ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26144 cat >>confdefs.h <<_ACEOF 26145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26146_ACEOF 26147 26148fi 26149 26150done 26151 26152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26153/* end confdefs.h. */ 26154#include <stdio.h> 26155#if defined(HAVE_READLINE_READLINE_H) 26156#include <readline/readline.h> 26157#elif defined(HAVE_READLINE_H) 26158#include <readline.h> 26159#elif defined(HAVE_EDITLINE_READLINE_H) 26160#include <editline/readline.h> 26161#endif 26162 26163int 26164main () 26165{ 26166 26167 ; 26168 return 0; 26169} 26170_ACEOF 26171if ac_fn_c_try_compile "$LINENO"; then : 26172 ires=$i;break 26173fi 26174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26175 done 26176 for i in $lib_dirs; do 26177 LIBS="-L$i -ledit $save_LIBS" 26178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26179/* end confdefs.h. */ 26180#include <stdio.h> 26181#if defined(HAVE_READLINE_READLINE_H) 26182#include <readline/readline.h> 26183#elif defined(HAVE_READLINE_H) 26184#include <readline.h> 26185#elif defined(HAVE_EDITLINE_READLINE_H) 26186#include <editline/readline.h> 26187#endif 26188 26189int 26190main () 26191{ 26192 26193 ; 26194 return 0; 26195} 26196_ACEOF 26197if ac_fn_c_try_link "$LINENO"; then : 26198 lres=$i;break 26199fi 26200rm -f core conftest.err conftest.$ac_objext \ 26201 conftest$ac_exeext conftest.$ac_ext 26202 done 26203 if test "$ires" -a "$lres" -a "$with_libedit" != "no"; then 26204 INCLUDE_libedit="-I$ires" 26205 LIB_libedit="-L$lres -ledit " 26206 found=yes 26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 26208$as_echo "headers $ires, libraries $lres" >&6; } 26209 fi 26210 fi 26211 CFLAGS="$save_CFLAGS" 26212 LIBS="$save_LIBS" 26213fi 26214 26215if test "$found" = yes; then 26216 26217cat >>confdefs.h <<_ACEOF 26218#define LIBEDIT 1 26219_ACEOF 26220 26221 with_libedit=yes 26222else 26223 with_libedit=no 26224 INCLUDE_libedit= 26225 LIB_libedit= 26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26227$as_echo "no" >&6; } 26228fi 26229 26230 26231 26232 26233 26234 26235 26236subdirs="$subdirs lib/libedit" 26237 26238 26239 26240# Check whether --enable-bigendian was given. 26241if test "${enable_bigendian+set}" = set; then : 26242 enableval=$enable_bigendian; krb_cv_c_bigendian=yes 26243fi 26244 26245# Check whether --enable-littleendian was given. 26246if test "${enable_littleendian+set}" = set; then : 26247 enableval=$enable_littleendian; krb_cv_c_bigendian=no 26248fi 26249 26250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte order is known at compile time" >&5 26251$as_echo_n "checking whether byte order is known at compile time... " >&6; } 26252if ${krb_cv_c_bigendian_compile+:} false; then : 26253 $as_echo_n "(cached) " >&6 26254else 26255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26256/* end confdefs.h. */ 26257 26258#include <sys/types.h> 26259#include <sys/param.h> 26260#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 26261 bogus endian macros 26262#endif 26263_ACEOF 26264if ac_fn_c_try_compile "$LINENO"; then : 26265 krb_cv_c_bigendian_compile=yes 26266else 26267 krb_cv_c_bigendian_compile=no 26268fi 26269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26270fi 26271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian_compile" >&5 26272$as_echo "$krb_cv_c_bigendian_compile" >&6; } 26273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 26274$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 26275if ${krb_cv_c_bigendian+:} false; then : 26276 $as_echo_n "(cached) " >&6 26277else 26278 26279 if test "$krb_cv_c_bigendian_compile" = "yes"; then 26280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26281/* end confdefs.h. */ 26282 26283#include <sys/types.h> 26284#include <sys/param.h> 26285#if BYTE_ORDER != BIG_ENDIAN 26286 not big endian 26287#endif 26288_ACEOF 26289if ac_fn_c_try_compile "$LINENO"; then : 26290 krb_cv_c_bigendian=yes 26291else 26292 krb_cv_c_bigendian=no 26293fi 26294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26295 else 26296 if test "$cross_compiling" = yes; then : 26297 as_fn_error $? "specify either --enable-bigendian or --enable-littleendian" "$LINENO" 5 26298else 26299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26300/* end confdefs.h. */ 26301main (int argc, char **argv) { 26302 /* Are we little or big endian? From Harbison&Steele. */ 26303 union 26304 { 26305 long l; 26306 char c[sizeof (long)]; 26307 } u; 26308 u.l = 1; 26309 exit (u.c[sizeof (long) - 1] == 1); 26310 } 26311_ACEOF 26312if ac_fn_c_try_run "$LINENO"; then : 26313 krb_cv_c_bigendian=no 26314else 26315 krb_cv_c_bigendian=yes 26316fi 26317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26318 conftest.$ac_objext conftest.beam conftest.$ac_ext 26319fi 26320 26321 fi 26322 26323fi 26324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian" >&5 26325$as_echo "$krb_cv_c_bigendian" >&6; } 26326if test "$krb_cv_c_bigendian" = "yes"; then 26327 26328$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 26329fi 26330if test "$krb_cv_c_bigendian_compile" = "yes"; then 26331 26332$as_echo "#define ENDIANESS_IN_SYS_PARAM_H 1" >>confdefs.h 26333fi 26334 26335 26336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 26337$as_echo_n "checking for inline... " >&6; } 26338if ${ac_cv_c_inline+:} false; then : 26339 $as_echo_n "(cached) " >&6 26340else 26341 ac_cv_c_inline=no 26342for ac_kw in inline __inline__ __inline; do 26343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26344/* end confdefs.h. */ 26345#ifndef __cplusplus 26346typedef int foo_t; 26347static $ac_kw foo_t static_foo () {return 0; } 26348$ac_kw foo_t foo () {return 0; } 26349#endif 26350 26351_ACEOF 26352if ac_fn_c_try_compile "$LINENO"; then : 26353 ac_cv_c_inline=$ac_kw 26354fi 26355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26356 test "$ac_cv_c_inline" != no && break 26357done 26358 26359fi 26360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 26361$as_echo "$ac_cv_c_inline" >&6; } 26362 26363case $ac_cv_c_inline in 26364 inline | yes) ;; 26365 *) 26366 case $ac_cv_c_inline in 26367 no) ac_val=;; 26368 *) ac_val=$ac_cv_c_inline;; 26369 esac 26370 cat >>confdefs.h <<_ACEOF 26371#ifndef __cplusplus 26372#define inline $ac_val 26373#endif 26374_ACEOF 26375 ;; 26376esac 26377 26378 26379 26380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 26381$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 26382if ${ac_cv_c_const+:} false; then : 26383 $as_echo_n "(cached) " >&6 26384else 26385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26386/* end confdefs.h. */ 26387 26388int 26389main () 26390{ 26391 26392#ifndef __cplusplus 26393 /* Ultrix mips cc rejects this sort of thing. */ 26394 typedef int charset[2]; 26395 const charset cs = { 0, 0 }; 26396 /* SunOS 4.1.1 cc rejects this. */ 26397 char const *const *pcpcc; 26398 char **ppc; 26399 /* NEC SVR4.0.2 mips cc rejects this. */ 26400 struct point {int x, y;}; 26401 static struct point const zero = {0,0}; 26402 /* AIX XL C 1.02.0.0 rejects this. 26403 It does not let you subtract one const X* pointer from another in 26404 an arm of an if-expression whose if-part is not a constant 26405 expression */ 26406 const char *g = "string"; 26407 pcpcc = &g + (g ? g-g : 0); 26408 /* HPUX 7.0 cc rejects these. */ 26409 ++pcpcc; 26410 ppc = (char**) pcpcc; 26411 pcpcc = (char const *const *) ppc; 26412 { /* SCO 3.2v4 cc rejects this sort of thing. */ 26413 char tx; 26414 char *t = &tx; 26415 char const *s = 0 ? (char *) 0 : (char const *) 0; 26416 26417 *t++ = 0; 26418 if (s) return 0; 26419 } 26420 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 26421 int x[] = {25, 17}; 26422 const int *foo = &x[0]; 26423 ++foo; 26424 } 26425 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 26426 typedef const int *iptr; 26427 iptr p = 0; 26428 ++p; 26429 } 26430 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 26431 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 26432 struct s { int j; const int *ap[3]; } bx; 26433 struct s *b = &bx; b->j = 5; 26434 } 26435 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 26436 const int foo = 10; 26437 if (!foo) return 0; 26438 } 26439 return !cs[0] && !zero.x; 26440#endif 26441 26442 ; 26443 return 0; 26444} 26445_ACEOF 26446if ac_fn_c_try_compile "$LINENO"; then : 26447 ac_cv_c_const=yes 26448else 26449 ac_cv_c_const=no 26450fi 26451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26452fi 26453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 26454$as_echo "$ac_cv_c_const" >&6; } 26455if test $ac_cv_c_const = no; then 26456 26457$as_echo "#define const /**/" >>confdefs.h 26458 26459fi 26460 26461ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 26462if test "x$ac_cv_type_off_t" = xyes; then : 26463 26464else 26465 26466cat >>confdefs.h <<_ACEOF 26467#define off_t long int 26468_ACEOF 26469 26470fi 26471 26472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 26473$as_echo_n "checking for mode_t... " >&6; } 26474if ${ac_cv_type_mode_t+:} false; then : 26475 $as_echo_n "(cached) " >&6 26476else 26477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26478/* end confdefs.h. */ 26479#include <sys/types.h> 26480#if STDC_HEADERS 26481#include <stdlib.h> 26482#include <stddef.h> 26483#endif 26484 26485_ACEOF 26486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26487 $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 26488 ac_cv_type_mode_t=yes 26489else 26490 ac_cv_type_mode_t=no 26491fi 26492rm -f conftest* 26493 26494fi 26495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mode_t" >&5 26496$as_echo "$ac_cv_type_mode_t" >&6; } 26497if test $ac_cv_type_mode_t = no; then 26498 26499$as_echo "#define mode_t unsigned short" >>confdefs.h 26500 26501fi 26502 26503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 26504$as_echo_n "checking for sig_atomic_t... " >&6; } 26505if ${ac_cv_type_sig_atomic_t+:} false; then : 26506 $as_echo_n "(cached) " >&6 26507else 26508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26509/* end confdefs.h. */ 26510#include <sys/types.h> 26511#if STDC_HEADERS 26512#include <stdlib.h> 26513#include <stddef.h> 26514#endif 26515#include <signal.h> 26516_ACEOF 26517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26518 $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 26519 ac_cv_type_sig_atomic_t=yes 26520else 26521 ac_cv_type_sig_atomic_t=no 26522fi 26523rm -f conftest* 26524 26525fi 26526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 26527$as_echo "$ac_cv_type_sig_atomic_t" >&6; } 26528if test $ac_cv_type_sig_atomic_t = no; then 26529 26530$as_echo "#define sig_atomic_t int" >>confdefs.h 26531 26532fi 26533 26534 26535 26536cv=`echo "long long" | sed 'y%./+- %__p__%'` 26537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 26538$as_echo_n "checking for long long... " >&6; } 26539if eval \${ac_cv_type_$cv+:} false; then : 26540 $as_echo_n "(cached) " >&6 26541else 26542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26543/* end confdefs.h. */ 26544 26545#include <sys/types.h> 26546#if STDC_HEADERS 26547#include <stdlib.h> 26548#include <stddef.h> 26549#endif 26550 26551int 26552main () 26553{ 26554long long foo; 26555 ; 26556 return 0; 26557} 26558_ACEOF 26559if ac_fn_c_try_compile "$LINENO"; then : 26560 eval "ac_cv_type_$cv=yes" 26561else 26562 eval "ac_cv_type_$cv=no" 26563fi 26564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26565fi 26566ac_foo=`eval echo \\$ac_cv_type_$cv` 26567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26568$as_echo "$ac_foo" >&6; } 26569if test "$ac_foo" = yes; then 26570 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26571if false; then 26572 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 26573if test "x$ac_cv_type_long_long" = xyes; then : 26574 26575cat >>confdefs.h <<_ACEOF 26576#define HAVE_LONG_LONG 1 26577_ACEOF 26578 26579 26580fi 26581 26582fi 26583 26584cat >>confdefs.h <<_ACEOF 26585#define $ac_tr_hdr 1 26586_ACEOF 26587 26588fi 26589 26590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 26591$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 26592if ${ac_cv_header_time+:} false; then : 26593 $as_echo_n "(cached) " >&6 26594else 26595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26596/* end confdefs.h. */ 26597#include <sys/types.h> 26598#include <sys/time.h> 26599#include <time.h> 26600 26601int 26602main () 26603{ 26604if ((struct tm *) 0) 26605return 0; 26606 ; 26607 return 0; 26608} 26609_ACEOF 26610if ac_fn_c_try_compile "$LINENO"; then : 26611 ac_cv_header_time=yes 26612else 26613 ac_cv_header_time=no 26614fi 26615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26616fi 26617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 26618$as_echo "$ac_cv_header_time" >&6; } 26619if test $ac_cv_header_time = yes; then 26620 26621$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 26622 26623fi 26624 26625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 26626$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 26627if ${ac_cv_struct_tm+:} false; then : 26628 $as_echo_n "(cached) " >&6 26629else 26630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26631/* end confdefs.h. */ 26632#include <sys/types.h> 26633#include <time.h> 26634 26635int 26636main () 26637{ 26638struct tm tm; 26639 int *p = &tm.tm_sec; 26640 return !p; 26641 ; 26642 return 0; 26643} 26644_ACEOF 26645if ac_fn_c_try_compile "$LINENO"; then : 26646 ac_cv_struct_tm=time.h 26647else 26648 ac_cv_struct_tm=sys/time.h 26649fi 26650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26651fi 26652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 26653$as_echo "$ac_cv_struct_tm" >&6; } 26654if test $ac_cv_struct_tm = sys/time.h; then 26655 26656$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 26657 26658fi 26659 26660 26661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 26662$as_echo_n "checking for ANSI C header files... " >&6; } 26663if ${ac_cv_header_stdc+:} false; then : 26664 $as_echo_n "(cached) " >&6 26665else 26666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26667/* end confdefs.h. */ 26668#include <stdlib.h> 26669#include <stdarg.h> 26670#include <string.h> 26671#include <float.h> 26672 26673int 26674main () 26675{ 26676 26677 ; 26678 return 0; 26679} 26680_ACEOF 26681if ac_fn_c_try_compile "$LINENO"; then : 26682 ac_cv_header_stdc=yes 26683else 26684 ac_cv_header_stdc=no 26685fi 26686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26687 26688if test $ac_cv_header_stdc = yes; then 26689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 26690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26691/* end confdefs.h. */ 26692#include <string.h> 26693 26694_ACEOF 26695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26696 $EGREP "memchr" >/dev/null 2>&1; then : 26697 26698else 26699 ac_cv_header_stdc=no 26700fi 26701rm -f conftest* 26702 26703fi 26704 26705if test $ac_cv_header_stdc = yes; then 26706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 26707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26708/* end confdefs.h. */ 26709#include <stdlib.h> 26710 26711_ACEOF 26712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26713 $EGREP "free" >/dev/null 2>&1; then : 26714 26715else 26716 ac_cv_header_stdc=no 26717fi 26718rm -f conftest* 26719 26720fi 26721 26722if test $ac_cv_header_stdc = yes; then 26723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 26724 if test "$cross_compiling" = yes; then : 26725 : 26726else 26727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26728/* end confdefs.h. */ 26729#include <ctype.h> 26730#include <stdlib.h> 26731#if ((' ' & 0x0FF) == 0x020) 26732# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 26733# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 26734#else 26735# define ISLOWER(c) \ 26736 (('a' <= (c) && (c) <= 'i') \ 26737 || ('j' <= (c) && (c) <= 'r') \ 26738 || ('s' <= (c) && (c) <= 'z')) 26739# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 26740#endif 26741 26742#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 26743int 26744main () 26745{ 26746 int i; 26747 for (i = 0; i < 256; i++) 26748 if (XOR (islower (i), ISLOWER (i)) 26749 || toupper (i) != TOUPPER (i)) 26750 return 2; 26751 return 0; 26752} 26753_ACEOF 26754if ac_fn_c_try_run "$LINENO"; then : 26755 26756else 26757 ac_cv_header_stdc=no 26758fi 26759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26760 conftest.$ac_objext conftest.beam conftest.$ac_ext 26761fi 26762 26763fi 26764fi 26765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 26766$as_echo "$ac_cv_header_stdc" >&6; } 26767if test $ac_cv_header_stdc = yes; then 26768 26769$as_echo "#define STDC_HEADERS 1" >>confdefs.h 26770 26771fi 26772 26773 26774for ac_header in \ 26775 CommonCrypto/CommonDigest.h \ 26776 CommonCrypto/CommonCryptor.h \ 26777 arpa/telnet.h \ 26778 bind/bitypes.h \ 26779 bsdsetjmp.h \ 26780 curses.h \ 26781 dlfcn.h \ 26782 execinfo.h \ 26783 fnmatch.h \ 26784 inttypes.h \ 26785 io.h \ 26786 libutil.h \ 26787 limits.h \ 26788 maillock.h \ 26789 netgroup.h \ 26790 netinet/in6_machtypes.h \ 26791 pthread.h \ 26792 pty.h \ 26793 sac.h \ 26794 sgtty.h \ 26795 siad.h \ 26796 signal.h \ 26797 strings.h \ 26798 stropts.h \ 26799 sys/bitypes.h \ 26800 sys/category.h \ 26801 sys/file.h \ 26802 sys/filio.h \ 26803 sys/ioccom.h \ 26804 sys/mman.h \ 26805 sys/param.h \ 26806 sys/pty.h \ 26807 sys/ptyio.h \ 26808 sys/select.h \ 26809 sys/socket.h \ 26810 sys/str_tty.h \ 26811 sys/stream.h \ 26812 sys/stropts.h \ 26813 sys/syscall.h \ 26814 sys/termio.h \ 26815 sys/timeb.h \ 26816 sys/times.h \ 26817 sys/types.h \ 26818 sys/un.h \ 26819 locale.h \ 26820 termcap.h \ 26821 termio.h \ 26822 termios.h \ 26823 time.h \ 26824 tmpdir.h \ 26825 udb.h \ 26826 util.h \ 26827 26828do : 26829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26830ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26831if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26832 cat >>confdefs.h <<_ACEOF 26833#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26834_ACEOF 26835 26836fi 26837 26838done 26839 26840 26841for ac_header in term.h 26842do : 26843 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 26844if test "x$ac_cv_header_term_h" = xyes; then : 26845 cat >>confdefs.h <<_ACEOF 26846#define HAVE_TERM_H 1 26847_ACEOF 26848 26849fi 26850 26851done 26852 26853 26854for ac_header in asl.h 26855do : 26856 ac_fn_c_check_header_compile "$LINENO" "asl.h" "ac_cv_header_asl_h" " 26857#include <asl.h> 26858#ifndef ASL_STRING_EMERG 26859#error ASL_STRING_EMERG missing 26860#endif 26861" 26862if test "x$ac_cv_header_asl_h" = xyes; then : 26863 cat >>confdefs.h <<_ACEOF 26864#define HAVE_ASL_H 1 26865_ACEOF 26866 26867fi 26868 26869done 26870 26871 26872for ac_header in net/if.h 26873do : 26874 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 26875#if HAVE_SYS_SOCKET_H 26876#include <sys/socket.h> 26877#endif 26878" 26879if test "x$ac_cv_header_net_if_h" = xyes; then : 26880 cat >>confdefs.h <<_ACEOF 26881#define HAVE_NET_IF_H 1 26882_ACEOF 26883 26884fi 26885 26886done 26887 26888 26889for ac_header in sys/ptyvar.h 26890do : 26891 ac_fn_c_check_header_compile "$LINENO" "sys/ptyvar.h" "ac_cv_header_sys_ptyvar_h" "$ac_includes_default 26892#if HAVE_SYS_TTY_H 26893#include <sys/tty.h> 26894#endif 26895" 26896if test "x$ac_cv_header_sys_ptyvar_h" = xyes; then : 26897 cat >>confdefs.h <<_ACEOF 26898#define HAVE_SYS_PTYVAR_H 1 26899_ACEOF 26900 26901fi 26902 26903done 26904 26905 26906for ac_header in sys/strtty.h 26907do : 26908 ac_fn_c_check_header_compile "$LINENO" "sys/strtty.h" "ac_cv_header_sys_strtty_h" "$ac_includes_default 26909#if HAVE_TERMIOS_H 26910#include <termios.h> 26911#endif 26912#if HAVE_SYS_STREAM_H 26913#include <sys/stream.h> 26914#endif 26915" 26916if test "x$ac_cv_header_sys_strtty_h" = xyes; then : 26917 cat >>confdefs.h <<_ACEOF 26918#define HAVE_SYS_STRTTY_H 1 26919_ACEOF 26920 26921fi 26922 26923done 26924 26925 26926for ac_header in sys/ucred.h 26927do : 26928 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default 26929#if HAVE_SYS_TYPES_H 26930#include <sys/types.h> 26931#endif 26932#if HAVE_SYS_PARAM_H 26933#include <sys/param.h> 26934#endif 26935" 26936if test "x$ac_cv_header_sys_ucred_h" = xyes; then : 26937 cat >>confdefs.h <<_ACEOF 26938#define HAVE_SYS_UCRED_H 1 26939_ACEOF 26940 26941fi 26942 26943done 26944 26945 26946for ac_header in security/pam_modules.h 26947do : 26948 ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default 26949#include <security/pam_appl.h> 26950 26951" 26952if test "x$ac_cv_header_security_pam_modules_h" = xyes; then : 26953 cat >>confdefs.h <<_ACEOF 26954#define HAVE_SECURITY_PAM_MODULES_H 1 26955_ACEOF 26956 26957fi 26958 26959done 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logwtmp" >&5 26971$as_echo_n "checking for logwtmp... " >&6; } 26972if ${ac_cv_funclib_logwtmp+:} false; then : 26973 $as_echo_n "(cached) " >&6 26974else 26975 26976if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 26977 ac_save_LIBS="$LIBS" 26978 for ac_lib in "" util; do 26979 case "$ac_lib" in 26980 "") ;; 26981 yes) ac_lib="" ;; 26982 no) continue ;; 26983 -l*) ;; 26984 *) ac_lib="-l$ac_lib" ;; 26985 esac 26986 LIBS=" $ac_lib $ac_save_LIBS" 26987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26988/* end confdefs.h. */ 26989 26990#ifdef HAVE_UTIL_H 26991#include <util.h> 26992#endif 26993 26994int 26995main () 26996{ 26997logwtmp(0,0,0) 26998 ; 26999 return 0; 27000} 27001_ACEOF 27002if ac_fn_c_try_link "$LINENO"; then : 27003 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 27004fi 27005rm -f core conftest.err conftest.$ac_objext \ 27006 conftest$ac_exeext conftest.$ac_ext 27007 done 27008 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 27009 LIBS="$ac_save_LIBS" 27010fi 27011 27012fi 27013 27014 27015eval "ac_res=\$ac_cv_funclib_logwtmp" 27016 27017if false; then 27018 for ac_func in logwtmp 27019do : 27020 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp" 27021if test "x$ac_cv_func_logwtmp" = xyes; then : 27022 cat >>confdefs.h <<_ACEOF 27023#define HAVE_LOGWTMP 1 27024_ACEOF 27025 27026fi 27027done 27028 27029fi 27030# logwtmp 27031eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27032eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27033eval "LIB_logwtmp=$ac_res" 27034 27035case "$ac_res" in 27036 yes) 27037 eval "ac_cv_func_logwtmp=yes" 27038 eval "LIB_logwtmp=" 27039 cat >>confdefs.h <<_ACEOF 27040#define $ac_tr_func 1 27041_ACEOF 27042 27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27044$as_echo "yes" >&6; } 27045 ;; 27046 no) 27047 eval "ac_cv_func_logwtmp=no" 27048 eval "LIB_logwtmp=" 27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27050$as_echo "no" >&6; } 27051 ;; 27052 *) 27053 eval "ac_cv_func_logwtmp=yes" 27054 cat >>confdefs.h <<_ACEOF 27055#define $ac_tr_func 1 27056_ACEOF 27057 27058 cat >>confdefs.h <<_ACEOF 27059#define $ac_tr_lib 1 27060_ACEOF 27061 27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27063$as_echo "yes, in $ac_res" >&6; } 27064 ;; 27065esac 27066 27067 27068 27069 27070 27071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logout" >&5 27072$as_echo_n "checking for logout... " >&6; } 27073if ${ac_cv_funclib_logout+:} false; then : 27074 $as_echo_n "(cached) " >&6 27075else 27076 27077if eval "test \"\$ac_cv_func_logout\" != yes" ; then 27078 ac_save_LIBS="$LIBS" 27079 for ac_lib in "" util; do 27080 case "$ac_lib" in 27081 "") ;; 27082 yes) ac_lib="" ;; 27083 no) continue ;; 27084 -l*) ;; 27085 *) ac_lib="-l$ac_lib" ;; 27086 esac 27087 LIBS=" $ac_lib $ac_save_LIBS" 27088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27089/* end confdefs.h. */ 27090 27091#ifdef HAVE_UTIL_H 27092#include <util.h> 27093#endif 27094 27095int 27096main () 27097{ 27098logout(0) 27099 ; 27100 return 0; 27101} 27102_ACEOF 27103if ac_fn_c_try_link "$LINENO"; then : 27104 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break 27105fi 27106rm -f core conftest.err conftest.$ac_objext \ 27107 conftest$ac_exeext conftest.$ac_ext 27108 done 27109 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}" 27110 LIBS="$ac_save_LIBS" 27111fi 27112 27113fi 27114 27115 27116eval "ac_res=\$ac_cv_funclib_logout" 27117 27118if false; then 27119 for ac_func in logout 27120do : 27121 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout" 27122if test "x$ac_cv_func_logout" = xyes; then : 27123 cat >>confdefs.h <<_ACEOF 27124#define HAVE_LOGOUT 1 27125_ACEOF 27126 27127fi 27128done 27129 27130fi 27131# logout 27132eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27133eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27134eval "LIB_logout=$ac_res" 27135 27136case "$ac_res" in 27137 yes) 27138 eval "ac_cv_func_logout=yes" 27139 eval "LIB_logout=" 27140 cat >>confdefs.h <<_ACEOF 27141#define $ac_tr_func 1 27142_ACEOF 27143 27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27145$as_echo "yes" >&6; } 27146 ;; 27147 no) 27148 eval "ac_cv_func_logout=no" 27149 eval "LIB_logout=" 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27151$as_echo "no" >&6; } 27152 ;; 27153 *) 27154 eval "ac_cv_func_logout=yes" 27155 cat >>confdefs.h <<_ACEOF 27156#define $ac_tr_func 1 27157_ACEOF 27158 27159 cat >>confdefs.h <<_ACEOF 27160#define $ac_tr_lib 1 27161_ACEOF 27162 27163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27164$as_echo "yes, in $ac_res" >&6; } 27165 ;; 27166esac 27167 27168 27169 27170 27171 27172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5 27173$as_echo_n "checking for openpty... " >&6; } 27174if ${ac_cv_funclib_openpty+:} false; then : 27175 $as_echo_n "(cached) " >&6 27176else 27177 27178if eval "test \"\$ac_cv_func_openpty\" != yes" ; then 27179 ac_save_LIBS="$LIBS" 27180 for ac_lib in "" util; do 27181 case "$ac_lib" in 27182 "") ;; 27183 yes) ac_lib="" ;; 27184 no) continue ;; 27185 -l*) ;; 27186 *) ac_lib="-l$ac_lib" ;; 27187 esac 27188 LIBS=" $ac_lib $ac_save_LIBS" 27189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27190/* end confdefs.h. */ 27191 27192#ifdef HAVE_UTIL_H 27193#include <util.h> 27194#endif 27195 27196int 27197main () 27198{ 27199openpty(0,0,0,0,0) 27200 ; 27201 return 0; 27202} 27203_ACEOF 27204if ac_fn_c_try_link "$LINENO"; then : 27205 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break 27206fi 27207rm -f core conftest.err conftest.$ac_objext \ 27208 conftest$ac_exeext conftest.$ac_ext 27209 done 27210 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}" 27211 LIBS="$ac_save_LIBS" 27212fi 27213 27214fi 27215 27216 27217eval "ac_res=\$ac_cv_funclib_openpty" 27218 27219if false; then 27220 for ac_func in openpty 27221do : 27222 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 27223if test "x$ac_cv_func_openpty" = xyes; then : 27224 cat >>confdefs.h <<_ACEOF 27225#define HAVE_OPENPTY 1 27226_ACEOF 27227 27228fi 27229done 27230 27231fi 27232# openpty 27233eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27234eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27235eval "LIB_openpty=$ac_res" 27236 27237case "$ac_res" in 27238 yes) 27239 eval "ac_cv_func_openpty=yes" 27240 eval "LIB_openpty=" 27241 cat >>confdefs.h <<_ACEOF 27242#define $ac_tr_func 1 27243_ACEOF 27244 27245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27246$as_echo "yes" >&6; } 27247 ;; 27248 no) 27249 eval "ac_cv_func_openpty=no" 27250 eval "LIB_openpty=" 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27252$as_echo "no" >&6; } 27253 ;; 27254 *) 27255 eval "ac_cv_func_openpty=yes" 27256 cat >>confdefs.h <<_ACEOF 27257#define $ac_tr_func 1 27258_ACEOF 27259 27260 cat >>confdefs.h <<_ACEOF 27261#define $ac_tr_lib 1 27262_ACEOF 27263 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27265$as_echo "yes, in $ac_res" >&6; } 27266 ;; 27267esac 27268 27269 27270 27271 27272 27273 27274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5 27275$as_echo_n "checking for tgetent... " >&6; } 27276if ${ac_cv_funclib_tgetent+:} false; then : 27277 $as_echo_n "(cached) " >&6 27278else 27279 27280if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 27281 ac_save_LIBS="$LIBS" 27282 for ac_lib in "" termcap ncurses curses; do 27283 case "$ac_lib" in 27284 "") ;; 27285 yes) ac_lib="" ;; 27286 no) continue ;; 27287 -l*) ;; 27288 *) ac_lib="-l$ac_lib" ;; 27289 esac 27290 LIBS=" $ac_lib $ac_save_LIBS" 27291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27292/* end confdefs.h. */ 27293 27294#ifdef HAVE_TERMCAP_H 27295#include <termcap.h> 27296#endif 27297#ifdef HAVE_CURSES_H 27298#include <curses.h> 27299#endif 27300 27301int 27302main () 27303{ 27304tgetent(0,0) 27305 ; 27306 return 0; 27307} 27308_ACEOF 27309if ac_fn_c_try_link "$LINENO"; then : 27310 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 27311fi 27312rm -f core conftest.err conftest.$ac_objext \ 27313 conftest$ac_exeext conftest.$ac_ext 27314 done 27315 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 27316 LIBS="$ac_save_LIBS" 27317fi 27318 27319fi 27320 27321 27322eval "ac_res=\$ac_cv_funclib_tgetent" 27323 27324if false; then 27325 for ac_func in tgetent 27326do : 27327 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" 27328if test "x$ac_cv_func_tgetent" = xyes; then : 27329 cat >>confdefs.h <<_ACEOF 27330#define HAVE_TGETENT 1 27331_ACEOF 27332 27333fi 27334done 27335 27336fi 27337# tgetent 27338eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27339eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27340eval "LIB_tgetent=$ac_res" 27341 27342case "$ac_res" in 27343 yes) 27344 eval "ac_cv_func_tgetent=yes" 27345 eval "LIB_tgetent=" 27346 cat >>confdefs.h <<_ACEOF 27347#define $ac_tr_func 1 27348_ACEOF 27349 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27351$as_echo "yes" >&6; } 27352 ;; 27353 no) 27354 eval "ac_cv_func_tgetent=no" 27355 eval "LIB_tgetent=" 27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27357$as_echo "no" >&6; } 27358 ;; 27359 *) 27360 eval "ac_cv_func_tgetent=yes" 27361 cat >>confdefs.h <<_ACEOF 27362#define $ac_tr_func 1 27363_ACEOF 27364 27365 cat >>confdefs.h <<_ACEOF 27366#define $ac_tr_lib 1 27367_ACEOF 27368 27369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27370$as_echo "yes, in $ac_res" >&6; } 27371 ;; 27372esac 27373 27374 27375 27376 27377for ac_func in \ 27378 _getpty \ 27379 _scrsize \ 27380 arc4random \ 27381 backtrace \ 27382 fcntl \ 27383 fork \ 27384 getpeereid \ 27385 getpeerucred \ 27386 grantpt \ 27387 kill \ 27388 mktime \ 27389 ptsname \ 27390 rand \ 27391 revoke \ 27392 select \ 27393 setitimer \ 27394 setpcred \ 27395 setpgid \ 27396 setproctitle \ 27397 setregid \ 27398 setresgid \ 27399 setresuid \ 27400 setreuid \ 27401 setsid \ 27402 setutent \ 27403 sigaction \ 27404 strstr \ 27405 ttyname \ 27406 ttyslot \ 27407 umask \ 27408 unlockpt \ 27409 vhangup \ 27410 waitpid \ 27411 yp_get_default_domain \ 27412 27413do : 27414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27416if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27417 cat >>confdefs.h <<_ACEOF 27418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27419_ACEOF 27420 27421fi 27422done 27423 27424 27425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for __sync_add_and_fetch" >&5 27426$as_echo_n "checking checking for __sync_add_and_fetch... " >&6; } 27427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27428/* end confdefs.h. */ 27429#include <sys/types.h> 27430int 27431main () 27432{ 27433unsigned int foo, bar; bar = __sync_add_and_fetch(&foo, 1); 27434 ; 27435 return 0; 27436} 27437_ACEOF 27438if ac_fn_c_try_link "$LINENO"; then : 27439 ac_rk_have___sync_add_and_fetch=yes 27440else 27441 ac_rk_have___sync_add_and_fetch=no 27442fi 27443rm -f core conftest.err conftest.$ac_objext \ 27444 conftest$ac_exeext conftest.$ac_ext 27445if test "$ac_rk_have___sync_add_and_fetch" = "yes" ; then 27446 27447cat >>confdefs.h <<_ACEOF 27448#define HAVE___SYNC_ADD_AND_FETCH 1 27449_ACEOF 27450 27451fi 27452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have___sync_add_and_fetch" >&5 27453$as_echo "$ac_rk_have___sync_add_and_fetch" >&6; } 27454 27455 27456for ac_func in getpagesize 27457do : 27458 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 27459if test "x$ac_cv_func_getpagesize" = xyes; then : 27460 cat >>confdefs.h <<_ACEOF 27461#define HAVE_GETPAGESIZE 1 27462_ACEOF 27463 27464fi 27465done 27466 27467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 27468$as_echo_n "checking for working mmap... " >&6; } 27469if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 27470 $as_echo_n "(cached) " >&6 27471else 27472 if test "$cross_compiling" = yes; then : 27473 ac_cv_func_mmap_fixed_mapped=no 27474else 27475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27476/* end confdefs.h. */ 27477$ac_includes_default 27478/* malloc might have been renamed as rpl_malloc. */ 27479#undef malloc 27480 27481/* Thanks to Mike Haertel and Jim Avera for this test. 27482 Here is a matrix of mmap possibilities: 27483 mmap private not fixed 27484 mmap private fixed at somewhere currently unmapped 27485 mmap private fixed at somewhere already mapped 27486 mmap shared not fixed 27487 mmap shared fixed at somewhere currently unmapped 27488 mmap shared fixed at somewhere already mapped 27489 For private mappings, we should verify that changes cannot be read() 27490 back from the file, nor mmap's back from the file at a different 27491 address. (There have been systems where private was not correctly 27492 implemented like the infamous i386 svr4.0, and systems where the 27493 VM page cache was not coherent with the file system buffer cache 27494 like early versions of FreeBSD and possibly contemporary NetBSD.) 27495 For shared mappings, we should conversely verify that changes get 27496 propagated back to all the places they're supposed to be. 27497 27498 Grep wants private fixed already mapped. 27499 The main things grep needs to know about mmap are: 27500 * does it exist and is it safe to write into the mmap'd area 27501 * how to use it (BSD variants) */ 27502 27503#include <fcntl.h> 27504#include <sys/mman.h> 27505 27506#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 27507char *malloc (); 27508#endif 27509 27510/* This mess was copied from the GNU getpagesize.h. */ 27511#ifndef HAVE_GETPAGESIZE 27512# ifdef _SC_PAGESIZE 27513# define getpagesize() sysconf(_SC_PAGESIZE) 27514# else /* no _SC_PAGESIZE */ 27515# ifdef HAVE_SYS_PARAM_H 27516# include <sys/param.h> 27517# ifdef EXEC_PAGESIZE 27518# define getpagesize() EXEC_PAGESIZE 27519# else /* no EXEC_PAGESIZE */ 27520# ifdef NBPG 27521# define getpagesize() NBPG * CLSIZE 27522# ifndef CLSIZE 27523# define CLSIZE 1 27524# endif /* no CLSIZE */ 27525# else /* no NBPG */ 27526# ifdef NBPC 27527# define getpagesize() NBPC 27528# else /* no NBPC */ 27529# ifdef PAGESIZE 27530# define getpagesize() PAGESIZE 27531# endif /* PAGESIZE */ 27532# endif /* no NBPC */ 27533# endif /* no NBPG */ 27534# endif /* no EXEC_PAGESIZE */ 27535# else /* no HAVE_SYS_PARAM_H */ 27536# define getpagesize() 8192 /* punt totally */ 27537# endif /* no HAVE_SYS_PARAM_H */ 27538# endif /* no _SC_PAGESIZE */ 27539 27540#endif /* no HAVE_GETPAGESIZE */ 27541 27542int 27543main () 27544{ 27545 char *data, *data2, *data3; 27546 const char *cdata2; 27547 int i, pagesize; 27548 int fd, fd2; 27549 27550 pagesize = getpagesize (); 27551 27552 /* First, make a file with some known garbage in it. */ 27553 data = (char *) malloc (pagesize); 27554 if (!data) 27555 return 1; 27556 for (i = 0; i < pagesize; ++i) 27557 *(data + i) = rand (); 27558 umask (0); 27559 fd = creat ("conftest.mmap", 0600); 27560 if (fd < 0) 27561 return 2; 27562 if (write (fd, data, pagesize) != pagesize) 27563 return 3; 27564 close (fd); 27565 27566 /* Next, check that the tail of a page is zero-filled. File must have 27567 non-zero length, otherwise we risk SIGBUS for entire page. */ 27568 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 27569 if (fd2 < 0) 27570 return 4; 27571 cdata2 = ""; 27572 if (write (fd2, cdata2, 1) != 1) 27573 return 5; 27574 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 27575 if (data2 == MAP_FAILED) 27576 return 6; 27577 for (i = 0; i < pagesize; ++i) 27578 if (*(data2 + i)) 27579 return 7; 27580 close (fd2); 27581 if (munmap (data2, pagesize)) 27582 return 8; 27583 27584 /* Next, try to mmap the file at a fixed address which already has 27585 something else allocated at it. If we can, also make sure that 27586 we see the same garbage. */ 27587 fd = open ("conftest.mmap", O_RDWR); 27588 if (fd < 0) 27589 return 9; 27590 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 27591 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 27592 return 10; 27593 for (i = 0; i < pagesize; ++i) 27594 if (*(data + i) != *(data2 + i)) 27595 return 11; 27596 27597 /* Finally, make sure that changes to the mapped area do not 27598 percolate back to the file as seen by read(). (This is a bug on 27599 some variants of i386 svr4.0.) */ 27600 for (i = 0; i < pagesize; ++i) 27601 *(data2 + i) = *(data2 + i) + 1; 27602 data3 = (char *) malloc (pagesize); 27603 if (!data3) 27604 return 12; 27605 if (read (fd, data3, pagesize) != pagesize) 27606 return 13; 27607 for (i = 0; i < pagesize; ++i) 27608 if (*(data + i) != *(data3 + i)) 27609 return 14; 27610 close (fd); 27611 return 0; 27612} 27613_ACEOF 27614if ac_fn_c_try_run "$LINENO"; then : 27615 ac_cv_func_mmap_fixed_mapped=yes 27616else 27617 ac_cv_func_mmap_fixed_mapped=no 27618fi 27619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27620 conftest.$ac_objext conftest.beam conftest.$ac_ext 27621fi 27622 27623fi 27624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 27625$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 27626if test $ac_cv_func_mmap_fixed_mapped = yes; then 27627 27628$as_echo "#define HAVE_MMAP 1" >>confdefs.h 27629 27630fi 27631rm -f conftest.mmap conftest.txt 27632 27633 27634 27635 27636for ac_header in capability.h sys/capability.h 27637do : 27638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27639ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27640if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27641 cat >>confdefs.h <<_ACEOF 27642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27643_ACEOF 27644 27645fi 27646 27647done 27648 27649 27650for ac_func in sgi_getcapabilitybyname cap_set_proc 27651do : 27652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27653ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27654if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27655 cat >>confdefs.h <<_ACEOF 27656#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27657_ACEOF 27658 27659fi 27660done 27661 27662 27663 27664 27665 27666 27667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr" >&5 27668$as_echo_n "checking for dladdr... " >&6; } 27669if ${ac_cv_funclib_dladdr+:} false; then : 27670 $as_echo_n "(cached) " >&6 27671else 27672 27673if eval "test \"\$ac_cv_func_dladdr\" != yes" ; then 27674 ac_save_LIBS="$LIBS" 27675 for ac_lib in "" dl; do 27676 case "$ac_lib" in 27677 "") ;; 27678 yes) ac_lib="" ;; 27679 no) continue ;; 27680 -l*) ;; 27681 *) ac_lib="-l$ac_lib" ;; 27682 esac 27683 LIBS=" $ac_lib $ac_save_LIBS" 27684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27685/* end confdefs.h. */ 27686 27687#ifdef HAVE_DLFCN_H 27688#include <dlfcn.h> 27689#endif 27690int 27691main () 27692{ 27693dladdr(0,0) 27694 ; 27695 return 0; 27696} 27697_ACEOF 27698if ac_fn_c_try_link "$LINENO"; then : 27699 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dladdr=$ac_lib; else ac_cv_funclib_dladdr=yes; fi";break 27700fi 27701rm -f core conftest.err conftest.$ac_objext \ 27702 conftest$ac_exeext conftest.$ac_ext 27703 done 27704 eval "ac_cv_funclib_dladdr=\${ac_cv_funclib_dladdr-no}" 27705 LIBS="$ac_save_LIBS" 27706fi 27707 27708fi 27709 27710 27711eval "ac_res=\$ac_cv_funclib_dladdr" 27712 27713if false; then 27714 for ac_func in dladdr 27715do : 27716 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" 27717if test "x$ac_cv_func_dladdr" = xyes; then : 27718 cat >>confdefs.h <<_ACEOF 27719#define HAVE_DLADDR 1 27720_ACEOF 27721 27722fi 27723done 27724 27725fi 27726# dladdr 27727eval "ac_tr_func=HAVE_`echo dladdr | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27728eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27729eval "LIB_dladdr=$ac_res" 27730 27731case "$ac_res" in 27732 yes) 27733 eval "ac_cv_func_dladdr=yes" 27734 eval "LIB_dladdr=" 27735 cat >>confdefs.h <<_ACEOF 27736#define $ac_tr_func 1 27737_ACEOF 27738 27739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27740$as_echo "yes" >&6; } 27741 ;; 27742 no) 27743 eval "ac_cv_func_dladdr=no" 27744 eval "LIB_dladdr=" 27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27746$as_echo "no" >&6; } 27747 ;; 27748 *) 27749 eval "ac_cv_func_dladdr=yes" 27750 cat >>confdefs.h <<_ACEOF 27751#define $ac_tr_func 1 27752_ACEOF 27753 27754 cat >>confdefs.h <<_ACEOF 27755#define $ac_tr_lib 1 27756_ACEOF 27757 27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27759$as_echo "yes, in $ac_res" >&6; } 27760 ;; 27761esac 27762 27763 27764 if test "$ac_cv_funclib_dladdr" != no; then 27765 HAVE_DLADDR_TRUE= 27766 HAVE_DLADDR_FALSE='#' 27767else 27768 HAVE_DLADDR_TRUE='#' 27769 HAVE_DLADDR_FALSE= 27770fi 27771 27772 27773 27774 27775 27776 27777 27778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5 27779$as_echo_n "checking for getpwnam_r... " >&6; } 27780if ${ac_cv_funclib_getpwnam_r+:} false; then : 27781 $as_echo_n "(cached) " >&6 27782else 27783 27784if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 27785 ac_save_LIBS="$LIBS" 27786 for ac_lib in "" c_r; do 27787 case "$ac_lib" in 27788 "") ;; 27789 yes) ac_lib="" ;; 27790 no) continue ;; 27791 -l*) ;; 27792 *) ac_lib="-l$ac_lib" ;; 27793 esac 27794 LIBS=" $ac_lib $ac_save_LIBS" 27795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27796/* end confdefs.h. */ 27797 27798int 27799main () 27800{ 27801getpwnam_r() 27802 ; 27803 return 0; 27804} 27805_ACEOF 27806if ac_fn_c_try_link "$LINENO"; then : 27807 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 27808fi 27809rm -f core conftest.err conftest.$ac_objext \ 27810 conftest$ac_exeext conftest.$ac_ext 27811 done 27812 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 27813 LIBS="$ac_save_LIBS" 27814fi 27815 27816fi 27817 27818 27819eval "ac_res=\$ac_cv_funclib_getpwnam_r" 27820 27821if false; then 27822 for ac_func in getpwnam_r 27823do : 27824 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" 27825if test "x$ac_cv_func_getpwnam_r" = xyes; then : 27826 cat >>confdefs.h <<_ACEOF 27827#define HAVE_GETPWNAM_R 1 27828_ACEOF 27829 27830fi 27831done 27832 27833fi 27834# getpwnam_r 27835eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27836eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27837eval "LIB_getpwnam_r=$ac_res" 27838 27839case "$ac_res" in 27840 yes) 27841 eval "ac_cv_func_getpwnam_r=yes" 27842 eval "LIB_getpwnam_r=" 27843 cat >>confdefs.h <<_ACEOF 27844#define $ac_tr_func 1 27845_ACEOF 27846 27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27848$as_echo "yes" >&6; } 27849 ;; 27850 no) 27851 eval "ac_cv_func_getpwnam_r=no" 27852 eval "LIB_getpwnam_r=" 27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27854$as_echo "no" >&6; } 27855 ;; 27856 *) 27857 eval "ac_cv_func_getpwnam_r=yes" 27858 cat >>confdefs.h <<_ACEOF 27859#define $ac_tr_func 1 27860_ACEOF 27861 27862 cat >>confdefs.h <<_ACEOF 27863#define $ac_tr_lib 1 27864_ACEOF 27865 27866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27867$as_echo "yes, in $ac_res" >&6; } 27868 ;; 27869esac 27870 27871 27872if test "$ac_cv_func_getpwnam_r" = yes; then 27873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r is posix" >&5 27874$as_echo_n "checking if getpwnam_r is posix... " >&6; } 27875if ${ac_cv_func_getpwnam_r_posix+:} false; then : 27876 $as_echo_n "(cached) " >&6 27877else 27878 ac_libs="$LIBS" 27879 LIBS="$LIBS $LIB_getpwnam_r" 27880 if test "$cross_compiling" = yes; then : 27881 : 27882else 27883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27884/* end confdefs.h. */ 27885 27886#define _POSIX_PTHREAD_SEMANTICS 27887#include <pwd.h> 27888int main(int argc, char **argv) 27889{ 27890 struct passwd pw, *pwd; 27891 return getpwnam_r("", &pw, 0, 0, &pwd) < 0; 27892} 27893 27894_ACEOF 27895if ac_fn_c_try_run "$LINENO"; then : 27896 ac_cv_func_getpwnam_r_posix=yes 27897else 27898 ac_cv_func_getpwnam_r_posix=no 27899fi 27900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27901 conftest.$ac_objext conftest.beam conftest.$ac_ext 27902fi 27903 27904LIBS="$ac_libs" 27905fi 27906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix" >&5 27907$as_echo "$ac_cv_func_getpwnam_r_posix" >&6; } 27908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _POSIX_PTHREAD_SEMANTICS is needed" >&5 27909$as_echo_n "checking if _POSIX_PTHREAD_SEMANTICS is needed... " >&6; } 27910if ${ac_cv_func_getpwnam_r_posix_def+:} false; then : 27911 $as_echo_n "(cached) " >&6 27912else 27913 ac_libs="$LIBS" 27914 LIBS="$LIBS $LIB_getpwnam_r" 27915 if test "$cross_compiling" = yes; then : 27916 : 27917else 27918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27919/* end confdefs.h. */ 27920 27921#include <pwd.h> 27922int main(int argc, char **argv) 27923{ 27924 struct passwd pw, *pwd; 27925 return getpwnam_r("", &pw, 0, 0, &pwd) < 0; 27926} 27927 27928_ACEOF 27929if ac_fn_c_try_run "$LINENO"; then : 27930 ac_cv_func_getpwnam_r_posix_def=no 27931else 27932 ac_cv_func_getpwnam_r_posix_def=yes 27933fi 27934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27935 conftest.$ac_objext conftest.beam conftest.$ac_ext 27936fi 27937 27938LIBS="$ac_libs" 27939fi 27940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix_def" >&5 27941$as_echo "$ac_cv_func_getpwnam_r_posix_def" >&6; } 27942if test "$ac_cv_func_getpwnam_r_posix" = yes; then 27943 27944$as_echo "#define POSIX_GETPWNAM_R 1" >>confdefs.h 27945 27946fi 27947if test "$ac_cv_func_getpwnam_r_posix" = yes -a "$ac_cv_func_getpwnam_r_posix_def" = yes; then 27948 27949$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 27950 27951fi 27952fi 27953 27954 27955if test "$enable_pthread_support" != no; then 27956 saved_LIBS="$LIBS" 27957 LIBS="$LIBS $PTHREADS_LIBS" 27958 27959 27960 27961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for door_create" >&5 27962$as_echo_n "checking for door_create... " >&6; } 27963if ${ac_cv_funclib_door_create+:} false; then : 27964 $as_echo_n "(cached) " >&6 27965else 27966 27967if eval "test \"\$ac_cv_func_door_create\" != yes" ; then 27968 ac_save_LIBS="$LIBS" 27969 for ac_lib in "" door; do 27970 case "$ac_lib" in 27971 "") ;; 27972 yes) ac_lib="" ;; 27973 no) continue ;; 27974 -l*) ;; 27975 *) ac_lib="-l$ac_lib" ;; 27976 esac 27977 LIBS=" $ac_lib $ac_save_LIBS" 27978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27979/* end confdefs.h. */ 27980 27981int 27982main () 27983{ 27984door_create() 27985 ; 27986 return 0; 27987} 27988_ACEOF 27989if ac_fn_c_try_link "$LINENO"; then : 27990 eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break 27991fi 27992rm -f core conftest.err conftest.$ac_objext \ 27993 conftest$ac_exeext conftest.$ac_ext 27994 done 27995 eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}" 27996 LIBS="$ac_save_LIBS" 27997fi 27998 27999fi 28000 28001 28002eval "ac_res=\$ac_cv_funclib_door_create" 28003 28004if false; then 28005 for ac_func in door_create 28006do : 28007 ac_fn_c_check_func "$LINENO" "door_create" "ac_cv_func_door_create" 28008if test "x$ac_cv_func_door_create" = xyes; then : 28009 cat >>confdefs.h <<_ACEOF 28010#define HAVE_DOOR_CREATE 1 28011_ACEOF 28012 28013fi 28014done 28015 28016fi 28017# door_create 28018eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28019eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28020eval "LIB_door_create=$ac_res" 28021 28022case "$ac_res" in 28023 yes) 28024 eval "ac_cv_func_door_create=yes" 28025 eval "LIB_door_create=" 28026 cat >>confdefs.h <<_ACEOF 28027#define $ac_tr_func 1 28028_ACEOF 28029 28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28031$as_echo "yes" >&6; } 28032 ;; 28033 no) 28034 eval "ac_cv_func_door_create=no" 28035 eval "LIB_door_create=" 28036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28037$as_echo "no" >&6; } 28038 ;; 28039 *) 28040 eval "ac_cv_func_door_create=yes" 28041 cat >>confdefs.h <<_ACEOF 28042#define $ac_tr_func 1 28043_ACEOF 28044 28045 cat >>confdefs.h <<_ACEOF 28046#define $ac_tr_lib 1 28047_ACEOF 28048 28049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 28050$as_echo "yes, in $ac_res" >&6; } 28051 ;; 28052esac 28053 28054 28055 LIBS="$saved_LIBS" 28056fi 28057 28058# Check whether --enable-kcm was given. 28059if test "${enable_kcm+set}" = set; then : 28060 enableval=$enable_kcm; 28061else 28062 enable_kcm=yes 28063fi 28064 28065 28066if test "$enable_kcm" = yes ; then 28067 if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then 28068 enable_kcm=no 28069 fi 28070fi 28071if test "$enable_kcm" = yes; then 28072 28073$as_echo "#define HAVE_KCM 1" >>confdefs.h 28074 28075fi 28076 if test "$enable_kcm" = yes; then 28077 KCM_TRUE= 28078 KCM_FALSE='#' 28079else 28080 KCM_TRUE='#' 28081 KCM_FALSE= 28082fi 28083 28084 28085 28086 28087for ac_func in getudbnam setlim 28088do : 28089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28090ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28091if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28092 cat >>confdefs.h <<_ACEOF 28093#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28094_ACEOF 28095 28096fi 28097done 28098 28099 28100 28101ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" " 28102#ifdef HAVE_INTTYPES_H 28103#include <inttypes.h> 28104#endif 28105#ifdef HAVE_SYS_TYPES_H 28106#include <sys/types.h> 28107#endif 28108#ifdef HAVE_SYS_BITYPES_H 28109#include <sys/bitypes.h> 28110#endif 28111#ifdef HAVE_BIND_BITYPES_H 28112#include <bind/bitypes.h> 28113#endif 28114#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28115#include <netinet/in6_machtypes.h> 28116#endif 28117 28118" 28119if test "x$ac_cv_type_int8_t" = xyes; then : 28120 28121cat >>confdefs.h <<_ACEOF 28122#define HAVE_INT8_T 1 28123_ACEOF 28124 28125 28126fi 28127ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" " 28128#ifdef HAVE_INTTYPES_H 28129#include <inttypes.h> 28130#endif 28131#ifdef HAVE_SYS_TYPES_H 28132#include <sys/types.h> 28133#endif 28134#ifdef HAVE_SYS_BITYPES_H 28135#include <sys/bitypes.h> 28136#endif 28137#ifdef HAVE_BIND_BITYPES_H 28138#include <bind/bitypes.h> 28139#endif 28140#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28141#include <netinet/in6_machtypes.h> 28142#endif 28143 28144" 28145if test "x$ac_cv_type_int16_t" = xyes; then : 28146 28147cat >>confdefs.h <<_ACEOF 28148#define HAVE_INT16_T 1 28149_ACEOF 28150 28151 28152fi 28153ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" " 28154#ifdef HAVE_INTTYPES_H 28155#include <inttypes.h> 28156#endif 28157#ifdef HAVE_SYS_TYPES_H 28158#include <sys/types.h> 28159#endif 28160#ifdef HAVE_SYS_BITYPES_H 28161#include <sys/bitypes.h> 28162#endif 28163#ifdef HAVE_BIND_BITYPES_H 28164#include <bind/bitypes.h> 28165#endif 28166#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28167#include <netinet/in6_machtypes.h> 28168#endif 28169 28170" 28171if test "x$ac_cv_type_int32_t" = xyes; then : 28172 28173cat >>confdefs.h <<_ACEOF 28174#define HAVE_INT32_T 1 28175_ACEOF 28176 28177 28178fi 28179ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" " 28180#ifdef HAVE_INTTYPES_H 28181#include <inttypes.h> 28182#endif 28183#ifdef HAVE_SYS_TYPES_H 28184#include <sys/types.h> 28185#endif 28186#ifdef HAVE_SYS_BITYPES_H 28187#include <sys/bitypes.h> 28188#endif 28189#ifdef HAVE_BIND_BITYPES_H 28190#include <bind/bitypes.h> 28191#endif 28192#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28193#include <netinet/in6_machtypes.h> 28194#endif 28195 28196" 28197if test "x$ac_cv_type_int64_t" = xyes; then : 28198 28199cat >>confdefs.h <<_ACEOF 28200#define HAVE_INT64_T 1 28201_ACEOF 28202 28203 28204fi 28205ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" " 28206#ifdef HAVE_INTTYPES_H 28207#include <inttypes.h> 28208#endif 28209#ifdef HAVE_SYS_TYPES_H 28210#include <sys/types.h> 28211#endif 28212#ifdef HAVE_SYS_BITYPES_H 28213#include <sys/bitypes.h> 28214#endif 28215#ifdef HAVE_BIND_BITYPES_H 28216#include <bind/bitypes.h> 28217#endif 28218#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28219#include <netinet/in6_machtypes.h> 28220#endif 28221 28222" 28223if test "x$ac_cv_type_u_int8_t" = xyes; then : 28224 28225cat >>confdefs.h <<_ACEOF 28226#define HAVE_U_INT8_T 1 28227_ACEOF 28228 28229 28230fi 28231ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" " 28232#ifdef HAVE_INTTYPES_H 28233#include <inttypes.h> 28234#endif 28235#ifdef HAVE_SYS_TYPES_H 28236#include <sys/types.h> 28237#endif 28238#ifdef HAVE_SYS_BITYPES_H 28239#include <sys/bitypes.h> 28240#endif 28241#ifdef HAVE_BIND_BITYPES_H 28242#include <bind/bitypes.h> 28243#endif 28244#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28245#include <netinet/in6_machtypes.h> 28246#endif 28247 28248" 28249if test "x$ac_cv_type_u_int16_t" = xyes; then : 28250 28251cat >>confdefs.h <<_ACEOF 28252#define HAVE_U_INT16_T 1 28253_ACEOF 28254 28255 28256fi 28257ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" " 28258#ifdef HAVE_INTTYPES_H 28259#include <inttypes.h> 28260#endif 28261#ifdef HAVE_SYS_TYPES_H 28262#include <sys/types.h> 28263#endif 28264#ifdef HAVE_SYS_BITYPES_H 28265#include <sys/bitypes.h> 28266#endif 28267#ifdef HAVE_BIND_BITYPES_H 28268#include <bind/bitypes.h> 28269#endif 28270#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28271#include <netinet/in6_machtypes.h> 28272#endif 28273 28274" 28275if test "x$ac_cv_type_u_int32_t" = xyes; then : 28276 28277cat >>confdefs.h <<_ACEOF 28278#define HAVE_U_INT32_T 1 28279_ACEOF 28280 28281 28282fi 28283ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" " 28284#ifdef HAVE_INTTYPES_H 28285#include <inttypes.h> 28286#endif 28287#ifdef HAVE_SYS_TYPES_H 28288#include <sys/types.h> 28289#endif 28290#ifdef HAVE_SYS_BITYPES_H 28291#include <sys/bitypes.h> 28292#endif 28293#ifdef HAVE_BIND_BITYPES_H 28294#include <bind/bitypes.h> 28295#endif 28296#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28297#include <netinet/in6_machtypes.h> 28298#endif 28299 28300" 28301if test "x$ac_cv_type_u_int64_t" = xyes; then : 28302 28303cat >>confdefs.h <<_ACEOF 28304#define HAVE_U_INT64_T 1 28305_ACEOF 28306 28307 28308fi 28309ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" " 28310#ifdef HAVE_INTTYPES_H 28311#include <inttypes.h> 28312#endif 28313#ifdef HAVE_SYS_TYPES_H 28314#include <sys/types.h> 28315#endif 28316#ifdef HAVE_SYS_BITYPES_H 28317#include <sys/bitypes.h> 28318#endif 28319#ifdef HAVE_BIND_BITYPES_H 28320#include <bind/bitypes.h> 28321#endif 28322#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28323#include <netinet/in6_machtypes.h> 28324#endif 28325 28326" 28327if test "x$ac_cv_type_uint8_t" = xyes; then : 28328 28329cat >>confdefs.h <<_ACEOF 28330#define HAVE_UINT8_T 1 28331_ACEOF 28332 28333 28334fi 28335ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" " 28336#ifdef HAVE_INTTYPES_H 28337#include <inttypes.h> 28338#endif 28339#ifdef HAVE_SYS_TYPES_H 28340#include <sys/types.h> 28341#endif 28342#ifdef HAVE_SYS_BITYPES_H 28343#include <sys/bitypes.h> 28344#endif 28345#ifdef HAVE_BIND_BITYPES_H 28346#include <bind/bitypes.h> 28347#endif 28348#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28349#include <netinet/in6_machtypes.h> 28350#endif 28351 28352" 28353if test "x$ac_cv_type_uint16_t" = xyes; then : 28354 28355cat >>confdefs.h <<_ACEOF 28356#define HAVE_UINT16_T 1 28357_ACEOF 28358 28359 28360fi 28361ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" " 28362#ifdef HAVE_INTTYPES_H 28363#include <inttypes.h> 28364#endif 28365#ifdef HAVE_SYS_TYPES_H 28366#include <sys/types.h> 28367#endif 28368#ifdef HAVE_SYS_BITYPES_H 28369#include <sys/bitypes.h> 28370#endif 28371#ifdef HAVE_BIND_BITYPES_H 28372#include <bind/bitypes.h> 28373#endif 28374#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28375#include <netinet/in6_machtypes.h> 28376#endif 28377 28378" 28379if test "x$ac_cv_type_uint32_t" = xyes; then : 28380 28381cat >>confdefs.h <<_ACEOF 28382#define HAVE_UINT32_T 1 28383_ACEOF 28384 28385 28386fi 28387ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" " 28388#ifdef HAVE_INTTYPES_H 28389#include <inttypes.h> 28390#endif 28391#ifdef HAVE_SYS_TYPES_H 28392#include <sys/types.h> 28393#endif 28394#ifdef HAVE_SYS_BITYPES_H 28395#include <sys/bitypes.h> 28396#endif 28397#ifdef HAVE_BIND_BITYPES_H 28398#include <bind/bitypes.h> 28399#endif 28400#ifdef HAVE_NETINET_IN6_MACHTYPES_H 28401#include <netinet/in6_machtypes.h> 28402#endif 28403 28404" 28405if test "x$ac_cv_type_uint64_t" = xyes; then : 28406 28407cat >>confdefs.h <<_ACEOF 28408#define HAVE_UINT64_T 1 28409_ACEOF 28410 28411 28412fi 28413 28414 28415 28416 28417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework security" >&5 28418$as_echo_n "checking for framework security... " >&6; } 28419if ${rk_cv_framework_security+:} false; then : 28420 $as_echo_n "(cached) " >&6 28421else 28422 28423if test "$rk_cv_framework_security" != yes; then 28424 ac_save_LIBS="$LIBS" 28425 LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation" 28426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28427/* end confdefs.h. */ 28428#include <Security/Security.h> 28429 28430int 28431main () 28432{ 28433SecKeychainSearchRef searchRef; 28434SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef); 28435CFRelease(&searchRef); 28436 28437 ; 28438 return 0; 28439} 28440_ACEOF 28441if ac_fn_c_try_link "$LINENO"; then : 28442 rk_cv_framework_security=yes 28443fi 28444rm -f core conftest.err conftest.$ac_objext \ 28445 conftest$ac_exeext conftest.$ac_ext 28446 LIBS="$ac_save_LIBS" 28447fi 28448 28449fi 28450 28451 28452if test "$rk_cv_framework_security" = yes; then 28453 28454$as_echo "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h 28455 28456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28457$as_echo "yes" >&6; } 28458else 28459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28460$as_echo "no" >&6; } 28461fi 28462 if test "$rk_cv_framework_security" = yes; then 28463 FRAMEWORK_SECURITY_TRUE= 28464 FRAMEWORK_SECURITY_FALSE='#' 28465else 28466 FRAMEWORK_SECURITY_TRUE='#' 28467 FRAMEWORK_SECURITY_FALSE= 28468fi 28469 28470 28471if test "$rk_cv_framework_security" = yes; then 28472 28473if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then 28474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SecKeyGetCSPHandle needs a prototype" >&5 28475$as_echo_n "checking if SecKeyGetCSPHandle needs a prototype... " >&6; } 28476if ${ac_cv_func_SecKeyGetCSPHandle_noproto+:} false; then : 28477 $as_echo_n "(cached) " >&6 28478else 28479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28480/* end confdefs.h. */ 28481#include <Security/Security.h> 28482struct foo { int foo; } xx; 28483extern int SecKeyGetCSPHandle (struct foo*); 28484int 28485main () 28486{ 28487SecKeyGetCSPHandle(&xx) 28488 ; 28489 return 0; 28490} 28491_ACEOF 28492if ac_fn_c_try_compile "$LINENO"; then : 28493 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes" 28494else 28495 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no" 28496fi 28497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28498fi 28499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5 28500$as_echo "$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; } 28501if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then 28502 28503$as_echo "#define NEED_SECKEYGETCSPHANDLE_PROTO 1" >>confdefs.h 28504 28505fi 28506fi 28507 28508fi 28509 28510 28511 28512 28513 28514 28515ac_foo=no 28516build_editline=no 28517if test "$with_readline" = yes; then 28518 : 28519elif test "$with_libedit" = yes; then 28520 LIB_readline="${LIB_libedit}" 28521elif test "$ac_cv_func_readline" = yes; then 28522 : 28523else 28524 build_libedit=yes 28525 LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)" 28526fi 28527 if test "$build_libedit" = yes; then 28528 LIBEDIT_TRUE= 28529 LIBEDIT_FALSE='#' 28530else 28531 LIBEDIT_TRUE='#' 28532 LIBEDIT_FALSE= 28533fi 28534 28535 28536$as_echo "#define HAVE_READLINE 1" >>confdefs.h 28537 28538 28539 28540 28541 28542$as_echo "#define AUTHENTICATION 1" >>confdefs.h 28543 28544$as_echo "#define ENCRYPTION 1" >>confdefs.h 28545 28546$as_echo "#define DES_ENCRYPTION 1" >>confdefs.h 28547 28548$as_echo "#define DIAGNOSTICS 1" >>confdefs.h 28549 28550$as_echo "#define OLD_ENVIRON 1" >>confdefs.h 28551if false; then 28552 28553$as_echo "#define ENV_HACK 1" >>confdefs.h 28554 28555fi 28556 28557# Simple test for streamspty, based on the existance of getmsg(), alas 28558# this breaks on SunOS4 which have streams but BSD-like ptys 28559# 28560# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 28561 28562case "$host" in 28563*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 28564 ;; 28565*) 28566 ac_fn_c_check_func "$LINENO" "getmsg" "ac_cv_func_getmsg" 28567if test "x$ac_cv_func_getmsg" = xyes; then : 28568 28569fi 28570 28571 if test "$ac_cv_func_getmsg" = "yes"; then 28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getmsg works" >&5 28573$as_echo_n "checking if getmsg works... " >&6; } 28574if ${ac_cv_func_getmsg_works+:} false; then : 28575 $as_echo_n "(cached) " >&6 28576else 28577 if test "$cross_compiling" = yes; then : 28578 ac_cv_func_getmsg_works=no 28579else 28580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28581/* end confdefs.h. */ 28582 28583 #include <stdio.h> 28584 #include <errno.h> 28585 28586 int main(int argc, char **argv) 28587 { 28588 int ret; 28589 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 28590 if(ret < 0 && errno == ENOSYS) 28591 return 1; 28592 return 0; 28593 } 28594 28595_ACEOF 28596if ac_fn_c_try_run "$LINENO"; then : 28597 ac_cv_func_getmsg_works=yes 28598else 28599 ac_cv_func_getmsg_works=no 28600fi 28601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28602 conftest.$ac_objext conftest.beam conftest.$ac_ext 28603fi 28604 28605fi 28606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getmsg_works" >&5 28607$as_echo "$ac_cv_func_getmsg_works" >&6; } 28608 if test "$ac_cv_func_getmsg_works" = "yes"; then 28609 28610$as_echo "#define HAVE_GETMSG 1" >>confdefs.h 28611 28612 28613$as_echo "#define STREAMSPTY 1" >>confdefs.h 28614 28615 fi 28616 fi 28617 ;; 28618esac 28619 28620 28621 28622 28623 28624 28625# Extract the first word of "compile_et", so it can be a program name with args. 28626set dummy compile_et; ac_word=$2 28627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28628$as_echo_n "checking for $ac_word... " >&6; } 28629if ${ac_cv_prog_COMPILE_ET+:} false; then : 28630 $as_echo_n "(cached) " >&6 28631else 28632 if test -n "$COMPILE_ET"; then 28633 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test. 28634else 28635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28636for as_dir in $PATH 28637do 28638 IFS=$as_save_IFS 28639 test -z "$as_dir" && as_dir=. 28640 for ac_exec_ext in '' $ac_executable_extensions; do 28641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28642 ac_cv_prog_COMPILE_ET="compile_et" 28643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28644 break 2 28645 fi 28646done 28647 done 28648IFS=$as_save_IFS 28649 28650 test -z "$ac_cv_prog_COMPILE_ET" && ac_cv_prog_COMPILE_ET="no" 28651fi 28652fi 28653COMPILE_ET=$ac_cv_prog_COMPILE_ET 28654if test -n "$COMPILE_ET"; then 28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5 28656$as_echo "$COMPILE_ET" >&6; } 28657else 28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28659$as_echo "no" >&6; } 28660fi 28661 28662 28663 28664krb_cv_compile_et="no" 28665krb_cv_com_err_need_r="" 28666krb_cv_compile_et_cross=no 28667if test "${COMPILE_ET}" != "no"; then 28668 28669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et has the features we need" >&5 28670$as_echo_n "checking whether compile_et has the features we need... " >&6; } 28671cat > conftest_et.et <<'EOF' 28672error_table test conf 28673prefix CONFTEST 28674index 1 28675error_code CODE1, "CODE1" 28676index 128 28677error_code CODE2, "CODE2" 28678end 28679EOF 28680if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then 28681 save_CPPFLAGS="${CPPFLAGS}" 28682 if test -d "/usr/include/et"; then 28683 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" 28684 fi 28685 ac_ext=c 28686ac_cpp='$CPP $CPPFLAGS' 28687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28689ac_compiler_gnu=$ac_cv_c_compiler_gnu 28690 28691 if test "$cross_compiling" = yes; then : 28692 krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes 28693else 28694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28695/* end confdefs.h. */ 28696 28697#include <com_err.h> 28698#include <string.h> 28699#include "conftest_et.h" 28700int main(int argc, char **argv){ 28701#ifndef ERROR_TABLE_BASE_conf 28702#error compile_et does not handle error_table N M 28703#endif 28704return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;} 28705 28706_ACEOF 28707if ac_fn_c_try_run "$LINENO"; then : 28708 krb_cv_compile_et="yes" 28709else 28710 CPPFLAGS="${save_CPPFLAGS}" 28711fi 28712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28713 conftest.$ac_objext conftest.beam conftest.$ac_ext 28714fi 28715 28716fi 28717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_compile_et}" >&5 28718$as_echo "${krb_cv_compile_et}" >&6; } 28719if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then 28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if com_err generates a initialize_conf_error_table_r" >&5 28721$as_echo_n "checking for if com_err generates a initialize_conf_error_table_r... " >&6; } 28722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28723/* end confdefs.h. */ 28724#include "conftest_et.h" 28725_ACEOF 28726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28727 $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then : 28728 krb_cv_com_err_need_r="ok" 28729fi 28730rm -f conftest* 28731 28732 if test X"$krb_cv_com_err_need_r" = X ; then 28733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28734$as_echo "no" >&6; } 28735 krb_cv_compile_et=no 28736 else 28737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28738$as_echo "yes" >&6; } 28739 fi 28740fi 28741rm -fr conftest* 28742fi 28743 28744if test "${krb_cv_compile_et_cross}" = yes ; then 28745 krb_cv_com_err="cross" 28746elif test "${krb_cv_compile_et}" = "yes"; then 28747 krb_cv_save_LIBS="${LIBS}" 28748 LIBS="${LIBS} -lcom_err" 28749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5 28750$as_echo_n "checking for com_err... " >&6; } 28751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28752/* end confdefs.h. */ 28753#include <com_err.h> 28754int 28755main () 28756{ 28757 28758 const char *p; 28759 p = error_message(0); 28760 initialize_error_table_r(0,0,0,0); 28761 com_right_r(0, 0, 0, 0); 28762 28763 ; 28764 return 0; 28765} 28766_ACEOF 28767if ac_fn_c_try_link "$LINENO"; then : 28768 krb_cv_com_err="yes" 28769else 28770 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}" 28771fi 28772rm -f core conftest.err conftest.$ac_objext \ 28773 conftest$ac_exeext conftest.$ac_ext 28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_com_err}" >&5 28775$as_echo "${krb_cv_com_err}" >&6; } 28776 LIBS="${krb_cv_save_LIBS}" 28777else 28778 krb_cv_com_err="no" 28779fi 28780 28781if test "${krb_cv_com_err}" = "yes"; then 28782 DIR_com_err="" 28783 LIB_com_err="-lcom_err" 28784 LIB_com_err_a="" 28785 LIB_com_err_so="" 28786 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the already-installed com_err" >&5 28787$as_echo "$as_me: Using the already-installed com_err" >&6;} 28788 COMPILE_ET="${ac_cv_prog_COMPILE_ET}" 28789 localcomerr=no 28790elif test "${krb_cv_com_err}" = "cross"; then 28791 DIR_com_err="com_err" 28792 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 28793 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 28794 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 28795 { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err with toolchain compile_et" >&5 28796$as_echo "$as_me: Using our own com_err with toolchain compile_et" >&6;} 28797 COMPILE_ET="${ac_cv_prog_COMPILE_ET}" 28798 localcomerr=yes 28799else 28800 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et" 28801 DIR_com_err="com_err" 28802 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 28803 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 28804 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 28805 { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err" >&5 28806$as_echo "$as_me: Using our own com_err" >&6;} 28807 localcomerr=yes 28808fi 28809 if test "$localcomerr" = yes; then 28810 COM_ERR_TRUE= 28811 COM_ERR_FALSE='#' 28812else 28813 COM_ERR_TRUE='#' 28814 COM_ERR_FALSE= 28815fi 28816 28817 28818 28819 28820 28821 28822 28823 28824 28825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which authentication modules should be built" >&5 28826$as_echo_n "checking which authentication modules should be built... " >&6; } 28827 28828z='sia afskauthlib' 28829LIB_AUTH_SUBDIRS= 28830for i in $z; do 28831case $i in 28832sia) 28833if test "$ac_cv_header_siad_h" = yes; then 28834 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 28835fi 28836;; 28837pam) 28838case "${host}" in 28839*-*-freebsd*) ac_cv_want_pam_krb4=no ;; 28840*) ac_cv_want_pam_krb4=yes ;; 28841esac 28842 28843if test "$ac_cv_want_pam_krb4" = yes -a \ 28844 "$ac_cv_header_security_pam_modules_h" = yes -a \ 28845 "$enable_shared" = yes; then 28846 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 28847fi 28848;; 28849afskauthlib) 28850case "${host}" in 28851*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 28852esac 28853;; 28854esac 28855done 28856if test "$LIB_AUTH_SUBDIRS"; then 28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIB_AUTH_SUBDIRS" >&5 28858$as_echo "$LIB_AUTH_SUBDIRS" >&6; } 28859else 28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 28861$as_echo "none" >&6; } 28862fi 28863 28864 28865 28866 28867# This is done by AC_OUTPUT but we need the result here. 28868test "x$prefix" = xNONE && prefix=$ac_default_prefix 28869test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 28870 28871 28872 x="${bindir}" 28873 eval y="$x" 28874 while test "x$y" != "x$x"; do 28875 x="$y" 28876 eval y="$x" 28877 done 28878 28879cat >>confdefs.h <<_ACEOF 28880#define BINDIR "$x" 28881_ACEOF 28882 28883 x="${libdir}" 28884 eval y="$x" 28885 while test "x$y" != "x$x"; do 28886 x="$y" 28887 eval y="$x" 28888 done 28889 28890cat >>confdefs.h <<_ACEOF 28891#define LIBDIR "$x" 28892_ACEOF 28893 28894 x="${libexecdir}" 28895 eval y="$x" 28896 while test "x$y" != "x$x"; do 28897 x="$y" 28898 eval y="$x" 28899 done 28900 28901cat >>confdefs.h <<_ACEOF 28902#define LIBEXECDIR "$x" 28903_ACEOF 28904 28905 x="${localstatedir}" 28906 eval y="$x" 28907 while test "x$y" != "x$x"; do 28908 x="$y" 28909 eval y="$x" 28910 done 28911 28912cat >>confdefs.h <<_ACEOF 28913#define LOCALSTATEDIR "$x" 28914_ACEOF 28915 28916 x="${sbindir}" 28917 eval y="$x" 28918 while test "x$y" != "x$x"; do 28919 x="$y" 28920 eval y="$x" 28921 done 28922 28923cat >>confdefs.h <<_ACEOF 28924#define SBINDIR "$x" 28925_ACEOF 28926 28927 x="${sysconfdir}" 28928 eval y="$x" 28929 while test "x$y" != "x$x"; do 28930 x="$y" 28931 eval y="$x" 28932 done 28933 28934cat >>confdefs.h <<_ACEOF 28935#define SYSCONFDIR "$x" 28936_ACEOF 28937 28938 28939 28940 28941 28942# Check whether --enable-developer was given. 28943if test "${enable_developer+set}" = set; then : 28944 enableval=$enable_developer; 28945fi 28946 28947if test "X$enable_developer" = Xyes; then 28948 dwflags="-Werror" 28949fi 28950 if test "X$enable_developer" = Xyes; then 28951 DEVELOPER_MODE_TRUE= 28952 DEVELOPER_MODE_FALSE='#' 28953else 28954 DEVELOPER_MODE_TRUE='#' 28955 DEVELOPER_MODE_FALSE= 28956fi 28957 28958 28959WFLAGS_NOUNUSED="" 28960if test -z "$WFLAGS" -a "$GCC" = "yes"; then 28961 # leave these out for now: 28962 # -Wcast-align doesn't work well on alpha osf/1 28963 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 28964 # -Wmissing-declarations -Wnested-externs 28965 # -Wstrict-overflow=5 28966 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags" 28967 28968 # 28969 # WFLAGS_LITE can be appended to WFLAGS to turn off a host of warnings 28970 # that fail for various bits of older code in appl/. Let's not use it 28971 # for the main libraries, though. 28972 WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-shadow" 28973 # -Wno-unused-result (not supported on gcc-4.2) 28974 28975fi 28976 28977 28978 28979 28980 28981 28982 28983# Check whether --enable-heimdal-documentation was given. 28984if test "${enable_heimdal_documentation+set}" = set; then : 28985 enableval=$enable_heimdal_documentation; 28986fi 28987 28988 if test "$enable_heimdal_documentation" != no; then 28989 HEIMDAL_DOCUMENTATION_TRUE= 28990 HEIMDAL_DOCUMENTATION_FALSE='#' 28991else 28992 HEIMDAL_DOCUMENTATION_TRUE='#' 28993 HEIMDAL_DOCUMENTATION_FALSE= 28994fi 28995 28996 28997ac_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" 28998 28999 29000cat >confcache <<\_ACEOF 29001# This file is a shell script that caches the results of configure 29002# tests run on this system so they can be shared between configure 29003# scripts and configure runs, see configure's option --config-cache. 29004# It is not useful on other systems. If it contains results you don't 29005# want to keep, you may remove or edit it. 29006# 29007# config.status only pays attention to the cache file if you give it 29008# the --recheck option to rerun configure. 29009# 29010# `ac_cv_env_foo' variables (set or unset) will be overridden when 29011# loading this file, other *unset* `ac_cv_foo' will be assigned the 29012# following values. 29013 29014_ACEOF 29015 29016# The following way of writing the cache mishandles newlines in values, 29017# but we know of no workaround that is simple, portable, and efficient. 29018# So, we kill variables containing newlines. 29019# Ultrix sh set writes to stderr and can't be redirected directly, 29020# and sets the high bit in the cache file unless we assign to the vars. 29021( 29022 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 29023 eval ac_val=\$$ac_var 29024 case $ac_val in #( 29025 *${as_nl}*) 29026 case $ac_var in #( 29027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 29028$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 29029 esac 29030 case $ac_var in #( 29031 _ | IFS | as_nl) ;; #( 29032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 29033 *) { eval $ac_var=; unset $ac_var;} ;; 29034 esac ;; 29035 esac 29036 done 29037 29038 (set) 2>&1 | 29039 case $as_nl`(ac_space=' '; set) 2>&1` in #( 29040 *${as_nl}ac_space=\ *) 29041 # `set' does not quote correctly, so add quotes: double-quote 29042 # substitution turns \\\\ into \\, and sed turns \\ into \. 29043 sed -n \ 29044 "s/'/'\\\\''/g; 29045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 29046 ;; #( 29047 *) 29048 # `set' quotes correctly as required by POSIX, so do not add quotes. 29049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 29050 ;; 29051 esac | 29052 sort 29053) | 29054 sed ' 29055 /^ac_cv_env_/b end 29056 t clear 29057 :clear 29058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 29059 t end 29060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 29061 :end' >>confcache 29062if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 29063 if test -w "$cache_file"; then 29064 if test "x$cache_file" != "x/dev/null"; then 29065 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 29066$as_echo "$as_me: updating cache $cache_file" >&6;} 29067 if test ! -f "$cache_file" || test -h "$cache_file"; then 29068 cat confcache >"$cache_file" 29069 else 29070 case $cache_file in #( 29071 */* | ?:*) 29072 mv -f confcache "$cache_file"$$ && 29073 mv -f "$cache_file"$$ "$cache_file" ;; #( 29074 *) 29075 mv -f confcache "$cache_file" ;; 29076 esac 29077 fi 29078 fi 29079 else 29080 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 29081$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 29082 fi 29083fi 29084rm -f confcache 29085 29086test "x$prefix" = xNONE && prefix=$ac_default_prefix 29087# Let make expand exec_prefix. 29088test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 29089 29090DEFS=-DHAVE_CONFIG_H 29091 29092ac_libobjs= 29093ac_ltlibobjs= 29094U= 29095for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 29096 # 1. Remove the extension, and $U if already installed. 29097 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 29098 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 29099 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 29100 # will be set to the directory where LIBOBJS objects are built. 29101 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 29102 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 29103done 29104LIBOBJS=$ac_libobjs 29105 29106LTLIBOBJS=$ac_ltlibobjs 29107 29108 29109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 29110$as_echo_n "checking that generated files are newer than configure... " >&6; } 29111 if test -n "$am_sleep_pid"; then 29112 # Hide warnings about reused PIDs. 29113 wait $am_sleep_pid 2>/dev/null 29114 fi 29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 29116$as_echo "done" >&6; } 29117 if test -n "$EXEEXT"; then 29118 am__EXEEXT_TRUE= 29119 am__EXEEXT_FALSE='#' 29120else 29121 am__EXEEXT_TRUE='#' 29122 am__EXEEXT_FALSE= 29123fi 29124 29125if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 29126 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 29127Usually this means the macro was only invoked conditionally." "$LINENO" 5 29128fi 29129if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 29130 as_fn_error $? "conditional \"AMDEP\" was never defined. 29131Usually this means the macro was only invoked conditionally." "$LINENO" 5 29132fi 29133if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29134 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29135Usually this means the macro was only invoked conditionally." "$LINENO" 5 29136fi 29137if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29138 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29139Usually this means the macro was only invoked conditionally." "$LINENO" 5 29140fi 29141if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 29142 as_fn_error $? "conditional \"AIX\" was never defined. 29143Usually this means the macro was only invoked conditionally." "$LINENO" 5 29144fi 29145if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then 29146 as_fn_error $? "conditional \"AIX4\" was never defined. 29147Usually this means the macro was only invoked conditionally." "$LINENO" 5 29148fi 29149if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then 29150 as_fn_error $? "conditional \"HAVE_DLOPEN\" was never defined. 29151Usually this means the macro was only invoked conditionally." "$LINENO" 5 29152fi 29153if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then 29154 as_fn_error $? "conditional \"AIX_DYNAMIC_AFS\" was never defined. 29155Usually this means the macro was only invoked conditionally." "$LINENO" 5 29156fi 29157if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then 29158 as_fn_error $? "conditional \"IRIX\" was never defined. 29159Usually this means the macro was only invoked conditionally." "$LINENO" 5 29160fi 29161if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then 29162 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined. 29163Usually this means the macro was only invoked conditionally." "$LINENO" 5 29164fi 29165if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then 29166 as_fn_error $? "conditional \"versionscript\" was never defined. 29167Usually this means the macro was only invoked conditionally." "$LINENO" 5 29168fi 29169if test -z "${CROSS_COMPILE_TRUE}" && test -z "${CROSS_COMPILE_FALSE}"; then 29170 as_fn_error $? "conditional \"CROSS_COMPILE\" was never defined. 29171Usually this means the macro was only invoked conditionally." "$LINENO" 5 29172fi 29173if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then 29174 as_fn_error $? "conditional \"OPENLDAP_MODULE\" was never defined. 29175Usually this means the macro was only invoked conditionally." "$LINENO" 5 29176fi 29177if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then 29178 as_fn_error $? "conditional \"PKINIT\" was never defined. 29179Usually this means the macro was only invoked conditionally." "$LINENO" 5 29180fi 29181if test -z "${HAVE_CAPNG_TRUE}" && test -z "${HAVE_CAPNG_FALSE}"; then 29182 as_fn_error $? "conditional \"HAVE_CAPNG\" was never defined. 29183Usually this means the macro was only invoked conditionally." "$LINENO" 5 29184fi 29185if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then 29186 as_fn_error $? "conditional \"SQLITE3\" was never defined. 29187Usually this means the macro was only invoked conditionally." "$LINENO" 5 29188fi 29189if test -z "${have_scc_TRUE}" && test -z "${have_scc_FALSE}"; then 29190 as_fn_error $? "conditional \"have_scc\" was never defined. 29191Usually this means the macro was only invoked conditionally." "$LINENO" 5 29192fi 29193if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then 29194 as_fn_error $? "conditional \"KRB5\" was never defined. 29195Usually this means the macro was only invoked conditionally." "$LINENO" 5 29196fi 29197if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then 29198 as_fn_error $? "conditional \"do_roken_rename\" was never defined. 29199Usually this means the macro was only invoked conditionally." "$LINENO" 5 29200fi 29201if test -z "${HAVE_HCRYPTO_W_OPENSSL_TRUE}" && test -z "${HAVE_HCRYPTO_W_OPENSSL_FALSE}"; then 29202 as_fn_error $? "conditional \"HAVE_HCRYPTO_W_OPENSSL\" was never defined. 29203Usually this means the macro was only invoked conditionally." "$LINENO" 5 29204fi 29205if test -z "${ENABLE_PTHREAD_SUPPORT_TRUE}" && test -z "${ENABLE_PTHREAD_SUPPORT_FALSE}"; then 29206 as_fn_error $? "conditional \"ENABLE_PTHREAD_SUPPORT\" was never defined. 29207Usually this means the macro was only invoked conditionally." "$LINENO" 5 29208fi 29209if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then 29210 as_fn_error $? "conditional \"DCE\" was never defined. 29211Usually this means the macro was only invoked conditionally." "$LINENO" 5 29212fi 29213if test -z "${NO_AFS_TRUE}" && test -z "${NO_AFS_FALSE}"; then 29214 as_fn_error $? "conditional \"NO_AFS\" was never defined. 29215Usually this means the macro was only invoked conditionally." "$LINENO" 5 29216fi 29217if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then 29218 as_fn_error $? "conditional \"HAVE_DB1\" was never defined. 29219Usually this means the macro was only invoked conditionally." "$LINENO" 5 29220fi 29221if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then 29222 as_fn_error $? "conditional \"HAVE_DB3\" was never defined. 29223Usually this means the macro was only invoked conditionally." "$LINENO" 5 29224fi 29225if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then 29226 as_fn_error $? "conditional \"HAVE_LMDB\" was never defined. 29227Usually this means the macro was only invoked conditionally." "$LINENO" 5 29228fi 29229if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then 29230 as_fn_error $? "conditional \"HAVE_NDBM\" was never defined. 29231Usually this means the macro was only invoked conditionally." "$LINENO" 5 29232fi 29233if test -z "${HAVE_DBHEADER_TRUE}" && test -z "${HAVE_DBHEADER_FALSE}"; then 29234 as_fn_error $? "conditional \"HAVE_DBHEADER\" was never defined. 29235Usually this means the macro was only invoked conditionally." "$LINENO" 5 29236fi 29237if test -z "${DEVELOPER_MODE_TRUE}" && test -z "${DEVELOPER_MODE_FALSE}"; then 29238 as_fn_error $? "conditional \"DEVELOPER_MODE\" was never defined. 29239Usually this means the macro was only invoked conditionally." "$LINENO" 5 29240fi 29241if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then 29242 as_fn_error $? "conditional \"have_err_h\" was never defined. 29243Usually this means the macro was only invoked conditionally." "$LINENO" 5 29244fi 29245if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then 29246 as_fn_error $? "conditional \"have_ifaddrs_h\" was never defined. 29247Usually this means the macro was only invoked conditionally." "$LINENO" 5 29248fi 29249if test -z "${have_search_h_TRUE}" && test -z "${have_search_h_FALSE}"; then 29250 as_fn_error $? "conditional \"have_search_h\" was never defined. 29251Usually this means the macro was only invoked conditionally." "$LINENO" 5 29252fi 29253if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then 29254 as_fn_error $? "conditional \"have_vis_h\" was never defined. 29255Usually this means the macro was only invoked conditionally." "$LINENO" 5 29256fi 29257if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then 29258 as_fn_error $? "conditional \"have_glob_h\" was never defined. 29259Usually this means the macro was only invoked conditionally." "$LINENO" 5 29260fi 29261if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then 29262 as_fn_error $? "conditional \"have_cgetent\" was never defined. 29263Usually this means the macro was only invoked conditionally." "$LINENO" 5 29264fi 29265if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then 29266 as_fn_error $? "conditional \"have_fnmatch_h\" was never defined. 29267Usually this means the macro was only invoked conditionally." "$LINENO" 5 29268fi 29269if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then 29270 as_fn_error $? "conditional \"have_socket_wrapper\" was never defined. 29271Usually this means the macro was only invoked conditionally." "$LINENO" 5 29272fi 29273if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then 29274 as_fn_error $? "conditional \"OTP\" was never defined. 29275Usually this means the macro was only invoked conditionally." "$LINENO" 5 29276fi 29277if test -z "${have_gcd_TRUE}" && test -z "${have_gcd_FALSE}"; then 29278 as_fn_error $? "conditional \"have_gcd\" was never defined. 29279Usually this means the macro was only invoked conditionally." "$LINENO" 5 29280fi 29281if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then 29282 as_fn_error $? "conditional \"CATMAN\" was never defined. 29283Usually this means the macro was only invoked conditionally." "$LINENO" 5 29284fi 29285if test -z "${HAVE_DLADDR_TRUE}" && test -z "${HAVE_DLADDR_FALSE}"; then 29286 as_fn_error $? "conditional \"HAVE_DLADDR\" was never defined. 29287Usually this means the macro was only invoked conditionally." "$LINENO" 5 29288fi 29289if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then 29290 as_fn_error $? "conditional \"KCM\" was never defined. 29291Usually this means the macro was only invoked conditionally." "$LINENO" 5 29292fi 29293if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then 29294 as_fn_error $? "conditional \"FRAMEWORK_SECURITY\" was never defined. 29295Usually this means the macro was only invoked conditionally." "$LINENO" 5 29296fi 29297if test -z "${LIBEDIT_TRUE}" && test -z "${LIBEDIT_FALSE}"; then 29298 as_fn_error $? "conditional \"LIBEDIT\" was never defined. 29299Usually this means the macro was only invoked conditionally." "$LINENO" 5 29300fi 29301if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then 29302 as_fn_error $? "conditional \"COM_ERR\" was never defined. 29303Usually this means the macro was only invoked conditionally." "$LINENO" 5 29304fi 29305if test -z "${DEVELOPER_MODE_TRUE}" && test -z "${DEVELOPER_MODE_FALSE}"; then 29306 as_fn_error $? "conditional \"DEVELOPER_MODE\" was never defined. 29307Usually this means the macro was only invoked conditionally." "$LINENO" 5 29308fi 29309if test -z "${HEIMDAL_DOCUMENTATION_TRUE}" && test -z "${HEIMDAL_DOCUMENTATION_FALSE}"; then 29310 as_fn_error $? "conditional \"HEIMDAL_DOCUMENTATION\" was never defined. 29311Usually this means the macro was only invoked conditionally." "$LINENO" 5 29312fi 29313 29314: "${CONFIG_STATUS=./config.status}" 29315ac_write_fail=0 29316ac_clean_files_save=$ac_clean_files 29317ac_clean_files="$ac_clean_files $CONFIG_STATUS" 29318{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 29319$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 29320as_write_fail=0 29321cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 29322#! $SHELL 29323# Generated by $as_me. 29324# Run this file to recreate the current configuration. 29325# Compiler output produced by configure, useful for debugging 29326# configure, is in config.log if it exists. 29327 29328debug=false 29329ac_cs_recheck=false 29330ac_cs_silent=false 29331 29332SHELL=\${CONFIG_SHELL-$SHELL} 29333export SHELL 29334_ASEOF 29335cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 29336## -------------------- ## 29337## M4sh Initialization. ## 29338## -------------------- ## 29339 29340# Be more Bourne compatible 29341DUALCASE=1; export DUALCASE # for MKS sh 29342if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 29343 emulate sh 29344 NULLCMD=: 29345 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29346 # is contrary to our usage. Disable this feature. 29347 alias -g '${1+"$@"}'='"$@"' 29348 setopt NO_GLOB_SUBST 29349else 29350 case `(set -o) 2>/dev/null` in #( 29351 *posix*) : 29352 set -o posix ;; #( 29353 *) : 29354 ;; 29355esac 29356fi 29357 29358 29359as_nl=' 29360' 29361export as_nl 29362# Printing a long string crashes Solaris 7 /usr/bin/printf. 29363as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 29364as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 29365as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 29366# Prefer a ksh shell builtin over an external printf program on Solaris, 29367# but without wasting forks for bash or zsh. 29368if test -z "$BASH_VERSION$ZSH_VERSION" \ 29369 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 29370 as_echo='print -r --' 29371 as_echo_n='print -rn --' 29372elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 29373 as_echo='printf %s\n' 29374 as_echo_n='printf %s' 29375else 29376 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 29377 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 29378 as_echo_n='/usr/ucb/echo -n' 29379 else 29380 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 29381 as_echo_n_body='eval 29382 arg=$1; 29383 case $arg in #( 29384 *"$as_nl"*) 29385 expr "X$arg" : "X\\(.*\\)$as_nl"; 29386 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 29387 esac; 29388 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 29389 ' 29390 export as_echo_n_body 29391 as_echo_n='sh -c $as_echo_n_body as_echo' 29392 fi 29393 export as_echo_body 29394 as_echo='sh -c $as_echo_body as_echo' 29395fi 29396 29397# The user is always right. 29398if test "${PATH_SEPARATOR+set}" != set; then 29399 PATH_SEPARATOR=: 29400 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 29401 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 29402 PATH_SEPARATOR=';' 29403 } 29404fi 29405 29406 29407# IFS 29408# We need space, tab and new line, in precisely that order. Quoting is 29409# there to prevent editors from complaining about space-tab. 29410# (If _AS_PATH_WALK were called with IFS unset, it would disable word 29411# splitting by setting IFS to empty value.) 29412IFS=" "" $as_nl" 29413 29414# Find who we are. Look in the path if we contain no directory separator. 29415as_myself= 29416case $0 in #(( 29417 *[\\/]* ) as_myself=$0 ;; 29418 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29419for as_dir in $PATH 29420do 29421 IFS=$as_save_IFS 29422 test -z "$as_dir" && as_dir=. 29423 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 29424 done 29425IFS=$as_save_IFS 29426 29427 ;; 29428esac 29429# We did not find ourselves, most probably we were run as `sh COMMAND' 29430# in which case we are not to be found in the path. 29431if test "x$as_myself" = x; then 29432 as_myself=$0 29433fi 29434if test ! -f "$as_myself"; then 29435 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 29436 exit 1 29437fi 29438 29439# Unset variables that we do not need and which cause bugs (e.g. in 29440# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 29441# suppresses any "Segmentation fault" message there. '((' could 29442# trigger a bug in pdksh 5.2.14. 29443for as_var in BASH_ENV ENV MAIL MAILPATH 29444do eval test x\${$as_var+set} = xset \ 29445 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 29446done 29447PS1='$ ' 29448PS2='> ' 29449PS4='+ ' 29450 29451# NLS nuisances. 29452LC_ALL=C 29453export LC_ALL 29454LANGUAGE=C 29455export LANGUAGE 29456 29457# CDPATH. 29458(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 29459 29460 29461# as_fn_error STATUS ERROR [LINENO LOG_FD] 29462# ---------------------------------------- 29463# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 29464# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 29465# script with STATUS, using 1 if that was 0. 29466as_fn_error () 29467{ 29468 as_status=$1; test $as_status -eq 0 && as_status=1 29469 if test "$4"; then 29470 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 29471 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 29472 fi 29473 $as_echo "$as_me: error: $2" >&2 29474 as_fn_exit $as_status 29475} # as_fn_error 29476 29477 29478# as_fn_set_status STATUS 29479# ----------------------- 29480# Set $? to STATUS, without forking. 29481as_fn_set_status () 29482{ 29483 return $1 29484} # as_fn_set_status 29485 29486# as_fn_exit STATUS 29487# ----------------- 29488# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 29489as_fn_exit () 29490{ 29491 set +e 29492 as_fn_set_status $1 29493 exit $1 29494} # as_fn_exit 29495 29496# as_fn_unset VAR 29497# --------------- 29498# Portably unset VAR. 29499as_fn_unset () 29500{ 29501 { eval $1=; unset $1;} 29502} 29503as_unset=as_fn_unset 29504# as_fn_append VAR VALUE 29505# ---------------------- 29506# Append the text in VALUE to the end of the definition contained in VAR. Take 29507# advantage of any shell optimizations that allow amortized linear growth over 29508# repeated appends, instead of the typical quadratic growth present in naive 29509# implementations. 29510if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 29511 eval 'as_fn_append () 29512 { 29513 eval $1+=\$2 29514 }' 29515else 29516 as_fn_append () 29517 { 29518 eval $1=\$$1\$2 29519 } 29520fi # as_fn_append 29521 29522# as_fn_arith ARG... 29523# ------------------ 29524# Perform arithmetic evaluation on the ARGs, and store the result in the 29525# global $as_val. Take advantage of shells that can avoid forks. The arguments 29526# must be portable across $(()) and expr. 29527if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 29528 eval 'as_fn_arith () 29529 { 29530 as_val=$(( $* )) 29531 }' 29532else 29533 as_fn_arith () 29534 { 29535 as_val=`expr "$@" || test $? -eq 1` 29536 } 29537fi # as_fn_arith 29538 29539 29540if expr a : '\(a\)' >/dev/null 2>&1 && 29541 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29542 as_expr=expr 29543else 29544 as_expr=false 29545fi 29546 29547if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 29548 as_basename=basename 29549else 29550 as_basename=false 29551fi 29552 29553if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 29554 as_dirname=dirname 29555else 29556 as_dirname=false 29557fi 29558 29559as_me=`$as_basename -- "$0" || 29560$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 29561 X"$0" : 'X\(//\)$' \| \ 29562 X"$0" : 'X\(/\)' \| . 2>/dev/null || 29563$as_echo X/"$0" | 29564 sed '/^.*\/\([^/][^/]*\)\/*$/{ 29565 s//\1/ 29566 q 29567 } 29568 /^X\/\(\/\/\)$/{ 29569 s//\1/ 29570 q 29571 } 29572 /^X\/\(\/\).*/{ 29573 s//\1/ 29574 q 29575 } 29576 s/.*/./; q'` 29577 29578# Avoid depending upon Character Ranges. 29579as_cr_letters='abcdefghijklmnopqrstuvwxyz' 29580as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 29581as_cr_Letters=$as_cr_letters$as_cr_LETTERS 29582as_cr_digits='0123456789' 29583as_cr_alnum=$as_cr_Letters$as_cr_digits 29584 29585ECHO_C= ECHO_N= ECHO_T= 29586case `echo -n x` in #((((( 29587-n*) 29588 case `echo 'xy\c'` in 29589 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 29590 xy) ECHO_C='\c';; 29591 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 29592 ECHO_T=' ';; 29593 esac;; 29594*) 29595 ECHO_N='-n';; 29596esac 29597 29598rm -f conf$$ conf$$.exe conf$$.file 29599if test -d conf$$.dir; then 29600 rm -f conf$$.dir/conf$$.file 29601else 29602 rm -f conf$$.dir 29603 mkdir conf$$.dir 2>/dev/null 29604fi 29605if (echo >conf$$.file) 2>/dev/null; then 29606 if ln -s conf$$.file conf$$ 2>/dev/null; then 29607 as_ln_s='ln -s' 29608 # ... but there are two gotchas: 29609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 29610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 29611 # In both cases, we have to default to `cp -pR'. 29612 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29613 as_ln_s='cp -pR' 29614 elif ln conf$$.file conf$$ 2>/dev/null; then 29615 as_ln_s=ln 29616 else 29617 as_ln_s='cp -pR' 29618 fi 29619else 29620 as_ln_s='cp -pR' 29621fi 29622rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29623rmdir conf$$.dir 2>/dev/null 29624 29625 29626# as_fn_mkdir_p 29627# ------------- 29628# Create "$as_dir" as a directory, including parents if necessary. 29629as_fn_mkdir_p () 29630{ 29631 29632 case $as_dir in #( 29633 -*) as_dir=./$as_dir;; 29634 esac 29635 test -d "$as_dir" || eval $as_mkdir_p || { 29636 as_dirs= 29637 while :; do 29638 case $as_dir in #( 29639 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 29640 *) as_qdir=$as_dir;; 29641 esac 29642 as_dirs="'$as_qdir' $as_dirs" 29643 as_dir=`$as_dirname -- "$as_dir" || 29644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29645 X"$as_dir" : 'X\(//\)[^/]' \| \ 29646 X"$as_dir" : 'X\(//\)$' \| \ 29647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 29648$as_echo X"$as_dir" | 29649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29650 s//\1/ 29651 q 29652 } 29653 /^X\(\/\/\)[^/].*/{ 29654 s//\1/ 29655 q 29656 } 29657 /^X\(\/\/\)$/{ 29658 s//\1/ 29659 q 29660 } 29661 /^X\(\/\).*/{ 29662 s//\1/ 29663 q 29664 } 29665 s/.*/./; q'` 29666 test -d "$as_dir" && break 29667 done 29668 test -z "$as_dirs" || eval "mkdir $as_dirs" 29669 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 29670 29671 29672} # as_fn_mkdir_p 29673if mkdir -p . 2>/dev/null; then 29674 as_mkdir_p='mkdir -p "$as_dir"' 29675else 29676 test -d ./-p && rmdir ./-p 29677 as_mkdir_p=false 29678fi 29679 29680 29681# as_fn_executable_p FILE 29682# ----------------------- 29683# Test if FILE is an executable regular file. 29684as_fn_executable_p () 29685{ 29686 test -f "$1" && test -x "$1" 29687} # as_fn_executable_p 29688as_test_x='test -x' 29689as_executable_p=as_fn_executable_p 29690 29691# Sed expression to map a string onto a valid CPP name. 29692as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29693 29694# Sed expression to map a string onto a valid variable name. 29695as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29696 29697 29698exec 6>&1 29699## ----------------------------------- ## 29700## Main body of $CONFIG_STATUS script. ## 29701## ----------------------------------- ## 29702_ASEOF 29703test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 29704 29705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29706# Save the log message, to keep $0 and so on meaningful, and to 29707# report actual input values of CONFIG_FILES etc. instead of their 29708# values after options handling. 29709ac_log=" 29710This file was extended by Heimdal $as_me 7.7.0, which was 29711generated by GNU Autoconf 2.69. Invocation command line was 29712 29713 CONFIG_FILES = $CONFIG_FILES 29714 CONFIG_HEADERS = $CONFIG_HEADERS 29715 CONFIG_LINKS = $CONFIG_LINKS 29716 CONFIG_COMMANDS = $CONFIG_COMMANDS 29717 $ $0 $@ 29718 29719on `(hostname || uname -n) 2>/dev/null | sed 1q` 29720" 29721 29722_ACEOF 29723 29724case $ac_config_files in *" 29725"*) set x $ac_config_files; shift; ac_config_files=$*;; 29726esac 29727 29728case $ac_config_headers in *" 29729"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 29730esac 29731 29732 29733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29734# Files that config.status was made for. 29735config_files="$ac_config_files" 29736config_headers="$ac_config_headers" 29737config_commands="$ac_config_commands" 29738 29739_ACEOF 29740 29741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29742ac_cs_usage="\ 29743\`$as_me' instantiates files and other configuration actions 29744from templates according to the current configuration. Unless the files 29745and actions are specified as TAGs, all are instantiated by default. 29746 29747Usage: $0 [OPTION]... [TAG]... 29748 29749 -h, --help print this help, then exit 29750 -V, --version print version number and configuration settings, then exit 29751 --config print configuration, then exit 29752 -q, --quiet, --silent 29753 do not print progress messages 29754 -d, --debug don't remove temporary files 29755 --recheck update $as_me by reconfiguring in the same conditions 29756 --file=FILE[:TEMPLATE] 29757 instantiate the configuration file FILE 29758 --header=FILE[:TEMPLATE] 29759 instantiate the configuration header FILE 29760 29761Configuration files: 29762$config_files 29763 29764Configuration headers: 29765$config_headers 29766 29767Configuration commands: 29768$config_commands 29769 29770Report bugs to <https://github.com/heimdal/heimdal/issues>." 29771 29772_ACEOF 29773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29774ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 29775ac_cs_version="\\ 29776Heimdal config.status 7.7.0 29777configured by $0, generated by GNU Autoconf 2.69, 29778 with options \\"\$ac_cs_config\\" 29779 29780Copyright (C) 2012 Free Software Foundation, Inc. 29781This config.status script is free software; the Free Software Foundation 29782gives unlimited permission to copy, distribute and modify it." 29783 29784ac_pwd='$ac_pwd' 29785srcdir='$srcdir' 29786INSTALL='$INSTALL' 29787MKDIR_P='$MKDIR_P' 29788AWK='$AWK' 29789test -n "\$AWK" || AWK=awk 29790_ACEOF 29791 29792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29793# The default lists apply if the user does not specify any file. 29794ac_need_defaults=: 29795while test $# != 0 29796do 29797 case $1 in 29798 --*=?*) 29799 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 29801 ac_shift=: 29802 ;; 29803 --*=) 29804 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29805 ac_optarg= 29806 ac_shift=: 29807 ;; 29808 *) 29809 ac_option=$1 29810 ac_optarg=$2 29811 ac_shift=shift 29812 ;; 29813 esac 29814 29815 case $ac_option in 29816 # Handling of the options. 29817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 29818 ac_cs_recheck=: ;; 29819 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 29820 $as_echo "$ac_cs_version"; exit ;; 29821 --config | --confi | --conf | --con | --co | --c ) 29822 $as_echo "$ac_cs_config"; exit ;; 29823 --debug | --debu | --deb | --de | --d | -d ) 29824 debug=: ;; 29825 --file | --fil | --fi | --f ) 29826 $ac_shift 29827 case $ac_optarg in 29828 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29829 '') as_fn_error $? "missing file argument" ;; 29830 esac 29831 as_fn_append CONFIG_FILES " '$ac_optarg'" 29832 ac_need_defaults=false;; 29833 --header | --heade | --head | --hea ) 29834 $ac_shift 29835 case $ac_optarg in 29836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29837 esac 29838 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 29839 ac_need_defaults=false;; 29840 --he | --h) 29841 # Conflict between --help and --header 29842 as_fn_error $? "ambiguous option: \`$1' 29843Try \`$0 --help' for more information.";; 29844 --help | --hel | -h ) 29845 $as_echo "$ac_cs_usage"; exit ;; 29846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29847 | -silent | --silent | --silen | --sile | --sil | --si | --s) 29848 ac_cs_silent=: ;; 29849 29850 # This is an error. 29851 -*) as_fn_error $? "unrecognized option: \`$1' 29852Try \`$0 --help' for more information." ;; 29853 29854 *) as_fn_append ac_config_targets " $1" 29855 ac_need_defaults=false ;; 29856 29857 esac 29858 shift 29859done 29860 29861ac_configure_extra_args= 29862 29863if $ac_cs_silent; then 29864 exec 6>/dev/null 29865 ac_configure_extra_args="$ac_configure_extra_args --silent" 29866fi 29867 29868_ACEOF 29869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29870if \$ac_cs_recheck; then 29871 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 29872 shift 29873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 29874 CONFIG_SHELL='$SHELL' 29875 export CONFIG_SHELL 29876 exec "\$@" 29877fi 29878 29879_ACEOF 29880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29881exec 5>>config.log 29882{ 29883 echo 29884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 29885## Running $as_me. ## 29886_ASBOX 29887 $as_echo "$ac_log" 29888} >&5 29889 29890_ACEOF 29891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29892# 29893# INIT-COMMANDS 29894# 29895AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 29896 29897 29898# The HP-UX ksh and POSIX shell print the target directory to stdout 29899# if CDPATH is set. 29900(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 29901 29902sed_quote_subst='$sed_quote_subst' 29903double_quote_subst='$double_quote_subst' 29904delay_variable_subst='$delay_variable_subst' 29905macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 29906macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 29907enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 29908enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 29909AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 29910DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 29911OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 29912pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 29913enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 29914shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 29915SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 29916ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 29917PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 29918host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 29919host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 29920host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 29921build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 29922build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 29923build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 29924SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 29925Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 29926GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 29927EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 29928FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 29929LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 29930NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 29931LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 29932max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 29933ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 29934exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 29935lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 29936lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 29937lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 29938lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 29939lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 29940reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 29941reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 29942deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 29943file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 29944file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 29945want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 29946sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 29947AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 29948AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 29949archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 29950STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 29951RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 29952old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 29953old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 29954old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 29955lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 29956CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 29957CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 29958compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 29959GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 29960lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 29961lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 29962lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 29963lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 29964lt_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"`' 29965lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 29966nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 29967lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 29968lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 29969objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 29970MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 29971lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 29972lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 29973lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 29974lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 29975lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 29976need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 29977MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 29978DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 29979NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 29980LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 29981OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 29982OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 29983libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 29984shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 29985extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 29986archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 29987enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 29988export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 29989whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 29990compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 29991old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 29992old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 29993archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 29994archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 29995module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 29996module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 29997with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 29998allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 29999no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 30000hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 30001hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 30002hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 30003hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 30004hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 30005hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 30006hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 30007inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 30008link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 30009always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 30010export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 30011exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 30012include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 30013prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 30014postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 30015file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 30016variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 30017need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 30018need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 30019version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 30020runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 30021shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 30022shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 30023libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 30024library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 30025soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 30026install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 30027postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30028postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30029finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 30030finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 30031hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 30032sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 30033configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 30034configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 30035hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 30036enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 30037enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 30038enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 30039old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 30040striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 30041 30042LTCC='$LTCC' 30043LTCFLAGS='$LTCFLAGS' 30044compiler='$compiler_DEFAULT' 30045 30046# A function that is used when there is no print builtin or printf. 30047func_fallback_echo () 30048{ 30049 eval 'cat <<_LTECHO_EOF 30050\$1 30051_LTECHO_EOF' 30052} 30053 30054# Quote evaled strings. 30055for var in AS \ 30056DLLTOOL \ 30057OBJDUMP \ 30058SHELL \ 30059ECHO \ 30060PATH_SEPARATOR \ 30061SED \ 30062GREP \ 30063EGREP \ 30064FGREP \ 30065LD \ 30066NM \ 30067LN_S \ 30068lt_SP2NL \ 30069lt_NL2SP \ 30070reload_flag \ 30071deplibs_check_method \ 30072file_magic_cmd \ 30073file_magic_glob \ 30074want_nocaseglob \ 30075sharedlib_from_linklib_cmd \ 30076AR \ 30077AR_FLAGS \ 30078archiver_list_spec \ 30079STRIP \ 30080RANLIB \ 30081CC \ 30082CFLAGS \ 30083compiler \ 30084lt_cv_sys_global_symbol_pipe \ 30085lt_cv_sys_global_symbol_to_cdecl \ 30086lt_cv_sys_global_symbol_to_import \ 30087lt_cv_sys_global_symbol_to_c_name_address \ 30088lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 30089lt_cv_nm_interface \ 30090nm_file_list_spec \ 30091lt_cv_truncate_bin \ 30092lt_prog_compiler_no_builtin_flag \ 30093lt_prog_compiler_pic \ 30094lt_prog_compiler_wl \ 30095lt_prog_compiler_static \ 30096lt_cv_prog_compiler_c_o \ 30097need_locks \ 30098MANIFEST_TOOL \ 30099DSYMUTIL \ 30100NMEDIT \ 30101LIPO \ 30102OTOOL \ 30103OTOOL64 \ 30104shrext_cmds \ 30105export_dynamic_flag_spec \ 30106whole_archive_flag_spec \ 30107compiler_needs_object \ 30108with_gnu_ld \ 30109allow_undefined_flag \ 30110no_undefined_flag \ 30111hardcode_libdir_flag_spec \ 30112hardcode_libdir_separator \ 30113exclude_expsyms \ 30114include_expsyms \ 30115file_list_spec \ 30116variables_saved_for_relink \ 30117libname_spec \ 30118library_names_spec \ 30119soname_spec \ 30120install_override_mode \ 30121finish_eval \ 30122old_striplib \ 30123striplib; do 30124 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 30125 *[\\\\\\\`\\"\\\$]*) 30126 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 30127 ;; 30128 *) 30129 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 30130 ;; 30131 esac 30132done 30133 30134# Double-quote double-evaled strings. 30135for var in reload_cmds \ 30136old_postinstall_cmds \ 30137old_postuninstall_cmds \ 30138old_archive_cmds \ 30139extract_expsyms_cmds \ 30140old_archive_from_new_cmds \ 30141old_archive_from_expsyms_cmds \ 30142archive_cmds \ 30143archive_expsym_cmds \ 30144module_cmds \ 30145module_expsym_cmds \ 30146export_symbols_cmds \ 30147prelink_cmds \ 30148postlink_cmds \ 30149postinstall_cmds \ 30150postuninstall_cmds \ 30151finish_cmds \ 30152sys_lib_search_path_spec \ 30153configure_time_dlsearch_path \ 30154configure_time_lt_sys_library_path; do 30155 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 30156 *[\\\\\\\`\\"\\\$]*) 30157 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 30158 ;; 30159 *) 30160 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 30161 ;; 30162 esac 30163done 30164 30165ac_aux_dir='$ac_aux_dir' 30166 30167# See if we are running on zsh, and set the options that allow our 30168# commands through without removal of \ escapes INIT. 30169if test -n "\${ZSH_VERSION+set}"; then 30170 setopt NO_GLOB_SUBST 30171fi 30172 30173 30174 PACKAGE='$PACKAGE' 30175 VERSION='$VERSION' 30176 RM='$RM' 30177 ofile='$ofile' 30178 30179 30180 30181 30182_ACEOF 30183 30184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30185 30186# Handling of arguments. 30187for ac_config_target in $ac_config_targets 30188do 30189 case $ac_config_target in 30190 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 30191 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 30192 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 30193 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 30194 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 30195 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 30196 "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;; 30197 "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;; 30198 "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 30199 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 30200 "lib/base/Makefile") CONFIG_FILES="$CONFIG_FILES lib/base/Makefile" ;; 30201 "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 30202 "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 30203 "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;; 30204 "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;; 30205 "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 30206 "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;; 30207 "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 30208 "lib/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ipc/Makefile" ;; 30209 "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 30210 "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 30211 "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 30212 "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 30213 "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 30214 "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 30215 "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 30216 "lib/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sqlite/Makefile" ;; 30217 "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 30218 "lib/wind/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wind/Makefile" ;; 30219 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; 30220 "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 30221 "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 30222 "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 30223 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 30224 "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;; 30225 "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 30226 "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 30227 "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 30228 "appl/dbutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dbutils/Makefile" ;; 30229 "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;; 30230 "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 30231 "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 30232 "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 30233 "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 30234 "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 30235 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 30236 "tests/bin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/Makefile" ;; 30237 "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;; 30238 "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;; 30239 "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;; 30240 "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;; 30241 "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;; 30242 "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;; 30243 "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;; 30244 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 30245 "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;; 30246 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 30247 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 30248 30249 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 30250 esac 30251done 30252 30253 30254# If the user did not use the arguments to specify the items to instantiate, 30255# then the envvar interface is used. Set only those that are not. 30256# We use the long form for the default assignment because of an extremely 30257# bizarre bug on SunOS 4.1.3. 30258if $ac_need_defaults; then 30259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 30260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 30261 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 30262fi 30263 30264# Have a temporary directory for convenience. Make it in the build tree 30265# simply because there is no reason against having it here, and in addition, 30266# creating and moving files from /tmp can sometimes cause problems. 30267# Hook for its removal unless debugging. 30268# Note that there is a small window in which the directory will not be cleaned: 30269# after its creation but before its name has been assigned to `$tmp'. 30270$debug || 30271{ 30272 tmp= ac_tmp= 30273 trap 'exit_status=$? 30274 : "${ac_tmp:=$tmp}" 30275 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 30276' 0 30277 trap 'as_fn_exit 1' 1 2 13 15 30278} 30279# Create a (secure) tmp directory for tmp files. 30280 30281{ 30282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 30283 test -d "$tmp" 30284} || 30285{ 30286 tmp=./conf$$-$RANDOM 30287 (umask 077 && mkdir "$tmp") 30288} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 30289ac_tmp=$tmp 30290 30291# Set up the scripts for CONFIG_FILES section. 30292# No need to generate them if there are no CONFIG_FILES. 30293# This happens for instance with `./config.status config.h'. 30294if test -n "$CONFIG_FILES"; then 30295 30296 30297ac_cr=`echo X | tr X '\015'` 30298# On cygwin, bash can eat \r inside `` if the user requested igncr. 30299# But we know of no other shell where ac_cr would be empty at this 30300# point, so we can use a bashism as a fallback. 30301if test "x$ac_cr" = x; then 30302 eval ac_cr=\$\'\\r\' 30303fi 30304ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 30305if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 30306 ac_cs_awk_cr='\\r' 30307else 30308 ac_cs_awk_cr=$ac_cr 30309fi 30310 30311echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 30312_ACEOF 30313 30314 30315{ 30316 echo "cat >conf$$subs.awk <<_ACEOF" && 30317 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 30318 echo "_ACEOF" 30319} >conf$$subs.sh || 30320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 30321ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 30322ac_delim='%!_!# ' 30323for ac_last_try in false false false false false :; do 30324 . ./conf$$subs.sh || 30325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 30326 30327 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 30328 if test $ac_delim_n = $ac_delim_num; then 30329 break 30330 elif $ac_last_try; then 30331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 30332 else 30333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30334 fi 30335done 30336rm -f conf$$subs.sh 30337 30338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30339cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 30340_ACEOF 30341sed -n ' 30342h 30343s/^/S["/; s/!.*/"]=/ 30344p 30345g 30346s/^[^!]*!// 30347:repl 30348t repl 30349s/'"$ac_delim"'$// 30350t delim 30351:nl 30352h 30353s/\(.\{148\}\)..*/\1/ 30354t more1 30355s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 30356p 30357n 30358b repl 30359:more1 30360s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30361p 30362g 30363s/.\{148\}// 30364t nl 30365:delim 30366h 30367s/\(.\{148\}\)..*/\1/ 30368t more2 30369s/["\\]/\\&/g; s/^/"/; s/$/"/ 30370p 30371b 30372:more2 30373s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30374p 30375g 30376s/.\{148\}// 30377t delim 30378' <conf$$subs.awk | sed ' 30379/^[^""]/{ 30380 N 30381 s/\n// 30382} 30383' >>$CONFIG_STATUS || ac_write_fail=1 30384rm -f conf$$subs.awk 30385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30386_ACAWK 30387cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 30388 for (key in S) S_is_set[key] = 1 30389 FS = "" 30390 30391} 30392{ 30393 line = $ 0 30394 nfields = split(line, field, "@") 30395 substed = 0 30396 len = length(field[1]) 30397 for (i = 2; i < nfields; i++) { 30398 key = field[i] 30399 keylen = length(key) 30400 if (S_is_set[key]) { 30401 value = S[key] 30402 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 30403 len += length(value) + length(field[++i]) 30404 substed = 1 30405 } else 30406 len += 1 + keylen 30407 } 30408 30409 print line 30410} 30411 30412_ACAWK 30413_ACEOF 30414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30415if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 30416 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 30417else 30418 cat 30419fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 30420 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 30421_ACEOF 30422 30423# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 30424# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 30425# trailing colons and then remove the whole line if VPATH becomes empty 30426# (actually we leave an empty line to preserve line numbers). 30427if test "x$srcdir" = x.; then 30428 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 30429h 30430s/// 30431s/^/:/ 30432s/[ ]*$/:/ 30433s/:\$(srcdir):/:/g 30434s/:\${srcdir}:/:/g 30435s/:@srcdir@:/:/g 30436s/^:*// 30437s/:*$// 30438x 30439s/\(=[ ]*\).*/\1/ 30440G 30441s/\n// 30442s/^[^=]*=[ ]*$// 30443}' 30444fi 30445 30446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30447fi # test -n "$CONFIG_FILES" 30448 30449# Set up the scripts for CONFIG_HEADERS section. 30450# No need to generate them if there are no CONFIG_HEADERS. 30451# This happens for instance with `./config.status Makefile'. 30452if test -n "$CONFIG_HEADERS"; then 30453cat >"$ac_tmp/defines.awk" <<\_ACAWK || 30454BEGIN { 30455_ACEOF 30456 30457# Transform confdefs.h into an awk script `defines.awk', embedded as 30458# here-document in config.status, that substitutes the proper values into 30459# config.h.in to produce config.h. 30460 30461# Create a delimiter string that does not exist in confdefs.h, to ease 30462# handling of long lines. 30463ac_delim='%!_!# ' 30464for ac_last_try in false false :; do 30465 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 30466 if test -z "$ac_tt"; then 30467 break 30468 elif $ac_last_try; then 30469 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 30470 else 30471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30472 fi 30473done 30474 30475# For the awk script, D is an array of macro values keyed by name, 30476# likewise P contains macro parameters if any. Preserve backslash 30477# newline sequences. 30478 30479ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 30480sed -n ' 30481s/.\{148\}/&'"$ac_delim"'/g 30482t rset 30483:rset 30484s/^[ ]*#[ ]*define[ ][ ]*/ / 30485t def 30486d 30487:def 30488s/\\$// 30489t bsnl 30490s/["\\]/\\&/g 30491s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30492D["\1"]=" \3"/p 30493s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 30494d 30495:bsnl 30496s/["\\]/\\&/g 30497s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30498D["\1"]=" \3\\\\\\n"\\/p 30499t cont 30500s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 30501t cont 30502d 30503:cont 30504n 30505s/.\{148\}/&'"$ac_delim"'/g 30506t clear 30507:clear 30508s/\\$// 30509t bsnlc 30510s/["\\]/\\&/g; s/^/"/; s/$/"/p 30511d 30512:bsnlc 30513s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 30514b cont 30515' <confdefs.h | sed ' 30516s/'"$ac_delim"'/"\\\ 30517"/g' >>$CONFIG_STATUS || ac_write_fail=1 30518 30519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30520 for (key in D) D_is_set[key] = 1 30521 FS = "" 30522} 30523/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 30524 line = \$ 0 30525 split(line, arg, " ") 30526 if (arg[1] == "#") { 30527 defundef = arg[2] 30528 mac1 = arg[3] 30529 } else { 30530 defundef = substr(arg[1], 2) 30531 mac1 = arg[2] 30532 } 30533 split(mac1, mac2, "(") #) 30534 macro = mac2[1] 30535 prefix = substr(line, 1, index(line, defundef) - 1) 30536 if (D_is_set[macro]) { 30537 # Preserve the white space surrounding the "#". 30538 print prefix "define", macro P[macro] D[macro] 30539 next 30540 } else { 30541 # Replace #undef with comments. This is necessary, for example, 30542 # in the case of _POSIX_SOURCE, which is predefined and required 30543 # on some systems where configure will not decide to define it. 30544 if (defundef == "undef") { 30545 print "/*", prefix defundef, macro, "*/" 30546 next 30547 } 30548 } 30549} 30550{ print } 30551_ACAWK 30552_ACEOF 30553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30554 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 30555fi # test -n "$CONFIG_HEADERS" 30556 30557 30558eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 30559shift 30560for ac_tag 30561do 30562 case $ac_tag in 30563 :[FHLC]) ac_mode=$ac_tag; continue;; 30564 esac 30565 case $ac_mode$ac_tag in 30566 :[FHL]*:*);; 30567 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 30568 :[FH]-) ac_tag=-:-;; 30569 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 30570 esac 30571 ac_save_IFS=$IFS 30572 IFS=: 30573 set x $ac_tag 30574 IFS=$ac_save_IFS 30575 shift 30576 ac_file=$1 30577 shift 30578 30579 case $ac_mode in 30580 :L) ac_source=$1;; 30581 :[FH]) 30582 ac_file_inputs= 30583 for ac_f 30584 do 30585 case $ac_f in 30586 -) ac_f="$ac_tmp/stdin";; 30587 *) # Look for the file first in the build tree, then in the source tree 30588 # (if the path is not absolute). The absolute path cannot be DOS-style, 30589 # because $ac_f cannot contain `:'. 30590 test -f "$ac_f" || 30591 case $ac_f in 30592 [\\/$]*) false;; 30593 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 30594 esac || 30595 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 30596 esac 30597 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 30598 as_fn_append ac_file_inputs " '$ac_f'" 30599 done 30600 30601 # Let's still pretend it is `configure' which instantiates (i.e., don't 30602 # use $as_me), people would be surprised to read: 30603 # /* config.h. Generated by config.status. */ 30604 configure_input='Generated from '` 30605 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 30606 `' by configure.' 30607 if test x"$ac_file" != x-; then 30608 configure_input="$ac_file. $configure_input" 30609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 30610$as_echo "$as_me: creating $ac_file" >&6;} 30611 fi 30612 # Neutralize special characters interpreted by sed in replacement strings. 30613 case $configure_input in #( 30614 *\&* | *\|* | *\\* ) 30615 ac_sed_conf_input=`$as_echo "$configure_input" | 30616 sed 's/[\\\\&|]/\\\\&/g'`;; #( 30617 *) ac_sed_conf_input=$configure_input;; 30618 esac 30619 30620 case $ac_tag in 30621 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 30622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 30623 esac 30624 ;; 30625 esac 30626 30627 ac_dir=`$as_dirname -- "$ac_file" || 30628$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30629 X"$ac_file" : 'X\(//\)[^/]' \| \ 30630 X"$ac_file" : 'X\(//\)$' \| \ 30631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30632$as_echo X"$ac_file" | 30633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30634 s//\1/ 30635 q 30636 } 30637 /^X\(\/\/\)[^/].*/{ 30638 s//\1/ 30639 q 30640 } 30641 /^X\(\/\/\)$/{ 30642 s//\1/ 30643 q 30644 } 30645 /^X\(\/\).*/{ 30646 s//\1/ 30647 q 30648 } 30649 s/.*/./; q'` 30650 as_dir="$ac_dir"; as_fn_mkdir_p 30651 ac_builddir=. 30652 30653case "$ac_dir" in 30654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30655*) 30656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 30657 # A ".." for each directory in $ac_dir_suffix. 30658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 30659 case $ac_top_builddir_sub in 30660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30662 esac ;; 30663esac 30664ac_abs_top_builddir=$ac_pwd 30665ac_abs_builddir=$ac_pwd$ac_dir_suffix 30666# for backward compatibility: 30667ac_top_builddir=$ac_top_build_prefix 30668 30669case $srcdir in 30670 .) # We are building in place. 30671 ac_srcdir=. 30672 ac_top_srcdir=$ac_top_builddir_sub 30673 ac_abs_top_srcdir=$ac_pwd ;; 30674 [\\/]* | ?:[\\/]* ) # Absolute name. 30675 ac_srcdir=$srcdir$ac_dir_suffix; 30676 ac_top_srcdir=$srcdir 30677 ac_abs_top_srcdir=$srcdir ;; 30678 *) # Relative name. 30679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 30680 ac_top_srcdir=$ac_top_build_prefix$srcdir 30681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 30682esac 30683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 30684 30685 30686 case $ac_mode in 30687 :F) 30688 # 30689 # CONFIG_FILE 30690 # 30691 30692 case $INSTALL in 30693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 30694 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 30695 esac 30696 ac_MKDIR_P=$MKDIR_P 30697 case $MKDIR_P in 30698 [\\/$]* | ?:[\\/]* ) ;; 30699 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 30700 esac 30701_ACEOF 30702 30703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30704# If the template does not know about datarootdir, expand it. 30705# FIXME: This hack should be removed a few years after 2.60. 30706ac_datarootdir_hack=; ac_datarootdir_seen= 30707ac_sed_dataroot=' 30708/datarootdir/ { 30709 p 30710 q 30711} 30712/@datadir@/p 30713/@docdir@/p 30714/@infodir@/p 30715/@localedir@/p 30716/@mandir@/p' 30717case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 30718*datarootdir*) ac_datarootdir_seen=yes;; 30719*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 30720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 30721$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 30722_ACEOF 30723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30724 ac_datarootdir_hack=' 30725 s&@datadir@&$datadir&g 30726 s&@docdir@&$docdir&g 30727 s&@infodir@&$infodir&g 30728 s&@localedir@&$localedir&g 30729 s&@mandir@&$mandir&g 30730 s&\\\${datarootdir}&$datarootdir&g' ;; 30731esac 30732_ACEOF 30733 30734# Neutralize VPATH when `$srcdir' = `.'. 30735# Shell code in configure.ac might set extrasub. 30736# FIXME: do we really want to maintain this feature? 30737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30738ac_sed_extra="$ac_vpsub 30739$extrasub 30740_ACEOF 30741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30742:t 30743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30744s|@configure_input@|$ac_sed_conf_input|;t t 30745s&@top_builddir@&$ac_top_builddir_sub&;t t 30746s&@top_build_prefix@&$ac_top_build_prefix&;t t 30747s&@srcdir@&$ac_srcdir&;t t 30748s&@abs_srcdir@&$ac_abs_srcdir&;t t 30749s&@top_srcdir@&$ac_top_srcdir&;t t 30750s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 30751s&@builddir@&$ac_builddir&;t t 30752s&@abs_builddir@&$ac_abs_builddir&;t t 30753s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 30754s&@INSTALL@&$ac_INSTALL&;t t 30755s&@MKDIR_P@&$ac_MKDIR_P&;t t 30756$ac_datarootdir_hack 30757" 30758eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 30759 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30760 30761test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 30762 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 30763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 30764 "$ac_tmp/out"`; test -z "$ac_out"; } && 30765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30766which seems to be undefined. Please make sure it is defined" >&5 30767$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30768which seems to be undefined. Please make sure it is defined" >&2;} 30769 30770 rm -f "$ac_tmp/stdin" 30771 case $ac_file in 30772 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 30773 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 30774 esac \ 30775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30776 ;; 30777 :H) 30778 # 30779 # CONFIG_HEADER 30780 # 30781 if test x"$ac_file" != x-; then 30782 { 30783 $as_echo "/* $configure_input */" \ 30784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 30785 } >"$ac_tmp/config.h" \ 30786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30787 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 30788 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 30789$as_echo "$as_me: $ac_file is unchanged" >&6;} 30790 else 30791 rm -f "$ac_file" 30792 mv "$ac_tmp/config.h" "$ac_file" \ 30793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30794 fi 30795 else 30796 $as_echo "/* $configure_input */" \ 30797 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 30798 || as_fn_error $? "could not create -" "$LINENO" 5 30799 fi 30800# Compute "$ac_file"'s index in $config_headers. 30801_am_arg="$ac_file" 30802_am_stamp_count=1 30803for _am_header in $config_headers :; do 30804 case $_am_header in 30805 $_am_arg | $_am_arg:* ) 30806 break ;; 30807 * ) 30808 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 30809 esac 30810done 30811echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 30812$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30813 X"$_am_arg" : 'X\(//\)[^/]' \| \ 30814 X"$_am_arg" : 'X\(//\)$' \| \ 30815 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 30816$as_echo X"$_am_arg" | 30817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30818 s//\1/ 30819 q 30820 } 30821 /^X\(\/\/\)[^/].*/{ 30822 s//\1/ 30823 q 30824 } 30825 /^X\(\/\/\)$/{ 30826 s//\1/ 30827 q 30828 } 30829 /^X\(\/\).*/{ 30830 s//\1/ 30831 q 30832 } 30833 s/.*/./; q'`/stamp-h$_am_stamp_count 30834 ;; 30835 30836 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 30837$as_echo "$as_me: executing $ac_file commands" >&6;} 30838 ;; 30839 esac 30840 30841 30842 case $ac_file$ac_mode in 30843 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 30844 # Older Autoconf quotes --file arguments for eval, but not when files 30845 # are listed without --file. Let's play safe and only enable the eval 30846 # if we detect the quoting. 30847 case $CONFIG_FILES in 30848 *\'*) eval set x "$CONFIG_FILES" ;; 30849 *) set x $CONFIG_FILES ;; 30850 esac 30851 shift 30852 for mf 30853 do 30854 # Strip MF so we end up with the name of the file. 30855 mf=`echo "$mf" | sed -e 's/:.*$//'` 30856 # Check whether this is an Automake generated Makefile or not. 30857 # We used to match only the files named 'Makefile.in', but 30858 # some people rename them; so instead we look at the file content. 30859 # Grep'ing the first line is not enough: some people post-process 30860 # each Makefile.in and add a new line on top of each file to say so. 30861 # Grep'ing the whole file is not good either: AIX grep has a line 30862 # limit of 2048, but all sed's we know have understand at least 4000. 30863 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 30864 dirpart=`$as_dirname -- "$mf" || 30865$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30866 X"$mf" : 'X\(//\)[^/]' \| \ 30867 X"$mf" : 'X\(//\)$' \| \ 30868 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 30869$as_echo X"$mf" | 30870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30871 s//\1/ 30872 q 30873 } 30874 /^X\(\/\/\)[^/].*/{ 30875 s//\1/ 30876 q 30877 } 30878 /^X\(\/\/\)$/{ 30879 s//\1/ 30880 q 30881 } 30882 /^X\(\/\).*/{ 30883 s//\1/ 30884 q 30885 } 30886 s/.*/./; q'` 30887 else 30888 continue 30889 fi 30890 # Extract the definition of DEPDIR, am__include, and am__quote 30891 # from the Makefile without running 'make'. 30892 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 30893 test -z "$DEPDIR" && continue 30894 am__include=`sed -n 's/^am__include = //p' < "$mf"` 30895 test -z "$am__include" && continue 30896 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 30897 # Find all dependency output files, they are included files with 30898 # $(DEPDIR) in their names. We invoke sed twice because it is the 30899 # simplest approach to changing $(DEPDIR) to its actual value in the 30900 # expansion. 30901 for file in `sed -n " 30902 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 30903 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 30904 # Make sure the directory exists. 30905 test -f "$dirpart/$file" && continue 30906 fdir=`$as_dirname -- "$file" || 30907$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30908 X"$file" : 'X\(//\)[^/]' \| \ 30909 X"$file" : 'X\(//\)$' \| \ 30910 X"$file" : 'X\(/\)' \| . 2>/dev/null || 30911$as_echo X"$file" | 30912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30913 s//\1/ 30914 q 30915 } 30916 /^X\(\/\/\)[^/].*/{ 30917 s//\1/ 30918 q 30919 } 30920 /^X\(\/\/\)$/{ 30921 s//\1/ 30922 q 30923 } 30924 /^X\(\/\).*/{ 30925 s//\1/ 30926 q 30927 } 30928 s/.*/./; q'` 30929 as_dir=$dirpart/$fdir; as_fn_mkdir_p 30930 # echo "creating $dirpart/$file" 30931 echo '# dummy' > "$dirpart/$file" 30932 done 30933 done 30934} 30935 ;; 30936 "libtool":C) 30937 30938 # See if we are running on zsh, and set the options that allow our 30939 # commands through without removal of \ escapes. 30940 if test -n "${ZSH_VERSION+set}"; then 30941 setopt NO_GLOB_SUBST 30942 fi 30943 30944 cfgfile=${ofile}T 30945 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 30946 $RM "$cfgfile" 30947 30948 cat <<_LT_EOF >> "$cfgfile" 30949#! $SHELL 30950# Generated automatically by $as_me ($PACKAGE) $VERSION 30951# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 30952# NOTE: Changes made to this file will be lost: look at ltmain.sh. 30953 30954# Provide generalized library-building support services. 30955# Written by Gordon Matzigkeit, 1996 30956 30957# Copyright (C) 2014 Free Software Foundation, Inc. 30958# This is free software; see the source for copying conditions. There is NO 30959# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30960 30961# GNU Libtool is free software; you can redistribute it and/or modify 30962# it under the terms of the GNU General Public License as published by 30963# the Free Software Foundation; either version 2 of of the License, or 30964# (at your option) any later version. 30965# 30966# As a special exception to the GNU General Public License, if you 30967# distribute this file as part of a program or library that is built 30968# using GNU Libtool, you may include this file under the same 30969# distribution terms that you use for the rest of that program. 30970# 30971# GNU Libtool is distributed in the hope that it will be useful, but 30972# WITHOUT ANY WARRANTY; without even the implied warranty of 30973# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30974# GNU General Public License for more details. 30975# 30976# You should have received a copy of the GNU General Public License 30977# along with this program. If not, see <http://www.gnu.org/licenses/>. 30978 30979 30980# The names of the tagged configurations supported by this script. 30981available_tags='' 30982 30983# Configured defaults for sys_lib_dlsearch_path munging. 30984: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 30985 30986# ### BEGIN LIBTOOL CONFIG 30987 30988# Which release of libtool.m4 was used? 30989macro_version=$macro_version 30990macro_revision=$macro_revision 30991 30992# Whether or not to build shared libraries. 30993build_libtool_libs=$enable_shared 30994 30995# Whether or not to build static libraries. 30996build_old_libs=$enable_static 30997 30998# Assembler program. 30999AS=$lt_AS 31000 31001# DLL creation program. 31002DLLTOOL=$lt_DLLTOOL 31003 31004# Object dumper program. 31005OBJDUMP=$lt_OBJDUMP 31006 31007# What type of objects to build. 31008pic_mode=$pic_mode 31009 31010# Whether or not to optimize for fast installation. 31011fast_install=$enable_fast_install 31012 31013# Shared archive member basename,for filename based shared library versioning on AIX. 31014shared_archive_member_spec=$shared_archive_member_spec 31015 31016# Shell to use when invoking shell scripts. 31017SHELL=$lt_SHELL 31018 31019# An echo program that protects backslashes. 31020ECHO=$lt_ECHO 31021 31022# The PATH separator for the build system. 31023PATH_SEPARATOR=$lt_PATH_SEPARATOR 31024 31025# The host system. 31026host_alias=$host_alias 31027host=$host 31028host_os=$host_os 31029 31030# The build system. 31031build_alias=$build_alias 31032build=$build 31033build_os=$build_os 31034 31035# A sed program that does not truncate output. 31036SED=$lt_SED 31037 31038# Sed that helps us avoid accidentally triggering echo(1) options like -n. 31039Xsed="\$SED -e 1s/^X//" 31040 31041# A grep program that handles long lines. 31042GREP=$lt_GREP 31043 31044# An ERE matcher. 31045EGREP=$lt_EGREP 31046 31047# A literal string matcher. 31048FGREP=$lt_FGREP 31049 31050# A BSD- or MS-compatible name lister. 31051NM=$lt_NM 31052 31053# Whether we need soft or hard links. 31054LN_S=$lt_LN_S 31055 31056# What is the maximum length of a command? 31057max_cmd_len=$max_cmd_len 31058 31059# Object file suffix (normally "o"). 31060objext=$ac_objext 31061 31062# Executable file suffix (normally ""). 31063exeext=$exeext 31064 31065# whether the shell understands "unset". 31066lt_unset=$lt_unset 31067 31068# turn spaces into newlines. 31069SP2NL=$lt_lt_SP2NL 31070 31071# turn newlines into spaces. 31072NL2SP=$lt_lt_NL2SP 31073 31074# convert \$build file names to \$host format. 31075to_host_file_cmd=$lt_cv_to_host_file_cmd 31076 31077# convert \$build files to toolchain format. 31078to_tool_file_cmd=$lt_cv_to_tool_file_cmd 31079 31080# Method to check whether dependent libraries are shared objects. 31081deplibs_check_method=$lt_deplibs_check_method 31082 31083# Command to use when deplibs_check_method = "file_magic". 31084file_magic_cmd=$lt_file_magic_cmd 31085 31086# How to find potential files when deplibs_check_method = "file_magic". 31087file_magic_glob=$lt_file_magic_glob 31088 31089# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 31090want_nocaseglob=$lt_want_nocaseglob 31091 31092# Command to associate shared and link libraries. 31093sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 31094 31095# The archiver. 31096AR=$lt_AR 31097 31098# Flags to create an archive. 31099AR_FLAGS=$lt_AR_FLAGS 31100 31101# How to feed a file listing to the archiver. 31102archiver_list_spec=$lt_archiver_list_spec 31103 31104# A symbol stripping program. 31105STRIP=$lt_STRIP 31106 31107# Commands used to install an old-style archive. 31108RANLIB=$lt_RANLIB 31109old_postinstall_cmds=$lt_old_postinstall_cmds 31110old_postuninstall_cmds=$lt_old_postuninstall_cmds 31111 31112# Whether to use a lock for old archive extraction. 31113lock_old_archive_extraction=$lock_old_archive_extraction 31114 31115# A C compiler. 31116LTCC=$lt_CC 31117 31118# LTCC compiler flags. 31119LTCFLAGS=$lt_CFLAGS 31120 31121# Take the output of nm and produce a listing of raw symbols and C names. 31122global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 31123 31124# Transform the output of nm in a proper C declaration. 31125global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 31126 31127# Transform the output of nm into a list of symbols to manually relocate. 31128global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 31129 31130# Transform the output of nm in a C name address pair. 31131global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 31132 31133# Transform the output of nm in a C name address pair when lib prefix is needed. 31134global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 31135 31136# The name lister interface. 31137nm_interface=$lt_lt_cv_nm_interface 31138 31139# Specify filename containing input files for \$NM. 31140nm_file_list_spec=$lt_nm_file_list_spec 31141 31142# The root where to search for dependent libraries,and where our libraries should be installed. 31143lt_sysroot=$lt_sysroot 31144 31145# Command to truncate a binary pipe. 31146lt_truncate_bin=$lt_lt_cv_truncate_bin 31147 31148# The name of the directory that contains temporary libtool files. 31149objdir=$objdir 31150 31151# Used to examine libraries when file_magic_cmd begins with "file". 31152MAGIC_CMD=$MAGIC_CMD 31153 31154# Must we lock files when doing compilation? 31155need_locks=$lt_need_locks 31156 31157# Manifest tool. 31158MANIFEST_TOOL=$lt_MANIFEST_TOOL 31159 31160# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 31161DSYMUTIL=$lt_DSYMUTIL 31162 31163# Tool to change global to local symbols on Mac OS X. 31164NMEDIT=$lt_NMEDIT 31165 31166# Tool to manipulate fat objects and archives on Mac OS X. 31167LIPO=$lt_LIPO 31168 31169# ldd/readelf like tool for Mach-O binaries on Mac OS X. 31170OTOOL=$lt_OTOOL 31171 31172# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 31173OTOOL64=$lt_OTOOL64 31174 31175# Old archive suffix (normally "a"). 31176libext=$libext 31177 31178# Shared library suffix (normally ".so"). 31179shrext_cmds=$lt_shrext_cmds 31180 31181# The commands to extract the exported symbol list from a shared archive. 31182extract_expsyms_cmds=$lt_extract_expsyms_cmds 31183 31184# Variables whose values should be saved in libtool wrapper scripts and 31185# restored at link time. 31186variables_saved_for_relink=$lt_variables_saved_for_relink 31187 31188# Do we need the "lib" prefix for modules? 31189need_lib_prefix=$need_lib_prefix 31190 31191# Do we need a version for libraries? 31192need_version=$need_version 31193 31194# Library versioning type. 31195version_type=$version_type 31196 31197# Shared library runtime path variable. 31198runpath_var=$runpath_var 31199 31200# Shared library path variable. 31201shlibpath_var=$shlibpath_var 31202 31203# Is shlibpath searched before the hard-coded library search path? 31204shlibpath_overrides_runpath=$shlibpath_overrides_runpath 31205 31206# Format of library name prefix. 31207libname_spec=$lt_libname_spec 31208 31209# List of archive names. First name is the real one, the rest are links. 31210# The last name is the one that the linker finds with -lNAME 31211library_names_spec=$lt_library_names_spec 31212 31213# The coded name of the library, if different from the real name. 31214soname_spec=$lt_soname_spec 31215 31216# Permission mode override for installation of shared libraries. 31217install_override_mode=$lt_install_override_mode 31218 31219# Command to use after installation of a shared archive. 31220postinstall_cmds=$lt_postinstall_cmds 31221 31222# Command to use after uninstallation of a shared archive. 31223postuninstall_cmds=$lt_postuninstall_cmds 31224 31225# Commands used to finish a libtool library installation in a directory. 31226finish_cmds=$lt_finish_cmds 31227 31228# As "finish_cmds", except a single script fragment to be evaled but 31229# not shown. 31230finish_eval=$lt_finish_eval 31231 31232# Whether we should hardcode library paths into libraries. 31233hardcode_into_libs=$hardcode_into_libs 31234 31235# Compile-time system search path for libraries. 31236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 31237 31238# Detected run-time system search path for libraries. 31239sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 31240 31241# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 31242configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 31243 31244# Whether dlopen is supported. 31245dlopen_support=$enable_dlopen 31246 31247# Whether dlopen of programs is supported. 31248dlopen_self=$enable_dlopen_self 31249 31250# Whether dlopen of statically linked programs is supported. 31251dlopen_self_static=$enable_dlopen_self_static 31252 31253# Commands to strip libraries. 31254old_striplib=$lt_old_striplib 31255striplib=$lt_striplib 31256 31257 31258# The linker used to build libraries. 31259LD=$lt_LD 31260 31261# How to create reloadable object files. 31262reload_flag=$lt_reload_flag 31263reload_cmds=$lt_reload_cmds 31264 31265# Commands used to build an old-style archive. 31266old_archive_cmds=$lt_old_archive_cmds 31267 31268# A language specific compiler. 31269CC=$lt_compiler 31270 31271# Is the compiler the GNU compiler? 31272with_gcc=$GCC 31273 31274# Compiler flag to turn off builtin functions. 31275no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 31276 31277# Additional compiler flags for building library objects. 31278pic_flag=$lt_lt_prog_compiler_pic 31279 31280# How to pass a linker flag through the compiler. 31281wl=$lt_lt_prog_compiler_wl 31282 31283# Compiler flag to prevent dynamic linking. 31284link_static_flag=$lt_lt_prog_compiler_static 31285 31286# Does compiler simultaneously support -c and -o options? 31287compiler_c_o=$lt_lt_cv_prog_compiler_c_o 31288 31289# Whether or not to add -lc for building shared libraries. 31290build_libtool_need_lc=$archive_cmds_need_lc 31291 31292# Whether or not to disallow shared libs when runtime libs are static. 31293allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 31294 31295# Compiler flag to allow reflexive dlopens. 31296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 31297 31298# Compiler flag to generate shared objects directly from archives. 31299whole_archive_flag_spec=$lt_whole_archive_flag_spec 31300 31301# Whether the compiler copes with passing no objects directly. 31302compiler_needs_object=$lt_compiler_needs_object 31303 31304# Create an old-style archive from a shared archive. 31305old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 31306 31307# Create a temporary old-style archive to link instead of a shared archive. 31308old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 31309 31310# Commands used to build a shared archive. 31311archive_cmds=$lt_archive_cmds 31312archive_expsym_cmds=$lt_archive_expsym_cmds 31313 31314# Commands used to build a loadable module if different from building 31315# a shared archive. 31316module_cmds=$lt_module_cmds 31317module_expsym_cmds=$lt_module_expsym_cmds 31318 31319# Whether we are building with GNU ld or not. 31320with_gnu_ld=$lt_with_gnu_ld 31321 31322# Flag that allows shared libraries with undefined symbols to be built. 31323allow_undefined_flag=$lt_allow_undefined_flag 31324 31325# Flag that enforces no undefined symbols. 31326no_undefined_flag=$lt_no_undefined_flag 31327 31328# Flag to hardcode \$libdir into a binary during linking. 31329# This must work even if \$libdir does not exist 31330hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 31331 31332# Whether we need a single "-rpath" flag with a separated argument. 31333hardcode_libdir_separator=$lt_hardcode_libdir_separator 31334 31335# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 31336# DIR into the resulting binary. 31337hardcode_direct=$hardcode_direct 31338 31339# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 31340# DIR into the resulting binary and the resulting library dependency is 31341# "absolute",i.e impossible to change by setting \$shlibpath_var if the 31342# library is relocated. 31343hardcode_direct_absolute=$hardcode_direct_absolute 31344 31345# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 31346# into the resulting binary. 31347hardcode_minus_L=$hardcode_minus_L 31348 31349# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 31350# into the resulting binary. 31351hardcode_shlibpath_var=$hardcode_shlibpath_var 31352 31353# Set to "yes" if building a shared library automatically hardcodes DIR 31354# into the library and all subsequent libraries and executables linked 31355# against it. 31356hardcode_automatic=$hardcode_automatic 31357 31358# Set to yes if linker adds runtime paths of dependent libraries 31359# to runtime path list. 31360inherit_rpath=$inherit_rpath 31361 31362# Whether libtool must link a program against all its dependency libraries. 31363link_all_deplibs=$link_all_deplibs 31364 31365# Set to "yes" if exported symbols are required. 31366always_export_symbols=$always_export_symbols 31367 31368# The commands to list exported symbols. 31369export_symbols_cmds=$lt_export_symbols_cmds 31370 31371# Symbols that should not be listed in the preloaded symbols. 31372exclude_expsyms=$lt_exclude_expsyms 31373 31374# Symbols that must always be exported. 31375include_expsyms=$lt_include_expsyms 31376 31377# Commands necessary for linking programs (against libraries) with templates. 31378prelink_cmds=$lt_prelink_cmds 31379 31380# Commands necessary for finishing linking programs. 31381postlink_cmds=$lt_postlink_cmds 31382 31383# Specify filename containing input files. 31384file_list_spec=$lt_file_list_spec 31385 31386# How to hardcode a shared library path into an executable. 31387hardcode_action=$hardcode_action 31388 31389# ### END LIBTOOL CONFIG 31390 31391_LT_EOF 31392 31393 cat <<'_LT_EOF' >> "$cfgfile" 31394 31395# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 31396 31397# func_munge_path_list VARIABLE PATH 31398# ----------------------------------- 31399# VARIABLE is name of variable containing _space_ separated list of 31400# directories to be munged by the contents of PATH, which is string 31401# having a format: 31402# "DIR[:DIR]:" 31403# string "DIR[ DIR]" will be prepended to VARIABLE 31404# ":DIR[:DIR]" 31405# string "DIR[ DIR]" will be appended to VARIABLE 31406# "DIRP[:DIRP]::[DIRA:]DIRA" 31407# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 31408# "DIRA[ DIRA]" will be appended to VARIABLE 31409# "DIR[:DIR]" 31410# VARIABLE will be replaced by "DIR[ DIR]" 31411func_munge_path_list () 31412{ 31413 case x$2 in 31414 x) 31415 ;; 31416 *:) 31417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 31418 ;; 31419 x:*) 31420 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 31421 ;; 31422 *::*) 31423 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 31424 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 31425 ;; 31426 *) 31427 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 31428 ;; 31429 esac 31430} 31431 31432 31433# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 31434func_cc_basename () 31435{ 31436 for cc_temp in $*""; do 31437 case $cc_temp in 31438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 31439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 31440 \-*) ;; 31441 *) break;; 31442 esac 31443 done 31444 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 31445} 31446 31447 31448# ### END FUNCTIONS SHARED WITH CONFIGURE 31449 31450_LT_EOF 31451 31452 case $host_os in 31453 aix3*) 31454 cat <<\_LT_EOF >> "$cfgfile" 31455# AIX sometimes has problems with the GCC collect2 program. For some 31456# reason, if we set the COLLECT_NAMES environment variable, the problems 31457# vanish in a puff of smoke. 31458if test set != "${COLLECT_NAMES+set}"; then 31459 COLLECT_NAMES= 31460 export COLLECT_NAMES 31461fi 31462_LT_EOF 31463 ;; 31464 esac 31465 31466 31467ltmain=$ac_aux_dir/ltmain.sh 31468 31469 31470 # We use sed instead of cat because bash on DJGPP gets confused if 31471 # if finds mixed CR/LF and LF-only lines. Since sed operates in 31472 # text mode, it properly converts lines to CR/LF. This bash problem 31473 # is reportedly fixed, but why not run on old versions too? 31474 sed '$q' "$ltmain" >> "$cfgfile" \ 31475 || (rm -f "$cfgfile"; exit 1) 31476 31477 mv -f "$cfgfile" "$ofile" || 31478 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 31479 chmod +x "$ofile" 31480 31481 ;; 31482 31483 esac 31484done # for ac_tag 31485 31486 31487as_fn_exit 0 31488_ACEOF 31489ac_clean_files=$ac_clean_files_save 31490 31491test $ac_write_fail = 0 || 31492 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 31493 31494 31495# configure is writing to config.log, and then calls config.status. 31496# config.status does its own redirection, appending to config.log. 31497# Unfortunately, on DOS this fails, as config.log is still kept open 31498# by configure, so config.status won't be able to write to it; its 31499# output is simply discarded. So we exec the FD to /dev/null, 31500# effectively closing config.log, so it can be properly (re)opened and 31501# appended to by config.status. When coming back to configure, we 31502# need to make the FD available again. 31503if test "$no_create" != yes; then 31504 ac_cs_success=: 31505 ac_config_status_args= 31506 test "$silent" = yes && 31507 ac_config_status_args="$ac_config_status_args --quiet" 31508 exec 5>/dev/null 31509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 31510 exec 5>>config.log 31511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 31512 # would make configure fail if this is the last instruction. 31513 $ac_cs_success || as_fn_exit 1 31514fi 31515 31516# 31517# CONFIG_SUBDIRS section. 31518# 31519if test "$no_recursion" != yes; then 31520 31521 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 31522 # so they do not pile up. 31523 ac_sub_configure_args= 31524 ac_prev= 31525 eval "set x $ac_configure_args" 31526 shift 31527 for ac_arg 31528 do 31529 if test -n "$ac_prev"; then 31530 ac_prev= 31531 continue 31532 fi 31533 case $ac_arg in 31534 -cache-file | --cache-file | --cache-fil | --cache-fi \ 31535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 31536 ac_prev=cache_file ;; 31537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 31538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 31539 | --c=*) 31540 ;; 31541 --config-cache | -C) 31542 ;; 31543 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 31544 ac_prev=srcdir ;; 31545 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 31546 ;; 31547 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 31548 ac_prev=prefix ;; 31549 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 31550 ;; 31551 --disable-option-checking) 31552 ;; 31553 *) 31554 case $ac_arg in 31555 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 31556 esac 31557 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 31558 esac 31559 done 31560 31561 # Always prepend --prefix to ensure using the same prefix 31562 # in subdir configurations. 31563 ac_arg="--prefix=$prefix" 31564 case $ac_arg in 31565 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 31566 esac 31567 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 31568 31569 # Pass --silent 31570 if test "$silent" = yes; then 31571 ac_sub_configure_args="--silent $ac_sub_configure_args" 31572 fi 31573 31574 # Always prepend --disable-option-checking to silence warnings, since 31575 # different subdirs can have different --enable and --with options. 31576 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 31577 31578 ac_popdir=`pwd` 31579 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 31580 31581 # Do not complain, so a configure script can configure whichever 31582 # parts of a large source tree are present. 31583 test -d "$srcdir/$ac_dir" || continue 31584 31585 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 31586 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 31587 $as_echo "$ac_msg" >&6 31588 as_dir="$ac_dir"; as_fn_mkdir_p 31589 ac_builddir=. 31590 31591case "$ac_dir" in 31592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31593*) 31594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 31595 # A ".." for each directory in $ac_dir_suffix. 31596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31597 case $ac_top_builddir_sub in 31598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31600 esac ;; 31601esac 31602ac_abs_top_builddir=$ac_pwd 31603ac_abs_builddir=$ac_pwd$ac_dir_suffix 31604# for backward compatibility: 31605ac_top_builddir=$ac_top_build_prefix 31606 31607case $srcdir in 31608 .) # We are building in place. 31609 ac_srcdir=. 31610 ac_top_srcdir=$ac_top_builddir_sub 31611 ac_abs_top_srcdir=$ac_pwd ;; 31612 [\\/]* | ?:[\\/]* ) # Absolute name. 31613 ac_srcdir=$srcdir$ac_dir_suffix; 31614 ac_top_srcdir=$srcdir 31615 ac_abs_top_srcdir=$srcdir ;; 31616 *) # Relative name. 31617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31618 ac_top_srcdir=$ac_top_build_prefix$srcdir 31619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31620esac 31621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31622 31623 31624 cd "$ac_dir" 31625 31626 # Check for guested configure; otherwise get Cygnus style configure. 31627 if test -f "$ac_srcdir/configure.gnu"; then 31628 ac_sub_configure=$ac_srcdir/configure.gnu 31629 elif test -f "$ac_srcdir/configure"; then 31630 ac_sub_configure=$ac_srcdir/configure 31631 elif test -f "$ac_srcdir/configure.in"; then 31632 # This should be Cygnus configure. 31633 ac_sub_configure=$ac_aux_dir/configure 31634 else 31635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 31636$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 31637 ac_sub_configure= 31638 fi 31639 31640 # The recursion is here. 31641 if test -n "$ac_sub_configure"; then 31642 # Make the cache file name correct relative to the subdirectory. 31643 case $cache_file in 31644 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 31645 *) # Relative name. 31646 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 31647 esac 31648 31649 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 31650$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 31651 # The eval makes quoting arguments work. 31652 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 31653 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 31654 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 31655 fi 31656 31657 cd "$ac_popdir" 31658 done 31659fi 31660if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 31661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 31662$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 31663fi 31664 31665 31666 31667cat > include/newversion.h.in <<EOF 31668#ifndef VERSION_HIDDEN 31669#define VERSION_HIDDEN 31670#endif 31671VERSION_HIDDEN const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$"; 31672VERSION_HIDDEN const char *heimdal_version = "Heimdal 7.7.0"; 31673EOF 31674 31675if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 31676 echo "include/version.h is unchanged" 31677 rm -f include/newversion.h.in 31678else 31679 echo "creating include/version.h" 31680 User=${USER-${LOGNAME}} 31681 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 31682 Date=`date` 31683 mv -f include/newversion.h.in include/version.h.in 31684 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 31685fi 31686